login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
May
»
21
Re: [PATCH 8/12] x86-64: update iommu/dma mapping functions to sg helpers
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Jens Axboe
Subject:
Re: [PATCH 8/12] x86-64: update iommu/dma mapping functions to sg helpers
Date: Sunday, May 20, 2007 - 11:32 pm
On Thu, May 10 2007, Benny Halevy wrote:
quoted text
> @@ -411,12 +406,13 @@ int gart_map_sg(struct device *dev, struct scatterlist *sg, int nents, int dir) > boundary and the new one doesn't have an offset. */ > if (!iommu_merge || !nextneed || !need || s->offset || > (ps->offset + ps->length) % PAGE_SIZE) { > - if (dma_map_cont(sg, start, i, sg+out, pages, > - need) < 0) > + if (dma_map_cont(start_sg, i - start, sg+out, > + pages, need) < 0) > goto error; > out++; > pages = 0; > - start = i; > + start = i; > + start_sg = s; > } > } > > @@ -424,7 +420,7 @@ int gart_map_sg(struct device *dev, struct scatterlist *sg, int nents, int dir) > pages += to_pages(s->offset, s->length); > ps = s; > } > - if (dma_map_cont(sg, start, i, sg+out, pages, need) < 0) > + if (dma_map_cont(start_sg, i - start, sg+out, pages, need) < 0) > goto error; > out++; > flush_gart();
Your patch is (very) buggy, the whole premise of doing chained sg entries makes sg + int illegal! -- Jens Axboe -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/12] Chaining sg lists for bio IO commands v4
, Jens Axboe
, (Thu May 10, 4:40 am)
[PATCH 1/12] crypto: don't pollute the global namespace wi ...
, Jens Axboe
, (Thu May 10, 4:40 am)
[PATCH 2/12] Add sg helpers for iterating over a scatterli ...
, Jens Axboe
, (Thu May 10, 4:40 am)
[PATCH 3/12] libata: convert to using sg helpers
, Jens Axboe
, (Thu May 10, 4:40 am)
[PATCH 4/12] block: convert to using sg helpers
, Jens Axboe
, (Thu May 10, 4:40 am)
[PATCH 5/12] scsi: convert to using sg helpers
, Jens Axboe
, (Thu May 10, 4:40 am)
[PATCH 6/12] i386 dma_map_sg: convert to using sg helpers
, Jens Axboe
, (Thu May 10, 4:40 am)
[PATCH 7/12] i386 sg: add support for chaining scatterlists
, Jens Axboe
, (Thu May 10, 4:40 am)
[PATCH 8/12] x86-64: update iommu/dma mapping functions to ...
, Jens Axboe
, (Thu May 10, 4:40 am)
[PATCH 9/12] x86-64: enable sg chaining
, Jens Axboe
, (Thu May 10, 4:40 am)
[PATCH 10/12] scsi: simplify scsi_free_sgtable()
, Jens Axboe
, (Thu May 10, 4:40 am)
[PATCH 11/12] SCSI: support for allocating large scatterlists
, Jens Axboe
, (Thu May 10, 4:40 am)
[PATCH 12/12] ll_rw_blk: temporarily enable max_segments t ...
, Jens Axboe
, (Thu May 10, 4:40 am)
Re: [PATCH 7/12] i386 sg: add support for chaining scatter ...
, Satyam Sharma
, (Thu May 10, 6:00 am)
Re: [PATCH 7/12] i386 sg: add support for chaining scatter ...
, Satyam Sharma
, (Thu May 10, 6:23 am)
Re: [PATCH 8/12] x86-64: update iommu/dma mapping function ...
, Benny Halevy
, (Thu May 10, 6:48 am)
Re: [PATCH 1/12] crypto: don't pollute the global namespac ...
, Benny Halevy
, (Thu May 10, 6:55 am)
Re: [PATCH 1/12] crypto: don't pollute the global namespac ...
, Jens Axboe
, (Thu May 10, 2:37 pm)
Re: [PATCH 8/12] x86-64: update iommu/dma mapping function ...
, Jens Axboe
, (Thu May 10, 2:38 pm)
Re: [PATCH 1/12] crypto: don't pollute the global namespac ...
, Benny Halevy
, (Thu May 10, 10:20 pm)
Re: [PATCH 1/12] crypto: don't pollute the global namespac ...
, Herbert Xu
, (Fri May 11, 7:34 pm)
Re: [PATCH 8/12] x86-64: update iommu/dma mapping function ...
, Jens Axboe
, (Sun May 20, 11:32 pm)
Re: [PATCH 8/12] x86-64: update iommu/dma mapping function ...
, Benny Halevy
, (Mon May 21, 12:09 am)
Re: [PATCH 8/12] x86-64: update iommu/dma mapping function ...
, Jens Axboe
, (Mon May 21, 12:13 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
l