From: "Michał Grzelak" <michal.grzelak@intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: "Michał Grzelak" <michal.grzelak@intel.com>,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [v2] drm/{i915, xe}/pcode: move display pcode calls to parent interface
Date: Mon, 19 Jan 2026 23:57:49 +0100 (CET) [thread overview]
Message-ID: <21d8ca2f-c021-ac5f-4807-272890d39ab1@intel.com> (raw)
In-Reply-To: <037265c310c9f3901e2e47d00e2e225c76370f94@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1182 bytes --]
On Mon, 19 Jan 2026, Jani Nikula wrote:
> On Fri, 16 Jan 2026, Michał Grzelak <michal.grzelak@intel.com> wrote:
>> While moving the code, should we rename val & val1 into val1 & val2 (or
>> val2 & val1)? I think even renaming val -> val0 would suffice.
>
> The variable naming matches the register macro naming. Historically,
> there was only GEN6_PCODE_DATA, and GEN6_PCODE_DATA1 was added
> afterwards. Hence val and val1.
>
> Nowadays the spec has DATA0 and DATA1, so renaming both the register
> macro and the variable to DATA0 and val0, respectively, would be fine.
One question though: should the renaming include also variable from
functions which take only val as argument instead of val & val1?
E.g. should we rename val->val0 from snb_pcode_write_timeout() or
is it unnecessary?
Asking since unsure if the argument consistenly references generic
variable name or former register macro.
BR,
Michał
>
> Just not in this patch. Generally, only do one thing at a time.
>
>> Or (if the comment is valid) should I send it as a separate patch?
>
> The latter.
>
>> Reviewed-by: Michał Grzelak <michal.grzelak@intel.com>
>
> Thanks,
> Jani.
>
>
> --
> Jani Nikula, Intel
>
prev parent reply other threads:[~2026-01-19 22:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-15 11:33 [PATCH v2] drm/{i915, xe}/pcode: move display pcode calls to parent interface Jani Nikula
2026-01-15 11:39 ` ✗ CI.checkpatch: warning for drm/{i915, xe}/pcode: move display pcode calls to parent interface (rev2) Patchwork
2026-01-15 11:40 ` ✓ CI.KUnit: success " Patchwork
2026-01-15 12:15 ` ✓ Xe.CI.BAT: " Patchwork
2026-01-15 13:20 ` ✗ Xe.CI.Full: failure " Patchwork
2026-01-16 17:38 ` [v2] drm/{i915, xe}/pcode: move display pcode calls to parent interface Michał Grzelak
2026-01-19 10:14 ` Jani Nikula
2026-01-19 22:57 ` Michał Grzelak [this message]
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=21d8ca2f-c021-ac5f-4807-272890d39ab1@intel.com \
--to=michal.grzelak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox