[Qemu-devel] [PATCH v2 05/17] dma/rc4030: document register at offset 0x210

2015-05-27 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/dma/rc4030.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/dma/rc4030.c b/hw/dma/rc4030.c index 96f796b..bf82eed 100644 --- a/hw/dma/rc4030.c +++ b/hw/dma/rc4030.c @@ -86,7 +86,7 @@ typedef struct rc4030State

[Qemu-devel] [PATCH v2 08/17] net/dp8393x: always calculate proper checksums

2015-05-27 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/net/dp8393x.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/hw/net/dp8393x.c b/hw/net/dp8393x.c index 2297231..093f0cc 100644 --- a/hw/net/dp8393x.c +++ b/hw/net/dp8393x.c @@ -21,16 +21,10 @@ #include "qemu/ti

[Qemu-devel] [PATCH v2 06/17] dma/rc4030: use trace events instead of custom logging

2015-05-27 Thread Hervé Poussineau
Remove also unneeded debug logs. Signed-off-by: Hervé Poussineau --- hw/dma/rc4030.c | 81 - trace-events| 6 + 2 files changed, 22 insertions(+), 65 deletions(-) diff --git a/hw/dma/rc4030.c b/hw/dma/rc4030.c index bf82eed

[Qemu-devel] [PATCH v2 12/17] net/dp8393x: add PROM to store MAC address

2015-05-27 Thread Hervé Poussineau
Signed-off-by: Laurent Vivier Signed-off-by: Hervé Poussineau --- hw/mips/mips_jazz.c | 1 + hw/net/dp8393x.c| 18 ++ 2 files changed, 19 insertions(+) diff --git a/hw/mips/mips_jazz.c b/hw/mips/mips_jazz.c index 648654e..9d60633 100644 --- a/hw/mips/mips_jazz.c +++ b/hw

[Qemu-devel] [PATCH v2 07/17] dma/rc4030: convert to QOM

2015-05-27 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/dma/rc4030.c| 115 ++--- hw/mips/mips_jazz.c| 37 ++-- include/hw/mips/mips.h | 4 +- 3 files changed, 113 insertions(+), 43 deletions(-) diff --git a/hw/dma/rc4030.c b/hw/dma/rc4030.c

[Qemu-devel] [PATCH v2 00/17] net/dp8393x and dma/rc4030 improvements

2015-05-27 Thread Hervé Poussineau
tested on MIPS Jazz emulation and on (yet unpublished) m68k Quadra 800 emulation. Changes v1->v2: - added patches 1, 5-7, 14-16 - fixed memory region life cycle in rc4030 (patch 2) - removed a loop around address_space_rw (patch 2) - added RFC patch 17, which highlights a bug somewhere He

[Qemu-devel] [PATCH v2 11/17] net/dp8393x: QOM'ify

2015-05-27 Thread Hervé Poussineau
Signed-off-by: Laurent Vivier Signed-off-by: Hervé Poussineau --- hw/mips/mips_jazz.c| 12 ++-- hw/net/dp8393x.c | 83 ++ include/hw/mips/mips.h | 5 --- 3 files changed, 67 insertions(+), 33 deletions(-) diff --git a/hw/mips

[Qemu-devel] [PATCH v2 14/17] net/dp8393x: correctly reset in_use field

2015-05-27 Thread Hervé Poussineau
Don't write more than the field width, which is always 16 bit. Fixes network in NetBSD 5.1/arc Signed-off-by: Hervé Poussineau --- hw/net/dp8393x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/net/dp8393x.c b/hw/net/dp8393x.c index 4184045..b72b0b1 100644 ---

[Qemu-devel] [PATCH v2 17/17] [RFC] dma/rc4030: do multiple calls to address_space_rw when doing DMA transfers

2015-05-27 Thread Hervé Poussineau
This fixes Windows NT 4.0/MIPS, which was always bugchecking with IRQL_NOT_LESS_OR_EQUAL. Cc: Paolo Bonzini --- hw/dma/rc4030.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/hw/dma/rc4030.c b/hw/dma/rc4030.c index 3efa6de..deac0a8 100644 --- a/hw/dma/rc4030.

[Qemu-devel] [PATCH v2 09/17] net/dp8393x: do not use old_mmio accesses

2015-05-27 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/net/dp8393x.c | 114 ++- 1 file changed, 29 insertions(+), 85 deletions(-) diff --git a/hw/net/dp8393x.c b/hw/net/dp8393x.c index 093f0cc..5cc1e6b 100644 --- a/hw/net/dp8393x.c +++ b/hw/net/dp8393x.c

[Qemu-devel] [PATCH v2 13/17] net/dp8393x: add load/save support

2015-05-27 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/net/dp8393x.c | 12 1 file changed, 12 insertions(+) diff --git a/hw/net/dp8393x.c b/hw/net/dp8393x.c index ef1fb0e..4184045 100644 --- a/hw/net/dp8393x.c +++ b/hw/net/dp8393x.c @@ -853,6 +853,17 @@ static void dp8393x_realize(DeviceState *dev

[Qemu-devel] [PATCH v2 01/17] mips jazz: compile only in 64 bit little endian

2015-05-27 Thread Hervé Poussineau
Remove now useless device models from other MIPS configurations We're now compiling 18 files less than before. Signed-off-by: Hervé Poussineau --- default-configs/mips-softmmu.mak | 5 - default-configs/mips64-softmmu.mak | 5 - default-configs/mips64el-softmmu.mak | 1 + de

[Qemu-devel] [PATCH v2 02/17] dma/rc4030: create custom DMA address space

2015-05-27 Thread Hervé Poussineau
Add a new memory region in system address space where DMA address space definition (the 'translation table') belongs, so we can update on the fly the DMA address space. Signed-off-by: Hervé Poussineau --- Cc: Paolo Bonzini hw/dma/rc40

Re: [Qemu-devel] [PATCH 0/8] net/dp8393x improvements

2015-05-14 Thread Hervé Poussineau
Hi Leon, Le 29/04/2015 16:56, Leon Alrae a écrit : Hi Hervé, On 25/03/2015 14:13, Leon Alrae wrote: On 05/03/2015 22:13, Hervé Poussineau wrote: Hi, This patchset improves dp8393x network card emulation to current QEMU standards, mostly decouples it from MIPS rc4030 chipset emulation, and

Re: [Qemu-devel] [PATCH 1/8] rc4030: create custom DMA address space

2015-03-25 Thread Hervé Poussineau
Le 25/03/2015 15:45, Paolo Bonzini a écrit : On 05/03/2015 23:13, Hervé Poussineau wrote: Add a new memory region in system address space where DMA address space definition (the 'translation table') belongs, so we can update on the fly the DMA address space. Signed-off-by: Hervé

[Qemu-devel] [PATCH for-2.3 1/1] gtk: do not call gtk_widget_get_window if drawing area is not initialized

2015-03-24 Thread Hervé Poussineau
This prevents gtk_widget_get_window to return a NULL pointer. Signed-off-by: Hervé Poussineau --- ui/gtk.c | 12 1 file changed, 12 insertions(+) diff --git a/ui/gtk.c b/ui/gtk.c index 29bdc19..d6e01c2 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -294,6 +294,10 @@ static void

[Qemu-devel] [PATCH for-2.3 0/1] gtk: fix NULL dereferences

2015-03-24 Thread Hervé Poussineau
rtion `GDK_IS_WINDOW (window)' failed Hervé Poussineau (1): gtk: do not call gtk_widget_get_window if drawing area is not initialized ui/gtk.c | 12 1 file changed, 12 insertions(+) -- 1.7.10.4

Re: [Qemu-devel] [PATCH] fdc: remove sparc sun4m mutations

2015-03-16 Thread Hervé Poussineau
Hi, Le 16/03/2015 22:48, John Snow a écrit : On 03/14/2015 12:50 PM, Hervé Poussineau wrote: They were introduced in 6f7e9aec5eb5bdfa57a9e458e391b785c283a007 and 82407d1a4035e5bfefb53ffdcb270872f813b34c and lots of bug fixes were done after that. This fixes (at least) the detection of the

[Qemu-devel] [PATCH] fdc: remove sparc sun4m mutations

2015-03-14 Thread Hervé Poussineau
works. Signed-off-by: Hervé Poussineau --- hw/block/fdc.c | 17 - 1 file changed, 17 deletions(-) diff --git a/hw/block/fdc.c b/hw/block/fdc.c index 2bf87c9..f72a392 100644 --- a/hw/block/fdc.c +++ b/hw/block/fdc.c @@ -535,8 +535,6 @@ struct FDCtrl { uint8_t pwrd; /* Floppy d

[Qemu-devel] [PATCH 3/8] net/dp8393x: always calculate proper checksums

2015-03-05 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/net/dp8393x.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/hw/net/dp8393x.c b/hw/net/dp8393x.c index 4f3e8a2..802f2b0 100644 --- a/hw/net/dp8393x.c +++ b/hw/net/dp8393x.c @@ -21,16 +21,10 @@ #include "qemu/ti

[Qemu-devel] [PATCH 7/8] net/dp8393x: add PROM to store MAC address

2015-03-05 Thread Hervé Poussineau
Signed-off-by: Laurent Vivier Signed-off-by: Hervé Poussineau --- hw/mips/mips_jazz.c |1 + hw/net/dp8393x.c| 18 ++ 2 files changed, 19 insertions(+) diff --git a/hw/mips/mips_jazz.c b/hw/mips/mips_jazz.c index 16a8368..cb33c9c 100644 --- a/hw/mips/mips_jazz.c +++ b

[Qemu-devel] [PATCH 6/8] net/dp8393x: QOM'ify

2015-03-05 Thread Hervé Poussineau
Signed-off-by: Laurent Vivier Signed-off-by: Hervé Poussineau --- hw/mips/mips_jazz.c| 12 +-- hw/net/dp8393x.c | 83 +--- include/hw/mips/mips.h |5 --- 3 files changed, 67 insertions(+), 33 deletions(-) diff --git a/hw/mips

[Qemu-devel] [PATCH 4/8] net/dp8393x: do not use old_mmio accesses

2015-03-05 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/net/dp8393x.c | 112 ++ 1 file changed, 28 insertions(+), 84 deletions(-) diff --git a/hw/net/dp8393x.c b/hw/net/dp8393x.c index 802f2b0..f86a281 100644 --- a/hw/net/dp8393x.c +++ b/hw/net/dp8393x.c

[Qemu-devel] [PATCH 8/8] net/dp8393x: add load/save support

2015-03-05 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/net/dp8393x.c | 12 1 file changed, 12 insertions(+) diff --git a/hw/net/dp8393x.c b/hw/net/dp8393x.c index 7b658d9..49fa2a8 100644 --- a/hw/net/dp8393x.c +++ b/hw/net/dp8393x.c @@ -850,6 +850,17 @@ static void dp8393x_realize(DeviceState

[Qemu-devel] [PATCH 2/8] rc4030: use AddressSpace and address_space_rw in users

2015-03-05 Thread Hervé Poussineau
Now that rc4030 internally uses an AddressSpace for DMA handling, make its root memory region public. This is especially usefull for dp8393x netcard, which now uses well known QEMU types and methods. Signed-off-by: Hervé Poussineau --- hw/dma/rc4030.c| 14 -- hw/mips

[Qemu-devel] [PATCH 1/8] rc4030: create custom DMA address space

2015-03-05 Thread Hervé Poussineau
Add a new memory region in system address space where DMA address space definition (the 'translation table') belongs, so we can update on the fly the DMA address space. Signed-off-by: Hervé Poussineau --- hw/dma/rc4030.c | 154 ++---

[Qemu-devel] [PATCH 0/8] net/dp8393x improvements

2015-03-05 Thread Hervé Poussineau
(yet unpublished) m68k Quadra 800 emulation. I expect those patches go through a MIPS tree, as rc4030 and dp8393x are currently only used in MIPS Jazz emulation. Hervé Poussineau (8): rc4030: create custom DMA address space rc4030: use AddressSpace and address_space_rw in users net/dp8393x

[Qemu-devel] [PATCH 5/8] net/dp8393x: use dp8393x_ prefix for all functions

2015-03-05 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/net/dp8393x.c | 80 -- 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/hw/net/dp8393x.c b/hw/net/dp8393x.c index f86a281..809f493 100644 --- a/hw/net/dp8393x.c +++ b/hw/net/dp8393x.c

Re: [Qemu-devel] [PATCHv4 1/2] m48t59: introduce new base-year qdev property

2015-02-16 Thread Hervé Poussineau
update the callers appropriately. Signed-off-by: Mark Cave-Ayland Reviewed-by: Hervé Poussineau --- hw/ppc/ppc405_boards.c|2 +- hw/ppc/prep.c |2 +- hw/sparc/sun4m.c |2 +- hw/sparc64/sun4u.c|2 +- hw/timer/m48t59.c | 27

Re: [Qemu-devel] [PATCHv3 1/2] m48t59: introduce new base_year qdev property

2015-02-14 Thread Hervé Poussineau
Hi, Le 14/02/2015 09:52, Mark Cave-Ayland a écrit : Currently the m48t59 device uses the hardware model in order to determine whether the year value is offset from the hardware value. As this will soon be required by the x59 model, create a qdev base_year property to represent the base year and

Re: [Qemu-devel] [PATCHv3 2/2] m48t59: add m48t59 sysbus device

2015-02-14 Thread Hervé Poussineau
Le 14/02/2015 09:52, Mark Cave-Ayland a écrit : This is for subsequent use by the sun4u machine. Signed-off-by: Mark Cave-Ayland Reviewed-by: Hervé Poussineau --- hw/timer/m48t59.c |4 1 file changed, 4 insertions(+) diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c index

Re: [Qemu-devel] [PATCHv2 1/2] m48t59: introduce new year_offset qdev property

2015-02-01 Thread Hervé Poussineau
Le 01/02/2015 19:39, Mark Cave-Ayland a écrit : Currently the m48t59 device uses the hardware model in order to determine whether the year value is offset from the hardware value. As this will soon be required by the x59 model, change the year offset to a qdev property and update the callers appr

[Qemu-devel] [PATCH v2 7/7] isa: remove isa_mem_base variable

2015-02-01 Thread Hervé Poussineau
Now that isa_mem_base variable is always 0, we can remove its usage. Signed-off-by: Hervé Poussineau --- hw/display/cirrus_vga.c |2 +- hw/display/vga-isa.c|2 +- hw/display/vga.c|3 +-- hw/isa/isa-bus.c|1 - include/hw/isa/isa.h|2 -- 5 files changed

[Qemu-devel] [PATCH v2 6/7] gt64xxx: remove isa_mem_base usage

2015-02-01 Thread Hervé Poussineau
Create a custom address space for PCI memory region and use it for the PCI bus. Dynamically handle PCI0 Mem0 and PCI0 Mem1 regions, as already done for PCI0 IO. Signed-off-by: Hervé Poussineau --- hw/mips/gt64xxx_pci.c | 95 +++-- 1 file changed, 68

[Qemu-devel] [PATCH v2 4/7] mips: remove isa_mem_base usage

2015-02-01 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/mips/mips_r4k.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/hw/mips/mips_r4k.c b/hw/mips/mips_r4k.c index 5b982f2..3e90e27 100644 --- a/hw/mips/mips_r4k.c +++ b/hw/mips/mips_r4k.c @@ -165,7 +165,8 @@ void

[Qemu-devel] [PATCH v2 3/7] jazz: remove usage of isa_mem_base

2015-02-01 Thread Hervé Poussineau
Do assorted changes in memory-mapped rtc interface. Also fix size of ISA I/O memory region, which should be 0x1 bytes. Signed-off-by: Hervé Poussineau --- hw/mips/mips_jazz.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/hw/mips

[Qemu-devel] [PATCH v2 1/7] isa: add memory space parameter to isa_bus_new

2015-02-01 Thread Hervé Poussineau
Currently, keep current behaviour by always using get_system_memory(). Also use QOM casts when possible. Signed-off-by: Hervé Poussineau Reviewed-by: Paolo Bonzini --- hw/alpha/typhoon.c |2 +- hw/i386/pc_piix.c|2 +- hw/isa/i82378.c |3 ++- hw/isa/isa-bus.c | 11

[Qemu-devel] [PATCH v2 0/7] isa: remove isa_mem_base variable

2015-02-01 Thread Hervé Poussineau
O ISA devices (like some network cards) - supporting multiple ISA buses (not done in this patchset) Most of the changes are MIPS-related, so maybe Aurélien or Leon can take care of them? Changes since v1: - correctly handle PCI0 windows in gt64xxx Hervé Poussineau (7): isa: add memory space para

[Qemu-devel] [PATCH v2 5/7] piix4: use PCI address space instead of system memory

2015-02-01 Thread Hervé Poussineau
piix4 is only used on MIPS Malta board, which gives get_system_memory() to pci_register_bus(). Signed-off-by: Hervé Poussineau --- hw/isa/piix4.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c index 0cacc3b..a9916df 100644 --- a/hw/isa

[Qemu-devel] [PATCH v2 2/7] jazz: do not explode QEMUMachineInitArgs structure

2015-02-01 Thread Hervé Poussineau
Also remove address_space and address_space_io parameters, which where always get_system_memory() and get_system_io(). Signed-off-by: Hervé Poussineau --- hw/mips/mips_jazz.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/hw/mips/mips_jazz.c b/hw

[Qemu-devel] [PATCH 2/4] m48t59: register a QOM type for each nvram type we support

2015-01-19 Thread Hervé Poussineau
7;) to do like other devices ISA devices (isa-ide, isa-parallel, isa-serial...) Signed-off-by: Hervé Poussineau --- hw/timer/m48t59.c | 246 - 1 file changed, 169 insertions(+), 77 deletions(-) diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c in

[Qemu-devel] [PATCH 4/4] m48t59: let init functions return a Nvram object

2015-01-19 Thread Hervé Poussineau
Remove left-overs from header file. Move some functions only used by PReP to hw/ppc/prep.c Signed-off-by: Hervé Poussineau --- hw/ppc/ppc.c | 161 - hw/ppc/prep.c | 161 + hw/sparc

[Qemu-devel] [PATCH 1/4] m48t59: move ISA ports/memory regions registration to QOM constructor

2015-01-19 Thread Hervé Poussineau
-device m48t59_isa can now be used to create a fully functional nvram. Signed-off-by: Hervé Poussineau --- hw/timer/m48t59.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c index 31509d5..967a313 100644

[Qemu-devel] [PATCH 3/4] m48t59: add a Nvram interface

2015-01-19 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/timer/m48t59.c | 59 + include/hw/timer/m48t59.h | 24 ++ 2 files changed, 83 insertions(+) diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c index c46b63c..c5e74ce 100644 --- a/hw

[Qemu-devel] [PATCH 0/4] timer/m48t59: QOM'ify

2015-01-19 Thread Hervé Poussineau
Patch 4 is using this new Nvram interface and cleaning the m48t59 header. Patches 3 and 4 are not needed for m48t59 QOM'ification, but are in my opinion a nice cleanup. Hervé Poussineau (4): m48t59: move ISA ports/memory regions registration to QOM constructor m48t59: register a QOM type

Re: [Qemu-devel] [PATCH 0/2] m48t59: add year offset and MMIO ISA mapping

2015-01-19 Thread Hervé Poussineau
Le 19/01/2015 12:35, Mark Cave-Ayland a écrit : This patch lays the groundwork for switching sun4u over from ioport NVRAM access to MMIO NVRAM access. Patch 1 introduces a new year_offset property which is the offset between the year value stored in hardware and the actual year. In particular, S

[Qemu-devel] [PATCH 4/7] mips: remove isa_mem_base usage

2015-01-19 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/mips/mips_r4k.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/hw/mips/mips_r4k.c b/hw/mips/mips_r4k.c index 5b982f2..3e90e27 100644 --- a/hw/mips/mips_r4k.c +++ b/hw/mips/mips_r4k.c @@ -165,7 +165,8 @@ void

[Qemu-devel] [PATCH 1/7] isa: add memory space parameter to isa_bus_new

2015-01-19 Thread Hervé Poussineau
Currently, keep current behaviour by always using get_system_memory(). Also use QOM casts when possible. Signed-off-by: Hervé Poussineau --- hw/alpha/typhoon.c |2 +- hw/i386/pc_piix.c|2 +- hw/isa/i82378.c |3 ++- hw/isa/isa-bus.c | 11 --- hw/isa/lpc_ich9

[Qemu-devel] [PATCH 2/7] jazz: do not explode QEMUMachineInitArgs structure

2015-01-19 Thread Hervé Poussineau
Also remove address_space and address_space_io parameters, which where always get_system_memory() and get_system_io(). Signed-off-by: Hervé Poussineau --- hw/mips/mips_jazz.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/hw/mips/mips_jazz.c b/hw

[Qemu-devel] [PATCH 6/7] gt64xxx: remove isa_mem_base usage

2015-01-19 Thread Hervé Poussineau
Create a custom address space for PCI memory region and use it for the PCI bus. However, continue to hardcode VGA window address at 0x1000 instead of calculating its address dynamically. Signed-off-by: Hervé Poussineau --- I would be quite happy if someone knowing gt64xxx better than me

[Qemu-devel] [PATCH 7/7] isa: remove isa_mem_base variable

2015-01-19 Thread Hervé Poussineau
Now that isa_mem_base variable is always 0, we can remove its usage. Signed-off-by: Hervé Poussineau --- hw/display/cirrus_vga.c |2 +- hw/display/vga-isa.c|2 +- hw/display/vga.c|3 +-- hw/isa/isa-bus.c|1 - include/hw/isa/isa.h|2 -- 5 files changed

[Qemu-devel] [PATCH 5/7] piix4: use PCI address space instead of system memory

2015-01-19 Thread Hervé Poussineau
piix4 is only used on MIPS Malta board, which gives get_system_memory() to pci_register_bus(). Signed-off-by: Hervé Poussineau --- hw/isa/piix4.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c index 0cacc3b..a9916df 100644 --- a/hw/isa

[Qemu-devel] [PATCH 3/7] jazz: remove usage of isa_mem_base

2015-01-19 Thread Hervé Poussineau
Do assorted changes in memory-mapped rtc interface. Also fix size of ISA I/O memory region, which should be 0x1 bytes. Signed-off-by: Hervé Poussineau --- hw/mips/mips_jazz.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/hw/mips

[Qemu-devel] [PATCH 0/7] isa: remove isa_mem_base variable

2015-01-19 Thread Hervé Poussineau
O ISA devices - supporting multiple ISA buses (not done in this patchset) Patch 6 may be not very good, but I don't know enough gt64xxx chipset to come to a better solution. Hervé Hervé Poussineau (7): isa: add memory space parameter to isa_bus_new jazz: do not explode QEMUMachineInitArgs

Re: [Qemu-devel] [PATCH 2/2] m48t59: add mem_base value to m48t59_init_isa()

2015-01-19 Thread Hervé Poussineau
Le 19/01/2015 16:01, Andreas Färber a écrit : Also, wasn't Hervé's(?) plan to get rid of mem_base completely by always passing a pointer to ISADevice/ISABus around? It should only be needed when somewhere NULL is being passed, no? Yes, I've a patch series which is removing the isa_mem_base vari

Re: [Qemu-devel] [PATCH 0/3] dp8393x update

2015-01-01 Thread Hervé Poussineau
Hi Laurent, Le 29/12/2014 01:39, Laurent Vivier a écrit : This is a series of patches I wrote to use dp8393x (SONIC) with Quadra 800 emulation. I think it is interesting to share them with the mainline. Qdev'ifying allows to remove the annoying warning: "requested NIC (anonymous, model dp83932)

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 0/2] prep: Remove some clearly wrong assumptions

2014-06-27 Thread Hervé Poussineau
Ping. Le 15/06/2014 16:31, Hervé Poussineau a écrit : Ping. Le 28/05/2014 01:23, Alexander Graf a écrit : On 28.05.14 01:21, Alexander Graf wrote: On 27.05.14 20:57, Hervé Poussineau wrote: Ping. Le 20/05/2014 07:34, Hervé Poussineau a écrit : Ping. Le 23/04/2014 23:19, Hervé

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 0/2] prep: Remove some clearly wrong assumptions

2014-06-15 Thread Hervé Poussineau
Ping. Le 28/05/2014 01:23, Alexander Graf a écrit : On 28.05.14 01:21, Alexander Graf wrote: On 27.05.14 20:57, Hervé Poussineau wrote: Ping. Le 20/05/2014 07:34, Hervé Poussineau a écrit : Ping. Le 23/04/2014 23:19, Hervé Poussineau a écrit : Hi, These two patches remove some bugs for

Re: [Qemu-devel] [PATCH v2 0/2] prep: Remove some clearly wrong assumptions

2014-05-27 Thread Hervé Poussineau
Ping. Le 20/05/2014 07:34, Hervé Poussineau a écrit : Ping. Le 23/04/2014 23:19, Hervé Poussineau a écrit : Hi, These two patches remove some bugs for a PReP firmware. Note that first patch is very PReP-oriented, and breaks OHW compatibility with other QEMU emulations (oldworld and

Re: [Qemu-devel] [PATCH v2 0/2] prep: Remove some clearly wrong assumptions

2014-05-19 Thread Hervé Poussineau
Ping. Le 23/04/2014 23:19, Hervé Poussineau a écrit : Hi, These two patches remove some bugs for a PReP firmware. Note that first patch is very PReP-oriented, and breaks OHW compatibility with other QEMU emulations (oldworld and newworld machines). Patches to remove corresponding hacks on

Re: [Qemu-devel] [PATCH] i8259: don't abort when trying to use level sensitive irqs

2014-05-05 Thread Hervé Poussineau
Le lun. 05 mai 2014 10:01:10 CEST, Michael S. Tsirkin a écrit : On Sat, May 03, 2014 at 10:39:37PM +0200, Hervé Poussineau wrote: Ping. Le 22/04/2014 23:00, Hervé Poussineau a écrit : This is a guest-triggerable error, as seen when using Xenix 2.3.4. Replace hw_error by LOG_UNIMPL, so that

Re: [Qemu-devel] [PATCH] i8259: don't abort when trying to use level sensitive irqs

2014-05-03 Thread Hervé Poussineau
Ping. Le 22/04/2014 23:00, Hervé Poussineau a écrit : This is a guest-triggerable error, as seen when using Xenix 2.3.4. Replace hw_error by LOG_UNIMPL, so that guests have at least a chance to continue. Signed-off-by: Hervé Poussineau --- hw/intc/i8259.c |3 ++- 1 file changed, 2

[Qemu-devel] [PATCH v2 2/2] ohw: let the right reset entry point 0xfff00100 jump to the currently wrong entry point (0xfffffffc)

2014-04-23 Thread Hervé Poussineau
This is easier to do this than to copy the code from the wrong entry point to the right entry point. Suggested-by: Alexander Graf Signed-off-by: Hervé Poussineau --- src/vectors.S |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vectors.S b/src/vectors.S index

[Qemu-devel] [PATCH v2 1/2] ohw: correctly program BAR addresses of PCI devices

2014-04-23 Thread Hervé Poussineau
Note that offsets are PReP ones, so this breaks compatibility with hardware which has different values. Signed-off-by: Hervé Poussineau --- Indentation may look strange, but I tried to stay consistent with other parts of the file. src/pci.c |7 ++- 1 file changed, 6 insertions(+), 1

[Qemu-devel] [PATCH v2 0/2] prep: Remove some clearly wrong assumptions

2014-04-23 Thread Hervé Poussineau
/archive/html/qemu-devel/2014-04/msg00240.html Hervé Changes v1 -> v2: - rewrite patch 2 as suggested by Alexander Graf Hervé Poussineau (2): ohw: correctly program BAR addresses of PCI devices ohw: let the right reset entry point 0xfff00100 jump to the currently wrong entry point (0xf

[Qemu-devel] [PATCH 1/2] ide: remove possibility to disable DMA for cdroms

2014-04-22 Thread Hervé Poussineau
This define has been introduced 8 years ago, and non-DMA cases have never changed since then. Signed-off-by: Hervé Poussineau --- hw/ide/core.c |8 hw/ide/internal.h |1 - 2 files changed, 9 deletions(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index c943a4d..61b211f

[Qemu-devel] [PATCH] i8259: don't abort when trying to use level sensitive irqs

2014-04-22 Thread Hervé Poussineau
This is a guest-triggerable error, as seen when using Xenix 2.3.4. Replace hw_error by LOG_UNIMPL, so that guests have at least a chance to continue. Signed-off-by: Hervé Poussineau --- hw/intc/i8259.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/intc/i8259.c b

Re: [Qemu-devel] [PULL for-2.0 2/7] raven: Implement non-contiguous I/O region

2014-04-05 Thread Hervé Poussineau
Le sam. 05 avril 2014 22:34:38 CEST, Alexander Graf a écrit : On 05.04.2014, at 22:26, Hervé Poussineau wrote: Hi Andreas, Le sam. 05 avril 2014 17:41:43 CEST, Andreas Färber a écrit : Hi Hervé, Am 20.03.2014 00:36, schrieb Andreas Färber: From: Hervé Poussineau Remove now duplicated

Re: [Qemu-devel] [PULL for-2.0 2/7] raven: Implement non-contiguous I/O region

2014-04-05 Thread Hervé Poussineau
Hi Andreas, Le sam. 05 avril 2014 17:41:43 CEST, Andreas Färber a écrit : Hi Hervé, Am 20.03.2014 00:36, schrieb Andreas Färber: From: Hervé Poussineau Remove now duplicated code from prep board. Signed-off-by: Hervé Poussineau Signed-off-by: Andreas Färber --- hw/pci-host/prep.c | 85

Re: [Qemu-devel] [Qemu-ppc] [PATCH for-2.0 2/2] ohw: let the right reset entry point 0xfff00100 jump to the currently wrong entry point (0xfffffffc)

2014-04-01 Thread Hervé Poussineau
Le mer. 02 avril 2014 07:14:48 CEST, Alexander Graf a écrit : Am 01.04.2014 um 23:18 schrieb Hervé Poussineau : This is easier to do this than to copy the code from the wrong entry point to the right entry point. Signed-off-by: Hervé Poussineau --- src/vectors.S |7 ++- 1 file

[Qemu-devel] [PATCH] prep: add support for OpenBIOS

2014-04-01 Thread Hervé Poussineau
Note that OHW is still the default firmware. Signed-off-by: Hervé Poussineau --- hw/ppc/prep.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index dfe4a5c..e59d5b9 100644 --- a/hw/ppc/prep.c +++ b/hw/ppc/prep.c

[Qemu-devel] [PATCH for-2.0 0/2] prep: remove last OHW hacks

2014-04-01 Thread Hervé Poussineau
Hi, This patchset remove the last two hacks related to shortcuts in OHW firmware. Note that related OHW patches must be applied first, and binary updated, before applying those patches. Hervé Hervé Poussineau (2): prep: remove PCI memory hack related to OpenHack'Ware prep: remove CPU

[Qemu-devel] [PATCH for-2.0 2/2] prep: remove CPU reset entry point hack related to OpenHack'Ware

2014-04-01 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/ppc/prep.c |3 --- 1 file changed, 3 deletions(-) diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index 035b5b2..dfe4a5c 100644 --- a/hw/ppc/prep.c +++ b/hw/ppc/prep.c @@ -346,9 +346,6 @@ static void ppc_prep_reset(void *opaque) PowerPCCPU *cpu

[Qemu-devel] [PATCH for-2.0 1/2] prep: remove PCI memory hack related to OpenHack'Ware

2014-04-01 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/pci-host/prep.c |4 +--- hw/ppc/prep.c |9 - 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/hw/pci-host/prep.c b/hw/pci-host/prep.c index d3e746c..56234e5 100644 --- a/hw/pci-host/prep.c +++ b/hw/pci-host/prep.c

[Qemu-devel] [PATCH for-2.0 2/2] ohw: let the right reset entry point 0xfff00100 jump to the currently wrong entry point (0xfffffffc)

2014-04-01 Thread Hervé Poussineau
This is easier to do this than to copy the code from the wrong entry point to the right entry point. Signed-off-by: Hervé Poussineau --- src/vectors.S |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/vectors.S b/src/vectors.S index 691d568..05cd1d9 100644 --- a

[Qemu-devel] [PATCH for-2.0 0/2] prep: Remove some clearly wrong assumptions

2014-04-01 Thread Hervé Poussineau
Hi, These two patches remove some bugs for a PReP firmware. Note that first patch is very PReP-oriented, and breaks OHW compatibility with other QEMU emulations (oldworld and newworld machines). Patches to remove corresponding hacks on QEMU side will be sent shortly. Hervé Hervé Poussineau (2

[Qemu-devel] [PATCH for-2.0 1/2] ohw: correctly program BAR addresses of PCI devices

2014-04-01 Thread Hervé Poussineau
Note that offsets are PReP ones, so this breaks compatibility with hardware which has different values. Signed-off-by: Hervé Poussineau --- src/pci.c |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pci.c b/src/pci.c index 38aad27..7c0ebad 100644 --- a/src

[Qemu-devel] [PATCH v4 6/7] raven: fix PCI bus accesses with size > 1

2014-03-17 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/pci-host/prep.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/pci-host/prep.c b/hw/pci-host/prep.c index 8d0794e..fed6c26 100644 --- a/hw/pci-host/prep.c +++ b/hw/pci-host/prep.c @@ -223,12 +223,12 @@ static void

Re: [Qemu-devel] [PATCH v3 09/10] raven: fix PCI bus accesses with size > 1

2014-03-17 Thread Hervé Poussineau
Hi, Le lun. 17 mars 2014 22:55:37 CET, Artyom Tarasenko a écrit : [...] BTW another unresolved issue that's been discussed is whether we should change the default CPU for -M prep. I've been open to doing so for 2.0 but would like some pointer that such a machine did exist That's fair. I don't h

[Qemu-devel] [PATCH v4 4/7] raven: set a correct PCI memory region

2014-03-17 Thread Hervé Poussineau
PCI memory region is 0x3f00 bytes starting at 0xc000. However, keep compatibility with Open Hack'Ware expectations by adding a hack for Open Hack'Ware display. Signed-off-by: Hervé Poussineau --- hw/pci-host/prep.c |9 ++--- hw/ppc/prep.c |9 + 2 fil

[Qemu-devel] [PATCH v4 3/7] raven: set a correct PCI I/O memory region

2014-03-17 Thread Hervé Poussineau
PCI I/O region is 0x3f80 bytes starting at 0x8000. Do not use global QEMU I/O region, which is only 64KB. Signed-off-by: Hervé Poussineau --- hw/pci-host/prep.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/hw/pci-host/prep.c b/hw/pci-host

[Qemu-devel] [PATCH v4 7/7] raven: use raven_ for all function prefixes

2014-03-17 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/pci-host/prep.c | 40 +--- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/hw/pci-host/prep.c b/hw/pci-host/prep.c index fed6c26..373af48 100644 --- a/hw/pci-host/prep.c +++ b/hw/pci-host/prep.c @@ -70,7

[Qemu-devel] [PATCH v4 1/7] raven: rename intack region to pci_intack

2014-03-17 Thread Hervé Poussineau
Regions added in next patches will also have the pci_ prefix. Signed-off-by: Hervé Poussineau --- hw/pci-host/prep.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/pci-host/prep.c b/hw/pci-host/prep.c index 94fdffa..84d50ca 100644 --- a/hw/pci-host/prep.c +++ b

[Qemu-devel] [PATCH v4 5/7] raven: add PCI bus mastering address space

2014-03-17 Thread Hervé Poussineau
This has been tested on Linux 2.4/PPC with the lsi53c895a SCSI adapter. Signed-off-by: Hervé Poussineau --- hw/pci-host/prep.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/hw/pci-host/prep.c b/hw/pci-host/prep.c index 45615bd..8d0794e 100644 --- a/hw/pci-host

[Qemu-devel] [PATCH v4 2/7] raven: implement non-contiguous I/O region

2014-03-17 Thread Hervé Poussineau
Remove now duplicated code from prep board. Signed-off-by: Hervé Poussineau --- hw/pci-host/prep.c | 84 ++ hw/ppc/prep.c | 94 ++-- 2 files changed, 87 insertions(+), 91 deletions(-) diff

[Qemu-devel] [PATCH v4 0/7] prep: improve Raven PCI host emulation

2014-03-17 Thread Hervé Poussineau
hes 5 and 6 Changes since v1: - reworked a dubious memcpy to make it work on big endian hosts - split onto multiple patches Hervé Poussineau (7): raven: rename intack region to pci_intack raven: implement non-contiguous I/O region raven: set a correct PCI I/O memory region raven: set a corre

Re: [Qemu-devel] [PATCH v3 05/10] raven: set a correct PCI I/O memory region

2014-03-13 Thread Hervé Poussineau
Le 13/03/2014 18:09, Andreas Färber a écrit : Am 05.11.2013 00:09, schrieb Hervé Poussineau: PCI I/O region is 0x3f80 bytes starting at 0x8000. Do not use global QEMU I/O region, which is only 64KB. Signed-off-by: Hervé Poussineau With this patch I get only a blank screen in OHW

Re: [Qemu-devel] [PATCH 0/2] PC: improve emulation correctness

2014-03-05 Thread Hervé Poussineau
Le 05/03/2014 09:15, Paolo Bonzini a écrit : Il 05/03/2014 00:49, Michael S. Tsirkin ha scritto: On Mon, Mar 03, 2014 at 11:05:17PM +0100, Hervé Poussineau wrote: Ping. QEMU crash at reboot is due to not resetting PAM registers at i440fx reset, but a patch has already been rejected on ML

Re: [Qemu-devel] [PATCH 0/2] PC: improve emulation correctness

2014-03-05 Thread Hervé Poussineau
Le mer. 05 mars 2014 19:50:04 CET, Andreas Färber a écrit : Am 05.03.2014 00:49, schrieb Michael S. Tsirkin: On Mon, Mar 03, 2014 at 11:05:17PM +0100, Hervé Poussineau wrote: Ping. QEMU crash at reboot is due to not resetting PAM registers at i440fx reset, but a patch has already been

Re: [Qemu-devel] [PATCH 0/2] PC: improve emulation correctness

2014-03-03 Thread Hervé Poussineau
Ping. QEMU crash at reboot is due to not resetting PAM registers at i440fx reset, but a patch has already been rejected on ML: http://lists.gnu.org/archive/html/qemu-devel/2013-02/msg02928.html Hervé Hervé Poussineau a écrit : With those two patches, I'm able to run a real BIOS in

[Qemu-devel] [PATCH 1/2] pam: partly fix write-only mode

2014-02-12 Thread Hervé Poussineau
en be mapped to some device!) This fixes Award BIOS, which use this mode to shadow system BIOS and video BIOS. Signed-off-by: Hervé Poussineau --- hw/pci-host/pam.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/pci-host/pam.c b/hw/pci-host/pam.c index ec6be46..e1

[Qemu-devel] [PATCH 2/2] pckbd: return 'keyboard enabled' on read input port command

2014-02-12 Thread Hervé Poussineau
Bit 7 of Input Port is the keyboard inhibit switch. 0 means keyboard inhibited, while 1 means keyboard enabled. Incidentaly, this also fixes an error encountered while booting an Award BIOS: "Keyboard is locked out - Unlock the key". Signed-off-by: Hervé Poussineau --- hw/input/pckb

[Qemu-devel] [PATCH 0/2] PC: improve emulation correctness

2014-02-12 Thread Hervé Poussineau
With those two patches, I'm able to run a real BIOS in QEMU (Iwill P55XB2) However, QEMU crashes when rebooting the computer after leaving BIOS settings. Hervé Poussineau (2): pam: partly fix write-only mode pckbd: return 'keyboard enabled' on read input port command h

Re: [Qemu-devel] [PATCH V3 01/01] Docs: Introduce multiport serial support in qemupciserial.inf.

2014-01-20 Thread Hervé Poussineau
Miki Mishael a écrit : Support for pci-serial-2x and pci-serial-4x was added to the inf file. Standard Windows driver mf.sys used to split single function device into per-port nodes. Signed-off-by: Miki Mishael Signed-off-by: Dmitry Fleytman --- Reviewed-by: Hervé

Re: [Qemu-devel] [PATCH] Docs: Introduce multiport serial support in qemupciserial.inf.

2014-01-16 Thread Hervé Poussineau
Hi, Miki Mishael a écrit : Support for pci-serial-2x and pci-serial-4x added to inf file. Standard Windows driver mf.sys used to split single function device into per-port nodes. Signed-off-by: Miki Mishael Signed-off-by: Dmitry Fleytman --- docs/qemupciserial.i

[Qemu-devel] [PATCH] smbus: do not immediately complete commands

2013-12-30 Thread Hervé Poussineau
for smbus busy bit not set (to know that command finished) Fix (c), by immediately setting the busy bit, and completing the command a little bit later. Signed-off-by: Hervé Poussineau --- This fixes a problem with a real bios, which can now properly initialize the PIIX4. Note also that load/sa

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 03/10] raven: move BIOS loading from board code to PCI host

2013-12-23 Thread Hervé Poussineau
Andreas Färber a écrit : Am 24.12.2013 01:32, schrieb Alexander Graf: On 23.12.2013, at 22:54, Hervé Poussineau wrote: Andreas Färber a écrit : Am 23.12.2013 19:13, schrieb Hervé Poussineau: Alexander Graf a écrit : On 23.12.2013, at 07:48, Hervé Poussineau wrote: Hi, Andreas Färber a

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 03/10] raven: move BIOS loading from board code to PCI host

2013-12-23 Thread Hervé Poussineau
Andreas Färber a écrit : Am 23.12.2013 19:13, schrieb Hervé Poussineau: Alexander Graf a écrit : On 23.12.2013, at 07:48, Hervé Poussineau wrote: Hi, Andreas Färber a écrit : Hi, Am 05.11.2013 00:09, schrieb Hervé Poussineau: Raven datasheet explains where firmware lives in system memory

Re: [Qemu-devel] [PATCH v3 03/10] raven: move BIOS loading from board code to PCI host

2013-12-23 Thread Hervé Poussineau
Peter Maydell a écrit : On 23 December 2013 06:48, Hervé Poussineau wrote: So, this patch is a small functional change, as it adds a copy of the firmware in a new range 0xfff0-0xfff7, but I think we can live with it. We'll be able to remove it once we switch to another firmware

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 03/10] raven: move BIOS loading from board code to PCI host

2013-12-23 Thread Hervé Poussineau
Alexander Graf a écrit : On 23.12.2013, at 07:48, Hervé Poussineau wrote: Hi, Andreas Färber a écrit : Hi, Am 05.11.2013 00:09, schrieb Hervé Poussineau: Raven datasheet explains where firmware lives in system memory, so do it there instead of in board code. Other boards using the same PCI

<    1   2   3   4   5   6   7   8   9   10   >