mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: "Guido Günther" <agx@sigxcpu.org>
Cc: kbuild-all@01.org, "David Airlie" <airlied@linux.ie>,
	"Daniel Vetter" <daniel@ffwll.ch>,
	"Rob Herring" <robh+dt@kernel.org>,
	"Mark Rutland" <mark.rutland@arm.com>,
	"Shawn Guo" <shawnguo@kernel.org>,
	"Sascha Hauer" <s.hauer@pengutronix.de>,
	"Pengutronix Kernel Team" <kernel@pengutronix.de>,
	"Fabio Estevam" <festevam@gmail.com>,
	"NXP Linux Team" <linux-imx@nxp.com>,
	"Andrzej Hajda" <a.hajda@samsung.com>,
	"Neil Armstrong" <narmstrong@baylibre.com>,
	"Laurent Pinchart" <Laurent.pinchart@ideasonboard.com>,
	"Jonas Karlman" <jonas@kwiboo.se>,
	"Jernej Skrabec" <jernej.skrabec@siol.net>,
	"Lee Jones" <lee.jones@linaro.org>,
	"Guido Günther" <agx@sigxcpu.org>,
	dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	"Robert Chiras" <robert.chiras@nxp.com>,
	"Sam Ravnborg" <sam@ravnborg.org>,
	"Arnd Bergmann" <arnd@arndb.de>
Subject: Re: [PATCH v6 2/2] drm/bridge: Add NWL MIPI DSI host controller support
Date: Mon, 23 Sep 2019 06:52:35 +0800	[thread overview]
Message-ID: <201909230644.qfSKbNf9%lkp@intel.com> (raw)
In-Reply-To: <c0ac0b203fb65ae7efd1b9b54664b491ca2fb157.1569170717.git.agx@sigxcpu.org>

Hi "Guido,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3 next-20190920]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Guido-G-nther/drm-bridge-Add-NWL-MIPI-DSI-host-controller-support/20190923-005010

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

smatch warnings:
drivers/gpu/drm/bridge/nwl-dsi.c:272 nwl_dsi_config_dpi() warn: unsigned 'color_format' is never less than zero.

vim +/color_format +272 drivers/gpu/drm/bridge/nwl-dsi.c

   245	
   246	static int nwl_dsi_config_dpi(struct nwl_dsi *dsi)
   247	{
   248		u32 color_format, mode;
   249		bool burst_mode;
   250		int hfront_porch, hback_porch, vfront_porch, vback_porch;
   251		int hsync_len, vsync_len;
   252	
   253		hfront_porch = dsi->mode.hsync_start - dsi->mode.hdisplay;
   254		hsync_len = dsi->mode.hsync_end - dsi->mode.hsync_start;
   255		hback_porch = dsi->mode.htotal - dsi->mode.hsync_end;
   256	
   257		vfront_porch = dsi->mode.vsync_start - dsi->mode.vdisplay;
   258		vsync_len = dsi->mode.vsync_end - dsi->mode.vsync_start;
   259		vback_porch = dsi->mode.vtotal - dsi->mode.vsync_end;
   260	
   261		DRM_DEV_DEBUG_DRIVER(dsi->dev, "hfront_porch = %d\n", hfront_porch);
   262		DRM_DEV_DEBUG_DRIVER(dsi->dev, "hback_porch = %d\n", hback_porch);
   263		DRM_DEV_DEBUG_DRIVER(dsi->dev, "hsync_len = %d\n", hsync_len);
   264		DRM_DEV_DEBUG_DRIVER(dsi->dev, "hdisplay = %d\n", dsi->mode.hdisplay);
   265		DRM_DEV_DEBUG_DRIVER(dsi->dev, "vfront_porch = %d\n", vfront_porch);
   266		DRM_DEV_DEBUG_DRIVER(dsi->dev, "vback_porch = %d\n", vback_porch);
   267		DRM_DEV_DEBUG_DRIVER(dsi->dev, "vsync_len = %d\n", vsync_len);
   268		DRM_DEV_DEBUG_DRIVER(dsi->dev, "vactive = %d\n", dsi->mode.vdisplay);
   269		DRM_DEV_DEBUG_DRIVER(dsi->dev, "clock = %d kHz\n", dsi->mode.clock);
   270	
   271		color_format = nwl_dsi_get_dpi_pixel_format(dsi->format);
 > 272		if (color_format < 0) {
   273			DRM_DEV_ERROR(dsi->dev, "Invalid color format 0x%x\n",
   274				      dsi->format);
   275			return color_format;
   276		}
   277		DRM_DEV_DEBUG_DRIVER(dsi->dev, "pixel fmt = %d\n", dsi->format);
   278	
   279		nwl_dsi_write(dsi, NWL_DSI_INTERFACE_COLOR_CODING, NWL_DSI_DPI_24_BIT);
   280		nwl_dsi_write(dsi, NWL_DSI_PIXEL_FORMAT, color_format);
   281		/*
   282		 * Adjusting input polarity based on the video mode results in
   283		 * a black screen so always pick active low:
   284		 */
   285		nwl_dsi_write(dsi, NWL_DSI_VSYNC_POLARITY,
   286			      NWL_DSI_VSYNC_POLARITY_ACTIVE_LOW);
   287		nwl_dsi_write(dsi, NWL_DSI_HSYNC_POLARITY,
   288			      NWL_DSI_HSYNC_POLARITY_ACTIVE_LOW);
   289	
   290		burst_mode = (dsi->dsi_mode_flags & MIPI_DSI_MODE_VIDEO_BURST) &&
   291			     !(dsi->dsi_mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE);
   292	
   293		if (burst_mode) {
   294			nwl_dsi_write(dsi, NWL_DSI_VIDEO_MODE, NWL_DSI_VM_BURST_MODE);
   295			nwl_dsi_write(dsi, NWL_DSI_PIXEL_FIFO_SEND_LEVEL, 256);
   296		} else {
   297			mode = ((dsi->dsi_mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE) ?
   298					NWL_DSI_VM_BURST_MODE_WITH_SYNC_PULSES :
   299					NWL_DSI_VM_NON_BURST_MODE_WITH_SYNC_EVENTS);
   300			nwl_dsi_write(dsi, NWL_DSI_VIDEO_MODE, mode);
   301			nwl_dsi_write(dsi, NWL_DSI_PIXEL_FIFO_SEND_LEVEL,
   302				      dsi->mode.hdisplay);
   303		}
   304	
   305		nwl_dsi_write(dsi, NWL_DSI_HFP, hfront_porch);
   306		nwl_dsi_write(dsi, NWL_DSI_HBP, hback_porch);
   307		nwl_dsi_write(dsi, NWL_DSI_HSA, hsync_len);
   308	
   309		nwl_dsi_write(dsi, NWL_DSI_ENABLE_MULT_PKTS, 0x0);
   310		nwl_dsi_write(dsi, NWL_DSI_BLLP_MODE, 0x1);
   311		nwl_dsi_write(dsi, NWL_DSI_USE_NULL_PKT_BLLP, 0x0);
   312		nwl_dsi_write(dsi, NWL_DSI_VC, 0x0);
   313	
   314		nwl_dsi_write(dsi, NWL_DSI_PIXEL_PAYLOAD_SIZE, dsi->mode.hdisplay);
   315		nwl_dsi_write(dsi, NWL_DSI_VACTIVE, dsi->mode.vdisplay - 1);
   316		nwl_dsi_write(dsi, NWL_DSI_VBP, vback_porch);
   317		nwl_dsi_write(dsi, NWL_DSI_VFP, vfront_porch);
   318	
   319		return 0;
   320	}
   321	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

  reply	other threads:[~2019-09-22 22:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-22 16:47 [PATCH v6 0/2] drm: bridge: " Guido Günther
2019-09-22 16:47 ` [PATCH v6 1/2] dt-bindings: display/bridge: Add binding for NWL mipi dsi host controller Guido Günther
2019-09-23  8:59   ` Andrzej Hajda
2019-09-23  9:56     ` Guido Günther
2019-09-22 16:47 ` [PATCH v6 2/2] drm/bridge: Add NWL MIPI DSI host controller support Guido Günther
2019-09-22 22:52   ` kbuild test robot [this message]
2019-09-23 10:01   ` Andrzej Hajda
2019-10-19 14:11     ` Guido Günther

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=201909230644.qfSKbNf9%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=a.hajda@samsung.com \
    --cc=agx@sigxcpu.org \
    --cc=airlied@linux.ie \
    --cc=arnd@arndb.de \
    --cc=daniel@ffwll.ch \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=festevam@gmail.com \
    --cc=jernej.skrabec@siol.net \
    --cc=jonas@kwiboo.se \
    --cc=kbuild-all@01.org \
    --cc=kernel@pengutronix.de \
    --cc=lee.jones@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=narmstrong@baylibre.com \
    --cc=robert.chiras@nxp.com \
    --cc=robh+dt@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=sam@ravnborg.org \
    --cc=shawnguo@kernel.org \
    /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

all inboxes | Powered by JetHome®