Received: from eggs.gnu.org ([2001:4830:134:3::10]:58527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esnNE-00058W-Nw for qemu-devel@nongnu.org; Mon, 05 Mar 2018 05:29:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esnN9-0003Cy-Mq for qemu-devel@nongnu.org; Mon, 05 Mar 2018 05:29:40 -0500 Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:45117) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1esnN9-0003CV-GH for qemu-devel@nongnu.org; Mon, 05 Mar 2018 05:29:35 -0500 Received: by mail-wr0-x229.google.com with SMTP id p104so16638155wrc.12 for ; Mon, 05 Mar 2018 02:29:35 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= References: <20171026064635.7179-1-aik@ozlabs.ru> <13277057-669f-cd77-95f1-f0e54f7ae222@redhat.com> <7e694888-43ce-6653-92a0-c0b4c235d4ca@ozlabs.ru> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Mon, 5 Mar 2018 07:29:32 -0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH qemu] fdc: Exit if ISA controller does not support DMA List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Herv=c3=a9_Poussineau?= , John Snow , Alexey Kardashevskiy , qemu-devel@nongnu.org, Richard Henderson Cc: Markus Armbruster , Paolo Bonzini On 10/26/2017 03:46 AM, Alexey Kardashevskiy wrote: > A "powernv" machine type defines an ISA bus but it does not add any > DMA > controller to it so it is possible to hit assert(fdctrl->dma) by > adding "-machine powernv -device isa-fdc". The same happens with the Alpha machine. On 12/13/2017 03:19 AM, Hervé Poussineau wrote: > Le 08/12/2017 à 22:29, John Snow a écrit : > [...] >> >> It looks like Herve was working on decoupling floppies from i8257, but >> perhaps didn't get all the way through -- I'm not actually clear on what >> work remains to be done here, maybe he can chime in if he's still >> interested in the project? >> > > Indeed, I worked on decoupling floppies (and other ISA devices) from > i8257, for three reasons: > 1) having a working floppy on MIPS Magnum machine. fdc is PC-compatible, > but DMA controller is not i8257-compatible. > 2) reimplement another ISA bus with a somewhat i8257-compatible DMA > 3) for fun, support multiple ISA buses on a same machine but on > different PCI bridges. > > I failed on point 1), mostly due to lack of documentation. > I succeeded on point 2), by having locally some patches for a ISAPNP > bus, where IO/IRQ/DMA addresses of ISA devices can change dynamically, > and devices can be discovered by operating system. > About point 3, most of the patches are ready, but some details are still > to be fixed. I'm having hard time refactoring all these PC chipsets, I'll make some room to send my current work as RFC before soft freeze. Regards, Phil.