linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Kernel panic when SCO connection
@ 2010-02-02 16:58 nirav rabara
  2010-02-02 17:16 ` Gustavo F. Padovan
  0 siblings, 1 reply; 15+ messages in thread
From: nirav rabara @ 2010-02-02 16:58 UTC (permalink / raw)
  To: linux-bluetooth

Hi,
When I try to connect SCO socket, Kernel getting crash.
Linux kernel - 2.6.22
Bluez - 4.58

error message,
__tx_submit:hci0 tx submit failed urb c0552c14 type 3 err -19

sometimes in connection is showing error while connection as below,
hci_acldata_packet:hci0 ACL packet data for unknown connection handler 2

It would be really appreciable if  somebody put some on light on this
issue, OR suggest me any patch or documentation.

-- 
With Regards,
Nirav Rabara

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Kernel panic when SCO connection
  2010-02-02 16:58 Kernel panic when SCO connection nirav rabara
@ 2010-02-02 17:16 ` Gustavo F. Padovan
  2010-02-02 22:01   ` Ahmed Ragab
  2010-02-03  4:51   ` nirav rabara
  0 siblings, 2 replies; 15+ messages in thread
From: Gustavo F. Padovan @ 2010-02-02 17:16 UTC (permalink / raw)
  To: nirav rabara; +Cc: linux-bluetooth

Hi Nirav,

* nirav rabara <niravrabara@gmail.com> [2010-02-02 22:28:53 +0530]:

> Hi,
> When I try to connect SCO socket, Kernel getting crash.
> Linux kernel - 2.6.22
> Bluez - 4.58

Please try a 2.6.33 kernel and tell us if the bug still happens.

> 
> error message,
> __tx_submit:hci0 tx submit failed urb c0552c14 type 3 err -19
> 
> sometimes in connection is showing error while connection as below,
> hci_acldata_packet:hci0 ACL packet data for unknown connection handler 2
> 
> It would be really appreciable if  somebody put some on light on this
> issue, OR suggest me any patch or documentation.
> 
> -- 
> With Regards,
> Nirav Rabara
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Gustavo F. Padovan
http://padovan.org

ProFUSION embedded systems - http://profusion.mobi

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Kernel panic when SCO connection
  2010-02-02 17:16 ` Gustavo F. Padovan
@ 2010-02-02 22:01   ` Ahmed Ragab
  2010-02-04  5:56     ` nirav rabara
  2010-02-03  4:51   ` nirav rabara
  1 sibling, 1 reply; 15+ messages in thread
From: Ahmed Ragab @ 2010-02-02 22:01 UTC (permalink / raw)
  To: Gustavo F. Padovan; +Cc: nirav rabara, linux-bluetooth

Yes, this exactly the error that i am getting and it getting me crazy


On 2 February 2010 19:16, Gustavo F. Padovan <padovan@profusion.mobi> wrote:
> Hi Nirav,
>
> * nirav rabara <niravrabara@gmail.com> [2010-02-02 22:28:53 +0530]:
>
>> Hi,
>> When I try to connect SCO socket, Kernel getting crash.
>> Linux kernel - 2.6.22
>> Bluez - 4.58
>
> Please try a 2.6.33 kernel and tell us if the bug still happens.
>
>>
>> error message,
>> __tx_submit:hci0 tx submit failed urb c0552c14 type 3 err -19
>>
>> sometimes in connection is showing error while connection as below,
>> hci_acldata_packet:hci0 ACL packet data for unknown connection handler 2
>>
>> It would be really appreciable if  somebody put some on light on this
>> issue, OR suggest me any patch or documentation.
>>
>> --
>> With Regards,
>> Nirav Rabara
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
> --
> Gustavo F. Padovan
> http://padovan.org
>
> ProFUSION embedded systems - http://profusion.mobi
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Kernel panic when SCO connection
  2010-02-02 17:16 ` Gustavo F. Padovan
  2010-02-02 22:01   ` Ahmed Ragab
@ 2010-02-03  4:51   ` nirav rabara
  2010-02-04 11:36     ` SINGH DEVENDRA-DHGW76
  1 sibling, 1 reply; 15+ messages in thread
From: nirav rabara @ 2010-02-03  4:51 UTC (permalink / raw)
  To: Gustavo F. Padovan; +Cc: linux-bluetooth

- Show quoted text -
On Tue, Feb 2, 2010 at 10:46 PM, Gustavo F. Padovan
<padovan@profusion.mobi> wrote:
> Hi Nirav,
>
> * nirav rabara <niravrabara@gmail.com> [2010-02-02 22:28:53 +0530]:
>
>> Hi,
>> When I try to connect SCO socket, Kernel getting crash.
>> Linux kernel - 2.6.22
>> Bluez - 4.58
>
> Please try a 2.6.33 kernel and tell us if the bug still happens.
>
>>
>> error message,
>> __tx_submit:hci0 tx submit failed urb c0552c14 type 3 err -19
>>
>> sometimes in connection is showing error while connection as below,
>> hci_acldata_packet:hci0 ACL packet data for unknown connection handler 2
>>
>> It would be really appreciable if  somebody put some on light on this
>> issue, OR suggest me any patch or documentation.
>>
>> --
>> With Regards,
>> Nirav Rabara
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
> --
> Gustavo F. Padovan
> http://padovan.org
>
> ProFUSION embedded systems - http://profusion.mobi
>

Hi Gustavo,

Thanks for your suggestion, but I am using bluez 4.58 on ATMEL
AT91SAM9263, no patch available for the newer kernel 2.6.33 . Patches
related to my board only available up to 2.6.30.

It would be a great help if suggest me any alternet for this issue. OR
any patches for the same problem as i mentioned for 2.6.22.


--
With Regards,
Nirav Rabara

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Kernel panic when SCO connection
  2010-02-02 22:01   ` Ahmed Ragab
@ 2010-02-04  5:56     ` nirav rabara
  2010-02-04 15:26       ` Ahmed Ragab
  0 siblings, 1 reply; 15+ messages in thread
From: nirav rabara @ 2010-02-04  5:56 UTC (permalink / raw)
  To: Ahmed Ragab; +Cc: linux-bluetooth

Hey Ahmed,

Did you find any solution for kernel crash due to SCO connection.

-- 
With Regards,
Nirav Rabara

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: Kernel panic when SCO connection
  2010-02-03  4:51   ` nirav rabara
@ 2010-02-04 11:36     ` SINGH DEVENDRA-DHGW76
  2010-02-04 14:11       ` Marcel Holtmann
                         ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: SINGH DEVENDRA-DHGW76 @ 2010-02-04 11:36 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

I noticed the same problem when I was working with a embedded board with
Broadcom chipset and Linux kernel 2.6.18 (I guess). Use case was, a
Bluetooth based headset sends data to the CSR Bluetooth dongle(USB),
which in turn provide data to the Application through bluez stack.


Following were my observation:

1. Board processor is not strong enough and so there was no URB in the
queue and audio data was getting accumulated in the USB host controller.
There are only 2 Rx URBs (hci_usb.h: #define HCI_MAX_ISOC_RX
2).
2. Actual length of data for data in the URB is reaching to the level of
1K bytes. (Max ISOC data length) however Bluetooth driver is expecting
10 packets of 64 bytes each. hci_usb_isoc_rx_submit function in
hci_usb.c file.
3. Completion routine copies data for actual length returned for packet
that could be 1024 while limit for one packet is 64B only. (hci_usb.c:
hci_usb_rx_complete function).
4. These "SCO packet for unknown connection handle" error logs further
complicated the problem as this will further eat-up cpu time.


Cause:

Max length of available transfer buffer could be 640 bytes (that's
depend upon the buffer index) and copying big chunk of data was
resulting into memory overrun and kernel memory was getting corrupted
that results in un-expected behavior line connection break, lots of
noise  and even kernel panic some times.


Following was the work around:

1. Increased number of Rx URBs to 6. (hci_usb.h: #define HCI_MAX_ISOC_RX
6).
2. Increased transfer buffer size to 1.5K.
3. Put a check in completion routine that in case actual length is more
then frame length then copy only frame length size data as follows:

int len = (urb->iso_frame_desc[i].actual_length >
urb->iso_frame_desc[i].length)?
	     urb->iso_frame_desc[i].length:
	     urb->iso_frame_desc[i].actual_length;

__recv_frame(husb,
		 _urb->type, 
		urb->transfer_buffer + urb->iso_frame_desc[i].offset,
		len);
4. Logging "SCO packet for unknown connection handle" error only once
for 100 errors. This will give more change to queue a URB as
follows(hci_core.c:hci_scodata_packet function):
hdev->stat.err_rx++;
if(!(hdev->stat.err_rx % 100))
{
	BT_ERR("%s 100 SCO packets for unknown connection
handles",hdev->name);
}


I must say that I did not try with latest Linux kernel however I could
not see any code change regarding this functionality. Hope this will
help.

Regards,
Dev
  

-----Original Message-----
From: linux-bluetooth-owner@vger.kernel.org
[mailto:linux-bluetooth-owner@vger.kernel.org] On Behalf Of nirav rabara
Sent: Wednesday, February 03, 2010 10:21 AM
To: Gustavo F. Padovan
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Kernel panic when SCO connection

- Show quoted text -
On Tue, Feb 2, 2010 at 10:46 PM, Gustavo F. Padovan
<padovan@profusion.mobi> wrote:
> Hi Nirav,
>
> * nirav rabara <niravrabara@gmail.com> [2010-02-02 22:28:53 +0530]:
>
>> Hi,
>> When I try to connect SCO socket, Kernel getting crash.
>> Linux kernel - 2.6.22
>> Bluez - 4.58
>
> Please try a 2.6.33 kernel and tell us if the bug still happens.
>
>>
>> error message,
>> __tx_submit:hci0 tx submit failed urb c0552c14 type 3 err -19
>>
>> sometimes in connection is showing error while connection as below, 
>> hci_acldata_packet:hci0 ACL packet data for unknown connection 
>> handler 2
>>
>> It would be really appreciable if  somebody put some on light on this

>> issue, OR suggest me any patch or documentation.
>>
>> --
>> With Regards,
>> Nirav Rabara
>> --
>> To unsubscribe from this list: send the line "unsubscribe 
>> linux-bluetooth" in the body of a message to 
>> majordomo@vger.kernel.org More majordomo info at  
>> http://vger.kernel.org/majordomo-info.html
>
> --
> Gustavo F. Padovan
> http://padovan.org
>
> ProFUSION embedded systems - http://profusion.mobi
>

Hi Gustavo,

Thanks for your suggestion, but I am using bluez 4.58 on ATMEL
AT91SAM9263, no patch available for the newer kernel 2.6.33 . Patches
related to my board only available up to 2.6.30.

It would be a great help if suggest me any alternet for this issue. OR
any patches for the same problem as i mentioned for 2.6.22.


--
With Regards,
Nirav Rabara
--
To unsubscribe from this list: send the line "unsubscribe
linux-bluetooth" in the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: Kernel panic when SCO connection
  2010-02-04 11:36     ` SINGH DEVENDRA-DHGW76
@ 2010-02-04 14:11       ` Marcel Holtmann
  2010-02-05 13:51         ` SINGH DEVENDRA-DHGW76
  2010-02-04 20:06       ` Ahmed Ragab
       [not found]       ` <f97b2b971002042037j5397ef4j7ceb0521ef12e082@mail.gmail.com>
  2 siblings, 1 reply; 15+ messages in thread
From: Marcel Holtmann @ 2010-02-04 14:11 UTC (permalink / raw)
  To: SINGH DEVENDRA-DHGW76; +Cc: linux-bluetooth

Hi,

> I noticed the same problem when I was working with a embedded board with
> Broadcom chipset and Linux kernel 2.6.18 (I guess). Use case was, a
> Bluetooth based headset sends data to the CSR Bluetooth dongle(USB),
> which in turn provide data to the Application through bluez stack.
> 
> 
> Following were my observation:
> 
> 1. Board processor is not strong enough and so there was no URB in the
> queue and audio data was getting accumulated in the USB host controller.
> There are only 2 Rx URBs (hci_usb.h: #define HCI_MAX_ISOC_RX
> 2).
> 2. Actual length of data for data in the URB is reaching to the level of
> 1K bytes. (Max ISOC data length) however Bluetooth driver is expecting
> 10 packets of 64 bytes each. hci_usb_isoc_rx_submit function in
> hci_usb.c file.
> 3. Completion routine copies data for actual length returned for packet
> that could be 1024 while limit for one packet is 64B only. (hci_usb.c:
> hci_usb_rx_complete function).
> 4. These "SCO packet for unknown connection handle" error logs further
> complicated the problem as this will further eat-up cpu time.
> 
> 
> Cause:
> 
> Max length of available transfer buffer could be 640 bytes (that's
> depend upon the buffer index) and copying big chunk of data was
> resulting into memory overrun and kernel memory was getting corrupted
> that results in un-expected behavior line connection break, lots of
> noise  and even kernel panic some times.
> 
> 
> Following was the work around:
> 
> 1. Increased number of Rx URBs to 6. (hci_usb.h: #define HCI_MAX_ISOC_RX
> 6).
> 2. Increased transfer buffer size to 1.5K.
> 3. Put a check in completion routine that in case actual length is more
> then frame length then copy only frame length size data as follows:
> 
> int len = (urb->iso_frame_desc[i].actual_length >
> urb->iso_frame_desc[i].length)?
> 	     urb->iso_frame_desc[i].length:
> 	     urb->iso_frame_desc[i].actual_length;
> 
> __recv_frame(husb,
> 		 _urb->type, 
> 		urb->transfer_buffer + urb->iso_frame_desc[i].offset,
> 		len);
> 4. Logging "SCO packet for unknown connection handle" error only once
> for 100 errors. This will give more change to queue a URB as
> follows(hci_core.c:hci_scodata_packet function):
> hdev->stat.err_rx++;
> if(!(hdev->stat.err_rx % 100))
> {
> 	BT_ERR("%s 100 SCO packets for unknown connection
> handles",hdev->name);
> }
> 
> 
> I must say that I did not try with latest Linux kernel however I could
> not see any code change regarding this functionality. Hope this will
> help.

I can see a big code change in the latest 2.6.33-rc6 kernel. The hci_usb
driver has been replaced by btusb since a few releases now ;)

Regards

Marcel



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Kernel panic when SCO connection
  2010-02-04  5:56     ` nirav rabara
@ 2010-02-04 15:26       ` Ahmed Ragab
  0 siblings, 0 replies; 15+ messages in thread
From: Ahmed Ragab @ 2010-02-04 15:26 UTC (permalink / raw)
  To: nirav rabara; +Cc: linux-bluetooth

Hi Nirav,

I didn't find any solutions yet however i will try the solution
Suggested by SINGH DEVENDRA-DHGW76 and if it didn't work
I will upgrade to kernal 2.6.33-rc6 and see what happens

Regards

Ahmed



On 4 February 2010 07:56, nirav rabara <niravrabara@gmail.com> wrote:
> Hey Ahmed,
>
> Did you find any solution for kernel crash due to SCO connection.
>
> --
> With Regards,
> Nirav Rabara
>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Kernel panic when SCO connection
  2010-02-04 11:36     ` SINGH DEVENDRA-DHGW76
  2010-02-04 14:11       ` Marcel Holtmann
@ 2010-02-04 20:06       ` Ahmed Ragab
  2010-02-05  4:31         ` SINGH DEVENDRA-DHGW76
       [not found]       ` <f97b2b971002042037j5397ef4j7ceb0521ef12e082@mail.gmail.com>
  2 siblings, 1 reply; 15+ messages in thread
From: Ahmed Ragab @ 2010-02-04 20:06 UTC (permalink / raw)
  To: SINGH DEVENDRA-DHGW76; +Cc: linux-bluetooth

Hi Dev,

> 2. Increased transfer buffer size to 1.5K.

Please advise in which module should i increase the buffer size

Thanks

Ahmed



On 4 February 2010 13:36, SINGH DEVENDRA-DHGW76 <DevSingh@motorola.com> wrote:
> Hi,
>
> I noticed the same problem when I was working with a embedded board with
> Broadcom chipset and Linux kernel 2.6.18 (I guess). Use case was, a
> Bluetooth based headset sends data to the CSR Bluetooth dongle(USB),
> which in turn provide data to the Application through bluez stack.
>
>
> Following were my observation:
>
> 1. Board processor is not strong enough and so there was no URB in the
> queue and audio data was getting accumulated in the USB host controller.
> There are only 2 Rx URBs (hci_usb.h: #define HCI_MAX_ISOC_RX
> 2).
> 2. Actual length of data for data in the URB is reaching to the level of
> 1K bytes. (Max ISOC data length) however Bluetooth driver is expecting
> 10 packets of 64 bytes each. hci_usb_isoc_rx_submit function in
> hci_usb.c file.
> 3. Completion routine copies data for actual length returned for packet
> that could be 1024 while limit for one packet is 64B only. (hci_usb.c:
> hci_usb_rx_complete function).
> 4. These "SCO packet for unknown connection handle" error logs further
> complicated the problem as this will further eat-up cpu time.
>
>
> Cause:
>
> Max length of available transfer buffer could be 640 bytes (that's
> depend upon the buffer index) and copying big chunk of data was
> resulting into memory overrun and kernel memory was getting corrupted
> that results in un-expected behavior line connection break, lots of
> noise  and even kernel panic some times.
>
>
> Following was the work around:
>
> 1. Increased number of Rx URBs to 6. (hci_usb.h: #define HCI_MAX_ISOC_RX
> 6).
> 2. Increased transfer buffer size to 1.5K.
> 3. Put a check in completion routine that in case actual length is more
> then frame length then copy only frame length size data as follows:
>
> int len = (urb->iso_frame_desc[i].actual_length >
> urb->iso_frame_desc[i].length)?
>             urb->iso_frame_desc[i].length:
>             urb->iso_frame_desc[i].actual_length;
>
> __recv_frame(husb,
>                 _urb->type,
>                urb->transfer_buffer + urb->iso_frame_desc[i].offset,
>                len);
> 4. Logging "SCO packet for unknown connection handle" error only once
> for 100 errors. This will give more change to queue a URB as
> follows(hci_core.c:hci_scodata_packet function):
> hdev->stat.err_rx++;
> if(!(hdev->stat.err_rx % 100))
> {
>        BT_ERR("%s 100 SCO packets for unknown connection
> handles",hdev->name);
> }
>
>
> I must say that I did not try with latest Linux kernel however I could
> not see any code change regarding this functionality. Hope this will
> help.
>
> Regards,
> Dev
>
>
> -----Original Message-----
> From: linux-bluetooth-owner@vger.kernel.org
> [mailto:linux-bluetooth-owner@vger.kernel.org] On Behalf Of nirav rabara
> Sent: Wednesday, February 03, 2010 10:21 AM
> To: Gustavo F. Padovan
> Cc: linux-bluetooth@vger.kernel.org
> Subject: Re: Kernel panic when SCO connection
>
> - Show quoted text -
> On Tue, Feb 2, 2010 at 10:46 PM, Gustavo F. Padovan
> <padovan@profusion.mobi> wrote:
>> Hi Nirav,
>>
>> * nirav rabara <niravrabara@gmail.com> [2010-02-02 22:28:53 +0530]:
>>
>>> Hi,
>>> When I try to connect SCO socket, Kernel getting crash.
>>> Linux kernel - 2.6.22
>>> Bluez - 4.58
>>
>> Please try a 2.6.33 kernel and tell us if the bug still happens.
>>
>>>
>>> error message,
>>> __tx_submit:hci0 tx submit failed urb c0552c14 type 3 err -19
>>>
>>> sometimes in connection is showing error while connection as below,
>>> hci_acldata_packet:hci0 ACL packet data for unknown connection
>>> handler 2
>>>
>>> It would be really appreciable if  somebody put some on light on this
>
>>> issue, OR suggest me any patch or documentation.
>>>
>>> --
>>> With Regards,
>>> Nirav Rabara
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe
>>> linux-bluetooth" in the body of a message to
>>> majordomo@vger.kernel.org More majordomo info at
>>> http://vger.kernel.org/majordomo-info.html
>>
>> --
>> Gustavo F. Padovan
>> http://padovan.org
>>
>> ProFUSION embedded systems - http://profusion.mobi
>>
>
> Hi Gustavo,
>
> Thanks for your suggestion, but I am using bluez 4.58 on ATMEL
> AT91SAM9263, no patch available for the newer kernel 2.6.33 . Patches
> related to my board only available up to 2.6.30.
>
> It would be a great help if suggest me any alternet for this issue. OR
> any patches for the same problem as i mentioned for 2.6.22.
>
>
> --
> With Regards,
> Nirav Rabara
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-bluetooth" in the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: Kernel panic when SCO connection
  2010-02-04 20:06       ` Ahmed Ragab
@ 2010-02-05  4:31         ` SINGH DEVENDRA-DHGW76
  0 siblings, 0 replies; 15+ messages in thread
From: SINGH DEVENDRA-DHGW76 @ 2010-02-05  4:31 UTC (permalink / raw)
  To: Ahmed Ragab; +Cc: linux-bluetooth

Ooops I am sorry to missed out that. 

Hci_usb.c: hci_usb_isoc_rx_submit()

	mtu  = le16_to_cpu(husb->isoc_in_ep->desc.wMaxPacketSize);
	size = mtu * HCI_MAX_ISOC_FRAMES;
	buf = kmalloc(size, GFP_ATOMIC);

Replace above code with following:

	#define TRANSFER_BUF_SIZE 1536
	mtu  = le16_to_cpu(husb->isoc_in_ep->desc.wMaxPacketSize);
	//size = mtu * HCI_MAX_ISOC_FRAMES;//DevSingh
	size = TRANSFER_BUF_SIZE;

	buf = kmalloc(size, GFP_ATOMIC); 

Regards,
Dev

-----Original Message-----
From: Ahmed Ragab [mailto:elmasri.ahmed@gmail.com] 
Sent: Friday, February 05, 2010 1:37 AM
To: SINGH DEVENDRA-DHGW76
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Kernel panic when SCO connection

Hi Dev,

> 2. Increased transfer buffer size to 1.5K.

Please advise in which module should i increase the buffer size

Thanks

Ahmed



On 4 February 2010 13:36, SINGH DEVENDRA-DHGW76 <DevSingh@motorola.com> wrote:
> Hi,
>
> I noticed the same problem when I was working with a embedded board 
> with Broadcom chipset and Linux kernel 2.6.18 (I guess). Use case was, 
> a Bluetooth based headset sends data to the CSR Bluetooth dongle(USB), 
> which in turn provide data to the Application through bluez stack.
>
>
> Following were my observation:
>
> 1. Board processor is not strong enough and so there was no URB in the 
> queue and audio data was getting accumulated in the USB host controller.
> There are only 2 Rx URBs (hci_usb.h: #define HCI_MAX_ISOC_RX 2).
> 2. Actual length of data for data in the URB is reaching to the level 
> of 1K bytes. (Max ISOC data length) however Bluetooth driver is 
> expecting 10 packets of 64 bytes each. hci_usb_isoc_rx_submit function 
> in hci_usb.c file.
> 3. Completion routine copies data for actual length returned for 
> packet that could be 1024 while limit for one packet is 64B only. (hci_usb.c:
> hci_usb_rx_complete function).
> 4. These "SCO packet for unknown connection handle" error logs further 
> complicated the problem as this will further eat-up cpu time.
>
>
> Cause:
>
> Max length of available transfer buffer could be 640 bytes (that's 
> depend upon the buffer index) and copying big chunk of data was 
> resulting into memory overrun and kernel memory was getting corrupted 
> that results in un-expected behavior line connection break, lots of 
> noise  and even kernel panic some times.
>
>
> Following was the work around:
>
> 1. Increased number of Rx URBs to 6. (hci_usb.h: #define 
> HCI_MAX_ISOC_RX 6).
> 2. Increased transfer buffer size to 1.5K.
> 3. Put a check in completion routine that in case actual length is 
> more then frame length then copy only frame length size data as follows:
>
> int len = (urb->iso_frame_desc[i].actual_length >
> urb->iso_frame_desc[i].length)?
>             urb->iso_frame_desc[i].length:
>             urb->iso_frame_desc[i].actual_length;
>
> __recv_frame(husb,
>                 _urb->type,
>                urb->transfer_buffer + urb->iso_frame_desc[i].offset,
>                len);
> 4. Logging "SCO packet for unknown connection handle" error only once 
> for 100 errors. This will give more change to queue a URB as 
> follows(hci_core.c:hci_scodata_packet function):
> hdev->stat.err_rx++;
> if(!(hdev->stat.err_rx % 100))
> {
>        BT_ERR("%s 100 SCO packets for unknown connection 
> handles",hdev->name); }
>
>
> I must say that I did not try with latest Linux kernel however I could 
> not see any code change regarding this functionality. Hope this will 
> help.
>
> Regards,
> Dev
>
>
> -----Original Message-----
> From: linux-bluetooth-owner@vger.kernel.org
> [mailto:linux-bluetooth-owner@vger.kernel.org] On Behalf Of nirav 
> rabara
> Sent: Wednesday, February 03, 2010 10:21 AM
> To: Gustavo F. Padovan
> Cc: linux-bluetooth@vger.kernel.org
> Subject: Re: Kernel panic when SCO connection
>
> - Show quoted text -
> On Tue, Feb 2, 2010 at 10:46 PM, Gustavo F. Padovan 
> <padovan@profusion.mobi> wrote:
>> Hi Nirav,
>>
>> * nirav rabara <niravrabara@gmail.com> [2010-02-02 22:28:53 +0530]:
>>
>>> Hi,
>>> When I try to connect SCO socket, Kernel getting crash.
>>> Linux kernel - 2.6.22
>>> Bluez - 4.58
>>
>> Please try a 2.6.33 kernel and tell us if the bug still happens.
>>
>>>
>>> error message,
>>> __tx_submit:hci0 tx submit failed urb c0552c14 type 3 err -19
>>>
>>> sometimes in connection is showing error while connection as below, 
>>> hci_acldata_packet:hci0 ACL packet data for unknown connection 
>>> handler 2
>>>
>>> It would be really appreciable if  somebody put some on light on 
>>> this
>
>>> issue, OR suggest me any patch or documentation.
>>>
>>> --
>>> With Regards,
>>> Nirav Rabara
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe 
>>> linux-bluetooth" in the body of a message to 
>>> majordomo@vger.kernel.org More majordomo info at 
>>> http://vger.kernel.org/majordomo-info.html
>>
>> --
>> Gustavo F. Padovan
>> http://padovan.org
>>
>> ProFUSION embedded systems - http://profusion.mobi
>>
>
> Hi Gustavo,
>
> Thanks for your suggestion, but I am using bluez 4.58 on ATMEL 
> AT91SAM9263, no patch available for the newer kernel 2.6.33 . Patches 
> related to my board only available up to 2.6.30.
>
> It would be a great help if suggest me any alternet for this issue. OR 
> any patches for the same problem as i mentioned for 2.6.22.
>
>
> --
> With Regards,
> Nirav Rabara
> --
> To unsubscribe from this list: send the line "unsubscribe 
> linux-bluetooth" in the body of a message to majordomo@vger.kernel.org 
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe 
> linux-bluetooth" in the body of a message to majordomo@vger.kernel.org 
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Kernel panic when SCO connection
       [not found]       ` <f97b2b971002042037j5397ef4j7ceb0521ef12e082@mail.gmail.com>
@ 2010-02-05  4:41         ` Ahmed Ragab
  2010-02-05 13:45           ` SINGH DEVENDRA-DHGW76
  2010-02-08 17:23           ` nirav rabara
  0 siblings, 2 replies; 15+ messages in thread
From: Ahmed Ragab @ 2010-02-05  4:41 UTC (permalink / raw)
  To: SINGH DEVENDRA-DHGW76; +Cc: linux-bluetooth

I think we where writing at the same time

> Hi dev,
>
> Thanks for your suggestions i followed it , however i am have problem
> with step  3.
>

 In step 3

>> int len = (urb->iso_frame_desc[i].actual_length >
>> urb->iso_frame_desc[i].length)?
>>             urb->iso_frame_desc[i].length:
>>             urb->iso_frame_desc[i].actual_length;
>>
>> __recv_frame(husb,
>>                 _urb->type,
>>                urb->transfer_buffer + urb->iso_frame_desc[i].offset,
>>                len);
>
where in the below snapshot from hci_usb.c should we make this work around
>
>        for (i=0; i < urb->number_of_packets; i++) {
>                        BT_DBG("desc %d status %d offset %d len %d", i,
>                                        urb->iso_frame_desc[i].status,
>                                        urb->iso_frame_desc[i].offset,
>                                        urb->iso_frame_desc[i].actual_length);
>
>                        if (!urb->iso_frame_desc[i].status) {
>                                husb->hdev->stat.byte_rx += urb->iso_frame_desc[i].actual_length;
>                                hci_recv_fragment(husb->hdev, _urb->type,
>                                        urb->transfer_buffer + urb->iso_frame_desc[i].offset,
>                                        urb->iso_frame_desc[i].actual_length);
>                        }
>                }
> #else
>                ;
> #endif
>        } else {
>                husb->hdev->stat.byte_rx += count;
>                err = hci_recv_fragment(husb->hdev, _urb->type, urb->transfer_buffer, count);
>                if (err < 0) {
>                        BT_ERR("%s corrupted packet: type %d count %d",
>                                        husb->hdev->name, _urb->type, count);
>                        hdev->stat.err_rx++;
>                }
>        }
>
>
 Thanks

Ahmed
>
>
>
> On 4 February 2010 06:36, SINGH DEVENDRA-DHGW76 <DevSingh@motorola.com> wrote:
>> Hi,
>>
>> I noticed the same problem when I was working with a embedded board with
>> Broadcom chipset and Linux kernel 2.6.18 (I guess). Use case was, a
>> Bluetooth based headset sends data to the CSR Bluetooth dongle(USB),
>> which in turn provide data to the Application through bluez stack.
>>
>>
>> Following were my observation:
>>
>> 1. Board processor is not strong enough and so there was no URB in the
>> queue and audio data was getting accumulated in the USB host controller.
>> There are only 2 Rx URBs (hci_usb.h: #define HCI_MAX_ISOC_RX
>> 2).
>> 2. Actual length of data for data in the URB is reaching to the level of
>> 1K bytes. (Max ISOC data length) however Bluetooth driver is expecting
>> 10 packets of 64 bytes each. hci_usb_isoc_rx_submit function in
>> hci_usb.c file.
>> 3. Completion routine copies data for actual length returned for packet
>> that could be 1024 while limit for one packet is 64B only. (hci_usb.c:
>> hci_usb_rx_complete function).
>> 4. These "SCO packet for unknown connection handle" error logs further
>> complicated the problem as this will further eat-up cpu time.
>>
>>
>> Cause:
>>
>> Max length of available transfer buffer could be 640 bytes (that's
>> depend upon the buffer index) and copying big chunk of data was
>> resulting into memory overrun and kernel memory was getting corrupted
>> that results in un-expected behavior line connection break, lots of
>> noise  and even kernel panic some times.
>>
>>
>> Following was the work around:
>>
>> 1. Increased number of Rx URBs to 6. (hci_usb.h: #define HCI_MAX_ISOC_RX
>> 6).
>> 2. Increased transfer buffer size to 1.5K.
>> 3. Put a check in completion routine that in case actual length is more
>> then frame length then copy only frame length size data as follows:
>>
>> int len = (urb->iso_frame_desc[i].actual_length >
>> urb->iso_frame_desc[i].length)?
>>             urb->iso_frame_desc[i].length:
>>             urb->iso_frame_desc[i].actual_length;
>>
>> __recv_frame(husb,
>>                 _urb->type,
>>                urb->transfer_buffer + urb->iso_frame_desc[i].offset,
>>                len);
>> 4. Logging "SCO packet for unknown connection handle" error only once
>> for 100 errors. This will give more change to queue a URB as
>> follows(hci_core.c:hci_scodata_packet function):
>> hdev->stat.err_rx++;
>> if(!(hdev->stat.err_rx % 100))
>> {
>>        BT_ERR("%s 100 SCO packets for unknown connection
>> handles",hdev->name);
>> }
>>
>>
>> I must say that I did not try with latest Linux kernel however I could
>> not see any code change regarding this functionality. Hope this will
>> help.
>>
>> Regards,
>> Dev
>>
>>
>> -----Original Message-----
>> From: linux-bluetooth-owner@vger.kernel.org
>> [mailto:linux-bluetooth-owner@vger.kernel.org] On Behalf Of nirav rabara
>> Sent: Wednesday, February 03, 2010 10:21 AM
>> To: Gustavo F. Padovan
>> Cc: linux-bluetooth@vger.kernel.org
>> Subject: Re: Kernel panic when SCO connection
>>
>> - Show quoted text -
>> On Tue, Feb 2, 2010 at 10:46 PM, Gustavo F. Padovan
>> <padovan@profusion.mobi> wrote:
>>> Hi Nirav,
>>>
>>> * nirav rabara <niravrabara@gmail.com> [2010-02-02 22:28:53 +0530]:
>>>
>>>> Hi,
>>>> When I try to connect SCO socket, Kernel getting crash.
>>>> Linux kernel - 2.6.22
>>>> Bluez - 4.58
>>>
>>> Please try a 2.6.33 kernel and tell us if the bug still happens.
>>>
>>>>
>>>> error message,
>>>> __tx_submit:hci0 tx submit failed urb c0552c14 type 3 err -19
>>>>
>>>> sometimes in connection is showing error while connection as below,
>>>> hci_acldata_packet:hci0 ACL packet data for unknown connection
>>>> handler 2
>>>>
>>>> It would be really appreciable if  somebody put some on light on this
>>
>>>> issue, OR suggest me any patch or documentation.
>>>>
>>>> --
>>>> With Regards,
>>>> Nirav Rabara
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe
>>>> linux-bluetooth" in the body of a message to
>>>> majordomo@vger.kernel.org More majordomo info at
>>>> http://vger.kernel.org/majordomo-info.html
>>>
>>> --
>>> Gustavo F. Padovan
>>> http://padovan.org
>>>
>>> ProFUSION embedded systems - http://profusion.mobi
>>>
>>
>> Hi Gustavo,
>>
>> Thanks for your suggestion, but I am using bluez 4.58 on ATMEL
>> AT91SAM9263, no patch available for the newer kernel 2.6.33 . Patches
>> related to my board only available up to 2.6.30.
>>
>> It would be a great help if suggest me any alternet for this issue. OR
>> any patches for the same problem as i mentioned for 2.6.22.
>>
>>
>> --
>> With Regards,
>> Nirav Rabara
>> --
>> To unsubscribe from this list: send the line "unsubscribe
>> linux-bluetooth" in the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: Kernel panic when SCO connection
  2010-02-05  4:41         ` Ahmed Ragab
@ 2010-02-05 13:45           ` SINGH DEVENDRA-DHGW76
  2010-02-08 17:23           ` nirav rabara
  1 sibling, 0 replies; 15+ messages in thread
From: SINGH DEVENDRA-DHGW76 @ 2010-02-05 13:45 UTC (permalink / raw)
  To: Ahmed Ragab; +Cc: linux-bluetooth

Hi Ahmed,

Yes you are right.

Regards,
Dev

-----Original Message-----
From: Ahmed Ragab [mailto:elmasri.ahmed@gmail.com] 
Sent: Friday, February 05, 2010 10:12 AM
To: SINGH DEVENDRA-DHGW76
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Kernel panic when SCO connection

I think we where writing at the same time

> Hi dev,
>
> Thanks for your suggestions i followed it , however i am have problem 
> with step  3.
>

 In step 3

>> int len = (urb->iso_frame_desc[i].actual_length >
>> urb->iso_frame_desc[i].length)?
>>             urb->iso_frame_desc[i].length:
>>             urb->iso_frame_desc[i].actual_length;
>>
>> __recv_frame(husb,
>>                 _urb->type,
>>                urb->transfer_buffer + urb->iso_frame_desc[i].offset,
>>                len);
>
where in the below snapshot from hci_usb.c should we make this work around
>
>        for (i=0; i < urb->number_of_packets; i++) {
>                        BT_DBG("desc %d status %d offset %d len %d", i,
>                                        urb->iso_frame_desc[i].status,
>                                        urb->iso_frame_desc[i].offset,
>                                        
> urb->iso_frame_desc[i].actual_length);
>
>                        if (!urb->iso_frame_desc[i].status) {
>                                husb->hdev->stat.byte_rx += 
> urb->iso_frame_desc[i].actual_length;
>                                hci_recv_fragment(husb->hdev, 
> _urb->type,
>                                        urb->transfer_buffer + 
> urb->iso_frame_desc[i].offset,
>                                        
> urb->iso_frame_desc[i].actual_length);
>                        }
>                }
> #else
>                ;
> #endif
>        } else {
>                husb->hdev->stat.byte_rx += count;
>                err = hci_recv_fragment(husb->hdev, _urb->type, 
> urb->transfer_buffer, count);
>                if (err < 0) {
>                        BT_ERR("%s corrupted packet: type %d count %d",
>                                        husb->hdev->name, _urb->type, 
> count);
>                        hdev->stat.err_rx++;
>                }
>        }
>
>
 Thanks

Ahmed
>
>
>
> On 4 February 2010 06:36, SINGH DEVENDRA-DHGW76 <DevSingh@motorola.com> wrote:
>> Hi,
>>
>> I noticed the same problem when I was working with a embedded board 
>> with Broadcom chipset and Linux kernel 2.6.18 (I guess). Use case 
>> was, a Bluetooth based headset sends data to the CSR Bluetooth 
>> dongle(USB), which in turn provide data to the Application through bluez stack.
>>
>>
>> Following were my observation:
>>
>> 1. Board processor is not strong enough and so there was no URB in 
>> the queue and audio data was getting accumulated in the USB host controller.
>> There are only 2 Rx URBs (hci_usb.h: #define HCI_MAX_ISOC_RX 2).
>> 2. Actual length of data for data in the URB is reaching to the level 
>> of 1K bytes. (Max ISOC data length) however Bluetooth driver is 
>> expecting 10 packets of 64 bytes each. hci_usb_isoc_rx_submit 
>> function in hci_usb.c file.
>> 3. Completion routine copies data for actual length returned for 
>> packet that could be 1024 while limit for one packet is 64B only. (hci_usb.c:
>> hci_usb_rx_complete function).
>> 4. These "SCO packet for unknown connection handle" error logs 
>> further complicated the problem as this will further eat-up cpu time.
>>
>>
>> Cause:
>>
>> Max length of available transfer buffer could be 640 bytes (that's 
>> depend upon the buffer index) and copying big chunk of data was 
>> resulting into memory overrun and kernel memory was getting corrupted 
>> that results in un-expected behavior line connection break, lots of 
>> noise  and even kernel panic some times.
>>
>>
>> Following was the work around:
>>
>> 1. Increased number of Rx URBs to 6. (hci_usb.h: #define 
>> HCI_MAX_ISOC_RX 6).
>> 2. Increased transfer buffer size to 1.5K.
>> 3. Put a check in completion routine that in case actual length is 
>> more then frame length then copy only frame length size data as follows:
>>
>> int len = (urb->iso_frame_desc[i].actual_length >
>> urb->iso_frame_desc[i].length)?
>>             urb->iso_frame_desc[i].length:
>>             urb->iso_frame_desc[i].actual_length;
>>
>> __recv_frame(husb,
>>                 _urb->type,
>>                urb->transfer_buffer + urb->iso_frame_desc[i].offset,
>>                len);
>> 4. Logging "SCO packet for unknown connection handle" error only once 
>> for 100 errors. This will give more change to queue a URB as 
>> follows(hci_core.c:hci_scodata_packet function):
>> hdev->stat.err_rx++;
>> if(!(hdev->stat.err_rx % 100))
>> {
>>        BT_ERR("%s 100 SCO packets for unknown connection 
>> handles",hdev->name); }
>>
>>
>> I must say that I did not try with latest Linux kernel however I 
>> could not see any code change regarding this functionality. Hope this 
>> will help.
>>
>> Regards,
>> Dev
>>
>>
>> -----Original Message-----
>> From: linux-bluetooth-owner@vger.kernel.org
>> [mailto:linux-bluetooth-owner@vger.kernel.org] On Behalf Of nirav 
>> rabara
>> Sent: Wednesday, February 03, 2010 10:21 AM
>> To: Gustavo F. Padovan
>> Cc: linux-bluetooth@vger.kernel.org
>> Subject: Re: Kernel panic when SCO connection
>>
>> - Show quoted text -
>> On Tue, Feb 2, 2010 at 10:46 PM, Gustavo F. Padovan 
>> <padovan@profusion.mobi> wrote:
>>> Hi Nirav,
>>>
>>> * nirav rabara <niravrabara@gmail.com> [2010-02-02 22:28:53 +0530]:
>>>
>>>> Hi,
>>>> When I try to connect SCO socket, Kernel getting crash.
>>>> Linux kernel - 2.6.22
>>>> Bluez - 4.58
>>>
>>> Please try a 2.6.33 kernel and tell us if the bug still happens.
>>>
>>>>
>>>> error message,
>>>> __tx_submit:hci0 tx submit failed urb c0552c14 type 3 err -19
>>>>
>>>> sometimes in connection is showing error while connection as below, 
>>>> hci_acldata_packet:hci0 ACL packet data for unknown connection 
>>>> handler 2
>>>>
>>>> It would be really appreciable if  somebody put some on light on 
>>>> this
>>
>>>> issue, OR suggest me any patch or documentation.
>>>>
>>>> --
>>>> With Regards,
>>>> Nirav Rabara
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe 
>>>> linux-bluetooth" in the body of a message to 
>>>> majordomo@vger.kernel.org More majordomo info at 
>>>> http://vger.kernel.org/majordomo-info.html
>>>
>>> --
>>> Gustavo F. Padovan
>>> http://padovan.org
>>>
>>> ProFUSION embedded systems - http://profusion.mobi
>>>
>>
>> Hi Gustavo,
>>
>> Thanks for your suggestion, but I am using bluez 4.58 on ATMEL 
>> AT91SAM9263, no patch available for the newer kernel 2.6.33 . Patches 
>> related to my board only available up to 2.6.30.
>>
>> It would be a great help if suggest me any alternet for this issue. 
>> OR any patches for the same problem as i mentioned for 2.6.22.
>>
>>
>> --
>> With Regards,
>> Nirav Rabara
>> --
>> To unsubscribe from this list: send the line "unsubscribe 
>> linux-bluetooth" in the body of a message to 
>> majordomo@vger.kernel.org More majordomo info at  
>> http://vger.kernel.org/majordomo-info.html
>> --
>> To unsubscribe from this list: send the line "unsubscribe 
>> linux-bluetooth" in the body of a message to 
>> majordomo@vger.kernel.org More majordomo info at  
>> http://vger.kernel.org/majordomo-info.html
>>
>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: Kernel panic when SCO connection
  2010-02-04 14:11       ` Marcel Holtmann
@ 2010-02-05 13:51         ` SINGH DEVENDRA-DHGW76
  2010-02-05 14:57           ` Marcel Holtmann
  0 siblings, 1 reply; 15+ messages in thread
From: SINGH DEVENDRA-DHGW76 @ 2010-02-05 13:51 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: linux-bluetooth

Thanks for information Marcel. Do you know that 2.6.33-rc6 kernel code
having any change regarding points I encountered on older release?=20

Regards,
Dev

-----Original Message-----
From: Marcel Holtmann [mailto:marcel@holtmann.org]=20
Sent: Thursday, February 04, 2010 7:41 PM
To: SINGH DEVENDRA-DHGW76
Cc: linux-bluetooth@vger.kernel.org
Subject: RE: Kernel panic when SCO connection

Hi,

> I noticed the same problem when I was working with a embedded board=20
> with Broadcom chipset and Linux kernel 2.6.18 (I guess). Use case was,

> a Bluetooth based headset sends data to the CSR Bluetooth dongle(USB),

> which in turn provide data to the Application through bluez stack.
>=20
>=20
> Following were my observation:
>=20
> 1. Board processor is not strong enough and so there was no URB in the

> queue and audio data was getting accumulated in the USB host
controller.
> There are only 2 Rx URBs (hci_usb.h: #define HCI_MAX_ISOC_RX 2).
> 2. Actual length of data for data in the URB is reaching to the level=20
> of 1K bytes. (Max ISOC data length) however Bluetooth driver is=20
> expecting 10 packets of 64 bytes each. hci_usb_isoc_rx_submit function

> in hci_usb.c file.
> 3. Completion routine copies data for actual length returned for=20
> packet that could be 1024 while limit for one packet is 64B only.
(hci_usb.c:
> hci_usb_rx_complete function).
> 4. These "SCO packet for unknown connection handle" error logs further

> complicated the problem as this will further eat-up cpu time.
>=20
>=20
> Cause:
>=20
> Max length of available transfer buffer could be 640 bytes (that's=20
> depend upon the buffer index) and copying big chunk of data was=20
> resulting into memory overrun and kernel memory was getting corrupted=20
> that results in un-expected behavior line connection break, lots of=20
> noise  and even kernel panic some times.
>=20
>=20
> Following was the work around:
>=20
> 1. Increased number of Rx URBs to 6. (hci_usb.h: #define=20
> HCI_MAX_ISOC_RX 6).
> 2. Increased transfer buffer size to 1.5K.
> 3. Put a check in completion routine that in case actual length is=20
> more then frame length then copy only frame length size data as
follows:
>=20
> int len =3D (urb->iso_frame_desc[i].actual_length >
> urb->iso_frame_desc[i].length)?
> 	     urb->iso_frame_desc[i].length:
> 	     urb->iso_frame_desc[i].actual_length;
>=20
> __recv_frame(husb,
> 		 _urb->type,=20
> 		urb->transfer_buffer + urb->iso_frame_desc[i].offset,
> 		len);
> 4. Logging "SCO packet for unknown connection handle" error only once=20
> for 100 errors. This will give more change to queue a URB as=20
> follows(hci_core.c:hci_scodata_packet function):
> hdev->stat.err_rx++;
> if(!(hdev->stat.err_rx % 100))
> {
> 	BT_ERR("%s 100 SCO packets for unknown connection=20
> handles",hdev->name); }
>=20
>=20
> I must say that I did not try with latest Linux kernel however I could

> not see any code change regarding this functionality. Hope this will=20
> help.

I can see a big code change in the latest 2.6.33-rc6 kernel. The hci_usb
driver has been replaced by btusb since a few releases now ;)

Regards

Marcel

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: Kernel panic when SCO connection
  2010-02-05 13:51         ` SINGH DEVENDRA-DHGW76
@ 2010-02-05 14:57           ` Marcel Holtmann
  0 siblings, 0 replies; 15+ messages in thread
From: Marcel Holtmann @ 2010-02-05 14:57 UTC (permalink / raw)
  To: SINGH DEVENDRA-DHGW76; +Cc: linux-bluetooth

Hi Dev,

> Thanks for information Marcel. Do you know that 2.6.33-rc6 kernel code
> having any change regarding points I encountered on older release? 

as I said. We replaced the hci_usb driver with btusb. It is a full
re-write from scratch and should not have any issues.

Regards

Marcel



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Kernel panic when SCO connection
  2010-02-05  4:41         ` Ahmed Ragab
  2010-02-05 13:45           ` SINGH DEVENDRA-DHGW76
@ 2010-02-08 17:23           ` nirav rabara
  1 sibling, 0 replies; 15+ messages in thread
From: nirav rabara @ 2010-02-08 17:23 UTC (permalink / raw)
  To: Ahmed Ragab; +Cc: linux-bluetooth

Hi Ahmed,

Have you tried with SINGH DEVENDRA-DHGW76 suggestion?
I have tried for linux kernel 2.6.22, but the result is same . Also I
think I am having problem with Tx instead of Rx because error show
__tx_submit:hci0 tx submit failed urb c0552c14 type 3 err -19.

I have change the HCI_MAX_ISOC_RX and HCI_MAX_ISOC_TX size to 6  ,
#define TRANSFER_BUF_SIZE 1536 also tested by varying this values but
not successful,

It would be great if you share your experience.

-- 
With Regards,
Nirav Rabara

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2010-02-08 17:23 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-02 16:58 Kernel panic when SCO connection nirav rabara
2010-02-02 17:16 ` Gustavo F. Padovan
2010-02-02 22:01   ` Ahmed Ragab
2010-02-04  5:56     ` nirav rabara
2010-02-04 15:26       ` Ahmed Ragab
2010-02-03  4:51   ` nirav rabara
2010-02-04 11:36     ` SINGH DEVENDRA-DHGW76
2010-02-04 14:11       ` Marcel Holtmann
2010-02-05 13:51         ` SINGH DEVENDRA-DHGW76
2010-02-05 14:57           ` Marcel Holtmann
2010-02-04 20:06       ` Ahmed Ragab
2010-02-05  4:31         ` SINGH DEVENDRA-DHGW76
     [not found]       ` <f97b2b971002042037j5397ef4j7ceb0521ef12e082@mail.gmail.com>
2010-02-05  4:41         ` Ahmed Ragab
2010-02-05 13:45           ` SINGH DEVENDRA-DHGW76
2010-02-08 17:23           ` nirav rabara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).