Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp587178ybz; Wed, 15 Apr 2020 14:36:45 -0700 (PDT) X-Google-Smtp-Source: APiQypLvxhVNTkIK1muOuLglSt8U5dbAczEA5pXf5WjUlIxg67zmSx6L90wTtfiqA8TiraRGA4x4 X-Received: by 2002:a50:c2c2:: with SMTP id u2mr26442214edf.140.1586986605728; Wed, 15 Apr 2020 14:36:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586986605; cv=none; d=google.com; s=arc-20160816; b=gYmGiH7+bDK06R5B+Chi6yCke5pTjI0N3YuTGYKNkoSv6WBLaNjs8NVsuGoI2juWtl KoYjX5Eeg9XEELmZZ81i3ivnohykobvaQOFDLTMMg0V8WvsnmFEV8Lzrm+iao2gsqcZQ xxRqR7x8xQK6ok5zXPlUVFe3qBHx9+eUNdQRRrdDBX0itdWTYAY2Woc/PvdzghvLsdTs SyDoKuDTlH78M5pO91yfN44bBDa2moIQdFW3wB7Wq0+tGA2j5N20rDdtLjdz4RQ2Iixo QXk3avT5NaEq7ZesU9l+bBpznoxXfnRP7AJRGFKohLKZ3wlYyLCpFz8x1bYJYIVtoErw g+aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=rg3L0rZWPBRDLNLdV28jC7VZxyVGdtsX+OoW5TVs9Hw=; b=ZItFLYDxJQnfSjnzA7dR9OrFb4knEW22x6pt5RAp6cPp3zVkUSNjrpKFYYW95LH4B0 I+A9ggEqfo3yP8k7rmveHPvLJwv4dZwu37Wv0/1KZBbmiwxcfLnf1P2oOUMWW9mHV14S Gy/W8NMXqQwfFluHoMPfCMo3TAWj1nqee0SulpjMEebhijnQy7HHDj9nAlccRLYC98iK 64sT2OycQVbgQ8RwLux74OH9LQgwPOfLspQu+TBPf0EJqte+bgtg4C0q/kBSB1ZivRvm gNH681wBpvERub/en493w3p/d5adU9EUN9r1D4P6Xz3v1oGUSyJ83cB/Z+80VyRbfCen UxVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b26si6215799edr.228.2020.04.15.14.36.22; Wed, 15 Apr 2020 14:36:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731975AbgDNN1F (ORCPT + 99 others); Tue, 14 Apr 2020 09:27:05 -0400 Received: from 8bytes.org ([81.169.241.247]:34908 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502874AbgDNNQB (ORCPT ); Tue, 14 Apr 2020 09:16:01 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id 362B2485; Tue, 14 Apr 2020 15:15:52 +0200 (CEST) From: Joerg Roedel To: Joerg Roedel , Will Deacon , Robin Murphy , Marek Szyprowski , Kukjin Kim , Krzysztof Kozlowski , David Woodhouse , Lu Baolu , Andy Gross , Bjorn Andersson , Matthias Brugger , Rob Clark , Heiko Stuebner , Gerald Schaefer , Thierry Reding , Jonathan Hunter , Jean-Philippe Brucker Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-s390@vger.kernel.org, linux-tegra@vger.kernel.org, virtualization@lists.linux-foundation.org, Joerg Roedel Subject: [PATCH v2 04/33] iommu/vt-d: Wire up iommu_ops->def_domain_type Date: Tue, 14 Apr 2020 15:15:13 +0200 Message-Id: <20200414131542.25608-5-joro@8bytes.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200414131542.25608-1-joro@8bytes.org> References: <20200414131542.25608-1-joro@8bytes.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joerg Roedel The Intel VT-d driver already has a matching function to determine the default domain type for a device. Wire it up in intel_iommu_ops. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index ef0a5246700e..b9f905a55dda 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -6209,6 +6209,7 @@ const struct iommu_ops intel_iommu_ops = { .dev_enable_feat = intel_iommu_dev_enable_feat, .dev_disable_feat = intel_iommu_dev_disable_feat, .is_attach_deferred = intel_iommu_is_attach_deferred, + .def_domain_type = device_def_domain_type, .pgsize_bitmap = INTEL_IOMMU_PGSIZES, }; -- 2.17.1