tree:
https://gitlab.freedesktop.org/drm/msm.git msm-next-staging
head: 1a2896083ade8620d7e66ab1046c7efe744bcab4
commit: 1a2896083ade8620d7e66ab1046c7efe744bcab4 [32/32] drm/msm/dsi: add support for 7nm
DSI PHY/PLL
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 1a2896083ade8620d7e66ab1046c7efe744bcab4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/msm/dsi/pll/dsi_pll_7nm.c: In function 'msm_dsi_pll_7nm_init':
> drivers/gpu/drm/msm/dsi/pll/dsi_pll_7nm.c:882:19: warning:
conversion from 'long long unsigned int' to 'long unsigned int' changes
value from '5000000000' to '705032704' [-Woverflow]
882 |
pll->max_rate = 5000000000UL;
| ^~~~~~~~~~~~
git remote add drm-msm
https://gitlab.freedesktop.org/drm/msm.git
git fetch --no-tags drm-msm msm-next-staging
git checkout 1a2896083ade8620d7e66ab1046c7efe744bcab4
vim +882 drivers/gpu/drm/msm/dsi/pll/dsi_pll_7nm.c
846
847 struct msm_dsi_pll *msm_dsi_pll_7nm_init(struct platform_device *pdev, int id)
848 {
849 struct dsi_pll_7nm *pll_7nm;
850 struct msm_dsi_pll *pll;
851 int ret;
852
853 pll_7nm = devm_kzalloc(&pdev->dev, sizeof(*pll_7nm), GFP_KERNEL);
854 if (!pll_7nm)
855 return ERR_PTR(-ENOMEM);
856
857 DBG("DSI PLL%d", id);
858
859 pll_7nm->pdev = pdev;
860 pll_7nm->id = id;
861 pll_7nm_list[id] = pll_7nm;
862
863 pll_7nm->phy_cmn_mmio = msm_ioremap(pdev, "dsi_phy",
"DSI_PHY");
864 if (IS_ERR_OR_NULL(pll_7nm->phy_cmn_mmio)) {
865 DRM_DEV_ERROR(&pdev->dev, "failed to map CMN PHY base\n");
866 return ERR_PTR(-ENOMEM);
867 }
868
869 pll_7nm->mmio = msm_ioremap(pdev, "dsi_pll", "DSI_PLL");
870 if (IS_ERR_OR_NULL(pll_7nm->mmio)) {
871 DRM_DEV_ERROR(&pdev->dev, "failed to map PLL base\n");
872 return ERR_PTR(-ENOMEM);
873 }
874
875 spin_lock_init(&pll_7nm->postdiv_lock);
876
877 pll = &pll_7nm->base;
878 pll->min_rate = 1000000000UL;
879 pll->max_rate = 3500000000UL;
880 if (pll->type == MSM_DSI_PHY_7NM_V4_1) {
881 pll->min_rate = 600000000UL;
882 pll->max_rate = 5000000000UL;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org