From: Jani Nikula <jani.nikula@linux.intel.com>
To: "Gustavo Sousa" <gustavo.sousa@intel.com>,
"Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org,
Matt Roper <matthew.d.roper@intel.com>
Subject: Re: [PATCH v3 1/3] drm/i915/display: Convert intel_bw.c internally to intel_display
Date: Tue, 11 Mar 2025 11:26:32 +0200 [thread overview]
Message-ID: <878qpbhq9j.fsf@intel.com> (raw)
In-Reply-To: <174163322752.59796.9905613328560506890@intel.com>
On Mon, 10 Mar 2025, Gustavo Sousa <gustavo.sousa@intel.com> wrote:
> Quoting Ville Syrjälä (2025-03-10 13:47:57-03:00)
>>On Fri, Mar 07, 2025 at 04:25:11PM -0300, Gustavo Sousa wrote:
>>> Update intel_bw.c internally use intel_display. Conversion of the public
>>> interface will come as a follow-up.
>>>
>>> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
>>> Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
>>> ---
>>> drivers/gpu/drm/i915/display/intel_bw.c | 416 +++++++++++++++++---------------
>>> 1 file changed, 217 insertions(+), 199 deletions(-)
>>>
>>> diff --git a/drivers/gpu/drm/i915/display/intel_bw.c b/drivers/gpu/drm/i915/display/intel_bw.c
>>> index 048be287224774110d94fe2944daa580d8dc20a6..d71dc796f1793f546fe04146e5987a9be56bae9b 100644
>>> --- a/drivers/gpu/drm/i915/display/intel_bw.c
>>> +++ b/drivers/gpu/drm/i915/display/intel_bw.c
>>> @@ -11,6 +11,7 @@
>>> #include "intel_atomic.h"
>>> #include "intel_bw.h"
>>> #include "intel_cdclk.h"
>>> +#include "intel_de.h"
>>> #include "intel_display_core.h"
>>> #include "intel_display_types.h"
>>> #include "skl_watermark.h"
>>> @@ -39,14 +40,14 @@ struct intel_qgv_info {
>>> u8 deinterleave;
>>> };
>>>
>>> -static int dg1_mchbar_read_qgv_point_info(struct drm_i915_private *dev_priv,
>>> +static int dg1_mchbar_read_qgv_point_info(struct intel_display *display,
>>> struct intel_qgv_point *sp,
>>> int point)
>>> {
>>> u32 dclk_ratio, dclk_reference;
>>> u32 val;
>>>
>>> - val = intel_uncore_read(&dev_priv->uncore, SA_PERF_STATUS_0_0_0_MCHBAR_PC);
>>> + val = intel_de_read(display, SA_PERF_STATUS_0_0_0_MCHBAR_PC);
>>
>>Not entirely convinced we want to start using intel_de_*() on
>>mchbar registers.
>>
>>Apart from that the rest looks fine.
>
> Okay. I sent v4 with reverting this function to use intel_uncore_read().
The question becomes, *what* are we supposed to do with this stuff in
the future? Kind of want to get rid of all intel_uncore_* in display/.
BR,
Jani.
--
Jani Nikula, Intel
next prev parent reply other threads:[~2025-03-11 9:26 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-07 19:25 [PATCH v3 0/3] drm/i915/xe3lpd: Update bandwidth parameters Gustavo Sousa
2025-03-07 19:25 ` [PATCH v3 1/3] drm/i915/display: Convert intel_bw.c internally to intel_display Gustavo Sousa
2025-03-10 16:47 ` Ville Syrjälä
2025-03-10 19:00 ` Gustavo Sousa
2025-03-11 9:26 ` Jani Nikula [this message]
2025-03-11 11:43 ` Gustavo Sousa
2025-03-07 19:25 ` [PATCH v3 2/3] drm/i915/display: Convert intel_bw.c externally " Gustavo Sousa
2025-03-10 16:49 ` Ville Syrjälä
2025-03-07 19:25 ` [PATCH v3 3/3] drm/i915/xe3lpd: Update bandwidth parameters Gustavo Sousa
2025-03-07 20:29 ` ✗ Fi.CI.SPARSE: warning for drm/i915/xe3lpd: Update bandwidth parameters (rev3) Patchwork
2025-03-07 20:57 ` ✗ i915.CI.BAT: failure " Patchwork
2025-03-07 23:42 ` ✓ CI.Patch_applied: success " Patchwork
2025-03-07 23:42 ` ✓ CI.checkpatch: " Patchwork
2025-03-07 23:44 ` ✓ CI.KUnit: " Patchwork
2025-03-08 0:00 ` ✓ CI.Build: " Patchwork
2025-03-08 0:03 ` ✓ CI.Hooks: " Patchwork
2025-03-08 0:04 ` ✗ CI.checksparse: warning " Patchwork
2025-03-08 0:24 ` ✓ Xe.CI.BAT: success " Patchwork
2025-03-09 12:52 ` ✗ Xe.CI.Full: failure " Patchwork
2025-03-10 13:12 ` [PATCH v3 0/3] drm/i915/xe3lpd: Update bandwidth parameters Jani Nikula
2025-03-10 16:37 ` Ville Syrjälä
2025-03-10 19:01 ` Gustavo Sousa
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=878qpbhq9j.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=gustavo.sousa@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.d.roper@intel.com \
--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.