Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp26160lqh; Thu, 30 May 2024 12:49:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUTmVEt3euWWdT2jRDElmC6qZ908EVbZRyfFiPzXXy404W/DuUyQ0Qt2kUdq6PlBVFgxMUOwh+4Nm77cngakMVnCihaMbKyN1VM6cEHMw== X-Google-Smtp-Source: AGHT+IFspuNr13lkXmuhax0cKxoO2h4uL1F6XQwYSTbZOkVzu5H/QNR8sQaHF40NjgoRFGWK0Tlo X-Received: by 2002:a05:620a:4c5:b0:790:b658:b924 with SMTP id af79cd13be357-794e9e1eb1dmr361284685a.51.1717098589375; Thu, 30 May 2024 12:49:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717098589; cv=pass; d=google.com; s=arc-20160816; b=0opBQt+RIXS2j/w01riNfknx+rkq8uSSh/8qjLMYvooVjdwjP1DABF5b3Q38RdaVEY BX9vda9LiTh6gwjiPo3M8G66NNRnnvZmVmXqBSgGjgjTClv3v2ZN4HZcapyyPkvci2L/ 6HyOEZuXc8wsLpTBppL3U83pZw5g5DP+VadNbVEl5K62D6DEaUxxQo2jnBa4s+bD3dgK n9akPLfilBFJeNBpN91NweA2D/SEjKqn6xWpjeFFtbCS0uGh5W29Bbj75pi4M5eh7VXU xeRm6ovwvmU8gVZCAjskH4TR2oJKfuz+6zXIhbvgJpeLX8b8EW5K1fEHRvaSDhp9Qkpo er1Q== 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=zKGtqPg6wJWus6QsAfVHFU7Wp6LNZ7pRPOofF5Lsqg8=; fh=ttE5Zv4wa4X9pc8fiVuChJp7LxDXg+0kLKkoZ/e8LOQ=; b=RT1HjiQ+KGiew0AQqZZv1WyCo0ekoG+xPziS3XIQ8TaH1sr+RxJ4+w9fegLDgO4D8H /0+IFKu8Qaf9lsLs4Q2a9lXKvB7K6cUE1zrm5ZkYMqNVIs4olJGWGvV4D/OBh9zgjEGK RnxraOv3IKxlSaNgk65u40Mv0Ax8qOFXPwjzyctJ/Z3XMSUvAJ/TfBm53TP6Qnkwuxm7 p7fkXSsJFB1xcdzXDxbCMSho96V8cFQUyjGFfzxwfcVR5RzgmwFlXDhk5eofqVSkXgkh y4e2m6h+Nu6BuvM1xJJ4OrARNdw4hbqnQEP8T0hRuxibNwQNp8JqLv3Odpdxe8Y9WjYQ meQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Bmvq8Sgg; 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-195840-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195840-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f32a5aa6si27652885a.611.2024.05.30.12.49.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 12:49:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195840-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Bmvq8Sgg; 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-195840-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195840-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0FCED1C240C6 for ; Thu, 30 May 2024 19:49:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9CC8D142E71; Thu, 30 May 2024 19:49:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Bmvq8Sgg" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 B3D08433CA; Thu, 30 May 2024 19:49:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717098578; cv=none; b=nCEt6q0U6ZltiTpKIBiCtEFfVc+nx/EF8R/X7cZm+Akntdd6LQYAyjmGZ+OX63tY5I1r/q3YXZ8PeGyeMgHxr5XtKcSFkwzsSXusy93V0xmwAfhjsYzppzupH14yjW4IiWNIJbUTo4uBUiyDrgRYn8AEvaPozI/WZpl+7+LVnVU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717098578; c=relaxed/simple; bh=dw6PHAUiKNZynTrJW/bQdeGSnY0/fN0GNkW1qwkTAPU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sHbvm/EpsXN9yzpFgHEYzhIk7KoALQZUx63UzDhHW6F/qU+oJHkHcdj7cgr8dwjOeKLwDK/HLJqN2Uueb4pQG3J3nv9JF55vHUSBtdldSDx8fyGpRMcigLPOEiBAco1i7LRTPR4m0OZZToqDHIUOiEdt/HGocfgveT+UY0+dgOU= 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=Bmvq8Sgg; arc=none smtp.client-ip=198.175.65.10 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=1717098577; x=1748634577; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=dw6PHAUiKNZynTrJW/bQdeGSnY0/fN0GNkW1qwkTAPU=; b=Bmvq8SggsjX22zAb3RqmjnhQb9dMwMfchVW6dT7tKiGNfY+Ja45zrJXB 5G7vZKJg74LlGrMIZyBHJnfa5wrn76b1DRzEY+EFHiuMEsCDSnsdMj0L7 cywmyWLWTlFkQDz7arHu1u6fb7d6HT6pKQ0L+d1Cim2BuR4dpA02CGn/V hSuIivsJhf22bAbgNNJNgHyt5sEDRC74GFhbB99hhOnt2HgulDLxAZUVA QlUyAZ8pWwyjr51WEMi598Eui9GdgmS4mlnkYUQ6KG6VTFCgxlgvhT7Ch i2XIDNu0b2A28xLwCu47g58ZJd2d+P7DeVF8GMmYUDFeocF/lCP04fKJE w==; X-CSE-ConnectionGUID: 9bvpDVfUSrWh3YIxR128cQ== X-CSE-MsgGUID: HkkLzIBtRdWMzhJTFWtyvA== X-IronPort-AV: E=McAfee;i="6600,9927,11088"; a="31107727" X-IronPort-AV: E=Sophos;i="6.08,202,1712646000"; d="scan'208";a="31107727" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2024 12:49:36 -0700 X-CSE-ConnectionGUID: Jh/LxzXKTK+r0DCwXZWcWQ== X-CSE-MsgGUID: FP8yERaSS/2g2CbiwJf7JA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,202,1712646000"; d="scan'208";a="35850528" Received: from unknown (HELO 0610945e7d16) ([10.239.97.151]) by fmviesa007.fm.intel.com with ESMTP; 30 May 2024 12:49:33 -0700 Received: from kbuild by 0610945e7d16 with local (Exim 4.96) (envelope-from ) id 1sClmE-000FuR-2y; Thu, 30 May 2024 19:49:30 +0000 Date: Fri, 31 May 2024 03:48:51 +0800 From: kernel test robot To: Subbaraya Sundeep , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Subbaraya Sundeep , Sunil Goutham , Linu Cherian , Geetha sowjanya , Jerin Jacob , hariprasad , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: Re: [net-next PATCH] octeontx2: Improve mailbox tracepoints for debugging Message-ID: <202405310351.9HtVnVJ5-lkp@intel.com> References: <1717070038-18381-1-git-send-email-sbhatta@marvell.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: <1717070038-18381-1-git-send-email-sbhatta@marvell.com> Hi Subbaraya, kernel test robot noticed the following build errors: [auto build test ERROR on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Subbaraya-Sundeep/octeontx2-Improve-mailbox-tracepoints-for-debugging/20240530-195537 base: net-next/main patch link: https://lore.kernel.org/r/1717070038-18381-1-git-send-email-sbhatta%40marvell.com patch subject: [net-next PATCH] octeontx2: Improve mailbox tracepoints for debugging config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20240531/202405310351.9HtVnVJ5-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240531/202405310351.9HtVnVJ5-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/202405310351.9HtVnVJ5-lkp@intel.com/ All error/warnings (new ones prefixed by >>): drivers/net/ethernet/marvell/octeontx2/af/mbox.c: In function '__otx2_mbox_reset': >> drivers/net/ethernet/marvell/octeontx2/af/mbox.c:23:29: warning: unused variable 'msg' [-Wunused-variable] 23 | struct mbox_msghdr *msg; | ^~~ drivers/net/ethernet/marvell/octeontx2/af/mbox.c: In function 'otx2_mbox_msg_send_data': >> drivers/net/ethernet/marvell/octeontx2/af/mbox.c:254:9: error: 'msg' undeclared (first use in this function); did you mean 'ndmsg'? 254 | msg = (struct mbox_msghdr *)(hw_mbase + mbox->tx_start + msgs_offset); | ^~~ | ndmsg drivers/net/ethernet/marvell/octeontx2/af/mbox.c:254:9: note: each undeclared identifier is reported only once for each function it appears in vim +254 drivers/net/ethernet/marvell/octeontx2/af/mbox.c 216 217 static void otx2_mbox_msg_send_data(struct otx2_mbox *mbox, int devid, u64 data) 218 { 219 struct otx2_mbox_dev *mdev = &mbox->dev[devid]; 220 struct mbox_hdr *tx_hdr, *rx_hdr; 221 void *hw_mbase = mdev->hwbase; 222 u64 intr_val; 223 224 tx_hdr = hw_mbase + mbox->tx_start; 225 rx_hdr = hw_mbase + mbox->rx_start; 226 227 /* If bounce buffer is implemented copy mbox messages from 228 * bounce buffer to hw mbox memory. 229 */ 230 if (mdev->mbase != hw_mbase) 231 memcpy(hw_mbase + mbox->tx_start + msgs_offset, 232 mdev->mbase + mbox->tx_start + msgs_offset, 233 mdev->msg_size); 234 235 spin_lock(&mdev->mbox_lock); 236 237 tx_hdr->msg_size = mdev->msg_size; 238 239 /* Reset header for next messages */ 240 mdev->msg_size = 0; 241 mdev->rsp_size = 0; 242 mdev->msgs_acked = 0; 243 244 /* Sync mbox data into memory */ 245 smp_wmb(); 246 247 /* num_msgs != 0 signals to the peer that the buffer has a number of 248 * messages. So this should be written after writing all the messages 249 * to the shared memory. 250 */ 251 tx_hdr->num_msgs = mdev->num_msgs; 252 rx_hdr->num_msgs = 0; 253 > 254 msg = (struct mbox_msghdr *)(hw_mbase + mbox->tx_start + msgs_offset); 255 256 trace_otx2_msg_send(mbox->pdev, tx_hdr->num_msgs, tx_hdr->msg_size, 257 msg->id, msg->pcifunc); 258 259 spin_unlock(&mdev->mbox_lock); 260 261 /* Check if interrupt pending */ 262 intr_val = readq((void __iomem *)mbox->reg_base + 263 (mbox->trigger | (devid << mbox->tr_shift))); 264 265 intr_val |= data; 266 /* The interrupt should be fired after num_msgs is written 267 * to the shared memory 268 */ 269 writeq(intr_val, (void __iomem *)mbox->reg_base + 270 (mbox->trigger | (devid << mbox->tr_shift))); 271 } 272 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki