dm: passthrough DSM region for ADL-N and RPL

The Data of Stolen Memory (DSM) region on Alder Lake-N and Raptor Lake
platform is indicated by the BDSM register (0xC0 and 0xC4 in PCI config
space), which is the same as Gen 11 (Tiger Lake) iGPU. This patch adds
ADL-N and RPL iGPU device id to passthrough the DSM region properly
when using GVT-d.

The PCI device ids are taken from i915 kernel driver.

Tracked-On: #8432
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com>
This commit is contained in:
Jiaqing Zhao 2023-06-20 02:42:58 +00:00 committed by acrnsi-robot
parent 080f43216c
commit feb1afbc3c
1 changed files with 21 additions and 0 deletions

View File

@ -616,6 +616,27 @@ passthru_gpu_dsm_opregion(struct vmctx *ctx, struct passthru_dev *ptdev,
case 0x46c1:
case 0x46c2:
case 0x46c3:
/* Alder Lake-N */
case 0x46d0:
case 0x46d1:
case 0x46d2:
/* Raptor Lake-S */
case 0xa780:
case 0xa781:
case 0xa782:
case 0xa783:
case 0xa788:
case 0xa789:
case 0xa78a:
case 0xa78b:
/* Raptor Lake-U */
case 0xa721:
case 0xa7a1:
case 0xa7a9:
/* Raptor Lake-P */
case 0xa720:
case 0xa7a0:
case 0xa7a8:
/* BDSM register has 64 bits.
* bits 63:20 contains the base address of stolen memory
*/