login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
September
»
12
Re: [PATCH 3/3] x86: make GART to respect device's dma_mask about virtual mappings
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: FUJITA Tomonori
Subject:
Re: [PATCH 3/3] x86: make GART to respect device's dma_mask about virtual mappings
Date: Friday, September 12, 2008 - 8:11 am
On Fri, 12 Sep 2008 16:52:27 +0200 Joerg Roedel <joerg.roedel@amd.com> wrote:
quoted text
> On Fri, Sep 12, 2008 at 07:42:35PM +0900, FUJITA Tomonori wrote: > > Currently, GART IOMMU ingores device's dma_mask when it does virtual > > mappings. So it could give a device a virtual address that the device > > can't access to. > > > > This patch fixes the above problem. > > > > Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> > > --- > > arch/x86/kernel/pci-gart_64.c | 39 ++++++++++++++++++++++++++++----------- > > 1 files changed, 28 insertions(+), 11 deletions(-) > > > > diff --git a/arch/x86/kernel/pci-gart_64.c b/arch/x86/kernel/pci-gart_64.c > > index 47abe43..9739d56 100644 > > --- a/arch/x86/kernel/pci-gart_64.c > > +++ b/arch/x86/kernel/pci-gart_64.c > > @@ -83,23 +83,34 @@ static unsigned long next_bit; /* protected by iommu_bitmap_lock */ > > static int need_flush; /* global flush state. set for each gart wrap */ > > > > static unsigned long alloc_iommu(struct device *dev, int size, > > - unsigned long align_mask) > > + unsigned long align_mask, u64 dma_mask) > > You can calculate the dma_mask in this function from the dev parameter. > There is no need to pass it two levels down to this function extending > various parameter lists.
No, we can't because we need to use dev->coherent_dma_mask for alloc_coherent and dev->dma_mask for the rest. --
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/3] fix GART to respect device's dma_mask about vi ...
, FUJITA Tomonori
, (Fri Sep 12, 3:42 am)
[PATCH 1/3] add iommu_device_max_index IOMMU helper function
, FUJITA Tomonori
, (Fri Sep 12, 3:42 am)
[PATCH 2/3] add dma_get_mask helper function
, FUJITA Tomonori
, (Fri Sep 12, 3:42 am)
[PATCH 3/3] x86: make GART to respect device's dma_mask ab ...
, FUJITA Tomonori
, (Fri Sep 12, 3:42 am)
Re: [PATCH 3/3] x86: make GART to respect device's dma_mas ...
, Joerg Roedel
, (Fri Sep 12, 7:52 am)
Re: [PATCH 3/3] x86: make GART to respect device's dma_mas ...
, FUJITA Tomonori
, (Fri Sep 12, 8:11 am)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, Ingo Molnar
, (Sun Sep 14, 7:45 am)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, Andi Kleen
, (Mon Sep 15, 5:54 pm)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, FUJITA Tomonori
, (Tue Sep 16, 6:20 am)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, Andi Kleen
, (Tue Sep 16, 6:43 am)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, Joerg Roedel
, (Tue Sep 16, 8:52 am)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, Andi Kleen
, (Tue Sep 16, 9:20 am)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, FUJITA Tomonori
, (Tue Sep 16, 10:13 am)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, Andi Kleen
, (Tue Sep 16, 10:58 am)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, FUJITA Tomonori
, (Tue Sep 16, 4:53 pm)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, Andi Kleen
, (Tue Sep 16, 5:24 pm)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, Ingo Molnar
, (Wed Sep 17, 3:43 am)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, FUJITA Tomonori
, (Wed Sep 17, 12:20 pm)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, Andi Kleen
, (Thu Sep 18, 11:20 am)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, Andi Kleen
, (Thu Sep 18, 11:25 am)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, FUJITA Tomonori
, (Thu Sep 18, 3:15 pm)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, Andi Kleen
, (Thu Sep 18, 5:44 pm)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, FUJITA Tomonori
, (Mon Sep 22, 12:12 pm)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, Andi Kleen
, (Mon Sep 22, 1:35 pm)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ...
, FUJITA Tomonori
, (Mon Sep 22, 9:02 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rusty Russell
Re: 2.6.22-rc3-mm1
Bill Fink
Re: [PATCH] net: add ability to clear stats via ethtool - e1000/pcnet32
Jeffrey V. Merkey
Re: Versioning file system
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Luben Tuikov
Re: Integration of SCST in the mainstream Linux kernel
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
OMAP: DSS2: SDI driver
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
PCI hotplug: acpiphp: remove superfluous _HPP/_HPX evaluation
linux-netdev
:
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
Rafael J. Wysocki
Re: [PATCH] igb: fix kexec with igb
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
webmaster Maintenance
&#32852;&#31995;&#31995;&#32479;&#31649;&#29702;&#21592;
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Jack J. Woehr
Re: Real men don't attack straw men
Úlfar M. E. Johnson
installing openbsd in xen
Eric Furman
Re: Defending OpenBSD Performance
Tony Abernethy
Re: The Atheros story in much fewer words
git
:
Oliver Kullmann
Re: how to move with history?
Junio C Hamano
Re: [PATCH 2/3] git-add--interactive: remove hunk coalescing
Shawn O. Pearce
Re: Bugs in Gitosis
Alex Riesen
Re: git exclude patterns for directory
David Kastrup
Re: I'm a total push-over..
Colocation donated by:
Syndicate