All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Hancock <hancockrwd@gmail.com>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: cebbert@redhat.com, linux-ide@vger.kernel.org, wes.shull@gmail.com
Subject: Re: sata_nv frees DMA memory with different size (possibly a generic libata bug)
Date: Thu, 19 Feb 2009 20:58:35 -0600	[thread overview]
Message-ID: <499E1C5B.1050207@gmail.com> (raw)
In-Reply-To: <20090219220901R.fujita.tomonori@lab.ntt.co.jp>

FUJITA Tomonori wrote:
> On Wed, 18 Feb 2009 17:05:44 -0500
> Chuck Ebbert <cebbert@redhat.com> wrote:
> 
>> On Wed, 18 Feb 2009 15:25:16 -0500
>> Chuck Ebbert <cebbert@redhat.com> wrote:
>>
>>> On Tue, 17 Feb 2009 20:22:05 +0900
>>> FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> wrote:
>>>
>>>  
>>>>>>>> sata_nv 0000:00:0d.0: DMA-API: device driver frees DMA memory with different
>>>>>>>> size [device address=0x00000000da031000] [map size=4096 bytes] [unmap
>>>>>>> That's rather curious. It seems to be saying that the sg length is 
>>>>>>> different between the map and unmap, but it doesn't look like sata_nv 
>>>>>>> mucks with that anywhere, and neither does libata core..
>>>>>> Could the SCSI code have merged two requests?
>>>>> I wouldn't think so.. and if it did it seems like it would have to have 
>>>>> changed the list after libata got the request somehow..
>>>> Does this box uses GART IOMMU?
>>> I don't think so, but I've asked for the dmesg.
>> Okay, it _is_ using GART IOMMU:
>>
>> DMA-API: preallocated 8192 debug entries
>> DMA-API: debugging enabled by kernel config
>> PCI-DMA: Disabling AGP.
>> PCI-DMA: aperture base @ 20000000 size 65536 KB
>> PCI-DMA: using GART IOMMU.
>> PCI-DMA: Reserving 64MB of IOMMU area in the AGP aperture
> 
> Thanks, that makes sense.
> 
> I think that the following patch could fix this:
> 
> http://marc.info/?l=linux-ide&m=123484533504307&w=2

The patch looks reasonable to me. I'm CCing the reporter of the bug. 
Wes, would you be able to test out Fujita's patch linked above?

  reply	other threads:[~2009-02-20  2:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-12 21:39 sata_nv frees DMA memory with different size (possibly a generic libata bug) Chuck Ebbert
2009-02-13  3:03 ` Robert Hancock
2009-02-16 21:36   ` Chuck Ebbert
2009-02-17  2:53     ` Robert Hancock
2009-02-17 11:22       ` FUJITA Tomonori
2009-02-18 20:25         ` Chuck Ebbert
2009-02-18 22:05           ` Chuck Ebbert
2009-02-19 13:09             ` FUJITA Tomonori
2009-02-20  2:58               ` Robert Hancock [this message]
2009-02-20 11:20                 ` Wes Shull
2009-02-21  6:57                   ` FUJITA Tomonori
2009-02-21  9:57                     ` Wes Shull
2009-02-21 19:02                       ` Robert Hancock
2009-02-22  9:39                         ` FUJITA Tomonori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=499E1C5B.1050207@gmail.com \
    --to=hancockrwd@gmail.com \
    --cc=cebbert@redhat.com \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=linux-ide@vger.kernel.org \
    --cc=wes.shull@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.