t; number, it also can be used to detect whether the TRNG is supported or
> not.
LGTM.
Reviewed-by: Weizhao Ouyang
BR,
Weizhao
>
> Signed-off-by: Leo Yan
> ---
> drivers/rng/smccc_trng.c | 4
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/rng/smccc_trng.c
On Fri, May 10, 2024 at 5:23 PM Heinrich Schuchardt wrote:
>
> On 5/8/24 13:13, Weizhao Ouyang wrote:
> > According to UEFI v2.10 spec section 8.2.6, if a caller invokes the
> > SetVariables() service, it will produce a digest from hash(VariableName,
> > VendorGui
On Wed, May 8, 2024 at 9:56 PM Ilias Apalodimas
wrote:
>
> >
> > > + *
> > > + * Get a possible efi system partition by expanding a boot option
> > > + * file path.
> > > + *
> > > + * @boot_dev The device path pointing to a boot option
> > > + * Return: The full ESP device path or NULL if f
On Wed, May 8, 2024 at 9:53 PM Heinrich Schuchardt wrote:
>
> On 5/8/24 14:59, Weizhao Ouyang wrote:
> > On Wed, May 8, 2024 at 7:52 PM Heinrich Schuchardt
> > wrote:
> >>
> >> On 5/8/24 13:24, Weizhao Ouyang wrote:
> >>> When using CapsuleA
Hi Ilias,
On Wed, May 8, 2024 at 9:47 PM Ilias Apalodimas
wrote:
>
> Hi Weizhao,
>
> On Wed, 8 May 2024 at 14:24, Weizhao Ouyang wrote:
> >
> > When using CapsuleApp to execute on-disk update, it will choose the
> > first boot option as BootNext entry to perform
Hi Dan,
Thanks for the suggestion, I'll fix them in the next patch.
BR,
Weizhao
On Wed, May 8, 2024 at 8:04 PM Dan Carpenter wrote:
>
> On Wed, May 08, 2024 at 07:24:01PM +0800, Weizhao Ouyang wrote:
> > diff --git a/lib/efi_loader/efi_capsule.c b/lib/efi_loader/efi_ca
On Wed, May 8, 2024 at 7:52 PM Heinrich Schuchardt wrote:
>
> On 5/8/24 13:24, Weizhao Ouyang wrote:
> > When using CapsuleApp to execute on-disk update, it will choose the
> > first boot option as BootNext entry to perform the capsule update after
> > a reboot. But auto-g
II, detect the possible ESP device path by expanding
the media path.
Fixes: f86fba8adbf3 ("efi_loader: auto-generate boot option for each blkio
device")
Signed-off-by: Weizhao Ouyang
---
include/efi_loader.h | 6 ++
lib/efi_loader/efi_boottime.c | 15 ++---
lib/
Currently Rockchip's capsule update mechanism only accepts capsules in
form of a mmc partition, but a generic capsule update mechanism should
be used to satisfy the universal requirements.
Signed-off-by: Weizhao Ouyang
---
arch/arm/mach-rockchip/board.c
" to create the authenticated variable, this append
write will fail in the u-boot due to "hash check failed".
This patch resumes writing the EFI_VARIABLE_APPEND_WRITE attr to ensure
that the hash check is correct. And also update the "test_efi_secboot"
test case to compliance
On Wed, Apr 10, 2024 at 8:09 PM Heinrich Schuchardt wrote:
>
> On 10.04.24 13:53, Weizhao Ouyang wrote:
> > On Thu, Apr 4, 2024 at 1:48 AM Weizhao Ouyang wrote:
> >>
> >> Hi Heinrich,
> >>
> >> On Wed, Apr 3, 2024 at 10:54 PM Heinrich Schuch
Improve error message for UEFI SCT tests.
Signed-off-by: Weizhao Ouyang
---
lib/efi_loader/efi_variable.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_loader/efi_variable.c
index 2951dc78c7..e6c1219a11 100644
--- a/lib/efi_loader/efi_variable.c
On Thu, Apr 4, 2024 at 1:48 AM Weizhao Ouyang wrote:
>
> Hi Heinrich,
>
> On Wed, Apr 3, 2024 at 10:54 PM Heinrich Schuchardt
> wrote:
> >
> > On 27.03.24 15:06, Weizhao Ouyang wrote:
> > > According to UEFI v2.10 spec section 8.2.6, if a caller invokes the
&
Hi Heinrich,
On Wed, Apr 3, 2024 at 10:54 PM Heinrich Schuchardt wrote:
>
> On 27.03.24 15:06, Weizhao Ouyang wrote:
> > According to UEFI v2.10 spec section 8.2.6, if a caller invokes the
> > SetVariables() service, it will produce a digest from hash(VariableName,
> >
" to create the authenticated variable, this append
write will fail in the u-boot due to "hash check failed".
This patch resumes writing the EFI_VARIABLE_APPEND_WRITE attr to ensure
that the hash check is correct. And also update the "test_efi_secboot"
test case to compliance
8ffe365f8dc7 ("arm64: dts: rockchip: Add devicetree support for
> TB-RK3588X board")
> 7140387ff49d ("dt-bindings: arm: rockchip: Add Toybrick TB-RK3588X")
>
> Signed-off-by: Elon Zhang
Reviewed-by: Weizhao Ouyang
BR,
Weizhao
> ---
> Changes since v
Gentle ping. Not merged yet.
BR,
Weizhao
On Thu, Jan 4, 2024 at 7:46 PM Weizhao Ouyang wrote:
>
> Handle the return value of spi_flash_probe_bus_cs() to avoid sf probe
> crashes.
>
> Signed-off-by: Weizhao Ouyang
> ---
> cmd/sf.c | 5 +++--
> 1 file changed, 3 in
The 'rng list' command probes all RNG devices and list those devices
that are successfully probed. Also update the help info.
Reviewed-by: Heinrich Schuchardt
Signed-off-by: Weizhao Ouyang
---
v4: update doc/usage/cmd/rng.rst
---
cmd/rng.c | 23 ++-
Fix a SMCCC TRNG null pointer crash due to a failed smccc feature
binding.
Fixes: 53355bb86c25 ("drivers: rng: add smccc trng driver")
Reviewed-by: Heinrich Schuchardt
Signed-off-by: Weizhao Ouyang
---
v3: add Fixes tag
---
drivers/rng/smccc_trng.c | 2 +-
1 file changed, 1 inser
According to PSCI specification DEN0022F, PSCI_FEATURES is used to check
whether the SMCCC is implemented by discovering SMCCC_VERSION.
Signed-off-by: Weizhao Ouyang
---
v3: remove fallback smc call
v2: check SMCCC_ARCH_FEATURES
---
drivers/firmware/psci.c | 5 -
include/linux/arm-smccc.h
This series aim to fix smccc bind issue and add a list command for RNG
devices.
Changelog:
v3 --> v4
- update doc/usage/cmd/rng.rst
v2 --> v3
- remove fallback smc call
- add Fixes tag
v1 --> v2
- check SMCCC_ARCH_FEATURES
- update commit message and rng help info
Weizhao
Hi Tom,
On Tue, Feb 6, 2024 at 2:14 AM Tom Rini wrote:
>
> On Wed, Jan 31, 2024 at 02:14:26PM +, Weizhao Ouyang wrote:
>
> > The 'rng list' command probes all RNG devices and list those devices
> > that are successfully probed. Also update the help info
ore reliably than slower modes on
> RK35xx boards. Enable MMC_HS200_SUPPORT Kconfig option by default to
> prefer use of HS200 mode on RK356x and RK3588.
>
> Signed-off-by: Jonas Karlman
Reviewed-by: Weizhao Ouyang
BR,
Weizhao
> ---
> Changes in v2:
> - Imply MMC_HS200_SUPPORT and SPL_MM
files.
>
> Signed-off-by: Jonas Karlman
Reviewed-by: Weizhao Ouyang
BR,
Weizhao
> ---
> Changes in v2:
> - Update commit message
>
> Link to v1: https://patchwork.ozlabs.org/patch/1891695/
> ---
> arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi | 1 -
> arch/arm/dts/rk356
On Tue, Jan 23, 2024 at 10:50 PM Quentin Schulz wrote:
>
> From: Heiko Stuebner
>
> The compatible for the pmugrf in the mainline kernel is dfferent from the
> one currently used in u-boot. Adapt the -u-boot.dtsi and syscon driver
> to use the correct compatible.
Reviewed-
Hi Igor,
On Thu, Feb 1, 2024 at 10:36 PM Igor Opaniuk wrote:
>
> Hello Weizhao,
>
> On Wed, Jan 31, 2024 at 3:15 PM Weizhao Ouyang wrote:
> >
> > According to PSCI specification DEN0022F, PSCI_FEATURES is used to check
> > whether the SMCCC is implemente
Hi Abdellatif,
On Thu, Feb 1, 2024 at 7:40 PM Abdellatif El Khlifi
wrote:
>
> Hi Weizhao,
>
> > - if (request_psci_features(ARM_SMCCC_ARCH_FEATURES) ==
> > + if (request_psci_features(ARM_SMCCC_VERSION) ==
> > PSCI_RET_NOT_SUPPORTED)
> > return 0;
> >
> > + if
On Sat, Jan 27, 2024 at 7:27 AM Jonas Karlman wrote:
>
> Writing to eMMC using HS200 mode work more reliably then other modes on
> RK3588 boards.
>
> Enable MMC_HS200_SUPPORT Kconfig option to prefer use of HS200 mode.
>
> Signed-off-by: Jonas Karlman
Reviewed-by: Weizhao
On Sat, Jan 27, 2024 at 10:32 AM Jonas Karlman wrote:
>
> Writing to eMMC using HS200 mode work more reliably then other modes on
> RK356x boards.
>
> Enable MMC_HS200_SUPPORT Kconfig option to prefer use of HS200 mode.
>
> Signed-off-by: Jonas Karlman
Reviewed-by: Weizhao
The 'rng list' command probes all RNG devices and list those devices
that are successfully probed. Also update the help info.
Reviewed-by: Heinrich Schuchardt
Signed-off-by: Weizhao Ouyang
---
cmd/rng.c | 23 ++-
1 file changed, 18 insertions(+), 5 deletions(-)
Fix a SMCCC TRNG null pointer crash due to a failed smccc feature
binding.
Fixes: 53355bb86c25 ("drivers: rng: add smccc trng driver")
Reviewed-by: Heinrich Schuchardt
Signed-off-by: Weizhao Ouyang
---
v3: add Fixes tag
---
drivers/rng/smccc_trng.c | 2 +-
1 file changed, 1 inser
According to PSCI specification DEN0022F, PSCI_FEATURES is used to check
whether the SMCCC is implemented by discovering SMCCC_VERSION.
Signed-off-by: Weizhao Ouyang
---
v3: remove fallback smc call
v2: check SMCCC_ARCH_FEATURES
---
drivers/firmware/psci.c | 5 -
include/linux/arm-smccc.h
This series aim to fix smccc bind issue and add a list command for RNG
devices.
Changelog:
v2 --> v3
- remove fallback smc call
- add Fixes tag
v1 --> v2
- check SMCCC_ARCH_FEATURES
- update commit message and rng help info
Weizhao Ouyang (3):
firmware: psci: Fix bind_smccc_feature
On Wed, Jan 31, 2024 at 8:27 PM Heinrich Schuchardt wrote:
>
> On 31.01.24 12:12, Weizhao Ouyang wrote:
> > According to PSCI specification DEN0022F, PSCI_FEATURES is used to check
> > whether the SMCCC is implemented by discovering SMCCC_VERSION.
> >
> >
The 'rng list' command probes all RNG devices and list those devices
that are successfully probed. Also update the help info.
Signed-off-by: Weizhao Ouyang
---
v2: update commit message and rng help info
---
cmd/rng.c | 23 ++-
1 file changed, 18 insertions(+), 5
Fix a SMCCC TRNG null pointer crash due to a failed smccc feature
binding.
Reviewed-by: Heinrich Schuchardt
Signed-off-by: Weizhao Ouyang
---
drivers/rng/smccc_trng.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rng/smccc_trng.c b/drivers/rng/smccc_trng.c
index
According to PSCI specification DEN0022F, PSCI_FEATURES is used to check
whether the SMCCC is implemented by discovering SMCCC_VERSION.
Signed-off-by: Weizhao Ouyang
---
v2: check SMCCC_ARCH_FEATURES
---
drivers/firmware/psci.c | 9 -
include/linux/arm-smccc.h | 6 ++
2 files
This series aim to fix smccc bind issue and add a list command for RNG
devices.
Changelog:
v1 --> v2
- check SMCCC_ARCH_FEATURES
- update commit message and rng help info
Weizhao Ouyang (3):
firmware: psci: Fix bind_smccc_features psci check
driver: rng: Fix SMCCC TRNG crash
cmd: rng:
Hi Abdellatif,
On Fri, Jan 26, 2024 at 7:20 PM Abdellatif El Khlifi
wrote:
>
> Hi Weizhao,
>
> On Thu, Jan 25, 2024 at 02:05:00PM +0000, Weizhao Ouyang wrote:
> > According to PSCI specification DEN0022F, PSCI_FEATURES is used to check
> > whether the SMCCC is im
On Thu, Jan 25, 2024 at 10:49 PM Heinrich Schuchardt wrote:
>
> On 25.01.24 15:05, Weizhao Ouyang wrote:
> > Add rng list command to list all probed RNG device.
>
> Thank you for your contribution.
>
> Would the following be more accurate?
>
> The 'rng list&
Add rng list command to list all probed RNG device.
Signed-off-by: Weizhao Ouyang
---
cmd/rng.c | 15 +++
1 file changed, 15 insertions(+)
diff --git a/cmd/rng.c b/cmd/rng.c
index 52f722c7af..4818133f94 100644
--- a/cmd/rng.c
+++ b/cmd/rng.c
@@ -18,6 +18,19 @@ static int do_rng
Fix a SMCCC TRNG null pointer crash due to a failed smccc feature
binding.
Signed-off-by: Weizhao Ouyang
---
drivers/rng/smccc_trng.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rng/smccc_trng.c b/drivers/rng/smccc_trng.c
index 3a4bb33941..3087cb991a 100644
--- a
According to PSCI specification DEN0022F, PSCI_FEATURES is used to check
whether the SMCCC is implemented by discovering SMCCC_VERSION.
Signed-off-by: Weizhao Ouyang
---
drivers/firmware/psci.c | 2 +-
include/linux/arm-smccc.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff
This series aim to fix smccc bind issue and add a list command for RNG
devices.
Weizhao Ouyang (3):
firmware: psci: Fix bind_smccc_features psci check
driver: rng: Fix SMCCC TRNG crash
cmd: rng: Add rng list command
cmd/rng.c | 15 +++
drivers/firmware/psci.c
On Thu, Jan 4, 2024 at 8:29 PM Michael Nazzareno Trimarchi
wrote:
>
> Hi
>
> On Thu, Jan 4, 2024 at 1:16 PM Weizhao Ouyang wrote:
> >
> > On Thu, Jan 4, 2024 at 8:00 PM Michal Simek wrote:
> > >
> > >
> > >
> > > On 1/4/24 12:
On Thu, Jan 4, 2024 at 8:21 PM Michal Simek wrote:
>
>
>
> On 1/4/24 13:15, Weizhao Ouyang wrote:
> > On Thu, Jan 4, 2024 at 8:00 PM Michal Simek wrote:
> >>
> >>
> >>
> >> On 1/4/24 12:46, Weizhao Ouyang wrote:
> >>> Han
On Thu, Jan 4, 2024 at 8:00 PM Michal Simek wrote:
>
>
>
> On 1/4/24 12:46, Weizhao Ouyang wrote:
> > Handle the return value of spi_flash_probe_bus_cs() to avoid sf probe
> > crashes.
> >
> > Signed-off-by: Weizhao Ouyang
> > ---
> > cmd/sf.c |
Handle the return value of spi_flash_probe_bus_cs() to avoid sf probe
crashes.
Signed-off-by: Weizhao Ouyang
---
cmd/sf.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/cmd/sf.c b/cmd/sf.c
index 730996c02b..e3866899f6 100644
--- a/cmd/sf.c
+++ b/cmd/sf.c
@@ -135,8
On Wed, Nov 15, 2023 at 6:15 PM Heinrich Schuchardt wrote:
>
> On 11/13/23 17:10, Weizhao Ouyang wrote:
> > Try to catch error the earlier way.
> >
> > Signed-off-by: Weizhao Ouyang
> > ---
> > lib/efi_loader/efi_var_file.c | 4 +++-
> > lib/efi_
Try to catch error the earlier way.
Signed-off-by: Weizhao Ouyang
---
lib/efi_loader/efi_var_file.c | 4 +++-
lib/efi_loader/efi_variable.c | 2 --
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/efi_loader/efi_var_file.c b/lib/efi_loader/efi_var_file.c
index 62e071bd83
Try to catch error the earlier way.
Signed-off-by: Weizhao Ouyang
---
Changes in v2:
- Avoid to stop the boot process.
lib/efi_loader/efi_var_file.c | 4 +++-
lib/efi_loader/efi_variable.c | 2 --
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/efi_loader/efi_var_file.c b
On Mon, Nov 13, 2023 at 10:50 PM Heinrich Schuchardt
wrote:
>
> It is unclear to developers why efi_var_from_file() returns EFI_SUCCESS if
> file ubootefi.var is missing or corrupted. Improve the description.
>
> Reported-by: Weizhao Ouyang
> Signed-off-by: Heinrich Schuch
On Fri, Nov 10, 2023 at 9:12 PM Heinrich Schuchardt wrote:
>
>
>
> Am 10. November 2023 11:04:24 MEZ schrieb Ilias Apalodimas
> :
> >Hi Heinrich, Weizhao
> >
> >On Thu, 9 Nov 2023 at 15:57, Heinrich Schuchardt wrote:
> >>
> >> On 11/9/23 04
On Thu, Nov 9, 2023 at 9:57 PM Heinrich Schuchardt wrote:
>
> On 11/9/23 04:55, Weizhao Ouyang wrote:
> > Correct some UEFI variable error handing code paths.
> >
> > Signed-off-by: Weizhao Ouyang
> > ---
> > lib/efi_loader/efi_var_file.c | 1 +
>
Correct some UEFI variable error handing code paths.
Signed-off-by: Weizhao Ouyang
---
lib/efi_loader/efi_var_file.c | 1 +
lib/efi_loader/efi_variable.c | 8
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/lib/efi_loader/efi_var_file.c b/lib/efi_loader/efi_var_file.c
specified when CONFIG_EFI_CAPSULE_AUTHENTICATE is
> enabled")
> +else
> $(call cmd_capsule_esl_gen)
> +endif
>
> capsule_esl_input_file=$(srctree)/lib/efi_loader/capsule_esl.dtsi.in
> capsule_esl_dtsi = .capsule_esl.dtsi
> --
> 2.34.1
>
Reviewed-by: Weizhao Ouyang
Cyclic now just print a warning once instead of disabling the cyclic
function when the cyclic function upon exceeding CPU time usage.
Fixes: ddc8d36a7455 ("cyclic: Don't disable cylic function upon exceeding CPU
time")
Signed-off-by: Weizhao Ouyang
---
doc/develop/cyclic.rst |
57 matches
Mail list logo