From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [PATCH v6 1/3] x86/boot: Add acpitb.c to parse acpi tables Date: Tue, 11 Sep 2018 09:41:36 +0200 Message-ID: References: <20180910124015.18073-1-fanc.fnst@cn.fujitsu.com> <20180910124015.18073-2-fanc.fnst@cn.fujitsu.com> <20180911012754.GC8519@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <20180911012754.GC8519@localhost.localdomain> Sender: linux-kernel-owner@vger.kernel.org To: fanc.fnst@cn.fujitsu.com Cc: "Rafael J. Wysocki" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , the arch/x86 maintainers , Linux Kernel Mailing List , Kees Cook , bhe@redhat.com, indou.takao@jp.fujitsu.com, Cao jin , Dou Liyang , "Rafael J. Wysocki" , Len Brown , Ard Biesheuvel , linux-efi@vger.kernel.org, ACPI Devel Maling List List-Id: linux-acpi@vger.kernel.org On Tue, Sep 11, 2018 at 3:28 AM Chao Fan wrote: > > On Mon, Sep 10, 2018 at 10:13:49PM +0200, Rafael J. Wysocki wrote: > >On Mon, Sep 10, 2018 at 2:41 PM Chao Fan wrote: > >> > >> Imitate the ACPI code of parsing ACPI tables to dig and read ACPI > >> tables. > > > >Why? > > Sorry for that, I have sent the cover letter to you. Thanks, but please add the explanation here too. > > > >> Since some operations are not needed here, > > > >What operations? > > Such as some operations related to the map between physical address > and virtual address. Here in compressed period, use physical address > directely. This information also needs to go into the changelog of the patch. > > > >> functions are simplified. Functions will be used to dig SRAT tables to get > >> information of memory, so that KASLR can the memory in immovable node. > > > >So do you want to parse SRAT only or do something in addition to that? > > Only read and get memory information, won't change SRAT. > So ACPI code will not be changed. I meant whether or not SRAT is the only table you need to look into. If so, that also needs to be said in the patch changelog. Thanks, Rafael