<?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>3490</bug_id>
          
          <creation_ts>2012-11-26 12:56:11 +0000</creation_ts>
          <short_desc>atom-pc kernel warnings</short_desc>
          <delta_ts>2013-04-11 00:37:14 +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-meta-yocto</component>
          <version>1.3</version>
          <rep_platform>Netbook</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4 M6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>amy.fong</cc>
    
    <cc>bruce.ashfield</cc>
    
    <cc>dvhart</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>sgw</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>27688</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-11-26 12:56:11 +0000</bug_when>
    <thetext>NOTE: validating kernel configuration
[non-hardware (11)]: meta/cfg/standard/atom-pc/specified_non_hdw.cfg
   This BSP sets config options that are possibly non-hardware related.

[invalid (51)]: meta/cfg/standard/atom-pc/invalid.cfg
   This BSP sets config options that are not offered anywhere within this kernel

specified_non_hdw.cfg:
CONFIG_ATH9K
CONFIG_ATH9K_COMMON
CONFIG_ATH9K_HW
CONFIG_CRC_CCITT
CONFIG_DRM
CONFIG_DRM_I915
CONFIG_DRM_I915_KMS
CONFIG_DRM_KMS_HELPER
CONFIG_STAGING
CONFIG_WEXT_PRIV
CONFIG_WIRELESS_EXT

invalid.cfg:
CONFIG_RT2860
CONFIG_AUTOFS_FS
CONFIG_CGROUP_NS
CONFIG_CIFS_EXPERIMENTAL
CONFIG_IOSCHED_AS
CONFIG_IP6_NF_MATCH_OWNER
CONFIG_IP_NF_AMANDA
CONFIG_IP_NF_CONNTRACK
CONFIG_IP_NF_CONNTRACK_MARK
CONFIG_IP_NF_CT_ACCT
CONFIG_IP_NF_CT_PROTO_SCTP
CONFIG_IP_NF_FTP
CONFIG_IP_NF_IRC
CONFIG_IP_NF_MATCH_ADDRTYPE
CONFIG_IP_NF_MATCH_IPRANGE
CONFIG_IP_NF_MATCH_OWNER
CONFIG_IP_NF_MATCH_RECENT
CONFIG_IP_NF_MATCH_TOS
CONFIG_IP_NF_NAT
CONFIG_IP_NF_NAT_AMANDA
CONFIG_IP_NF_NAT_FTP
CONFIG_IP_NF_NAT_IRC
CONFIG_IP_NF_NAT_NEEDED
CONFIG_IP_NF_NAT_SNMP_BASIC
CONFIG_IP_NF_NAT_TFTP
CONFIG_IP_NF_TARGET_SAME
CONFIG_IP_NF_TARGET_TOS
CONFIG_IP_NF_TFTP
CONFIG_KALLSYMS_EXTRA_PASS
CONFIG_KGDBOE
CONFIG_KGDBOE_NOMODULE
CONFIG_KGDB_CONSOLE
CONFIG_KGDB_ONLY_MODULES
CONFIG_KMOD
CONFIG_LBD
CONFIG_LOCK_KERNEL
CONFIG_MARKERS
CONFIG_MARKERS_DISABLE_OPTIMIZATION
CONFIG_MD_RAID5
CONFIG_NET_CLS_ROUTE
CONFIG_NFSD_TCP
CONFIG_NFS_DIRECTIO
CONFIG_NF_CT_ACCT
CONFIG_PACKET_MMAP
CONFIG_RAMFS
CONFIG_SCSI_QLOGIC_FC
CONFIG_SECURITY_CAPABILITIES
CONFIG_SMB_FS
CONFIG_SMB_NLS_DEFAULT
CONFIG_SMB_NLS_REMOTE
CONFIG_XFS_SECURITY</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27844</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-11-30 06:21:31 +0000</bug_when>
    <thetext>Bruce, this is a long list of &quot;invalids&quot;. Normally I&apos;d take it, being x86, but given that there are a good number of generic items in the list, I wanted to see if you would have a look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27851</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-11-30 13:42:59 +0000</bug_when>
    <thetext>Yep. Let me take this first. It&apos;s part of the overall work I&apos;m doing for 1.4 anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31029</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2013-03-22 12:56:37 +0000</bug_when>
    <thetext>Have you sync&apos;d with Amy on this ? She was actively working on this a few days ago. I just want
to be sure that two people aren&apos;t doing the same thing.

If there are spare cycles, the h/w references getting bumped to 3.8 needs to be considered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31067</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-03-25 02:06:37 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Have you sync&apos;d with Amy on this ? She was actively working on this a few
&gt; days ago. I just want
&gt; to be sure that two people aren&apos;t doing the same thing.
&gt; 

Yes, I&apos;ve talked with Amy, She is supposed to be working on OVP, so she let us take it.

&gt; If there are spare cycles, the h/w references getting bumped to 3.8 needs to
&gt; be considered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31213</commentid>
    <comment_count>5</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-03-27 09:32:16 +0000</bug_when>
    <thetext>*env
branch master:10f40af173ec51cd6de130eb60511a9f1b444448
conf/local.conf
MACHINE ?= &quot;atom-pc&quot;

*problem
1, When kernel version is 3.4.34(default)
atom-pc.conf:
PREFERRED_VERSION_linux-yocto ?= &quot;3.4%&quot;

log.do_kernel_configcheck:
NOTE: validating kernel config, see log.do_kernel_configcheck for details
[non-hardware (11)]: meta/cfg/standard/atom-pc/specified_non_hdw.cfg
   This BSP sets config options that are possibly non-hardware related.

[invalid (1)]: meta/cfg/standard/atom-pc/invalid.cfg
   This BSP sets config options that are not offered anywhere within this kernel

specified_non_hdw.cfg:
CONFIG_ATH9K
CONFIG_ATH9K_COMMON
CONFIG_ATH9K_HW
CONFIG_CRC_CCITT
CONFIG_DRM
CONFIG_DRM_I915
CONFIG_DRM_I915_KMS
CONFIG_DRM_KMS_HELPER
CONFIG_STAGING
CONFIG_WEXT_PRIV
CONFIG_WIRELESS_EXT

invalid.cfg:
CONFIG_RT2860

2, When kernel version is 3.8.1
atom-pc.conf:
PREFERRED_VERSION_linux-yocto ?= &quot;3.8%&quot;

log.do_kernel_configcheck:
NOTE: validating kernel config, see log.do_kernel_configcheck for details
DEBUG: [non-hardware (4)]: meta/cfg/standard/atom-pc/specified_non_hdw.cfg
   This BSP sets config options that are possibly non-hardware related.

[invalid (1)]: meta/cfg/standard/atom-pc/invalid.cfg
   This BSP sets config options that are not offered anywhere within this kernel

specified_non_hdw.cfg:
CONFIG_CRC_CCITT
CONFIG_STAGING
CONFIG_WEXT_PRIV
CONFIG_WIRELESS_EXT

invalid.cfg:
CONFIG_RT2860</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31215</commentid>
    <comment_count>6</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-03-27 09:35:44 +0000</bug_when>
    <thetext>*analysis

1, Atom-pc defines the hardware-specific features in atom-pc-wifi.cfg:
  1 CONFIG_WIRELESS_EXT=y
  2 CONFIG_WEXT_PRIV=y
  3 
  4 CONFIG_ATH9K_HW=y
  5 CONFIG_ATH9K_COMMON=y
  6 CONFIG_ATH9K=y
  7 
  8 CONFIG_STAGING=y
  9 CONFIG_RT2860=y
 10 
 11 CONFIG_CRC_CCITT=y

2, CONFIG_RT2860 is invalid, because it is found in Linux kernels:
2.6.29–2.6.32, 2.6.33–2.6.39, and it is obsolete now. Use
CONFIG_RT2800PCI instead. 
drivers/net/wireless/rt2x00/Kconfig:
 56 config RT2800PCI
 ...
 66     ---help---
 67       This adds support for rt27xx/rt28xx/rt30xx wireless chipset family.
 68       Supported chips: RT2760, RT2790, RT2860, RT2880, RT2890, RT3052,
 69                RT3090, RT3091 &amp; RT3092

3, STAGING is the menuconfig of RT2860, The menuconfig of current
RT2800PCI is RT2X00. Use CONFIG_RT2X00 instead of CONFIG_STAGING.

4, CONFIG_ATH9K_HW and CONFIG_ATH9K_COMMON could be removed,
because ATH9K has selected them.
drivers/net/wireless/ath/ath9k/Kconfig:
 18 config ATH9K
 ...
 21     select ATH9K_HW
 ...
 25     select ATH9K_COMMON

5, CONFIG_CRC_CCITT could be removed, because RT2800PCI has
selected it.
drivers/net/wireless/rt2x00/Kconfig:
 56 config RT2800PCI
 ...
 64         select CRC_CCITT

6, CONFIG_WIRELESS_EXT and CONFIG_WEXT_PRIV do nothing which means
they don&apos;t exist in the configure file `.config&apos;, maybe they could
be removed. I am not sure about the two params.

7, The reason why kernel 3.8 has less non-hardware warning then 3.4:
`drivers/net/wireless/ath/ath9k/Kconfig&apos; and
`drivers/gpu/drm/Kconfig&apos; are newly added in hardware.kcf.

http://cateee.net/lkddb/web-lkddb/RT2860.html
http://cateee.net/lkddb/web-lkddb/RT2800PCI.html
http://lxr.linux.no/linux/drivers/net/wireless/ath/ath9k/Kconfig
http://lxr.linux.no/linux/drivers/net/wireless/rt2x00/Kconfig</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31216</commentid>
    <comment_count>7</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-03-27 09:36:15 +0000</bug_when>
    <thetext>*solution
1, When Kernel version is 3.4.34(default)
diff --git a/meta/cfg/kernel-cache/bsp/atom-pc/atom-pc-wifi.cfg b/meta/cfg/kernel-cache/bsp/atom-pc/atom-pc-wifi.cfg
index e6cbc950..7226c08 100644
--- a/meta/cfg/kernel-cache/bsp/atom-pc/atom-pc-wifi.cfg
+++ b/meta/cfg/kernel-cache/bsp/atom-pc/atom-pc-wifi.cfg
@@ -1,11 +1,4 @@
-CONFIG_WIRELESS_EXT=y
-CONFIG_WEXT_PRIV=y
-
-CONFIG_ATH9K_HW=y
-CONFIG_ATH9K_COMMON=y
 CONFIG_ATH9K=y
 
-CONFIG_STAGING=y
-CONFIG_RT2860=y
-
-CONFIG_CRC_CCITT=y
+CONFIG_RT2X00=y
+CONFIG_RT2800PCI=y

diff --git a/meta/cfg/kernel-cache/bsp/atom-pc/hardware.kcf b/meta/cfg/kernel-cache/bsp/atom-pc/hardware.kcf
new file mode 100644
index 0000000..8700349
--- /dev/null
+++ b/meta/cfg/kernel-cache/bsp/atom-pc/hardware.kcf
@@ -0,0 +1,2 @@
+drivers/gpu/drm/Kconfig
+drivers/net/wireless/ath/ath9k/Kconfig

2, When Kernel version is 3.8.1

diff --git a/meta/cfg/kernel-cache/bsp/atom-pc/atom-pc-wifi.cfg b/meta/cfg/kernel-cache/bsp/atom-pc/atom-pc-wifi.cfg
index e6cbc950..7226c08 100644
--- a/meta/cfg/kernel-cache/bsp/atom-pc/atom-pc-wifi.cfg
+++ b/meta/cfg/kernel-cache/bsp/atom-pc/atom-pc-wifi.cfg
@@ -1,11 +1,4 @@
-CONFIG_WIRELESS_EXT=y
-CONFIG_WEXT_PRIV=y
-
-CONFIG_ATH9K_HW=y
-CONFIG_ATH9K_COMMON=y
 CONFIG_ATH9K=y
 
-CONFIG_STAGING=y
-CONFIG_RT2860=y
-
-CONFIG_CRC_CCITT=y
+CONFIG_RT2X00=y
+CONFIG_RT2800PCI=y

diff --git a/meta-yocto-bsp/conf/machine/atom-pc.conf b/meta-yocto-bsp/conf/machine/atom-pc.conf
index e97b173..1c9a94f 100644
--- a/meta-yocto-bsp/conf/machine/atom-pc.conf
+++ b/meta-yocto-bsp/conf/machine/atom-pc.conf
@@ -10,7 +10,7 @@ MACHINE_FEATURES = &quot;screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa&quot;
 KERNEL_IMAGETYPE = &quot;bzImage&quot;
 
 PREFERRED_PROVIDER_virtual/kernel ?= &quot;linux-yocto&quot;
-PREFERRED_VERSION_linux-yocto ?= &quot;3.4%&quot;
+PREFERRED_VERSION_linux-yocto ?= &quot;3.8%&quot;
 PREFERRED_PROVIDER_virtual/xserver ?= &quot;xserver-xorg&quot;
 XSERVER ?= &quot;xserver-xorg \
            xserver-xorg-extension-glx \</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31217</commentid>
    <comment_count>8</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-03-27 09:38:21 +0000</bug_when>
    <thetext>Hi Bruce, 

Would you please give some suggestions about the following questions?

Q1, Which kernel version will be choosed, 3.4(current for atom-pc) or 3.8?
Q2, Is it correct to remove CONFIG_WEXT_PRIV and CONFIG_WIRELESS_EXT in atom-pc-wifi.cfg?

Thansk,
Hongxu</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31247</commentid>
    <comment_count>9</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-03-27 16:08:47 +0000</bug_when>
    <thetext>If not already, atom-pc will be moved to 3.8.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31248</commentid>
    <comment_count>10</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2013-03-27 16:12:57 +0000</bug_when>
    <thetext>right. We are refreshing the h/w references to 3.8, now that the latest -stable
and -rt changes are in place.

Atom-pc is one of the easiest to move, so as part of this cleanup. Focuson 3.8
and with confirmed boot tests, we&apos;ll bump it to 3.8.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31249</commentid>
    <comment_count>11</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2013-03-27 16:25:37 +0000</bug_when>
    <thetext>re: Q2, Is it correct to remove CONFIG_WEXT_PRIV and CONFIG_WIRELESS_EXT in atom-pc-wifi.cfg?

It is acceptable. If the options are no longer available in 3.8, then we should pull them out of the
fragments. We want the warnings to tell us this, so we&apos;ll follow the advice :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31863</commentid>
    <comment_count>12</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-04-11 00:37:14 +0000</bug_when>
    <thetext>Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=9c22995dd4af48aa22d8abbe01113d9f34a51dad

Please verify.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>