All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>, intel-xe@lists.freedesktop.org
Subject: Re: [Intel-xe] [PATCH] drm/xe: Expand XE_REG_OPTION_MASKED documentation
Date: Tue, 05 Dec 2023 08:24:37 -0800	[thread overview]
Message-ID: <875y1c4ny2.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20231205155820.2133813-1-lucas.demarchi@intel.com>

On Tue, 05 Dec 2023 07:58:20 -0800, Lucas De Marchi wrote:
>
> Expand documentation and add an example to make clear this isn't about
> generic masks in registers. Also, fix the doc regarding read operations:
> the mask part has no effect on them.

Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>

> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
> ---
>  drivers/gpu/drm/xe/regs/xe_reg_defs.h | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/regs/xe_reg_defs.h b/drivers/gpu/drm/xe/regs/xe_reg_defs.h
> index 6e20fc2de9ff..c50e7650c09a 100644
> --- a/drivers/gpu/drm/xe/regs/xe_reg_defs.h
> +++ b/drivers/gpu/drm/xe/regs/xe_reg_defs.h
> @@ -60,7 +60,16 @@ struct xe_reg_mcr {
>
>  /**
>   * XE_REG_OPTION_MASKED - Register is "masked", with upper 16 bits marking the
> - * read/written bits on the lower 16 bits.
> + * written bits on the lower 16 bits.
> + *
> + * It only applies to registers explicitly marked in bspec with
> + * "Access: Masked". Registers with this option can have write operations to
> + * specific lower bits by setting the corresponding upper bits. Other bits will
> + * not be affected. This allows register writes without needing a RMW cycle and
> + * without caching in software the register value.
> + *
> + * Example: a write with value 0x00010001 will set bit 0 and all other bits
> + * retain their previous values.
>   *
>   * To be used with XE_REG(). XE_REG_MCR() and XE_REG_INITIALIZER()
>   */
> --
> 2.40.1
>

  reply	other threads:[~2023-12-05 16:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-05 15:58 [Intel-xe] [PATCH] drm/xe: Expand XE_REG_OPTION_MASKED documentation Lucas De Marchi
2023-12-05 16:24 ` Dixit, Ashutosh [this message]
2023-12-05 17:28 ` Matt Roper
2023-12-05 18:07   ` Lucas De Marchi
2023-12-05 18:14     ` Matt Roper
2023-12-05 20:44 ` [Intel-xe] ✓ CI.Patch_applied: success for " Patchwork
2023-12-05 20:44 ` [Intel-xe] ✓ CI.checkpatch: " Patchwork
2023-12-05 20:45 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-12-05 20:53 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-12-05 20:53 ` [Intel-xe] ✗ CI.Hooks: failure " Patchwork
2023-12-05 20:54 ` [Intel-xe] ✓ CI.checksparse: success " Patchwork
2023-12-05 21:37 ` [Intel-xe] ✓ CI.BAT: " 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=875y1c4ny2.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.com \
    --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.