LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] powerpc-enable-preemption-before-cpu_die
From: Darren Hart @ 2010-08-05  4:28 UTC (permalink / raw)
  To: linux-kernel; +Cc: dvhltc, brking, linuxppc-dev, will_schmidt, tglx
In-Reply-To: <1280982515-18231-1-git-send-email-dvhltc@us.ibm.com>

From: Signed-off-by: Darren Hart <dvhltc@us.ibm.com>

start_secondary() is called shortly after _start and also via

cpu_idle()->cpu_die()->pseries_mach_cpu_die()

start_secondary() expects a preempt_count() of 0. pseries_mach_cpu_die() is
called via the cpu_idle() routine with preemption disabled, resulting in the
following repeating message during rapid cpu offline/online tests
with CONFIG_PREEMPT=y:

BUG: scheduling while atomic: swapper/0/0x00000002
Modules linked in: autofs4 binfmt_misc dm_mirror dm_region_hash dm_log [last unloaded: scsi_wait_scan]
Call Trace:
[c00000010e7079c0] [c0000000000133ec] .show_stack+0xd8/0x218 (unreliable)
[c00000010e707aa0] [c0000000006a47f0] .dump_stack+0x28/0x3c
[c00000010e707b20] [c00000000006e7a4] .__schedule_bug+0x7c/0x9c
[c00000010e707bb0] [c000000000699d9c] .schedule+0x104/0x800
[c00000010e707cd0] [c000000000015b24] .cpu_idle+0x1c4/0x1d8
[c00000010e707d70] [c0000000006aa1b4] .start_secondary+0x398/0x3d4
[c00000010e707e30] [c000000000008278] .start_secondary_resume+0x10/0x14

Move the cpu_die() call inside the existing preemption enabled block of
cpu_idle(). This is safe as the idle task is affined to a single CPU so the
debug_smp_processor_id() tests (from cpu_should_die()) won't trigger as we are
in a "migration disabled" region.

Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
Acked-by: Will Schmidt <will_schmidt@vnet.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Nathan Fontenot <nfont@austin.ibm.com>
Cc: Robert Jennings <rcj@linux.vnet.ibm.com>
Cc: Brian King <brking@linux.vnet.ibm.com>
---
 arch/powerpc/kernel/idle.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/idle.c b/arch/powerpc/kernel/idle.c
index 049dda6..39a2baa 100644
--- a/arch/powerpc/kernel/idle.c
+++ b/arch/powerpc/kernel/idle.c
@@ -94,9 +94,9 @@ void cpu_idle(void)
 		HMT_medium();
 		ppc64_runlatch_on();
 		tick_nohz_restart_sched_tick();
+		preempt_enable_no_resched();
 		if (cpu_should_die())
 			cpu_die();
-		preempt_enable_no_resched();
 		schedule();
 		preempt_disable();
 	}
-- 
1.7.0.4

^ permalink raw reply related

* [PATCH 0/4] powerpc: cpu offline/online fixes for CONFIG_PREEMPT
From: Darren Hart @ 2010-08-05  4:28 UTC (permalink / raw)
  To: linux-kernel; +Cc: dvhltc, brking, linuxppc-dev, will_schmidt, tglx

The following patch series addresses several issues detected during intense CPU
offline/online testing on the mainline kernel with CONFIG_PREEMPT=y. These
patches require the following patch from Brian King:

http://patchwork.ozlabs.org/patch/59645/

Tested against linux-2.6.git master with and without CONFIG_DEBUG_PREEMPT.

^ permalink raw reply

* Relocating bootwrapper causes kernel panic
From: Shawn Jin @ 2010-08-05  4:11 UTC (permalink / raw)
  To: ppcdev

Hi,

I'm trying to relocate the bootwrapper from the default address
(0x400000) to a higher address (e.g. 0x800000) in order to support a
larger than 4MB initramfs. However the kernel panic when trying to
access the device tree blob which was relocated accordingly to a
higher address. The kernel message from __log_buf is shown below.

The flat tree located at 0xbe4300 as the kerne message showed. Why
cannot the kernel access this area? No TLB set for this area?

<1>Unable to handle kernel paging request for data at address 0xc0be4308
<1>Faulting instruction address: 0xc01fdabc
<4>Oops: Kernel access of bad area, sig: 11 [#1]
<4>
<4>NIP: c01fdabc LR: c01fdc38 CTR: 00000000
<4>REGS: c0383ee0 TRAP: 0300   Not tainted  (2.6.33.5)
<4>MSR: 00001032 <ME,IR,DR>  CR: 28558922  XER: 00000504
<4>DAR: c0be4308, DSISR: c0000000
<4>TASK = c0375328[0] 'swapper' THREAD: c0382000
<4>GPR00: c01fdc38 c0383f90 c0375328 c01fd4c8 00000000 00000000
00be4300 00000010
<4>GPR08: c01dbd94 c0be4300 04000000 00000000 00000000 00000000
07fff000 00000001
<4>GPR16: 007fff0d 00800554 00000001 007fff00 07ff9d78 ffffffff
00000000 07d5d2a0
<4>GPR24: 00000891 00000000 c0390000 c01fd4c8 00000000 00be4300
00000000 00be4300
<4>NIP [c01fdabc] of_scan_flat_dt+0x20/0x174
<4>LR [c01fdc38] early_init_devtree+0x28/0x288
<4>Call Trace:
<4>[c0383fb0] [c01fdc38] early_init_devtree+0x28/0x288
<4>[c0383fd0] [c01fe9c0] machine_init+0x20/0x5c
<4>[c0383ff0] [c0002244] start_here+0x48/0xc4
<4>Instruction dump:
<4>7fe5fb78 4bfff899 90610008 4bfffeb4 9421ffe0 7c0802a6 bf410008 90010024
<4>7c7b1b78 7c9c2378 3f40c039 813a9070 <80090008> 7fe90214 38600000 3ba0ffff
<4>---[ end trace 31fd0ba7d8756001 ]---
<0>Kernel panic - not syncing: Attempted to kill the idle task!
<4>Call Trace:
<4>[c0383dd0] [c0006c90] show_stack+0x40/0x168 (unreliable)
<4>[c0383e10] [c001cbfc] panic+0x8c/0x178
<4>[c0383e60] [c00209b0] do_exit+0x5c4/0x5d0
<4>[c0383ea0] [c000bb08] kernel_bad_stack+0x0/0x4c
<4>[c0383ec0] [c000ede8] bad_page_fault+0x90/0xd8
<4>[c0383ea0] [c000bb08] kernel_bad_stack+0x0/0x4c
<4>[c0383ec0] [c000ede8] bad_page_fault+0x90/0xd8
<4>[c0383ed0] [c000e2b8] handle_page_fault+0x7c/0x80
<4>[c0383f90] [00000000] (null)
<4>[c0383fb0] [c01fdc38] early_init_devtree+0x28/0x288
<4>[c0383fd0] [c01fe9c0] machine_init+0x20/0x5c
<4>[c0383ff0] [c0002244] start_here+0x48/0xc4

The kernel message from uboot and the bootwrapper is shown below.
=> bootm 5000000
## Booting image at 05000000 ...
   Image Name:   Linux-2.6.33.5
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1757351 Bytes =  1.7 MB
   Load Address: 00800000
   Entry Point:  00800554
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
Memory <- <0x0 0x8000000> (128MB)
ENET0: local-mac-address <- 00:09:9b:01:58:64
CPU clock-frequency <- 0x7270e00 (120MHz)
CPU timebase-frequency <- 0x7270e0 (8MHz)
CPU bus-frequency <- 0x3938700 (60MHz)

zImage starting: loaded at 0x00800000 (sp: 0x07d1cbd0)
Allocating 0x3a15a4 bytes for kernel ...
gunzipping (0x00000000 <- 0x0080c000:0x00bd702c)...done 0x3886ec bytes

Linux/PowerPC load: root=/dev/ram
Finalizing device tree... flat tree at 0xbe4300

Thanks,
-Shawn.

^ permalink raw reply

* Re: [PATCH v2 5/7] powerpc/85xx: Add MChk handler for SRIO port
From: Michael Neuling @ 2010-08-05  3:34 UTC (permalink / raw)
  To: Bounine, Alexandre
  Cc: linux-kernel, Alexandre Bounine, thomas.moll, linuxppc-dev,
	Timur Tabi
In-Reply-To: <0CE8B6BE3C4AD74AB97D9D29BD24E552011430BC@CORPEXCH1.na.ads.idt.com>



In message <0CE8B6BE3C4AD74AB97D9D29BD24E552011430BC@CORPEXCH1.na.ads.idt.com> you wrote:
> Yang Li pointed to these patches in his post from July 23, 2010.
> It would be nice to have these patches in mainline code.=20

This is still broken in Kumar's latest tree.  Do you guys wanna repost
them so Kumar can pick them up easily?

Mikey

> 
> > -----Original Message-----
> > From: timur.tabi@gmail.com [mailto:timur.tabi@gmail.com] On Behalf Of
> Timur Tabi
> > Sent: Tuesday, August 03, 2010 9:02 AM
> > To: Bounine, Alexandre
> > Cc: Michael Neuling; Alexandre Bounine; linuxppc-dev@lists.ozlabs.org;
> linux-kernel@vger.kernel.org;
> > thomas.moll@sysgo.com; Kumar Gala
> > Subject: Re: [PATCH v2 5/7] powerpc/85xx: Add MChk handler for SRIO
> port
> >=20
> > On Tue, Aug 3, 2010 at 7:17 AM, Bounine, Alexandre
> > <Alexandre.Bounine@idt.com> wrote:
> > > This happened after change to book-e definitions.
> > > There are patches that address this issue.
> >=20
> > And those patches should have been applied before 2.6.35 was released.
> >  Someone dropped the ball.  2.6.35 is broken for a number of PowerPC
> > boards:
> >=20
> > $ make mpc85xx_defconfig
> > ....
> > $ make
> > ....
> >   CC      arch/powerpc/sysdev/fsl_rio.o
> > arch/powerpc/sysdev/fsl_rio.c: In function 'fsl_rio_mcheck_exception':
> > arch/powerpc/sysdev/fsl_rio.c:248: error: 'MCSR_MASK' undeclared
> > (first use in this function)
> > arch/powerpc/sysdev/fsl_rio.c:248: error: (Each undeclared identifier
> > is reported only once
> > arch/powerpc/sysdev/fsl_rio.c:248: error: for each function it appears
> in.)
> > make[1]: *** [arch/powerpc/sysdev/fsl_rio.o] Error 1
> >=20
> > --
> > Timur Tabi
> > Linux kernel developer at Freescale
> 

^ permalink raw reply

* kernel panic on MPC8323 custom board
From: Youngjin Na @ 2010-08-05  2:57 UTC (permalink / raw)
  To: linux-mmc, linuxppc-dev, akpm

[-- Attachment #1: Type: text/plain, Size: 5519 bytes --]

Hi.. all

I'm porting the linux 2.6.27 kernel to the custom board with Freescale8270.
The base is the pq2fads board. The board is noproblem with linux-2.6.17.1
and linux-2.6.25.

When booting this machine, a crash takes place such as :



---------------------------------------------------------------------

Using FCC1 ETHERNET device
TFTP from server 192.168.0.12; our IP address is 192.168.0.161
Filename 'cuImage.pq2fads'.
Load address: 0x100000
Loading: #########################################################
done
Bytes transferred = 822097 (c8b51 hex)
[codec]$ bootm 100000
## Booting kernel from Legacy Image at 00100000 ...
   Image Name:   Linux-2.6.27
   Created:      2010-08-05   1:35:22 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    822033 Bytes = 802.8 kB
   Load Address: 00400000
   Entry Point:  00400ba0
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
   Booting using board info...
Memory <- <0x0 0x10000000> (256MB)
CPU clock-frequency <- 0x1ad27480 (450MHz)
CPU timebase-frequency <- 0x17d7840 (25MHz)
CPU bus-frequency <- 0x5f5e100 (100MHz)

zImage starting: loaded at 0x00400000 (sp: 0x0ff65ac8)
Allocating 0x1e4924 bytes for kernel ...
gunzipping (0x00000000 <- 0x0040d000:0x005da9f0)...done 0x1b3224 bytes

Linux/PowerPC load: root=/dev/nfs rw
nfsroot=192.168.0.12:/project/target/target_nadatel
ip=192.168.0.161:192.168.0.12:192.168.0.1::h264codec:eth0:off
Finalizing device tree... flat tree at 0x40c038
id mach(): done
MMU:enter
MMU:hw init
MMU:mapin
MMU:setio
MMU:exit
[    0.000000] Using Freescale PQ2FADS machine description
[    0.000000] Linux version 2.6.27 (vyna@aLinux) (gcc version 3.3.1
(MontaVista 3.3.1-3.0.10.0300532 2003-12-24)) #55 Thu Aug 5 10:35:18 KST
2010
[    0.000000] console [udbg0] enabled
setup_arch: bootmem
pq2fads_setup_arch()
pq2fads_setup_arch(), finish
arch: exit
[    0.000000] Top of RAM: 0x10000000, Total RAM: 0x10000000
[    0.000000] Memory hole size: 0MB
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000000 -> 0x00010000
[    0.000000]   Normal   0x00010000 -> 0x00010000
[    0.000000]   HighMem  0x00010000 -> 0x00010000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00010000
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat c01adb3c, node_mem_map
c01e7000
[    0.000000]   DMA zone: 65024 pages, LIFO batch:15
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total
pages: 65024
[    0.000000] Kernel command line: root=/dev/nfs rw
nfsroot=192.168.0.12:/project/target/target_nadatel
ip=192.168.0.161:192.168.0.12:192.168.0.1::h264codec:eth0:off
[    0.000000] PID hash table entries: 1024 (order: 10, 4096 bytes)
[    0.000000] time_init: decrementer frequency = 25.000000 MHz
[    0.000000] time_init: processor frequency   = 450.000000 MHz
[    0.000000] clocksource: timebase mult[a000000] shift[22] registered
[    0.038127] Dentry cache hash table entries: 32768 (order: 5, 131072
bytes)
[    0.060153] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.134314] High memory: 0k
[    0.141880] Memory: 257792k/262144k available (1648k kernel code, 4204k
reserved, 76k data, 194k bss, 124k init)
[    0.172857] Calibrating delay loop... 49.79 BogoMIPS (lpj=24896)
[    0.207709] Mount-cache hash table entries: 512
[    0.234059] Unable to handle kernel paging request for data at address
0x00000032
[    0.255641] Faulting instruction address: 0xc0183c50
[    0.270489] Oops: Kernel access of bad area, sig: 11 [#1]
[    0.286545] Freescale PQ2FADS
[    0.295392] Modules linked in:
[    0.304504] NIP: c0183c50 LR: c0183ef4 CTR: 00000000
[    0.319345] REGS: cf821db0 TRAP: 0300   Not tainted  (2.6.27)
[    0.336514] MSR: 00009032 <EE,ME,IR,DR>  CR: 82004024  XER: 00000000
[    0.355515] DAR: 00000032, DSISR: 20000000
[    0.367750] TASK = cf81f8a0[1] 'swapper' THREAD: cf820000
[    0.383362] GPR00: c0183ef4 cf821e60 cf81f8a0 00000000 c015e5e0 cf821ec0
00000024 0000013f
[    0.408348] GPR08: 3860ffda c01a0000 00000002 8124000c 24004024 ffffffff
0fffe000 11fc6000
[    0.433334] GPR16: fffffffb fcfdffff fffffeff ffffffff 00000000 0fff8c94
00000002 0ff65e80
[    0.458319] GPR24: 00000000 00000000 00000000 c01b0000 cf821ec0 c01b0000
c01b0000 cf821eb8
[    0.483863] NIP [c0183c50] find_section32+0x14/0xb8
[    0.498409] LR [c0183ef4] vdso_do_find_sections+0x28/0xc8
[    0.514537] Call Trace:
[    0.521839] [cf821e60] [c00f5ce8] kobject_uevent_env+0x2f4/0x318
(unreliable)
[    0.543176] [cf821e90] [c0183ef4] vdso_do_find_sections+0x28/0xc8
[    0.561394] [cf821eb0] [c01841b4] vdso_setup+0x2c/0xb8
[    0.576749] [cf821f10] [c0184308] vdso_init+0x64/0x1dc
[    0.592113] [cf821f30] [c0003904] do_one_initcall+0x54/0x184
[    0.609022] [cf821fb0] [c017d848] do_initcalls+0x34/0x58
[    0.624897] [cf821fd0] [c017d92c] kernel_init+0x40/0x94
[    0.640528] [cf821ff0] [c000f9f8] kernel_thread+0x44/0x60
[    0.656643] Instruction dump:
[    0.665493] 41a2000c 7c0803a6 4e800021 80010014 38210010 7c0803a6
4e800020 9421ffd0
[    0.688656] 7c0802a6 bf010010 90010034 7cbc2b78 <a1230032> 3b400001
7c7f1b78 81630020
[    0.712438] ---[ end trace 31fd0ba7d8756001 ]---
[    0.726196] Kernel panic - not syncing: Attempted to kill init!
[    0.743876] Rebooting in 180 seconds..
-------------------------------


I don't know what is could someone help me?

Thanks
Best Regards


Victor

[-- Attachment #2: Type: text/html, Size: 6920 bytes --]

^ permalink raw reply

* Re: [Patch v2] kexec: increase max of kexec segments and use dynamic allocation
From: Cong Wang @ 2010-08-05  2:32 UTC (permalink / raw)
  To: Milton Miller
  Cc: Neil Horman, Neil Horman, huang ying, linux-kernel, kexec,
	Eric W. Biederman, linuxppc-dev
In-Reply-To: <4C5122D1.8080203@redhat.com>

(Ping Milton...)

On 07/29/10 14:42, Cong Wang wrote:
> On 07/27/10 18:00, Milton Miller wrote:
>> [ Added kexec at lists.infradead.org and linuxppc-dev@lists.ozlabs.org ]
>>
>>>
>>> Currently KEXEC_SEGMENT_MAX is only 16 which is too small for machine
>>> with
>>> many memory ranges. When hibernate on a machine with disjoint memory
>>> we do
>>> need one segment for each memory region. Increase this hard limit to 16K
>>> which is reasonably large.
>>>
>>> And change ->segment from a static array to a dynamically allocated
>>> memory.
>>>
>>> Cc: Neil Horman<nhorman@redhat.com>
>>> Cc: huang ying<huang.ying.caritas@gmail.com>
>>> Cc: Eric W. Biederman<ebiederm@xmission.com>
>>> Signed-off-by: WANG Cong<amwang@redhat.com>
>>>
>>> ---
>>> diff --git a/arch/powerpc/kernel/machine_kexec_64.c
>>> b/arch/powerpc/kernel/machine_kexec_64.c
>>> index ed31a29..f115585 100644
>>> --- a/arch/powerpc/kernel/machine_kexec_64.c
>>> +++ b/arch/powerpc/kernel/machine_kexec_64.c
>>> @@ -131,10 +131,7 @@ static void copy_segments(unsigned long ind)
>>> void kexec_copy_flush(struct kimage *image)
>>> {
>>> long i, nr_segments = image->nr_segments;
>>> - struct kexec_segment ranges[KEXEC_SEGMENT_MAX];
>>> -
>>> - /* save the ranges on the stack to efficiently flush the icache */
>>> - memcpy(ranges, image->segment, sizeof(ranges));
>>> + struct kexec_segment range;
>>
>> I'm glad you found our copy on the stack and removed the stack overflow
>> that comes with this bump, but ...
>>
>>>
>>> /*
>>> * After this call we may not use anything allocated in dynamic
>>> @@ -148,9 +145,11 @@ void kexec_copy_flush(struct kimage *image)
>>> * we need to clear the icache for all dest pages sometime,
>>> * including ones that were in place on the original copy
>>> */
>>> - for (i = 0; i< nr_segments; i++)
>>> - flush_icache_range((unsigned long)__va(ranges[i].mem),
>>> - (unsigned long)__va(ranges[i].mem + ranges[i].memsz));
>>> + for (i = 0; i< nr_segments; i++) {
>>> + memcpy(&range,&image->segment[i], sizeof(range));
>>> + flush_icache_range((unsigned long)__va(range.mem),
>>> + (unsigned long)__va(range.mem + range.memsz));
>>> + }
>>> }
>>
>> This is executed after the copy, so as it says,
>> "we may not use anything allocated in dynamic memory".
>>
>> We could allocate control pages to copy the segment list into.
>> Actually ppc64 doesn't use the existing control page, but that
>> is only 4kB today.
>>
>> We need the list to icache flush all the pages in all the segments.
>> The as the indirect list doesn't have pages that were allocated at
>> their destination.
>>
>> Or maybe the icache flush should be done in the generic code
>> like it does for crash load segments?
>>
>
> I don't get the point here, according to the comments,
> it is copied into stack because of efficiency.
>


-- 
The opposite of love is not hate, it's indifference.
  - Elie Wiesel

^ permalink raw reply

* RE: [PATCH 1/3 v2] sdhci: Add auto CMD12 support for eSDHC driver
From: Zang Roy-R61911 @ 2010-08-05  2:14 UTC (permalink / raw)
  To: Grant Likely; +Cc: linuxppc-dev, akpm, linux-mmc
In-Reply-To: <AANLkTinJKO3-iXOXuL7CMWCj5qMMHyMrtnadwPpqTeBu@mail.gmail.com>

=20

> -----Original Message-----
> From: glikely@secretlab.ca [mailto:glikely@secretlab.ca] On=20
> Behalf Of Grant Likely
> Sent: Thursday, August 05, 2010 9:03 AM
> To: Zang Roy-R61911
> Cc: linux-mmc@vger.kernel.org; linuxppc-dev@ozlabs.org;=20
> akpm@linux-foundation.org
> Subject: Re: [PATCH 1/3 v2] sdhci: Add auto CMD12 support for=20
> eSDHC driver
>=20
> On Mon, Aug 2, 2010 at 9:11 PM, Roy Zang=20
> <tie-fei.zang@freescale.com> wrote:
> > From: Jerry Huang <Chang-Ming.Huang@freescale.com>
> >
> > Add auto CMD12 command support for eSDHC driver.
> > This is needed by P4080 and P1022 for block read/write.
> > Manual asynchronous CMD12 abort operation causes protocol=20
> violations on
> > these silicons.
> >
> > Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
> > Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
> > ---
> > =A0drivers/mmc/host/sdhci-of-core.c | =A0 =A04 ++++
> > =A0drivers/mmc/host/sdhci.c =A0 =A0 =A0 =A0 | =A0 14 ++++++++++++--
> > =A0drivers/mmc/host/sdhci.h =A0 =A0 =A0 =A0 | =A0 =A02 ++
> > =A03 files changed, 18 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
> > index c6d1bd8..a92566e 100644
> > --- a/drivers/mmc/host/sdhci.c
> > +++ b/drivers/mmc/host/sdhci.c
> > @@ -817,8 +817,12 @@ static void=20
> sdhci_set_transfer_mode(struct sdhci_host *host,
> > =A0 =A0 =A0 =A0WARN_ON(!host->data);
> >
> > =A0 =A0 =A0 =A0mode =3D SDHCI_TRNS_BLK_CNT_EN;
> > - =A0 =A0 =A0 if (data->blocks > 1)
> > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 mode |=3D SDHCI_TRNS_MULTI;
> > + =A0 =A0 =A0 if (data->blocks > 1) {
> > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (host->quirks &=20
> SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12)
> > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 mode |=3D =
SDHCI_TRNS_MULTI |=20
> SDHCI_TRNS_ACMD12;
> > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 else
> > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 mode |=3D =
SDHCI_TRNS_MULTI;
>=20
> nit:
> +               mode |=3D SDHCI_TRNS_MULTI;
> +               if (host->quirks & SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12)
> +                       mode |=3D SDHCI_TRNS_ACMD12;
>=20
> Clearer, no?
why?
Roy

^ permalink raw reply

* Re: [PATCH] powerpc: Add vmcoreinfo symbols to allow makdumpfile to filter core files properly
From: Benjamin Herrenschmidt @ 2010-08-05  2:04 UTC (permalink / raw)
  To: Neil Horman; +Cc: linuxppc-dev, kexec, linux-kernel, paulus, vgoyal
In-Reply-To: <20100804144929.GA13970@hmsreliant.think-freely.org>

On Wed, 2010-08-04 at 10:49 -0400, Neil Horman wrote:
> Ping yet again. Ben, This needs review/acceptance from you or Paul
> Neil 

Isn't it already in powerpc-next about to be pulled by Linus ?

In general, I recommend you check the status of your patches on
patchwork. I'm nagging Jeremy to add a feature so it emails the
submitter when the patch status changes :-)

Cheers,
Ben.

^ permalink raw reply

* [git pull] Please pull powerpc.git next branch
From: Benjamin Herrenschmidt @ 2010-08-05  1:46 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linuxppc-dev list, Andrew Morton, Linux Kernel list

Hi Linus !

Here's the batch of powerpc stuff for this merge window. Not major highlight,
some work on 64-bit Book3E (embedded) by myself, and the powerpc part of the
HW breakpoint stuff by Mohan Kumar and Paulus, and the usual batch of embedded
bits and pieces.

This does -not- include my memblock rework, which is in a separate branch
that I'm still sorting out due to clashes with ARM and some typos breaking
sh and microblaze. I'm not sure whether I'll send that this merge window
or just stick it into -next as soon as it's over. Peter Anvin also has some
interesting ideas to rewrite the memblock core into something more suitable
for handling allocations and take over the world :-)

Cheers,
Ben.

The following changes since commit 3a09b1be53d23df780a0cd0e4087a05e2ca4a00c:
  Linus Torvalds (1):
        Merge git://git.kernel.org/.../steve/gfs2-2.6-nmw

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git next

Adrian Alonso (1):
      of/xilinxfb: update tft compatible versions

Albrecht Dreß (2):
      powerpc/5200: improve uart baud rate calculation (reach high baud rates, better accuracy)
      powerpc/5200/i2c: improve i2c bus error recovery

Anatolij Gustschin (8):
      powerpc/512x: Group mpc512x board's selection menu
      powerpc/5121: add initial support for PDM360NG board
      powerpc/512x: add clock structure for Video-IN (VIU) unit
      powerpc/5121: fsl-diu-fb: fix issue with re-enabling DIU area descriptor
      powerpc/5121: move fsl-diu-fb.h to include/linux
      powerpc/5121: shared DIU framebuffer support
      powerpc/5121: doc/dts-bindings: update doc of FSL DIU bindings
      powerpc/fsl-diu-fb: Support setting display mode using EDID

Anton Blanchard (2):
      powerpc: Optimise per cpu accesses on 64bit
      powerpc/numa: Use form 1 affinity to setup node distance

Anton Vorontsov (4):
      powerpc: Fix GENERIC_ISA_DMA dependency
      powerpc/85xx: Fix SWIOTLB initalization for MPC85xxMDS boards
      powerpc/85xx: Fix booting for P1021MDS boards
      powerpc/85xx: Cleanup QE initialization for MPC85xxMDS boards

Becky Bruce (1):
      powerpc/fsl-booke: Fix comments in mmu code that mention BATS

Benjamin Herrenschmidt (17):
      Merge commit 'paulus-perf/master' into next
      powerpc/book3e: mtmsr should not be mtmsrd on book3e 64-bit
      powerpc/book3e: Hack to get gdb moving along on Book3E 64-bit
      powerpc/book3e: Move doorbell_exception from traps.c to dbell.c
      powerpc/book3e: More doorbell cleanups. Sample the PIR register
      powerpc/book3e: Don't re-trigger decrementer on lazy irq restore
      powerpc/book3e: Hookup doorbells exceptions on 64-bit Book3E
      powerpc/book3e: Add generic 64-bit idle powersave support
      powerpc/book3e: Fix single step when using HW page tables
      powerpc/book3e: Add TLB dump in xmon for Book3E
      powerpc/book3e: Adjust the page sizes list based on MMU config
      powerpc/oprofile: Don't build server oprofile drivers on 64-bit BookE
      Merge commit 'jwb/next' into next
      powerpc/pseries: Increase cpu die timeout
      powerpc/powermac: Add PowerMac10,2 machine descriptor
      Merge commit 'gcl/next' into next
      Merge commit 'kumar/next' into next

Bradley Hughes (2):
      powerpc/85xx: Change deprecated binding for 85xx-based boards
      powerpc/85xx: Adding DTS for the STx GP3-SSA MPC8555 board

Brian King (3):
      powerpc/pseries: Migration code reorganization / hibernation prep
      powerpc/pseries: Partition hibernation support
      powerpc: Remove redundant xics badness warning

Chris Metcalf (1):
      hvc_console: use "*_console" nomenclature to avoid modpost warning.

Christian Dietrich (1):
      Remove REDWOOD_[456] config options and conditional code

Christoph Egger (1):
      powerpc: Removing dead CONFIG_SMP_750

David Gibson (1):
      powerpc/book3e: Use set_irq_regs() in the msgsnd/msgrcv IPI path

Denis Kirjanov (1):
      powerpc/iseries: Fix constant warning

Dmitry Eremin-Solenikov (2):
      powerpc/tqm85xx: update PCI interrupt-map attribute
      powerpc/tqm85xx: add a quirk for ti1520 PCMCIA bridge

Heiko Schocher (1):
      powerpc/8xx: Add support for the MPC8xx based boards from TQC

Ilya Yanok (2):
      powerpc/fsl_pci: add quirk for mpc8308 pcie bridge
      powerpc/mpc8308rdb: support for MPC8308RDB board from Freescale

Joe Perches (1):
      powerpc: Remove unnecessary casts of private_data

Julia Lawall (2):
      powerpc/iseries: Use kstrdup
      powerpc/pseries: Use kstrdup

K.Prasad (5):
      hw_breakpoints: Allow arch-specific cleanup before breakpoint unregistration
      powerpc, hw_breakpoints: Implement hw_breakpoints for 64-bit server processors
      powerpc, hw_breakpoint: Handle concurrent alignment interrupts
      powerpc, hw_breakpoint: Enable hw-breakpoints while handling intervening signals
      powerpc, hw_breakpoint: Discard extraneous interrupt due to accesses outside symbol length

Kulikov Vasiliy (1):
      powerpc/pseries/eeh: Use for_each_pci_dev()

Lee Nipper (1):
      powerpc/40x: Distinguish AMCC PowerPC 405EX and 405EXr correctly

Mark Nelson (2):
      powerpc/pseries: Rename RAS_VECTOR_OFFSET to RTAS_VECTOR_EXTERNAL_INTERRUPT and move to rtas.h
      powerpc/pseries: Add WARN_ON() to request_event_sources_irqs() on irq allocation/request failure

Martyn Welch (1):
      powerpc: Add i8042 keyboard and mouse irq parsing

Matt Evans (3):
      powerpc/kexec: Switch to a static PACA on the way out
      powerpc/kexec: Add to and tidy debug/comments in machine_kexec64.c
      powerpc/kexec: Fix orphaned offline CPUs across kexec

Matthew McClintock (3):
      powerpc/mpic: Add ability to reset a core via MPIC
      powerpc/crashdump: Fix issues with kexec and 36bit physical addr
      powerpc/85xx: kexec for SMP 85xx BookE systems

Michael Ellerman (1):
      powerpc/book3e: Resend doorbell exceptions to ourself

Michael Neuling (1):
      powerpc: Print decimal values in prom_init.c

Neil Horman (1):
      powerpc: Add vmcoreinfo symbols to allow makdumpfile to filter core files properly

Paul E. McKenney (1):
      powerpc: Remove all rcu head initializations

Paul Mackerras (6):
      powerpc: Emulate most Book I instructions in emulate_step()
      powerpc, hw_breakpoint: Fix off-by-one in checking access address
      powerpc, hw_breakpoint: Cooperate better with other single-steppers
      powerpc, hw_breakpoint: Tell generic code we have no instruction breakpoints
      powerpc: Rework VDSO gettimeofday to prevent time going backwards
      powerpc: Clean up obsolete code relating to decrementer and timebase

Robert Jennings (1):
      powerpc: ONLINE to OFFLINE CPU state transition during removal

Stefan Roese (1):
      powerpc/44x: Fix UART2/3 interrupt assignment in PPC460EX/GT dts files

Tiejun Chen (1):
      powerpc/smp: remove the incorrect decrementer initial codes for AP

Timur Tabi (1):
      powerpc/85xx: Introduce support for the Freescale P1022DS reference board

 Documentation/powerpc/dts-bindings/fsl/diu.txt |   20 +-
 Documentation/powerpc/dts-bindings/fsl/i2c.txt |    2 +
 arch/powerpc/Kconfig                           |   15 +-
 arch/powerpc/boot/dts/canyonlands.dts          |    4 +-
 arch/powerpc/boot/dts/glacier.dts              |    4 +-
 arch/powerpc/boot/dts/mpc8308rdb.dts           |  303 +++++
 arch/powerpc/boot/dts/mpc8540ads.dts           |    4 +-
 arch/powerpc/boot/dts/mpc8541cds.dts           |    4 +-
 arch/powerpc/boot/dts/mpc8544ds.dts            |    4 +-
 arch/powerpc/boot/dts/mpc8548cds.dts           |    4 +-
 arch/powerpc/boot/dts/mpc8555cds.dts           |    4 +-
 arch/powerpc/boot/dts/mpc8560ads.dts           |    4 +-
 arch/powerpc/boot/dts/mpc8568mds.dts           |    4 +-
 arch/powerpc/boot/dts/p1021mds.dts             |    1 +
 arch/powerpc/boot/dts/p1022ds.dts              |  633 ++++++++++
 arch/powerpc/boot/dts/pdm360ng.dts             |  410 +++++++
 arch/powerpc/boot/dts/stxssa8555.dts           |  380 ++++++
 arch/powerpc/boot/dts/tqm8540.dts              |    9 +-
 arch/powerpc/boot/dts/tqm8541.dts              |    9 +-
 arch/powerpc/boot/dts/tqm8548-bigflash.dts     |    9 +-
 arch/powerpc/boot/dts/tqm8548.dts              |    9 +-
 arch/powerpc/boot/dts/tqm8555.dts              |    9 +-
 arch/powerpc/boot/dts/tqm8560.dts              |    9 +-
 arch/powerpc/boot/dts/tqm8xx.dts               |  172 +++
 arch/powerpc/configs/mpc85xx_defconfig         |   34 +-
 arch/powerpc/configs/mpc85xx_smp_defconfig     |   34 +-
 arch/powerpc/configs/tqm8xx_defconfig          |  934 +++++++++++++++
 arch/powerpc/include/asm/abs_addr.h            |    2 +-
 arch/powerpc/include/asm/asm-compat.h          |    2 +
 arch/powerpc/include/asm/cputable.h            |    4 +
 arch/powerpc/include/asm/dbell.h               |    8 +-
 arch/powerpc/include/asm/hvcall.h              |    1 +
 arch/powerpc/include/asm/hw_breakpoint.h       |   74 ++
 arch/powerpc/include/asm/machdep.h             |    5 +-
 arch/powerpc/include/asm/mmu-book3e.h          |    4 +
 arch/powerpc/include/asm/mpc5121.h             |   32 +
 arch/powerpc/include/asm/paca.h                |    2 +-
 arch/powerpc/include/asm/percpu.h              |    3 -
 arch/powerpc/include/asm/ppc-opcode.h          |    7 +
 arch/powerpc/include/asm/processor.h           |    8 +
 arch/powerpc/include/asm/reg.h                 |    2 +-
 arch/powerpc/include/asm/reg_booke.h           |    5 +-
 arch/powerpc/include/asm/rtas.h                |   13 +
 arch/powerpc/include/asm/time.h                |    7 -
 arch/powerpc/include/asm/topology.h            |    3 +
 arch/powerpc/include/asm/vdso_datapage.h       |    2 +
 arch/powerpc/kernel/Makefile                   |    4 +-
 arch/powerpc/kernel/asm-offsets.c              |    2 +-
 arch/powerpc/kernel/cputable.c                 |  118 ++-
 arch/powerpc/kernel/crash_dump.c               |    4 +-
 arch/powerpc/kernel/dbell.c                    |   78 ++-
 arch/powerpc/kernel/exceptions-64e.S           |   50 +-
 arch/powerpc/kernel/exceptions-64s.S           |    1 +
 arch/powerpc/kernel/hw_breakpoint.c            |  364 ++++++
 arch/powerpc/kernel/idle_book3e.S              |   86 ++
 arch/powerpc/kernel/irq.c                      |   16 +
 arch/powerpc/kernel/machine_kexec.c            |   22 +-
 arch/powerpc/kernel/machine_kexec_64.c         |   78 ++-
 arch/powerpc/kernel/paca.c                     |   10 +
 arch/powerpc/kernel/process.c                  |   36 +
 arch/powerpc/kernel/prom_init.c                |   44 +-
 arch/powerpc/kernel/ptrace.c                   |   64 +
 arch/powerpc/kernel/rtas.c                     |  105 ++-
 arch/powerpc/kernel/setup-common.c             |   13 +
 arch/powerpc/kernel/setup_64.c                 |   19 +-
 arch/powerpc/kernel/signal.c                   |    3 +
 arch/powerpc/kernel/smp.c                      |   10 -
 arch/powerpc/kernel/time.c                     |  197 +---
 arch/powerpc/kernel/traps.c                    |   29 +-
 arch/powerpc/kernel/vdso32/gettimeofday.S      |  184 +---
 arch/powerpc/kernel/vdso64/gettimeofday.S      |   88 +--
 arch/powerpc/kvm/timing.c                      |    2 +-
 arch/powerpc/lib/Makefile                      |    5 +-
 arch/powerpc/lib/ldstfp.S                      |  375 ++++++
 arch/powerpc/lib/sstep.c                       | 1514 +++++++++++++++++++++++-
 arch/powerpc/mm/fsl_booke_mmu.c                |    7 +-
 arch/powerpc/mm/numa.c                         |  122 ++-
 arch/powerpc/mm/pgtable.c                      |    1 -
 arch/powerpc/mm/tlb_hash32.c                   |   15 -
 arch/powerpc/mm/tlb_nohash.c                   |  129 ++-
 arch/powerpc/oprofile/Makefile                 |    2 +-
 arch/powerpc/oprofile/common.c                 |    2 +-
 arch/powerpc/platforms/40x/Kconfig             |   16 -
 arch/powerpc/platforms/512x/Kconfig            |   20 +-
 arch/powerpc/platforms/512x/Makefile           |    1 +
 arch/powerpc/platforms/512x/clock.c            |   18 +
 arch/powerpc/platforms/512x/mpc5121_ads.c      |    2 +
 arch/powerpc/platforms/512x/mpc5121_generic.c  |    2 +
 arch/powerpc/platforms/512x/mpc512x.h          |    2 +
 arch/powerpc/platforms/512x/mpc512x_shared.c   |  284 +++++
 arch/powerpc/platforms/512x/pdm360ng.c         |  129 ++
 arch/powerpc/platforms/52xx/lite5200_pm.c      |    3 -
 arch/powerpc/platforms/52xx/mpc52xx_pm.c       |    3 -
 arch/powerpc/platforms/83xx/Kconfig            |    8 +
 arch/powerpc/platforms/83xx/Makefile           |    1 +
 arch/powerpc/platforms/83xx/mpc830x_rdb.c      |   94 ++
 arch/powerpc/platforms/85xx/Kconfig            |    8 +
 arch/powerpc/platforms/85xx/Makefile           |    1 +
 arch/powerpc/platforms/85xx/mpc85xx_mds.c      |  279 +++--
 arch/powerpc/platforms/85xx/p1022_ds.c         |  148 +++
 arch/powerpc/platforms/85xx/smp.c              |   67 +-
 arch/powerpc/platforms/85xx/tqm85xx.c          |   21 +
 arch/powerpc/platforms/8xx/Kconfig             |    6 +
 arch/powerpc/platforms/8xx/Makefile            |    1 +
 arch/powerpc/platforms/8xx/tqm8xx_setup.c      |  156 +++
 arch/powerpc/platforms/iseries/vio.c           |    3 +-
 arch/powerpc/platforms/powermac/cpufreq_32.c   |    8 +-
 arch/powerpc/platforms/powermac/feature.c      |    6 +-
 arch/powerpc/platforms/pseries/Makefile        |    4 +
 arch/powerpc/platforms/pseries/dlpar.c         |    1 +
 arch/powerpc/platforms/pseries/eeh_cache.c     |    3 +-
 arch/powerpc/platforms/pseries/event_sources.c |   23 +-
 arch/powerpc/platforms/pseries/hotplug-cpu.c   |    7 +-
 arch/powerpc/platforms/pseries/ras.c           |    5 +-
 arch/powerpc/platforms/pseries/reconfig.c      |    4 +-
 arch/powerpc/platforms/pseries/suspend.c       |  214 ++++
 arch/powerpc/platforms/pseries/xics.c          |    2 -
 arch/powerpc/sysdev/fsl_pci.c                  |    1 +
 arch/powerpc/sysdev/fsl_soc.h                  |    1 +
 arch/powerpc/sysdev/mpic.c                     |   18 +
 arch/powerpc/sysdev/mpic.h                     |    1 +
 arch/powerpc/xmon/xmon.c                       |  152 +++
 drivers/char/hvc_console.c                     |   12 +-
 drivers/char/hvsi.c                            |    4 +-
 drivers/i2c/busses/i2c-mpc.c                   |   69 +-
 drivers/input/serio/i8042-io.h                 |    5 +
 drivers/mtd/maps/Kconfig                       |    2 +-
 drivers/mtd/maps/redwood.c                     |   43 -
 drivers/net/Kconfig                            |    2 +-
 drivers/net/smc91x.h                           |   37 -
 drivers/serial/mpc52xx_uart.c                  |  145 ++-
 drivers/video/Kconfig                          |    1 +
 drivers/video/fsl-diu-fb.c                     |  137 ++-
 drivers/video/xilinxfb.c                       |    2 +
 {drivers/video => include/linux}/fsl-diu-fb.h  |    0
 include/linux/pci_ids.h                        |    1 +
 kernel/hw_breakpoint.c                         |   12 +
 137 files changed, 8141 insertions(+), 1065 deletions(-)
 create mode 100644 arch/powerpc/boot/dts/mpc8308rdb.dts
 create mode 100644 arch/powerpc/boot/dts/p1022ds.dts
 create mode 100644 arch/powerpc/boot/dts/pdm360ng.dts
 create mode 100644 arch/powerpc/boot/dts/stxssa8555.dts
 create mode 100644 arch/powerpc/boot/dts/tqm8xx.dts
 create mode 100644 arch/powerpc/configs/tqm8xx_defconfig
 create mode 100644 arch/powerpc/include/asm/hw_breakpoint.h
 create mode 100644 arch/powerpc/kernel/hw_breakpoint.c
 create mode 100644 arch/powerpc/kernel/idle_book3e.S
 create mode 100644 arch/powerpc/lib/ldstfp.S
 create mode 100644 arch/powerpc/platforms/512x/pdm360ng.c
 create mode 100644 arch/powerpc/platforms/83xx/mpc830x_rdb.c
 create mode 100644 arch/powerpc/platforms/85xx/p1022_ds.c
 create mode 100644 arch/powerpc/platforms/8xx/tqm8xx_setup.c
 create mode 100644 arch/powerpc/platforms/pseries/suspend.c
 rename {drivers/video => include/linux}/fsl-diu-fb.h (100%)

^ permalink raw reply

* Re: [PATCH 1/3 v2] sdhci: Add auto CMD12 support for eSDHC driver
From: Grant Likely @ 2010-08-05  1:02 UTC (permalink / raw)
  To: Roy Zang; +Cc: linuxppc-dev, akpm, linux-mmc
In-Reply-To: <1280805072-26112-1-git-send-email-tie-fei.zang@freescale.com>

On Mon, Aug 2, 2010 at 9:11 PM, Roy Zang <tie-fei.zang@freescale.com> wrote=
:
> From: Jerry Huang <Chang-Ming.Huang@freescale.com>
>
> Add auto CMD12 command support for eSDHC driver.
> This is needed by P4080 and P1022 for block read/write.
> Manual asynchronous CMD12 abort operation causes protocol violations on
> these silicons.
>
> Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
> Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
> ---
> =A0drivers/mmc/host/sdhci-of-core.c | =A0 =A04 ++++
> =A0drivers/mmc/host/sdhci.c =A0 =A0 =A0 =A0 | =A0 14 ++++++++++++--
> =A0drivers/mmc/host/sdhci.h =A0 =A0 =A0 =A0 | =A0 =A02 ++
> =A03 files changed, 18 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
> index c6d1bd8..a92566e 100644
> --- a/drivers/mmc/host/sdhci.c
> +++ b/drivers/mmc/host/sdhci.c
> @@ -817,8 +817,12 @@ static void sdhci_set_transfer_mode(struct sdhci_hos=
t *host,
> =A0 =A0 =A0 =A0WARN_ON(!host->data);
>
> =A0 =A0 =A0 =A0mode =3D SDHCI_TRNS_BLK_CNT_EN;
> - =A0 =A0 =A0 if (data->blocks > 1)
> - =A0 =A0 =A0 =A0 =A0 =A0 =A0 mode |=3D SDHCI_TRNS_MULTI;
> + =A0 =A0 =A0 if (data->blocks > 1) {
> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (host->quirks & SDHCI_QUIRK_MULTIBLOCK_R=
EAD_ACMD12)
> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 mode |=3D SDHCI_TRNS_MULTI =
| SDHCI_TRNS_ACMD12;
> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 else
> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 mode |=3D SDHCI_TRNS_MULTI;

nit:
+               mode |=3D SDHCI_TRNS_MULTI;
+               if (host->quirks & SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12)
+                       mode |=3D SDHCI_TRNS_ACMD12;

Clearer, no?

> + =A0 =A0 =A0 }
> =A0 =A0 =A0 =A0if (data->flags & MMC_DATA_READ)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0mode |=3D SDHCI_TRNS_READ;
> =A0 =A0 =A0 =A0if (host->flags & SDHCI_REQ_USE_DMA)

^ permalink raw reply

* Re: [PATCH 2/3 v2] dts: Add sdhci, auto-cmd12 field for p4080 device tree
From: Grant Likely @ 2010-08-05  0:08 UTC (permalink / raw)
  To: Roy Zang; +Cc: linuxppc-dev, akpm, linux-mmc
In-Reply-To: <1280805072-26112-2-git-send-email-tie-fei.zang@freescale.com>

On Mon, Aug 2, 2010 at 9:11 PM, Roy Zang <tie-fei.zang@freescale.com> wrote=
:
> Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
> ---
> =A0Documentation/powerpc/dts-bindings/fsl/esdhc.txt | =A0 =A02 ++
> =A0arch/powerpc/boot/dts/p4080ds.dts =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| =A0=
 =A01 +
> =A02 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/Documentation/powerpc/dts-bindings/fsl/esdhc.txt b/Documenta=
tion/powerpc/dts-bindings/fsl/esdhc.txt
> index 8a00407..64bcb8b 100644
> --- a/Documentation/powerpc/dts-bindings/fsl/esdhc.txt
> +++ b/Documentation/powerpc/dts-bindings/fsl/esdhc.txt
> @@ -14,6 +14,8 @@ Required properties:
> =A0 =A0 reports inverted write-protect state;
> =A0 - sdhci,1-bit-only : (optional) specifies that a controller can
> =A0 =A0 only handle 1-bit data transfers.
> + =A0- sdhci,auto-cmd12: (optional) specifies that a controller can
> + =A0 =A0only handle auto CMD12.

I read this, but I still don't understand what it means.  What does
"auto CMD12" mean?  Are there other kinds of CMD12?  Part of this
might be my ignorance about how eSDHC works, but it could be clearer.

Also, you can feel free to merge this patch with patch 1 in your
series.  I makes sense to update the documentation and the driver at
the same time.

g.

--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

^ permalink raw reply

* Re: [PATCH] arch/powerpc: Drop unnecessary of_node_put
From: Grant Likely @ 2010-08-05  0:01 UTC (permalink / raw)
  To: Julia Lawall
  Cc: devicetree-discuss, kernel-janitors, linux-kernel, linuxppc-dev,
	Paul Mackerras
In-Reply-To: <Pine.LNX.4.64.1008032149410.20393@ask.diku.dk>

On Tue, Aug 3, 2010 at 1:50 PM, Julia Lawall <julia@diku.dk> wrote:
> From: Julia Lawall <julia@diku.dk>
>
> for_each_node_by_name only exits when its first argument is NULL, and a
> subsequent call to of_node_put on that argument is unnecessary.
>
> The semantic patch that makes this change is as follows:
> (http://coccinelle.lip6.fr/)
>
> // <smpl>
> @@
> iterator name for_each_node_by_name;
> expression np,E;
> identifier l;
> @@
>
> for_each_node_by_name(np,...) {
> =A0... when !=3D break;
> =A0 =A0 =A0when !=3D goto l;
> }
> ... when !=3D np =3D E
> - of_node_put(np);
> // </smpl>
>
> Signed-off-by: Julia Lawall <julia@diku.dk>

Looks correct to me:

Reviewed-by: Grant Likely <grant.likely@secretlab.ca>

>
> ---
> =A0arch/powerpc/platforms/powermac/feature.c | =A0 =A01 -
> =A0arch/powerpc/platforms/powermac/pci.c =A0 =A0 | =A0 =A02 --
> =A02 files changed, 3 deletions(-)
>
> diff -u -p a/arch/powerpc/platforms/powermac/feature.c b/arch/powerpc/pla=
tforms/powermac/feature.c
> --- a/arch/powerpc/platforms/powermac/feature.c
> +++ b/arch/powerpc/platforms/powermac/feature.c
> @@ -2872,7 +2872,6 @@ set_initial_features(void)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0core99_air=
port_enable(np, 0, 0);
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0}
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0}
> - =A0 =A0 =A0 =A0 =A0 =A0 =A0 of_node_put(np);
> =A0 =A0 =A0 =A0}
>
> =A0 =A0 =A0 =A0/* On all machines that support sound PM, switch sound off=
 */
> diff -u -p a/arch/powerpc/platforms/powermac/pci.c b/arch/powerpc/platfor=
ms/powermac/pci.c
> --- a/arch/powerpc/platforms/powermac/pci.c
> +++ b/arch/powerpc/platforms/powermac/pci.c
> @@ -1155,13 +1155,11 @@ void __init pmac_pcibios_after_init(void
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0pmac_call_feature(PMAC_FTR=
_1394_CABLE_POWER, nd, 0, 0);
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0}
> =A0 =A0 =A0 =A0}
> - =A0 =A0 =A0 of_node_put(nd);
> =A0 =A0 =A0 =A0for_each_node_by_name(nd, "ethernet") {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if (nd->parent && of_device_is_compatible(=
nd, "gmac")
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0&& of_device_is_compatible(nd->par=
ent, "uni-north"))
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0pmac_call_feature(PMAC_FTR=
_GMAC_ENABLE, nd, 0, 0);
> =A0 =A0 =A0 =A0}
> - =A0 =A0 =A0 of_node_put(nd);
> =A0}
>
> =A0void pmac_pci_fixup_cardbus(struct pci_dev* dev)
>



--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

^ permalink raw reply

* [PATCH] asoc/multi-component: fsl: add support for disabled SSI nodes
From: Timur Tabi @ 2010-08-04 22:51 UTC (permalink / raw)
  To: alsa-devel, linuxppc-dev, lrg, broonie, kumar.gala

Add support for adding "status = disabled" to an SSI node to incidate that it
is not wired on the board.  This replaces the not-so-intuitive previous method
of omitting a codec-handle property.

Signed-off-by: Timur Tabi <timur@freescale.com>
---

Kumar, would you please ACK the device-tree portion of this patch?  I want
it to go through the ALSA tree.

 arch/powerpc/boot/dts/mpc8610_hpcd.dts |    1 +
 sound/soc/fsl/fsl_ssi.c                |   13 ++++++++++---
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/arch/powerpc/boot/dts/mpc8610_hpcd.dts b/arch/powerpc/boot/dts/mpc8610_hpcd.dts
index 9535ce6..83c3218 100644
--- a/arch/powerpc/boot/dts/mpc8610_hpcd.dts
+++ b/arch/powerpc/boot/dts/mpc8610_hpcd.dts
@@ -286,6 +286,7 @@
 
 		ssi@16100 {
 			compatible = "fsl,mpc8610-ssi";
+			status = "disabled";
 			cell-index = <1>;
 			reg = <0x16100 0x100>;
 			interrupt-parent = <&mpic>;
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
index a0e18b8..45d27b1 100644
--- a/sound/soc/fsl/fsl_ssi.c
+++ b/sound/soc/fsl/fsl_ssi.c
@@ -636,12 +636,19 @@ static int __devinit fsl_ssi_probe(struct of_device *of_dev,
 	struct resource res;
 	char name[64];
 
-	/* We are only interested in SSIs with a codec phandle in them, so let's
-	 * make sure this SSI has one.
+	/* SSIs that are not connected on the board should have a
+	 *      status = "disabled"
+	 * property in their device tree nodes.
 	 */
-	if (!of_get_property(np, "codec-handle", NULL))
+	if (!of_device_is_available(np))
 		return -ENODEV;
 
+	/* Check for a codec-handle property. */
+	if (!of_get_property(np, "codec-handle", NULL)) {
+		dev_err(&of_dev->dev, "missing codec-handle property\n");
+		return -ENODEV;
+	}
+
 	/* We only support the SSI in "I2S Slave" mode */
 	sprop = of_get_property(np, "fsl,mode", NULL);
 	if (!sprop || strcmp(sprop, "i2s-slave")) {
-- 
1.7.0.1

^ permalink raw reply related

* [git pull] Please pull powerpc.git next branch
From: Kumar Gala @ 2010-08-04 22:35 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc-dev

The following changes since commit e8e5c2155b0035b6e04f29be67f6444bc914005b:
  Matt Evans (1):
        powerpc/kexec: Fix orphaned offline CPUs across kexec

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git next

Anton Vorontsov (3):
      powerpc/85xx: Fix SWIOTLB initalization for MPC85xxMDS boards
      powerpc/85xx: Fix booting for P1021MDS boards
      powerpc/85xx: Cleanup QE initialization for MPC85xxMDS boards

Bradley Hughes (2):
      powerpc/85xx: Change deprecated binding for 85xx-based boards
      powerpc/85xx: Adding DTS for the STx GP3-SSA MPC8555 board

Dmitry Eremin-Solenikov (2):
      powerpc/tqm85xx: update PCI interrupt-map attribute
      powerpc/tqm85xx: add a quirk for ti1520 PCMCIA bridge

Heiko Schocher (1):
      powerpc/8xx: Add support for the MPC8xx based boards from TQC

Ilya Yanok (2):
      powerpc/fsl_pci: add quirk for mpc8308 pcie bridge
      powerpc/mpc8308rdb: support for MPC8308RDB board from Freescale

Matthew McClintock (1):
      powerpc/85xx: kexec for SMP 85xx BookE systems

Timur Tabi (1):
      powerpc/85xx: Introduce support for the Freescale P1022DS reference board

 arch/powerpc/Kconfig                       |   10 +-
 arch/powerpc/boot/dts/mpc8308rdb.dts       |  303 +++++++++
 arch/powerpc/boot/dts/mpc8540ads.dts       |    4 +-
 arch/powerpc/boot/dts/mpc8541cds.dts       |    4 +-
 arch/powerpc/boot/dts/mpc8544ds.dts        |    4 +-
 arch/powerpc/boot/dts/mpc8548cds.dts       |    4 +-
 arch/powerpc/boot/dts/mpc8555cds.dts       |    4 +-
 arch/powerpc/boot/dts/mpc8560ads.dts       |    4 +-
 arch/powerpc/boot/dts/mpc8568mds.dts       |    4 +-
 arch/powerpc/boot/dts/p1021mds.dts         |    1 +
 arch/powerpc/boot/dts/p1022ds.dts          |  633 +++++++++++++++++++
 arch/powerpc/boot/dts/stxssa8555.dts       |  380 +++++++++++
 arch/powerpc/boot/dts/tqm8540.dts          |    9 +-
 arch/powerpc/boot/dts/tqm8541.dts          |    9 +-
 arch/powerpc/boot/dts/tqm8548-bigflash.dts |    9 +-
 arch/powerpc/boot/dts/tqm8548.dts          |    9 +-
 arch/powerpc/boot/dts/tqm8555.dts          |    9 +-
 arch/powerpc/boot/dts/tqm8560.dts          |    9 +-
 arch/powerpc/boot/dts/tqm8xx.dts           |  172 +++++
 arch/powerpc/configs/mpc85xx_defconfig     |   34 +-
 arch/powerpc/configs/mpc85xx_smp_defconfig |   34 +-
 arch/powerpc/configs/tqm8xx_defconfig      |  934 ++++++++++++++++++++++++++++
 arch/powerpc/platforms/83xx/Kconfig        |    8 +
 arch/powerpc/platforms/83xx/Makefile       |    1 +
 arch/powerpc/platforms/83xx/mpc830x_rdb.c  |   94 +++
 arch/powerpc/platforms/85xx/Kconfig        |    8 +
 arch/powerpc/platforms/85xx/Makefile       |    1 +
 arch/powerpc/platforms/85xx/mpc85xx_mds.c  |  279 +++++----
 arch/powerpc/platforms/85xx/p1022_ds.c     |  148 +++++
 arch/powerpc/platforms/85xx/smp.c          |   63 ++
 arch/powerpc/platforms/85xx/tqm85xx.c      |   21 +
 arch/powerpc/platforms/8xx/Kconfig         |    6 +
 arch/powerpc/platforms/8xx/Makefile        |    1 +
 arch/powerpc/platforms/8xx/tqm8xx_setup.c  |  156 +++++
 arch/powerpc/sysdev/fsl_pci.c              |    1 +
 include/linux/pci_ids.h                    |    1 +
 36 files changed, 3185 insertions(+), 186 deletions(-)
 create mode 100644 arch/powerpc/boot/dts/mpc8308rdb.dts
 create mode 100644 arch/powerpc/boot/dts/p1022ds.dts
 create mode 100644 arch/powerpc/boot/dts/stxssa8555.dts
 create mode 100644 arch/powerpc/boot/dts/tqm8xx.dts
 create mode 100644 arch/powerpc/configs/tqm8xx_defconfig
 create mode 100644 arch/powerpc/platforms/83xx/mpc830x_rdb.c
 create mode 100644 arch/powerpc/platforms/85xx/p1022_ds.c
 create mode 100644 arch/powerpc/platforms/8xx/tqm8xx_setup.c

^ permalink raw reply

* Re: [RT,RFC] Hacks allowing -rt to run on POWER7 / Powerpc.
From: Will Schmidt @ 2010-08-04 21:45 UTC (permalink / raw)
  To: Milton Miller; +Cc: Darren Hart, rt-users, LKML, linuxppc-dev, Thomas Gleixner
In-Reply-To: <1278834594_17749@mail4.comsite.net>

On Sun, 2010-07-11 at 02:49 -0500, Milton Miller wrote:
> On Fri, 09 Jul 2010 about 08:55:01 -0000, Will Schmidt wrote:
> > We've been seeing some issues with userspace randomly SIGSEGV'ing while
> > running the -RT kernels on POWER7 based systems.   After lots of
> > debugging, head scratching, and experimental changes to the code, the
> > problem has been narrowed down such that we can avoid the problems by
> > disabling the TLB batching.
> > 
> > After some input from Ben and further debug, we've found that the
> > restoration of the batch->active value near the end of __switch_to()
> > seems to be the key.    ( The -RT related  changes within
> > arch/powerpc/kernel/processor.c __switch_to()  do the equivalent of a
> > arch_leave_lazy_mmu_mode() before calling _switch, use a hadbatch flag
> > to indicate if batching was active, and then restore that batch->active
> > value on the way out after the call to _switch_to.    That particular
> > code is in the -RT branch, and not found in mainline  )
> > 
> > Deferring to Ben (or others in the know) for whether this is the proper
> > solution or if there is something deeper, but.. 

I believe this is still on Ben's list of things to look at.   Between
then and now, I'll see if I can get Thomas to pick this up for the -RT
tree to keep RT functional on P7 in the mean-time.  

A bit more debug info below.

> 
> 
> I looked at the patch and noticed 2 changes:
> 	1) the batch is checked and cleared after local_irq_save
> 	2) enabling the batch is skipped
> 
> I talked to Will and had him try moving the local_irq_save above the
> check for the active batch.  That alone did not seem to be enough.
> However, he confirmed that we are setting batch to active when it is
> already active in lazy_mmu_enter, meaning that batching is being turned
> on recursively.  I suggested debug to check that irqs are off after the
> restore when re-enabling when our debug session timed out.

Based on some of the debug suggestions from Milton:


A WARN_ON for (!irqs_disabled) after local_irq_restore() did not show
any hits.  (while otherwise continuing to suffer from the tlb batching
troubles). 

---><----

	hard_irq_disable();
	last = _switch(old_thread, new_thread);

	local_irq_restore(flags);

	WARN_ON(!irqs_disabled());        <<<<----------


#if defined(CONFIG_PPC64) && defined(CONFIG_PREEMPT_RT) && 1
	if (hadbatch) {
		batch = &__get_cpu_var(ppc64_tlb_batch);
		batch->active = 1;
	}
#endif

----><---- 


Another assortment of WARN_ONs in the arch_{enter,leave}_lazy_mmu_mode
functions.  As Milton stated above, the check for batch->active on the
way into the arch_enter_* function did generate lots of hits, the other
warn_ons did not.

-----><-------
static inline void arch_enter_lazy_mmu_mode(void)
{
	struct ppc64_tlb_batch *batch = &get_cpu_var(ppc64_tlb_batch);

//|-----WARN_ON(batch->active);     /* lots of hits if enabled */
|-------WARN_ON(irqs_disabled());     /* nothing.... */
|-------batch->active = 1;

....


static inline void arch_leave_lazy_mmu_mode(void)
{
|-------struct ppc64_tlb_batch *batch = &get_cpu_var(ppc64_tlb_batch);

|-------WARN_ON(!batch->active);    /* nothing.....*/
|-------WARN_ON(irqs_disabled());    /* nothing.... */

....



> 
> milton
> 
> > 
> > diff -aurp linux-2.6.33.5-rt23.orig/arch/powerpc/kernel/process.c linux-2.6.33.5-rt23.exp/arch/powerpc/kernel/process.c
> > --- linux-2.6.33.5-rt23.orig/arch/powerpc/kernel/process.c	2010-06-21 11:41:34.402513904 -0500
> > +++ linux-2.6.33.5-rt23.exp/arch/powerpc/kernel/process.c	2010-07-09 13:15:13.533269904 -0500
> > @@ -304,10 +304,6 @@ struct task_struct *__switch_to(struct t
> >  	struct thread_struct *new_thread, *old_thread;
> >  	unsigned long flags;
> >  	struct task_struct *last;
> > -#if defined(CONFIG_PPC64) && defined (CONFIG_PREEMPT_RT)
> > -	struct ppc64_tlb_batch *batch;
> > -	int hadbatch;
> > -#endif
> >  
> >  #ifdef CONFIG_SMP
> >  	/* avoid complexity of lazy save/restore of fpu
> > @@ -401,16 +397,6 @@ struct task_struct *__switch_to(struct t
> >  		new_thread->start_tb = current_tb;
> >  	}
> >  
> > -#ifdef CONFIG_PREEMPT_RT
> > -	batch = &__get_cpu_var(ppc64_tlb_batch);
> > -	if (batch->active) {
> > -		hadbatch = 1;
> > -		if (batch->index) {
> > -			__flush_tlb_pending(batch);
> > -		}
> > -		batch->active = 0;
> > -	}
> > -#endif /* #ifdef CONFIG_PREEMPT_RT */
> >  #endif
> >  
> >  	local_irq_save(flags);
> > @@ -425,16 +411,13 @@ struct task_struct *__switch_to(struct t
> >  	 * of sync. Hard disable here.
> >  	 */
> >  	hard_irq_disable();
> > -	last = _switch(old_thread, new_thread);
> > -
> > -	local_irq_restore(flags);
> >  
> >  #if defined(CONFIG_PPC64) && defined(CONFIG_PREEMPT_RT)
> > -	if (hadbatch) {
> > -		batch = &__get_cpu_var(ppc64_tlb_batch);
> > -		batch->active = 1;
> > -	}
> > +	arch_leave_lazy_mmu_mode();
> >  #endif
> > +	last = _switch(old_thread, new_thread);
> > +
> > +	local_irq_restore(flags);
> >  
> >  	return last;
> >  }
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply

* Re: powerpc, 8xx: Add support for the MPC8xx based boards from TQC
From: Kumar Gala @ 2010-08-04 19:25 UTC (permalink / raw)
  To: hs; +Cc: linuxppc-dev
In-Reply-To: <4BA8744D.6030503@denx.de>


On Mar 23, 2010, at 2:57 AM, Heiko Schocher wrote:

> Supported SMC1 (serial console), SCC1 Ethernet (10Mbps HD).
> FEC Ethernet, 8MB NOR CFI Flash.
>=20
> Tested on STK8xx with TQM860L (with FEC)
> and with TQM855M (without FEC).
>=20
> Signed-off-by: Heiko Schocher <hs@denx.de>
> ---
> - based against =
git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git
>  commit bca14dd14f3b0c5e3e2d1d314679f85b67871365
> - checked with checkpatch
>  $ scripts/checkpatch.pl =
0001-powerpc-8xx-Add-support-for-the-MPC8xx-based-board.patch
>  total: 0 errors, 0 warnings, 1278 lines checked
>=20
>  0001-powerpc-8xx-Add-support-for-the-MPC8xx-based-board.patch has no =
obvious style problems and is ready for submission.
>  $
>=20
> arch/powerpc/boot/dts/tqm8xx.dts          |  172 ++++++
> arch/powerpc/configs/tqm8xx_defconfig     |  934 =
+++++++++++++++++++++++++++++
> arch/powerpc/platforms/8xx/Kconfig        |    6 +
> arch/powerpc/platforms/8xx/Makefile       |    1 +
> arch/powerpc/platforms/8xx/tqm8xx_setup.c |  156 +++++
> 5 files changed, 1269 insertions(+), 0 deletions(-)
> create mode 100644 arch/powerpc/boot/dts/tqm8xx.dts
> create mode 100644 arch/powerpc/configs/tqm8xx_defconfig
> create mode 100644 arch/powerpc/platforms/8xx/tqm8xx_setup.c

applied to next

- k=

^ permalink raw reply

* Re: [PATCH v2 0/2] Adding DTS for the STx GP3-SSA MPC8555 board
From: Kumar Gala @ 2010-08-04 19:23 UTC (permalink / raw)
  To: Bradley Hughes; +Cc: linuxppc-dev
In-Reply-To: <AANLkTimMb_PshxAIDvbfFdbCqHrlY13Qiz9g2eZ1vw1E@mail.gmail.com>


On Jul 21, 2010, at 5:04 PM, Bradley Hughes wrote:

> This version uses "fsl,mpc8555..." instead of "fsl,85..." notation.
>=20
> There is also an 8541 version of this board so DTS for this board
> is specific to the 8555 processor.
>=20
> Another patch is coming to fix-up other DTS that use old notation.
>=20
> Signed-off-by: Bradley Hughes <bhughes@silicontkx.com>
> ---
> arch/powerpc/boot/dts/stxssa8555.dts |  380 =
++++++++++++++++++++++++++++++++++
> 1 files changed, 380 insertions(+), 0 deletions(-)
> create mode 100644 arch/powerpc/boot/dts/stxssa8555.dts

applied to next

- k=

^ permalink raw reply

* Re: [PATCH v2 1/2] DTS: Change deprecated binding for 85xx-based boards
From: Kumar Gala @ 2010-08-04 19:23 UTC (permalink / raw)
  To: Bradley Hughes; +Cc: linuxppc-dev
In-Reply-To: <AANLkTinaSEyVowG4103g5q-FmFMMMHuXJUeCV2oiSu5-@mail.gmail.com>


On Jul 21, 2010, at 5:04 PM, Bradley Hughes wrote:

> The "fsl,85..." style compatible binding was to be deprecated
> some time ago.  This patch corrects existing occurrences of
> the incorrect binding.  The memory-controller and
> l2-cache-controller are the only affected nodes.
> 
> Signed-off-by: Bradley Hughes <bhughes@silicontkx.com>
> ---
> arch/powerpc/boot/dts/mpc8540ads.dts |    4 ++--
> arch/powerpc/boot/dts/mpc8541cds.dts |    4 ++--
> arch/powerpc/boot/dts/mpc8544ds.dts  |    4 ++--
> arch/powerpc/boot/dts/mpc8548cds.dts |    4 ++--
> arch/powerpc/boot/dts/mpc8555cds.dts |    4 ++--
> arch/powerpc/boot/dts/mpc8560ads.dts |    4 ++--
> arch/powerpc/boot/dts/mpc8568mds.dts |    4 ++--
> 7 files changed, 14 insertions(+), 14 deletions(-)

applied to next

- k

^ permalink raw reply

* Re: [PATCH 2/2] tqm85xx: add a quirk for ti1520 PCMCIA bridge
From: Kumar Gala @ 2010-08-04 19:23 UTC (permalink / raw)
  To: Dmitry Eremin-Solenikov; +Cc: linuxppc-dev
In-Reply-To: <1279744404-10171-3-git-send-email-dbaryshkov@gmail.com>


On Jul 21, 2010, at 3:33 PM, Dmitry Eremin-Solenikov wrote:

> By default ti1520 bridge expects an input clock on CLOCK pin (to control
> power chip). However on this boards CLOCK should be generated by PCI1520
> itself. Add a quirk that enables internal 16 KHz clock generation on
> this pin.
> 
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> arch/powerpc/platforms/85xx/tqm85xx.c |   21 +++++++++++++++++++++
> 1 files changed, 21 insertions(+), 0 deletions(-)

applied to next

- k

^ permalink raw reply

* Re: [PATCH] [v2] powerpc: introduce basic support for the Freescale P1022DS reference board
From: Kumar Gala @ 2010-08-04 19:23 UTC (permalink / raw)
  To: Timur Tabi; +Cc: linuxppc-dev
In-Reply-To: <1278109503-7604-1-git-send-email-timur@freescale.com>


On Jul 2, 2010, at 5:25 PM, Timur Tabi wrote:

> Introduce basic support for the Freescale P1022DS reference board, =
based on the
> Freescale BSP for this board.  This patch excludes the DIU, SSI, and =
MMC/SD
> drivers.  Only a 36-bit DTS is provided.
>=20
> Update mpc86xx_smp_defconfig and mpc85xx_defconfig to support the =
P1022DS.
> This means enabling 64-bit physical address support, increasing the =
maximum
> zone order to 12 (to allow the DIU driver to allocate large chunks), =
and
> clean up the audio options to disable the deprecated OSS support.
>=20
> Signed-off-by: Timur Tabi <timur@freescale.com>
> ---
>=20
> This patch is for 2.6.36.
>=20
> arch/powerpc/boot/dts/p1022ds.dts          |  633 =
++++++++++++++++++++++++++++
> arch/powerpc/configs/mpc85xx_defconfig     |   34 +-
> arch/powerpc/configs/mpc85xx_smp_defconfig |   34 +-
> arch/powerpc/platforms/85xx/Kconfig        |    8 +
> arch/powerpc/platforms/85xx/Makefile       |    1 +
> arch/powerpc/platforms/85xx/p1022_ds.c     |  148 +++++++
> 6 files changed, 814 insertions(+), 44 deletions(-)
> create mode 100644 arch/powerpc/boot/dts/p1022ds.dts
> create mode 100644 arch/powerpc/platforms/85xx/p1022_ds.c

applied to next

- k=

^ permalink raw reply

* Re: [PATCH 2/2] tqm85xx: add a quirk for ti1520 PCMCIA bridge
From: Kumar Gala @ 2010-08-04 19:21 UTC (permalink / raw)
  To: Dmitry Eremin-Solenikov; +Cc: linuxppc-dev
In-Reply-To: <1279744404-10171-3-git-send-email-dbaryshkov@gmail.com>


On Jul 21, 2010, at 3:33 PM, Dmitry Eremin-Solenikov wrote:

> By default ti1520 bridge expects an input clock on CLOCK pin (to control
> power chip). However on this boards CLOCK should be generated by PCI1520
> itself. Add a quirk that enables internal 16 KHz clock generation on
> this pin.
> 
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> arch/powerpc/platforms/85xx/tqm85xx.c |   21 +++++++++++++++++++++
> 1 files changed, 21 insertions(+), 0 deletions(-)

applied to next

- k

^ permalink raw reply

* Re: [PATCH 1/2] tqm85xx: update PCI interrupt-map attribute
From: Kumar Gala @ 2010-08-04 19:21 UTC (permalink / raw)
  To: Dmitry Eremin-Solenikov; +Cc: linuxppc-dev
In-Reply-To: <1279744404-10171-2-git-send-email-dbaryshkov@gmail.com>


On Jul 21, 2010, at 3:33 PM, Dmitry Eremin-Solenikov wrote:

> Update PCI IRQ mapping on TQM85xx platforms: include INTC and INTD on PCI-X
> slot and add INTA/INTB mapping for PCMCIA bridge.
> 
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> arch/powerpc/boot/dts/tqm8540.dts          |    9 ++++++++-
> arch/powerpc/boot/dts/tqm8541.dts          |    9 ++++++++-
> arch/powerpc/boot/dts/tqm8548-bigflash.dts |    9 ++++++++-
> arch/powerpc/boot/dts/tqm8548.dts          |    9 ++++++++-
> arch/powerpc/boot/dts/tqm8555.dts          |    9 ++++++++-
> arch/powerpc/boot/dts/tqm8560.dts          |    9 ++++++++-
> 6 files changed, 48 insertions(+), 6 deletions(-)

applied to next

- k

^ permalink raw reply

* Re: [PATCH 2/2] mpc8308rdb: support for MPC8308RDB board from Freescale
From: Kumar Gala @ 2010-08-04 19:18 UTC (permalink / raw)
  To: Ilya Yanok; +Cc: linuxppc-dev, wd, dzu
In-Reply-To: <1278619839-23998-3-git-send-email-yanok@emcraft.com>


On Jul 8, 2010, at 3:10 PM, Ilya Yanok wrote:

> This patch adds support for MPC8308RDB development board from
> Freescale.
> Supported devices:
> DUART
> Dual Ethernet
> NOR and NAND flashes
> I2C
> USB in peripheral mode
>=20
> PCIE support is broken by the commit 3da34aa ("powerpc/fsl: Support
> unique MSI addresses per PCIe Root Complex"). Works after revert.
>=20
> Signed-off-by: Ilya Yanok <yanok@emcraft.com>
> ---
> arch/powerpc/boot/dts/mpc8308rdb.dts      |  303 =
+++++++++++++++++++++++++++++
> arch/powerpc/platforms/83xx/Kconfig       |    8 +
> arch/powerpc/platforms/83xx/Makefile      |    1 +
> arch/powerpc/platforms/83xx/mpc830x_rdb.c |   94 +++++++++
> 4 files changed, 406 insertions(+), 0 deletions(-)
> create mode 100644 arch/powerpc/boot/dts/mpc8308rdb.dts
> create mode 100644 arch/powerpc/platforms/83xx/mpc830x_rdb.c

applied to next

- k=

^ permalink raw reply

* Re: [PATCH 1/2] fsl_pci: add quirk for mpc8308 pcie bridge
From: Kumar Gala @ 2010-08-04 19:18 UTC (permalink / raw)
  To: Ilya Yanok; +Cc: linuxppc-dev, wd, dzu
In-Reply-To: <1278619839-23998-2-git-send-email-yanok@emcraft.com>


On Jul 8, 2010, at 3:10 PM, Ilya Yanok wrote:

> This patch adds the quirk for PCIE controller found on Freescale MPC8308.
> The quirk is the same as for other MPC83xx processors.
> 
> Signed-off-by: Ilya Yanok <yanok@emcraft.com>
> ---
> arch/powerpc/sysdev/fsl_pci.c |    1 +
> include/linux/pci_ids.h       |    1 +
> 2 files changed, 2 insertions(+), 0 deletions(-)

applied to next

- k

^ permalink raw reply

* Re: [PATCH 3/3] powerpc/85xx: Cleanup QE initialization for MPC85xxMDS boards
From: Kumar Gala @ 2010-08-04 19:15 UTC (permalink / raw)
  To: Anton Vorontsov; +Cc: linuxppc-dev
In-Reply-To: <20100608195557.GC11446@oksana.dev.rtsoft.ru>


On Jun 8, 2010, at 2:55 PM, Anton Vorontsov wrote:

> The mpc85xx_mds_setup_arch() function is incomprehensible
> and unmaintainable. Factor out all QE specific stuff into
> mpc85xx_mds_qe_init() and mpc85xx_mds_reset_ucc_phys().
>=20
> Also move QE stuff out of mpc85xx_mds_pic_init().
>=20
> The diff is unreadable, but only because the code was so. ;-)
> It should be better now, and less indented.
>=20
> Signed-off-by: Anton Vorontsov <avorontsov@mvista.com>
> ---
> arch/powerpc/platforms/85xx/mpc85xx_mds.c |  272 =
+++++++++++++++--------------
> 1 files changed, 143 insertions(+), 129 deletions(-)

applied to next

- k=

^ permalink raw reply


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox