Displaying 3 results from an estimated 3 matches for "radeon_atrm_get_bios".
2023 Aug 25
0
[PATCH 5/5] drm/radeon: Use pci_get_base_class() to reduce duplicated code
...1 file changed, 5 insertions(+), 15 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_bios.c b/drivers/gpu/drm/radeon/radeon_bios.c
index 63bdc9f6fc24..3a8c5199a0fe 100644
--- a/drivers/gpu/drm/radeon/radeon_bios.c
+++ b/drivers/gpu/drm/radeon/radeon_bios.c
@@ -199,7 +199,11 @@ static bool radeon_atrm_get_bios(struct radeon_device *rdev)
if (rdev->flags & RADEON_IS_IGP)
return false;
- while ((pdev = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, pdev)) != NULL) {
+ while ((pdev = pci_get_base_class(PCI_BASE_CLASS_DISPLAY, pdev))) {
+ if ((pdev->class != PCI_CLASS_DISPLAY_VGA <<...
2023 Aug 25
7
[PATCH 0/5] Add the pci_get_base_class() helper and use it
From: Sui Jingfeng <suijingfeng at loongson.cn>
There is no function that can be used to get all PCI(e) devices in a
system by matching against its the PCI base class code only, while keep
the sub-class code and the programming interface ignored. Therefore, add
the pci_get_base_class() function to suit the need.
For example, if an application want to process all PCI(e) display devices
in a
2013 Sep 17
10
RESEND [Xen-unstable][Qemu-xen] HVM Guest reading of Expansion ROM from passthroughed PCI device returns data from emulated VGA rom
...1.760337] [drm:drm_get_minor],
[ 1.762547] [drm:drm_get_minor], new minor assigned 0
[ 1.765509] [drm] initializing kernel modesetting (TURKS 0x1002:0x6759 0x174B:0xE193).
[ 1.767705] [drm] register mmio base: 0xF3040000
[ 1.769135] [drm] register mmio size: 131072
[ 1.770551] [drm] radeon_atrm_get_bios: failed
[ 1.771878] [drm] radeon_acpi_vfct_bios: failed
[ 1.773193] [drm] igp_read_bios_from_vram: failed
[ 1.774744] [drm:radeon_read_bios], BIOS radeon_read_bios: size: 0x8c00 biosiomemstart: 0xf3060000
[ 1.777717] [drm] radeon_read_bios: succes
[ 1.779057] [drm:radeon_get_bios...