mirror of
https://git.proxmox.com/git/pve-common
synced 2025-05-02 18:35:03 +00:00
sysfs tools: add 'nvidia' -> 'mdev' workaround to pci_device_info
We added it to the lspci one in commit dc023d6
("SysFSTools: handle
new nvidia syfsapi as mdev"), but we'll also need it when querying a
single device.
code is the same as in the lspci sub
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
[TL: reference commit explicitly]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
ad169fbd08
commit
0fcaeb39ec
@ -280,6 +280,10 @@ sub pci_device_info {
|
|||||||
|
|
||||||
if (-d "$devdir/mdev_supported_types") {
|
if (-d "$devdir/mdev_supported_types") {
|
||||||
$res->{mdev} = 1;
|
$res->{mdev} = 1;
|
||||||
|
} elsif (-d "$devdir/nvidia") {
|
||||||
|
# nvidia driver for kernel 6.8 or higher
|
||||||
|
$res->{mdev} = 1; # for api compatibility
|
||||||
|
$res->{nvidia} = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user