Re: [Freedreno] [RFC PATCH 1/2] drm/msm/dpu: add dsc helper functions

2023-02-24 Thread Abhinav Kumar
On 2/24/2023 3:53 PM, Dmitry Baryshkov wrote: On Sat, 25 Feb 2023 at 00:26, Abhinav Kumar wrote: On 2/24/2023 1:36 PM, Dmitry Baryshkov wrote: 24 февраля 2023 г. 23:23:03 GMT+02:00, Abhinav Kumar пишет: On 2/24/2023 1:13 PM, Dmitry Baryshkov wrote: On 24/02/2023 21:40, Kuogee Hsieh wrot

Re: [Freedreno] [RFC PATCH 1/2] drm/msm/dpu: add dsc helper functions

2023-02-24 Thread Dmitry Baryshkov
On Sat, 25 Feb 2023 at 01:51, Kuogee Hsieh wrote: > > > On 2/24/2023 1:13 PM, Dmitry Baryshkov wrote: > > On 24/02/2023 21:40, Kuogee Hsieh wrote: > >> Add DSC helper functions based on DSC configuration profiles to produce > >> DSC related runtime parameters through both table look up and runtime

Re: [Freedreno] [RFC PATCH 1/2] drm/msm/dpu: add dsc helper functions

2023-02-24 Thread Dmitry Baryshkov
On Sat, 25 Feb 2023 at 00:26, Abhinav Kumar wrote: > On 2/24/2023 1:36 PM, Dmitry Baryshkov wrote: > > 24 февраля 2023 г. 23:23:03 GMT+02:00, Abhinav Kumar > > пишет: > >> On 2/24/2023 1:13 PM, Dmitry Baryshkov wrote: > >>> On 24/02/2023 21:40, Kuogee Hsieh wrote: > Add DSC helper functions

Re: [Freedreno] [RFC PATCH 1/2] drm/msm/dpu: add dsc helper functions

2023-02-24 Thread Kuogee Hsieh
On 2/24/2023 1:13 PM, Dmitry Baryshkov wrote: On 24/02/2023 21:40, Kuogee Hsieh wrote: Add DSC helper functions based on DSC configuration profiles to produce DSC related runtime parameters through both table look up and runtime calculation to support DSC on DPU. There are 6 different DSC con

Re: [Freedreno] [RFC PATCH 1/2] drm/msm/dpu: add dsc helper functions

2023-02-24 Thread Abhinav Kumar
On 2/24/2023 1:36 PM, Dmitry Baryshkov wrote: 24 февраля 2023 г. 23:23:03 GMT+02:00, Abhinav Kumar пишет: On 2/24/2023 1:13 PM, Dmitry Baryshkov wrote: On 24/02/2023 21:40, Kuogee Hsieh wrote: Add DSC helper functions based on DSC configuration profiles to produce DSC related runtime pa

[Freedreno] [PATCH 1/2] drm/lima: Use drm_sched_job_add_syncobj_dependency()

2023-02-24 Thread Maíra Canal
As lima_gem_add_deps() performs the same steps as drm_sched_job_add_syncobj_dependency(), replace the open-coded implementation in Lima in order to simply use the DRM function. Signed-off-by: Maíra Canal --- drivers/gpu/drm/lima/lima_gem.c | 12 ++-- 1 file changed, 2 insertions(+), 10 d

[Freedreno] [PATCH 2/2] drm/msm: Use drm_sched_job_add_syncobj_dependency()

2023-02-24 Thread Maíra Canal
As msm_parse_deps() performs the same steps as drm_sched_job_add_syncobj_dependency(), replace the open-coded implementation in msm in order to simply use the DRM function. Signed-off-by: Maíra Canal --- drivers/gpu/drm/msm/msm_gem_submit.c | 9 ++--- 1 file changed, 2 insertions(+), 7 delet

Re: [Freedreno] [RFC PATCH 1/2] drm/msm/dpu: add dsc helper functions

2023-02-24 Thread Dmitry Baryshkov
24 февраля 2023 г. 23:23:03 GMT+02:00, Abhinav Kumar пишет: > > >On 2/24/2023 1:13 PM, Dmitry Baryshkov wrote: >> On 24/02/2023 21:40, Kuogee Hsieh wrote: >>> Add DSC helper functions based on DSC configuration profiles to produce >>> DSC related runtime parameters through both table look up and

Re: [Freedreno] [RFC PATCH 2/2] drm/msm/dsi: use new dpu_dsc_populate_dsc_config()

2023-02-24 Thread Abhinav Kumar
On 2/24/2023 1:14 PM, Dmitry Baryshkov wrote: On 24/02/2023 23:09, Abhinav Kumar wrote: On 2/24/2023 1:04 PM, Dmitry Baryshkov wrote: On 24/02/2023 21:40, Kuogee Hsieh wrote: use new introduced dpu_dsc_populate_dsc_config() to calculate and populate drm_dsc_info instead of hard code value

Re: [Freedreno] [RFC PATCH 1/2] drm/msm/dpu: add dsc helper functions

2023-02-24 Thread Abhinav Kumar
On 2/24/2023 1:13 PM, Dmitry Baryshkov wrote: On 24/02/2023 21:40, Kuogee Hsieh wrote: Add DSC helper functions based on DSC configuration profiles to produce DSC related runtime parameters through both table look up and runtime calculation to support DSC on DPU. There are 6 different DSC co

Re: [Freedreno] [RFC PATCH 2/2] drm/msm/dsi: use new dpu_dsc_populate_dsc_config()

2023-02-24 Thread Dmitry Baryshkov
On 24/02/2023 23:09, Abhinav Kumar wrote: On 2/24/2023 1:04 PM, Dmitry Baryshkov wrote: On 24/02/2023 21:40, Kuogee Hsieh wrote: use new introduced dpu_dsc_populate_dsc_config() to calculate and populate drm_dsc_info instead of hard code value. DPU is an optional component, so DSI driver sh

Re: [Freedreno] [RFC PATCH 1/2] drm/msm/dpu: add dsc helper functions

2023-02-24 Thread Dmitry Baryshkov
On 24/02/2023 21:40, Kuogee Hsieh wrote: Add DSC helper functions based on DSC configuration profiles to produce DSC related runtime parameters through both table look up and runtime calculation to support DSC on DPU. There are 6 different DSC configuration profiles are supported currently. DSC

Re: [Freedreno] [RFC PATCH 2/2] drm/msm/dsi: use new dpu_dsc_populate_dsc_config()

2023-02-24 Thread Abhinav Kumar
On 2/24/2023 1:04 PM, Dmitry Baryshkov wrote: On 24/02/2023 21:40, Kuogee Hsieh wrote: use new introduced dpu_dsc_populate_dsc_config() to calculate and populate drm_dsc_info instead of hard code value. DPU is an optional component, so DSI driver should not depend on the DPU driver. To

Re: [Freedreno] [RFC PATCH 2/2] drm/msm/dsi: use new dpu_dsc_populate_dsc_config()

2023-02-24 Thread Dmitry Baryshkov
On 24/02/2023 21:40, Kuogee Hsieh wrote: use new introduced dpu_dsc_populate_dsc_config() to calculate and populate drm_dsc_info instead of hard code value. DPU is an optional component, so DSI driver should not depend on the DPU driver. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/m

Re: [Freedreno] [PATCH v2 06/50] drm/msm/dpu: correct sm8550 scaler

2023-02-24 Thread Abhinav Kumar
On 2/13/2023 9:36 AM, neil.armstr...@linaro.org wrote: On 13/02/2023 12:16, Dmitry Baryshkov wrote: On 13/02/2023 12:41, Neil Armstrong wrote: On 12/02/2023 00:12, Dmitry Baryshkov wrote: QSEED4 is a newer variant of QSEED3LITE, which should be used on sm8550. Fix the DPU caps structure and

[Freedreno] [PATCH v6 15/15] drm/i915: Add deadline based boost support

2023-02-24 Thread Rob Clark
From: Rob Clark v2: rebase Signed-off-by: Rob Clark --- drivers/gpu/drm/i915/i915_request.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c index 7503dcb9043b..44491e7e214c 100644 --- a/drivers

[Freedreno] [PATCH v6 14/15] drm/msm/atomic: Switch to vblank_start helper

2023-02-24 Thread Rob Clark
From: Rob Clark Drop our custom thing and switch to drm_crtc_next_vblank_start() for calculating the time of the start of the next vblank period. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 15 --- drivers/gpu/drm/msm/msm_atomic.c| 8 +--- dr

[Freedreno] [PATCH v6 06/15] dma-buf/sync_file: Support (E)POLLPRI

2023-02-24 Thread Rob Clark
From: Rob Clark Allow userspace to use the EPOLLPRI/POLLPRI flag to indicate an urgent wait (as opposed to a "housekeeping" wait to know when to cleanup after some work has completed). Usermode components of GPU driver stacks often poll() on fence fd's to know when it is safe to do things like f

[Freedreno] [PATCH v6 13/15] drm/msm: Add wait-boost support

2023-02-24 Thread Rob Clark
From: Rob Clark Add a way for various userspace waits to signal urgency. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_drv.c | 12 drivers/gpu/drm/msm/msm_gem.c | 5 + include/uapi/drm/msm_drm.h| 14 -- 3 files changed, 25 insertions(+), 6 deletions(-)

[Freedreno] [PATCH v6 12/15] drm/msm: Add deadline based boost support

2023-02-24 Thread Rob Clark
From: Rob Clark Track the nearest deadline on a fence timeline and set a timer to expire shortly before to trigger boost if the fence has not yet been signaled. v2: rebase Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_fence.c | 74 + drivers/gpu/drm/msm/

[Freedreno] [PATCH v6 11/15] drm/atomic-helper: Set fence deadline for vblank

2023-02-24 Thread Rob Clark
From: Rob Clark For an atomic commit updating a single CRTC (ie. a pageflip) calculate the next vblank time, and inform the fence(s) of that deadline. v2: Comment typo fix (danvet) Signed-off-by: Rob Clark Reviewed-by: Daniel Vetter Signed-off-by: Rob Clark --- drivers/gpu/drm/drm_atomic_he

[Freedreno] [PATCH v6 09/15] drm/syncobj: Add deadline support for syncobj waits

2023-02-24 Thread Rob Clark
From: Rob Clark Add a new flag to let userspace provide a deadline as a hint for syncobj and timeline waits. This gives a hint to the driver signaling the backing fences about how soon userspace needs it to compete work, so it can addjust GPU frequency accordingly. An immediate deadline can be

[Freedreno] [PATCH v6 10/15] drm/vblank: Add helper to get next vblank time

2023-02-24 Thread Rob Clark
From: Rob Clark Will be used in the next commit to set a deadline on fences that an atomic update is waiting on. v2: Calculate time at *start* of vblank period, not end Signed-off-by: Rob Clark --- drivers/gpu/drm/drm_vblank.c | 52 +--- include/drm/drm_vblank.

[Freedreno] [PATCH v6 08/15] drm/scheduler: Add fence deadline support

2023-02-24 Thread Rob Clark
As the finished fence is the one that is exposed to userspace, and therefore the one that other operations, like atomic update, would block on, we need to propagate the deadline from from the finished fence to the actual hw fence. v2: Split into drm_sched_fence_set_parent() (ckoenig) v3: Ensure a

[Freedreno] [PATCH v6 07/15] dma-buf/sw_sync: Add fence deadline support

2023-02-24 Thread Rob Clark
From: Rob Clark This consists of simply storing the most recent deadline, and adding an ioctl to retrieve the deadline. This can be used in conjunction with the SET_DEADLINE ioctl on a fence fd for testing. Ie. create various sw_sync fences, merge them into a fence-array, set deadline on the fe

[Freedreno] [PATCH v6 04/15] dma-buf/dma-resv: Add a way to set fence deadline

2023-02-24 Thread Rob Clark
From: Rob Clark Add a way to set a deadline on remaining resv fences according to the requested usage. Signed-off-by: Rob Clark Reviewed-by: Christian König --- drivers/dma-buf/dma-resv.c | 22 ++ include/linux/dma-resv.h | 2 ++ 2 files changed, 24 insertions(+) diff

[Freedreno] [PATCH v6 05/15] dma-buf/sync_file: Add SET_DEADLINE ioctl

2023-02-24 Thread Rob Clark
From: Rob Clark The initial purpose is for igt tests, but this would also be useful for compositors that wait until close to vblank deadline to make decisions about which frame to show. The igt tests can be found at: https://gitlab.freedesktop.org/robclark/igt-gpu-tools/-/commits/fence-deadline

[Freedreno] [PATCH v6 03/15] dma-buf/fence-chain: Add fence deadline support

2023-02-24 Thread Rob Clark
From: Rob Clark Propagate the deadline to all the fences in the chain. v2: Use dma_fence_chain_contained [Tvrtko] Signed-off-by: Rob Clark Reviewed-by: Christian König for this one. --- drivers/dma-buf/dma-fence-chain.c | 12 1 file changed, 12 insertions(+) diff --git a/driver

[Freedreno] [PATCH v6 02/15] dma-buf/fence-array: Add fence deadline support

2023-02-24 Thread Rob Clark
From: Rob Clark Propagate the deadline to all the fences in the array. Signed-off-by: Rob Clark Reviewed-by: Christian König --- drivers/dma-buf/dma-fence-array.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/dma-buf/dma-fence-array.c b/drivers/dma-buf/dma-fence-ar

[Freedreno] [PATCH v6 01/15] dma-buf/dma-fence: Add deadline awareness

2023-02-24 Thread Rob Clark
From: Rob Clark Add a way to hint to the fence signaler of an upcoming deadline, such as vblank, which the fence waiter would prefer not to miss. This is to aid the fence signaler in making power management decisions, like boosting frequency as the deadline approaches and awareness of missing de

[Freedreno] [PATCH v6 00/15] dma-fence: Deadline awareness

2023-02-24 Thread Rob Clark
From: Rob Clark This series adds a deadline hint to fences, so realtime deadlines such as vblank can be communicated to the fence signaller for power/ frequency management decisions. This is partially inspired by a trick i915 does, but implemented via dma-fence for a couple of reasons: 1) To c

Re: [Freedreno] [PATCH v4 06/14] dma-buf/sync_file: Support (E)POLLPRI

2023-02-24 Thread Rob Clark
On Fri, Feb 24, 2023 at 2:24 AM Pekka Paalanen wrote: > > On Fri, 24 Feb 2023 09:41:46 + > Tvrtko Ursulin wrote: > > > On 24/02/2023 09:26, Pekka Paalanen wrote: > > > On Thu, 23 Feb 2023 10:51:48 -0800 > > > Rob Clark wrote: > > > > > >> On Thu, Feb 23, 2023 at 1:38 AM Pekka Paalanen > >

[Freedreno] [RFC PATCH 0/2] Add DPU DSC helper module

2023-02-24 Thread Kuogee Hsieh
There is a lots of duplicate calculation for DSC encoder between DSI and DP. Also, with more DSC version it is easier to have a common helper module which handle all the DPU DSC encoder math. This series has only been compile test because there is no DSI DSC V1.1 panel to test it as DSC V1.2 pane

[Freedreno] [RFC PATCH 2/2] drm/msm/dsi: use new dpu_dsc_populate_dsc_config()

2023-02-24 Thread Kuogee Hsieh
use new introduced dpu_dsc_populate_dsc_config() to calculate and populate drm_dsc_info instead of hard code value. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dsi/dsi_host.c | 78 ++ 1 file changed, 12 insertions(+), 66 deletions(-) diff --git a/driv

[Freedreno] [RFC PATCH 1/2] drm/msm/dpu: add dsc helper functions

2023-02-24 Thread Kuogee Hsieh
Add DSC helper functions based on DSC configuration profiles to produce DSC related runtime parameters through both table look up and runtime calculation to support DSC on DPU. There are 6 different DSC configuration profiles are supported currently. DSC configuration profiles are differiented by

Re: [Freedreno] [PATCH v1 0/2] add V1.1 dsc_helper fucntion

2023-02-24 Thread Kuogee Hsieh
Please ignore this series I am going to re post it as RFC. kuogee On 2/24/2023 11:01 AM, Kuogee Hsieh wrote: Add V1.1 dsc function and have dsi use it instead of hardcode value Kuogee Hsieh (2): drm/msm/dpu: add dsc helper functions drm/msm/dsi: use new dpu_dsc_populate_dsc_config()

Re: [Freedreno] [PATCH v2 05/50] drm/msm/dpu: fix sm6115 and qcm2290 mixer width limits

2023-02-24 Thread Abhinav Kumar
On 2/11/2023 3:12 PM, Dmitry Baryshkov wrote: According to vendor DTS files both sm6116 and qcm2290 should have max_mixer_width set to 2048 (DEFAULT_DPU_LINE_WIDTH). Correct it. sm6116 ---> sm6115 Fixes: 3581b7062cec ("drm/msm/disp/dpu1: add support for display on SM6115") Fixes: 5334087e

[Freedreno] [PATCH v1 1/2] drm/msm/dpu: add dsc helper functions

2023-02-24 Thread Kuogee Hsieh
Add DSC helper functions base on DSC configuration profiles to produce DSC related runtime parameters through both table look up and runtime calculation to support MSM v1.2 DSC encoder advanced features requirement. Both run time calculation algorithm and table lookup values are optimized by system

[Freedreno] [PATCH v1 2/2] drm/msm/dsi: use new dpu_dsc_populate_dsc_config()

2023-02-24 Thread Kuogee Hsieh
use new introduced dpu_dsc_populate_dsc_config() to calculate and populate drm_dsc_info instead of hard code value. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dsi/dsi_host.c | 78 ++ 1 file changed, 12 insertions(+), 66 deletions(-) diff --git a/driv

[Freedreno] [PATCH v1 0/2] add V1.1 dsc_helper fucntion

2023-02-24 Thread Kuogee Hsieh
Add V1.1 dsc function and have dsi use it instead of hardcode value Kuogee Hsieh (2): drm/msm/dpu: add dsc helper functions drm/msm/dsi: use new dpu_dsc_populate_dsc_config() drivers/gpu/drm/msm/Makefile | 1 + drivers/gpu/drm/msm/disp/dpu1/dpu_dsc_helper.c | 209

[Freedreno] [PATCH] drm/msm/dp: check core_initialized flag at both host_init() and host_deinit()

2023-02-24 Thread Kuogee Hsieh
There is a reboot/suspend test case where system suspend is forced during system booting up. Since host_init() of external DP is executed at hpd thread context, this test case may created a scenario that host_deinit() from pm_suspend() run before host_init() if hpd thread has no chance to run durin

Re: [Freedreno] [PATCH v2 04/50] drm/msm/dpu: fix len of sc7180 ctl blocks

2023-02-24 Thread Abhinav Kumar
On 2/11/2023 3:12 PM, Dmitry Baryshkov wrote: Change sc7180's ctl block len to 0x1dc. Fixes: 7bdc0c4b8126 ("msm:disp:dpu1: add support for display for SC7180 target") Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 6 +++--- 1 file changed, 3 insertion

Re: [Freedreno] [PATCH v2 03/50] drm/msm/dpu: fix typo in in sm8550's dma_sblk_5

2023-02-24 Thread Abhinav Kumar
On 2/11/2023 3:12 PM, Dmitry Baryshkov wrote: Fix typo if the name of the sblk structure for the sm8550's dma_sblk_5. Fixes: efcd0107727c ("drm/msm/dpu: add support for SM8550") Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 4 ++-- 1 file changed, 2

Re: [Freedreno] [PATCH v4 06/14] dma-buf/sync_file: Support (E)POLLPRI

2023-02-24 Thread Rob Clark
On Fri, Feb 24, 2023 at 7:27 AM Luben Tuikov wrote: > > On 2023-02-24 06:37, Tvrtko Ursulin wrote: > > > > On 24/02/2023 11:00, Pekka Paalanen wrote: > >> On Fri, 24 Feb 2023 10:50:51 + > >> Tvrtko Ursulin wrote: > >> > >>> On 24/02/2023 10:24, Pekka Paalanen wrote: > On Fri, 24 Feb 2023

Re: [Freedreno] [PATCH] drm/msm: Fix possible uninitialized access in fbdev

2023-02-24 Thread Abhinav Kumar
On 2/22/2023 4:37 AM, Thomas Zimmermann wrote: Do not run drm_fb_helper_unprepare() if fbdev allocation fails. Avoids access to an uninitialized pointer. Original bug report is at [1]. Reported-by: kernel test robot Signed-off-by: Thomas Zimmermann Fixes: 3fb1f62f80a1 ("drm/fb-helper: Remov

Re: [Freedreno] [PATCH v4 06/14] dma-buf/sync_file: Support (E)POLLPRI

2023-02-24 Thread Rob Clark
On Fri, Feb 24, 2023 at 2:24 AM Pekka Paalanen wrote: > > On Fri, 24 Feb 2023 09:41:46 + > Tvrtko Ursulin wrote: > > > On 24/02/2023 09:26, Pekka Paalanen wrote: > > > On Thu, 23 Feb 2023 10:51:48 -0800 > > > Rob Clark wrote: > > > > > >> On Thu, Feb 23, 2023 at 1:38 AM Pekka Paalanen > >

Re: [Freedreno] [PATCH 1/5] drm/msm/adreno: Use OPP for every GPU generation

2023-02-24 Thread Chris Healy
I may be missing something, but looking at the code path for a2xx, it's not clear to me how this would work with SoCs with a2xx that don't support 200MHz for GPU frequency. For example, the NXP i.MX51 requires the A205 GPU to run at 166MHz while the NXP i.MX53 requires the A205 GPU to run at 200MH

Re: [Freedreno] [PATCH v4 06/14] dma-buf/sync_file: Support (E)POLLPRI

2023-02-24 Thread Luben Tuikov
On 2023-02-24 06:37, Tvrtko Ursulin wrote: > > On 24/02/2023 11:00, Pekka Paalanen wrote: >> On Fri, 24 Feb 2023 10:50:51 + >> Tvrtko Ursulin wrote: >> >>> On 24/02/2023 10:24, Pekka Paalanen wrote: On Fri, 24 Feb 2023 09:41:46 + Tvrtko Ursulin wrote: > On 24/02/20

Re: [Freedreno] [PATCH v3 4/7] drm/msm/a2xx: Implement .gpu_busy

2023-02-24 Thread Jonathan Marek
This won't work because a2xx freedreno userspace expects to own all the perfcounters. This will break perfcounters for userspace, and when userspace isn't using perfcounters, this won't count correctly because userspace writes 0 to CP_PERFMON_CNTL at the start of every submit. On 2/23/23 5:5

Re: [Freedreno] [PATCH v3 01/15] dt-bindings: display/msm: gpu: Document GMU wrapper-equipped A6xx

2023-02-24 Thread Krzysztof Kozlowski
On 24/02/2023 12:51, Konrad Dybcio wrote: >>> +else: >>> + if: >>> +properties: >>> + compatible: >>> +contains: >>> + pattern: '^qcom,adreno-6[0-9][0-9]\.[0-9]$' >>> + >>> + then: # Starting with A6xx, the clocks are usually defined in the >

Re: [Freedreno] [PATCH v3 01/15] dt-bindings: display/msm: gpu: Document GMU wrapper-equipped A6xx

2023-02-24 Thread Konrad Dybcio
On 24.02.2023 12:17, Krzysztof Kozlowski wrote: > On 23/02/2023 13:06, Konrad Dybcio wrote: >> GMU wrapper-equipped A6xx GPUs require clocks and clock-names to be >> specified under the GPU node, just like their older cousins. >> Account for that. >> >> Signed-off-by: Konrad Dybcio >> --- >> .

Re: [Freedreno] [PATCH v3 02/15] dt-bindings: display/msm/gmu: Add GMU wrapper

2023-02-24 Thread Konrad Dybcio
On 24.02.2023 12:19, Krzysztof Kozlowski wrote: > On 23/02/2023 13:06, Konrad Dybcio wrote: >> GMU wrapper is essentially a register space within the GPU, which >> Linux sees as a dumbed-down regular GMU: there's no clocks, >> interrupts, multiple regs, iommus and OPP. Document it. >> >> Signed-

Re: [Freedreno] [PATCH v4 06/14] dma-buf/sync_file: Support (E)POLLPRI

2023-02-24 Thread Tvrtko Ursulin
On 24/02/2023 11:00, Pekka Paalanen wrote: On Fri, 24 Feb 2023 10:50:51 + Tvrtko Ursulin wrote: On 24/02/2023 10:24, Pekka Paalanen wrote: On Fri, 24 Feb 2023 09:41:46 + Tvrtko Ursulin wrote: On 24/02/2023 09:26, Pekka Paalanen wrote: On Thu, 23 Feb 2023 10:51:48 -0800 Rob Cl

Re: [Freedreno] [PATCH v3 02/15] dt-bindings: display/msm/gmu: Add GMU wrapper

2023-02-24 Thread Krzysztof Kozlowski
On 23/02/2023 13:06, Konrad Dybcio wrote: > GMU wrapper is essentially a register space within the GPU, which > Linux sees as a dumbed-down regular GMU: there's no clocks, > interrupts, multiple regs, iommus and OPP. Document it. > > Signed-off-by: Konrad Dybcio > --- > .../devicetree/bindings/d

Re: [Freedreno] [PATCH v3 01/15] dt-bindings: display/msm: gpu: Document GMU wrapper-equipped A6xx

2023-02-24 Thread Krzysztof Kozlowski
On 23/02/2023 13:06, Konrad Dybcio wrote: > GMU wrapper-equipped A6xx GPUs require clocks and clock-names to be > specified under the GPU node, just like their older cousins. > Account for that. > > Signed-off-by: Konrad Dybcio > --- > .../devicetree/bindings/display/msm/gpu.yaml | 63 > +

Re: [Freedreno] [PATCH v4 06/14] dma-buf/sync_file: Support (E)POLLPRI

2023-02-24 Thread Pekka Paalanen
On Fri, 24 Feb 2023 10:50:51 + Tvrtko Ursulin wrote: > On 24/02/2023 10:24, Pekka Paalanen wrote: > > On Fri, 24 Feb 2023 09:41:46 + > > Tvrtko Ursulin wrote: > > > >> On 24/02/2023 09:26, Pekka Paalanen wrote: > >>> On Thu, 23 Feb 2023 10:51:48 -0800 > >>> Rob Clark wrote: > >>>

Re: [Freedreno] [PATCH v4 06/14] dma-buf/sync_file: Support (E)POLLPRI

2023-02-24 Thread Tvrtko Ursulin
On 24/02/2023 10:24, Pekka Paalanen wrote: On Fri, 24 Feb 2023 09:41:46 + Tvrtko Ursulin wrote: On 24/02/2023 09:26, Pekka Paalanen wrote: On Thu, 23 Feb 2023 10:51:48 -0800 Rob Clark wrote: On Thu, Feb 23, 2023 at 1:38 AM Pekka Paalanen wrote: On Wed, 22 Feb 2023 07:37:26 -080

Re: [Freedreno] [PATCH v4 06/14] dma-buf/sync_file: Support (E)POLLPRI

2023-02-24 Thread Pekka Paalanen
On Fri, 24 Feb 2023 09:41:46 + Tvrtko Ursulin wrote: > On 24/02/2023 09:26, Pekka Paalanen wrote: > > On Thu, 23 Feb 2023 10:51:48 -0800 > > Rob Clark wrote: > > > >> On Thu, Feb 23, 2023 at 1:38 AM Pekka Paalanen > >> wrote: > >>> > >>> On Wed, 22 Feb 2023 07:37:26 -0800 > >>> Rob Cl

Re: [Freedreno] [PATCH v4 09/14] drm/syncobj: Add deadline support for syncobj waits

2023-02-24 Thread Tvrtko Ursulin
On 18/02/2023 21:15, Rob Clark wrote: From: Rob Clark Add a new flag to let userspace provide a deadline as a hint for syncobj and timeline waits. This gives a hint to the driver signaling the backing fences about how soon userspace needs it to compete work, so it can addjust GPU frequency a

Re: [Freedreno] [PATCH v4 06/14] dma-buf/sync_file: Support (E)POLLPRI

2023-02-24 Thread Tvrtko Ursulin
On 24/02/2023 09:26, Pekka Paalanen wrote: On Thu, 23 Feb 2023 10:51:48 -0800 Rob Clark wrote: On Thu, Feb 23, 2023 at 1:38 AM Pekka Paalanen wrote: On Wed, 22 Feb 2023 07:37:26 -0800 Rob Clark wrote: On Wed, Feb 22, 2023 at 1:49 AM Pekka Paalanen wrote: ... On another matter, i

Re: [Freedreno] [PATCH v4 06/14] dma-buf/sync_file: Support (E)POLLPRI

2023-02-24 Thread Pekka Paalanen
On Thu, 23 Feb 2023 10:51:48 -0800 Rob Clark wrote: > On Thu, Feb 23, 2023 at 1:38 AM Pekka Paalanen wrote: > > > > On Wed, 22 Feb 2023 07:37:26 -0800 > > Rob Clark wrote: > > > > > On Wed, Feb 22, 2023 at 1:49 AM Pekka Paalanen > > > wrote: ... > > > > On another matter, if the applica