* [PATCH v2 1/4] drm/msm/dpu: remove DPU_DSPP_GC handling in dspp flush
@ 2023-04-26 19:22 Abhinav Kumar
2023-04-26 19:22 ` [PATCH v2 2/4] drm/msm/dpu: remove DPU_DSPP_IGC " Abhinav Kumar
` (3 more replies)
0 siblings, 4 replies; 12+ messages in thread
From: Abhinav Kumar @ 2023-04-26 19:22 UTC (permalink / raw)
To: freedreno, Rob Clark, Abhinav Kumar, Dmitry Baryshkov, Sean Paul,
David Airlie, Daniel Vetter
Cc: dri-devel, quic_jesszhan, marijn.suijten, linux-arm-msm, linux-kernel
Gamma correction blocks (GC) are not used today so lets remove
the usage of DPU_DSPP_GC in the dspp flush to make it easier
to remove GC from the catalog.
We can add this back when GC is properly supported in DPU with
one of the standard DRM properties.
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230421224721.12738-1-quic_abhinavk@quicinc.com
---
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
index bbdc95ce374a..57adaebab563 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
@@ -336,9 +336,6 @@ static void dpu_hw_ctl_update_pending_flush_dspp_sub_blocks(
case DPU_DSPP_PCC:
ctx->pending_dspp_flush_mask[dspp - DSPP_0] |= BIT(4);
break;
- case DPU_DSPP_GC:
- ctx->pending_dspp_flush_mask[dspp - DSPP_0] |= BIT(5);
- break;
default:
return;
}
--
2.40.1
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 2/4] drm/msm/dpu: remove DPU_DSPP_IGC handling in dspp flush
2023-04-26 19:22 [PATCH v2 1/4] drm/msm/dpu: remove DPU_DSPP_GC handling in dspp flush Abhinav Kumar
@ 2023-04-26 19:22 ` Abhinav Kumar
2023-04-27 15:56 ` Dmitry Baryshkov
2023-04-27 20:23 ` Marijn Suijten
2023-04-26 19:22 ` [PATCH v2 3/4] drm/msm/dpu: remove GC related code from dpu catalog Abhinav Kumar
` (2 subsequent siblings)
3 siblings, 2 replies; 12+ messages in thread
From: Abhinav Kumar @ 2023-04-26 19:22 UTC (permalink / raw)
To: freedreno, Rob Clark, Abhinav Kumar, Dmitry Baryshkov, Sean Paul,
David Airlie, Daniel Vetter
Cc: dri-devel, quic_jesszhan, marijn.suijten, linux-arm-msm, linux-kernel
Inverse gamma correction blocks (IGC) are not used today so lets
remove the usage of DPU_DSPP_IGC in the dspp flush to make it easier
to remove IGC from the catalog.
We can add this back when IGC is properly supported in DPU with
one of the standard DRM properties.
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
---
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
index 57adaebab563..b2a1f83ac72c 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
@@ -330,9 +330,6 @@ static void dpu_hw_ctl_update_pending_flush_dspp_sub_blocks(
return;
switch (dspp_sub_blk) {
- case DPU_DSPP_IGC:
- ctx->pending_dspp_flush_mask[dspp - DSPP_0] |= BIT(2);
- break;
case DPU_DSPP_PCC:
ctx->pending_dspp_flush_mask[dspp - DSPP_0] |= BIT(4);
break;
--
2.40.1
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 3/4] drm/msm/dpu: remove GC related code from dpu catalog
2023-04-26 19:22 [PATCH v2 1/4] drm/msm/dpu: remove DPU_DSPP_GC handling in dspp flush Abhinav Kumar
2023-04-26 19:22 ` [PATCH v2 2/4] drm/msm/dpu: remove DPU_DSPP_IGC " Abhinav Kumar
@ 2023-04-26 19:22 ` Abhinav Kumar
2023-04-27 15:57 ` Dmitry Baryshkov
2023-04-26 19:22 ` [PATCH v2 4/4] drm/msm/dpu: drop DSPP_MSM8998_MASK from hw catalog Abhinav Kumar
2023-04-27 20:22 ` [PATCH v2 1/4] drm/msm/dpu: remove DPU_DSPP_GC handling in dspp flush Marijn Suijten
3 siblings, 1 reply; 12+ messages in thread
From: Abhinav Kumar @ 2023-04-26 19:22 UTC (permalink / raw)
To: freedreno, Rob Clark, Abhinav Kumar, Dmitry Baryshkov, Sean Paul,
David Airlie, Daniel Vetter
Cc: dri-devel, quic_jesszhan, marijn.suijten, linux-arm-msm, linux-kernel
Since Gamma Correction (GC) block is currently unused, drop
related code from the dpu hardware catalog otherwise this
becomes a burden to carry across chipsets in the catalog.
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230421224721.12738-2-quic_abhinavk@quicinc.com
---
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 4 +---
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 6 ------
2 files changed, 1 insertion(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
index 03f162af1a50..badfc3680485 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
@@ -91,7 +91,7 @@
#define MERGE_3D_SM8150_MASK (0)
-#define DSPP_MSM8998_MASK BIT(DPU_DSPP_PCC) | BIT(DPU_DSPP_GC)
+#define DSPP_MSM8998_MASK BIT(DPU_DSPP_PCC)
#define DSPP_SC7180_MASK BIT(DPU_DSPP_PCC)
@@ -449,8 +449,6 @@ static const struct dpu_lm_sub_blks qcm2290_lm_sblk = {
static const struct dpu_dspp_sub_blks msm8998_dspp_sblk = {
.pcc = {.id = DPU_DSPP_PCC, .base = 0x1700,
.len = 0x90, .version = 0x10007},
- .gc = { .id = DPU_DSPP_GC, .base = 0x17c0,
- .len = 0x90, .version = 0x10007},
};
static const struct dpu_dspp_sub_blks sc7180_dspp_sblk = {
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
index 71584cd56fd7..e0dcef04bc61 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
@@ -127,12 +127,10 @@ enum {
/**
* DSPP sub-blocks
* @DPU_DSPP_PCC Panel color correction block
- * @DPU_DSPP_GC Gamma correction block
* @DPU_DSPP_IGC Inverse gamma correction block
*/
enum {
DPU_DSPP_PCC = 0x1,
- DPU_DSPP_GC,
DPU_DSPP_IGC,
DPU_DSPP_MAX
};
@@ -433,22 +431,18 @@ struct dpu_sspp_sub_blks {
* @maxwidth: Max pixel width supported by this mixer
* @maxblendstages: Max number of blend-stages supported
* @blendstage_base: Blend-stage register base offset
- * @gc: gamma correction block
*/
struct dpu_lm_sub_blks {
u32 maxwidth;
u32 maxblendstages;
u32 blendstage_base[MAX_BLOCKS];
- struct dpu_pp_blk gc;
};
/**
* struct dpu_dspp_sub_blks: Information of DSPP block
- * @gc : gamma correction block
* @pcc: pixel color correction block
*/
struct dpu_dspp_sub_blks {
- struct dpu_pp_blk gc;
struct dpu_pp_blk pcc;
};
--
2.40.1
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 4/4] drm/msm/dpu: drop DSPP_MSM8998_MASK from hw catalog
2023-04-26 19:22 [PATCH v2 1/4] drm/msm/dpu: remove DPU_DSPP_GC handling in dspp flush Abhinav Kumar
2023-04-26 19:22 ` [PATCH v2 2/4] drm/msm/dpu: remove DPU_DSPP_IGC " Abhinav Kumar
2023-04-26 19:22 ` [PATCH v2 3/4] drm/msm/dpu: remove GC related code from dpu catalog Abhinav Kumar
@ 2023-04-26 19:22 ` Abhinav Kumar
2023-04-27 15:57 ` Dmitry Baryshkov
2023-04-27 20:24 ` Marijn Suijten
2023-04-27 20:22 ` [PATCH v2 1/4] drm/msm/dpu: remove DPU_DSPP_GC handling in dspp flush Marijn Suijten
3 siblings, 2 replies; 12+ messages in thread
From: Abhinav Kumar @ 2023-04-26 19:22 UTC (permalink / raw)
To: freedreno, Rob Clark, Abhinav Kumar, Dmitry Baryshkov, Sean Paul,
David Airlie, Daniel Vetter
Cc: dri-devel, quic_jesszhan, marijn.suijten, linux-arm-msm, linux-kernel
Since GC and IGC masks have now been dropped DSPP_MSM8998_MASK
is same as DSPP_SC7180_MASK. Since DSPP_SC7180_MASK is used more
than DSPP_MSM8998_MASK, lets drop the latter.
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
---
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 4 ++--
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 --
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h
index 2b3ae84057df..5f6e4715aa04 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h
@@ -127,9 +127,9 @@ static const struct dpu_pingpong_cfg msm8998_pp[] = {
};
static const struct dpu_dspp_cfg msm8998_dspp[] = {
- DSPP_BLK("dspp_0", DSPP_0, 0x54000, DSPP_MSM8998_MASK,
+ DSPP_BLK("dspp_0", DSPP_0, 0x54000, DSPP_SC7180_MASK,
&msm8998_dspp_sblk),
- DSPP_BLK("dspp_1", DSPP_1, 0x56000, DSPP_MSM8998_MASK,
+ DSPP_BLK("dspp_1", DSPP_1, 0x56000, DSPP_SC7180_MASK,
&msm8998_dspp_sblk),
};
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
index badfc3680485..2cabba0bb513 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
@@ -91,8 +91,6 @@
#define MERGE_3D_SM8150_MASK (0)
-#define DSPP_MSM8998_MASK BIT(DPU_DSPP_PCC)
-
#define DSPP_SC7180_MASK BIT(DPU_DSPP_PCC)
#define INTF_SDM845_MASK (0)
--
2.40.1
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/4] drm/msm/dpu: remove DPU_DSPP_IGC handling in dspp flush
2023-04-26 19:22 ` [PATCH v2 2/4] drm/msm/dpu: remove DPU_DSPP_IGC " Abhinav Kumar
@ 2023-04-27 15:56 ` Dmitry Baryshkov
2023-04-27 20:23 ` Marijn Suijten
1 sibling, 0 replies; 12+ messages in thread
From: Dmitry Baryshkov @ 2023-04-27 15:56 UTC (permalink / raw)
To: Abhinav Kumar, freedreno, Rob Clark, Sean Paul, David Airlie,
Daniel Vetter
Cc: dri-devel, quic_jesszhan, marijn.suijten, linux-arm-msm, linux-kernel
On 26/04/2023 22:22, Abhinav Kumar wrote:
> Inverse gamma correction blocks (IGC) are not used today so lets
> remove the usage of DPU_DSPP_IGC in the dspp flush to make it easier
> to remove IGC from the catalog.
>
> We can add this back when IGC is properly supported in DPU with
> one of the standard DRM properties.
>
> Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 4/4] drm/msm/dpu: drop DSPP_MSM8998_MASK from hw catalog
2023-04-26 19:22 ` [PATCH v2 4/4] drm/msm/dpu: drop DSPP_MSM8998_MASK from hw catalog Abhinav Kumar
@ 2023-04-27 15:57 ` Dmitry Baryshkov
2023-04-27 20:24 ` Marijn Suijten
1 sibling, 0 replies; 12+ messages in thread
From: Dmitry Baryshkov @ 2023-04-27 15:57 UTC (permalink / raw)
To: Abhinav Kumar, freedreno, Rob Clark, Sean Paul, David Airlie,
Daniel Vetter
Cc: dri-devel, quic_jesszhan, marijn.suijten, linux-arm-msm, linux-kernel
On 26/04/2023 22:22, Abhinav Kumar wrote:
> Since GC and IGC masks have now been dropped DSPP_MSM8998_MASK
> is same as DSPP_SC7180_MASK. Since DSPP_SC7180_MASK is used more
> than DSPP_MSM8998_MASK, lets drop the latter.
>
> Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
> ---
> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 4 ++--
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 --
> 2 files changed, 2 insertions(+), 4 deletions(-)
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 3/4] drm/msm/dpu: remove GC related code from dpu catalog
2023-04-26 19:22 ` [PATCH v2 3/4] drm/msm/dpu: remove GC related code from dpu catalog Abhinav Kumar
@ 2023-04-27 15:57 ` Dmitry Baryshkov
2023-04-27 20:20 ` Abhinav Kumar
0 siblings, 1 reply; 12+ messages in thread
From: Dmitry Baryshkov @ 2023-04-27 15:57 UTC (permalink / raw)
To: Abhinav Kumar, freedreno, Rob Clark, Sean Paul, David Airlie,
Daniel Vetter
Cc: dri-devel, quic_jesszhan, marijn.suijten, linux-arm-msm, linux-kernel
On 26/04/2023 22:22, Abhinav Kumar wrote:
> Since Gamma Correction (GC) block is currently unused, drop
> related code from the dpu hardware catalog otherwise this
> becomes a burden to carry across chipsets in the catalog.
>
> Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> Link: https://lore.kernel.org/r/20230421224721.12738-2-quic_abhinavk@quicinc.com
> ---
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 4 +---
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 6 ------
> 2 files changed, 1 insertion(+), 9 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
> index 03f162af1a50..badfc3680485 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
> @@ -91,7 +91,7 @@
>
> #define MERGE_3D_SM8150_MASK (0)
>
> -#define DSPP_MSM8998_MASK BIT(DPU_DSPP_PCC) | BIT(DPU_DSPP_GC)
> +#define DSPP_MSM8998_MASK BIT(DPU_DSPP_PCC)
>
> #define DSPP_SC7180_MASK BIT(DPU_DSPP_PCC)
>
> @@ -449,8 +449,6 @@ static const struct dpu_lm_sub_blks qcm2290_lm_sblk = {
> static const struct dpu_dspp_sub_blks msm8998_dspp_sblk = {
> .pcc = {.id = DPU_DSPP_PCC, .base = 0x1700,
> .len = 0x90, .version = 0x10007},
> - .gc = { .id = DPU_DSPP_GC, .base = 0x17c0,
> - .len = 0x90, .version = 0x10007},
> };
>
> static const struct dpu_dspp_sub_blks sc7180_dspp_sblk = {
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
> index 71584cd56fd7..e0dcef04bc61 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
> @@ -127,12 +127,10 @@ enum {
> /**
> * DSPP sub-blocks
> * @DPU_DSPP_PCC Panel color correction block
> - * @DPU_DSPP_GC Gamma correction block
> * @DPU_DSPP_IGC Inverse gamma correction block
> */
> enum {
> DPU_DSPP_PCC = 0x1,
> - DPU_DSPP_GC,
> DPU_DSPP_IGC,
Don't we need to remove this one too (in the previous patch)?
> DPU_DSPP_MAX
> };
> @@ -433,22 +431,18 @@ struct dpu_sspp_sub_blks {
> * @maxwidth: Max pixel width supported by this mixer
> * @maxblendstages: Max number of blend-stages supported
> * @blendstage_base: Blend-stage register base offset
> - * @gc: gamma correction block
> */
> struct dpu_lm_sub_blks {
> u32 maxwidth;
> u32 maxblendstages;
> u32 blendstage_base[MAX_BLOCKS];
> - struct dpu_pp_blk gc;
> };
>
> /**
> * struct dpu_dspp_sub_blks: Information of DSPP block
> - * @gc : gamma correction block
> * @pcc: pixel color correction block
> */
> struct dpu_dspp_sub_blks {
> - struct dpu_pp_blk gc;
> struct dpu_pp_blk pcc;
> };
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 3/4] drm/msm/dpu: remove GC related code from dpu catalog
2023-04-27 15:57 ` Dmitry Baryshkov
@ 2023-04-27 20:20 ` Abhinav Kumar
2023-04-27 20:26 ` Marijn Suijten
0 siblings, 1 reply; 12+ messages in thread
From: Abhinav Kumar @ 2023-04-27 20:20 UTC (permalink / raw)
To: Dmitry Baryshkov, freedreno, Rob Clark, Sean Paul, David Airlie,
Daniel Vetter
Cc: dri-devel, quic_jesszhan, marijn.suijten, linux-arm-msm, linux-kernel
On 4/27/2023 8:57 AM, Dmitry Baryshkov wrote:
> On 26/04/2023 22:22, Abhinav Kumar wrote:
>> Since Gamma Correction (GC) block is currently unused, drop
>> related code from the dpu hardware catalog otherwise this
>> becomes a burden to carry across chipsets in the catalog.
>>
>> Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
>> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>> Link:
>> https://lore.kernel.org/r/20230421224721.12738-2-quic_abhinavk@quicinc.com
>>
>> ---
>> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 4 +---
>> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 6 ------
>> 2 files changed, 1 insertion(+), 9 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
>> b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
>> index 03f162af1a50..badfc3680485 100644
>> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
>> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
>> @@ -91,7 +91,7 @@
>> #define MERGE_3D_SM8150_MASK (0)
>> -#define DSPP_MSM8998_MASK BIT(DPU_DSPP_PCC) | BIT(DPU_DSPP_GC)
>> +#define DSPP_MSM8998_MASK BIT(DPU_DSPP_PCC)
>> #define DSPP_SC7180_MASK BIT(DPU_DSPP_PCC)
>> @@ -449,8 +449,6 @@ static const struct dpu_lm_sub_blks
>> qcm2290_lm_sblk = {
>> static const struct dpu_dspp_sub_blks msm8998_dspp_sblk = {
>> .pcc = {.id = DPU_DSPP_PCC, .base = 0x1700,
>> .len = 0x90, .version = 0x10007},
>> - .gc = { .id = DPU_DSPP_GC, .base = 0x17c0,
>> - .len = 0x90, .version = 0x10007},
>> };
>> static const struct dpu_dspp_sub_blks sc7180_dspp_sblk = {
>> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
>> b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
>> index 71584cd56fd7..e0dcef04bc61 100644
>> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
>> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
>> @@ -127,12 +127,10 @@ enum {
>> /**
>> * DSPP sub-blocks
>> * @DPU_DSPP_PCC Panel color correction block
>> - * @DPU_DSPP_GC Gamma correction block
>> * @DPU_DSPP_IGC Inverse gamma correction block
>> */
>> enum {
>> DPU_DSPP_PCC = 0x1,
>> - DPU_DSPP_GC,
>> DPU_DSPP_IGC,
>
> Don't we need to remove this one too (in the previous patch)?
Yes, we should. I thought of it right after sending this. will push a v3
which fixes it in the prev patch.
>
>> DPU_DSPP_MAX
>> };
>> @@ -433,22 +431,18 @@ struct dpu_sspp_sub_blks {
>> * @maxwidth: Max pixel width supported by this mixer
>> * @maxblendstages: Max number of blend-stages supported
>> * @blendstage_base: Blend-stage register base offset
>> - * @gc: gamma correction block
>> */
>> struct dpu_lm_sub_blks {
>> u32 maxwidth;
>> u32 maxblendstages;
>> u32 blendstage_base[MAX_BLOCKS];
>> - struct dpu_pp_blk gc;
>> };
>> /**
>> * struct dpu_dspp_sub_blks: Information of DSPP block
>> - * @gc : gamma correction block
>> * @pcc: pixel color correction block
>> */
>> struct dpu_dspp_sub_blks {
>> - struct dpu_pp_blk gc;
>> struct dpu_pp_blk pcc;
>> };
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 1/4] drm/msm/dpu: remove DPU_DSPP_GC handling in dspp flush
2023-04-26 19:22 [PATCH v2 1/4] drm/msm/dpu: remove DPU_DSPP_GC handling in dspp flush Abhinav Kumar
` (2 preceding siblings ...)
2023-04-26 19:22 ` [PATCH v2 4/4] drm/msm/dpu: drop DSPP_MSM8998_MASK from hw catalog Abhinav Kumar
@ 2023-04-27 20:22 ` Marijn Suijten
3 siblings, 0 replies; 12+ messages in thread
From: Marijn Suijten @ 2023-04-27 20:22 UTC (permalink / raw)
To: Abhinav Kumar
Cc: freedreno, Rob Clark, Dmitry Baryshkov, Sean Paul, David Airlie,
Daniel Vetter, dri-devel, quic_jesszhan, linux-arm-msm,
linux-kernel
On 2023-04-26 12:22:43, Abhinav Kumar wrote:
> Gamma correction blocks (GC) are not used today so lets remove
> the usage of DPU_DSPP_GC in the dspp flush to make it easier
> to remove GC from the catalog.
>
> We can add this back when GC is properly supported in DPU with
> one of the standard DRM properties.
>
> Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> Link: https://lore.kernel.org/r/20230421224721.12738-1-quic_abhinavk@quicinc.com
This links to v1. I don't think you should have this here `b4` should
add it when the definitive series is applied to a tree.
Regardless:
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
> ---
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
> index bbdc95ce374a..57adaebab563 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
> @@ -336,9 +336,6 @@ static void dpu_hw_ctl_update_pending_flush_dspp_sub_blocks(
> case DPU_DSPP_PCC:
> ctx->pending_dspp_flush_mask[dspp - DSPP_0] |= BIT(4);
> break;
> - case DPU_DSPP_GC:
> - ctx->pending_dspp_flush_mask[dspp - DSPP_0] |= BIT(5);
> - break;
> default:
> return;
> }
> --
> 2.40.1
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/4] drm/msm/dpu: remove DPU_DSPP_IGC handling in dspp flush
2023-04-26 19:22 ` [PATCH v2 2/4] drm/msm/dpu: remove DPU_DSPP_IGC " Abhinav Kumar
2023-04-27 15:56 ` Dmitry Baryshkov
@ 2023-04-27 20:23 ` Marijn Suijten
1 sibling, 0 replies; 12+ messages in thread
From: Marijn Suijten @ 2023-04-27 20:23 UTC (permalink / raw)
To: Abhinav Kumar
Cc: freedreno, Rob Clark, Dmitry Baryshkov, Sean Paul, David Airlie,
Daniel Vetter, dri-devel, quic_jesszhan, linux-arm-msm,
linux-kernel
DSPP*
On 2023-04-26 12:22:44, Abhinav Kumar wrote:
> Inverse gamma correction blocks (IGC) are not used today so lets
> remove the usage of DPU_DSPP_IGC in the dspp flush to make it easier
DSPP*
> to remove IGC from the catalog.
>
> We can add this back when IGC is properly supported in DPU with
> one of the standard DRM properties.
>
> Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
> ---
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
> index 57adaebab563..b2a1f83ac72c 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
> @@ -330,9 +330,6 @@ static void dpu_hw_ctl_update_pending_flush_dspp_sub_blocks(
> return;
>
> switch (dspp_sub_blk) {
> - case DPU_DSPP_IGC:
> - ctx->pending_dspp_flush_mask[dspp - DSPP_0] |= BIT(2);
> - break;
> case DPU_DSPP_PCC:
> ctx->pending_dspp_flush_mask[dspp - DSPP_0] |= BIT(4);
> break;
> --
> 2.40.1
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 4/4] drm/msm/dpu: drop DSPP_MSM8998_MASK from hw catalog
2023-04-26 19:22 ` [PATCH v2 4/4] drm/msm/dpu: drop DSPP_MSM8998_MASK from hw catalog Abhinav Kumar
2023-04-27 15:57 ` Dmitry Baryshkov
@ 2023-04-27 20:24 ` Marijn Suijten
1 sibling, 0 replies; 12+ messages in thread
From: Marijn Suijten @ 2023-04-27 20:24 UTC (permalink / raw)
To: Abhinav Kumar
Cc: freedreno, Rob Clark, Dmitry Baryshkov, Sean Paul, David Airlie,
Daniel Vetter, dri-devel, quic_jesszhan, linux-arm-msm,
linux-kernel
On 2023-04-26 12:22:46, Abhinav Kumar wrote:
> Since GC and IGC masks have now been dropped DSPP_MSM8998_MASK
> is same as DSPP_SC7180_MASK. Since DSPP_SC7180_MASK is used more
> than DSPP_MSM8998_MASK, lets drop the latter.
>
> Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Fair enough, I'd use the oldest SoC but that'd require many more
unnecessary rename changes (or even better: we inline these flags at
some point, and drop .id fields from those already present in sblk).
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
> ---
> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 4 ++--
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 --
> 2 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h
> index 2b3ae84057df..5f6e4715aa04 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h
> +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h
> @@ -127,9 +127,9 @@ static const struct dpu_pingpong_cfg msm8998_pp[] = {
> };
>
> static const struct dpu_dspp_cfg msm8998_dspp[] = {
> - DSPP_BLK("dspp_0", DSPP_0, 0x54000, DSPP_MSM8998_MASK,
> + DSPP_BLK("dspp_0", DSPP_0, 0x54000, DSPP_SC7180_MASK,
> &msm8998_dspp_sblk),
> - DSPP_BLK("dspp_1", DSPP_1, 0x56000, DSPP_MSM8998_MASK,
> + DSPP_BLK("dspp_1", DSPP_1, 0x56000, DSPP_SC7180_MASK,
> &msm8998_dspp_sblk),
> };
>
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
> index badfc3680485..2cabba0bb513 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
> @@ -91,8 +91,6 @@
>
> #define MERGE_3D_SM8150_MASK (0)
>
> -#define DSPP_MSM8998_MASK BIT(DPU_DSPP_PCC)
> -
> #define DSPP_SC7180_MASK BIT(DPU_DSPP_PCC)
>
> #define INTF_SDM845_MASK (0)
> --
> 2.40.1
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 3/4] drm/msm/dpu: remove GC related code from dpu catalog
2023-04-27 20:20 ` Abhinav Kumar
@ 2023-04-27 20:26 ` Marijn Suijten
0 siblings, 0 replies; 12+ messages in thread
From: Marijn Suijten @ 2023-04-27 20:26 UTC (permalink / raw)
To: Abhinav Kumar
Cc: Dmitry Baryshkov, freedreno, Rob Clark, Sean Paul, David Airlie,
Daniel Vetter, dri-devel, quic_jesszhan, linux-arm-msm,
linux-kernel
On 2023-04-27 13:20:28, Abhinav Kumar wrote:
<snip>
> >> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
> >> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
> >> @@ -127,12 +127,10 @@ enum {
> >> /**
> >> * DSPP sub-blocks
> >> * @DPU_DSPP_PCC Panel color correction block
> >> - * @DPU_DSPP_GC Gamma correction block
> >> * @DPU_DSPP_IGC Inverse gamma correction block
> >> */
> >> enum {
> >> DPU_DSPP_PCC = 0x1,
> >> - DPU_DSPP_GC,
> >> DPU_DSPP_IGC,
> >
> > Don't we need to remove this one too (in the previous patch)?
>
> Yes, we should. I thought of it right after sending this. will push a v3
> which fixes it in the prev patch.
Yes please. Don't forget to mention that dpu_dspp_sub_blks didn't even
have an igc member describing the block.
- Marijn
> >> DPU_DSPP_MAX
> >> };
> >> @@ -433,22 +431,18 @@ struct dpu_sspp_sub_blks {
> >> * @maxwidth: Max pixel width supported by this mixer
> >> * @maxblendstages: Max number of blend-stages supported
> >> * @blendstage_base: Blend-stage register base offset
> >> - * @gc: gamma correction block
> >> */
> >> struct dpu_lm_sub_blks {
> >> u32 maxwidth;
> >> u32 maxblendstages;
> >> u32 blendstage_base[MAX_BLOCKS];
> >> - struct dpu_pp_blk gc;
> >> };
> >> /**
> >> * struct dpu_dspp_sub_blks: Information of DSPP block
> >> - * @gc : gamma correction block
> >> * @pcc: pixel color correction block
> >> */
> >> struct dpu_dspp_sub_blks {
> >> - struct dpu_pp_blk gc;
> >> struct dpu_pp_blk pcc;
> >> };
> >
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2023-04-27 20:26 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-26 19:22 [PATCH v2 1/4] drm/msm/dpu: remove DPU_DSPP_GC handling in dspp flush Abhinav Kumar
2023-04-26 19:22 ` [PATCH v2 2/4] drm/msm/dpu: remove DPU_DSPP_IGC " Abhinav Kumar
2023-04-27 15:56 ` Dmitry Baryshkov
2023-04-27 20:23 ` Marijn Suijten
2023-04-26 19:22 ` [PATCH v2 3/4] drm/msm/dpu: remove GC related code from dpu catalog Abhinav Kumar
2023-04-27 15:57 ` Dmitry Baryshkov
2023-04-27 20:20 ` Abhinav Kumar
2023-04-27 20:26 ` Marijn Suijten
2023-04-26 19:22 ` [PATCH v2 4/4] drm/msm/dpu: drop DSPP_MSM8998_MASK from hw catalog Abhinav Kumar
2023-04-27 15:57 ` Dmitry Baryshkov
2023-04-27 20:24 ` Marijn Suijten
2023-04-27 20:22 ` [PATCH v2 1/4] drm/msm/dpu: remove DPU_DSPP_GC handling in dspp flush Marijn Suijten
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®