All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Karthik Poosa <karthik.poosa@intel.com>
Cc: intel-xe@lists.freedesktop.org, anshuman.gupta@intel.com,
	badal.nilawar@intel.com, rodrigo.vivi@intel.com,
	lucas.demarchi@intel.com
Subject: Re: [PATCH v5 1/4] drm/xe: Define XE_REG_IS_VALID
Date: Wed, 03 Apr 2024 21:16:15 -0700	[thread overview]
Message-ID: <85wmpdvk34.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20240404035441.965590-2-karthik.poosa@intel.com>

On Wed, 03 Apr 2024 20:54:38 -0700, Karthik Poosa wrote:
>
> Add macro to check if struct xe_reg has valid address. (Lucas, Badal).
>
> Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
> ---
>  drivers/gpu/drm/xe/regs/xe_reg_defs.h | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/regs/xe_reg_defs.h b/drivers/gpu/drm/xe/regs/xe_reg_defs.h
> index c89ef2b79a3f..42078643be6b 100644
> --- a/drivers/gpu/drm/xe/regs/xe_reg_defs.h
> +++ b/drivers/gpu/drm/xe/regs/xe_reg_defs.h
> @@ -131,4 +131,6 @@ struct xe_reg_mcr {
>				 .__reg = XE_REG_INITIALIZER(r_,  ##__VA_ARGS__, .mcr = 1)	\
>				 })
>
> +#define XE_REG_IS_VALID(r)	((r.addr) ? true : false)

If this macro is needed, it can just be:

#define XE_REG_IS_VALID(r)	(r.addr)


  parent reply	other threads:[~2024-04-04  4:16 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-04  3:54 [PATCH v5 0/4] drm/xe/hwmon: Update xe hwmon with couple of fixes Karthik Poosa
2024-04-04  3:54 ` [PATCH v5 1/4] drm/xe: Define XE_REG_IS_VALID Karthik Poosa
2024-04-04  4:04   ` Nilawar, Badal
2024-04-04  4:16   ` Dixit, Ashutosh [this message]
2024-04-04 10:31   ` Riana Tauro
2024-04-04 16:07     ` Lucas De Marchi
2024-04-04  3:54 ` [PATCH v5 2/4] drm/xe/hwmon: Update xe_hwmon_get_reg to return struct xe_reg Karthik Poosa
2024-04-04  8:46   ` Jani Nikula
2024-04-04  9:54     ` Poosa, Karthik
2024-04-04 16:06       ` Lucas De Marchi
2024-04-04  3:54 ` [PATCH v5 3/4] drm/xe/hwmon: Update xe_hwmon_process_reg Karthik Poosa
2024-04-04 10:35   ` Riana Tauro
2024-04-04 10:52     ` Poosa, Karthik
2024-04-04  3:54 ` [PATCH v5 4/4] drm/xe/hwmon: Cast to output precision before multiplying operands Karthik Poosa
2024-04-04 11:48   ` Ghimiray, Himal Prasad
2024-04-04  4:48 ` ✓ CI.Patch_applied: success for drm/xe/hwmon: Update xe hwmon with couple of fixes (rev5) Patchwork
2024-04-04  4:48 ` ✗ CI.checkpatch: warning " Patchwork
2024-04-04  4:49 ` ✓ CI.KUnit: success " Patchwork
2024-04-04  5:00 ` ✓ CI.Build: " Patchwork
2024-04-04  5:04 ` ✓ CI.Hooks: " Patchwork
2024-04-04  5:10 ` ✓ CI.checksparse: " Patchwork
2024-04-04  5:48 ` ✓ 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=85wmpdvk34.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=anshuman.gupta@intel.com \
    --cc=badal.nilawar@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=karthik.poosa@intel.com \
    --cc=lucas.demarchi@intel.com \
    --cc=rodrigo.vivi@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.