Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp43408ybn; Tue, 24 Sep 2019 17:55:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGBVqaQOUHICTqmO/xvKCdHS3TlRuRhiHzttYKxa4dG3eWkzJ876BGByOjnyCNKrTVjWz1 X-Received: by 2002:a5d:4f0d:: with SMTP id c13mr5856533wru.317.1569372920225; Tue, 24 Sep 2019 17:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569372920; cv=none; d=google.com; s=arc-20160816; b=Op/Zgl5imz+rgh9vHgqgFs1JlipaOniHEHCN/uWqhsrDB4fp99zHufvCE3jIqHWa8M 1X49Ms5ULq2r9CTY5hnNzQCaUOSDKS5PSbe0FaqPPFN0aINgL6W0RMJzbhNdnHK64b7n QFIEDJfymMRZsOZhudFqvV9JE+BTKrfKw/yjIaaHZof7XgW6Kbsss1geF9NJzbYx6+og Z35/UJFCHdN8mQaBkdx3YtgxQLe/+juKc15kb0cd4Wfyt76EGhB/6a98+eZWwyQpWCy0 Xuewk687/b/vClVkip1gOgXWXKJxyF0zxZFG3PlRoO3GGTpmyF9OEvDM5PYZuvwnxF+M kAtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=1TPZPtebXIE7UBPwklhUxeOnnGbEpC6XPLklov/xFX8=; b=m4UlQA6Q7giZ8VKCo4W9qQvo4Itn09yhn4OcvRK1LoFLPhVqxfiUCY9xtxeEGwvjBo 0g1UTo6Z+7ksq8XtGMN700dtClvdEhxECNjsY3g/wioeP3k3+DyvhhsREz0rMWYcgJur 0hBks5StPIMzwteIL8HXktbW+3QOA4Chwgd6oWzrDTOIGiJR5iNrPfVnv3E6QjXtLemr qsy2TAzB0j5YqQGHhYxDBpv511GwRs/XPNqF5rPERcCp0Rld/lpxqF3FJS++xmnTByta 9ml+vuiEYeHYUuCpBy6PWVtn6ZhfHI164G1B/HUe3YMUlfVSterncvrQgc2BC5rlWtkT 7DAQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f31si2508785ede.253.2019.09.24.17.54.56; Tue, 24 Sep 2019 17:55:20 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389276AbfIVWxF (ORCPT + 99 others); Sun, 22 Sep 2019 18:53:05 -0400 Received: from mga04.intel.com ([192.55.52.120]:43447 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388766AbfIVWxF (ORCPT ); Sun, 22 Sep 2019 18:53:05 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Sep 2019 15:53:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,538,1559545200"; d="scan'208";a="182339433" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 22 Sep 2019 15:52:59 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1iCAix-0002dh-6t; Mon, 23 Sep 2019 06:52:59 +0800 Date: Mon, 23 Sep 2019 06:52:35 +0800 From: kbuild test robot To: Guido =?iso-8859-1?Q?G=FCnther?= Cc: kbuild-all@01.org, 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 , Guido =?iso-8859-1?Q?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 Subject: Re: [PATCH v6 2/2] drm/bridge: Add NWL MIPI DSI host controller support Message-ID: <201909230644.qfSKbNf9%lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Patchwork-Hint: ignore User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 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