login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
31
Re: [PATCH] PNP: set the pnp_card dma_mask for use by ISAPnP cards
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Takashi Iwai <tiwai@...>
To: Rene Herman <rene.herman@...>
Cc: Andrew Morton <akpm@...>, Bjorn Helgaas <bjorn.helgaas@...>, Alan Cox <alan@...>, Linux Kernel <linux-kernel@...>, ALSA devel <alsa-devel@...>
Subject:
Re: [PATCH] PNP: set the pnp_card dma_mask for use by ISAPnP cards
Date: Saturday, May 31, 2008 - 4:55 am
At Sat, 31 May 2008 01:54:10 +0200, Rene Herman wrote:
quoted text
> > >From 801c13fb3e8564221a1fb21892dbe13add3d7cea Mon Sep 17 00:00:00 2001 > From: Rene Herman <rene.herman@gmail.com> > Date: Fri, 30 May 2008 23:10:23 +0200 > Subject: [PATCH] PNP: set the pnp_card dma_mask for use by ISAPnP cards. > > dma_alloc_coherent() on x86 currently takes a passed in NULL device > pointer to mean that it should allocate an ISA compatible (24-bit) > buffer which is a bit of a hack. > > The ALSA ISA drivers are the main consumers of this but have a struct > device in fact readily available. > > For the PnP drivers, the specific pnp_dev->dev device pointer is not > always available at the right time so for now we want to pass the > pnp_card->dev instead which is always available. Set its dma_mask in > preparation for doing so. > > This does not fix a current bug -- 2.6.26-rc1 stumbled over the NULL > hack in dma_alloc_coherent() but this has already been fixed in commit > 4a367f3a9dbf2e7ffcee4702203479809236ee6e by Takashi Iwai. > > Signed-off-by: Rene Herman <rene.herman@gmail.com> > Acked-by: Bjorn Helgaas <bjorn.helgaas@hp.com> > Cc: Takashi Iwai <tiwai@suse.de>
Acked-by: Takashi Iwai <tiwai@suse.de> thanks, Takashi
quoted text
> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> > --- > drivers/pnp/card.c | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/drivers/pnp/card.c b/drivers/pnp/card.c > index a762a41..b00ef10 100644 > --- a/drivers/pnp/card.c > +++ b/drivers/pnp/card.c > @@ -8,6 +8,7 @@ > #include <linux/ctype.h> > #include <linux/slab.h> > #include <linux/pnp.h> > +#include <linux/dma-mapping.h> > #include "base.h" > > LIST_HEAD(pnp_cards); > @@ -167,6 +168,9 @@ struct pnp_card *pnp_alloc_card(struct pnp_protocol *protocol, int id, char *pnp > sprintf(card->dev.bus_id, "%02x:%02x", card->protocol->number, > card->number); > > + card->dev.coherent_dma_mask = DMA_24BIT_MASK; > + card->dev.dma_mask = &card->dev.coherent_dma_mask; > + > dev_id = pnp_add_card_id(card, pnpid); > if (!dev_id) { > kfree(card); > -- > 1.5.2.2 >
--
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:
2.6.26-rc1 regression: ISA DMA broken (bisected)
, Rene Herman
, (Thu May 8, 9:37 pm)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Takashi Iwai
, (Fri May 9, 2:06 am)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Bjorn Helgaas
, (Tue May 13, 12:59 pm)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Alan Cox
, (Tue May 13, 1:01 pm)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Rene Herman
, (Tue May 13, 1:33 pm)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Bjorn Helgaas
, (Tue May 13, 7:18 pm)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Rene Herman
, (Wed May 14, 8:46 am)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Bjorn Helgaas
, (Wed May 14, 11:26 am)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Takashi Iwai
, (Wed May 14, 9:01 am)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Rene Herman
, (Wed May 14, 11:40 am)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Rene Herman
, (Wed May 14, 2:41 pm)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Bjorn Helgaas
, (Wed May 14, 2:50 pm)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Rene Herman
, (Wed May 14, 3:09 pm)
[PATCH] Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Rene Herman
, (Fri May 30, 5:15 pm)
Re: [PATCH] Re: 2.6.26-rc1 regression: ISA DMA broken (bisec...
, Bjorn Helgaas
, (Fri May 30, 5:43 pm)
Re: [PATCH] Re: 2.6.26-rc1 regression: ISA DMA broken (bisec...
, Rene Herman
, (Fri May 30, 6:11 pm)
[PATCH] ISA: set 24-bit dma_mask for ISA devices.
, Rene Herman
, (Fri May 30, 7:55 pm)
Re: [PATCH] ISA: set 24-bit dma_mask for ISA devices.
, Takashi Iwai
, (Sat May 31, 4:56 am)
[PATCH] PNP: set the pnp_card dma_mask for use by ISAPnP cards
, Rene Herman
, (Fri May 30, 7:54 pm)
Re: [PATCH] PNP: set the pnp_card dma_mask for use by ISAPnP...
, Takashi Iwai
, (Sat May 31, 4:55 am)
[PATCH] ISA: set 24-bit dma_mask for ISA devices.
, Rene Herman
, (Fri May 30, 6:37 pm)
Re: [PATCH] ISA: set 24-bit dma_mask for ISA devices.
, Andrew Morton
, (Fri May 30, 6:55 pm)
Re: [PATCH] ISA: set 24-bit dma_mask for ISA devices.
, Rene Herman
, (Fri May 30, 7:50 pm)
[DEVICE MODEL] dev->dma_mask
, Rene Herman
, (Fri May 30, 5:28 pm)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Takashi Iwai
, (Wed May 14, 11:53 am)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Takashi Iwai
, (Wed May 14, 5:25 am)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Glauber Costa
, (Fri May 9, 8:48 am)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Rene Herman
, (Fri May 9, 8:03 am)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Pete Clements
, (Fri May 9, 8:29 am)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Ingo Molnar
, (Fri May 9, 8:28 am)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Rene Herman
, (Fri May 9, 7:00 pm)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Ingo Molnar
, (Tue May 13, 10:36 am)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Rene Herman
, (Tue May 13, 11:26 am)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Ingo Molnar
, (Fri May 9, 4:55 am)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Ingo Molnar
, (Fri May 9, 4:58 am)
Re: 2.6.26-rc1 regression: ISA DMA broken (bisected)
, Jesse Barnes
, (Fri May 9, 1:20 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in
Andrew Morton
-mm merge plans for 2.6.23
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Herbert Xu
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Rémi Denis-Courmont
[PATCH 01/14] Phonet global definitions
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
672 guests
online.
Online users
Jeremy
Kedar Sovani
emeka_micro
Syndicate