All of lore.kernel.org
 help / color / mirror / Atom feed
* Removing Gadget File Storage module
@ 2007-05-28 16:32 Ragner N Magalhães
  2007-05-28 17:19 ` José Luís
  2007-05-28 20:13 ` Alan Stern
  0 siblings, 2 replies; 6+ messages in thread
From: Ragner N Magalhães @ 2007-05-28 16:32 UTC (permalink / raw)
  To: linux-usb-devel, Linux OMAP

Hi all,
 I am working with OMAP H2 and when I run "rmmod g_file_storage", it
stay waiting some thing and not terminate ...

 Somebody know some thing about this ?

Thanks,

-- 
Ragner N Magalhães

Instituto Nokia de Tecnologia - INdT
Open Source Mobile Research Center - OSMRC
Linux Kernel Team

E-mail: ragner.magalhaes@indt.org.br
            ragner@users.sourceforge.net

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

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

* Re: Removing Gadget File Storage module
  2007-05-28 16:32 Removing Gadget File Storage module Ragner N Magalhães
@ 2007-05-28 17:19 ` José Luís
  2007-05-28 18:39   ` Ragner N Magalhães
  2007-05-28 20:13 ` Alan Stern
  1 sibling, 1 reply; 6+ messages in thread
From: José Luís @ 2007-05-28 17:19 UTC (permalink / raw)
  To: Ragner N Magalhães, linux-omap-open-source

Hi Ragner,

Try unmount the /media/mmc* volumes before remove the module.
[]'s
José Luís

On 5/28/07, Ragner N Magalhães <ragner@users.sourceforge.net> wrote:
>
> Hi all,
> I am working with OMAP H2 and when I run "rmmod g_file_storage", it
> stay waiting some thing and not terminate ...
>
> Somebody know some thing about this ?
>
> Thanks,
>
> --
> Ragner N Magalhães
>
> Instituto Nokia de Tecnologia - INdT
> Open Source Mobile Research Center - OSMRC
> Linux Kernel Team
>
> E-mail: ragner.magalhaes@indt.org.br
>             ragner@users.sourceforge.net
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>



-- 
José Luís do Nascimento
Mestrando em Engenharia Elétrica
Laboratório de Sistemas Embarcados e Computação Pervasiva
Centro de Engenharia Elétrica e Informática - CEEI
Universidade Federal de Campina Grande - UFCG
jluisn@dee.ufcg.edu.br

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

* Re: Removing Gadget File Storage module
  2007-05-28 17:19 ` José Luís
@ 2007-05-28 18:39   ` Ragner N Magalhães
  0 siblings, 0 replies; 6+ messages in thread
From: Ragner N Magalhães @ 2007-05-28 18:39 UTC (permalink / raw)
  To: José Luís; +Cc: linux-omap-open-source, linux-usb-devel

Hi,

On 5/28/07, José Luís <jluisn@gmail.com> wrote:
> Hi Ragner,
>
> Try unmount the /media/mmc* volumes before remove the module.
> []'s

I am not mounting /media/mmc*

I think that is some thing with signal arrives at
sleep_thread(struct fsg_dev *fsg) function ...
called by fsg_main_thread(void *fsg_) ...


> José Luís
>
> --
> José Luís do Nascimento
> Mestrando em Engenharia Elétrica
> Laboratório de Sistemas Embarcados e Computação Pervasiva
> Centro de Engenharia Elétrica e Informática - CEEI
> Universidade Federal de Campina Grande - UFCG
> jluisn@dee.ufcg.edu.br

Thanks,

-- 
Ragner N Magalhães

Instituto Nokia de Tecnologia - INdT
Open Source Mobile Research Center - OSMRC
Linux Kernel Team

E-mail: ragner.magalhaes@indt.org.br
            ragner@users.sourceforge.net

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

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

* Re: Removing Gadget File Storage module
  2007-05-28 16:32 Removing Gadget File Storage module Ragner N Magalhães
  2007-05-28 17:19 ` José Luís
@ 2007-05-28 20:13 ` Alan Stern
  2007-05-29 15:22   ` Ragner N Magalhães
  1 sibling, 1 reply; 6+ messages in thread
From: Alan Stern @ 2007-05-28 20:13 UTC (permalink / raw)
  To: Ragner N Magalhães; +Cc: Linux OMAP, linux-usb-devel

On Mon, 28 May 2007, Ragner N Magalhães wrote:

> Hi all,
>  I am working with OMAP H2 and when I run "rmmod g_file_storage", it
> stay waiting some thing and not terminate ...
> 
>  Somebody know some thing about this ?

Which version of the Linux kernel are you using?

If you enable debugging in g_file_storage, what shows up in the dmesg 
log?

When the rmmod is waiting, what does a stack trace (Alt-SysRq-T) show?

Really, you shouldn't expect people to be able to help if you don't 
provide any information...

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

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

* Re: Removing Gadget File Storage module
  2007-05-28 20:13 ` Alan Stern
@ 2007-05-29 15:22   ` Ragner N Magalhães
  2007-05-30 15:01     ` Alan Stern
  0 siblings, 1 reply; 6+ messages in thread
From: Ragner N Magalhães @ 2007-05-29 15:22 UTC (permalink / raw)
  To: Alan Stern; +Cc: Linux OMAP, linux-usb-devel

On 5/28/07, Alan Stern <stern@rowland.harvard.edu> wrote:
> On Mon, 28 May 2007, Ragner N Magalhães wrote:
>
> > Hi all,
> >  I am working with OMAP H2 and when I run "rmmod g_file_storage", it
> > stay waiting some thing and not terminate ...
> >
> >  Somebody know some thing about this ?
>
> Which version of the Linux kernel are you using?

I am using the last omap git tree from
http://www.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git

>
> If you enable debugging in g_file_storage, what shows up in the dmesg
> log?
...
udc: OMAP UDC driver, version: 4 October 2004 (iso) (dma)
bus platform: add driver omap_udc
platform: Matched Device omap_udc with Driver omap_udc
platform: Probing driver omap_udc with device omap_udc
udc: OMAP UDC rev 3.6, Mini-AB
udc: hmc mode 19, isp1301_omap transceiver
udc: fifo mode 3, 392 bytes not used
DEV: registering device: ID = 'gadget'
PM: Adding info for No Bus:gadget
bound device 'omap_udc' to driver 'omap_udc'
platform: Bound Device omap_udc to Driver omap_udc
DEV: registering device: ID = 'vcs2'
PM: Adding info for No Bus:vcs2
DEV: registering device: ID = 'vcsa2'
PM: Adding info for No Bus:vcsa2
DEV: registering device: ID = 'vcs1'
PM: Adding info for No Bus:vcs1
DEV: registering device: ID = 'vcsa1'
PM: Adding info for No Bus:vcsa1
DEV: registering device: ID = 'gadget-lun0'
PM: Adding info for No Bus:gadget-lun0
g_file_storage gadget: File-backed Storage Gadget, version: 28 November 2005
g_file_storage gadget: Number of LUNs=1
g_file_storage gadget: transport=Bulk-only (x50)
g_file_storage gadget: protocol=Transparent SCSI (x06)
g_file_storage gadget: VendorID=x0525, ProductID=xa4a5, Release=x0308
g_file_storage gadget: removable=1, stall=1, buflen=16384
g_file_storage gadget: I/O thread pid: 957
otg: b_idle, SWITCH to gadget, ctrl 098021
isp1301_omap 1-002d: ready for dual-role USB ...
tps65010: battery charging
udc: USB reset done, gadget g_file_storage
g_file_storage gadget: suspend
g_file_storage gadget: resume
udc: USB reset done, gadget g_file_storage
g_file_storage gadget: suspend
g_file_storage gadget: resume
udc: USB reset done, gadget g_file_storage
g_file_storage gadget: ep0-setup, length 8:
     0:  80 06 00 01 00 00 40 00
g_file_storage gadget: get device descriptor
g_file_storage gadget: ep0-in, length 18:
     0:  12 01 00 02 00 00 00 40  25 05 a5 a4 08 03 01 02
    10:  03 01
udc: USB reset done, gadget g_file_storage
g_file_storage gadget: ep0-setup, length 8:
     0:  80 06 00 01 00 00 12 00
g_file_storage gadget: get device descriptor
g_file_storage gadget: ep0-in, length 18:
     0:  12 01 00 02 00 00 00 40  25 05 a5 a4 08 03 01 02
    10:  03 01
g_file_storage gadget: ep0-setup, length 8:
     0:  80 06 00 06 00 00 0a 00
g_file_storage gadget: ep0-setup, length 8:
     0:  80 06 00 06 00 00 0a 00
g_file_storage gadget: ep0-setup, length 8:
     0:  80 06 00 06 00 00 0a 00
g_file_storage gadget: ep0-setup, length 8:
     0:  80 06 00 02 00 00 09 00
g_file_storage gadget: get configuration descriptor
g_file_storage gadget: ep0-in, length 9:
     0:  09 02 23 00 01 01 04 e0  01
g_file_storage gadget: ep0-setup, length 8:
     0:  80 06 00 02 00 00 23 00
g_file_storage gadget: get configuration descriptor
g_file_storage gadget: ep0-in, length 35:
     0:  09 02 23 00 01 01 04 e0  01 03 09 03 09 04 00 00
    10:  02 08 06 50 05 07 05 81  02 40 00 00 07 05 02 02
    20:  40 00 00
g_file_storage gadget: ep0-setup, length 8:
     0:  80 06 00 03 00 00 ff 00
g_file_storage gadget: get string descriptor
g_file_storage gadget: ep0-in, length 4:
     0:  04 03 09 04
g_file_storage gadget: ep0-setup, length 8:
     0:  80 06 02 03 09 04 ff 00
g_file_storage gadget: get string descriptor
g_file_storage gadget: ep0-in, length 54:
     0:  36 03 46 00 69 00 6c 00  65 00 2d 00 62 00 61 00
    10:  63 00 6b 00 65 00 64 00  20 00 53 00 74 00 6f 00
    20:  72 00 61 00 67 00 65 00  20 00 47 00 61 00 64 00
    30:  67 00 65 00 74 00
g_file_storage gadget: ep0-setup, length 8:
     0:  80 06 01 03 09 04 ff 00
g_file_storage gadget: get string descriptor
g_file_storage gadget: ep0-in, length 106:
     0:  6a 03 4c 00 69 00 6e 00  75 00 78 00 20 00 32 00
    10:  2e 00 36 00 2e 00 32 00  32 00 2d 00 72 00 63 00
    20:  32 00 2d 00 6f 00 6d 00  61 00 70 00 31 00 2d 00
    30:  67 00 61 00 38 00 62 00  32 00 38 00 39 00 39 00
    40:  65 00 2d 00 64 00 69 00  72 00 74 00 79 00 20 00
    50:  77 00 69 00 74 00 68 00  20 00 6f 00 6d 00 61 00
    60:  70 00 5f 00 75 00 64 00  63 00
g_file_storage gadget: ep0-setup, length 8:
     0:  80 06 03 03 09 04 ff 00
g_file_storage gadget: get string descriptor
g_file_storage gadget: ep0-in, length 26:
     0:  1a 03 33 00 32 00 33 00  38 00 32 00 30 00 34 00
    10:  45 00 36 00 46 00 37 00  36 00
g_file_storage gadget: ep0-setup, length 8:
     0:  00 09 01 00 00 00 00 00
g_file_storage gadget: set configuration
g_file_storage gadget: suspend
g_file_storage gadget: resume
tps65010: battery discharging
g_file_storage gadget: unbind
DEV: Unregistering device. ID = 'gadget-lun0'
PM: Removing info for No Bus:gadget-lun0

>
> When the rmmod is waiting, what does a stack trace (Alt-SysRq-T) show?

SysRq : Show State

                         free                        sibling
  task             PC    stack   pid father child younger older
init          S C02074C4     0     1      0 (NOTLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c0207fa8>] (schedule_timeout+0x9c/0xd0)
[<c0207f0c>] (schedule_timeout+0x0/0xd0) from [<c009203c>]
(do_select+0x3f0/0x460)
 r7:c032bf54 r6:000001f4 r5:c032bf74 r4:00000000
[<c0091c4c>] (do_select+0x0/0x460) from [<c0092384>] (sys_select+0x2d8/0x4b8)
[<c00920ac>] (sys_select+0x0/0x4b8) from [<c0026e40>]
(ret_fast_syscall+0x0/0x2c)
kthreadd      S C02074C4     0     2      0 (L-TLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c005411c>] (kthreadd+0x68/0xf0)
[<c00540b4>] (kthreadd+0x0/0xf0) from [<c0043ab4>] (do_exit+0x0/0x79c)
 r7:00000000 r6:00000000 r5:00000000 r4:00000000
ksoftirqd/0   S C02074C4     0     3      2 (L-TLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c004608c>] (ksoftirqd+0x54/0xac)
[<c0046038>] (ksoftirqd+0x0/0xac) from [<c00542a4>] (kthread+0x58/0x90)
 r5:00000000 r4:c0330000
[<c005424c>] (kthread+0x0/0x90) from [<c0043ab4>] (do_exit+0x0/0x79c)
 r6:00000000 r5:00000000 r4:00000000
watchdog/0    S C02074C4     0     4      2 (L-TLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c00626e4>] (watchdog+0x5c/0x70)
[<c0062688>] (watchdog+0x0/0x70) from [<c00542a4>] (kthread+0x58/0x90)
 r4:c0332000
[<c005424c>] (kthread+0x0/0x90) from [<c0043ab4>] (do_exit+0x0/0x79c)
 r6:00000000 r5:00000000 r4:00000000
events/0      S C02074C4     0     5      2 (L-TLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c00508fc>] (worker_thread+0xc8/0x114)
[<c0050834>] (worker_thread+0x0/0x114) from [<c00542a4>] (kthread+0x58/0x90)
 r6:c0050834 r5:c0310a40 r4:c0334000
[<c005424c>] (kthread+0x0/0x90) from [<c0043ab4>] (do_exit+0x0/0x79c)
 r6:00000000 r5:00000000 r4:00000000
khelper       S C02074C4     0     6      2 (L-TLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c00508fc>] (worker_thread+0xc8/0x114)
[<c0050834>] (worker_thread+0x0/0x114) from [<c00542a4>] (kthread+0x58/0x90)
 r6:c0050834 r5:c03109e0 r4:c0338000
[<c005424c>] (kthread+0x0/0x90) from [<c0043ab4>] (do_exit+0x0/0x79c)
 r6:00000000 r5:00000000 r4:00000000
kblockd/0     S C02074C4     0    46      2 (L-TLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c00508fc>] (worker_thread+0xc8/0x114)
[<c0050834>] (worker_thread+0x0/0x114) from [<c00542a4>] (kthread+0x58/0x90)
 r6:c0050834 r5:c035bc80 r4:c0370000
[<c005424c>] (kthread+0x0/0x90) from [<c0043ab4>] (do_exit+0x0/0x79c)
 r6:00000000 r5:00000000 r4:00000000
kseriod       S C02074C4     0    47      2 (L-TLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c01432e4>] (serio_thread+0x2ac/0x31c)
[<c0143038>] (serio_thread+0x0/0x31c) from [<c00542a4>] (kthread+0x58/0x90)
 r7:00000000 r6:c0143038 r5:00000000 r4:c0372000
[<c005424c>] (kthread+0x0/0x90) from [<c0043ab4>] (do_exit+0x0/0x79c)
 r6:00000000 r5:00000000 r4:00000000
omap_uwire    S C02074C4     0    52      2 (L-TLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c00508fc>] (worker_thread+0xc8/0x114)
[<c0050834>] (worker_thread+0x0/0x114) from [<c00542a4>] (kthread+0x58/0x90)
 r6:c0050834 r5:c0365860 r4:c03a2000
[<c005424c>] (kthread+0x0/0x90) from [<c0043ab4>] (do_exit+0x0/0x79c)
 r6:00000000 r5:00000000 r4:00000000
ksuspend_usbd S C02074C4     0    55      2 (L-TLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c00508fc>] (worker_thread+0xc8/0x114)
[<c0050834>] (worker_thread+0x0/0x114) from [<c00542a4>] (kthread+0x58/0x90)
 r6:c0050834 r5:c0365680 r4:c0390000
[<c005424c>] (kthread+0x0/0x90) from [<c0043ab4>] (do_exit+0x0/0x79c)
 r6:00000000 r5:00000000 r4:00000000
khubd         S C02074C4     0    58      2 (L-TLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c01708dc>] (hub_thread+0xb40/0xc1c)
[<c016fd9c>] (hub_thread+0x0/0xc1c) from [<c00542a4>] (kthread+0x58/0x90)
[<c005424c>] (kthread+0x0/0x90) from [<c0043ab4>] (do_exit+0x0/0x79c)
 r6:00000000 r5:00000000 r4:00000000
pdflush       S C02074C4     0    72      2 (L-TLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c006bd00>] (pdflush+0xc4/0x1f4)
[<c006bc3c>] (pdflush+0x0/0x1f4) from [<c00542a4>] (kthread+0x58/0x90)
 r7:00000000 r6:c006bc3c r5:00000000 r4:c039c000
[<c005424c>] (kthread+0x0/0x90) from [<c0043ab4>] (do_exit+0x0/0x79c)
 r6:00000000 r5:00000000 r4:00000000
pdflush       S C02074C4     0    73      2 (L-TLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c006bd00>] (pdflush+0xc4/0x1f4)
[<c006bc3c>] (pdflush+0x0/0x1f4) from [<c00542a4>] (kthread+0x58/0x90)
 r7:00000000 r6:c006bc3c r5:00000000 r4:c039e000
[<c005424c>] (kthread+0x0/0x90) from [<c0043ab4>] (do_exit+0x0/0x79c)
 r6:00000000 r5:00000000 r4:00000000
kswapd0       S C02074C4     0    74      2 (L-TLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c006f2e0>] (kswapd+0xcc/0x470)
[<c006f214>] (kswapd+0x0/0x470) from [<c00542a4>] (kthread+0x58/0x90)
[<c005424c>] (kthread+0x0/0x90) from [<c0043ab4>] (do_exit+0x0/0x79c)
 r6:00000000 r5:00000000 r4:00000000
aio/0         S C02074C4     0    75      2 (L-TLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c00508fc>] (worker_thread+0xc8/0x114)
[<c0050834>] (worker_thread+0x0/0x114) from [<c00542a4>] (kthread+0x58/0x90)
 r6:c0050834 r5:c03a0420 r4:c03ae000
[<c005424c>] (kthread+0x0/0x90) from [<c0043ab4>] (do_exit+0x0/0x79c)
 r6:00000000 r5:00000000 r4:00000000
mtdblockd     S C02074C4     0   183      2 (L-TLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c0163b98>]
(mtd_blktrans_thread+0x70/0x1e0)
[<c0163b28>] (mtd_blktrans_thread+0x0/0x1e0) from [<c00542a4>]
(kthread+0x58/0x90)
[<c005424c>] (kthread+0x0/0x90) from [<c0043ab4>] (do_exit+0x0/0x79c)
 r6:00000000 r5:00000000 r4:00000000
rpciod/0      S C02074C4     0   198      2 (L-TLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c00508fc>] (worker_thread+0xc8/0x114)
[<c0050834>] (worker_thread+0x0/0x114) from [<c00542a4>] (kthread+0x58/0x90)
 r6:c0050834 r5:c1ca6f40 r4:c1c5e000
[<c005424c>] (kthread+0x0/0x90) from [<c0043ab4>] (do_exit+0x0/0x79c)
 r6:00000000 r5:00000000 r4:00000000
udevd         S C02074C4     0   277      1 (NOTLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c0207f2c>] (schedule_timeout+0x20/0xd0)
[<c0207f0c>] (schedule_timeout+0x0/0xd0) from [<c009203c>]
(do_select+0x3f0/0x460)
 r7:c193bf54 r6:ffffffff r5:c193bf74 r4:00000000
[<c0091c4c>] (do_select+0x0/0x460) from [<c0092384>] (sys_select+0x2d8/0x4b8)
[<c00920ac>] (sys_select+0x0/0x4b8) from [<c0026e40>]
(ret_fast_syscall+0x0/0x2c)
syslogd       S C02074C4     0   898      1 (NOTLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c0207f2c>] (schedule_timeout+0x20/0xd0)
[<c0207f0c>] (schedule_timeout+0x0/0xd0) from [<c009203c>]
(do_select+0x3f0/0x460)
 r7:c1633f54 r6:ffffffff r5:c1633f74 r4:00000000
[<c0091c4c>] (do_select+0x0/0x460) from [<c0092384>] (sys_select+0x2d8/0x4b8)
[<c00920ac>] (sys_select+0x0/0x4b8) from [<c0026e40>]
(ret_fast_syscall+0x0/0x2c)
klogd         R running     0   901      1 (NOTLB)
sshd          S C02074C4     0   910      1 (NOTLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c0207f2c>] (schedule_timeout+0x20/0xd0)
[<c0207f0c>] (schedule_timeout+0x0/0xd0) from [<c009203c>]
(do_select+0x3f0/0x460)
 r7:c1079f54 r6:ffffffff r5:c1079f74 r4:00000000
[<c0091c4c>] (do_select+0x0/0x460) from [<c0092384>] (sys_select+0x2d8/0x4b8)
[<c00920ac>] (sys_select+0x0/0x4b8) from [<c0026e40>]
(ret_fast_syscall+0x0/0x2c)
dbus-daemon   S C02074C4     0   920      1 (NOTLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c0207f2c>] (schedule_timeout+0x20/0xd0)
[<c0207f0c>] (schedule_timeout+0x0/0xd0) from [<c0092810>]
(do_sys_poll+0x2ac/0x3e8)
 r7:c1276400 r6:00000000 r5:00000000 r4:c111de74
[<c0092564>] (do_sys_poll+0x0/0x3e8) from [<c00929a4>] (sys_poll+0x58/0x60)
[<c009294c>] (sys_poll+0x0/0x60) from [<c0026e40>] (ret_fast_syscall+0x0/0x2c)
 r6:beb03a68 r5:00000003 r4:ffffffff
hald          S C02074C4     0   928      1 (NOTLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c0207f2c>] (schedule_timeout+0x20/0xd0)
[<c0207f0c>] (schedule_timeout+0x0/0xd0) from [<c0092810>]
(do_sys_poll+0x2ac/0x3e8)
 r7:c13dd1c0 r6:00000000 r5:00000000 r4:c1b9de94
[<c0092564>] (do_sys_poll+0x0/0x3e8) from [<c00929a4>] (sys_poll+0x58/0x60)
[<c009294c>] (sys_poll+0x0/0x60) from [<c0026e40>] (ret_fast_syscall+0x0/0x2c)
 r6:0005aa50 r5:00000007 r4:ffffffff
hald-runner   S C02074C4     0   929    928 (NOTLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c0207f2c>] (schedule_timeout+0x20/0xd0)
[<c0207f0c>] (schedule_timeout+0x0/0xd0) from [<c0092810>]
(do_sys_poll+0x2ac/0x3e8)
 r7:c03575e0 r6:00000000 r5:00000000 r4:c14fbe64
[<c0092564>] (do_sys_poll+0x0/0x3e8) from [<c00929a4>] (sys_poll+0x58/0x60)
[<c009294c>] (sys_poll+0x0/0x60) from [<c0026e40>] (ret_fast_syscall+0x0/0x2c)
 r6:00014800 r5:00000001 r4:ffffffff
getty         S C02074C4     0   946      1 (NOTLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c0207f2c>] (schedule_timeout+0x20/0xd0)
[<c0207f0c>] (schedule_timeout+0x0/0xd0) from [<c0133dfc>]
(read_chan+0x350/0x610)
 r7:c1cb2400 r6:c1cb240c r5:c034a440 r4:c1f39edc
[<c0133aac>] (read_chan+0x0/0x610) from [<c013025c>] (tty_read+0x84/0xcc)
[<c01301d8>] (tty_read+0x0/0xcc) from [<c0085ad8>] (vfs_read+0xb4/0x140)
[<c0085a24>] (vfs_read+0x0/0x140) from [<c0085f24>] (sys_read+0x4c/0x80)
 r7:00000003 r6:c034a440 r5:00000000 r4:00000000
[<c0085ed8>] (sys_read+0x0/0x80) from [<c0026e40>] (ret_fast_syscall+0x0/0x2c)
 r6:beb64e94 r5:beb64e60 r4:00013208
getty         S C02074C4     0   947      1 (NOTLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c0207f2c>] (schedule_timeout+0x20/0xd0)
[<c0207f0c>] (schedule_timeout+0x0/0xd0) from [<c0133dfc>]
(read_chan+0x350/0x610)
 r7:c18bf400 r6:c18bf40c r5:c034ac60 r4:c1f25edc
[<c0133aac>] (read_chan+0x0/0x610) from [<c013025c>] (tty_read+0x84/0xcc)
[<c01301d8>] (tty_read+0x0/0xcc) from [<c0085ad8>] (vfs_read+0xb4/0x140)
[<c0085a24>] (vfs_read+0x0/0x140) from [<c0085f24>] (sys_read+0x4c/0x80)
 r7:00000003 r6:c034ac60 r5:00000000 r4:00000000
[<c0085ed8>] (sys_read+0x0/0x80) from [<c0026e40>] (ret_fast_syscall+0x0/0x2c)
 r6:bed87e94 r5:bed87e60 r4:00013208
login         S C02074C4     0   948      1 (NOTLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c004388c>] (do_wait+0xa7c/0xbd4)
[<c0042e10>] (do_wait+0x0/0xbd4) from [<c0043a1c>] (sys_wait4+0x38/0x44)
[<c00439e4>] (sys_wait4+0x0/0x44) from [<c0026e40>] (ret_fast_syscall+0x0/0x2c)
 r4:00000000
bash          S C02074C4     0   953    948 (NOTLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c004388c>] (do_wait+0xa7c/0xbd4)
[<c0042e10>] (do_wait+0x0/0xbd4) from [<c0043a1c>] (sys_wait4+0x38/0x44)
[<c00439e4>] (sys_wait4+0x0/0x44) from [<c0026e40>] (ret_fast_syscall+0x0/0x2c)
 r4:0000000a
file-storage- S C02074C4     0   957      2 (L-TLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<bf00d6ac>]
(sleep_thread+0x64/0x84 [g_file_storage])
[<bf00d648>] (sleep_thread+0x0/0x84 [g_file_storage]) from
[<bf00f10c>] (fsg_main_thread+0x464/0x1654 [g_file_storage])
 r5:c19dea00 r4:c0d12000
[<bf00eca8>] (fsg_main_thread+0x0/0x1654 [g_file_storage]) from
[<c00542a4>] (kthread+0x58/0x90)
[<c005424c>] (kthread+0x0/0x90) from [<c0043ab4>] (do_exit+0x0/0x79c)
 r6:00000000 r5:00000000 r4:00000000
rmmod         D C02074C4     0   961    953 (NOTLB)
[<c0206f60>] (schedule+0x0/0x63c) from [<c02077e0>]
(wait_for_completion+0xac/0x110)
[<c0207734>] (wait_for_completion+0x0/0x110) from [<bf00d128>]
(fsg_unbind+0xdc/0x190 [g_file_storage])
 r6:c19b8200 r5:c19dea00 r4:c19deaa4
[<bf00d04c>] (fsg_unbind+0x0/0x190 [g_file_storage]) from [<bf007260>]
(usb_gadget_unregister_driver+0xc0/0xfc [omap_udc])
[<bf0071a0>] (usb_gadget_unregister_driver+0x0/0xfc [omap_udc]) from
[<bf01033c>] (fsg_cleanup+0x40/0x6c [g_file_storage])
 r5:00000000 r4:c19dea00
[<bf0102fc>] (fsg_cleanup+0x0/0x6c [g_file_storage]) from [<c00610d8>]
(sys_delete_module+0x1b4/0x1e4)
 r4:bf012f40
[<c0060f24>] (sys_delete_module+0x0/0x1e4) from [<c0026e40>]
(ret_fast_syscall+0x0/0x2c)
 r8:c0026fe4 r7:00000081 r6:befb05a0 r5:befb0580 r4:befb2da0


>
> Really, you shouldn't expect people to be able to help if you don't
> provide any information...

Sorry my mistake ... :(
>
> Alan Stern
>
>

Best regards,

-- 
Ragner N Magalhães

Instituto Nokia de Tecnologia - INdT
Open Source Mobile Research Center - OSMRC
Linux Kernel Team

E-mail: ragner.magalhaes@indt.org.br
            ragner@users.sourceforge.net

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

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

* Re: Removing Gadget File Storage module
  2007-05-29 15:22   ` Ragner N Magalhães
@ 2007-05-30 15:01     ` Alan Stern
  0 siblings, 0 replies; 6+ messages in thread
From: Alan Stern @ 2007-05-30 15:01 UTC (permalink / raw)
  To: Ragner N Magalhães; +Cc: Linux OMAP, linux-usb-devel

On Tue, 29 May 2007, Ragner N Magalhães wrote:

> On 5/28/07, Alan Stern <stern@rowland.harvard.edu> wrote:
> > On Mon, 28 May 2007, Ragner N Magalhães wrote:
> >
> > > Hi all,
> > >  I am working with OMAP H2 and when I run "rmmod g_file_storage", it
> > > stay waiting some thing and not terminate ...
> > >
> > >  Somebody know some thing about this ?
> >
> > Which version of the Linux kernel are you using?
> 
> I am using the last omap git tree from
> http://www.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git

The same thing happened to me when I tried using g_file_storage on a
recent kernel.  The answer turns out to be that signal handling for
kernel threads was changed in 2.6.22.  The patch below fixed the driver
on my system.

Alan Stern


Index: usb-2.6/drivers/usb/gadget/file_storage.c
===================================================================
--- usb-2.6.orig/drivers/usb/gadget/file_storage.c
+++ usb-2.6/drivers/usb/gadget/file_storage.c
@@ -686,7 +686,6 @@ struct fsg_dev {
 	int			thread_wakeup_needed;
 	struct completion	thread_notifier;
 	struct task_struct	*thread_task;
-	sigset_t		thread_signal_mask;
 
 	int			cmnd_size;
 	u8			cmnd[MAX_COMMAND_SIZE];
@@ -3277,8 +3276,7 @@ static void handle_exception(struct fsg_
 	/* Clear the existing signals.  Anything but SIGUSR1 is converted
 	 * into a high-priority EXIT exception. */
 	for (;;) {
-		sig = dequeue_signal_lock(current, &fsg->thread_signal_mask,
-				&info);
+		sig = dequeue_signal_lock(current, &current->blocked, &info);
 		if (!sig)
 			break;
 		if (sig != SIGUSR1) {
@@ -3431,10 +3429,10 @@ static int fsg_main_thread(void *fsg_)
 
 	/* Allow the thread to be killed by a signal, but set the signal mask
 	 * to block everything but INT, TERM, KILL, and USR1. */
-	siginitsetinv(&fsg->thread_signal_mask, sigmask(SIGINT) |
-			sigmask(SIGTERM) | sigmask(SIGKILL) |
-			sigmask(SIGUSR1));
-	sigprocmask(SIG_SETMASK, &fsg->thread_signal_mask, NULL);
+	allow_signal(SIGINT);
+	allow_signal(SIGTERM);
+	allow_signal(SIGKILL);
+	allow_signal(SIGUSR1);
 
 	/* Arrange for userspace references to be interpreted as kernel
 	 * pointers.  That way we can pass a kernel pointer to a routine


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

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

end of thread, other threads:[~2007-05-30 15:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-28 16:32 Removing Gadget File Storage module Ragner N Magalhães
2007-05-28 17:19 ` José Luís
2007-05-28 18:39   ` Ragner N Magalhães
2007-05-28 20:13 ` Alan Stern
2007-05-29 15:22   ` Ragner N Magalhães
2007-05-30 15:01     ` Alan Stern

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.