RISC-V: Clean up the defconfigs
Subsystems (2)
cover RISC-V: Clean up the defconfigs
It's been a while since updating the defconfigs, so I figured it would be good to go through all the diff to make sure nothing was lurking. It turns out there were two minor issues, which I've fixed with the first two patches. The rest of these are just cleanups that should have no functional change.
I don't have a K210 (I might somewhere, but I've yet to boot it) so I can't test this to make sure, but I think patch 2 is the reason we have a special !MMU PAGE_OFFSET config. If someone does have one it'd be nice to be able to remove that special case.
PATCH 1/12 RISC-V: defconfigs: Set CONFIG_FB=y, for FB console
From: Palmer Dabbelt <[email protected]>
We have CONFIG_FRAMEBUFFER_CONSOLE=y in the defconfigs, but that depends on CONFIG_FB so it's not actually getting set. I'm assuming most users on real systems want a framebuffer console, so this enables CONFIG_FB to allow that to take effect.
--- arch/riscv/configs/defconfig | 1 + arch/riscv/configs/rv32_defconfig | 1 + 2 files changed, 2 insertions(+)
arch/riscv/configs/defconfig +1 -0
@@ -78,6 +78,7 @@ CONFIG_DRM=m CONFIG_DRM_RADEON=m CONFIG_DRM_NOUVEAU=m CONFIG_DRM_VIRTIO_GPU=m +CONFIG_FB=y CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y
arch/riscv/configs/rv32_defconfig +1 -0
@@ -73,6 +73,7 @@ CONFIG_POWER_RESET=y CONFIG_DRM=y CONFIG_DRM_RADEON=y CONFIG_DRM_VIRTIO_GPU=y +CONFIG_FB=y CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y
Signature · 1 line
2.32.0
Re: [PATCH 01/12] RISC-V: defconfigs: Set CONFIG_FB=y, for FB console
Quoted 11 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
We have
CONFIG_FRAMEBUFFER_CONSOLE=yin the defconfigs, but that depends onCONFIG_FBso it's not actually getting set. I'm assuming most users on real systems want a framebuffer console, so this enablesCONFIG_FBto allow that to take effect.Fixes 33c57c0d3c67 ("RISC-V: Add a basic defconfig")Signed-off-by Palmer Dabbelt <[email protected]>
Looks good to me.
Regards,
Anup
Quoted 32 lines
--- arch/riscv/configs/defconfig | 1 + arch/riscv/configs/rv32_defconfig | 1 + 2 files changed, 2 insertions(+)arch/riscv/configs/defconfig +1
-0@@ -78,6 +78,7 @@ CONFIG_DRM=m CONFIG_DRM_RADEON=m CONFIG_DRM_NOUVEAU=m CONFIG_DRM_VIRTIO_GPU=m +CONFIG_FB=y CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=yarch/riscv/configs/rv32_defconfig +1
-1@@ -73,6 +73,7 @@ CONFIG_POWER_RESET=y CONFIG_DRM=y CONFIG_DRM_RADEON=y CONFIG_DRM_VIRTIO_GPU=y +CONFIG_FB=y CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y --2.32.0
PATCH 2/12 RISC-V: MAXPHYSMEM_2GB doesn't depend on CMODEL_MEDLOW
In reply to Palmer DabbeltFrom: Palmer Dabbelt <[email protected]>
For non-relocatable kernels we need to be able to link the kernel at approximately PAGE_OFFSET, thus requiring medany (as medlow requires the code to be linked within 2GiB of 0). The inverse doesn't apply, though:
since medany code can be linked anywhere it's fine to link it close to 0, so we can support the smaller memory config.
---
I found this when going through the savedefconfig diffs for the K210 defconfigs. I'm not entirely sure they're doing the right thing here (they should probably be setting CMODEL_LOW to take advantage of the better code generation), but I don't have any way to test those platforms so I don't want to change too much.
--- arch/riscv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/Kconfig +1 -1
@@ -280,7 +280,7 @@ choice depends on 32BIT bool "1GiB" config MAXPHYSMEM_2GB - depends on 64BIT && CMODEL_MEDLOW + depends on 64BIT bool "2GiB" config MAXPHYSMEM_128GB depends on 64BIT && CMODEL_MEDANY
Signature · 1 line
2.32.0
Re: [PATCH 02/12] RISC-V: MAXPHYSMEM_2GB doesn't depend on CMODEL_MEDLOW
Quoted 9 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
For non-relocatable kernels we need to be able to link the kernel at approximately
PAGE_OFFSET, thus requiring medany (as medlow requires the code to be linked within 2GiB of 0). The inverse doesn't apply, though:
since medany code can be linked anywhere it's fine to link it close to 0, so we can support the smaller memory config.
Quoted 3 lines
Fixes de5f4b8f634b ("RISC-V: Define MAXPHYSMEM_1GB only for RV32")Signed-off-by Palmer Dabbelt <[email protected]>
Looks good to me.
Regards,
Anup
Quoted 28 lines
---
I found this when going through the savedefconfig diffs for the K210 defconfigs. I'm not entirely sure they're doing the right thing here (they should probably be setting
CMODEL_LOWto take advantage of the better code generation), but I don't have any way to test those platforms so I don't want to change too much.--- arch/riscv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/riscv/Kconfig +1
-2@@ -280,7 +280,7 @@ choice depends on 32BIT bool "1GiB" config MAXPHYSMEM_2GB - depends on 64BIT && CMODEL_MEDLOW + depends on 64BIT bool "2GiB" config MAXPHYSMEM_128GB depends on 64BIT && CMODEL_MEDANY --2.32.0
Re: [PATCH 02/12] RISC-V: MAXPHYSMEM_2GB doesn't depend on CMODEL_MEDLOW
In reply to Palmer DabbeltHi Palmer,
Quoted 11 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
For non-relocatable kernels we need to be able to link the kernel at approximately
PAGE_OFFSET, thus requiring medany (as medlow requires the code to be linked within 2GiB of 0). The inverse doesn't apply, though:
since medany code can be linked anywhere it's fine to link it close to 0, so we can support the smaller memory config.Fixes de5f4b8f634b ("RISC-V: Define MAXPHYSMEM_1GB only for RV32")Signed-off-by Palmer Dabbelt <[email protected]>
Thanks for your patch, which is now commit 9f36b96bc70f9707 ("RISC-V:MAXPHYSMEM_2GB doesn't depend on CMODEL_MEDLOW").
Quoted 5 lines
I found this when going through the savedefconfig diffs for the K210 defconfigs. I'm not entirely sure they're doing the right thing here (they should probably be setting
CMODEL_LOWto take advantage of the better code generation), but I don't have any way to test those platforms so I don't want to change too much.
I can confirm MAXPHYSMEM_2GB works on K210 with CMODEL_MEDANY.
As the Icicle has 1760 MiB of RAM, I gave it a try with MAXPHYSMEM_2GB (and CMODEL_MEDANY), too. Unfortunately it crashes very early (needs earlycon to see):
OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
Machine model: Microchip PolarFire-SoC Icicle Kit
printk: debug: ignoring loglevel setting.
earlycon: ns16550a0 at MMIO32 0x0000000020100000 (options '115200n8')
printk: bootconsole [ns16550a0] enabled
printk: debug: skip boot console de-registration.
efi: UEFI not found.
Unable to handle kernel paging request at virtual address ffffffff87e00001
Oops [#1]
Modules linked in:
CPU: 0 PID: 0 Comm: swapper Not tainted 5.16.0-08771-g85515233477d #56
Hardware name: Microchip PolarFire-SoC Icicle Kit (DT)
epc : fdt_check_header+0x14/0x208
ra : early_init_dt_verify+0x16/0x94
epc : ffffffff802ddacc ra : ffffffff8082415a sp : ffffffff81203ee0
gp : ffffffff812ec3a8 tp : ffffffff8120cd80 t0 : 0000000000000005
t1 : 0000001040000000 t2 : ffffffff80000000 s0 : ffffffff81203f00
s1 : ffffffff87e00000 a0 : ffffffff87e00000 a1 : 000000040ffffce7
a2 : 00000000000000e7 a3 : ffffffff8080394c a4 : 0000000000000000
a5 : 0000000000000000 a6 : 0000000000000000 a7 : 0000000000000000
s2 : ffffffff81203f98 s3 : 8000000a00006800 s4 : fffffffffffffff3
s5 : 0000000000000000 s6 : 0000000000000001 s7 : 0000000000000000
s8 : 0000000020236c20 s9 : 0000000000000000 s10: 0000000000000000
s11: 0000000000000000 t3 : 0000000000000018 t4 : 00ff000000000000
t5 : 0000000000000000 t6 : 0000000000000010
status: 0000000200000100 badaddr: ffffffff87e00001 cause: 000000000000000d
[<ffffffff802ddacc>] fdt_check_header+0x14/0x208
[<ffffffff8082415a>] early_init_dt_verify+0x16/0x94
[<ffffffff80802dee>] setup_arch+0xec/0x4ec
[<ffffffff80800700>] start_kernel+0x88/0x6d6
random: get_random_bytes called from
print_oops_end_marker+0x22/0x44 with crng_init=0
---[ end trace 903df1a0ade0b876 ]---
Kernel panic - not syncing: Attempted to kill the idle task!
---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---So the FDT is at 0xffffffff87e00000, i.e. at 0x7e00000 from the start of virtual memory (CONFIG_PAGE_OFFSET=0xffffffff80000000), and thus within the 2 GiB range.
arch/riscv/Kconfig choice · line 286
Quoted 11 lines
arch/riscv/Kconfig +1
-1@@ -280,7 +280,7 @@ choice depends on 32BIT bool "1GiB" config MAXPHYSMEM_2GB - depends on 64BIT && CMODEL_MEDLOW + depends on 64BIT bool "2GiB" config MAXPHYSMEM_128GB depends on 64BIT && CMODEL_MEDANY
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Alexandre ghiti
reviewerRe: [PATCH 02/12] RISC-V: MAXPHYSMEM_2GB doesn't depend on CMODEL_MEDLOW
Hi Geert,
Quoted 64 lines · Geert Uytterhoeven
Hi Palmer,
Quoted 11 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
For non-relocatable kernels we need to be able to link the kernel at approximately
PAGE_OFFSET, thus requiring medany (as medlow requires the code to be linked within 2GiB of 0). The inverse doesn't apply, though:
since medany code can be linked anywhere it's fine to link it close to 0, so we can support the smaller memory config.Fixes de5f4b8f634b ("RISC-V: Define MAXPHYSMEM_1GB only for RV32")Signed-off-by Palmer Dabbelt <[email protected]>Thanks for your patch, which is now commit
9f36b96bc70f9707("RISC-V:MAXPHYSMEM_2GBdoesn't depend onCMODEL_MEDLOW").Quoted 5 lines
I found this when going through the savedefconfig diffs for the K210 defconfigs. I'm not entirely sure they're doing the right thing here (they should probably be setting
CMODEL_LOWto take advantage of the better code generation), but I don't have any way to test those platforms so I don't want to change too much.I can confirm
MAXPHYSMEM_2GBworks on K210 withCMODEL_MEDANY.As the Icicle has 1760 MiB of RAM, I gave it a try with
MAXPHYSMEM_2GB(andCMODEL_MEDANY), too. Unfortunately it crashes very early (needs earlycon to see):OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 Machine model: Microchip PolarFire-SoC Icicle Kit printk: debug: ignoring loglevel setting. earlycon: ns16550a0 at MMIO32 0x0000000020100000 (options '115200n8') printk: bootconsole [ns16550a0] enabled printk: debug: skip boot console de-registration. efi: UEFI not found. Unable to handle kernel paging request at virtual address ffffffff87e00001 Oops [#1] Modules linked in: CPU: 0 PID: 0 Comm: swapper Not tainted 5.16.0-08771-g85515233477d #56 Hardware name: Microchip PolarFire-SoC Icicle Kit (DT) epc : fdt_check_header+0x14/0x208 ra : early_init_dt_verify+0x16/0x94 epc : ffffffff802ddacc ra : ffffffff8082415a sp : ffffffff81203ee0 gp : ffffffff812ec3a8 tp : ffffffff8120cd80 t0 : 0000000000000005 t1 : 0000001040000000 t2 : ffffffff80000000 s0 : ffffffff81203f00 s1 : ffffffff87e00000 a0 : ffffffff87e00000 a1 : 000000040ffffce7 a2 : 00000000000000e7 a3 : ffffffff8080394c a4 : 0000000000000000 a5 : 0000000000000000 a6 : 0000000000000000 a7 : 0000000000000000 s2 : ffffffff81203f98 s3 : 8000000a00006800 s4 : fffffffffffffff3 s5 : 0000000000000000 s6 : 0000000000000001 s7 : 0000000000000000 s8 : 0000000020236c20 s9 : 0000000000000000 s10: 0000000000000000 s11: 0000000000000000 t3 : 0000000000000018 t4 : 00ff000000000000 t5 : 0000000000000000 t6 : 0000000000000010 status: 0000000200000100 badaddr: ffffffff87e00001 cause: 000000000000000d [<ffffffff802ddacc>] fdt_check_header+0x14/0x208 [<ffffffff8082415a>] early_init_dt_verify+0x16/0x94 [<ffffffff80802dee>] setup_arch+0xec/0x4ec [<ffffffff80800700>] start_kernel+0x88/0x6d6 random: get_random_bytes called from print_oops_end_marker+0x22/0x44 with crng_init=0 ---[ end trace 903df1a0ade0b876 ]--- Kernel panic - not syncing: Attempted to kill the idle task! ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---
Quoted 3 lines
So the FDT is at
0xffffffff87e00000, i.e. at0x7e00000from the start of virtual memory (CONFIG_PAGE_OFFSET=0xffffffff80000000), and thus within the 2 GiB range.
I think you have just encountered what I suspected and mentioned in [1]: we recently moved the kernel to the PAGE_OFFSET address used with MAXPHYSMEM_2GB.
I would try to cherry-pick [1] and see if that works better :)
Alex
[1] https://patchwork.kernel.org/project/linux-riscv/patch/[email protected]/
Quoted 27 lines
arch/riscv/Kconfig choice · line 286
Quoted 12 lines
arch/riscv/Kconfig +1
-1@@ -280,7 +280,7 @@ choice depends on 32BIT bool "1GiB" config MAXPHYSMEM_2GB - depends on 64BIT && CMODEL_MEDLOW + depends on 64BIT bool "2GiB" config MAXPHYSMEM_128GB depends on 64BIT && CMODEL_MEDANYGr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Geert Uytterhoeven
Tested-byRe: [PATCH 02/12] RISC-V: MAXPHYSMEM_2GB doesn't depend on CMODEL_MEDLOW
Hi Alex,
Quoted 72 lines · Alexandre ghiti
Quoted 62 lines · Geert Uytterhoeven
Quoted 11 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
For non-relocatable kernels we need to be able to link the kernel at approximately
PAGE_OFFSET, thus requiring medany (as medlow requires the code to be linked within 2GiB of 0). The inverse doesn't apply, though:
since medany code can be linked anywhere it's fine to link it close to 0, so we can support the smaller memory config.Fixes de5f4b8f634b ("RISC-V: Define MAXPHYSMEM_1GB only for RV32")Signed-off-by Palmer Dabbelt <[email protected]>Thanks for your patch, which is now commit
9f36b96bc70f9707("RISC-V:MAXPHYSMEM_2GBdoesn't depend onCMODEL_MEDLOW").Quoted 5 lines
I found this when going through the savedefconfig diffs for the K210 defconfigs. I'm not entirely sure they're doing the right thing here (they should probably be setting
CMODEL_LOWto take advantage of the better code generation), but I don't have any way to test those platforms so I don't want to change too much.I can confirm
MAXPHYSMEM_2GBworks on K210 withCMODEL_MEDANY.As the Icicle has 1760 MiB of RAM, I gave it a try with
MAXPHYSMEM_2GB(andCMODEL_MEDANY), too. Unfortunately it crashes very early (needs earlycon to see):OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 Machine model: Microchip PolarFire-SoC Icicle Kit printk: debug: ignoring loglevel setting. earlycon: ns16550a0 at MMIO32 0x0000000020100000 (options '115200n8') printk: bootconsole [ns16550a0] enabled printk: debug: skip boot console de-registration. efi: UEFI not found. Unable to handle kernel paging request at virtual address ffffffff87e00001 Oops [#1] Modules linked in: CPU: 0 PID: 0 Comm: swapper Not tainted 5.16.0-08771-g85515233477d #56 Hardware name: Microchip PolarFire-SoC Icicle Kit (DT) epc : fdt_check_header+0x14/0x208 ra : early_init_dt_verify+0x16/0x94 epc : ffffffff802ddacc ra : ffffffff8082415a sp : ffffffff81203ee0 gp : ffffffff812ec3a8 tp : ffffffff8120cd80 t0 : 0000000000000005 t1 : 0000001040000000 t2 : ffffffff80000000 s0 : ffffffff81203f00 s1 : ffffffff87e00000 a0 : ffffffff87e00000 a1 : 000000040ffffce7 a2 : 00000000000000e7 a3 : ffffffff8080394c a4 : 0000000000000000 a5 : 0000000000000000 a6 : 0000000000000000 a7 : 0000000000000000 s2 : ffffffff81203f98 s3 : 8000000a00006800 s4 : fffffffffffffff3 s5 : 0000000000000000 s6 : 0000000000000001 s7 : 0000000000000000 s8 : 0000000020236c20 s9 : 0000000000000000 s10: 0000000000000000 s11: 0000000000000000 t3 : 0000000000000018 t4 : 00ff000000000000 t5 : 0000000000000000 t6 : 0000000000000010 status: 0000000200000100 badaddr: ffffffff87e00001 cause: 000000000000000d [<ffffffff802ddacc>] fdt_check_header+0x14/0x208 [<ffffffff8082415a>] early_init_dt_verify+0x16/0x94 [<ffffffff80802dee>] setup_arch+0xec/0x4ec [<ffffffff80800700>] start_kernel+0x88/0x6d6 random: get_random_bytes called from print_oops_end_marker+0x22/0x44 with crng_init=0 ---[ end trace 903df1a0ade0b876 ]--- Kernel panic - not syncing: Attempted to kill the idle task! ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---Quoted 3 lines
So the FDT is at
0xffffffff87e00000, i.e. at0x7e00000from the start of virtual memory (CONFIG_PAGE_OFFSET=0xffffffff80000000), and thus within the 2 GiB range.I think you have just encountered what I suspected and mentioned in [1]:
we recently moved the kernel to thePAGE_OFFSETaddress used withMAXPHYSMEM_2GB.
Quoted 6 lines
I would try to cherry-pick [1] and see if that works better :)
Alex
[1]
https://patchwork.kernel.org/project/linux-riscv/patch/[email protected]/
Thanks, works fine with just that patch (needed small changes), or with the full series.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Alexandre Ghiti
reviewerRe: [PATCH 02/12] RISC-V: MAXPHYSMEM_2GB doesn't depend on CMODEL_MEDLOW
Hi Geert,
Quoted 76 lines · Geert Uytterhoeven
Hi Alex,
Quoted 73 lines · Alexandre ghiti
Quoted 62 lines · Geert Uytterhoeven
Quoted 11 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
For non-relocatable kernels we need to be able to link the kernel at approximately
PAGE_OFFSET, thus requiring medany (as medlow requires the code to be linked within 2GiB of 0). The inverse doesn't apply, though:
since medany code can be linked anywhere it's fine to link it close to 0, so we can support the smaller memory config.Fixes de5f4b8f634b ("RISC-V: Define MAXPHYSMEM_1GB only for RV32")Signed-off-by Palmer Dabbelt <[email protected]>Thanks for your patch, which is now commit
9f36b96bc70f9707("RISC-V:MAXPHYSMEM_2GBdoesn't depend onCMODEL_MEDLOW").Quoted 5 lines
I found this when going through the savedefconfig diffs for the K210 defconfigs. I'm not entirely sure they're doing the right thing here (they should probably be setting
CMODEL_LOWto take advantage of the better code generation), but I don't have any way to test those platforms so I don't want to change too much.I can confirm
MAXPHYSMEM_2GBworks on K210 withCMODEL_MEDANY.As the Icicle has 1760 MiB of RAM, I gave it a try with
MAXPHYSMEM_2GB(andCMODEL_MEDANY), too. Unfortunately it crashes very early (needs earlycon to see):OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 Machine model: Microchip PolarFire-SoC Icicle Kit printk: debug: ignoring loglevel setting. earlycon: ns16550a0 at MMIO32 0x0000000020100000 (options '115200n8') printk: bootconsole [ns16550a0] enabled printk: debug: skip boot console de-registration. efi: UEFI not found. Unable to handle kernel paging request at virtual address ffffffff87e00001 Oops [#1] Modules linked in: CPU: 0 PID: 0 Comm: swapper Not tainted 5.16.0-08771-g85515233477d #56 Hardware name: Microchip PolarFire-SoC Icicle Kit (DT) epc : fdt_check_header+0x14/0x208 ra : early_init_dt_verify+0x16/0x94 epc : ffffffff802ddacc ra : ffffffff8082415a sp : ffffffff81203ee0 gp : ffffffff812ec3a8 tp : ffffffff8120cd80 t0 : 0000000000000005 t1 : 0000001040000000 t2 : ffffffff80000000 s0 : ffffffff81203f00 s1 : ffffffff87e00000 a0 : ffffffff87e00000 a1 : 000000040ffffce7 a2 : 00000000000000e7 a3 : ffffffff8080394c a4 : 0000000000000000 a5 : 0000000000000000 a6 : 0000000000000000 a7 : 0000000000000000 s2 : ffffffff81203f98 s3 : 8000000a00006800 s4 : fffffffffffffff3 s5 : 0000000000000000 s6 : 0000000000000001 s7 : 0000000000000000 s8 : 0000000020236c20 s9 : 0000000000000000 s10: 0000000000000000 s11: 0000000000000000 t3 : 0000000000000018 t4 : 00ff000000000000 t5 : 0000000000000000 t6 : 0000000000000010 status: 0000000200000100 badaddr: ffffffff87e00001 cause: 000000000000000d [<ffffffff802ddacc>] fdt_check_header+0x14/0x208 [<ffffffff8082415a>] early_init_dt_verify+0x16/0x94 [<ffffffff80802dee>] setup_arch+0xec/0x4ec [<ffffffff80800700>] start_kernel+0x88/0x6d6 random: get_random_bytes called from print_oops_end_marker+0x22/0x44 with crng_init=0 ---[ end trace 903df1a0ade0b876 ]--- Kernel panic - not syncing: Attempted to kill the idle task! ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---Quoted 3 lines
So the FDT is at
0xffffffff87e00000, i.e. at0x7e00000from the start of virtual memory (CONFIG_PAGE_OFFSET=0xffffffff80000000), and thus within the 2 GiB range.I think you have just encountered what I suspected and mentioned in [1]:
we recently moved the kernel to thePAGE_OFFSETaddress used withMAXPHYSMEM_2GB.I would try to cherry-pick [1] and see if that works better :)
Quoted 8 lines
Quoted 4 lines
Alex
[1]
https://patchwork.kernel.org/project/linux-riscv/patch/[email protected]/Thanks, works fine with just that patch (needed small changes), or with the full series.
Tested-by Geert Uytterhoeven <[email protected]>
Nice to know the full series works too, thank you, I'll add your Tested-by.
Thanks!
Alex
Quoted 15 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Re: [PATCH 02/12] RISC-V: MAXPHYSMEM_2GB doesn't depend on CMODEL_MEDLOW
In reply to Geert UytterhoevenQuoted 26 lines · Geert Uytterhoeven
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Hi Palmer,
Quoted 11 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
For non-relocatable kernels we need to be able to link the kernel at approximately
PAGE_OFFSET, thus requiring medany (as medlow requires the code to be linked within 2GiB of 0). The inverse doesn't apply, though:
since medany code can be linked anywhere it's fine to link it close to 0, so we can support the smaller memory config.Fixes de5f4b8f634b ("RISC-V: Define MAXPHYSMEM_1GB only for RV32")Signed-off-by Palmer Dabbelt <[email protected]>Thanks for your patch, which is now commit
9f36b96bc70f9707("RISC-V:MAXPHYSMEM_2GBdoesn't depend onCMODEL_MEDLOW").Quoted 5 lines
I found this when going through the savedefconfig diffs for the K210 defconfigs. I'm not entirely sure they're doing the right thing here (they should probably be setting
CMODEL_LOWto take advantage of the better code generation), but I don't have any way to test those platforms so I don't want to change too much.
Quoted 5 lines
I can confirm
MAXPHYSMEM_2GBworks on K210 withCMODEL_MEDANY.As the Icicle has 1760 MiB of RAM, I gave it a try with
MAXPHYSMEM_2GB(andCMODEL_MEDANY), too. Unfortunately it crashes very early (needs earlycon to see):
Given you said 1760 MiB I assume you're not running the device tree currently in the kernel?
But the defconfig is /arch/riscv/configs/defconfig?
I tested it w/ my newer version of the dts, using both 1760 & 736 MiB (ddrc_cache_lo only) w/ MAXPHYSMEM_2GB.
Enabling MAXPHYSMEM_2GB with either CMODEL_MEDANY or CMODEL_MEDLOW lead to the same boot failure as you got.
Quoted 69 lines
OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 Machine model: Microchip PolarFire-SoC Icicle Kit printk: debug: ignoring loglevel setting. earlycon: ns16550a0 at MMIO32 0x0000000020100000 (options '115200n8') printk: bootconsole [ns16550a0] enabled printk: debug: skip boot console de-registration. efi: UEFI not found. Unable to handle kernel paging request at virtual address ffffffff87e00001 Oops [#1] Modules linked in: CPU: 0 PID: 0 Comm: swapper Not tainted 5.16.0-08771-g85515233477d #56 Hardware name: Microchip PolarFire-SoC Icicle Kit (DT) epc : fdt_check_header+0x14/0x208 ra : early_init_dt_verify+0x16/0x94 epc : ffffffff802ddacc ra : ffffffff8082415a sp : ffffffff81203ee0 gp : ffffffff812ec3a8 tp : ffffffff8120cd80 t0 : 0000000000000005 t1 : 0000001040000000 t2 : ffffffff80000000 s0 : ffffffff81203f00 s1 : ffffffff87e00000 a0 : ffffffff87e00000 a1 : 000000040ffffce7 a2 : 00000000000000e7 a3 : ffffffff8080394c a4 : 0000000000000000 a5 : 0000000000000000 a6 : 0000000000000000 a7 : 0000000000000000 s2 : ffffffff81203f98 s3 : 8000000a00006800 s4 : fffffffffffffff3 s5 : 0000000000000000 s6 : 0000000000000001 s7 : 0000000000000000 s8 : 0000000020236c20 s9 : 0000000000000000 s10: 0000000000000000 s11: 0000000000000000 t3 : 0000000000000018 t4 : 00ff000000000000 t5 : 0000000000000000 t6 : 0000000000000010 status: 0000000200000100 badaddr: ffffffff87e00001 cause: 000000000000000d [<ffffffff802ddacc>] fdt_check_header+0x14/0x208 [<ffffffff8082415a>] early_init_dt_verify+0x16/0x94 [<ffffffff80802dee>] setup_arch+0xec/0x4ec [<ffffffff80800700>] start_kernel+0x88/0x6d6 random: get_random_bytes called from print_oops_end_marker+0x22/0x44 with crng_init=0 ---[ end trace 903df1a0ade0b876 ]--- Kernel panic - not syncing: Attempted to kill the idle task! ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---So the FDT is at
0xffffffff87e00000, i.e. at0x7e00000from the start of virtual memory (CONFIG_PAGE_OFFSET=0xffffffff80000000), and thus within the 2 GiB range.arch/riscv/Kconfig choice · line 286
Quoted 11 lines
arch/riscv/Kconfig +1
-1@@ -280,7 +280,7 @@ choice depends on 32BIT bool "1GiB" config MAXPHYSMEM_2GB - depends on 64BIT && CMODEL_MEDLOW + depends on 64BIT bool "2GiB" config MAXPHYSMEM_128GB depends on 64BIT && CMODEL_MEDANYGr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Alexandre ghiti
reviewerRe: [PATCH 02/12] RISC-V: MAXPHYSMEM_2GB doesn't depend on CMODEL_MEDLOW
Hi Conor,
Quoted 30 lines · On 1/14/22 09:40, [email protected] wrote:
Quoted 24 lines · Geert Uytterhoeven
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Hi Palmer,
Quoted 11 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
For non-relocatable kernels we need to be able to link the kernel at approximately
PAGE_OFFSET, thus requiring medany (as medlow requires the code to be linked within 2GiB of 0). The inverse doesn't apply, though:
since medany code can be linked anywhere it's fine to link it close to 0, so we can support the smaller memory config.Fixes de5f4b8f634b ("RISC-V: Define MAXPHYSMEM_1GB only for RV32")Signed-off-by Palmer Dabbelt <[email protected]>Thanks for your patch, which is now commit
9f36b96bc70f9707("RISC-V:MAXPHYSMEM_2GBdoesn't depend onCMODEL_MEDLOW").Quoted 5 lines
I found this when going through the savedefconfig diffs for the K210 defconfigs. I'm not entirely sure they're doing the right thing here (they should probably be setting
CMODEL_LOWto take advantage of the better code generation), but I don't have any way to test those platforms so I don't want to change too much.Quoted 5 lines
I can confirm
MAXPHYSMEM_2GBworks on K210 withCMODEL_MEDANY.As the Icicle has 1760 MiB of RAM, I gave it a try with
MAXPHYSMEM_2GB(andCMODEL_MEDANY), too. Unfortunately it crashes very early (needs earlycon to see):
Quoted 8 lines
Given you said 1760 MiB I assume you're not running the device tree currently in the kernel?
But the defconfig is /arch/riscv/configs/defconfig?I tested it w/ my newer version of the dts, using both 1760 & 736 MiB (
ddrc_cache_loonly) w/MAXPHYSMEM_2GB.
EnablingMAXPHYSMEM_2GBwith eitherCMODEL_MEDANYorCMODEL_MEDLOWlead to the same boot failure as you got.
Any chance you can give a try to [1] so that I can extract it from my sv48 patchset and propose it to fixes if it works?
Thanks,
Alex
https://patchwork.kernel.org/project/linux-riscv/patch/[email protected]/
Quoted 71 lines
Quoted 58 lines
OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 Machine model: Microchip PolarFire-SoC Icicle Kit printk: debug: ignoring loglevel setting. earlycon: ns16550a0 at MMIO32 0x0000000020100000 (options '115200n8') printk: bootconsole [ns16550a0] enabled printk: debug: skip boot console de-registration. efi: UEFI not found. Unable to handle kernel paging request at virtual address ffffffff87e00001 Oops [#1] Modules linked in: CPU: 0 PID: 0 Comm: swapper Not tainted 5.16.0-08771-g85515233477d #56 Hardware name: Microchip PolarFire-SoC Icicle Kit (DT) epc : fdt_check_header+0x14/0x208 ra : early_init_dt_verify+0x16/0x94 epc : ffffffff802ddacc ra : ffffffff8082415a sp : ffffffff81203ee0 gp : ffffffff812ec3a8 tp : ffffffff8120cd80 t0 : 0000000000000005 t1 : 0000001040000000 t2 : ffffffff80000000 s0 : ffffffff81203f00 s1 : ffffffff87e00000 a0 : ffffffff87e00000 a1 : 000000040ffffce7 a2 : 00000000000000e7 a3 : ffffffff8080394c a4 : 0000000000000000 a5 : 0000000000000000 a6 : 0000000000000000 a7 : 0000000000000000 s2 : ffffffff81203f98 s3 : 8000000a00006800 s4 : fffffffffffffff3 s5 : 0000000000000000 s6 : 0000000000000001 s7 : 0000000000000000 s8 : 0000000020236c20 s9 : 0000000000000000 s10: 0000000000000000 s11: 0000000000000000 t3 : 0000000000000018 t4 : 00ff000000000000 t5 : 0000000000000000 t6 : 0000000000000010 status: 0000000200000100 badaddr: ffffffff87e00001 cause: 000000000000000d [<ffffffff802ddacc>] fdt_check_header+0x14/0x208 [<ffffffff8082415a>] early_init_dt_verify+0x16/0x94 [<ffffffff80802dee>] setup_arch+0xec/0x4ec [<ffffffff80800700>] start_kernel+0x88/0x6d6 random: get_random_bytes called from print_oops_end_marker+0x22/0x44 with crng_init=0 ---[ end trace 903df1a0ade0b876 ]--- Kernel panic - not syncing: Attempted to kill the idle task! ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---So the FDT is at
0xffffffff87e00000, i.e. at0x7e00000from the start of virtual memory (CONFIG_PAGE_OFFSET=0xffffffff80000000), and thus within the 2 GiB range.arch/riscv/Kconfig choice · line 286
Quoted 11 lines
arch/riscv/Kconfig +1
-1@@ -280,7 +280,7 @@ choice depends on 32BIT bool "1GiB" config MAXPHYSMEM_2GB - depends on 64BIT && CMODEL_MEDLOW + depends on 64BIT bool "2GiB" config MAXPHYSMEM_128GB depends on 64BIT && CMODEL_MEDANYGr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]Quoted 9 lines
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Re: [PATCH 02/12] RISC-V: MAXPHYSMEM_2GB doesn't depend on CMODEL_MEDLOW
Quoted 44 lines · Alexandre ghiti
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Hi Conor,
Quoted 38 lines · On 1/14/22 09:40, [email protected] wrote:
Quoted 28 lines · Geert Uytterhoeven
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Hi Palmer,
Quoted 10 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
For non-relocatable kernels we need to be able to link the kernel at approximately
PAGE_OFFSET, thus requiring medany (as medlow requires the
code to be linked within 2GiB of 0). The inverse doesn't apply, though:
since medany code can be linked anywhere it's fine to link it close to 0, so we can support the smaller memory config.Quoted 3 lines
Fixes de5f4b8f634b ("RISC-V: Define MAXPHYSMEM_1GB only for RV32")Signed-off-by Palmer Dabbelt <[email protected]>Thanks for your patch, which is now commit
9f36b96bc70f9707("RISC-V:MAXPHYSMEM_2GBdoesn't depend onCMODEL_MEDLOW").Quoted 5 lines
I found this when going through the savedefconfig diffs for the K210 defconfigs. I'm not entirely sure they're doing the right thing here (they should probably be setting
CMODEL_LOWto take advantage of the better code generation), but I don't have any way to test those platforms so I don't want to change too much.Quoted 5 lines
I can confirm
MAXPHYSMEM_2GBworks on K210 withCMODEL_MEDANY.As the Icicle has 1760 MiB of RAM, I gave it a try with
MAXPHYSMEM_2GB(andCMODEL_MEDANY), too. Unfortunately it crashes very early (needs earlycon to see):Given you said 1760 MiB I assume you're not running the device tree currently in the kernel?
But the defconfig is /arch/riscv/configs/defconfig?
Quoted 8 lines
Quoted 4 lines
I tested it w/ my newer version of the dts, using both 1760 & 736 MiB (
ddrc_cache_loonly) w/MAXPHYSMEM_2GB.
EnablingMAXPHYSMEM_2GBwith eitherCMODEL_MEDANYorCMODEL_MEDLOWlead to the same boot failure as you got.Any chance you can give a try to [1] so that I can extract it from my sv48 patchset and propose it to fixes if it works?
Applied, tested with 1760 & 736 MiB - booted fine. :)
Quoted 88 lines
Thanks,
Alex
https://patchwork.kernel.org/project/linux-riscv/patch/[email protected]/
Quoted 79 lines
Quoted 58 lines
OF: fdt: Ignoring memory range
0x80000000-0x80200000Machine model: Microchip PolarFire-SoC Icicle Kit
printk: debug: ignoring loglevel setting.
earlycon: ns16550a0 at MMIO320x0000000020100000(options '115200n8')
printk: bootconsole [ns16550a0] enabled
printk: debug: skip boot console de-registration.
efi: UEFI not found.Unable to handle kernel paging request at virtual address ffffffff87e00001 Oops [#1] Modules linked in: CPU: 0 PID: 0 Comm: swapper Not tainted 5.16.0-08771-g85515233477d #56 Hardware name: Microchip PolarFire-SoC Icicle Kit (DT) epc : fdt_check_header+0x14/0x208 ra : early_init_dt_verify+0x16/0x94epc :
ffffffff802ddaccra :ffffffff8082415asp :ffffffff81203ee0gp :ffffffff812ec3a8tp :ffffffff8120cd80t0 : 0000000000000005 t1 : 0000001040000000 t2 :ffffffff80000000s0 :ffffffff81203f00s1 :ffffffff87e00000a0 :ffffffff87e00000a1 :000000040ffffce7a2 :00000000000000e7a3 :ffffffff8080394ca4 : 0000000000000000 a5 : 0000000000000000 a6 : 0000000000000000 a7 : 0000000000000000 s2 :ffffffff81203f98s3 :8000000a00006800s4 :fffffffffffffff3s5 : 0000000000000000 s6 : 0000000000000001 s7 : 0000000000000000 s8 :0000000020236c20s9 : 0000000000000000 s10: 0000000000000000
s11: 0000000000000000 t3 : 0000000000000018 t4 :00ff000000000000t5 : 0000000000000000 t6 : 0000000000000010
status: 0000000200000100 badaddr:ffffffff87e00001cause:000000000000000d[<ffffffff802ddacc>] fdt_check_header+0x14/0x208 [<ffffffff8082415a>] early_init_dt_verify+0x16/0x94 [<ffffffff80802dee>] setup_arch+0xec/0x4ec [<ffffffff80800700>] start_kernel+0x88/0x6d6 random: get_random_bytes called from print_oops_end_marker+0x22/0x44 with crng_init=0 ---[ end trace 903df1a0ade0b876 ]--- Kernel panic - not syncing: Attempted to kill the idle task! ---[ end Kernel panic - not syncing: Attempted to kill the idletask! ]---
So the FDT is at
0xffffffff87e00000, i.e. at0x7e00000from the start of virtual memory (CONFIG_PAGE_OFFSET=0xffffffff80000000), and thus within the 2 GiB range.Quoted 11 lines
arch/riscv/Kconfig +0
-0@@ -280,7 +280,7 @@ choicedepends on 32BIT
bool "1GiB"
configMAXPHYSMEM_2GB
- depends on 64BIT &&CMODEL_MEDLOW+ depends on 64BIT
bool "2GiB"
configMAXPHYSMEM_128GB
depends on 64BIT &&CMODEL_MEDANYGr{oetje,eeting}s,
Quoted 17 lines
Geert
Signature · 13 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Alexandre Ghiti
reviewerRe: [PATCH 02/12] RISC-V: MAXPHYSMEM_2GB doesn't depend on CMODEL_MEDLOW
Quoted 45 lines · On 1/14/22 10:41, [email protected] wrote:
Quoted 44 lines · Alexandre ghiti
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Hi Conor,
Quoted 38 lines · On 1/14/22 09:40, [email protected] wrote:
Quoted 28 lines · Geert Uytterhoeven
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Hi Palmer,
Quoted 10 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
For non-relocatable kernels we need to be able to link the kernel at approximately
PAGE_OFFSET, thus requiring medany (as medlow requires the
code to be linked within 2GiB of 0). The inverse doesn't apply, though:
since medany code can be linked anywhere it's fine to link it close to 0, so we can support the smaller memory config.Quoted 3 lines
Fixes de5f4b8f634b ("RISC-V: Define MAXPHYSMEM_1GB only for RV32")Signed-off-by Palmer Dabbelt <[email protected]>Thanks for your patch, which is now commit
9f36b96bc70f9707("RISC-V:MAXPHYSMEM_2GBdoesn't depend onCMODEL_MEDLOW").Quoted 5 lines
I found this when going through the savedefconfig diffs for the K210 defconfigs. I'm not entirely sure they're doing the right thing here (they should probably be setting
CMODEL_LOWto take advantage of the better code generation), but I don't have any way to test those platforms so I don't want to change too much.Quoted 5 lines
I can confirm
MAXPHYSMEM_2GBworks on K210 withCMODEL_MEDANY.As the Icicle has 1760 MiB of RAM, I gave it a try with
MAXPHYSMEM_2GB(andCMODEL_MEDANY), too. Unfortunately it crashes very early (needs earlycon to see):Given you said 1760 MiB I assume you're not running the device tree currently in the kernel?
But the defconfig is /arch/riscv/configs/defconfig?
Quoted 8 lines
Quoted 7 lines
Quoted 4 lines
I tested it w/ my newer version of the dts, using both 1760 & 736 MiB (
ddrc_cache_loonly) w/MAXPHYSMEM_2GB.
EnablingMAXPHYSMEM_2GBwith eitherCMODEL_MEDANYorCMODEL_MEDLOWlead to the same boot failure as you got.Any chance you can give a try to [1] so that I can extract it from my sv48 patchset and propose it to fixes if it works?
Applied, tested with 1760 & 736 MiB - booted fine. :)
Great, I'll extract it, rephrase it (since it is not a suspicion anymore), add Geert Reported-by and your Tested-by.
Thanks!
Alex
Quoted 91 lines
Quoted 87 lines
Thanks,
Alex
https://patchwork.kernel.org/project/linux-riscv/patch/[email protected]/
Quoted 79 lines
Quoted 58 lines
OF: fdt: Ignoring memory range
0x80000000-0x80200000Machine model: Microchip PolarFire-SoC Icicle Kit
printk: debug: ignoring loglevel setting.
earlycon: ns16550a0 at MMIO320x0000000020100000(options
'115200n8')
printk: bootconsole [ns16550a0] enabled
printk: debug: skip boot console de-registration.
efi: UEFI not found.Unable to handle kernel paging request at virtual address ffffffff87e00001 Oops [#1] Modules linked in: CPU: 0 PID: 0 Comm: swapper Not tainted 5.16.0-08771-g85515233477d #56 Hardware name: Microchip PolarFire-SoC Icicle Kit (DT) epc : fdt_check_header+0x14/0x208 ra : early_init_dt_verify+0x16/0x94 epc : ffffffff802ddacc ra : ffffffff8082415a sp : ffffffff81203ee0 gp : ffffffff812ec3a8 tp : ffffffff8120cd80 t0 : 0000000000000005 t1 : 0000001040000000 t2 : ffffffff80000000 s0 : ffffffff81203f00 s1 : ffffffff87e00000 a0 : ffffffff87e00000 a1 : 000000040ffffce7 a2 : 00000000000000e7 a3 : ffffffff8080394c a4 : 0000000000000000 a5 : 0000000000000000 a6 : 0000000000000000 a7 : 0000000000000000 s2 : ffffffff81203f98 s3 : 8000000a00006800 s4 : fffffffffffffff3 s5 : 0000000000000000 s6 : 0000000000000001 s7 : 0000000000000000 s8 : 0000000020236c20 s9 : 0000000000000000 s10: 0000000000000000 s11: 0000000000000000 t3 : 0000000000000018 t4 : 00ff000000000000 t5 : 0000000000000000 t6 : 0000000000000010 status: 0000000200000100 badaddr: ffffffff87e00001 cause: 000000000000000d [<ffffffff802ddacc>] fdt_check_header+0x14/0x208 [<ffffffff8082415a>] early_init_dt_verify+0x16/0x94 [<ffffffff80802dee>] setup_arch+0xec/0x4ec [<ffffffff80800700>] start_kernel+0x88/0x6d6 random: get_random_bytes called from print_oops_end_marker+0x22/0x44 with crng_init=0 ---[ end trace 903df1a0ade0b876 ]--- Kernel panic - not syncing: Attempted to kill the idle task! ---[ end Kernel panic - not syncing: Attempted to kill the idletask! ]---
So the FDT is at
0xffffffff87e00000, i.e. at0x7e00000from the start of virtual memory (CONFIG_PAGE_OFFSET=0xffffffff80000000), and thus within the 2 GiB range.arch/riscv/Kconfig choice · line 286
Quoted 11 lines
arch/riscv/Kconfig +1
-1@@ -280,7 +280,7 @@ choice depends on 32BIT bool "1GiB" config MAXPHYSMEM_2GB - depends on 64BIT && CMODEL_MEDLOW + depends on 64BIT bool "2GiB" config MAXPHYSMEM_128GB depends on 64BIT && CMODEL_MEDANYGr{oetje,eeting}s,
Quoted 17 lines
Geert
Signature · 13 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
PATCH 3/12 RISC-V: defconfigs: Sort CONFIG_BPF_SYSCALL
In reply to Palmer DabbeltFrom: Palmer Dabbelt <[email protected]>
This should have no functional change, it just sorts CONFIG_BPF_SYSCALL the same way savedefconfig does.
--- arch/riscv/configs/defconfig | 2 +- arch/riscv/configs/rv32_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/riscv/configs/defconfig +1 -1
@@ -2,6 +2,7 @@ CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y CONFIG_NO_HZ_IDLE=y CONFIG_HIGH_RES_TIMERS=y +CONFIG_BPF_SYSCALL=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_CGROUPS=y
@@ -13,7 +14,6 @@ CONFIG_USER_NS=y CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y -CONFIG_BPF_SYSCALL=y CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y CONFIG_SOC_MICROCHIP_POLARFIRE=y
arch/riscv/configs/rv32_defconfig +1 -1
@@ -2,6 +2,7 @@ CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y CONFIG_NO_HZ_IDLE=y CONFIG_HIGH_RES_TIMERS=y +CONFIG_BPF_SYSCALL=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_CGROUPS=y
@@ -13,7 +14,6 @@ CONFIG_USER_NS=y CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y -CONFIG_BPF_SYSCALL=y CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y CONFIG_ARCH_RV32I=y
Signature · 1 line
2.32.0
Re: [PATCH 03/12] RISC-V: defconfigs: Sort CONFIG_BPF_SYSCALL
Quoted 7 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
This should have no functional change, it just sorts
CONFIG_BPF_SYSCALLthe same way savedefconfig does.Signed-off-by Palmer Dabbelt <[email protected]>
Looks good to me.
Regards,
Anup
Quoted 48 lines
--- arch/riscv/configs/defconfig | 2 +- arch/riscv/configs/rv32_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)arch/riscv/configs/defconfig +1
-1@@ -2,6 +2,7 @@ CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y CONFIG_NO_HZ_IDLE=y CONFIG_HIGH_RES_TIMERS=y +CONFIG_BPF_SYSCALL=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_CGROUPS=y@@ -13,7 +14,6 @@ CONFIG_USER_NS=y CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y -CONFIG_BPF_SYSCALL=y CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y CONFIG_SOC_MICROCHIP_POLARFIRE=yarch/riscv/configs/rv32_defconfig +1
-2@@ -2,6 +2,7 @@ CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y CONFIG_NO_HZ_IDLE=y CONFIG_HIGH_RES_TIMERS=y +CONFIG_BPF_SYSCALL=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_CGROUPS=y@@ -13,7 +14,6 @@ CONFIG_USER_NS=y CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y -CONFIG_BPF_SYSCALL=y CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y CONFIG_ARCH_RV32I=y --2.32.0
PATCH 4/12 RISC-V: defconfigs: Sort CONFIG_SYSFS_SYSCALL
In reply to Palmer DabbeltFrom: Palmer Dabbelt <[email protected]>
This should have no functional change, it just sorts CONFIG_SYSFS_SYSCALL the same way savedefconfig does.
--- arch/riscv/configs/defconfig | 2 +- arch/riscv/configs/rv32_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/riscv/configs/defconfig +1 -1
@@ -14,6 +14,7 @@ CONFIG_USER_NS=y CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y +# CONFIG_SYSFS_SYSCALL is not set CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y CONFIG_SOC_MICROCHIP_POLARFIRE=y
@@ -143,5 +144,4 @@ CONFIG_RCU_EQS_DEBUG=y # CONFIG_FTRACE is not set # CONFIG_RUNTIME_TESTING_MENU is not set CONFIG_MEMTEST=y -# CONFIG_SYSFS_SYSCALL is not set CONFIG_EFI=y
arch/riscv/configs/rv32_defconfig +1 -1
@@ -14,6 +14,7 @@ CONFIG_USER_NS=y CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y +# CONFIG_SYSFS_SYSCALL is not set CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y CONFIG_ARCH_RV32I=y
@@ -133,4 +134,3 @@ CONFIG_RCU_EQS_DEBUG=y # CONFIG_FTRACE is not set # CONFIG_RUNTIME_TESTING_MENU is not set CONFIG_MEMTEST=y -# CONFIG_SYSFS_SYSCALL is not set
Signature · 1 line
2.32.0
Re: [PATCH 04/12] RISC-V: defconfigs: Sort CONFIG_SYSFS_SYSCALL
Quoted 7 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
This should have no functional change, it just sorts
CONFIG_SYSFS_SYSCALLthe same way savedefconfig does.Signed-off-by Palmer Dabbelt <[email protected]>
Looks good to me.
Regards,
Anup
Quoted 43 lines
--- arch/riscv/configs/defconfig | 2 +- arch/riscv/configs/rv32_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)arch/riscv/configs/defconfig +1
-1@@ -14,6 +14,7 @@ CONFIG_USER_NS=y CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y +# CONFIG_SYSFS_SYSCALL is not set CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y CONFIG_SOC_MICROCHIP_POLARFIRE=y@@ -143,5 +144,4 @@ CONFIG_RCU_EQS_DEBUG=y # CONFIG_FTRACE is not set # CONFIG_RUNTIME_TESTING_MENU is not set CONFIG_MEMTEST=y -# CONFIG_SYSFS_SYSCALL is not set CONFIG_EFI=yarch/riscv/configs/rv32_defconfig +1
-2@@ -14,6 +14,7 @@ CONFIG_USER_NS=y CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y +# CONFIG_SYSFS_SYSCALL is not set CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y CONFIG_ARCH_RV32I=y@@ -133,4 +134,3 @@ CONFIG_RCU_EQS_DEBUG=y # CONFIG_FTRACE is not set # CONFIG_RUNTIME_TESTING_MENU is not set CONFIG_MEMTEST=y -# CONFIG_SYSFS_SYSCALL is not set --2.32.0
PATCH 5/12 RISC-V: defconfigs: Sort CONFIG_SOC_POLARFIRE
In reply to Palmer DabbeltFrom: Palmer Dabbelt <[email protected]>
This should have no functional change, it just sorts CONFIG_SOC_POLARFIRE the same way savedefconfig does.
--- arch/riscv/configs/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/configs/defconfig +1 -1
@@ -15,9 +15,9 @@ CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y # CONFIG_SYSFS_SYSCALL is not set +CONFIG_SOC_MICROCHIP_POLARFIRE=y CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y -CONFIG_SOC_MICROCHIP_POLARFIRE=y CONFIG_SMP=y CONFIG_HOTPLUG_CPU=y CONFIG_VIRTUALIZATION=y
Signature · 1 line
2.32.0
Re: [PATCH 05/12] RISC-V: defconfigs: Sort CONFIG_SOC_POLARFIRE
Quoted 7 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
This should have no functional change, it just sorts
CONFIG_SOC_POLARFIREthe same way savedefconfig does.Signed-off-by Palmer Dabbelt <[email protected]>
Looks good to me.
Regards,
Anup
Quoted 22 lines
--- arch/riscv/configs/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/riscv/configs/defconfig +1
-2@@ -15,9 +15,9 @@ CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y # CONFIG_SYSFS_SYSCALL is not set +CONFIG_SOC_MICROCHIP_POLARFIRE=y CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y -CONFIG_SOC_MICROCHIP_POLARFIRE=y CONFIG_SMP=y CONFIG_HOTPLUG_CPU=y CONFIG_VIRTUALIZATION=y --2.32.0
PATCH 6/12 RISC-V: defconfigs: Sort CONFIG_PTP_1588_CLOCK
In reply to Palmer DabbeltFrom: Palmer Dabbelt <[email protected]>
This should have no functional change, it just sorts CONFIG_PTP_1588_CLOCK the same way savedefconfig does. This only touches the rv64 defconfig because rv32_defconfig was already sorted correctly.
--- arch/riscv/configs/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/configs/defconfig +1 -1
@@ -71,9 +71,9 @@ CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_VIRTIO=y CONFIG_SPI=y CONFIG_SPI_SIFIVE=y +# CONFIG_PTP_1588_CLOCK is not set CONFIG_GPIOLIB=y CONFIG_GPIO_SIFIVE=y -# CONFIG_PTP_1588_CLOCK is not set CONFIG_POWER_RESET=y CONFIG_DRM=m CONFIG_DRM_RADEON=m
Signature · 1 line
2.32.0
Re: [PATCH 06/12] RISC-V: defconfigs: Sort CONFIG_PTP_1588_CLOCK
Quoted 9 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
This should have no functional change, it just sorts
CONFIG_PTP_1588_CLOCKthe same way savedefconfig does. This only touches the rv64 defconfig becauserv32_defconfigwas already sorted correctly.Signed-off-by Palmer Dabbelt <[email protected]>
Looks good to me.
Regards,
Anup
Quoted 22 lines
--- arch/riscv/configs/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/riscv/configs/defconfig +1
-2@@ -71,9 +71,9 @@ CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_VIRTIO=y CONFIG_SPI=y CONFIG_SPI_SIFIVE=y +# CONFIG_PTP_1588_CLOCK is not set CONFIG_GPIOLIB=y CONFIG_GPIO_SIFIVE=y -# CONFIG_PTP_1588_CLOCK is not set CONFIG_POWER_RESET=y CONFIG_DRM=m CONFIG_DRM_RADEON=m --2.32.0
PATCH 7/12 RISC-V: defconfigs: Sort CONFIG_MMC
In reply to Palmer DabbeltFrom: Palmer Dabbelt <[email protected]>
This should have no functional change, it just sorts CONFIG_MMC the same way savedefconfig does. This only touches the rv64 defconfig because rv32_defconfig was already sorted correctly.
--- arch/riscv/configs/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/configs/defconfig +1 -1
@@ -90,10 +90,10 @@ CONFIG_USB_OHCI_HCD=y CONFIG_USB_OHCI_HCD_PLATFORM=y CONFIG_USB_STORAGE=y CONFIG_USB_UAS=y +CONFIG_MMC=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_PLTFM=y CONFIG_MMC_SDHCI_CADENCE=y -CONFIG_MMC=y CONFIG_MMC_SPI=y CONFIG_RTC_CLASS=y CONFIG_VIRTIO_PCI=y
Signature · 1 line
2.32.0
Re: [PATCH 07/12] RISC-V: defconfigs: Sort CONFIG_MMC
Quoted 8 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
This should have no functional change, it just sorts
CONFIG_MMCthe same way savedefconfig does. This only touches the rv64 defconfig becauserv32_defconfigwas already sorted correctly.Signed-off-by Palmer Dabbelt <[email protected]>
Looks good to me.
Regards,
Anup
Quoted 23 lines
--- arch/riscv/configs/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/riscv/configs/defconfig +1
-2@@ -90,10 +90,10 @@ CONFIG_USB_OHCI_HCD=y CONFIG_USB_OHCI_HCD_PLATFORM=y CONFIG_USB_STORAGE=y CONFIG_USB_UAS=y +CONFIG_MMC=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_PLTFM=y CONFIG_MMC_SDHCI_CADENCE=y -CONFIG_MMC=y CONFIG_MMC_SPI=y CONFIG_RTC_CLASS=y CONFIG_VIRTIO_PCI=y --2.32.0
PATCH 8/12 RISC-V: defconfigs: Sort CONFIG_SURFACE_PLATFORMS
In reply to Palmer DabbeltFrom: Palmer Dabbelt <[email protected]>
This should have no functional change, it just sorts CONFIG_SURFACE_PLATFORMS the same way savedefconfig does.
--- arch/riscv/configs/nommu_k210_defconfig | 1 - arch/riscv/configs/nommu_k210_sdcard_defconfig | 1 - 2 files changed, 2 deletions(-)
arch/riscv/configs/nommu_k210_defconfig +0 -1
@@ -75,7 +75,6 @@ CONFIG_LEDS_GPIO=y CONFIG_LEDS_USER=y # CONFIG_VIRTIO_MENU is not set # CONFIG_VHOST_MENU is not set -# CONFIG_SURFACE_PLATFORMS is not set # CONFIG_FILE_LOCKING is not set # CONFIG_DNOTIFY is not set # CONFIG_INOTIFY_USER is not set
arch/riscv/configs/nommu_k210_sdcard_defconfig +0 -1
@@ -72,7 +72,6 @@ CONFIG_LEDS_GPIO=y CONFIG_LEDS_USER=y # CONFIG_VIRTIO_MENU is not set # CONFIG_VHOST_MENU is not set -# CONFIG_SURFACE_PLATFORMS is not set CONFIG_EXT2_FS=y # CONFIG_FILE_LOCKING is not set # CONFIG_DNOTIFY is not set
Signature · 1 line
2.32.0
Re: [PATCH 08/12] RISC-V: defconfigs: Sort CONFIG_SURFACE_PLATFORMS
Quoted 7 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
This should have no functional change, it just sorts
CONFIG_SURFACE_PLATFORMSthe same way savedefconfig does.Signed-off-by Palmer Dabbelt <[email protected]>
Looks good to me.
Regards,
Anup
Quoted 30 lines
--- arch/riscv/configs/nommu_k210_defconfig | 1 - arch/riscv/configs/nommu_k210_sdcard_defconfig | 1 - 2 files changed, 2 deletions(-)arch/riscv/configs/nommu_k210_defconfig +0
-1@@ -75,7 +75,6 @@ CONFIG_LEDS_GPIO=y CONFIG_LEDS_USER=y # CONFIG_VIRTIO_MENU is not set # CONFIG_VHOST_MENU is not set -# CONFIG_SURFACE_PLATFORMS is not set # CONFIG_FILE_LOCKING is not set # CONFIG_DNOTIFY is not set # CONFIG_INOTIFY_USER is not setarch/riscv/configs/nommu_k210_sdcard_defconfig +0
-2@@ -72,7 +72,6 @@ CONFIG_LEDS_GPIO=y CONFIG_LEDS_USER=y # CONFIG_VIRTIO_MENU is not set # CONFIG_VHOST_MENU is not set -# CONFIG_SURFACE_PLATFORMS is not set CONFIG_EXT2_FS=y # CONFIG_FILE_LOCKING is not set # CONFIG_DNOTIFY is not set --
Quoted 2 lines
2.32.0
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
PATCH 9/12 RISC-V: defconfigs: Sort CONFIG_BLK_DEV_BSG
In reply to Palmer DabbeltFrom: Palmer Dabbelt <[email protected]>
This should have no functional change, it just sorts CONFIG_BLK_DEV_BSG the same way savedefconfig does.
--- arch/riscv/configs/nommu_k210_sdcard_defconfig | 1 - arch/riscv/configs/nommu_virt_defconfig | 1 - 2 files changed, 2 deletions(-)
arch/riscv/configs/nommu_k210_sdcard_defconfig +0 -1
@@ -30,7 +30,6 @@ CONFIG_CMDLINE_FORCE=y # CONFIG_SECCOMP is not set # CONFIG_STACKPROTECTOR is not set # CONFIG_GCC_PLUGINS is not set -# CONFIG_BLK_DEV_BSG is not set # CONFIG_MQ_IOSCHED_DEADLINE is not set # CONFIG_MQ_IOSCHED_KYBER is not set CONFIG_BINFMT_FLAT=y
arch/riscv/configs/nommu_virt_defconfig +0 -1
@@ -32,7 +32,6 @@ CONFIG_SMP=y CONFIG_CMDLINE="root=/dev/vda rw earlycon=uart8250,mmio,0x10000000,115200n8 console=ttyS0" CONFIG_CMDLINE_FORCE=y CONFIG_JUMP_LABEL=y -# CONFIG_BLK_DEV_BSG is not set CONFIG_PARTITION_ADVANCED=y # CONFIG_MSDOS_PARTITION is not set # CONFIG_EFI_PARTITION is not set
Signature · 1 line
2.32.0
Re: [PATCH 09/12] RISC-V: defconfigs: Sort CONFIG_BLK_DEV_BSG
Quoted 7 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
This should have no functional change, it just sorts
CONFIG_BLK_DEV_BSGthe same way savedefconfig does.Signed-off-by Palmer Dabbelt <[email protected]>
Looks good to me.
Regards,
Anup
Quoted 30 lines
--- arch/riscv/configs/nommu_k210_sdcard_defconfig | 1 - arch/riscv/configs/nommu_virt_defconfig | 1 - 2 files changed, 2 deletions(-)arch/riscv/configs/nommu_k210_sdcard_defconfig +0
-1@@ -30,7 +30,6 @@ CONFIG_CMDLINE_FORCE=y # CONFIG_SECCOMP is not set # CONFIG_STACKPROTECTOR is not set # CONFIG_GCC_PLUGINS is not set -# CONFIG_BLK_DEV_BSG is not set # CONFIG_MQ_IOSCHED_DEADLINE is not set # CONFIG_MQ_IOSCHED_KYBER is not set CONFIG_BINFMT_FLAT=yarch/riscv/configs/nommu_virt_defconfig +0
-2@@ -32,7 +32,6 @@ CONFIG_SMP=y CONFIG_CMDLINE="root=/dev/vda rw earlycon=uart8250,mmio,0x10000000,115200n8 console=ttyS0" CONFIG_CMDLINE_FORCE=y CONFIG_JUMP_LABEL=y -# CONFIG_BLK_DEV_BSG is not set CONFIG_PARTITION_ADVANCED=y # CONFIG_MSDOS_PARTITION is not set # CONFIG_EFI_PARTITION is not set --
Quoted 2 lines
2.32.0
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
PATCH 10/12 RISC-V: defconfigs: Remove redundant CONFIG_POWER_RESET
In reply to Palmer DabbeltFrom: Palmer Dabbelt <[email protected]>
As of ab7fbad0c7d7 ("riscv: Fix unmet direct dependencies built based on SOC_VIRT") we select CONFIG_POWER_RESET=y along with CONFIG_SOC_VIRT, which is already in defconfig. This make setting CONFIG_POWER_RESET in the defconfigs redundant, so remove it to remain consistent with savedefconfig.
--- arch/riscv/configs/defconfig | 1 - arch/riscv/configs/rv32_defconfig | 1 - 2 files changed, 2 deletions(-)
arch/riscv/configs/defconfig +0 -1
@@ -74,7 +74,6 @@ CONFIG_SPI_SIFIVE=y # CONFIG_PTP_1588_CLOCK is not set CONFIG_GPIOLIB=y CONFIG_GPIO_SIFIVE=y -CONFIG_POWER_RESET=y CONFIG_DRM=m CONFIG_DRM_RADEON=m CONFIG_DRM_NOUVEAU=m
arch/riscv/configs/rv32_defconfig +0 -1
@@ -70,7 +70,6 @@ CONFIG_HW_RANDOM_VIRTIO=y CONFIG_SPI=y CONFIG_SPI_SIFIVE=y # CONFIG_PTP_1588_CLOCK is not set -CONFIG_POWER_RESET=y CONFIG_DRM=y CONFIG_DRM_RADEON=y CONFIG_DRM_VIRTIO_GPU=y
Signature · 1 line
2.32.0
Re: [PATCH 10/12] RISC-V: defconfigs: Remove redundant CONFIG_POWER_RESET
Quoted 10 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
As of
ab7fbad0c7d7("riscv: Fix unmet direct dependencies built based onSOC_VIRT") we selectCONFIG_POWER_RESET=yalong withCONFIG_SOC_VIRT, which is already in defconfig. This make settingCONFIG_POWER_RESETin the defconfigs redundant, so remove it to remain consistent with savedefconfig.Signed-off-by Palmer Dabbelt <[email protected]>
Looks good to me.
Regards,
Anup
Quoted 30 lines
--- arch/riscv/configs/defconfig | 1 - arch/riscv/configs/rv32_defconfig | 1 - 2 files changed, 2 deletions(-)arch/riscv/configs/defconfig +0
-1@@ -74,7 +74,6 @@ CONFIG_SPI_SIFIVE=y # CONFIG_PTP_1588_CLOCK is not set CONFIG_GPIOLIB=y CONFIG_GPIO_SIFIVE=y -CONFIG_POWER_RESET=y CONFIG_DRM=m CONFIG_DRM_RADEON=m CONFIG_DRM_NOUVEAU=march/riscv/configs/rv32_defconfig +0
-2@@ -70,7 +70,6 @@ CONFIG_HW_RANDOM_VIRTIO=y CONFIG_SPI=y CONFIG_SPI_SIFIVE=y # CONFIG_PTP_1588_CLOCK is not set -CONFIG_POWER_RESET=y CONFIG_DRM=y CONFIG_DRM_RADEON=y CONFIG_DRM_VIRTIO_GPU=y --
Quoted 2 lines
2.32.0
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
PATCH 11/12 RISC-V: defconfigs: Remove redundant CONFIG_EFI=y
In reply to Palmer DabbeltFrom: Palmer Dabbelt <[email protected]>
We've always had CONFIG_EFI as "def_bool y" so this has always been redundant. It's removed by savedefconfig, so drop it to keep things clean.
--- arch/riscv/configs/defconfig | 1 - 1 file changed, 1 deletion(-)
arch/riscv/configs/defconfig +0 -1
@@ -143,4 +143,3 @@ CONFIG_RCU_EQS_DEBUG=y # CONFIG_FTRACE is not set # CONFIG_RUNTIME_TESTING_MENU is not set CONFIG_MEMTEST=y -CONFIG_EFI=y
Signature · 1 line
2.32.0
Re: [PATCH 11/12] RISC-V: defconfigs: Remove redundant CONFIG_EFI=y
Quoted 8 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
We've always had
CONFIG_EFIas "def_booly" so this has always been redundant. It's removed by savedefconfig, so drop it to keep things clean.Signed-off-by Palmer Dabbelt <[email protected]>
Looks good to me.
Regards,
Anup
Quoted 14 lines
--- arch/riscv/configs/defconfig | 1 - 1 file changed, 1 deletion(-)arch/riscv/configs/defconfig +0
-2@@ -143,4 +143,3 @@ CONFIG_RCU_EQS_DEBUG=y # CONFIG_FTRACE is not set # CONFIG_RUNTIME_TESTING_MENU is not set CONFIG_MEMTEST=y -CONFIG_EFI=y --
Quoted 2 lines
2.32.0
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
PATCH 12/12 RISC-V: defconfigs: Remove redundant K210 DT source
In reply to Palmer DabbeltFrom: Palmer Dabbelt <[email protected]>
The "k210_generic" DT has been the default in Kconfig since 7d96729a9e7 ("riscv: Update Canaan Kendryte K210 device tree"), so drop it from the defconfigs to avoid diff with savedefconfig.
--- arch/riscv/configs/nommu_k210_defconfig | 1 - arch/riscv/configs/nommu_k210_sdcard_defconfig | 1 - 2 files changed, 2 deletions(-)
arch/riscv/configs/nommu_k210_defconfig +0 -1
@@ -29,7 +29,6 @@ CONFIG_EMBEDDED=y CONFIG_SLOB=y # CONFIG_MMU is not set CONFIG_SOC_CANAAN=y -CONFIG_SOC_CANAAN_K210_DTB_SOURCE="k210_generic" CONFIG_MAXPHYSMEM_2GB=y CONFIG_SMP=y CONFIG_NR_CPUS=2
arch/riscv/configs/nommu_k210_sdcard_defconfig +0 -1
@@ -21,7 +21,6 @@ CONFIG_EMBEDDED=y CONFIG_SLOB=y # CONFIG_MMU is not set CONFIG_SOC_CANAAN=y -CONFIG_SOC_CANAAN_K210_DTB_SOURCE="k210_generic" CONFIG_MAXPHYSMEM_2GB=y CONFIG_SMP=y CONFIG_NR_CPUS=2
Signature · 1 line
2.32.0
Re: [PATCH 12/12] RISC-V: defconfigs: Remove redundant K210 DT source
Quoted 8 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
The "
k210_generic" DT has been the default inKconfigsince7d96729a9e7("riscv: Update Canaan Kendryte K210 device tree"), so drop it from the defconfigs to avoid diff with savedefconfig.Signed-off-by Palmer Dabbelt <[email protected]>
Looks good to me.
Regards,
Anup
Quoted 32 lines
--- arch/riscv/configs/nommu_k210_defconfig | 1 - arch/riscv/configs/nommu_k210_sdcard_defconfig | 1 - 2 files changed, 2 deletions(-)arch/riscv/configs/nommu_k210_defconfig +0
-1@@ -29,7 +29,6 @@ CONFIG_EMBEDDED=y CONFIG_SLOB=y # CONFIG_MMU is not set CONFIG_SOC_CANAAN=y -CONFIG_SOC_CANAAN_K210_DTB_SOURCE="k210_generic" CONFIG_MAXPHYSMEM_2GB=y CONFIG_SMP=y CONFIG_NR_CPUS=2arch/riscv/configs/nommu_k210_sdcard_defconfig +0
-2@@ -21,7 +21,6 @@ CONFIG_EMBEDDED=y CONFIG_SLOB=y # CONFIG_MMU is not set CONFIG_SOC_CANAAN=y -CONFIG_SOC_CANAAN_K210_DTB_SOURCE="k210_generic" CONFIG_MAXPHYSMEM_2GB=y CONFIG_SMP=y CONFIG_NR_CPUS=2 --2.32.0
Re: [PATCH 12/12] RISC-V: defconfigs: Remove redundant K210 DT source
In reply to Palmer DabbeltQuoted 30 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
The "
k210_generic" DT has been the default inKconfigsince7d96729a9e7("riscv: Update Canaan Kendryte K210 device tree"), so drop it from the defconfigs to avoid diff with savedefconfig.Signed-off-by Palmer Dabbelt <[email protected]>--- arch/riscv/configs/nommu_k210_defconfig | 1 - arch/riscv/configs/nommu_k210_sdcard_defconfig | 1 - 2 files changed, 2 deletions(-)arch/riscv/configs/nommu_k210_defconfig +0
-1@@ -29,7 +29,6 @@ CONFIG_EMBEDDED=y CONFIG_SLOB=y # CONFIG_MMU is not set CONFIG_SOC_CANAAN=y -CONFIG_SOC_CANAAN_K210_DTB_SOURCE="k210_generic" CONFIG_MAXPHYSMEM_2GB=y CONFIG_SMP=y CONFIG_NR_CPUS=2arch/riscv/configs/nommu_k210_sdcard_defconfig +0
-0
arch/riscv/configs/nommu_k210_sdcard_defconfig CONFIG_EMBEDDED=y · line 26
Quoted 7 lines
arch/riscv/configs/nommu_k210_sdcard_defconfig +0
-1@@ -21,7 +21,6 @@ CONFIG_EMBEDDED=y CONFIG_SLOB=y # CONFIG_MMU is not set CONFIG_SOC_CANAAN=y -CONFIG_SOC_CANAAN_K210_DTB_SOURCE="k210_generic" CONFIG_MAXPHYSMEM_2GB=y CONFIG_SMP=y CONFIG_NR_CPUS=2
Then maybe also delete the arch/riscv/boot/dts/canaan/k210_generic.dts file too ? It is redundant now that it is not being referenced...
Signature · 2 lines
Damien Le Moal Western Digital Research
Re: [PATCH 12/12] RISC-V: defconfigs: Remove redundant K210 DT source
Quoted 33 lines · On Sun, 21 Nov 2021 15:41:18 PST (-0800), [email protected] wrote:
Quoted 33 lines · Palmer Dabbelt
From: Palmer Dabbelt <[email protected]>
The "
k210_generic" DT has been the default inKconfigsince7d96729a9e7("riscv: Update Canaan Kendryte K210 device tree"), so drop it from the defconfigs to avoid diff with savedefconfig.Signed-off-by Palmer Dabbelt <[email protected]>--- arch/riscv/configs/nommu_k210_defconfig | 1 - arch/riscv/configs/nommu_k210_sdcard_defconfig | 1 - 2 files changed, 2 deletions(-)arch/riscv/configs/nommu_k210_defconfig +0
-1@@ -29,7 +29,6 @@ CONFIG_EMBEDDED=y CONFIG_SLOB=y # CONFIG_MMU is not set CONFIG_SOC_CANAAN=y -CONFIG_SOC_CANAAN_K210_DTB_SOURCE="k210_generic" CONFIG_MAXPHYSMEM_2GB=y CONFIG_SMP=y CONFIG_NR_CPUS=2arch/riscv/configs/nommu_k210_sdcard_defconfig +0
-0@@ -21,7 +21,6 @@ CONFIG_EMBEDDED=y CONFIG_SLOB=y # CONFIG_MMU is not set CONFIG_SOC_CANAAN=y
Quoted 8 lines
arch/riscv/configs/nommu_k210_sdcard_defconfig CONFIG_EMBEDDED=y · line 26
Quoted 5 lines
arch/riscv/configs/nommu_k210_sdcard_defconfig +0
-1-CONFIG_SOC_CANAAN_K210_DTB_SOURCE="k210_generic" CONFIG_MAXPHYSMEM_2GB=y CONFIG_SMP=y CONFIG_NR_CPUS=2Then maybe also delete the
arch/riscv/boot/dts/canaan/k210_generic.dtsfile too ? It is redundant now that it is not being referenced...
IIUC that's the opposite of what's going on here. Looks like I somehow managed to get the commit wrong, which I've fixed, it's 67d96729a9e7 ("riscv: Update Canaan Kendryte K210 device tree") That contains
diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs index 6402746c68f3..7efcece8896c 100644
--- a/arch/riscv/Kconfig.socs
+++ b/arch/riscv/Kconfig.socs
@@ -51,7 +51,7 @@ config SOC_CANAAN_K210_DTB_SOURCE
string "Source file for the Canaan Kendryte K210 builtin DTB" depends on SOC_CANAAN
depends on SOC_CANAAN_K210_DTB_BUILTIN
- default "k210"
+ default "k210_generic"
help
Base name (without suffix, relative to arch/riscv/boot/dts/canaan) for the DTS file that will be used to produce the DTB linked into the
which makes the defconfig entry redundant but still references the DT file.
Re: [PATCH 12/12] RISC-V: defconfigs: Remove redundant K210 DT source
Re: [PATCH 12/12] RISC-V: defconfigs: Remove redundant K210 DT source
On Thu, 06 Jan 2022 18:14:00 PST (-0800), [email protected] wrote:
I just see an empty message here. Not sure if it's something wrong with my mail client, it's always a bit confused by yours -- it's usually not this confused, but it is generally a broken mess so I wouldn't be surprised by anything ;)
Re: [PATCH 12/12] RISC-V: defconfigs: Remove redundant K210 DT source
Quoted 6 lines · Palmer Dabbelt
On Thu, 06 Jan 2022 18:14:00 PST (-0800), [email protected] wrote:
I just see an empty message here. Not sure if it's something wrong with my mail client, it's always a bit confused by yours -- it's usually not this confused, but it is generally a broken mess so I wouldn't be surprised by anything ;)
Sorry about that. I have some problems with my Thunderbird+Exquilla plugin on the corporate MS Exchange account. Email replies are all sent empty since a couple of weeks ago... Not sure what is going on but that is definitely on my end. Switching gradually to this new email address (not MS Exchange :))
In this reply, I was simply saying "OK. Thanks !"
Cheers.
Signature · 2 lines
Damien Le Moal Western Digital Research
Quoted 7 lines · Palmer Dabbelt
It's been a while since updating the defconfigs, so I figured it would be good to go through all the diff to make sure nothing was lurking. It turns out there were two minor issues, which I've fixed with the first two patches. The rest of these are just cleanups that should have no functional change.
Quoted 6 lines
I don't have a K210 (I might somewhere, but I've yet to boot it) so I can't test this to make sure, but I think patch 2 is the reason we have a special !MMU
PAGE_OFFSETconfig. If someone does have one it'd be nice to be able to remove that special case.
Using savedefconfig, I used to always get a huge diff so thanks for doing this cleanups. Going forward, I suggest that we insiste everyone to always use "make savedefconfig" for creating defconfig patches.
Regards,
Anup
Quoted 16 lines · Anup Patel
Quoted 7 lines · Palmer Dabbelt
It's been a while since updating the defconfigs, so I figured it would be good to go through all the diff to make sure nothing was lurking. It turns out there were two minor issues, which I've fixed with the first two patches. The rest of these are just cleanups that should have no functional change.
Quoted 6 lines
I don't have a K210 (I might somewhere, but I've yet to boot it) so I can't test this to make sure, but I think patch 2 is the reason we have a special !MMU
PAGE_OFFSETconfig. If someone does have one it'd be nice to be able to remove that special case.
Quoted 3 lines
Using savedefconfig, I used to always get a huge diff so thanks for doing this cleanups. Going forward, I suggest that we insiste everyone to always use "make savedefconfig" for creating defconfig patches.
Yep, using "savedefconfig" is always required by U-Boot maintainers. I thought that's always the case for the Linux kernel but it seems it is not the case.
Regards,
Bin
Palmer Dabbelt
maintainerQuoted 17 lines · On Sun, 21 Nov 2021 18:45:24 PST (-0800), [email protected] wrote:
Quoted 16 lines · Anup Patel
Quoted 13 lines · Palmer Dabbelt
It's been a while since updating the defconfigs, so I figured it would be good to go through all the diff to make sure nothing was lurking. It turns out there were two minor issues, which I've fixed with the first two patches. The rest of these are just cleanups that should have no functional change.
I don't have a K210 (I might somewhere, but I've yet to boot it) so I can't test this to make sure, but I think patch 2 is the reason we have a special !MMU
PAGE_OFFSETconfig. If someone does have one it'd be nice to be able to remove that special case.
Quoted 7 lines
Quoted 3 lines
Using savedefconfig, I used to always get a huge diff so thanks for doing this cleanups. Going forward, I suggest that we insiste everyone to always use "make savedefconfig" for creating defconfig patches.
Yep, using "savedefconfig" is always required by U-Boot maintainers. I thought that's always the case for the Linux kernel but it seems it is not the case.
It's actually a bit more complicated than that, as the results of savedefconfig change to track Kconfig updates. I'd mostly been running savedefconfig and tossing the extra diff for people, but that led to a bit of a mess here.
There's no way we can require everyone to run savedefconfig on our tree (and even if we could, it'd be a merge nightmare). IIUC what most folks do is regularly re-spin the defconfigs, now that they're clean that should be easy. I'm going to start doing that, the best I can come up with is in the second week of the merge window -- that way we'll have both fixes and for-next based on the newer defconfigs, along with all the WIP branches that folks base on rc1. If anyone's got a better scheme then I'm all ears, though.
This patch set is on for-next.
Thanks!
Quoted 10 lines · Palmer Dabbelt
It's been a while since updating the defconfigs, so I figured it would be good to go through all the diff to make sure nothing was lurking. It turns out there were two minor issues, which I've fixed with the first two patches. The rest of these are just cleanups that should have no functional change.
I don't have a K210 (I might somewhere, but I've yet to boot it) so I can't test this to make sure, but I think patch 2 is the reason we have a special !MMU
PAGE_OFFSETconfig. If someone does have one it'd be nice to be able to remove that special case.
Note: incorrect email address for Atish. Fixed here.
Signature · 7 lines
Damien Le Moal Western Digital Research _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv