From: Jani Nikula <jani.nikula@linux.intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>,
intel-gfx@lists.freedesktop.org
Cc: Lucas De Marchi <lucas.demarchi@intel.com>,
dri-devel@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH v2 0/8] Add _PICK_EVEN_2RANGES
Date: Mon, 23 Jan 2023 12:39:13 +0200 [thread overview]
Message-ID: <87ilgx8rhq.fsf@intel.com> (raw)
In-Reply-To: <20230120193457.3295977-1-lucas.demarchi@intel.com>
On Fri, 20 Jan 2023, Lucas De Marchi <lucas.demarchi@intel.com> wrote:
> Add a new macro, _PICK_EVEN_2RANGES, that supports using 2 address
> ranges. This can be considered a v2 of
> https://patchwork.freedesktop.org/series/109606/
>
> I think I converted all the _PICK() uses that could be easily done
> without making it much harder to read. We do have some cases of 3
> ranges: I left those alone.
>
> As commented in the original series and like Jani I think we may need
> something else to cover all the use cases in future. Right now I don't
> think we have a good alternative though. This new macro both improves
> the current code and can be used for cases the ranges change in new
> platforms, so I think it's good enough. In future I think just saving
> the reg during initialization and using different functions if the
> bitfields change may be an alternative.
Did not review, but on the approach,
Acked-by: Jani Nikula <jani.nikula@intel.com>
>
> This was lightly tested on ADL-S and DG2.
>
> Lucas De Marchi (8):
> drm/i915: Add _PICK_EVEN_2RANGES()
> drm/i915: Fix coding style on DPLL*_ENABLE defines
> drm/i915: Convert pll macros to _PICK_EVEN_2RANGES
> drm/i915: Replace _MMIO_PHY3() with _PICK_EVEN_2RANGES()
> drm/i915: Convert PIPE3/PORT3 to _PICK_EVEN_2RANGES()
> drm/i915: Convert _FIA() to _PICK_EVEN_2RANGES()
> drm/i915: Convert MBUS_ABOX_CTL() to _PICK_EVEN_2RANGES()
> drm/i915: Convert PALETTE() to _PICK_EVEN_2RANGES()
>
> .../drm/i915/display/intel_display_reg_defs.h | 10 +-
> .../gpu/drm/i915/display/intel_mg_phy_regs.h | 4 +-
> drivers/gpu/drm/i915/i915_reg.h | 106 +++++++++---------
> drivers/gpu/drm/i915/i915_reg_defs.h | 28 +++++
> 4 files changed, 89 insertions(+), 59 deletions(-)
--
Jani Nikula, Intel Open Source Graphics Center
WARNING: multiple messages have this Message-ID (diff)
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>,
intel-gfx@lists.freedesktop.org
Cc: Lucas De Marchi <lucas.demarchi@intel.com>,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v2 0/8] Add _PICK_EVEN_2RANGES
Date: Mon, 23 Jan 2023 12:39:13 +0200 [thread overview]
Message-ID: <87ilgx8rhq.fsf@intel.com> (raw)
In-Reply-To: <20230120193457.3295977-1-lucas.demarchi@intel.com>
On Fri, 20 Jan 2023, Lucas De Marchi <lucas.demarchi@intel.com> wrote:
> Add a new macro, _PICK_EVEN_2RANGES, that supports using 2 address
> ranges. This can be considered a v2 of
> https://patchwork.freedesktop.org/series/109606/
>
> I think I converted all the _PICK() uses that could be easily done
> without making it much harder to read. We do have some cases of 3
> ranges: I left those alone.
>
> As commented in the original series and like Jani I think we may need
> something else to cover all the use cases in future. Right now I don't
> think we have a good alternative though. This new macro both improves
> the current code and can be used for cases the ranges change in new
> platforms, so I think it's good enough. In future I think just saving
> the reg during initialization and using different functions if the
> bitfields change may be an alternative.
Did not review, but on the approach,
Acked-by: Jani Nikula <jani.nikula@intel.com>
>
> This was lightly tested on ADL-S and DG2.
>
> Lucas De Marchi (8):
> drm/i915: Add _PICK_EVEN_2RANGES()
> drm/i915: Fix coding style on DPLL*_ENABLE defines
> drm/i915: Convert pll macros to _PICK_EVEN_2RANGES
> drm/i915: Replace _MMIO_PHY3() with _PICK_EVEN_2RANGES()
> drm/i915: Convert PIPE3/PORT3 to _PICK_EVEN_2RANGES()
> drm/i915: Convert _FIA() to _PICK_EVEN_2RANGES()
> drm/i915: Convert MBUS_ABOX_CTL() to _PICK_EVEN_2RANGES()
> drm/i915: Convert PALETTE() to _PICK_EVEN_2RANGES()
>
> .../drm/i915/display/intel_display_reg_defs.h | 10 +-
> .../gpu/drm/i915/display/intel_mg_phy_regs.h | 4 +-
> drivers/gpu/drm/i915/i915_reg.h | 106 +++++++++---------
> drivers/gpu/drm/i915/i915_reg_defs.h | 28 +++++
> 4 files changed, 89 insertions(+), 59 deletions(-)
--
Jani Nikula, Intel Open Source Graphics Center
next prev parent reply other threads:[~2023-01-23 10:39 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-20 19:34 [Intel-gfx] [PATCH v2 0/8] Add _PICK_EVEN_2RANGES Lucas De Marchi
2023-01-20 19:34 ` Lucas De Marchi
2023-01-20 19:34 ` [Intel-gfx] [PATCH v2 1/8] drm/i915: Add _PICK_EVEN_2RANGES() Lucas De Marchi
2023-01-20 19:34 ` Lucas De Marchi
2023-01-21 6:14 ` [Intel-gfx] " Srivatsa, Anusha
2023-01-21 6:14 ` Srivatsa, Anusha
2023-01-22 1:28 ` Lucas De Marchi
2023-01-23 11:00 ` Jani Nikula
2023-01-23 16:15 ` Srivatsa, Anusha
2023-01-23 16:15 ` Srivatsa, Anusha
2023-01-23 16:53 ` Lucas De Marchi
2023-01-23 10:38 ` Jani Nikula
2023-01-23 10:38 ` Jani Nikula
2023-01-24 7:45 ` [Intel-gfx] " Lucas De Marchi
2023-01-24 7:45 ` Lucas De Marchi
2023-01-25 18:24 ` [Intel-gfx] [PATCH v2.2] " Lucas De Marchi
2023-01-25 18:24 ` Lucas De Marchi
2023-01-23 17:15 ` [Intel-gfx] [PATCH v2.1] " Lucas De Marchi
2023-01-23 17:15 ` Lucas De Marchi
2023-01-23 17:49 ` [Intel-gfx] " Srivatsa, Anusha
2023-01-23 17:49 ` Srivatsa, Anusha
2023-01-20 19:34 ` [Intel-gfx] [PATCH v2 2/8] drm/i915: Fix coding style on DPLL*_ENABLE defines Lucas De Marchi
2023-01-20 19:34 ` Lucas De Marchi
2023-01-20 20:14 ` [Intel-gfx] " Srivatsa, Anusha
2023-01-20 20:14 ` Srivatsa, Anusha
2023-01-20 19:34 ` [Intel-gfx] [PATCH v2 3/8] drm/i915: Convert pll macros to _PICK_EVEN_2RANGES Lucas De Marchi
2023-01-20 19:34 ` Lucas De Marchi
2023-01-23 19:12 ` [Intel-gfx] " Srivatsa, Anusha
2023-01-23 19:12 ` Srivatsa, Anusha
2023-01-20 19:34 ` [Intel-gfx] [PATCH v2 4/8] drm/i915: Replace _MMIO_PHY3() with _PICK_EVEN_2RANGES() Lucas De Marchi
2023-01-20 19:34 ` Lucas De Marchi
2023-01-21 5:58 ` [Intel-gfx] " Srivatsa, Anusha
2023-01-21 5:58 ` Srivatsa, Anusha
2023-01-20 19:34 ` [Intel-gfx] [PATCH v2 5/8] drm/i915: Convert PIPE3/PORT3 to _PICK_EVEN_2RANGES() Lucas De Marchi
2023-01-20 19:34 ` Lucas De Marchi
2023-01-21 6:00 ` [Intel-gfx] " Srivatsa, Anusha
2023-01-21 6:00 ` Srivatsa, Anusha
2023-01-20 19:34 ` [Intel-gfx] [PATCH v2 6/8] drm/i915: Convert _FIA() " Lucas De Marchi
2023-01-20 19:34 ` Lucas De Marchi
2023-01-21 6:01 ` [Intel-gfx] " Srivatsa, Anusha
2023-01-21 6:01 ` Srivatsa, Anusha
2023-01-20 19:34 ` [Intel-gfx] [PATCH v2 7/8] drm/i915: Convert MBUS_ABOX_CTL() " Lucas De Marchi
2023-01-20 19:34 ` Lucas De Marchi
2023-01-21 6:04 ` [Intel-gfx] " Srivatsa, Anusha
2023-01-21 6:04 ` Srivatsa, Anusha
2023-01-20 19:34 ` [Intel-gfx] [PATCH v2 8/8] drm/i915: Convert PALETTE() " Lucas De Marchi
2023-01-20 19:34 ` Lucas De Marchi
2023-01-21 6:06 ` [Intel-gfx] " Srivatsa, Anusha
2023-01-21 6:06 ` Srivatsa, Anusha
2023-01-20 21:04 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Add _PICK_EVEN_2RANGES Patchwork
2023-01-20 21:17 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-01-21 20:55 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2023-01-23 10:39 ` Jani Nikula [this message]
2023-01-23 10:39 ` [PATCH v2 0/8] " Jani Nikula
2023-01-23 19:27 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Add _PICK_EVEN_2RANGES (rev2) Patchwork
2023-01-23 19:44 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-01-24 4:48 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2023-01-26 1:33 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for Add _PICK_EVEN_2RANGES (rev3) Patchwork
2023-01-26 1:52 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-01-26 12:13 ` [Intel-gfx] ✓ 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=87ilgx8rhq.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=lucas.demarchi@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.