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

2023-10-22 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.c |

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

2023-10-22 Thread Jason-JH . Lin
The patch series provides drm driver support for enabling secure video path (SVP) playback on MediaiTek hardware in the Linux kernel. Memory Definitions: secure memory - Memory allocated in the TEE (Trusted Execution Environment) which is inaccessible in the REE (Rich Execution Environment, i.e.

[PATCH v2 02/11] drm/mediatek/uapi: Add DRM_MTK_GEM_CREATED_ENCRYPTTED flag

2023-10-22 Thread Jason-JH . Lin
Add DRM_MTK_GEM_CREATED_ENCRYPTTED flag 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_drm.h index

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

2023-10-22 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

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

2023-10-22 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

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

2023-10-22 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 v2 07/11] drm/mediatek: Add secure layer config support for ovl

2023-10-22 Thread Jason-JH . Lin
Add secure layer config support for ovl. Signed-off-by: Jason-JH.Lin --- drivers/gpu/drm/mediatek/mtk_disp_drv.h | 3 ++ drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 31 +-- .../gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 12 +++

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

2023-10-22 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 v2 03/11] drm/mediatek: Add secure buffer control flow to mtk_drm_gem

2023-10-22 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 ---

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

2023-10-22 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.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

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

2023-10-22 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_ovl_adaptor.c | 3 +++ drivers/gpu/drm/mediatek/mtk_mdp_rdma.c | 11 --- drivers/gpu/drm/mediatek/mtk_mdp_rdma.h | 2 ++ 3 files

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

2023-10-22 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 ---

[PATCH] drm/sched: Convert the GPU scheduler to variable number of run-queues

2023-10-22 Thread Luben Tuikov
The GPU scheduler has now a variable number of run-queues, which are set up at drm_sched_init() time. This way, each driver announces how many run-queues it requires (supports) per each GPU scheduler it creates. Note, that run-queues correspond to scheduler "priorities", thus if the number of

Re: [PATCH v3 2/2] drm/uapi: add explicit virtgpu context debug name

2023-10-22 Thread Dmitry Osipenko
On 10/18/23 21:17, Gurchetan Singh wrote: > There are two problems with the current method of determining the > virtio-gpu debug name. > > 1) TASK_COMM_LEN is defined to be 16 bytes only, and this is a >Linux kernel idiom (see PR_SET_NAME + PR_GET_NAME). Though, >Android/FreeBSD get

Re: [PATCH] dt-bindings: display: ssd132x: Remove '-' before compatible enum

2023-10-22 Thread Rob Herring
On Sat, 21 Oct 2023 00:30:17 +0200, Javier Martinez Canillas wrote: > This is a leftover from when the binding schema had the compatible string > property enum as a 'oneOf' child and the '-' was not removed when 'oneOf' > got dropped during the binding review process. > > Reported-by: Rob

[PATCH v3] Documentation/gpu: VM_BIND locking document

2023-10-22 Thread Thomas Hellström
Add the first version of the VM_BIND locking document which is intended to be part of the xe driver upstreaming agreement. The document describes and discuss the locking used during exec- functions, evicton and for userptr gpu-vmas. Intention is to be using the same nomenclature as the

[Bug 201957] amdgpu: ring gfx timeout

2023-10-22 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=201957 --- Comment #98 from jeremy boyd (j...@jerdboyd.com) --- (In reply to jeremy boyd from comment #97) > Hello, I'm having this same issue with my thinkpad z16 laptop, Ryzen 6850H > and Radeon RX 6500M graphics card. > > I do not use the laptop for

Re: [PATCH v2 2/2] accel/qaic: Support MHI QAIC_TIMESYNC channel

2023-10-22 Thread Stanislaw Gruszka
On Mon, Oct 16, 2023 at 11:01:14AM -0600, Jeffrey Hugo wrote: > From: Pranjal Ramajor Asha Kanojiya > > Use QAIC_TIMESYNC MHI channel to send UTC time to device in SBL > environment. Remove support for QAIC_TIMESYNC MHI channel in AMSS > environment as it is not used in that environment. > >

Re: [PATCH v2 1/2] accel/qaic: Add support for periodic timesync

2023-10-22 Thread Stanislaw Gruszka
On Mon, Oct 16, 2023 at 11:01:13AM -0600, Jeffrey Hugo wrote: > From: Ajit Pal Singh > > Device and Host have a time synchronization mechanism that happens once > during boot when device is in SBL mode. After that, in mission-mode there > is no timesync. In an experiment after continuous

Re: [RFC PATCH 03/10] drm/mipi-dsi: add API for manual control over the DSI link power state

2023-10-22 Thread Dmitry Baryshkov
On Thu, 19 Oct 2023 at 14:42, Alexander Stein wrote: > > Hi, > > Am Donnerstag, 19. Oktober 2023, 13:19:51 CEST schrieb Dmitry Baryshkov: > > On Thu, 19 Oct 2023 at 12:26, Maxime Ripard wrote: > > > On Mon, Oct 16, 2023 at 07:53:48PM +0300, Dmitry Baryshkov wrote: > > > > The MIPI DSI links do

Re: [PATCH v2] accel/qaic: Enable 1 MSI fallback mode

2023-10-22 Thread Stanislaw Gruszka
On Mon, Oct 16, 2023 at 11:00:36AM -0600, Jeffrey Hugo wrote: > From: Carl Vanderlip > > Several virtualization use-cases either don't support 32 MultiMSIs > (Xen/VMware) or have significant drawbacks to their use (KVM's vIOMMU, > which is required to support 32 MSI, needs to allocate an

Re: [PATCH v3 1/3] pwm: make it possible to apply pwm changes in atomic context

2023-10-22 Thread Sean Young
Hi Hans, On Sat, Oct 21, 2023 at 11:08:22AM +0200, Hans de Goede wrote: > On 10/19/23 12:51, Uwe Kleine-König wrote: > > On Wed, Oct 18, 2023 at 03:57:48PM +0200, Hans de Goede wrote: > >> On 10/17/23 11:17, Sean Young wrote: > >>> Some drivers require sleeping, for example if the pwm device is

Re: [PATCH v7 4/6] drm: Refuse to async flip with atomic prop changes

2023-10-22 Thread Michel Dänzer
On 10/17/23 14:16, Simon Ser wrote: > After discussing with André it seems like we missed a plane type check > here. We need to make sure FB_ID changes are only allowed on primary > planes. Can you elaborate why that's needed? -- Earthling Michel Dänzer|

Re: [PATCH] dt-bindings: display: ssd132x: Remove '-' before compatible enum

2023-10-22 Thread Conor Dooley
On Sat, Oct 21, 2023 at 12:30:17AM +0200, Javier Martinez Canillas wrote: > This is a leftover from when the binding schema had the compatible string > property enum as a 'oneOf' child and the '-' was not removed when 'oneOf' > got dropped during the binding review process. > > Reported-by: Rob

[Bug 218015] amdgpu powerplay: Spontaneous changes to power_dpm_force_performance_level

2023-10-22 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=218015 Roman Žilka (roman.zi...@gmail.com) changed: What|Removed |Added URL|

[Bug 218015] amdgpu powerplay: Spontaneous changes to power_dpm_force_performance_level

2023-10-22 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=218015 --- Comment #5 from Roman Žilka (roman.zi...@gmail.com) --- Thanks, I passed the info on. https://gitlab.freedesktop.org/drm/amd/-/issues/2931 -- You may reply to this email to add a comment. You are receiving this mail because: You are