Re: [PATCH v11 5/9] drm/fb_dma: Add generic get_scanout_buffer() for drm_panic

2024-04-09 Thread Thomas Zimmermann
Hi Am 28.03.24 um 13:03 schrieb Jocelyn Falempe: This was initialy done for imx6, but should work on most drivers using drm_fb_dma_helper. v8: * Replace get_scanout_buffer() logic with drm_panic_set_buffer() (Thomas Zimmermann) v9: * go back to get_scanout_buffer() * move

[PATCH v6 8/8] drm/ci: add tests on vkms

2024-04-09 Thread Vignesh Raman
Add job that runs igt on top of vkms. Acked-by: Maíra Canal Acked-by: Helen Koike Signed-off-by: Vignesh Raman Acked-by: Jessica Zhang Tested-by: Jessica Zhang Acked-by: Maxime Ripard Signed-off-by: Helen Koike --- v4: - New patch in the series.

[PATCH v6 7/8] drm/ci: rockchip: add tests for rockchip display driver

2024-04-09 Thread Vignesh Raman
For rockchip rk3288 and rk3399, the display driver is rockchip and gpu driver is panfrost. Currently, in drm-ci for rockchip rk3288 and rk3399, only the gpu driver is tested. Refactor the existing rockchip jobs to test both display and gpu driver and update xfails. Since the correct driver name

[PATCH v6 5/8] drm/ci: mediatek: add tests for powervr gpu driver

2024-04-09 Thread Vignesh Raman
For mediatek mt8173, the display driver is mediatek, while the gpu driver is powervr. Currently, in drm-ci for mt8173, only the display driver is tested. Add support in drm-ci to test powervr driver for mt8173. Powervr driver was merged in linux kernel, but there's no mediatek support yet. So

[PATCH v6 6/8] drm/ci: meson: add tests for meson display driver

2024-04-09 Thread Vignesh Raman
For Amlogic Meson G12B (A311D) SOC the display driver is meson and gpu driver is panfrost. Currently, in drm-ci for Meson G12B (A311D), only the gpu driver is tested. Refactor the existing meson jobs and add support in drm-ci to test both display and gpu driver for Amlogic Meson G12B (A311D) and

[PATCH v6 4/8] drm/ci: mediatek: add tests for mediatek display driver

2024-04-09 Thread Vignesh Raman
For mediatek mt8183, the display driver is mediatek, while the gpu driver is panfrost. Currently, in drm-ci for mt8183, only the gpu driver is tested. Refactor the existing mediatek jobs and add support in drm-ci to test both display and gpu driver for mt8183 and update xfails. Since the correct

[PATCH v6 3/8] drm/ci: uprev IGT and update testlist

2024-04-09 Thread Vignesh Raman
Uprev IGT and add amd, v3d, vc4 and vgem specific tests to testlist and skip driver-specific tests in *-skips.txt. Also add testlist to the MAINTAINERS file and update xfails. A better approach would be to stop vendoring the testlist into the kernel and instead use testlist from the IGT build to

[PATCH v6 2/8] drm/ci: uprev mesa version

2024-04-09 Thread Vignesh Raman
zlib.net is not allowing tarball download anymore and results in below error in kernel+rootfs_arm32 container build, urllib.error.HTTPError: HTTP Error 403: Forbidden urllib.error.HTTPError: HTTP Error 415: Unsupported Media Type Uprev mesa which includes a fix for this issue.

[PATCH v6 1/8] drm/ci: arm64.config: Enable CONFIG_DRM_ANALOGIX_ANX7625

2024-04-09 Thread Vignesh Raman
Enable CONFIG_DRM_ANALOGIX_ANX7625 in the arm64 defconfig to get display driver probed on the mt8183-kukui-jacuzzi-juniper machine. arch/arm64/configs/defconfig has CONFIG_DRM_ANALOGIX_ANX7625=m, but drm-ci don't have initrd with modules, so add CONFIG_DRM_ANALOGIX_ANX7625=y in CI arm64 config.

[PATCH v6 0/8] drm/ci: Add support for GPU and display testing

2024-04-09 Thread Vignesh Raman
Some ARM SOCs have a separate display controller and GPU, each with different drivers. For mediatek mt8173, the GPU driver is powervr, and the display driver is mediatek. In the case of mediatek mt8183, the GPU driver is panfrost, and the display driver is mediatek. With rockchip rk3288/rk3399,

[PATCH v8 3/6] drm/i915: Initialize fbdev DRM client with callback functions

2024-04-09 Thread Thomas Zimmermann
Initialize i915's fbdev client by giving an instance of struct drm_client_funcs to drm_client_init(). Also clean up with drm_client_release(). Doing this in i915 prevents fbdev helpers from initializing and releasing the client internally (see drm_fb_helper_init()). No functional change yet; the

[PATCH v8 4/6] drm/{i915,xe}: Unregister in-kernel clients

2024-04-09 Thread Thomas Zimmermann
Unregister all in-kernel clients before unloading the i915 driver. For other drivers, drm_dev_unregister() does this automatically. As i915 and xe do not use this helper, they have to perform the call by themselves. Note that there are currently no in-kernel clients in i915 or xe. The patch

[PATCH v8 6/6] drm/{i915, xe}: Implement fbdev emulation as in-kernel client

2024-04-09 Thread Thomas Zimmermann
Replace all code that initializes or releases fbdev emulation throughout the driver. Instead initialize the fbdev client by a single call to intel_fbdev_setup() after i915 has registered its DRM device. Just like similar code in other drivers, i915 fbdev emulation now acts like a regular DRM

[PATCH v8 5/6] drm/{i915,xe}: Implement fbdev client callbacks

2024-04-09 Thread Thomas Zimmermann
Move code from ad-hoc fbdev callbacks into DRM client functions and remove the old callbacks. The functions instruct the client to poll for changed output or restore the display. The DRM core calls both, the old callbacks and the new client helpers, from the same places. The new functions perform

[PATCH v8 2/6] drm/i915: Move fbdev functions

2024-04-09 Thread Thomas Zimmermann
Move functions within intel_fbdev.c to simplify later updates. Minor style fixes to make checkpatch happy, but no functional changes. v5: - style fixes (checkpatch) Signed-off-by: Thomas Zimmermann Reviewed-by: Jouni Högander --- drivers/gpu/drm/i915/display/intel_fbdev.c | 154

[PATCH v8 0/6] drm/{i915,xe}: Convert fbdev to DRM client

2024-04-09 Thread Thomas Zimmermann
(was: drm/i915: Convert fbdev to DRM client) Convert i915's fbdev code to struct drm_client. Replaces the current ad-hoc integration. The conversion includes a number of cleanups. Also update the xe driver accordingly. As with the other drivers' fbdev emulation, fbdev in i915 is now an in-kernel

[PATCH v8 1/6] drm/client: Export drm_client_dev_unregister()

2024-04-09 Thread Thomas Zimmermann
Export drm_client_dev_unregister() for use by the i915 driver. The driver does not use drm_dev_unregister(), so it has to clean up the in-kernel DRM clients by itself. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_client.c | 13 + 1 file changed, 13 insertions(+) diff

Re: [PATCH 11/12] drm/client: Streamline mode selection debugs

2024-04-09 Thread Thomas Zimmermann
Hi Am 08.04.24 um 19:26 schrieb Ville Syrjälä: On Mon, Apr 08, 2024 at 09:46:44AM +0200, Thomas Zimmermann wrote: Hi Am 05.04.24 um 21:58 schrieb Ville Syrjälä: On Fri, Apr 05, 2024 at 09:57:07AM +0200, Thomas Zimmermann wrote: Hi Am 04.04.24 um 22:33 schrieb Ville Syrjala: From: Ville

Re: [PATCH v5 11/16] drm/vkms: Add YUV support

2024-04-09 Thread Pekka Paalanen
On Mon, 8 Apr 2024 09:50:19 +0200 Louis Chauvet wrote: > Le 27/03/24 - 16:23, Pekka Paalanen a écrit : > > On Wed, 13 Mar 2024 18:45:05 +0100 > > Louis Chauvet wrote: > > > > > From: Arthur Grillo > > > > > > Add support to the YUV formats bellow: > > > > > > - NV12/NV16/NV24 > > > -

[PATCH] drm: vc4: Fix possible null pointer dereference

2024-04-09 Thread Aleksandr Mishin
In vc4_hdmi_audio_init() of_get_address() may return NULL which is later dereferenced. Fix this bug by adding NULL check. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: bb7d78568814 ("drm/vc4: Add HDMI audio support") Signed-off-by: Aleksandr Mishin ---

Re: [PATCH 1/4] drm/edid: add drm_edid_get_product_id()

2024-04-09 Thread Jani Nikula
On Mon, 08 Apr 2024, Ville Syrjälä wrote: > On Thu, Mar 21, 2024 at 12:05:09PM +0200, Jani Nikula wrote: >> Add a struct drm_edid based function to get the vendor and product ID >> from an EDID. Add a separate struct for defining this part of the EDID, >> with defined byte order for product code

Re: [PATCH 1/9] tools/include: Sync uapi/drm/i915_drm.h with the kernel sources

2024-04-09 Thread Ingo Molnar
* Jani Nikula wrote: > On Mon, 08 Apr 2024, Namhyung Kim wrote: > > To pick up changes from: > > > >b112364867499 ("drm/i915: Add GuC submission interface version query") > >5cf0fbf763741 ("drm/i915: Add some boring kerneldoc") > > > > This should be used to beautify DRM syscall

Re: [PATCH v5 09/16] drm/vkms: Introduce pixel_read_direction enum

2024-04-09 Thread Pekka Paalanen
On Mon, 8 Apr 2024 09:50:18 +0200 Louis Chauvet wrote: > Le 27/03/24 - 14:16, Pekka Paalanen a écrit : > > On Tue, 26 Mar 2024 16:57:00 +0100 > > Louis Chauvet wrote: > > > > > Le 25/03/24 - 15:11, Pekka Paalanen a écrit : > > > > On Wed, 13 Mar 2024 18:45:03 +0100 > > > > Louis Chauvet

Re: [PATCH 1/9] tools/include: Sync uapi/drm/i915_drm.h with the kernel sources

2024-04-09 Thread Jani Nikula
On Mon, 08 Apr 2024, Namhyung Kim wrote: > To pick up changes from: > >b112364867499 ("drm/i915: Add GuC submission interface version query") >5cf0fbf763741 ("drm/i915: Add some boring kerneldoc") > > This should be used to beautify DRM syscall arguments and it addresses > these

Re: [PATCH 20/21] drm/rcar-du: Allow build with COMPILE_TEST=y

2024-04-09 Thread Geert Uytterhoeven
On Mon, Apr 8, 2024 at 7:05 PM Ville Syrjala wrote: > From: Ville Syrjälä > > Allow rcar-du to be built with COMPILE_TEST=y for greater > coverage. Builds fine on x86/x86_64 at least. Also on rv64 and m68k. > Cc: Laurent Pinchart > Cc: Kieran Bingham > Cc: linux-renesas-...@vger.kernel.org >

Re: [PATCH v7 11/37] pci: pci-sh7751: Add SH7751 PCI driver

2024-04-09 Thread Mayank Rana
Hi, On 4/3/2024 9:59 PM, Yoshinori Sato wrote: Renesas SH7751 CPU Internal PCI Controller driver. Signed-off-by: Yoshinori Sato --- drivers/pci/controller/Kconfig | 9 + drivers/pci/controller/Makefile | 1 + drivers/pci/controller/pci-sh7751.c | 342

<    1   2   3