* [Nouveau] [PATCH i-g-t] tests/kms_cursor_crc: Test 32x32 cursors
@ 2021-03-17 22:45 Lyude
2021-03-18 6:39 ` [Nouveau] [igt-dev] " Martin Peres
0 siblings, 1 reply; 5+ messages in thread
From: Lyude @ 2021-03-17 22:45 UTC (permalink / raw)
To: igt-dev, nouveau; +Cc: Ben Skeggs
From: Lyude Paul <lyude@redhat.com>
Since pre-nve4 only has two cursor sizes (32x32 and 64x64), we should at
least test both of them.
Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: Martin Peres <martin.peres@free.fr>
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Jeremy Cline <jcline@redhat.com>
---
tests/kms_cursor_crc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c
index 0be8f7f8..c70c4a8f 100644
--- a/tests/kms_cursor_crc.c
+++ b/tests/kms_cursor_crc.c
@@ -683,7 +683,7 @@ static void run_tests_on_pipe(data_t *data, enum pipe pipe)
igt_fixture
igt_remove_fb(data->drm_fd, &data->fb);
- for (cursor_size = 64; cursor_size <= 512; cursor_size *= 2) {
+ for (cursor_size = 32; cursor_size <= 512; cursor_size *= 2) {
int w = cursor_size;
int h = cursor_size;
--
2.29.2
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Nouveau] [igt-dev] [PATCH i-g-t] tests/kms_cursor_crc: Test 32x32 cursors
2021-03-17 22:45 [Nouveau] [PATCH i-g-t] tests/kms_cursor_crc: Test 32x32 cursors Lyude
@ 2021-03-18 6:39 ` Martin Peres
2021-03-18 9:27 ` Petri Latvala
2021-03-18 12:39 ` Ville Syrjälä
0 siblings, 2 replies; 5+ messages in thread
From: Martin Peres @ 2021-03-18 6:39 UTC (permalink / raw)
To: Lyude, igt-dev, nouveau, Petri Latvala; +Cc: Ben Skeggs
On 18/03/2021 00:45, Lyude wrote:
> From: Lyude Paul <lyude@redhat.com>
>
> Since pre-nve4 only has two cursor sizes (32x32 and 64x64), we should at
> least test both of them.
This adds 36 subtests, which take about 1s in average. So the runtime is
not significantly increased on the Intel side.
It also seems that Intel should add skips or fix the kernel to support
these 32xXX format.
@Petri, could you get someone to investigate this?
In the mean time, here is my:
Reviewed-by: Martin Peres <martin.peres@mupuf.org>
Martin
>
> Signed-off-by: Lyude Paul <lyude@redhat.com>
> Cc: Martin Peres <martin.peres@free.fr>
> Cc: Ben Skeggs <bskeggs@redhat.com>
> Cc: Jeremy Cline <jcline@redhat.com>
> ---
> tests/kms_cursor_crc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c
> index 0be8f7f8..c70c4a8f 100644
> --- a/tests/kms_cursor_crc.c
> +++ b/tests/kms_cursor_crc.c
> @@ -683,7 +683,7 @@ static void run_tests_on_pipe(data_t *data, enum pipe pipe)
> igt_fixture
> igt_remove_fb(data->drm_fd, &data->fb);
>
> - for (cursor_size = 64; cursor_size <= 512; cursor_size *= 2) {
> + for (cursor_size = 32; cursor_size <= 512; cursor_size *= 2) {
> int w = cursor_size;
> int h = cursor_size;
>
>
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Nouveau] [igt-dev] [PATCH i-g-t] tests/kms_cursor_crc: Test 32x32 cursors
2021-03-18 6:39 ` [Nouveau] [igt-dev] " Martin Peres
@ 2021-03-18 9:27 ` Petri Latvala
2021-03-18 12:39 ` Ville Syrjälä
1 sibling, 0 replies; 5+ messages in thread
From: Petri Latvala @ 2021-03-18 9:27 UTC (permalink / raw)
To: Martin Peres, Ville Syrjälä, Juha-Pekka Heikkila
Cc: igt-dev, nouveau, Ben Skeggs
On Thu, Mar 18, 2021 at 08:39:01AM +0200, Martin Peres wrote:
> On 18/03/2021 00:45, Lyude wrote:
> > From: Lyude Paul <lyude@redhat.com>
> >
> > Since pre-nve4 only has two cursor sizes (32x32 and 64x64), we should at
> > least test both of them.
>
> This adds 36 subtests, which take about 1s in average. So the runtime is not
> significantly increased on the Intel side.
>
> It also seems that Intel should add skips or fix the kernel to support these
> 32xXX format.
>
> @Petri, could you get someone to investigate this?
Ville, J-P?
--
Petri Latvala
>
> In the mean time, here is my:
>
> Reviewed-by: Martin Peres <martin.peres@mupuf.org>
>
> Martin
> >
> > Signed-off-by: Lyude Paul <lyude@redhat.com>
> > Cc: Martin Peres <martin.peres@free.fr>
> > Cc: Ben Skeggs <bskeggs@redhat.com>
> > Cc: Jeremy Cline <jcline@redhat.com>
> > ---
> > tests/kms_cursor_crc.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c
> > index 0be8f7f8..c70c4a8f 100644
> > --- a/tests/kms_cursor_crc.c
> > +++ b/tests/kms_cursor_crc.c
> > @@ -683,7 +683,7 @@ static void run_tests_on_pipe(data_t *data, enum pipe pipe)
> > igt_fixture
> > igt_remove_fb(data->drm_fd, &data->fb);
> > - for (cursor_size = 64; cursor_size <= 512; cursor_size *= 2) {
> > + for (cursor_size = 32; cursor_size <= 512; cursor_size *= 2) {
> > int w = cursor_size;
> > int h = cursor_size;
> >
> _______________________________________________
> igt-dev mailing list
> igt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Nouveau] [igt-dev] [PATCH i-g-t] tests/kms_cursor_crc: Test 32x32 cursors
2021-03-18 6:39 ` [Nouveau] [igt-dev] " Martin Peres
2021-03-18 9:27 ` Petri Latvala
@ 2021-03-18 12:39 ` Ville Syrjälä
2021-03-18 18:06 ` Lyude Paul
1 sibling, 1 reply; 5+ messages in thread
From: Ville Syrjälä @ 2021-03-18 12:39 UTC (permalink / raw)
To: Martin Peres; +Cc: Petri Latvala, nouveau, igt-dev, Ben Skeggs
On Thu, Mar 18, 2021 at 08:39:01AM +0200, Martin Peres wrote:
> On 18/03/2021 00:45, Lyude wrote:
> > From: Lyude Paul <lyude@redhat.com>
> >
> > Since pre-nve4 only has two cursor sizes (32x32 and 64x64), we should at
> > least test both of them.
>
> This adds 36 subtests, which take about 1s in average. So the runtime is
> not significantly increased on the Intel side.
>
> It also seems that Intel should add skips or fix the kernel to support
> these 32xXX format.
Intel hw at least does not support 32x32 cursors. We should
probably just just probe the kernel to see if it accepts the
requested cursor size, and skip the subtest if not. That
would also let us remove the i915 platform specific information
from has_nonsquare_cursors().
--
Ville Syrjälä
Intel
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Nouveau] [igt-dev] [PATCH i-g-t] tests/kms_cursor_crc: Test 32x32 cursors
2021-03-18 12:39 ` Ville Syrjälä
@ 2021-03-18 18:06 ` Lyude Paul
0 siblings, 0 replies; 5+ messages in thread
From: Lyude Paul @ 2021-03-18 18:06 UTC (permalink / raw)
To: Ville Syrjälä, Martin Peres
Cc: igt-dev, nouveau, Petri Latvala, Ben Skeggs
On Thu, 2021-03-18 at 14:39 +0200, Ville Syrjälä wrote:
> On Thu, Mar 18, 2021 at 08:39:01AM +0200, Martin Peres wrote:
> > On 18/03/2021 00:45, Lyude wrote:
> > > From: Lyude Paul <lyude@redhat.com>
> > >
> > > Since pre-nve4 only has two cursor sizes (32x32 and 64x64), we should at
> > > least test both of them.
> >
> > This adds 36 subtests, which take about 1s in average. So the runtime is
> > not significantly increased on the Intel side.
> >
> > It also seems that Intel should add skips or fix the kernel to support
> > these 32xXX format.
>
> Intel hw at least does not support 32x32 cursors. We should
> probably just just probe the kernel to see if it accepts the
> requested cursor size, and skip the subtest if not. That
> would also let us remove the i915 platform specific information
> from has_nonsquare_cursors().
sgtm, will respin with these changes in just a moment
>
--
Sincerely,
Lyude Paul (she/her)
Software Engineer at Red Hat
Note: I deal with a lot of emails and have a lot of bugs on my plate. If you've
asked me a question, are waiting for a review/merge on a patch, etc. and I
haven't responded in a while, please feel free to send me another email to check
on my status. I don't bite!
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-03-18 18:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-17 22:45 [Nouveau] [PATCH i-g-t] tests/kms_cursor_crc: Test 32x32 cursors Lyude
2021-03-18 6:39 ` [Nouveau] [igt-dev] " Martin Peres
2021-03-18 9:27 ` Petri Latvala
2021-03-18 12:39 ` Ville Syrjälä
2021-03-18 18:06 ` Lyude Paul
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).