Re: CPU Cache and busdma usage in USB

2009-06-29 Thread Piotr Zięcik
Sunday 28 June 2009 11:54:40 Hans Petter Selasky napisał(a): Hi Piotr and Rafal, Your patch is not fully correct. It will break support for x86 and more when bounce pages are uses. Let's get the definitions right: man busdma (...) My view: XXX_PREXXX functions should be used prior to

Current problem reports assigned to freebsd-usb@FreeBSD.org

2009-06-29 Thread FreeBSD bugmaster
Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker

Re: CPU Cache and busdma usage in USB

2009-06-29 Thread Hans Petter Selasky
Hi, On Monday 29 June 2009 12:49:43 Piotr Zięcik wrote: Monday 29 June 2009 11:55:11 Hans Petter Selasky napisał(a): Hi Piotr and Rafal, Look into ehci_check_transfer() function (http://fxr.watson.org/fxr/source/dev/usb/controller/ehci.c#L1294) usb_pc_cpu_invalidate() [bus_dmamap_sync()]

Potential problem with USB_THREAD_SUSPEND()?

2009-06-29 Thread Sebastian Huber
Hi, USB_THREAD_SUSPEND(p) is defined as {kproc|kthread}_suspend(p, 0). This means that it will wait until the corresponding thread recognizes its suspend request and suspends itself. It seems that {kproc|kthread}_suspend_check() will be used nowhere in the USB system. Thus the

Re: Potential problem with USB_THREAD_SUSPEND()?

2009-06-29 Thread Hans Petter Selasky
On Monday 29 June 2009 13:29:49 Sebastian Huber wrote: Hi, USB_THREAD_SUSPEND(p) is defined as {kproc|kthread}_suspend(p, 0). This means that it will wait until the corresponding thread recognizes its suspend request and suspends itself. It seems that {kproc|kthread}_suspend_check() will

Re: CPU Cache and busdma usage in USB

2009-06-29 Thread Stanislav Sedov
On Mon, 29 Jun 2009 13:37:41 +0200 Hans Petter Selasky hsela...@c2i.net mentioned: USB is currently _updating_ (!!) the PAGE offset part of vaddr. If cpu_dcache_inv_range() is called with an address not starting at the cache line what will the cpu_dcache_inv_range() do? Will it skip to the

Re: CPU Cache and busdma usage in USB

2009-06-29 Thread Hans Petter Selasky
On Monday 29 June 2009 14:10:11 Stanislav Sedov wrote: On Mon, 29 Jun 2009 13:37:41 +0200 Hans Petter Selasky hsela...@c2i.net mentioned: USB is currently _updating_ (!!) the PAGE offset part of vaddr. If cpu_dcache_inv_range() is called with an address not starting at the cache line what

Re: CPU Cache and busdma usage in USB

2009-06-29 Thread Piotr Zięcik
Monday 29 June 2009 13:37:41 Hans Petter Selasky napisał(a): Look into ehci_check_transfer() function (http://fxr.watson.org/fxr/source/dev/usb/controller/ehci.c#L1294) usb_pc_cpu_invalidate() [bus_dmamap_sync()] is not used in this function correcly. It is not paired with

Re: CPU Cache and busdma usage in USB

2009-06-29 Thread Hans Petter Selasky
On Monday 29 June 2009 14:16:13 Piotr Zięcik wrote: Look for bus_dmamap_sync() sync description, last sentence: cite If read and write operations are not preceded and followed by the appropriate synchronization operations, behavior is undefined. /cite I don't think this is a problem. I do

Re: CPU Cache and busdma usage in USB

2009-06-29 Thread Piotr Zięcik
Monday 29 June 2009 13:37:41 Hans Petter Selasky napisał(a): if (op BUS_DMASYNC_POSTREAD) { if (bpage-vaddr_nocache == 0) { cpu_dcache_inv_range(bpage-vaddr, bpage-datacount);

Re: CPU Cache and busdma usage in USB

2009-06-29 Thread Hans Petter Selasky
On Tuesday 23 June 2009 10:35:42 Piotr Zięcik wrote: --- a/sys/dev/usb/usb_busdma.c +++ b/sys/dev/usb/usb_busdma.c @@ -658,8 +658,7 @@ usb_pc_cpu_invalidate(struct usb_page_cache *pc) /* nothing has been loaded into this page cache! */ return; } -

Re: CPU Cache and busdma usage in USB

2009-06-29 Thread Stanislav Sedov
On Mon, 29 Jun 2009 14:14:45 +0200 Hans Petter Selasky hsela...@c2i.net mentioned: On Monday 29 June 2009 14:10:11 Stanislav Sedov wrote: On Mon, 29 Jun 2009 13:37:41 +0200 Hans Petter Selasky hsela...@c2i.net mentioned: USB is currently _updating_ (!!) the PAGE offset part of vaddr. If

Re: CPU Cache and busdma usage in USB

2009-06-29 Thread Mark Tinguely
What has to be changed in busdma_machdep.c for ARM/MIPS so that the problem= is=20 resolved. I think there are something missing there and not in USB! =2D-HPS I unsuccessfully looked for the start of this thread. Which version of FreeBSD are you using? --Mark T.

Re: new usb stack - boot problem from usb hdd

2009-06-29 Thread Vinicius Abrahao
On Sat, Jun 27, 2009 at 5:11 AM, Hans Petter Selaskyhsela...@c2i.net wrote: On Saturday 27 June 2009 06:32:54 Vinicius Abrahao wrote: 9) What I'm doing wrong? I don't think this is your fault. My initial patch for this problem had a loop in the mount root code, trying to mount the root device

Account Alert

2009-06-29 Thread pay...@50242.com
Dear freebsd-...@hub.freebsd.org, We recently noticed one or more attempts to log in to your PayPal account from a foreign IP address. If you recently accessed your account while traveling or ISP has dynamic IP address, the unusual log in attempts may have been initiated by you. Please visit