]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Switch MMIO interface to take xe_mmio instead of xe_gt
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 10 Sep 2024 23:47:29 +0000 (16:47 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 11 Sep 2024 22:17:36 +0000 (15:17 -0700)
commita84590c5ceb354d2e9f7f6812cfb3a9709e14afa
treedc154fbb5f097dc499e5e814e9be940d24154539
parent6fb5d1a1d376910700d054d13cefbf0812b444a9
drm/xe: Switch MMIO interface to take xe_mmio instead of xe_gt

Since much of the MMIO register access done by the driver is to non-GT
registers, use of 'xe_gt' in these interfaces has been a long-standing
design flaw that's been hard to disentangle.

To avoid a flag day across the whole driver, munge the function names
and add temporary compatibility macros with the original function names
that can accept either the new xe_mmio or the old xe_gt structure as a
parameter.  This will allow us to slowly convert parts of the driver
over to the new interface independently.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240910234719.3335472-54-matthew.d.roper@intel.com
drivers/gpu/drm/xe/xe_mmio.c
drivers/gpu/drm/xe/xe_mmio.h
drivers/gpu/drm/xe/xe_trace.h