RE: [PATCH v8 06/10] drm/i915/hdcp: Retain hdcp_capable return codes

2023-04-02 Thread Kandpal, Suraj
> -Original Message- > From: Kandpal, Suraj > Sent: Monday, April 3, 2023 12:12 PM > To: Mark Yacoub ; Jani Nikula > ; Joonas Lahtinen > ; Vivi, Rodrigo ; > Tvrtko Ursulin ; David Airlie > ; Daniel Vetter > Cc: seanp...@chromium.org; diand...@chromium.org; dri- > de...@lists.freedesktop

RE: [PATCH v8 06/10] drm/i915/hdcp: Retain hdcp_capable return codes

2023-04-02 Thread Kandpal, Suraj
> -Original Message- > From: Mark Yacoub > Sent: Saturday, April 1, 2023 3:42 AM > To: Jani Nikula ; Joonas Lahtinen > ; Vivi, Rodrigo ; > Tvrtko Ursulin ; David Airlie > ; Daniel Vetter > Cc: seanp...@chromium.org; Kandpal, Suraj ; > diand...@chromium.org; dri-devel@lists.freedesktop.

RE: [PATCH v8 04/10] drm/hdcp: Expand HDCP helper library for enable/disable/check

2023-04-02 Thread Kandpal, Suraj
> -Original Message- > From: Mark Yacoub > Sent: Saturday, April 1, 2023 3:42 AM > To: David Airlie ; Daniel Vetter > Cc: seanp...@chromium.org; Kandpal, Suraj ; > diand...@chromium.org; dri-devel@lists.freedesktop.org; > freedr...@lists.freedesktop.org; intel-...@lists.freedesktop.org

Re: [PATCH] drm/panfrost: Fix the panfrost_mmu_map_fault_addr() error path

2023-04-02 Thread Boris Brezillon
+David On Fri, 21 May 2021 11:42:04 +0100 Steven Price wrote: > On 21/05/2021 10:38, Boris Brezillon wrote: > > Make sure all bo->base.pages entries are either NULL or pointing to a > > valid page before calling drm_gem_shmem_put_pages(). > > > > Reported-by: Tomeu Vizoso > > Cc: > > Fixes: 1

Re: [PATCH] accel/habanalabs/uapi: new Gaudi2 server type

2023-04-02 Thread Stanislaw Gruszka
On Thu, Mar 30, 2023 at 12:32:34PM +0300, Oded Gabbay wrote: > Add definition of a new Gaudi2 server type. This represents > the connectivity between the cards in that server type. > > Signed-off-by: Oded Gabbay Reviewed-by: Stanislaw Gruszka > --- > include/uapi/drm/habanalabs_accel.h | 3 ++-

RE: [PATCH 0/7] Enable YCbCr420 format for VDSC

2023-04-02 Thread Shankar, Uma
> -Original Message- > From: Dmitry Baryshkov > Sent: Tuesday, March 28, 2023 6:58 PM > To: Kandpal, Suraj > Cc: Jani Nikula ; > dri-devel@lists.freedesktop.org; > intel-...@lists.freedesktop.org; Nautiyal, Ankit K > ; > Shankar, Uma ; Maarten Lankhorst > > Subject: Re: [PATCH 0/7] E

Re: [PATCH] drm/mediatek: dp: change the aux retries times when receiving AUX_DEFER

2023-04-02 Thread Chun-Kuang Hu
Hi, Xinlei: 於 2023年3月29日 週三 下午2:43寫道: > > From: Xinlei Lee > > DP 1.4a Section 2.8.7.1.5.6.1: > A DP Source device shall retry at least seven times upon receiving > AUX_DEFER before giving up the AUX transaction. > > The drm_dp_i2c_do_msg() function in the drm_dp_helper.c file will > judge the s

Re: [PATCH v30 0/7] Add MediaTek SoC DRM (vdosys1) support for mt8195

2023-04-02 Thread Chun-Kuang Hu
Hi, Chen-yu: Chen-Yu Tsai 於 2023年3月30日 週四 下午7:05寫道: > > On Mon, Mar 27, 2023 at 11:17 PM Chun-Kuang Hu > wrote: > > > > Hi, Angelo: > > > > AngeloGioacchino Del Regno 於 > > 2023年3月24日 週五 下午4:38寫道: > > > > > > Il 24/03/23 00:25, Chun-Kuang Hu ha scritto: > > > > Hi, Angelo: > > > > > > > > Ange

Re: [PATCH 01/21] dt-bindings: display: mediatek: aal: add binding for MT8365 SoC

2023-04-02 Thread Chun-Kuang Hu
Hi, Matthias: Matthias Brugger 於 2023年3月31日 週五 下午10:55寫道: > > Hi Chun-Kuang Hu, > > On 13/03/2023 16:02, Chun-Kuang Hu wrote: > > Hi, Alexandre: > > > > Alexandre Mergnat 於 2023年3月9日 週四 下午10:23寫道: > >> > >> Display Adaptive Ambient Light for MT8365 is compatible with another SoC. > >> Then, add

Re: [PATCH v3 1/2] drm/mediatek: Add mdp_rdma get format function

2023-04-02 Thread Chun-Kuang Hu
Hi, Nancy: Nancy.Lin 於 2023年3月30日 週四 上午11:26寫道: > > Add mdp_rdma get_format and get_num_formats function. For the series, applied to mediatek-drm-next [1], thanks. [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-next Regards, Chun-Kuang. > > Sig

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

2023-04-02 Thread Stephen Rothwell
Hi all, After merging the drm-misc tree, today's linux-next build (arm multi_v7_defconfig) failed like this: drivers/gpu/drm/lima/lima_ctx.c: In function 'lima_ctx_do_release': drivers/gpu/drm/lima/lima_ctx.c:53:45: error: 'struct drm_sched_entity' has no member named 'elapsed_ns' 53 |

Re: [PATCH] drm/vblank: Fix for drivers that do not drm_vblank_init()

2023-04-02 Thread Nathan Chancellor
On Sat, Apr 01, 2023 at 08:38:02AM -0700, Rob Clark wrote: > From: Rob Clark > > This should fix a crash that was reported on ast (and possibly other > drivers which do not initialize vblank). > >fbcon: Taking over console >Unable to handle kernel NULL pointer dereference at virtual addr

Re: [PATCH] dt-bindings: bridge: Convert Samsung MIPI DSIM bridge to yaml

2023-04-02 Thread Marek Vasut
On 3/31/23 21:57, Fabio Estevam wrote: From: Jagan Teki Samsung MIPI DSIM bridge can be found on Exynos and NXP's i.MX8M Mini and Nano SoC's. MX8M Plus too . Convert exynos_dsim.txt to yaml. Used the example node from latest Exynos SoC instead of the one used in legacy exynos_dsim.txt. Si

Re: [PATCH v4 2/2] drm/virtio: Support sync objects

2023-04-02 Thread Dmitry Osipenko
On 3/30/23 20:24, Emil Velikov wrote: > Hi Dmitry, > > Have you considered creating a few DRM helpers for this functionality? > > AFAICT this is the third driver which supports syncobj timelines and > looking at one of the implementations ... it is not great. Note that > this suggestion is _not_

[PATCH v1 7/7] drm/shmem-helper: Switch to reservation lock

2023-04-02 Thread Dmitry Osipenko
Replace all drm-shmem locks with a GEM reservation lock. This makes locks consistent with dma-buf locking convention where importers are responsible for holding reservation lock for all operations performed over dma-bufs, preventing deadlock between dma-buf importers and exporters. Suggested-by: D

[PATCH v1 6/7] dma-buf: Change locking policy for mmap()

2023-04-02 Thread Dmitry Osipenko
Change locking policy of mmap() callback, making exporters responsible for handling dma-buf reservation locking. Previous locking policy stated that dma-buf is locked for both importers and exporters by the dma-buf core, which caused a deadlock problem for DRM drivers in a case of self-imported dma

[PATCH v1 3/7] Revert "udmabuf: Assert held reservation lock for dma-buf mmapping"

2023-04-02 Thread Dmitry Osipenko
Don't assert held dma-buf reservation lock on memory mapping of exported buffer. We're going to change dma-buf mmap() locking policy such that exporters will have to handle the lock. The previous locking policy caused deadlock problem for DRM drivers in a case of self-imported dma-bufs, it's solve

[PATCH v1 5/7] Revert "drm: Assert held reservation lock for dma-buf mmapping"

2023-04-02 Thread Dmitry Osipenko
Don't assert held dma-buf reservation lock on memory mapping of exported buffer. We're going to change dma-buf mmap() locking policy such that exporters will have to handle the lock. The previous locking policy caused deadlock problem for DRM drivers in a case of self-imported dma-bufs, it's solve

[PATCH v1 4/7] Revert "fastrpc: Assert held reservation lock for dma-buf mmapping"

2023-04-02 Thread Dmitry Osipenko
Don't assert held dma-buf reservation lock on memory mapping of exported buffer. We're going to change dma-buf mmap() locking policy such that exporters will have to handle the lock. The previous locking policy caused deadlock problem for DRM drivers in a case of self-imported dma-bufs, it's solve

[PATCH v1 2/7] Revert "dma-buf/heaps: Assert held reservation lock for dma-buf mmapping"

2023-04-02 Thread Dmitry Osipenko
Don't assert held dma-buf reservation lock on memory mapping of exported buffer. We're going to change dma-buf mmap() locking policy such that exporters will have to handle the lock. The previous locking policy caused deadlock problem for DRM drivers in a case of self-imported dma-bufs, it's solve

[PATCH v1 1/7] Revert "media: videobuf2: Assert held reservation lock for dma-buf mmapping"

2023-04-02 Thread Dmitry Osipenko
Don't assert held dma-buf reservation lock on memory mapping of exported buffer. We're going to change dma-buf mmap() locking policy such that exporters will have to handle the lock. The previous locking policy caused deadlock problem for DRM drivers in a case of self-imported dma-bufs, it's solve

[PATCH v1 0/7] Move dma-buf mmap() reservation locking down to exporters

2023-04-02 Thread Dmitry Osipenko
This patchset makes dma-buf exporters responisble for taking care of the reservation lock. I also included patch that moves drm-shmem to use reservation lock, to let CI test the whole set. I'm going to take all the patches via the drm-misc tree, please give an ack. Previous policy stated that dma-

Re: [PATCH v6 01/15] drm/msm/adreno: adreno_gpu: Don't set OPP scaling clock w/ GMU

2023-04-02 Thread Dmitry Baryshkov
On 01/04/2023 14:54, Konrad Dybcio wrote: Recently I contributed the switch to OPP API for all Adreno generations. I did however also skip over the fact that GPUs with a GMU don't specify a core clock of any kind in the GPU node. While that didn't break anything, it did introduce unwanted spam in

[PATCH v7 1/2] drm/fourcc: Add Synaptics VideoSmart tiled modifiers

2023-04-02 Thread Randy Li
From: "Hsia-Jun(Randy) Li" Those modifiers only record the parameters would effort pixel layout or memory layout. Whether physical memory page mapping is used is not a part of format. Signed-off-by: Hsia-Jun(Randy) Li --- include/uapi/drm/drm_fourcc.h | 75 +++

[PATCH v7 0/2] Add pixel formats used in Synatpics SoC

2023-04-02 Thread Randy Li
Those pixel formats are used in Synaptics's VideoSmart series SoCs, likes VS640, VS680. I just disclose the pixel formats used in the video codecs and display pipeline this time. Actually any device connected to the MTR module could support those tiling and compressed pixel formats. https://synapt

[PATCH v7 2/2] Documentation/gpu: Add Synaptics tiling formats documentation

2023-04-02 Thread Randy Li
Signed-off-by: Randy Li Signed-off-by: Hsia-Jun(Randy) Li --- Documentation/gpu/drivers.rst | 1 + Documentation/gpu/synaptics.rst | 81 + 2 files changed, 82 insertions(+) create mode 100644 Documentation/gpu/synaptics.rst diff --git a/Documentation/gpu/driv

Re: [PATCH v13 01/10] drm/shmem-helper: Switch to reservation lock

2023-04-02 Thread Dmitry Osipenko
On 3/26/23 12:19, Christian König wrote: > Am 25.03.23 um 15:58 schrieb Dmitry Osipenko: >> On 3/15/23 16:46, Dmitry Osipenko wrote: >>> On 3/14/23 05:26, Dmitry Osipenko wrote: @@ -633,7 +605,10 @@ int drm_gem_shmem_mmap(struct drm_gem_shmem_object *shmem, struct vm_area_struct

Re: [PATCH 0/3] drm/lima: expose usage statistics via fdinfo

2023-04-02 Thread Qiang Yu
> "df622729ddbf drm/scheduler: track GPU active time per entity" had to > be reverted due to it introducing a use after free. I guess this > patchset now conflicts with the revert. > I do get some build fail message on other branch. Do I need to revert this patchset on drm-misc-next or left to bran

[drm-tip:drm-tip 3/7] drivers/gpu/drm/lima/lima_ctx.c:53:45: error: 'struct drm_sched_entity' has no member named 'elapsed_ns'

2023-04-02 Thread kernel test robot
tree: git://anongit.freedesktop.org/drm/drm-tip drm-tip head: 25abf2df726cac2701780b068df74a9c36d60655 commit: 6e744f4032e55f6ea113d5b10906aebbd626e5b7 [3/7] Merge remote-tracking branch 'drm-misc/drm-misc-next' into drm-tip config: arm64-buildonly-randconfig-r001-20230402 (https:

Re: [PATCH RFC v2 6/6] drm/msm/dsi: Fix calculations for eol_byte_num and pkt_per_line

2023-04-02 Thread Dmitry Baryshkov
On 31/03/2023 21:49, Jessica Zhang wrote: Use the correct calculations for eol_byte_num and pkt_per_line. Nit: this line duplicates commit subject and thus is mostly useless. Currently, pkt_per_line is calculated by dividing slice_per_intf by slice_count. This is incorrect, as slice_per_intf

Re: [PATCH RFC v2 5/6] drm/msm/dsi: Use MSM and DRM DSC helper methods

2023-04-02 Thread Dmitry Baryshkov
On 31/03/2023 21:49, Jessica Zhang wrote: Use MSM and DRM DSC helper methods to configure DSC for DSI. Changes in V2: - *_calculate_initial_scale_value --> *_set_initial_scale_value - Split pkt_per_line and eol_byte_num changes to a separate patch - Moved pclk_per_line calculation to hdisplay ad

Re: [PATCH RFC v2 4/6] drm/msm/dpu: Fix slice_last_group_size calculation

2023-04-02 Thread Dmitry Baryshkov
On 31/03/2023 21:49, Jessica Zhang wrote: Correct the math for slice_last_group_size so that it matches the calculations downstream. Fixes: c110cfd1753e ("drm/msm/disp/dpu1: Add support for DSC") Signed-off-by: Jessica Zhang Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu

Re: [PATCH RFC v2 3/6] drm/msm/dpu: Use DRM DSC helper for det_thresh_flatness

2023-04-02 Thread Dmitry Baryshkov
On 31/03/2023 21:49, Jessica Zhang wrote: Use the DRM DSC helper for det_thresh_flatness to match downstream implementation and the DSC spec. Changes in V2: - Added a Fixes tag Fixes: c110cfd1753e ("drm/msm/disp/dpu1: Add support for DSC") Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm

Re: [PATCH RFC v2 2/6] drm/msm: Add MSM-specific DSC helper methods

2023-04-02 Thread Dmitry Baryshkov
On 31/03/2023 21:49, Jessica Zhang wrote: Introduce MSM-specific DSC helper methods, as some calculations are common between DP and DSC. Changes in v2: - Moved files up to msm/ directory - Dropped get_comp_ratio() helper - Used drm_int2fixp() to convert to integers to fp - Style changes to impro

Re: [PATCH 0/3] drm/lima: expose usage statistics via fdinfo

2023-04-02 Thread Lucas Stach
Am Sonntag, dem 02.04.2023 um 18:22 +0800 schrieb Qiang Yu: > Applied to drm-misc-next. > "df622729ddbf drm/scheduler: track GPU active time per entity" had to be reverted due to it introducing a use after free. I guess this patchset now conflicts with the revert. Regards, Lucas > On Mon, Mar 13

Re: [PATCH 3/3] drm: sun4i: calculate proper DCLK rate for DSI

2023-04-02 Thread Frank Oltmanns
Hi Roman, On 2023-03-31 at 13:02:45 +0200, Roman Beranek wrote: > In DSI mode, TCON0's data clock is required to run at 1/4 the per-lane > bit rate. > > Signed-off-by: Roman Beranek > --- > drivers/gpu/drm/sun4i/sun4i_tcon.c | 36 +- > 1 file changed, 21 insertions(+

Re: [PATCH 0/3] drm/lima: expose usage statistics via fdinfo

2023-04-02 Thread Qiang Yu
Applied to drm-misc-next. On Mon, Mar 13, 2023 at 11:09 AM Qiang Yu wrote: > > Patch set is: > Reviewed-by: Qiang Yu > > Looks like drm-misc-next does not contain "df622729ddbf drm/scheduler: > track GPU active time per entity" yet. > Will apply later. > > Regards, > Qiang > > On Mon, Mar 13, 20

Re: [PATCH] drm/lima/lima_drv: Add missing unwind goto in lima_pdev_probe()

2023-04-02 Thread Qiang Yu
Applied to drm-misc-next. On Tue, Mar 14, 2023 at 2:22 PM Qiang Yu wrote: > > Reviewed-by: Qiang Yu > > On Tue, Mar 14, 2023 at 1:27 PM Harshit Mogalapalli > wrote: > > > > Smatch reports: > > drivers/gpu/drm/lima/lima_drv.c:396 lima_pdev_probe() warn: > > missing unwind goto? > > > > S

[Bug 217278] ast 0000:03:00.0: PM: **** DPM device timeout **** during S4 resuming

2023-04-02 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217278 The Linux kernel's regression tracker (Thorsten Leemhuis) (regressi...@leemhuis.info) changed: What|Removed |Added C