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 <[email protected]> > Cc: Aravind Iddamsetty <[email protected]> > Cc: Matt Roper <[email protected]> > Cc: Lucas De Marchi <[email protected]> > Cc: Jani Nikula <[email protected]> > Cc: Nirmoy Das <[email protected]> > Cc: Fei Yang <[email protected]> > Cc: Radhakrishna Sripada <[email protected]>
Reviewed-by: Andi Shyti <[email protected]> Andi
