01021832 Exception occurs in bluesleep

If you can't explain it simply, you don't understand it well enough.
- Albert Einstein
回覆文章
admin
系統管理員
文章: 82
註冊時間: 2013年 4月 5日, 21:16

01021832 Exception occurs in bluesleep

文章 admin » 2013年 4月 7日, 23:12

Subject

Exception occurs in bluesleep



Description

Dear Qualcomm support team,

We meet some problem while porting our bluesleep driver from BSP 2045 ICS to BSP 2535 JB.
There is a exception occurs while bluetooth waking up and turning on high speed UART's clock.
(Please refrer to the log in attachment)
The root cause is that the isr-handler of bluesleep calls the function 'clk_prepare_enable' which is only used in non-atomic context.
Comparing the msm_serial_hs.c between 2045 and 2535, we find there is one more mutex in 2535, and the function 'clk_enable' is replaced by 'clk_prepare_enable'.
We don't know whether the mutex and clk_prepare are necessary, but wihout the mutex and clk_prepare, the exception would not occur.
We want to know shall we just remove them or if there is any patch to fix the exception?

Thank you.
圖檔

admin
系統管理員
文章: 82
註冊時間: 2013年 4月 5日, 21:16

Re: 01021832 Exception occurs in bluesleep

文章 admin » 2013年 4月 8日, 00:22

Comment

Created By: Vic Wei (11/21/2012 6:06 AM)
Dear customer,
Thanks so much for contacting Qualcomm.
To be honest, we are not the expert for high speed uart driver.
Could you please raise new case to the right team?
Thanks a lot in advance,
Vic Wei




Created By: James Chiu (11/19/2012 6:01 PM)
Dear Vic,

Our BT chip needs isr to handle the GPIO state to control the sleep state machine, so we still need to use bluesleep.
Since you are no longer to support bluesleep module, we won't ask for help on bluesleep.
But we want to know the change in high speed uart driver, what are the mutex 'mutex_lock(&msm_uport->clk_mutex);' and 'clk_prepare_enable' used for?
Will there be some bugs without the mutex and clk_prepare function?

Thank you.




Created By: Vic Wei (11/18/2012 11:06 PM)
Dear customer,
Thanks so much for contacting Qualcomm.
We are no longer to support bluesleep module for WCN2243 v2.0 or later.
Please use hci_ibs.c (Bluetooth in-band sleep) module instead.
Thanks,
Vic Wei




Created By: Vic Wei (11/18/2012 10:50 PM)
Let us check and update to you later.




Created By: James Chiu (11/16/2012 12:40 AM)
Dear Vic,

Please refer to the log in attachment.

Thank you.
James Chiu




Created By: Vic Wei (11/15/2012 2:44 AM)
Dear customer,
Thanks so much for contacting Qualcomm.
Could you please modify Makefile under kernel\driver\bluetooth with one additional line “CFLAGS_hci_ibs.o := -DDEBUG“ and take the log accordingly?
Thanks,
Vic Wei




Created By: James Chiu (11/14/2012 9:44 PM)
Dear Vic,

Is there any finding for this case?




Created By: Vic Wei (11/13/2012 2:55 AM)
Let us check and update to you later.
圖檔

回覆文章