mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
drm/xe/xe2: Modify main memory to ccs memory ratio.
On xe2 platforms each byte of CCS data now represents 512 bytes of main memory data. Cc: Matt Roper <matthew.d.roper@intel.com> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com> Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com> Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
parent
4cb12b7192
commit
064686272b
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
#define XY_CTRL_SURF_MOCS_MASK GENMASK(31, 26)
|
||||
#define XE2_XY_CTRL_SURF_MOCS_INDEX_MASK GENMASK(31, 28)
|
||||
#define NUM_CCS_BYTES_PER_BLOCK 256
|
||||
#define NUM_BYTES_PER_CCS_BYTE 256
|
||||
#define NUM_BYTES_PER_CCS_BYTE(_xe) (GRAPHICS_VER(_xe) >= 20 ? 512 : 256)
|
||||
#define NUM_CCS_BLKS_PER_XFER 1024
|
||||
|
||||
#define XY_FAST_COLOR_BLT_CMD (2 << 29 | 0x44 << 22)
|
||||
|
|
|
@ -615,7 +615,7 @@ void xe_device_wmb(struct xe_device *xe)
|
|||
u32 xe_device_ccs_bytes(struct xe_device *xe, u64 size)
|
||||
{
|
||||
return xe_device_has_flat_ccs(xe) ?
|
||||
DIV_ROUND_UP(size, NUM_BYTES_PER_CCS_BYTE) : 0;
|
||||
DIV_ROUND_UP(size, NUM_BYTES_PER_CCS_BYTE(xe)) : 0;
|
||||
}
|
||||
|
||||
bool xe_device_mem_access_ongoing(struct xe_device *xe)
|
||||
|
|
Loading…
Reference in a new issue