16 Oct, 2007

1 commit


12 Oct, 2007

1 commit

  • * 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (408 commits)
    [POWERPC] Add memchr() to the bootwrapper
    [POWERPC] Implement logging of unhandled signals
    [POWERPC] Add legacy serial support for OPB with flattened device tree
    [POWERPC] Use 1TB segments
    [POWERPC] XilinxFB: Allow fixed framebuffer base address
    [POWERPC] XilinxFB: Add support for custom screen resolution
    [POWERPC] XilinxFB: Use pdata to pass around framebuffer parameters
    [POWERPC] PCI: Add 64-bit physical address support to setup_indirect_pci
    [POWERPC] 4xx: Kilauea defconfig file
    [POWERPC] 4xx: Kilauea DTS
    [POWERPC] 4xx: Add AMCC Kilauea eval board support to platforms/40x
    [POWERPC] 4xx: Add AMCC 405EX support to cputable.c
    [POWERPC] Adjust TASK_SIZE on ppc32 systems to 3GB that are capable
    [POWERPC] Use PAGE_OFFSET to tell if an address is user/kernel in SW TLB handlers
    [POWERPC] 85xx: Enable FP emulation in MPC8560 ADS defconfig
    [POWERPC] 85xx: Killed
    [POWERPC] 85xx: Add cpm nodes for 8541/8555 CDS
    [POWERPC] 85xx: Convert mpc8560ads to the new CPM binding.
    [POWERPC] mpc8272ads: Remove muram from the CPM reg property.
    [POWERPC] Make clockevents work on PPC601 processors
    ...

    Fixed up conflict in Documentation/powerpc/booting-without-of.txt manually.

    Linus Torvalds
     

11 Oct, 2007

3 commits

  • We now have struct net_device_stats embedded in struct net_device,
    and the default ->get_stats() hook does the obvious thing for us.

    Run through drivers/net/* and remove the driver-local storage of
    statistics, and driver-local ->get_stats() hook where applicable.

    This was just the low-hanging fruit in drivers/net; plenty more drivers
    remain to be updated.

    [ Resolved conflicts with napi_struct changes and fix sunqe build
    regression... -DaveM ]

    Signed-off-by: Jeff Garzik
    Signed-off-by: David S. Miller

    Jeff Garzik
     
  • It's been a useless no-op for long enough in 2.6 so I figured it's time to
    remove it. The number of people that could object because they're
    maintaining unified 2.4 and 2.6 drivers is probably rather small.

    [ Handled drivers added by netdev tree and some missed IRDA cases... -DaveM ]

    Signed-off-by: Ralf Baechle
    Signed-off-by: Jeff Garzik
    Signed-off-by: David S. Miller

    Ralf Baechle
     
  • Several devices have multiple independant RX queues per net
    device, and some have a single interrupt doorbell for several
    queues.

    In either case, it's easier to support layouts like that if the
    structure representing the poll is independant from the net
    device itself.

    The signature of the ->poll() call back goes from:

    int foo_poll(struct net_device *dev, int *budget)

    to

    int foo_poll(struct napi_struct *napi, int budget)

    The caller is returned the number of RX packets processed (or
    the number of "NAPI credits" consumed if you want to get
    abstract). The callee no longer messes around bumping
    dev->quota, *budget, etc. because that is all handled in the
    caller upon return.

    The napi_struct is to be embedded in the device driver private data
    structures.

    Furthermore, it is the driver's responsibility to disable all NAPI
    instances in it's ->stop() device close handler. Since the
    napi_struct is privatized into the driver's private data structures,
    only the driver knows how to get at all of the napi_struct instances
    it may have per-device.

    With lots of help and suggestions from Rusty Russell, Roland Dreier,
    Michael Chan, Jeff Garzik, and Jamal Hadi Salim.

    Bug fixes from Thomas Graf, Roland Dreier, Peter Zijlstra,
    Joseph Fannin, Scott Wood, Hans J. Koch, and Michael Chan.

    [ Ported to current tree and all drivers converted. Integrated
    Stephen's follow-on kerneldoc additions, and restored poll_list
    handling to the old style to fix mutual exclusion issues. -DaveM ]

    Signed-off-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    Stephen Hemminger
     

08 Oct, 2007

1 commit

  • This patch makes numerous miscellaneous code improvements to the QE library.

    1. Remove struct ucc_common and merge ucc_init_guemr() into ucc_set_type()
    (every caller of ucc_init_guemr() also calls ucc_set_type()). Modify all
    callers of ucc_set_type() accordingly.

    2. Remove the unused enum ucc_pram_initial_offset.

    3. Refactor qe_setbrg(), also implement work-around for errata QE_General4.

    4. Several printk() calls were missing the terminating \n.

    5. Add __iomem where needed, and change u16 to __be16 and u32 to __be32 where
    appropriate.

    6. In ucc_slow_init() the RBASE and TBASE registers in the PRAM were programmed
    with the wrong value.

    7. Add the protocol type to struct us_info and updated ucc_slow_init() to
    use it, instead of always programming QE_CR_PROTOCOL_UNSPECIFIED.

    8. Rename ucc_slow_restart_x() to ucc_slow_restart_tx()

    9. Add several macros in qe.h (mostly for slow UCC support, but also to
    standardize some naming convention) and remove several unused macros.

    10. Update ucc_geth.c to use the new macros.

    11. Add ucc_slow_info.protocol to specify which QE_CR_PROTOCOL_xxx protcol
    to use when initializing the UCC in ucc_slow_init().

    12. Rename ucc_slow_pram.rfcr to rbmr and ucc_slow_pram.tfcr to tbmr, since
    these are the real names of the registers.

    13. Use the setbits, clrbits, and clrsetbits where appropriate.

    14. Refactor ucc_set_qe_mux_rxtx().

    15. Remove all instances of 'volatile'.

    16. Simplify get_cmxucr_reg();

    17. Replace qe_mux.cmxucrX with qe_mux.cmxucr[].

    18. Updated struct ucc_geth because struct ucc_fast is not padded any more.

    Signed-off-by: Timur Tabi
    Signed-off-by: Kumar Gala

    Timur Tabi
     

16 Sep, 2007

1 commit

  • Currently qe_bd_t is used in the macro call -- dma_unmap_single,
    which is a no-op on PPC32, thus error is hidden today. Starting
    with 2.6.24, macro will be replaced by the empty static function,
    and erroneous use of qe_bd_t will trigger compilation error.

    Signed-off-by: Anton Vorontsov
    Signed-off-by: Jeff Garzik

    Anton Vorontsov
     

25 Jul, 2007

2 commits


11 Jul, 2007

1 commit


25 May, 2007

1 commit


16 May, 2007

1 commit


10 May, 2007

1 commit

  • The rheap allocation functions return a pointer, but the actual value is based
    on how the heap was initialized, and so it can be anything, e.g. an offset
    into a buffer. A ulong is a better representation of the value returned by
    the allocation functions.

    This patch changes all of the relevant rheap functions to use a unsigned long
    integers instead of a pointer. In case of an error, the value returned is
    a negative error code that has been cast to an unsigned long. The caller can
    use the IS_ERR_VALUE() macro to check for this.

    All code which calls the rheap functions is updated accordingly. Macros
    IS_MURAM_ERR() and IS_DPERR(), have been deleted in favor of IS_ERR_VALUE().

    Also added error checking to rh_attach_region().

    Signed-off-by: Timur Tabi
    Signed-off-by: Kumar Gala

    Timur Tabi
     

02 May, 2007

1 commit


28 Apr, 2007

6 commits

  • Signed-off-by: Kim Phillips
    Signed-off-by: Jeff Garzik

    Kim Phillips
     
  • The ucc_geth_memclean function can be called before the Tx BD rings, Rx
    BD rings and associated socket buffers are allocated (for example if
    ucc_fast_init fails). The current code doesn't check if p_tx_bd_ring[i]
    is null, generating a kernel panic when trying to free the associated
    socket buffers.

    The function can also fail when accessing the uninitialized list_head
    structures ugeth->group_hash_q and ugeth->ind_hash_q. In the current
    implementation the list heads are initialized only when
    maxGroupAddrInHash and maxIndAddrInHash are positive values, although I
    think it's better to always initialize them.

    Signed-off-by: Ionut Nicu
    Signed-off-by: Kim Phillips
    Signed-off-by: Jeff Garzik

    Nicu Ioan Petru
     
  • Transmit on Demand: Fix spelling in config option, and make it actually enable TOD.

    Signed-off-by: Michael Reiss
    Signed-off-by: Michael Barkowski
    Signed-off-by: Kim Phillips
    Signed-off-by: Jeff Garzik

    Michael Reiss
     
  • The rx interrupt coalescing table alignment was "guessed" to be 4,
    but should be 64. The size should be 8 * number of queues + 4.
    Verified in the MPC8323E manual.

    Signed-off-by: Michael Barkowski
    Signed-off-by: Kim Phillips
    Signed-off-by: Jeff Garzik

    Michael Barkowski
     
  • Based partly on the gianfar driver, this patch fixes several
    bugs which were causing NAPI to be completely unusable.
    * An IRQ is still needed in NAPI, to kick off NAPI task,
    and for Tx processing. Request the IRQ.
    * If rx_work_limit = 0 we are not complete.
    * While running Rx NAPI processing we must mask Rx events,
    including Rx busy.
    * ucc_geth_rx function does not need a lock.
    Could lead to deadlock in NAPI case.
    * There's no need to loop reading ucce multiple times in the ISR,
    so while adding the call to schedule NAPI which was not there,
    simplify the event processing into if-else format.
    * Rx Busy now kicks off NAPI processing, while still
    being counted as an error.

    Signed-off-by: Michael Reiss
    Signed-off-by: Michael Barkowski
    Signed-off-by: Kim Phillips
    Signed-off-by: Jeff Garzik

    Michael Reiss
     
  • migrate ucc_geth to use the common phylib code.

    There are several side effects from doing this:

    o deprecate 'interface' property specification present
    in some old device tree source files in
    favour of a split 'max-speed' and 'interface-type'
    description to appropriately match definitions
    in include/linux/phy.h. Note that 'interface' property
    is still honoured if max-speed or interface-type
    are not present (backward compatible).
    o compile-time CONFIG_UGETH_HAS_GIGA is eliminated
    in favour of probe time speed derivation logic.
    o adjust_link streamlined to only operate on maccfg2
    and upsmr.r10m, instead of reapplying static initial
    values related to the interface-type.
    o Addition of UEC MDIO of_platform driver requires
    platform code add 'mdio' type to id list
    prior to calling of_platform_bus_probe (separate patch).
    o ucc_struct_init introduced to reduce ucc_geth_startup
    complexity.

    Signed-off-by: Li Yang
    Signed-off-by: Kim Phillips
    Signed-off-by: Jeff Garzik

    Kim Phillips
     

23 Mar, 2007

1 commit

  • This reverts commit 18babd38547a042a4bfd4154a014d1ad33373eb0.

    Michael Barkowski points out that it's wrong, and I agree. The
    patch causes a problem rather than fixes one after another
    patch "ucc_geth: Fix BD processing" was applied. Before that
    patch, current packet should be blocked. However after the patch
    current packet is ok and we only need to block next.

    Reported-by: Michael Barkowski
    Signed-off-by: Li Yang
    Signed-off-by: Jeff Garzik

    Li Yang
     

06 Mar, 2007

2 commits


27 Feb, 2007

1 commit


15 Feb, 2007

1 commit

  • The obsolete SA_xxx interrupt flags have been used despite the scheduled
    removal. Fixup the remaining users.

    Signed-off-by: Thomas Gleixner
    Acked-by: Ingo Molnar
    Cc: "Luck, Tony"
    Cc: Roman Zippel
    Cc: Geert Uytterhoeven
    Cc: Jeff Garzik
    Cc: Wim Van Sebroeck
    Cc: Roland Dreier
    Cc: Alessandro Zummo
    Cc: James Bottomley
    Cc: Greg KH
    Cc: Dave Airlie
    Cc: James Simmons
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Gleixner
     

09 Feb, 2007

2 commits


06 Feb, 2007

1 commit


19 Jan, 2007

1 commit

  • The workqueue interface changed with David Howell's patch on 11/22/2006
    (SHA 65f27f38446e1976cc98fd3004b110fedcddd189). Several drivers were
    updated with that patch to handle the new interface, but ucc_geth.c
    was not one of them. This patch updates ucc_geth.c to support the new
    model.

    A compiler warning in set_mac_addr() was also fixed.

    Signed-off-by: Timur Tabi
    Signed-off-by: Kumar Gala
    Signed-off-by: Jeff Garzik

    Timur Tabi
     

11 Dec, 2006

2 commits


02 Dec, 2006

1 commit


22 Oct, 2006

1 commit

  • changes due to qe_lib changes include:

    o removed inclusion of platform header file
    o removed platform_device code, replaced with of_device
    o removed typedefs
    o uint -> u32 conversions
    o removed following defines:
    QE_SIZEOF_BD, BD_BUFFER_ARG, BD_BUFFER_CLEAR, BD_BUFFER,
    BD_STATUS_AND_LENGTH_SET, BD_STATUS_AND_LENGTH, and BD_BUFFER_SET
    because they hid sizeof/in_be32/out_be32 operations from the reader.
    o removed irrelevant comments, added others to resemble removed BD_ defines
    o const'd and uncasted all get_property() assignments

    bugfixes, courtesy of Scott Wood, include:

    - Read phy_address as a u32, not u8.
    - Match on type == "network" as well as compatible == "ucc_geth", as
    device_is_compatible() will only compare up to the length of the
    test string, allowing "ucc_geth_phy" to match as well.
    - fixes the MAC setting code in ucc_geth.c. The old code was overwriting and dereferencing random stack contents.

    Signed-off-by: Li Yang
    Signed-off-by: Kim Phillips
    Signed-off-by: Scott Wood
    Signed-off-by: Jeff Garzik

    Li Yang
     

05 Oct, 2006

1 commit

  • Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
    of passing regs around manually through all ~1800 interrupt handlers in the
    Linux kernel.

    The regs pointer is used in few places, but it potentially costs both stack
    space and code to pass it around. On the FRV arch, removing the regs parameter
    from all the genirq function results in a 20% speed up of the IRQ exit path
    (ie: from leaving timer_interrupt() to leaving do_IRQ()).

    Where appropriate, an arch may override the generic storage facility and do
    something different with the variable. On FRV, for instance, the address is
    maintained in GR28 at all times inside the kernel as part of general exception
    handling.

    Having looked over the code, it appears that the parameter may be handed down
    through up to twenty or so layers of functions. Consider a USB character
    device attached to a USB hub, attached to a USB controller that posts its
    interrupts through a cascaded auxiliary interrupt controller. A character
    device driver may want to pass regs to the sysrq handler through the input
    layer which adds another few layers of parameter passing.

    I've build this code with allyesconfig for x86_64 and i386. I've runtested the
    main part of the code on FRV and i386, though I can't test most of the drivers.
    I've also done partial conversion for powerpc and MIPS - these at least compile
    with minimal configurations.

    This will affect all archs. Mostly the changes should be relatively easy.
    Take do_IRQ(), store the regs pointer at the beginning, saving the old one:

    struct pt_regs *old_regs = set_irq_regs(regs);

    And put the old one back at the end:

    set_irq_regs(old_regs);

    Don't pass regs through to generic_handle_irq() or __do_IRQ().

    In timer_interrupt(), this sort of change will be necessary:

    - update_process_times(user_mode(regs));
    - profile_tick(CPU_PROFILING, regs);
    + update_process_times(user_mode(get_irq_regs()));
    + profile_tick(CPU_PROFILING);

    I'd like to move update_process_times()'s use of get_irq_regs() into itself,
    except that i386, alone of the archs, uses something other than user_mode().

    Some notes on the interrupt handling in the drivers:

    (*) input_dev() is now gone entirely. The regs pointer is no longer stored in
    the input_dev struct.

    (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking. It does
    something different depending on whether it's been supplied with a regs
    pointer or not.

    (*) Various IRQ handler function pointers have been moved to type
    irq_handler_t.

    Signed-Off-By: David Howells
    (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)

    David Howells
     

14 Sep, 2006

1 commit


12 Sep, 2006

1 commit

  • As I promised last week, here is the first pass at removing all
    unnecessary printk's that exist in network device drivers currently in
    promiscuous mode. The duplicate messages are not needed so they have
    been removed. Some of these drivers are quite old and might not need an
    update, but I did them all anyway.

    I am currently auditing the remaining conditional printk's and will send
    out a patch for those soon.

    Signed-off-by: Andy Gospodarek
    Signed-off-by: Jeff Garzik

    Andy Gospodarek
     

20 Aug, 2006

1 commit

  • QE(QUICC Engine) is a new generation communication coprocessor, which can
    be found on some of the latest Freescale PowerQUICC CPUs(e.g. MPC8360).
    The UCC(Unified Communications Controller) module of QE can work as gigabit
    Ethernet device. This patch provides driver for the device.

    Signed-off-by: Shlomi Gridish
    Signed-off-by: Li Yang
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Li Yang