<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2192</bug_id>
          
          <creation_ts>2012-03-29 09:52:48 +0000</creation_ts>
          <short_desc>[beagleboard C4] No login prompt in serial port console with 1.2 M4 20120328 build</short_desc>
          <delta_ts>2012-04-16 07:55:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-configuration</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(1.2)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Yang Shi">yang.shi</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>dvhart</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>liang.li2</cc>
    
    <cc>liming.wang</cc>
    
    <cc>yp.bsp.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>19599</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-03-29 09:52:48 +0000</bug_when>
    <thetext>Tree/branch: poky/1.2_M4
Commit: 4d9f4d6ac25f39fe6d5491d05c7a26195bab648b
Image location:
http://autobuilder.pokylinux.org/nightly/20120328-1/machines/beagleboard/

u-boot environment setting:
###########
setenv bootcmd &apos;mmc rescan 0; fatload mmc 0:1 0x80300000 uImage; bootm 0x80300000&apos; 
setenv bootargs &apos; console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p2 rootwait rootfstype=ext3 ro&apos; 
boot
###########

Kernel version is 3.0.23

When I boot up beagleboard, There is no login prompt in minicom so I can not login via serial console. But the system boot success and work good. I can see the GUI in LCD. The keyboard and mouse in target can work. 

The messages in serial console would show:
##########
......
......
hub 1-2:1.0: 7 ports detected
mmc0: new SD card at address 1234
mmcblk0: mmc0:1234 SA02G 1.83 GiB 
usb 1-2.2: new low speed USB device number 3 using ehci-omap
 mmcblk0: p1 p2
EXT3-fs: barriers not enabled
EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
kjournald starting.  Commit interval 5 seconds
VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
input: Logitech USB Optical Mouse as /devices/platform/usbhs-omap.0/ehci-omap.0/usb1/1-2/1-2.2/1-2.2:1.0/input/input0
generic-usb 0003:046D:C05A.0001: input: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-ehci-omap.0-2.2/input0
devtmpfs: mounted
Freeing init memory: 320K
usb 1-2.3: new low speed USB device number 4 using ehci-omap
input: Dell Dell USB Entry Keyboard as /devices/platform/usbhs-omap.0/ehci-omap.0/usb1/1-2/1-2.3/1-2.3:1.0/input/input1
generic-usb 0003:413C:2107.0002: input: USB HID v1.10 Keyboard [Dell Dell USB Entry Keyboard] on usb-ehci-omap.0-2.3/input0
udev[63]: starting version 164
NET: Registered protocol family 10
EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
EXT3-fs (mmcblk0p2): using internal journal
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (3714 buckets, 14856 max)

###############

I try to use an old kernel with this rootfs. The kernel version is 3.0.18 from 1.2 M3 (gitinfo: 320558f494c618f53e0c773db3ea0109476e8359). It works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19706</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-03-30 12:58:36 +0000</bug_when>
    <thetext>I&apos;m putting Yang&apos;s name beside this, since it is likely related to our
other beagleboard bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20056</commentid>
    <comment_count>2</comment_count>
    <who name="Liming Wang">liming.wang</who>
    <bug_when>2012-04-09 09:28:03 +0000</bug_when>
    <thetext>The following commit has changed the irq handling logic, which will lead the serial driver of beagleboard not work fine. It&apos;s imported in v3.0.23~14

$ git name-rev b7f0787da3657100fe8fc8b3f0565b0bee341510 
b7f0787da3657100fe8fc8b3f0565b0bee341510 tags/v3.0.23~14

$ git log b7f0787da3657100fe8fc8b3f0565b0bee341510
commit b7f0787da3657100fe8fc8b3f0565b0bee341510
Author: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Date:   Tue Feb 7 17:58:03 2012 +0100

    genirq: Unmask oneshot irqs when thread was not woken
    
    commit ac5637611150281f398bb7a47e3fcb69a09e7803 upstream.
    
    When the primary handler of an interrupt which is marked IRQ_ONESHOT
    returns IRQ_HANDLED or IRQ_NONE, then the interrupt thread is not
    woken and the unmask logic of the interrupt line is never
    invoked. This keeps the interrupt masked forever.
    
    This was not noticed as most IRQ_ONESHOT users wake the thread
    unconditionally (usually because they cannot access the underlying
    device from hard interrupt context). Though this behaviour was nowhere
    documented and not necessarily intentional. Some drivers can avoid the
    thread wakeup in certain cases and run into the situation where the
    interrupt line s kept masked.
    
    Handle it gracefully.
    
    Reported-and-tested-by: Lothar Wassmann &lt;lw@karo-electronics.de&gt;
    Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
    Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;


But in following commit, this bug has been fixed.  It&apos;s imported in v3.0.24~49.

$ git name-rev c847ac8e8e7447730aef70b94915f1c0880e6578
c847ac8e8e7447730aef70b94915f1c0880e6578 tags/v3.0.24~49

$ git log c847ac8e8e7447730aef70b94915f1c0880e6578
commit c847ac8e8e7447730aef70b94915f1c0880e6578
Author: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Date:   Tue Mar 6 23:18:54 2012 +0100

    genirq: Clear action-&gt;thread_mask if IRQ_ONESHOT is not set
    
    commit 52abb700e16a9aa4cbc03f3d7f80206cbbc80680 upstream.
    
    Xommit ac5637611(genirq: Unmask oneshot irqs when thread was not woken)
    fails to unmask when a !IRQ_ONESHOT threaded handler is handled by
    handle_level_irq.
    
    This happens because thread_mask is or&apos;ed unconditionally in
    irq_wake_thread(), but for !IRQ_ONESHOT interrupts never cleared.  So
    the check for !desc-&gt;thread_active fails and keeps the interrupt
    disabled.
    
    Keep the thread_mask zero for !IRQ_ONESHOT interrupts.
    
    Document the thread_mask magic while at it.
    
    Reported-and-tested-by: Sven Joachim &lt;svenjoac@gmx.de&gt;
    Reported-and-tested-by: Stefan Lippers-Hollmann &lt;s.l-h@gmx.de&gt;
    Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
    Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
    Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;


So this bug does exist in tags/v3.0.23, but has been fixed in latest tree(tags/v3.0.24), we can just reject this bug now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20069</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-04-09 16:16:42 +0000</bug_when>
    <thetext>This is available in linux-yocto-3.0 as:

commit c847ac8e8e7447730aef70b94915f1c0880e6578
Author: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Date:   Tue Mar 6 23:18:54 2012 +0100

    genirq: Clear action-&gt;thread_mask if IRQ_ONESHOT is not set
    
    commit 52abb700e16a9aa4cbc03f3d7f80206cbbc80680 upstream.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20100</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-04-10 04:40:00 +0000</bug_when>
    <thetext>Marking this as resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20435</commentid>
    <comment_count>5</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-04-16 07:55:09 +0000</bug_when>
    <thetext>Verified with 1.2 rc3.

Tree/branch: poky/1.2_M4
Commit: fae1c7a5fdcea199338b5f91efaafd7c72aec5dd</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>