Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1488073ybe; Mon, 2 Sep 2019 22:29:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7rG4bwdcnCIkoRlHLv/nB70neW3cSslQWMTsQOC57Q9jaAEIm4ft/rPvOJmgoTkSLGDW1 X-Received: by 2002:a17:902:7245:: with SMTP id c5mr9243923pll.187.1567488596156; Mon, 02 Sep 2019 22:29:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567488596; cv=none; d=google.com; s=arc-20160816; b=u9vEbi9Yal5Y7HxLl10KnyTGEDmtK8WJtKIJU3i6//5lgK+q6vi2VyggtKkic7fcRg PltREikVYPXapHaBF8MtCDbu9p1eKdI+uNJW1x4BJWM+MSS0dQDC6GETRG03tPsDRRrL 2N9OICiwbK+6BOk1Y/heDS1D/itHaoMUVLHmtpltNTpksFcmLu33ecda3HYuhBZZgGyn skuCasWDnPQKvs52MZpi22XM62a9jWoo9+N6Fl6nOuV5I+BPOOt4bmf6dR+QrPGbBY/a LbRHxif5L9cZdTc7EO6e9asQAaaof62t5SYKKfjnnIu3ZJI6yVoP1YdMIpSNAThZwMlB xYgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=ouvOgCoyuFPr50Agu0iqS/LClJdq+6U8XNUY1pjdGV8=; b=cIo8EiKP5PF7fjpS0fbpXqIfA9bU2fr3YE4EQtDEw0OrD2uxcFU43mT946hWH7LrUl fbQ8ZI7fed9G85qypj5kbDTv2JzfeST9AG0Ggc0wxekyvEnpF8Pj3tNTO+k+dB8sw3Eh XTEhpiMyaxOD7ozlRN52U2vDWJaIeWpRDoxLD1yQjUwX0+pkrN/xfeZpo0MWeuElKcag m5m6DZey+xgnatTfsYxTqA4c89NAx3EMrvkH8uPwPSHf6wYm7tVf7VOjQ7m5liyKa3/J dSjEHyCSzZVFt4eEzgysi7FPUhjnwBlxZOHeeVvth6cdWQkMNsOoOFswUfj9pq1KheUk d9ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=TwIoioOS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si3403461pjf.45.2019.09.02.22.29.40; Mon, 02 Sep 2019 22:29:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=TwIoioOS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726180AbfICF2y (ORCPT + 99 others); Tue, 3 Sep 2019 01:28:54 -0400 Received: from ozlabs.org ([203.11.71.1]:53019 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbfICF2y (ORCPT ); Tue, 3 Sep 2019 01:28:54 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 46MwVB3DbTz9s7T; Tue, 3 Sep 2019 15:28:49 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1567488531; bh=rlB4msvYvPZrbjAElsyKaihIxhFBAWAORihfrpVeSfw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=TwIoioOSknFD8Wlbd8xNit0YlfvjqwBTk5ysEuAh0+XSM4tvLce2oZcZ02/wV2018 P5YUalVvRupXbaVLmqeiZFMADVjYwgrE8sYhc3UAtcn92KVP5DucXMN1gq23/a45Wg PdxQJkE8KK9stbLrd3RoFRcXzNzGxCnKomgfB7WLVcrHrhZuo7gxAXy86iZ5w+N18B f94v1q3HalaZiaf7eLpnScvqpfUgCza1J8H14/HJJ3o+n4edVKCUjE9NoumKM5WCGY gZtgHgr3cd0yjqXTe1bOX9N1Es12Mmxe+QyP3kSYQMWTPvusLNiYWDAOcbhSHj3B7U 9Kme8/hxodugQ== Date: Tue, 3 Sep 2019 15:28:49 +1000 From: Stephen Rothwell To: "Lendacky, Thomas" Cc: Joerg Roedel , Thiago Jung Bauermann , Michael Ellerman , Linux Next Mailing List , Linux Kernel Mailing List Subject: Re: linux-next: build failure after merge of the iommu tree Message-ID: <20190903152849.770ae819@canb.auug.org.au> In-Reply-To: References: <20190902163951.6280e030@canb.auug.org.au> <20190902140347.GA23482@8bytes.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/QC/nbyo+M/koxzSVz3tcjkr"; protocol="application/pgp-signature"; micalg=pgp-sha256 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/QC/nbyo+M/koxzSVz3tcjkr Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Mon, 2 Sep 2019 14:26:40 +0000 "Lendacky, Thomas" wrote: > > On 9/2/19 9:03 AM, Joerg Roedel wrote: > >=20 > > tl;dr: And IOMMU commit introduces a new user for sme_active() in > > generic code, and commit > >=20 > > 284e21fab2cf x86, s390/mm: Move sme_active() and sme_me_mask t= o x86-specific header > >=20 > > breaks the build of drivers/iommu/ for all architectures not > > implementing sme_active(). > >=20 > > On Mon, Sep 02, 2019 at 04:39:51PM +1000, Stephen Rothwell wrote: =20 > >> drivers/iommu/iommu.c: In function 'iommu_subsys_init': > >> drivers/iommu/iommu.c:123:38: error: implicit declaration of function = 'sme_active'; did you mean 'cpu_active'? [-Werror=3Dimplicit-function-decla= ration] > >> 123 | if (iommu_default_passthrough() && sme_active()) { =20 >=20 > Maybe we should make this mem_encrypt_active(), since this will probably > be needed if/when an IOMMU device is eventually added to a guest, and the > referenced commit below doesn't remove that call. I have done that for today: From: Stephen Rothwell Date: Tue, 3 Sep 2019 15:19:34 +1000 Subject: [PATCH] iommu: use mem_encrypt_active() instead of sme_active() Signed-off-by: Stephen Rothwell --- drivers/iommu/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 66cfacaa483d..b870044ecd49 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -120,7 +120,7 @@ static int __init iommu_subsys_init(void) else iommu_set_default_translated(false); =20 - if (iommu_default_passthrough() && sme_active()) { + if (iommu_default_passthrough() && mem_encrypt_active()) { pr_info("SME detected - Disabling default IOMMU Passthrough\n"); iommu_set_default_translated(false); } --=20 2.23.0.rc1 --=20 Cheers, Stephen Rothwell --Sig_/QC/nbyo+M/koxzSVz3tcjkr Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl1t+hEACgkQAVBC80lX 0GwcpAf+JfutCmod1dRdGPit/CwvcXnxjPi230q7rPjbytPpnAJMfx8GcpgR+ZNk y4JkL4WqKVDr1+txFZMWzwYj9/wiZjCllo0MXX0gGzaC+LZO1ZnLbMhxPNk54b6e g++atpHeOcUnGWFwcTpHeLo/E6q7z0zz9M8eE5NU2MIxc61ahRjqj0q2SMLI9omo 4EnqlnYzXu9jQ5pXcO2vrng2Ri2jLBlt9LkIVCUOPhfEmW2q1/TbGVu9YvAQQvPY YTS++V2q12CKBlLBPPsH7fFGDmBJgSDOVL/SvPgnny8hpenO9XCT7SRFe0elA3Cs boCD8NbN/p7CYFj+mfMd7KboUC+gIw== =5WxQ -----END PGP SIGNATURE----- --Sig_/QC/nbyo+M/koxzSVz3tcjkr--