Hi Swapnil,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on robh/for-next]
[also build test ERROR on linus/master v5.9-rc7]
[cannot apply to next-20200930]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Swapnil-Jakhade/drm-Add-support-...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/0day-ci/linux/commit/f4ffd924c54d5cb905f14161decf21a54...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Swapnil-Jakhade/drm-Add-support-for-Cadence-MHDP8546-DPI-DP-bridge-and-J721E-wrapper/20200918-201040
git checkout f4ffd924c54d5cb905f14161decf21a549d87615
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function
'cdns_mhdp_fw_activate':
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:749:10: warning: conversion from
'long unsigned int' to 'unsigned int' changes value from
'18446744073709551613' to '4294967293' [-Woverflow]
749 | writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function
'cdns_mhdp_fill_host_caps':
> drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:1359:30:
error: 'struct phy_attrs' has no member named 'max_link_rate'
1359 | link_rate = mhdp->phy->attrs.max_link_rate;
| ^
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function
'cdns_mhdp_attach':
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:1690:10: warning: conversion from
'long unsigned int' to 'unsigned int' changes value from
'18446744073709551613' to '4294967293' [-Woverflow]
1690 | writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function
'cdns_mhdp_bridge_hpd_enable':
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:2123:10: warning: conversion from
'long unsigned int' to 'unsigned int' changes value from
'18446744073709551613' to '4294967293' [-Woverflow]
2123 | writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,
vim +1359 drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c
1348
1349 static void cdns_mhdp_fill_host_caps(struct cdns_mhdp_device *mhdp)
1350 {
1351 unsigned int link_rate;
1352
1353 /* Get source capabilities based on PHY attributes */
1354
1355 mhdp->host.lanes_cnt = mhdp->phy->attrs.bus_width;
1356 if (!mhdp->host.lanes_cnt)
1357 mhdp->host.lanes_cnt = 4;
1358
1359 link_rate = mhdp->phy->attrs.max_link_rate;
1360 if (!link_rate)
1361 link_rate = drm_dp_bw_code_to_link_rate(DP_LINK_BW_8_1);
1362 else
1363 /* PHY uses Mb/s, DRM uses tens of kb/s. */
1364 link_rate *= 100;
1365
1366 mhdp->host.link_rate = link_rate;
1367 mhdp->host.volt_swing = CDNS_VOLT_SWING(3);
1368 mhdp->host.pre_emphasis = CDNS_PRE_EMPHASIS(3);
1369 mhdp->host.pattern_supp = CDNS_SUPPORT_TPS(1) |
1370 CDNS_SUPPORT_TPS(2) | CDNS_SUPPORT_TPS(3) |
1371 CDNS_SUPPORT_TPS(4);
1372 mhdp->host.lane_mapping = CDNS_LANE_MAPPING_NORMAL;
1373 mhdp->host.fast_link = false;
1374 mhdp->host.enhanced = true;
1375 mhdp->host.scrambler = true;
1376 mhdp->host.ssc = false;
1377 }
1378
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org