]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/migrate: Future-proof compressed PAT check
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 26 Jul 2024 17:17:58 +0000 (10:17 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Mon, 29 Jul 2024 15:15:56 +0000 (08:15 -0700)
commit7657d7c96657179d002817d5ec2a1d4c84f21cdb
treec72229702a5f2d973f1f8109ded62fffd2225a72
parentfd6797ec50c561f085bc94e3ee26f484a52af79e
drm/xe/migrate: Future-proof compressed PAT check

Although all current Xe2 platforms support FlatCCS, we probably
shouldn't assume that will be universally true forever.  In the past
we've had platforms like PVC that didn't support compression, and the
same could show up again at some point in the future.  Future-proof the
migration code by adding an explicit check for FlatCCS support to the
condition that decides whether to use a compressed PAT index for
migration.

While we're at it, we can drop the IS_DGFX check since it's redundant
with the src_is_vram check (only dGPUs have VRAM).

Cc: Akshata Jahagirdar <akshata.jahagirdar@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Akshata Jahagirdar <akshata.jahagirdar@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240726171757.2728819-2-matthew.d.roper@intel.com
drivers/gpu/drm/xe/xe_migrate.c