Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1280096

Re: [PATCHv2] x86: mm: clean up probe_memory_block_size()

From Seth Jennings <sjennings@variantweb.net>
Newsgroups linux.kernel
Subject Re: [PATCHv2] x86: mm: clean up probe_memory_block_size()
Date 2015-11-30 17:50 +0100
Message-ID <qAzOi-66r-13@gated-at.bofh.it> (permalink)
References <qzh73-58j-7@gated-at.bofh.it> <qzlNn-8gf-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Nov 27, 2015 at 08:39:32AM +0100, Ingo Molnar wrote:
> 
> * Seth Jennings <sjennings@variantweb.net> wrote:
> 
> > v2:
> > remove local bz variable (Ingo) and debug message since, if
> > the 2GB message doesn't print, there is only one possible
> > block size.
> 
> I'd not remove the info message, it would print the memory block size regardless 
> of memory size. Yes, one could decode the 'no message' case as 'the kernel used 
> the default value' - but that's very version dependent and obscure in any case. 
> Please keep the debug message in both code paths, like the original code had it.
> 
> But, on a second thought, I'd definitely harmonize the messages, instead of:
> 
> >  		pr_info("Using 2GB memory block size for large-memory system\n");
> > 	printk(KERN_DEBUG "memory block size : %ldMB\n", bz >> 20);
> 
> I'd print:
> 
> >  		pr_info("x86/mm: Memory block size: 2GB, large-memory system\n");
> > 	pr_info("x86/mm: Memory block size: %ldMB\n", bz >> 20);
> 
> Also note how I changed both printouts to pr_info(), so that we have the memory 
> block size information printed unconditionally.
> 
> (And btw., doing this printout means that we should keep the 'bz' local variable.)

Just sent out v3.

Thanks,
Seth

> 
> Thanks,
> 
> 	Ingo
--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCHv2] x86: mm: clean up probe_memory_block_size() Seth Jennings <sjennings@variantweb.net> - 2015-11-27 03:40 +0100
  Re: [PATCHv2] x86: mm: clean up probe_memory_block_size() Ingo Molnar <mingo@kernel.org> - 2015-11-27 08:40 +0100
    Re: [PATCHv2] x86: mm: clean up probe_memory_block_size() Seth Jennings <sjennings@variantweb.net> - 2015-11-30 17:50 +0100

csiph-web