diff mbox series

riscv: Update k210 defconfigs

Message ID 20221114013151.714578-1-damien.lemoal@opensource.wdc.com (mailing list archive)
State Deferred
Headers show
Series riscv: Update k210 defconfigs | expand

Checks

Context Check Description
conchuod/patch_count success Link
conchuod/cover_letter success Single patches do not need cover letters
conchuod/tree_selection success Guessed tree name to be for-next
conchuod/fixes_present success Fixes tag not required for -next series
conchuod/verify_signedoff success Signed-off-by tag matches author and committer
conchuod/kdoc success Errors and warnings before: 0 this patch: 0
conchuod/module_param success Was 0 now: 0
conchuod/build_rv32_defconfig success Build OK
conchuod/build_warn_rv64 success Errors and warnings before: 0 this patch: 0
conchuod/dtb_warn_rv64 success Errors and warnings before: 0 this patch: 0
conchuod/header_inline success No static functions without inline keyword in header files
conchuod/checkpatch success total: 0 errors, 0 warnings, 0 checks, 36 lines checked
conchuod/source_inline success Was 0 now: 0
conchuod/build_rv64_nommu_k210_defconfig success Build OK
conchuod/verify_fixes success No Fixes tag
conchuod/build_rv64_nommu_virt_defconfig success Build OK

Commit Message

Damien Le Moal Nov. 14, 2022, 1:31 a.m. UTC
In preparation for SLOB deprecation, update the nommu_k210_* defconfigs
to switch to using SLUB. To save memory, CONFIG_SLUB_CPU_PARTIAL is not
selected.

Suggested-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
---
 arch/riscv/configs/nommu_k210_defconfig        | 6 +++---
 arch/riscv/configs/nommu_k210_sdcard_defconfig | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

Comments

Conor Dooley Nov. 14, 2022, 8:05 p.m. UTC | #1
On Mon, Nov 14, 2022 at 10:31:51AM +0900, Damien Le Moal wrote:
> In preparation for SLOB deprecation, update the nommu_k210_* defconfigs
> to switch to using SLUB. To save memory, CONFIG_SLUB_CPU_PARTIAL is not
> selected.
> 
> Suggested-by: Vlastimil Babka <vbabka@suse.cz>
> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>

Hey,
Gave it a go w/ your v21 branch. To me, seems about as usable as it was
before...
Tested-by: Conor Dooley <conor.dooley@microchip.com>

btw, what's the craic with that? Looks like you actually landed in
upstream buildroot fairly soon after you pointed me at your series.
Anything missing from buildroot, or did it all land?

Thanks,
Conor.

> ---
>  arch/riscv/configs/nommu_k210_defconfig        | 6 +++---
>  arch/riscv/configs/nommu_k210_sdcard_defconfig | 6 +++---
>  2 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/arch/riscv/configs/nommu_k210_defconfig b/arch/riscv/configs/nommu_k210_defconfig
> index 96fe8def644c..18de91e84d1c 100644
> --- a/arch/riscv/configs/nommu_k210_defconfig
> +++ b/arch/riscv/configs/nommu_k210_defconfig
> @@ -23,9 +23,6 @@ CONFIG_CC_OPTIMIZE_FOR_SIZE=y
>  # CONFIG_ADVISE_SYSCALLS is not set
>  # CONFIG_KALLSYMS is not set
>  CONFIG_EMBEDDED=y
> -# CONFIG_VM_EVENT_COUNTERS is not set
> -# CONFIG_COMPAT_BRK is not set
> -CONFIG_SLOB=y
>  # CONFIG_MMU is not set
>  CONFIG_SOC_CANAAN=y
>  CONFIG_NONPORTABLE=y
> @@ -39,6 +36,9 @@ CONFIG_CMDLINE_FORCE=y
>  # CONFIG_BLOCK is not set
>  CONFIG_BINFMT_FLAT=y
>  # CONFIG_COREDUMP is not set
> +# CONFIG_SLUB_CPU_PARTIAL is not set
> +# CONFIG_COMPAT_BRK is not set
> +# CONFIG_VM_EVENT_COUNTERS is not set
>  CONFIG_DEVTMPFS=y
>  CONFIG_DEVTMPFS_MOUNT=y
>  # CONFIG_FW_LOADER is not set
> diff --git a/arch/riscv/configs/nommu_k210_sdcard_defconfig b/arch/riscv/configs/nommu_k210_sdcard_defconfig
> index 379740654373..718d2729a03e 100644
> --- a/arch/riscv/configs/nommu_k210_sdcard_defconfig
> +++ b/arch/riscv/configs/nommu_k210_sdcard_defconfig
> @@ -15,9 +15,6 @@ CONFIG_CC_OPTIMIZE_FOR_SIZE=y
>  # CONFIG_ADVISE_SYSCALLS is not set
>  # CONFIG_KALLSYMS is not set
>  CONFIG_EMBEDDED=y
> -# CONFIG_VM_EVENT_COUNTERS is not set
> -# CONFIG_COMPAT_BRK is not set
> -CONFIG_SLOB=y
>  # CONFIG_MMU is not set
>  CONFIG_SOC_CANAAN=y
>  CONFIG_NONPORTABLE=y
> @@ -32,6 +29,9 @@ CONFIG_CMDLINE_FORCE=y
>  # CONFIG_MQ_IOSCHED_KYBER is not set
>  CONFIG_BINFMT_FLAT=y
>  # CONFIG_COREDUMP is not set
> +# CONFIG_SLUB_CPU_PARTIAL is not set
> +# CONFIG_COMPAT_BRK is not set
> +# CONFIG_VM_EVENT_COUNTERS is not set
>  CONFIG_DEVTMPFS=y
>  CONFIG_DEVTMPFS_MOUNT=y
>  # CONFIG_FW_LOADER is not set
> -- 
> 2.38.1
> 
> 
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
Damien Le Moal Nov. 14, 2022, 8:58 p.m. UTC | #2
On 11/15/22 05:05, Conor Dooley wrote:
> On Mon, Nov 14, 2022 at 10:31:51AM +0900, Damien Le Moal wrote:
>> In preparation for SLOB deprecation, update the nommu_k210_* defconfigs
>> to switch to using SLUB. To save memory, CONFIG_SLUB_CPU_PARTIAL is not
>> selected.
>>
>> Suggested-by: Vlastimil Babka <vbabka@suse.cz>
>> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
> 
> Hey,
> Gave it a go w/ your v21 branch. To me, seems about as usable as it was
> before...

Please use upstream buildroot. Everything is in master for this board and
that v21 branch is dead now.

> Tested-by: Conor Dooley <conor.dooley@microchip.com>

I used buildroot defconfigs sipeed_maix_bit_defconfig and
sipeed_maix_bit_sd_card_defconfig. Both had the same issue with SLUB: lots
of errors with the shell, including failures for the init shell commands.
And sometimes I end up with a prompt but no way to run any shell command
at all. I guess that depends on fragmentation of the memory after boot
completes.

> 
> btw, what's the craic with that? Looks like you actually landed in
> upstream buildroot fairly soon after you pointed me at your series.
> Anything missing from buildroot, or did it all land?

Everything landed, plus some (some build fixes).

Palmer,

Please hold on before applying this patch. Discussion still going on about
SLUB.

> 
> Thanks,
> Conor.
> 
>> ---
>>  arch/riscv/configs/nommu_k210_defconfig        | 6 +++---
>>  arch/riscv/configs/nommu_k210_sdcard_defconfig | 6 +++---
>>  2 files changed, 6 insertions(+), 6 deletions(-)
>>
>> diff --git a/arch/riscv/configs/nommu_k210_defconfig b/arch/riscv/configs/nommu_k210_defconfig
>> index 96fe8def644c..18de91e84d1c 100644
>> --- a/arch/riscv/configs/nommu_k210_defconfig
>> +++ b/arch/riscv/configs/nommu_k210_defconfig
>> @@ -23,9 +23,6 @@ CONFIG_CC_OPTIMIZE_FOR_SIZE=y
>>  # CONFIG_ADVISE_SYSCALLS is not set
>>  # CONFIG_KALLSYMS is not set
>>  CONFIG_EMBEDDED=y
>> -# CONFIG_VM_EVENT_COUNTERS is not set
>> -# CONFIG_COMPAT_BRK is not set
>> -CONFIG_SLOB=y
>>  # CONFIG_MMU is not set
>>  CONFIG_SOC_CANAAN=y
>>  CONFIG_NONPORTABLE=y
>> @@ -39,6 +36,9 @@ CONFIG_CMDLINE_FORCE=y
>>  # CONFIG_BLOCK is not set
>>  CONFIG_BINFMT_FLAT=y
>>  # CONFIG_COREDUMP is not set
>> +# CONFIG_SLUB_CPU_PARTIAL is not set
>> +# CONFIG_COMPAT_BRK is not set
>> +# CONFIG_VM_EVENT_COUNTERS is not set
>>  CONFIG_DEVTMPFS=y
>>  CONFIG_DEVTMPFS_MOUNT=y
>>  # CONFIG_FW_LOADER is not set
>> diff --git a/arch/riscv/configs/nommu_k210_sdcard_defconfig b/arch/riscv/configs/nommu_k210_sdcard_defconfig
>> index 379740654373..718d2729a03e 100644
>> --- a/arch/riscv/configs/nommu_k210_sdcard_defconfig
>> +++ b/arch/riscv/configs/nommu_k210_sdcard_defconfig
>> @@ -15,9 +15,6 @@ CONFIG_CC_OPTIMIZE_FOR_SIZE=y
>>  # CONFIG_ADVISE_SYSCALLS is not set
>>  # CONFIG_KALLSYMS is not set
>>  CONFIG_EMBEDDED=y
>> -# CONFIG_VM_EVENT_COUNTERS is not set
>> -# CONFIG_COMPAT_BRK is not set
>> -CONFIG_SLOB=y
>>  # CONFIG_MMU is not set
>>  CONFIG_SOC_CANAAN=y
>>  CONFIG_NONPORTABLE=y
>> @@ -32,6 +29,9 @@ CONFIG_CMDLINE_FORCE=y
>>  # CONFIG_MQ_IOSCHED_KYBER is not set
>>  CONFIG_BINFMT_FLAT=y
>>  # CONFIG_COREDUMP is not set
>> +# CONFIG_SLUB_CPU_PARTIAL is not set
>> +# CONFIG_COMPAT_BRK is not set
>> +# CONFIG_VM_EVENT_COUNTERS is not set
>>  CONFIG_DEVTMPFS=y
>>  CONFIG_DEVTMPFS_MOUNT=y
>>  # CONFIG_FW_LOADER is not set
>> -- 
>> 2.38.1
>>
>>
>> _______________________________________________
>> linux-riscv mailing list
>> linux-riscv@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/linux-riscv
Conor Dooley Nov. 14, 2022, 9:05 p.m. UTC | #3
On Tue, Nov 15, 2022 at 05:58:11AM +0900, Damien Le Moal wrote:
> On 11/15/22 05:05, Conor Dooley wrote:
> > On Mon, Nov 14, 2022 at 10:31:51AM +0900, Damien Le Moal wrote:
> >> In preparation for SLOB deprecation, update the nommu_k210_* defconfigs
> >> to switch to using SLUB. To save memory, CONFIG_SLUB_CPU_PARTIAL is not
> >> selected.
> >>
> >> Suggested-by: Vlastimil Babka <vbabka@suse.cz>
> >> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
> > 
> > Hey,
> > Gave it a go w/ your v21 branch. To me, seems about as usable as it was
> > before...
> 
> Please use upstream buildroot. Everything is in master for this board and
> that v21 branch is dead now.

Ah cool, willdo.

> > Tested-by: Conor Dooley <conor.dooley@microchip.com>
> 
> I used buildroot defconfigs sipeed_maix_bit_defconfig and
> sipeed_maix_bit_sd_card_defconfig. Both had the same issue with SLUB: lots
> of errors with the shell, including failures for the init shell commands.
> And sometimes I end up with a prompt but no way to run any shell command
> at all. I guess that depends on fragmentation of the memory after boot
> completes.

Yeah, I guess I was just fortunate (or unfortunate?) and did not see any
- but I only ran the most trivial of commands after boot. I did give it
a couple of boots since I'd seen you mention problems but only 4/5
times.

> 
> > 
> > btw, what's the craic with that? Looks like you actually landed in
> > upstream buildroot fairly soon after you pointed me at your series.
> > Anything missing from buildroot, or did it all land?
> 
> Everything landed, plus some (some build fixes).
> 
> Palmer,
> 
> Please hold on before applying this patch. Discussion still going on about
> SLUB.

I'm only keeping half an eye on that thread, lmk if you'd like me to
re-test this at some point.

Thanks,
Conor.
diff mbox series

Patch

diff --git a/arch/riscv/configs/nommu_k210_defconfig b/arch/riscv/configs/nommu_k210_defconfig
index 96fe8def644c..18de91e84d1c 100644
--- a/arch/riscv/configs/nommu_k210_defconfig
+++ b/arch/riscv/configs/nommu_k210_defconfig
@@ -23,9 +23,6 @@  CONFIG_CC_OPTIMIZE_FOR_SIZE=y
 # CONFIG_ADVISE_SYSCALLS is not set
 # CONFIG_KALLSYMS is not set
 CONFIG_EMBEDDED=y
-# CONFIG_VM_EVENT_COUNTERS is not set
-# CONFIG_COMPAT_BRK is not set
-CONFIG_SLOB=y
 # CONFIG_MMU is not set
 CONFIG_SOC_CANAAN=y
 CONFIG_NONPORTABLE=y
@@ -39,6 +36,9 @@  CONFIG_CMDLINE_FORCE=y
 # CONFIG_BLOCK is not set
 CONFIG_BINFMT_FLAT=y
 # CONFIG_COREDUMP is not set
+# CONFIG_SLUB_CPU_PARTIAL is not set
+# CONFIG_COMPAT_BRK is not set
+# CONFIG_VM_EVENT_COUNTERS is not set
 CONFIG_DEVTMPFS=y
 CONFIG_DEVTMPFS_MOUNT=y
 # CONFIG_FW_LOADER is not set
diff --git a/arch/riscv/configs/nommu_k210_sdcard_defconfig b/arch/riscv/configs/nommu_k210_sdcard_defconfig
index 379740654373..718d2729a03e 100644
--- a/arch/riscv/configs/nommu_k210_sdcard_defconfig
+++ b/arch/riscv/configs/nommu_k210_sdcard_defconfig
@@ -15,9 +15,6 @@  CONFIG_CC_OPTIMIZE_FOR_SIZE=y
 # CONFIG_ADVISE_SYSCALLS is not set
 # CONFIG_KALLSYMS is not set
 CONFIG_EMBEDDED=y
-# CONFIG_VM_EVENT_COUNTERS is not set
-# CONFIG_COMPAT_BRK is not set
-CONFIG_SLOB=y
 # CONFIG_MMU is not set
 CONFIG_SOC_CANAAN=y
 CONFIG_NONPORTABLE=y
@@ -32,6 +29,9 @@  CONFIG_CMDLINE_FORCE=y
 # CONFIG_MQ_IOSCHED_KYBER is not set
 CONFIG_BINFMT_FLAT=y
 # CONFIG_COREDUMP is not set
+# CONFIG_SLUB_CPU_PARTIAL is not set
+# CONFIG_COMPAT_BRK is not set
+# CONFIG_VM_EVENT_COUNTERS is not set
 CONFIG_DEVTMPFS=y
 CONFIG_DEVTMPFS_MOUNT=y
 # CONFIG_FW_LOADER is not set