All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Weiner <hannes@saeurebad.de>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org, mingo@elte.hu,
	davem@davemloft.net, hskinnemoen@atmel.com, cooloney@kernel.org,
	starvik@axis.com, dhowells@redhat.com,
	ysato@users.sourceforge.net, takata@linux-m32r.org,
	geert@linux-m68k.org, ralf@linux-mips.org, kyle@parisc-linux.org,
	paulus@samba.org, schwidefsky@de.ibm.com, lethal@linux-sh.org,
	jdike@addtoit.com, miles@gnu.org, chris@zankel.net,
	rmk@arm.linux.org.uk, tony.luck@intel.com
Subject: Re: [RFC 01/22] Generic show_mem() implementation
Date: Sat, 05 Apr 2008 01:10:32 +0200	[thread overview]
Message-ID: <87d4p5kyhj.fsf@saeurebad.de> (raw)
In-Reply-To: <20080404213540.GA15535@uranus.ravnborg.org> (Sam Ravnborg's message of "Fri, 4 Apr 2008 23:35:40 +0200")

Hi Sam,

Sam Ravnborg <sam@ravnborg.org> writes:

>> >> After more thinking about it, wouldn't it be better to have
>> >> HAVE_ARCH_SHOW_MEM in mm/Kconfig and let archs with their own show_mem()
>> >> select it?  Because there are far more archs that use the generic
>> >> version than those having their own.
>> >
>> > Positive logic is almost always simpler to grasp.
>> > And the usual way to do this is to let arch's select what they
>> > use.
>> > We do not want to have a situation where in most cases we select
>> > a generic version but in some oddball case we select to have
>> > a local version.
>> 
>> I can not follow you.  Of course the arch selects what they use.  But
>> they should not _all_ have to be flagged with an extra select.  So what
>> default-value are you arguing for?
> The normal pattern is to let arch select the generic implmentation they
> use.
> Just because the majority does use the generic version should not
> make us start to use the inverse logic as in your case.
>
> So I want all archs that uses the generic show_mem() to
> do an explicit:
>
> config MYARCH
> 	select HAVE_GENERIC_SHOWMEM
>
> 	Sam

What is the rationale behind this?  It is not a function the arch should
select at all because it is VM code.  The remaining arch-specific
versions are meant to be removed too.

It would be like forcing all architectures to select HAVE_GENERIC_PRINTK
just because one architecture oopses on printk() and needs to replace it
with its own version.

	Hannes

WARNING: multiple messages have this Message-ID (diff)
From: Johannes Weiner <hannes@saeurebad.de>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org, mingo@elte.hu,
	davem@davemloft.net, hskinnemoen@atmel.com, cooloney@kernel.org,
	starvik@axis.com, dhowells@redhat.com, ysato@users.sf.net,
	takata@linux-m32r.org, geert@linux-m68k.org, ralf@linux-mips.org,
	kyle@parisc-linux.org, paulus@samba.org, schwidefsky@de.ibm.com,
	lethal@linux-sh.org, jdike@addtoit.com, miles@gnu.org,
	chris@zankel.net, rmk@arm.linux.org.uk, tony.luck@intel.com
Subject: Re: [RFC 01/22] Generic show_mem() implementation
Date: Sat, 05 Apr 2008 01:10:32 +0200	[thread overview]
Message-ID: <87d4p5kyhj.fsf@saeurebad.de> (raw)
In-Reply-To: <20080404213540.GA15535@uranus.ravnborg.org> (Sam Ravnborg's message of "Fri, 4 Apr 2008 23:35:40 +0200")

Hi Sam,

Sam Ravnborg <sam@ravnborg.org> writes:

>> >> After more thinking about it, wouldn't it be better to have
>> >> HAVE_ARCH_SHOW_MEM in mm/Kconfig and let archs with their own show_mem()
>> >> select it?  Because there are far more archs that use the generic
>> >> version than those having their own.
>> >
>> > Positive logic is almost always simpler to grasp.
>> > And the usual way to do this is to let arch's select what they
>> > use.
>> > We do not want to have a situation where in most cases we select
>> > a generic version but in some oddball case we select to have
>> > a local version.
>> 
>> I can not follow you.  Of course the arch selects what they use.  But
>> they should not _all_ have to be flagged with an extra select.  So what
>> default-value are you arguing for?
> The normal pattern is to let arch select the generic implmentation they
> use.
> Just because the majority does use the generic version should not
> make us start to use the inverse logic as in your case.
>
> So I want all archs that uses the generic show_mem() to
> do an explicit:
>
> config MYARCH
> 	select HAVE_GENERIC_SHOWMEM
>
> 	Sam

What is the rationale behind this?  It is not a function the arch should
select at all because it is VM code.  The remaining arch-specific
versions are meant to be removed too.

It would be like forcing all architectures to select HAVE_GENERIC_PRINTK
just because one architecture oopses on printk() and needs to replace it
with its own version.

	Hannes

  reply	other threads:[~2008-04-04 23:10 UTC|newest]

Thread overview: 95+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-02 20:40 [RFC 00/21] Generic show_mem() Johannes Weiner
2008-04-02 20:40 ` Johannes Weiner
2008-04-02 20:40 ` [RFC 01/22] Generic show_mem() implementation Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-03  7:55   ` Heiko Carstens
2008-04-03  7:55     ` Heiko Carstens
2008-04-03 12:48     ` Sam Ravnborg
2008-04-03 12:48       ` Sam Ravnborg
2008-04-03 13:30       ` Johannes Weiner
2008-04-03 13:30         ` Johannes Weiner
2008-04-03 14:49       ` Johannes Weiner
2008-04-03 14:49         ` Johannes Weiner
2008-04-03 18:12         ` Sam Ravnborg
2008-04-03 18:12           ` Sam Ravnborg
2008-04-03 22:33           ` Johannes Weiner
2008-04-03 22:33             ` Johannes Weiner
2008-04-04 21:35             ` Sam Ravnborg
2008-04-04 21:35               ` Sam Ravnborg
2008-04-04 23:10               ` Johannes Weiner [this message]
2008-04-04 23:10                 ` Johannes Weiner
2008-04-05  7:51                 ` Heiko Carstens
2008-04-05  7:51                   ` Heiko Carstens
2008-04-05  9:04                   ` Ralf Baechle
2008-04-05 17:52                     ` Heiko Carstens
2008-04-03 12:18   ` Ralf Baechle
2008-04-02 20:40 ` [RFC 02/22] x86: Use generic show_mem() Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-04  8:17   ` Ingo Molnar
2008-04-04  8:17     ` Ingo Molnar
2008-04-02 20:40 ` [RFC 03/22] sparc64: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-02 20:40 ` [RFC 04/22] avr32: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-02 20:40 ` [RFC 05/22] blackfin: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-02 20:40 ` [RFC 06/22] cris: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-02 20:40 ` [RFC 07/22] frv: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-02 20:40 ` [RFC 08/22] h8300: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-02 20:40 ` [RFC 09/22] m32r: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-02 20:40 ` [RFC 10/22] m68k: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-03  7:40   ` Geert Uytterhoeven
2008-04-03 12:58     ` Johannes Weiner
2008-04-03 13:39       ` Geert Uytterhoeven
2008-04-03 15:10         ` Johannes Weiner
2008-04-03 16:07           ` Hugh Dickins
2008-04-03 16:17             ` Johannes Weiner
2008-04-03 19:13             ` Geert Uytterhoeven
2008-04-02 20:40 ` [RFC 11/22] m68knommu: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-02 20:40 ` [RFC 12/22] mips: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-03 11:59   ` Ralf Baechle
2008-04-02 20:40 ` [RFC 13/22] mn10300: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-02 20:40 ` [RFC 14/22] parisc: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-02 20:40 ` [RFC 15/22] powerpc: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-02 20:40 ` [RFC 16/22] ppc: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-02 20:40 ` [RFC 17/22] s390: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-03  7:50   ` Heiko Carstens
2008-04-03  7:50     ` Heiko Carstens
2008-04-03 13:00     ` Johannes Weiner
2008-04-03 13:00       ` Johannes Weiner
2008-04-03 17:58       ` Heiko Carstens
2008-04-03 17:58         ` Heiko Carstens
2008-04-03 22:37         ` Johannes Weiner
2008-04-03 22:37           ` Johannes Weiner
2008-04-04  7:39           ` Heiko Carstens
2008-04-04  7:39             ` Heiko Carstens
2008-04-02 20:40 ` [RFC 18/22] sh: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-03 11:41   ` Paul Mundt
2008-04-03 11:41     ` Paul Mundt
2008-04-03 13:08     ` Johannes Weiner
2008-04-03 13:08       ` Johannes Weiner
2008-04-02 20:40 ` [RFC 19/22] um: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-04 14:38   ` Jeff Dike
2008-04-02 20:40 ` [RFC 20/22] v850: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-02 20:40 ` [RFC 21/22] xtensa: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-02 20:40 ` [RFC 22/22] alpha: " Johannes Weiner
2008-04-02 20:40   ` Johannes Weiner
2008-04-03 23:45 ` [RFC 00/21] Generic show_mem() Johannes Weiner
  -- strict thread matches above, loose matches on Subject: below --
2008-04-02 20:29 Johannes Weiner
2008-04-02 20:29 ` [RFC 01/22] Generic show_mem() implementation Johannes Weiner
2008-04-02 20:29   ` Johannes Weiner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d4p5kyhj.fsf@saeurebad.de \
    --to=hannes@saeurebad.de \
    --cc=chris@zankel.net \
    --cc=cooloney@kernel.org \
    --cc=davem@davemloft.net \
    --cc=dhowells@redhat.com \
    --cc=geert@linux-m68k.org \
    --cc=heiko.carstens@de.ibm.com \
    --cc=hskinnemoen@atmel.com \
    --cc=jdike@addtoit.com \
    --cc=kyle@parisc-linux.org \
    --cc=lethal@linux-sh.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=miles@gnu.org \
    --cc=mingo@elte.hu \
    --cc=paulus@samba.org \
    --cc=ralf@linux-mips.org \
    --cc=rmk@arm.linux.org.uk \
    --cc=sam@ravnborg.org \
    --cc=schwidefsky@de.ibm.com \
    --cc=starvik@axis.com \
    --cc=takata@linux-m32r.org \
    --cc=tony.luck@intel.com \
    --cc=ysato@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.