Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp425677lqb; Tue, 28 May 2024 22:38:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7VCxjX0i38DPLdksRHbetbRKXgN5/rQifCpa3IhLdSsEY8f/J1g/0GmWG9i9YKQEOlQfUm57dGQAu7ngtmZD2cxyXkxRT71OEUBgwrQ== X-Google-Smtp-Source: AGHT+IHEU12NFVgVfMZzsyRe6AO0ICRjT5KUTCuZKTsKjmS5l9drQUsKrZaIUHOfUUwyp+4dN8HN X-Received: by 2002:a05:6214:3991:b0:6ad:6bb0:f267 with SMTP id 6a1803df08f44-6ad6bb0f50cmr99369876d6.50.1716961138604; Tue, 28 May 2024 22:38:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716961138; cv=pass; d=google.com; s=arc-20160816; b=LRanZqOu9tKdYm8KeY+i9QHSj2a0cdLUdWcMdS/InBsmgjjdgGwWd0JEgOhKBaIo6O uvGrS20RhqPGLvyQJilWnA6N0mIngxKiuEjH1LSY1mBrxuImvdNlMkvCrPN6op4clF0N a18r2z7UJ4vjkISD66Ceh9H45UpKrU+N2hXC4RWg/2GvPM2GyzpqipDCozaIwh6KQZD1 NpeubvJS3G0JovNFn93OQgmCU3ShUsiXvdP+71uD/fM3aIyNtO2r+dvWArK6rn2cGYOy 9EBVYv9RnsKBrTjVw7ZHIahnAMZoTIBaAh02VuqeR52wQf9lw9NK0robZNzieStxdt5r UliA== 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=J6b6yu/JpT4+pttosOJ/3fpulNV+saRGE1ggbJKpem4=; fh=u7VIfotmvhCnFPKh0R845OAh004BwcT1TGiZ1dQEGzo=; b=Fqn6y0atiRQC3PCGlrFfeHZJQksUgrT/ll291CDWpAoly9VklhmX7qEJdENQWSRV+Q 5CPJQkQsEkSAJ4Nv7om8uJnANJw6Zu8C9XBdqUF/CXKlZT4nDJmybP9koeD+eO835Zta x2NBiDCBqjHmrkZjTUiGv2KAY1cEOoS2sJ0Ezg6ZzLR7ZZhhy9pJzcSHpJNIrSsbzdiW S6DY229VGNb40vNqyaDz8ATum+L7hpvFG08wmgpYvtneNUSopvUFEKKxBrdbg1y0fFqW QklasO33Sd9HoOH6t8bZ8bDD1GHLlv6zfGr7IUmTynBslbqeJOZwwoor177WTpDCwmoX M2LQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Nn4bNbVy; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-193458-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193458-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-6ac162b4c75si132159856d6.482.2024.05.28.22.38.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 22:38:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193458-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=Nn4bNbVy; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-193458-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193458-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 279641C23DAB for ; Wed, 29 May 2024 05:38:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE9C2168C1A; Wed, 29 May 2024 05:36:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Nn4bNbVy" 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 DB8F61649D9 for ; Wed, 29 May 2024 05:36:18 +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=1716960980; cv=none; b=Lrjmz/P30U034DoOIXzTXh3k1iYOJNbMy3JvsXGWXkzjzkP6yC/n32kbpc0MQgu+Oa3wXX6CtUhYh3Hom9hTvRgc3hq525v98mLiVV2cLzECYpZnTKQYHSBo6A9R/weEIcaMDdZJsoAbGMZzuneT0fPmSiKn+U8964LfUFvW4Ag= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716960980; c=relaxed/simple; bh=hTV3zLZE5NKCbs8//lAHn/CtYF9pijNjI3EBc1agx30=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=s4rqiDwhf6scYmxNnoAOx+fcwkYH/Qa0AoD14VXdwABA8BU8axDiQezjMfrt8jXN1/t6PMIBcYa3qov2Fz5ADH9vXffJKI77s/ZqiPN0jzuiXj1Xt7KNVm8TZ3dW3pmeY/uvDFeJUtC0bWeiU3J6z4+YYktImHYm+Une/8qsAgs= 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=Nn4bNbVy; 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=1716960979; x=1748496979; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hTV3zLZE5NKCbs8//lAHn/CtYF9pijNjI3EBc1agx30=; b=Nn4bNbVyfWKhqgeHV7gWX9hs07K47VC8XiQrMRMQ+omEEKSXxlmQljE2 zqVZYKWEAP89UrYZAwWS752r2jKQWpbVvx4WZbsjadgJGcbc/HOBsf3GT N1PDaYpXMkZjxCJOzekgk2xSzGmEuhMPjTxLC+BJ0C8VubUl6otbB4Cua wVjrvUqW2h0508Xpz7LjLQl4RhplGypMOi2TNrZsKqF0OuPc78wrkJG5X zkz9yi1YN0lUEA0yzSPrpR7gcOjtfERdTk8sexee7zSfoMh0fS0GwALhe gnNb1VBoj1FS3i1MImSs/GQ22BYLyqrtNu27yUQnN8GEk68fpxN1OFP+P w==; X-CSE-ConnectionGUID: 0fSMYQ5eR1CqeCHDE/jZ4w== X-CSE-MsgGUID: TpT/TAPLTCiY1i991cUsdA== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="13568936" X-IronPort-AV: E=Sophos;i="6.08,197,1712646000"; d="scan'208";a="13568936" 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:44 -0700 X-CSE-ConnectionGUID: +cDPAFDtQritcQaJ3GGFSA== X-CSE-MsgGUID: nDbXwaPeTiGGxvK7O/Ioeg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,197,1712646000"; d="scan'208";a="35257672" 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:39 -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 09/20] media: nvidia: tegra: Use iommu_paging_domain_alloc() Date: Wed, 29 May 2024 13:32:39 +0800 Message-Id: <20240529053250.91284-10-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 tegra_vde_iommu_init() and is attached to vde->dev. Use iommu_paging_domain_alloc() to make it explicit. Signed-off-by: Lu Baolu --- drivers/media/platform/nvidia/tegra-vde/iommu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/nvidia/tegra-vde/iommu.c b/drivers/media/platform/nvidia/tegra-vde/iommu.c index 5521ed3e465f..5a41b5364238 100644 --- a/drivers/media/platform/nvidia/tegra-vde/iommu.c +++ b/drivers/media/platform/nvidia/tegra-vde/iommu.c @@ -78,9 +78,9 @@ int tegra_vde_iommu_init(struct tegra_vde *vde) arm_iommu_release_mapping(mapping); } #endif - vde->domain = iommu_domain_alloc(&platform_bus_type); - if (!vde->domain) { - err = -ENOMEM; + vde->domain = iommu_paging_domain_alloc(dev); + if (IS_ERR(vde->domain)) { + err = PTR_ERR(vde->domain); goto put_group; } -- 2.34.1