[EMAIL PROTECTED] wrote:
> 
> > I have to use Linux kernel version 2.4.1 for my sh architecture.
> 
> OK; the patch adding the hcca support was posted pretty
> recently, you presumably found it in the archives.  Or just
> use the latest OHCI driver (from 2.4.3).
> 
> > But for my architecture there is a problem with pci_alloc_consistent:
> 
> Hmm, this would seem to raise the question of whether this
> architecture fits in the linux/Documentation/DMA-mapping.txt
> framework at all.  Why does pci_alloc_consistent() exist if it's
> not allocating uncachable memory?  Is that a fixable bug?


We are working to solve this bug. We hope to produce our own patch in a
few days. 


> 
> Seems like every driver on SH would need explicit cache flushes
> all over the place.  Is that what other drivers are doing?

Yes, that's  a problem for other drivers.

Best regards 

Orazio.

> 
> - Dave
> 
> > void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size,
> >    dma_addr_t * dma_handle)
> > {
> > void *ret;
> > int gfp = GFP_ATOMIC;
> >
> >         printk("BUG: pci_alloc_consistent() called - not yet
> > supported\n");
> > /* We ALWAYS need DMA memory on the overdrive hardware,
> > * due to it's extreme wierdness
> > * Need to flush the cache here as well, since the memory
> > * can still be seen through the cache!
> > */
> > gfp |= GFP_DMA;
> > ret = (void *) __get_free_pages(gfp, get_order(size));
> >
> > if (ret != NULL) {
> > memset(ret, 0, size);
> > *dma_handle = virt_to_bus(ret);
> > }
> > return ret;
> > }
> 
> _______________________________________________
> [EMAIL PROTECTED]
> To unsubscribe, use the last form field at:
> http://lists.sourceforge.net/lists/listinfo/linux-usb-devel

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to