[OpenWrt-Devel] [PATCH 1/2] pxcab: build fix (resend)

2009-08-27 Thread Akinobu Mita
0001-powerpc-mpic-Fix-mapping-of-DCR-based-MPIC-variants.patch was
merged in 2.6.30.4

Signed-off-by: Akinobu Mita akinobu.m...@gmail.com
---
 ...ic-Fix-mapping-of-DCR-based-MPIC-variants.patch |  107 
 1 files changed, 0 insertions(+), 107 deletions(-)
 delete mode 100644 
target/linux/pxcab/patches-2.6.30/0001-powerpc-mpic-Fix-mapping-of-DCR-based-MPIC-variants.patch

diff --git 
a/target/linux/pxcab/patches-2.6.30/0001-powerpc-mpic-Fix-mapping-of-DCR-based-MPIC-variants.patch
 
b/target/linux/pxcab/patches-2.6.30/0001-powerpc-mpic-Fix-mapping-of-DCR-based-MPIC-variants.patch
deleted file mode 100644
index c546919..000
--- 
a/target/linux/pxcab/patches-2.6.30/0001-powerpc-mpic-Fix-mapping-of-DCR-based-MPIC-variants.patch
+++ /dev/null
@@ -1,107 +0,0 @@
-commit 5a2642f620eb6e40792822fa0eafe23046fbb55e
-Author: Benjamin Herrenschmidt b...@kernel.crashing.org
-Date:   Mon Jun 22 16:47:59 2009 +
-
-powerpc/mpic: Fix mapping of DCR based MPIC variants
-
-Commit 31207dab7d2e63795eb15823947bd2f7025b08e2
-Fix incorrect allocation of interrupt rev-map
-introduced a regression crashing on boot on machines using
-a DCR based MPIC, such as the Cell blades.
-
-The reason is that the irq host data structure is initialized
-much later as a result of that patch, causing our calls to
-mpic_map() do be done before we have a host setup.
-
-Unfortunately, this breaks _mpic_map_dcr() which uses the
-mpic-irqhost to get to the device node.
-
-This fixes it by, instead, passing the device node explicitely
-to mpic_map().
-
-Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org
-Acked-by: Akira Tsukamoto aki...@rd.scei.sony.co.jp
-
-diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c
-index 9c3af50..32a2e95 100644
 a/arch/powerpc/sysdev/mpic.c
-+++ b/arch/powerpc/sysdev/mpic.c
-@@ -279,28 +279,29 @@ static void _mpic_map_mmio(struct mpic *mpic, 
phys_addr_t phys_addr,
- }
- 
- #ifdef CONFIG_PPC_DCR
--static void _mpic_map_dcr(struct mpic *mpic, struct mpic_reg_bank *rb,
-+static void _mpic_map_dcr(struct mpic *mpic, struct device_node *node,
-+struct mpic_reg_bank *rb,
- unsigned int offset, unsigned int size)
- {
-   const u32 *dbasep;
- 
--  dbasep = of_get_property(mpic-irqhost-of_node, dcr-reg, NULL);
-+  dbasep = of_get_property(node, dcr-reg, NULL);
- 
--  rb-dhost = dcr_map(mpic-irqhost-of_node, *dbasep + offset, size);
-+  rb-dhost = dcr_map(node, *dbasep + offset, size);
-   BUG_ON(!DCR_MAP_OK(rb-dhost));
- }
- 
--static inline void mpic_map(struct mpic *mpic, phys_addr_t phys_addr,
--  struct mpic_reg_bank *rb, unsigned int offset,
--  unsigned int size)
-+static inline void mpic_map(struct mpic *mpic, struct device_node *node,
-+  phys_addr_t phys_addr, struct mpic_reg_bank *rb,
-+  unsigned int offset, unsigned int size)
- {
-   if (mpic-flags  MPIC_USES_DCR)
--  _mpic_map_dcr(mpic, rb, offset, size);
-+  _mpic_map_dcr(mpic, node, rb, offset, size);
-   else
-   _mpic_map_mmio(mpic, phys_addr, rb, offset, size);
- }
- #else /* CONFIG_PPC_DCR */
--#define mpic_map(m,p,b,o,s)   _mpic_map_mmio(m,p,b,o,s)
-+#define mpic_map(m,n,p,b,o,s) _mpic_map_mmio(m,p,b,o,s)
- #endif /* !CONFIG_PPC_DCR */
- 
- 
-@@ -1152,8 +1153,8 @@ struct mpic * __init mpic_alloc(struct device_node *node,
-   }
- 
-   /* Map the global registers */
--  mpic_map(mpic, paddr, mpic-gregs, MPIC_INFO(GREG_BASE), 0x1000);
--  mpic_map(mpic, paddr, mpic-tmregs, MPIC_INFO(TIMER_BASE), 0x1000);
-+  mpic_map(mpic, node, paddr, mpic-gregs, MPIC_INFO(GREG_BASE), 0x1000);
-+  mpic_map(mpic, node, paddr, mpic-tmregs, MPIC_INFO(TIMER_BASE), 
0x1000);
- 
-   /* Reset */
-   if (flags  MPIC_WANTS_RESET) {
-@@ -1194,7 +1195,7 @@ struct mpic * __init mpic_alloc(struct device_node *node,
- 
-   /* Map the per-CPU registers */
-   for (i = 0; i  mpic-num_cpus; i++) {
--  mpic_map(mpic, paddr, mpic-cpuregs[i],
-+  mpic_map(mpic, node, paddr, mpic-cpuregs[i],
-MPIC_INFO(CPU_BASE) + i * MPIC_INFO(CPU_STRIDE),
-0x1000);
-   }
-@@ -1202,7 +1203,7 @@ struct mpic * __init mpic_alloc(struct device_node *node,
-   /* Initialize main ISU if none provided */
-   if (mpic-isu_size == 0) {
-   mpic-isu_size = mpic-num_sources;
--  mpic_map(mpic, paddr, mpic-isus[0],
-+  mpic_map(mpic, node, paddr, mpic-isus[0],
-MPIC_INFO(IRQ_BASE), MPIC_INFO(IRQ_STRIDE) * 
mpic-isu_size);
-   }
-   mpic-isu_shift = 1 + __ilog2(mpic-isu_size - 1);
-@@ -1256,8 +1257,10 @@ void __init mpic_assign_isu(struct mpic *mpic, unsigned 
int isu_num,
- 
-   BUG_ON(isu_num = 

[OpenWrt-Devel] [PATCH 2/2] pxcab: add config-2.6.31 for preparation for 2.6.31

2009-08-27 Thread Akinobu Mita
Tested with 2.6.31-rc7

Signed-off-by: Akinobu Mita akinobu.m...@gmail.com
---
 target/linux/pxcab/config-2.6.31 |  521 ++
 1 files changed, 521 insertions(+), 0 deletions(-)
 create mode 100644 target/linux/pxcab/config-2.6.31

diff --git a/target/linux/pxcab/config-2.6.31 b/target/linux/pxcab/config-2.6.31
new file mode 100644
index 000..b2facca
--- /dev/null
+++ b/target/linux/pxcab/config-2.6.31
@@ -0,0 +1,521 @@
+CONFIG_64BIT=y
+# CONFIG_AGP is not set
+CONFIG_ALTIVEC=y
+CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
+CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y
+CONFIG_ARCH_HAS_ILOG2_U32=y
+CONFIG_ARCH_HAS_ILOG2_U64=y
+CONFIG_ARCH_HAS_WALK_MEMORY=y
+CONFIG_ARCH_MAY_HAVE_PC_FDC=y
+CONFIG_ARCH_MEMORY_PROBE=y
+CONFIG_ARCH_NO_VIRT_TO_BUS=y
+CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
+CONFIG_ARCH_POPULATES_NODE_MAP=y
+CONFIG_ARCH_SELECT_MEMORY_MODEL=y
+CONFIG_ARCH_SPARSEMEM_DEFAULT=y
+CONFIG_ARCH_SPARSEMEM_ENABLE=y
+CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
+CONFIG_ARCH_SUPPORTS_MSI=y
+CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
+# CONFIG_ARPD is not set
+CONFIG_AUDIT_ARCH=y
+CONFIG_AXON_RAM=m
+# CONFIG_BACKTRACE_SELF_TEST is not set
+CONFIG_BASE_SMALL=0
+# CONFIG_BINARY_PRINTF is not set
+CONFIG_BITREVERSE=y
+CONFIG_BLK_DEV_LOOP=y
+CONFIG_BLK_DEV_RAM=y
+CONFIG_BLK_DEV_RAM_COUNT=16
+CONFIG_BLK_DEV_RAM_SIZE=65535
+CONFIG_BLK_DEV_SD=y
+CONFIG_BLK_DEV_SR=y
+# CONFIG_BLK_DEV_SR_VENDOR is not set
+CONFIG_BLOCK_COMPAT=y
+# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set
+CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0
+# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set
+CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0
+# CONFIG_BOOTX_TEXT is not set
+CONFIG_BOUNCE=y
+# CONFIG_BSD_PROCESS_ACCT is not set
+CONFIG_CBE_CPUFREQ=y
+# CONFIG_CBE_CPUFREQ_PMI_ENABLE is not set
+CONFIG_CBE_CPUFREQ_SPU_GOVERNOR=y
+CONFIG_CBE_RAS=y
+CONFIG_CBE_THERM=y
+# CONFIG_CGROUP_SCHED is not set
+CONFIG_CMDLINE_BOOL=y
+# CONFIG_CNIC is not set
+# CONFIG_CODE_PATCHING_SELFTEST is not set
+CONFIG_COMPAT=y
+CONFIG_COMPAT_BINFMT_ELF=y
+CONFIG_COMPAT_BRK=y
+CONFIG_CONSOLE_TRANSLATIONS=y
+CONFIG_CONSTRUCTORS=y
+CONFIG_CPU_FREQ=y
+# CONFIG_CPU_FREQ_DEBUG is not set
+# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
+# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
+CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
+# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
+# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
+# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
+# CONFIG_CPU_FREQ_GOV_ONDEMAND is not set
+CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
+# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
+# CONFIG_CPU_FREQ_GOV_USERSPACE is not set
+CONFIG_CPU_FREQ_STAT=y
+# CONFIG_CPU_FREQ_STAT_DETAILS is not set
+CONFIG_CPU_FREQ_TABLE=y
+# CONFIG_CRASH_DUMP is not set
+CONFIG_CRC16=y
+CONFIG_CRC_CCITT=m
+# CONFIG_CRYPTO is not set
+# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
+CONFIG_DEBUG_BUGVERBOSE=y
+# CONFIG_DEBUG_DEVRES is not set
+# CONFIG_DEBUG_DRIVER is not set
+# CONFIG_DEBUG_FS is not set
+CONFIG_DEBUG_INFO=y
+CONFIG_DEBUG_KERNEL=y
+# CONFIG_DEBUG_KOBJECT is not set
+# CONFIG_DEBUG_LIST is not set
+# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
+# CONFIG_DEBUG_LOCK_ALLOC is not set
+# CONFIG_DEBUG_MUTEXES is not set
+# CONFIG_DEBUG_NOTIFIERS is not set
+# CONFIG_DEBUG_OBJECTS is not set
+# CONFIG_DEBUG_PAGEALLOC is not set
+# CONFIG_DEBUG_RT_MUTEXES is not set
+# CONFIG_DEBUG_SG is not set
+# CONFIG_DEBUG_SHIRQ is not set
+# CONFIG_DEBUG_SPINLOCK is not set
+# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
+# CONFIG_DEBUG_STACKOVERFLOW is not set
+# CONFIG_DEBUG_STACK_USAGE is not set
+# CONFIG_DEBUG_VM is not set
+# CONFIG_DEBUG_WRITECOUNT is not set
+CONFIG_DECOMPRESS_LZMA=y
+CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
+# CONFIG_DEFAULT_UIMAGE is not set
+CONFIG_DETECT_HUNG_TASK=y
+CONFIG_DETECT_SOFTLOCKUP=y
+CONFIG_DEVKMEM=y
+CONFIG_DEVPORT=y
+CONFIG_DNOTIFY=y
+CONFIG_DTC=y
+CONFIG_DUMMY_CONSOLE=y
+CONFIG_EARLY_PRINTK=y
+# CONFIG_EDAC is not set
+# CONFIG_EEH is not set
+CONFIG_ELF_CORE=y
+# CONFIG_ENABLE_WARN_DEPRECATED is not set
+CONFIG_EXT2_FS=y
+CONFIG_EXT3_FS=y
+# CONFIG_EXT4DEV_COMPAT is not set
+CONFIG_EXT4_FS=y
+# CONFIG_EXT4_FS_XATTR is not set
+CONFIG_FAIR_GROUP_SCHED=y
+CONFIG_FAT_FS=y
+# CONFIG_FAULT_INJECTION is not set
+CONFIG_FB=y
+# CONFIG_FB_3DFX is not set
+# CONFIG_FB_ARK is not set
+# CONFIG_FB_ASILIANT is not set
+# CONFIG_FB_ATY is not set
+# CONFIG_FB_ATY128 is not set
+# CONFIG_FB_BACKLIGHT is not set
+# CONFIG_FB_BOOT_VESA_SUPPORT is not set
+# CONFIG_FB_BROADSHEET is not set
+# CONFIG_FB_CARMINE is not set
+# CONFIG_FB_CFB_COPYAREA is not set
+# CONFIG_FB_CFB_FILLRECT is not set
+# CONFIG_FB_CFB_IMAGEBLIT is not set
+# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
+# CONFIG_FB_CIRRUS is not set
+# CONFIG_FB_CYBER2000 is not set
+# CONFIG_FB_DDC is not set
+# CONFIG_FB_FOREIGN_ENDIAN is not set
+# CONFIG_FB_IMSTT is not set
+# CONFIG_FB_KYRO is not set
+# CONFIG_FB_MACMODES is not set
+# CONFIG_FB_MATROX is not set
+# CONFIG_FB_MB862XX is not set
+# CONFIG_FB_METRONOME 

Re: [OpenWrt-Devel] [PATCH 1/2] pxcab: build fix (resend)

2009-08-27 Thread Geoff Levand
On 08/26/2009 11:22 PM, Akinobu Mita wrote:
 0001-powerpc-mpic-Fix-mapping-of-DCR-based-MPIC-variants.patch was
 merged in 2.6.30.4
 
 Signed-off-by: Akinobu Mita akinobu.m...@gmail.com
 ---
  ...ic-Fix-mapping-of-DCR-based-MPIC-variants.patch |  107 
 
  1 files changed, 0 insertions(+), 107 deletions(-)

I committed this as revision 17428.

-Geoff

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel