From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
intel-gfx@lists.freedesktop.org
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v2 1/6] drm/i915/bios: Use drm_dbg_kms() consistently
Date: Tue, 24 Sep 2024 16:52:57 +0300 [thread overview]
Message-ID: <87ikul40qu.fsf@intel.com> (raw)
In-Reply-To: <20240923152453.11230-2-ville.syrjala@linux.intel.com>
On Mon, 23 Sep 2024, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Replace the few oddball drm_dbg() calls in VBT related code
> with drm_dbg_kms() as that is what we generally use for all
> display code.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_bios.c | 22 +++++++++++-----------
> 1 file changed, 11 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_bios.c b/drivers/gpu/drm/i915/display/intel_bios.c
> index daa4b9535123..b00aad23d6c2 100644
> --- a/drivers/gpu/drm/i915/display/intel_bios.c
> +++ b/drivers/gpu/drm/i915/display/intel_bios.c
> @@ -1706,8 +1706,8 @@ parse_mipi_config(struct intel_display *display,
> return;
> }
>
> - drm_dbg(display->drm, "Found MIPI Config block, panel index = %d\n",
> - panel_type);
> + drm_dbg_kms(display->drm, "Found MIPI Config block, panel index = %d\n",
> + panel_type);
>
> /*
> * get hold of the correct configuration block and pps data as per
> @@ -2067,8 +2067,8 @@ parse_mipi_sequence(struct intel_display *display,
> return;
> }
>
> - drm_dbg(display->drm, "Found MIPI sequence block v%u\n",
> - sequence->version);
> + drm_dbg_kms(display->drm, "Found MIPI sequence block v%u\n",
> + sequence->version);
>
> seq_data = find_panel_sequence_block(display, sequence, panel_type, &seq_size);
> if (!seq_data)
> @@ -2114,7 +2114,7 @@ parse_mipi_sequence(struct intel_display *display,
>
> fixup_mipi_sequences(display, panel);
>
> - drm_dbg(display->drm, "MIPI related VBT parsing complete\n");
> + drm_dbg_kms(display->drm, "MIPI related VBT parsing complete\n");
> return;
>
> err:
> @@ -2771,9 +2771,9 @@ static bool child_device_size_valid(struct intel_display *display, int size)
> expected_size = child_device_expected_size(display->vbt.version);
> if (expected_size < 0) {
> expected_size = sizeof(struct child_device_config);
> - drm_dbg(display->drm,
> - "Expected child device config size for VBT version %u not known; assuming %d\n",
> - display->vbt.version, expected_size);
> + drm_dbg_kms(display->drm,
> + "Expected child device config size for VBT version %u not known; assuming %d\n",
> + display->vbt.version, expected_size);
> }
>
> /* Flag an error for unexpected size, but continue anyway. */
> @@ -3143,14 +3143,14 @@ static struct vbt_header *oprom_get_vbt(struct intel_display *display,
> goto err_unmap_oprom;
>
> if (sizeof(struct vbt_header) > size) {
> - drm_dbg(display->drm, "VBT header incomplete\n");
> + drm_dbg_kms(display->drm, "VBT header incomplete\n");
> goto err_unmap_oprom;
> }
>
> vbt_size = ioread16(p + offsetof(struct vbt_header, vbt_size));
> if (vbt_size > size) {
> - drm_dbg(display->drm,
> - "VBT incomplete (vbt_size overflows)\n");
> + drm_dbg_kms(display->drm,
> + "VBT incomplete (vbt_size overflows)\n");
> goto err_unmap_oprom;
> }
--
Jani Nikula, Intel
next prev parent reply other threads:[~2024-09-24 13:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-23 15:24 [PATCH v2 0/6] drm/i915/bios: Refactor ROM access Ville Syrjala
2024-09-23 15:24 ` [PATCH v2 1/6] drm/i915/bios: Use drm_dbg_kms() consistently Ville Syrjala
2024-09-24 13:52 ` Jani Nikula [this message]
2024-09-23 15:24 ` [PATCH v2 2/6] drm/i915/bios: Add some size checks to SPI VBT read Ville Syrjala
2024-09-23 15:24 ` [PATCH v2 3/6] drm/i915/bios: Round PCI ROM VBT allocation to multiple of 4 Ville Syrjala
2024-09-23 15:24 ` [PATCH v2 4/6] drm/i915/bios: Extract intel_spi_read16() Ville Syrjala
2024-09-23 15:24 ` [PATCH v2 5/6] drm/i915/bios: Extract vbt_signature[] Ville Syrjala
2024-09-23 15:24 ` [PATCH v2 6/6] drm/i915/bios: Extract soc/intel_rom.c Ville Syrjala
2024-09-26 17:22 ` ✓ Fi.CI.BAT: success for drm/i915/bios: Refactor ROM access (rev2) Patchwork
2024-09-26 17:22 ` ✗ Fi.CI.CHECKPATCH: warning " Patchwork
2024-09-26 17:22 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-09-26 23:12 ` ✗ Fi.CI.IGT: failure " 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=87ikul40qu.fsf@intel.com \
--to=jani.nikula@linux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).