mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
VFIO Patch changes: samhain pci-ids, no-acs from nixpkgs
This commit is contained in:
parent
6e204214d4
commit
b1f27aa74d
2 changed files with 4 additions and 11 deletions
|
|
@ -18,6 +18,9 @@ with lib;
|
|||
boot = lib.mkMerge [ {
|
||||
initrd.kernelModules = mkBefore ["vfio" "vfio_iommu_type1" "vfio_pci" "vfio_virqfd"];
|
||||
kernelModules = [ "i2c-dev" ]; # i2c-dev is required for DDC/CI for screenstub
|
||||
kernelPatches = with pkgs.kernelPatches; [
|
||||
(mkIf config.deploy.profile.hardware.acs-override acs-override)
|
||||
];
|
||||
} (mkIf (config.deploy.profile.hardware.amdgpu) {
|
||||
kernelParams = [
|
||||
"video=efifb:off"
|
||||
|
|
@ -26,16 +29,6 @@ with lib;
|
|||
(pkgs.linuxPackagesFor config.boot.kernelPackages.kernel).vendor-reset
|
||||
];
|
||||
}) ( mkIf (config.deploy.profile.hardware.acs-override) {
|
||||
kernelPatches = [
|
||||
{
|
||||
name = "acs-patch.patch";
|
||||
patch = (pkgs.fetchpatch {
|
||||
name = "acs-patch.patch";
|
||||
url = "https://gitlab.com/Queuecumber/linux-acs-override/-/raw/cc30d83d05019b84468db3ad009bc02ab1bab240/workspaces/5.6.12/acso.patch?inline=false";
|
||||
sha256 = "0qjb66ydbqqypyvhhlq8zwry8zcd8609y8d4a0nidhq1g6cp9vcw";
|
||||
});
|
||||
}
|
||||
];
|
||||
kernelParams = [
|
||||
"pci=noats"
|
||||
"pcie_acs_override=downstream,multifunction"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue