projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5490c50
)
drm/i915/gt: use intel_uncore_rmw when appropriate
author
Andrzej Hajda
<andrzej.hajda@intel.com>
Wed, 19 Oct 2022 14:38:18 +0000
(16:38 +0200)
committer
Andi Shyti
<andi.shyti@linux.intel.com>
Mon, 24 Oct 2022 18:33:58 +0000
(20:33 +0200)
This patch replaces all occurences of the form
intel_uncore_write(reg, intel_uncore_read(reg) OP val)
with intel_uncore_rmw.
Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20221019143818.244339-2-andrzej.hajda@intel.com
drivers/gpu/drm/i915/gt/intel_rps.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/gt/intel_rps.c
b/drivers/gpu/drm/i915/gt/intel_rps.c
index fc23c562d9b2a71e46ad14c9ddcefce30cd82403..070005dd0da476321d51a39de6a0a47ea31123a3 100644
(file)
--- a/
drivers/gpu/drm/i915/gt/intel_rps.c
+++ b/
drivers/gpu/drm/i915/gt/intel_rps.c
@@
-625,9
+625,7
@@
static void gen5_rps_disable(struct intel_rps *rps)
rgvswctl = intel_uncore_read16(uncore, MEMSWCTL);
/* Ack interrupts, disable EFC interrupt */
- intel_uncore_write(uncore, MEMINTREN,
- intel_uncore_read(uncore, MEMINTREN) &
- ~MEMINT_EVAL_CHG_EN);
+ intel_uncore_rmw(uncore, MEMINTREN, MEMINT_EVAL_CHG_EN, 0);
intel_uncore_write(uncore, MEMINTRSTS, MEMINT_EVAL_CHG);
/* Go back to the starting frequency */