30 Jul, 2009

8 commits

  • Signed-off-by: Kumar Gala

    Kumar Gala
     
  • General update of defconfig including the following notable changes:
    - Enable Highmem support.
    - Support for PCMCIA based daughter card.

    Signed-off-by: Martyn Welch
    Signed-off-by: Kumar Gala

    Martyn Welch
     
  • General update of defconfig including the following notable changes:
    - Enable GPIO access via sysfs on GE Fanuc's PPC9A.
    - Enable Highmem support.
    - Support for PCMCIA based daughter card.

    Signed-off-by: Martyn Welch
    Signed-off-by: Kumar Gala

    Martyn Welch
     
  • This is another alloc_bootmem() -> kzalloc() change, this time to
    fix the non-fatal badness caused when booting with a cpm2_uart console.

    Signed-off-by: Mark Ware
    Signed-off-by: Kumar Gala

    Mark Ware
     
  • U-Boot maps PCI IO at 0xe0300000, while current dts files specify
    0xe2000000. This leads to the following oops with CONFIG_8139TOO_PIO=y.

    8139too Fast Ethernet driver 0.9.28
    Machine check in kernel mode.
    Caused by (from SRR1=41000): Transfer error ack signal
    Oops: Machine check, sig: 7 [#1]
    MPC837x RDB
    [...]
    NIP [00000900] 0x900
    LR [c0439df8] rtl8139_init_board+0x238/0x524
    Call Trace:
    [cf831d90] [c0439dcc] rtl8139_init_board+0x20c/0x524 (unreliable)
    [cf831de0] [c043a15c] rtl8139_init_one+0x78/0x65c
    [cf831e40] [c0235250] pci_call_probe+0x20/0x30
    [...]

    This patch fixes the issue by specifying the correct PCI IO base
    address.

    Signed-off-by: Anton Vorontsov
    Signed-off-by: Kumar Gala

    Anton Vorontsov
     
  • Sometimes (e.g. when there are no UEMs attached to a board)
    fsl_pq_mdio_find_free() fails to find a spare address for a TBI PHY,
    this is because get_phy_id() returns bogus 0x0000ffff values
    (0xffffffff is expected), and therefore mdio bus probing fails with
    the following message:

    fsl-pq_mdio: probe of e0082120.mdio failed with error -16

    And obviously ethernet doesn't work after this.

    This patch solves the problem by adding tbi-phy node into mdio node,
    so that we won't scan for spare addresses, we'll just use a fixed one.

    Signed-off-by: Anton Vorontsov
    Signed-off-by: Kumar Gala

    Anton Vorontsov
     
  • Linux isn't able to detect link changes on ethernet ports that were
    used by U-Boot. This is because U-Boot wrongly clears interrupt
    polarity bit (INTPOL, 0x400) in the extended status register (EXT_SR,
    0x1b) of Marvell PHYs.

    There is no easy way for PHY drivers to know IRQ line polarity (we
    could extract it from the device tree and pass it to phydevs, but
    that'll be quite a lot of work), so for now just reset the PHYs to
    their default states.

    Signed-off-by: Anton Vorontsov
    Signed-off-by: Kumar Gala

    Anton Vorontsov
     
  • In switch_mmu_context() if we call steal_context_smp() to get a context
    to use we shouldn't fall through and than call steal_context_up(). Doing
    so can be problematic in that the 'mm' that steal_context_up() ends up
    using will not get marked dirty in the stale_map[] for other CPUs that
    might have used that mm. Thus we could end up with stale TLB entries in
    the other CPUs that can cause all kinda of havoc.

    Signed-off-by: Kumar Gala

    Kumar Gala
     

28 Jul, 2009

21 commits

  • Those definitions are already provided by asm-generic

    Signed-off-by: Benjamin Herrenschmidt
    Acked-by: Paul Mundt
    Signed-off-by: Linus Torvalds

    Benjamin Herrenschmidt
     
  • This fixes
    - locking bug that was hidden by ecc2e05e739c30870c8e4f252b63a0c4041f2724
    - Regression #13821
    - Spurious warning when closing and blocking for data write out

    With these changes my PL2303 always ends up as ttyUSB0 when it should and
    the module refcounts stay correct.

    I'll do a more wholesale split & tidy of _open in the next release or two
    as we get a standard tty_port_open and port->ops->init port->ops->shutdown
    call backs.

    Copy sent to Alan Stern and Carlos Mafra just to confirm it fixes all the
    reports but it passes local testing with the same hardware as Alan Stern.

    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • * 'for-linus' of git://git.infradead.org/users/eparis/notify:
    inotify: use GFP_NOFS under potential memory pressure
    fsnotify: fix inotify tail drop check with path entries
    inotify: check filename before dropping repeat events
    fsnotify: use def_bool in kconfig instead of letting the user choose
    inotify: fix error paths in inotify_update_watch
    inotify: do not leak inode marks in inotify_add_watch
    inotify: drop user watch count when a watch is removed

    Linus Torvalds
     
  • This also makes close stall in the normal case which is apparently
    needed to fix emacs

    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (45 commits)
    cnic: Fix ISCSI_KEVENT_IF_DOWN message handling.
    net: irda: init spinlock after memcpy
    ixgbe: fix for 82599 errata marking UDP checksum errors
    r8169: WakeOnLan fix for the 8168
    netxen: reset ring consumer during cleanup
    net/bridge: use kobject_put to release kobject in br_add_if error path
    smc91x.h: add config for Nomadik evaluation kit
    NET: ROSE: Don't use static buffer.
    eepro: Read buffer overflow
    tokenring: Read buffer overflow
    at1700: Read buffer overflow
    fealnx: Write outside array bounds
    ixgbe: remove unnecessary call to device_init_wakeup
    ixgbe: Don't priority tag control frames in DCB mode
    ixgbe: Enable FCoE offload when DCB is enabled for 82599
    net: Rework mdio-ofgpio driver to use of_mdio infrastructure
    register at91_ether using platform_driver_probe
    skge: Enable WoL by default if supported
    net: KS8851 needs to depend on MII
    be2net: Bug fix in the non-lro path. Size of received packet was not updated in statistics properly.
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
    amd64_edac: read the right F2 maskoffset reg

    Linus Torvalds
     
  • The port lock is used to protect the port state. However the port structure
    is freed on a hangup, then the lock taken on a close. The right fix is to
    drop the port on tty->shutdown() but we can't yet do that due to sleep v
    non-sleeping rules. Instead do the next best thing and fix it up when we are
    not in -rc season.

    Reported-by: Daniel Mack
    Signed-off-by: Alan Cox
    Tested-by: Daniel Mack
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • * 'fixes-for-linus' of git://git.monstr.eu/linux-2.6-microblaze:
    microblaze: Makefile cleanup
    microblaze: Typo fix for cpu param inconsistency
    microblaze: Add support for R_MICROBLAZE_64_NONE
    microblaze: Get module loading working
    microblaze: remove sys_ipc
    microblaze: Support unaligned address for put/get_user macros
    microblaze: Detect new Microblaze 7.20 versions
    microblaze: Fix do_page_fault for no context
    microblaze: Add _PAGE_FILE macros to pgtable.h
    microblaze: Fix put_user macro for 64bits arguments
    microblaze: Clear print messages for DTB passing via r7
    microblaze: Not to clear r7 after copying DTB to kernel
    microblaze: Add messages about FDT blob
    microblaze: Final support for statically linked DTB
    microblaze: remove duplicated #include
    microblaze: Define tlb_flush macro

    Linus Torvalds
     
  • …git/tip/linux-2.6-tip

    * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86: geode: Mark mfgpt irq IRQF_TIMER to prevent resume failure
    x86, amd: Don't probe for extended APIC ID if APICs are disabled
    x86, mce: Rename incorrect macro name "CONFIG_X86_THRESHOLD"
    x86-64: Fix bad_srat() to clear all state
    x86, mce: Fix set_trigger() accessor
    x86: Fix movq immediate operand constraints in uaccess.h
    x86: Fix movq immediate operand constraints in uaccess_64.h
    x86: Add reboot fixup for SBC-fitPC2
    x86: Include all of .data.* sections in _edata on 64-bit
    x86: Add quirk for Intel DG45ID board to avoid low memory corruption

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: hda - Fix mute control with some ALC262 models
    ALSA: snd_usb_caiaq: add support for Audio2DJ
    ALSA: pcm - Fix hwptr buffer-size overlap bug
    ALSA: pcm - Fix warnings in debug loggings
    ALSA: pcm - Add logging of hwptr updates and interrupt updates
    ASoC: tlv320aic3x: Enable PLL when not bypassed
    ALSA: hda - Restore GPIO1 properly at resume with AD1984A
    ALSA: ctxfi - Fix uninitialized error checks
    ALSA: hda - Use snprintf() to be safer
    ALSA: usb-audio - Volume control quirk for QuickCam E 3500
    ALSA: pcm - Fix regressions with VMware

    Linus Torvalds
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (34 commits)
    V4L/DVB (12303): cx23885: check pointers before dereferencing in dprintk macro
    V4L/DVB (12302): cx23885-417: fix broken IOCTL handling
    V4L/DVB (12300): bttv: fix regression: tvaudio must be loaded before tuner
    V4L/DVB (12291): b2c2: fix frontends compiled into kernel
    V4L/DVB (12286): sn9c20x: reorder includes to be like other drivers
    V4L/DVB (12284): gspca - jpeg subdrivers: Check the result of kmalloc(jpeg header).
    V4L/DVB (12283): gspca - sn9c20x: New subdriver for sn9c201 and sn9c202 bridges.
    V4L/DVB (12282): gspca - main: Support for vidioc_g_chip_ident and vidioc_g/s_register.
    V4L/DVB (12269): af9013: auto-detect parameters in case of garbage given by app
    V4L/DVB (12267): gspca - sonixj: Bad sensor init of non ov76xx sensors.
    V4L/DVB (12265): em28xx: fix tuning problem in HVR-900 (R1)
    V4L/DVB (12263): em28xx: set demod profile for Pinnacle Hybrid Pro 320e
    V4L/DVB (12262): em28xx: Make sure the tuner is initialized if generic empia USB id was used
    V4L/DVB (12261): em28xx: set GPIO properly for Pinnacle Hybrid Pro analog support
    V4L/DVB (12260): em28xx: make support work for the Pinnacle Hybrid Pro (eb1a:2881)
    V4L/DVB (12258): em28xx: fix typo in mt352 init sequence for Terratec Cinergy T XS USB
    V4L/DVB (12257): em28xx: make tuning work for Terratec Cinergy T XS USB (mt352 variant)
    V4L/DVB (12245): em28xx: add support for mt9m001 webcams
    V4L/DVB (12244): em28xx: adjust vinmode/vinctl based on the stream input format
    V4L/DVB (12243): em28xx: allow specifying sensor xtal frequency
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6:
    [S390] zcrypt: fix scheduling of hrtimer ap_poll_timer
    [S390] vdso: clock_gettime of CLOCK_THREAD_CPUTIME_ID with noexec=on
    [S390] vdso: fix per cpu area allocation
    [S390] hibernation: fix register corruption on machine checks
    [S390] hibernation: fix lowcore handling

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm:
    dm table: pass correct dev area size to device_area_is_valid
    dm: remove queue next_ordered workaround for barriers
    dm raid1: wake kmirrord when requeueing delayed bios after remote recovery

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/shaggy/jfs-2.6:
    jfs: Fix early release of acl in jfs_get_acl

    Linus Torvalds
     
  • Commit 63706172f332fd3f6e7458ebfb35fa6de9c21dc5 ("kthreads: rework
    kthread_stop()") removed the limitation that the thread function mysr
    not call do_exit() itself, but forgot to update the comment.

    Since that commit it is OK to use kthread_stop() even if kthread can
    exit itself.

    Signed-off-by: Oleg Nesterov
    Signed-off-by: Rusty Russell
    Signed-off-by: Linus Torvalds

    Oleg Nesterov
     
  • The check_modstruct_version() needs to look up the symbol "module_layout"
    in the kernel, but it does so literally and not by a C identifier. The
    trouble is that it does not include a symbol prefix for those ports that
    need it (like the Blackfin and H8300 port). So make sure we tack on the
    MODULE_SYMBOL_PREFIX define to the front of it.

    Signed-off-by: Mike Frysinger
    Signed-off-by: Rusty Russell
    Signed-off-by: Linus Torvalds

    Mike Frysinger
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6:
    jbd: fix race between write_metadata_buffer and get_write_access
    ext3: Get rid of extenddisksize parameter of ext3_get_blocks_handle()
    jbd: Fix a race between checkpointing code and journal_get_write_access()
    ext3: Fix truncation of symlinks after failed write
    jbd: Fail to load a journal if it is too short

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
    [CIFS] fix sparse warning
    cifs: fix sb->s_maxbytes so that it casts properly to a signed value
    cifs: disable serverino if server doesn't support it

    Linus Torvalds
     
  • mm: Pass virtual address to [__]p{te,ud,md}_free_tlb()

    Upcoming paches to support the new 64-bit "BookE" powerpc architecture
    will need to have the virtual address corresponding to PTE page when
    freeing it, due to the way the HW table walker works.

    Basically, the TLB can be loaded with "large" pages that cover the whole
    virtual space (well, sort-of, half of it actually) represented by a PTE
    page, and which contain an "indirect" bit indicating that this TLB entry
    RPN points to an array of PTEs from which the TLB can then create direct
    entries. Thus, in order to invalidate those when PTE pages are deleted,
    we need the virtual address to pass to tlbilx or tlbivax instructions.

    The old trick of sticking it somewhere in the PTE page struct page sucks
    too much, the address is almost readily available in all call sites and
    almost everybody implemets these as macros, so we may as well add the
    argument everywhere. I added it to the pmd and pud variants for consistency.

    Signed-off-by: Benjamin Herrenschmidt
    Acked-by: David Howells [MN10300 & FRV]
    Acked-by: Nick Piggin
    Acked-by: Martin Schwidefsky [s390]
    Signed-off-by: Linus Torvalds

    Benjamin Herrenschmidt
     
  • When a net device goes down or when the bnx2i driver is unloaded,
    the code was not generating the ISCSI_KEVENT_IF_DOWN message
    properly and this could cause the userspace driver to crash.

    This is fixed by sending the message properly in the shutdown path.
    cnic_uio_stop() is also added to send the message when bnx2i is
    unregistering.

    Signed-off-by: Michael Chan
    Signed-off-by: David S. Miller

    Michael Chan
     
  • irttp_dup() copies a tsap_cb struct, but does not initialize the
    spinlock in the new structure, which confuses lockdep.

    Signed-off-by: Deepak Saxena
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner
    Signed-off-by: David S. Miller

    Deepak Saxena
     

27 Jul, 2009

11 commits