Skip to contentSkip to conversation

ARM: tegra: add kexec support to defconfig

PATCH New Stephen Warren 2 participants 7 messages Jan 2, 2013 – Jan 4, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: tegra: add kexec support to defconfig

From: Stephen Warren <[email protected]>

---
 arch/arm/configs/tegra_defconfig |    1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/tegra_defconfig +1 -0
index 742dc41..e621603 100644
@@ -34,6 +34,7 @@ CONFIG_AEABI=y
 CONFIG_HIGHMEM=y
 CONFIG_ZBOOT_ROM_TEXT=0x0
 CONFIG_ZBOOT_ROM_BSS=0x0
+CONFIG_KEXEC=y
 CONFIG_CPU_FREQ=y
 CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
 CONFIG_CPU_IDLE=y
Signature · 1 line
1.7.10.4
author Applied
#1 lore raw

PATCH 1/1 ARM: tegra: add kexec support to defconfig

Quoted 1 line · Stephen Warren

...

Applied to (squashed into) Tegra's for-3.9/defconfig branch.

#2 lore raw

PATCH 1/1 ARM: tegra: add kexec support to defconfig

In reply to Stephen Warren
Quoted 12 lines · Stephen Warren

From: Stephen Warren <[email protected]>

---
 arch/arm/configs/tegra_defconfig |    1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/tegra_defconfig +0 -0
index 742dc41..e621603 100644

arch/arm/configs/tegra_defconfig CONFIG_AEABI=y · line 40

Quoted 7 lines
arch/arm/configs/tegra_defconfig +1 -0
@@ -34,6 +34,7 @@ CONFIG_AEABI=y
 CONFIG_HIGHMEM=y
 CONFIG_ZBOOT_ROM_TEXT=0x0
 CONFIG_ZBOOT_ROM_BSS=0x0
+CONFIG_KEXEC=y
 CONFIG_CPU_FREQ=y
 CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
 CONFIG_CPU_IDLE=y

Interesting. What do you plan to use this for? kdump?

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130103/e0a702be/attachment.sig>

#3 lore raw

PATCH 1/1 ARM: tegra: add kexec support to defconfig

Quoted 7 lines · Thierry Reding
Quoted 6 lines · Stephen Warren

From: Stephen Warren <[email protected]>

arch/arm/configs/tegra_defconfig | 1 + 1 file changed, 1
insertion(+)

Quoted 9 lines
Quoted 7 lines
(quoted diff) +0 -0

b/arch/arm/configs/tegra_defconfig index 742dc41..e621603 100644 --- a/arch/arm/configs/tegra_defconfig +++ b/arch/arm/configs/tegra_defconfig @@ -34,6 +34,7 @@ CONFIG_AEABI=y CONFIG_HIGHMEM=y CONFIG_ZBOOT_ROM_TEXT=0x0 CONFIG_ZBOOT_ROM_BSS=0x0 +CONFIG_KEXEC=y CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y CONFIG_CPU_IDLE=y

Interesting. What do you plan to use this for? kdump?

I plan to burn a kernel (and a small stub, and a DTB) into flash instead of U-Boot, and hence not have to rely on any bootloader.

Even ignoring that, a quick scp of a new kernel to a target followed by a kexec is faster than rebooting all the way through U-Boot's slower Ethernet support to boot a new kernel.

#4 lore raw

PATCH 1/1 ARM: tegra: add kexec support to defconfig

Quoted 18 lines · Stephen Warren
Quoted 7 lines · Thierry Reding
Quoted 6 lines · Stephen Warren

From: Stephen Warren <[email protected]>

arch/arm/configs/tegra_defconfig | 1 + 1 file changed, 1
insertion(+)

Quoted 9 lines
Quoted 7 lines
(quoted diff) +0 -0

b/arch/arm/configs/tegra_defconfig index 742dc41..e621603 100644 --- a/arch/arm/configs/tegra_defconfig +++ b/arch/arm/configs/tegra_defconfig @@ -34,6 +34,7 @@ CONFIG_AEABI=y CONFIG_HIGHMEM=y CONFIG_ZBOOT_ROM_TEXT=0x0 CONFIG_ZBOOT_ROM_BSS=0x0 +CONFIG_KEXEC=y CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y CONFIG_CPU_IDLE=y

Interesting. What do you plan to use this for? kdump?

Quoted 2 lines

I plan to burn a kernel (and a small stub, and a DTB) into flash instead of U-Boot, and hence not have to rely on any bootloader.

Why does that require kexec support?

Quoted 3 lines

Even ignoring that, a quick scp of a new kernel to a target followed by a kexec is faster than rebooting all the way through U-Boot's slower Ethernet support to boot a new kernel.

That sounds like an interesting approach. I wonder if this actually works with the current state of drivers in mainline. Sounds like this could speed up development quite a bit by avoiding full reboots.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130103/ffe62503/attachment.sig>

#5 lore raw

PATCH 1/1 ARM: tegra: add kexec support to defconfig

Quoted 20 lines · Thierry Reding
Quoted 19 lines · Stephen Warren
Quoted 17 lines · Thierry Reding
Quoted 6 lines · Stephen Warren

From: Stephen Warren <[email protected]>

arch/arm/configs/tegra_defconfig | 1 + 1 file changed, 1
insertion(+)

Quoted 7 lines
(quoted diff) +0 -0

b/arch/arm/configs/tegra_defconfig index 742dc41..e621603 100644 --- a/arch/arm/configs/tegra_defconfig +++ b/arch/arm/configs/tegra_defconfig @@ -34,6 +34,7 @@ CONFIG_AEABI=y CONFIG_HIGHMEM=y CONFIG_ZBOOT_ROM_TEXT=0x0 CONFIG_ZBOOT_ROM_BSS=0x0 +CONFIG_KEXEC=y CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y CONFIG_CPU_IDLE=y

Interesting. What do you plan to use this for? kdump?

Quoted 4 lines
Quoted 2 lines

I plan to burn a kernel (and a small stub, and a DTB) into flash instead of U-Boot, and hence not have to rely on any bootloader.

Why does that require kexec support?

Because I'd be using that kernel plus an initrd to download the "real" kernel over e.g. TFTP and kexec it.

#6 lore raw

PATCH 1/1 ARM: tegra: add kexec support to defconfig

Quoted 21 lines · Stephen Warren
Quoted 20 lines · Thierry Reding
Quoted 19 lines · Stephen Warren
Quoted 17 lines · Thierry Reding
Quoted 6 lines · Stephen Warren

From: Stephen Warren <[email protected]>

arch/arm/configs/tegra_defconfig | 1 + 1 file changed, 1
insertion(+)

Quoted 7 lines
(quoted diff) +0 -0

b/arch/arm/configs/tegra_defconfig index 742dc41..e621603 100644 --- a/arch/arm/configs/tegra_defconfig +++ b/arch/arm/configs/tegra_defconfig @@ -34,6 +34,7 @@ CONFIG_AEABI=y CONFIG_HIGHMEM=y CONFIG_ZBOOT_ROM_TEXT=0x0 CONFIG_ZBOOT_ROM_BSS=0x0 +CONFIG_KEXEC=y CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y CONFIG_CPU_IDLE=y

Interesting. What do you plan to use this for? kdump?

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

I plan to burn a kernel (and a small stub, and a DTB) into flash instead of U-Boot, and hence not have to rely on any bootloader.

Why does that require kexec support?

Because I'd be using that kernel plus an initrd to download the "real" kernel over e.g. TFTP and kexec it.

Right, that makes sense. Thanks for explaining.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130104/395cb0d5/attachment.sig>