From nobody Fri Dec 19 21:47:58 2025 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 DD2BD169361 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=1716960983; cv=none; b=Bz1Sgt7vv5TWLfxUfKkRPnMMaE0JirwxEYFFQHq2i3RzACxzl/LGecvzYtyYOOVA0TvhV0oo+SnyTCK7BykSWAdxpJC3sLeQc7aE8rG3HC0qGJbPG+xJQVJFpR0W3C4NqOqCgs+b/82FRthvn5yUGUcEUg9Z4ts6EAvSYGTrCfM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716960983; c=relaxed/simple; bh=b4g7oPuUpFCf7ehXVGbGAAANzK1lpGoRJJpR32Cbgc4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dCoN4wbOc1twV5RTOL5l0ktpbqiJBxxAcEf+eR0vn7ffcyHJ4WoIPJ7W18+IfDti4XOqXHmhp31Yp4/nRTfkdZCHR0Lp75365T94j2ge5G88VGqoEn3hVk9GgOK57QT2pVhb+AvD7TRSv9Ny9GHd+8xB2K/Ke9U84Mg8gBfpGEY= 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=MtQRuAwV; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MtQRuAwV" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716960982; x=1748496982; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=b4g7oPuUpFCf7ehXVGbGAAANzK1lpGoRJJpR32Cbgc4=; b=MtQRuAwVDwjaHlFy08UV2efRhFgL668SHjzjjOQ6h6LwkSe98pVEn+Pm 7Ccpv86MFUxka+FjC2IrhSQjTjqXY5KmhKLAt/lX53XNvEPZ/bFPuRXeF t5iCibF8Z+S2S//9GYL1dWLPwKP3faQnkh4u+OBJ+YiSP506pyB+fVL+O dnWiTwDFw8f29zziTo06+9PBi9lrVc2nnJ/t8OigYR73E+1FXz7ZPZk5S fP/jy6pq3fCO8fjNmrv2H/tlN68J8ZMPMJyluymCDyi4CHksK+bYRZDua gkVYnVYVRx5YJaiINQjE7nfSUJ1ZfrxS4mj11hZvrrcS7ScA63JeGFfmP w==; X-CSE-ConnectionGUID: ia63W5EGT56wWlHk+88+AQ== X-CSE-MsgGUID: d8kRWINnSd+aDbBwXzIDHw== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="13569008" X-IronPort-AV: E=Sophos;i="6.08,197,1712646000"; d="scan'208";a="13569008" 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:58 -0700 X-CSE-ConnectionGUID: V3zZjpVoRS2Q2WQoWQMxtQ== X-CSE-MsgGUID: 5T9hg/jYScSPheKhITTpNw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,197,1712646000"; d="scan'208";a="35257707" 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:53 -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 12/20] wifi: ath11k: Use iommu_paging_domain_alloc() Date: Wed, 29 May 2024 13:32:42 +0800 Message-Id: <20240529053250.91284-13-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: quoted-printable Content-Type: text/plain; charset="utf-8" An iommu domain is allocated in ath11k_ahb_fw_resources_init() and is attached to ab_ahb->fw.dev in the same function. Use iommu_paging_domain_alloc() to make it explicit. Signed-off-by: Lu Baolu --- drivers/net/wireless/ath/ath11k/ahb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/ahb.c b/drivers/net/wireless/a= th/ath11k/ahb.c index ca0f17ddebba..a469647719f9 100644 --- a/drivers/net/wireless/ath/ath11k/ahb.c +++ b/drivers/net/wireless/ath/ath11k/ahb.c @@ -1001,10 +1001,10 @@ static int ath11k_ahb_fw_resources_init(struct ath1= 1k_base *ab) =20 ab_ahb->fw.dev =3D &pdev->dev; =20 - iommu_dom =3D iommu_domain_alloc(&platform_bus_type); - if (!iommu_dom) { + iommu_dom =3D iommu_paging_domain_alloc(ab_ahb->fw.dev); + if (IS_ERR(iommu_dom)) { ath11k_err(ab, "failed to allocate iommu domain\n"); - ret =3D -ENOMEM; + ret =3D PTR_ERR(iommu_dom); goto err_unregister; } =20 --=20 2.34.1