Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1553296pxb; Wed, 2 Feb 2022 07:31:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyI33wg4lx4btqKpNgrbday3kaFRHujp+L2BCvh+vDp70XbaRXsYjoUps3z0Hp5SKXZOUzI X-Received: by 2002:a17:906:d283:: with SMTP id ay3mr25138145ejb.249.1643815874716; Wed, 02 Feb 2022 07:31:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643815874; cv=none; d=google.com; s=arc-20160816; b=unu8dEtUplL3fgbDkoVBrpmFJIBrXCSGYcdTLOzLr5t2uVyLcsyRu2rPnIFJAHc8b3 Gyhl9hg3I20YPAPdrAV1TwSZ2Zpg9Ed/Go1DO/D33deY/x4VtbuNCPQNpm3vKlOLbImj CP9Lyjd8FCLgxC4NxjPzwnMl27hBWLEKL/zh3QDq7/yxEBVE+OKVh+/QahPpWzUZRhuJ BaF1rGr8Vo1bOIAj0j9KekuxwYKE5BwwBWOmEdHGocJsjfpDHpGQP8dlCIEapat/HDFl 0DFMFGo42AD99qZhRV72ny8F+Qr+PQ7ah/IQvRJ8rGOj+1I9fTNKmDZfiD6dMfz3EAtR 2grw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=c9Y39YdzGfBtcVWYYBAdc2TsAQrSxLYIdjcEtviD9q4=; b=ZlkI/27QISC83QdNMSvKx5gyDjA7YOeTbF0oAjUK78aR/mbaD0nkuDXKCh0EAvwPVU C00mfrMjEd8zi6kt5vfqizccSbj7n2Q9pFLFJEZWmdH4rqiYYMlxVqagwZbBxrODPqdg LBQYX5y90JUCMlMkG5/tJ7NF+95qsZ27U2zISYRsbj4bMJIlnfWHAk0u0GMo+J4/Ynae Jsl/2kVuUE0Q5zEz8wf4SYhLPYJ24IIlEgaYCTG0jMHoZQA8CTxLUJ7NGjYZ/D9BxbKO RU/x0oG/xNP6QhSHOiqOCMp3a4crEpynaG9JxpVpm0/MYZtdnz9OISwVuLgpCNlVhk6G 10iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="ANgMdD/g"; 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 dp20si11763904ejc.526.2022.02.02.07.30.48; Wed, 02 Feb 2022 07:31:14 -0800 (PST) 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="ANgMdD/g"; 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 S234488AbiBAHB0 (ORCPT + 99 others); Tue, 1 Feb 2022 02:01:26 -0500 Received: from mga12.intel.com ([192.55.52.136]:2400 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231231AbiBAHBZ (ORCPT ); Tue, 1 Feb 2022 02:01:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643698885; x=1675234885; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=jRNs7ogHWPGoLBMk4Bb5fE9HNjneVYvi8uKyHW569M4=; b=ANgMdD/gU86wi43fnxBLG8sURjLkxWiQJ0movArCnbRt8MUetiijw/86 bNSplOp3qrvmTrsdGaYYInoHPdeAvnURXN75ty18rgkaw3QzS+t04g+E7 EFk5zAjOuOpRVX/+S/HNpxe0kj+SGcddqvnfh6TeOur5vteR3I2fr+HFX i/DvZL75/ticxW7+1Eow+SUTrwZvBu4PHwJktS6Zfzheqk6k5ElDuMcdu NRR/sR6CGlhq2k4lks/uFmWQIPlgWCDfs0XWD4ItAFOGzcjnQxmQeInH5 LNz+8usJeB3Q/NEAQA87T6kManGE10h+3ocHxYDEhVhzxPCjVVO5GCuXg w==; X-IronPort-AV: E=McAfee;i="6200,9189,10244"; a="227605196" X-IronPort-AV: E=Sophos;i="5.88,333,1635231600"; d="scan'208";a="227605196" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2022 23:01:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,333,1635231600"; d="scan'208";a="768845209" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 31 Jan 2022 23:01:23 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nEnAI-000SvW-VH; Tue, 01 Feb 2022 07:01:22 +0000 Date: Tue, 1 Feb 2022 15:01:19 +0800 From: kernel test robot To: Joerg Roedel , iommu@lists.linux-foundation.org Cc: kbuild-all@lists.01.org, Joerg Roedel , Suravee Suthikulpanit , Will Deacon , linux-kernel@vger.kernel.org, Maxim Levitsky Subject: Re: [PATCH] iommu/amd: Fix loop timeout issue in iommu_ga_log_enable() Message-ID: <202202011448.2UFIiZHD-lkp@intel.com> References: <20220131161749.4021-1-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220131161749.4021-1-joro@8bytes.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Joerg, I love your patch! Yet something to improve: [auto build test ERROR on joro-iommu/next] [also build test ERROR on v5.17-rc2 next-20220131] [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] url: https://github.com/0day-ci/linux/commits/Joerg-Roedel/iommu-amd-Fix-loop-timeout-issue-in-iommu_ga_log_enable/20220201-002214 base: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git next config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220201/202202011448.2UFIiZHD-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/5b5785526da0e2a6e793d2107d09afc9f310f17f git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Joerg-Roedel/iommu-amd-Fix-loop-timeout-issue-in-iommu_ga_log_enable/20220201-002214 git checkout 5b5785526da0e2a6e793d2107d09afc9f310f17f # save the config file to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/iommu/amd/init.c: In function 'iommu_ga_log_enable': >> drivers/iommu/amd/init.c:837:3: error: implicit declaration of function 'udelay' [-Werror=implicit-function-declaration] 837 | udelay(1); | ^~~~~~ cc1: some warnings being treated as errors vim +/udelay +837 drivers/iommu/amd/init.c 804 805 static int iommu_ga_log_enable(struct amd_iommu *iommu) 806 { 807 #ifdef CONFIG_IRQ_REMAP 808 u32 status, i; 809 u64 entry; 810 811 if (!iommu->ga_log) 812 return -EINVAL; 813 814 /* Check if already running */ 815 status = readl(iommu->mmio_base + MMIO_STATUS_OFFSET); 816 if (WARN_ON(status & (MMIO_STATUS_GALOG_RUN_MASK))) 817 return 0; 818 819 entry = iommu_virt_to_phys(iommu->ga_log) | GA_LOG_SIZE_512; 820 memcpy_toio(iommu->mmio_base + MMIO_GA_LOG_BASE_OFFSET, 821 &entry, sizeof(entry)); 822 entry = (iommu_virt_to_phys(iommu->ga_log_tail) & 823 (BIT_ULL(52)-1)) & ~7ULL; 824 memcpy_toio(iommu->mmio_base + MMIO_GA_LOG_TAIL_OFFSET, 825 &entry, sizeof(entry)); 826 writel(0x00, iommu->mmio_base + MMIO_GA_HEAD_OFFSET); 827 writel(0x00, iommu->mmio_base + MMIO_GA_TAIL_OFFSET); 828 829 830 iommu_feature_enable(iommu, CONTROL_GAINT_EN); 831 iommu_feature_enable(iommu, CONTROL_GALOG_EN); 832 833 for (i = 0; i < LOOP_TIMEOUT; ++i) { 834 status = readl(iommu->mmio_base + MMIO_STATUS_OFFSET); 835 if (status & (MMIO_STATUS_GALOG_RUN_MASK)) 836 break; > 837 udelay(1); 838 } 839 840 if (WARN_ON(i >= LOOP_TIMEOUT)) 841 return -EINVAL; 842 #endif /* CONFIG_IRQ_REMAP */ 843 return 0; 844 } 845 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org