On Thu, Sep 12, 2024 at 03:42:52PM GMT, Lucas De Marchi wrote:
unbind function is this:
function unbind {
vga="0300"
display="0380"
pci_vendor="8086"
while read -r pci_slot class devid xxx; do
sysdev=/sys/bus/pci/devices/0000:$pci_slot
echo -n "Unbinding $sysdev ($devid)... "
if [ ! -e "$sysdev/driver" ]; then
echo "(skip: not bound)"
continue
fi
echo -n auto > ${sysdev}/power/control
echo -n "0000:$pci_slot" > $sysdev/driver/unbind
echo "ok"
done <<<$(lspci -d ${pci_vendor}::${display} -n; lspci -d
${pci_vendor}::${vga} -n )
}
So... for igt: I *think* simply removing the array with modules to
unload first would fix it.
I decided to be more useful than just giving the sketch above and typed
something similar to what I'm writing for kmod (soon we will have
`kmod [bind|unbind]` commands):
https://patchwork.freedesktop.org/series/138676/
xe_module_load@reload-no-display works for me with BMG with that patch.
Let's see if it passes the rest of the CI tests.
Lucas De Marchi