* [patch 1/1] arch/arm/kernel/setup.c: initialize arm_dma_zone_size earlier
@ 2011-12-08 21:31 Arnaud Patard (Rtp)
2011-12-08 23:46 ` Russell King - ARM Linux
2011-12-10 21:38 ` Russell King - ARM Linux
0 siblings, 2 replies; 4+ messages in thread
From: Arnaud Patard (Rtp) @ 2011-12-08 21:31 UTC (permalink / raw)
To: linux-arm-kernel
An embedded and charset-unspecified text was scrubbed...
Name: unbreak_nslu2.patch
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20111208/6c01aae6/attachment.ksh>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [patch 1/1] arch/arm/kernel/setup.c: initialize arm_dma_zone_size earlier
2011-12-08 21:31 [patch 1/1] arch/arm/kernel/setup.c: initialize arm_dma_zone_size earlier Arnaud Patard (Rtp)
@ 2011-12-08 23:46 ` Russell King - ARM Linux
2011-12-10 21:38 ` Russell King - ARM Linux
1 sibling, 0 replies; 4+ messages in thread
From: Russell King - ARM Linux @ 2011-12-08 23:46 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Dec 08, 2011 at 10:31:09PM +0100, Arnaud Patard wrote:
> arm_dma_zone_size is used by arm_bootmem_free() which is called by
> paging_init(). Thus it needs to be set before calling it.
>
> Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
> Acked-by: Nicolas Pitre <nico@linaro.org>
> CC: stable at kernel.org
Don't _actually_ send stuff to the stable team until it's in mainline,
otherwise you'll get a complaint from them. See
Documentation/stable_kernel_rules.txt. (I'm leaving the stable cc
there so they know that this has already been said.)
Apart from that the patch looks fine to me.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [patch 1/1] arch/arm/kernel/setup.c: initialize arm_dma_zone_size earlier
2011-12-08 21:31 [patch 1/1] arch/arm/kernel/setup.c: initialize arm_dma_zone_size earlier Arnaud Patard (Rtp)
2011-12-08 23:46 ` Russell King - ARM Linux
@ 2011-12-10 21:38 ` Russell King - ARM Linux
2011-12-11 19:35 ` Arnaud Patard (Rtp)
1 sibling, 1 reply; 4+ messages in thread
From: Russell King - ARM Linux @ 2011-12-10 21:38 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Dec 08, 2011 at 10:31:09PM +0100, Arnaud Patard wrote:
> arm_dma_zone_size is used by arm_bootmem_free() which is called by
> paging_init(). Thus it needs to be set before calling it.
>
> Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
> Acked-by: Nicolas Pitre <nico@linaro.org>
> CC: stable at kernel.org
> Index: linux-2.6/arch/arm/kernel/setup.c
> ===================================================================
> --- linux-2.6.orig/arch/arm/kernel/setup.c 2011-12-08 22:17:01.000000000 +0100
> +++ linux-2.6/arch/arm/kernel/setup.c 2011-12-08 22:17:32.000000000 +0100
> @@ -911,6 +911,12 @@ void __init setup_arch(char **cmdline_p)
> machine_desc = mdesc;
> machine_name = mdesc->name;
>
> +#ifdef CONFIG_ZONE_DMA
> + if (mdesc->dma_zone_size) {
> + extern unsigned long arm_dma_zone_size;
> + arm_dma_zone_size = mdesc->dma_zone_size;
> + }
> +#endif
> if (mdesc->restart_mode)
> reboot_setup(&mdesc->restart_mode);
Just trying to apply this patch, it won't apply to mainline because it's
based upon the bleeding edge of kernel development, rather than what's
currently in mainline. If we're going to fix this in current mainline
and previous stable versions, the patch needs to be against that, not
linux-next.
Could you re-generate against an -rc kernel please?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [patch 1/1] arch/arm/kernel/setup.c: initialize arm_dma_zone_size earlier
2011-12-10 21:38 ` Russell King - ARM Linux
@ 2011-12-11 19:35 ` Arnaud Patard (Rtp)
0 siblings, 0 replies; 4+ messages in thread
From: Arnaud Patard (Rtp) @ 2011-12-11 19:35 UTC (permalink / raw)
To: linux-arm-kernel
Russell King - ARM Linux <linux@arm.linux.org.uk> writes:
Hi,
> On Thu, Dec 08, 2011 at 10:31:09PM +0100, Arnaud Patard wrote:
>> arm_dma_zone_size is used by arm_bootmem_free() which is called by
>> paging_init(). Thus it needs to be set before calling it.
>>
>> Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
>> Acked-by: Nicolas Pitre <nico@linaro.org>
>> CC: stable at kernel.org
>> Index: linux-2.6/arch/arm/kernel/setup.c
>> ===================================================================
>> --- linux-2.6.orig/arch/arm/kernel/setup.c 2011-12-08 22:17:01.000000000 +0100
>> +++ linux-2.6/arch/arm/kernel/setup.c 2011-12-08 22:17:32.000000000 +0100
>> @@ -911,6 +911,12 @@ void __init setup_arch(char **cmdline_p)
>> machine_desc = mdesc;
>> machine_name = mdesc->name;
>>
>> +#ifdef CONFIG_ZONE_DMA
>> + if (mdesc->dma_zone_size) {
>> + extern unsigned long arm_dma_zone_size;
>> + arm_dma_zone_size = mdesc->dma_zone_size;
>> + }
>> +#endif
>> if (mdesc->restart_mode)
>> reboot_setup(&mdesc->restart_mode);
>
> Just trying to apply this patch, it won't apply to mainline because it's
> based upon the bleeding edge of kernel development, rather than what's
> currently in mainline. If we're going to fix this in current mainline
> and previous stable versions, the patch needs to be against that, not
> linux-next.
>
> Could you re-generate against an -rc kernel please?
Ok. No problem. Done. It's the patch 7204/1 in the patch system.
Arnaud
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-12-11 19:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-08 21:31 [patch 1/1] arch/arm/kernel/setup.c: initialize arm_dma_zone_size earlier Arnaud Patard (Rtp)
2011-12-08 23:46 ` Russell King - ARM Linux
2011-12-10 21:38 ` Russell King - ARM Linux
2011-12-11 19:35 ` Arnaud Patard (Rtp)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).