From: Greg Ungerer <gerg@snapgear.com>
To: akpm@linux-foundation.org
Cc: mm-commits@vger.kernel.org, vapier@gentoo.org,
alan-jenkins@tuffmail.co.uk, jeremy@xensource.com,
linux-arch@vger.kernel.org, rusty@rustcorp.com.au,
sam@ravnborg.org
Subject: Re: + vmlinuxldsh-gather-datashared_aligned-sections-in-data_data.patch added to -mm tree
Date: Tue, 19 Oct 2010 10:37:15 +1000 [thread overview]
Message-ID: <4CBCE83B.2040400@snapgear.com> (raw)
In-Reply-To: <201010182357.o9INvYfE009283@imap1.linux-foundation.org>
On 19/10/10 09:57, akpm@linux-foundation.org wrote:
> The patch titled
> vmlinux.lds.h: gather .data..shared_aligned sections in DATA_DATA
> has been added to the -mm tree. Its filename is
> vmlinuxldsh-gather-datashared_aligned-sections-in-data_data.patch
>
> Before you just go and hit "reply", please:
> a) Consider who else should be cc'ed
> b) Prefer to cc a suitable mailing list as well
> c) Ideally: find the original patch on the mailing list and do a
> reply-to-all to that, adding suitable additional cc's
>
> *** Remember to use Documentation/SubmitChecklist when testing your code ***
>
> See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
> out what to do about this
>
> The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
>
> ------------------------------------------------------
> Subject: vmlinux.lds.h: gather .data..shared_aligned sections in DATA_DATA
> From: Mike Frysinger<vapier@gentoo.org>
>
> With the recent change "net: remove time limit in process_backlog()", the
> softnet_data variable changed from "DEFINE_PER_CPU()" to
> "DEFINE_PER_CPU_ALIGNED()" which moved it from the .data section to the
> .data.shared_align section. I'm not saying this patch is wrong, just that
> is what caused me to notice this larger problem. No one else in the
> kernel is using this aligned macro variant, so I imagine that's why no one
> has noticed yet.
>
> Since .data.shared_align isnt declared in any vmlinux files that I can
It is in arch/m68knommu/kernel/vmlinux.lds.S, merged on 2010-09-07.
(I take it you mean .data..shared_align here though?)
Obviously I can back that out once this hits Linus' tree.
Regards
Greg
> see, the linker just places it last. This "just works" for most
> people, but when building a ROM kernel on Blackfin systems, it causes
> section overlap errors:
> bfin-uclinux-ld.real:
> section .init.data [00000000202e06b8 -> 00000000202e48b7] overlaps
> section .data.shared_aligned [00000000202e06b8 -> 00000000202e0723]
> I imagine other arches which support the ROM config option and thus do
> funky placement would see similar issues ...
>
> On x86, it is stuck in a dedicated section at the end:
> [8] .data PROGBITS ffffffff810ec000 2ec0000303a8 00 WA 0 0 4096
> [9] .data.shared_alig PROGBITS ffffffff8111c3c0 31c3c00000c8 00 WA 0 0 64
>
> So make sure we include this section in the DATA_DATA macro so that it is
> placed in the right location.
>
> Signed-off-by: Mike Frysinger<vapier@gentoo.org>
> Cc: Sam Ravnborg<sam@ravnborg.org>
> Cc: Jeremy Fitzhardinge<jeremy@xensource.com>
> Cc: Rusty Russell<rusty@rustcorp.com.au>
> Cc: Alan Jenkins<alan-jenkins@tuffmail.co.uk>
> Cc:<linux-arch@vger.kernel.org>
> Signed-off-by: Andrew Morton<akpm@linux-foundation.org>
> ---
>
> include/asm-generic/vmlinux.lds.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff -puN include/asm-generic/vmlinux.lds.h~vmlinuxldsh-gather-datashared_aligned-sections-in-data_data include/asm-generic/vmlinux.lds.h
> --- a/include/asm-generic/vmlinux.lds.h~vmlinuxldsh-gather-datashared_aligned-sections-in-data_data
> +++ a/include/asm-generic/vmlinux.lds.h
> @@ -150,6 +150,7 @@
> #define DATA_DATA \
> *(.data) \
> *(.ref.data) \
> + *(.data..shared_aligned) /* percpu related */ \
> DEV_KEEP(init.data) \
> DEV_KEEP(exit.data) \
> CPU_KEEP(init.data) \
> _
>
> Patches currently in -mm which might be from vapier@gentoo.org are
>
> drivers-misc-ad525x_dpot-fix-typo-in-spi-write16-and-write24-transfer-counts.patch
> linux-next.patch
> m68knommu-blackfin-remove-old-assembler-only-flags-bit-definitions.patch
> vmlinuxldsh-gather-datashared_aligned-sections-in-data_data.patch
> drivers-misc-ad525x_dpot-fix-part-name-typos-in-defines.patch
> drivers-misc-ad525x_dpot-new-features.patch
> misc-devices-do-not-enable-by-default.patch
> rtc-bfin-shrink-optimize-interrupt-handler-a-bit.patch
> rtc-bfin-add-debug-markers-to-suspend-resume-paths.patch
> gpio-adp5588-gpio-support-interrupt-controller.patch
> gpio-adp5588-gpio-gpio_start-must-be-signed.patch
> ptrace-cleanup-arch_ptrace-and-friends-on-blackfin.patch
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-arch" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: gerg@snapgear.com
SnapGear Group, McAfee PHONE: +61 7 3435 2888
8 Gardner Close FAX: +61 7 3217 5323
Milton, QLD, 4064, Australia WEB: http://www.SnapGear.com
next prev parent reply other threads:[~2010-10-19 0:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-18 23:57 + vmlinuxldsh-gather-datashared_aligned-sections-in-data_data.patch added to -mm tree akpm
2010-10-19 0:37 ` Greg Ungerer [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-10-18 23:57 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=4CBCE83B.2040400@snapgear.com \
--to=gerg@snapgear.com \
--cc=akpm@linux-foundation.org \
--cc=alan-jenkins@tuffmail.co.uk \
--cc=jeremy@xensource.com \
--cc=linux-arch@vger.kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
--cc=sam@ravnborg.org \
--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.