Re: [PATCH 02/14] hw/ide: Free macio-ide IRQs

2024-06-28 Thread Mark Cave-Ayland
On 26/06/2024 13:59, Peter Maydell wrote: On Wed, 26 Jun 2024 at 12:09, Akihiko Odaki wrote: This suppresses LeakSanitizer warnings. Signed-off-by: Akihiko Odaki --- hw/ide/macio.c | 9 + 1 file changed, 9 insertions(+) diff --git a/hw/ide/macio.c b/hw/ide/macio.c index aca90d04

Re: [PATCH v2 02/15] hw/ide: Convert macio ide_irq into GPIO line

2024-06-28 Thread Mark Cave-Ayland
On 27/06/2024 14:37, Akihiko Odaki wrote: macio ide_irq is connected to the IDE bus. This fixes the leak of ide_irq. Signed-off-by: Akihiko Odaki --- hw/ide/macio.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/hw/ide/macio.c b/hw/ide/macio.c index aca90d04

Re: [PATCH v2 03/15] hw/ide: Remove internal DMA qemu_irq

2024-06-28 Thread Mark Cave-Ayland
On 27/06/2024 14:37, Akihiko Odaki wrote: A function pointer is sufficient for internal usage. Replacing qemu_irq with one fixes the leak of qemu_irq. Signed-off-by: Akihiko Odaki --- include/hw/ppc/mac_dbdma.h | 5 +++-- hw/ide/macio.c | 11 +++ hw/misc/macio/mac_dbdm

Re: [PATCH v2 04/15] hw/isa/vt82c686: Define a GPIO line between vt82c686 and i8259

2024-06-28 Thread Mark Cave-Ayland
On 27/06/2024 14:37, Akihiko Odaki wrote: This fixes qemu_irq array leak. Signed-off-by: Akihiko Odaki --- hw/isa/vt82c686.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/isa/vt82c686.c b/hw/isa/vt82c686.c index 8582ac0322eb..629d2d568137 100644 --- a/hw/isa/

[PATCH] hw/ide/macio.c: switch from using qemu_allocate_irq() to qdev input GPIOs

2024-06-28 Thread Mark Cave-Ayland
This prevents the IRQs from being leaked when the macio IDE device is used. Signed-off-by: Mark Cave-Ayland --- hw/ide/macio.c| 10 ++ include/hw/misc/macio/macio.h | 5 + 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/hw/ide/macio.c b/hw/ide

Re: [PATCH] hw/ide/macio.c: switch from using qemu_allocate_irq() to qdev input GPIOs

2024-06-28 Thread Mark Cave-Ayland
On 28/06/2024 16:28, Peter Maydell wrote: On Fri, 28 Jun 2024 at 11:55, Mark Cave-Ayland wrote: This prevents the IRQs from being leaked when the macio IDE device is used. Signed-off-by: Mark Cave-Ayland --- hw/ide/macio.c| 10 ++ include/hw/misc/macio/macio.h

[PATCH v2] hw/ide/macio.c: switch from using qemu_allocate_irq() to qdev input GPIOs

2024-06-28 Thread Mark Cave-Ayland
This prevents the IRQs from being leaked when the macio IDE device is used. Signed-off-by: Mark Cave-Ayland Reviewed-by: Peter Maydell --- hw/ide/macio.c| 10 ++ include/hw/misc/macio/macio.h | 7 +-- 2 files changed, 11 insertions(+), 6 deletions(-) v2: - Delete

Re: [PATCH] mac_dbdma: Remove leftover `dma_memory_unmap` calls

2024-09-16 Thread Mark Cave-Ayland
;ve given it a quick spin around various PPC Mac images and it looks good to me, so: Reviewed-by: Mark Cave-Ayland Tested-by: Mark Cave-Ayland My guess is that the current use of dma_memory_unmap() was a misunderstanding/bug when porting the macio IDE device over to use the byte-aligned block DM

Re: [Qemu-block] [PATCH 0/2] atapi: fix NetBSD boot regression

2015-11-09 Thread Mark Cave-Ayland
etbsd-v1 > > John Snow (2): > atapi: add byte_count_limit helper > atapi: Prioritize unknown cmd error over BCL error > > hw/ide/atapi.c | 38 +++--- > 1 file changed, 23 insertions(+), 15 deletions(-) I've tested this against my Op

Re: [Qemu-block] [Qemu-devel] [PATCH V4 0/6] ide: avoid main-loop hang on CDROM/NFS failure

2015-11-13 Thread Mark Cave-Ayland
On 12/11/15 16:30, Peter Lieven wrote: > This series aims at avoiding a hanging main-loop if a vserver has a > CDROM image mounted from a NFS share and that NFS share goes down. > Typical situation is that users mount an CDROM ISO to install something > and then forget to eject that CDROM afterwar

Re: [PATCH v3 00/14] scsi: add quirks and features to support m68k Macs

2022-07-06 Thread Mark Cave-Ayland
On 22/06/2022 11:53, Mark Cave-Ayland wrote: Here are the next set of patches from my ongoing work to allow the q800 machine to boot MacOS related to SCSI devices. Patch 1 adds a new quirks bitmap to SCSIDiskState to allow buggy and/or legacy features to enabled on an individual device basis

Re: [PATCH v3 00/14] scsi: add quirks and features to support m68k Macs

2022-07-13 Thread Mark Cave-Ayland
On 12/07/2022 15:48, Paolo Bonzini wrote: Queued, thanks (I was on vacation last week). I am a bit scared about the mode_select_truncated quirk. My reading of the code is that the MODE SELECT would fail anyway because the page length does not match in scsi_disk_check_mode_select: len = m

Re: [PATCH 0/9] Deprecate sysbus_get_default() and get_system_memory() et. al

2022-09-20 Thread Mark Cave-Ayland
On 20/09/2022 10:55, Peter Maydell wrote: On Tue, 20 Sept 2022 at 00:18, Bernhard Beschow wrote: In address-spaces.h it can be read that get_system_memory() and get_system_io() are temporary interfaces which "should only be used temporarily until a proper bus interface is available". This sta

[Qemu-block] [PATCHv2 1/2] dma-helpers: explicitly pass alignment into DMA helpers

2016-10-14 Thread Mark Cave-Ayland
The hard-coded default alignment is BDRV_SECTOR_SIZE, however this is not necessarily the case for all platforms. Use this as the default alignment for all current callers. Signed-off-by: Mark Cave-Ayland Reviewed-by: Eric Blake Acked-by: John Snow --- dma-helpers.c| 21

[Qemu-block] [PATCHv2 2/2] macio: switch over to new byte-aligned DMA helpers

2016-10-14 Thread Mark Cave-Ayland
Now that the DMA helpers are byte-aligned they can be called directly from the macio routines rather than emulating byte-aligned accesses via multiple block-level accesses. Signed-off-by: Mark Cave-Ayland Reviewed-by: Eric Blake Reviewed-by: John Snow --- hw/ide/macio.c | 213

[Qemu-block] [PATCHv2 0/2] dma-helpers: explicitly pass alignment into DMA helpers

2016-10-14 Thread Mark Cave-Ayland
parameter as suggested by Paolo above, whilst patch 2 performs the conversion for the macio controller. Signed-off-by: Mark Cave-Ayland v2: - Use QEMU_IS_ALIGNED and QEMU_ALIGN_DOWN macros suggested by Eric - Add Reviewed-by/Acked-by tags from Eric and John - Rebase onto master Mark Cave-Ayland (2

Re: [Qemu-block] [Qemu-devel] [PATCH 1/1] migration: fix compiler warning on uninitialized variable

2016-11-02 Thread Mark Cave-Ayland
the variable to 0. > > Reported-by: Mark Cave-Ayland > Signed-off-by: Jeff Cody > --- > migration/colo.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/migration/colo.c b/migration/colo.c > index e7224b8..93c85c5 100644 > --- a/migrat

[Qemu-block] [PATCH v4 01/11] hw/m68k: add via support

2018-10-18 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/misc/Makefile.objs | 1 + hw/misc/mac_via.c | 668 ++ include/hw/misc/mac_via.h | 106 3 files

[Qemu-block] [PATCH v4 03/11] escc: introduce a selector for the register bit

2018-10-18 Thread Mark Cave-Ayland
From: Laurent Vivier On Sparc and PowerMac, the bit 0 of the address selects the register type (control or data) and bit 1 selects the channel (B or A). On m68k Macintosh, the bit 0 selects the channel and bit 1 the register type. This patch introduces a new parameter (bit_swap) to the device i

[Qemu-block] [PATCH v4 02/11] hw/m68k: implement ADB bus support for via

2018-10-18 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/input/adb.c| 2 + hw/misc/mac_via.c | 166 ++ include/hw/misc/mac_via.h | 7 ++ 3 files changed, 175

[Qemu-block] [PATCH v4 06/11] ESP: add pseudo-DMA as used by Macintosh

2018-10-18 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/scsi/esp.c | 292 +- include/hw/scsi/esp.h | 7 ++ 2 files changed, 270 insertions(+), 29 deletions(-) diff

[Qemu-block] [PATCH v4 07/11] hw/m68k: add Nubus support

2018-10-18 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/Makefile.objs| 1 + hw/nubus/Makefile.objs | 4 + hw/nubus/mac-nubus-bridge.c | 45 hw/nubus/nubus-bridge.c

[Qemu-block] [PATCH v4 00/11] hw/m68k: add Apple Machintosh Quadra 800 machine

2018-10-18 Thread Mark Cave-Ayland
urent Vivier (10): hw/m68k: add via support hw/m68k: implement ADB bus support for via escc: introduce a selector for the register bit hw/m68k: add macfb video card hw/m68k: Apple Sound Chip (ASC) emulation ESP: add pseudo-DMA as used by Macintosh hw/m68k: add Nubus support hw/m

[Qemu-block] [PATCH v4 04/11] hw/m68k: add macfb video card

2018-10-18 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- arch_init.c | 4 + hw/display/Makefile.objs| 1 + hw/display/macfb-template.h | 158 +++ hw/display/macfb.c | 252

[Qemu-block] [PATCH v4 08/11] hw/m68k: add Nubus support for macfb video card

2018-10-18 Thread Mark Cave-Ayland
Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/display/macfb.c | 56 ++ 1 file changed, 56 insertions(+) diff --git a/hw/display/macfb.c b/hw/display/macfb.c index 54472c1cbb

[Qemu-block] [PATCH v4 11/11] hw/m68k: define Macintosh Quadra 800

2018-10-18 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- MAINTAINERS | 19 ++ default-configs/m68k-softmmu.mak | 14 ++ hw/intc/Makefile.objs| 1 + hw/intc/q800_irq.c | 73

[Qemu-block] [PATCH v4 09/11] hw/m68k: add a dummy SWIM floppy controller

2018-10-18 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/block/Makefile.objs | 1 + hw/block/swim.c | 415 include/hw/block/swim.h | 76 + 3 files changed

[Qemu-block] [PATCH v4 05/11] hw/m68k: Apple Sound Chip (ASC) emulation

2018-10-18 Thread Mark Cave-Ayland
From: Laurent Vivier This is broken as the linux driver seems broken too... Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/audio/Makefile.objs | 1 + hw/audio/asc.c | 446

[Qemu-block] [PATCH v4 10/11] dp8393x: manage big endian bus

2018-10-18 Thread Mark Cave-Ayland
From: Laurent Vivier This is needed by Quadra 800, this card can run on little-endian or big-endian bus. Signed-off-by: Laurent Vivier Tested-by: Hervé Poussineau --- hw/net/dp8393x.c | 88 1 file changed, 57 insertions(+), 31 deletions

Re: [Qemu-block] [Qemu-devel] [PATCH v4 02/11] hw/m68k: implement ADB bus support for via

2018-10-25 Thread Mark Cave-Ayland
On 23/10/2018 07:49, Thomas Huth wrote: > On 2018-10-18 19:28, Mark Cave-Ayland wrote: >> From: Laurent Vivier >> >> Co-developed-by: Mark Cave-Ayland >> Signed-off-by: Mark Cave-Ayland >> Signed-off-by: Laurent Vivier >> --- >> hw/input/a

Re: [Qemu-block] [Qemu-devel] [PATCH v4 07/11] hw/m68k: add Nubus support

2018-10-25 Thread Mark Cave-Ayland
On 23/10/2018 08:36, Thomas Huth wrote: > On 2018-10-18 19:28, Mark Cave-Ayland wrote: >> From: Laurent Vivier >> >> Co-developed-by: Mark Cave-Ayland >> Signed-off-by: Mark Cave-Ayland >> Signed-off-by: Laurent Vivier >> --- > [...] >> +sta

Re: [Qemu-block] [Qemu-devel] [PATCH v4 05/11] hw/m68k: Apple Sound Chip (ASC) emulation

2018-10-25 Thread Mark Cave-Ayland
On 23/10/2018 08:18, Thomas Huth wrote: > On 2018-10-18 19:28, Mark Cave-Ayland wrote: >> From: Laurent Vivier >> >> This is broken as the linux driver seems broken too... > > So is this required for the initial version, or does Linux also boot > without this devi

Re: [Qemu-block] [Qemu-devel] [PATCH v4 11/11] hw/m68k: define Macintosh Quadra 800

2018-10-25 Thread Mark Cave-Ayland
On 23/10/2018 12:20, Thomas Huth wrote: > On 2018-10-18 19:28, Mark Cave-Ayland wrote: >> From: Laurent Vivier >> >> Co-developed-by: Mark Cave-Ayland >> Signed-off-by: Mark Cave-Ayland >> Signed-off-by: Laurent Vivier >> --- > [...] >&

Re: [Qemu-block] [Qemu-devel] [PATCH v4 01/11] hw/m68k: add via support

2018-10-25 Thread Mark Cave-Ayland
On 23/10/2018 07:22, Thomas Huth wrote: > On 2018-10-18 19:28, Mark Cave-Ayland wrote: >> From: Laurent Vivier >> >> Co-developed-by: Mark Cave-Ayland >> Signed-off-by: Mark Cave-Ayland >> Signed-off-by: Laurent Vivier >> --- > [...] >> di

Re: [Qemu-block] [Qemu-devel] [PATCH v4 04/11] hw/m68k: add macfb video card

2018-10-25 Thread Mark Cave-Ayland
On 23/10/2018 08:13, Thomas Huth wrote: > On 2018-10-18 19:28, Mark Cave-Ayland wrote: >> From: Laurent Vivier >> >> Co-developed-by: Mark Cave-Ayland >> Signed-off-by: Mark Cave-Ayland >> Signed-off-by: Laurent Vivier >> --- >> arch_

Re: [Qemu-block] [Qemu-devel] [PATCH v4 11/11] hw/m68k: define Macintosh Quadra 800

2018-10-25 Thread Mark Cave-Ayland
On 23/10/2018 14:16, Philippe Mathieu-Daudé wrote: > Hi Laurent, Mark, > > On 18/10/18 20:28, Mark Cave-Ayland wrote: >> From: Laurent Vivier >> >> Co-developed-by: Mark Cave-Ayland >> Signed-off-by: Mark Cave-Ayland >> Signed-off-by:

[Qemu-block] [PATCH v5 03/11] escc: introduce a selector for the register bit

2018-10-29 Thread Mark Cave-Ayland
From: Laurent Vivier On Sparc and PowerMac, the bit 0 of the address selects the register type (control or data) and bit 1 selects the channel (B or A). On m68k Macintosh, the bit 0 selects the channel and bit 1 the register type. This patch introduces a new parameter (bit_swap) to the device i

[Qemu-block] [PATCH v5 00/11] hw/m68k: add Apple Machintosh Quadra 800 machine

2018-10-29 Thread Mark Cave-Ayland
pport hw/m68k: implement ADB bus support for via escc: introduce a selector for the register bit hw/m68k: add macfb video card hw/m68k: Apple Sound Chip (ASC) emulation esp: add pseudo-DMA as used by Macintosh hw/m68k: add Nubus support hw/m68k: add a dummy SWIM floppy controlle

[Qemu-block] [PATCH v5 02/11] hw/m68k: implement ADB bus support for via

2018-10-29 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/misc/mac_via.c | 190 ++ include/hw/misc/mac_via.h | 7 ++ 2 files changed, 197 insertions(+) diff --git a/hw

[Qemu-block] [PATCH v5 01/11] hw/m68k: add via support

2018-10-29 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/misc/Makefile.objs | 1 + hw/misc/mac_via.c | 666 ++ include/hw/misc/mac_via.h | 107 3 files

[Qemu-block] [PATCH v5 06/11] esp: add pseudo-DMA as used by Macintosh

2018-10-29 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/scsi/esp.c | 292 +- include/hw/scsi/esp.h | 7 ++ 2 files changed, 270 insertions(+), 29 deletions(-) diff

[Qemu-block] [PATCH v5 04/11] hw/m68k: add macfb video card

2018-10-29 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- arch_init.c| 4 + hw/display/Makefile.objs | 1 + hw/display/macfb.c | 419 + include/hw/display

[Qemu-block] [PATCH v5 07/11] hw/m68k: add Nubus support

2018-10-29 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/Makefile.objs| 1 + hw/nubus/Makefile.objs | 4 + hw/nubus/mac-nubus-bridge.c | 45 hw/nubus/nubus-bridge.c

[Qemu-block] [PATCH v5 08/11] hw/m68k: add Nubus support for macfb video card

2018-10-29 Thread Mark Cave-Ayland
Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/display/macfb.c | 56 ++ include/hw/display/macfb.h | 21 + 2 files changed, 77 insertions(+) diff --git a/hw/display

[Qemu-block] [PATCH v5 05/11] hw/m68k: Apple Sound Chip (ASC) emulation

2018-10-29 Thread Mark Cave-Ayland
From: Laurent Vivier This is broken as the linux driver seems broken too... Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/audio/Makefile.objs | 1 + hw/audio/asc.c | 446

[Qemu-block] [PATCH v5 09/11] hw/m68k: add a dummy SWIM floppy controller

2018-10-29 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/block/Makefile.objs | 1 + hw/block/swim.c | 415 include/hw/block/swim.h | 76 + 3 files changed

[Qemu-block] [PATCH v5 11/11] hw/m68k: define Macintosh Quadra 800

2018-10-29 Thread Mark Cave-Ayland
c If you use a graphic adapter instead of "-nographic", you can use "-g" to set the size of the display (I use "-g 1600x800x24"). Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- MAINTAINERS

[Qemu-block] [PATCH v5 10/11] dp8393x: manage big endian bus

2018-10-29 Thread Mark Cave-Ayland
From: Laurent Vivier This is needed by Quadra 800, this card can run on little-endian or big-endian bus. Signed-off-by: Laurent Vivier Tested-by: Hervé Poussineau Reviewed-by: Philippe Mathieu-Daudé --- hw/net/dp8393x.c | 88 1 file ch

Re: [Qemu-block] [Qemu-devel] [PATCH v5 03/11] escc: introduce a selector for the register bit

2018-10-30 Thread Mark Cave-Ayland
On 29/10/2018 23:36, Philippe Mathieu-Daudé wrote: > Hi Marc, Laurent. > > On Mon, Oct 29, 2018 at 2:43 PM Mark Cave-Ayland > wrote: >> >> From: Laurent Vivier >> >> On Sparc and PowerMac, the bit 0 of the address >> selects the register type (control

Re: [Qemu-block] [Qemu-devel] [PATCH v5 06/11] esp: add pseudo-DMA as used by Macintosh

2018-10-30 Thread Mark Cave-Ayland
On 30/10/2018 06:47, Hervé Poussineau wrote: > Le 29/10/2018 à 14:39, Mark Cave-Ayland a écrit : >> From: Laurent Vivier >> >> Co-developed-by: Mark Cave-Ayland >> Signed-off-by: Mark Cave-Ayland >> Signed-off-by: Laurent Vivier >&g

Re: [Qemu-block] [Qemu-devel] [PATCH v5 07/11] hw/m68k: add Nubus support

2018-10-30 Thread Mark Cave-Ayland
On 30/10/2018 06:47, Hervé Poussineau wrote: > Le 29/10/2018 à 14:39, Mark Cave-Ayland a écrit : >> From: Laurent Vivier >> >> Co-developed-by: Mark Cave-Ayland >> Signed-off-by: Mark Cave-Ayland >> Signed-off-by: Laurent Vivier >> --- >>   hw/Mak

Re: [Qemu-block] [Qemu-devel] [PATCH v5 09/11] hw/m68k: add a dummy SWIM floppy controller

2018-10-30 Thread Mark Cave-Ayland
On 30/10/2018 06:48, Hervé Poussineau wrote: > Le 29/10/2018 à 14:39, Mark Cave-Ayland a écrit : >> From: Laurent Vivier >> >> Co-developed-by: Mark Cave-Ayland >> Signed-off-by: Mark Cave-Ayland >> Signed-off-by: Laurent Vivier >> --- >>   hw/bloc

Re: [Qemu-block] [Qemu-devel] [PATCH v5 05/11] hw/m68k: Apple Sound Chip (ASC) emulation

2018-10-30 Thread Mark Cave-Ayland
On 30/10/2018 06:46, Hervé Poussineau wrote: > Le 29/10/2018 à 14:39, Mark Cave-Ayland a écrit : >> From: Laurent Vivier >> >> This is broken as the linux driver seems broken too... >> >> Co-developed-by: Mark Cave-Ayland >> Signed-off-by: Mark Cave-A

Re: [Qemu-block] [Qemu-devel] [PATCH v5 00/11] hw/m68k: add Apple Machintosh Quadra 800 machine

2018-10-30 Thread Mark Cave-Ayland
On 30/10/2018 08:15, Richard Henderson wrote: > On 10/29/18 1:39 PM, Mark Cave-Ayland wrote: >> You can install your own disk using debian-installer, with: >> >> ... >> -M q800 \ >> -serial none -serial mon:stdio \ >> -m 1000M -drive file=m6

Re: [Qemu-block] [Qemu-devel] [PATCH v5 00/11] hw/m68k: add Apple Machintosh Quadra 800 machine

2018-10-30 Thread Mark Cave-Ayland
On 30/10/2018 12:49, Laurent Vivier wrote: > Le 30/10/2018 à 12:48, Mark Cave-Ayland a écrit : >> On 30/10/2018 08:15, Richard Henderson wrote: >> >>> On 10/29/18 1:39 PM, Mark Cave-Ayland wrote: >>>> You can install your own disk using debian-installer, with

[Qemu-block] [PATCH v6 00/10] hw/m68k: add Apple Machintosh Quadra 800 machine

2018-11-02 Thread Mark Cave-Ayland
the patches: - use mos6522 - some code move, renamings and cleanup Laurent Vivier (9): hw/m68k: add via support hw/m68k: implement ADB bus support for via escc: introduce a selector for the register bit hw/m68k: add macfb video card esp: add pseudo-DMA as used by Macintosh hw/m68k

[Qemu-block] [PATCH v6 05/10] esp: add pseudo-DMA as used by Macintosh

2018-11-02 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/scsi/esp.c | 291 +- include/hw/scsi/esp.h | 7 ++ 2 files changed, 269 insertions(+), 29 deletions(-) diff

[Qemu-block] [PATCH v6 06/10] hw/m68k: add Nubus support

2018-11-02 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/Makefile.objs| 1 + hw/nubus/Makefile.objs | 4 + hw/nubus/mac-nubus-bridge.c | 45 hw/nubus/nubus-bridge.c

[Qemu-block] [PATCH v6 09/10] dp8393x: manage big endian bus

2018-11-02 Thread Mark Cave-Ayland
From: Laurent Vivier This is needed by Quadra 800, this card can run on little-endian or big-endian bus. Signed-off-by: Laurent Vivier Tested-by: Hervé Poussineau Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Hervé Poussineau --- hw/net/dp8393x.c | 88

[Qemu-block] [PATCH v6 08/10] hw/m68k: add a dummy SWIM floppy controller

2018-11-02 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier Reviewed-by: Hervé Poussineau --- hw/block/Makefile.objs | 1 + hw/block/swim.c | 415 include/hw/block/swim.h

[Qemu-block] [PATCH v6 01/10] hw/m68k: add via support

2018-11-02 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier Reviewed-by: Hervé Poussineau --- hw/misc/Makefile.objs | 1 + hw/misc/mac_via.c | 666 ++ include/hw/misc/mac_via.h

[Qemu-block] [PATCH v6 03/10] escc: introduce a selector for the register bit

2018-11-02 Thread Mark Cave-Ayland
From: Laurent Vivier On Sparc and PowerMac, the bit 0 of the address selects the register type (control or data) and bit 1 selects the channel (B or A). On m68k Macintosh, the bit 0 selects the channel and bit 1 the register type. This patch introduces a new parameter (bit_swap) to the device i

[Qemu-block] [PATCH v6 02/10] hw/m68k: implement ADB bus support for via

2018-11-02 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier Reviewed-by: Hervé Poussineau --- hw/misc/mac_via.c | 190 ++ include/hw/misc/mac_via.h | 7 ++ 2 files changed, 197

[Qemu-block] [PATCH v6 04/10] hw/m68k: add macfb video card

2018-11-02 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier Reviewed-by: Hervé Poussineau --- arch_init.c| 4 + hw/display/Makefile.objs | 1 + hw/display/macfb.c | 419

[Qemu-block] [PATCH v6 07/10] hw/m68k: add Nubus support for macfb video card

2018-11-02 Thread Mark Cave-Ayland
Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier Reviewed-by: Hervé Poussineau --- hw/display/macfb.c | 56 ++ include/hw/display/macfb.h | 21 + 2 files changed, 77 insertions

[Qemu-block] [PATCH v6 10/10] hw/m68k: define Macintosh Quadra 800

2018-11-02 Thread Mark Cave-Ayland
c If you use a graphic adapter instead of "-nographic", you can use "-g" to set the size of the display (I use "-g 1600x800x24"). Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- MAINTAINERS

Re: [Qemu-block] [Qemu-devel] [PATCH v6 00/10] hw/m68k: add Apple Machintosh Quadra 800 machine

2018-11-04 Thread Mark Cave-Ayland
On 04/11/2018 06:53, no-re...@patchew.org wrote: > Hi, > > This series seems to have some coding style problems. See output below for > more information: > > Type: series > Message-id: 20181102152257.20637-1-mark.cave-ayl...@ilande.co.uk > Subject: [Qemu-devel] [PATCH v6 00/10] hw/m68k: add Appl

[Qemu-block] [PATCH for-3.1] fdc: fix segfault in fdctrl_stop_transfer() when DMA is disabled

2018-11-11 Thread Mark Cave-Ayland
if fdctrl->dma_chann has been set. (This issue was discovered by Martin testing a recent change in the NetBSD installer under qemu-system-sparc) Reported-by: Martin Husemann Signed-off-by: Mark Cave-Ayland --- hw/block/fdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h

Re: [Qemu-block] [Qemu-devel] [PATCH for-3.1] fdc: fix segfault in fdctrl_stop_transfer() when DMA is disabled

2018-11-18 Thread Mark Cave-Ayland
On 13/11/2018 20:29, John Snow wrote: > On 11/13/18 8:16 AM, Kevin Wolf wrote: >> Am 12.11.2018 um 20:58 hat John Snow geschrieben: >>> >>> >>> On 11/11/18 4:40 AM, Mark Cave-Ayland wrote: >>>> Commit c8a35f1cf0f "fdc: use IsaDma interface

Re: [Qemu-block] [Qemu-devel] [PATCH v6 00/10] hw/m68k: add Apple Machintosh Quadra 800 machine

2019-01-24 Thread Mark Cave-Ayland
On 24/01/2019 17:15, Laurent Vivier wrote: > On 24/01/2019 18:02, Thomas Huth wrote: >> On 2018-11-02 16:22, Mark Cave-Ayland wrote: >>> (MCA: here's the latest version of the q800 patchset. I've hope that I've >>> addressed most of the comment

Re: [Qemu-block] [Qemu-devel] [PATCH v2 0/7] dma-helpers, scsi-block: use SG_IO for all I/O on scsi-block

2016-05-23 Thread Mark Cave-Ayland
On 23/05/16 13:54, Paolo Bonzini wrote: > scsi-block uses the block layer for reads and writes in order to avoid > allocating bounce buffers as big as the transferred data. We know how > to split a large transfer to multiple reads and writes, and thus we can > use scsi-disk.c's existing code to d

Re: [Qemu-block] [Qemu-devel] [PATCH v2 0/7] dma-helpers, scsi-block: use SG_IO for all I/O on scsi-block

2016-05-24 Thread Mark Cave-Ayland
On 23/05/16 20:36, Mark Cave-Ayland wrote: > On 23/05/16 13:54, Paolo Bonzini wrote: > >> scsi-block uses the block layer for reads and writes in order to avoid >> allocating bounce buffers as big as the transferred data. We know how >> to split a large transfer to m

Re: [Qemu-block] [Qemu-devel] [PATCH v2 0/7] dma-helpers, scsi-block: use SG_IO for all I/O on scsi-block

2016-05-25 Thread Mark Cave-Ayland
On 25/05/16 09:45, Paolo Bonzini wrote: > On 25/05/2016 00:59, Mark Cave-Ayland wrote: >> I eventually traced the corruption down to this section of code in >> dma_blk_cb() which was incorrectly truncating the unaligned iovecs: >> >> if (dbs-&g

Re: [Qemu-block] [Qemu-devel] [PATCH 4/7] scsi-disk: introduce dma_readv and dma_writev

2016-06-01 Thread Mark Cave-Ayland
On 23/05/16 13:54, Paolo Bonzini wrote: > These are replacements for blk_aio_preadv and blk_aio_pwritev that allow > customization of the data path. They reuse the DMA helpers' DMAIOFunc > callback type, so that the same function can be used in either the > QEMUSGList or the bounce-buffered case.

[Qemu-block] [PATCH] scsi-disk: fix reads from scsi-disk devices

2016-06-02 Thread Mark Cave-Ayland
Commit fcaafb1001b9c42817714dd3b2aadcfdb997b53d accidentally broke reads from scsi-disk devices when being updated from its original form to use the new byte-based block functions. Add the extra missing sector to offset conversion in order to restore read functionality. Signed-off-by: Mark Cave

Re: [Qemu-block] [Qemu-devel] [PATCH 4/7] scsi-disk: introduce dma_readv and dma_writev

2016-06-02 Thread Mark Cave-Ayland
On 03/06/16 03:56, xiaoqiang zhao wrote: > 在 2016年06月02日 03:07, Mark Cave-Ayland 写道: >> On 23/05/16 13:54, Paolo Bonzini wrote: >> >>> >These are replacements for blk_aio_preadv and blk_aio_pwritev that >>> allow >>> >customization of the d

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

2015-03-19 Thread Mark Cave-Ayland
FDCtrl *fdctrl = &sys->state; > > -fdctrl->sun4m = 1; > - > memory_region_init_io(&fdctrl->iomem, obj, &fdctrl_mem_strict_ops, >fdctrl, "fdctrl", 0x08); > sysbus_init_mmio(sbd, &fdctrl->iomem); > Hi Hervé, I can confirm that this fixes detection of the FDC on my Linux and BSD images so: Tested-by: Mark Cave-Ayland ATB, Mark.

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

2015-03-19 Thread Mark Cave-Ayland
On 17/03/15 06:43, Hervé Poussineau wrote: > 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 >>> don

Re: [Qemu-block] [Qemu-devel] [PATCH v2 0/3] Add new CD-ROM related qtests

2018-03-16 Thread Mark Cave-Ayland
reate mode 100644 tests/cdrom-test.c Hi Thomas, Nice work - looks like a good, comprehensive test of the -cdrom option. Acked-By: Mark Cave-Ayland ATB, Mark.

Re: [Qemu-block] [Qemu-devel] [RFC 01/13] hw/m68k: add via support

2018-06-09 Thread Mark Cave-Ayland
On 08/06/18 21:05, Laurent Vivier wrote: Signed-off-by: Laurent Vivier --- hw/input/adb.c| 99 - hw/misc/Makefile.objs | 1 + hw/misc/mac_via.c | 940 ++ include/hw/input/adb.h| 8 + include/hw/misc/mac_via.h

Re: [Qemu-block] [Qemu-devel] [RFC 03/13] escc: introduce a selector for the register bit

2018-06-09 Thread Mark Cave-Ayland
On 08/06/18 21:05, Laurent Vivier wrote: From: Laurent Vivier On Sparc and PowerMac, the bit 0 of the address selects the register type (control or data) and bit 1 selects the channel (B or A). On m68k Macintosh, the bit 0 selects the channel and bit 1 the register type. This patch introduce

Re: [Qemu-block] [Qemu-devel] [RFC 04/13] hw/m68k: add video card

2018-06-09 Thread Mark Cave-Ayland
On 08/06/18 21:05, Laurent Vivier wrote: From: Laurent Vivier Signed-off-by: Laurent Vivier --- arch_init.c | 4 + hw/display/Makefile.objs| 1 + hw/display/macfb-template.h | 158 + hw/display/macfb.c | 283 +++

Re: [Qemu-block] [Qemu-devel] [RFC 06/13] ESP: add pseudo-DMA as used by Macintosh

2018-06-09 Thread Mark Cave-Ayland
On 08/06/18 21:05, Laurent Vivier wrote: From: Laurent Vivier Signed-off-by: Laurent Vivier --- hw/mips/mips_jazz.c | 2 +- hw/scsi/esp.c | 330 +- include/hw/scsi/esp.h | 15 ++- 3 files changed, 313 insertions(+), 34 deletion

Re: [Qemu-block] [Qemu-devel] [RFC 09/13] hw/m68k: define Macintosh Quadra 800

2018-06-09 Thread Mark Cave-Ayland
On 08/06/18 21:05, Laurent Vivier wrote: From: Laurent Vivier Signed-off-by: Laurent Vivier --- default-configs/m68k-softmmu.mak | 12 ++ hw/display/macfb.c | 31 ++-- hw/m68k/Makefile.objs| 6 +- hw/m68k/bootinfo.h | 99 ++ hw/m68k/m

Re: [Qemu-block] [Qemu-devel] [RFC 01/13] hw/m68k: add via support

2018-06-09 Thread Mark Cave-Ayland
On 09/06/18 11:01, Mark Cave-Ayland wrote: Yeah, we can certainly remove a huge chunk of this by converting over to the mos6522 device. My last set of updates to CUDA a couple of days ago are probably the best reference, but I can probably find some time to do the basic conversion for you at

[Qemu-block] [PATCH 2/2] macio: switch over to new byte-aligned DMA helpers

2016-10-09 Thread Mark Cave-Ayland
Now that the DMA helpers are byte-aligned they can be called directly from the macio routines rather than emulating byte-aligned accesses via multiple block-level accesses. Signed-off-by: Mark Cave-Ayland --- hw/ide/macio.c | 213 1 file

[Qemu-block] [PATCH 1/2] dma-helpers: explicitly pass alignment into dma-helpers

2016-10-09 Thread Mark Cave-Ayland
The hard-coded default alignment is BDRV_SECTOR_SIZE, however this is not necessarily the case for all platforms. Use this as the default alignment for all current callers. Signed-off-by: Mark Cave-Ayland --- dma-helpers.c| 20 +++- hw/block/nvme.c |6

[Qemu-block] [PATCH 0/2] dma-helpers: explicitly pass alignment into dma-helpers

2016-10-09 Thread Mark Cave-Ayland
parameter as suggested by Paolo above, whilst patch 2 performs the conversion for the macio controller. Signed-off-by: Mark Cave-Ayland Mark Cave-Ayland (2): dma-helpers: explicitly pass alignment into dma-helpers macio: switch over to new byte-aligned DMA helpers dma-helpers.c| 20

Re: [Qemu-block] [Qemu-devel] [PATCH 1/2] dma-helpers: explicitly pass alignment into dma-helpers

2016-10-10 Thread Mark Cave-Ayland
On 10/10/16 17:34, Eric Blake wrote: > On 10/09/2016 11:43 AM, Mark Cave-Ayland wrote: >> The hard-coded default alignment is BDRV_SECTOR_SIZE, however this is not >> necessarily the case for all platforms. Use this as the default alignment for >> all current callers. >

Re: [Qemu-block] [Qemu-devel] [RFC v3 00/10] hw/m68k: add Apple Machintosh Quadra 800 machine

2018-06-29 Thread Mark Cave-Ayland
On 28/06/18 00:29, Laurent Vivier wrote: I'm rebasing some of these patches for seven years now, too many years... if you want to test the machine, I'm sorry, it doesn't boot a MacROM, but you can boot a linux kernel from the command line. You can install your own disk using debian-installer,

Re: [Qemu-block] [Qemu-devel] [RFC v3 02/10] ADB: VIA probes ADB bus when it is idle

2018-06-29 Thread Mark Cave-Ayland
On 28/06/18 00:29, Laurent Vivier wrote: Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/input/adb-kbd.c| 4 ++ hw/input/adb-mouse.c | 4 ++ hw/input/adb.c| 115

Re: [Qemu-block] [Qemu-devel] [RFC v3 07/10] hw/m68k: add Nubus support

2018-06-29 Thread Mark Cave-Ayland
On 28/06/18 00:29, Laurent Vivier wrote: Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/Makefile.objs| 1 + hw/display/macfb.c | 56 ++ hw/nubus/Makefile.objs | 4 + hw

[Qemu-block] How to generate custom fw paths for IDE devices?

2018-07-18 Thread Mark Cave-Ayland
Hi all, Following on from a couple of patches I've previously posted to the mailing list at https://lists.gnu.org/archive/html/qemu-devel/2018-06/msg08836.html I've made some good progress with trying to add bootindex support to OpenBIOS but I'm stuck with generating the IDE device paths from

Re: [Qemu-block] [Qemu-devel] How to generate custom fw paths for IDE devices?

2018-07-19 Thread Mark Cave-Ayland
On 19/07/18 09:10, Thomas Huth wrote: On 18.07.2018 23:13, Mark Cave-Ayland wrote: Hi all, Following on from a couple of patches I've previously posted to the mailing list at https://lists.gnu.org/archive/html/qemu-devel/2018-06/msg08836.html I've made some good progress with try

Re: [Qemu-block] [Qemu-devel] How to generate custom fw paths for IDE devices?

2018-07-19 Thread Mark Cave-Ayland
On 19/07/18 09:29, Laszlo Ersek wrote: (updating Marcel's address to his GMail one) On 07/18/18 23:13, Mark Cave-Ayland wrote: Hi all, Following on from a couple of patches I've previously posted to the mailing list at https://lists.gnu.org/archive/html/qemu-devel/2018-06/msg08836

Re: [Qemu-block] [Qemu-devel] How to generate custom fw paths for IDE devices?

2018-07-27 Thread Mark Cave-Ayland
On 25/07/18 14:03, Paolo Bonzini wrote: It's possible as long as you don't add any members. You can add a new const char* argument to ide_bus_new, and call it from cmd646. However, another possibility is to implement the FWPathProvider interface in the sun4u machine type. See hw/ppc/spapr.c f

Re: [Qemu-block] [Qemu-devel] How to generate custom fw paths for IDE devices?

2018-07-27 Thread Mark Cave-Ayland
On 27/07/18 11:47, Paolo Bonzini wrote: On 27/07/2018 12:43, Mark Cave-Ayland wrote: The issue here seems to be that according to "info qtree" there is *always* an ide-cd device plugged into the location equivalent to that of -cdrom, and so with the above command QEMU ends up addin

Re: [Qemu-block] [Qemu-devel] [PATCH v7 10/10] hw/m68k: define Macintosh Quadra 800

2019-05-27 Thread Mark Cave-Ayland
ve file=debian-9.0-m68k-NETINST-1.iso \ > -drive file=m68k.qcow2,format=qcow2 \ > -nographic > > If you use a graphic adapter instead of "-nographic", you can use "-g" to set > the > size of the display (I use "-g 1600x800x24"). &

Re: [Qemu-block] [Qemu-devel] [PATCH v8 00/10] hw/m68k: add Apple Machintosh Quadra 800 machine

2019-06-22 Thread Mark Cave-Ayland
erties from SWIM floppy controller and instead > expose separate floppy bus and drive devices as requested by Kevin > > v3: fix subject prefix "C" -> "RFC" > > v2: remove the dp8393x fixes, because one of the patch breaks something > Update "

Re: [PATCH 1/2] ide: Make room for flags in PCIIDEState and add one for legacy IRQ routing

2020-03-01 Thread Mark Cave-Ayland
On 29/02/2020 23:02, BALATON Zoltan wrote: > We'll need a flag for implementing some device specific behaviour in > via-ide but we already have a currently CMD646 specific field that can > be repurposed for this and leave room for furhter flags if needed in > the future. This patch changes the "se

  1   2   3   4   >