All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: Remove pci address checks from acpi_vfct_bios
@ 2024-03-18  6:52 Kurt Kartaltepe
  2024-03-18 13:36 ` Alex Deucher
  0 siblings, 1 reply; 12+ messages in thread
From: Kurt Kartaltepe @ 2024-03-18  6:52 UTC (permalink / raw)
  To: amd-gfx; +Cc: kkartaltepe

These checks prevent using amdgpu with the pcie=assign-busses parameter
which will re-address devices from their acpi values.

Signed-off-by: Kurt Kartaltepe <kkartaltepe@gmail.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
index 618e469e3622..932ce13ad232 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
@@ -386,9 +386,6 @@ static bool amdgpu_acpi_vfct_bios(struct amdgpu_device *adev)
 		}
 
 		if (vhdr->ImageLength &&
-		    vhdr->PCIBus == adev->pdev->bus->number &&
-		    vhdr->PCIDevice == PCI_SLOT(adev->pdev->devfn) &&
-		    vhdr->PCIFunction == PCI_FUNC(adev->pdev->devfn) &&
 		    vhdr->VendorID == adev->pdev->vendor &&
 		    vhdr->DeviceID == adev->pdev->device) {
 			adev->bios = kmemdup(&vbios->VbiosContent,
-- 
2.44.0


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-03-21  9:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-18  6:52 [PATCH] drm/amdgpu: Remove pci address checks from acpi_vfct_bios Kurt Kartaltepe
2024-03-18 13:36 ` Alex Deucher
2024-03-18 14:19   ` Kurt Kartaltepe
2024-03-18 15:42     ` Alex Deucher
2024-03-18 16:06       ` Kurt Kartaltepe
2024-03-18 19:52         ` Alex Deucher
2024-03-18 19:57           ` Alex Deucher
2024-03-19  1:55             ` Kurt Kartaltepe
2024-03-19  9:54               ` Christian König
2024-03-19 15:04                 ` Kurt Kartaltepe
2024-03-20 13:31                   ` Christian König
2024-03-20 14:24                     ` Kurt Kartaltepe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.