From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by gabe.freedesktop.org (Postfix) with ESMTPS id DAC956EA42 for ; Fri, 18 Jun 2021 16:45:48 +0000 (UTC) Received: by mail-lf1-x12a.google.com with SMTP id r5so17703154lfr.5 for ; Fri, 18 Jun 2021 09:45:48 -0700 (PDT) MIME-Version: 1.0 References: <20210618142855.5750-1-Anson.Jacob@amd.com> <20210618142855.5750-5-Anson.Jacob@amd.com> In-Reply-To: <20210618142855.5750-5-Anson.Jacob@amd.com> From: Mark Yacoub Date: Fri, 18 Jun 2021 12:45:36 -0400 Message-ID: Subject: Re: [igt-dev] [PATCH i-g-t 4/4] tests/kms_plane_multiple: Disable CRTC if no planes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: Anson Jacob Cc: igt-dev@lists.freedesktop.org, Mark Yacoub , Petri Latvala , Victor Lu List-ID: On Fri, Jun 18, 2021 at 10:29 AM Anson Jacob wrote: > > From: Victor Lu > > [why] > amdgpu will reject commits where the CRTC is enabled and there are no > active planes. > > [how] > Disable the CRTC when committing with no active planes. Have we decided that this is the way moving forward? I got no strong opinion, just wondering. > > Signed-off-by: Victor Lu > Acked-by: Anson Jacob > Cc: Petri Latvala > Cc: Rodrigo Siqueira > Cc: Harry Wentland > Cc: Mark Yacoub For posterity, please use markyacoub@chromium.org. thanks! > --- > tests/kms_plane_multiple.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tests/kms_plane_multiple.c b/tests/kms_plane_multiple.c > index 4424b864b2d6..805c2a2130d7 100644 > --- a/tests/kms_plane_multiple.c > +++ b/tests/kms_plane_multiple.c > @@ -315,6 +315,8 @@ test_plane_position_with_output(data_t *data, enum pipe pipe, > for_each_plane_on_pipe(&data->display, pipe, plane) > igt_plane_set_fb(plane, NULL); > > + /* Disable CRTC if no active planes */ > + igt_output_set_pipe(output, PIPE_NONE); > igt_display_commit2(&data->display, COMMIT_ATOMIC); > > for (int x = 0; x < c; x++) > @@ -344,6 +346,8 @@ test_plane_position_with_output(data_t *data, enum pipe pipe, > for_each_plane_on_pipe(&data->display, pipe, plane) > igt_plane_set_fb(plane, NULL); > > + /* Disable CRTC if no active planes */ > + igt_output_set_pipe(output, PIPE_NONE); > igt_display_commit2(&data->display, COMMIT_ATOMIC); > > for (int x = 0; x < c; x++) > -- > 2.25.1 > > _______________________________________________ > igt-dev mailing list > igt-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/igt-dev _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev