mirror of
https://github.com/RROrg/rr.git
synced 2025-08-24 13:37:26 +08:00
Compare commits
3 Commits
aaa1983dc0
...
eb6e0f28cb
Author | SHA1 | Date | |
---|---|---|---|
|
eb6e0f28cb | ||
|
1ee6022476 | ||
|
9d15e9baaf |
@ -17,8 +17,7 @@ NVPCI_ADDR=$(lspci -nd 10de: | grep -e 0300 -e 0302 | awk '{print $1}')
|
|||||||
if [ -n "${NVPCI_ADDR}" ]; then
|
if [ -n "${NVPCI_ADDR}" ]; then
|
||||||
modprobe -r nouveau || true
|
modprobe -r nouveau || true
|
||||||
NVDEV_PATH=$(find /sys/devices -name *${NVPCI_ADDR} | grep -v supplier)
|
NVDEV_PATH=$(find /sys/devices -name *${NVPCI_ADDR} | grep -v supplier)
|
||||||
for DEV_PATH in ${NVDEV_PATH}
|
for DEV_PATH in ${NVDEV_PATH}; do
|
||||||
do
|
|
||||||
if [ -e ${DEV_PATH}/reset ]; then
|
if [ -e ${DEV_PATH}/reset ]; then
|
||||||
echo 1 >${DEV_PATH}/reset || true
|
echo 1 >${DEV_PATH}/reset || true
|
||||||
fi
|
fi
|
||||||
@ -184,6 +183,9 @@ if [ "${DT}" = "true" ] && ! echo "epyc7002 purley broadwellnkv2" | grep -wq "${
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
CMDLINE['kvm.ignore_msrs']="1"
|
||||||
|
CMDLINE['kvm.report_ignored_msrs']="0"
|
||||||
|
|
||||||
if echo "apollolake geminilake" | grep -wq "${PLATFORM}"; then
|
if echo "apollolake geminilake" | grep -wq "${PLATFORM}"; then
|
||||||
CMDLINE["intel_iommu"]="igfx_off"
|
CMDLINE["intel_iommu"]="igfx_off"
|
||||||
fi
|
fi
|
||||||
|
@ -70,7 +70,7 @@ function set_gfxpayload {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
set RR_CMDLINE="earlyprintk earlycon=uart8250,io,0x3f8,115200n8 console=ttyS0,115200n8 root=/dev/ram rootwait pcie_aspm=off net.ifnames=0 nox2apic nomodeset modprobe.blacklist=i915,amdgpu,radeon,nouveau"
|
set RR_CMDLINE="earlyprintk earlycon=uart8250,io,0x3f8,115200n8 console=ttyS0,115200n8 root=/dev/ram rootwait pcie_aspm=off net.ifnames=0 nox2apic nomodeset iommu=off"
|
||||||
|
|
||||||
search --set=root --label "RR3"
|
search --set=root --label "RR3"
|
||||||
if [ -s /zImage-dsm -a -s /initrd-dsm ]; then
|
if [ -s /zImage-dsm -a -s /initrd-dsm ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user