Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-25 Thread BALATON Zoltan
On Wed, 25 Jun 2014, Mark Cave-Ayland wrote: On 24/06/14 11:53, BALATON Zoltan wrote: All I can say is that debugging this stuff isn't easy, particularly with MorphOS which has some rather unusual behaviours. But what we really need from you now over the next few days is for you to compare the d

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-25 Thread Mark Cave-Ayland
On 24/06/14 11:53, BALATON Zoltan wrote: All I can say is that debugging this stuff isn't easy, particularly with MorphOS which has some rather unusual behaviours. But what we really need from you now over the next few days is for you to compare the debug output between the working and non-worki

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-24 Thread Alexander Graf
On 24.06.14 14:07, Kevin Wolf wrote: Am 24.06.2014 um 13:27 hat Alexander Graf geschrieben: On 24.06.14 13:22, Kevin Wolf wrote: Am 24.06.2014 um 13:02 hat Alexander Graf geschrieben: The way DBDMA works is that you put in something similar to a scatter-gather list: A list of chunks to read /

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-24 Thread Kevin Wolf
Am 24.06.2014 um 13:27 hat Alexander Graf geschrieben: > > On 24.06.14 13:22, Kevin Wolf wrote: > >Am 24.06.2014 um 13:02 hat Alexander Graf geschrieben: > >>The way DBDMA works is that you put in something similar to a > >>scatter-gather list: A list of chunks to read / write and where in > >>mem

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-24 Thread Alexander Graf
On 24.06.14 13:22, Kevin Wolf wrote: Am 24.06.2014 um 13:02 hat Alexander Graf geschrieben: The way DBDMA works is that you put in something similar to a scatter-gather list: A list of chunks to read / write and where in memory those chunks live. DBDMA then goes over its list and does the pokes

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-24 Thread Kevin Wolf
Am 24.06.2014 um 13:02 hat Alexander Graf geschrieben: > The way DBDMA works is that you put in something similar to a > scatter-gather list: A list of chunks to read / write and where in > memory those chunks live. DBDMA then goes over its list and does the > pokes. So for example if the list is >

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-24 Thread Alexander Graf
On 24.06.14 12:53, BALATON Zoltan wrote: On Mon, 23 Jun 2014, Mark Cave-Ayland wrote: On 23/06/14 20:26, BALATON Zoltan wrote: (add Kevin to CC) I'm afraid as you're the only person that can boot MorphOS this far then we need you to diagnose and suggest a suitable alternative by comparing th

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-24 Thread BALATON Zoltan
On Mon, 23 Jun 2014, Mark Cave-Ayland wrote: On 23/06/14 20:26, BALATON Zoltan wrote: (add Kevin to CC) I'm afraid as you're the only person that can boot MorphOS this far then we need you to diagnose and suggest a suitable alternative by comparing the before and after output. Since MacOS is a

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-24 Thread Kevin Wolf
Am 24.06.2014 um 00:41 hat Mark Cave-Ayland geschrieben: > On 23/06/14 20:26, BALATON Zoltan wrote: > > (add Kevin to CC) > > >>>I'm afraid as you're the only person that can boot MorphOS this far > >>>then we need you to diagnose and suggest a suitable alternative by > >>>comparing the before an

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-23 Thread Mark Cave-Ayland
On 23/06/14 20:26, BALATON Zoltan wrote: (add Kevin to CC) I'm afraid as you're the only person that can boot MorphOS this far then we need you to diagnose and suggest a suitable alternative by comparing the before and after output. Since MacOS is already a supported client then if no solution

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-23 Thread BALATON Zoltan
On Fri, 20 Jun 2014, Mark Cave-Ayland wrote: On 04/06/14 13:44, Alexander Graf wrote: From: Mark Cave-Ayland Currently the macio DMA routines assume that all DMA requests are for read/write block transfers. This is not always the case for ATAPI, for example when requesting a TOC where the r

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-23 Thread BALATON Zoltan
On Mon, 23 Jun 2014, Alexander Graf wrote: On 20.06.14 21:27, Mark Cave-Ayland wrote: On 20/06/14 20:17, BALATON Zoltan wrote: On Fri, 20 Jun 2014, Mark Cave-Ayland wrote: Zoltan, please can you test the attached patch to see if this still allows MorphOS to boot? Unfortunately it seems Morp

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-23 Thread Alexander Graf
On 20.06.14 21:27, Mark Cave-Ayland wrote: On 20/06/14 20:17, BALATON Zoltan wrote: On Fri, 20 Jun 2014, Mark Cave-Ayland wrote: Zoltan, please can you test the attached patch to see if this still allows MorphOS to boot? Unfortunately it seems MorphOS cannot boot with this patch. It hangs w

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-20 Thread BALATON Zoltan
On Fri, 20 Jun 2014, Mark Cave-Ayland wrote: And also with ATAPI debugging enabled? I suspect the problem is with the interaction between the DMA/ATAPI systems again. I forgot that one. I've now rerun with DEBUG_IDE_ATAPI enabled. Here is with the patch failing: DBDMA: writel 0x0

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-20 Thread Mark Cave-Ayland
On 20/06/14 20:17, BALATON Zoltan wrote: On Fri, 20 Jun 2014, Mark Cave-Ayland wrote: Zoltan, please can you test the attached patch to see if this still allows MorphOS to boot? Unfortunately it seems MorphOS cannot boot with this patch. It hangs while trying to read the TOC from the CD. Debu

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-20 Thread BALATON Zoltan
On Fri, 20 Jun 2014, Mark Cave-Ayland wrote: Zoltan, please can you test the attached patch to see if this still allows MorphOS to boot? Unfortunately it seems MorphOS cannot boot with this patch. It hangs while trying to read the TOC from the CD. Debug output with DEBUG_MACIO and DEBUG_DBDMA

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-20 Thread Mark Cave-Ayland
On 04/06/14 13:44, Alexander Graf wrote: From: Mark Cave-Ayland Currently the macio DMA routines assume that all DMA requests are for read/write block transfers. This is not always the case for ATAPI, for example when requesting a TOC where the response is generated directly in the IDE buffer.

[Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-04 Thread Alexander Graf
From: Mark Cave-Ayland Currently the macio DMA routines assume that all DMA requests are for read/write block transfers. This is not always the case for ATAPI, for example when requesting a TOC where the response is generated directly in the IDE buffer. Detect these non-block ATAPI DMA transfers