Message ID | 20250308-sar2130p-display-v1-6-1d4c30f43822@linaro.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | drm/msm: add support for SAR2130P | expand |
On Sat, Mar 08, 2025 at 03:42:24AM +0200, Dmitry Baryshkov wrote: > From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> > > Add compatible and device configuration for the Qualcomm SAR2130P > platform. > > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> > --- > drivers/gpu/drm/msm/msm_mdss.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c > index dcb49fd30402b80edd2cb5971f95a78eaad6081f..3e82ba0885d03107d54eab9569bb4c5395454c7a 100644 > --- a/drivers/gpu/drm/msm/msm_mdss.c > +++ b/drivers/gpu/drm/msm/msm_mdss.c > @@ -592,6 +592,16 @@ static const struct msm_mdss_data sa8775p_data = { > .reg_bus_bw = 74000, > }; > > +static const struct msm_mdss_data sar2130p_data = { > + .ubwc_enc_version = UBWC_3_0, /* 4.0.2 in hw */ > + .ubwc_dec_version = UBWC_4_3, > + .ubwc_swizzle = 6, > + .ubwc_static = 1, This should have been .ubwc_bank_spread = true. I have been rebasing the series from the earlier kernel and I'm not sure why this didn't show up during the build phase. > + .highest_bank_bit = 0, > + .macrotile_mode = 1, > + .reg_bus_bw = 74000, > +}; > + > static const struct msm_mdss_data sc7180_data = { > .ubwc_enc_version = UBWC_2_0, > .ubwc_dec_version = UBWC_2_0, > @@ -738,6 +748,7 @@ static const struct of_device_id mdss_dt_match[] = { > { .compatible = "qcom,msm8998-mdss", .data = &msm8998_data }, > { .compatible = "qcom,qcm2290-mdss", .data = &qcm2290_data }, > { .compatible = "qcom,sa8775p-mdss", .data = &sa8775p_data }, > + { .compatible = "qcom,sar2130p-mdss", .data = &sar2130p_data }, > { .compatible = "qcom,sdm670-mdss", .data = &sdm670_data }, > { .compatible = "qcom,sdm845-mdss", .data = &sdm845_data }, > { .compatible = "qcom,sc7180-mdss", .data = &sc7180_data }, > > -- > 2.39.5 >
Hi Dmitry, kernel test robot noticed the following build errors: [auto build test ERROR on 0a2f889128969dab41861b6e40111aa03dc57014] url: https://github.com/intel-lab-lkp/linux/commits/Dmitry-Baryshkov/dt-bindings-display-msm-dp-controller-describe-SAR2130P/20250308-094544 base: 0a2f889128969dab41861b6e40111aa03dc57014 patch link: https://lore.kernel.org/r/20250308-sar2130p-display-v1-6-1d4c30f43822%40linaro.org patch subject: [PATCH 06/10] drm/msm/mdss: add SAR2130P device configuration config: arm64-randconfig-001-20250309 (https://download.01.org/0day-ci/archive/20250309/202503091011.Kwbj8DQz-lkp@intel.com/config) compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250309/202503091011.Kwbj8DQz-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202503091011.Kwbj8DQz-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/gpu/drm/msm/msm_mdss.c:599:3: error: field designator 'ubwc_static' does not refer to any field in type 'const struct msm_mdss_data' .ubwc_static = 1, ^ 1 error generated. vim +599 drivers/gpu/drm/msm/msm_mdss.c 594 595 static const struct msm_mdss_data sar2130p_data = { 596 .ubwc_enc_version = UBWC_3_0, /* 4.0.2 in hw */ 597 .ubwc_dec_version = UBWC_4_3, 598 .ubwc_swizzle = 6, > 599 .ubwc_static = 1, 600 .highest_bank_bit = 0, 601 .macrotile_mode = 1, 602 .reg_bus_bw = 74000, 603 }; 604
Hi Dmitry, kernel test robot noticed the following build errors: [auto build test ERROR on 0a2f889128969dab41861b6e40111aa03dc57014] url: https://github.com/intel-lab-lkp/linux/commits/Dmitry-Baryshkov/dt-bindings-display-msm-dp-controller-describe-SAR2130P/20250308-094544 base: 0a2f889128969dab41861b6e40111aa03dc57014 patch link: https://lore.kernel.org/r/20250308-sar2130p-display-v1-6-1d4c30f43822%40linaro.org patch subject: [PATCH 06/10] drm/msm/mdss: add SAR2130P device configuration config: arm-randconfig-004-20250309 (https://download.01.org/0day-ci/archive/20250309/202503091045.4UVScL8t-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250309/202503091045.4UVScL8t-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202503091045.4UVScL8t-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/gpu/drm/msm/msm_mdss.c:599:10: error: 'const struct msm_mdss_data' has no member named 'ubwc_static' 599 | .ubwc_static = 1, | ^~~~~~~~~~~ drivers/gpu/drm/msm/msm_mdss.c:600:29: warning: initialized field overwritten [-Woverride-init] 600 | .highest_bank_bit = 0, | ^ drivers/gpu/drm/msm/msm_mdss.c:600:29: note: (near initialization for 'sar2130p_data.highest_bank_bit') vim +599 drivers/gpu/drm/msm/msm_mdss.c 594 595 static const struct msm_mdss_data sar2130p_data = { 596 .ubwc_enc_version = UBWC_3_0, /* 4.0.2 in hw */ 597 .ubwc_dec_version = UBWC_4_3, 598 .ubwc_swizzle = 6, > 599 .ubwc_static = 1, 600 .highest_bank_bit = 0, 601 .macrotile_mode = 1, 602 .reg_bus_bw = 74000, 603 }; 604
diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c index dcb49fd30402b80edd2cb5971f95a78eaad6081f..3e82ba0885d03107d54eab9569bb4c5395454c7a 100644 --- a/drivers/gpu/drm/msm/msm_mdss.c +++ b/drivers/gpu/drm/msm/msm_mdss.c @@ -592,6 +592,16 @@ static const struct msm_mdss_data sa8775p_data = { .reg_bus_bw = 74000, }; +static const struct msm_mdss_data sar2130p_data = { + .ubwc_enc_version = UBWC_3_0, /* 4.0.2 in hw */ + .ubwc_dec_version = UBWC_4_3, + .ubwc_swizzle = 6, + .ubwc_static = 1, + .highest_bank_bit = 0, + .macrotile_mode = 1, + .reg_bus_bw = 74000, +}; + static const struct msm_mdss_data sc7180_data = { .ubwc_enc_version = UBWC_2_0, .ubwc_dec_version = UBWC_2_0, @@ -738,6 +748,7 @@ static const struct of_device_id mdss_dt_match[] = { { .compatible = "qcom,msm8998-mdss", .data = &msm8998_data }, { .compatible = "qcom,qcm2290-mdss", .data = &qcm2290_data }, { .compatible = "qcom,sa8775p-mdss", .data = &sa8775p_data }, + { .compatible = "qcom,sar2130p-mdss", .data = &sar2130p_data }, { .compatible = "qcom,sdm670-mdss", .data = &sdm670_data }, { .compatible = "qcom,sdm845-mdss", .data = &sdm845_data }, { .compatible = "qcom,sc7180-mdss", .data = &sc7180_data },