1. 05 8月, 2011 1 次提交
  2. 27 7月, 2011 1 次提交
  3. 22 7月, 2011 2 次提交
  4. 21 7月, 2011 1 次提交
    • J
      fs: push i_mutex and filemap_write_and_wait down into ->fsync() handlers · 02c24a82
      Josef Bacik 提交于
      Btrfs needs to be able to control how filemap_write_and_wait_range() is called
      in fsync to make it less of a painful operation, so push down taking i_mutex and
      the calling of filemap_write_and_wait() down into the ->fsync() handlers.  Some
      file systems can drop taking the i_mutex altogether it seems, like ext3 and
      ocfs2.  For correctness sake I just pushed everything down in all cases to make
      sure that we keep the current behavior the same for everybody, and then each
      individual fs maintainer can make up their mind about what to do from there.
      Thanks,
      Acked-by: NJan Kara <jack@suse.cz>
      Signed-off-by: NJosef Bacik <josef@redhat.com>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      02c24a82
  5. 20 7月, 2011 1 次提交
  6. 19 7月, 2011 1 次提交
  7. 12 7月, 2011 3 次提交
    • R
      powerpc: rename ppc_pci_*_flags to pci_*_flags · 0e47ff1c
      Rob Herring 提交于
      This renames pci flags functions and enums in preparation for creating
      generic version in asm-generic/pci-bridge.h. The following search and
      replace is done:
      
      s/ppc_pci_/pci_/
      s/PPC_PCI_/PCI_/
      
      Direct accesses to ppc_pci_flag variable are replaced with helper
      functions.
      Signed-off-by: NRob Herring <rob.herring@calxeda.com>
      Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      0e47ff1c
    • P
      powerpc, KVM: Rework KVM checks in first-level interrupt handlers · b01c8b54
      Paul Mackerras 提交于
      Instead of branching out-of-line with the DO_KVM macro to check if we
      are in a KVM guest at the time of an interrupt, this moves the KVM
      check inline in the first-level interrupt handlers.  This speeds up
      the non-KVM case and makes sure that none of the interrupt handlers
      are missing the check.
      
      Because the first-level interrupt handlers are now larger, some things
      had to be move out of line in exceptions-64s.S.
      
      This all necessitated some minor changes to the interrupt entry code
      in KVM.  This also streamlines the book3s_32 KVM test.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      b01c8b54
    • B
      powerpc/mm: Fix memory_block_size_bytes() for non-pseries · 770e1ac5
      Benjamin Herrenschmidt 提交于
      Just compiling pseries in the kernel causes it to override
      memory_block_size_bytes() regardless of what is the runtime
      platform.
      
      This cleans up the implementation of that function, fixing
      a bug or two while at it, so that it's harmless (and potentially
      useful) for other platforms. Without this, bugs in that code
      would trigger a WARN_ON() in drivers/base/memory.c when
      booting some different platforms.
      
      If/when we have another platform supporting memory hotplug we
      might want to either move that out to a generic place or
      make it a ppc_md. callback.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      770e1ac5
  8. 08 7月, 2011 2 次提交
    • L
      powerpc/85xx: Remove stale BUG_ON in mpc85xx_smp_init · 2647aa19
      Laurentiu TUDOR 提交于
      Under the FSL Hypervisor we triggered a BUG_ON in mpc85xx_smp_init that
      expected smp_ops.message_pass to be explicity set.  However recent
      changes allows smp_ops.message_pass to be NULL and handled by default
      code.  Thus the BUG_ON isn't relevant anymore.
      Signed-off-by: NLaurentiu TUDOR <Laurentiu.Tudor@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      2647aa19
    • M
      powerpc/85xx: Add p2040 RDB board support · 3fce1c0b
      Mingkai Hu 提交于
      P2040RDB Specification:
      -----------------------
      2Gbyte unbuffered DDR3 SDRAM SO-DIMM(64bit bus)
      128 Mbyte NOR flash single-chip memory
      256 Kbit M24256 I2C EEPROM
      16 Mbyte SPI memory
      SD connector to interface with the SD memory card
      dTSEC1: connected to the Vitesse SGMII PHY (VSC8221)
      dTSEC2: connected to the Vitesse SGMII PHY (VSC8221)
      dTSEC3: connected to the Vitesse SGMII PHY (VSC8221)
      dTSEC4: connected to the Vitesse RGMII PHY (VSC8641)
      dTSEC5: connected to the Vitesse RGMII PHY (VSC8641)
      I2C1: Real time clock, Temperature sensor
      I2C2: Vcore Regulator, 256Kbit I2C Bus EEPROM
      SATA: Lanes C and Land D of Bank2 are connected to two SATA connectors
      UART: supports two UARTs up to 115200 bps for console
      USB 2.0: connected via a internal UTMI PHY to two TYPE-A interfaces
      PCIe:
       - Lanes E, F, G and H of Bank1 are connected to one x4 PCIe SLOT1
       - Lanes C and Land D of Bank2 are connected to one x4 PCIe SLOT2
      Signed-off-by: NMingkai Hu <Mingkai.hu@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      3fce1c0b
  9. 07 7月, 2011 1 次提交
  10. 30 6月, 2011 1 次提交
  11. 29 6月, 2011 5 次提交
    • B
      powerpc/pseries: Re-implement HVSI as part of hvc_vio · 4d2bb3f5
      Benjamin Herrenschmidt 提交于
      On pseries machines, consoles are provided by the hypervisor using
      a low level get_chars/put_chars type interface. However, this is
      really just a transport to the service processor which implements
      them either as "raw" console (networked consoles, HMC, ...) or as
      "hvsi" serial ports.
      
      The later is a simple packet protocol on top of the raw character
      interface that is supposed to convey additional "serial port" style
      semantics. In practice however, all it does is provide a way to
      read the CD line and set/clear our DTR line, that's it.
      
      We currently implement the "raw" protocol as an hvc console backend
      (/dev/hvcN) and the "hvsi" protocol using a separate tty driver
      (/dev/hvsi0).
      
      However this is quite impractical. The arbitrary difference between
      the two type of devices has been a major source of user (and distro)
      confusion. Additionally, there's an additional mini -hvsi implementation
      in the pseries platform code for our low level debug console and early
      boot kernel messages, which means code duplication, though that low
      level variant is impractical as it's incapable of doing the initial
      protocol negociation to establish the link to the FSP.
      
      This essentially replaces the dedicated hvsi driver and the platform
      udbg code completely by extending the existing hvc_vio backend used
      in "raw" mode so that:
      
       - It now supports HVSI as well
       - We add support for hvc backend providing tiocm{get,set}
       - It also provides a udbg interface for early debug and boot console
      
      This is overall less code, though this will only be obvious once we
      remove the old "hvsi" driver, which is still available for now. When
      the old driver is enabled, the new code still kicks in for the low
      level udbg console, replacing the old mini implementation in the platform
      code, it just doesn't provide the higher level "hvc" interface.
      
      In addition to producing generally simler code, this has several benefits
      over our current situation:
      
       - The user/distro only has to deal with /dev/hvcN for the hypervisor
      console, avoiding all sort of confusion that has plagued us in the past
      
       - The tty, kernel and low level debug console all use the same code
      base which supports the full protocol establishment process, thus the
      console is now available much earlier than it used to be with the
      old HVSI driver. The kernel console works much earlier and udbg is
      available much earlier too. Hackers can enable a hard coded very-early
      debug console as well that works with HVSI (previously that was only
      supported for the "raw" mode).
      
      I've tried to keep the same semantics as hvsi relative to how I react
      to things like CD changes, with some subtle differences though:
      
       - I clear DTR on close if HUPCL is set
      
       - Current hvsi triggers a hangup if it detects a up->down transition
         on CD (you can still open a console with CD down). My new implementation
         triggers a hangup if the link to the FSP is severed, and severs it upon
         detecting a up->down transition on CD.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      4d2bb3f5
    • B
      powerpc/udbg: Register udbg console generically · dd2e356a
      Benjamin Herrenschmidt 提交于
      When CONFIG_PPC_EARLY_DEBUG is set, call register_early_udbg_console()
      early from generic code.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      dd2e356a
    • D
      powerpc/maple: Register CPC925 EDAC device on all boards with CPC925 · 8a0360a5
      Dmitry Eremin-Solenikov 提交于
      Currently Maple setup code creates cpc925_edac device only on
      Motorola ATCA-6101 blade. Make setup code check bridge revision
      and enable EDAC on all U3H bridges.
      
      Verified on Momentum MapleD (ppc970fx kit) board.
      Signed-off-by: NDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      8a0360a5
    • A
      powerpc/pseries: Improve error code on reconfiguration notifier failure · de2780a3
      Akinobu Mita 提交于
      Reconfiguration notifier call for device node may fail by several reasons,
      but it always assumes kmalloc failures.
      
      This enables reconfiguration notifier call chain to get the actual error
      code rather than -ENOMEM by converting all reconfiguration notifier calls
      to return encapsulate error code with notifier_from_errno().
      Signed-off-by: NAkinobu Mita <akinobu.mita@gmail.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: linuxppc-dev@lists.ozlabs.org
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      de2780a3
    • A
      powerpc/pseries: Introduce pSeries_reconfig_notify() · 3aef19f0
      Akinobu Mita 提交于
      This introduces pSeries_reconfig_notify() as a just wrapper of
      blocking_notifier_call_chain() for pSeries_reconfig_chain.
      
      This is a preparation to improvement of error code on reconfiguration
      notifier failure.
      Signed-off-by: NAkinobu Mita <akinobu.mita@gmail.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: linuxppc-dev@lists.ozlabs.org
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      3aef19f0
  12. 27 6月, 2011 8 次提交
  13. 23 6月, 2011 5 次提交
  14. 20 6月, 2011 2 次提交
  15. 10 6月, 2011 1 次提交
  16. 09 6月, 2011 1 次提交
  17. 08 6月, 2011 1 次提交
    • B
      pci/of: Match PCI devices to OF nodes dynamically · 98d9f30c
      Benjamin Herrenschmidt 提交于
      powerpc has two different ways of matching PCI devices to their
      corresponding OF node (if any) for historical reasons. The ppc64 one
      does a scan looking for matching bus/dev/fn, while the ppc32 one does a
      scan looking only for matching dev/fn on each level in order to be
      agnostic to busses being renumbered (which Linux does on some
      platforms).
      
      This removes both and instead moves the matching code to the PCI core
      itself. It's the most logical place to do it: when a pci_dev is created,
      we know the parent and thus can do a single level scan for the matching
      device_node (if any).
      
      The benefit is that all archs now get the matching for free. There's one
      hook the arch might want to provide to match a PHB bus to its device
      node. A default weak implementation is provided that looks for the
      parent device device node, but it's not entirely reliable on powerpc for
      various reasons so powerpc provides its own.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Acked-by: NMichal Simek <monstr@monstr.eu>
      Acked-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      98d9f30c
  18. 31 5月, 2011 1 次提交
  19. 26 5月, 2011 2 次提交