Re: [PATCH 2/9] kernel: change CONFIG_HW_RANDOM default to y

2023-04-30 Thread Felix Fietkau

On 29.04.23 08:08, Elliott Mitchell wrote:

On Fri, Apr 28, 2023 at 10:29:29AM -0600, Philip Prindeville wrote:

Why isn't this migrating upwards into target/linux/generic/config-5.15 and 
target/linux/generic/config-5.10 in that case?

And for the platforms where it was turned off, like 
target/linux/armvirt/32/config-5.15, why isn't that staying unchanged?


I'm guessing you're unaware of a subtlety of how the .config system
actually works.  Take a second look, some handy examples:


> On Apr 22, 2023, at 11:46 AM, Elliott Mitchell  wrote:



> diff --git a/target/linux/armvirt/32/config-5.10 
b/target/linux/armvirt/32/config-5.10
> index 3c6443bcbf..2f7cd03b5f 100644
> --- a/target/linux/armvirt/32/config-5.10
> +++ b/target/linux/armvirt/32/config-5.10
> @@ -47,6 +47,7 @@ CONFIG_EDAC_ATOMIC_SCRUB=y
> CONFIG_GENERIC_VDSO_32=y
> CONFIG_HARDEN_BRANCH_PREDICTOR=y
> CONFIG_HAVE_SMP=y
> +CONFIG_HW_RANDOM=n
> CONFIG_HZ_FIXED=0
> CONFIG_HZ_PERIODIC=y
> CONFIG_MIGHT_HAVE_CACHE_L2X0=y
> diff --git a/target/linux/armvirt/32/config-5.15 
b/target/linux/armvirt/32/config-5.15
> index bf6e2a5cde..bb2a7a320f 100644
> --- a/target/linux/armvirt/32/config-5.15
> +++ b/target/linux/armvirt/32/config-5.15
> @@ -49,6 +49,7 @@ CONFIG_GENERIC_IRQ_MULTI_HANDLER=y
> CONFIG_GENERIC_VDSO_32=y
> CONFIG_HARDEN_BRANCH_PREDICTOR=y
> CONFIG_HAVE_SMP=y
> +CONFIG_HW_RANDOM=n
> CONFIG_HZ_FIXED=0
> CONFIG_HZ_PERIODIC=y
> CONFIG_MIGHT_HAVE_CACHE_L2X0=y




> diff --git a/target/linux/armvirt/64/config-5.10 
b/target/linux/armvirt/64/config-5.10
> index 275fe4571d..af46939ad2 100644
> --- a/target/linux/armvirt/64/config-5.10
> +++ b/target/linux/armvirt/64/config-5.10
> @@ -102,7 +102,6 @@ CONFIG_GPIO_GENERIC=y
> CONFIG_GPIO_GENERIC_PLATFORM=y
> CONFIG_HDMI=y
> CONFIG_HOLES_IN_ZONE=y
> -CONFIG_HW_RANDOM=y
> CONFIG_HW_RANDOM_VIRTIO=y
> CONFIG_I2C=y
> CONFIG_I2C_ALGOBIT=y
> diff --git a/target/linux/armvirt/64/config-5.15 
b/target/linux/armvirt/64/config-5.15
> index 19ae3dc0cf..88f2f64cde 100644
> --- a/target/linux/armvirt/64/config-5.15
> +++ b/target/linux/armvirt/64/config-5.15
> @@ -103,7 +103,6 @@ CONFIG_GENERIC_FIND_FIRST_BIT=y
> CONFIG_GPIO_GENERIC=y
> CONFIG_GPIO_GENERIC_PLATFORM=y
> CONFIG_HDMI=y
> -CONFIG_HW_RANDOM=y
> CONFIG_HW_RANDOM_ARM_SMCCC_TRNG=y
> CONFIG_HW_RANDOM_VIRTIO=y
> CONFIG_I2C=y
> diff --git a/target/linux/ath25/config-5.10 b/target/linux/ath25/config-5.10
> index ef764820e4..41e65c72ad 100644




> diff --git a/target/linux/generic/config-5.10 
b/target/linux/generic/config-5.10
> index f6f1fb0278..853c13852d 100644
> --- a/target/linux/generic/config-5.10
> +++ b/target/linux/generic/config-5.10
> @@ -2343,7 +2343,7 @@ CONFIG_HPET_MMAP_DEFAULT=y
> # CONFIG_HWSPINLOCK is not set
> # CONFIG_HWSPINLOCK_OMAP is not set
> CONFIG_HW_PERF_EVENTS=y
> -# CONFIG_HW_RANDOM is not set
> +CONFIG_HW_RANDOM=y
> # CONFIG_HW_RANDOM_AMD is not set
> # CONFIG_HW_RANDOM_ATMEL is not set
> # CONFIG_HW_RANDOM_BA431 is not set
> diff --git a/target/linux/generic/config-5.15 
b/target/linux/generic/config-5.15
> index ac75a480a1..bf38732b31 100644
> --- a/target/linux/generic/config-5.15
> +++ b/target/linux/generic/config-5.15
> @@ -2444,7 +2444,7 @@ CONFIG_HPET_MMAP_DEFAULT=y
> # CONFIG_HWSPINLOCK is not set
> # CONFIG_HWSPINLOCK_OMAP is not set
> CONFIG_HW_PERF_EVENTS=y
> -# CONFIG_HW_RANDOM is not set
> +CONFIG_HW_RANDOM=y
> # CONFIG_HW_RANDOM_AMD is not set
> # CONFIG_HW_RANDOM_ARM_SMCCC_TRNG is not set
> # CONFIG_HW_RANDOM_ATMEL is not set


armvirt/32 previously had it off and it is still off.  armvirt/64
previously had it on and it is still on.

Most similar systems would treat "#  is not set" as undefined or
no preference (use the default value).  The Linux kernel system treats
this as "no" due to the history of the system.  Yet it also honors "n"
as "no".

I tend to prefer "n" as it hints at a value being deliberately chosen,
instead of being left unset/undefined.
Please use the same syntax as in the rest of the file. Occasionally 
kconfig.pl will be used to add entries or re-sort the file, and 
mis-matching the existing style will cause spurious extra changes in 
that case.

Also, please fix your mail server, I get bounces when sending to you.

- Felix


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH 2/9] kernel: change CONFIG_HW_RANDOM default to y

2023-04-30 Thread Philip Prindeville



> On Apr 29, 2023, at 12:08 AM, Elliott Mitchell  wrote:
> 
> On Fri, Apr 28, 2023 at 10:29:29AM -0600, Philip Prindeville wrote:
>> Why isn't this migrating upwards into target/linux/generic/config-5.15 and 
>> target/linux/generic/config-5.10 in that case?
>> 
>> And for the platforms where it was turned off, like 
>> target/linux/armvirt/32/config-5.15, why isn't that staying unchanged?
> 
> I'm guessing you're unaware of a subtlety of how the .config system
> actually works.  Take a second look, some handy examples:
> 
>>> On Apr 22, 2023, at 11:46 AM, Elliott Mitchell  wrote:
> 
>>> diff --git a/target/linux/armvirt/32/config-5.10 
>>> b/target/linux/armvirt/32/config-5.10
>>> index 3c6443bcbf..2f7cd03b5f 100644
>>> --- a/target/linux/armvirt/32/config-5.10
>>> +++ b/target/linux/armvirt/32/config-5.10
>>> @@ -47,6 +47,7 @@ CONFIG_EDAC_ATOMIC_SCRUB=y
>>> CONFIG_GENERIC_VDSO_32=y
>>> CONFIG_HARDEN_BRANCH_PREDICTOR=y
>>> CONFIG_HAVE_SMP=y
>>> +CONFIG_HW_RANDOM=n
>>> CONFIG_HZ_FIXED=0
>>> CONFIG_HZ_PERIODIC=y
>>> CONFIG_MIGHT_HAVE_CACHE_L2X0=y
>>> diff --git a/target/linux/armvirt/32/config-5.15 
>>> b/target/linux/armvirt/32/config-5.15
>>> index bf6e2a5cde..bb2a7a320f 100644
>>> --- a/target/linux/armvirt/32/config-5.15
>>> +++ b/target/linux/armvirt/32/config-5.15
>>> @@ -49,6 +49,7 @@ CONFIG_GENERIC_IRQ_MULTI_HANDLER=y
>>> CONFIG_GENERIC_VDSO_32=y
>>> CONFIG_HARDEN_BRANCH_PREDICTOR=y
>>> CONFIG_HAVE_SMP=y
>>> +CONFIG_HW_RANDOM=n
>>> CONFIG_HZ_FIXED=0
>>> CONFIG_HZ_PERIODIC=y
>>> CONFIG_MIGHT_HAVE_CACHE_L2X0=y
> 
> 
>>> diff --git a/target/linux/armvirt/64/config-5.10 
>>> b/target/linux/armvirt/64/config-5.10
>>> index 275fe4571d..af46939ad2 100644
>>> --- a/target/linux/armvirt/64/config-5.10
>>> +++ b/target/linux/armvirt/64/config-5.10
>>> @@ -102,7 +102,6 @@ CONFIG_GPIO_GENERIC=y
>>> CONFIG_GPIO_GENERIC_PLATFORM=y
>>> CONFIG_HDMI=y
>>> CONFIG_HOLES_IN_ZONE=y
>>> -CONFIG_HW_RANDOM=y
>>> CONFIG_HW_RANDOM_VIRTIO=y
>>> CONFIG_I2C=y
>>> CONFIG_I2C_ALGOBIT=y
>>> diff --git a/target/linux/armvirt/64/config-5.15 
>>> b/target/linux/armvirt/64/config-5.15
>>> index 19ae3dc0cf..88f2f64cde 100644
>>> --- a/target/linux/armvirt/64/config-5.15
>>> +++ b/target/linux/armvirt/64/config-5.15
>>> @@ -103,7 +103,6 @@ CONFIG_GENERIC_FIND_FIRST_BIT=y
>>> CONFIG_GPIO_GENERIC=y
>>> CONFIG_GPIO_GENERIC_PLATFORM=y
>>> CONFIG_HDMI=y
>>> -CONFIG_HW_RANDOM=y
>>> CONFIG_HW_RANDOM_ARM_SMCCC_TRNG=y
>>> CONFIG_HW_RANDOM_VIRTIO=y
>>> CONFIG_I2C=y
>>> diff --git a/target/linux/ath25/config-5.10 b/target/linux/ath25/config-5.10
>>> index ef764820e4..41e65c72ad 100644
> 
> 
>>> diff --git a/target/linux/generic/config-5.10 
>>> b/target/linux/generic/config-5.10
>>> index f6f1fb0278..853c13852d 100644
>>> --- a/target/linux/generic/config-5.10
>>> +++ b/target/linux/generic/config-5.10
>>> @@ -2343,7 +2343,7 @@ CONFIG_HPET_MMAP_DEFAULT=y
>>> # CONFIG_HWSPINLOCK is not set
>>> # CONFIG_HWSPINLOCK_OMAP is not set
>>> CONFIG_HW_PERF_EVENTS=y
>>> -# CONFIG_HW_RANDOM is not set
>>> +CONFIG_HW_RANDOM=y
>>> # CONFIG_HW_RANDOM_AMD is not set
>>> # CONFIG_HW_RANDOM_ATMEL is not set
>>> # CONFIG_HW_RANDOM_BA431 is not set
>>> diff --git a/target/linux/generic/config-5.15 
>>> b/target/linux/generic/config-5.15
>>> index ac75a480a1..bf38732b31 100644
>>> --- a/target/linux/generic/config-5.15
>>> +++ b/target/linux/generic/config-5.15
>>> @@ -2444,7 +2444,7 @@ CONFIG_HPET_MMAP_DEFAULT=y
>>> # CONFIG_HWSPINLOCK is not set
>>> # CONFIG_HWSPINLOCK_OMAP is not set
>>> CONFIG_HW_PERF_EVENTS=y
>>> -# CONFIG_HW_RANDOM is not set
>>> +CONFIG_HW_RANDOM=y
>>> # CONFIG_HW_RANDOM_AMD is not set
>>> # CONFIG_HW_RANDOM_ARM_SMCCC_TRNG is not set
>>> # CONFIG_HW_RANDOM_ATMEL is not set
> 
> armvirt/32 previously had it off and it is still off.  armvirt/64
> previously had it on and it is still on.
> 
> Most similar systems would treat "#  is not set" as undefined or
> no preference (use the default value).  The Linux kernel system treats
> this as "no" due to the history of the system.  Yet it also honors "n"
> as "no".
> 
> I tend to prefer "n" as it hints at a value being deliberately chosen,
> instead of being left unset/undefined.



Enumerating it explicitly saves me having to get into the kernel sources and 
grep Config files for a default.


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH 2/9] kernel: change CONFIG_HW_RANDOM default to y

2023-04-28 Thread Elliott Mitchell
On Fri, Apr 28, 2023 at 10:29:29AM -0600, Philip Prindeville wrote:
> Why isn't this migrating upwards into target/linux/generic/config-5.15 and 
> target/linux/generic/config-5.10 in that case?
> 
> And for the platforms where it was turned off, like 
> target/linux/armvirt/32/config-5.15, why isn't that staying unchanged?

I'm guessing you're unaware of a subtlety of how the .config system
actually works.  Take a second look, some handy examples:

> > On Apr 22, 2023, at 11:46 AM, Elliott Mitchell  wrote:

> > diff --git a/target/linux/armvirt/32/config-5.10 
> > b/target/linux/armvirt/32/config-5.10
> > index 3c6443bcbf..2f7cd03b5f 100644
> > --- a/target/linux/armvirt/32/config-5.10
> > +++ b/target/linux/armvirt/32/config-5.10
> > @@ -47,6 +47,7 @@ CONFIG_EDAC_ATOMIC_SCRUB=y
> > CONFIG_GENERIC_VDSO_32=y
> > CONFIG_HARDEN_BRANCH_PREDICTOR=y
> > CONFIG_HAVE_SMP=y
> > +CONFIG_HW_RANDOM=n
> > CONFIG_HZ_FIXED=0
> > CONFIG_HZ_PERIODIC=y
> > CONFIG_MIGHT_HAVE_CACHE_L2X0=y
> > diff --git a/target/linux/armvirt/32/config-5.15 
> > b/target/linux/armvirt/32/config-5.15
> > index bf6e2a5cde..bb2a7a320f 100644
> > --- a/target/linux/armvirt/32/config-5.15
> > +++ b/target/linux/armvirt/32/config-5.15
> > @@ -49,6 +49,7 @@ CONFIG_GENERIC_IRQ_MULTI_HANDLER=y
> > CONFIG_GENERIC_VDSO_32=y
> > CONFIG_HARDEN_BRANCH_PREDICTOR=y
> > CONFIG_HAVE_SMP=y
> > +CONFIG_HW_RANDOM=n
> > CONFIG_HZ_FIXED=0
> > CONFIG_HZ_PERIODIC=y
> > CONFIG_MIGHT_HAVE_CACHE_L2X0=y


> > diff --git a/target/linux/armvirt/64/config-5.10 
> > b/target/linux/armvirt/64/config-5.10
> > index 275fe4571d..af46939ad2 100644
> > --- a/target/linux/armvirt/64/config-5.10
> > +++ b/target/linux/armvirt/64/config-5.10
> > @@ -102,7 +102,6 @@ CONFIG_GPIO_GENERIC=y
> > CONFIG_GPIO_GENERIC_PLATFORM=y
> > CONFIG_HDMI=y
> > CONFIG_HOLES_IN_ZONE=y
> > -CONFIG_HW_RANDOM=y
> > CONFIG_HW_RANDOM_VIRTIO=y
> > CONFIG_I2C=y
> > CONFIG_I2C_ALGOBIT=y
> > diff --git a/target/linux/armvirt/64/config-5.15 
> > b/target/linux/armvirt/64/config-5.15
> > index 19ae3dc0cf..88f2f64cde 100644
> > --- a/target/linux/armvirt/64/config-5.15
> > +++ b/target/linux/armvirt/64/config-5.15
> > @@ -103,7 +103,6 @@ CONFIG_GENERIC_FIND_FIRST_BIT=y
> > CONFIG_GPIO_GENERIC=y
> > CONFIG_GPIO_GENERIC_PLATFORM=y
> > CONFIG_HDMI=y
> > -CONFIG_HW_RANDOM=y
> > CONFIG_HW_RANDOM_ARM_SMCCC_TRNG=y
> > CONFIG_HW_RANDOM_VIRTIO=y
> > CONFIG_I2C=y
> > diff --git a/target/linux/ath25/config-5.10 b/target/linux/ath25/config-5.10
> > index ef764820e4..41e65c72ad 100644


> > diff --git a/target/linux/generic/config-5.10 
> > b/target/linux/generic/config-5.10
> > index f6f1fb0278..853c13852d 100644
> > --- a/target/linux/generic/config-5.10
> > +++ b/target/linux/generic/config-5.10
> > @@ -2343,7 +2343,7 @@ CONFIG_HPET_MMAP_DEFAULT=y
> > # CONFIG_HWSPINLOCK is not set
> > # CONFIG_HWSPINLOCK_OMAP is not set
> > CONFIG_HW_PERF_EVENTS=y
> > -# CONFIG_HW_RANDOM is not set
> > +CONFIG_HW_RANDOM=y
> > # CONFIG_HW_RANDOM_AMD is not set
> > # CONFIG_HW_RANDOM_ATMEL is not set
> > # CONFIG_HW_RANDOM_BA431 is not set
> > diff --git a/target/linux/generic/config-5.15 
> > b/target/linux/generic/config-5.15
> > index ac75a480a1..bf38732b31 100644
> > --- a/target/linux/generic/config-5.15
> > +++ b/target/linux/generic/config-5.15
> > @@ -2444,7 +2444,7 @@ CONFIG_HPET_MMAP_DEFAULT=y
> > # CONFIG_HWSPINLOCK is not set
> > # CONFIG_HWSPINLOCK_OMAP is not set
> > CONFIG_HW_PERF_EVENTS=y
> > -# CONFIG_HW_RANDOM is not set
> > +CONFIG_HW_RANDOM=y
> > # CONFIG_HW_RANDOM_AMD is not set
> > # CONFIG_HW_RANDOM_ARM_SMCCC_TRNG is not set
> > # CONFIG_HW_RANDOM_ATMEL is not set

armvirt/32 previously had it off and it is still off.  armvirt/64
previously had it on and it is still on.

Most similar systems would treat "#  is not set" as undefined or
no preference (use the default value).  The Linux kernel system treats
this as "no" due to the history of the system.  Yet it also honors "n"
as "no".

I tend to prefer "n" as it hints at a value being deliberately chosen,
instead of being left unset/undefined.


-- 
(\___(\___(\__  --=> 8-) EHM <=--  __/)___/)___/)
 \BS (| ehem+sig...@m5p.com  PGP 87145445 |)   /
  \_CS\   |  _  -O #include  O-   _  |   /  _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH 2/9] kernel: change CONFIG_HW_RANDOM default to y

2023-04-28 Thread Philip Prindeville
Why isn't this migrating upwards into target/linux/generic/config-5.15 and 
target/linux/generic/config-5.10 in that case?

And for the platforms where it was turned off, like 
target/linux/armvirt/32/config-5.15, why isn't that staying unchanged?



> On Apr 22, 2023, at 11:46 AM, Elliott Mitchell  wrote:
> 
> Many devices do not have hardware random number generators.  Yet
> more do than don't, and they are becoming more common.
> 
> Signed-off-by: Elliott Mitchell 
> ---
> target/linux/airoha/config-5.15 | 1 -
> target/linux/apm821xx/config-5.10   | 1 -
> target/linux/apm821xx/config-5.15   | 1 -
> target/linux/archs38/config-5.10| 1 +
> target/linux/archs38/config-5.15| 1 +
> target/linux/armvirt/32/config-5.10 | 1 +
> target/linux/armvirt/32/config-5.15 | 1 +
> target/linux/armvirt/64/config-5.10 | 1 -
> target/linux/armvirt/64/config-5.15 | 1 -
> target/linux/ath25/config-5.10  | 1 -
> target/linux/ath79/config-5.10  | 1 +
> target/linux/ath79/config-5.15  | 1 +
> target/linux/bcm47xx/config-5.10| 1 -
> target/linux/bcm47xx/config-5.15| 1 -
> target/linux/bcm4908/config-5.10| 1 +
> target/linux/bcm4908/config-5.15| 1 +
> target/linux/bcm53xx/config-5.10| 1 -
> target/linux/bcm53xx/config-5.15| 1 -
> target/linux/bcm63xx/config-5.15| 1 -
> target/linux/gemini/config-5.10 | 1 +
> target/linux/gemini/config-5.15 | 1 -
> target/linux/generic/config-5.10| 2 +-
> target/linux/generic/config-5.15| 2 +-
> target/linux/imx/config-5.15| 1 -
> target/linux/ipq40xx/config-5.15| 1 -
> target/linux/ipq806x/config-5.10| 1 -
> target/linux/ipq806x/config-5.15| 1 -
> target/linux/ipq807x/config-5.15| 1 +
> target/linux/kirkwood/config-5.10   | 1 -
> target/linux/kirkwood/config-5.15   | 1 -
> target/linux/lantiq/ase/config-5.10 | 1 -
> target/linux/lantiq/ase/config-5.15 | 1 -
> target/linux/lantiq/falcon/config-5.10  | 1 +
> target/linux/lantiq/falcon/config-5.15  | 1 +
> target/linux/lantiq/xrx200/config-5.10  | 1 -
> target/linux/lantiq/xrx200/config-5.15  | 1 -
> target/linux/lantiq/xway/config-5.10| 1 -
> target/linux/lantiq/xway/config-5.15| 1 -
> target/linux/lantiq/xway_legacy/config-5.10 | 1 +
> target/linux/lantiq/xway_legacy/config-5.15 | 1 +
> target/linux/malta/config-5.10  | 1 +
> target/linux/malta/config-5.15  | 1 +
> target/linux/mpc85xx/config-5.10| 1 -
> target/linux/mpc85xx/config-5.15| 1 -
> target/linux/mvebu/config-5.10  | 1 -
> target/linux/mvebu/config-5.15  | 1 -
> target/linux/mxs/config-5.15| 1 +
> target/linux/octeon/config-5.10 | 1 -
> target/linux/octeon/config-5.15 | 1 -
> target/linux/octeontx/config-5.15   | 1 -
> target/linux/omap/config-5.10   | 1 -
> target/linux/omap/config-5.15   | 1 -
> target/linux/oxnas/config-5.15  | 1 +
> target/linux/pistachio/config-5.10  | 1 +
> target/linux/pistachio/config-5.15  | 1 +
> target/linux/qoriq/config-5.15  | 1 -
> target/linux/sunxi/config-5.15  | 1 -
> target/linux/tegra/config-5.10  | 1 +
> target/linux/tegra/config-5.15  | 1 +
> target/linux/uml/config-5.10| 1 -
> target/linux/uml/config-5.15| 1 -
> target/linux/x86/config-5.10| 1 -
> target/linux/x86/config-5.15| 1 -
> target/linux/zynq/config-5.15   | 1 +
> 64 files changed, 25 insertions(+), 41 deletions(-)
> 
> diff --git a/target/linux/airoha/config-5.15 b/target/linux/airoha/config-5.15
> index adc8cdfb9b..cdee4b2d51 100644
> --- a/target/linux/airoha/config-5.15
> +++ b/target/linux/airoha/config-5.15
> @@ -128,7 +128,6 @@ CONFIG_HAS_IOMEM=y
> CONFIG_HAS_IOPORT_MAP=y
> CONFIG_HAVE_SMP=y
> CONFIG_HOTPLUG_CPU=y
> -CONFIG_HW_RANDOM=y
> CONFIG_HZ_FIXED=0
> CONFIG_INITRAMFS_SOURCE=""
> # CONFIG_IOMMU_DEBUGFS is not set
> diff --git a/target/linux/apm821xx/config-5.10 
> b/target/linux/apm821xx/config-5.10
> index 89d72e2641..6fcb9e4803 100644
> --- a/target/linux/apm821xx/config-5.10
> +++ b/target/linux/apm821xx/config-5.10
> @@ -97,7 +97,6 @@ CONFIG_GPIO_GENERIC_PLATFORM=y
> CONFIG_HAS_DMA=y
> CONFIG_HAS_IOMEM=y
> CONFIG_HAS_IOPORT_MAP=y
> -CONFIG_HW_RANDOM=y
> CONFIG_HW_RANDOM_PPC4XX=y
> CONFIG_I2C=y
> CONFIG_I2C_BOARDINFO=y
> diff --git a/target/linux/apm821xx/config-5.15 
> b/target/linux/apm821xx/config-5.15
> index 2af8110553..fddf0cd4e2 100644
> --- a/target/linux/apm821xx/config-5.15
> +++ b/target/linux/apm821xx/config-5.15
> @@ -96,7 +96,6 @@ CONFIG_GPIO_GENERIC_PLATFORM=y
> CONFIG_HAS_DMA=y
> CONFIG_HAS_IOMEM=y

[PATCH 2/9] kernel: change CONFIG_HW_RANDOM default to y

2023-04-26 Thread Elliott Mitchell
Many devices do not have hardware random number generators.  Yet
more do than don't, and they are becoming more common.

Signed-off-by: Elliott Mitchell 
---
 target/linux/airoha/config-5.15 | 1 -
 target/linux/apm821xx/config-5.10   | 1 -
 target/linux/apm821xx/config-5.15   | 1 -
 target/linux/archs38/config-5.10| 1 +
 target/linux/archs38/config-5.15| 1 +
 target/linux/armvirt/32/config-5.10 | 1 +
 target/linux/armvirt/32/config-5.15 | 1 +
 target/linux/armvirt/64/config-5.10 | 1 -
 target/linux/armvirt/64/config-5.15 | 1 -
 target/linux/ath25/config-5.10  | 1 -
 target/linux/ath79/config-5.10  | 1 +
 target/linux/ath79/config-5.15  | 1 +
 target/linux/bcm47xx/config-5.10| 1 -
 target/linux/bcm47xx/config-5.15| 1 -
 target/linux/bcm4908/config-5.10| 1 +
 target/linux/bcm4908/config-5.15| 1 +
 target/linux/bcm53xx/config-5.10| 1 -
 target/linux/bcm53xx/config-5.15| 1 -
 target/linux/bcm63xx/config-5.15| 1 -
 target/linux/gemini/config-5.10 | 1 +
 target/linux/gemini/config-5.15 | 1 -
 target/linux/generic/config-5.10| 2 +-
 target/linux/generic/config-5.15| 2 +-
 target/linux/imx/config-5.15| 1 -
 target/linux/ipq40xx/config-5.15| 1 -
 target/linux/ipq806x/config-5.10| 1 -
 target/linux/ipq806x/config-5.15| 1 -
 target/linux/ipq807x/config-5.15| 1 +
 target/linux/kirkwood/config-5.10   | 1 -
 target/linux/kirkwood/config-5.15   | 1 -
 target/linux/lantiq/ase/config-5.10 | 1 -
 target/linux/lantiq/ase/config-5.15 | 1 -
 target/linux/lantiq/falcon/config-5.10  | 1 +
 target/linux/lantiq/falcon/config-5.15  | 1 +
 target/linux/lantiq/xrx200/config-5.10  | 1 -
 target/linux/lantiq/xrx200/config-5.15  | 1 -
 target/linux/lantiq/xway/config-5.10| 1 -
 target/linux/lantiq/xway/config-5.15| 1 -
 target/linux/lantiq/xway_legacy/config-5.10 | 1 +
 target/linux/lantiq/xway_legacy/config-5.15 | 1 +
 target/linux/malta/config-5.10  | 1 +
 target/linux/malta/config-5.15  | 1 +
 target/linux/mpc85xx/config-5.10| 1 -
 target/linux/mpc85xx/config-5.15| 1 -
 target/linux/mvebu/config-5.10  | 1 -
 target/linux/mvebu/config-5.15  | 1 -
 target/linux/mxs/config-5.15| 1 +
 target/linux/octeon/config-5.10 | 1 -
 target/linux/octeon/config-5.15 | 1 -
 target/linux/octeontx/config-5.15   | 1 -
 target/linux/omap/config-5.10   | 1 -
 target/linux/omap/config-5.15   | 1 -
 target/linux/oxnas/config-5.15  | 1 +
 target/linux/pistachio/config-5.10  | 1 +
 target/linux/pistachio/config-5.15  | 1 +
 target/linux/qoriq/config-5.15  | 1 -
 target/linux/sunxi/config-5.15  | 1 -
 target/linux/tegra/config-5.10  | 1 +
 target/linux/tegra/config-5.15  | 1 +
 target/linux/uml/config-5.10| 1 -
 target/linux/uml/config-5.15| 1 -
 target/linux/x86/config-5.10| 1 -
 target/linux/x86/config-5.15| 1 -
 target/linux/zynq/config-5.15   | 1 +
 64 files changed, 25 insertions(+), 41 deletions(-)

diff --git a/target/linux/airoha/config-5.15 b/target/linux/airoha/config-5.15
index adc8cdfb9b..cdee4b2d51 100644
--- a/target/linux/airoha/config-5.15
+++ b/target/linux/airoha/config-5.15
@@ -128,7 +128,6 @@ CONFIG_HAS_IOMEM=y
 CONFIG_HAS_IOPORT_MAP=y
 CONFIG_HAVE_SMP=y
 CONFIG_HOTPLUG_CPU=y
-CONFIG_HW_RANDOM=y
 CONFIG_HZ_FIXED=0
 CONFIG_INITRAMFS_SOURCE=""
 # CONFIG_IOMMU_DEBUGFS is not set
diff --git a/target/linux/apm821xx/config-5.10 
b/target/linux/apm821xx/config-5.10
index 89d72e2641..6fcb9e4803 100644
--- a/target/linux/apm821xx/config-5.10
+++ b/target/linux/apm821xx/config-5.10
@@ -97,7 +97,6 @@ CONFIG_GPIO_GENERIC_PLATFORM=y
 CONFIG_HAS_DMA=y
 CONFIG_HAS_IOMEM=y
 CONFIG_HAS_IOPORT_MAP=y
-CONFIG_HW_RANDOM=y
 CONFIG_HW_RANDOM_PPC4XX=y
 CONFIG_I2C=y
 CONFIG_I2C_BOARDINFO=y
diff --git a/target/linux/apm821xx/config-5.15 
b/target/linux/apm821xx/config-5.15
index 2af8110553..fddf0cd4e2 100644
--- a/target/linux/apm821xx/config-5.15
+++ b/target/linux/apm821xx/config-5.15
@@ -96,7 +96,6 @@ CONFIG_GPIO_GENERIC_PLATFORM=y
 CONFIG_HAS_DMA=y
 CONFIG_HAS_IOMEM=y
 CONFIG_HAS_IOPORT_MAP=y
-CONFIG_HW_RANDOM=y
 CONFIG_HW_RANDOM_PPC4XX=y
 CONFIG_I2C=y
 CONFIG_I2C_BOARDINFO=y
diff --git a/target/linux/archs38/config-5.10 b/target/linux/archs38/config-5.10
index 442f741328..4d0db8caa1 100644
--- a/target/linux/archs38/config-5.10
+++ b/target/linux/archs38/config-5.10
@@ -138,6 +138,7 @@ CONFIG_HAVE_NET_DSA=y
 CONFIG_HAVE_OPROFILE=y
 CONFIG_HAVE_PCI=y
 CONFIG_HAVE_PERF_EVENTS=y
+CONFIG_HW_RANDOM=n
 C