From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Jessica Zhang <quic_jesszhan@quicinc.com>
Cc: igt-dev@lists.freedesktop.org, quic_aravindh@quicinc.com,
petri.latvala@intel.com
Subject: Re: [igt-dev] [PATCH i-g-t v1] lib/igt_kms: Call get_assigned_primary only if display is initialized
Date: Fri, 03 Jun 2022 18:25:15 -0700 [thread overview]
Message-ID: <87leud9q4k.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20220603183257.145-1-quic_jesszhan@quicinc.com>
On Fri, 03 Jun 2022 11:32:57 -0700, Jessica Zhang wrote:
>
> Move code for getting the driver-assigned primary plane to before the
> `out` tag. This will avoid any crashes in cases where the display
> resources haven't been initialized.
We hit this issue and were considering an indentical fix so:
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
And will merge this right now too.
> Signed-off-by: Jessica Zhang <quic_jesszhan@quicinc.com>
> ---
> lib/igt_kms.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/lib/igt_kms.c b/lib/igt_kms.c
> index af4fb85b9a7b..36dfcfcb886d 100644
> --- a/lib/igt_kms.c
> +++ b/lib/igt_kms.c
> @@ -2528,9 +2528,6 @@ void igt_display_require(igt_display_t *display, int drm_fd)
> /* Set reasonable default values for every object in the display. */
> igt_display_reset(display);
>
> -out:
> - LOG_UNINDENT(display);
> -
> for_each_pipe(display, i) {
> igt_pipe_t *pipe = &display->pipes[i];
> igt_output_t *output;
> @@ -2565,6 +2562,9 @@ out:
> }
> }
>
> +out:
> + LOG_UNINDENT(display);
> +
> if (display->n_pipes && display->n_outputs)
> igt_enable_connectors(drm_fd);
> else
> --
> 2.31.0
>
next prev parent reply other threads:[~2022-06-04 1:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-03 18:32 [igt-dev] [PATCH i-g-t v1] lib/igt_kms: Call get_assigned_primary only if display is initialized Jessica Zhang
2022-06-04 1:25 ` Dixit, Ashutosh [this message]
2022-06-04 1:51 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-06-04 4:34 ` [igt-dev] ✗ 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=87leud9q4k.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=petri.latvala@intel.com \
--cc=quic_aravindh@quicinc.com \
--cc=quic_jesszhan@quicinc.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.