Commit 2d3ab1fa authored by Matthew Auld's avatar Matthew Auld Committed by Rodrigo Vivi

drm/xe/guc_pc: add missing mem_access for freq_rpe_show

The mem_access is meant to cover any kind of device level memory access,
mmio included.
Signed-off-by: default avatarMatthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Anshuman Gupta <anshuman.gupta@intel.com>
Reviewed-by: default avatarAnshuman Gupta <anshuman.gupta@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 6bfbd0c5
...@@ -422,8 +422,12 @@ static ssize_t freq_rpe_show(struct device *dev, ...@@ -422,8 +422,12 @@ static ssize_t freq_rpe_show(struct device *dev,
struct device_attribute *attr, char *buf) struct device_attribute *attr, char *buf)
{ {
struct xe_guc_pc *pc = dev_to_pc(dev); struct xe_guc_pc *pc = dev_to_pc(dev);
struct xe_gt *gt = pc_to_gt(pc);
struct xe_device *xe = gt_to_xe(gt);
xe_device_mem_access_get(xe);
pc_update_rp_values(pc); pc_update_rp_values(pc);
xe_device_mem_access_put(xe);
return sysfs_emit(buf, "%d\n", pc->rpe_freq); return sysfs_emit(buf, "%d\n", pc->rpe_freq);
} }
static DEVICE_ATTR_RO(freq_rpe); static DEVICE_ATTR_RO(freq_rpe);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment