Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1330191
| From | Ingo Molnar <mingo@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 14/14] x86/efi: Print size in binary units in efi_print_memmap |
| Date | 2016-02-09 13:30 +0100 |
| Message-ID | <r0fAE-3Wc-55@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <qXuPy-WW-27@gated-at.bofh.it> <qXFrA-sR-11@gated-at.bofh.it> <qY3ay-Nu-23@gated-at.bofh.it> <qY3Nf-1gx-9@gated-at.bofh.it> <qY7xw-3G4-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
* Elliott, Robert (Persistent Memory) <elliott@hpe.com> wrote: > > > -----Original Message----- > > From: Matt Fleming [mailto:matt@codeblueprint.co.uk] > > Sent: Wednesday, February 3, 2016 5:28 AM > > To: Ingo Molnar <mingo@kernel.org> > > Cc: Laszlo Ersek <lersek@redhat.com>; H . Peter Anvin <hpa@zytor.com>; > > Thomas Gleixner <tglx@linutronix.de>; linux-efi@vger.kernel.org; linux- > > kernel@vger.kernel.org; Elliott, Robert (Persistent Memory) > > <elliott@hpe.com>; Andy Shevchenko <andriy.shevchenko@linux.intel.com>; > > Ard Biesheuvel <ard.biesheuvel@linaro.org>; Taku Izumi > > <izumi.taku@jp.fujitsu.com>; Linus Torvalds <torvalds@linux- > > foundation.org>; Andrew Morton <akpm@linux-foundation.org> > > Subject: Re: [PATCH 14/14] x86/efi: Print size in binary units in > > efi_print_memmap > ... > > OK, this patch has caused enough headaches. Let's drop it from this > > series. > > > > Robert, Andy, feel free to resubmit it after you've addressed > > everyone's concerns and we can discuss it in isolation. > > We could just delete the size print altogether - better to print > nothing than a silently rounded number. The end address already > communicates the size - it's just not as readable. > > The e820 table prints don't bother with a size print. > > That would also shorten these extremely wide prints to 116 > characters (131 if printk time is enabled). > > [ 0.000000] BIOS-e820: [mem 0x0000001880000000-0x000000207fffffff] reserved > vs. > [ 0.000000] efi: mem62: [Reserved | | |NV| | | | | |WB|WT|WC|UC] range=[0x0000001880000000-0x000000207fffffff] (32 GiB) So I find the latter a lot more readable - my terminals are wide enough ;-) Humans are also rather bad at parsing 64-bit hexa address ranges at a glance, so the size display is very useful. But the flags portion should be shortened via appropriately chosen single-character abbreviations for the flags. Anyone deeply intimate with the code will recognize the flags - others won't care one way or another. plus there's no need to write out 'range='. ... and please keep the size and just use GB/TB for chrissake. I.e. something like this would work for me: > [ 0.000000] efi: mem62: 0x0000001880000000-0x000000207fffffff ( 32 GB) .N....BTCU "Reserved" Thanks, Ingo
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 14/14] x86/efi: Print size in binary units in efi_print_memmap Matt Fleming <matt@codeblueprint.co.uk> - 2016-02-01 23:10 +0100
Re: [PATCH 14/14] x86/efi: Print size in binary units in efi_print_memmap Laszlo Ersek <lersek@redhat.com> - 2016-02-02 10:30 +0100
Re: [PATCH 14/14] x86/efi: Print size in binary units in efi_print_memmap Ingo Molnar <mingo@kernel.org> - 2016-02-03 11:50 +0100
Re: [PATCH 14/14] x86/efi: Print size in binary units in efi_print_memmap Matt Fleming <matt@codeblueprint.co.uk> - 2016-02-03 12:30 +0100
Re: [PATCH 14/14] x86/efi: Print size in binary units in efi_print_memmap Andy Shevchenko <andy.shevchenko@gmail.com> - 2016-02-03 13:40 +0100
RE: [PATCH 14/14] x86/efi: Print size in binary units in efi_print_memmap "Elliott, Robert (Persistent Memory)" <elliott@hpe.com> - 2016-02-03 16:30 +0100
Re: [PATCH 14/14] x86/efi: Print size in binary units in efi_print_memmap Ingo Molnar <mingo@kernel.org> - 2016-02-09 13:30 +0100
Re: [PATCH 14/14] x86/efi: Print size in binary units in efi_print_memmap Laszlo Ersek <lersek@redhat.com> - 2016-02-09 14:00 +0100
Re: [PATCH 14/14] x86/efi: Print size in binary units in efi_print_memmap Ingo Molnar <mingo@kernel.org> - 2016-02-09 14:20 +0100
csiph-web