[RFC 0/4] [flexcan/powerpc] Add support for powerpc flexcan (freescale p1010) -V7

2011-08-09 Thread Robin Holt
Marc, Wolfgang or U Bhaskar, This patch set should have all your comments included. It is based on the David S. Miller net-next-2.6 tree commit 19fd617. I have compiled each patch in the series individually for both arm and powerpc (cheated on ppc and reordered them with the last patch first so

[RFC 3/4] [flexcan] Add of_match to platform_device definition.

2011-08-09 Thread Robin Holt
On powerpc, the OpenFirmware devices are not matched without specifying an of_match array. Introduce that array as that is used for matching on the Freescale P1010 processor. Signed-off-by: Robin Holt h...@sgi.com To: Marc Kleine-Budde m...@pengutronix.de To: Wolfgang Grandegger

[RFC 2/4] [flexcan] Abstract off read/write for big/little endian.

2011-08-09 Thread Robin Holt
Make flexcan driver handle register reads in the appropriate endianess. This was a basic search and replace and then define some inlines. Signed-off-by: Robin Holt h...@sgi.com Acked-by: Marc Kleine-Budde m...@pengutronix.de To: Wolfgang Grandegger w...@grandegger.com To: U Bhaskar-B22300

Re: [RFC 4/4] [powerpc] Add flexcan device support for p1010rdb.

2011-08-09 Thread Robin Holt
Argh. I sent an earlier (non-working) version of this patch. Here is the correct one. I added a clock source for the p1010rdb so the flexcan driver could find its clock frequency. Signed-off-by: Robin Holt h...@sgi.com To: Marc Kleine-Budde m...@pengutronix.de, To: Wolfgang Grandegger

Re: [RFC 4/4] [powerpc] Add flexcan device support for p1010rdb.

2011-08-09 Thread Wolfgang Grandegger
On 08/09/2011 08:33 AM, Robin Holt wrote: Argh. I sent an earlier (non-working) version of this patch. Here is the correct one. Please always resend the complete series of patches with an incremented version number. Furthermore, this is not an RFC any more. A prefix similar to [PATCH

GPIO IRQ dts bindings for MPC85xx and QorIQ

2011-08-09 Thread Felix Radensky
Hi, DTS bindings document for mpc8xxx GPIOs implies that to use GPIO as IRQ one should specify GPIO controller node and GPIO number in device tree node, like this: funkyfpga@0 { compatible = funky-fpga; ... interrupts = 9 2; interrupt-parent = gpio2; };

Re: [RFC 4/4] [powerpc] Add flexcan device support for p1010rdb.

2011-08-09 Thread Robin Holt
On Tue, Aug 09, 2011 at 09:11:33AM +0200, Wolfgang Grandegger wrote: + return p1010_rdb_system_clock; Just returning fsl_get_sys_freq() here would already be fine. I'm also missing the factor of two here: return fsl_get_sys_freq() / 2; I am working on the other comments

Re: [PATCH] powerpc: Make KVM_GUEST default to n

2011-08-09 Thread Alexander Graf
On 08/05/2011 05:23 AM, Anton Blanchard wrote: KVM_GUEST adds a 1 MB array to the kernel (kvm_tmp) which grew my kernel enough to cause it to fail to boot. Dynamically allocating or reducing the size of this array is a good idea, but in the meantime I think it makes sense to make KVM_GUEST

Re: [RFC 4/4] [powerpc] Add flexcan device support for p1010rdb.

2011-08-09 Thread Marc Kleine-Budde
On 08/09/2011 01:40 PM, Robin Holt wrote: On Tue, Aug 09, 2011 at 09:11:33AM +0200, Wolfgang Grandegger wrote: + return p1010_rdb_system_clock; Just returning fsl_get_sys_freq() here would already be fine. I'm also missing the factor of two here: return fsl_get_sys_freq() / 2;

Re: [RFC 4/4] [powerpc] Add flexcan device support for p1010rdb.

2011-08-09 Thread Robin Holt
On Tue, Aug 09, 2011 at 09:11:33AM +0200, Wolfgang Grandegger wrote: On 08/09/2011 08:33 AM, Robin Holt wrote: Argh. I sent an earlier (non-working) version of this patch. Here is the correct one. Please always resend the complete series of patches with an incremented version number.

[Patch 0/4] [flexcan/powerpc] Add support for powerpc flexcan (freescale p1010) -V8

2011-08-09 Thread Robin Holt
Marc, Wolfgang or U Bhaskar, This patch set should have all your comments included. It is based on the David S. Miller net-next-2.6 tree commit 19fd617. I have compiled each patch in the series individually for both arm and powerpc (cheated on ppc and reordered them with the last patch first so

[PATCH 3/4] [flexcan] Add of_match to platform_device definition.

2011-08-09 Thread Robin Holt
On powerpc, the OpenFirmware devices are not matched without specifying an of_match array. Introduce that array as that is used for matching on the Freescale P1010 processor. Signed-off-by: Robin Holt h...@sgi.com To: Marc Kleine-Budde m...@pengutronix.de To: Wolfgang Grandegger

[PATCH 1/4] [flexcan] Remove #include mach/clock.h

2011-08-09 Thread Robin Holt
powerpc does not have a mach-/clock.h. When testing, I found neither arm nor powerpc needed the mach/clock.h at all so I removed it. Signed-off-by: Robin Holt h...@sgi.com To: Marc Kleine-Budde m...@pengutronix.de To: Wolfgang Grandegger w...@grandegger.com To: U Bhaskar-B22300

[PATCH 4/4] [powerpc] Add flexcan device support for p1010rdb.

2011-08-09 Thread Robin Holt
I added a simple clock source for the p1010rdb so the flexcan driver could determine a clock frequency. The p1010 can device only has an oscillator of system bus frequency divided by 2. Signed-off-by: Robin Holt h...@sgi.com To: Marc Kleine-Budde m...@pengutronix.de, To: Wolfgang Grandegger

[PATCH 2/4] [flexcan] Abstract off read/write for big/little endian.

2011-08-09 Thread Robin Holt
Make flexcan driver handle register reads in the appropriate endianess. This was a basic search and replace and then define some inlines. Signed-off-by: Robin Holt h...@sgi.com Acked-by: Marc Kleine-Budde m...@pengutronix.de To: Wolfgang Grandegger w...@grandegger.com To: U Bhaskar-B22300

Re: [RFC 4/4] [powerpc] Add flexcan device support for p1010rdb.

2011-08-09 Thread Marc Kleine-Budde
On 08/09/2011 07:55 AM, Robin Holt wrote: I added a clock source for the p1010rdb so the flexcan driver could find its clock frequency. Signed-off-by: Robin Holt h...@sgi.com To: Marc Kleine-Budde m...@pengutronix.de, To: Wolfgang Grandegger w...@grandegger.com, To: U Bhaskar-B22300

Re: [RFC 4/4] [powerpc] Add flexcan device support for p1010rdb.

2011-08-09 Thread Robin Holt
On Tue, Aug 09, 2011 at 02:33:31PM +0200, Marc Kleine-Budde wrote: On 08/09/2011 07:55 AM, Robin Holt wrote: I added a clock source for the p1010rdb so the flexcan driver could find its clock frequency. Signed-off-by: Robin Holt h...@sgi.com To: Marc Kleine-Budde m...@pengutronix.de,

RE: [PATCH] rio: Use discovered bit to test if enumeration is complete

2011-08-09 Thread Bounine, Alexandre
On Monday, August 08, 2011 at 10:17 PM, Liu Gang wrote: Subject: [PATCH] rio: Use discovered bit to test if enumeration is complete The discovered bit in PGCCSR register indicates if the device has been discovered by system host. In Rapidio system, some agent devices can also be master

Re: [PATCH 4/4] [powerpc] Add flexcan device support for p1010rdb.

2011-08-09 Thread Wolfgang Grandegger
Hi Robin, On 08/09/2011 02:28 PM, Robin Holt wrote: I added a simple clock source for the p1010rdb so the flexcan driver could determine a clock frequency. The p1010 can device only has an oscillator of system bus frequency divided by 2. Signed-off-by: Robin Holt h...@sgi.com To: Marc

Re: [RFC 4/4] [powerpc] Add flexcan device support for p1010rdb.

2011-08-09 Thread Marc Kleine-Budde
On 08/09/2011 02:40 PM, Robin Holt wrote: On Tue, Aug 09, 2011 at 02:33:31PM +0200, Marc Kleine-Budde wrote: On 08/09/2011 07:55 AM, Robin Holt wrote: I added a clock source for the p1010rdb so the flexcan driver could find its clock frequency. Signed-off-by: Robin Holt h...@sgi.com To:

[Patch 0/5] [flexcan/powerpc] Add support for powerpc flexcan (freescale p1010) -V9

2011-08-09 Thread Robin Holt
Marc, Wolfgang or U Bhaskar, This patch set should have all your comments included. It is based on the David S. Miller net-next-2.6 tree commit 19fd617. This series adds a fifth patch which cleans up and corrects the device bindigs for the fsl-flexcan nodes. I have compiled each patch in the

[PATCH 1/5] [flexcan] Remove #include mach/clock.h

2011-08-09 Thread Robin Holt
powerpc does not have a mach-/clock.h. When testing, I found neither arm nor powerpc needed the mach/clock.h at all so I removed it. Signed-off-by: Robin Holt h...@sgi.com To: Marc Kleine-Budde m...@pengutronix.de Acked-by: Wolfgang Grandegger w...@grandegger.com To: U Bhaskar-B22300

[PATCH 2/5] [flexcan] Abstract off read/write for big/little endian.

2011-08-09 Thread Robin Holt
Make flexcan driver handle register reads in the appropriate endianess. This was a basic search and replace and then define some inlines. Signed-off-by: Robin Holt h...@sgi.com Acked-by: Marc Kleine-Budde m...@pengutronix.de Acked-by: Wolfgang Grandegger w...@grandegger.com To: U Bhaskar-B22300

[PATCH 3/5] [flexcan] Add of_match to platform_device definition.

2011-08-09 Thread Robin Holt
On powerpc, the OpenFirmware devices are not matched without specifying an of_match array. Introduce that array as that is used for matching on the Freescale P1010 processor. Signed-off-by: Robin Holt h...@sgi.com To: Marc Kleine-Budde m...@pengutronix.de Acked-by: Wolfgang Grandegger

[PATCH 4/5] [powerpc] Add flexcan device support for p1010rdb.

2011-08-09 Thread Robin Holt
I added a simple clock source for the p1010rdb so the flexcan driver could determine a clock frequency. The p1010 can device only has an oscillator of system bus frequency divided by 2. Signed-off-by: Robin Holt h...@sgi.com Acked-by: Marc Kleine-Budde m...@pengutronix.de, Acked-by: Wolfgang

[PATCH 5/5] [powerpc] Fix up fsl-flexcan device tree binding.

2011-08-09 Thread Robin Holt
In working with the socketcan developers, we have come to the conclusion the fsl-flexcan device tree bindings need to be cleaned up. The driver does not depend upon any properties other than the required properties so we are removing the file. Additionally, the p1010*dts files are not following

Re: [PATCH 4/4] [powerpc] Add flexcan device support for p1010rdb.

2011-08-09 Thread Robin Holt
On Tue, Aug 09, 2011 at 02:45:58PM +, U Bhaskar-B22300 wrote: Hi Robin, Where are you doing the irq handling ie request_irq() for the powerpc based P1010. Or the existing code of ARM based FlexCAN will work for P1010 ?? It appears that the of_device stuff got moved under the

Re: [PATCH 3/3] powerpc: icswx: Simple ACOP fault handler for both book3e and book3s parts.

2011-08-09 Thread Jimi Xenidis
On Aug 9, 2011, at 12:26 AM, Kumar Gala wrote: On Aug 8, 2011, at 5:26 PM, Jimi Xenidis wrote: This patch adds a fault handler that responds to illegal Coprocessor types. Currently all CTs are treated and illegal. There are two ways to report the fault back to the application. If the

RE: [PATCH 4/4] [powerpc] Add flexcan device support for p1010rdb.

2011-08-09 Thread U Bhaskar-B22300
Hi Robin, Where are you doing the irq handling ie request_irq() for the powerpc based P1010. Or the existing code of ARM based FlexCAN will work for P1010 ?? --Bhaskar -Original Message- From: Robin Holt [mailto:h...@sgi.com] Sent: Tuesday, August 09, 2011 5:58 PM To:

Re: [PATCH 4/4] [powerpc] Add flexcan device support for p1010rdb.

2011-08-09 Thread Wolfgang Grandegger
On 08/09/2011 04:55 PM, Robin Holt wrote: On Tue, Aug 09, 2011 at 02:45:58PM +, U Bhaskar-B22300 wrote: Hi Robin, Where are you doing the irq handling ie request_irq() for the powerpc based P1010. Or the existing code of ARM based FlexCAN will work for P1010 ?? It appears

Re: [PATCH 4/4] [powerpc] Add flexcan device support for p1010rdb.

2011-08-09 Thread Marc Kleine-Budde
On 08/09/2011 04:55 PM, Robin Holt wrote: On Tue, Aug 09, 2011 at 02:45:58PM +, U Bhaskar-B22300 wrote: Hi Robin, Where are you doing the irq handling ie request_irq() for the powerpc based P1010. Or the existing code of ARM based FlexCAN will work for P1010 ?? It appears

Re: [PATCH 3/3] powerpc: icswx: Simple ACOP fault handler for both book3e and book3s parts.

2011-08-09 Thread Benjamin Herrenschmidt
On Tue, 2011-08-09 at 00:26 -0500, Kumar Gala wrote: + /* Some implementations leave us a hint for the CT */ + ct = ICSWX_GET_CT_HINT(error_code); + if (ct 0) { + /* we have to peek at the instruction work to figure out CT */ + union cop_ccw ccw; don't use

Re: [PATCH 3/3] powerpc: icswx: Simple ACOP fault handler for both book3e and book3s parts.

2011-08-09 Thread Jimi Xenidis
On Aug 9, 2011, at 10:15 AM, Benjamin Herrenschmidt wrote: On Tue, 2011-08-09 at 00:26 -0500, Kumar Gala wrote: + /* Some implementations leave us a hint for the CT */ + ct = ICSWX_GET_CT_HINT(error_code); + if (ct 0) { + /* we have to peek at the instruction work to

[PATCH 05/10] KVM: PPC: Read out syscall instruction on trap

2011-08-09 Thread Alexander Graf
We have a few traps where we cache the instruction that cause the trap for analysis later on. Since we now need to be able to distinguish between SC 0 and SC 1 system calls and the only way to find out which is which is by looking at the instruction, we also read out the instruction causing the

[PATCH 01/10] KVM: PPC: move compute_tlbie_rb to book3s common header

2011-08-09 Thread Alexander Graf
We need the compute_tlbie_rb in _pr and _hv implementations for papr soon, so let's move it over to a common header file that both implementations can leverage. Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/include/asm/kvm_book3s.h | 33 +

[PATCH 02/10] KVM: PPC: Add papr_enabled flag

2011-08-09 Thread Alexander Graf
When running a PAPR guest, some things change. The privilege level drops from hypervisor to supervisor, SDR1 gets treated differently and we interpret hypercalls. For bisectability sake, add the flag now, but only enable it when all the support code is there. Signed-off-by: Alexander Graf

[PATCH 04/10] KVM: PPC: Interpret SDR1 as HVA in PAPR mode

2011-08-09 Thread Alexander Graf
When running a PAPR guest, the guest is not allowed to set SDR1 - instead the HTAB information is held in internal hypervisor structures. But all of our current code relies on SDR1 and walking the HTAB like on real hardware. So in order to not be too intrusive, we simply set SDR1 to the HTAB we

[PATCH 00/10] PAPR virtualization on PR KVM

2011-08-09 Thread Alexander Graf
In KVM for Book3S PPC we currently have 2 implementations. There is the PR based implementation which works on any POWER system you pass in and the super fast HV implementation which requires libre firmware (so almost nobody can use it). Currently, the two target two different machine types, with

[PATCH 03/10] KVM: PPC: Check privilege level on SPRs

2011-08-09 Thread Alexander Graf
We have 3 privilege levels: problem state, supervisor state and hypervisor state. Each of them can access different SPRs, so we need to check on every SPR if it's accessible in the respective mode. Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/kvm/book3s_emulate.c | 25

[PATCH 08/10] KVM: PPC: Stub emulate CFAR and PURR SPRs

2011-08-09 Thread Alexander Graf
Recent Linux versions use the CFAR and PURR SPRs, but don't really care about their contents (yet). So for now, we can simply return 0 when the guest wants to read them. Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/kvm/book3s_emulate.c |4 1 files changed, 4

[PATCH 09/10] KVM: PPC: Support SC1 hypercalls for PAPR in PR mode

2011-08-09 Thread Alexander Graf
PAPR defines hypercalls as SC1 instructions. Using these, the guest modifies page tables and does other privileged operations that it wouldn't be allowed to do in supervisor mode. This patch adds support for PR KVM to trap these instructions and route them through the same PAPR hypercall

[PATCH 10/10] KVM: PPC: Enable the PAPR CAP for Book3S

2011-08-09 Thread Alexander Graf
Now that Book3S PV mode can also run PAPR guests, we can add a PAPR cap and enable it for all Book3S targets. Enabling that CAP switches KVM into PAPR mode. Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/kvm/powerpc.c |5 + include/linux/kvm.h|1 + 2 files

[PATCH 07/10] KVM: PPC: Add PAPR hypercall code for PR mode

2011-08-09 Thread Alexander Graf
When running a PAPR guest, we need to handle a few hypercalls in kernel space, most prominently the page table invalidation (to sync the shadows). So this patch adds handling for a few PAPR hypercalls to PR mode KVM. I tried to share the code with HV mode, but it ended up being a lot easier this

[PATCH 06/10] KVM: PPC: Add support for explicit HIOR setting

2011-08-09 Thread Alexander Graf
Until now, we always set HIOR based on the PVR, but this is just wrong. Instead, we should be setting HIOR explicitly, so user space can decide what the initial HIOR value is - just like on real hardware. We keep the old PVR based way around for backwards compatibility, but once user space uses

Re: [PATCH 07/10] KVM: PPC: Add PAPR hypercall code for PR mode

2011-08-09 Thread Avi Kivity
On 08/09/2011 07:31 PM, Alexander Graf wrote: When running a PAPR guest, we need to handle a few hypercalls in kernel space, most prominently the page table invalidation (to sync the shadows). So this patch adds handling for a few PAPR hypercalls to PR mode KVM. I tried to share the code with

Re: [PATCH 00/10] PAPR virtualization on PR KVM

2011-08-09 Thread Avi Kivity
On 08/09/2011 07:31 PM, Alexander Graf wrote: In KVM for Book3S PPC we currently have 2 implementations. There is the PR based implementation which works on any POWER system you pass in and the super fast HV implementation which requires libre firmware (so almost nobody can use it). Did you

Re: [PATCH 07/10] KVM: PPC: Add PAPR hypercall code for PR mode

2011-08-09 Thread Alexander Graf
On 08/09/2011 06:40 PM, Avi Kivity wrote: On 08/09/2011 07:31 PM, Alexander Graf wrote: When running a PAPR guest, we need to handle a few hypercalls in kernel space, most prominently the page table invalidation (to sync the shadows). So this patch adds handling for a few PAPR hypercalls to

Re: [PATCH 07/10] KVM: PPC: Add PAPR hypercall code for PR mode

2011-08-09 Thread Avi Kivity
On 08/09/2011 07:46 PM, Alexander Graf wrote: On 08/09/2011 06:40 PM, Avi Kivity wrote: On 08/09/2011 07:31 PM, Alexander Graf wrote: When running a PAPR guest, we need to handle a few hypercalls in kernel space, most prominently the page table invalidation (to sync the shadows). So this

Re: [PATCH 00/10] PAPR virtualization on PR KVM

2011-08-09 Thread Alexander Graf
On 08/09/2011 06:42 PM, Avi Kivity wrote: On 08/09/2011 07:31 PM, Alexander Graf wrote: In KVM for Book3S PPC we currently have 2 implementations. There is the PR based implementation which works on any POWER system you pass in and the super fast HV implementation which requires libre firmware

Re: [PATCH 07/10] KVM: PPC: Add PAPR hypercall code for PR mode

2011-08-09 Thread Alexander Graf
On 08/09/2011 06:49 PM, Avi Kivity wrote: On 08/09/2011 07:46 PM, Alexander Graf wrote: On 08/09/2011 06:40 PM, Avi Kivity wrote: On 08/09/2011 07:31 PM, Alexander Graf wrote: When running a PAPR guest, we need to handle a few hypercalls in kernel space, most prominently the page table

Re: [PATCH 07/10] KVM: PPC: Add PAPR hypercall code for PR mode

2011-08-09 Thread Avi Kivity
On 08/09/2011 07:51 PM, Alexander Graf wrote: Just put your own (or your employers'). If someone contributed to the code they can add their copyrights (or ask you do do it before inclusion). It would be good to get Paul's or Ben's so that the unimportant characters between the whitespace

Re: FW: Ethernet driver WR linux

2011-08-09 Thread Scott Wood
On 08/09/2011 12:46 AM, smitha.va...@wipro.com wrote: Thank Scott. I am working on a legacy project Which is using 2.6.21 linux kernel so the device tree is based on that. Your original e-mail said you were using 2.6.38 (I have bringup WR linux 2.6.38 on a custom mpc8247 board). Can you let

Re: [PATCH 5/5] [powerpc] Fix up fsl-flexcan device tree binding.

2011-08-09 Thread Scott Wood
On 08/09/2011 09:43 AM, Robin Holt wrote: In working with the socketcan developers, we have come to the conclusion the fsl-flexcan device tree bindings need to be cleaned up. The driver does not depend upon any properties other than the required properties so we are removing the file. That

Re: [PATCH 5/5] [powerpc] Fix up fsl-flexcan device tree binding.

2011-08-09 Thread Robin Holt
On Tue, Aug 09, 2011 at 01:17:47PM -0500, Scott Wood wrote: On 08/09/2011 09:43 AM, Robin Holt wrote: In working with the socketcan developers, we have come to the conclusion the fsl-flexcan device tree bindings need to be cleaned up. The driver does not depend upon any properties other

Re: [PATCH 5/5] [powerpc] Fix up fsl-flexcan device tree binding.

2011-08-09 Thread Scott Wood
On 08/09/2011 01:45 PM, Robin Holt wrote: On Tue, Aug 09, 2011 at 01:17:47PM -0500, Scott Wood wrote: On 08/09/2011 09:43 AM, Robin Holt wrote: In working with the socketcan developers, we have come to the conclusion the fsl-flexcan device tree bindings need to be cleaned up. The driver does

Re: [PATCH 5/5] [powerpc] Fix up fsl-flexcan device tree binding.

2011-08-09 Thread Wolfgang Grandegger
On 08/09/2011 08:17 PM, Scott Wood wrote: On 08/09/2011 09:43 AM, Robin Holt wrote: In working with the socketcan developers, we have come to the conclusion the fsl-flexcan device tree bindings need to be cleaned up. The driver does not depend upon any properties other than the required

Re: [PATCH 5/5] [powerpc] Fix up fsl-flexcan device tree binding.

2011-08-09 Thread Wolfgang Grandegger
On 08/09/2011 09:13 PM, Scott Wood wrote: On 08/09/2011 01:45 PM, Robin Holt wrote: On Tue, Aug 09, 2011 at 01:17:47PM -0500, Scott Wood wrote: On 08/09/2011 09:43 AM, Robin Holt wrote: In working with the socketcan developers, we have come to the conclusion the fsl-flexcan device tree

Re: [PATCH 5/5] [powerpc] Fix up fsl-flexcan device tree binding.

2011-08-09 Thread Scott Wood
On 08/09/2011 02:49 PM, Wolfgang Grandegger wrote: Yes. The doc for the bindings we speak about http://lxr.linux.no/#linux+v3.0.1/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt sneaked into the kernel without been presented on any mailing list and without the corresponding

Re: [PATCH 5/5] [powerpc] Fix up fsl-flexcan device tree binding.

2011-08-09 Thread Scott Wood
On 08/09/2011 02:32 PM, Wolfgang Grandegger wrote: On 08/09/2011 08:17 PM, Scott Wood wrote: On 08/09/2011 09:43 AM, Robin Holt wrote: In working with the socketcan developers, we have come to the conclusion the fsl-flexcan device tree bindings need to be cleaned up. The driver does not

Re: [PATCH 5/5] [powerpc] Fix up fsl-flexcan device tree binding.

2011-08-09 Thread Robin Holt
I guess my poor wording may have gotten me in trouble. I am getting ready to repost this patch, but I want to ensure I am getting it as right as possible. I think I should reword the commit message to indicate we are removing the Documentation/.../fsl-flexcan.txt file which has essentially

Re: [PATCH 07/10] KVM: PPC: Add PAPR hypercall code for PR mode

2011-08-09 Thread Benjamin Herrenschmidt
On Tue, 2011-08-09 at 20:01 +0300, Avi Kivity wrote: On 08/09/2011 07:51 PM, Alexander Graf wrote: Just put your own (or your employers'). If someone contributed to the code they can add their copyrights (or ask you do do it before inclusion). It would be good to get Paul's or Ben's

Re: kvm PCI assignment VFIO ramblings

2011-08-09 Thread Alex Williamson
On Mon, 2011-08-08 at 11:28 +0300, Avi Kivity wrote: On 08/03/2011 05:04 AM, David Gibson wrote: I still don't understand the distinction you're making. We're saying the group is owned by a given user or guest in the sense that no-one else may use anything in the group (including host

Re: kvm PCI assignment VFIO ramblings

2011-08-09 Thread Benjamin Herrenschmidt
Mostly correct, yes. x86 isn't immune to the group problem, it shows up for us any time there's a PCIe-to-PCI bridge in the device hierarchy. We lose resolution of devices behind the bridge. As you state though, I think of this as only a constraint on what we're able to do with those

[PATCH v10 0/5] [flexcan/powerpc] Add support for powerpc flexcan (freescale p1010)

2011-08-09 Thread Robin Holt
With all the patches applied, my p1010rdb works for communicating between its two can ports and also can communicate with an external PSOC. I have done no testing beyond compile testing on an arm system as I have no access to an arm based system. For the first three patches in the series, I

[PATCH v10 1/5] [flexcan] Remove #include mach/clock.h

2011-08-09 Thread Robin Holt
powerpc does not have a mach-/clock.h. When testing, I found neither arm nor powerpc needed the mach/clock.h at all so I removed it. Signed-off-by: Robin Holt h...@sgi.com To: Marc Kleine-Budde m...@pengutronix.de Acked-by: Wolfgang Grandegger w...@grandegger.com To: U Bhaskar-B22300

[PATCH v10 2/5] [flexcan] Abstract off read/write for big/little endian.

2011-08-09 Thread Robin Holt
Make flexcan driver handle register reads in the appropriate endianess. This was a basic search and replace and then define some inlines. Signed-off-by: Robin Holt h...@sgi.com Acked-by: Marc Kleine-Budde m...@pengutronix.de Acked-by: Wolfgang Grandegger w...@grandegger.com To: U Bhaskar-B22300

[PATCH v10 3/5] [flexcan] Add of_match to platform_device definition.

2011-08-09 Thread Robin Holt
On powerpc, the OpenFirmware devices are not matched without specifying an of_match array. Introduce that array as that is used for matching on the Freescale P1010 processor. Signed-off-by: Robin Holt h...@sgi.com To: Marc Kleine-Budde m...@pengutronix.de Acked-by: Wolfgang Grandegger

[PATCH v10 4/5] [powerpc] Add flexcan device support for p1010rdb.

2011-08-09 Thread Robin Holt
I added a simple clock source for the p1010rdb so the flexcan driver could determine a clock frequency. The p1010 can device only has an oscillator of system bus frequency divided by 2. Signed-off-by: Robin Holt h...@sgi.com Acked-by: Marc Kleine-Budde m...@pengutronix.de, Acked-by: Wolfgang

[PATCH v10 5/5] [powerpc] Fix up fsl-flexcan device tree binding.

2011-08-09 Thread Robin Holt
In working with the socketcan developers, we have come to the conclusion the Documentation...fsl-flexcan.txt device tree documentation needs to be cleaned up. The driver does not depend upon any properties other than the required properties so we are removing the file. Additionally, the

Re: [PATCH 10/10] KVM: PPC: Enable the PAPR CAP for Book3S

2011-08-09 Thread Paul Mackerras
On Tue, Aug 09, 2011 at 06:31:48PM +0200, Alexander Graf wrote: Now that Book3S PV mode can also run PAPR guests, we can add a PAPR cap and enable it for all Book3S targets. Enabling that CAP switches KVM into PAPR mode. Don't we want to enable it only for 64-bit hosts? Trying to run a PAPR

Re: [PATCH v2] powerpc: 85xx: separate e500 from e500mc

2011-08-09 Thread Baruch Siach
Hi Scott, On Mon, Aug 08, 2011 at 02:42:52PM -0500, Scott Wood wrote: On 08/08/2011 04:07 AM, Baruch Siach wrote: CONFIG_E500MC breaks e500/e500v2 systems. It defines L1_CACHE_SHIFT to 6, thus breaking clear_pages(), probably others too. This patch adds a new Processor Type entry for

[PATCH v3] powerpc: 85xx: separate e500 from e500mc

2011-08-09 Thread Baruch Siach
CONFIG_E500MC breaks e500/e500v2 systems. It defines L1_CACHE_SHIFT to 6, thus breaking clear_pages(), probably others too. This patch adds a new Processor Type entry for e500mc, and makes e500 systems depend on PPC_E500_V1_V2. Cc: Kumar Gala ga...@kernel.crashing.org Signed-off-by: Baruch Siach