* Multiple copies of pci-dma.c file.
@ 2000-11-22 14:30 Dan Aizenstros
2000-11-22 15:56 ` Ralf Baechle
0 siblings, 1 reply; 4+ messages in thread
From: Dan Aizenstros @ 2000-11-22 14:30 UTC (permalink / raw)
To: linux-mips
Hello All,
Is there any reason for having multiple copies of
the pci-dma.c file in Linux/MIPS. The are all
doing basically the same thing. We could have
just one copy in the arch/mips/lib directory
and have the Makefile build it if CONFIG_PCI
is defined.
Also they appear to have an error in that they
convert the pointer that is returned from the
__get_free_pages function call into a KSEG1
address even if the pointer is NULL.
Dan Aizenstros
Software Engineer
V3 Semiconductor Corp.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Multiple copies of pci-dma.c file.
2000-11-22 14:30 Multiple copies of pci-dma.c file Dan Aizenstros
@ 2000-11-22 15:56 ` Ralf Baechle
2000-11-23 22:04 ` Dan Aizenstros
0 siblings, 1 reply; 4+ messages in thread
From: Ralf Baechle @ 2000-11-22 15:56 UTC (permalink / raw)
To: Dan Aizenstros; +Cc: linux-mips
On Wed, Nov 22, 2000 at 09:30:32AM -0500, Dan Aizenstros wrote:
> Is there any reason for having multiple copies of
> the pci-dma.c file in Linux/MIPS. The are all
> doing basically the same thing. We could have
> just one copy in the arch/mips/lib directory
> and have the Makefile build it if CONFIG_PCI
> is defined.
Sounds like a plan, done. Tell me if it breaks something ...
Some chipsets have a builtin scatter / gather facility, those may need
special variants of pci-dma.c for better support.
> Also they appear to have an error in that they
> convert the pointer that is returned from the
> __get_free_pages function call into a KSEG1
> address even if the pointer is NULL.
Fixed.
Ralf
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Multiple copies of pci-dma.c file.
2000-11-22 15:56 ` Ralf Baechle
@ 2000-11-23 22:04 ` Dan Aizenstros
2000-11-24 1:35 ` Ralf Baechle
0 siblings, 1 reply; 4+ messages in thread
From: Dan Aizenstros @ 2000-11-23 22:04 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux-mips
Hello Ralf,
Should the dma_cache_inv actually be a dma_cache_wback_inv?
Also, the sni directory contains a dma.c which is they same
as pci-dma.c and should be removed.
Dan Aizenstros
Software Engineer
V3 Semicondutor Corp.
Ralf Baechle wrote:
>
> On Wed, Nov 22, 2000 at 09:30:32AM -0500, Dan Aizenstros wrote:
>
> > Is there any reason for having multiple copies of
> > the pci-dma.c file in Linux/MIPS. The are all
> > doing basically the same thing. We could have
> > just one copy in the arch/mips/lib directory
> > and have the Makefile build it if CONFIG_PCI
> > is defined.
>
> Sounds like a plan, done. Tell me if it breaks something ...
>
> Some chipsets have a builtin scatter / gather facility, those may need
> special variants of pci-dma.c for better support.
>
> > Also they appear to have an error in that they
> > convert the pointer that is returned from the
> > __get_free_pages function call into a KSEG1
> > address even if the pointer is NULL.
>
> Fixed.
>
> Ralf
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Multiple copies of pci-dma.c file.
2000-11-23 22:04 ` Dan Aizenstros
@ 2000-11-24 1:35 ` Ralf Baechle
0 siblings, 0 replies; 4+ messages in thread
From: Ralf Baechle @ 2000-11-24 1:35 UTC (permalink / raw)
To: Dan Aizenstros; +Cc: linux-mips
On Thu, Nov 23, 2000 at 05:04:27PM -0500, Dan Aizenstros wrote:
> Should the dma_cache_inv actually be a dma_cache_wback_inv?
Conceptually your right and I've therefore changed the kernel. It wasn't
a bug though because the actual implementation was in both cases
actually doing a dma_cache_wback_inv.
> Also, the sni directory contains a dma.c which is they same as pci-dma.c
> and should be removed.
``He's dead, Jim''.
Ralf
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-11-24 1:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-22 14:30 Multiple copies of pci-dma.c file Dan Aizenstros
2000-11-22 15:56 ` Ralf Baechle
2000-11-23 22:04 ` Dan Aizenstros
2000-11-24 1:35 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox