Message ID | 20230420-topic-dpu_gc-v1-0-d9d1a5e40917@linaro.org (mailing list archive) |
---|---|
Headers | show |
Series | DPU1 GC1.8 wiring-up | expand |
On 20/04/2023 04:14, Konrad Dybcio wrote: > Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 > dspp sub-block in addition to PCCv4. The other block differ a bit > more, but none of them are supported upstream. > > This series adds configures the GCv1.8 on all the relevant SoCs. Does this mean that we will see gamma_lut support soon? > > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > Konrad Dybcio (2): > drm/msm/dpu1: Rename sm8150_dspp_blk to sdm845_dspp_blk > drm/msm/dpu1: Enable GCv1.8 on many SoCs > > drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 16 ++++++++-------- > drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 16 ++++++++-------- > drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 4 ++-- > drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 4 ++-- > drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 16 ++++++++-------- > drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 16 ++++++++-------- > drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 16 ++++++++-------- > drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 16 ++++++++-------- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 4 +++- > 9 files changed, 55 insertions(+), 53 deletions(-) > --- > base-commit: 3cdbc01c40e34c57697f8934f2727a88551696be > change-id: 20230420-topic-dpu_gc-6901f75768db > > Best regards,
On 20.04.2023 03:25, Dmitry Baryshkov wrote: > On 20/04/2023 04:14, Konrad Dybcio wrote: >> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >> dspp sub-block in addition to PCCv4. The other block differ a bit >> more, but none of them are supported upstream. >> >> This series adds configures the GCv1.8 on all the relevant SoCs. > > Does this mean that we will see gamma_lut support soon? No promises, my plate is not even full, it's beyond overflowing! :P Konrad > >> >> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> >> --- >> Konrad Dybcio (2): >> drm/msm/dpu1: Rename sm8150_dspp_blk to sdm845_dspp_blk >> drm/msm/dpu1: Enable GCv1.8 on many SoCs >> >> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 16 ++++++++-------- >> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 16 ++++++++-------- >> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 4 ++-- >> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 4 ++-- >> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 16 ++++++++-------- >> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 16 ++++++++-------- >> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 16 ++++++++-------- >> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 16 ++++++++-------- >> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 4 +++- >> 9 files changed, 55 insertions(+), 53 deletions(-) >> --- >> base-commit: 3cdbc01c40e34c57697f8934f2727a88551696be >> change-id: 20230420-topic-dpu_gc-6901f75768db >> >> Best regards, >
On 4/19/2023 6:26 PM, Konrad Dybcio wrote: > > > On 20.04.2023 03:25, Dmitry Baryshkov wrote: >> On 20/04/2023 04:14, Konrad Dybcio wrote: >>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>> dspp sub-block in addition to PCCv4. The other block differ a bit >>> more, but none of them are supported upstream. >>> >>> This series adds configures the GCv1.8 on all the relevant SoCs. >> >> Does this mean that we will see gamma_lut support soon? > No promises, my plate is not even full, it's beyond overflowing! :P > > Konrad So I think I wrote about this before during the catalog rework/fixes that the gc registers are not written to / programmed. If thats not done, is there any benefit to this series? >> >>> >>> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> >>> --- >>> Konrad Dybcio (2): >>> drm/msm/dpu1: Rename sm8150_dspp_blk to sdm845_dspp_blk >>> drm/msm/dpu1: Enable GCv1.8 on many SoCs >>> >>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 16 ++++++++-------- >>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 16 ++++++++-------- >>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 4 ++-- >>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 4 ++-- >>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 16 ++++++++-------- >>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 16 ++++++++-------- >>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 16 ++++++++-------- >>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 16 ++++++++-------- >>> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 4 +++- >>> 9 files changed, 55 insertions(+), 53 deletions(-) >>> --- >>> base-commit: 3cdbc01c40e34c57697f8934f2727a88551696be >>> change-id: 20230420-topic-dpu_gc-6901f75768db >>> >>> Best regards, >>
On 20.04.2023 03:28, Abhinav Kumar wrote: > > > On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >> >> >> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>> more, but none of them are supported upstream. >>>> >>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>> >>> Does this mean that we will see gamma_lut support soon? >> No promises, my plate is not even full, it's beyond overflowing! :P >> >> Konrad > > So I think I wrote about this before during the catalog rework/fixes that the gc registers are not written to / programmed. > > If thats not done, is there any benefit to this series? Completeness and preparation for the code itself, if nothing else? Konrad > >>> >>>> >>>> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> >>>> --- >>>> Konrad Dybcio (2): >>>> drm/msm/dpu1: Rename sm8150_dspp_blk to sdm845_dspp_blk >>>> drm/msm/dpu1: Enable GCv1.8 on many SoCs >>>> >>>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 16 ++++++++-------- >>>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 16 ++++++++-------- >>>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 4 ++-- >>>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 4 ++-- >>>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 16 ++++++++-------- >>>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 16 ++++++++-------- >>>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 16 ++++++++-------- >>>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 16 ++++++++-------- >>>> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 4 +++- >>>> 9 files changed, 55 insertions(+), 53 deletions(-) >>>> --- >>>> base-commit: 3cdbc01c40e34c57697f8934f2727a88551696be >>>> change-id: 20230420-topic-dpu_gc-6901f75768db >>>> >>>> Best regards, >>>
On 20/04/2023 04:36, Konrad Dybcio wrote: > > > On 20.04.2023 03:28, Abhinav Kumar wrote: >> >> >> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>> >>> >>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>> more, but none of them are supported upstream. >>>>> >>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>> >>>> Does this mean that we will see gamma_lut support soon? >>> No promises, my plate is not even full, it's beyond overflowing! :P >>> >>> Konrad >> >> So I think I wrote about this before during the catalog rework/fixes that the gc registers are not written to / programmed. >> >> If thats not done, is there any benefit to this series? > Completeness and preparation for the code itself, if nothing else? The usual problem is that if something is not put to use, it quickly rots or becomes misused for newer platforms. We have seen this with the some of DPU features. In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we have three options: - drop the unused GC from msm8998_sblk. - keep things as is, single unused GC entry - fill all the sblk with the correct information in hope that it stays correct Each of these options has its own drawbacks. I have slight bias towards the last option, to have the information in place (as long as it is accurate).
On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: > On 20/04/2023 04:36, Konrad Dybcio wrote: >> >> >> On 20.04.2023 03:28, Abhinav Kumar wrote: >>> >>> >>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>> >>>> >>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>>> more, but none of them are supported upstream. >>>>>> >>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>> >>>>> Does this mean that we will see gamma_lut support soon? >>>> No promises, my plate is not even full, it's beyond overflowing! :P >>>> >>>> Konrad >>> >>> So I think I wrote about this before during the catalog rework/fixes >>> that the gc registers are not written to / programmed. >>> >>> If thats not done, is there any benefit to this series? >> Completeness and preparation for the code itself, if nothing else? > > The usual problem is that if something is not put to use, it quickly > rots or becomes misused for newer platforms. We have seen this with the > some of DPU features. > > In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we > have three options: > - drop the unused GC from msm8998_sblk. > - keep things as is, single unused GC entry > - fill all the sblk with the correct information in hope that it stays > correct > > Each of these options has its own drawbacks. I have slight bias towards > the last option, to have the information in place (as long as it is > accurate). > My vote is for (1) . Today, GC is unused and from the discussion here, there is no concrete plan to add it. If we keep extending an unused bitmask for all the chipsets including the ones which will get added in the future in the hope that someday the feature comes, it doesnt sound like a good idea. I would rather do (1), if someone has time. OR lets stay at (2) till someone does (1). When someone implements GC, we can re-use this patch and that time keep konrad's author rights or co-developed by.
On 2023-04-20 21:01:04, Dmitry Baryshkov wrote: > On 20/04/2023 04:36, Konrad Dybcio wrote: > > > > > > On 20.04.2023 03:28, Abhinav Kumar wrote: > >> > >> > >> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: > >>> > >>> > >>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: > >>>> On 20/04/2023 04:14, Konrad Dybcio wrote: > >>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 > >>>>> dspp sub-block in addition to PCCv4. The other block differ a bit > >>>>> more, but none of them are supported upstream. > >>>>> > >>>>> This series adds configures the GCv1.8 on all the relevant SoCs. > >>>> > >>>> Does this mean that we will see gamma_lut support soon? > >>> No promises, my plate is not even full, it's beyond overflowing! :P > >>> > >>> Konrad > >> > >> So I think I wrote about this before during the catalog rework/fixes that the gc registers are not written to / programmed. > >> > >> If thats not done, is there any benefit to this series? > > Completeness and preparation for the code itself, if nothing else? > > The usual problem is that if something is not put to use, it quickly > rots or becomes misused for newer platforms. We have seen this with the > some of DPU features. > > In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we > have three options: > - drop the unused GC from msm8998_sblk. > - keep things as is, single unused GC entry > - fill all the sblk with the correct information in hope that it stays > correct > > Each of these options has its own drawbacks. I have slight bias towards > the last option, to have the information in place (as long as it is > accurate). Normally I'm all for rigorously and completely defining the hardware, porting the entire downstream DT in one go while looking at it anyway. (And it leaves less room for error when looking at DT properties while having no clue where they should end up in the catalog, or why they wouldn't be there) In this case though, as you say, it's unused so there's no way to test and validate anything, especially future changes we **might** make to the looks and layout of the catalog. What's worse, this series shows zero efforts towards at the very least explaining that GC is the Gamma Correction block, what the benefits are in defining/having it, and that it is currently not used by the DSPP driver block at all. That's my major reason for NAK'ing this. - Marijn
On 20/04/2023 22:47, Abhinav Kumar wrote: > > > On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >> On 20/04/2023 04:36, Konrad Dybcio wrote: >>> >>> >>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>> >>>> >>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>> >>>>> >>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>>>> more, but none of them are supported upstream. >>>>>>> >>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>>> >>>>>> Does this mean that we will see gamma_lut support soon? >>>>> No promises, my plate is not even full, it's beyond overflowing! :P >>>>> >>>>> Konrad >>>> >>>> So I think I wrote about this before during the catalog rework/fixes >>>> that the gc registers are not written to / programmed. >>>> >>>> If thats not done, is there any benefit to this series? >>> Completeness and preparation for the code itself, if nothing else? >> >> The usual problem is that if something is not put to use, it quickly >> rots or becomes misused for newer platforms. We have seen this with >> the some of DPU features. >> >> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we >> have three options: >> - drop the unused GC from msm8998_sblk. >> - keep things as is, single unused GC entry >> - fill all the sblk with the correct information in hope that it stays >> correct >> >> Each of these options has its own drawbacks. I have slight bias >> towards the last option, to have the information in place (as long as >> it is accurate). >> > > My vote is for (1) . Today, GC is unused and from the discussion here, > there is no concrete plan to add it. If we keep extending an unused > bitmask for all the chipsets including the ones which will get added in > the future in the hope that someday the feature comes, it doesnt sound > like a good idea. > > I would rather do (1), if someone has time. Agree, this was the second item on my preference list. Could you please send this oneliner? > OR lets stay at (2) till > someone does (1). > > When someone implements GC, we can re-use this patch and that time keep > konrad's author rights or co-developed by. > >
On 4/20/2023 12:51 PM, Dmitry Baryshkov wrote: > On 20/04/2023 22:47, Abhinav Kumar wrote: >> >> >> On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >>> On 20/04/2023 04:36, Konrad Dybcio wrote: >>>> >>>> >>>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>>> >>>>> >>>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>>> >>>>>> >>>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>>>>> more, but none of them are supported upstream. >>>>>>>> >>>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>>>> >>>>>>> Does this mean that we will see gamma_lut support soon? >>>>>> No promises, my plate is not even full, it's beyond overflowing! :P >>>>>> >>>>>> Konrad >>>>> >>>>> So I think I wrote about this before during the catalog >>>>> rework/fixes that the gc registers are not written to / programmed. >>>>> >>>>> If thats not done, is there any benefit to this series? >>>> Completeness and preparation for the code itself, if nothing else? >>> >>> The usual problem is that if something is not put to use, it quickly >>> rots or becomes misused for newer platforms. We have seen this with >>> the some of DPU features. >>> >>> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we >>> have three options: >>> - drop the unused GC from msm8998_sblk. >>> - keep things as is, single unused GC entry >>> - fill all the sblk with the correct information in hope that it >>> stays correct >>> >>> Each of these options has its own drawbacks. I have slight bias >>> towards the last option, to have the information in place (as long as >>> it is accurate). >>> >> >> My vote is for (1) . Today, GC is unused and from the discussion here, >> there is no concrete plan to add it. If we keep extending an unused >> bitmask for all the chipsets including the ones which will get added >> in the future in the hope that someday the feature comes, it doesnt >> sound like a good idea. >> >> I would rather do (1), if someone has time. > > Agree, this was the second item on my preference list. Could you please > send this oneliner? > Sure, i will send this by tomorrow, but its not a oneliner. Need to get rid of below too: 470 struct dpu_dspp_sub_blks { 471 struct dpu_pp_blk gc; >> OR lets stay at (2) till someone does (1). >> >> When someone implements GC, we can re-use this patch and that time >> keep konrad's author rights or co-developed by. >> >> >
On 2023-04-20 22:51:22, Dmitry Baryshkov wrote: > On 20/04/2023 22:47, Abhinav Kumar wrote: > > > > > > On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: > >> On 20/04/2023 04:36, Konrad Dybcio wrote: > >>> > >>> > >>> On 20.04.2023 03:28, Abhinav Kumar wrote: > >>>> > >>>> > >>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: > >>>>> > >>>>> > >>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: > >>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: > >>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 > >>>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit > >>>>>>> more, but none of them are supported upstream. > >>>>>>> > >>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. > >>>>>> > >>>>>> Does this mean that we will see gamma_lut support soon? > >>>>> No promises, my plate is not even full, it's beyond overflowing! :P > >>>>> > >>>>> Konrad > >>>> > >>>> So I think I wrote about this before during the catalog rework/fixes > >>>> that the gc registers are not written to / programmed. > >>>> > >>>> If thats not done, is there any benefit to this series? > >>> Completeness and preparation for the code itself, if nothing else? > >> > >> The usual problem is that if something is not put to use, it quickly > >> rots or becomes misused for newer platforms. We have seen this with > >> the some of DPU features. > >> > >> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we > >> have three options: > >> - drop the unused GC from msm8998_sblk. > >> - keep things as is, single unused GC entry > >> - fill all the sblk with the correct information in hope that it stays > >> correct > >> > >> Each of these options has its own drawbacks. I have slight bias > >> towards the last option, to have the information in place (as long as > >> it is accurate). > >> > > > > My vote is for (1) . Today, GC is unused and from the discussion here, > > there is no concrete plan to add it. If we keep extending an unused > > bitmask for all the chipsets including the ones which will get added in > > the future in the hope that someday the feature comes, it doesnt sound > > like a good idea. > > > > I would rather do (1), if someone has time. > > Agree, this was the second item on my preference list. Could you please > send this oneliner? Nit (to make sure we're on the same thought here): I think it's a 3-liner: remove it from DSPP_MSM8998_MASK as well as msm8998_dspp_sblk. > > OR lets stay at (2) till > > someone does (1). I'm personally okay leaving it in place too, with an eye on implementing this, IGC, and other blocks at some point if there's a use for it via standard DRM properties. > > When someone implements GC, we can re-use this patch and that time keep > > konrad's author rights or co-developed by. Good to at least know all these SoCs have the same offset and revision. - Marijn
On 20/04/2023 22:53, Abhinav Kumar wrote: > > > On 4/20/2023 12:51 PM, Dmitry Baryshkov wrote: >> On 20/04/2023 22:47, Abhinav Kumar wrote: >>> >>> >>> On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >>>> On 20/04/2023 04:36, Konrad Dybcio wrote: >>>>> >>>>> >>>>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>>>> >>>>>> >>>>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>>>> >>>>>>> >>>>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>>>>>> more, but none of them are supported upstream. >>>>>>>>> >>>>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>>>>> >>>>>>>> Does this mean that we will see gamma_lut support soon? >>>>>>> No promises, my plate is not even full, it's beyond overflowing! :P >>>>>>> >>>>>>> Konrad >>>>>> >>>>>> So I think I wrote about this before during the catalog >>>>>> rework/fixes that the gc registers are not written to / programmed. >>>>>> >>>>>> If thats not done, is there any benefit to this series? >>>>> Completeness and preparation for the code itself, if nothing else? >>>> >>>> The usual problem is that if something is not put to use, it quickly >>>> rots or becomes misused for newer platforms. We have seen this with >>>> the some of DPU features. >>>> >>>> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) >>>> we have three options: >>>> - drop the unused GC from msm8998_sblk. >>>> - keep things as is, single unused GC entry >>>> - fill all the sblk with the correct information in hope that it >>>> stays correct >>>> >>>> Each of these options has its own drawbacks. I have slight bias >>>> towards the last option, to have the information in place (as long >>>> as it is accurate). >>>> >>> >>> My vote is for (1) . Today, GC is unused and from the discussion >>> here, there is no concrete plan to add it. If we keep extending an >>> unused bitmask for all the chipsets including the ones which will get >>> added in the future in the hope that someday the feature comes, it >>> doesnt sound like a good idea. >>> >>> I would rather do (1), if someone has time. >> >> Agree, this was the second item on my preference list. Could you >> please send this oneliner? >> > > Sure, i will send this by tomorrow, but its not a oneliner. Need to get > rid of below too: > > 470 struct dpu_dspp_sub_blks { > 471 struct dpu_pp_blk gc; Agree. > >>> OR lets stay at (2) till someone does (1). >>> >>> When someone implements GC, we can re-use this patch and that time >>> keep konrad's author rights or co-developed by. >>> >>> >>
On 20/04/2023 22:56, Marijn Suijten wrote: > On 2023-04-20 22:51:22, Dmitry Baryshkov wrote: >> On 20/04/2023 22:47, Abhinav Kumar wrote: >>> >>> >>> On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >>>> On 20/04/2023 04:36, Konrad Dybcio wrote: >>>>> >>>>> >>>>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>>>> >>>>>> >>>>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>>>> >>>>>>> >>>>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>>>>>> more, but none of them are supported upstream. >>>>>>>>> >>>>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>>>>> >>>>>>>> Does this mean that we will see gamma_lut support soon? >>>>>>> No promises, my plate is not even full, it's beyond overflowing! :P >>>>>>> >>>>>>> Konrad >>>>>> >>>>>> So I think I wrote about this before during the catalog rework/fixes >>>>>> that the gc registers are not written to / programmed. >>>>>> >>>>>> If thats not done, is there any benefit to this series? >>>>> Completeness and preparation for the code itself, if nothing else? >>>> >>>> The usual problem is that if something is not put to use, it quickly >>>> rots or becomes misused for newer platforms. We have seen this with >>>> the some of DPU features. >>>> >>>> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we >>>> have three options: >>>> - drop the unused GC from msm8998_sblk. >>>> - keep things as is, single unused GC entry >>>> - fill all the sblk with the correct information in hope that it stays >>>> correct >>>> >>>> Each of these options has its own drawbacks. I have slight bias >>>> towards the last option, to have the information in place (as long as >>>> it is accurate). >>>> >>> >>> My vote is for (1) . Today, GC is unused and from the discussion here, >>> there is no concrete plan to add it. If we keep extending an unused >>> bitmask for all the chipsets including the ones which will get added in >>> the future in the hope that someday the feature comes, it doesnt sound >>> like a good idea. >>> >>> I would rather do (1), if someone has time. >> >> Agree, this was the second item on my preference list. Could you please >> send this oneliner? > > Nit (to make sure we're on the same thought here): I think it's a > 3-liner: remove it from DSPP_MSM8998_MASK as well as msm8998_dspp_sblk. > >>> OR lets stay at (2) till >>> someone does (1). > > I'm personally okay leaving it in place too, with an eye on implementing > this, IGC, and other blocks at some point if there's a use for it via > standard DRM properties. I took a quick glance. I think it is possible, but not straightforward. But I must admit here, I don't have a full picture regarding different color encodings, ranges and the rest of gamma/degamma API and usage. > >>> When someone implements GC, we can re-use this patch and that time keep >>> konrad's author rights or co-developed by. > > Good to at least know all these SoCs have the same offset and revision. > > - Marijn
On 4/20/2023 3:52 PM, Dmitry Baryshkov wrote: > On 20/04/2023 22:56, Marijn Suijten wrote: >> On 2023-04-20 22:51:22, Dmitry Baryshkov wrote: >>> On 20/04/2023 22:47, Abhinav Kumar wrote: >>>> >>>> >>>> On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >>>>> On 20/04/2023 04:36, Konrad Dybcio wrote: >>>>>> >>>>>> >>>>>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>>>>> >>>>>>> >>>>>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>>>>> >>>>>>>> >>>>>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>>>>>>> more, but none of them are supported upstream. >>>>>>>>>> >>>>>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>>>>>> >>>>>>>>> Does this mean that we will see gamma_lut support soon? >>>>>>>> No promises, my plate is not even full, it's beyond overflowing! :P >>>>>>>> >>>>>>>> Konrad >>>>>>> >>>>>>> So I think I wrote about this before during the catalog rework/fixes >>>>>>> that the gc registers are not written to / programmed. >>>>>>> >>>>>>> If thats not done, is there any benefit to this series? >>>>>> Completeness and preparation for the code itself, if nothing else? >>>>> >>>>> The usual problem is that if something is not put to use, it quickly >>>>> rots or becomes misused for newer platforms. We have seen this with >>>>> the some of DPU features. >>>>> >>>>> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we >>>>> have three options: >>>>> - drop the unused GC from msm8998_sblk. >>>>> - keep things as is, single unused GC entry >>>>> - fill all the sblk with the correct information in hope that it stays >>>>> correct >>>>> >>>>> Each of these options has its own drawbacks. I have slight bias >>>>> towards the last option, to have the information in place (as long as >>>>> it is accurate). >>>>> >>>> >>>> My vote is for (1) . Today, GC is unused and from the discussion here, >>>> there is no concrete plan to add it. If we keep extending an unused >>>> bitmask for all the chipsets including the ones which will get added in >>>> the future in the hope that someday the feature comes, it doesnt sound >>>> like a good idea. >>>> >>>> I would rather do (1), if someone has time. >>> >>> Agree, this was the second item on my preference list. Could you please >>> send this oneliner? >> >> Nit (to make sure we're on the same thought here): I think it's a >> 3-liner: remove it from DSPP_MSM8998_MASK as well as msm8998_dspp_sblk. >> >>>> OR lets stay at (2) till >>>> someone does (1). >> >> I'm personally okay leaving it in place too, with an eye on implementing >> this, IGC, and other blocks at some point if there's a use for it via >> standard DRM properties. > > I took a quick glance. I think it is possible, but not straightforward. > But I must admit here, I don't have a full picture regarding different > color encodings, ranges and the rest of gamma/degamma API and usage. > I think its easier to remove this now and then add it when we add the support. As discussed, will post this shortly. Otherwise, whenever any new chipset gets added, we will run into the same question of whether to add GC or not. >> >>>> When someone implements GC, we can re-use this patch and that time keep >>>> konrad's author rights or co-developed by. >> >> Good to at least know all these SoCs have the same offset and revision. >> >> - Marijn >
On 22/04/2023 01:34, Abhinav Kumar wrote: > > > On 4/20/2023 3:52 PM, Dmitry Baryshkov wrote: >> On 20/04/2023 22:56, Marijn Suijten wrote: >>> On 2023-04-20 22:51:22, Dmitry Baryshkov wrote: >>>> On 20/04/2023 22:47, Abhinav Kumar wrote: >>>>> >>>>> >>>>> On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >>>>>> On 20/04/2023 04:36, Konrad Dybcio wrote: >>>>>>> >>>>>>> >>>>>>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>>>>>> >>>>>>>> >>>>>>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>>>>>>> dspp sub-block in addition to PCCv4. The other block differ a >>>>>>>>>>> bit >>>>>>>>>>> more, but none of them are supported upstream. >>>>>>>>>>> >>>>>>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>>>>>>> >>>>>>>>>> Does this mean that we will see gamma_lut support soon? >>>>>>>>> No promises, my plate is not even full, it's beyond >>>>>>>>> overflowing! :P >>>>>>>>> >>>>>>>>> Konrad >>>>>>>> >>>>>>>> So I think I wrote about this before during the catalog >>>>>>>> rework/fixes >>>>>>>> that the gc registers are not written to / programmed. >>>>>>>> >>>>>>>> If thats not done, is there any benefit to this series? >>>>>>> Completeness and preparation for the code itself, if nothing else? >>>>>> >>>>>> The usual problem is that if something is not put to use, it quickly >>>>>> rots or becomes misused for newer platforms. We have seen this with >>>>>> the some of DPU features. >>>>>> >>>>>> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we >>>>>> have three options: >>>>>> - drop the unused GC from msm8998_sblk. >>>>>> - keep things as is, single unused GC entry >>>>>> - fill all the sblk with the correct information in hope that it >>>>>> stays >>>>>> correct >>>>>> >>>>>> Each of these options has its own drawbacks. I have slight bias >>>>>> towards the last option, to have the information in place (as long as >>>>>> it is accurate). >>>>>> >>>>> >>>>> My vote is for (1) . Today, GC is unused and from the discussion here, >>>>> there is no concrete plan to add it. If we keep extending an unused >>>>> bitmask for all the chipsets including the ones which will get >>>>> added in >>>>> the future in the hope that someday the feature comes, it doesnt sound >>>>> like a good idea. >>>>> >>>>> I would rather do (1), if someone has time. >>>> >>>> Agree, this was the second item on my preference list. Could you please >>>> send this oneliner? >>> >>> Nit (to make sure we're on the same thought here): I think it's a >>> 3-liner: remove it from DSPP_MSM8998_MASK as well as msm8998_dspp_sblk. >>> >>>>> OR lets stay at (2) till >>>>> someone does (1). >>> >>> I'm personally okay leaving it in place too, with an eye on implementing >>> this, IGC, and other blocks at some point if there's a use for it via >>> standard DRM properties. >> >> I took a quick glance. I think it is possible, but not >> straightforward. But I must admit here, I don't have a full picture >> regarding different color encodings, ranges and the rest of >> gamma/degamma API and usage. >> > > I think its easier to remove this now and then add it when we add the > support. As discussed, will post this shortly. > > Otherwise, whenever any new chipset gets added, we will run into the > same question of whether to add GC or not. Yes, I absolutely agree here. > >>> >>>>> When someone implements GC, we can re-use this patch and that time >>>>> keep >>>>> konrad's author rights or co-developed by. >>> >>> Good to at least know all these SoCs have the same offset and revision. >>> >>> - Marijn >>
On 22.04.2023 00:35, Dmitry Baryshkov wrote: > On 22/04/2023 01:34, Abhinav Kumar wrote: >> >> >> On 4/20/2023 3:52 PM, Dmitry Baryshkov wrote: >>> On 20/04/2023 22:56, Marijn Suijten wrote: >>>> On 2023-04-20 22:51:22, Dmitry Baryshkov wrote: >>>>> On 20/04/2023 22:47, Abhinav Kumar wrote: >>>>>> >>>>>> >>>>>> On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >>>>>>> On 20/04/2023 04:36, Konrad Dybcio wrote: >>>>>>>> >>>>>>>> >>>>>>>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>>>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>>>>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>>>>>>>>> more, but none of them are supported upstream. >>>>>>>>>>>> >>>>>>>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>>>>>>>> >>>>>>>>>>> Does this mean that we will see gamma_lut support soon? >>>>>>>>>> No promises, my plate is not even full, it's beyond overflowing! :P >>>>>>>>>> >>>>>>>>>> Konrad >>>>>>>>> >>>>>>>>> So I think I wrote about this before during the catalog rework/fixes >>>>>>>>> that the gc registers are not written to / programmed. >>>>>>>>> >>>>>>>>> If thats not done, is there any benefit to this series? >>>>>>>> Completeness and preparation for the code itself, if nothing else? >>>>>>> >>>>>>> The usual problem is that if something is not put to use, it quickly >>>>>>> rots or becomes misused for newer platforms. We have seen this with >>>>>>> the some of DPU features. >>>>>>> >>>>>>> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we >>>>>>> have three options: >>>>>>> - drop the unused GC from msm8998_sblk. >>>>>>> - keep things as is, single unused GC entry >>>>>>> - fill all the sblk with the correct information in hope that it stays >>>>>>> correct >>>>>>> >>>>>>> Each of these options has its own drawbacks. I have slight bias >>>>>>> towards the last option, to have the information in place (as long as >>>>>>> it is accurate). >>>>>>> >>>>>> >>>>>> My vote is for (1) . Today, GC is unused and from the discussion here, >>>>>> there is no concrete plan to add it. If we keep extending an unused >>>>>> bitmask for all the chipsets including the ones which will get added in >>>>>> the future in the hope that someday the feature comes, it doesnt sound >>>>>> like a good idea. >>>>>> >>>>>> I would rather do (1), if someone has time. >>>>> >>>>> Agree, this was the second item on my preference list. Could you please >>>>> send this oneliner? >>>> >>>> Nit (to make sure we're on the same thought here): I think it's a >>>> 3-liner: remove it from DSPP_MSM8998_MASK as well as msm8998_dspp_sblk. >>>> >>>>>> OR lets stay at (2) till >>>>>> someone does (1). >>>> >>>> I'm personally okay leaving it in place too, with an eye on implementing >>>> this, IGC, and other blocks at some point if there's a use for it via >>>> standard DRM properties. >>> >>> I took a quick glance. I think it is possible, but not straightforward. But I must admit here, I don't have a full picture regarding different color encodings, ranges and the rest of gamma/degamma API and usage. >>> >> >> I think its easier to remove this now and then add it when we add the support. As discussed, will post this shortly. >> >> Otherwise, whenever any new chipset gets added, we will run into the same question of whether to add GC or not. > > Yes, I absolutely agree here. Sorry for the useless patches, though I guess they were a good discussion starter.. Konrad > >> >>>> >>>>>> When someone implements GC, we can re-use this patch and that time keep >>>>>> konrad's author rights or co-developed by. >>>> >>>> Good to at least know all these SoCs have the same offset and revision. >>>> >>>> - Marijn >>> >
On 22/04/2023 15:08, Konrad Dybcio wrote: > > > On 22.04.2023 00:35, Dmitry Baryshkov wrote: >> On 22/04/2023 01:34, Abhinav Kumar wrote: >>> >>> >>> On 4/20/2023 3:52 PM, Dmitry Baryshkov wrote: >>>> On 20/04/2023 22:56, Marijn Suijten wrote: >>>>> On 2023-04-20 22:51:22, Dmitry Baryshkov wrote: >>>>>> On 20/04/2023 22:47, Abhinav Kumar wrote: >>>>>>> >>>>>>> >>>>>>> On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >>>>>>>> On 20/04/2023 04:36, Konrad Dybcio wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>>>>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>>>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>>>>>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>>>>>>>>>> more, but none of them are supported upstream. >>>>>>>>>>>>> >>>>>>>>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>>>>>>>>> >>>>>>>>>>>> Does this mean that we will see gamma_lut support soon? >>>>>>>>>>> No promises, my plate is not even full, it's beyond overflowing! :P >>>>>>>>>>> >>>>>>>>>>> Konrad >>>>>>>>>> >>>>>>>>>> So I think I wrote about this before during the catalog rework/fixes >>>>>>>>>> that the gc registers are not written to / programmed. >>>>>>>>>> >>>>>>>>>> If thats not done, is there any benefit to this series? >>>>>>>>> Completeness and preparation for the code itself, if nothing else? >>>>>>>> >>>>>>>> The usual problem is that if something is not put to use, it quickly >>>>>>>> rots or becomes misused for newer platforms. We have seen this with >>>>>>>> the some of DPU features. >>>>>>>> >>>>>>>> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we >>>>>>>> have three options: >>>>>>>> - drop the unused GC from msm8998_sblk. >>>>>>>> - keep things as is, single unused GC entry >>>>>>>> - fill all the sblk with the correct information in hope that it stays >>>>>>>> correct >>>>>>>> >>>>>>>> Each of these options has its own drawbacks. I have slight bias >>>>>>>> towards the last option, to have the information in place (as long as >>>>>>>> it is accurate). >>>>>>>> >>>>>>> >>>>>>> My vote is for (1) . Today, GC is unused and from the discussion here, >>>>>>> there is no concrete plan to add it. If we keep extending an unused >>>>>>> bitmask for all the chipsets including the ones which will get added in >>>>>>> the future in the hope that someday the feature comes, it doesnt sound >>>>>>> like a good idea. >>>>>>> >>>>>>> I would rather do (1), if someone has time. >>>>>> >>>>>> Agree, this was the second item on my preference list. Could you please >>>>>> send this oneliner? >>>>> >>>>> Nit (to make sure we're on the same thought here): I think it's a >>>>> 3-liner: remove it from DSPP_MSM8998_MASK as well as msm8998_dspp_sblk. >>>>> >>>>>>> OR lets stay at (2) till >>>>>>> someone does (1). >>>>> >>>>> I'm personally okay leaving it in place too, with an eye on implementing >>>>> this, IGC, and other blocks at some point if there's a use for it via >>>>> standard DRM properties. >>>> >>>> I took a quick glance. I think it is possible, but not straightforward. But I must admit here, I don't have a full picture regarding different color encodings, ranges and the rest of gamma/degamma API and usage. >>>> >>> >>> I think its easier to remove this now and then add it when we add the support. As discussed, will post this shortly. >>> >>> Otherwise, whenever any new chipset gets added, we will run into the same question of whether to add GC or not. >> >> Yes, I absolutely agree here. > Sorry for the useless patches, though I guess they were a good > discussion starter.. If they started the discussion, they were not useless. > > Konrad >> >>> >>>>> >>>>>>> When someone implements GC, we can re-use this patch and that time keep >>>>>>> konrad's author rights or co-developed by. >>>>> >>>>> Good to at least know all these SoCs have the same offset and revision. >>>>> >>>>> - Marijn >>>> >>
On 4/22/2023 7:11 AM, Dmitry Baryshkov wrote: > On 22/04/2023 15:08, Konrad Dybcio wrote: >> >> >> On 22.04.2023 00:35, Dmitry Baryshkov wrote: >>> On 22/04/2023 01:34, Abhinav Kumar wrote: >>>> >>>> >>>> On 4/20/2023 3:52 PM, Dmitry Baryshkov wrote: >>>>> On 20/04/2023 22:56, Marijn Suijten wrote: >>>>>> On 2023-04-20 22:51:22, Dmitry Baryshkov wrote: >>>>>>> On 20/04/2023 22:47, Abhinav Kumar wrote: >>>>>>>> >>>>>>>> >>>>>>>> On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >>>>>>>>> On 20/04/2023 04:36, Konrad Dybcio wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>>>>>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>>>>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a >>>>>>>>>>>>>> GC1.8 >>>>>>>>>>>>>> dspp sub-block in addition to PCCv4. The other block >>>>>>>>>>>>>> differ a bit >>>>>>>>>>>>>> more, but none of them are supported upstream. >>>>>>>>>>>>>> >>>>>>>>>>>>>> This series adds configures the GCv1.8 on all the relevant >>>>>>>>>>>>>> SoCs. >>>>>>>>>>>>> >>>>>>>>>>>>> Does this mean that we will see gamma_lut support soon? >>>>>>>>>>>> No promises, my plate is not even full, it's beyond >>>>>>>>>>>> overflowing! :P >>>>>>>>>>>> >>>>>>>>>>>> Konrad >>>>>>>>>>> >>>>>>>>>>> So I think I wrote about this before during the catalog >>>>>>>>>>> rework/fixes >>>>>>>>>>> that the gc registers are not written to / programmed. >>>>>>>>>>> >>>>>>>>>>> If thats not done, is there any benefit to this series? >>>>>>>>>> Completeness and preparation for the code itself, if nothing >>>>>>>>>> else? >>>>>>>>> >>>>>>>>> The usual problem is that if something is not put to use, it >>>>>>>>> quickly >>>>>>>>> rots or becomes misused for newer platforms. We have seen this >>>>>>>>> with >>>>>>>>> the some of DPU features. >>>>>>>>> >>>>>>>>> In case of GC (and the freshly defined DPU_DSPP_IGC, but not >>>>>>>>> used) we >>>>>>>>> have three options: >>>>>>>>> - drop the unused GC from msm8998_sblk. >>>>>>>>> - keep things as is, single unused GC entry >>>>>>>>> - fill all the sblk with the correct information in hope that >>>>>>>>> it stays >>>>>>>>> correct >>>>>>>>> >>>>>>>>> Each of these options has its own drawbacks. I have slight bias >>>>>>>>> towards the last option, to have the information in place (as >>>>>>>>> long as >>>>>>>>> it is accurate). >>>>>>>>> >>>>>>>> >>>>>>>> My vote is for (1) . Today, GC is unused and from the discussion >>>>>>>> here, >>>>>>>> there is no concrete plan to add it. If we keep extending an unused >>>>>>>> bitmask for all the chipsets including the ones which will get >>>>>>>> added in >>>>>>>> the future in the hope that someday the feature comes, it doesnt >>>>>>>> sound >>>>>>>> like a good idea. >>>>>>>> >>>>>>>> I would rather do (1), if someone has time. >>>>>>> >>>>>>> Agree, this was the second item on my preference list. Could you >>>>>>> please >>>>>>> send this oneliner? >>>>>> >>>>>> Nit (to make sure we're on the same thought here): I think it's a >>>>>> 3-liner: remove it from DSPP_MSM8998_MASK as well as >>>>>> msm8998_dspp_sblk. >>>>>> >>>>>>>> OR lets stay at (2) till >>>>>>>> someone does (1). >>>>>> >>>>>> I'm personally okay leaving it in place too, with an eye on >>>>>> implementing >>>>>> this, IGC, and other blocks at some point if there's a use for it via >>>>>> standard DRM properties. >>>>> >>>>> I took a quick glance. I think it is possible, but not >>>>> straightforward. But I must admit here, I don't have a full picture >>>>> regarding different color encodings, ranges and the rest of >>>>> gamma/degamma API and usage. >>>>> >>>> >>>> I think its easier to remove this now and then add it when we add >>>> the support. As discussed, will post this shortly. >>>> >>>> Otherwise, whenever any new chipset gets added, we will run into the >>>> same question of whether to add GC or not. >>> >>> Yes, I absolutely agree here. >> Sorry for the useless patches, though I guess they were a good >> discussion starter.. > > If they started the discussion, they were not useless. > I second that, they were not useless at all. In fact, like I mentioned earlier, once GC support is added, we can re-use these catalog changes. So, this is all good work. >> >> Konrad >>> >>>> >>>>>> >>>>>>>> When someone implements GC, we can re-use this patch and that >>>>>>>> time keep >>>>>>>> konrad's author rights or co-developed by. >>>>>> >>>>>> Good to at least know all these SoCs have the same offset and >>>>>> revision. >>>>>> >>>>>> - Marijn >>>>> >>> >
On Thu, 20 Apr 2023 03:14:53 +0200, Konrad Dybcio wrote: > Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 > dspp sub-block in addition to PCCv4. The other block differ a bit > more, but none of them are supported upstream. > > This series adds configures the GCv1.8 on all the relevant SoCs. > > > [...] Applied, thanks! [1/2] drm/msm/dpu1: Rename sm8150_dspp_blk to sdm845_dspp_blk https://gitlab.freedesktop.org/lumag/msm/-/commit/9891b3df2b43 Best regards,
Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 dspp sub-block in addition to PCCv4. The other block differ a bit more, but none of them are supported upstream. This series adds configures the GCv1.8 on all the relevant SoCs. Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> --- Konrad Dybcio (2): drm/msm/dpu1: Rename sm8150_dspp_blk to sdm845_dspp_blk drm/msm/dpu1: Enable GCv1.8 on many SoCs drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 16 ++++++++-------- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 16 ++++++++-------- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 4 ++-- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 4 ++-- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 16 ++++++++-------- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 16 ++++++++-------- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 16 ++++++++-------- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 16 ++++++++-------- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 4 +++- 9 files changed, 55 insertions(+), 53 deletions(-) --- base-commit: 3cdbc01c40e34c57697f8934f2727a88551696be change-id: 20230420-topic-dpu_gc-6901f75768db Best regards,