From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f70.google.com (mail-wm0-f70.google.com [74.125.82.70]) by kanga.kvack.org (Postfix) with ESMTP id 7BD326B0292 for ; Tue, 20 Jun 2017 03:21:41 -0400 (EDT) Received: by mail-wm0-f70.google.com with SMTP id 77so14379452wmm.13 for ; Tue, 20 Jun 2017 00:21:41 -0700 (PDT) Received: from mail.skyhub.de (mail.skyhub.de. [5.9.137.197]) by mx.google.com with ESMTP id 62si1841180wrg.61.2017.06.20.00.21.39 for ; Tue, 20 Jun 2017 00:21:39 -0700 (PDT) Date: Tue, 20 Jun 2017 09:21:25 +0200 From: Borislav Petkov Subject: Re: [PATCH v7 03/36] x86, mpparse, x86/acpi, x86/PCI, x86/dmi, SFI: Use memremap for RAM mappings Message-ID: <20170620072124.p6wztvxw5fj25a6m@pd.tnic> References: <20170616184947.18967.84890.stgit@tlendack-t1.amdoffice.net> <20170616185023.18967.72831.stgit@tlendack-t1.amdoffice.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170616185023.18967.72831.stgit@tlendack-t1.amdoffice.net> Sender: owner-linux-mm@kvack.org List-ID: To: Tom Lendacky Cc: linux-arch@vger.kernel.org, linux-efi@vger.kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, xen-devel@lists.xen.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, Brijesh Singh , Toshimitsu Kani , Radim =?utf-8?B?S3LEjW3DocWZ?= , Matt Fleming , Alexander Potapenko , "H. Peter Anvin" , Larry Woodman , Jonathan Corbet , Joerg Roedel , "Michael S. Tsirkin" , Ingo Molnar , Andrey Ryabinin , Dave Young , Rik van Riel , Arnd Bergmann , Konrad Rzeszutek Wilk , Andy Lutomirski , Boris Ostrovsky , Dmitry Vyukov , Juergen Gross , Thomas Gleixner , Paolo Bonzini On Fri, Jun 16, 2017 at 01:50:23PM -0500, Tom Lendacky wrote: > The ioremap() function is intended for mapping MMIO. For RAM, the > memremap() function should be used. Convert calls from ioremap() to > memremap() when re-mapping RAM. > > This will be used later by SME to control how the encryption mask is > applied to memory mappings, with certain memory locations being mapped > decrypted vs encrypted. > > Signed-off-by: Tom Lendacky > --- > arch/x86/include/asm/dmi.h | 8 ++++---- > arch/x86/kernel/acpi/boot.c | 6 +++--- > arch/x86/kernel/kdebugfs.c | 34 +++++++++++----------------------- > arch/x86/kernel/ksysfs.c | 28 ++++++++++++++-------------- > arch/x86/kernel/mpparse.c | 10 +++++----- > arch/x86/pci/common.c | 4 ++-- > drivers/firmware/dmi-sysfs.c | 5 +++-- > drivers/firmware/pcdp.c | 4 ++-- > drivers/sfi/sfi_core.c | 22 +++++++++++----------- > 9 files changed, 55 insertions(+), 66 deletions(-) Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org