<?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>2364</bug_id>
          
          <creation_ts>2012-04-23 15:05:21 +0000</creation_ts>
          <short_desc>crownbay: bad_page_state with BLDK2 boot</short_desc>
          <delta_ts>2014-05-12 21:58:51 +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>Other</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tom Zanussi">tom.zanussi</reporter>
          <assigned_to name="Tom Zanussi">tom.zanussi</assigned_to>
          <cc>dvhart</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>scott.a.garman</cc>
    
    <cc>yp.bsp.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>20819</commentid>
    <comment_count>0</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-04-23 15:05:21 +0000</bug_when>
    <thetext>While bringing up a demo using crownbay, several BUG warnings were noted, which however didn&apos;t seem to affect system operation.

The affected pages always had &apos;uncached&apos; page flags as the cause of the BUG, and on all the systems, there were always 14 pages affected, a group of 10 and another group of 4.

The kernel was 3.2, but the same problem existed with 3.0.  The problem was the same with or without emgd.

The problem &apos;goes away&apos; if you boot with the &apos;nopat&apos;

Filing this as a low priority bug, mainly to keep track of the info until such time as we officially support bldk2.


BUG: Bad page state in process pango-querymodu  pfn:38960
page:f6ebfc00 count:0 mapcount:0 mapping:  (null) index:0x0
page flags: 0x80400000(uncached)
Modules linked in: ipv6 minix
Pid: 1512, comm: pango-querymodu Tainted: G        W    3.2.11-yocto-standard #1
Call Trace:
 [&lt;c10bbf0f&gt;] bad_page+0x8f/0xe0
 [&lt;c10bc4ce&gt;] get_page_from_freelist+0x3ee/0x480
 [&lt;c10bc64b&gt;] __alloc_pages_nodemask+0xeb/0x660
 [&lt;c11f5d02&gt;] ? blk_finish_plug+0x12/0x40
 [&lt;c10bfaa3&gt;] __do_page_cache_readahead+0xe3/0x1f0
 [&lt;c10ebe0f&gt;] ? memcg_check_events+0x3f/0x1c0
 [&lt;c10bfe37&gt;] ra_submit+0x27/0x30
 [&lt;c10b8811&gt;] filemap_fault+0x361/0x3d0
 [&lt;c10c0ce3&gt;] ? __lru_cache_add+0x63/0xb0
 [&lt;c10eaf7f&gt;] ? mem_cgroup_update_page_stat+0x6f/0x120
 [&lt;c10d2e50&gt;] __do_fault+0x60/0x460
 [&lt;c10d5551&gt;] handle_pte_fault+0xe1/0x6b0
 [&lt;c10d77c3&gt;] ? __vma_link_file+0x43/0x70
 [&lt;c10d5bc6&gt;] handle_mm_fault+0xa6/0x120
 [&lt;c14f6bc0&gt;] ? spurious_fault+0xcd/0xcd
 [&lt;c14f6cb9&gt;] do_page_fault+0xf9/0x490
 [&lt;c10f0375&gt;] ? filp_close+0x55/0x80
 [&lt;c14f70c3&gt;] ? sub_preempt_count+0x73/0xb0
 [&lt;c10f0413&gt;] ? sys_close+0x73/0xc0
 [&lt;c14f6bc0&gt;] ? spurious_fault+0xcd/0xcd
 [&lt;c14f4c0a&gt;] error_code+0x5a/0x60
 [&lt;c14f6bc0&gt;] ? spurious_fault+0xcd/0xcd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21148</commentid>
    <comment_count>1</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-05-07 20:31:05 +0000</bug_when>
    <thetext>BLDK support not planned for 1.3, so this is a no-op for 1.3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21393</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-05-16 23:01:17 +0000</bug_when>
    <thetext>Scott G. is seeing something similar on FRI2. Scott, does the &quot;nopat&quot; kernel parameter resolve issues for you on the FRI2?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21396</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2012-05-17 00:22:15 +0000</bug_when>
    <thetext>No, I can still reproduce the panic with the nopat option if I hammer on the disk a bit, e.g, dd a 5 MB file and then sync. I&apos;ve tried with a few different USB thumbdrives to rule out a bad drive.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21400</commentid>
    <comment_count>4</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-05-17 01:53:06 +0000</bug_when>
    <thetext>Scott, it would be good for you to add your stack trace, since it may be the same thing or something different.  Also, is this an EFI boot?  I&apos;m also wondering what about it suggested that it was related to the USB thumbdrive.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21402</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2012-05-17 03:34:50 +0000</bug_when>
    <thetext>I&apos;m booting the FRI2 using the .hddimage on a USB thumbdrive, so I&apos;m not using internal flash. That&apos;s why at first I was suspicous it might be due to the thumbdrive. 

I&apos;ll get a ton of these in dmesg when the problem occurs. It generally happens when doing disk I/O, and it&apos;s clear when it occurs because the system hangs for 15 seconds or so. 

BUG: Bad page state in process loop0  pfn:38c3a
page:f6d57740 count:0 mapcount:0 mapping:  (null) index:0x0
page flags: 0x80400000(uncached)
Modules linked in:
Pid: 474, comm: loop0 Tainted: G    B   W    3.2.11-yocto-standard #1
Call Trace:
 [&lt;c10bcaef&gt;] bad_page+0x8f/0xe0
 [&lt;c10bd0ab&gt;] get_page_from_freelist+0x40b/0x4b0
 [&lt;c10bd23b&gt;] __alloc_pages_nodemask+0xeb/0x640
 [&lt;c1001b2b&gt;] ? __switch_to+0x1b/0x210
 [&lt;c1513295&gt;] ? _raw_spin_unlock_irq+0x15/0x40
 [&lt;c103264b&gt;] ? get_parent_ip+0xb/0x40
 [&lt;c10c0694&gt;] __do_page_cache_readahead+0xe4/0x210
 [&lt;c1063794&gt;] ? ktime_get_ts+0xc4/0xf0
 [&lt;c10c0a47&gt;] ra_submit+0x27/0x30
 [&lt;c10c0b87&gt;] ondemand_readahead+0x137/0x230
 [&lt;c10c0cfe&gt;] page_cache_async_readahead+0x7e/0xa0
 [&lt;c111ac20&gt;] __generic_file_splice_read+0x370/0x5c0
 [&lt;c1119500&gt;] ? page_cache_pipe_buf_release+0x20/0x20
 [&lt;c10338e6&gt;] ? load_balance+0x76/0x6d0
 [&lt;c103264b&gt;] ? get_parent_ip+0xb/0x40
 [&lt;c103264b&gt;] ? get_parent_ip+0xb/0x40
 [&lt;c1516373&gt;] ? sub_preempt_count+0x43/0xb0
 [&lt;c1021efe&gt;] ? __kunmap_atomic+0x3e/0x90
 [&lt;c12c0d90&gt;] ? loop_make_request+0xf0/0xf0
 [&lt;c12c0462&gt;] ? lo_splice_actor+0x92/0xd0
 [&lt;c11e4764&gt;] ? security_file_permission+0x94/0xb0
 [&lt;c111aee4&gt;] generic_file_splice_read+0x74/0xe0
 [&lt;c12c03d0&gt;] ? unregister_transfer_cb+0x60/0x60
 [&lt;c111ae70&gt;] ? __generic_file_splice_read+0x5c0/0x5c0
 [&lt;c1119871&gt;] vfs_splice_to+0x61/0x80
 [&lt;c111993a&gt;] splice_direct_to_actor+0xaa/0x1d0
 [&lt;c12c0c80&gt;] ? loop_thread+0x530/0x530
 [&lt;c12c09ed&gt;] loop_thread+0x29d/0x530
 [&lt;c12c0700&gt;] ? do_lo_send_write+0x90/0xe0
 [&lt;c12c0750&gt;] ? do_lo_send_write+0xe0/0xe0
 [&lt;c1059daf&gt;] kthread+0x6f/0x80
 [&lt;c1059d40&gt;] ? kthread_worker_fn+0x150/0x150
 [&lt;c1519b36&gt;] kernel_thread_helper+0x6/0x10

root@fri2-noemgd:~# uname -a
Linux fri2-noemgd 3.2.11-yocto-standard #1 SMP PREEMPT Mon May 14 11:13:17 PDT 2012 i686 GNU/Linux

The kernel was built using meta-intel 96df30005bbc8095713d03956e7f9058a2e97561</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22225</commentid>
    <comment_count>6</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-06-14 20:45:03 +0000</bug_when>
    <thetext>Is this the one we determined was fixed with http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-2.6.37-contrib/commit/?h=tzanussi/ioremap-fix&amp;id=a789b047d9ca2a850282d7a49c4d386895f9bd4e ? Seems easy enough to pull in for 1.3 M2. Do you recall why we set this to 1.4?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22227</commentid>
    <comment_count>7</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-06-14 20:57:28 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; Is this the one we determined was fixed with
&gt; http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-2.6.37-contrib/commit/
&gt; ?h=tzanussi/ioremap-fix&amp;id=a789b047d9ca2a850282d7a49c4d386895f9bd4e ? Seems
&gt; easy enough to pull in for 1.3 M2. Do you recall why we set this to 1.4?

IIRC it was because we didn&apos;t have bldk2 in the 1.3 plans.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32223</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-04-16 11:15:59 +0000</bug_when>
    <thetext>Could someone update this bug please? Is this fixed for 1.4?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32247</commentid>
    <comment_count>9</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-04-16 14:46:22 +0000</bug_when>
    <thetext>This isn&apos;t a problem in 1.4 - the following patch in the linux-yocto kernels gets rid of the problem for the platforms that support efi i.e. fri2, but we need to revisit it in 1.5 - we shouldn&apos;t need a patch that special-cases 64-bit (to remove the offending code from 32-bit in this case).

Author: Tom Zanussi &lt;tom.zanussi@intel.com&gt;
Date:   Thu Oct 25 01:26:54 2012 -0700

    efi: Add patch to fix 32bit EFI service mapping (rhbz 726701)
    
    From fedora kernel:
    
     commit 6f3e186bc7721c5b24ad90d4a751cccfccd445e6
     Author: Josh Boyer &lt;jwboyer@redhat.com&gt;
     Date:   Fri Aug 5 08:47:23 2011 -0400
    
        Add patch to fix 32bit EFI service mapping (rhbz 726701)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43268</commentid>
    <comment_count>10</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-05-12 21:58:51 +0000</bug_when>
    <thetext>This is now upstream as:

commit 700870119f49084da004ab588ea2b799689efaf7
Author: Josh Boyer &lt;jwboyer@redhat.com&gt;
Date:   Thu Apr 18 07:51:34 2013 -0700

    x86, efi: Don&apos;t map Boot Services on i386</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>