Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7617604rwl; Thu, 23 Mar 2023 06:45:46 -0700 (PDT) X-Google-Smtp-Source: AK7set89MZ+Vd75odcl9oZXjl3KMnRyo9uA0yrBtFs0FMZfaEFrC8SPW651CvWNsGMfVbQsgkLbw X-Received: by 2002:a17:906:3a94:b0:931:d8db:8a2f with SMTP id y20-20020a1709063a9400b00931d8db8a2fmr11213279ejd.58.1679579146794; Thu, 23 Mar 2023 06:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679579146; cv=none; d=google.com; s=arc-20160816; b=fZk32G9z8+NIq4sP8MuTMm7wMG5or1FkaxwPY+1VNikut4czwRXdQ2mwtHwivT/sxa lnXMeQhRPyk+M5tgNuIj1nNS38N96vFPObG08tvpJhytJpvnAdrD2L/e6kpGL2NR9z+j xmS92Q1v7HjC165XoUF/sUgNTnBPahmVKo+9PF4XHOaOAFm32YLDfPLo0TOX2lRw/kRw 0yU/uzYXe/Dcniqvf4vSLarNqMGw4ubIlbLWLKiSAoRTTiIxxRQ7768I4TaZVK5n1k4m /HBTwSvYQzzsjyFF63SCIc62khfzkHPtfZ0Jmo9WqndE6sJwqLHG9+AfokcY6qFqNa6m 7ayw== 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=xeV53QE/FVevru7rxOBB2JO/5gpGBIiKynTYVKV5FX0=; b=DyzrJyabuC7dDPI4QauV+v3mevhTNmR4esLECJR3qSabxzAltePkJm/HICYukq593W VSloTpi7mqOXUDPLo0dCUPBCmVYMLKX2NY1dZSbbVGrvahPjBAul8fzxTGuAr+/YcdSB 7o4aOqlIRvccb1HZ/UqULUOnlhiXHx+MG63lSXZbPqc5ZnaP6tr0ODA+nwycKGwrjtyP TWcNfAxcKxObUGQ5rNaticgLYw79MOfBo2BMiY1eUOrWK193EkS0dbN25nahfGBPpSGA 48qqjpRMb4ca8zd7VIWqDEBGE+HX758whfA5hIB8+ngph1KQ0XOTUhMrBkVJLfSjWUAG J15g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="P/pFwZSs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a170906114500b00930ce4af913si16483536eja.122.2023.03.23.06.45.23; Thu, 23 Mar 2023 06:45:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="P/pFwZSs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231476AbjCWNdH (ORCPT + 99 others); Thu, 23 Mar 2023 09:33:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231767AbjCWNdB (ORCPT ); Thu, 23 Mar 2023 09:33:01 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84F6723C41 for ; Thu, 23 Mar 2023 06:32:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679578378; x=1711114378; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=uqQSc+v2/TMDzubfF7ygdSeqEdNvDr6jR/3c2Yhry5Q=; b=P/pFwZSsYD4lJWhTjdkUwan1xr5qqZt5y8ia86YcLCW3iJS/qUG5yvVm As9JC/2Nm0UItSLz9LsC+zUmQUbbVViDi45MivtiwB2Ld5xuoLlhgwzf5 DcSoYXaD9IrNS9rGTn7VrYwcyt5kcChDIhMXfdwFnnfGnsU3MxIvKylcG cB5IccNWjFP5L3dT8an0n12EorwxO+zwhZVuBFswT55knKZnPKIKcAoUz HMEJGrEsO+iF1g9odRjnriQ6BL4jxfsHbpsF7Bytj7x9eiA2AydX3+QUo ugXgvhTcPfcvOY5uIiu3rgEfniaLkzY/io+5TdBbUARd/pmJEAMklSwj2 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="341031973" X-IronPort-AV: E=Sophos;i="5.98,285,1673942400"; d="scan'208";a="341031973" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2023 06:15:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="746711569" X-IronPort-AV: E=Sophos;i="5.98,283,1673942400"; d="scan'208";a="746711569" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 23 Mar 2023 06:15:27 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pfKms-000ENk-2n; Thu, 23 Mar 2023 13:15:26 +0000 Date: Thu, 23 Mar 2023 21:15:02 +0800 From: kernel test robot To: Cai Huoqing Cc: oe-kbuild-all@lists.linux.dev, Sanjay R Mehta , Shyam Sundar S K , Jon Mason , Dave Jiang , Allen Hubbe , Frank Li , ntb@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] ntb: epf: Remove redundant pci_clear_master Message-ID: <202303232151.ldN29HC6-lkp@intel.com> References: <20230323115336.12986-2-cai.huoqing@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230323115336.12986-2-cai.huoqing@linux.dev> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Cai, I love your patch! Yet something to improve: [auto build test ERROR on jonmason-ntb/ntb-next] [also build test ERROR on linus/master v6.3-rc3 next-20230323] [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/Cai-Huoqing/ntb-epf-Remove-redundant-pci_clear_master/20230323-195616 base: https://github.com/jonmason/ntb ntb-next patch link: https://lore.kernel.org/r/20230323115336.12986-2-cai.huoqing%40linux.dev patch subject: [PATCH 2/3] ntb: epf: Remove redundant pci_clear_master config: ia64-allyesconfig (https://download.01.org/0day-ci/archive/20230323/202303232151.ldN29HC6-lkp@intel.com/config) compiler: ia64-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/aa42a659eb567a583441b91cb47fd1727fa714df git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Cai-Huoqing/ntb-epf-Remove-redundant-pci_clear_master/20230323-195616 git checkout aa42a659eb567a583441b91cb47fd1727fa714df # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/ntb/hw/epf/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303232151.ldN29HC6-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/ntb/hw/epf/ntb_hw_epf.c: In function 'ntb_epf_init_pci': >> drivers/ntb/hw/epf/ntb_hw_epf.c:609:25: error: label 'err_dma_mask' used but not defined 609 | goto err_dma_mask; | ^~~~ vim +/err_dma_mask +609 drivers/ntb/hw/epf/ntb_hw_epf.c 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 565 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 566 static int ntb_epf_init_pci(struct ntb_epf_dev *ndev, 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 567 struct pci_dev *pdev) 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 568 { 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 569 struct device *dev = ndev->dev; e75d5ae8ab88b7 Frank Li 2022-02-22 570 size_t spad_sz, spad_off; 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 571 int ret; 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 572 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 573 pci_set_drvdata(pdev, ndev); 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 574 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 575 ret = pci_enable_device(pdev); 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 576 if (ret) { 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 577 dev_err(dev, "Cannot enable PCI device\n"); 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 578 goto err_pci_enable; 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 579 } 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 580 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 581 ret = pci_request_regions(pdev, "ntb"); 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 582 if (ret) { 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 583 dev_err(dev, "Cannot obtain PCI resources\n"); 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 584 goto err_pci_regions; 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 585 } 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 586 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 587 pci_set_master(pdev); 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 588 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 589 ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64)); 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 590 if (ret) { 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 591 ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32)); 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 592 if (ret) { 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 593 dev_err(dev, "Cannot set DMA mask\n"); 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 594 goto err_dma_mask; 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 595 } 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 596 dev_warn(&pdev->dev, "Cannot DMA highmem\n"); 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 597 } 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 598 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 599 ndev->ctrl_reg = pci_iomap(pdev, ndev->ctrl_reg_bar, 0); 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 600 if (!ndev->ctrl_reg) { 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 601 ret = -EIO; 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 602 goto err_dma_mask; 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 603 } 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 604 e75d5ae8ab88b7 Frank Li 2022-02-22 605 if (ndev->peer_spad_reg_bar) { 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 606 ndev->peer_spad_reg = pci_iomap(pdev, ndev->peer_spad_reg_bar, 0); 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 607 if (!ndev->peer_spad_reg) { 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 608 ret = -EIO; 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 @609 goto err_dma_mask; 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 610 } e75d5ae8ab88b7 Frank Li 2022-02-22 611 } else { e75d5ae8ab88b7 Frank Li 2022-02-22 612 spad_sz = 4 * readl(ndev->ctrl_reg + NTB_EPF_SPAD_COUNT); e75d5ae8ab88b7 Frank Li 2022-02-22 613 spad_off = readl(ndev->ctrl_reg + NTB_EPF_SPAD_OFFSET); e75d5ae8ab88b7 Frank Li 2022-02-22 614 ndev->peer_spad_reg = ndev->ctrl_reg + spad_off + spad_sz; e75d5ae8ab88b7 Frank Li 2022-02-22 615 } 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 616 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 617 ndev->db_reg = pci_iomap(pdev, ndev->db_reg_bar, 0); 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 618 if (!ndev->db_reg) { 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 619 ret = -EIO; aa42a659eb567a Cai Huoqing 2023-03-23 620 goto err_pci_regions; 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 621 } 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 622 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 623 return 0; 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 624 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 625 err_pci_regions: 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 626 pci_disable_device(pdev); 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 627 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 628 err_pci_enable: 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 629 pci_set_drvdata(pdev, NULL); 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 630 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 631 return ret; 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 632 } 812ce2f8d14ea7 Kishon Vijay Abraham I 2021-02-02 633 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests