Re: [PATCH] target/avr: Ignore unimplemented WDR opcode

2021-05-05 Thread Fred Konrad
atchdog peripheral is not implemented, simply log the opcode as unimplemented and keep going. Reported-by: Fred Konrad Signed-off-by: Philippe Mathieu-Daudé --- target/avr/helper.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/target/avr/helper.c b/target/avr/helper.c index 35e101

Re: [PATCH] hw/avr/atmega.c: use the avr51 cpu for atmega1280

2021-05-05 Thread Fred Konrad
Le 4/30/21 à 12:27 PM, Joaquin de Andres a écrit : On 4/28/21 9:17 PM, Philippe Mathieu-Daudé wrote: Cc'ing Joaquín. On 4/28/21 9:15 PM, Frederic Konrad wrote: According to the as documentation: (https://sourceware.org/binutils/docs-2.36/as/AVR-Options.html) "Instruction set avr51 is

Re: [RFC 1/1] Implement AVR watchdog timer

2021-05-03 Thread Fred Konrad
Le 5/2/21 à 10:10 PM, Michael Rolnik a écrit : Signed-off-by: Michael Rolnik --- hw/avr/Kconfig| 1 + hw/avr/atmega.c | 15 ++- hw/avr/atmega.h | 2 + hw/watchdog/Kconfig | 3 + hw/watchdog/avr_wdt.c | 190

Re: [RFC 0/1] Implement AVR WDT (watchdog timer)

2021-05-03 Thread Fred Konrad
Hi Michael, Le 5/2/21 à 10:10 PM, Michael Rolnik a écrit : 1. Initial implementation of AVR WDT Nice! There are two issues with this implementation so I need your help here a. when I configure the WDT to fire an interrupt every 15ms it actually happens every 6 instructions

Re: [RFC] AVR watchdog

2021-04-28 Thread Fred Konrad
Le 4/28/21 à 8:17 PM, Michael Rolnik a écrit : Hi Fred. How can I reproduce it? Thank you. Michael Rolnik Hi Michael, First sorry for the patchew noise, I didn't meant to sent a patch just an inlined diff. For the reproducer, that's pretty straight-forward with v6.0.0-rc5: $ cat > fo

Re: [PATCH v2 3/4] hw/sparc64: Fix code style for checkpatch.pl

2021-04-28 Thread Fred Konrad
Le 4/28/21 à 4:16 PM, Philippe Mathieu-Daudé a écrit : We are going to move this code, fix its style first. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: KONRAD Frederic --- hw/sparc64/sparc64.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v2 2/4] hw/sparc64: Remove unused "hw/char/serial.h" header

2021-04-28 Thread Fred Konrad
Le 4/28/21 à 4:16 PM, Philippe Mathieu-Daudé a écrit : Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: KONRAD Frederic --- hw/sparc64/sparc64.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/sparc64/sparc64.c b/hw/sparc64/sparc64.c index e3f9219a101..cc0b9bd30d3 100644 ---

[RFC] AVR watchdog

2021-04-28 Thread Fred Konrad
placeholder */ -cs->exception_index = EXCP_DEBUG; +qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_RESET); cpu_loop_exit(cs); } In the case the guest wants to reset the board through the watchdog, would that make sense to swap to that? Best Regards, Fred

Re: [RFC PATCH 2/2] hw/sparc: Allow building without the leon3 machine

2021-04-28 Thread Fred Konrad
Hi Philippe, Le 4/27/21 à 9:26 PM, Philippe Mathieu-Daudé a écrit : When building without the leon3 machine, we get this link failure: /usr/bin/ld: target_sparc_int32_helper.c.o: in function `leon3_irq_manager': target/sparc/int32_helper.c:172: undefined reference to `leon3_irq_ack'

Re: [PATCH 0/2] hw/sparc: Kconfig fixes to build with/without the leon3 machine

2021-04-28 Thread Fred Konrad
Le 4/27/21 à 9:26 PM, Philippe Mathieu-Daudé a écrit : This series fixes link failure when building either the leon3 machine or the sun4m ones. The problem is we have hardware specific code in the architectural translation code. Move this code to hw/sparc/. The link failures can be

Re: [PATCH 0/2] sparc/leon3: Make grlib-irqmp handle its own inbound IRQ lines

2021-01-05 Thread Fred Konrad
in passing. Incidentally I suspect the irqmp_ack logic could also be done more neatly, but I didn't feel like getting into that at this point. Indeed, and I've some cleanup patches for that, but never had time to submit them. Hopefully sometime in 2021 :). Cheers, Fred Tested by booting

Re: [PATCH 2/2] include/hw/sparc/grlib.h: Remove unused set_pil_in_fn typedef

2021-01-05 Thread Fred Konrad
Le 12/12/20 à 3:41 PM, Peter Maydell a écrit : The grlib.h header defines a set_pil_in_fn typedef which is never used; remove it. Signed-off-by: Peter Maydell --- include/hw/sparc/grlib.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/hw/sparc/grlib.h

Re: [PATCH 1/2] hw/sparc: Make grlib-irqmp device handle its own inbound IRQ lines

2021-01-05 Thread Fred Konrad
Hi Peter, Le 12/12/20 à 3:41 PM, Peter Maydell a écrit : Currently the GRLIB_IRQMP device is used in one place (the leon3 board), but instead of the device providing inbound gpio lines for the board to wire up, the board code itself calls qemu_allocate_irqs() with the handler function being a

Re: [PATCH v1 1/2] semihosting: defer connect_chardevs a little more to use serialx

2020-07-15 Thread Fred Konrad
Le 6/26/20 à 12:06 PM, Fred Konrad a écrit : Le 6/16/20 à 4:52 PM, Alex Bennée a écrit : kon...@adacore.com writes: From: KONRAD Frederic With that we can just use chardev=serial0. I don't quite follow what this means. ./aarch64-softmmu/qemu-system-aarch64 -cpu max -monitor none

Re: [PATCH] i2c: Match parameters of i2c_start_transfer and i2c_send_recv

2020-06-26 Thread Fred Konrad
won't get any framebuffer with an empty EDID. But this was long ago and I don't have any image anymore to test that today. CC'ed Edgar, he can probably help with that. Regards, Fred I don't know the policy on changing an API like this with silent semantic changes. You've gotten all the internal

Re: [PATCH v1 1/2] semihosting: defer connect_chardevs a little more to use serialx

2020-06-26 Thread Fred Konrad
Le 6/16/20 à 4:52 PM, Alex Bennée a écrit : kon...@adacore.com writes: From: KONRAD Frederic With that we can just use chardev=serial0. I don't quite follow what this means. ./aarch64-softmmu/qemu-system-aarch64 -cpu max -monitor none -chardev=serial0 -M virt -display none

Re: [PATCH 1/2] softfloat: m68k: infinity is a valid encoding

2020-06-15 Thread Fred Konrad
m68k TCG emulation to generate directly the FP_UNIMP exception. Is this already handled in the TCG code? Thanks, Fred So I think, in the end, we don't have invalid number at softfloat level and floatx80_invalid_encoding() should always return "false" for TARGET_M68K. Thanks, Laurent

Re: [PATCH 1/3] hw/sparc/leon3: Map the UART device unconditionally

2020-06-08 Thread Fred Konrad
Le 6/8/20 à 7:21 PM, Philippe Mathieu-Daudé a écrit : The UART is present on the chipset regardless there is a character device connected to it. Map it unconditionally. Signed-off-by: Philippe Mathieu-Daudé --- hw/sparc/leon3.c | 18 -- 1 file changed, 8 insertions(+), 10

Re: [PATCH] semihosting: remove the pthread include which seems unused

2020-06-01 Thread Fred Konrad
  #include "chardev/char.h" -#include   #include "chardev/char-fe.h"   #include "sysemu/sysemu.h"   #include "qemu/main-loop.h" Reviewed-by: Philippe Mathieu-Daudé Thanks for the review, Philippe. Can this go through qemu-trivial? Regards, Fred

Re: [RFC] some semihosting interrogation

2020-05-29 Thread Fred Konrad
Le 5/28/20 à 2:00 PM, Philippe Mathieu-Daudé a écrit : Hi Fred, On 5/28/20 11:44 AM, Fred Konrad wrote: Hi all, Just wonderring if there is any reason not to be able to defer qemu_semihosting_connect_chardevs a little more to be able to specify chardev=serial0? Like: diff --git a/softmmu

[RFC] some semihosting interrogation

2020-05-28 Thread Fred Konrad
c!=0); return s; } I can roll out two patches if needed.. Cheers, Fred

Re: [PATCH 0/7] hw/sparc/leon3: Few fixes and disable HelenOS test

2020-05-25 Thread Fred Konrad
Sorry Philippe I missed that. Would be happy to do a PR if needed but: * I never did that. * Looking at https://wiki.qemu.org/Contribute/SubmitAPullRequest, I don't have the signed GPG key either. Cheers, Fred Le 5/23/20 à 7:26 PM, Philippe Mathieu-Daudé a écrit : ping? On 5/11/20 9

Re: [PATCH] .mailmap: Update Fred Konrad email address

2020-05-18 Thread Fred Konrad
I wasn't aware of this mailmap stuff. Le 5/18/20 à 12:39 PM, Philippe Mathieu-Daudé a écrit : Update Fred Konrad email address to avoid emails bouncing. Signed-off-by: Philippe Mathieu-Daudé --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index

Re: [PATCH 02/24] display/xlnx_dp: Fix to realize "i2c-ddc" and "aux-to-i2c-bridge"

2020-05-18 Thread Fred Konrad
Le 5/18/20 à 7:03 AM, Markus Armbruster a écrit : xlnx_dp_init() creates these two devices, but they're never realized. Affects machine xlnx-zcu102. I wonder how this ever worked. If the "device becomes real only on realize" thing actually works, then we've always been missing these two

Re: [PATCH 21/24] sparc/leon3: Fix to put grlib,* devices on sysbus

2020-05-18 Thread Fred Konrad
Le 5/18/20 à 7:04 AM, Markus Armbruster a écrit : leon3_generic_hw_init() creates a "grlib,ahbpnp" and a "grlib,apbpnp" sysbus device in a way that leaves them unplugged. Create them the common way that puts them into the main system bus. Affects machine leon3_generic. Visible in "info

[Bug 1805256] Re: qemu-img hangs on rcu_call_ready_event logic in Aarch64 when converting images

2020-02-13 Thread Fred Kimmy
=》Could HiSilicon respond to Dann & Rafael's comments #36 and #38? =》Is there an upstream acceptable patch that addresses this issue? No upstream patchset, I Only provide a private solution and do not know this root cause. -- You received this bug notification because you are a member of qemu-

[Bug 1805256] Re: qemu-img hangs on rcu_call_ready_event logic in Aarch64 when converting images

2019-12-16 Thread Fred Kimmy
include/block/aio.h | 3 +++ qemu-img.c | 4 util/async.c| 5 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/include/block/aio.h b/include/block/aio.h index e9bc04c..9153d87 100644 --- a/include/block/aio.h +++ b/include/block/aio.h @@ -89,6 +89,9 @@

Re: [Qemu-devel] [Qemu-block] Request for clarification on qemu-img convert behavior zeroing target host_device

2018-12-14 Thread De Backer, Fred (Nokia - BE/Antwerp)
y intuitive either. Going that path would certainly break the way Openstack Ironic project uses qemu-img via the ironic-python-agent to image baremetal servers. And I can imagine there are other cases out there using qemu-img to write out disk images to blockdevices. Fred

Re: [Qemu-devel] [Qemu-block] Request for clarification on qemu-img convert behavior zeroing target host_device

2018-12-14 Thread De Backer, Fred (Nokia - BE/Antwerp)
traces attached with mentioned flags. Both truncated due to file size at what I believe to be the same position in the "write-phase". FC29 has the "zeroing-phase" in front. Fred fc27_qemu-img.strace.snip.gz Description: fc27_qemu-img.strace.snip.gz fc29_qemu-img.strace.snip.gz Description: fc29_qemu-img.strace.snip.gz

[Qemu-devel] Request for clarification on qemu-img convert behavior zeroing target host_device

2018-12-13 Thread De Backer, Fred (Nokia - BE/Antwerp)
I write a bug against the ironic-python-agent to start using this parameter? * If the behavior is expected: is there some pointer to documentation/changelogs I can read about this? Thanks, Regards, Fred De Backer SME Video Integration Engineer, IP/Optical Networks, Nokia fred.de_bac...@nokia.com

[Qemu-devel] [PATCH] qemu-doc: Add UUID support in initiator name

2017-08-23 Thread Fred Rolland
Update doc with the usage of UUID for initiator name. Related-To: https://bugzilla.redhat.com/1006468 Signed-off-by: Fred Rolland <froll...@redhat.com> --- qemu-doc.texi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qemu-doc.texi b/qemu-doc.texi index 9811476..4

[Qemu-devel] [PATCH V3 7/7] xilinx_spips: allow mmio execution

2017-04-28 Thread fred . konrad
From: KONRAD Frederic This allows to execute from the lqspi area. When the request_ptr is called the device loads 1024bytes from the SPI device. Then this code can be executed by the guest. Reviewed-by: Edgar E. Iglesias Signed-off-by:

[Qemu-devel] [PATCH V3 6/7] exec: allow to get a pointer for some mmio memory region

2017-04-28 Thread fred . konrad
From: KONRAD Frederic This introduces a special callback which allows to run code from some MMIO devices. SysBusDevice with a MemoryRegion which implements the request_ptr callback will be notified when the guest try to execute code from their offset. Then it will be

[Qemu-devel] [PATCH V3 3/7] cputlb: fix the way get_page_addr_code fills the tlb

2017-04-28 Thread fred . konrad
From: KONRAD Frederic get_page_addr_code(..) does a cpu_ldub_code to fill the tlb: This can lead to some side effects if a device is mapped at this address. So this patch replaces the cpu_memory_ld by a tlb_fill. Reviewed-by: Richard Henderson

[Qemu-devel] [PATCH V3 2/7] cputlb: move get_page_addr_code

2017-04-28 Thread fred . konrad
From: KONRAD Frederic This just moves the code before VICTIM_TLB_HIT macro definition so we can use it. Reviewed-by: Richard Henderson Reviewed-by: Edgar E. Iglesias Signed-off-by: KONRAD Frederic

[Qemu-devel] [PATCH V3 1/7] cputlb: cleanup get_page_addr_code to use VICTIM_TLB_HIT

2017-04-28 Thread fred . konrad
From: KONRAD Frederic This replaces env1 and page_index variables by env and index so we can use VICTIM_TLB_HIT macro later. Reviewed-by: Richard Henderson Reviewed-by: Edgar E. Iglesias Signed-off-by: KONRAD Frederic

[Qemu-devel] [PATCH V3 5/7] introduce mmio_interface

2017-04-28 Thread fred . konrad
From: KONRAD Frederic This introduces mmio_interface object which contains a MemoryRegion and can be hotplugged/hotunplugged. Reviewed-by: Edgar E. Iglesias Signed-off-by: KONRAD Frederic V1 -> V2: * Fix the

[Qemu-devel] [PATCH V3 0/7] execute code from mmio area

2017-04-28 Thread fred . konrad
patch implements the execution from the SPI memories in the xilinx_spips model. Thanks, Fred V2 -> V3: * Reorder patches to allow bisection. * Rebase on current master. * Use an async work to invalidate the mmio region. * Clear the dirty of the region before invalidating it. V1 ->

[Qemu-devel] [PATCH V3 4/7] qdev: add MemoryRegion property

2017-04-28 Thread fred . konrad
From: KONRAD Frederic We need to pass a pointer to a MemoryRegion for mmio_interface. So this just adds that. Reviewed-by: Edgar E. Iglesias Signed-off-by: KONRAD Frederic --- include/hw/qdev-properties.h | 2 ++

[Qemu-devel] [PATCH] ppc_booke: drop useless assignment

2017-03-24 Thread fred . konrad
From: KONRAD Frederic The tb_env variable is set two lines above. So just drop the double assignment. Signed-off-by: KONRAD Frederic --- hw/ppc/ppc_booke.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/ppc/ppc_booke.c

[Qemu-devel] [PATCH v3 04/10] qemu-clk: introduce an init array to help the device construction

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This introduces a clock init array to ease the clock tree construction. Signed-off-by: KONRAD Frederic V2 -> V3: * s/QEMUClock/qemu_clk/g --- include/qemu/qemu-clock.h | 23 +++ qemu-clock.c

[Qemu-devel] [PATCH v3 01/10] qemu-clk: introduce qemu-clk qom object

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This introduces qemu-clk qom object. Signed-off-by: KONRAD Frederic V2 -> V3: * s/qemu_clk/QEMUClock/g --- Makefile.objs | 1 + include/qemu/qemu-clock.h | 40 +

[Qemu-devel] [PATCH v3 10/10] zynqmp: add reference clock

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This adds some fixed reference clock to the zynqmp platform. They will feed the zynqmp_crf block. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 49

[Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-02-28 Thread fred . konrad
"apll_clk" 5000 qemu-clk "pss_alt_ref_clk" 0 qemu-clk "ddr" 0 qemu-clk "dbg_tstmp" 0 qemu-clk "pss_ref_clk" 5000 qemu-clk "dpdma_ref" 0 qemu-clk "vpll_to_lpd" 1250 mmio

[Qemu-devel] [PATCH v3 08/10] introduce zynqmp_crf

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This introduce Xilinx zynqmp-crf. It is extracted from the qemu xilinx tree (02d2f0203dd489ed30d9c8d90c14a52c57332b25) and is used as an example for the clock framework. --- hw/misc/Makefile.objs | 1 + hw/misc/xilinx_zynqmp_crf.c | 968

[Qemu-devel] [PATCH v3 07/10] introduce fixed-clock

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This is a fixed clock device. It justs behave as an empty device with a parametrable output rate. Signed-off-by: KONRAD Frederic --- hw/misc/Makefile.objs | 1 + hw/misc/fixed-clock.c | 88

[Qemu-devel] [PATCH v3 09/10] zynqmp: add the zynqmp_crf to the platform

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This adds the zynqmp_crf to the zynqmp platform. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 7 +++ include/hw/arm/xlnx-zynqmp.h | 2 ++ 2 files changed, 9 insertions(+) diff --git

[Qemu-devel] [PATCH v3 03/10] qemu-clk: allow to bind two clocks together

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This introduces the clock binding and the update part. When the qemu_clk_rate_update(qemu_clk, int) function is called: * The clock callback is called on the qemu_clk so it can change the rate. * The qemu_clk_rate_update function is called on

[Qemu-devel] [PATCH v3 05/10] qdev-monitor: print the device's clock with info qtree

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This prints the clock attached to a DeviceState when using "info qtree" monitor command. For example: bus: main-system-bus type System dev: xlnx.zynqmp_crf, id "" gpio-out "sysbus-irq" 1 gpio-out "RST_A9" 4 qemu-clk "dbg_trace"

[Qemu-devel] [PATCH v3 02/10] qemu-clk: allow to add a clock to a device

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This allows to add a clock to a DeviceState. Contrary to gpios, the clock pins are not contained in the DeviceState but with the child property so they can appears in the qom-tree. Signed-off-by: KONRAD Frederic V2 ->

[Qemu-devel] [PATCH v3 06/10] docs: add qemu-clock documentation

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This adds the qemu-clock documentation. Signed-off-by: KONRAD Frederic V1 -> V2: * Fixed in accordance with the changes in the previous patches. --- docs/clock.txt | 278

[Qemu-devel] [PATCH V2 0/7] execute code from mmio area

2017-02-17 Thread fred . konrad
patch implements the execution from the SPI memories in the xilinx_spips model. Thanks, Fred V1 -> V2: * Fix the DPRINTF error. RFC -> V1: * Use an interface (mmio-interface) to fix any reference leak issue. KONRAD Frederic (7): cputlb: cleanup get_page_addr_code to use VICTIM_TLB_HIT

[Qemu-devel] [PATCH V2 6/7] introduce mmio_interface

2017-02-17 Thread fred . konrad
From: KONRAD Frederic This introduces mmio_interface object which contains a MemoryRegion and can be hotplugged/hotunplugged. Signed-off-by: KONRAD Frederic V1 -> V2: * Fix the qemu_log format. --- hw/misc/Makefile.objs| 1

[Qemu-devel] [PATCH V2 1/7] cputlb: cleanup get_page_addr_code to use VICTIM_TLB_HIT

2017-02-17 Thread fred . konrad
From: KONRAD Frederic This replaces env1 and page_index variables by env and index so we can use VICTIM_TLB_HIT macro later. Signed-off-by: KONRAD Frederic --- cputlb.c | 18 +- 1 file changed, 9 insertions(+), 9

[Qemu-devel] [PATCH V2 5/7] qdev: add MemoryRegion property

2017-02-17 Thread fred . konrad
From: KONRAD Frederic We need to pass a pointer to a MemoryRegion for mmio_interface. So this just adds that. Signed-off-by: KONRAD Frederic --- include/hw/qdev-properties.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[Qemu-devel] [PATCH V2 7/7] xilinx_spips: allow mmio execution

2017-02-17 Thread fred . konrad
From: KONRAD Frederic This allows to execute from the lqspi area. When the request_ptr is called the device loads 1024bytes from the SPI device. Then this code can be executed by the guest. Signed-off-by: KONRAD Frederic ---

[Qemu-devel] [PATCH V2 3/7] cputlb: fix the way get_page_addr_code fills the tlb

2017-02-17 Thread fred . konrad
From: KONRAD Frederic get_page_addr_code(..) does a cpu_ldub_code to fill the tlb: This can lead to some side effects if a device is mapped at this address. So this patch replaces the cpu_memory_ld by a tlb_fill. Signed-off-by: KONRAD Frederic

[Qemu-devel] [PATCH V2 4/7] exec: allow to get a pointer for some mmio memory region

2017-02-17 Thread fred . konrad
From: KONRAD Frederic This introduces a special callback which allows to run code from some MMIO devices. SysBusDevice with a MemoryRegion which implements the request_ptr callback will be notified when the guest try to execute code from their offset. Then it will be

[Qemu-devel] [PATCH V2 2/7] cputlb: move get_page_addr_code

2017-02-17 Thread fred . konrad
From: KONRAD Frederic This just moves the code before VICTIM_TLB_HIT macro definition so we can use it. Signed-off-by: KONRAD Frederic --- cputlb.c | 72 1 file changed, 36

[Qemu-devel] [PATCH V1 1/7] cputlb: cleanup get_page_addr_code to use VICTIM_TLB_HIT

2017-02-16 Thread fred . konrad
From: KONRAD Frederic This replaces env1 and page_index variables by env and index so we can use VICTIM_TLB_HIT macro later. Signed-off-by: KONRAD Frederic --- cputlb.c | 18 +- 1 file changed, 9 insertions(+), 9

[Qemu-devel] [PATCH V1 0/7] execute code from mmio area

2017-02-16 Thread fred . konrad
patch implements the execution from the SPI memories in the xilinx_spips model. Thanks, Fred RFC -> V1: * Use an interface (mmio-interface) to fix any reference leak issue. KONRAD Frederic (7): cputlb: cleanup get_page_addr_code to use VICTIM_TLB_HIT cputlb: move get_page_addr_code cputlb: fi

[Qemu-devel] [PATCH V1 6/7] introduce mmio_interface

2017-02-16 Thread fred . konrad
From: KONRAD Frederic This introduces mmio_interface object which contains a MemoryRegion and can be hotplugged/hotunplugged. Signed-off-by: KONRAD Frederic --- hw/misc/Makefile.objs| 1 + hw/misc/mmio_interface.c |

[Qemu-devel] [PATCH V1 5/7] qdev: add MemoryRegion property

2017-02-16 Thread fred . konrad
From: KONRAD Frederic We need to pass a pointer to a MemoryRegion for mmio_interface. So this just adds that. Signed-off-by: KONRAD Frederic --- include/hw/qdev-properties.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[Qemu-devel] [PATCH V1 3/7] cputlb: fix the way get_page_addr_code fills the tlb

2017-02-16 Thread fred . konrad
From: KONRAD Frederic get_page_addr_code(..) does a cpu_ldub_code to fill the tlb: This can lead to some side effects if a device is mapped at this address. So this patch replaces the cpu_memory_ld by a tlb_fill. Signed-off-by: KONRAD Frederic

[Qemu-devel] [PATCH V1 7/7] xilinx_spips: allow mmio execution

2017-02-16 Thread fred . konrad
From: KONRAD Frederic This allows to execute from the lqspi area. When the request_ptr is called the device loads 1024bytes from the SPI device. Then this code can be executed by the guest. Signed-off-by: KONRAD Frederic ---

[Qemu-devel] [RFC 5/5] xilinx_spips: allow mmio execution

2017-02-03 Thread fred . konrad
From: KONRAD Frederic This allows to execute from the lqspi area. When the request_ptr is called the device loads 1024bytes from the SPI device. Then this code can be executed by the guest. Signed-off-by: KONRAD Frederic ---

[Qemu-devel] [RFC 4/5] exec: allow to get a pointer for some mmio memory region

2017-02-03 Thread fred . konrad
From: KONRAD Frederic This introduces a special callback which allows to run code from some MMIO devices. SysBusDevice with a MemoryRegion which implements the request_ptr callback will be notified when the guest try to execute code from their offset. Then it will be

[Qemu-devel] [RFC 0/5] execute code from mmio area

2017-02-03 Thread fred . konrad
e mmio execution helpers: the device must implement the request_ptr callback of the MemoryRegion and will be notified when the guest wants to execute code from it. The fifth patch implements the execution from the SPI memories in the xilinx_spips model. Thanks, Fred KONRAD Frederic (5): cputlb: c

[Qemu-devel] [RFC 2/5] cputlb: move get_page_addr_code

2017-02-03 Thread fred . konrad
From: KONRAD Frederic This just moves the code before VICTIM_TLB_HIT macro definition so we can use it. Signed-off-by: KONRAD Frederic --- cputlb.c | 72 1 file changed, 36

[Qemu-devel] [RFC 3/5] cputlb: fix the way get_page_addr_code fills the tlb

2017-02-03 Thread fred . konrad
From: KONRAD Frederic get_page_addr_code(..) does a cpu_ldub_code to fill the tlb: This can lead to some side effects if a device is mapped at this address. So this patch replaces the cpu_memory_ld by a tlb_fill. Signed-off-by: KONRAD Frederic

[Qemu-devel] [RFC 1/5] cputlb: cleanup get_page_addr_code to use VICTIM_TLB_HIT

2017-02-03 Thread fred . konrad
From: KONRAD Frederic This replaces env1 and page_index variables by env and index so we can use VICTIM_TLB_HIT macro later. Signed-off-by: KONRAD Frederic --- cputlb.c | 18 +- 1 file changed, 9 insertions(+), 9

[Qemu-devel] [PATCH V2 07/10] introduce fixed-clock

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This is a fixed clock device. It justs behave as an empty device with a parametrable output rate. Signed-off-by: KONRAD Frederic --- hw/misc/Makefile.objs | 1 + hw/misc/fixed-clock.c | 88

[Qemu-devel] [PATCH V2 01/10] qemu-clk: introduce qemu-clk qom object

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This introduces qemu-clk qom object. Signed-off-by: KONRAD Frederic --- Makefile.objs | 1 + include/qemu/qemu-clock.h | 40 + qemu-clock.c | 50

[Qemu-devel] [PATCH V2 10/10] zynqmp: add reference clock

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This adds some fixed reference clock to the zynqmp platform. They will feed the zynqmp_crf block. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 49

[Qemu-devel] [PATCH V2 09/10] zynqmp: add the zynqmp_crf to the platform

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This adds the zynqmp_crf to the zynqmp platform. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 7 +++ include/hw/arm/xlnx-zynqmp.h | 2 ++ 2 files changed, 9 insertions(+) diff --git

[Qemu-devel] [PATCH V2 05/10] qdev-monitor: print the device's clock with info qtree

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This prints the clock attached to a DeviceState when using "info qtree" monitor command. For example: bus: main-system-bus type System dev: xlnx.zynqmp_crf, id "" gpio-out "sysbus-irq" 1 gpio-out "RST_A9" 4 qemu-clk "dbg_trace"

[Qemu-devel] [PATCH V2 06/10] docs: add qemu-clock documentation

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This adds the qemu-clock documentation. Signed-off-by: KONRAD Frederic V1 -> V2: * Fixed in accordance with the changes in the previous patches. --- docs/clock.txt | 108

[Qemu-devel] [PATCH V2 08/10] introduce zynqmp_crf

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This introduce Xilinx zynqmp-crf. It is extracted from the qemu xilinx tree (02d2f0203dd489ed30d9c8d90c14a52c57332b25) and is used as an example for the clock framework. --- hw/misc/Makefile.objs | 1 + hw/misc/xilinx_zynqmp_crf.c | 968

[Qemu-devel] [PATCH V2 03/10] qemu-clk: allow to bind two clocks together

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This introduces the clock binding and the update part. When the qemu_clk_rate_update(qemu_clk, int) function is called: * The clock callback is called on the qemu_clk so it can change the rate. * The qemu_clk_rate_update function is called on

[Qemu-devel] [PATCH V2 02/10] qemu-clk: allow to add a clock to a device

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This allows to add a clock to a DeviceState. Contrary to gpios, the clock pins are not contained in the DeviceState but with the child property so they can appears in the qom-tree. Signed-off-by: KONRAD Frederic V1 ->

[Qemu-devel] [PATCH V2 00/10] Clock framework API.

2017-01-26 Thread fred . konrad
"apll_clk" 5000 qemu-clk "pss_alt_ref_clk" 0 qemu-clk "ddr" 0 qemu-clk "dbg_tstmp" 0 qemu-clk "pss_ref_clk" 5000 qemu-clk "dpdma_ref" 0 qemu-clk "vpll_to_lpd" 1250 mmio 000

[Qemu-devel] [PATCH V2 04/10] qemu-clk: introduce an init array to help the device construction

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This introduces a clock init array to ease the clock tree construction. Signed-off-by: KONRAD Frederic --- include/qemu/qemu-clock.h | 23 +++ qemu-clock.c | 17 + 2

[Qemu-devel] [PATCH V1 10/10] zynqmp: add reference clock

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This adds some fixed reference clock to the zynqmp platform. They will feed the zynqmp_crf block. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 42 ++

[Qemu-devel] [PATCH V1 08/10] introduce zynqmp_crf

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This introduce Xilinx zynqmp-crf. It is extracted from the qemu xilinx tree (02d2f0203dd489ed30d9c8d90c14a52c57332b25) and is used as an example for the clock framework. --- hw/misc/Makefile.objs | 1 + hw/misc/xilinx_zynqmp_crf.c | 968

[Qemu-devel] [PATCH V1 07/10] introduce fixed-clock

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This is a fixed clock device. It justs behave as an empty device with a parametrable output rate. Signed-off-by: KONRAD Frederic --- hw/misc/Makefile.objs | 1 + hw/misc/fixed-clock.c | 88

[Qemu-devel] [PATCH V1 09/10] zynqmp: add the zynqmp_crf to the platform

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This adds the zynqmp_crf to the zynqmp platform. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 7 +++ include/hw/arm/xlnx-zynqmp.h | 2 ++ 2 files changed, 9 insertions(+) diff --git

[Qemu-devel] [PATCH V1 03/10] qemu-clk: allow to bind two clocks together

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This introduces the clock binding and the update part. When the qemu_clk_rate_update(qemu_clk, int) function is called: * The clock callback is called on the qemu_clk so it can change the rate. * The qemu_clk_rate_update function is called on

[Qemu-devel] [PATCH V1 06/10] docs: add qemu-clock documentation

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This adds the qemu-clock documentation. Signed-off-by: KONRAD Frederic --- docs/clock.txt | 109 + 1 file changed, 109 insertions(+) create mode 100644

[Qemu-devel] [PATCH V1 05/10] qdev-monitor: print the device's clock with info qtree

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This prints the clock attached to a DeviceState when using "info qtree" monitor command. For example: bus: main-system-bus type System dev: xlnx.zynqmp_crf, id "" gpio-out "sysbus-irq" 1 gpio-out "RST_A9" 4 qemu-clk "dbg_trace"

[Qemu-devel] [PATCH V1 04/10] qemu-clk: introduce an init array to help the device construction

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This introduces a clock init array to ease the clock tree construction. Signed-off-by: KONRAD Frederic --- include/qemu/qemu-clock.h | 23 +++ qemu-clock.c | 17 + 2

[Qemu-devel] [PATCH V1 00/10] Clock framework API.

2016-10-05 Thread fred . konrad
"apll_clk" 5000 qemu-clk "pss_alt_ref_clk" 0 qemu-clk "ddr" 0 qemu-clk "dbg_tstmp" 0 qemu-clk "pss_ref_clk" 5000 qemu-clk "dpdma_ref" 0 qemu-clk "vpll_to_lpd" 1250 mmio fd1a/000

[Qemu-devel] [PATCH V1 01/10] qemu-clk: introduce qemu-clk qom object

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This introduces qemu-clk qom object. Signed-off-by: KONRAD Frederic --- Makefile.objs | 1 + include/qemu/qemu-clock.h | 40 + qemu-clock.c | 50

[Qemu-devel] [PATCH V1 02/10] qemu-clk: allow to attach a clock to a device

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This allows to attach a clock to a DeviceState. Contrary to gpios, the clock pins are not contained in the DeviceState but with the child property so they can appears in the qom-tree. Signed-off-by: KONRAD Frederic ---

[Qemu-devel] [RFC PATCH 04/11] qdev-monitor: print the device's clock with info qtree

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This prints the clock attached to a DeviceState when using "info qtree" monitor command. Signed-off-by: KONRAD Frederic --- include/qemu/qemu-clock.h | 9 + qdev-monitor.c| 2 ++ qemu-clock.c

[Qemu-devel] [RFC PATCH 10/11] zynqmp: add the zynqmp_crf to the platform

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This adds the zynqmp_crf to the zynqmp platform. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 7 +++ include/hw/arm/xlnx-zynqmp.h | 1 + 2 files changed, 8 insertions(+) diff --git

[Qemu-devel] [RFC PATCH 11/11] zynqmp: add reference clock

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This adds some fixed reference clock to the zynqmp platform. They will feed the zynqmp_crf block. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 42 ++

[Qemu-devel] [RFC PATCH 02/11] qemu-clk: allow to attach a clock to a device

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This allows to attach a clock to a DeviceState. Contrary to gpios, the clock pins are not contained in the DeviceState but with the child property so they can appears in the qom-tree. Signed-off-by: KONRAD Frederic ---

[Qemu-devel] [RFC PATCH 07/11] introduce zynqmp_crf

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This introduce Xilinx zynqmp-crf. It is extracted from the qemu xilinx tree (02d2f0203dd489ed30d9c8d90c14a52c57332b25) and is used as an example for the clock framework. --- hw/misc/Makefile.objs | 1 + hw/misc/xilinx_zynqmp_crf.c | 532

[Qemu-devel] [RFC PATCH 09/11] zynqmp_crf: add the clock mechanism

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This adds the pll to the zynqmp_crf and the dp_video clock output. Signed-off-by: KONRAD Frederic --- hw/misc/xilinx_zynqmp_crf.c | 440 1 file changed, 440 insertions(+)

[Qemu-devel] [RFC PATCH 03/11] qemu-clk: allow to bound two clocks together

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This introduces the clock binding and the update part. When the qemu_clk_rate_update(qemu_clk, int) function is called: * The clock callback is called on the qemu_clk so it can change the rate. * The qemu_clk_rate_update function is called on

  1   2   3   4   5   6   7   8   9   >