Re: [Freedreno] [PATCH 1/3] drm/msm/dpu: move intf and wb assignment to dpu_encoder_setup_display()

2022-06-15 Thread Abhinav Kumar
Hi Dmitry On 6/15/2022 10:55 PM, Dmitry Baryshkov wrote: On 14/06/2022 22:32, Abhinav Kumar wrote: intf and wb resources are not dependent on the rm global state so need not be allocated during dpu_encoder_virt_atomic_mode_set(). Move the allocation of intf and wb resources to

Re: [Freedreno] [PATCH 1/3] drm/msm/dpu: move intf and wb assignment to dpu_encoder_setup_display()

2022-06-15 Thread Dmitry Baryshkov
On 14/06/2022 22:32, Abhinav Kumar wrote: intf and wb resources are not dependent on the rm global state so need not be allocated during dpu_encoder_virt_atomic_mode_set(). Move the allocation of intf and wb resources to dpu_encoder_setup_display() so that we can utilize the hw caps even during

Re: [Freedreno] [PATCH v2 4/5] drm/msm: move KMS aspace init to the separate helper

2022-06-15 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-05-04 17:16:04) > diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c > index a37a3bbc04d9..98ae0036ab57 100644 > --- a/drivers/gpu/drm/msm/msm_drv.c > +++ b/drivers/gpu/drm/msm/msm_drv.c > @@ -262,6 +263,46 @@ static int msm_drm_uninit(struct

Re: [Freedreno] [PATCH v7] drm/msm/dp: force link training for display resolution change

2022-06-15 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-06-15 08:53:57) > Display resolution change is implemented through drm modeset. Older > modeset (resolution) has to be disabled first before newer modeset > (resolution) can be enabled. Display disable will turn off both > pixel clock and main link clock so that main

Re: [Freedreno] [PATCH v2 1/5] drm/msm/dpu: check both DPU and MDSS devices for the IOMMU

2022-06-15 Thread Abhinav Kumar
On 6/15/2022 11:42 AM, Dmitry Baryshkov wrote: On 15/06/2022 20:55, Abhinav Kumar wrote: On 5/4/2022 5:16 PM, Dmitry Baryshkov wrote: Follow the lead of MDP5 driver and check both DPU and MDSS devices for the IOMMU specifiers. Historically DPU devices had IOMMU specified in the MDSS

[Freedreno] [PATCH] drm/msm/dpu: set preferred mode for writeback connector

2022-06-15 Thread Abhinav Kumar
After [1] was merged to IGT, we use either the first supported mode in the list OR the preferred mode to determine the primary plane to use for the sub-test due to the IGT API [2]. Since writeback does not set any preferred mode, this was selecting 4k as that was the first entry in the list. We

Re: [Freedreno] Please add another drm/msm tree to the linux-next

2022-06-15 Thread Stephen Rothwell
Hi Dmitry, On Wed, 15 Jun 2022 17:19:42 +0300 Dmitry Baryshkov wrote: > > I would appreciate if you could add > > https://gitlab.freedesktop.org/lumag/msm.git msm-next-lumag > > to the linux-next tree. > > This tree is a part of drm/msm maintenance structure. As a co-maintainer I > collect

Re: [Freedreno] [PATCH v2 1/3] drm/msm/dpu: move intf and wb assignment to dpu_encoder_setup_display()

2022-06-15 Thread Dmitry Baryshkov
On Thu, 16 Jun 2022 at 00:22, Abhinav Kumar wrote: > > intf and wb resources are not dependent on the rm global > state so need not be allocated during dpu_encoder_virt_atomic_mode_set(). > > Move the allocation of intf and wb resources to dpu_encoder_setup_display() > so that we can utilize the

[Freedreno] [PATCH v2 3/3] drm/msm/dpu: remove hard-coded linewidth limit for writeback

2022-06-15 Thread Abhinav Kumar
Remove the hard-coded limit for writeback and lets start using the one from catalog instead. Fixes: d7d0e73f7de3 ("introduce the dpu_encoder_phys_* for writeback") Signed-off-by: Abhinav Kumar Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c | 6 ++ 1

[Freedreno] [PATCH v2 2/3] drm/msm/dpu: fix maxlinewidth for writeback block

2022-06-15 Thread Abhinav Kumar
Writeback block for sm8250 was using the default maxlinewidth of 2048. But this is not right as it supports upto 4096. This should have no effect on most resolutions as we are still limiting upto maxlinewidth of SSPP for adding the modes. Fix the maxlinewidth for writeback block on sm8250.

[Freedreno] [PATCH v2 1/3] drm/msm/dpu: move intf and wb assignment to dpu_encoder_setup_display()

2022-06-15 Thread Abhinav Kumar
intf and wb resources are not dependent on the rm global state so need not be allocated during dpu_encoder_virt_atomic_mode_set(). Move the allocation of intf and wb resources to dpu_encoder_setup_display() so that we can utilize the hw caps even during atomic_check() phase. Since

Re: [Freedreno] [PATCH v3 01/14] dt-bindings: display/msm: hdmi: split and convert to yaml

2022-06-15 Thread Krzysztof Kozlowski
On 09/06/2022 05:23, Dmitry Baryshkov wrote: > Convert Qualcomm HDMI binding into HDMI TX and PHY yaml bindings. > > Changes to schema: > HDMI: > - fixed reg-names numbering to match 0..3 instead 0,1,3,4 > - dropped qcom,tx-ddc-* from example, they were not documented > - make phy-names

Re: [Freedreno] [PATCH v2 1/5] drm/msm/dpu: check both DPU and MDSS devices for the IOMMU

2022-06-15 Thread Dmitry Baryshkov
On 15/06/2022 20:55, Abhinav Kumar wrote: On 5/4/2022 5:16 PM, Dmitry Baryshkov wrote: Follow the lead of MDP5 driver and check both DPU and MDSS devices for the IOMMU specifiers. Historically DPU devices had IOMMU specified in the MDSS device tree node, but as some of MDP5 devices are being

Re: [Freedreno] [PATCH 1/3] drm/msm/dpu: move intf and wb assignment to dpu_encoder_setup_display()

2022-06-15 Thread Abhinav Kumar
On 6/15/2022 11:34 AM, Dmitry Baryshkov wrote: On 15/06/2022 20:11, Abhinav Kumar wrote: On 6/15/2022 10:04 AM, Dmitry Baryshkov wrote: On 15/06/2022 19:40, Abhinav Kumar wrote: On 6/15/2022 5:36 AM, Dmitry Baryshkov wrote: On 14/06/2022 22:32, Abhinav Kumar wrote: intf and wb

Re: [Freedreno] [PATCH 1/3] drm/msm/dpu: move intf and wb assignment to dpu_encoder_setup_display()

2022-06-15 Thread Dmitry Baryshkov
On 15/06/2022 20:11, Abhinav Kumar wrote: On 6/15/2022 10:04 AM, Dmitry Baryshkov wrote: On 15/06/2022 19:40, Abhinav Kumar wrote: On 6/15/2022 5:36 AM, Dmitry Baryshkov wrote: On 14/06/2022 22:32, Abhinav Kumar wrote: intf and wb resources are not dependent on the rm global state so

Re: [Freedreno] [PATCH v2 3/5] drm/msm: Stop using iommu_present()

2022-06-15 Thread Abhinav Kumar
On 5/4/2022 5:16 PM, Dmitry Baryshkov wrote: Even if some IOMMU has registered itself on the platform "bus", that doesn't necessarily mean it provides translation for the device we care about. Replace iommu_present() with a more appropriate check. On Qualcomm platforms the IOMMU can be

Re: [Freedreno] [PATCH v2 2/5] drm/msm/mdp5: move iommu_domain_alloc() call close to its usage

2022-06-15 Thread Abhinav Kumar
On 5/4/2022 5:16 PM, Dmitry Baryshkov wrote: Move iommu_domain_alloc() in front of adress space/IOMMU initialization. This allows us to drop final bits of struct mdp5_cfg_platform which remained from the pre-DT days. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar ---

Re: [Freedreno] [PATCH 2/2] drm/msm: Don't overwrite hw fence in hw_init

2022-06-15 Thread Steev Klimaszewski
On 6/15/22 10:01 AM, Rob Clark wrote: From: Rob Clark Prior to the last commit, this could result in setting the GPU written fence value back to an older value, if we had missed updating completed_fence prior to suspend. This was mostly harmless as the GPU would eventually overwrite it

Re: [Freedreno] [PATCH 1/2] drm/msm: Drop update_fences()

2022-06-15 Thread Steev Klimaszewski
On 6/15/22 10:01 AM, Rob Clark wrote: From: Rob Clark I noticed while looking at some traces, that we could miss calls to msm_update_fence(), as the irq could have raced with retire_submits() which could have already popped the last submit on a ring out of the queue of in-flight submits.

Re: [Freedreno] [PATCH v2 1/3] drm/msm/dpu: Move LM CRC code into separate method

2022-06-15 Thread Jessica Zhang
On 6/15/2022 9:17 AM, Dmitry Baryshkov wrote: On 15/06/2022 19:11, Jessica Zhang wrote: On 6/15/2022 2:35 AM, Dmitry Baryshkov wrote: On Wed, 15 Jun 2022 at 00:13, Jessica Zhang wrote: Move layer mixer-specific section of dpu_crtc_get_crc() into a separate helper method. This way, we can

Re: [Freedreno] [PATCH v2 1/5] drm/msm/dpu: check both DPU and MDSS devices for the IOMMU

2022-06-15 Thread Abhinav Kumar
On 5/4/2022 5:16 PM, Dmitry Baryshkov wrote: Follow the lead of MDP5 driver and check both DPU and MDSS devices for the IOMMU specifiers. Historically DPU devices had IOMMU specified in the MDSS device tree node, but as some of MDP5 devices are being converted to the supported by the DPU

Re: [Freedreno] [PATCH 1/3] drm/msm/dpu: move intf and wb assignment to dpu_encoder_setup_display()

2022-06-15 Thread Abhinav Kumar
On 6/15/2022 10:04 AM, Dmitry Baryshkov wrote: On 15/06/2022 19:40, Abhinav Kumar wrote: On 6/15/2022 5:36 AM, Dmitry Baryshkov wrote: On 14/06/2022 22:32, Abhinav Kumar wrote: intf and wb resources are not dependent on the rm global state so need not be allocated during

Re: [Freedreno] [PATCH 1/3] drm/msm/dpu: move intf and wb assignment to dpu_encoder_setup_display()

2022-06-15 Thread Dmitry Baryshkov
On 15/06/2022 19:40, Abhinav Kumar wrote: On 6/15/2022 5:36 AM, Dmitry Baryshkov wrote: On 14/06/2022 22:32, Abhinav Kumar wrote: intf and wb resources are not dependent on the rm global state so need not be allocated during dpu_encoder_virt_atomic_mode_set(). Move the allocation of intf

Re: [Freedreno] [PATCH 1/3] drm/msm/dpu: move intf and wb assignment to dpu_encoder_setup_display()

2022-06-15 Thread Abhinav Kumar
On 6/15/2022 5:36 AM, Dmitry Baryshkov wrote: On 14/06/2022 22:32, Abhinav Kumar wrote: intf and wb resources are not dependent on the rm global state so need not be allocated during dpu_encoder_virt_atomic_mode_set(). Move the allocation of intf and wb resources to

[Freedreno] [PATCH] drm/msm: Fix %d vs %u

2022-06-15 Thread Rob Clark
From: Rob Clark In debugging fence rollover, I noticed that GPU state capture and devcore dumps were showing me negative fence numbers. Let's fix that and some related signed vs unsigned confusion. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/adreno/adreno_gpu.c | 10 +- 1 file

[Freedreno] [PATCH] drm/msm: Fix fence rollover issue

2022-06-15 Thread Rob Clark
From: Rob Clark And while we are at it, let's start the fence counter close to the rollover point so that if issues slip in, they are more obvious. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_fence.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git

Re: [Freedreno] [PATCH v2 1/3] drm/msm/dpu: Move LM CRC code into separate method

2022-06-15 Thread Dmitry Baryshkov
On 15/06/2022 19:11, Jessica Zhang wrote: On 6/15/2022 2:35 AM, Dmitry Baryshkov wrote: On Wed, 15 Jun 2022 at 00:13, Jessica Zhang wrote: Move layer mixer-specific section of dpu_crtc_get_crc() into a separate helper method. This way, we can make it easier to get CRCs from other HW blocks

Re: [Freedreno] [PATCH v2 3/3] drm/msm/dpu: Add interface support for CRC debugfs

2022-06-15 Thread Jessica Zhang
On 6/15/2022 2:44 AM, Dmitry Baryshkov wrote: On Wed, 15 Jun 2022 at 00:13, Jessica Zhang wrote: Add support for writing CRC values for the interface block to the debugfs by calling the necessary MISR setup/collect methods. Changes since V1: - Set values_cnt to only include phys with

Re: [Freedreno] [PATCH v2 1/3] drm/msm/dpu: Move LM CRC code into separate method

2022-06-15 Thread Jessica Zhang
On 6/15/2022 2:35 AM, Dmitry Baryshkov wrote: On Wed, 15 Jun 2022 at 00:13, Jessica Zhang wrote: Move layer mixer-specific section of dpu_crtc_get_crc() into a separate helper method. This way, we can make it easier to get CRCs from other HW blocks by adding other get_crc helper methods.

[Freedreno] [PATCH v7] drm/msm/dp: force link training for display resolution change

2022-06-15 Thread Kuogee Hsieh
Display resolution change is implemented through drm modeset. Older modeset (resolution) has to be disabled first before newer modeset (resolution) can be enabled. Display disable will turn off both pixel clock and main link clock so that main link have to be re-trained during display enable to

[Freedreno] [PATCH 2/2] drm/msm: Don't overwrite hw fence in hw_init

2022-06-15 Thread Rob Clark
From: Rob Clark Prior to the last commit, this could result in setting the GPU written fence value back to an older value, if we had missed updating completed_fence prior to suspend. This was mostly harmless as the GPU would eventually overwrite it again with the correct value. But we should

[Freedreno] [PATCH 1/2] drm/msm: Drop update_fences()

2022-06-15 Thread Rob Clark
From: Rob Clark I noticed while looking at some traces, that we could miss calls to msm_update_fence(), as the irq could have raced with retire_submits() which could have already popped the last submit on a ring out of the queue of in-flight submits. But walking the list of submits in the irq

Re: [Freedreno] [PATCH] drm/msm/gem: Drop early returns in close/purge vma

2022-06-15 Thread Rob Clark
On Sat, Jun 11, 2022 at 11:16 AM Steev Klimaszewski wrote: > > Hi Rob, > > On 6/10/22 12:20 PM, Rob Clark wrote: > > From: Rob Clark > > > > Keep the warn, but drop the early return. If we do manage to hit this > > sort of issue, skipping the cleanup just makes things worse (dangling > >

[Freedreno] Please add another drm/msm tree to the linux-next

2022-06-15 Thread Dmitry Baryshkov
Hi Stephen, I would appreciate if you could add https://gitlab.freedesktop.org/lumag/msm.git msm-next-lumag to the linux-next tree. This tree is a part of drm/msm maintenance structure. As a co-maintainer I collect and test display patches, while Rob concenctrates on GPU part of the driver.

[Freedreno] [PATCH 5/5] arm64: dts: qcom: add mdp_clk clock to the MDSS device

2022-06-15 Thread Dmitry Baryshkov
Add MDP_CLK ("core") clock to the mdss device to allow MDSS driver to access HW_REV/etc registers. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi

[Freedreno] [PATCH 4/5] drm/msm/mdss: move is_mdp5 condition to msm_mdss_init

2022-06-15 Thread Dmitry Baryshkov
Move is_mdp5 check to a more logical place, to the msm_mdss_init(), rather than getting it in the mdss_probe() and passing it then as an argument. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_mdss.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[Freedreno] [PATCH 3/5] drm/msm/mdss: check for core clk before accessing HW_REV

2022-06-15 Thread Dmitry Baryshkov
Rather than checking whether the platform is an mdp5 or dpu platform, check if the MDP_CLK is provided or not before trying to access HW_REV (and skip reading the registers if the clock is not provided by the DT). Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_mdss.c | 22

[Freedreno] [PATCH 2/5] drm/msm/mdss: enable optional core clock for MDP5 MDSS

2022-06-15 Thread Dmitry Baryshkov
Enable (optional) core (MDP_CLK) clock that allows accessing HW_REV registers during the platform init. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_mdss.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_mdss.c

[Freedreno] [PATCH 1/5] drm/msm: less magic numbers in msm_mdss_enable

2022-06-15 Thread Dmitry Baryshkov
Replace magic register writes in msm_mdss_enable() with version that contains less magic and more variable names that can be traced back to the dpu_hw_catalog or the downstream dtsi files. Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_mdss.c | 80

Re: [Freedreno] [PATCH v3 1/2] drm: Add DRM_GEM_FOPS

2022-06-15 Thread Thomas Zimmermann
Am 15.06.22 um 14:45 schrieb Dmitry Baryshkov: On 09/06/2022 20:42, Rob Clark wrote: From: Rob Clark The DEFINE_DRM_GEM_FOPS() helper is a bit limiting if a driver wants to provide additional file ops, like show_fdinfo(). v2: Split out DRM_GEM_FOPS instead of making DEFINE_DRM_GEM_FOPS

[Freedreno] [PATCH v3 1/3] drm/msm/dpu: index dpu_kms->hw_vbif using vbif_idx

2022-06-15 Thread Dmitry Baryshkov
Remove loops over hw_vbif. Instead always VBIF's idx as an index in the array. This fixes an error in dpu_kms_hw_init(), where we fill dpu_kms->hw_vbif[i], but check for an error pointer at dpu_kms->hw_vbif[vbif_idx]. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Signed-off-by: Dmitry

[Freedreno] [PATCH v3 2/3] drm/msm/dpu: fix error handling around dpu_hw_vbif_init

2022-06-15 Thread Dmitry Baryshkov
Using IS_ERR_OR_NULL() together with PTR_ERR() is a typical mistake. If the value is NULL, then the function will return 0 instead of a proper return code. Moreover dpu_hw_vbif_init() function can not return NULL. So, replace corresponding IS_ERR_OR_NULL() call with IS_ERR(). Reviewed-by: Abhinav

[Freedreno] [PATCH v3 3/3] drm/msm/dpu: drop VBIF indices

2022-06-15 Thread Dmitry Baryshkov
We do not expect to have other VBIFs. Drop VBIF_n indices and always use VBIF_RT and VBIF_NRT. Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c| 4 +-- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h | 6 ++--

Re: [Freedreno] [PATCH v5 00/10] drm/hdcp: Pull HDCP auth/exchange/check into helpers

2022-06-15 Thread Dmitry Baryshkov
On 11/04/2022 23:47, Sean Paul wrote: From: Sean Paul Rebased set from November. Fixed a nit from Stephen in the msm patch and moved hdcp registers into the trogdor dtsi file to avoid differences with sc7180-based windows devices. The set is 4 patches lighter since some of the changes were

Re: [Freedreno] [PATCH v3 2/2] drm/msm: Expose client engine utilization via fdinfo

2022-06-15 Thread Tvrtko Ursulin
On 09/06/2022 18:42, Rob Clark wrote: From: Rob Clark Similar to AMD commit 874442541133 ("drm/amdgpu: Add show_fdinfo() interface"), using the infrastructure added in previous patches, we add basic client info and GPU engine utilisation for msm. Example output: # cat /proc/`pgrep

Re: [Freedreno] [PATCH] drm/msm: Use div64_ul instead of do_div

2022-06-15 Thread Dmitry Baryshkov
On 26/04/2022 16:21, Wan Jiabing wrote: Fix following coccicheck warning: drivers/gpu/drm/msm/msm_gpu_devfreq.c:72:1-7: WARNING: do_div() does a 64-by-32 division, please consider using div64_ul instead. Use div64_ul instead of do_div to avoid a possible truncation. Signed-off-by: Wan Jiabing

Re: [Freedreno] [PATCH v3 1/2] drm: Add DRM_GEM_FOPS

2022-06-15 Thread Dmitry Baryshkov
On 09/06/2022 20:42, Rob Clark wrote: From: Rob Clark The DEFINE_DRM_GEM_FOPS() helper is a bit limiting if a driver wants to provide additional file ops, like show_fdinfo(). v2: Split out DRM_GEM_FOPS instead of making DEFINE_DRM_GEM_FOPS varardic v3: nits Signed-off-by: Rob Clark

Re: [Freedreno] [PATCH v3 2/2] drm/msm: Expose client engine utilization via fdinfo

2022-06-15 Thread Dmitry Baryshkov
On 09/06/2022 20:42, Rob Clark wrote: From: Rob Clark Similar to AMD commit 874442541133 ("drm/amdgpu: Add show_fdinfo() interface"), using the infrastructure added in previous patches, we add basic client info and GPU engine utilisation for msm. Example output: # cat /proc/`pgrep

Re: [Freedreno] [PATCH 1/3] drm/msm/dpu: move intf and wb assignment to dpu_encoder_setup_display()

2022-06-15 Thread Dmitry Baryshkov
On 14/06/2022 22:32, Abhinav Kumar wrote: intf and wb resources are not dependent on the rm global state so need not be allocated during dpu_encoder_virt_atomic_mode_set(). Move the allocation of intf and wb resources to dpu_encoder_setup_display() so that we can utilize the hw caps even during

Re: [Freedreno] [PATCH 3/3] drm/msm/dpu: remove hard-coded linewidth limit for writeback

2022-06-15 Thread Dmitry Baryshkov
On 14/06/2022 22:32, Abhinav Kumar wrote: Remove the hard-coded limit for writeback and lets start using the one from catalog instead. Fixes: d7d0e73f7de3 ("introduce the dpu_encoder_phys_* for writeback") Signed-off-by: Abhinav Kumar Reviewed-by: Dmitry Baryshkov ---

Re: [Freedreno] [PATCH 2/3] drm/msm/dpu: fix maxlinewidth for writeback block

2022-06-15 Thread Dmitry Baryshkov
On 14/06/2022 22:32, Abhinav Kumar wrote: Writeback block for sm8250 was using the default maxlinewidth of 2048. But this is not right as it supports upto 4096. This should have no effect on most resolutions as we are still limiting upto maxlinewidth of SSPP for adding the modes. Fix the

Re: [Freedreno] [PATCH 1/3] drm/msm/dpu: move intf and wb assignment to dpu_encoder_setup_display()

2022-06-15 Thread Dmitry Baryshkov
On 14/06/2022 22:32, Abhinav Kumar wrote: intf and wb resources are not dependent on the rm global state so need not be allocated during dpu_encoder_virt_atomic_mode_set(). Move the allocation of intf and wb resources to dpu_encoder_setup_display() so that we can utilize the hw caps even during

Re: [Freedreno] [PATCH] drm/msm/dsi: Use single function for reset

2022-06-15 Thread Dmitry Baryshkov
On 11/06/2022 01:02, Luca Weiss wrote: From: Vladimir Lypak There is currently two function for performing reset: dsi_sw_reset and dsi_sw_reset_restore. Only difference betwean those is that latter one assumes that DSI controller is enabled. In contrary former one assumes that controller is

Re: [Freedreno] [PATCH] dt-bindings: msm: update maintainers list with proper id

2022-06-15 Thread Dmitry Baryshkov
On 03/06/2022 23:09, Kuogee Hsieh wrote: Use quic id instead of codeaurora id in maintainers list for display devicetree bindings. Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov We can pick it through the msm/ tree, if no one objects. ---

Re: [Freedreno] [v2] drm/msm: add null checks for drm device to avoid crash during probe defer

2022-06-15 Thread Dmitry Baryshkov
On 03/06/2022 12:42, Vinod Polimera wrote: During probe defer, drm device is not initialized and an external trigger to shutdown is trying to clean up drm device leading to crash. Add checks to avoid drm device cleanup in such cases. BUG: unable to handle kernel NULL pointer dereference at

Re: [Freedreno] [v2] drm/msm: add null checks for drm device to avoid crash during probe defer

2022-06-15 Thread Dmitry Baryshkov
On 03/06/2022 12:42, Vinod Polimera wrote: During probe defer, drm device is not initialized and an external trigger to shutdown is trying to clean up drm device leading to crash. Add checks to avoid drm device cleanup in such cases. BUG: unable to handle kernel NULL pointer dereference at

Re: [Freedreno] [PATCH 1/3] drm/mipi-dsi: pass DSC data through the struct mipi_dsi_device

2022-06-15 Thread Dmitry Baryshkov
On 01/05/2022 18:12, Dmitry Baryshkov wrote: The commit 0f40ba48de3b ("drm/msm/dsi: Pass DSC params to drm_panel") added a pointer to the DSC data to the struct drm_panel. However DSC support is not limited to the DSI panels. MIPI DSI bridges can also consume DSC command streams. Thus add struct

[Freedreno] [PATCH] drm/msm/dp: make dp_bridge_mode_valid() more precise

2022-06-15 Thread Dmitry Baryshkov
Make dp_connector_mode_valid() return precise MODE_CLOCK_HIGH rather than generic MODE_BAD in case the mode clock is higher than DP_MAX_PIXEL_CLK_KHZ (675 MHz). Reviewed-by: Kuogee Hsieh Reviewed-by: Stephen Boyd Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_display.c | 2 +- 1

Re: [Freedreno] [PATCH v2 3/4] drm/msm/disp/dpu1: use atomic enable/disable callbacks for encoder functions

2022-06-15 Thread Dmitry Baryshkov
On 21/02/2022 17:51, Vinod Polimera wrote: Use atomic variants for encoder callback functions such that certain states like self-refresh can be accessed as part of enable/disable sequence. Signed-off-by: Kalyan Thota Signed-off-by: Vinod Polimera Changes in v2: - As per review suggestion by

Re: [Freedreno] [PATCH 1/2] iommu: arm-smmu-impl: Add 8250 display compatible to the client list.

2022-06-15 Thread Dmitry Baryshkov
On Wed, 15 Jun 2022 at 02:01, Emma Anholt wrote: > > Required for turning on per-process page tables for the GPU. > > Signed-off-by: Emma Anholt Reviewed-by: Dmitry Baryshkov > --- > > drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [Freedreno] [PATCH 2/2] arm64: dts: qcom: sm8250: Enable per-process page tables.

2022-06-15 Thread Dmitry Baryshkov
On Wed, 15 Jun 2022 at 02:01, Emma Anholt wrote: > > This is an SMMU for the adreno gpu, and adding this compatible lets > the driver use per-fd page tables, which are required for security > between GPU clients. > > Signed-off-by: Emma Anholt > --- > > Tested with a full deqp-vk run on RB5,

Re: [Freedreno] [PATCH v2 3/3] drm/msm/dpu: Add interface support for CRC debugfs

2022-06-15 Thread Dmitry Baryshkov
On Wed, 15 Jun 2022 at 00:13, Jessica Zhang wrote: > > Add support for writing CRC values for the interface block to > the debugfs by calling the necessary MISR setup/collect methods. > > Changes since V1: > - Set values_cnt to only include phys with backing hw_intf > - Loop over all drm_encs

Re: [Freedreno] [PATCH v2 2/3] drm/msm/dpu: Add MISR register support for interface

2022-06-15 Thread Dmitry Baryshkov
On Wed, 15 Jun 2022 at 00:13, Jessica Zhang wrote: > > Add support for setting MISR registers within the interface > > Changes since V1: > - Replaced dpu_hw_intf collect_misr and setup_misr implementations with > calls to dpu_hw_utils helper methods > > Signed-off-by: Jessica Zhang

Re: [Freedreno] [PATCH v2 1/3] drm/msm/dpu: Move LM CRC code into separate method

2022-06-15 Thread Dmitry Baryshkov
On Wed, 15 Jun 2022 at 00:13, Jessica Zhang wrote: > > Move layer mixer-specific section of dpu_crtc_get_crc() into a separate > helper method. This way, we can make it easier to get CRCs from other HW > blocks by adding other get_crc helper methods. > > Changes since V1: > - Moved common