1. 09 1月, 2006 13 次提交
    • B
      [PATCH] 2/5 powerpc: Rework PowerMac i2c part 2 · a28d3af2
      Benjamin Herrenschmidt 提交于
      This is the continuation of the previous patch. This one removes the old
      PowerMac i2c drivers (i2c-keywest and i2c-pmac-smu) and replaces them
      both with a single stub driver that uses the new PowerMac low i2c layer.
      
      Now that i2c-keywest is gone, the low-i2c code is extended to support
      interrupt driver transfers. All i2c busses now appear as platform
      devices. Compatibility with existing drivers should be maintained as the
      i2c bus names have been kept identical, except for the SMU bus but in
      that later case, all users has been fixed.
      
      With that patch added, matching a device node to an i2c_adapter becomes
      trivial.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      a28d3af2
    • B
      [PATCH] 1/5 powerpc: Rework PowerMac i2c part 1 · 730745a5
      Benjamin Herrenschmidt 提交于
      This is the first part of a rework of the PowerMac i2c code. It
      completely reworks the "low_i2c" layer. It is now more flexible,
      supports KeyWest, SMU and PMU i2c busses, and provides functions to
      match device nodes to i2c busses and adapters.
      
      This patch also extends & fix some bugs in the SMU driver related to i2c
      support and removes the clock spreading hacks from the pmac feature code
      rather than adapting them to the new API since they'll be replaced by
      the platform function code completely in patch 3/5
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      730745a5
    • A
      [PATCH] ppc32: cpm_uart: fix xchar sending · 03929c76
      Aristeu Sergio Rozanski Filho 提交于
      while using SCC as uart and as serial console at same time I got this:
      
      [  138.214258] Oops: kernel access of bad area, sig: 11 [#1]
      [  138.218832] PREEMPT
      [  138.221021] NIP: C0105C48 LR: C0105E60 SP: C03D5D10 REGS: c03d5c60 TRAP: 0300    Not tainted
      [  138.229280] MSR: 00009032 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
      [  138.234713] DAR: 00000000, DSISR: C0000000
      [  138.238745] TASK = c0349420[693] 'sh' THREAD: c03d4000
      [  138.243754] Last syscall: 6
      [  138.246402] GPR00: FEFFFFFF C03D5D10 C0349420 C01FB094 00000011 00000000 C1ECFBBC C01F24B0
      [  138.254602] GPR08: FF002820 00000000 FF0028C0 00000000 19133615 A0CBCD5E 02000300 00000000
      [  138.262804] GPR16: 00000000 01FF9E4C 00000000 7FA9A770 00000000 00000000 1003E2A8 00000000
      [  138.271003] GPR24: 100562F4 7F9B6EF4 C0210000 C02A5338 C01FB094 00000000 C01FB094 C1F14574
      [  138.279376] NIP [c0105c48] cpm_uart_tx_pump+0x4c/0x22c
      [  138.284419] LR [c0105e60] cpm_uart_start_tx+0x38/0xb0
      [  138.289361] Call trace:
      [  138.291762]  [c0105e60] cpm_uart_start_tx+0x38/0xb0
      [  138.296547]  [c010277c] uart_send_xchar+0x88/0x118
      [  138.301244]  [c01029a0] uart_unthrottle+0x6c/0x138
      [  138.305942]  [c00ece10] check_unthrottle+0x60/0x64
      [  138.310641]  [c00ecec4] reset_buffer_flags+0xb0/0x138
      [  138.315595]  [c00ecf64] n_tty_flush_buffer+0x18/0x78
      [  138.320465]  [c00e81b0] tty_ldisc_flush+0x64/0x7c
      [  138.325078]  [c010410c] uart_close+0xf0/0x2c8
      [  138.329348]  [c00e9c48] release_dev+0x724/0x8d4
      [  138.333790]  [c00e9e18] tty_release+0x20/0x3c
      [  138.338061]  [c006e544] __fput+0x178/0x1e0
      [  138.342076]  [c006c43c] filp_close+0x54/0xac
      [  138.346261]  [c0002d90] ret_from_syscall+0x0/0x44
      [  138.352386] note: sh[693] exited with preempt_count 2
      
      a easy way to reproduce it is log into the system using ssh and do:
      	cat >/dev/ttyCPM0
      then, switch to minicom and write some stuff on it back to ssh, a control C
      produce the oops
      
      this happens because uart_close calls uart_shutdown which frees xmit.buf,
      currently used by xchar sending in cpm_uart_tx_pump(), which seems wrong.
      
      the attached patch fixes the oops and also fixes xchar sending.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      03929c76
    • K
      [PATCH] via-pmu: compile without Power Management support · a04c8780
      Kristian Mueller 提交于
      Fix compilation of via-pmu.c without Power Management support.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      a04c8780
    • B
      [PATCH] powerpc: Experimental support for new G5 Macs (#2) · 1beb6a7d
      Benjamin Herrenschmidt 提交于
      This adds some very basic support for the new machines, including the
      Quad G5 (tested), and other new dual core based machines and iMac G5
      iSight (untested). This is still experimental !  There is no thermal
      control yet, there is no proper handing of MSIs, etc.. but it
      boots, I have all 4 cores up on my machine. Compared to the previous
      version of this patch, this one adds DART IOMMU support for the U4
      chipset and thus should work fine on setups with more than 2Gb of RAM.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      1beb6a7d
    • B
      [PATCH] powerpc: Remove device_node addrs/n_addr · cc5d0189
      Benjamin Herrenschmidt 提交于
      The pre-parsed addrs/n_addrs fields in struct device_node are finally
      gone. Remove the dodgy heuristics that did that parsing at boot and
      remove the fields themselves since we now have a good replacement with
      the new OF parsing code. This patch also fixes a bunch of drivers to use
      the new code instead, so that at least pmac32, pseries, iseries and g5
      defconfigs build.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      cc5d0189
    • B
      [PATCH] powerpc: Fix platinumfb for some modes · 9cf84d7c
      Benjamin Herrenschmidt 提交于
      The platinumfb driver used only on some powermacs has an issue with some
      video modes & limited VRAM. This patch fixes it.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      9cf84d7c
    • M
      [PATCH] powerpc/8xx: Fix m8xx_wdt issues · 398f6858
      Marcelo Tosatti 提交于
      The following fixes some issues with the last mpc8xx_wdt update:
      
      - Adds missing #include <asm/io.h>
      - Use "uint __iomem" pointer for in_be32/out_be32
      Signed-off-by: NMarcelo Tosatti <marcelo.tosatti@cyclades.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      398f6858
    • B
      [PATCH] powerpc: Update OF address parsers · d2dd482b
      Benjamin Herrenschmidt 提交于
      This updates the OF address parsers to return the IO flags
      indicating the type of address obtained. It also adds a PCI
      call for converting physical addresses that hit IO space into
      into IO tokens, and add routines that return the translated
      addresses into struct resource
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      d2dd482b
    • B
      [PATCH] powerpc: udbg updates · bb6b9b28
      Benjamin Herrenschmidt 提交于
      The udbg low level io layer has an issue with udbg_getc() returning a
      char (unsigned on ppc) instead of an int, thus the -1 if you had no
      available input device could end up turned into 0xff, filling your
      display with bogus characters. This fixes it, along with adding a little
      blob to xmon to do a delay before exiting when getting an EOF and fixing
      the detection of ADB keyboards in udbg_adb.c
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      bb6b9b28
    • M
      [PATCH] ppc32: m8xx watchdog update · fb64c244
      Marcelo Tosatti 提交于
      This updates m8xx_wdt as follows:
      
      1) Remove now obsolete fpos check in the write() function. The driver is
      currently non functional due to this bug.
      
      2) Use in/out macros for register access.
      
      3) Allows m8xx_wdt to use a kernel timer instead of the builtin RTC/PIT
      for keep-alive trigger (which is responsible for servicing the watchdog
      until an userspace application takes over). For instance Cyclades PRxK
      boards (MPC 855T based) have a non-functional internal RTC/PIT unit.
      Behaviour for boards with RTC/PIT is unchaged.
      
      4) The last change required moving the RTCSC register setting code
      to a weak function which can be overriden by board specific files.
      Otherwise the timer init code trashes the register making it impossible
      for m8xx_wdt to detect the situation.
      Signed-off-by: NMarcelo Tosatti <marcelo.tosatti@cyclades.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      fb64c244
    • B
      [PATCH] powerpc: convert macio_asic to use prom_parse · 2c5bd01f
      Benjamin Herrenschmidt 提交于
      Converts the macio_asic core to use the new OF parsing routines instead
      of relying on the pre-parsed values in struct device_node.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      2c5bd01f
    • B
      [PATCH] powerpc: Unify udbg (#2) · 51d3082f
      Benjamin Herrenschmidt 提交于
      This patch unifies udbg for both ppc32 and ppc64 when building the
      merged achitecture. xmon now has a single "back end". The powermac udbg
      stuff gets enriched with some ADB capabilities and btext output. In
      addition, the early_init callback is now called on ppc32 as well,
      approx. in the same order as ppc64 regarding device-tree manipulations.
      The init sequences of ppc32 and ppc64 are getting closer, I'll unify
      them in a later patch.
      
      For now, you can force udbg to the scc using "sccdbg" or to btext using
      "btextdbg" on powermacs. I'll implement a cleaner way of forcing udbg
      output to something else than the autodetected OF output device in a
      later patch.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      51d3082f
  2. 08 1月, 2006 3 次提交
  3. 07 1月, 2006 24 次提交