Re: [PATCH v1 7/9] plugins: add API to return a name for a IO device

2020-06-02 Thread Clement Deschamps
_strdup("Invalid"); +#endif +} + /* * Queries to the number and potential maximum number of vCPUs there * will be. This helps the plugin dimension per-vcpu arrays. Reviewed-by: Clement Deschamps

[PATCH] target/arm: add PMU feature to cortex-r5 and cortex-r5f

2020-01-14 Thread Clement Deschamps
Signed-off-by: Clement Deschamps --- See cortex-r5 TRM - 1.3 Features PMU is not optional on cortex-r5 and cortex-r5f --- target/arm/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index d62fd5fdc6..64cd0a7d73 100644 --- a/target/arm/cpu.c +++ b

[PATCH] hw/arm/boot: Set NSACR.{CP11, CP10} in dummy SMC setup routine

2019-11-04 Thread Clement Deschamps
-lite.img 2018-11-13-raspbian-stretch-lite.img 2019-07-10-raspbian-buster-lite.img See also commit ece628fcf6 that fixes the issue when *not* using the dummy SMC setup routine. Fixes: fc1120a7f5 Signed-off-by: Clement Deschamps --- hw/arm/boot.c | 3 +++ 1 file changed, 3 insertions(+) diff

Re: [PATCH] translate-all: Remove tb_alloc

2019-10-24 Thread Clement Deschamps
On 10/23/19 6:46 PM, Richard Henderson wrote: Since 2ac01d6dafab, this function does only two things: assert a lock is held, and call tcg_tb_alloc. It is used exactly once, and its user has already done the assert. Signed-off-by: Richard Henderson --- Reviewed-by: Clement Deschamps I

[PATCH] translate-all: fix uninitialized tb->orig_tb

2019-10-22 Thread Clement Deschamps
This fixes a segmentation fault in icount mode when executing from an IO region. TB is marked as CF_NOCACHE but tb->orig_tb is not initialized (equals previous value in code_gen_buffer). The issue happens in cpu_io_recompile() when it tries to invalidate orig_tb. Signed-off-by: Clem

[Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2019-08-19 Thread Clement Deschamps
It looks like a similar USB controller is part of a TI SoC: http://www.ti.com/lit/ug/spruhj7a/spruhj7a.pdf Clement -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1772165 Title: arm raspi2/raspi3

Re: [Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2019-08-19 Thread Clement Deschamps
It looks like the same USB controller is part of a TI SoC: http://www.ti.com/lit/ug/spruhj7a/spruhj7a.pdf Clement On 8/19/19 11:16 AM, Peter Maydell wrote: Thanks for digging those up. Unfortunately just the driver sources aren't really enough information for a good device model, and the othe

[Qemu-devel] [PATCH] icount: fix deadlock when all cpus are sleeping

2018-10-21 Thread Clement Deschamps
When all cpus are sleeping (e.g in WFI), to avoid a deadlock in the main_loop, wake it up in order to start the warp timer. Signed-off-by: Clement Deschamps --- cpus.c | 8 1 file changed, 8 insertions(+) diff --git a/cpus.c b/cpus.c index bb2a511483..798d43623a 100644 --- a/cpus.c

Re: [Qemu-devel] [PATCH] Revert "icount: remove obsolete warp call"

2018-10-17 Thread Clement Deschamps
Hi all, I'm traveling right now, but as soon as I get home, I'll send my patch with the signed-off. Best, Clément On 10/17/18 7:43 AM, Paolo Bonzini wrote: > On 17/10/2018 15:20, Pavel Dovgalyuk wrote: >> I found the source of the bug. As QEMU becomes more multi-threaded >> and non-synchronize

[Qemu-devel] [PATCH v3 1/4] bcm2835_sdhost: add bcm2835 sdhost controller

2017-02-24 Thread Clement Deschamps
This adds the BCM2835 SDHost controller from Arasan. Signed-off-by: Clement Deschamps --- hw/sd/Makefile.objs| 1 + hw/sd/bcm2835_sdhost.c | 429 + include/hw/sd/bcm2835_sdhost.h | 48 + 3 files changed, 478 insertions

[Qemu-devel] [PATCH v3 0/4] bcm2835: add sdhost and gpio controllers

2017-02-24 Thread Clement Deschamps
arent_card() function to hw/sd/core.c - added 'readonly' state propagation in sdbus_reparent_card() - the gpio controller is now exposing an sdbus and has 2 references to sdbus of sdhci and sdhost controllers Clement Deschamps (4): bcm2835_sdhost: add bcm2835 sdhost controller hw/sd:

[Qemu-devel] [PATCH v3 3/4] bcm2835_gpio: add bcm2835 gpio controller

2017-02-24 Thread Clement Deschamps
This adds the BCM2835 GPIO controller. It currently implements: - The 54 GPIOs as outputs (qemu_irq) - The SD controller selection via alternate function of GPIOs 48-53 Signed-off-by: Clement Deschamps --- hw/gpio/Makefile.objs | 1 + hw/gpio/bcm2835_gpio.c | 353

[Qemu-devel] [PATCH v3 4/4] bcm2835: add sdhost and gpio controllers

2017-02-24 Thread Clement Deschamps
bus to another when the alternate function of GPIOs 48-53 is modified. Signed-off-by: Clement Deschamps --- hw/arm/bcm2835_peripherals.c | 43 ++-- include/hw/arm/bcm2835_peripherals.h | 4 2 files changed, 45 insertions(+), 2 deletions(-) diff --git

[Qemu-devel] [PATCH v3 2/4] hw/sd: add card-reparenting function

2017-02-24 Thread Clement Deschamps
Provide a new function sdbus_reparent_card() in sd core for reparenting a card from a SDBus to another one. This function is required by the raspi platform, where the two SD controllers can be dynamically switched. Signed-off-by: Clement Deschamps --- hw/sd/core.c | 30

Re: [Qemu-devel] [PATCH v2 1/3] bcm2835_sdhost: add bcm2835 sdhost controller

2017-02-24 Thread Clement Deschamps
On 02/23/2017 07:48 PM, Peter Maydell wrote: > GPL-2-only is OK if that's what you strongly want, but if all the > authors are OK with it we prefer GPL-2-or-later (see the note in > the LICENSE file). Similarly with the header file. No problem, I'll change it. signature.asc Description: OpenPG

Re: [Qemu-devel] [PATCH v2 0/3] add sdhost and gpio controllers to the bcm2835 platform

2017-02-24 Thread Clement Deschamps
On 02/23/2017 07:44 PM, Peter Maydell wrote: > Wow, that was fast. Are these patches entirely your own work or did > you start with something from Andrew's tree or elsewhere? (I'm wondering > if we need extra signed-off-by lines in the commit messages.) It's my own work, we don't need more signed

Re: [Qemu-devel] [PATCH v2 2/3] bcm2835_gpio: add bcm2835 gpio controller

2017-02-24 Thread Clement Deschamps
On 02/23/2017 08:08 PM, Peter Maydell wrote: > Do we also need to call the SD card object's reset method? On the real Raspberry Pi, I think that the card is not reset when switching SD controllers. > Apart from my comments above about the card-reparenting function > this looks OK to me (and I'd

Re: [Qemu-devel] [PATCH v2 3/3] bcm2835: add sdhost and gpio controllers

2017-02-22 Thread Clement Deschamps
Hello, On 02/22/2017 07:27 PM, Andrew Baumann wrote: > Hi, > >> From: Clement Deschamps [mailto:clement.descha...@antfield.fr] >> Sent: Wednesday, 22 February 2017 3:24 >> Subject: [PATCH v2 3/3] bcm2835: add sdhost and gpio controllers >> >> This adds the bc

[Qemu-devel] [PATCH v2 2/3] bcm2835_gpio: add bcm2835 gpio controller

2017-02-22 Thread Clement Deschamps
This adds the BCM2835 GPIO controller. It implements: - The 54 GPIOs as outputs (qemu_irq) - The SD controller selection via alternate function of GPIOs 48-53 Signed-off-by: Clement Deschamps --- hw/gpio/Makefile.objs | 1 + hw/gpio/bcm2835_gpio.c | 361

[Qemu-devel] [PATCH v2 3/3] bcm2835: add sdhost and gpio controllers

2017-02-22 Thread Clement Deschamps
This adds the bcm2835_sdhost and bcm2835_gpio to the BCM2835 platform. The bcm2835_gpio has a link to both the sdhci and sdhost controllers for supporting the alternate function of GPIOs 48-53 (SD controller selection) Signed-off-by: Clement Deschamps --- hw/arm/bcm2835_peripherals.c

[Qemu-devel] [PATCH v2 1/3] bcm2835_sdhost: add bcm2835 sdhost controller

2017-02-22 Thread Clement Deschamps
This adds the BCM2835 SDHost controller from Arasan. Signed-off-by: Clement Deschamps --- hw/sd/Makefile.objs| 1 + hw/sd/bcm2835_sdhost.c | 429 + include/hw/sd/bcm2835_sdhost.h | 48 + 3 files changed, 478 insertions

[Qemu-devel] [PATCH v2 0/3] add sdhost and gpio controllers to the bcm2835 platform

2017-02-22 Thread Clement Deschamps
boot the kernel, you will first need to apply the BCM2835 hardware RNG patch submitted recently. v2: - implements the GPIO controller for supporting SD controller selection via alternate functions of GPIOs 48-53 Clement Deschamps (3): bcm2835_sdhost: add bcm2835 sdhost controller

[Qemu-devel] [PATCH 1/2] bcm2835_sdhost: add bcm2835 sdhost controller

2017-02-20 Thread Clement Deschamps
Signed-off-by: Clement Deschamps --- hw/sd/bcm2835_sdhost.c | 429 + include/hw/sd/bcm2835_sdhost.h | 48 + 2 files changed, 477 insertions(+) create mode 100644 hw/sd/bcm2835_sdhost.c create mode 100644 include/hw/sd/bcm2835_sdhost.h diff

[Qemu-devel] [PATCH 0/2] add bcm2835 sdhost controller to bcm2835 platform

2017-02-20 Thread Clement Deschamps
ion, their work is available on Andrew's github. Best regards, Clement Deschamps Clement Deschamps (2): bcm2835_sdhost: add bcm2835 sdhost controller bcm2835: add bcm2835_sdhost to bcm2835 platform hw/arm/bcm2835_peripherals.c | 24 ++ hw/arm/bcm2836.c |

[Qemu-devel] [PATCH 2/2] bcm2835: add bcm2835_sdhost to bcm2835 platform

2017-02-20 Thread Clement Deschamps
Signed-off-by: Clement Deschamps --- hw/arm/bcm2835_peripherals.c | 24 hw/arm/bcm2836.c | 7 +++ hw/arm/raspi.c | 13 - hw/sd/Makefile.objs | 1 + include/hw/arm/bcm2835_peripherals.h