Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp446822lqb; Tue, 28 May 2024 23:36:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvW4mSANoO7jZPqhHts1sofzC5QZUmUMKOJ0/L3IrXFq9iVGEo1nA7JXCOB2EhMxva7B8d97pOgYr7jJJS8wmZozdQcWwZlUSfeUo/vg== X-Google-Smtp-Source: AGHT+IFkbMP94QcmKMSpvQvWWpzgnLS+zXFRX+1ppx8ItozYBbxHVLXgTS8JJA9rb9Lv0KQmGuZx X-Received: by 2002:a17:902:db0d:b0:1f4:8bcb:8b01 with SMTP id d9443c01a7336-1f48bcb8ccemr92644415ad.40.1716964587783; Tue, 28 May 2024 23:36:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716964587; cv=pass; d=google.com; s=arc-20160816; b=vwL3exO4e1Kv/cvIKnTZimvDi3ipSVay/q4mc2y/+he2GK6FbEecShM1hWSNFy7nQp Ljncw4TA//R3O+ULspcH+lGkqszrBKMB4NVKWfH8YO6oPiD6kMiF2OSXpxf2n2zCIQ4/ bzEYJ9CVZGF0TWqzr26+dCFDjHo60wQam3DkwHteadJcqCDltTMtbg7qgdR2VKW+DD1c R4PBspkRaBChyf64Fldv55nNW+c85mhOIyYbvtsvnA7u3PoDJXPmoQ077mFwZCLJN83V t4PlClClJt+SafSrr2YQurP81EJY6DSdeQM4N3vVvRRM7gr2P8+dAkF8oZqk5/t50Mj5 Kktw== 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=JSgTsoKpW1wdN1fo4DxunuNUiWBbKd4+Nx1OYY3Stpg=; fh=u7VIfotmvhCnFPKh0R845OAh004BwcT1TGiZ1dQEGzo=; b=W2NEOHdT76LDIrt5u0A1jt1haEopLguKgS7PCdiG4TwD+erp1p/FG+O2QhhGgoMEk3 /Pww3R4goN99X2KBmOVsspbVYZGA5lEdi+fyIuEUny+LIoAK/GTIZzYkBNsdIvmoVbd3 JlyRqPtzkExhjLQ2wci5rPIP9ss8QOoNUBn25s6aIOUKqC+dBCGNAhjyhvRaDsBbMycf ScsJ3fpSTDXW4+mzzy47HpEMMDsuo+omUer80QocK2Vw9ljVcmydyygLBR+696bacJ9R 9gUKvgSJqpawFuhTXWpsQCuSOHnO9IpOPl5XNkXTlalMqUFlNCNt4wcu1lKnP+Upojx0 oDZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NtjhazK5; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-193464-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193464-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c9cba3asi91826875ad.506.2024.05.28.23.36.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 23:36:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193464-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NtjhazK5; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-193464-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193464-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2636928C1CE for ; Wed, 29 May 2024 05:40:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5079316B74D; Wed, 29 May 2024 05:36:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NtjhazK5" 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 0D454169ADC for ; Wed, 29 May 2024 05:36:24 +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=1716960985; cv=none; b=OaTZSK3ZfNHjqmD6R6vWfFBpEkxkWqUWXx41yG/G/eu4/tbZ/v5Wndf/VEF3TshKTB7eVrJNDZ3q4R6lb/gMX4fTmj5bQwoMslQV/HJlrwQbvEvWhVbi9btgoq+e4Db/KgWx8mZ/A9ksw42flTQV8wCtdiZ9ea74qo5Q3fJc7fw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716960985; c=relaxed/simple; bh=Qwe6Nm71KNXy5AzCovPyBLpaZan5bLchb/yuvu+UWlE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=HKixls+Q0VeWca5nc/Ju2/66oyx0b4OPRAKINwp42cJtqNaYAIpZNxsNOiNzTBfOnM9yeIlS6jHyMGuVVdPSH+DQmkFFC2y4ey0h4dMtAlga66VJGx5I/Av7DAAlSdgkTRlfaS+SDZ7qcosuxQ5Z7TK7Ds1CQRHRb8iDjEZYplw= 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=NtjhazK5; 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=1716960984; x=1748496984; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Qwe6Nm71KNXy5AzCovPyBLpaZan5bLchb/yuvu+UWlE=; b=NtjhazK5Rywpw2NEiFC/blbpW74vNqvo02C+dqiVeF2rpvzAnJZSUD9+ akvkUQXv0xcwP/32JWC45zNcaoAKcuVTA17ZbGvpWJQEDJ8rLp2YaLRG3 A94miWyW1DV7ZeJOCwYQaxJ9ysn+FbdWXDsPvoNRiZbybcZkMM6aBTyZn BXkurbenLinTJ2IUMRSa5Mx2lpsn8usov/zBZseQXSpX3cdEbA4/x/rcQ fxWuoc1C6PSmr762i6Nn/rNiUtqXDErLnmUHFhKcufOBuo2WYdZOB+u3q Lob3JwHHJbawR1ZWI3UR+1+5BjZBJ51xkTP5HIiA+0/4Se2P3JvR5KXHl A==; X-CSE-ConnectionGUID: 1gQzEs29SNuI6xl9oEoibA== X-CSE-MsgGUID: dOOBbrOHTASpPeeN18QgDA== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="13569038" X-IronPort-AV: E=Sophos;i="6.08,197,1712646000"; d="scan'208";a="13569038" 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:36:08 -0700 X-CSE-ConnectionGUID: 0bpDLxsuTtajCtyXoTqBTA== X-CSE-MsgGUID: Gw6ILwkESJ6yAzh0j9S2wA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,197,1712646000"; d="scan'208";a="35257745" Received: from unknown (HELO allen-box.sh.intel.com) ([10.239.159.127]) by fmviesa007.fm.intel.com with ESMTP; 28 May 2024 22:36:03 -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 14/20] soc/fsl/qbman: Use iommu_paging_domain_alloc() Date: Wed, 29 May 2024 13:32:44 +0800 Message-Id: <20240529053250.91284-15-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 portal_set_cpu() and is attached to pcfg->dev in the same function. Use iommu_paging_domain_alloc() to make it explicit. Signed-off-by: Lu Baolu --- drivers/soc/fsl/qbman/qman_portal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/fsl/qbman/qman_portal.c b/drivers/soc/fsl/qbman/qman_portal.c index e23b60618c1a..91f17cea3744 100644 --- a/drivers/soc/fsl/qbman/qman_portal.c +++ b/drivers/soc/fsl/qbman/qman_portal.c @@ -48,8 +48,8 @@ static void portal_set_cpu(struct qm_portal_config *pcfg, int cpu) struct device *dev = pcfg->dev; int ret; - pcfg->iommu_domain = iommu_domain_alloc(&platform_bus_type); - if (!pcfg->iommu_domain) { + pcfg->iommu_domain = iommu_paging_domain_alloc(dev); + if (IS_ERR(pcfg->iommu_domain)) { dev_err(dev, "%s(): iommu_domain_alloc() failed", __func__); goto no_iommu; } -- 2.34.1