From e7be79c610d30b316237ec885cbdf88d9906e1f8 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Wed, 8 Mar 2023 16:35:05 +0100 Subject: soc/intel/broadwell/gma: don't unconditionally remap all GPU PCI IDs This fixes the case where a Broadwell CPU is combined with an AMD or NVIDIA GPU would result in using the Broadwell GPU VBIOS file from CBFS for the discrete GPU too. A further improvement would be to use a list of the Intel iGPU PCI IDs like it is done in the Skylake code. TEST=None Signed-off-by: Felix Held Change-Id: I3eb50cb9a0539255d50e5cd8163f10c3a062cc4d Reviewed-on: https://review.coreboot.org/c/coreboot/+/73611 Reviewed-by: Martin Roth Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier --- src/soc/intel/broadwell/gma.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/soc/intel') diff --git a/src/soc/intel/broadwell/gma.c b/src/soc/intel/broadwell/gma.c index e50ff0cd81..d3b923ad94 100644 --- a/src/soc/intel/broadwell/gma.c +++ b/src/soc/intel/broadwell/gma.c @@ -240,7 +240,10 @@ static const struct reg_script broadwell_late_init_script[] = { u32 map_oprom_vendev(u32 vendev) { - return SA_IGD_OPROM_VENDEV; + if (vendev >> 16 == PCI_VID_INTEL) + return SA_IGD_OPROM_VENDEV; + else + return vendev; } static struct resource *gtt_res = NULL; -- cgit v1.2.3