Re: CPU Cache and busdma usage in USB

2009-06-23 Thread M. Warner Losh
In message: <200906231912.20741.hsela...@c2i.net> Hans Petter Selasky writes: : On Tuesday 23 June 2009 11:11:29 Alexandr Rybalko wrote: : > On Tue, 23 Jun 2009 10:35:42 +0200 : > : > Piotr Zięcik wrote: : > >> While bringing up EHCI (8-CURRENT, new USB stack) on ARM machine we : > >

Re: CPU Cache and busdma usage in USB

2009-06-23 Thread Hans Petter Selasky
On Tuesday 23 June 2009 11:11:29 Alexandr Rybalko wrote: > On Tue, 23 Jun 2009 10:35:42 +0200 > > Piotr Zięcik wrote: > >> While bringing up EHCI (8-CURRENT, new USB stack) on ARM machine we > >> have found cache-related problem in the USB stack. > >> > >> The usb_pc_cpu_flush() and usb_pc_cpu_in

Re: CPU Cache and busdma usage in USB

2009-06-23 Thread Alexandr Rybalko
On Tue, 23 Jun 2009 10:35:42 +0200 Piotr Zięcik wrote: >> While bringing up EHCI (8-CURRENT, new USB stack) on ARM machine we have >> found cache-related problem in the USB stack. >> >> The usb_pc_cpu_flush() and usb_pc_cpu_invalidate() functions are used to >> flush/invalidate CPU caches in

CPU Cache and busdma usage in USB

2009-06-23 Thread Piotr Zięcik
While bringing up EHCI (8-CURRENT, new USB stack) on ARM machine we have found cache-related problem in the USB stack. The usb_pc_cpu_flush() and usb_pc_cpu_invalidate() functions are used to flush/invalidate CPU caches in various places in USB code. Internally, the functions are implemented u