From: Jani Nikula <jani.nikula@intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm/i915/soc: stop using IS_GEN9_LP() and IS_GEN9_BC()
Date: Mon, 23 Sep 2024 12:06:20 +0300 [thread overview]
Message-ID: <87ikum7n8z.fsf@intel.com> (raw)
In-Reply-To: <ZusUOrwUYY3rpMW3@intel.com>
On Wed, 18 Sep 2024, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> On Wed, Sep 18, 2024 at 05:50:42PM +0300, Jani Nikula wrote:
>> diff --git a/drivers/gpu/drm/i915/soc/intel_pch.c b/drivers/gpu/drm/i915/soc/intel_pch.c
>> index 542eea50093c..f7e3745bb1dc 100644
>> --- a/drivers/gpu/drm/i915/soc/intel_pch.c
>> +++ b/drivers/gpu/drm/i915/soc/intel_pch.c
>> @@ -122,9 +122,12 @@ intel_pch_type(const struct drm_i915_private *dev_priv, unsigned short id)
>> case INTEL_PCH_TGP_DEVICE_ID_TYPE:
>> case INTEL_PCH_TGP2_DEVICE_ID_TYPE:
>> drm_dbg_kms(&dev_priv->drm, "Found Tiger Lake LP PCH\n");
>> - drm_WARN_ON(&dev_priv->drm, !IS_TIGERLAKE(dev_priv) &&
>> - !IS_ROCKETLAKE(dev_priv) &&
>> - !IS_GEN9_BC(dev_priv));
>> + drm_WARN_ON(&dev_priv->drm, !(IS_TIGERLAKE(dev_priv) ||
>> + IS_ROCKETLAKE(dev_priv) ||
>> + IS_SKYLAKE(dev_priv) ||
>> + IS_KABYLAKE(dev_priv) ||
>> + IS_COFFEELAKE(dev_priv) ||
>> + IS_COMETLAKE(dev_priv)));
>
> The !A&&!B form seems more popular in these, so I'd suggest
> using that. JSP looks to be the only one that had to do it
> differently for whatever reason...
>
> Either way
> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Thanks, I'll need to rebase the series anyway, I'll switch to the more
common style.
BR,
Jani.
--
Jani Nikula, Intel
next prev parent reply other threads:[~2024-09-23 9:06 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-18 14:50 [PATCH 1/2] drm/i915: remove IS_LP() Jani Nikula
2024-09-18 14:50 ` [PATCH 2/2] drm/i915/soc: stop using IS_GEN9_LP() and IS_GEN9_BC() Jani Nikula
2024-09-18 17:56 ` Ville Syrjälä
2024-09-23 9:06 ` Jani Nikula [this message]
2024-09-18 17:51 ` ✓ CI.Patch_applied: success for series starting with [1/2] drm/i915: remove IS_LP() Patchwork
2024-09-18 17:52 ` ✗ CI.checkpatch: warning " Patchwork
2024-09-18 17:53 ` ✓ CI.KUnit: success " Patchwork
2024-09-18 17:55 ` ✗ Fi.CI.CHECKPATCH: warning " Patchwork
2024-09-18 17:55 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-09-18 17:58 ` [PATCH 1/2] " Ville Syrjälä
2024-09-18 18:05 ` ✓ CI.Build: success for series starting with [1/2] " Patchwork
2024-09-18 18:05 ` ✓ Fi.CI.BAT: " Patchwork
2024-09-18 18:07 ` ✓ CI.Hooks: " Patchwork
2024-09-18 18:08 ` ✗ CI.checksparse: warning " Patchwork
2024-09-18 18:27 ` ✓ CI.BAT: success " Patchwork
2024-09-19 4:39 ` ✗ CI.FULL: failure " Patchwork
2024-09-19 6:46 ` ✗ Fi.CI.IGT: " 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=87ikum7n8z.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=ville.syrjala@linux.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.