]> www.infradead.org Git - users/hch/configfs.git/commit
drm/xe: Use VF_CAP_REG for device wmb
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 2 Jul 2024 18:37:04 +0000 (20:37 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 4 Jul 2024 09:55:40 +0000 (11:55 +0200)
commit3078d9c8b6a0939bc732fd1c36ef86c0178127dd
tree90e5c007abe8ea171ed53a0b764300cf07243fea
parent466a6c3855cf00653c14a92a6e9f8ae50077b77d
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
drivers/gpu/drm/xe/xe_device.c