Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp425813lqb; Tue, 28 May 2024 22:39:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVaTEQAeZKpDmxeqiXJEwmmWZk4oPyugquiQn5tZwdS2XLPPt+jZ76++C1J7+5OAZoqOFra8Dd71zoDC/DAEwtMGFxh7l2ZQE5nktrMCQ== X-Google-Smtp-Source: AGHT+IHUIrm2GWxN4u4Rt1cq813XQ33wnFlJZ8JmX7ydljb0R97NI6uVnlagvn8GApeN2Bp2oWn6 X-Received: by 2002:a05:6214:3b87:b0:6ad:646a:6446 with SMTP id 6a1803df08f44-6ad64d035bfmr130001816d6.53.1716961168961; Tue, 28 May 2024 22:39:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716961168; cv=pass; d=google.com; s=arc-20160816; b=UYsw95XXhxNrhwksooK6pxKoWSBKIk2zxY/5Qv9dBsK6t+0/yv5ACmeh2YJ/G6ODfy OybUBDARBJj706nX0S+c7AuOnDNLqz8mxnaWd8Fj+jvssFGyJJTg9jQJ82YmAzUruIZ1 mEbYKc/zOpDhzi4gF8Az1anMfPHJUJ7kf2jnabhhKtA+aWDnbItThdgkf7BCApnRvVNv vJ7Fkf1LdixzKJW8125VS/FFcMs1TJMImIKjq6mBRz0Y1OkzOJRXFS/LBjyl/10a6VQr Y8AsNN/1Y/X6SKvRgTIAwBwwjJiwL3CSZAZRtm+/lNliKqhzcyb7ERgRhEpLQTL2ZZhk RIIQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=pmUR3XU4H/N6byFVKVSNtm4FRpQ23srFzF9Zkp0hkjk=; fh=u7VIfotmvhCnFPKh0R845OAh004BwcT1TGiZ1dQEGzo=; b=WsPoAwfpAnLMZpUqRcw2v/a2QNQcMb9DIsUHPok8oXeH0T+C4mJrl1gU2s7UYN6tb7 Hw3VbQXkyxpov8iZ/rtn4CwVzz5AXzEWlKtoICT8PDh2BKvhaPNERTL+mpy2qRs89XvD FdRKmYHeyjLjE1njNnD18IDdnUwSV8jCYj1PFENUn4fUxOUaea6uT9DQP+knL8oR3Q7p pIierr4BJQoG8g0336lLCT6ldUUePFHJihSH8JRVMov/iNHfftpXts81sXWJVpnjIN3g i4ZgxQViqkn/jymXdKB79esbqdNaIxOzJuuBamQMOz7KUo1UvCJufpBx8Y1TOsMVuqQg WL+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HcQziK3t; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-193461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193461-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 6a1803df08f44-6ad78598900si79140366d6.549.2024.05.28.22.39.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 22:39:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193461-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=HcQziK3t; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-193461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193461-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 A17781C23EA7 for ; Wed, 29 May 2024 05:39:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F7B2169ACA; Wed, 29 May 2024 05:36:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="HcQziK3t" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 691B9168C30 for ; Wed, 29 May 2024 05:36:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716960982; cv=none; b=IxecGxOavo6MKnqKwzjrYEUUQ5KeqsK6T9LKDpR+9SbCxs6fYVE9jQa+AWyg5t1faj0Y8SCIoIjSy8U5b8Het+84ho34U3OFif8ilUn6lqdjyjnlbniYrkfIwOHhWOUSjRsO71/xybqPDJgpFjKC6S3/TWcgqgSP6PhJvgi72W8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716960982; c=relaxed/simple; bh=kv68qkR9q97yuL81djioGxxqJnKTS0o+E5D+XI6WQks=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=rOqTNXJov5Vod7RETYgZ6U/JRCVdC3gl8ta5JC+ztnQwbqDNt3M31vJO9kUe7ojN4Hy3wf3p443/kw8q44YAl3p65m8jIcavgsIXYmu8hsise2fiphX+JfncrfkL5vv1r8Cf4ArggQBr61IVVcr5MuxaI7sU/bxW4rjG+JoJ/uE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=HcQziK3t; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716960981; x=1748496981; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kv68qkR9q97yuL81djioGxxqJnKTS0o+E5D+XI6WQks=; b=HcQziK3tU8ko5rBsD4T4oy7vsL7TH7tjnzBVa88FmSktuZJlFltrT1sj GGNKv1gLDi9hVohbJ8TGph1YSKXPT3ynNzkULpbtVq8s5q7L2Q6aAawq5 3/nDwaA5OpxpR+pPdW6tN3UU1PuMjfrUFy6oi9tqmxFdxC9lODcbEeZ8e 1MkI1nWvKHCOg6dU3f7YJ/jaCHLDkOIwqXSeifFN/M/rgUQExaOkY1hXN iJ2hNdoFdCtHgGSOph+FTSREP8e2DW52kOBJDM2PxLFkgL249iAtBewHH COxKPevdmKJ7fQasVLTCKtyduVdQh7tar10ytPYeP+qCFEss52fi3IJrj Q==; X-CSE-ConnectionGUID: gbNesxW2S52PsKRKQvw26A== X-CSE-MsgGUID: fm/zf7IESDO+2GkRgd47Aw== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="13568996" X-IronPort-AV: E=Sophos;i="6.08,197,1712646000"; d="scan'208";a="13568996" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2024 22:35:53 -0700 X-CSE-ConnectionGUID: C5UxFXeCS62GXV5ofkH9mg== X-CSE-MsgGUID: 0gi2TYzwQaSnWJDrgXMwWA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,197,1712646000"; d="scan'208";a="35257688" Received: from unknown (HELO allen-box.sh.intel.com) ([10.239.159.127]) by fmviesa007.fm.intel.com with ESMTP; 28 May 2024 22:35:49 -0700 From: Lu Baolu To: Joerg Roedel , Will Deacon , Robin Murphy , Jason Gunthorpe , Kevin Tian Cc: Yi Liu , David Airlie , Daniel Vetter , Kalle Valo , Bjorn Andersson , Mathieu Poirier , Alex Williamson , mst@redhat.com, Jason Wang , Thierry Reding , Jonathan Hunter , Mikko Perttunen , iommu@lists.linux.dev, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Lu Baolu Subject: [PATCH 11/20] ath10k: Use iommu_paging_domain_alloc() Date: Wed, 29 May 2024 13:32:41 +0800 Message-Id: <20240529053250.91284-12-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240529053250.91284-1-baolu.lu@linux.intel.com> References: <20240529053250.91284-1-baolu.lu@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit An iommu domain is allocated in ath10k_fw_init() and is attached to ar_snoc->fw.dev in the same function. Use iommu_paging_domain_alloc() to make it explicit. Signed-off-by: Lu Baolu --- drivers/net/wireless/ath/ath10k/snoc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/snoc.c b/drivers/net/wireless/ath/ath10k/snoc.c index 8530550cf5df..0fe47d51013c 100644 --- a/drivers/net/wireless/ath/ath10k/snoc.c +++ b/drivers/net/wireless/ath/ath10k/snoc.c @@ -1635,10 +1635,10 @@ static int ath10k_fw_init(struct ath10k *ar) ar_snoc->fw.dev = &pdev->dev; - iommu_dom = iommu_domain_alloc(&platform_bus_type); - if (!iommu_dom) { + iommu_dom = iommu_paging_domain_alloc(ar_snoc->fw.dev); + if (IS_ERR(iommu_dom)) { ath10k_err(ar, "failed to allocate iommu domain\n"); - ret = -ENOMEM; + ret = PTR_ERR(iommu_dom); goto err_unregister; } -- 2.34.1