1. 11 9月, 2012 1 次提交
    • F
      ixp4xx_hss: fix build failure due to missing linux/module.h inclusion · 0b836ddd
      Florian Fainelli 提交于
      Commit 36a12119 (netprio_cgroup.h:
      dont include module.h from other includes) made the following build
      error on ixp4xx_hss pop up:
      
        CC [M]  drivers/net/wan/ixp4xx_hss.o
       drivers/net/wan/ixp4xx_hss.c:1412:20: error: expected ';', ',' or ')'
       before string constant
       drivers/net/wan/ixp4xx_hss.c:1413:25: error: expected ';', ',' or ')'
       before string constant
       drivers/net/wan/ixp4xx_hss.c:1414:21: error: expected ';', ',' or ')'
       before string constant
       drivers/net/wan/ixp4xx_hss.c:1415:19: error: expected ';', ',' or ')'
       before string constant
       make[8]: *** [drivers/net/wan/ixp4xx_hss.o] Error 1
      
      This was previously hidden because ixp4xx_hss includes linux/hdlc.h which
      includes linux/netdevice.h which includes linux/netprio_cgroup.h which
      used to include linux/module.h. The real issue was actually present since
      the initial commit that added this driver since it uses macros from
      linux/module.h without including this file.
      Signed-off-by: NFlorian Fainelli <florian@openwrt.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0b836ddd
  2. 27 6月, 2011 1 次提交
  3. 31 3月, 2011 1 次提交
  4. 27 5月, 2010 1 次提交
    • K
      IXP4xx: Prevent HSS transmitter lockup by disabling FRaMe signals. · 62763429
      Krzysztof Hałasa 提交于
      With port configured with PCR_FRM_SYNC_OUTPUT* and external clock, bringing
      the hdlcX interface up and down without active clock supplied to the HSS
      causes a TX lockup. We don't support channelized/partial interfaces so
      FRaMe signals can't be used anyway, disabling them makes the lockup go away.
      
      Changes to this logic will be required if we want to support channelized
      HSS mode (this is most probably bug in NPE-A HSS firmware).
      Signed-off-by: NKrzysztof Hałasa <khc@pm.waw.pl>
      62763429
  5. 10 5月, 2010 1 次提交
  6. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  7. 07 9月, 2009 1 次提交
    • K
      IXP42x HSS support for setting internal clock rate · 5dbc4650
      Krzysztof Halasa 提交于
      HSS usually uses external clocks, so it's not a big deal. Internal clock
      is used for direct DTE-DTE connections and when the DCE doesn't provide
      it's own clock.
      
      This also depends on the oscillator frequency. Intel seems to have
      calculated the clock register settings for 33.33 MHz (66.66 MHz timer
      base). Their settings seem quite suboptimal both in terms of average
      frequency (60 ppm is unacceptable for G.703 applications, their primary
      intended usage(?)) and jitter.
      
      Many (most?) platforms use a 33.333 MHz oscillator, a 10 ppm difference
      from Intel's base.
      
      Instead of creating static tables, I've created a procedure to program
      the HSS clock register. The register consists of 3 parts (A, B, C).
      The average frequency (= bit rate) is:
      66.66x MHz / (A  + (B + 1) / (C + 1))
      The procedure aims at the closest average frequency, possibly at the
      cost of increased jitter. Nobody would be able to directly drive an
      unbufferred transmitter with a HSS anyway, and the frequency error is
      what it really counts.
      
      I've verified the above with an oscilloscope on IXP425. It seems IXP46x
      and possibly IXP43x use a bit different clock generation algorithm - it
      looks like the avg frequency is:
      (on IXP465) 66.66x MHz / (A  + B / (C + 1)).
      Also they use much greater precomputed A and B - on IXP425 it would
      simply result in more jitter, but I don't know how does it work on
      IXP46x (perhaps 3 least significant bits aren't used?).
      
      Anyway it looks that they were aiming for exactly +60 ppm or -60 ppm,
      while <1 ppm is typically possible (with a synchronized clock, of
      course).
      
      The attached patch makes it possible to set almost any bit rate
      (my IXP425 533 MHz quits at > 22 Mb/s if a single port is used, and the
      minimum is ca. 65 Kb/s).
      
      This is independent of MVIP (multi-E1/T1 on one HSS) mode.
      Signed-off-by: NKrzysztof Hałasa <khc@pm.waw.pl>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5dbc4650
  8. 29 5月, 2009 1 次提交
  9. 25 5月, 2009 1 次提交
  10. 24 5月, 2009 1 次提交
  11. 09 5月, 2009 1 次提交
  12. 22 1月, 2009 2 次提交
  13. 13 1月, 2009 1 次提交
  14. 30 12月, 2008 1 次提交
    • K
      net: Fix more NAPI interface netdev argument drop fallout. · 2d0658d4
      Kamalesh Babulal 提交于
      I hit similar build failure due to the change in the netif_rx_reschedule()
      
      drivers/net/ehea/ehea_main.c: In function 'ehea_poll':
      drivers/net/ehea/ehea_main.c:844: warning: passing argument 1 of 'netif_rx_reschedule' from incompatible pointer type
      drivers/net/ehea/ehea_main.c:844: error: too many arguments to function 'netif_rx_reschedule'
      make[3]: *** [drivers/net/ehea/ehea_main.o] Error 1
      
      greping through the sources for the changes missed out, we have
      
      ./drivers/net/arm/ixp4xx_eth.c:507:							netif_rx_reschedule(dev, napi)) {
      ./drivers/net/arm/ep93xx_eth.c:310:             if (more && netif_rx_reschedule(dev, napi))
      ./drivers/net/wan/ixp4xx_hss.c:657:							netif_rx_reschedule(dev, napi)) {
      Signed-off-by: NKamalesh Babulal <kamalesh@linux.vnet.ibm.com>
      Acked-by: NNeil Horman <nhorman@tuxdriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2d0658d4
  15. 22 12月, 2008 2 次提交