[Intel-gfx] [PATCH] drm/i915/mtl: Fix MTL stolen memory GGTT mapping
Andi Shyti
andi.shyti at linux.intel.com
Tue Mar 28 10:07:04 UTC 2023
Hi Daniele,
On Mon, Mar 27, 2023 at 06:24:30PM -0700, Daniele Ceraolo Spurio wrote:
> The PTEs expect the offset from the base of the fake LMEM region (i.e.
> the base of stolen) and not from the base of the DSM. Quoting the specs:
> "Driver will set the Device Memory bit = 1 in the PTE when pointing to a
> page in DSM and program the PTE with offset from LMEM_BAR. Device Memory
> Offset from LMEM_BAR is same as offset from BGSM."
>
> DSM starts 8MBs from BGSM, so we set dsm_base = 8MB.
>
> Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
> Cc: Aravind Iddamsetty <aravind.iddamsetty at intel.com>
> Cc: Matt Roper <matthew.d.roper at intel.com>
> Cc: Lucas De Marchi <lucas.demarchi at intel.com>
> Cc: Jani Nikula <jani.nikula at linux.intel.com>
> Cc: Nirmoy Das <nirmoy.das at intel.com>
> Cc: Fei Yang <fei.yang at intel.com>
> Cc: Radhakrishna Sripada <radhakrishna.sripada at intel.com>
Reviewed-by: Andi Shyti <andi.shyti at linux.intel.com>
Andi
More information about the dri-devel
mailing list