diff mbox series

[RFC,2/4] drm/msm/mdss: correct the ubwc version for sm6115 platform

Message ID 20221208000850.312548-3-dmitry.baryshkov@linaro.org
State New
Headers show
Series drm/msm/mdss: rework UBWC setup | expand

Commit Message

Dmitry Baryshkov Dec. 8, 2022, 12:08 a.m. UTC
According to the vendor DT, sm6115 has UBWC 1.0, not 2.0.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 drivers/gpu/drm/msm/msm_mdss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Abhinav Kumar Jan. 13, 2023, 7:47 p.m. UTC | #1
On 12/7/2022 4:08 PM, Dmitry Baryshkov wrote:
> According to the vendor DT, sm6115 has UBWC 1.0, not 2.0.
> 

Can you please point me to which file you are referring to?

The internal docs I have are still showing 2.0.

> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
>   drivers/gpu/drm/msm/msm_mdss.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c
> index 2219c1bd59a9..4401f945b966 100644
> --- a/drivers/gpu/drm/msm/msm_mdss.c
> +++ b/drivers/gpu/drm/msm/msm_mdss.c
> @@ -532,7 +532,7 @@ static const struct msm_mdss_data sm8150_data = {
>   };
>   
>   static const struct msm_mdss_data sm6115_data = {
> -	.ubwc_version = UBWC_2_0,
> +	.ubwc_version = UBWC_1_0,
>   	.ubwc_swizzle = 7,
>   	.ubwc_static = 0x11f,
>   };
Dmitry Baryshkov Jan. 13, 2023, 9:16 p.m. UTC | #2
On Fri, 13 Jan 2023 at 21:47, Abhinav Kumar <quic_abhinavk@quicinc.com> wrote:
> On 12/7/2022 4:08 PM, Dmitry Baryshkov wrote:
> > According to the vendor DT, sm6115 has UBWC 1.0, not 2.0.
> >
>
> Can you please point me to which file you are referring to?
>
> The internal docs I have are still showing 2.0.

If I understood correctly sm6115 = bengal, thus:

https://android.googlesource.com/kernel/msm-extra/devicetree/+/refs/heads/android-msm-bramble-4.19-android11-qpr1/qcom/bengal-sde.dtsi#103

>
> > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> > ---
> >   drivers/gpu/drm/msm/msm_mdss.c | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c
> > index 2219c1bd59a9..4401f945b966 100644
> > --- a/drivers/gpu/drm/msm/msm_mdss.c
> > +++ b/drivers/gpu/drm/msm/msm_mdss.c
> > @@ -532,7 +532,7 @@ static const struct msm_mdss_data sm8150_data = {
> >   };
> >
> >   static const struct msm_mdss_data sm6115_data = {
> > -     .ubwc_version = UBWC_2_0,
> > +     .ubwc_version = UBWC_1_0,
> >       .ubwc_swizzle = 7,
> >       .ubwc_static = 0x11f,
> >   };
Abhinav Kumar Jan. 13, 2023, 9:39 p.m. UTC | #3
On 1/13/2023 1:16 PM, Dmitry Baryshkov wrote:
> On Fri, 13 Jan 2023 at 21:47, Abhinav Kumar <quic_abhinavk@quicinc.com> wrote:
>> On 12/7/2022 4:08 PM, Dmitry Baryshkov wrote:
>>> According to the vendor DT, sm6115 has UBWC 1.0, not 2.0.
>>>
>>
>> Can you please point me to which file you are referring to?
>>
>> The internal docs I have are still showing 2.0.
> 
> If I understood correctly sm6115 = bengal, thus:
> 
> https://android.googlesource.com/kernel/msm-extra/devicetree/+/refs/heads/android-msm-bramble-4.19-android11-qpr1/qcom/bengal-sde.dtsi#103

Ok, so the cause of discrepancy was that the overall recommendation 
across sub-systems was to use UWBC 1.0. Thats why the DTSI has 1.0.

Hence, this change LGTM,

Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>

> 
>>
>>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>>> ---
>>>    drivers/gpu/drm/msm/msm_mdss.c | 2 +-
>>>    1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c
>>> index 2219c1bd59a9..4401f945b966 100644
>>> --- a/drivers/gpu/drm/msm/msm_mdss.c
>>> +++ b/drivers/gpu/drm/msm/msm_mdss.c
>>> @@ -532,7 +532,7 @@ static const struct msm_mdss_data sm8150_data = {
>>>    };
>>>
>>>    static const struct msm_mdss_data sm6115_data = {
>>> -     .ubwc_version = UBWC_2_0,
>>> +     .ubwc_version = UBWC_1_0,
>>>        .ubwc_swizzle = 7,
>>>        .ubwc_static = 0x11f,
>>>    };
> 
> 
>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c
index 2219c1bd59a9..4401f945b966 100644
--- a/drivers/gpu/drm/msm/msm_mdss.c
+++ b/drivers/gpu/drm/msm/msm_mdss.c
@@ -532,7 +532,7 @@  static const struct msm_mdss_data sm8150_data = {
 };
 
 static const struct msm_mdss_data sm6115_data = {
-	.ubwc_version = UBWC_2_0,
+	.ubwc_version = UBWC_1_0,
 	.ubwc_swizzle = 7,
 	.ubwc_static = 0x11f,
 };