Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/xe/vram: Use scope-based forcewake

Switch VRAM code to use scope-based forcewake for consistency with other
parts of the driver.

Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://patch.msgid.link/20251118164338.3572146-49-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>

+2 -4
+2 -4
drivers/gpu/drm/xe/xe_vram.c
··· 186 186 static int get_flat_ccs_offset(struct xe_gt *gt, u64 tile_size, u64 *poffset) 187 187 { 188 188 struct xe_device *xe = gt_to_xe(gt); 189 - unsigned int fw_ref; 190 189 u64 offset; 191 190 u32 reg; 192 191 193 - fw_ref = xe_force_wake_get(gt_to_fw(gt), XE_FW_GT); 194 - if (!fw_ref) 192 + CLASS(xe_force_wake, fw_ref)(gt_to_fw(gt), XE_FW_GT); 193 + if (!fw_ref.domains) 195 194 return -ETIMEDOUT; 196 195 197 196 if (GRAPHICS_VER(xe) >= 20) { ··· 222 223 offset = (u64)REG_FIELD_GET(XEHP_FLAT_CCS_PTR, reg) * SZ_64K; 223 224 } 224 225 225 - xe_force_wake_put(gt_to_fw(gt), fw_ref); 226 226 *poffset = offset; 227 227 228 228 return 0;