From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: Matt Roper <matthew.d.roper@intel.com>, intel-xe@lists.freedesktop.org
Subject: Re: [Intel-xe] [PATCH v2 4/8] drm/xe: Fix xe_mmio_rmw32 operation
Date: Thu, 13 Apr 2023 12:49:11 +0200 [thread overview]
Message-ID: <8fb02acd-8490-fd8b-bbb8-bbe862705538@linux.intel.com> (raw)
In-Reply-To: <20230412225248.3229571-5-matthew.d.roper@intel.com>
Hey,
I thought this was on purpose, and xe_mmio_rmw32 specified which parts
to keep,
as opposed to i915 which set a clear mask.
If this was not, can you also fix display/xe_de.h to no longer invert?
Otherwise, you break the entirety of display.
~Maarten
On 2023-04-13 00:52, Matt Roper wrote:
> xe_mmio_rmw32 was failing to invert the passed in mask, resulting in a
> register updated that wasn't the expected RMW operation. Fortunately
> the impact of this mistake was limited, since xe_mmio_rmw32() is only
> used in two places to unmask certain GuC-related interrupts.
>
> Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
> ---
> drivers/gpu/drm/xe/xe_mmio.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_mmio.h b/drivers/gpu/drm/xe/xe_mmio.h
> index 388a633b438b..a3b7f9f5db67 100644
> --- a/drivers/gpu/drm/xe/xe_mmio.h
> +++ b/drivers/gpu/drm/xe/xe_mmio.h
> @@ -40,7 +40,7 @@ static inline u32 xe_mmio_rmw32(struct xe_gt *gt, u32 reg, u32 mask,
> u32 old, reg_val;
>
> old = xe_mmio_read32(gt, reg);
> - reg_val = (old & mask) | val;
> + reg_val = (old & ~mask) | val;
> xe_mmio_write32(gt, reg, reg_val);
>
> return old;
next prev parent reply other threads:[~2023-04-13 10:49 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-12 22:52 [Intel-xe] [PATCH v2 0/8] Meteorlake interrupt & TLB handling updates Matt Roper
2023-04-12 22:52 ` [Intel-xe] [PATCH v2 1/8] drm/xe/irq: Cleanup media GT interrupt flow Matt Roper
2023-04-14 19:04 ` Lucas De Marchi
2023-04-17 17:33 ` Matt Roper
2023-04-17 21:41 ` Andi Shyti
2023-04-12 22:52 ` [Intel-xe] [PATCH v2 2/8] drm/xe/irq: Improve warnings and assertions for GT handling Matt Roper
2023-04-14 19:52 ` Lucas De Marchi
2023-04-12 22:52 ` [Intel-xe] [PATCH v2 3/8] drm/xe/irq: Process Gunit interrupts in relation to the device Matt Roper
2023-04-14 19:59 ` Lucas De Marchi
2023-04-12 22:52 ` [Intel-xe] [PATCH v2 4/8] drm/xe: Fix xe_mmio_rmw32 operation Matt Roper
2023-04-13 10:49 ` Maarten Lankhorst [this message]
2023-04-13 12:38 ` Jani Nikula
2023-04-14 1:01 ` Lucas De Marchi
2023-04-12 22:52 ` [Intel-xe] [PATCH v2 5/8] drm/xe/irq: Ensure primary GuC won't clobber media GuC's interrupt mask Matt Roper
2023-04-14 20:50 ` Lucas De Marchi
2023-04-12 22:52 ` [Intel-xe] [PATCH v2 6/8] drm/xe: Include GT ID in error message if TLB invalidation times out Matt Roper
2023-04-14 20:50 ` Lucas De Marchi
2023-05-09 11:37 ` Das, Nirmoy
2023-04-12 22:52 ` [Intel-xe] [PATCH v2 7/8] drm/xe: Invalidate TLB on all affected GTs during GGTT updates Matt Roper
2023-04-14 21:09 ` Lucas De Marchi
2023-04-14 21:22 ` Lucas De Marchi
2023-04-12 22:52 ` [Intel-xe] [PATCH v2 8/8] drm/xe/tlb: Obtain forcewake when doing GGTT TLB invalidations Matt Roper
2023-04-14 21:33 ` Lucas De Marchi
2023-04-12 22:59 ` [Intel-xe] [PATCH v2 0/8] Meteorlake interrupt & TLB handling updates Matt Roper
2023-04-12 23:01 ` Lucas De Marchi
2023-04-13 9:47 ` [Intel-xe] ✓ CI.Patch_applied: success for " Patchwork
2023-04-13 9:48 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-04-13 9:52 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-04-13 10:12 ` [Intel-xe] ○ CI.BAT: info " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8fb02acd-8490-fd8b-bbb8-bbe862705538@linux.intel.com \
--to=maarten.lankhorst@linux.intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.d.roper@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.