All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Pranjal Shrivastava <praan@google.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH v2 10/10] iommu/arm-smmu-v3: Invoke pm_runtime before hw access
Date: Sat, 19 Apr 2025 22:13:50 +0800	[thread overview]
Message-ID: <202504192248.FUDmPe37-lkp@intel.com> (raw)
In-Reply-To: <20250418233409.3926715-11-praan@google.com>

Hi Pranjal,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:

[auto build test WARNING on arm-perf/for-next/perf]
[also build test WARNING on linus/master v6.15-rc2 next-20250417]
[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/Pranjal-Shrivastava/iommu-arm-smmu-v3-Refactor-arm_smmu_setup_irqs/20250419-073729
base:   https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git for-next/perf
patch link:    https://lore.kernel.org/r/20250418233409.3926715-11-praan%40google.com
patch subject: [RFC PATCH v2 10/10] iommu/arm-smmu-v3: Invoke pm_runtime before hw access
config: arm64-randconfig-001-20250419 (https://download.01.org/0day-ci/archive/20250419/202504192248.FUDmPe37-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250419/202504192248.FUDmPe37-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504192248.FUDmPe37-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c: In function 'arm_smmu_attach_dev_nested':
>> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c:150:26: warning: unused variable 'smmu' [-Wunused-variable]
     struct arm_smmu_device *smmu = master->smmu;
                             ^~~~


vim +/smmu +150 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c

   138	
   139	static int arm_smmu_attach_dev_nested(struct iommu_domain *domain,
   140					      struct device *dev)
   141	{
   142		struct arm_smmu_nested_domain *nested_domain =
   143			to_smmu_nested_domain(domain);
   144		struct arm_smmu_master *master = dev_iommu_priv_get(dev);
   145		struct arm_smmu_attach_state state = {
   146			.master = master,
   147			.old_domain = iommu_get_domain_for_dev(dev),
   148			.ssid = IOMMU_NO_PASID,
   149		};
 > 150		struct arm_smmu_device *smmu = master->smmu;
   151		struct arm_smmu_ste ste;
   152		int ret;
   153	
   154		if (nested_domain->vsmmu->smmu != master->smmu)
   155			return -EINVAL;
   156		if (arm_smmu_ssids_in_use(&master->cd_table))
   157			return -EBUSY;
   158	
   159		mutex_lock(&arm_smmu_asid_lock);
   160		/*
   161		 * The VM has to control the actual ATS state at the PCI device because
   162		 * we forward the invalidations directly from the VM. If the VM doesn't
   163		 * think ATS is on it will not generate ATC flushes and the ATC will
   164		 * become incoherent. Since we can't access the actual virtual PCI ATS
   165		 * config bit here base this off the EATS value in the STE. If the EATS
   166		 * is set then the VM must generate ATC flushes.
   167		 */
   168		state.disable_ats = !nested_domain->enable_ats;
   169		ret = arm_smmu_attach_prepare(&state, domain);
   170		if (ret) {
   171			mutex_unlock(&arm_smmu_asid_lock);
   172			return ret;
   173		}
   174	
   175		arm_smmu_make_nested_domain_ste(&ste, master, nested_domain,
   176						state.ats_enabled);
   177		arm_smmu_install_ste_for_dev(master, &ste);
   178		arm_smmu_attach_commit(&state);
   179		mutex_unlock(&arm_smmu_asid_lock);
   180		return 0;
   181	}
   182	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2025-04-19 14:14 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-18 23:33 [RFC PATCH v2 00/10] iommu/arm-smmu-v3: Implement Runtime/System Sleep ops Pranjal Shrivastava
2025-04-18 23:34 ` [RFC PATCH v2 01/10] iommu/arm-smmu-v3: Refactor arm_smmu_setup_irqs Pranjal Shrivastava
2025-05-02 19:14   ` Nicolin Chen
2025-04-18 23:34 ` [RFC PATCH v2 02/10] iommu/arm-smmu-v3: Add a helper to drain all queues Pranjal Shrivastava
2025-05-02 19:32   ` Nicolin Chen
2025-05-05 15:14     ` Pranjal Shrivastava
2025-05-04 20:28   ` Daniel Mentz
2025-05-05 15:10     ` Pranjal Shrivastava
2025-04-18 23:34 ` [RFC PATCH v2 03/10] iommu/tegra241-cmdqv: Add a helper to drain VCMDQs Pranjal Shrivastava
2025-04-23  6:34   ` Nicolin Chen
2025-04-18 23:34 ` [RFC PATCH v2 04/10] iommu/arm-smmu-v3: Cache and restore MSI config Pranjal Shrivastava
2025-05-02 19:43   ` Nicolin Chen
2025-05-05 15:16     ` Pranjal Shrivastava
2025-04-18 23:34 ` [RFC PATCH v2 05/10] iommu/arm-smmu-v3: Implement pm_runtime & system sleep ops Pranjal Shrivastava
2025-05-04 20:29   ` Daniel Mentz
2025-05-05 15:22     ` Pranjal Shrivastava
2025-04-18 23:34 ` [RFC PATCH v2 06/10] iommu: Add a helper to check for user ownership Pranjal Shrivastava
2025-04-19 14:03   ` kernel test robot
2025-04-18 23:34 ` [RFC PATCH v2 07/10] iommu/arm-smmu-v3: Track masters with user-owned groups Pranjal Shrivastava
2025-04-18 23:34 ` [RFC PATCH v2 08/10] iommu/arm-smmu-v3: Avoid suspend when user owns DMA Pranjal Shrivastava
2025-05-04 20:28   ` Daniel Mentz
2025-05-05 15:22     ` Pranjal Shrivastava
2025-04-18 23:34 ` [RFC PATCH v2 09/10] iommu/arm-smmu-v3: Enable pm_runtime and setup devlinks Pranjal Shrivastava
2025-04-18 23:34 ` [RFC PATCH v2 10/10] iommu/arm-smmu-v3: Invoke pm_runtime before hw access Pranjal Shrivastava
2025-04-19 14:13   ` kernel test robot [this message]
2025-05-04 20:29   ` Daniel Mentz
2025-05-05 16:10     ` Pranjal Shrivastava

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202504192248.FUDmPe37-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=praan@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.