]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Move forcewake to 'gt.pm' substructure
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 10 Sep 2024 23:47:21 +0000 (16:47 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 11 Sep 2024 22:17:29 +0000 (15:17 -0700)
commit998fde0647671c82f637e299026d951f9b155b37
treeb7447c4b6681daf544960bdaeffb1de9929a105a
parentc7c3c7b7400bef1ba14831c0a8ca1cdb35f32c94
drm/xe: Move forcewake to 'gt.pm' substructure

Forcewake is a general GT power management concept that isn't specific
to MMIO register access.  Move the forcewake information for a GT out of
the 'mmio' substruct and into a 'pm' substruct.  Also use the gt_to_fw()
helper in a few more places where it was being open-coded.

v2:
 - Kerneldoc tweaks.  (Lucas)

Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240910234719.3335472-46-matthew.d.roper@intel.com
drivers/gpu/drm/xe/xe_device.h
drivers/gpu/drm/xe/xe_gt_types.h
drivers/gpu/drm/xe/xe_reg_sr.c