login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
25
Re: [PATCH 2.6.24-rc1] fix sg_phys to use dma_addr_t
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Jens Axboe
Subject:
Re: [PATCH 2.6.24-rc1] fix sg_phys to use dma_addr_t
Date: Thursday, October 25, 2007 - 12:54 am
On Thu, Oct 25 2007, Hugh Dickins wrote:
quoted text
> On Wed, 24 Oct 2007, Arjan van de Ven wrote: > > > Signed-off-by: Hugh Dickins <hugh@veritas.com> > > > --- > > > Whether this is a complete patch, suitable for all architectures, > > > I'm not sure: it builds, boots and runs correctly on the x86_32 box > > > in question, but you'll be a lot wiser than me about using dma_addr_t > > > for everyone. (Seems a bit of a shame to include <asm/types.h> here, > > > when I think all arches already get to include it one way or another, > > > typically via asm/scatterlist.h; but I guess it's safest to repeat > > > it.) > > > > there is a problem with this... sg_phys doesn't return an actual *dma* > > address.... at least not an address you can give to the device. > > Using dma_addr_t is thus a bit misleading..... > > True. Perhaps sg_phys() should use its own sg_phys_addr_t, defined > or typedefed to be the same as dma_addr_t. But would this inline > function then be the only place in the tree which uses that type? > If so, then it'd probably be better just to let sg_phys() carry on > using dma_addr_t, but insert a comment there to make your point. > > But I'll leave it to Jens to fix up the patch appropriately: for > all I know, there might be arches on which using dma_addr_t there > actually does the wrong thing - I don't think so, but I know too > little about it.
dma_addr_t would seem OK to me, given the lack of phys_addr_t. -- 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 2.6.24-rc1] fix sg_phys to use dma_addr_t
, Hugh Dickins
, (Wed Oct 24, 12:01 pm)
Re: [PATCH 2.6.24-rc1] fix sg_phys to use dma_addr_t
, Arjan van de Ven
, (Wed Oct 24, 7:29 pm)
Re: [PATCH 2.6.24-rc1] fix sg_phys to use dma_addr_t
, Hugh Dickins
, (Wed Oct 24, 11:40 pm)
Re: [PATCH 2.6.24-rc1] fix sg_phys to use dma_addr_t
, Jens Axboe
, (Thu Oct 25, 12:54 am)
Re: [PATCH 2.6.24-rc1] fix sg_phys to use dma_addr_t
, Rolf Eike Beer
, (Thu Oct 25, 1:51 am)
Re: [PATCH 2.6.24-rc1] fix sg_phys to use dma_addr_t
, Jens Axboe
, (Thu Oct 25, 1:52 am)
Re: [PATCH 2.6.24-rc1] fix sg_phys to use dma_addr_t
, Rolf Eike Beer
, (Thu Oct 25, 2:00 am)
Re: [PATCH 2.6.24-rc1] fix sg_phys to use dma_addr_t
, Jens Axboe
, (Thu Oct 25, 2:06 am)
Re: [PATCH 2.6.24-rc1] fix sg_phys to use dma_addr_t
, Rolf Eike Beer
, (Thu Oct 25, 4:24 am)
Re: [PATCH 2.6.24-rc1] fix sg_phys to use dma_addr_t
, Jens Axboe
, (Thu Oct 25, 4:30 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Fortier,Vincent [Montreal]
2.6.21.5 june 30th to july 1st date hang?
Jeff Dike
[ PATCH 2/6 ] UML - Formatting fixes around os_{read_write}_file callers
Liam Girdwood
[PATCH 07/13] regulator: regulator test harness
Oleg Nesterov
Re: Getting the new RxRPC patches upstream
Stefan Seyfried
Re: 2.6.19-rc5: grub is much slower resuming from suspend-to-disk than in 2.6.18
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Jan Engelhardt
Re: [PATCH iptables] extension: add xt_cpu match
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Sebastian Andrzej Siewior
[PATCH 8/8] net/emergency: remove locking from reycling pool if emergncy pools are...
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
git
:
Jakub Narebski
Re: git on MacOSX and files with decomposed utf-8 file names
Brandon Casey
Re: Thunderbird and patches (was Re: [PATCH v2] Enable setting attach as the def...
Christian Couder
[PATCH 1/3] rev-parse: add test script for "--verify"
Ramkumar Ramachandra
Re: [GSoC update] git-remote-svn: The final one
Junio C Hamano
Re: git-rm isn't the inverse action of git-add
openbsd-misc
:
Joachim Schipper
Re: UVC Webcams
Florin Andrei
SOLVED [was: firewall is very slow, something's wrong]
Todd Alan Smith
Re: Microsoft gets the Most Secure Operating Systems award
Neal Hogan
Re: Need Advice: Thinkpad T60 or T61?
Sam Fourman Jr.
Re: Real men don't attack straw men
git-commits-head
:
Linux Kernel Mailing List
ACPI: Disable ARB_DISABLE on platforms where it is not needed
Linux Kernel Mailing List
m68knommu: add read_barrier_depends() and irqs_disabled_flags()
Linux Kernel Mailing List
[MTD] Add mtd panic_write function pointer
Linux Kernel Mailing List
[ARM] pxa: remove duplicate select statements from Kconfig
Linux Kernel Mailing List
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
Colocation donated by:
Syndicate