From: Sudip Mukherjee <sudipm.mukherjee@gmail.com> To: Mathias Nyman <mathias.nyman@linux.intel.com> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Andy Shevchenko <andy.shevchenko@gmail.com>, Mathias Nyman <mathias.nyman@intel.com>, linux-usb@vger.kernel.org, lukaszx.szulc@intel.com, Christoph Hellwig <hch@lst.de>, Marek Szyprowski <m.szyprowski@samsung.com>, iommu@lists.linux-foundation.org Subject: usb HC busted? Date: Mon, 25 Jun 2018 17:15:00 +0100 [thread overview] Message-ID: <20180625161500.dbyxd4b434jh5jhj@debian> (raw) Hi Mathias, On Thu, Jun 21, 2018 at 02:01:30PM +0300, Mathias Nyman wrote: > On 21.06.2018 03:53, Sudip Mukherjee wrote: > > Hi Mathias, Andy, > > > > On Thu, Jun 07, 2018 at 10:40:03AM +0300, Mathias Nyman wrote: > > > On 06.06.2018 19:45, Sudip Mukherjee wrote: <snip> > > git://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git dmapool-test > https://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git/log/?h=dmapool-test > > Tested by just leaving the following running for a few days: > > while true; do echo 0 > authorized; sleep 3; echo 1 > authorized; sleep 3; done; > For some usb device (for example: /sys/bus/usb/devices/1-8) > > Then grep logs for "MATTU dmatest match! " > > Can you share a bit more details on the platform you are using, and what types of test you are running. Sorry for the delayed reply, I was in Tokyo for the OSS. It is a board based on "Intel(R) Atom(TM) CPU E3840 @ 1.91GHz". The usb device in question is a bluetooth device: Bus 001 Device 012: ID 8087:07dc Intel Corp. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 224 Wireless bDeviceSubClass 1 Radio Frequency bDeviceProtocol 1 Bluetooth bMaxPacketSize0 64 idVendor 0x8087 Intel Corp. idProduct 0x07dc bcdDevice 0.01 iManufacturer 0 iProduct 0 iSerial 0 bNumConfigurations 1 And the problem that we are seeing is with phone calls via bluetooth. > Does my test above trigger the case? (show "MATTU dmatest match!") I have kept it for tonight, will see the results tomorrow morning. And I am using that same device in the usb script to change "authrized". But looking at the code for dma_pool_alloc(), it seems 'dma' can have same value again only if "*(int *)(page->vaddr + offset)" gets a value of 0 in pool_initialise_page(). But I can't think of anyway how it can be 0. I have also added some more debugs in the kernel to see what might be going wrong there. --- Regards Sudip -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Sudip Mukherjee <sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> To: Mathias Nyman <mathias.nyman-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> Cc: Mathias Nyman <mathias.nyman-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>, linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, lukaszx.szulc-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org, Andy Shevchenko <andy.shevchenko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>, Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>, Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org> Subject: Re: usb HC busted? Date: Mon, 25 Jun 2018 17:15:00 +0100 [thread overview] Message-ID: <20180625161500.dbyxd4b434jh5jhj@debian> (raw) In-Reply-To: <2b4fe87a-3706-0aa8-2b61-a9c1d1352a7a-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> Hi Mathias, On Thu, Jun 21, 2018 at 02:01:30PM +0300, Mathias Nyman wrote: > On 21.06.2018 03:53, Sudip Mukherjee wrote: > > Hi Mathias, Andy, > > > > On Thu, Jun 07, 2018 at 10:40:03AM +0300, Mathias Nyman wrote: > > > On 06.06.2018 19:45, Sudip Mukherjee wrote: <snip> > > git://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git dmapool-test > https://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git/log/?h=dmapool-test > > Tested by just leaving the following running for a few days: > > while true; do echo 0 > authorized; sleep 3; echo 1 > authorized; sleep 3; done; > For some usb device (for example: /sys/bus/usb/devices/1-8) > > Then grep logs for "MATTU dmatest match! " > > Can you share a bit more details on the platform you are using, and what types of test you are running. Sorry for the delayed reply, I was in Tokyo for the OSS. It is a board based on "Intel(R) Atom(TM) CPU E3840 @ 1.91GHz". The usb device in question is a bluetooth device: Bus 001 Device 012: ID 8087:07dc Intel Corp. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 224 Wireless bDeviceSubClass 1 Radio Frequency bDeviceProtocol 1 Bluetooth bMaxPacketSize0 64 idVendor 0x8087 Intel Corp. idProduct 0x07dc bcdDevice 0.01 iManufacturer 0 iProduct 0 iSerial 0 bNumConfigurations 1 And the problem that we are seeing is with phone calls via bluetooth. > Does my test above trigger the case? (show "MATTU dmatest match!") I have kept it for tonight, will see the results tomorrow morning. And I am using that same device in the usb script to change "authrized". But looking at the code for dma_pool_alloc(), it seems 'dma' can have same value again only if "*(int *)(page->vaddr + offset)" gets a value of 0 in pool_initialise_page(). But I can't think of anyway how it can be 0. I have also added some more debugs in the kernel to see what might be going wrong there. -- Regards Sudip
next reply other threads:[~2018-06-25 16:15 UTC|newest] Thread overview: 75+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-06-25 16:15 Sudip Mukherjee [this message] 2018-06-25 16:15 ` usb HC busted? Sudip Mukherjee -- strict thread matches above, loose matches on Subject: below -- 2018-07-21 10:55 Sudip Mukherjee 2018-07-21 10:55 ` Sudip Mukherjee 2018-07-20 14:09 Alan Stern 2018-07-20 14:09 ` Alan Stern 2018-07-20 12:54 Sudip Mukherjee 2018-07-20 12:54 ` Sudip Mukherjee 2018-07-20 11:46 Mathias Nyman 2018-07-20 11:46 ` Mathias Nyman 2018-07-20 11:10 Mathias Nyman 2018-07-20 11:10 ` Mathias Nyman 2018-07-19 17:32 Sudip Mukherjee 2018-07-19 17:32 ` Sudip Mukherjee 2018-07-19 15:42 Mathias Nyman 2018-07-19 15:42 ` Mathias Nyman 2018-07-19 14:57 Alan Stern 2018-07-19 14:57 ` Alan Stern 2018-07-19 11:34 Sudip Mukherjee 2018-07-19 11:34 ` Sudip Mukherjee 2018-07-19 10:59 Mathias Nyman 2018-07-19 10:59 ` Mathias Nyman 2018-07-17 17:01 Sudip Mukherjee 2018-07-17 17:01 ` Sudip Mukherjee 2018-07-17 15:59 Sudip Mukherjee 2018-07-17 15:59 ` Sudip Mukherjee 2018-07-17 15:52 Greg Kroah-Hartman 2018-07-17 15:52 ` Greg KH 2018-07-17 15:10 Sudip Mukherjee 2018-07-17 15:10 ` Sudip Mukherjee 2018-07-17 15:08 Alan Stern 2018-07-17 15:08 ` Alan Stern 2018-07-17 14:49 Sudip Mukherjee 2018-07-17 14:49 ` Sudip Mukherjee 2018-07-17 14:40 Sudip Mukherjee 2018-07-17 14:40 ` Sudip Mukherjee 2018-07-17 14:31 Alan Stern 2018-07-17 14:31 ` Alan Stern 2018-07-17 14:28 Alan Stern 2018-07-17 14:28 ` Alan Stern 2018-07-17 13:53 Greg Kroah-Hartman 2018-07-17 13:53 ` Greg KH 2018-07-17 13:20 Sudip Mukherjee 2018-07-17 13:20 ` Sudip Mukherjee 2018-07-17 12:04 Greg Kroah-Hartman 2018-07-17 12:04 ` Greg KH 2018-07-17 11:41 Sudip Mukherjee 2018-07-17 11:41 ` Sudip Mukherjee 2018-06-30 21:07 Sudip Mukherjee 2018-06-30 21:07 ` Sudip Mukherjee 2018-06-29 11:41 Mathias Nyman 2018-06-29 11:41 ` Mathias Nyman 2018-06-27 12:20 Sudip Mukherjee 2018-06-27 12:20 ` Sudip Mukherjee 2018-06-27 11:59 Sudip Mukherjee 2018-06-27 11:59 ` Sudip Mukherjee 2018-06-21 11:01 Mathias Nyman 2018-06-21 11:01 ` Mathias Nyman 2018-06-21 0:53 Sudip Mukherjee 2018-06-21 0:53 ` Sudip Mukherjee 2018-06-08 9:07 Sudip Mukherjee 2018-06-08 9:07 ` Sudip Mukherjee 2018-06-07 7:40 Mathias Nyman 2018-06-07 7:40 ` Mathias Nyman 2018-06-06 16:45 Sudip Mukherjee 2018-06-06 16:45 ` Sudip Mukherjee 2018-06-06 16:42 Sudip Mukherjee 2018-06-06 16:42 ` Sudip Mukherjee 2018-06-06 15:36 Andy Shevchenko 2018-06-06 15:36 ` Andy Shevchenko 2018-06-06 14:12 Mathias Nyman 2018-06-06 14:12 ` Mathias Nyman 2018-06-04 15:28 Sudip Mukherjee 2018-06-03 19:37 Sudip Mukherjee 2018-05-24 13:35 Mathias Nyman
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20180625161500.dbyxd4b434jh5jhj@debian \ --to=sudipm.mukherjee@gmail.com \ --cc=andriy.shevchenko@linux.intel.com \ --cc=andy.shevchenko@gmail.com \ --cc=hch@lst.de \ --cc=iommu@lists.linux-foundation.org \ --cc=linux-usb@vger.kernel.org \ --cc=lukaszx.szulc@intel.com \ --cc=m.szyprowski@samsung.com \ --cc=mathias.nyman@intel.com \ --cc=mathias.nyman@linux.intel.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.