Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3726408imm; Tue, 11 Sep 2018 00:43:30 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYMXDMtsGZbA1CdqfgcWQ0a9Lk4FeqbPTVhrS4AfmfW8DuQs37uCqecxRnuGUZdoLXaKIcH X-Received: by 2002:a17:902:6115:: with SMTP id t21-v6mr25921057plj.92.1536651810402; Tue, 11 Sep 2018 00:43:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536651810; cv=none; d=google.com; s=arc-20160816; b=Z5cKSxA0/DklQ2ovXv0v7azPOWFkewAUEQt/RizC2BQoolj+ven04C9tWuCw5KGSjL eDh6Tz/n98bYcbduBZGs9bIEjc+8MINvbRGcnLGfJJeelyMd5MKihwUfdZ/q+V/xfZre WtxeYUOaLwOQ+49jN+ke21GngUGYnxZrLUdkY7e7vkRXr20b7bVcCLJudwESkyThMTRy Ci4xNbXDN9Oi8XejUXTQetCzi4/6hWVlj2sRWuh+/UA13tWDx6Jp+ATK1HG5XjvEtO8q 55oJdP2SFYQrOUzSqZOr0gY2jf/LGUS+xfuRqWcE3hux3TsuRdVLUygPOH9ZPW435iqK +jJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=SVkpgnEORfEdk3Bj4aa+NIRtSQyhbnnOcqG+f6Z9iiU=; b=AeXAFsBrHSwwVL/j9gME4j+gim/O/8NbriYh9Y6fG6VvZkCX65QIH39dhzk5kcIHWq iuJxU0lClSjsL51BSY2aiU5A/XMm/ydT+6K0F1Cq6n6vJhWzY5TpGUes9kz5CoIn1KYu oDJBNEAumneqZfE4G29iFWC7x7UzlI+wSe0E8cYTtgpA934Sc1bBfHUdMvEOuScZRZdR 5jb2g0Z1yYD+LMMLtMm/t8VT07k7YOOQ+RA6S21BWQ8PkZ2GvrLx4uGkZWTfdH8deKzm SIhlVGPFWYOVzgJqRcHsXinoI4AY7hpj6+lty/FJr4FWGqoJ684oO7xSVhO/JmWuWrN6 yOEQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k14-v6si19980854pfd.0.2018.09.11.00.43.15; Tue, 11 Sep 2018 00:43:30 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727063AbeIKMjt (ORCPT + 99 others); Tue, 11 Sep 2018 08:39:49 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:35543 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726325AbeIKMjt (ORCPT ); Tue, 11 Sep 2018 08:39:49 -0400 Received: by mail-oi0-f67.google.com with SMTP id m11-v6so45399376oic.2; Tue, 11 Sep 2018 00:41:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SVkpgnEORfEdk3Bj4aa+NIRtSQyhbnnOcqG+f6Z9iiU=; b=Y9iNQ+3hR+PPYGXcR0Vm/woNnnuuizzEQiOJRv7kqSDk4LQz6c3mcBGu4xVmhSw37g ji1wQC73WR1OEDnmoEAqy63NBPMWFgVJWtOFm/EWdT15TBMn6V76/ErH0QSDDQfuOUuB Kh/BUI07sn0Bbg+H8gj877m5EJlN6DDo017H6OggIWdT5XitqVw8jd6BRU4DPVz9FG8A jLx84TFCyTlTUQlWm6C2v1QE61Mi6SaS6oR4nLKnLt/T5g2QbjvBR2Pjj5zql49NQv/C u6aqSRad/kiGbRvZdY1T9eUIHUaumnyoESfyWZS7l/o7Hocx7bg87CMWOM4DgG3tfhj+ VvXw== X-Gm-Message-State: APzg51AVfl8Bgi2eROmiFWvP9Rn2pARHBhPgClXNi1ksY0ALQ5VjN2FI D5Zt7rW/+b5fw4Xim4/RUIk/o2MdXWIPwCa2g1M= X-Received: by 2002:aca:ef0a:: with SMTP id n10-v6mr26726067oih.326.1536651707639; Tue, 11 Sep 2018 00:41:47 -0700 (PDT) MIME-Version: 1.0 References: <20180910124015.18073-1-fanc.fnst@cn.fujitsu.com> <20180910124015.18073-2-fanc.fnst@cn.fujitsu.com> <20180911012754.GC8519@localhost.localdomain> In-Reply-To: <20180911012754.GC8519@localhost.localdomain> From: "Rafael J. Wysocki" Date: Tue, 11 Sep 2018 09:41:36 +0200 Message-ID: Subject: Re: [PATCH v6 1/3] x86/boot: Add acpitb.c to parse acpi tables 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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