#10193 NORM 1.0-sof: re-apply workaround to avoid ov7670 hang in F11

Zarro Boogs per Child bugtracker at laptop.org
Fri Jul 2 10:09:38 EDT 2010


#10193: re-apply workaround to avoid ov7670 hang in F11
------------------------------+---------------------------------------------
           Reporter:  dsd     |       Owner:  dsd                
               Type:  defect  |      Status:  closed             
           Priority:  normal  |   Milestone:  1.0-software-update
          Component:  kernel  |     Version:  not specified      
         Resolution:  fixed   |    Keywords:                     
        Next_action:  code    |    Verified:  0                  
Deployment_affected:          |   Blockedby:                     
           Blocking:          |  
------------------------------+---------------------------------------------

Comment(by pgf):

 i was most of the way through doing these runs, sporadically, when daniel
 closed this and committed yesterday, but i finished them anyway.  in the
 end, i agree that the timing doesn't change enough with/without the camera
 driver changes to matter.

 but what i found was kind of interesting.  if i do the test as daniel did,
 using module unload/load, the new code seems take about .4 seconds to load
 as opposed to .2 seconds without the changes.

 but if i measure it during a full boot, a) the camera load itself gets
 stretched by a full 3 seconds or so, because of other stuff going on, and
 b) the time to reach a single later event (i chose libertas requesting
 firmware) seems to grow by about half a second.

 i'll include my data here, but mainly i'm adding this comment because i
 found it an interesting exercise in how numbers can be hard to predict.

 without reverts:  (note that i didn't start capturing the libertas
 firmware request line until part way through my runs)

 {{{
 [   11.983561] Marvell M88ALP01 'CAFE' Camera Controller version 2
 [   11.983662] cafe1000-ccic 0000:00:0c.2: enabling device (0000 -> 0002)
 [   12.016207] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
 [   12.046722] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
 [   12.046744] Warning! ehci_hcd should always be loaded before uhci_hcd
 and ohci_hcd, not after
 [   12.268547] ov7670 1-0042: chip found @ 0x84 (cafe_ccic)


 [   12.170024] Marvell M88ALP01 'CAFE' Camera Controller version 2
 [   12.206533] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
 [   12.206557] Warning! ehci_hcd should always be loaded before uhci_hcd
 and ohci_hcd, not after
 [   12.258408] usb usb1: configuration #1 chosen from 1 choice
 [   12.258910] hub 1-0:1.0: USB hub found
 [   12.258960] hub 1-0:1.0: 4 ports detected
 [   12.259268] cafe1000-ccic 0000:00:0c.2: enabling device (0000 -> 0002)
 [   12.529124] ov7670 1-0042: chip found @ 0x84 (cafe_ccic)




 [   12.036507] Marvell M88ALP01 'CAFE' Camera Controller version 2
 [   12.152545] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
 [   12.152570] Warning! ehci_hcd should always be loaded before uhci_hcd
 and ohci_hcd, not after
 [   12.209732] usb usb1: configuration #1 chosen from 1 choice
 [   12.210241] hub 1-0:1.0: USB hub found
 [   12.210293] hub 1-0:1.0: 4 ports detected
 [   12.210598] cafe1000-ccic 0000:00:0c.2: enabling device (0000 -> 0002)
 [   12.571596] ov7670 1-0042: chip found @ 0x84 (cafe_ccic)




 [   12.030493] Marvell M88ALP01 'CAFE' Camera Controller version 2
 [   12.030594] cafe1000-ccic 0000:00:0c.2: enabling device (0000 -> 0002)
 [   12.040389] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
 [   12.306853] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
 [   12.306875] Warning! ehci_hcd should always be loaded before uhci_hcd
 and ohci_hcd, not after
 [   12.321425] ov7670 1-0042: chip found @ 0x84 (cafe_ccic)
 ...
 [   15.670560] usb 2-1: firmware: requesting usb8388.bin




 [   12.107752] Marvell M88ALP01 'CAFE' Camera Controller version 2
 [   12.107845] cafe1000-ccic 0000:00:0c.2: enabling device (0000 -> 0002)
 [   12.124691] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
 [   12.280431] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
 [   12.280431] Warning! ehci_hcd should always be loaded before uhci_hcd
 and ohci_hcd, not after
 [   12.417756] ov7670 1-0042: chip found @ 0x84 (cafe_ccic)
 ...
 [   15.600995] usb 2-1: firmware: requesting usb8388.bin



 [   12.076785] Marvell M88ALP01 'CAFE' Camera Controller version 2
 [   12.076887] cafe1000-ccic 0000:00:0c.2: enabling device (0000 -> 0002)
 [   12.100350] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
 [   12.147112] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
 [   12.342355] ov7670 1-0042: chip found @ 0x84 (cafe_ccic)
 ...
 [   15.690845] usb 1-1: firmware: requesting usb8388.bin


 }}}

 with reverts:


 {{{
 [   12.576247] Marvell M88ALP01 'CAFE' Camera Controller version 2
 [   12.576341] cafe1000-ccic 0000:00:0c.2: enabling device (0000 -> 0002)
 [   12.576422] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
 [   13.200283] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
 [   13.200283] Warning! ehci_hcd should always be loaded before uhci_hcd
 and ohci_hcd, not after
 [   14.433445] psmouse serio1: ID: 67 00 50
 [   14.433567] psmouse serio1: OLPC touchpad revision 0x50
 [   14.887161] input: OLPC HGPK ALPS HGPK as
 /devices/platform/i8042/serio1/input/input5
 [   14.920543] mice: PS/2 mouse device common for all mice
 [   15.631696] ov7670 1-0042: chip found @ 0x84 (cafe_ccic)



 [   12.843300] Marvell M88ALP01 'CAFE' Camera Controller version 2
 [   12.843402] cafe1000-ccic 0000:00:0c.2: enabling device (0000 -> 0002)
 [   12.854786] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
 [   12.854844] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
 [   13.743122] psmouse serio1: ID: 67 00 50
 [   13.743143] psmouse serio1: OLPC touchpad revision 0x50
 [   14.180769] input: OLPC HGPK ALPS HGPK as
 /devices/platform/i8042/serio1/input/input5
 [   14.634989] ov7670 1-0042: chip found @ 0x84 (cafe_ccic)


 [   12.062540] Marvell M88ALP01 'CAFE' Camera Controller version 2
 [   12.200539] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
 [   12.200563] Warning! ehci_hcd should always be loaded before uhci_hcd
 and ohci_hcd, not after
 [   12.220719] usb usb1: configuration #1 chosen from 1 choice
 [   12.220719] hub 1-0:1.0: USB hub found
 [   12.220719] hub 1-0:1.0: 4 ports detected
 [   12.220719] cafe1000-ccic 0000:00:0c.2: enabling device (0000 -> 0002)
 [   12.590800] usb 1-1: new full speed USB device using ohci_hcd and
 address 2
 [   12.800744] psmouse serio1: ID: 67 00 50
 [   12.800766] psmouse serio1: OLPC touchpad revision 0x50
 [   12.814650] usb 1-1: configuration #1 chosen from 1 choice
 [   13.247825] input: OLPC HGPK ALPS HGPK as
 /devices/platform/i8042/serio1/input/input5
 [   15.250540] mice: PS/2 mouse device common for all mice
 [   15.324361] lib80211: common routines for IEEE802.11 drivers
 [   15.324384] lib80211_crypt: registered algorithm 'NULL'
 [   15.710409] ov7670 1-0042: chip found @ 0x84 (cafe_ccic)
 ...
 [   16.281860] usb 2-1: firmware: requesting usb8388.bin



 [   12.822081] Marvell M88ALP01 'CAFE' Camera Controller version 2
 [   12.822173] cafe1000-ccic 0000:00:0c.2: enabling device (0000 -> 0002)
 [   12.866799] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
 [   12.867522] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
 [   12.867543] Warning! ehci_hcd should always be loaded before uhci_hcd
 and ohci_hcd, not after
 [   13.868269] psmouse serio1: ID: 67 00 50
 [   13.868290] psmouse serio1: OLPC touchpad revision 0x50
 [   14.329158] input: OLPC HGPK ALPS HGPK as
 /devices/platform/i8042/serio1/input/input5
 [   14.460415] mice: PS/2 mouse device common for all mice
 [   15.494597] ov7670 1-0042: chip found @ 0x84 (cafe_ccic)
 ...
 [   16.488967] usb 2-1: firmware: requesting usb8388.bin



 [   12.873464] Marvell M88ALP01 'CAFE' Camera Controller version 2
 [   12.873561] cafe1000-ccic 0000:00:0c.2: enabling device (0000 -> 0002)
 [   12.880294] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
 [   12.883251] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
 [   12.883271] Warning! ehci_hcd should always be loaded before uhci_hcd
 and ohci_hcd, not after
 [   13.591034] psmouse serio1: ID: 67 00 50
 [   13.591034] psmouse serio1: OLPC touchpad revision 0x50
 [   14.032447] input: OLPC HGPK ALPS HGPK as
 /devices/platform/i8042/serio1/input/input5
 [   14.440645] mice: PS/2 mouse device common for all mice
 [   15.661736] ov7670 1-0042: chip found @ 0x84 (cafe_ccic)
 ...
 [   16.652887] usb 2-1: firmware: requesting usb8388.bin

 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/10193#comment:6>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list