<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/lib/dma-debug.c, branch v2.6.30</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v2.6.30</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v2.6.30'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2009-04-26T16:23:56Z</updated>
<entry>
<title>dma-debug: remove broken dma memory leak detection for 2.6.30</title>
<updated>2009-04-26T16:23:56Z</updated>
<author>
<name>Joerg Roedel</name>
<email>joerg.roedel@amd.com</email>
</author>
<published>2009-04-24T12:35:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=314eeac9e35d8b934dd7a09ed3a8e00d41977b84'/>
<id>urn:sha1:314eeac9e35d8b934dd7a09ed3a8e00d41977b84</id>
<content type='text'>
The feature needs some more work because the notfier which is used to
check for pending allocations is called before the device drivers
-&gt;remove() function. Therefore this feature reports false positives.

A real fix for this issue is to introduce a new notifier event which sent
_after_ the driver has deinitialized itself. That will done for the next
kernel version.

[ Impact: reduce the scope of CONFIG_DMA_API_DEBUG=y checks ]

Signed-off-by: Joerg Roedel &lt;joerg.roedel@amd.com&gt;
Cc: iommu@lists.linux-foundation.org
LKML-Reference: &lt;1240576557-22442-1-git-send-email-joerg.roedel@amd.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>dma-debug: fix printk formats (i386)</title>
<updated>2009-03-30T21:28:59Z</updated>
<author>
<name>Randy Dunlap</name>
<email>randy.dunlap@oracle.com</email>
</author>
<published>2009-03-30T21:08:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=93c36ed8348934b462044d2d60ab345055318933'/>
<id>urn:sha1:93c36ed8348934b462044d2d60ab345055318933</id>
<content type='text'>
Fix printk format warnings in dma-debug:

  lib/dma-debug.c:645: warning: format '%016llx' expects type 'long long unsigned int', but argument 6 has type 'dma_addr_t'
  lib/dma-debug.c:662: warning: format '%016llx' expects type 'long long unsigned int', but argument 6 has type 'dma_addr_t'
  lib/dma-debug.c:676: warning: format '%016llx' expects type 'long long unsigned int', but argument 6 has type 'dma_addr_t'
  lib/dma-debug.c:686: warning: format '%016llx' expects type 'long long unsigned int', but argument 6 has type 'dma_addr_t'

Signed-off-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>dma-debug: make memory range checks more consistent</title>
<updated>2009-03-24T07:39:32Z</updated>
<author>
<name>Joerg Roedel</name>
<email>joerg.roedel@amd.com</email>
</author>
<published>2009-03-23T14:35:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=9537a48ed4b9e4b738943d6da0a0fd4278adf905'/>
<id>urn:sha1:9537a48ed4b9e4b738943d6da0a0fd4278adf905</id>
<content type='text'>
Impact: extend on-kernel-stack DMA debug checks to all !highmem pages

We only checked dma_map_single() - extend it to dma_map_page()
and dma_map_sg() as well.

Also, fix dma_map_single() corner case bug: make sure we dont
stack-check highmem (not mapped) pages.

Reported-by: FUJITA Tomonori &lt;fujita.tomonori@lab.ntt.co.jp&gt;
Signed-off-by: Joerg Roedel &lt;joerg.roedel@amd.com&gt;
Cc: iommu@lists.linux-foundation.org
LKML-Reference: &lt;1237818908-26516-1-git-send-email-joerg.roedel@amd.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>dma-debug: warn of unmapping an invalid dma address</title>
<updated>2009-03-19T07:39:48Z</updated>
<author>
<name>FUJITA Tomonori</name>
<email>fujita.tomonori@lab.ntt.co.jp</email>
</author>
<published>2009-03-19T01:39:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=35d40952dba7b0689a16bd1463fb7698f8dbe639'/>
<id>urn:sha1:35d40952dba7b0689a16bd1463fb7698f8dbe639</id>
<content type='text'>
Impact: extend DMA-debug checks

Calling dma_unmap families against an invalid dma address should be a
bug.

Signed-off-by: FUJITA Tomonori &lt;fujita.tomonori@lab.ntt.co.jp&gt;
Cc: Joerg Roedel &lt;joerg.roedel@amd.com&gt;
LKML-Reference: &lt;20090319103743N.fujita.tomonori@lab.ntt.co.jp&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>dma-debug: add a check dma memory leaks</title>
<updated>2009-03-17T11:56:49Z</updated>
<author>
<name>Joerg Roedel</name>
<email>joerg.roedel@amd.com</email>
</author>
<published>2009-03-16T16:32:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=41531c8f5f05aba5ec645d9770557eedbf75b422'/>
<id>urn:sha1:41531c8f5f05aba5ec645d9770557eedbf75b422</id>
<content type='text'>
Impact: allow architectures to monitor busses for dma mem leakage

This patch adds checking code to detect if a device has pending DMA
operations when it is about to be unbound from its device driver.

Signed-off-by: Joerg Roedel &lt;joerg.roedel@amd.com&gt;
</content>
</entry>
<entry>
<title>dma-debug: add checks for kernel text and rodata</title>
<updated>2009-03-17T11:56:48Z</updated>
<author>
<name>Joerg Roedel</name>
<email>joerg.roedel@amd.com</email>
</author>
<published>2009-03-16T15:51:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2e34bde18576a02c897ae6b699ea26301d92be1b'/>
<id>urn:sha1:2e34bde18576a02c897ae6b699ea26301d92be1b</id>
<content type='text'>
Impact: get notified if a device dma maps illegal areas

This patch adds a check to print a warning message when a device driver
tries to map a memory area from the kernel text segment or rodata.

Signed-off-by: Joerg Roedel &lt;joerg.roedel@amd.com&gt;
</content>
</entry>
<entry>
<title>dma-debug: print stacktrace of mapping path on unmap error</title>
<updated>2009-03-17T11:56:48Z</updated>
<author>
<name>David Woodhouse</name>
<email>dwmw2@infradead.org</email>
</author>
<published>2009-01-19T15:52:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6c132d1bcdc716e898b4092bb1abc696505c37e7'/>
<id>urn:sha1:6c132d1bcdc716e898b4092bb1abc696505c37e7</id>
<content type='text'>
Impact: saves stacktrace of a dma mapping and prints it if there is an  error

Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
Signed-off-by: Joerg Roedel &lt;joerg.roedel@amd.com&gt;
</content>
</entry>
<entry>
<title>dma-debug: add function to dump dma mappings</title>
<updated>2009-03-17T11:56:39Z</updated>
<author>
<name>David Woodhouse</name>
<email>dwmw2@infradead.org</email>
</author>
<published>2009-02-12T15:19:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ac26c18bd35d982d1ba06020a992b1085fefc3e2'/>
<id>urn:sha1:ac26c18bd35d982d1ba06020a992b1085fefc3e2</id>
<content type='text'>
This adds a function to dump the DMA mappings that the debugging code is
aware of -- either for a single device, or for _all_ devices.

This can be useful for debugging -- sticking a call to it in the DMA
page fault handler, for example, to see if the faulting address _should_
be mapped or not, and hence work out whether it's IOMMU bugs we're
seeing, or driver bugs.

Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>dma-debug: add checks for sync_single_sg_*</title>
<updated>2009-03-05T19:35:21Z</updated>
<author>
<name>Joerg Roedel</name>
<email>joerg.roedel@amd.com</email>
</author>
<published>2009-01-09T14:01:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a31fba5d68cebf8f5fefd03e079dab94875e25f5'/>
<id>urn:sha1:a31fba5d68cebf8f5fefd03e079dab94875e25f5</id>
<content type='text'>
Impact: add debug callbacks for dma_sync_sg_* functions

Signed-off-by: Joerg Roedel &lt;joerg.roedel@amd.com&gt;
</content>
</entry>
<entry>
<title>dma-debug: add checks for sync_single_range_*</title>
<updated>2009-03-05T19:35:21Z</updated>
<author>
<name>Joerg Roedel</name>
<email>joerg.roedel@amd.com</email>
</author>
<published>2009-01-09T13:55:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=948408ba3e2a67ed0f95e18ed5be1c622c2c5fc3'/>
<id>urn:sha1:948408ba3e2a67ed0f95e18ed5be1c622c2c5fc3</id>
<content type='text'>
Impact: add debug callbacks for dma_sync_single_range_for_* functions

Signed-off-by: Joerg Roedel &lt;joerg.roedel@amd.com&gt;
</content>
</entry>
</feed>
