Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp773123pja; Thu, 19 Mar 2020 10:44:00 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt73pVIDJVBxY52xT7IoEslGS3RJihzPvRUlyVag3o33Jx7+gmSs27AVe+rfQI1TYCzjB5z X-Received: by 2002:aca:5e0b:: with SMTP id s11mr3154724oib.111.1584639840245; Thu, 19 Mar 2020 10:44:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584639840; cv=none; d=google.com; s=arc-20160816; b=AjkMh0j9h55SJurnYud1ShZ4hDtQRYqPdHcyVcttcUCnMjW/kwL3fwQzRKQQ3rbJKI bMHq440rqbC3W5N+nFqIsm9/HkDrg42bnhwAoGEYWcgWfYxrTmyrJk+lQ1CyWRJ/FKiN l+m+TLplFJiCvkd/ODJvmEQtZa1M67gq98Jbfu8ti+HjMdCB8c/pGZ+zVsi9E9JqBvNX QdiKQ6eungam4BbzcqaxlCCX8uxx2YULUGIB71XTlw1J1kqgiaob9Rezvx7ImhWGLNwq CDF4glbpjXQwIFPbfZj2u6GL+99q4vaTJZux8Qb+YT4Klh0RitfFMXVze94W4O53FoOI nuXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=LJgEl6+GWpjWMprHgQdpvOsZPmZ9T4AgJaJ310Sp15A=; b=xBzllXfMQ9DNuasAyNkDZGT4C8kvt1wRy05QQPp0JTvxcqaKxIhJHLhIDQI1ZBBDjm js+L1//yQn9Y8bUAmyarpoKM6brrwEZK2KI9/j0+mAXC6GgX2bpRzF0Y1NY/OsDklD9E ILh7TtylOPOzh1f4UyNwZ2Vw6sNCpR2FzsoTHoXSx3d8a0ylxfsbmtIyoKy+WayMDmYQ iZdIT+3NvCocSt/m050nvNvKJBMhLS6VRRR1fdlREgBxvpWg0rcxpp1eS+mDxAmB+EVr A0vCraP5EtO//c9kmf66zGrEEVzdLA0XazRo8V8D1+JatjpoJx9eszMfwa3kDLil49iM Q8tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=BstyM5Fy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si1792735otk.133.2020.03.19.10.43.48; Thu, 19 Mar 2020 10:44:00 -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=@alien8.de header.s=dkim header.b=BstyM5Fy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728697AbgCSRmv (ORCPT + 99 others); Thu, 19 Mar 2020 13:42:51 -0400 Received: from mail.skyhub.de ([5.9.137.197]:40476 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727009AbgCSRmu (ORCPT ); Thu, 19 Mar 2020 13:42:50 -0400 Received: from zn.tnic (p200300EC2F0A85008DCA7A58643289AE.dip0.t-ipconnect.de [IPv6:2003:ec:2f0a:8500:8dca:7a58:6432:89ae]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 7F6271EC0CFA; Thu, 19 Mar 2020 18:42:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1584639768; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=LJgEl6+GWpjWMprHgQdpvOsZPmZ9T4AgJaJ310Sp15A=; b=BstyM5FyzXd4gUjzYEKas19giaR3PryEQgqFuimsLBfSog5uMwWV2b0pL/Te/PSiFpUTow +JfuNn7O4THbFfI6nYX7gKJnJsqRVfieDh1pygDl8Ash+cUnvz3cwuI8wH5wfd5vmjqxSm qSP7WorzYL+KIIwiwVuKclKRo0SUmHk= Date: Thu, 19 Mar 2020 18:42:54 +0100 From: Borislav Petkov To: Thomas Gleixner Cc: Robin Murphy , Christoph Hellwig , lkml , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Ingo Molnar , x86@kernel.org, Dave Hansen , Andy Lutomirski , Peter Zijlstra , Marek Szyprowski , linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, iommu@lists.linux-foundation.org, Tom Lendacky Subject: Re: [PATCH -v2] treewide: Rename "unencrypted" to "decrypted" Message-ID: <20200319174254.GE13073@zn.tnic> References: <20200317111822.GA15609@zn.tnic> <20200319101657.GB13073@zn.tnic> <20200319102011.GA3617@lst.de> <20200319102834.GC13073@zn.tnic> <8d6d3b6c-7e4e-7d9e-3e19-38f7d4477c72@arm.com> <20200319112054.GD13073@zn.tnic> <878sjw5k9u.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <878sjw5k9u.fsf@nanos.tec.linutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 19, 2020 at 06:25:49PM +0100, Thomas Gleixner wrote: > TBH, I don't see how > > if (force_dma_decrypted(dev)) > set_memory_encrypted((unsigned long)cpu_addr, 1 << page_order); > > makes more sense than the above. It's both non-sensical unless there is 9087c37584fb ("dma-direct: Force unencrypted DMA under SME for certain DMA masks") > a big fat comment explaining what this is about. ACK to that. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette