2014-02-14 08:52:48

by poma

[permalink] [raw]
Subject: [dma-debug.c - DMA-API] exceeded overlapping … & sym53c8xx … tries to free DMA …


Ahoy!

Perhaps this is already solved, but I made ​​the effort to test & record
all of this, therefore here you are. :)

https://bugzilla.redhat.com/show_bug.cgi?id=1062833

0.
VirtIO disk - virtio-pc OK:
- lspci-knn-3.14.0-0.rc2.git2.1.fc21.x86_64-virtio-pc-virtio-disk-OK
https://bugzilla.redhat.com/attachment.cgi?id=863135
- dmesg-3.14.0-0.rc2.git2.1.fc21.x86_64-virtio-pc-virtio-disk-OK
https://bugzilla.redhat.com/attachment.cgi?id=863136


1.
IDE disk - ata_piix:
- lspci-knn-3.14.0-0.rc2.git2.1.fc21.x86_64-ata_piix-ide-disk
https://bugzilla.redhat.com/attachment.cgi?id=863137
- dmesg-3.14.0-0.rc2.git2.1.fc21.x86_64-ata_piix-ide-disk
"WARNING: CPU: 0 PID: 1328 at lib/dma-debug.c:491
add_dma_entry+0x127/0x130()"
"DMA-API: exceeded 7 overlapping mappings of pfn 2137"
https://bugzilla.redhat.com/attachment.cgi?id=863138


2.
SATA disk - ahci:
- lspci-knn-3.14.0-0.rc2.git2.1.fc21.x86_64-ahci-sata-disk
https://bugzilla.redhat.com/attachment.cgi?id=863139
- dmesg-3.14.0-0.rc2.git2.1.fc21.x86_64-ahci-sata-disk
"WARNING: CPU: 0 PID: 1543 at lib/dma-debug.c:491
add_dma_entry+0x127/0x130()"
"DMA-API: exceeded 7 overlapping mappings of pfn 2137"
https://bugzilla.redhat.com/attachment.cgi?id=863140


3.
SCSI disk - sym53c8xx:
- lspci-knn-3.14.0-0.rc2.git2.1.fc21.x86_64-sym53c8xx-scsi-disk
https://bugzilla.redhat.com/attachment.cgi?id=863151
- dmesg-3.14.0-0.rc2.git2.1.fc21.x86_64-sym53c8xx-scsi-disk
"WARNING: CPU: 1 PID: 1514 at lib/dma-debug.c:491
add_dma_entry+0x127/0x130()"
"DMA-API: exceeded 7 overlapping mappings of pfn 2137"
~~
"WARNING: CPU: 1 PID: 1514 at lib/dma-debug.c:1041
check_unmap+0x8b7/0x9b0()"
"sym53c8xx 0000:00:07.0: DMA-API: device driver tries to free DMA memory
it has not allocated [device address=0x0000000002137000] [size=512 bytes]"
https://bugzilla.redhat.com/attachment.cgi?id=863152


4.
VirtIO SCSI disk - 'virtio-scsi' & sym53c8xx:
- lspci-knn-3.14.0-0.rc2.git2.1.fc21.x86_64-sym53c8xx-virtio-scsi-disk
https://bugzilla.redhat.com/attachment.cgi?id=863153
- dmesg-3.14.0-0.rc2.git2.1.fc21.x86_64-sym53c8xx-virtio-scsi-disk
"WARNING: CPU: 0 PID: 1530 at lib/dma-debug.c:491
add_dma_entry+0x127/0x130()"
"DMA-API: exceeded 7 overlapping mappings of pfn 2137"
~~
"WARNING: CPU: 0 PID: 1530 at lib/dma-debug.c:1041
check_unmap+0x8b7/0x9b0()"
"sym53c8xx 0000:00:07.0: DMA-API: device driver tries to free DMA memory
it has not allocated [device address=0x0000000002137000] [size=512 bytes]"
https://bugzilla.redhat.com/attachment.cgi?id=863154


5.
USB disk - usb-storage:
- lspci-knn-3.14.0-0.rc2.git2.1.fc21.x86_64-usb-storage-usb-disk
https://bugzilla.redhat.com/attachment.cgi?id=863156
- lsusb-3.14.0-0.rc2.git2.1.fc21.x86_64-usb-storage-usb-disk
https://bugzilla.redhat.com/attachment.cgi?id=863157
- lsusb-t-3.14.0-0.rc2.git2.1.fc21.x86_64-usb-storage-usb-disk
https://bugzilla.redhat.com/attachment.cgi?id=863158
- dmesg-3.14.0-0.rc2.git2.1.fc21.x86_64-usb-storage-usb-disk
"WARNING: CPU: 0 PID: 415 at lib/dma-debug.c:491
add_dma_entry+0x127/0x130()"
"DMA-API: exceeded 7 overlapping mappings of pfn 2137"
https://bugzilla.redhat.com/attachment.cgi?id=863159


Tested with:
http://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/x86_64/os/images/
boot.iso 13-Feb-2014 15:45 362M

checkisomd5:
boot.iso: 434371185df324e28ff5652891ae4ea8
Fragment sums: 5a3e92cebf4721fcfad3e317bff6ac4ec9df98fedd9f53c3c3f2ed55c337
Fragment count: 20
Press [Esc] to abort check.
Checking: 100.0%

The media check is complete, the result is: PASS.

It is OK to use this media.

sha256sum:
2b6aac6e9b55c5f49f251340a4c28e091998f9fe3a6bdba7542f0f9b2d69ba8c boot.iso


poma


2014-02-14 09:14:43

by Stanislaw Gruszka

[permalink] [raw]
Subject: Re: [dma-debug.c - DMA-API] exce eded overlapping … & sym53c8xx … tries to free DMA …

On Fri, Feb 14, 2014 at 09:52:37AM +0100, poma wrote:
>
> Ahoy!
>
> Perhaps this is already solved, but I made ​​the effort to test & record
> all of this, therefore here you are. :)
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1062833

There is patch posted for this problem
http://marc.info/?l=linux-kernel&m=139233546223338&w=2
It is under review currently, if there will be no complains it will be
applied.

Stanislaw

2014-02-14 18:20:46

by poma

[permalink] [raw]
Subject: Re: [dma-debug.c - DMA-API] exceeded over lapping … & sym53c8xx … tries to free DMA …

On 14.02.2014 10:16, Stanislaw Gruszka wrote:
> On Fri, Feb 14, 2014 at 09:52:37AM +0100, poma wrote:
>>
>> Ahoy!
>>
>> Perhaps this is already solved, but I made ​​the effort to test & record
>> all of this, therefore here you are. :)
>>
>> https://bugzilla.redhat.com/show_bug.cgi?id=1062833
>
> There is patch posted for this problem
> http://marc.info/?l=linux-kernel&m=139233546223338&w=2
> It is under review currently, if there will be no complains it will be
> applied.
>
> Stanislaw
>

Thanks!
I have a few questions but the weekend begins, so we'll leave it for
later. :)
See ya!


poma

2014-02-17 14:40:19

by poma

[permalink] [raw]
Subject: Re: [dma-debug.c - DMA-API] exceeded over lapping … & sym53c8xx … tries to free DMA …

On 14.02.2014 19:20, poma wrote:
> On 14.02.2014 10:16, Stanislaw Gruszka wrote:
>> On Fri, Feb 14, 2014 at 09:52:37AM +0100, poma wrote:
>>>
>>> Ahoy!
>>>
>>> Perhaps this is already solved, but I made ​​the effort to test & record
>>> all of this, therefore here you are. :)
>>>
>>> https://bugzilla.redhat.com/show_bug.cgi?id=1062833
>>
>> There is patch posted for this problem
>> http://marc.info/?l=linux-kernel&m=139233546223338&w=2
>> It is under review currently, if there will be no complains it will be
>> applied.
>>
>> Stanislaw
>>
>
> Thanks!
> I have a few questions but the weekend begins, so we'll leave it for
> later. :)
> See ya!

https://bugzilla.redhat.com/show_bug.cgi?id=1062833

IDE disk - ata_piix - dmesg - OK
https://bugzilla.redhat.com/attachment.cgi?id=864085

SATA disk - ahci - dmesg - OK
https://bugzilla.redhat.com/attachment.cgi?id=864086

SCSI disk - sym53c8xx - dmesg - OK
https://bugzilla.redhat.com/attachment.cgi?id=864087

VirtIO SCSI disk - virtio_scsi - dmesg - OK
https://bugzilla.redhat.com/attachment.cgi?id=864088

USB disk - usb_storage - dmesg - OK
https://bugzilla.redhat.com/attachment.cgi?id=864089

Test media - 'boot-fix-dma-debug-overlap-v2.iso',
http://goo.gl/UJSfVn
sha256sum:
6d6b36fdcb0a0ff662ff6a27048d6d5f35ac211c34439f75bba1d524b3507e82
boot-fix-dma-debug-overlap-v2.iso

Contains 'kernel-3.14.0-0.rc2.git4.1.fc21.x86_64'
based on Rawhide 'kernel-3.14.0-0.rc2.git4.1.fc21'
http://koji.fedoraproject.org/koji/buildinfo?buildID=498404
with the addition of Dan's 'fix-dma-debug-overlap-v2.patch'
"Fix dma debug v2: account for cachelines and read-only mappings in
overlap tracking"
http://marc.info/?l=linux-netdev&m=139233546723342&q=raw


All tests are PASSED.

_
( \
\ \
____) \
(___) ―――
(___)
(___)
(__)――――――――



poma

2014-02-18 19:36:57

by Dan Williams

[permalink] [raw]
Subject: Re: [dma-debug.c - DMA-API] exceeded overlapping ... & sym53c8xx ... tries to free DMA ...

On Mon, Feb 17, 2014 at 6:40 AM, poma <[email protected]> wrote:
> On 14.02.2014 19:20, poma wrote:
>> On 14.02.2014 10:16, Stanislaw Gruszka wrote:
>>> On Fri, Feb 14, 2014 at 09:52:37AM +0100, poma wrote:
>>>>
>>>> Ahoy!
>>>>
>>>> Perhaps this is already solved, but I made the effort to test & record
>>>> all of this, therefore here you are. :)
>>>>
>>>> https://bugzilla.redhat.com/show_bug.cgi?id=1062833
>>>
>>> There is patch posted for this problem
>>> http://marc.info/?l=linux-kernel&m=139233546223338&w=2
>>> It is under review currently, if there will be no complains it will be
>>> applied.
>>>
>>> Stanislaw
>>>
>>
>> Thanks!
>> I have a few questions but the weekend begins, so we'll leave it for
>> later. :)
>> See ya!
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1062833
>
> IDE disk - ata_piix - dmesg - OK
> https://bugzilla.redhat.com/attachment.cgi?id=864085
>
> SATA disk - ahci - dmesg - OK
> https://bugzilla.redhat.com/attachment.cgi?id=864086
>
> SCSI disk - sym53c8xx - dmesg - OK
> https://bugzilla.redhat.com/attachment.cgi?id=864087
>
> VirtIO SCSI disk - virtio_scsi - dmesg - OK
> https://bugzilla.redhat.com/attachment.cgi?id=864088
>
> USB disk - usb_storage - dmesg - OK
> https://bugzilla.redhat.com/attachment.cgi?id=864089
>
> Test media - 'boot-fix-dma-debug-overlap-v2.iso',
> http://goo.gl/UJSfVn
> sha256sum:
> 6d6b36fdcb0a0ff662ff6a27048d6d5f35ac211c34439f75bba1d524b3507e82
> boot-fix-dma-debug-overlap-v2.iso
>
> Contains 'kernel-3.14.0-0.rc2.git4.1.fc21.x86_64'
> based on Rawhide 'kernel-3.14.0-0.rc2.git4.1.fc21'
> http://koji.fedoraproject.org/koji/buildinfo?buildID=498404
> with the addition of Dan's 'fix-dma-debug-overlap-v2.patch'
> "Fix dma debug v2: account for cachelines and read-only mappings in
> overlap tracking"
> http://marc.info/?l=linux-netdev&m=139233546723342&q=raw
>
>
> All tests are PASSED.
>
> _
> ( \
> \ \
> ____) \
> (___) ------
> (___)
> (___)
> (__)----------------
>
>
>
> poma

Thanks for the in-depth regression test and report. Much appreciated!

--
Dan

2014-02-19 04:44:45

by poma

[permalink] [raw]
Subject: Re: [dma-debug.c - DMA-API] exceeded overlapping ... & sym53c8xx ... tries to free DMA ...

On 18.02.2014 20:36, Dan Williams wrote:
> On Mon, Feb 17, 2014 at 6:40 AM, poma <[email protected]> wrote:
>> On 14.02.2014 19:20, poma wrote:
>>> On 14.02.2014 10:16, Stanislaw Gruszka wrote:
>>>> On Fri, Feb 14, 2014 at 09:52:37AM +0100, poma wrote:
>>>>>
>>>>> Ahoy!
>>>>>
>>>>> Perhaps this is already solved, but I made the effort to test & record
>>>>> all of this, therefore here you are. :)
>>>>>
>>>>> https://bugzilla.redhat.com/show_bug.cgi?id=1062833
>>>>
>>>> There is patch posted for this problem
>>>> http://marc.info/?l=linux-kernel&m=139233546223338&w=2
>>>> It is under review currently, if there will be no complains it will be
>>>> applied.
>>>>
>>>> Stanislaw
>>>>
>>>
>>> Thanks!
>>> I have a few questions but the weekend begins, so we'll leave it for
>>> later. :)
>>> See ya!
>>
>> https://bugzilla.redhat.com/show_bug.cgi?id=1062833
>>
>> IDE disk - ata_piix - dmesg - OK
>> https://bugzilla.redhat.com/attachment.cgi?id=864085
>>
>> SATA disk - ahci - dmesg - OK
>> https://bugzilla.redhat.com/attachment.cgi?id=864086
>>
>> SCSI disk - sym53c8xx - dmesg - OK
>> https://bugzilla.redhat.com/attachment.cgi?id=864087
>>
>> VirtIO SCSI disk - virtio_scsi - dmesg - OK
>> https://bugzilla.redhat.com/attachment.cgi?id=864088
>>
>> USB disk - usb_storage - dmesg - OK
>> https://bugzilla.redhat.com/attachment.cgi?id=864089
>>
>> Test media - 'boot-fix-dma-debug-overlap-v2.iso',
>> http://goo.gl/UJSfVn
>> sha256sum:
>> 6d6b36fdcb0a0ff662ff6a27048d6d5f35ac211c34439f75bba1d524b3507e82
>> boot-fix-dma-debug-overlap-v2.iso
>>
>> Contains 'kernel-3.14.0-0.rc2.git4.1.fc21.x86_64'
>> based on Rawhide 'kernel-3.14.0-0.rc2.git4.1.fc21'
>> http://koji.fedoraproject.org/koji/buildinfo?buildID=498404
>> with the addition of Dan's 'fix-dma-debug-overlap-v2.patch'
>> "Fix dma debug v2: account for cachelines and read-only mappings in
>> overlap tracking"
>> http://marc.info/?l=linux-netdev&m=139233546723342&q=raw
>>
>>
>> All tests are PASSED.
>>
>> _
>> ( \
>> \ \
>> ____) \
>> (___) ------
>> (___)
>> (___)
>> (__)----------------
>>
>>
>>
>> poma
>
> Thanks for the in-depth regression test and report. Much appreciated!
>
> --
> Dan
>

You're welcome. ;)
Thanks for the patch.


poma