Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FRt84-0006M6-Kl for qemu-devel@nongnu.org; Fri, 07 Apr 2006 11:44:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FRt82-0006Lr-Vq for qemu-devel@nongnu.org; Fri, 07 Apr 2006 11:44:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FRt82-0006Lk-T6 for qemu-devel@nongnu.org; Fri, 07 Apr 2006 11:44:06 -0400 Received: from [65.54.175.21] (helo=hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FRtC2-0007j2-4w for qemu-devel@nongnu.org; Fri, 07 Apr 2006 11:48:14 -0400 Message-ID: From: "Blue Swirl" Subject: Re: [Qemu-devel] SPARC iommu mapping Date: Fri, 07 Apr 2006 17:44:00 +0200 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_8a0_4a16_75e6" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: jplatte@naasa.net, qemu-devel@nongnu.org This is a multi-part message in MIME format. ------=_NextPart_000_8a0_4a16_75e6 Content-Type: text/plain; format=flowed Thank you for the excellent analysis of the problem! Looks like Qemu doesn't handle the case where DMA length and SCSI length are not equal. >Until here, the addresses are subsequent. Then the next address is much >lower: So Linux splits the transfer into two parts to use two separate pieces of buffers. Funny, I thought this situation was exactly the one which virtually addressed DMA would prevent from happening. >What is expected, when the number of bytes from the transfer register have >been read? Should the hardware raise an interrupt? And if yes, which flags >must be set? Yes, there will be an interrupt. I didn't find this situation in the NCR53C9X.txt file documenting the ESP, though. There are two cases: 1 - DMA length shorter than SCSI (your case) 2 - SCSI length shorter (could happen in command replies etc.) Maybe this patch helps? _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.com/ ------=_NextPart_000_8a0_4a16_75e6 Content-Type: application/octet-stream; name="qemu-sparc.patch-52.bz2" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="qemu-sparc.patch-52.bz2" QlpoOTFBWSZTWSrl7AkAAsBfgGJwU////+8nfg6/7//+UAPY9IKpQUUHAMIw mmIYBAMgBhGmTJhGAhocAwjCaYhgEAyAGEaZMmEYCGgkKImp5U21NT1PU8oN PKAAaAB6mgAGQGhwDCMJpiGAQDIAYRpkyYRgIaCSIg0TSeJqp+Ke1Jqepmap 5HpGmEPUR6h6jR4oep+imcyJIYxcjNoy4ZmzwTIQhCLMf7ppp3U46CjLGXOx obKFSWsRgwjKxX1qFtiQsUDaEwEsMG3eQg6oUk6h9Q2nOKHaOzxH7B5mHaKW k0GvkfmRLlyJZOEtRTsL/szZR2oCB2wDeKpxuwevlY8GEynhLyLQYhs+RqoF gNag1lgbDfZWlq/OdutxUY29NLsNe3IFut3G+bGnyy3AvFpWpmnHp1HVY5Na L2i3cYjKbhw2i9RQ2Ujpdz1DJ14nlBY1spT49w0q7jroTMpNtOmJkSwSGqCR CCVJx1WjavZcdBGhWQmaO85OR2W+32N8s0Sa5I1jTm3bgivwGsSEbgjXO24O EN4NIWo+LgYn1JiYvJhubIBA7xOBfsRrIPAaKT6A+RSSiq70VzvolbMY5kkG 3lwaoFhdTUXFS03aO2gZSZSz62F1MfSfeSlW3x96ooGH4+nigfzOv1f94kQ2 OOMSGF94Ur5zFC9Q0Bz0hFpPQI7aIj6F6Y+P08BYcR+gOd+0VIqcBMTGHhnD Z3IJoCqF3VHeKaAqnUBTBDsA7VcD9QI612B9OnE51znLtD4TBMcozi0bwyq9 oPxH7PWe+p3cxEuHxodVaqm4ZP4BZv7hAS7A6EnSD1mUWVMlAxcoDgl4f9A2 q1mF9BggFJQuYrtJxNfSDc8usP9FUvf/fwgIaweIwfcg12i8wzjidaA0qxhI pMF9gmElyh4hcgrNAR4FpGUQjeWDzAjfLAqC8czF6cNY4kRKzyFoPHTpmzpV XpMqgm6DUZz0KSVm+OqAkFDmsk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