diff options
author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2024-07-02 20:37:04 +0200 |
---|---|---|
committer | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2024-07-04 11:55:40 +0200 |
commit | 3078d9c8b6a0939bc732fd1c36ef86c0178127dd (patch) | |
tree | 90e5c007abe8ea171ed53a0b764300cf07243fea /drivers/gpu/drm/xe/xe_mmio.c | |
parent | 466a6c3855cf00653c14a92a6e9f8ae50077b77d (diff) |
drm/xe: Use VF_CAP_REG for device wmb
To force a write barrier on the device memory, we write to the
SOFTWARE_FLAGS_SPR33 register, but this particular register was
selected because it was one of the writable and unused register.
Since a write barrier should also work if we use the read-only
register, switch to VF_CAP_REG register that is also marked as
accessible for VFs.
While at it, add simple kernel-doc for xe_device_wmb() function.
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240702183704.1022-4-michal.wajdeczko@intel.com
Diffstat (limited to 'drivers/gpu/drm/xe/xe_mmio.c')
0 files changed, 0 insertions, 0 deletions