[PATCH] drm/vmwgfx: Unmap the surface before resetting it on a plane state

2023-12-23 Thread Zack Rusin
Switch to a new plane state requires unreferencing of all held surfaces. In the work required for mob cursors the mapped surfaces started being cached but the variable indicating whether the surface is currently mapped was not being reset. This leads to crashes as the duplicated state, incorrectly,

[PATCH] MAINTAINERS: Change vmware.com addresses to broadcom.com

2023-12-23 Thread Zack Rusin
Update the email addresses for vmwgfx and vmmouse to reflect the fact that VMware is now part of Broadcom. Add a .mailmap entry because the vmware.com address will start bouncing soon. Signed-off-by: Zack Rusin Cc: Andrew Morton Cc: Ian Forbes Cc: Martin Krastev Cc: Maaz Mombasawala Cc: Broa

Re: [PATCH 4/6] arm64: dts: rockchip: Add devicetree for Pine64 Pinetab2

2023-12-23 Thread Dang Huynh
On Friday, December 22, 2023 11:05:44 AM UTC Manuel Traut wrote: > From: Segfault Using nickname is not allowed: https://www.kernel.org/doc/html/v6.6/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin > > This includes support for both the v0.1 units that were se

[Bug 213983] WARNING: CPU: 3 PID: 520 at drivers/gpu/drm/ttm/ttm_bo.c:409 ttm_bo_release+0x7a/0x803 [ttm]

2023-12-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=213983 --- Comment #9 from Andimewi (andim...@gmx.net) --- Remains in 6.5.0-14 Sometimes system freezes! [12068.780248] WARNING: CPU: 11 PID: 2001 at drivers/gpu/drm/ttm/ttm_bo.c:326 ttm_bo_release+0x299/0x2c0 [ttm] [12068.780285] Modules linked in: bne

[PATCH v2] drm/debugfs: drop unneeded DEBUG_FS guard

2023-12-23 Thread Dario Binacchi
The Makefile enables/disables the file compilation depending on CONFIG_DEBUG_FS. Signed-off-by: Dario Binacchi Reviewed-by: Jani Nikula --- Changes in v2: - Add 'Reviewed-by' tag of Jani Nikula drivers/gpu/drm/drm_debugfs.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/d

Re: [PATCH v2 1/4] dt-bindings: display: panel: Add BOE TH101MB31IG002-28A panel

2023-12-23 Thread Krzysztof Kozlowski
On 23/12/2023 16:20, Manuel Traut wrote: > Add bindings for the BOE TH101MB31IG002-28A LCD panel. It is > used e.g. in the Pine64 Pinetab2 and PinetabV. > > Signed-off-by: Manuel Traut Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof

[PATCH v3 00/11] Add mediate-drm secure flow for SVP

2023-12-23 Thread Jason-JH . Lin
From: Jason-jh Lin Memory Definitions: secure memory - Memory allocated in the TEE (Trusted Execution Environment) which is inaccessible in the REE (Rich Execution Environment, i.e. linux kernel/userspace). secure handle - Integer value which acts as reference to 'secure memory'. Used in communic

[PATCH v3 08/11] drm/mediatek: Add secure layer config support for ovl_adaptor

2023-12-23 Thread Jason-JH . Lin
Add secure layer config support for ovl_adaptor and sub driver mdp_rdma. Signed-off-by: Jason-JH.Lin --- drivers/gpu/drm/mediatek/mtk_disp_drv.h | 1 + drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 15 +++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + drivers/g

[PATCH v3 09/11] drm/mediatek: Add secure flow support to mediatek-drm

2023-12-23 Thread Jason-JH . Lin
To add secure flow support for mediatek-drm, each crtc have to create a secure cmdq mailbox channel. Then cmdq packets with display HW configuration will be sent to secure cmdq mailbox channel and configured in the secure world. Each crtc have to use secure cmdq interface to configure some secure

[PATCH v3 04/11] drm/mediatek: Add secure identify flag and funcution to mtk_drm_plane

2023-12-23 Thread Jason-JH . Lin
Add is_sec flag to identify current mtk_drm_plane is secure. Add mtk_plane_is_sec_fb() to check current drm_framebuffer is secure. Signed-off-by: Jason-JH.Lin --- drivers/gpu/drm/mediatek/mtk_drm_plane.c | 19 +++ drivers/gpu/drm/mediatek/mtk_drm_plane.h | 2 ++ 2 files changed,

[PATCH v3 02/11] drm/mediatek/uapi: Add DRM_MTK_GEM_CREATE_ENCRYPTED flag

2023-12-23 Thread Jason-JH . Lin
Add DRM_MTK_GEM_CREATE_ENCRYPTED flag to allow user to allocate a secure buffer to support secure video path feature. Signed-off-by: Jason-JH.Lin --- include/uapi/drm/mediatek_drm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/drm/mediatek_drm.h b/include/uapi/drm/mediatek_dr

[PATCH v3 11/11] arm64: dts: mt8195: Add secure mbox settings for vdosys

2023-12-23 Thread Jason-JH . Lin
Add a secure mailbox channel to support secure video path on vdosys0 and vdosys1. Signed-off-by: Jason-JH.Lin --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/med

[PATCH v3 06/11] drm/mediatek: Add get_sec_port interface to mtk_ddp_comp

2023-12-23 Thread Jason-JH . Lin
Add get_sec_port interface to ddp_comp to get the secure port settings from ovl and ovl_adaptor. Then mediatek-drm will use secure cmdq driver to configure DRAM access permission in secure world by their secure port settings. Signed-off-by: Jason-JH.Lin --- drivers/gpu/drm/mediatek/mtk_drm_ddp_c

[PATCH v3 03/11] drm/mediatek: Add secure buffer control flow to mtk_drm_gem

2023-12-23 Thread Jason-JH . Lin
Add secure buffer control flow to mtk_drm_gem. When user space takes DRM_MTK_GEM_CREATE_ENCRYPTED flag and size to create a mtk_drm_gem object, mtk_drm_gem will find a matched size dma buffer from secure dma-heap and bind it to mtk_drm_gem object. Signed-off-by: Jason-JH.Lin --- drivers/gpu/drm

[PATCH v3 07/11] drm/mediatek: Add secure layer config support for ovl

2023-12-23 Thread Jason-JH . Lin
Add secure layer config support for ovl. TODO: 1. Move DISP_REG_OVL_SECURE setting to secure world. 2. Change the parameter register address in mtk_ddp_sec_write() from "u32 addr" to "struct cmdq_client_reg *cmdq_reg". Signed-off-by: Jason-JH.Lin --- drivers/gpu/drm/mediatek/mtk_disp_drv.h

[PATCH v3 10/11] drm/mediatek: Add cmdq_insert_backup_cookie before secure pkt finalize

2023-12-23 Thread Jason-JH . Lin
Add cmdq_insert_backup_cookie to append some commands before EOC: 1. Get GCE HW thread execute count from the GCE HW register. 2. Add 1 to the execute count and then store into a shared memory. 3. Set a software event siganl as secure irq to GCE HW. Since the value of execute count + 1 is stored i

[PATCH v3 01/11] drm/mediatek: Add interface to allocate MediaTek GEM buffer.

2023-12-23 Thread Jason-JH . Lin
From: CK Hu Add an interface to allocate MediaTek GEM buffers, allow the IOCTLs to be used by render nodes. This patch also sets the RENDER driver feature. Signed-off-by: CK Hu Signed-off-by: Nicolas Boichat Signed-off-by: Philipp Zabel Signed-off-by: Jason-JH.Lin Reviewed-by: Daniel Kurtz

[PATCH v3 05/11] drm/mediatek: Add mtk_ddp_sec_write to config secure buffer info

2023-12-23 Thread Jason-JH . Lin
Add mtk_ddp_sec_write to configure secure buffer information to cmdq secure packet data. Then secure cmdq driver will use these information to configure curresponding secure DRAM address to HW overlay in secure world. Signed-off-by: Jason-JH.Lin --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h |

[PATCH v2 3/4] dt-bindings: arm64: rockchip: Add Pine64 Pinetab2

2023-12-23 Thread Manuel Traut
Add devicvetree binding documentation for Pine64 Pinetab2 which uses the Rockchip RK3566 SoC. Signed-off-by: Manuel Traut Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/rockchip.yaml | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bi

[PATCH v2 2/4] drm/panel: Add driver for BOE TH101MB31IG002-28A panel

2023-12-23 Thread Manuel Traut
From: Alexander Warnecke The BOE TH101MB31IG002-28A panel is a WXGA panel. It is used in Pine64 Pinetab2 and PinetabV. Signed-off-by: Alexander Warnecke Signed-off-by: Manuel Traut --- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile

[PATCH v2 4/4] arm64: dts: rockchip: Add devicetree for Pine64 Pinetab2

2023-12-23 Thread Manuel Traut
From: Alexander Warnecke This includes support for both the v0.1 units that were sent to developers and the v2.0 units from production. v1.0 is not included as no units are known to exist. Working/Tested: - SDMMC - UART - Buttons - Charging/Battery/PMIC - Audio - USB - Display WiFi is not adde

[PATCH v2 1/4] dt-bindings: display: panel: Add BOE TH101MB31IG002-28A panel

2023-12-23 Thread Manuel Traut
Add bindings for the BOE TH101MB31IG002-28A LCD panel. It is used e.g. in the Pine64 Pinetab2 and PinetabV. Signed-off-by: Manuel Traut --- .../display/panel/boe,th101mb31ig002-28a.yaml | 58 ++ 1 file changed, 58 insertions(+) diff --git a/Documentation/devicetree/bin

[PATCH v2 0/4] arm64: rockchip: Pine64 pinetab2 support

2023-12-23 Thread Manuel Traut
This adds support for the BOE TH101MB31IG002 LCD Panel used in Pinetab2 [1] and Pinetab-V [2] as well as the devictrees for the Pinetab2 v0.1 and v2.0. The BOE LCD Panel patch was retrieved from [3]. The function-name prefix has been adapted and the LCD init section was simplified. The Pinetab2 d

Re: [PATCH 4/6] arm64: dts: rockchip: Add devicetree for Pine64 Pinetab2

2023-12-23 Thread Diederik de Haas
Hi Manuel, On Saturday, 23 December 2023 14:59:34 CET Manuel Traut wrote: > On Fri, Dec 22, 2023 at 06:01:54PM +0100, Diederik de Haas wrote: > > On Friday, 22 December 2023 12:05:44 CET Manuel Traut wrote: > > > + > > > +&cru { > > > + assigned-clocks = <&cru PLL_GPLL>, <&pmucru PLL_PPLL>,

Re: [PATCH 4/6] arm64: dts: rockchip: Add devicetree for Pine64 Pinetab2

2023-12-23 Thread Manuel Traut
On Fri, Dec 22, 2023 at 05:49:35PM +0100, Diederik de Haas wrote: > On Friday, 22 December 2023 12:05:44 CET Manuel Traut wrote: > > + rk817-sound { > > + compatible = "simple-audio-card"; > > + pinctrl-names = "default"; > > + pinctrl-0 = <&hp_det_l>

Re: [PATCH 4/6] arm64: dts: rockchip: Add devicetree for Pine64 Pinetab2

2023-12-23 Thread Manuel Traut
Hi Diederik, On Fri, Dec 22, 2023 at 06:01:54PM +0100, Diederik de Haas wrote: > On Friday, 22 December 2023 12:05:44 CET Manuel Traut wrote: > > + > > +&cru { > > + assigned-clocks = <&cru PLL_GPLL>, <&pmucru PLL_PPLL>, <&cru > > PLL_VPLL>; + assigned-clock-rates = <12>, <2000

Re: [PATCH 5/6] arm64: dts: rockchip: Fix some dtb-check warnings

2023-12-23 Thread Heiko Stübner
Am Freitag, 22. Dezember 2023, 12:05:45 CET schrieb Manuel Traut: > devicetree checks show some warnings: > > video-codec@fdea0400: 'interrupt-names' is a required property > from schema $id: http://devicetree.org/schemas/media/rockchip-vpu.yaml# > > hdmi@fe0a: Unevaluated properties are not

Re: [PATCH 0/6] arm64: rockchip: Pine64 pinetab2 support

2023-12-23 Thread Manuel Traut
On Fri, Dec 22, 2023 at 05:51:41PM +0100, Diederik de Haas wrote: > On Friday, 22 December 2023 12:05:40 CET Manuel Traut wrote: > > [3] > > https://salsa.debian.org/Mobian-team/devices/kernels/rockchip-linux/-/blob/ > > mobian-6.6/debian/patches/display/0018-drm-panel-add-BOE-TH101MB31IG002-28A- >

Re: [PATCH v2] drm/tests: Add KUnit tests for drm_mode_create_dvi_i_properties()

2023-12-23 Thread Dipam Turkar
I needed some help regarding introducing a separate test for testing if the function still works if called a second time as suggested. Wouldn't we need to call it on the same object we called in the first time. So, that will bring redundancy in the two functions. Is this correct? Or am I understand