soc/skylake: do not rely on P2SB data to generate DRHD
The P2SB PCI device can be "hidden", which causes all sorts of nightmares and bugs. Moreover, FSP tends to hide it, so finding a good solution to this problem is impossible with FSP into the mix. Since the values for IBDF and HBDF were already hardcoded as FSP parameters, define them as macros and use these values directly to generate the DRHD. Change-Id: I7eb20182380b953a1842083e7a3c67919d6971b9 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35108 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Mimoja <coreboot@mimoja.de> Reviewed-by: Maxim Polyakov <max.senia.poliak@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
@ -490,9 +490,9 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd)
|
||||
tconfig->VtdDisable = 0;
|
||||
|
||||
params->PchIoApicBdfValid = 1;
|
||||
params->PchIoApicBusNumber = 250;
|
||||
params->PchIoApicDeviceNumber = 31;
|
||||
params->PchIoApicFunctionNumber = 0;
|
||||
params->PchIoApicBusNumber = V_P2SB_IBDF_BUS;
|
||||
params->PchIoApicDeviceNumber = V_P2SB_IBDF_DEV;
|
||||
params->PchIoApicFunctionNumber = V_P2SB_IBDF_FUN;
|
||||
}
|
||||
|
||||
soc_irq_settings(params);
|
||||
|
Reference in New Issue
Block a user