dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Swapnil Jakhade <sjakhade@cadence.com>,
	airlied@linux.ie, daniel@ffwll.ch,
	Laurent.pinchart@ideasonboard.com, robh+dt@kernel.org,
	a.hajda@samsung.com, narmstrong@baylibre.com, jonas@kwiboo.se,
	jernej.skrabec@siol.net, dri-devel@lists.freedesktop.org,
	devicetree@vger.kernel.org
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org
Subject: Re: [PATCH v7 2/3] drm: bridge: Add support for Cadence MHDP DPI/DP bridge
Date: Thu, 23 Jul 2020 05:25:39 +0800	[thread overview]
Message-ID: <202007230515.fLb8pkk8%lkp@intel.com> (raw)
In-Reply-To: <1595403640-12816-3-git-send-email-sjakhade@cadence.com>

[-- Attachment #1: Type: text/plain, Size: 3719 bytes --]

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.8-rc6 next-20200722]
[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-for-Cadence-MHDP-DPI-DP-bridge-and-J721E-wrapper/20200722-154322
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 3d9967039d4191b77f939ddc6c6ff4275df620c2)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

>> drivers/gpu/drm/bridge/cdns-mhdp-core.c:765:10: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709551613 to 4294967293 [-Wconstant-conversion]
                   writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,
                   ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/bridge/cdns-mhdp-core.c:1378:2: error: implicit declaration of function 'phy_get_attrs' [-Werror,-Wimplicit-function-declaration]
           phy_get_attrs(mhdp->phy, &attrs);
           ^
>> drivers/gpu/drm/bridge/cdns-mhdp-core.c:1384:20: error: no member named 'max_link_rate' in 'struct phy_attrs'
           link_rate = attrs.max_link_rate;
                       ~~~~~ ^
   drivers/gpu/drm/bridge/cdns-mhdp-core.c:1709:10: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709551613 to 4294967293 [-Wconstant-conversion]
                   writel(~CDNS_APB_INT_MASK_SW_EVENT_INT,
                   ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 warnings and 2 errors generated.

vim +/phy_get_attrs +1378 drivers/gpu/drm/bridge/cdns-mhdp-core.c

  1371	
  1372	static void cdns_mhdp_fill_host_caps(struct cdns_mhdp_device *mhdp)
  1373	{
  1374		unsigned int link_rate;
  1375		struct phy_attrs attrs;
  1376	
  1377		/* Get source capabilities based on PHY attributes */
> 1378		phy_get_attrs(mhdp->phy, &attrs);
  1379	
  1380		mhdp->host.lanes_cnt = attrs.bus_width;
  1381		if (!mhdp->host.lanes_cnt)
  1382			mhdp->host.lanes_cnt = 4;
  1383	
> 1384		link_rate = attrs.max_link_rate;
  1385		if (!link_rate)
  1386			link_rate = drm_dp_bw_code_to_link_rate(DP_LINK_BW_8_1);
  1387		else
  1388			/* PHY uses Mb/s, DRM uses tens of kb/s. */
  1389			link_rate *= 100;
  1390	
  1391		mhdp->host.link_rate = link_rate;
  1392		mhdp->host.volt_swing = CDNS_VOLT_SWING(3);
  1393		mhdp->host.pre_emphasis = CDNS_PRE_EMPHASIS(3);
  1394		mhdp->host.pattern_supp = CDNS_SUPPORT_TPS(1) |
  1395					  CDNS_SUPPORT_TPS(2) | CDNS_SUPPORT_TPS(3) |
  1396					  CDNS_SUPPORT_TPS(4);
  1397		mhdp->host.lane_mapping = CDNS_LANE_MAPPING_NORMAL;
  1398		mhdp->host.fast_link = false;
  1399		mhdp->host.enhanced = true;
  1400		mhdp->host.scrambler = true;
  1401		mhdp->host.ssc = false;
  1402	}
  1403	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 75334 bytes --]

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2020-07-22 21:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-22  7:40 [PATCH v7 0/3] drm: Add support for Cadence MHDP DPI/DP bridge and J721E wrapper Swapnil Jakhade
2020-07-22  7:40 ` [PATCH v7 1/3] dt-bindings: drm/bridge: Document Cadence MHDP bridge bindings Swapnil Jakhade
2020-07-23 15:33   ` Rob Herring
2020-07-23 15:33   ` Rob Herring
2020-07-26 17:28   ` Sam Ravnborg
2020-07-22  7:40 ` [PATCH v7 2/3] drm: bridge: Add support for Cadence MHDP DPI/DP bridge Swapnil Jakhade
2020-07-22 11:43   ` kernel test robot
2020-07-22 11:51   ` Laurent Pinchart
2020-07-22 21:25   ` kernel test robot [this message]
2020-07-26 17:44   ` Sam Ravnborg
2020-07-22  7:40 ` [PATCH v7 3/3] drm: bridge: cdns-mhdp: Add j721e wrapper Swapnil Jakhade
2020-07-26 17:50   ` Sam Ravnborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202007230515.fLb8pkk8%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=a.hajda@samsung.com \
    --cc=airlied@linux.ie \
    --cc=clang-built-linux@googlegroups.com \
    --cc=daniel@ffwll.ch \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jernej.skrabec@siol.net \
    --cc=jonas@kwiboo.se \
    --cc=kbuild-all@lists.01.org \
    --cc=narmstrong@baylibre.com \
    --cc=robh+dt@kernel.org \
    --cc=sjakhade@cadence.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox