]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe: Introduced needs_scratch bit in device descriptor
authorOak Zeng <oak.zeng@intel.com>
Thu, 3 Apr 2025 16:53:26 +0000 (12:53 -0400)
committerHimal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Mon, 7 Apr 2025 05:46:50 +0000 (11:16 +0530)
commit953d35c0b8ef98cee444253ac0d4772c24d1cc0c
tree91ae547b3c5ec0d75aa4a25bbb8bf523b286c908
parent1e32ffbc9dc8ddf1c7858288d1987ded1c35a8e1
drm/xe: Introduced needs_scratch bit in device descriptor

On some platform, scratch page is needed for out of bound prefetch
to work. Introduce a bit in device descriptor to specify whether
this device needs scratch page to work.

v2: introduce a needs_scratch bit in device info (Thomas, Jonathan)
v3: drop NEEDS_SCRATCH macro (Matt)

Signed-off-by: Oak Zeng <oak.zeng@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://lore.kernel.org/r/20250403165328.2438690-2-oak.zeng@intel.com
Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
drivers/gpu/drm/xe/xe_device_types.h
drivers/gpu/drm/xe/xe_pci.c