[syzbot] [fbdev?] [usb?] WARNING in dlfb_submit_urb/usb_submit_urb (2)

2023-05-17 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:a4422ff22142 usb: typec: qcom: Add Qualcomm PMIC Type-C dr.. git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing console output: https://syzkaller.appspot.com/x/log.txt?x=1524556628 kernel

[PATCH v13 7/9] drm/msm/dpu: Fix slice_last_group_size calculation

2023-05-17 Thread Jessica Zhang
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") Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c | 5

[PATCH v13 4/9] drm/msm/dsi: use DRM DSC helpers for DSC setup

2023-05-17 Thread Jessica Zhang
From: Dmitry Baryshkov Use new DRM DSC helpers to setup DSI DSC configuration. The initial_scale_value needs to be adjusted according to the standard, but this is a separate change. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar Reviewed-by: Marijn Suijten Signed-off-by: Jessica

[PATCH v13 9/9] drm/msm/dsi: update hdisplay calculation for dsi_timing_setup

2023-05-17 Thread Jessica Zhang
Currently, hdisplay is being divided by 3 for DSC. However, this calculation only works for cases where BPP = 8. Update hdisplay calculation to be bytes_per_line / 3, so that it accounts for cases where BPP != 8. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica

[PATCH v13 8/9] drm/msm/dsi: Use MSM and DRM DSC helper methods

2023-05-17 Thread Jessica Zhang
Use MSM and DRM DSC helper methods to configure DSC for DSI. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/dsi/dsi_host.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH v13 5/9] drm/msm: Add MSM-specific DSC helper methods

2023-05-17 Thread Jessica Zhang
Introduce MSM-specific DSC helper methods, as some calculations are common between DP and DSC. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/msm_dsc_helper.h | 38 1 file changed, 38 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_dsc_helper.h

[PATCH v13 3/9] drm/display/dsc: Add drm_dsc_get_bpp_int helper

2023-05-17 Thread Jessica Zhang
Add helper to get the integer value of drm_dsc_config.bits_per_pixel Reviewed-by: Marijn Suijten Reviewed-by: Dmitry Baryshkov Signed-off-by: Jessica Zhang --- include/drm/display/drm_dsc_helper.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/drm/display/drm_dsc_helper.h

[PATCH v13 2/9] drm/display/dsc: add helper to set semi-const parameters

2023-05-17 Thread Jessica Zhang
From: Dmitry Baryshkov Add a helper setting config values which are typically constant across operating modes (table E-4 of the standard) and mux_word_size (which is a const according to 3.5.2). Signed-off-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang ---

[PATCH v13 6/9] drm/msm/dpu: Use fixed DRM DSC helper for det_thresh_flatness

2023-05-17 Thread Jessica Zhang
The current dpu_hw_dsc calculation for det_thresh_flatness does not match the downstream calculation or the DSC spec. Use the DRM DSC helper for det_thresh_flatness to match downstream implementation and the DSC spec. Fixes: c110cfd1753e ("drm/msm/disp/dpu1: Add support for DSC") Reviewed-by:

[PATCH v13 0/9] Introduce MSM-specific DSC helpers

2023-05-17 Thread Jessica Zhang
There are some overlap in calculations for MSM-specific DSC variables between DP and DSI. In addition, the calculations for initial_scale_value and det_thresh_flatness that are defined within the DSC 1.2 specifications, but aren't yet included in drm_dsc_helper.c. This series moves these

[PATCH v13 1/9] drm/display/dsc: Add flatness and initial scale value calculations

2023-05-17 Thread Jessica Zhang
Add helpers to calculate det_thresh_flatness and initial_scale_value as these calculations are defined within the DSC spec. Reviewed-by: Marijn Suijten Reviewed-by: Dmitry Baryshkov Signed-off-by: Jessica Zhang --- include/drm/display/drm_dsc_helper.h | 10 ++ 1 file changed, 10

Re: [PATCH v11 1/9] drm/display/dsc: Add flatness and initial scale value calculations

2023-05-17 Thread Dmitry Baryshkov
On 18/05/2023 01:58, Marijn Suijten wrote: On 2023-05-17 14:32:42, Jessica Zhang wrote: On 5/17/2023 2:13 PM, Marijn Suijten wrote: On 2023-05-17 11:51:10, Jessica Zhang wrote: Add helpers to calculate det_thresh_flatness and initial_scale_value as these calculations are defined within the

Re: [PATCH v12 3/9] drm/display/dsc: Add drm_dsc_get_bpp_int helper

2023-05-17 Thread Dmitry Baryshkov
On 18/05/2023 01:27, Jessica Zhang wrote: Add helper to get the integer value of drm_dsc_config.bits_per_pixel Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- include/drm/display/drm_dsc_helper.h | 7 +++ 1 file changed, 7 insertions(+) Reviewed-by: Dmitry Baryshkov --

Re: [PATCH v12 1/9] drm/display/dsc: Add flatness and initial scale value calculations

2023-05-17 Thread Dmitry Baryshkov
On 18/05/2023 01:27, Jessica Zhang wrote: Add helpers to calculate det_thresh_flatness and initial_scale_value as these calculations are defined within the DSC spec. Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- include/drm/display/drm_dsc_helper.h | 10 ++ 1 file

Re: [PATCH v10 6/8] drm/msm/dpu: separate DSC flush update out of interface

2023-05-17 Thread Dmitry Baryshkov
On 18/05/2023 01:01, Kuogee Hsieh wrote: Currently DSC flushing happens during interface configuration at dpu_hw_ctl_intf_cfg_v1(). Separate DSC flush away from dpu_hw_ctl_intf_cfg_v1() by adding dpu_hw_ctl_update_pending_flush_dsc_v1() to handle both per-DSC engine and DSC flush bits at same

Re: [PATCH v10 5/8] drm/msm/dpu: add support for DSC encoder v1.2 engine

2023-05-17 Thread Dmitry Baryshkov
On 18/05/2023 01:22, Marijn Suijten wrote: On 2023-05-17 15:01:56, Kuogee Hsieh wrote: Add support for DSC 1.2 by providing the necessary hooks to program the DPU DSC 1.2 encoder. Changes in v3: -- fixed kernel test rebot report that "__iomem *off" is declared but not used at

Re: [PATCH v10 3/8] drm/msm/dpu: Guard PINGPONG DSC ops behind DPU_PINGPONG_DSC bit

2023-05-17 Thread Dmitry Baryshkov
On 18/05/2023 01:01, Kuogee Hsieh wrote: DPU < 7.0.0 has DPU_PINGPONG_DSC feature bit set to indicate it requires both dpu_hw_pp_setup_dsc() and dpu_hw_pp_dsc_{enable,disable}() to be executed to complete DSC configuration if DSC hardware block is present. Hence test DPU_PINGPONG_DSC feature bit

Re: [PATCH v12 5/9] drm/msm: Add MSM-specific DSC helper methods

2023-05-17 Thread Jessica Zhang
On 5/17/2023 4:01 PM, Marijn Suijten wrote: On 2023-05-17 15:27:18, Jessica Zhang wrote: Introduce MSM-specific DSC helper methods, as some calculations are common between DP and DSC. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/msm_dsc_helper.h | 38

Re: [PATCH 2/2] drm/panel: Add driver for Visionox r66451 panel

2023-05-17 Thread Dmitry Baryshkov
On 16/05/2023 23:20, Jessica Zhang wrote: Add support for the 1080x2340 Visionox R66451 AMOLED DSI panel that comes with the Qualcomm HDK8350 display expansion pack. The panel enables display compression (DSC v1.2) by default. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/panel/Kconfig

Re: [PATCH 3/3] drm/amd/display: drop unused count variable in create_eml_sink()

2023-05-17 Thread Rodrigo Siqueira Jordao
On 5/17/23 12:33, Hamza Mahfooz wrote: Since, we are only interested in having drm_edid_override_connector_update(), update the value of connector->edid_blob_ptr. We don't care about the return value of drm_edid_override_connector_update() here. So, drop count. Fixes: 068553e14f86

Re: [PATCH 2/3] drm/amd/display: drop unused function set_abm_event()

2023-05-17 Thread Rodrigo Siqueira Jordao
On 5/17/23 12:33, Hamza Mahfooz wrote: set_abm_event() is never actually used. So, drop it. Fixes: b46c01aa0329 ("drm/amd/display: Refactor ABM feature") Reported-by: kernel test robot Reported-by: Tom Rix Signed-off-by: Hamza Mahfooz --- drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c |

Re: [PATCH 1/3] drm/amd/display: drop redundant memset() in get_available_dsc_slices()

2023-05-17 Thread Rodrigo Siqueira Jordao
On 5/17/23 12:33, Hamza Mahfooz wrote: get_available_dsc_slices() returns the number of indices set, and all of the users of get_available_dsc_slices() don't cross the returned bound when iterating over available_slices[]. So, the memset() in get_available_dsc_slices() is redundant and can be

Re: [RFC PATCH v2 05/13] drm/msm/dpu: get rid of struct dpu_rm_requirements

2023-05-17 Thread Abhinav Kumar
On 5/14/2023 10:06 AM, Dmitry Baryshkov wrote: On Sat, 13 May 2023 at 01:39, Abhinav Kumar wrote: On 3/20/2023 6:18 PM, Dmitry Baryshkov wrote: The struct dpu_rm_requirements was used to wrap display topology and hw resources, which meant INTF indices. As of commit ef58e0ad3436

[PATCH 2/2] drm/sched: Rename to drm_sched_wakeup_if_can_queue()

2023-05-17 Thread Luben Tuikov
Rename drm_sched_wakeup() to drm_sched_wakeup_if_canqueue() since the former is misleading, as it wakes up the GPU scheduler _only if_ more jobs can be queued to the underlying hardware. This distinction is important to make, since the wake conditional in the GPU scheduler thread wakes up when

[PATCH 1/2] drm/sched: Rename to drm_sched_can_queue()

2023-05-17 Thread Luben Tuikov
Rename drm_sched_ready() to drm_sched_can_queue(). "ready" can mean many things and is thus meaningless in this context. Instead, rename to a name which precisely conveys what is being checked. Cc: Christian König Cc: Alex Deucher Signed-off-by: Luben Tuikov Reviewed-by: Alex Deucher ---

Re: [PATCH 2/2] drm/sched: Rename to drm_sched_wakeup_if_canqueue()

2023-05-17 Thread Luben Tuikov
Ignore this series--I'll repost without the duplication. Regards, Luben On 2023-05-17 19:08, Luben Tuikov wrote: > Rename drm_sched_wakeup() to drm_sched_wakeup_if_canqueue() since the former > is misleading, as it wakes up the GPU scheduler _only if_ more jobs can be > queued to the underlying

Re: [PATCH v3 3/3] ARM: dts: stm32: fix several DT warnings on stm32mp15

2023-05-17 Thread Marek Vasut
On 5/17/23 19:04, Raphael Gallais-Pou wrote: Hi Marek Hi, On 5/17/23 17:41, Marek Vasut wrote: On 5/17/23 16:35, Raphael Gallais-Pou wrote: Hi, diff --git a/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi b/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi index 0f1110e42c93..a6e2e20f12fa 100644 ---

Re: [PATCH v10 7/8] drm/msm/dpu: add DSC 1.2 hw blocks for relevant chipsets

2023-05-17 Thread Abhinav Kumar
On 5/17/2023 3:47 PM, Marijn Suijten wrote: Title: "DPU >= 7.0" instead of "relevant chipsets" to match the others. On 2023-05-17 15:01:58, Kuogee Hsieh wrote: From: Abhinav Kumar Add DSC 1.2 hardware blocks to the catalog with necessary sub-block and feature flag information. Each

[PATCH 2/2] drm/sched: Rename to drm_sched_wakeup_if_canqueue()

2023-05-17 Thread Luben Tuikov
Rename drm_sched_wakeup() to drm_sched_wakeup_if_canqueue() since the former is misleading, as it wakes up the GPU scheduler _only if_ more jobs can be queued to the underlying hardware. This distinction is important to make, since the wake conditional in the GPU scheduler thread wakes up when

[PATCH 2/2] drm/sched: Rename to drm_sched_wakeup_if_can_queue()

2023-05-17 Thread Luben Tuikov
Rename drm_sched_wakeup() to drm_sched_wakeup_if_canqueue() since the former is misleading, as it wakes up the GPU scheduler _only if_ more jobs can be queued to the underlying hardware. This distinction is important to make, since the wake conditional in the GPU scheduler thread wakes up when

[PATCH 1/2] drm/sched: Rename to drm_sched_can_queue()

2023-05-17 Thread Luben Tuikov
Rename drm_sched_ready() to drm_sched_can_queue(). "ready" can mean many things and is thus meaningless in this context. Instead, rename to a name which precisely conveys what is being checked. Cc: Christian König Cc: Alex Deucher Signed-off-by: Luben Tuikov Reviewed-by: Alex Deucher ---

Re: [PATCH 2/2] drm/sched: Rename to drm_sched_wakeup_if_canqueue()

2023-05-17 Thread Luben Tuikov
On 2023-05-17 16:43, Alex Deucher wrote: > On Wed, May 17, 2023 at 3:04 PM Luben Tuikov wrote: >> >> Rename drm_sched_wakeup() to drm_sched_wakeup_if_canqueue() since the former > > I think drm_sched_wakeup_if_can_queue() looks cleaner. Yeah, I can change it to this--I was concerned of too many

Re: [PATCH v12 5/9] drm/msm: Add MSM-specific DSC helper methods

2023-05-17 Thread Marijn Suijten
On 2023-05-17 15:27:18, Jessica Zhang wrote: > Introduce MSM-specific DSC helper methods, as some calculations are > common between DP and DSC. > > Signed-off-by: Jessica Zhang > --- > drivers/gpu/drm/msm/msm_dsc_helper.h | 38 > > 1 file changed, 38

Re: [PATCH v11 1/9] drm/display/dsc: Add flatness and initial scale value calculations

2023-05-17 Thread Marijn Suijten
On 2023-05-17 14:32:42, Jessica Zhang wrote: > > > On 5/17/2023 2:13 PM, Marijn Suijten wrote: > > On 2023-05-17 11:51:10, Jessica Zhang wrote: > >> Add helpers to calculate det_thresh_flatness and initial_scale_value as > >> these calculations are defined within the DSC spec. > >> > >>

Re: [PATCH v10 8/8] drm/msm/dpu: tear down DSC data path when DSC disabled

2023-05-17 Thread Marijn Suijten
Title: Tear down DSC datapath* on encoder cleanup* On 2023-05-17 15:01:59, Kuogee Hsieh wrote: > Unset DSC_ACTIVE bit at dpu_hw_ctl_reset_intf_cfg_v1(), > dpu_encoder_unprep_dsc() and dpu_encoder_dsc_pipe_clr() functions > to tear down DSC data path if DSC data path was setup previous. > >

Re: [PATCH v10 7/8] drm/msm/dpu: add DSC 1.2 hw blocks for relevant chipsets

2023-05-17 Thread Marijn Suijten
Title: "DPU >= 7.0" instead of "relevant chipsets" to match the others. On 2023-05-17 15:01:58, Kuogee Hsieh wrote: > From: Abhinav Kumar > > Add DSC 1.2 hardware blocks to the catalog with necessary sub-block and > feature flag information. Each display compression engine (DCE) contains >

Re: [PATCH v10 6/8] drm/msm/dpu: separate DSC flush update out of interface

2023-05-17 Thread Marijn Suijten
On 2023-05-17 15:01:57, Kuogee Hsieh wrote: > Currently DSC flushing happens during interface configuration at > dpu_hw_ctl_intf_cfg_v1(). Separate DSC flush away from > dpu_hw_ctl_intf_cfg_v1() by adding dpu_hw_ctl_update_pending_flush_dsc_v1() > to handle both per-DSC engine and DSC flush bits

[PATCH v12 6/9] drm/msm/dpu: Use fixed DRM DSC helper for det_thresh_flatness

2023-05-17 Thread Jessica Zhang
The current dpu_hw_dsc calculation for det_thresh_flatness does not match the downstream calculation or the DSC spec. Use the DRM DSC helper for det_thresh_flatness to match downstream implementation and the DSC spec. Fixes: c110cfd1753e ("drm/msm/disp/dpu1: Add support for DSC") Reviewed-by:

[PATCH v12 7/9] drm/msm/dpu: Fix slice_last_group_size calculation

2023-05-17 Thread Jessica Zhang
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") Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c | 5

[PATCH v12 5/9] drm/msm: Add MSM-specific DSC helper methods

2023-05-17 Thread Jessica Zhang
Introduce MSM-specific DSC helper methods, as some calculations are common between DP and DSC. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/msm_dsc_helper.h | 38 1 file changed, 38 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_dsc_helper.h

[PATCH v12 3/9] drm/display/dsc: Add drm_dsc_get_bpp_int helper

2023-05-17 Thread Jessica Zhang
Add helper to get the integer value of drm_dsc_config.bits_per_pixel Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- include/drm/display/drm_dsc_helper.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/drm/display/drm_dsc_helper.h

[PATCH v12 2/9] drm/display/dsc: add helper to set semi-const parameters

2023-05-17 Thread Jessica Zhang
From: Dmitry Baryshkov Add a helper setting config values which are typically constant across operating modes (table E-4 of the standard) and mux_word_size (which is a const according to 3.5.2). Signed-off-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang ---

[PATCH v12 9/9] drm/msm/dsi: update hdisplay calculation for dsi_timing_setup

2023-05-17 Thread Jessica Zhang
Currently, hdisplay is being divided by 3 for DSC. However, this calculation only works for cases where BPP = 8. Update hdisplay calculation to be bytes_per_line / 3, so that it accounts for cases where BPP != 8. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica

[PATCH v12 4/9] drm/msm/dsi: use DRM DSC helpers for DSC setup

2023-05-17 Thread Jessica Zhang
From: Dmitry Baryshkov Use new DRM DSC helpers to setup DSI DSC configuration. The initial_scale_value needs to be adjusted according to the standard, but this is a separate change. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar Reviewed-by: Marijn Suijten Signed-off-by: Jessica

[PATCH v12 8/9] drm/msm/dsi: Use MSM and DRM DSC helper methods

2023-05-17 Thread Jessica Zhang
Use MSM and DRM DSC helper methods to configure DSC for DSI. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/dsi/dsi_host.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH v12 0/9] Introduce MSM-specific DSC helpers

2023-05-17 Thread Jessica Zhang
There are some overlap in calculations for MSM-specific DSC variables between DP and DSI. In addition, the calculations for initial_scale_value and det_thresh_flatness that are defined within the DSC 1.2 specifications, but aren't yet included in drm_dsc_helper.c. This series moves these

[PATCH v12 1/9] drm/display/dsc: Add flatness and initial scale value calculations

2023-05-17 Thread Jessica Zhang
Add helpers to calculate det_thresh_flatness and initial_scale_value as these calculations are defined within the DSC spec. Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- include/drm/display/drm_dsc_helper.h | 10 ++ 1 file changed, 10 insertions(+) diff --git

Re: [PATCH v10 5/8] drm/msm/dpu: add support for DSC encoder v1.2 engine

2023-05-17 Thread Marijn Suijten
On 2023-05-17 15:01:56, Kuogee Hsieh wrote: > Add support for DSC 1.2 by providing the necessary hooks to program > the DPU DSC 1.2 encoder. > > Changes in v3: > -- fixed kernel test rebot report that "__iomem *off" is declared but not >used at dpu_hw_dsc_config_1_2() > -- unrolling thresh

Re: [PATCH v10 1/8] drm/msm/dpu: add dsc blocks to the catalog of MSM8998 and SC8180X

2023-05-17 Thread Marijn Suijten
DSC* in the title. On 2023-05-17 15:01:52, Kuogee Hsieh wrote: > From: Abhinav Kumar > > Some platforms have DSC blocks which have not been declared in the catalog. > Complete DSC 1.1 support for all platforms by adding the missing blocks to > MSM8998 and SC8180X. > > Changes in v9: > -- add

[PATCH v10 7/8] drm/msm/dpu: add DSC 1.2 hw blocks for relevant chipsets

2023-05-17 Thread Kuogee Hsieh
From: Abhinav Kumar Add DSC 1.2 hardware blocks to the catalog with necessary sub-block and feature flag information. Each display compression engine (DCE) contains dual DSC encoders so both share same base address but with its own different sub block address. changes in v4: -- delete

[PATCH v10 6/8] drm/msm/dpu: separate DSC flush update out of interface

2023-05-17 Thread Kuogee Hsieh
Currently DSC flushing happens during interface configuration at dpu_hw_ctl_intf_cfg_v1(). Separate DSC flush away from dpu_hw_ctl_intf_cfg_v1() by adding dpu_hw_ctl_update_pending_flush_dsc_v1() to handle both per-DSC engine and DSC flush bits at same time to make it consistent with the location

[PATCH v10 8/8] drm/msm/dpu: tear down DSC data path when DSC disabled

2023-05-17 Thread Kuogee Hsieh
Unset DSC_ACTIVE bit at dpu_hw_ctl_reset_intf_cfg_v1(), dpu_encoder_unprep_dsc() and dpu_encoder_dsc_pipe_clr() functions to tear down DSC data path if DSC data path was setup previous. Changes in V10: -- pass ctl directly instead of dpu_enc to dsc_pipe_cfg() -- move both dpu_encoder_unprep_dsc()

[PATCH v10 3/8] drm/msm/dpu: Guard PINGPONG DSC ops behind DPU_PINGPONG_DSC bit

2023-05-17 Thread Kuogee Hsieh
DPU < 7.0.0 has DPU_PINGPONG_DSC feature bit set to indicate it requires both dpu_hw_pp_setup_dsc() and dpu_hw_pp_dsc_{enable,disable}() to be executed to complete DSC configuration if DSC hardware block is present. Hence test DPU_PINGPONG_DSC feature bit and assign DSC related functions to the

[PATCH v10 5/8] drm/msm/dpu: add support for DSC encoder v1.2 engine

2023-05-17 Thread Kuogee Hsieh
Add support for DSC 1.2 by providing the necessary hooks to program the DPU DSC 1.2 encoder. Changes in v3: -- fixed kernel test rebot report that "__iomem *off" is declared but not used at dpu_hw_dsc_config_1_2() -- unrolling thresh loops Changes in v4: -- delete DPU_DSC_HW_REV_1_1 -- delete

[PATCH v10 4/8] drm/msm/dpu: Introduce PINGPONG_NONE to disconnect DSC from PINGPONG

2023-05-17 Thread Kuogee Hsieh
Disabling the crossbar mux between DSC and PINGPONG currently requires a bogus enum dpu_pingpong value to be passed when calling dsc_bind_pingpong_blk() with enable=false, even though the register value written is independent of the current PINGPONG block. Replace that `bool enable` parameter

[PATCH v10 1/8] drm/msm/dpu: add dsc blocks to the catalog of MSM8998 and SC8180X

2023-05-17 Thread Kuogee Hsieh
From: Abhinav Kumar Some platforms have DSC blocks which have not been declared in the catalog. Complete DSC 1.1 support for all platforms by adding the missing blocks to MSM8998 and SC8180X. Changes in v9: -- add MSM8998 and SC8180x to commit titil Changes in v10: -- fix grammar at commit

[PATCH v10 2/8] drm/msm/dpu: add DPU_PINGPONG_DSC feature bit for DPU < 7.0.0

2023-05-17 Thread Kuogee Hsieh
DPU < 7.0.0 requires the PINGPONG block to be involved during DSC setting up. Since DPU >= 7.0.0, enabling and starting the DSC encoder engine was moved to INTF with the help of the flush mechanism. Add a DPU_PINGPONG_DSC feature bit to restrict the availability of dpu_hw_pp_setup_dsc() and

[PATCH v10 0/8] add DSC 1.2 dpu supports

2023-05-17 Thread Kuogee Hsieh
This series adds the DPU side changes to support DSC 1.2 encoder. This was validated with both DSI DSC 1.2 panel and DP DSC 1.2 monitor. The DSI and DP parts will be pushed later on top of this change. This seriel is rebase on [1], [2] and catalog fixes from rev-4 of [3]. [1]:

Re: [PATCH v11 2/9] drm/display/dsc: add helper to set semi-const parameters

2023-05-17 Thread Jessica Zhang
On 5/17/2023 2:15 PM, Marijn Suijten wrote: On 2023-05-17 11:51:11, Jessica Zhang wrote: From: Dmitry Baryshkov Add a helper setting config values which are typically constant across operating modes (table E-4 of the standard) and mux_word_size (which is a const according to 3.5.2).

Re: [PATCH v4 2/4] ARM/mmc: Convert old mmci-omap to GPIO descriptors

2023-05-17 Thread Linus Walleij
On Wed, May 17, 2023 at 10:30 PM Aaro Koskinen wrote: > This one has some issue as mmci-omap is unable to find the GPIOs on 770. > > On Mon, May 08, 2023 at 11:20:07PM +0200, Linus Walleij wrote: > > +static struct gpiod_lookup_table nokia770_mmc_gpio_table = { > > + .dev_id = "mmci-omap", >

Re: [PATCH V6 5/6] drm: bridge: samsung-dsim: Dynamically configure DPHY timing

2023-05-17 Thread Marek Szyprowski
Hi Adam, On 17.05.2023 04:55, Adam Ford wrote: > On Mon, May 15, 2023 at 6:57 PM Adam Ford wrote: >> The DPHY timings are currently hard coded. Since the input >> clock can be variable, the phy timings need to be variable >> too. To facilitate this, we need to cache the hs_clock >> based on

Re: [PATCH v11 1/9] drm/display/dsc: Add flatness and initial scale value calculations

2023-05-17 Thread Jessica Zhang
On 5/17/2023 2:13 PM, Marijn Suijten wrote: On 2023-05-17 11:51:10, Jessica Zhang wrote: Add helpers to calculate det_thresh_flatness and initial_scale_value as these calculations are defined within the DSC spec. Signed-off-by: Jessica Zhang Was this r-b dropped because of changing the

Re: [PATCH v11 5/9] drm/msm: Add MSM-specific DSC helper methods

2023-05-17 Thread Jessica Zhang
On 5/17/2023 2:26 PM, Marijn Suijten wrote: On 2023-05-17 11:51:14, Jessica Zhang wrote: Introduce MSM-specific DSC helper methods, as some calculations are common between DP and DSC. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/msm_dsc_helper.h | 38

Re: [PATCH 1/2] amdgpu: validate drm_amdgpu_gem_va addrs for all ops

2023-05-17 Thread Chia-I Wu
On Tue, May 9, 2023 at 11:33 AM Chia-I Wu wrote: > > Extend the address and size validations to AMDGPU_VA_OP_UNMAP and > AMDGPU_VA_OP_CLEAR by moving the validations to amdgpu_gem_va_ioctl. > > Internal users of amdgpu_vm_bo_map are no longer validated but they > should be fine. > > Userspace

Re: [PATCH v11 5/9] drm/msm: Add MSM-specific DSC helper methods

2023-05-17 Thread Marijn Suijten
On 2023-05-17 11:51:14, Jessica Zhang wrote: > Introduce MSM-specific DSC helper methods, as some calculations are > common between DP and DSC. > > Signed-off-by: Jessica Zhang > --- > drivers/gpu/drm/msm/msm_dsc_helper.h | 38 > > 1 file changed, 38

Re: [PATCH v4 1/4] Input: ads7846 - Convert to use software nodes

2023-05-17 Thread Linus Walleij
On Wed, May 17, 2023 at 10:39 PM Aaro Koskinen wrote: > When tested w/gpio-descriptors-omap branch, the touchscreen probe fails: > > [2.378540] SPI driver ads7846 has no spi_device_id for ti,tsc2046 > [2.391906] SPI driver ads7846 has no spi_device_id for ti,ads7843 > [2.405029] SPI

Re: [PATCH v11 4/9] drm/msm/dsi: use DRM DSC helpers for DSC setup

2023-05-17 Thread Marijn Suijten
On 2023-05-17 11:51:13, Jessica Zhang wrote: > From: Dmitry Baryshkov > > Use new DRM DSC helpers to setup DSI DSC configuration. The > initial_scale_value needs to be adjusted according to the standard, but > this is a separate change. > > Signed-off-by: Dmitry Baryshkov > Reviewed-by:

Re: [PATCH v11 3/9] drm/display/dsc: Add drm_dsc_get_bpp_int helper

2023-05-17 Thread Marijn Suijten
On 2023-05-17 11:51:12, Jessica Zhang wrote: > Add helper to get the integer value of drm_dsc_config.bits_per_pixel > > Signed-off-by: Jessica Zhang Seems fine, but folks might request to make int->integer to make it more clear that it returns the integer part, and/or add the commit body to a

Re: [PATCH v11 2/9] drm/display/dsc: add helper to set semi-const parameters

2023-05-17 Thread Marijn Suijten
On 2023-05-17 11:51:11, Jessica Zhang wrote: > From: Dmitry Baryshkov > > Add a helper setting config values which are typically constant across > operating modes (table E-4 of the standard) and mux_word_size (which is > a const according to 3.5.2). > > Signed-off-by: Dmitry Baryshkov >

Re: [PATCH v11 1/9] drm/display/dsc: Add flatness and initial scale value calculations

2023-05-17 Thread Marijn Suijten
On 2023-05-17 11:51:10, Jessica Zhang wrote: > Add helpers to calculate det_thresh_flatness and initial_scale_value as > these calculations are defined within the DSC spec. > > Signed-off-by: Jessica Zhang Was this r-b dropped because of changing the return types in v10->v11? Reviewed-by:

Re: [Intel-gfx] [PATCH v2 2/8] drm/i915/uc: perma-pin firmwares

2023-05-17 Thread Ceraolo Spurio, Daniele
On 5/17/2023 1:59 PM, John Harrison wrote: On 4/28/2023 11:58, Daniele Ceraolo Spurio wrote: Now that each FW has its own reserved area, we can keep them always pinned and skip the pin/unpin dance on reset. This will make things easier for the 2-step HuC authentication, which requires the FW

Re: [PATCH v4 1/4] Input: ads7846 - Convert to use software nodes

2023-05-17 Thread Linus Walleij
On Wed, May 17, 2023 at 9:59 PM Aaro Koskinen wrote: > This does not compile as nokia770_ads7846_props is declared twice, > and nokia770_cbus_props and nokia770_mpuio_gpiochip_swnode are missing. H I think we should probably update omap1_defconfig to enable all the OMAP1 drivers so we have

Re: [Intel-gfx] [PATCH v2] drm/i915/huc: Parse the GSC-enabled HuC binary

2023-05-17 Thread John Harrison
On 5/2/2023 08:27, Daniele Ceraolo Spurio wrote: The new binaries that support the 2-step authentication have contain the have contain? legacy-style binary, which we can use for loading the HuC via DMA. To find out where this is located in the image, we need to parse the meu 'meu manifest'

Re: [PATCH] drm/radeon: Remove unnecessary (void*) conversions

2023-05-17 Thread Alex Deucher
On Wed, May 17, 2023 at 3:08 AM Su Hui wrote: > > No need cast (void*) to (struct radeon_device *) > or (struct radeon_ring *). > > Signed-off-by: Su Hui Applied. thanks! Alex > --- > drivers/gpu/drm/radeon/r100.c | 8 > drivers/gpu/drm/radeon/r300.c | 2 +- >

Re: [PATCH 2/2] drm/scheduler: avoid infinite loop if entity's dependency is a scheduled error fence

2023-05-17 Thread Alex Deucher
On Wed, May 17, 2023 at 11:02 AM Alex Deucher wrote: > > + dri-devel for scheduler > > On Tue, May 9, 2023 at 6:23 AM ZhenGuo Yin wrote: > > > > [Why] > > drm_sched_entity_add_dependency_cb ignores the scheduled fence and return > > false. > > If entity's dependency is a schedulerd error fence

Re: [Intel-gfx] [PATCH v2 2/8] drm/i915/uc: perma-pin firmwares

2023-05-17 Thread John Harrison
On 4/28/2023 11:58, Daniele Ceraolo Spurio wrote: Now that each FW has its own reserved area, we can keep them always pinned and skip the pin/unpin dance on reset. This will make things easier for the 2-step HuC authentication, which requires the FW to be pinned in GGTT after the xfer is

Re: [PATCH 2/2] drm/sched: Rename to drm_sched_wakeup_if_canqueue()

2023-05-17 Thread Alex Deucher
On Wed, May 17, 2023 at 3:04 PM Luben Tuikov wrote: > > Rename drm_sched_wakeup() to drm_sched_wakeup_if_canqueue() since the former I think drm_sched_wakeup_if_can_queue() looks cleaner. Alex > is misleading, as it wakes up the GPU scheduler _only if_ more jobs can be > queued to the

Re: [PATCH 1/2] drm/sched: Rename to drm_sched_can_queue()

2023-05-17 Thread Alex Deucher
On Wed, May 17, 2023 at 3:04 PM Luben Tuikov wrote: > > Rename drm_sched_ready() to drm_sched_can_queue(). "ready" can mean many > things and is thus meaningless in this context. Instead, rename to a name > which precisely conveys what is being checked. > > Cc: Christian König > Cc: Alex Deucher

Re: [PATCH v4 1/4] Input: ads7846 - Convert to use software nodes

2023-05-17 Thread Aaro Koskinen
Hi, On Mon, May 08, 2023 at 11:20:06PM +0200, Linus Walleij wrote: > The CBUS also has the ADS7846 touchscreen attached. Not sure what this comment means. CBUS is for Retu/Tahvo, and touchscreen is SPI. When tested w/gpio-descriptors-omap branch, the touchscreen probe fails: [2.378540] SPI

Re: [Freedreno] [PATCH 5/6] drm/msm/a6xx: Use GMU_ALWAYS_ON_COUNTER for GMU-equipped GPUs in timestamp

2023-05-17 Thread Jonathan Marek
On 5/17/23 3:08 PM, Konrad Dybcio wrote: On 17.05.2023 20:09, Jonathan Marek wrote: AFAIK GMU_ALWAYS_ON_COUNTER does not have the same value as CP_ALWAYS_ON_COUNTER (only the same frequency), so changing this would break userspace expecting to be able to compare the value returned by

Re: [PATCH v4 2/4] ARM/mmc: Convert old mmci-omap to GPIO descriptors

2023-05-17 Thread Aaro Koskinen
Hi, This one has some issue as mmci-omap is unable to find the GPIOs on 770. On Mon, May 08, 2023 at 11:20:07PM +0200, Linus Walleij wrote: > +static struct gpiod_lookup_table nokia770_mmc_gpio_table = { > + .dev_id = "mmci-omap", Changing this to "mmci-omap.1" helped, not sure if that is a

Re: [PATCH v11 8/9] drm/msm/dsi: Use MSM and DRM DSC helper methods

2023-05-17 Thread Jessica Zhang
On 5/17/2023 12:25 PM, Marijn Suijten wrote: On 2023-05-17 21:13:36, Marijn Suijten wrote: On 2023-05-17 11:51:17, Jessica Zhang wrote: Use MSM and DRM DSC helper methods to configure DSC for DSI. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang

Re: [PATCH v4 1/4] Input: ads7846 - Convert to use software nodes

2023-05-17 Thread Aaro Koskinen
Hi, This does not compile as nokia770_ads7846_props is declared twice, and nokia770_cbus_props and nokia770_mpuio_gpiochip_swnode are missing. On Mon, May 08, 2023 at 11:20:06PM +0200, Linus Walleij wrote: > +static const struct software_node_ref_args nokia770_cbus_gpio_refs[] = { > +

Re: [PATCH 5/7] drm/apu: allow platform driver to implement their own mmap function

2023-05-17 Thread Krzysztof Kozlowski
On 17/05/2023 16:52, Alexandre Bailon wrote: > From: Julien Stephan > > By default we will call drm_gem_mmap() unless the apu driver has > declared it's own mmap handler. > > Signed-off-by: Julien Stephan > Reviewed-by: Julien Stephan One does not have to review own code. We all assume that

Re: [PATCH 7/7] dt-bindings: Add bidings for mtk,apu-drm

2023-05-17 Thread Krzysztof Kozlowski
On 17/05/2023 21:38, Krzysztof Kozlowski wrote: > On 17/05/2023 16:52, Alexandre Bailon wrote: >> This adds the device tree bindings for the APU DRM driver. >> >> Signed-off-by: Alexandre Bailon >> Reviewed-by: Julien Stephan > > There are so many errors in this patch... that for sure it was

Re: [PATCH 7/7] dt-bindings: Add bidings for mtk,apu-drm

2023-05-17 Thread Krzysztof Kozlowski
On 17/05/2023 16:52, Alexandre Bailon wrote: > This adds the device tree bindings for the APU DRM driver. > > Signed-off-by: Alexandre Bailon > Reviewed-by: Julien Stephan There are so many errors in this patch... that for sure it was not tested. Reduced review, except what was already said:

[PATCH 1/5] accel/qaic: Validate user data before grabbing any lock

2023-05-17 Thread Jeffrey Hugo
From: Pranjal Ramajor Asha Kanojiya Validating user data does not need to be protected by any lock and it is safe to move it out of critical region. Fixes: ff13be830333 ("accel/qaic: Add datapath") Fixes: 129776ac2e38 ("accel/qaic: Add control path") Signed-off-by: Pranjal Ramajor Asha Kanojiya

[PATCH 2/5] accel/qaic: Validate if BO is sliced before slicing

2023-05-17 Thread Jeffrey Hugo
From: Pranjal Ramajor Asha Kanojiya QAIC_ATTACH_SLICE_BO attaches slicing configuration to a BO. Validate if given BO is already sliced. An already sliced BO cannot be sliced again. Fixes: ff13be830333 ("accel/qaic: Add datapath") Signed-off-by: Pranjal Ramajor Asha Kanojiya Reviewed-by: Carl

[PATCH 4/5] accel/qaic: Grab ch_lock during QAIC_ATTACH_SLICE_BO

2023-05-17 Thread Jeffrey Hugo
From: Pranjal Ramajor Asha Kanojiya During QAIC_ATTACH_SLICE_BO, we associate a BO to its DBC. We need to grab the dbc->ch_lock to make sure that DBC does not goes away while QAIC_ATTACH_SLICE_BO is still running. Fixes: ff13be830333 ("accel/qaic: Add datapath") Signed-off-by: Pranjal Ramajor

[PATCH 3/5] accel/qaic: Flush the transfer list again

2023-05-17 Thread Jeffrey Hugo
From: Pranjal Ramajor Asha Kanojiya Before calling synchronize_srcu() we clear the transfer list, this is to allow all the QAIC_WAIT_BO callers to exit otherwise the system could deadlock. There could be a corner case where more elements get added to transfer list after we have flushed it.

[PATCH 5/5] accel/qaic: Fix NNC message corruption

2023-05-17 Thread Jeffrey Hugo
If msg_xfer() is unable to queue part of a NNC message because the MHI ring is full, it will attempt to give the QSM some time to drain the queue. However, if QSM fails to make any room, msg_xfer() will fail and tell the caller to try again. This is problematic because part of the message may

[PATCH 0/5] accel/qaic fixes for 6.4

2023-05-17 Thread Jeffrey Hugo
During development of new features, we noticed some spots in the code that could be improved based on review feedback from the initial driver series. Also two race condition fixes, one found during stress testing and another via code inspection. Jeffrey Hugo (1): accel/qaic: Fix NNC message

Re: [PATCH v11 8/9] drm/msm/dsi: Use MSM and DRM DSC helper methods

2023-05-17 Thread Marijn Suijten
On 2023-05-17 21:13:36, Marijn Suijten wrote: > > On 2023-05-17 11:51:17, Jessica Zhang wrote: > > > > Use MSM and DRM DSC helper methods to configure DSC for DSI. > > > > Reviewed-by: Dmitry Baryshkov > > Reviewed-by: Marijn Suijten > > Signed-off-by: Jessica Zhang > > --- > >

Re: [PATCH v11 8/9] drm/msm/dsi: Use MSM and DRM DSC helper methods

2023-05-17 Thread Marijn Suijten
On 2023-05-17 11:51:17, Jessica Zhang wrote: > > Use MSM and DRM DSC helper methods to configure DSC for DSI. > > Reviewed-by: Dmitry Baryshkov > Reviewed-by: Marijn Suijten > Signed-off-by: Jessica Zhang > --- > drivers/gpu/drm/msm/dsi/dsi_host.c | 7 --- > 1 file changed, 4

Re: [Freedreno] [PATCH 5/6] drm/msm/a6xx: Use GMU_ALWAYS_ON_COUNTER for GMU-equipped GPUs in timestamp

2023-05-17 Thread Konrad Dybcio
On 17.05.2023 20:09, Jonathan Marek wrote: > AFAIK GMU_ALWAYS_ON_COUNTER does not have the same value as > CP_ALWAYS_ON_COUNTER (only the same frequency), so changing this would break > userspace expecting to be able to compare the value returned by > MSM_PARAM_TIMESTAMP with CP timestamp

Re: [Intel-gfx] [PATCH v9 2/2] drm/i915: Allow user to set cache at BO creation

2023-05-17 Thread Yang, Fei
> On 16/05/2023 19:11, fei.y...@intel.com wrote: >> From: Fei Yang >> >> To comply with the design that buffer objects shall have immutable >> cache setting through out their life cycle, {set, get}_caching ioctl's >> are no longer supported from MTL onward. With that change caching >> policy can

[PATCH 2/2] drm/sched: Rename to drm_sched_wakeup_if_canqueue()

2023-05-17 Thread Luben Tuikov
Rename drm_sched_wakeup() to drm_sched_wakeup_if_canqueue() since the former is misleading, as it wakes up the GPU scheduler _only if_ more jobs can be queued to the underlying hardware. This distinction is important to make, since the wake conditional in the GPU scheduler thread wakes up when

[PATCH 1/2] drm/sched: Rename to drm_sched_can_queue()

2023-05-17 Thread Luben Tuikov
Rename drm_sched_ready() to drm_sched_can_queue(). "ready" can mean many things and is thus meaningless in this context. Instead, rename to a name which precisely conveys what is being checked. Cc: Christian König Cc: Alex Deucher Signed-off-by: Luben Tuikov ---

[PATCH v11 8/9] drm/msm/dsi: Use MSM and DRM DSC helper methods

2023-05-17 Thread Jessica Zhang
Use MSM and DRM DSC helper methods to configure DSC for DSI. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/dsi/dsi_host.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH v11 7/9] drm/msm/dpu: Fix slice_last_group_size calculation

2023-05-17 Thread Jessica Zhang
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") Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c | 5

  1   2   3   >