From: Randy Dunlap <randy.dunlap@oracle.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: akpm@linux-foundation.org, mm-commits@vger.kernel.org,
cooloney@kernel.org, davem@davemloft.net, dhowells@redhat.com,
geert@linux-m68k.org, hpa@zytor.com, ink@jurassic.park.msu.ru,
kyle@mcmartin.ca, lethal@linux-sh.org,
linux-arch@vger.kernel.org, mingo@elte.hu, ralf@linux-mips.org,
rth@twiddle.net, schwidefsky@de.ibm.com, starvik@axis.com,
takata@linux-m32r.org, tglx@linutronix.de, tony.luck@intel.com,
vapier@gentoo.org
Subject: Re: + kmap_types-make-most-arches-use-generic-header-file.patch added to -mm tree
Date: Thu, 28 May 2009 15:54:06 -0700 [thread overview]
Message-ID: <4A1F160E.8060209@oracle.com> (raw)
In-Reply-To: <200905282211.58997.arnd@arndb.de>
Arnd Bergmann wrote:
> On Thursday 28 May 2009 21:31:06 akpm@linux-foundation.org wrote:
>> The patch titled
>> kmap_types: make most arches use generic header file
>> has been added to the -mm tree. Its filename is
>> kmap_types-make-most-arches-use-generic-header-file.patch
>
> Thanks for adding it back.
>
>> Move the KM_FENCE_ macro additions into asm-generic/kmap_types.h,
>> controlled by __WITH_KM_FENCE from each arch's kmap_types.h file.
>
> I completely missed this part of the patch before. Is this actually useful?
> All architectures that define it (x86 with a twist, the check for X86_32 is
> an artifact from the x86 arch merge) do
>
> #ifdef CONFIG_DEBUG_HIGHMEM
> #define __WITH_KM_FENCE
> #endif
>
> However: alpha, ia64, m32r, parisc and sh don't even support CONFIG_HIGHMEM
> and therefore also can't set CONFIG_DEBUG_HIGHMEM. Conversely, mn10300 and
> sparc can set CONFIG_DEBUG_HIGHMEM but don't get the extra checking
> from KM_FENCE without this.
>
> It seems to me that it would be at least as correct but simpler to just
> leave the check for CONFIG_DEBUG_HIGHMEM.
Yes, I noticed that's how it was in your patch.
>> Would be nice to be able to add custom KM_types per arch, but I don't yet
>> see a nice, clean way to do that.
>
> FWIW, the only types that are not in the generic file right now are
>
> arm: KM_L2_CACHE
> powerpc: KM_PPC_SYNC_ICACHE, KM_PPC_SYNC_PAGE
> um: KM_UML_USERCOPY
>
> We could easily add these as KM_SYNC_ICACHE, KM_SYNC_DCACHE and
> KM_UML_USERCOPY in the generic file and get rid of all architecture
> specific types here.
OK by me. I'll update it...
Thanks for looking.
--
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
next prev parent reply other threads:[~2009-05-28 22:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-28 21:31 + kmap_types-make-most-arches-use-generic-header-file.patch added to -mm tree akpm
2009-05-28 22:11 ` Arnd Bergmann
2009-05-28 22:54 ` Randy Dunlap [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-04-20 22:08 akpm
2009-04-20 22:08 akpm
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=4A1F160E.8060209@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=arnd@arndb.de \
--cc=cooloney@kernel.org \
--cc=davem@davemloft.net \
--cc=dhowells@redhat.com \
--cc=geert@linux-m68k.org \
--cc=hpa@zytor.com \
--cc=ink@jurassic.park.msu.ru \
--cc=kyle@mcmartin.ca \
--cc=lethal@linux-sh.org \
--cc=linux-arch@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mm-commits@vger.kernel.org \
--cc=ralf@linux-mips.org \
--cc=rth@twiddle.net \
--cc=schwidefsky@de.ibm.com \
--cc=starvik@axis.com \
--cc=takata@linux-m32r.org \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.com \
--cc=vapier@gentoo.org \
/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.