[PATCH] add optee dts entry for secure machine

2020-04-20 Thread Maxim Uvarov
Add optee compatible string for dtb to force linux to boot optee module. Signed-off-by: Maxim Uvarov --- hw/arm/virt.c | 17 + 1 file changed, 17 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 656b008..7d712f3 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c

[PATCH] add optee dts entry for secure machine

2020-04-20 Thread Maxim Uvarov
Add optee compatible string for dtb to force linux to boot optee module. Signed-off-by: Maxim Uvarov --- hw/arm/virt.c | 17 + 1 file changed, 17 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 656b008..7d712f3 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c

[PATCHv2] add optee dts entry for secure machine

2020-04-22 Thread Maxim Uvarov
Add optee compatible string for dtb to force linux to boot optee module. Signed-off-by: Maxim Uvarov --- v2: added method. hw/arm/virt.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 656b008..c937a82 100644 --- a/hw/arm/virt.c +++ b

Re: [PATCHv2] add optee dts entry for secure machine

2020-04-29 Thread Maxim Uvarov
-rc3#n705 .compatible = "linaro,optee-tz" Thank you, Maxim. On Wed, 22 Apr 2020 at 16:07, Maxim Uvarov wrote: > > Add optee compatible string for dtb to force linux > to boot optee module. > > Signed-off-by: Maxim Uvarov > --- > v2: added method. > hw/arm/virt.c

Re: [PATCH v5 2/2] hw/arm/sbsa-ref: add SBSA watchdog device

2020-10-15 Thread Maxim Uvarov
On Thu, 15 Oct 2020 at 17:12, Graeme Gregory wrote: > > On Wed, Oct 14, 2020 at 01:04:43PM -0400, Shashi Mallela wrote: > > This was added as a placeholder for the virt requirement suggested by Maxim > > earlier.Agreed that this fdt otherwise has no significance for sbsa-ref > > platform nor is be

[RFC PATCH] hw/arm/virt: use sbsa-ec for reboot and poweroff in secure mode

2020-10-28 Thread Maxim Uvarov
If we're emulating EL3 then the EL3 guest firmware is responsible for providing the PSCI ABI, including reboot, core power down, etc. sbsa-ref machine has an embedded controller to do reboot, poweroff. Machine virt,secure=on can reuse this code to do reboot inside ATF. Signed-off-by: Maxim U

[PATCH] hw: wdt: implement sbsa watchdog

2020-10-01 Thread Maxim Uvarov
rver Base System Architecture (SBSA) Signed-off-by: Maxim Uvarov --- hw/arm/virt.c | 28 hw/watchdog/Kconfig| 5 + hw/watchdog/meson.build| 1 + hw/watchdog/sbsa_wdt.c | 293 + include/hw/arm/virt.h

Re: [PATCH] hw: wdt: implement sbsa watchdog

2020-10-02 Thread Maxim Uvarov
On Thu, 1 Oct 2020 at 23:36, Peter Maydell wrote: > > On Thu, 1 Oct 2020 at 20:37, Maxim Uvarov wrote: > > > > Initial virtual driver matching linux kernel sbsa_gwdt > > driver. Driver implements basic functionality and makes > > watchdog works on virtual machine a

Re: [PATCH v3 2/2] hw/arm/sbsa-ref: add SBSA watchdog device

2020-10-08 Thread Maxim Uvarov
Hi. one small note below in this email. On Thu, 8 Oct 2020 at 05:43, Shashi Mallela wrote: > > Included the newly implemented SBSA generic watchdog device model into > SBSA platform > > Signed-off-by: Shashi Mallela > --- > hw/arm/sbsa-ref.c | 44 >

Re: [PATCH v3 1/2] hw/watchdog: Implement SBSA watchdog device

2020-10-08 Thread Maxim Uvarov
On Thu, 8 Oct 2020 at 05:43, Shashi Mallela wrote: > > Generic watchdog device model has been implemented as per ARM BSAv0.9 > > Signed-off-by: Shashi Mallela > --- > hw/arm/Kconfig | 1 + > hw/watchdog/Kconfig | 4 + > hw/watchdog/meson.build

Re: [PATCH v3 1/2] hw/watchdog: Implement SBSA watchdog device

2020-10-08 Thread Maxim Uvarov
On Thu, 8 Oct 2020 at 13:27, Peter Maydell wrote: > > On Thu, 8 Oct 2020 at 11:21, Maxim Uvarov wrote: > > > > On Thu, 8 Oct 2020 at 05:43, Shashi Mallela > > wrote: > > > +static void sbsa_gwdt_update_timer(SBSA_GWDTState *s) > > > +{ > > >

Re: [PATCH v4 1/2] hw/watchdog: Implement SBSA watchdog device

2020-10-09 Thread Maxim Uvarov
STATE_END_OF_LIST() > +} > +}; > + > +static uint64_t sbsa_gwdt_rread(void *opaque, hwaddr addr, unsigned int size) > +{ > +uint32_t ret; > + > +if (addr == SBSA_GWDT_WRR) { > +/* watch refresh read has no effect and returns 0 */ > +ret = 0

Re: [PATCH v3 1/2] hw/watchdog: Implement SBSA watchdog device

2020-10-09 Thread Maxim Uvarov
On Thu, 8 Oct 2020 at 17:09, Peter Maydell wrote: > > On Thu, 8 Oct 2020 at 11:43, Maxim Uvarov wrote: > > > > On Thu, 8 Oct 2020 at 13:27, Peter Maydell wrote: > > > > > > On Thu, 8 Oct 2020 at 11:21, Maxim Uvarov wrote: > > > > Interesting

Re: Re%3A [PATCH v4 1%2F2] hw%2Fwatchdog%3A Implement SBSA watchdog device&In-Reply-To=

2020-10-12 Thread Maxim Uvarov
> +static uint64_t sbsa_gwdt_rread(void *opaque, hwaddr addr, unsigned int size) > +{ > +uint32_t ret; > + > +if (addr == SBSA_GWDT_WRR) { > +/* watch refresh read has no effect and returns 0 */ > +ret = 0; > +} else { > +qemu_log_mask(LOG_GUEST_ERROR, "bad addre

Re: [RFC PATCH] hw/arm/virt: use sbsa-ec for reboot and poweroff in secure mode

2020-11-04 Thread Maxim Uvarov
Maydell wrote: > > > On Wed, 28 Oct 2020 at 08:59, Maxim Uvarov > > > wrote: > > > > > > > > If we're emulating EL3 then the EL3 guest firmware is responsible for > > > > providing the PSCI ABI, including reboot, core power down, et