* RE: Access physical memory via mmap() on ppc440epx.
From: Leonid @ 2008-04-10 15:15 UTC (permalink / raw)
To: Josh Boyer; +Cc: linuxppc-embedded
In-Reply-To: <406A31B117F2734987636D6CCC93EE3C033A9D08@ehost011-3.exch011.intermedia.net>
Hi, Josh:
I have double checked, mmap64 doesn't work either. This is the piece of
code which does re-mapping:
unsigned long long StartAddressL =3D 0x100000000ULL | StartAddress;
mmap_addr =3D (unsigned int) mmap64(NULL,=20
size,=20
PROT_READ | PROT_WRITE,
MAP_SHARED,=20
dev_mem_fd,=20
StartAddressL);
While in GDB I can see variables' values:
(gdb) p/x mmap_addr
$1 =3D 0x30028000
(gdb) p/x StartAddressL
No symbol "StartAddressL" in current context.
(gdb) p/x StartAddress
$2 =3D 0xfc240000
(gdb) p/x size
$3 =3D 0x60000
(gdb)
This call returns successfully, but when I stop the board and dump TLB
entries (I have BDI2000 connected) on BDI2000 screen, there is no entry
with this physical address.
However when I also do re-mapping (using ioremap64()) in kernel driver
(physical address is different - 0xea000000), this is the code:
if((mcfp_ebi_baseptr =3D ioremap64 (0x1ea000000ULL, 512)) =3D=3D NULL) {
...
When I stop in debugger right after remapping, TLB entry shows up but
somewhat non-completed yet:
10 : 00 00000000 1KB -0 -> 1_ea000000 U:0000 -I-G- XWRXWR
Later, when I stop board right BEFORE actual accessing memory, the entry
is
present:
23 : 00 d1050000 4KB V0 -> 1_ea000000 U:0000 -IMG- ----WR
And kernel driver is working.
So something is definitely wrong with mmap/mmap64 call itself. Should I
use different parameters?=20
Thanks,
Leonid.
-----Original Message-----
From: linuxppc-embedded-bounces+leonid=3Da-k-a.net@ozlabs.org
[mailto:linuxppc-embedded-bounces+leonid=3Da-k-a.net@ozlabs.org] On =
Behalf
Of Leonid
Sent: Wednesday, April 02, 2008 3:51 PM
To: Josh Boyer
Cc: linuxppc-embedded@ozlabs.org
Subject: RE: Access physical memory via mmap() on ppc440epx.
Hi, Josh:
I have resolved my kernel driver problem, it was my own bug, didn't have
anything to do with memory remapping itself. Your suggestion to move to
ioremap64() did resolve problem completely.
I still need investigate mmap() crash. Apparently switch to mmap64()
didn't help, but it could be some another bug, I'll double check.
Thanks,
Leonid.=20
-----Original Message-----
From: linuxppc-embedded-bounces+leonid=3Da-k-a.net@ozlabs.org
[mailto:linuxppc-embedded-bounces+leonid=3Da-k-a.net@ozlabs.org] On =
Behalf
Of Leonid
Sent: Tuesday, April 01, 2008 9:30 PM
To: Josh Boyer
Cc: linuxppc-embedded@ozlabs.org
Subject: RE: Access physical memory via mmap() on ppc440epx.
Hi, Josh:
Thank you for your suggestion. Somehow it didn't work with mmap (may be,
my mistake, I'll double check), however it partially helped me with my
another problem.
I have kernel driver where I need read/write some HW device, connected
on address 0xea000000, chip select 4. This chip select configured
properly, here are EBC registers:
440EPx>rd ebc0_b4cr
ebc0_b4cr: 0xea01a000 -368992256
440EPx>rd ebc0_b4ap
ebc0_b4ap: 0x03037000 50556928
>From u-boot I can read/write this address with no problem (I use md/mw
commands).
In my driver I tried to ioremap() this address and any attempt to access
led to crash, same as with mmap().
When, following your suggestion, I used address 0x1ea00000 and
ioremap64(), crashes disappeared!
I even can write, but when I read data back I see least significant byte
of each 16 bits word only (bus is configured 16 bits width).=20
What can it be?
Thanks,
Leonid.=20
-----Original Message-----
From: Josh Boyer [mailto:jwboyer@gmail.com]
Sent: Tuesday, April 01, 2008 6:44 PM
To: Leonid
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Access physical memory via mmap() on ppc440epx.
On Tue, 2008-04-01 at 14:12 -0700, Leonid wrote:
> Hi:
>=20
> I am trying to read from NOR flash, located on address 0xfc000000, on
my
It's at 0x1fc000000 IIRC.
> TLB entries look strange though. That what it was on u-boot stage:
>=20
> 440EPx>tlb 0 10
> IDX TID EPN SIZE VTS RPN USER WIMGE USRSVC
> 0 : 00 40000000 256MB V0 -> 0_00000000 U:0000 -I-G- XWRXWR
> 1 : 00 00000000 256MB V0 -> 0_00000000 U:0000 -I-G- XWRXWR
> 2 : 00 c0000000 256MB V0 -> 1_c0000000 U:0000 -I-G- XWRXWR
> 3 : 00 f0000000 256MB V0 -> 1_f0000000 U:0000 WI-G- XWRXWR
See. Virtual is 0xf0000000, physical is 0x1f0000000.
> On Linux stage it looks rather different:
I don't even see your entry in here. Likely because the TLB is small
and it's gone by the time you do the dump
> Probably under MMU it should look this way? How to use mmap() then?
Try mmap64 on the real physical address and see if that helps.
josh
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
^ permalink raw reply
* Re: [PATCHv4 0/5] cpm2: Reset the CPM at startup and fix the cpm_uart driver accordingly.
From: Kumar Gala @ 2008-04-10 15:14 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: Scott Wood, linuxppc-dev
In-Reply-To: <200804011433.29841.laurentp@cse-semaphore.com>
On Apr 1, 2008, at 7:33 AM, Laurent Pinchart wrote:
> Hi everybody,
>
> these 5 patches reset the CPM in cpm2_reset() and fix the cpm_uart
> driver to
> initialise SMC ports correctly without relying on any initialisation
> performed by the boot loader/wrapper. They update the boot wrapper
> code and
> the EP8248E device tree to match the new SMC registers description.
>
> Patches 2/5, 3/5 and 4/5 (boot wrapper and EP8248E device tree
> updates)
> haven't been tested due to lack of hardware.
applied.
- k
^ permalink raw reply
* Re: [PATCH v2] [POWER] mpc85xx_ds add DMA engine to the DT and parse it.
From: Sebastian Siewior @ 2008-04-10 15:12 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-embedded
In-Reply-To: <B4CD3ECE-5F98-4A7B-A811-A84EADA804CF@kernel.crashing.org>
* Kumar Gala | 2008-04-10 09:46:39 [-0500]:
>>This is a modified entry I found in the documentation for the 8544.
>>
>>Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
>>---
>>arch/powerpc/boot/dts/mpc8544ds.dts | 41 +++++++++++++++++++++
>>+++++++++
>>arch/powerpc/platforms/85xx/mpc85xx_ds.c | 13 +++++++++
>>2 files changed, 54 insertions(+), 0 deletions(-)
>
>applied.
Thank you.
>I also added updating the defconfig to enable the driver by default.
I just noticed that commit 049c9d455 renamed the ids. I couldn't find
this commit in your git tree. Did you rename the ids in the .dts file
(or want me to do this)?
>- k
Sebastian
^ permalink raw reply
* ppc64 build issue
From: Kumar Gala @ 2008-04-10 15:01 UTC (permalink / raw)
To: ppc-dev list
anyone looking into this?
http://kisskb.ellerman.id.au/kisskb/buildresult/23299/
Its really a Kconfig issue.
- k
^ permalink raw reply
* Re: [PATCH v2] [POWER] mpc85xx_ds add DMA engine to the DT and parse it.
From: Kumar Gala @ 2008-04-10 14:46 UTC (permalink / raw)
To: Sebastian Siewior; +Cc: linuxppc-embedded
In-Reply-To: <20080314230130.GA6812@www.tglx.de>
On Mar 14, 2008, at 6:01 PM, Sebastian Siewior wrote:
> This is a modified entry I found in the documentation for the 8544.
>
> Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
> ---
> arch/powerpc/boot/dts/mpc8544ds.dts | 41 +++++++++++++++++++++
> +++++++++
> arch/powerpc/platforms/85xx/mpc85xx_ds.c | 13 +++++++++
> 2 files changed, 54 insertions(+), 0 deletions(-)
applied.
I also added updating the defconfig to enable the driver by default.
- k
^ permalink raw reply
* Re: Patches added to powerpc.git powerpc-next and master branches
From: Kumar Gala @ 2008-04-10 14:44 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: linuxppc-dev, paulus
In-Reply-To: <200804101346.32376.laurentp@cse-semaphore.com>
On Apr 10, 2008, at 6:46 AM, Laurent Pinchart wrote:
> Hi Paul,
>
> could you please add the following patches ?
>
> [PATCHv4 1/5] cpm_uart: Allocate DPRAM memory for SMC ports on CPM2-
> based
> platforms.
> http://ozlabs.org/pipermail/linuxppc-dev/2008-April/053858.html
>
> [PATCHv4 2/5] powerpc: Add bootwrapper function to get virtual reg
> from the
> device tree.
> http://ozlabs.org/pipermail/linuxppc-dev/2008-April/053859.html
>
> [PATCHv4 3/5] cpm-serial: Relocate CPM buffer descriptors and SMC
> parameter
> ram.
> http://ozlabs.org/pipermail/linuxppc-dev/2008-April/053860.html
>
> [PATCHv4 4/5] ep8248e: Reference SMC parameter RAM base in the
> device tree.
> http://ozlabs.org/pipermail/linuxppc-dev/2008-April/053862.html
>
> [PATCHv4 5/5] cpm2: Reset the CPM when early debugging is not enabled.
> http://ozlabs.org/pipermail/linuxppc-dev/2008-April/053861.html
Your patches still have mailer issues when I try to apply them.
If you want to go back and forth privately so we can figure out what's
going on.
- k
^ permalink raw reply
* Re: Patches added to powerpc.git powerpc-next and master branches
From: Kumar Gala @ 2008-04-10 14:33 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: linuxppc-dev, Paul Mackerras
In-Reply-To: <200804101628.49877.laurentp@cse-semaphore.com>
On Apr 10, 2008, at 9:28 AM, Laurent Pinchart wrote:
> On Thursday 10 April 2008 16:11, Kumar Gala wrote:
>>
>> On Apr 10, 2008, at 7:32 AM, Paul Mackerras wrote:
>>> Laurent Pinchart writes:
>>>
>>>> could you please add the following patches ?
>>>
>>> Sure, if Kumar acks them, since they are all 8xxx-related as far
>>> as I
>>> can see (with the exception of the part of 2/5 that adds the new
>>> dt_get_virtual_reg function). Or Kumar can put them in his tree.
>>
>> I'll deal with them. There are a larger number of CPM/8xxx related
>> patches that I need to go through.
>
> Is there a chance they could go in 2.6.26 ?
Yes that's the idea :)
- k
^ permalink raw reply
* Re: [PATCH 1 of 3] [POWERPC 44x] Export tlb_44x_hwater for KVM
From: Josh Boyer @ 2008-04-10 14:30 UTC (permalink / raw)
To: Hollis Blanchard; +Cc: kvm-devel, linuxppc-dev, kvm-ppc-devel
In-Reply-To: <d1804f03574745f4f8f5.1207601612@localhost.localdomain>
On Mon, 07 Apr 2008 15:53:32 -0500
Hollis Blanchard <hollisb@us.ibm.com> wrote:
> 1 file changed, 2 insertions(+)
> include/asm-powerpc/mmu-44x.h | 2 ++
>
>
> PowerPC 440 KVM needs to know how many TLB entries are used for the host kernel
> linear mapping (it does not modify these mappings when switching between guest
> and host execution).
>
> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Acked-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
>
> diff --git a/include/asm-powerpc/mmu-44x.h b/include/asm-powerpc/mmu-44x.h
> --- a/include/asm-powerpc/mmu-44x.h
> +++ b/include/asm-powerpc/mmu-44x.h
> @@ -53,6 +53,8 @@
>
> #ifndef __ASSEMBLY__
>
> +extern unsigned int tlb_44x_hwater;
> +
> typedef unsigned long long phys_addr_t;
>
> typedef struct {
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
^ permalink raw reply
* Re: Patches added to powerpc.git powerpc-next and master branches
From: Laurent Pinchart @ 2008-04-10 14:28 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-dev, Paul Mackerras
In-Reply-To: <EA6AD0FF-DBB4-4835-A77B-EE337BAB53E2@kernel.crashing.org>
[-- Attachment #1: Type: text/plain, Size: 745 bytes --]
On Thursday 10 April 2008 16:11, Kumar Gala wrote:
>
> On Apr 10, 2008, at 7:32 AM, Paul Mackerras wrote:
> > Laurent Pinchart writes:
> >
> >> could you please add the following patches ?
> >
> > Sure, if Kumar acks them, since they are all 8xxx-related as far as I
> > can see (with the exception of the part of 2/5 that adds the new
> > dt_get_virtual_reg function). Or Kumar can put them in his tree.
>
> I'll deal with them. There are a larger number of CPM/8xxx related
> patches that I need to go through.
Is there a chance they could go in 2.6.26 ?
Best regards,
--
Laurent Pinchart
CSE Semaphore Belgium
Chaussee de Bruxelles, 732A
B-1410 Waterloo
Belgium
T +32 (2) 387 42 59
F +32 (2) 387 42 75
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply
* Re: [PATCH 0 of 3] KVM for PowerPC 440
From: Hollis Blanchard @ 2008-04-10 14:26 UTC (permalink / raw)
To: Josh Boyer; +Cc: kvm-devel, linuxppc-dev, kvm-ppc-devel
In-Reply-To: <20080410065518.46979767@zod.rchland.ibm.com>
On Thursday 10 April 2008 06:55:18 Josh Boyer wrote:
> On Mon, 07 Apr 2008 15:53:31 -0500
>
> Hollis Blanchard <hollisb@us.ibm.com> wrote:
> > Implement initial support for KVM for PowerPC 440. There are just two
> > small prerequisite patches, and then the bulk of the code can't be split
> > easily.
> >
> > Please review; I would like to submit these for 2.6.26. There is plenty
> > of work to do, both functional and optimization, but this code is
> > sufficient to run unmodified 440 Linux guests on a 440 Linux host. What's
> > your favorite bike shed color?
>
> Who's tree are you looking to get this patch set into?
Since the only PPC-specific change is patch 1, if I can get your Acked-by for
it I will send it via Avi.
--
Hollis Blanchard
IBM Linux Technology Center
^ permalink raw reply
* patches for 2.6.26
From: Kumar Gala @ 2008-04-10 14:21 UTC (permalink / raw)
To: ppc-dev list
Guy's
if you have work you want in 2.6.26 related to Freescale PPC's let me
know. Ideally you can provide links to the patches in http://patchwork.ozlabs.org/linuxppc/
thanks
- k
^ permalink raw reply
* Re: Patches added to powerpc.git powerpc-next and master branches
From: Laurent Pinchart @ 2008-04-10 14:20 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-dev, paulus
In-Reply-To: <649E760F-1A32-46C3-AB61-8F5249BD1290@kernel.crashing.org>
[-- Attachment #1: Type: text/plain, Size: 352 bytes --]
Hi Kumar,
On Thursday 10 April 2008 16:10, Kumar Gala wrote:
> Laurent,
>
> The cpm/82xx ones should go via me.
Sorry, I didn't know that. I'll e-mail you directly next time.
Best regards,
--
Laurent Pinchart
CSE Semaphore Belgium
Chaussee de Bruxelles, 732A
B-1410 Waterloo
Belgium
T +32 (2) 387 42 59
F +32 (2) 387 42 75
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply
* Re: Patches added to powerpc.git powerpc-next and master branches
From: Kumar Gala @ 2008-04-10 14:11 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev
In-Reply-To: <18430.2296.189338.485646@cargo.ozlabs.ibm.com>
On Apr 10, 2008, at 7:32 AM, Paul Mackerras wrote:
> Laurent Pinchart writes:
>
>> could you please add the following patches ?
>
> Sure, if Kumar acks them, since they are all 8xxx-related as far as I
> can see (with the exception of the part of 2/5 that adds the new
> dt_get_virtual_reg function). Or Kumar can put them in his tree.
I'll deal with them. There are a larger number of CPM/8xxx related
patches that I need to go through.
- k
^ permalink raw reply
* Re: Patches added to powerpc.git powerpc-next and master branches
From: Kumar Gala @ 2008-04-10 14:10 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: linuxppc-dev, paulus
In-Reply-To: <200804101346.32376.laurentp@cse-semaphore.com>
Laurent,
The cpm/82xx ones should go via me.
- k
On Apr 10, 2008, at 6:46 AM, Laurent Pinchart wrote:
> Hi Paul,
>
> could you please add the following patches ?
>
> [PATCHv4 1/5] cpm_uart: Allocate DPRAM memory for SMC ports on CPM2-
> based
> platforms.
> http://ozlabs.org/pipermail/linuxppc-dev/2008-April/053858.html
>
> [PATCHv4 2/5] powerpc: Add bootwrapper function to get virtual reg
> from the
> device tree.
> http://ozlabs.org/pipermail/linuxppc-dev/2008-April/053859.html
>
> [PATCHv4 3/5] cpm-serial: Relocate CPM buffer descriptors and SMC
> parameter
> ram.
> http://ozlabs.org/pipermail/linuxppc-dev/2008-April/053860.html
>
> [PATCHv4 4/5] ep8248e: Reference SMC parameter RAM base in the
> device tree.
> http://ozlabs.org/pipermail/linuxppc-dev/2008-April/053862.html
>
> [PATCHv4 5/5] cpm2: Reset the CPM when early debugging is not enabled.
> http://ozlabs.org/pipermail/linuxppc-dev/2008-April/053861.html
>
> Thanks.
>
> Best regards,
>
> --
> Laurent Pinchart
> CSE Semaphore Belgium
>
> Chaussee de Bruxelles, 732A
> B-1410 Waterloo
> Belgium
>
> T +32 (2) 387 42 59
> F +32 (2) 387 42 75
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
^ permalink raw reply
* Re: [PATCH] [v5] Add idle wait support for 44x platforms
From: Arnd Bergmann @ 2008-04-10 13:44 UTC (permalink / raw)
To: linuxppc-dev; +Cc: kvm-ppc-devel
In-Reply-To: <df0f79b7b4ab628887c2.1207673354@thinkpadL>
On Tuesday 08 April 2008, Jerone Young wrote:
> +static struct sleep_mode modes[] =3D {
> +=A0=A0=A0=A0=A0=A0=A0{ .name =3D "wait", .entry =3D &ppc44x_idle },
> +=A0=A0=A0=A0=A0=A0=A0{ .name =3D "spin", .entry =3D NULL },
> +};
> +
> +int __init ppc44x_idle_init(void)
> +{
> +=A0=A0=A0=A0=A0=A0=A0void *func =3D modes[current_mode].entry;
> +=A0=A0=A0=A0=A0=A0=A0ppc_md.power_save =3D func;
> +=A0=A0=A0=A0=A0=A0=A0return 0;
> +}
> +
> +arch_initcall(ppc44x_idle_init);
> +
> +static int __init idle_param(char *p)
> +{=20
> +=A0=A0=A0=A0=A0=A0=A0int i;
> +
> +=A0=A0=A0=A0=A0=A0=A0for (i =3D 0; i < ARRAY_SIZE(modes); i++) {
> +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0if (!strcmp(modes[i].name, =
p)) {
> +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0cur=
rent_mode =3D i;
> +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0bre=
ak;
> +=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=A0=A0return 0;
> +}
> +
> +early_param("idle", idle_param);
ok, sorry to steal the show again, now that everyone seems to be happy
with the current code, but isn't this equivalent to the simpler
static int __init idle_param(char *p)
{
if (!strcmp(modes[i].name, "spin"))
ppc_md.power_save =3D NULL;
}
early_param("idle", idle_param);
if you statically initialize the ppc_md.power_save function to ppc44x_idle
in the platform setup files?
Arnd <><
^ permalink raw reply
* Re: State of the MPC5200 PSC AC97 driver
From: Robert Schwebel @ 2008-04-10 13:50 UTC (permalink / raw)
To: Marian Balakowicz; +Cc: linuxppc-dev, Sylvain Munaut, spitzauer_77
In-Reply-To: <47FDEF9B.5000506@semihalf.com>
On Thu, Apr 10, 2008 at 12:44:43PM +0200, Marian Balakowicz wrote:
> Last year you have posted a MPC5200 PSC AC97 driver patch
> "[PATCH 9/9] sound: Add support for Freescale MPC5200 AC97 interface."
> with the following comment:
>
> > Not quite a clean driver, but it get things done (well, mostly).
> > Only included to be able to test functionalityi/usage of
> > the BestComm driver.
>
> There are various FIXMEs and commented out code here and there.
> Could you elaborate a bit on the overall state of the driver's
> functionality,
> which areas need improvement and attention?
>
> Seems that you mainly tested BestComm with this driver, what was the
> overall
> BestComm performance, any issues here? Did you use any specific test setup
> involving some dedicated application, etc.?
>
> Did anyone else tried it and/or has a updated version or can share
> experience?
Sidenote: last time we tried (2.6.23.1), the AC97 driver didn't work,
tested on the phyCORE-MPC5200B-tiny board. No sound, just a little bit
noise which can be muted with the mixer. And music finishes about 7
times as fast as it usually should. So we didn't manage to make it work
yet.
Robert
--
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hannoversche Str. 2, 31134 Hildesheim, Germany
Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9
^ permalink raw reply
* Re: [PATCH] [POWERPC] 4xx: Add endpoint support to 4xx PCIe driver
From: Stefan Roese @ 2008-04-10 13:37 UTC (permalink / raw)
To: benh; +Cc: linuxppc-dev
In-Reply-To: <1207830182.6958.11.camel@pasglop>
On Thursday 10 April 2008, Benjamin Herrenschmidt wrote:
> > Understood. But for this "dynamic" root-complex/endpoint configuration as
> > implemented with the current version of the patch, I can't change the
> > PCIe node in the dts from root-complex mode to endpoint mode, since I
> > would loose root-complex functionality. Perhaps I'm missing something
> > here.
>
> Well, I would expect the firmware (ie. uboot) to provide the right
> device-node type...
Now I have to re-check to see what you really have in mind. Do you think about
creating two different PCIe nodes, one for root-complex and one for endpoint
functionality? Or is your idea to add a property to the existing PCIe
device-tree node (like "mode = endpoint"), or perhaps change the device_type
from "pci" to "pci-endpoint"? I would vote for the latter.
Best regards,
Stefan
^ permalink raw reply
* Re: ppc405ep emac driver loading problem
From: M B @ 2008-04-10 13:03 UTC (permalink / raw)
To: Josh Boyer; +Cc: ppc-dev, Stefan Roese
In-Reply-To: <20080410065211.7befbfba@zod.rchland.ibm.com>
On Thu, Apr 10, 2008 at 1:52 PM, Josh Boyer <jwboyer@linux.vnet.ibm.com> wrote:
> You have to call of_platform_bus_probe with the various bus types for
> your board. See the top few functions of:
>
> arch/powerpc/platforms/40x/walnut.c
Well I did this, but I made a typo (plb4 instead of plb3).
So thanks a lot for making me recheck this section. I don't know how
long I would have searched for this else.
Regards
Markus
^ permalink raw reply
* Re: Patches added to powerpc.git powerpc-next and master branches
From: Paul Mackerras @ 2008-04-10 12:32 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: linuxppc-dev
In-Reply-To: <200804101346.32376.laurentp@cse-semaphore.com>
Laurent Pinchart writes:
> could you please add the following patches ?
Sure, if Kumar acks them, since they are all 8xxx-related as far as I
can see (with the exception of the part of 2/5 that adds the new
dt_get_virtual_reg function). Or Kumar can put them in his tree.
Paul.
^ permalink raw reply
* Re: [PATCH] [POWERPC] 4xx: Add endpoint support to 4xx PCIe driver
From: Benjamin Herrenschmidt @ 2008-04-10 12:23 UTC (permalink / raw)
To: Stefan Roese; +Cc: linuxppc-dev
In-Reply-To: <200804101359.32095.sr@denx.de>
On Thu, 2008-04-10 at 13:59 +0200, Stefan Roese wrote:
> Understood. But for this "dynamic" root-complex/endpoint configuration as
> implemented with the current version of the patch, I can't change the PCIe
> node in the dts from root-complex mode to endpoint mode, since I would loose
> root-complex functionality. Perhaps I'm missing something here.
Well, I would expect the firmware (ie. uboot) to provide the right
device-node type...
Ben.
^ permalink raw reply
* Re: [PATCH 5/6] [POWERPC] properly declare onstack completion in iseries veth
From: Benjamin Herrenschmidt @ 2008-04-10 12:21 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linuxppc-dev, Paul Mackerras
In-Reply-To: <20080410105636.GA10048@lst.de>
On Thu, 2008-04-10 at 12:56 +0200, Christoph Hellwig wrote:
> On Thu, Apr 10, 2008 at 07:03:22AM +1000, Benjamin Herrenschmidt wrote:
> > I don't think there's any difference between the _ONSTACK variant
> > and the normal one without lockdep, is there ?
>
> No there's not. Thus it's a guaranteed no-op and can easily go in.
Heh, I won't argue either way :-) It's Paul's call at this stage.
Cheers,
Ben.
^ permalink raw reply
* Re: [PATCH] [POWERPC] 4xx: Add endpoint support to 4xx PCIe driver
From: Stefan Roese @ 2008-04-10 11:59 UTC (permalink / raw)
To: benh; +Cc: linuxppc-dev
In-Reply-To: <1207823735.6958.7.camel@pasglop>
On Thursday 10 April 2008, Benjamin Herrenschmidt wrote:
> On Thu, 2008-04-10 at 12:21 +0200, Stefan Roese wrote:
> > Sure, this would be optimal. But frankly, I currently have no need for
> > this
> > non U-Boot mode, and therefore I didn't implement it. This can be
> > added later
> > when really needed don't you think?
>
> It can... but on the other hand, it's not hard :-)
But it takes time. And time is as always short. :)
> > Good. But again, I would really prefer to first include this U-Boot
> > style
> > endpoint support and later add this independent device tree endpoint
> > configuration when really needed.
>
> Well, you are the one with a use case... but I do think we should
> differenciate a PCI in host mode vs. endpoint mode right away. We don't
> want the PCI stack from kicking in at all in endpoint mode, we don't
> want to bother with creating the PCI infrastructure and config space
> accessors etc...
Understood. But for this "dynamic" root-complex/endpoint configuration as
implemented with the current version of the patch, I can't change the PCIe
node in the dts from root-complex mode to endpoint mode, since I would loose
root-complex functionality. Perhaps I'm missing something here.
Best regards,
Stefan
^ permalink raw reply
* Re: [PATCH 0 of 3] KVM for PowerPC 440
From: Josh Boyer @ 2008-04-10 11:55 UTC (permalink / raw)
To: Hollis Blanchard; +Cc: kvm-devel, linuxppc-dev, kvm-ppc-devel
In-Reply-To: <patchbomb.1207601611@localhost.localdomain>
On Mon, 07 Apr 2008 15:53:31 -0500
Hollis Blanchard <hollisb@us.ibm.com> wrote:
> Implement initial support for KVM for PowerPC 440. There are just two small
> prerequisite patches, and then the bulk of the code can't be split easily.
>
> Please review; I would like to submit these for 2.6.26. There is plenty of work
> to do, both functional and optimization, but this code is sufficient to run
> unmodified 440 Linux guests on a 440 Linux host. What's your favorite bike shed
> color?
Who's tree are you looking to get this patch set into?
josh
^ permalink raw reply
* Re: [PATCH] [v5] Add idle wait support for 44x platforms
From: Josh Boyer @ 2008-04-10 11:53 UTC (permalink / raw)
To: Jerone Young; +Cc: kvm-ppc-devel, linuxppc-dev
In-Reply-To: <df0f79b7b4ab628887c2.1207673354@thinkpadL>
On Tue, 08 Apr 2008 11:49:14 -0500
Jerone Young <jyoung5@us.ibm.com> wrote:
> 2 files changed, 77 insertions(+), 1 deletion(-)
> arch/powerpc/platforms/44x/Makefile | 2
> arch/powerpc/platforms/44x/idle.c | 76 +++++++++++++++++++++++++++++++++++
>
>
> Updates: Now setting MSR_WE is now default
> Tested on hardware platforms bamboo & sequioa and appears
> things are working fine on actually hardware!
>
> This patch adds the ability for the CPU to go into wait state while in cpu_idle loop. This helps virtulization solutions know when the guest Linux kernel is in an idle state. There are two ways to do it.
>
> Command line
> idle=spin <-- CPU will spin
> idle=wait <-- set CPU into wait state when idle (default)
>
>
> Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Looks great. I'll add it to my tree shortly.
josh
^ permalink raw reply
* Re: ppc405ep emac driver loading problem
From: Josh Boyer @ 2008-04-10 11:52 UTC (permalink / raw)
To: M B; +Cc: ppc-dev
In-Reply-To: <6a6049b80804100337m6ab33fd5wd3cf9524e7f6d721@mail.gmail.com>
On Thu, 10 Apr 2008 12:37:45 +0200
"M B" <super.firetwister@googlemail.com> wrote:
> Hi,
> I'm porting vanilla 2.6.25-rc8 (arch=powerpc) to a new board. UART is
> already working in the kernel and Uboot with UART and ethernet is also
> working.
> But I can't get the emac driver (ibm_newemac) working under Linux.
> On boot emac_init get's called and exits normally, but no probe or
> open will get called and no network devices (except lo) are known to
> the kernel.
>
> Do I have to do something more, than adding the mals and emacs to the
> device tree? I haven't seen any 40x or 44x board in the platforms
> folder doing something special for the emac.
>
> Any hints?
You have to call of_platform_bus_probe with the various bus types for
your board. See the top few functions of:
arch/powerpc/platforms/40x/walnut.c
for an example.
josh
^ permalink raw reply
page: next (older) | prev (newer) | latest
- recent:[subjects (threaded)|topics (new)|topics (active)]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox