Message ID | 1577456594-22884-7-git-send-email-sughosh.ganu@linaro.org |
---|---|
State | Superseded, archived |
Delegated to: | Heinrich Schuchardt |
Headers | show |
Series | Add a random number generator uclass | expand |
On 12/27/19 3:23 PM, Sughosh Ganu wrote: > Enable support for random number generator on sandbox configs. This is > aimed primarily at adding unit test support for rng uclass. > > Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> > Reviewed-by: Patrice Chotard <patrice.chotard@st.com> > Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com> Why do you exclude: * configs/sandbox_flattree_defconfig, * configs/sandbox_spl_defconfig? Best regards Heinrich > --- > configs/sandbox64_defconfig | 2 ++ > configs/sandbox_defconfig | 2 ++ > 2 files changed, 4 insertions(+) > > diff --git a/configs/sandbox64_defconfig b/configs/sandbox64_defconfig > index cc536ff..a21d832 100644 > --- a/configs/sandbox64_defconfig > +++ b/configs/sandbox64_defconfig > @@ -158,6 +158,8 @@ CONFIG_REGULATOR_RK8XX=y > CONFIG_REGULATOR_S5M8767=y > CONFIG_DM_REGULATOR_SANDBOX=y > CONFIG_REGULATOR_TPS65090=y > +CONFIG_DM_RNG=y > +CONFIG_RNG_SANDBOX=y > CONFIG_DM_PWM=y > CONFIG_PWM_SANDBOX=y > CONFIG_RAM=y > diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig > index 64245f7..9bdc0f5 100644 > --- a/configs/sandbox_defconfig > +++ b/configs/sandbox_defconfig > @@ -179,6 +179,8 @@ CONFIG_REGULATOR_RK8XX=y > CONFIG_REGULATOR_S5M8767=y > CONFIG_DM_REGULATOR_SANDBOX=y > CONFIG_REGULATOR_TPS65090=y > +CONFIG_DM_RNG=y > +CONFIG_RNG_SANDBOX=y > CONFIG_DM_PWM=y > CONFIG_PWM_SANDBOX=y > CONFIG_RAM=y >
On Sat, 28 Dec 2019 at 11:55, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote: > On 12/27/19 3:23 PM, Sughosh Ganu wrote: > > Enable support for random number generator on sandbox configs. This is > > aimed primarily at adding unit test support for rng uclass. > > > > Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> > > Reviewed-by: Patrice Chotard <patrice.chotard@st.com> > > Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com> > > Why do you exclude: > > * configs/sandbox_flattree_defconfig, > * configs/sandbox_spl_defconfig? > This was primarily aimed at adding a unit test for rng on a 32 bit and 64 bit target. Do you think adding support for rng on the two additional targets is adding any value. I don't have a strong opinion on this. If you think that i should enable rng on the two additional targets as well, i will do so. Also, can you also review the patch for adding efi_rng_protocol support on qemu arm64 platform[1]. Once you have, i will make the changes and send the updated version. -sughosh [1] - https://lists.denx.de/pipermail/u-boot/2019-December/394665.html
On 12/28/19 12:07 PM, Sughosh Ganu wrote: > > On Sat, 28 Dec 2019 at 11:55, Heinrich Schuchardt <xypron.glpk@gmx.de > <mailto:xypron.glpk@gmx.de>> wrote: > > On 12/27/19 3:23 PM, Sughosh Ganu wrote: > > Enable support for random number generator on sandbox configs. > This is > > aimed primarily at adding unit test support for rng uclass. > > > > Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org > <mailto:sughosh.ganu@linaro.org>> > > Reviewed-by: Patrice Chotard <patrice.chotard@st.com > <mailto:patrice.chotard@st.com>> > > Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com > <mailto:patrick.delaunay@st.com>> > > Why do you exclude: > > * configs/sandbox_flattree_defconfig, > * configs/sandbox_spl_defconfig? > > > This was primarily aimed at adding a unit test for rng on a 32 bit and > 64 bit target. Do you think adding support for rng on the two additional > targets is adding any value. I don't have a strong opinion on this. If > you think that i should enable rng on the two additional targets as > well, i will do so. > > Also, can you also review the patch for adding efi_rng_protocol support > on qemu arm64 platform[1]. Once you have, i will make the changes and > send the updated version. > > -sughosh I think we should add the RNT device to all configs so that we can test in any of the contexts. But is nothing that would stop me from accepting the patch series. We can add this later too. Best regards Heinrich > > [1] - https://lists.denx.de/pipermail/u-boot/2019-December/394665.html
Hi, On Sat, 28 Dec 2019 at 06:21, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote: > > On 12/28/19 12:07 PM, Sughosh Ganu wrote: > > > > On Sat, 28 Dec 2019 at 11:55, Heinrich Schuchardt <xypron.glpk@gmx.de > > <mailto:xypron.glpk@gmx.de>> wrote: > > > > On 12/27/19 3:23 PM, Sughosh Ganu wrote: > > > Enable support for random number generator on sandbox configs. > > This is > > > aimed primarily at adding unit test support for rng uclass. > > > > > > Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org > > <mailto:sughosh.ganu@linaro.org>> > > > Reviewed-by: Patrice Chotard <patrice.chotard@st.com > > <mailto:patrice.chotard@st.com>> > > > Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com > > <mailto:patrick.delaunay@st.com>> > > > > Why do you exclude: > > > > * configs/sandbox_flattree_defconfig, > > * configs/sandbox_spl_defconfig? > > > > > > This was primarily aimed at adding a unit test for rng on a 32 bit and > > 64 bit target. Do you think adding support for rng on the two additional > > targets is adding any value. I don't have a strong opinion on this. If > > you think that i should enable rng on the two additional targets as > > well, i will do so. > > > > Also, can you also review the patch for adding efi_rng_protocol support > > on qemu arm64 platform[1]. Once you have, i will make the changes and > > send the updated version. > > > > -sughosh > > I think we should add the RNT device to all configs so that we can test > in any of the contexts. But is nothing that would stop me from accepting > the patch series. We can add this later too. I don't really mind either way. But sandbox_flattree and sandbox_spl are there to check specific things: sandbox_flattree - checks operation without live device tree sandbox_spl - checks a few SPL-related things They are often excluded when new options are added. Regards, Simon
diff --git a/configs/sandbox64_defconfig b/configs/sandbox64_defconfig index cc536ff..a21d832 100644 --- a/configs/sandbox64_defconfig +++ b/configs/sandbox64_defconfig @@ -158,6 +158,8 @@ CONFIG_REGULATOR_RK8XX=y CONFIG_REGULATOR_S5M8767=y CONFIG_DM_REGULATOR_SANDBOX=y CONFIG_REGULATOR_TPS65090=y +CONFIG_DM_RNG=y +CONFIG_RNG_SANDBOX=y CONFIG_DM_PWM=y CONFIG_PWM_SANDBOX=y CONFIG_RAM=y diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 64245f7..9bdc0f5 100644 --- a/configs/sandbox_defconfig +++ b/configs/sandbox_defconfig @@ -179,6 +179,8 @@ CONFIG_REGULATOR_RK8XX=y CONFIG_REGULATOR_S5M8767=y CONFIG_DM_REGULATOR_SANDBOX=y CONFIG_REGULATOR_TPS65090=y +CONFIG_DM_RNG=y +CONFIG_RNG_SANDBOX=y CONFIG_DM_PWM=y CONFIG_PWM_SANDBOX=y CONFIG_RAM=y