Re: [PATCH net-next v9 3/3] net: ethernet: ti: am65-cpsw: Add minimal XDP support

2024-04-12 Thread Jacob Keller
On 4/12/2024 8:38 AM, Julien Panis wrote: > This patch adds XDP (eXpress Data Path) support to TI AM65 CPSW > Ethernet driver. The following features are implemented: > - NETDEV_XDP_ACT_BASIC (XDP_PASS, XDP_TX, XDP_DROP, XDP_ABORTED) > - NETDEV_XDP_ACT_REDIRECT (XDP_REDIRECT) > -

Re: [PATCH net-next v9 2/3] net: ethernet: ti: Add desc_infos member to struct k3_cppi_desc_pool

2024-04-12 Thread Jacob Keller
On 4/12/2024 8:38 AM, Julien Panis wrote: > This patch introduces a member and the related accessors which can be > used to store descriptor specific additional information. This member > can store, for instance, an ID to differentiate a skb TX buffer type > from a xdpf TX buffer type. > >

RE: [PATCH net-next v8 0/3] Add minimal XDP support to TI AM65 CPSW Ethernet driver

2024-04-12 Thread Keller, Jacob E
> -Original Message- > From: Julien Panis > Sent: Friday, April 12, 2024 7:02 AM > To: Keller, Jacob E ; David S. Miller > ; Eric Dumazet ; Jakub Kicinski > ; Paolo Abeni ; Russell King > ; Alexei Starovoitov ; Daniel Borkmann > ; Jesper Dangaard Brouer ; John > Fastabend ; Sumit Semwal

[PATCH v2 2/2] drm/dp: set pwm bit count when pwm hz is not set

2024-04-12 Thread Angelo Dureghello
Set pwmgen_bit_count to have proper brightness inc/dec steps even when driver_pwm_freq_hz (optional) is zero. cat /sys/class/backlight/nv_backlight/max_brightness 255 Can now tune properly backlight from 0 to 255. --- Changes for v2: none Signed-off-by: Angelo Dureghello ---

[PATCH v2 1/2] drm/nouveau/disp: add backlight for ada lovelace

2024-04-12 Thread Angelo Dureghello
Add working backlight for "ada lovelace" missing case. The nvif method is actually not working for this chipset so used the drm apis. Also, by dpcd, drm layer is calculating a max brightness of 255, but to get a real correct max brightnes the maximum must be multiplied by a factor of 16. Tested

Re: [PATCH 12/12] drm/msm: drop msm_kms_funcs::get_format() callback

2024-04-12 Thread Abhinav Kumar
On 12/2/2023 1:40 PM, Dmitry Baryshkov wrote: Now as all subdrivers were converted to use common database of formats, drop the get_format() callback and use mdp_get_format() directly. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 2 +-

Re: [PATCH 0/2] drm/amdgpu/display: Make multi-plane configurations more flexible

2024-04-12 Thread Leo Li
On 2024-04-12 11:31, Alex Deucher wrote: On Fri, Apr 12, 2024 at 11:08 AM Pekka Paalanen wrote: On Fri, 12 Apr 2024 10:28:52 -0400 Leo Li wrote: On 2024-04-12 04:03, Pekka Paalanen wrote: On Thu, 11 Apr 2024 16:33:57 -0400 Leo Li wrote: ... That begs the question of what can be

[linux-next:master] BUILD REGRESSION 9ed46da14b9b9b2ad4edb3b0c545b6dbe5c00d39

2024-04-12 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 9ed46da14b9b9b2ad4edb3b0c545b6dbe5c00d39 Add linux-next specific files for 20240412 Unverified Error/Warning (likely false positive, please contact us if interested): {standard input}:1011

Re: [PATCH 11/12] drm/msm: merge dpu format database to MDP formats

2024-04-12 Thread Abhinav Kumar
On 12/2/2023 1:40 PM, Dmitry Baryshkov wrote: Finally remove duplication between DPU and generic MDP code by merging DPU format lists to the MDP format database. Signed-off-by: Dmitry Baryshkov --- .../drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 2 +-

Re: [PATCH v2 28/43] drm/renesas/rcar-du: Use fbdev-dma

2024-04-12 Thread Laurent Pinchart
On Fri, Apr 12, 2024 at 09:57:27PM +0300, Laurent Pinchart wrote: > Hi Thomas, > > Thank you for the patch. > > On Wed, Apr 10, 2024 at 03:02:24PM +0200, Thomas Zimmermann wrote: > > Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports > > damage handling, which is required by

Re: [PATCH v2 30/43] drm/renesas/shmobile: Use fbdev-dma

2024-04-12 Thread Laurent Pinchart
Hi Thomas, Thank you for the patch. On Wed, Apr 10, 2024 at 03:02:26PM +0200, Thomas Zimmermann wrote: > Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports > damage handling, which is required by shmobile. Avoids the overhead of > fbdev-generic's additional shadow buffering. No

Re: [PATCH v2 28/43] drm/renesas/rcar-du: Use fbdev-dma

2024-04-12 Thread Laurent Pinchart
Hi Thomas, Thank you for the patch. On Wed, Apr 10, 2024 at 03:02:24PM +0200, Thomas Zimmermann wrote: > Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports > damage handling, which is required by rcar-du. Avoids the overhead of > fbdev-generic's additional shadow buffering. No

Re: Build regressions/improvements in v6.9-rc1

2024-04-12 Thread Andreas Larsson
On 2024-03-26 19:15, Sam Ravnborg wrote: > Hi all. > >> + error: arch/sparc/kernel/process_32.o: relocation truncated to fit: >> R_SPARC_WDISP22 against `.text': => (.fixup+0xc), (.fixup+0x4) >> + error: arch/sparc/kernel/signal_32.o: relocation truncated to fit: >> R_SPARC_WDISP22 against

Re: [PATCH] ARM: dts: bcm2835: Enable 3D rendering through V3D

2024-04-12 Thread Stefan Wahren
Hi Maíra, [add Phil & Dave] Am 12.04.24 um 15:25 schrieb Maíra Canal: RPi 0-3 is packed with a GPU that provides 3D rendering capabilities to the RPi. Currently, the downstream kernel uses an overlay to enable the GPU and use GPU hardware acceleration. When deploying a mainline kernel to the

[PATCH] drm/msm: Fix gen_header.py for older python3 versions

2024-04-12 Thread Jon Hunter
The gen_header.py script is failing for older versions of python3 such as python 3.5. Two issues observed with python 3.5 are ... 1. Python 3 versions prior to 3.6 do not support the f-string format. 2. Early python 3 versions do not support the 'required' argument for the argparse

Re: [PATCH v5 11/18] drm/msm: generate headers on the fly

2024-04-12 Thread Jon Hunter
On 12/04/2024 17:19, Dmitry Baryshkov wrote: On Fri, 12 Apr 2024 at 19:15, Jon Hunter wrote: Hi Dmitry, On 01/04/2024 03:42, Dmitry Baryshkov wrote: Generate DRM/MSM headers on the fly during kernel build. This removes a need to push register changes to Mesa with the following manual

Re: [PATCH v5 11/18] drm/msm: generate headers on the fly

2024-04-12 Thread Dmitry Baryshkov
On Fri, 12 Apr 2024 at 19:15, Jon Hunter wrote: > > Hi Dmitry, > > On 01/04/2024 03:42, Dmitry Baryshkov wrote: > > Generate DRM/MSM headers on the fly during kernel build. This removes a > > need to push register changes to Mesa with the following manual > > synchronization step. Existing

Re: [PATCH v5 11/18] drm/msm: generate headers on the fly

2024-04-12 Thread Jon Hunter
Hi Dmitry, On 01/04/2024 03:42, Dmitry Baryshkov wrote: Generate DRM/MSM headers on the fly during kernel build. This removes a need to push register changes to Mesa with the following manual synchronization step. Existing headers will be removed in the following commits (split away to ease

[PATCH v2 6/6] drm/i915/alpm: Add debugfs for LOBF

2024-04-12 Thread Animesh Manna
For validation purpose add debugfs for LOBF. Signed-off-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_alpm.c | 47 +++ drivers/gpu/drm/i915/display/intel_alpm.h | 2 + .../drm/i915/display/intel_display_debugfs.c | 2 + 3 files changed, 51 insertions(+)

[PATCH v2 3/6] drm/display: Add missing aux less alpm wake related bits

2024-04-12 Thread Animesh Manna
From: Jouni Högander eDP1.5 adds some more bits into DP_RECEIVER_ALPM_CAP and DP_RECEIVER_ALPM_CONFIG registers. Add definitions for these. Signed-off-by: Jouni Högander --- include/drm/display/drm_dp.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

Re: [git pull] drm fixes for 6.9-rc4

2024-04-12 Thread pr-tracker-bot
The pull request you sent on Fri, 12 Apr 2024 11:34:33 +1000: > https://gitlab.freedesktop.org/drm/kernel.git tags/drm-fixes-2024-04-12 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d1c13e80049d927c88021e3180d5103f2e6f55c4 Thank you! -- Deet-doot-dot, I am a bot.

[PATCH v2 2/6] drm/i915/alpm: Move alpm related code to a new file

2024-04-12 Thread Animesh Manna
Move ALPM feature related code as it will be used for non-psr panel also thorugh LOBF feature. Signed-off-by: Animesh Manna --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/intel_alpm.c | 292 ++ drivers/gpu/drm/i915/display/intel_alpm.h |

[PATCH v2 5/6] drm/i915/alpm: Enable lobf from source in ALPM_CTL

2024-04-12 Thread Animesh Manna
Set the Link Off Between Frames Enable bit in ALPM_CTL register. Signed-off-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_alpm.c | 5 + drivers/gpu/drm/i915/display/intel_display_types.h | 1 + 2 files changed, 6 insertions(+) diff --git

[PATCH v2 4/6] drm/i915/alpm: Add compute config for lobf

2024-04-12 Thread Animesh Manna
Link Off Between Active Frames, is a new feature for eDP that allows the panel to go to lower power state after transmission of data. This is a feature on top of ALPM, AS SDP. Add compute config during atomic-check phase. v1: RFC version. v2: Add separate flag for auxless-alpm. [Jani]

[PATCH v2 1/6] drm/i915/alpm: Move alpm parameters from intel_psr

2024-04-12 Thread Animesh Manna
ALPM can be enabled for non psr panel and currenly aplm-params are encapsulated under intel_psr struct, so moving out to intel_dp struct. Signed-off-by: Animesh Manna --- .../drm/i915/display/intel_display_types.h| 21 + drivers/gpu/drm/i915/display/intel_psr.c | 43

[PATCH v2 0/6] Link off between frames for edp

2024-04-12 Thread Animesh Manna
Link Off Between Active Frames (LOBF) allows an eDP link to be turned Off and On durning long VBLANK durations without enabling any of the PSR/PSR2/PR modes of operation. Bspec: 71477 Note: These patches are not tested, sending early for review feedback. Signed-off-by: Animesh Manna Animesh

Re: [PATCH] accel/qaic: mark debugfs stub functions as static inline

2024-04-12 Thread Jeffrey Hugo
On 4/9/2024 7:39 AM, Arnd Bergmann wrote: From: Arnd Bergmann The alternative stub functions are listed as global, which produces a build failure in some configs: In file included from drivers/accel/qaic/qaic_drv.c:31: drivers/accel/qaic/qaic_debugfs.h:16:5: error: no previous prototype for

Re: [PATCH] accel/qaic: mark debugfs stub functions as static inline

2024-04-12 Thread Jeffrey Hugo
On 4/9/2024 7:39 AM, Arnd Bergmann wrote: From: Arnd Bergmann The alternative stub functions are listed as global, which produces a build failure in some configs: In file included from drivers/accel/qaic/qaic_drv.c:31: drivers/accel/qaic/qaic_debugfs.h:16:5: error: no previous prototype for

Re: [PATCH] accel/qaic: Add Sahara implementation for firmware loading

2024-04-12 Thread Jeffrey Hugo
On 3/21/2024 9:49 PM, Jeffrey Hugo wrote: The AIC100 secondary bootloader uses the Sahara protocol for two purposes - loading the runtime firmware images from the host, and offloading crashdumps to the host. The crashdump functionality is only invoked when the AIC100 device encounters a crash

[PATCH net-next v9 3/3] net: ethernet: ti: am65-cpsw: Add minimal XDP support

2024-04-12 Thread Julien Panis
This patch adds XDP (eXpress Data Path) support to TI AM65 CPSW Ethernet driver. The following features are implemented: - NETDEV_XDP_ACT_BASIC (XDP_PASS, XDP_TX, XDP_DROP, XDP_ABORTED) - NETDEV_XDP_ACT_REDIRECT (XDP_REDIRECT) - NETDEV_XDP_ACT_NDO_XMIT (ndo_xdp_xmit callback) The page pool memory

[PATCH net-next v9 2/3] net: ethernet: ti: Add desc_infos member to struct k3_cppi_desc_pool

2024-04-12 Thread Julien Panis
This patch introduces a member and the related accessors which can be used to store descriptor specific additional information. This member can store, for instance, an ID to differentiate a skb TX buffer type from a xdpf TX buffer type. Signed-off-by: Julien Panis ---

[PATCH net-next v9 1/3] net: ethernet: ti: Add accessors for struct k3_cppi_desc_pool members

2024-04-12 Thread Julien Panis
This patch adds accessors for desc_size and cpumem members. They may be used, for instance, to compute a descriptor index. Reviewed-by: Jacob Keller Signed-off-by: Julien Panis --- drivers/net/ethernet/ti/k3-cppi-desc-pool.c | 12 drivers/net/ethernet/ti/k3-cppi-desc-pool.h | 2

[PATCH net-next v9 0/3] Add minimal XDP support to TI AM65 CPSW Ethernet driver

2024-04-12 Thread Julien Panis
This patch adds XDP support to TI AM65 CPSW Ethernet driver. The following features are implemented: NETDEV_XDP_ACT_BASIC, NETDEV_XDP_ACT_REDIRECT, and NETDEV_XDP_ACT_NDO_XMIT. Zero-copy and non-linear XDP buffer supports are NOT implemented. Besides, the page pool memory model is used to get

Re: [PATCH 0/2] drm/amdgpu/display: Make multi-plane configurations more flexible

2024-04-12 Thread Alex Deucher
On Fri, Apr 12, 2024 at 11:08 AM Pekka Paalanen wrote: > > On Fri, 12 Apr 2024 10:28:52 -0400 > Leo Li wrote: > > > On 2024-04-12 04:03, Pekka Paalanen wrote: > > > On Thu, 11 Apr 2024 16:33:57 -0400 > > > Leo Li wrote: > > > > > ... > > > >> That begs the question of what can be nailed down

Re: [PATCH 0/2] drm/amdgpu/display: Make multi-plane configurations more flexible

2024-04-12 Thread Pekka Paalanen
On Fri, 12 Apr 2024 10:28:52 -0400 Leo Li wrote: > On 2024-04-12 04:03, Pekka Paalanen wrote: > > On Thu, 11 Apr 2024 16:33:57 -0400 > > Leo Li wrote: > > ... > >> That begs the question of what can be nailed down and what can left to > >> independent implementation. I guess things like

Re: [PATCH v2 0/5] drm/vmwgfx: vblank and crc generation support

2024-04-12 Thread Martin Krastev
On Fri, Apr 12, 2024 at 5:55 AM Zack Rusin wrote: > > vmwgfx didn't have support for vblank or crc generation which made it > impossible to use a large number of IGT tests to properly test DRM > functionality in the driver. > > This series add virtual vblank and crc generation support, which

Re: [PATCH 0/2] drm/amdgpu/display: Make multi-plane configurations more flexible

2024-04-12 Thread Leo Li
On 2024-04-12 04:03, Pekka Paalanen wrote: On Thu, 11 Apr 2024 16:33:57 -0400 Leo Li wrote: On 2024-04-04 10:22, Marius Vlad wrote: On Thu, Apr 04, 2024 at 09:59:03AM -0400, Harry Wentland wrote: Hi all, On 2024-04-04 06:24, Pekka Paalanen wrote: On Wed, 3 Apr 2024 17:32:46 -0400

[PATCH] ARM: dts: bcm2835: Enable 3D rendering through V3D

2024-04-12 Thread Maíra Canal
RPi 0-3 is packed with a GPU that provides 3D rendering capabilities to the RPi. Currently, the downstream kernel uses an overlay to enable the GPU and use GPU hardware acceleration. When deploying a mainline kernel to the RPi 0-3, we end up without any GPU hardware acceleration (essentially, we

Re: [PATCH net-next v8 0/3] Add minimal XDP support to TI AM65 CPSW Ethernet driver

2024-04-12 Thread Julien Panis
On 4/10/24 01:51, Jacob Keller wrote: On 4/8/2024 2:38 AM, Julien Panis wrote: This patch adds XDP support to TI AM65 CPSW Ethernet driver. The following features are implemented: NETDEV_XDP_ACT_BASIC, NETDEV_XDP_ACT_REDIRECT, and NETDEV_XDP_ACT_NDO_XMIT. Zero-copy and non-linear XDP buffer

Re: [PATCH net-next v8 3/3] net: ethernet: ti: am65-cpsw: Add minimal XDP support

2024-04-12 Thread Julien Panis
On 4/10/24 17:02, Jakub Kicinski wrote: On Wed, 10 Apr 2024 16:02:00 +0200 Julien Panis wrote: You shouldn't build the skb upfront any more. Give the page to the HW, once HW sends you a completion - build the skbs. If build fails (allocation failure) just give the page back to HW. If it

Re: [PATCH] ARM: dts: bcm2835: Enable 3D rendering through V3D

2024-04-12 Thread Krzysztof Kozlowski
On 12/04/2024 15:25, Maíra Canal wrote: > RPi 0-3 is packed with a GPU that provides 3D rendering capabilities to > the RPi. Currently, the downstream kernel uses an overlay to enable the > GPU and use GPU hardware acceleration. When deploying a mainline kernel > to the RPi 0-3, we end up without

Re: [PATCH v12 4/7] drm/meson: gate px_clk when setting rate

2024-04-12 Thread Neil Armstrong
On 10/04/2024 21:34, Martin Blumenstingl wrote: Hi Neil, On Wed, Apr 3, 2024 at 9:46 AM Neil Armstrong wrote: Disable the px_clk when setting the rate to recover a fully configured and correctly reset VCLK clock tree after the rate is set. Fixes: 77d9e1e6b846 ("drm/meson: add support for

[PATCH] drm/i915/vma: Fix UAF on reopen vs destroy race

2024-04-12 Thread Janusz Krzysztofik
We defer actually closing, unbinding and destroying a VMA until next idle point, or until the object is freed in the meantime. By postponing the unbind, we allow for the VMA to be reopened by the client, avoiding the work required to rebind the VMA. It was assumed that as long as a GT is held

Re: [PATCH 0/4] log2: make is_power_of_2() more generic

2024-04-12 Thread Jani Nikula
On Wed, 05 Apr 2023, Steven Price wrote: > On 31/03/2023 09:31, Jani Nikula wrote: >> On Thu, 30 Mar 2023, Andrew Morton wrote: >>> On Thu, 30 Mar 2023 21:53:03 + David Laight >>> wrote: >>> > But wouldn't all these issues be addressed by simply doing > > #define

Re: [PATCH v5,05/23] dma-buf: heaps: Deduplicate docs and adopt common format

2024-04-12 Thread Christian König
Am 12.04.24 um 11:08 schrieb Yunfei Dong: From: "T.J. Mercier" The docs for dma_heap_get_name were incorrect, and since they were duplicated in the header they were wrong there too. The docs formatting was inconsistent so I tried to make it more consistent across functions since I'm already

[PATCH v5, 18/23] media: mediatek: vcodec: remove parse nal_info in kernel

2024-04-12 Thread Yunfei Dong
The hardware can parse syntax to get nal_info, needn't to use cpu. Signed-off-by: Yunfei Dong --- .../vcodec/decoder/vdec/vdec_h264_req_multi_if.c| 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git

[PATCH v5, 19/23] media: mediatek: vcodec: disable wait interrupt for svp mode

2024-04-12 Thread Yunfei Dong
Waiting interrupt in optee-os for svp mode, need to disable it in kernel in case of interrupt is cleaned. Signed-off-by: Yunfei Dong --- .../vcodec/decoder/mtk_vcodec_dec_hw.c| 34 +-- .../vcodec/decoder/mtk_vcodec_dec_pm.c| 6 +-

[PATCH v5, 21/23] media: mediatek: vcodec: move vdec init interface to setup callback

2024-04-12 Thread Yunfei Dong
Getting secure video playback (svp) flag when request output buffer, then calling init interface to init svp parameters in optee-os. Signed-off-by: Yunfei Dong --- .../mediatek/vcodec/decoder/mtk_vcodec_dec.c | 139 +++--- 1 file changed, 89 insertions(+), 50 deletions(-) diff

[PATCH v5, 11/23] media: mediatek: vcodec: initialize msg and vsi information

2024-04-12 Thread Yunfei Dong
Need to initialize msg and vsi information before sending to optee-os, then calling optee invoke command to send the information to optee-os. For the optee communication interface is different with scp, using flag to separate them. Signed-off-by: Yunfei Dong ---

[PATCH v5, 16/23] media: mediatek: vcodec: support one plane capture buffer

2024-04-12 Thread Yunfei Dong
The capture buffer has two planes for format MM21, but user space only allocate secure memory for plane[0], and the size is Y data + uv data. The driver need to support one plane decoder for svp mode. Signed-off-by: Yunfei Dong --- .../mediatek/vcodec/decoder/mtk_vcodec_dec.c | 7 -

[PATCH v5,20/23] media: mediatek: vcodec: support tee decoder

2024-04-12 Thread Yunfei Dong
Initialize tee private data to support secure decoder. Release tee related information for each instance when decoder done. Signed-off-by: Yunfei Dong --- .../platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.c | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v5, 23/23] WIP: media: mediatek: vcodec: support av1 svp decoder for mt8188

2024-04-12 Thread Yunfei Dong
From: Xiaoyong Lu Change av1 driver to support secure video playback(svp) for mt8188. Need to map shared memory with optee interface and wait interrupt in optee-os. Signed-off-by: Xiaoyong Lu Signed-off-by: Yunfei Dong --- .../vcodec/decoder/vdec/vdec_av1_req_lat_if.c | 97

[PATCH v5, 22/23] media: mediatek: vcodec: support hevc svp for mt8188

2024-04-12 Thread Yunfei Dong
Change hevc driver to support secure video playback(svp) for mt8188. Need to map shared memory with optee interface and wait interrupt in optee-os. Signed-off-by: Yunfei Dong --- .../decoder/vdec/vdec_hevc_req_multi_if.c | 89 +++ 1 file changed, 54 insertions(+), 35

[PATCH v5, 12/23] media: mediatek: vcodec: add interface to allocate/free secure memory

2024-04-12 Thread Yunfei Dong
Need to call dma heap interface to allocate/free secure memory when playing secure video. Signed-off-by: Yunfei Dong --- .../media/platform/mediatek/vcodec/Kconfig| 1 + .../mediatek/vcodec/common/mtk_vcodec_util.c | 122 +- .../mediatek/vcodec/common/mtk_vcodec_util.h |

[PATCH v5, 17/23] media: mediatek: vcodec: re-construct h264 driver to support svp mode

2024-04-12 Thread Yunfei Dong
Need secure buffer size to convert secure handle to secure pa in optee-os, re-construct the vsi struct to store each secure buffer size. Separate svp and normal wait interrupt condition for svp mode waiting hardware interrupt in optee-os. Signed-off-by: Yunfei Dong ---

[PATCH v5,15/23] media: mediatek: vcodec: Add one plane format

2024-04-12 Thread Yunfei Dong
Adding capture formats to support V4L2_PIX_FMT_MS21. This format has one plane and only be used for secure video playback at current period. Signed-off-by: Yunfei Dong --- .../platform/mediatek/vcodec/decoder/mtk_vcodec_dec.c| 4 +++- .../mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c

[PATCH v5, 10/23] media: mediatek: vcodec: send share memory data to optee

2024-04-12 Thread Yunfei Dong
Setting msg and vsi information to shared buffer, then call tee invoke function to send it to optee-os. Signed-off-by: Yunfei Dong --- .../vcodec/decoder/mtk_vcodec_dec_optee.c | 140 ++ .../vcodec/decoder/mtk_vcodec_dec_optee.h | 51 +++ 2 files changed, 191

[PATCH v5, 13/23] media: mediatek: vcodec: using shared memory as vsi address

2024-04-12 Thread Yunfei Dong
The vsi buffer is allocated by tee share memory for svp mode, need to use the share memory as the vsi address to store vsi data. Signed-off-by: Yunfei Dong --- .../vcodec/decoder/vdec/vdec_h264_req_multi_if.c | 9 +++-- .../media/platform/mediatek/vcodec/decoder/vdec_vpu_if.c | 8

[PATCH v5, 14/23] media: mediatek: vcodec: Add capture format to support one plane memory

2024-04-12 Thread Yunfei Dong
Define one uncompressed capture format V4L2_PIX_FMT_MS21 in order to support one plane memory. The buffer size is luma + chroma, luma is stored at the start and chrome is stored at the end. Signed-off-by: Yunfei Dong --- Documentation/userspace-api/media/v4l/pixfmt-reserved.rst | 8

[PATCH v5, 08/23] media: mediatek: vcodec: add tee client interface to communiate with optee-os

2024-04-12 Thread Yunfei Dong
Open tee context to initialize the environment in order to communication with optee-os, then open tee session as the communication pipeline for lat and core to send data for hardware decode. Signed-off-by: Yunfei Dong --- .../platform/mediatek/vcodec/decoder/Makefile | 1 +

[PATCH v5,09/23] media: mediatek: vcodec: allocate tee share memory

2024-04-12 Thread Yunfei Dong
Allocate two share memory for each lat and core hardware used to share information with optee-os. Msg buffer used to send ipi command and get ack command with optee-os, data buffer used to store vsi information which used for hardware decode. Signed-off-by: Yunfei Dong ---

[PATCH v5, 07/23] dma-heap: Provide accessors so that in-kernel drivers can allocate dmabufs from specific heaps

2024-04-12 Thread Yunfei Dong
From: John Stultz This allows drivers who don't want to create their own DMA-BUF exporter to be able to allocate DMA-BUFs directly from existing DMA-BUF Heaps. There is some concern that the premise of DMA-BUF heaps is that userland knows better about what type of heap memory is needed for a

[PATCH v5, 05/23] dma-buf: heaps: Deduplicate docs and adopt common format

2024-04-12 Thread Yunfei Dong
From: "T.J. Mercier" The docs for dma_heap_get_name were incorrect, and since they were duplicated in the header they were wrong there too. The docs formatting was inconsistent so I tried to make it more consistent across functions since I'm already in here doing cleanup. Remove multiple

[PATCH v5,06/23] dma-heap: Add proper kref handling on dma-buf heaps

2024-04-12 Thread Yunfei Dong
From: John Stultz Add proper refcounting on the dma_heap structure. While existing heaps are built-in, we may eventually have heaps loaded from modules, and we'll need to be able to properly handle the references to the heaps Signed-off-by: John Stultz Signed-off-by: T.J. Mercier

[PATCH v5,04/23] v4l: add documentation for restricted memory flag

2024-04-12 Thread Yunfei Dong
From: Jeffrey Kardatzke Adds documentation for V4L2_MEMORY_FLAG_RESTRICTED. Signed-off-by: Jeffrey Kardatzke Signed-off-by: Yunfei Dong --- Documentation/userspace-api/media/v4l/buffer.rst | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git

[PATCH v5, 03/23] v4l2: verify restricted dmabufs are used in restricted queue

2024-04-12 Thread Yunfei Dong
From: Jeffrey Kardatzke Verfies in the dmabuf implementations that if the restricted memory flag is set for a queue that the dmabuf submitted to the queue is unmappable. Signed-off-by: Jeffrey Kardatzke Signed-off-by: Yunfei Dong --- drivers/media/common/videobuf2/videobuf2-dma-contig.c | 8

[PATCH v5,01/23] v4l2: add restricted memory flags

2024-04-12 Thread Yunfei Dong
From: Jeffrey Kardatzke Adds a V4L2 flag which indicates that a queue is using restricted dmabufs and the corresponding capability flag. Signed-off-by: Jeffrey Kardatzke Signed-off-by: Yunfei Dong --- include/media/videobuf2-core.h | 8 +++- include/uapi/linux/videodev2.h | 2 ++ 2 files

[PATCH v5,02/23] v4l2: handle restricted memory flags in queue setup

2024-04-12 Thread Yunfei Dong
From: Jeffrey Kardatzke Validates the restricted memory flags when setting up a queue and ensures the queue has the proper capability. Signed-off-by: Jeffrey Kardatzke Signed-off-by: Yunfei Dong --- .../media/common/videobuf2/videobuf2-core.c | 21 +++

[PATCH v5,00/22] media: add driver to support secure video decoder

2024-04-12 Thread Yunfei Dong
The patch series used to enable secure video playback (SVP) on MediaTek 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. linux kernel/user space). secure

[PATCH] drm/msm/a6xx: Avoid a nullptr dereference when speedbin setting fails

2024-04-12 Thread Konrad Dybcio
} --- base-commit: 2b3d5988ae2cb5cd945ddbc653f0a71706231fdd change-id: 20240412-topic-adreno_nullptr_supphw-10dbf5330044 Best regards, -- Konrad Dybcio

[PATCH v2] drm: bridge: cdns-mhdp8546: Fix possible null pointer dereference

2024-04-12 Thread Aleksandr Mishin
In cdns_mhdp_atomic_enable(), the return value of drm_mode_duplicate() is assigned to mhdp_state->current_mode, and there is a dereference of it in drm_mode_set_name(), which will lead to a NULL pointer dereference on failure of drm_mode_duplicate(). Fix this bug by adding a check of

Re: [PATCH 4.19 000/175] 4.19.312-rc1 review

2024-04-12 Thread Greg Kroah-Hartman
On Thu, Apr 11, 2024 at 07:50:57PM +0530, Naresh Kamboju wrote: > On Thu, 11 Apr 2024 at 15:30, Greg Kroah-Hartman > wrote: > > > > This is the start of the stable review cycle for the 4.19.312 release. > > There are 175 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH] drm/edid: Parse topology block for all DispID structure v1.x

2024-04-12 Thread Jani Nikula
On Wed, 10 Apr 2024, Ville Syrjala wrote: > From: Ville Syrjälä > > DisplayID spec v1.3 revision history notes do claim that > the toplogy block was added in v1.3 so requiring structure > v1.2 would seem correct, but there is at least one EDID in > edid.tv with a topology block and structure

Re: [PATCH] drm/gma500: Check power status before accessing lid data in opregion

2024-04-12 Thread Thomas Zimmermann
Hi Am 12.04.24 um 10:16 schrieb Patrik Jakobsson: On Fri, Apr 12, 2024 at 10:02 AM Thomas Zimmermann wrote: Hi, the issue of hanging during boot is still resent. Thanks for testing. Then it cannot be that psb_lid_timer_func runs before initialization. The BUG from Enrico hints that the

Re: [PATCH] drm/gma500: Check power status before accessing lid data in opregion

2024-04-12 Thread Patrik Jakobsson
On Fri, Apr 12, 2024 at 10:02 AM Thomas Zimmermann wrote: > > Hi, > > the issue of hanging during boot is still resent. Thanks for testing. Then it cannot be that psb_lid_timer_func runs before initialization. The BUG from Enrico hints that the set_brightness function is called before

Re: [PATCH] drm/gma500: Check power status before accessing lid data in opregion

2024-04-12 Thread Thomas Zimmermann
Am 12.04.24 um 10:02 schrieb Thomas Zimmermann: Hi, the issue of hanging during boot is still resent. 'present' Best regards Thomas Am 12.04.24 um 09:24 schrieb Patrik Jakobsson: Due to changes in the order of initialization the psb_lid_timer_func could get called without the device

Re: [PATCH 0/2] drm/amdgpu/display: Make multi-plane configurations more flexible

2024-04-12 Thread Pekka Paalanen
On Thu, 11 Apr 2024 16:33:57 -0400 Leo Li wrote: > On 2024-04-04 10:22, Marius Vlad wrote: > > On Thu, Apr 04, 2024 at 09:59:03AM -0400, Harry Wentland wrote: > >> > > Hi all, > >> > >> On 2024-04-04 06:24, Pekka Paalanen wrote: > >>> On Wed, 3 Apr 2024 17:32:46 -0400 > >>> Leo Li

Re: [PATCH] drm/gma500: Check power status before accessing lid data in opregion

2024-04-12 Thread Thomas Zimmermann
Hi, the issue of hanging during boot is still resent. Best regards Thomas Am 12.04.24 um 09:24 schrieb Patrik Jakobsson: Due to changes in the order of initialization the psb_lid_timer_func could get called without the device being powered. Fix this by checking the power status before

Re: [PATCH] dma-buf: add DMA_BUF_IOCTL_SYNC_PARTIAL support

2024-04-12 Thread Rong Qianfeng
在 2024/4/12 0:52, T.J. Mercier 写道: On Thu, Apr 11, 2024 at 1:21 AM Rong Qianfeng <11065...@vivo.com> wrote: 在 2024/4/10 0:37, T.J. Mercier 写道: [You don't often get email from tjmerc...@google.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] On Tue, Apr

Re: [PATCH v7 0/5] Add Tegra Security Engine driver

2024-04-12 Thread Herbert Xu
On Wed, Apr 03, 2024 at 03:30:34PM +0530, Akhil R wrote: > Add support for Tegra Security Engine which can accelerates various > crypto algorithms. The Engine has two separate instances within for > AES and HASH algorithms respectively. > > The driver registers two crypto engines - one for AES

[PATCH] drm/gma500: Check power status before accessing lid data in opregion

2024-04-12 Thread Patrik Jakobsson
Due to changes in the order of initialization the psb_lid_timer_func could get called without the device being powered. Fix this by checking the power status before accessing the opregion. Cc: Enrico Bartky Cc: Thomas Zimmermann Signed-off-by: Patrik Jakobsson ---

Re: linux-next: build warning after merge of the drm-misc tree

2024-04-12 Thread Stephen Rothwell
Hi all, On Fri, 12 Apr 2024 16:58:26 +1000 Stephen Rothwell wrote: > > After merging the drm-misc tree, today's linux-next build (htmldocs) > produced this warning: > > drivers/gpu/drm/drm_plane.c:1767: warning: expecting prototype for > drm_plane_add_size_hint_property(). Prototype was for

linux-next: build warning after merge of the drm-misc tree

2024-04-12 Thread Stephen Rothwell
Hi all, After merging the drm-misc tree, today's linux-next build (htmldocs) produced this warning: drivers/gpu/drm/drm_plane.c:1767: warning: expecting prototype for drm_plane_add_size_hint_property(). Prototype was for drm_plane_add_size_hints_property() instead Introduced by commit

Re: [PATCH] treewide: Fix common grammar mistake "the the"

2024-04-12 Thread Jani Nikula
On Fri, 12 Apr 2024, Thorsten Blum wrote: > On 11. Apr 2024, at 17:25, Dan Carpenter wrote: >> >> It's tricky to know which tree a patch like this would go through. > > The patch is based on the mainline tree. Should I have sent it directly to > Linus then? > > I'm relatively new here and

Re: [PATCH] dmabuf: fix dmabuf file poll uaf issue

2024-04-12 Thread Christian König
Am 12.04.24 um 08:19 schrieb zhiguojiang: [SNIP] -> Here task 2220 do epoll again where internally it will get/put then start to free twice and lead to final crash. Here is the basic flow: 1. Thread A install the dma_buf_fd via dma_buf_export, the fd refcount is 1 2. Thread A add the fd

Re: [PATCH] dmabuf: fix dmabuf file poll uaf issue

2024-04-12 Thread zhiguojiang
在 2024/4/3 2:22, T.J. Mercier 写道: [你通常不会收到来自 tjmerc...@google.com 的电子邮件。请访问 https://aka.ms/LearnAboutSenderIdentification,以了解这一点为什么很重要] On Tue, Apr 2, 2024 at 1:08 AM Christian König wrote: Am 02.04.24 um 08:49 schrieb zhiguojiang: As far as I can see that's not because of the DMA-buf