Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932644AbbLVWtd (ORCPT ); Tue, 22 Dec 2015 17:49:33 -0500 Received: from mail-ob0-f174.google.com ([209.85.214.174]:34077 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753243AbbLVWtb (ORCPT ); Tue, 22 Dec 2015 17:49:31 -0500 MIME-Version: 1.0 In-Reply-To: <36DF59CE26D8EE47B0655C516E9CE640286886D1@shsmsx102.ccr.corp.intel.com> References: <36DF59CE26D8EE47B0655C516E9CE64028686D35@shsmsx102.ccr.corp.intel.com> <1AE640813FDE7649BE1B193DEA596E883BB08C24@SHSMSX101.ccr.corp.intel.com> <36DF59CE26D8EE47B0655C516E9CE640286886D1@shsmsx102.ccr.corp.intel.com> From: Andy Lutomirski Date: Tue, 22 Dec 2015 14:49:11 -0800 Message-ID: Subject: Re: [PATCH v4 7/7] ACPI / x86: introduce acpi_os_readable() support To: "Chen, Yu C" Cc: "Zheng, Lv" , "Moore, Robert" , "Wysocki, Rafael J" , "Brown, Len" , Andy Lutomirski , Lv Zheng , "linux-kernel@vger.kernel.org" , Linux ACPI , "H. Peter Anvin" , Borislav Petkov Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1615 Lines: 48 On Mon, Dec 21, 2015 at 5:03 PM, Chen, Yu C wrote: > Hi Andy, > thanks for your review, > >> -----Original Message----- >> From: Andy Lutomirski [mailto:luto@amacapital.net] >> Sent: Friday, December 18, 2015 1:00 AM >> To: Zheng, Lv >> Cc: Chen, Yu C; Moore, Robert; Wysocki, Rafael J; Brown, Len; Andy >> Lutomirski; Lv Zheng; linux-kernel@vger.kernel.org; Linux ACPI; H. Peter >> Anvin; Borislav Petkov >> Subject: Re: [PATCH v4 7/7] ACPI / x86: introduce acpi_os_readable() support >> > [cut] >> >> I think that hpa or Borislav [cc'd] could address the memory map details >> better than I could. However, this functionality seems strange. >> >> Are these physical addresses or virtual addresses that are being dumped? > [Yu] They are virtual addresses to be dumped. >> In either case, ISTM that using something iike page_is_ram might be a lot >> simpler. > [Yu] if i understand correctly, this API is used to check if the address is a valid > 'kmalloc' style address, but not 'kmap' or 'vmalloc' address, and page_is_ram > might treat the latter as valid address? > I'm a bit puzzled as to why this matters, but I have no fundamental objection to doing it that way. What's the use case, though? That is, what goes wrong if the function just always returns false? --Andy > thanks, > Yu -- Andy Lutomirski AMA Capital Management, LLC -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/