[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPcyv4iFG3Z9xL9TSmqLVHxLZ6oiz-uWD6iKgJ8LF4f0n=m9=w@mail.gmail.com>
Date: Fri, 7 Jun 2019 13:03:26 -0700
From: Dan Williams <dan.j.williams@...el.com>
To: Dave Hansen <dave.hansen@...el.com>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Ard Biesheuvel <ard.biesheuvel@...aro.org>,
Peter Zijlstra <peterz@...radead.org>,
Vishal L Verma <vishal.l.verma@...el.com>,
Dave Hansen <dave.hansen@...ux.intel.com>,
linux-nvdimm <linux-nvdimm@...ts.01.org>,
X86 ML <x86@...nel.org>, linux-efi <linux-efi@...r.kernel.org>
Subject: Re: [PATCH v3 03/10] efi: Enumerate EFI_MEMORY_SP
On Fri, Jun 7, 2019 at 12:54 PM Dave Hansen <dave.hansen@...el.com> wrote:
>
> On 6/7/19 12:27 PM, Dan Williams wrote:
> > @@ -848,15 +848,16 @@ char * __init efi_md_typeattr_format(char *buf, size_t size,
> > if (attr & ~(EFI_MEMORY_UC | EFI_MEMORY_WC | EFI_MEMORY_WT |
> > EFI_MEMORY_WB | EFI_MEMORY_UCE | EFI_MEMORY_RO |
> > EFI_MEMORY_WP | EFI_MEMORY_RP | EFI_MEMORY_XP |
> > - EFI_MEMORY_NV |
> > + EFI_MEMORY_NV | EFI_MEMORY_SP |
> > EFI_MEMORY_RUNTIME | EFI_MEMORY_MORE_RELIABLE))
> > snprintf(pos, size, "|attr=0x%016llx]",
> > (unsigned long long)attr);
> > else
> > snprintf(pos, size,
> > - "|%3s|%2s|%2s|%2s|%2s|%2s|%2s|%3s|%2s|%2s|%2s|%2s]",
> > + "|%3s|%2s|%2s|%2s|%2s|%2s|%2s|%2s|%3s|%2s|%2s|%2s|%2s]",
> > attr & EFI_MEMORY_RUNTIME ? "RUN" : "",
> > attr & EFI_MEMORY_MORE_RELIABLE ? "MR" : "",
> > + attr & EFI_MEMORY_SP ? "SP" : "",
> > attr & EFI_MEMORY_NV ? "NV" : "",
> > attr & EFI_MEMORY_XP ? "XP" : "",
> > attr & EFI_MEMORY_RP ? "RP" : "",
>
> Haha, I went digging in sysfs to find out where this gets dumped out.
> The joke was on me because it seems to only go to dmesg.
>
> Separate from these patches, should we have a runtime file that dumps
> out the same info? dmesg isn't always available, and hotplug could
> change this too, I'd imagine.
Perhaps, but I thought /proc/iomem was that runtime file. Given that
x86/Linux only seems to care about the the EFI to E820 translation of
the map and the E820 map is directly reflected in /proc/iomem, do we
need another file?
Powered by blists - more mailing lists