Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2401261rdb; Mon, 5 Feb 2024 05:41:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IEsBeumAsKFBreAXGzo57EZE6kLoq5LWYZxgtoh65u+ka6VGXZfQpGtpyDiEtTNlCeTAXSD X-Received: by 2002:a17:90a:564e:b0:296:1667:f21d with SMTP id d14-20020a17090a564e00b002961667f21dmr7606800pji.5.1707140485661; Mon, 05 Feb 2024 05:41:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707140485; cv=pass; d=google.com; s=arc-20160816; b=pbUIR1st99xqzddDCQLAL1gJ5Q6D7wSfp5z5ozUItV2xOGRqhm2HrP0gyVq/vni+c1 EAROp2NaGoU7oJoOfUwp/PYLTGSIfCZ3spHoe8lU69q1lDNz8p6R385Boluih0Awm+ZT RqXvacoJvHnugCtLksScKKnUNrgUZ7HgBbgJiGFmlrqcYfUp0HxlvNbHC3Xpx65k3S7N 2yLlGYx0h0j3xHtSivEKh1Gn7jNSHihHyt/3PfXLa/WrDbW6nY3fIgLaa5PiR7rwDkG3 dL/7ufmRQMMu7Cw3MqrQVqZPnOw8rY9bPTvV4MtCq6GnlPJIHxVMXJ+k2CXyKR6iiMAl GnxQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0RI/9TNK5SWvQEyPvG8eX0QYr6G2pBA3K/cWYpM9r5c=; fh=amCgUnVNiFIp+X0c6/7BMZzD0LiuWR2mOlcMCE74euw=; b=c/vefMoutiAjiWevYN822JFVQaC2jPXs/ftASFiKO+vBxeP8XYlZN/d2tyJrt71EvE nd/s6k4LUMrNiQrPF6YIzfo4kdjABD3cTB29S38l8Ud/6FykStm/2rL17o45F1ouB9W7 B/lniC0e3hI5lhkLKXtOPZcWK34O6CIB8zMs6V9afn0JJNoksYIQbhYVL/8G98miUq6r CPfi62ns/QrkQgxqCkbjKXzj21jjXlEHgRxD/2mLh0PE0Bmk9TVqTikCH+vVdT9FRKf7 moNy6eiiZWwo0WY9EBX2Zu8KPVevnSG4gfZIOrJPmSIzqj1zJSsbVp8uMLeEKA+xNoer DpWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PhFy3H6U; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-52697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCW9rsOHBnL0KcCXnGCxzwIKyswl/dLTwQVJ908XoAEh96MDEbWUF9NR/IxxKK3Nl58CbhQywW1bTI1dHJh4I7DDNHM4yLGUwwxDSf3ZAg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m5-20020a17090a34c500b00290b1bfb082si4563306pjf.130.2024.02.05.05.41.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 05:41:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PhFy3H6U; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-52697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6FBDAB22BAF for ; Mon, 5 Feb 2024 13:15:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF45B1CD07; Mon, 5 Feb 2024 13:15:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="PhFy3H6U" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 747031CA9E; Mon, 5 Feb 2024 13:15:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707138937; cv=none; b=tAK5EiGt1B6AbagL83AM+9iThbbeiwB0EkU6wEGaK77f00XoQ0SUNI+Jc38wOHE5pVqFreuEtVkZyqJjSkYW9XURtW0ZjoiS9EPBc5wk6eBo3h3coNP2Tv1/6rvmXjV3JNNsMHOnjScJhfLhR7+c/R3QaPgaCqP6NgXfnHwF95o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707138937; c=relaxed/simple; bh=jxi9hBIW/u/xN1/3l39jSDwYER6jWurCP3CAR9bpTUM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=W0lyUoboDdHgnmN7zQuQGGsk/Qf3bZWL5aqSlCshFvS4vP2QPehL/olO1TKlgrLnLph6M/BLKgPr8rBZNOfoMeQJXBgJtyQzuPKLjVlh+gp8Z9cHUYy7mIsTBE2S9NUxVUAHn6DmfHVHCHSL1TJDtHBXTGghbP0tjd/wAoLy9aY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=PhFy3H6U; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707138935; x=1738674935; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=jxi9hBIW/u/xN1/3l39jSDwYER6jWurCP3CAR9bpTUM=; b=PhFy3H6U0Zt5UmfhWaAy21wVepJAJrAs0D/uK9pTvyz9cBW12VGn/hdL L2Q6R7w3coxHPmrtxL+g3713OOMPFY+PR/IhAyQEnIW9Ozl1MZ5d4x0Q3 VOasJehQZOeLRArGn5L3XGyUGsADuEJSq1XxnKhC2YRYQRDuy874jHETv 0YEnl4KqBhhstN1ST4FqSlWrJWeqyIZGFjImvhpiSrcu9U5RjDBTRPlmD /gAICEyIgsQ89cNc9vYZv81uwMJgrvJ5NCCJPk5BKJmBrN6mnQvri3VOY 3dSfn1i+KP8fjFLcSLZjgpZ7YYjtY5+VJGn3I0pGU34e5olF5DQfbvRG5 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10974"; a="11105846" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="11105846" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 05:15:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="1014816" Received: from lkp-server01.sh.intel.com (HELO 01f0647817ea) ([10.239.97.150]) by orviesa006.jf.intel.com with ESMTP; 05 Feb 2024 05:15:29 -0800 Received: from kbuild by 01f0647817ea with local (Exim 4.96) (envelope-from ) id 1rWyoo-0000Xk-32; Mon, 05 Feb 2024 13:15:26 +0000 Date: Mon, 5 Feb 2024 21:14:50 +0800 From: kernel test robot To: Frank Li Cc: oe-kbuild-all@lists.linux.dev, alexandre.belloni@bootlin.com, conor.culhane@silvaco.com, devicetree@vger.kernel.org, gregkh@linuxfoundation.org, ilpo.jarvinen@linux.intel.com, imx@lists.linux.dev, jirislaby@kernel.org, joe@perches.com, krzysztof.kozlowski+dt@linaro.org, krzysztof.kozlowski@linaro.org, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, miquel.raynal@bootlin.com, robh@kernel.org, zbigniew.lukwinski@linux.intel.com Subject: Re: [PATCH v6 8/8] tty: i3c: add TTY over I3C master support Message-ID: <202402052026.UNrmrB2M-lkp@intel.com> References: <20240202230925.1000659-9-Frank.Li@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240202230925.1000659-9-Frank.Li@nxp.com> Hi Frank, kernel test robot noticed the following build warnings: [auto build test WARNING on tty/tty-testing] [also build test WARNING on tty/tty-next tty/tty-linus robh/for-next linus/master v6.8-rc3 next-20240205] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Frank-Li/i3c-add-target-mode-support/20240203-071519 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing patch link: https://lore.kernel.org/r/20240202230925.1000659-9-Frank.Li%40nxp.com patch subject: [PATCH v6 8/8] tty: i3c: add TTY over I3C master support config: powerpc-randconfig-r071-20240205 (https://download.01.org/0day-ci/archive/20240205/202402052026.UNrmrB2M-lkp@intel.com/config) compiler: powerpc-linux-gcc (GCC) 13.2.0 If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202402052026.UNrmrB2M-lkp@intel.com/ smatch warnings: drivers/tty/i3c_tty.c:237 tty_i3c_rxwork() error: uninitialized symbol 'status'. vim +/status +237 drivers/tty/i3c_tty.c 191 192 static void tty_i3c_rxwork(struct work_struct *work) 193 { 194 struct ttyi3c_port *sport = container_of(work, struct ttyi3c_port, rxwork); 195 struct i3c_priv_xfer xfers; 196 u32 retry = I3C_TTY_RETRY; 197 u16 status; 198 int ret; 199 200 memset(&xfers, 0, sizeof(xfers)); 201 xfers.data.in = sport->rx_buff; 202 xfers.len = I3C_TTY_TRANS_SIZE; 203 xfers.rnw = 1; 204 205 do { 206 if (test_bit(I3C_TTY_RX_STOP, &sport->status)) 207 break; 208 209 i3c_device_do_priv_xfers(sport->i3cdev, &xfers, 1); 210 211 if (xfers.actual_len) { 212 ret = tty_insert_flip_string(&sport->port, sport->rx_buff, 213 xfers.actual_len); 214 if (ret < xfers.actual_len) 215 sport->buf_overrun++; 216 217 retry = I3C_TTY_RETRY; 218 continue; 219 } 220 221 status = I3C_TTY_TARGET_RX_READY; 222 i3c_device_getstatus_format1(sport->i3cdev, &status); 223 /* 224 * Target side needs some time to fill data into fifo. Target side may not 225 * have hardware update status in real time. Software update status always 226 * needs some delays. 227 * 228 * Generally, target side have circular buffer in memory, it will be moved 229 * into FIFO by CPU or DMA. 'status' just show if circular buffer empty. But 230 * there are gap, especially CPU have not response irq to fill FIFO in time. 231 * So xfers.actual will be zero, wait for little time to avoid flood 232 * transfer in i3c bus. 233 */ 234 usleep_range(I3C_TTY_YIELD_US, 10 * I3C_TTY_YIELD_US); 235 retry--; 236 > 237 } while (retry && (status & I3C_TTY_TARGET_RX_READY)); 238 239 tty_flip_buffer_push(&sport->port); 240 } 241 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki