[PATCH] drm/nouveau/bios: set info only when the return is not 0

2022-07-02 Thread Tom Rix
clang static analysis reports drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c:68:17: warning: The right operand of '*' is a garbage value [core.UndefinedBinaryOperatorResult] switch (!!data * *ver) { ^ A switch statement with only a default should be reduced to

Re: [PATCH v4 0/9] drm: selftest: Convert to KUnit

2022-07-02 Thread Javier Martinez Canillas
Hello Maíra, On 7/2/22 15:11, Maíra Canal wrote: > Hi everyone, > > Here is the v4 of the conversion of selftests to KUnit. Since the v3, there > have been minor fixes, asked by Javier. Basically, fixes on the SoB chain and > addition of Copywrites. > > Thanks for your attention and any

[PATCH v4 9/9] drm: selftest: convert drm_mm selftest to KUnit

2022-07-02 Thread Maíra Canal
From: Arthur Grillo Considering the current adoption of the KUnit framework, convert the DRM mm selftest to the KUnit API. Signed-off-by: Arthur Grillo Tested-by: David Gow Acked-by: Daniel Latypov Reviewed-by: Javier Martinez Canillas Signed-off-by: Maíra Canal ---

[PATCH v4 8/9] drm: selftest: convert drm_buddy selftest to KUnit

2022-07-02 Thread Maíra Canal
Considering the current adoption of the KUnit framework, convert the DRM buddy selftest to the KUnit API. Tested-by: David Gow Acked-by: Daniel Latypov Reviewed-by: Javier Martinez Canillas Signed-off-by: Maíra Canal --- drivers/gpu/drm/selftests/Makefile| 2 +-

[PATCH v4 7/9] drm: selftest: convert drm_framebuffer selftest to KUnit

2022-07-02 Thread Maíra Canal
Considering the current adoption of the KUnit framework, convert the DRM framebuffer selftest to the KUnit API. Tested-by: David Gow Acked-by: Daniel Latypov Reviewed-by: Javier Martinez Canillas Signed-off-by: Maíra Canal --- drivers/gpu/drm/selftests/Makefile| 5 +--

[PATCH v4 6/9] drm: selftest: convert drm_dp_mst_helper selftest to KUnit

2022-07-02 Thread Maíra Canal
Considering the current adoption of the KUnit framework, convert the DRM DP MST helper selftest to the KUnit API. Co-developed-by: Rubens Gomes Neto Signed-off-by: Rubens Gomes Neto Tested-by: David Gow Acked-by: Daniel Latypov Reviewed-by: Javier Martinez Canillas Signed-off-by: Maíra Canal

[PATCH v4 5/9] drm: selftest: convert drm_plane_helper selftest to KUnit

2022-07-02 Thread Maíra Canal
Considering the current adoption of the KUnit framework, convert the DRM plane helper selftest to the KUnit API. Co-developed-by: Djakson C. G. Filho Signed-off-by: Djakson C. G. Filho Co-developed-by: Anderson Fraga Signed-off-by: Anderson Fraga Tested-by: David Gow Acked-by: Daniel Latypov

[PATCH v4 4/9] drm: selftest: convert drm_format selftest to KUnit

2022-07-02 Thread Maíra Canal
Considering the current adoption of the KUnit framework, convert the DRM format selftest to the KUnit API. Tested-by: David Gow Acked-by: Daniel Latypov Reviewed-by: Javier Martinez Canillas Signed-off-by: Maíra Canal --- drivers/gpu/drm/selftests/Makefile| 3 +-

[PATCH v4 3/9] drm: selftest: convert drm_rect selftest to KUnit

2022-07-02 Thread Maíra Canal
Considering the current adoption of the KUnit framework, convert the DRM rect selftest to the KUnit API. Co-developed-by: Carlos Veras Signed-off-by: Carlos Veras Co-developed-by: Matheus Vieira Signed-off-by: Matheus Vieira Tested-by: David Gow Acked-by: Daniel Latypov Reviewed-by: Javier

[PATCH v4 2/9] drm: selftest: convert drm_cmdline_parser selftest to KUnit

2022-07-02 Thread Maíra Canal
Considering the current adoption of the KUnit framework, convert the DRM cmdline parser selftest to the KUnit API. Co-developed-by: Arthur Grillo Signed-off-by: Arthur Grillo Tested-by: David Gow Acked-by: Daniel Latypov Reviewed-by: Javier Martinez Canillas Signed-off-by: Maíra Canal ---

[PATCH v4 1/9] drm: selftest: convert drm_damage_helper selftest to KUnit

2022-07-02 Thread Maíra Canal
Considering the current adoption of the KUnit framework, convert the DRM damage helper selftest to the KUnit API. Co-developed-by: Arthur Grillo Signed-off-by: Arthur Grillo Tested-by: David Gow Acked-by: Daniel Latypov Reviewed-by: Javier Martinez Canillas Signed-off-by: Maíra Canal ---

[PATCH v4 0/9] drm: selftest: Convert to KUnit

2022-07-02 Thread Maíra Canal
Hi everyone, Here is the v4 of the conversion of selftests to KUnit. Since the v3, there have been minor fixes, asked by Javier. Basically, fixes on the SoB chain and addition of Copywrites. Thanks for your attention and any feedback is welcomed! Best Regards, - Maíra Canal v1 -> v2:

[Bug 216198] uvd page faults on Radeon

2022-07-02 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216198 Artem S. Tashkinov (a...@gmx.com) changed: What|Removed |Added Status|NEW |RESOLVED

Re: [PATCH 4/5] fbmem: Prevent invalid virtual screen sizes in fb_set_var()

2022-07-02 Thread Michel Dänzer
On 2022-07-01 16:49, Geert Uytterhoeven wrote: > On Thu, Jun 30, 2022 at 9:38 PM Geert Uytterhoeven > wrote: >> On Thu, Jun 30, 2022 at 9:17 PM Helge Deller wrote: >>> On 6/30/22 21:11, Geert Uytterhoeven wrote: On Wed, Jun 29, 2022 at 10:00 PM Helge Deller wrote: > Prevent that

Re: [PATCH v2 4/4] drm/etnaviv: export loadavg via perfmon

2022-07-02 Thread Christian Gmeiner
Hi Lucas > You need to explain a bit more how you intend to use those. > > Contrary to all other perfmon values, where we go to great lengths to > only count the load put onto the GPU by the specific process requesting > the perfmon, the loadavg values also include the load caused by other >

Re: [PATCH v3 0/9] drm: selftest: Convert to KUnit

2022-07-02 Thread Javier Martinez Canillas
On 6/30/22 02:46, Maíra Canal wrote: > Hi everyone, > > Here is the v3 of the conversion of selftests to KUnit. Since the v2, there > have been minor fixes. drm_format_test received the biggest change: the > KUNIT_EXPECT_FALSE and KUNIT_EXPECT_TRUE macros were changed to > KUNIT_EXPECT_EQ, > as

Re: [PATCH v2 2/4] drm/etnaviv: add loadavg accounting

2022-07-02 Thread Christian Gmeiner
Am Fr., 24. Juni 2022 um 11:38 Uhr schrieb Lucas Stach : > > Am Dienstag, dem 21.06.2022 um 09:20 +0200 schrieb Christian Gmeiner: > > The GPU has an idle state register where each bit represents the idle > > state of a sub-GPU component like FE or TX. Sample this register > > every 10ms and

Re: [PATCH v3 9/9] drm: selftest: convert drm_mm selftest to KUnit

2022-07-02 Thread Javier Martinez Canillas
On 6/30/22 02:46, Maíra Canal wrote: > From: Arthur Grillo > > Considering the current adoption of the KUnit framework, convert the > DRM mm selftest to the KUnit API. > > Acked-by: Daniel Latypov > Tested-by: David Gow > Signed-off-by: Arthur Grillo > Signed-off-by: Maíra Canal > ---

Re: [PATCH v3 8/9] drm: selftest: convert drm_buddy selftest to KUnit

2022-07-02 Thread Javier Martinez Canillas
On 6/30/22 02:46, Maíra Canal wrote: > Considering the current adoption of the KUnit framework, convert the > DRM buddy selftest to the KUnit API. > > Acked-by: Daniel Latypov > Tested-by: David Gow > Signed-off-by: Maíra Canal > --- Reviewed-by: Javier Martinez Canillas -- Best regards,

Re: [PATCH v3 7/9] drm: selftest: convert drm_framebuffer selftest to KUnit

2022-07-02 Thread Javier Martinez Canillas
On 6/30/22 02:46, Maíra Canal wrote: > Considering the current adoption of the KUnit framework, convert the > DRM framebuffer selftest to the KUnit API. > > Acked-by: Daniel Latypov > Tested-by: David Gow > Signed-off-by: Maíra Canal > --- Reviewed-by: Javier Martinez Canillas -- Best

Re: [PATCH v3 6/9] drm: selftest: convert drm_dp_mst_helper selftest to KUnit

2022-07-02 Thread Javier Martinez Canillas
On 6/30/22 02:46, Maíra Canal wrote: > Considering the current adoption of the KUnit framework, convert the > DRM DP MST helper selftest to the KUnit API. > > Acked-by: Daniel Latypov > Tested-by: David Gow > Co-developed-by: Rubens Gomes Neto > Signed-off-by: Rubens Gomes Neto >

Re: [PATCH v3 5/9] drm: selftest: convert drm_plane_helper selftest to KUnit

2022-07-02 Thread Javier Martinez Canillas
On 6/30/22 02:46, Maíra Canal wrote: > Considering the current adoption of the KUnit framework, convert the > DRM plane helper selftest to the KUnit API. > > Acked-by: Daniel Latypov > Tested-by: David Gow > Co-developed-by: Djakson C. G. Filho > Signed-off-by: Djakson C. G. Filho >

Re: [PATCH v3 4/9] drm: selftest: convert drm_format selftest to KUnit

2022-07-02 Thread Javier Martinez Canillas
On 6/30/22 02:46, Maíra Canal wrote: > Considering the current adoption of the KUnit framework, convert the > DRM format selftest to the KUnit API. > > Acked-by: Daniel Latypov > Tested-by: David Gow > Signed-off-by: Maíra Canal > --- Reviewed-by: Javier Martinez Canillas -- Best regards,

Re: [PATCH v2 1/4] drm/etnaviv: add simple moving average (SMA)

2022-07-02 Thread Christian Gmeiner
Hi Lucas > > Am Dienstag, dem 21.06.2022 um 09:20 +0200 schrieb Christian Gmeiner: > > This adds a SMA algorithm inspired by Exponentially weighted moving > > average (EWMA) algorithm found in the kernel. > > > Still not sure about this one. I _feel_ that a simple moving average > over a period

Re: [PATCH v3 3/9] drm: selftest: convert drm_rect selftest to KUnit

2022-07-02 Thread Javier Martinez Canillas
On 6/30/22 02:46, Maíra Canal wrote: > Considering the current adoption of the KUnit framework, convert the > DRM rect selftest to the KUnit API. > > Acked-by: Daniel Latypov > Tested-by: David Gow > Co-developed-by: Carlos Veras > Signed-off-by: Carlos Veras > Co-developed-by: Matheus Vieira

Re: [PATCH v3 2/9] drm: selftest: convert drm_cmdline_parser selftest to KUnit

2022-07-02 Thread Javier Martinez Canillas
On 6/30/22 02:46, Maíra Canal wrote: > Considering the current adoption of the KUnit framework, convert the > DRM cmdline parser selftest to the KUnit API. > > Acked-by: Daniel Latypov > Tested-by: David Gow > Co-developed-by: Arthur Grillo > Signed-off-by: Arthur Grillo > Signed-off-by:

Re: [linux-next:master] BUILD REGRESSION 6cc11d2a1759275b856e464265823d94aabd5eaf

2022-07-02 Thread Roman Gushchin
esOn Fri, Jul 01, 2022 at 07:49:42AM +0800, kbuild test robot wrote: > tree/branch: > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > branch HEAD: 6cc11d2a1759275b856e464265823d94aabd5eaf Add linux-next > specific files for 20220630 > > Error/Warning reports: > >

Re: [PATCH v3 1/9] drm: selftest: convert drm_damage_helper selftest to KUnit

2022-07-02 Thread Javier Martinez Canillas
Hello Maíra, Thanks a lot for your patch. On 6/30/22 02:46, Maíra Canal wrote: > Considering the current adoption of the KUnit framework, convert the > DRM damage helper selftest to the KUnit API. > > Acked-by: Daniel Latypov > Tested-by: David Gow > Co-developed-by: Arthur Grillo >

Re: [PATCH V2] drivers/firmware: Move sysfb_init() from device_initcall to subsys_initcall_sync

2022-07-02 Thread Javier Martinez Canillas
Hello Huacai, Thanks a lot for your patch. On 7/2/22 11:04, Huacai Chen wrote: > Consider a configuration like this: > 1, efifb (or simpledrm) is built-in; > 2, a native display driver (such as radeon) is also built-in. > > As Javier said, this is not a common configuration (the native display

[PATCH V2] drivers/firmware: Move sysfb_init() from device_initcall to subsys_initcall_sync

2022-07-02 Thread Huacai Chen
Consider a configuration like this: 1, efifb (or simpledrm) is built-in; 2, a native display driver (such as radeon) is also built-in. As Javier said, this is not a common configuration (the native display driver is usually built as a module), but it can happen and cause some trouble. In this