From: Jani Nikula <jani.nikula@linux.intel.com>
To: Arun R Murthy <arun.r.murthy@intel.com>, intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCHv3] drm/i915/display: Print useful information on error
Date: Mon, 05 Jun 2023 18:22:01 +0300 [thread overview]
Message-ID: <87fs76aq92.fsf@intel.com> (raw)
In-Reply-To: <20230602022157.221225-1-arun.r.murthy@intel.com>
On Fri, 02 Jun 2023, Arun R Murthy <arun.r.murthy@intel.com> wrote:
> For modifier not supporting async flip, print the modifier and display
> version. Helps in reading the error message.
>
> v2: Reframe the error message (Jani)
>
> Signed-off-by: Arun R Murthy <arun.r.murthy@intel.com>
Thanks for the patch, pushed to din.
BR,
Jani.
> ---
> drivers/gpu/drm/i915/display/intel_display.c | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index f51a55f4e9d0..f23dd937c27c 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -6012,8 +6012,9 @@ static int intel_async_flip_check_hw(struct intel_atomic_state *state, struct in
> */
> if (DISPLAY_VER(i915) < 12) {
> drm_dbg_kms(&i915->drm,
> - "[PLANE:%d:%s] Modifier does not support async flips\n",
> - plane->base.base.id, plane->base.name);
> + "[PLANE:%d:%s] Modifier 0x%llx does not support async flip on display ver %d\n",
> + plane->base.base.id, plane->base.name,
> + new_plane_state->hw.fb->modifier, DISPLAY_VER(i915));
> return -EINVAL;
> }
> break;
> @@ -6025,8 +6026,9 @@ static int intel_async_flip_check_hw(struct intel_atomic_state *state, struct in
> break;
> default:
> drm_dbg_kms(&i915->drm,
> - "[PLANE:%d:%s] Modifier does not support async flips\n",
> - plane->base.base.id, plane->base.name);
> + "[PLANE:%d:%s] Modifier 0x%llx does not support async flip\n",
> + plane->base.base.id, plane->base.name,
> + new_plane_state->hw.fb->modifier);
> return -EINVAL;
> }
--
Jani Nikula, Intel Open Source Graphics Center
next prev parent reply other threads:[~2023-06-05 15:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-01 5:15 [Intel-gfx] [PATCH] drm/i915/display: Print usefull information on error Arun R Murthy
2023-06-01 6:13 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2023-06-01 6:23 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-06-01 9:41 ` [Intel-gfx] [PATCH] " Jani Nikula
2023-06-01 10:27 ` [Intel-gfx] [PATCHv2] drm/i915/display: Print useful " Arun R Murthy
2023-06-01 14:00 ` Jani Nikula
2023-06-01 19:15 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/display: Print usefull information on error (rev2) Patchwork
2023-06-02 2:21 ` [Intel-gfx] [PATCHv3] drm/i915/display: Print useful information on error Arun R Murthy
2023-06-05 15:22 ` Jani Nikula [this message]
2023-06-02 3:16 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/display: Print usefull information on error (rev3) Patchwork
2023-06-04 6:03 ` [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=87fs76aq92.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=arun.r.murthy@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/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.