Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp3057862ybj; Mon, 23 Sep 2019 14:04:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2qHUv2cG4i60rqyKNW5p6ACdavW+RQakffkDfOGhdCpcHS4fR0PPAhCFfLW4PKKyKQYwd X-Received: by 2002:aa7:d508:: with SMTP id y8mr707050edq.171.1569272679926; Mon, 23 Sep 2019 14:04:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569272679; cv=none; d=google.com; s=arc-20160816; b=S4Q3LAR1b0YfUhR6j6T7Wb9MtA5yds7r0hJiydSQ4AfRnywiMplD4pvLMFkI86FpXx 6nO7l5CrKdIU7FNqDlX+2yDJkJCi+Iv4Ne83GUDYLRgh4iAZKDGE90RYhumY5CTa/akL YGmPhQMmOlcJ3QmFKhJmrSTnlkvVgV/094Pg+BDdTDwTmBi0LDjwsFbzYpcI5VmJWdjj 9g5xxTaEgRT6008uvn5R2oba0fO5omhgdr+Qj79+v/Cbgu+pzxPWmUHsIsHcqm9X5IZO I+VByffJK6KEhscBFSZhA1yH94Qvg9ndr+yo15rwFIhtiy8QLeT7qJYo54748Hc2EKdC UDfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date; bh=drfjJc4DY277y9phThBuoWnpzEZct/K+6osakfl+oNw=; b=NHUsMeFzeJgQQdftlOFbVPt9LwQgdnYj+NS01wMoCP28tLeKV+0CmQx/3YdOSxTM1H N5C7cK9MlJbnvJLlZB0Amgqdqwoc3dHmV/YwMYe7Q1cuxjW593Mpf3/ji4X4GBAybayF ZzX2ZhqJG5jggWOol7oat62GuzZ670lUyh02Ekmzb5yz0HyRl8Be9pbymhvLmH7wtXEp +lTy7oJ5a8Mi3ykk9vcAHgiVU9onY2fD9ct3c10DjZp7GeMv7p7PcLGxEizPOK1QA0/t UnsEupNtMAX2a4nu59SOveAJ/HUJ0y8ZtncHSf2/CUBJPrxHBCwwrkYjkNfIt1W/OWoK N5xQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3si7562611edc.109.2019.09.23.14.04.16; Mon, 23 Sep 2019 14:04:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388807AbfIVSob (ORCPT + 99 others); Sun, 22 Sep 2019 14:44:31 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:19458 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388761AbfIVSoW (ORCPT ); Sun, 22 Sep 2019 14:44:22 -0400 X-IronPort-AV: E=Sophos;i="5.64,537,1559512800"; d="scan'208";a="320239964" Received: from ip-215.net-89-2-7.rev.numericable.fr (HELO hadrien) ([89.2.7.215]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Sep 2019 20:43:48 +0200 Date: Sun, 22 Sep 2019 20:43:48 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: =?ISO-8859-15?Q?Guido_G=FCnther?= cc: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Lee Jones , =?ISO-8859-15?Q?Guido_G=FCnther?= , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Robert Chiras , Sam Ravnborg , Arnd Bergmann , kbuild-all@01.org Subject: Re: [PATCH v6 2/2] drm/bridge: Add NWL MIPI DSI host controller support (fwd) Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-348580464-1569177829=:2575" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-348580464-1569177829=:2575 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Hello, Color_format is unsigned, so it won't be less than 0 on line 272. julia ---------- Forwarded message ---------- Date: Mon, 23 Sep 2019 02:29:34 +0800 From: kbuild test robot To: kbuild@01.org Cc: Julia Lawall Subject: Re: [PATCH v6 2/2] drm/bridge: Add NWL MIPI DSI host controller support CC: kbuild-all@01.org In-Reply-To: References: TO: "Guido G?nther" CC: 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 :::::: branch date: 2 hours ago :::::: commit date: 2 hours ago If you fix the issue, kindly add following tag Reported-by: kbuild test robot Reported-by: Julia Lawall >> drivers/gpu/drm/bridge/nwl-dsi.c:272:5-17: WARNING: Unsigned expression compared with zero: color_format < 0 # https://github.com/0day-ci/linux/commit/060069512cb50e3218b55005b6cc92b82e0a7856 git remote add linux-review https://github.com/0day-ci/linux git remote update linux-review git checkout 060069512cb50e3218b55005b6cc92b82e0a7856 vim +272 drivers/gpu/drm/bridge/nwl-dsi.c 060069512cb50e Guido G?nther 2019-09-22 245 060069512cb50e Guido G?nther 2019-09-22 246 static int nwl_dsi_config_dpi(struct nwl_dsi *dsi) 060069512cb50e Guido G?nther 2019-09-22 247 { 060069512cb50e Guido G?nther 2019-09-22 248 u32 color_format, mode; 060069512cb50e Guido G?nther 2019-09-22 249 bool burst_mode; 060069512cb50e Guido G?nther 2019-09-22 250 int hfront_porch, hback_porch, vfront_porch, vback_porch; 060069512cb50e Guido G?nther 2019-09-22 251 int hsync_len, vsync_len; 060069512cb50e Guido G?nther 2019-09-22 252 060069512cb50e Guido G?nther 2019-09-22 253 hfront_porch = dsi->mode.hsync_start - dsi->mode.hdisplay; 060069512cb50e Guido G?nther 2019-09-22 254 hsync_len = dsi->mode.hsync_end - dsi->mode.hsync_start; 060069512cb50e Guido G?nther 2019-09-22 255 hback_porch = dsi->mode.htotal - dsi->mode.hsync_end; 060069512cb50e Guido G?nther 2019-09-22 256 060069512cb50e Guido G?nther 2019-09-22 257 vfront_porch = dsi->mode.vsync_start - dsi->mode.vdisplay; 060069512cb50e Guido G?nther 2019-09-22 258 vsync_len = dsi->mode.vsync_end - dsi->mode.vsync_start; 060069512cb50e Guido G?nther 2019-09-22 259 vback_porch = dsi->mode.vtotal - dsi->mode.vsync_end; 060069512cb50e Guido G?nther 2019-09-22 260 060069512cb50e Guido G?nther 2019-09-22 261 DRM_DEV_DEBUG_DRIVER(dsi->dev, "hfront_porch = %d\n", hfront_porch); 060069512cb50e Guido G?nther 2019-09-22 262 DRM_DEV_DEBUG_DRIVER(dsi->dev, "hback_porch = %d\n", hback_porch); 060069512cb50e Guido G?nther 2019-09-22 263 DRM_DEV_DEBUG_DRIVER(dsi->dev, "hsync_len = %d\n", hsync_len); 060069512cb50e Guido G?nther 2019-09-22 264 DRM_DEV_DEBUG_DRIVER(dsi->dev, "hdisplay = %d\n", dsi->mode.hdisplay); 060069512cb50e Guido G?nther 2019-09-22 265 DRM_DEV_DEBUG_DRIVER(dsi->dev, "vfront_porch = %d\n", vfront_porch); 060069512cb50e Guido G?nther 2019-09-22 266 DRM_DEV_DEBUG_DRIVER(dsi->dev, "vback_porch = %d\n", vback_porch); 060069512cb50e Guido G?nther 2019-09-22 267 DRM_DEV_DEBUG_DRIVER(dsi->dev, "vsync_len = %d\n", vsync_len); 060069512cb50e Guido G?nther 2019-09-22 268 DRM_DEV_DEBUG_DRIVER(dsi->dev, "vactive = %d\n", dsi->mode.vdisplay); 060069512cb50e Guido G?nther 2019-09-22 269 DRM_DEV_DEBUG_DRIVER(dsi->dev, "clock = %d kHz\n", dsi->mode.clock); 060069512cb50e Guido G?nther 2019-09-22 270 060069512cb50e Guido G?nther 2019-09-22 271 color_format = nwl_dsi_get_dpi_pixel_format(dsi->format); 060069512cb50e Guido G?nther 2019-09-22 @272 if (color_format < 0) { 060069512cb50e Guido G?nther 2019-09-22 273 DRM_DEV_ERROR(dsi->dev, "Invalid color format 0x%x\n", 060069512cb50e Guido G?nther 2019-09-22 274 dsi->format); 060069512cb50e Guido G?nther 2019-09-22 275 return color_format; 060069512cb50e Guido G?nther 2019-09-22 276 } 060069512cb50e Guido G?nther 2019-09-22 277 DRM_DEV_DEBUG_DRIVER(dsi->dev, "pixel fmt = %d\n", dsi->format); 060069512cb50e Guido G?nther 2019-09-22 278 060069512cb50e Guido G?nther 2019-09-22 279 nwl_dsi_write(dsi, NWL_DSI_INTERFACE_COLOR_CODING, NWL_DSI_DPI_24_BIT); 060069512cb50e Guido G?nther 2019-09-22 280 nwl_dsi_write(dsi, NWL_DSI_PIXEL_FORMAT, color_format); 060069512cb50e Guido G?nther 2019-09-22 281 /* 060069512cb50e Guido G?nther 2019-09-22 282 * Adjusting input polarity based on the video mode results in 060069512cb50e Guido G?nther 2019-09-22 283 * a black screen so always pick active low: 060069512cb50e Guido G?nther 2019-09-22 284 */ 060069512cb50e Guido G?nther 2019-09-22 285 nwl_dsi_write(dsi, NWL_DSI_VSYNC_POLARITY, 060069512cb50e Guido G?nther 2019-09-22 286 NWL_DSI_VSYNC_POLARITY_ACTIVE_LOW); 060069512cb50e Guido G?nther 2019-09-22 287 nwl_dsi_write(dsi, NWL_DSI_HSYNC_POLARITY, 060069512cb50e Guido G?nther 2019-09-22 288 NWL_DSI_HSYNC_POLARITY_ACTIVE_LOW); 060069512cb50e Guido G?nther 2019-09-22 289 060069512cb50e Guido G?nther 2019-09-22 290 burst_mode = (dsi->dsi_mode_flags & MIPI_DSI_MODE_VIDEO_BURST) && 060069512cb50e Guido G?nther 2019-09-22 291 !(dsi->dsi_mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE); 060069512cb50e Guido G?nther 2019-09-22 292 060069512cb50e Guido G?nther 2019-09-22 293 if (burst_mode) { 060069512cb50e Guido G?nther 2019-09-22 294 nwl_dsi_write(dsi, NWL_DSI_VIDEO_MODE, NWL_DSI_VM_BURST_MODE); 060069512cb50e Guido G?nther 2019-09-22 295 nwl_dsi_write(dsi, NWL_DSI_PIXEL_FIFO_SEND_LEVEL, 256); 060069512cb50e Guido G?nther 2019-09-22 296 } else { 060069512cb50e Guido G?nther 2019-09-22 297 mode = ((dsi->dsi_mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE) ? 060069512cb50e Guido G?nther 2019-09-22 298 NWL_DSI_VM_BURST_MODE_WITH_SYNC_PULSES : 060069512cb50e Guido G?nther 2019-09-22 299 NWL_DSI_VM_NON_BURST_MODE_WITH_SYNC_EVENTS); 060069512cb50e Guido G?nther 2019-09-22 300 nwl_dsi_write(dsi, NWL_DSI_VIDEO_MODE, mode); 060069512cb50e Guido G?nther 2019-09-22 301 nwl_dsi_write(dsi, NWL_DSI_PIXEL_FIFO_SEND_LEVEL, 060069512cb50e Guido G?nther 2019-09-22 302 dsi->mode.hdisplay); 060069512cb50e Guido G?nther 2019-09-22 303 } 060069512cb50e Guido G?nther 2019-09-22 304 060069512cb50e Guido G?nther 2019-09-22 305 nwl_dsi_write(dsi, NWL_DSI_HFP, hfront_porch); 060069512cb50e Guido G?nther 2019-09-22 306 nwl_dsi_write(dsi, NWL_DSI_HBP, hback_porch); 060069512cb50e Guido G?nther 2019-09-22 307 nwl_dsi_write(dsi, NWL_DSI_HSA, hsync_len); 060069512cb50e Guido G?nther 2019-09-22 308 060069512cb50e Guido G?nther 2019-09-22 309 nwl_dsi_write(dsi, NWL_DSI_ENABLE_MULT_PKTS, 0x0); 060069512cb50e Guido G?nther 2019-09-22 310 nwl_dsi_write(dsi, NWL_DSI_BLLP_MODE, 0x1); 060069512cb50e Guido G?nther 2019-09-22 311 nwl_dsi_write(dsi, NWL_DSI_USE_NULL_PKT_BLLP, 0x0); 060069512cb50e Guido G?nther 2019-09-22 312 nwl_dsi_write(dsi, NWL_DSI_VC, 0x0); 060069512cb50e Guido G?nther 2019-09-22 313 060069512cb50e Guido G?nther 2019-09-22 314 nwl_dsi_write(dsi, NWL_DSI_PIXEL_PAYLOAD_SIZE, dsi->mode.hdisplay); 060069512cb50e Guido G?nther 2019-09-22 315 nwl_dsi_write(dsi, NWL_DSI_VACTIVE, dsi->mode.vdisplay - 1); 060069512cb50e Guido G?nther 2019-09-22 316 nwl_dsi_write(dsi, NWL_DSI_VBP, vback_porch); 060069512cb50e Guido G?nther 2019-09-22 317 nwl_dsi_write(dsi, NWL_DSI_VFP, vfront_porch); 060069512cb50e Guido G?nther 2019-09-22 318 060069512cb50e Guido G?nther 2019-09-22 319 return 0; 060069512cb50e Guido G?nther 2019-09-22 320 } 060069512cb50e Guido G?nther 2019-09-22 321 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation --8323329-348580464-1569177829=:2575--