Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2381489rdf; Mon, 6 Nov 2023 12:24:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IFMDTMAjqz2BrGvBgtFdOlztQMM3veRvVI/sGxYofw85nSK3582ZNhHAGvmt8CzyGfZCLUX X-Received: by 2002:a05:6358:881f:b0:168:ed99:4e74 with SMTP id hv31-20020a056358881f00b00168ed994e74mr44792823rwb.20.1699302269254; Mon, 06 Nov 2023 12:24:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699302269; cv=none; d=google.com; s=arc-20160816; b=q5u2bS2q6wxOf6F9uCJmkf/mJEwviwtV9ThVWdq+krpSQskTpeer7zg7xwHD4eWpoS R649ifkhdEWoeRKPRSfT+A6hr6F2Eo9yFAXTvJCEn1pdmajQOZWv4u1u8YC6h3pFErkL 5PGMkJgxieuW0RzkPMg2k4SztJyovbVzg2aBiUQjcxocCY8cLr3JDQ8keKDSXgKlcdvb Aa1rmAApJ6Du6fPe75MeRa0D6arQuLxCY7sBjKQKoX3va3SiIg4cuadytcv/JhEyirzP 3rQI79D0QmZogzidzLyIJINwQ2zlKnvD4/sVlMxAMjDI27+7ZgF69oLRyDw88JS6c4ao CnpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=U8cqSnNn9CmQsUcAG8G1NdEkOZIyNFzBNVMpLwIruIk=; fh=z91si2EQtT0l4EDEaL1FTc95pc+HUokS0TrG31FzZFc=; b=oAr5bd0i9c6Uv2Rw5KRpthP9hHnLnqv7UnKrVKW2fCAqAnbkLMiYMqCDZ8tBfYzpp1 usqCJG5L50hrZRzweX3Ij9JIAY2GWcxtG4yWL3+RJ71pubZwScsNYKgwwXqwm7D9qw29 5ffW18RX4Bb1RePw+hfP8erAK5jCiwjWGltQCmCMNwxWpRPL5ynsayjXP1RqkgjrQKyq GhWZu46TXHh30OHEAvge+8x4pI+Y8QKSwqoliO0koFrzSgRIFxM3vgvqAk8reCoPgZee YFyTAM4Vqz9buhBcy15T1Yjy8BuMn+Fbg87mv8nfP926EHffppP6C2dQe0wTGrTAnw6f 3Ajg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dXk2ebsK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id bf11-20020a656d0b000000b005b96cdc0687si495866pgb.328.2023.11.06.12.24.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 12:24:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dXk2ebsK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 57ECB80320C7; Mon, 6 Nov 2023 12:24:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232004AbjKFUYQ (ORCPT + 99 others); Mon, 6 Nov 2023 15:24:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231169AbjKFUYP (ORCPT ); Mon, 6 Nov 2023 15:24:15 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B8ABD71; Mon, 6 Nov 2023 12:24:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699302250; x=1730838250; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=HUQJarH/crV1JopZJb9YSb1wHfMu7JhiXQvXe0faobI=; b=dXk2ebsKvvNWPDE301Pv9Ge5nX9Umy4WaHt6++1CVS6ZC9K4i1TgdqzC cix6COZk0k8mbcqcCpgtSlJCnxbAW1gTreLIy5S3w9mjU8wipWNHL41IU QmHMQDdfPSUCen56wzLXX/GzG3PaGTE1Y5vRWTlLXlhxfsT0QT591SSex SUb+3QiHlxyDB7b/oJOfWvclUfSa8dbSPRZbLT3lw/7yhE/BtDvRdfwad +rt6nIZSSkAewZOcisYewFh9OmyOe4VWY9t7WCnbvTTpjfyDYSSROE6Dz qlWaFtWPYiZ80SnoWELdZOy8BFs6lUWHbTNAkdoqASyWn/lAeeYPEeGcy Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10886"; a="453670644" X-IronPort-AV: E=Sophos;i="6.03,282,1694761200"; d="scan'208";a="453670644" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2023 12:24:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10886"; a="797421965" X-IronPort-AV: E=Sophos;i="6.03,282,1694761200"; d="scan'208";a="797421965" Received: from lkp-server01.sh.intel.com (HELO 17d9e85e5079) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 06 Nov 2023 12:24:06 -0800 Received: from kbuild by 17d9e85e5079 with local (Exim 4.96) (envelope-from ) id 1r068i-0006i4-0B; Mon, 06 Nov 2023 20:24:04 +0000 Date: Tue, 7 Nov 2023 04:22:44 +0800 From: kernel test robot To: Frank Li , Greg Kroah-Hartman , Jiri Slaby , open list , "open list:TTY LAYER AND SERIAL DRIVERS" Cc: oe-kbuild-all@lists.linux.dev, alexandre.belloni@bootlin.com, conor.culhane@silvaco.com, imx@lists.linux.dev, joe@perches.com, linux-i3c@lists.infradead.org, miquel.raynal@bootlin.com Subject: Re: [PATCH 1/1] tty: i3c: add tty over i3c master support Message-ID: <202311070330.5mylauLR-lkp@intel.com> References: <20231018211111.3437929-1-Frank.Li@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231018211111.3437929-1-Frank.Li@nxp.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 06 Nov 2023 12:24:26 -0800 (PST) Hi Frank, kernel test robot noticed the following build errors: [auto build test ERROR on tty/tty-testing] [also build test ERROR on tty/tty-next tty/tty-linus linus/master v6.6 next-20231106] [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/tty-i3c-add-tty-over-i3c-master-support/20231019-051407 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing patch link: https://lore.kernel.org/r/20231018211111.3437929-1-Frank.Li%40nxp.com patch subject: [PATCH 1/1] tty: i3c: add tty over i3c master support config: microblaze-allyesconfig (https://download.01.org/0day-ci/archive/20231107/202311070330.5mylauLR-lkp@intel.com/config) compiler: microblaze-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231107/202311070330.5mylauLR-lkp@intel.com/reproduce) 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/202311070330.5mylauLR-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/tty/i3c_tty.c: In function 'tty_i3c_rxwork': >> drivers/tty/i3c_tty.c:265:26: error: 'struct i3c_priv_xfer' has no member named 'actual_len' 265 | if (xfers.actual_len) { | ^ drivers/tty/i3c_tty.c:266:82: error: 'struct i3c_priv_xfer' has no member named 'actual_len' 266 | tty_insert_flip_string(&sport->port, sport->buffer, xfers.actual_len); | ^ >> drivers/tty/i3c_tty.c:271:25: error: implicit declaration of function 'i3c_device_getstatus_format1' [-Werror=implicit-function-declaration] 271 | i3c_device_getstatus_format1(sport->i3cdev, &status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/tty/i3c_tty.c: At top level: drivers/tty/i3c_tty.c:400:6: warning: no previous prototype for 'i3c_remove' [-Wmissing-prototypes] 400 | void i3c_remove(struct i3c_device *dev) | ^~~~~~~~~~ cc1: some warnings being treated as errors vim +265 drivers/tty/i3c_tty.c 246 247 static void tty_i3c_rxwork(struct work_struct *work) 248 { 249 struct ttyi3c_port *sport = container_of(work, struct ttyi3c_port, rxwork); 250 struct i3c_priv_xfer xfers; 251 int retry = I3C_TTY_RETRY; 252 u16 status = BIT(0); 253 254 do { 255 memset(&xfers, 0, sizeof(xfers)); 256 xfers.data.in = sport->buffer; 257 xfers.len = I3C_TTY_TRANS_SIZE; 258 xfers.rnw = 1; 259 260 if (I3C_TTY_RX_STOP & atomic_read(&sport->status)) 261 break; 262 263 i3c_device_do_priv_xfers(sport->i3cdev, &xfers, 1); 264 > 265 if (xfers.actual_len) { 266 tty_insert_flip_string(&sport->port, sport->buffer, xfers.actual_len); 267 retry = 20; 268 continue; 269 } else { 270 status = BIT(0); > 271 i3c_device_getstatus_format1(sport->i3cdev, &status); 272 /* 273 * Target side need some time to fill data into fifo. Target side may not 274 * have hardware update status in real time. Software update status always 275 * need some delays. 276 * 277 * Generally, target side have cicular buffer in memory, it will be moved 278 * into FIFO by CPU or DMA. 'status' just show if cicular buffer empty. But 279 * there are gap, espcially CPU have not response irq to fill FIFO in time. 280 * So xfers.actual will be zero, wait for little time to avoid flood 281 * transfer in i3c bus. 282 */ 283 usleep_range(I3C_TTY_YIELD_US, 10 * I3C_TTY_YIELD_US); 284 retry--; 285 } 286 287 } while (retry && (status & BIT(0))); 288 289 tty_flip_buffer_push(&sport->port); 290 } 291 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki