LKML Archive on
help / color / mirror / Atom feed
* more iommu sg merging fallout
@ 2008-02-06  4:41 David Miller
  2008-02-06 23:12 ` FUJITA Tomonori
  0 siblings, 1 reply; 11+ messages in thread
From: David Miller @ 2008-02-06  4:41 UTC (permalink / raw)
  To: tomof; +Cc: jens.axboe, linux-kernel

The sparc64 change:

    commit fde6a3c82d67f592eb587be4d12222b0ae6d4321
    Author: FUJITA Tomonori <>
    Date:   Mon Feb 4 22:28:02 2008 -0800

    iommu sg merging: sparc64: make iommu respect the segment size limits
    This patch makes iommu respect segment size limits when merging sg
    Signed-off-by: FUJITA Tomonori <>
    Cc: Jeff Garzik <>
    Cc: James Bottomley <>
    Acked-by: Jens Axboe <>
    Cc: "David S. Miller" <>
    Signed-off-by: Andrew Morton <>
    Signed-off-by: Linus Torvalds <>

has significant errors and is going to eat people's disks, as it just
nearly did to mine.

Typically what you'll see are NULL pointer derefernces in
dma_4v_map_sg() and dma_4u_map_sg() and then the kernel usually craps
on your superblock very shortly thereafter.

The changeset above modified only prepare_sg() but that is only the
first pass of the SG mapping algorithm of the sparc64 IOMMU layer.

The second pass that fills in the entries depends upon how the first
pass does things.  So if you change the first pass decision making you
have to update the second pass's as well.

That second pass is implemented in fill_sg() (there is a version in
both arch/sparc64/kernel/iommu.c and arch/sparc64/kernel/pci_sun4v.c),
which probably needs new logic as was added to prepare_sg() to handle

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-02-21  6:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-06  4:41 more iommu sg merging fallout David Miller
2008-02-06 23:12 ` FUJITA Tomonori
2008-02-06 23:18   ` David Miller
2008-02-06 23:53     ` FUJITA Tomonori
2008-02-07  0:01       ` David Miller
2008-02-07  1:38         ` FUJITA Tomonori
2008-02-12  5:40           ` David Miller
2008-02-16  6:03             ` FUJITA Tomonori
2008-02-18  7:41               ` David Miller
2008-02-19 10:57                 ` FUJITA Tomonori
2008-02-21  6:56                   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).