* Re: [Cbe-oss-dev] [PATCH 11/13] cell: split out board specific files
From: Arnd Bergmann @ 2006-05-03 0:18 UTC (permalink / raw)
To: Segher Boessenkool; +Cc: linuxppc-dev, cbe-oss-dev, linux-kernel
In-Reply-To: <801072F8-7701-4BD7-81FB-A8C1AA534C2E@kernel.crashing.org>
Am Wednesday 03 May 2006 01:38 schrieb Segher Boessenkool:
> > - it requires a few properties in the device tree (local-mac-address,
> > =A0 firmware), so it should also depend on PPC
>
> The portions of code that require OF should have appropriate #ifdef =A0
> guards.
Why should we? Getting the mac address and the firmware into the
chip is rather essential to make it work. When there is an #ifdef
around that code, it will only produce a non-working driver that can
be compiled everywhere instead of a driver that can only be compiled
on platforms where it has a chance of working.
If someone has the need to make it work somewhere else, it's easy
enough to change to code to whatever other method is used to set up
the chip.
Arnd <><
^ permalink raw reply
* Re: [Cbe-oss-dev] [PATCH 11/13] cell: split out board specific files
From: Paul Mackerras @ 2006-05-03 2:46 UTC (permalink / raw)
To: Segher Boessenkool; +Cc: linuxppc-dev, cbe-oss-dev, Arnd Bergmann, linux-kernel
In-Reply-To: <801072F8-7701-4BD7-81FB-A8C1AA534C2E@kernel.crashing.org>
Segher Boessenkool writes:
> > Well, it could run on other platforms, except:
> >
> > - it requires a few properties in the device tree (local-mac-address,
> > firmware), so it should also depend on PPC
>
> The portions of code that require OF should have appropriate #ifdef
> guards.
So you're suggesting that we change the Makefile so we can *add*
ifdefs? Usually we do it the other way around. :)
Paul.
^ permalink raw reply
* Re: [Cbe-oss-dev] [PATCH 11/13] cell: split out board specific files
From: Segher Boessenkool @ 2006-05-03 6:28 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev, cbe-oss-dev, Arnd Bergmann, linux-kernel
In-Reply-To: <17496.6519.733076.663815@cargo.ozlabs.ibm.com>
>>> Well, it could run on other platforms, except:
>>>
>>> - it requires a few properties in the device tree (local-mac-
>>> address,
>>> firmware), so it should also depend on PPC
>>
>> The portions of code that require OF should have appropriate #ifdef
>> guards.
>
> So you're suggesting that we change the Makefile so we can *add*
> ifdefs? Usually we do it the other way around. :)
Yeah, what was I thinking. So use some platform hook instead.
But Arnd of course is right; if the driver (currently) only works
on a certain platform, just mark it as such in the Makefile (erm,
Kconfig file).
Hey, we should probably do that with 90% of all drivers. But that
is a discussion for some other day :-)
Segher
^ permalink raw reply
* Re: question on why hvc_console calls hvc_poll() in hvc_handle_interrupt().
From: Michael Ellerman @ 2006-05-03 7:42 UTC (permalink / raw)
To: Ryan Arnold; +Cc: linuxppc-dev, cbe-oss-dev, Milton Miller
In-Reply-To: <1145564752.29313.185.camel@localhost.localdomain>
[-- Attachment #1: Type: text/plain, Size: 867 bytes --]
On Thu, 2006-04-20 at 15:25 -0500, Ryan Arnold wrote:
> While on the topic of hvc_console; I think I saw a patch go through a
> while ago that added hvc_poll() to hvc_handle_interrupt(). I can't say
> I'm too pleased with that addition. I did my best to keep locking
> outside of the interrupt handler.
>
> I wonder if that change was tested on a power5 lpar system with several
> secondary VSerial Server adapters (hvc1-hvcn) being hammered with data.
> I'm pretty paranoid about deadlock, hence the reason for keeping locking
> out of the int. handler.
That was Milton's patch. No idea whether it's correct/tested.
cheers
--
Michael Ellerman
IBM OzLabs
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply
* mpc8270 : i2c support
From: jfaslist @ 2006-05-03 12:33 UTC (permalink / raw)
To: linuxppc-embedded
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii; format=flowed, Size: 1153 bytes --]
Hi,
We have designed a system using a mpc8270 cpu. The firmware we
use is u-boot and we can access all our i2c devices from u-boot.
But when we try to access i2c devices from under linux 2.6 using
the /dev/i2c-0 special file we get an ENODEV on opening that
file. I think it is because we lack an adapter driver.
If I look in the official kernel, it looks like the adapter
driver for the mpc8270 i2c system is
./drivers/i2c/busses/i2c-mpc.c. Is this correct?
Why is this driver registering as a platform driver and not as a
i2c bus driver?
In DENX ELDK there is also a i2c-mpc8260.c, but we couldn't get
that to work either.
What should I do to be able to access i2c devices using the
/dev/i2c-0 file? I feel I need to modify the i2c adapter driver
to follow the driver model, but in what ways?
Thx for any help,
-jf simon
___________________________________________________________________________
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel.
Rendez-vous sur http://fr.yahoo.com/set
^ permalink raw reply
* Re: [PATCH 00/16] ehca: IBM eHCA InfiniBand Device Driver
From: Andrew Morton @ 2006-05-03 12:43 UTC (permalink / raw)
To: Jörn Engel
Cc: schickhj, linux-kernel, openib-general, linuxppc-dev, RAISCH,
HNGUYEN, MEDER
In-Reply-To: <20060427125726.GK32127@wohnheim.fh-wedel.de>
On Thu, 27 Apr 2006 14:57:26 +0200
J=F6rn Engel <joern@wohnheim.fh-wedel.de> wrote:
> Don't expect much cheer and rejoicing over this. I suspect that akpm
> or Linus will either want the 17 patches merged into one or have a
> patchset where every single patch leaves the kernel in a working
> state, including working eHCA driver.
It doesn't matter in this case. The "don't break the build at any stage of
a series" preference exists because it's extremely irritating to hit a
won't-build in the middle of a git-bisect operation.
But anybody who is bisection searching for a bug won't want to enable a
brand-new driver in their config, so no problems.
^ permalink raw reply
* MPC5200 I2C unstable?
From: Kimmo Surakka @ 2006-05-03 13:08 UTC (permalink / raw)
To: linuxppc-embedded
Hi,
I'm using a MPC5200 based board (namely TQM5200) and the
linuxppc_2_4_devel-2005-10-25-1440 kernel from denx.de. To get the serial
ports more stable, I've applied the serial port patch by Achim Machura (can
be found in
http://marc.theaimsgroup.com/?l=linuxppc-embedded&m=112901824515097&w=2). The
patch needed small adjustments, but nothing too large -- mostly different
line numbers.
Also, to get the first I2C interface to work, I've had to change the file
drivers/i2c/i2c-tqm5200.c followingly:
-#define MPC5xxx_I2C1_ENABLE 0 /* Disable */
+#define MPC5xxx_I2C1_ENABLE 1 /* Enable */
The code compiles OK, but the I2C bus gets stuck after a short while. Has
anyone else experienced something similar? I tried to Google for information
but didn't find anything relevant. Maybe I just didn't know the right
keywords to search for?
Thanks in advance,
Kimmo Surakka
This message has been scanned by F-Secure Anti-Virus
### OXFORD INSTRUMENTS http://www.oxford-instruments.com/ ###
Unless stated above to be non-confidential, this E-mail and any
attachments are private and confidential and are for the addressee
only and may not be used, copied or disclosed save to the addressee.
If you have received this E-mail in error please notify us upon receipt
and delete it from your records. Internet communications are not secure
and Oxford Instruments is not responsible for their abuse by third
parties nor for any alteration or corruption in transmission.
^ permalink raw reply
* Re: [PATCH 13/16] ehca: firmware InfiniBand interface
From: Christoph Raisch @ 2006-05-03 13:56 UTC (permalink / raw)
To: Paul Mackerras
Cc: linux-kernel, openib-general, linuxppc-dev, Hoang-Nam Nguyen,
Marcus Eder, Jörn Engel
In-Reply-To: <17489.18630.75412.66803@cargo.ozlabs.ibm.com>
Paul Mackerras <paulus@samba.org> wrote on 28.04.2006 00:42:14:
> Mind you, since a lot of the parameters are used to return individual
> bytes or half-words, which are then put into structures, it might be
> better to pass the pointers to the structures and let the wrapper put
> the values straight into the structures.
>
> Paul.
As Paul already mentioned we can't change the firmware interface.
...so we would propose the following solution:
For the two h_call wrappers with more than 8 parameters we'll change to the
following signature:
hipz_h_alloc_resource_cq(const struct ipz_adapter_handle adapter_handle,
struct ehca_cq *cq, /* used for input and output
parameters */
const struct ipz_eq_handle eq_handle);
hipz_h_alloc_resource_qp(const struct ipz_adapter_handle adapter_handle,
struct ehca_qp * qp, /* used for input and output
parameters */
struct ehca_alloc_qp_params * param); /*input
params not in ehca_qp*/
hipz_h_alloc_resource_mr(const struct ipz_adapter_handle adapter_handle,
struct ehca_mr *mr,
const u64 vaddr,
const u64 length,
const u32 access_ctrl,
const struct ipz_pd pd);
u64 hipz_h_query_mr(const struct ipz_adapter_handle adapter_handle,
struct ehca_mr *mr);
u64 hipz_h_reregister_pmr(const struct ipz_adapter_handle adapter_handle,
struct ehca_mr *mr,
const u64 vaddr_in,
const u64 length,
const u32 access_ctrl,
const struct ipz_pd pd,
const u64 mr_addr_cb);
u64 hipz_h_register_smr(const struct ipz_adapter_handle adapter_handle,
struct ehca_mr *mr,
struct ehca_mr *orig_mr,
const u64 vaddr_in,
const u32 access_ctrl,
const struct ipz_pd pd);
What do you think about this solution?
Gruss / Regards . . . Christoph Raisch
^ permalink raw reply
* Impossible to open the root console with 2.6.15
From: Jean-Marie Teuler @ 2006-05-03 13:36 UTC (permalink / raw)
To: linuxppc-embedded
Hi there,
I am trying to use ELDK 4.0 on my TQM860L board.
I have compiled the included 2.6.15 kernel with reasonable options, but
when I try to boot it, I do not get the prompt after the message
"Uncompressing Kernel Image ... OK"
Actually, I know that the system is not hanging because
1) I see there is network traffic between the board and the NFS server
2) There are messages written in /var/log/messages, and I see that the
initialization is completed (even my /etc/rc.local has been executed)
So I suspect that the problem comes from reading/writing on the console.
As my /etc/inittab has the line
...............................................
3:2345:respawn:/sbin/mingetty --noclear console
...............................................
I have put a wrapper around the binary "mingetty" and I have checked
that indeed it is called... only that I do not see anything on the
screen.
I am pretty sure that this problem is related to the kernel because if I
boot on a 2.4 kernel with the same root filesystem everything works
fine.
With the 2.4 kernel I had the following messages in /var/log/messages
.................................................................
Jan 22 12:16:34 tqm kernel: ttyS0 at 0x0280 is on SMC1 using BRG1
Jan 22 12:16:34 tqm kernel: ttyS1 at 0x0380 is on SMC2 using BRG2
.................................................................
and with the 2.6
......................................................................
Jan 26 20:25:26 tqm kernel: ttyCPM0 at MMIO 0xfff00a80 (irq = 20) is a
CPM UART
Jan 26 20:25:26 tqm kernel: ttyCPM1 at MMIO 0xfff00a90 (irq = 19) is a
CPM UART
......................................................................
I have tried to create these devices with the following characteristics:
......................................................................
crw-rw---- 1 root root 204, 46 mai 3 14:43 dev/ttyCPM0
crw-rw---- 1 root root 204, 47 mai 3 14:43 dev/ttyCPM1
......................................................................
but to no avail.
I have seen that there are many new options related to serial lines in
the new kernel, so I guess that I am doing something wrong.
Thanks in advance for any hint.
Jean-Marie Teuler
........................................................................
: Jean-Marie Teuler : :
: Laboratoire de Chimie Physique : Téléphone (33) (1) 69 15 42 05 :
: Université de Paris-sud : Télécopie (33) (1) 69 15 61 88 :
: Bâtiment 349 : Mél teuler@lcp.u-psud.fr :
: 91 405 Orsay Cedex : Web http://www.lcp.u-psud.fr :
........................................................................
^ permalink raw reply
* Re: MPC5200 I2C unstable?
From: Arno Geissel @ 2006-05-03 14:15 UTC (permalink / raw)
To: linuxppc-embedded
In-Reply-To: <200605031608.47579.kimmo.surakka@oxinst.fi>
As far as I know there are hardware problems on the MPC5200 I2C
interface. They should be solved in the revision B
Arno
> Hi,
>
> I'm using a MPC5200 based board (namely TQM5200) and the
> linuxppc_2_4_devel-2005-10-25-1440 kernel from denx.de. To get the serial
> ports more stable, I've applied the serial port patch by Achim Machura (can
> be found in
> http://marc.theaimsgroup.com/?l=linuxppc-embedded&m=112901824515097&w=2).
> The patch needed small adjustments, but nothing too large -- mostly
> different line numbers.
>
> Also, to get the first I2C interface to work, I've had to change the file
> drivers/i2c/i2c-tqm5200.c followingly:
>
> -#define MPC5xxx_I2C1_ENABLE 0 /* Disable */
> +#define MPC5xxx_I2C1_ENABLE 1 /* Enable */
>
> The code compiles OK, but the I2C bus gets stuck after a short while. Has
> anyone else experienced something similar? I tried to Google for
> information but didn't find anything relevant. Maybe I just didn't know the
> right keywords to search for?
>
> Thanks in advance,
>
> Kimmo Surakka
>
> This message has been scanned by F-Secure Anti-Virus
>
> ### OXFORD INSTRUMENTS http://www.oxford-instruments.com/ ###
>
> Unless stated above to be non-confidential, this E-mail and any
> attachments are private and confidential and are for the addressee
> only and may not be used, copied or disclosed save to the addressee.
> If you have received this E-mail in error please notify us upon receipt
> and delete it from your records. Internet communications are not secure
> and Oxford Instruments is not responsible for their abuse by third
> parties nor for any alteration or corruption in transmission.
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
^ permalink raw reply
* kernel debugging
From: Steve Iribarne (GMail) @ 2006-05-03 14:11 UTC (permalink / raw)
To: linuxppc-embedded
Hello.
This is more a general question to see what others do out here. I am
begining to get sick of printk debugging. I work on two different PPC
boards. An 860 and 8260.
I want to get some feedback on the best kernel debugger to use. I
have been looking at three.
1. kgdb
2. kdb
3. UML
I am leaning towards kgdb, but before I jump in I thought I'd put this
out to the best group I could think of linuxppc. Because I am sure
most of you are using something! :)
Thanks.
-stv
^ permalink raw reply
* Performance improvement Montavista 3.0 MPC8260 by D-cache enable
From: Om Vadlapatla @ 2006-05-03 14:26 UTC (permalink / raw)
To: linuxppc-embedded
I want to confirm if the Montavista linux version 3.0
for the MPC8260 has the data cache working.
I work on an SDH unit that uses 2 channels and we are
about to recieve a shipment of new harware that has to
support 4 serial optical channels.
I need to confirm if the version of linux we are using
has the data chache enabled as I am about to spend a
lot of time on the data cache.
Thank you,
Best Regards,
Om Vadlapatla
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply
* Re: Maple freezing on PCI Target-Abort
From: jfaslist @ 2006-05-03 15:13 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc64-dev
In-Reply-To: <1139011975.8543.4.camel@localhost.localdomain>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii; format=flowed, Size: 4211 bytes --]
Hi,
Back on this old posting, we have made progress thanks to IBM help, the
Maple platform no longer freezes on a (PIO) PCI target-abort. On such an
occurence we now run the machine check excpetion handler, just like you
said.
Here is what we got from IBM:
"...
Engineering has verified following behavior relating to Machine Check
and Check Stop. CPC925 documentation will be updated.
1. With APIMASK register DerrEXCP set to 1 the target abort on the
PCI bus causes P_CSTP signal to be driven low.
2. With APIMASK register DerrEXCP set to 0 and APIEMASK register
DerrEXCP set to 0 the target abort on the PCI bus causes machine
check interrupt. In this case the CHP_FAULT signal continues to be
driven high. It appears that the EI interface has a way of
signaling machine check since both pins P_CSTP and CHP_FAULT are
disabled through APIMASK and APIEMASK.
3. With APIMASK register DerrEXCP set to 0 and APIEMASK register
DerrEXCP set to 1 the target abort on the PCI bus causes machine
check interrupt. In this case the CHP_FAULT signal is driven low
until the APIEXCP is read. After APIEXCP register is read the
CHP_FAULT signal is again driven high. Since the CHP_FAULT pin is
not connected to the PPC970FX MCP_B input pin EI bus has a way of
signaling machine check through EI interface...."
Setting the CPC925 according to item 3, fixes the problem. I give this
for the record, since the fix should be in PIBS, I think.
I still don't like the fact that a user process causing the condition
causes the system to enter the "mon" debugger rather than being killed
w/ SIGBUS/SIGSEGV. I guess the correct way for a fix would be to write a
Maple specific machine_check exception?
Thanks,
-jf simon
Benjamin Herrenschmidt wrote:
>On Fri, 2006-02-03 at 16:58 +0100, jfaslist wrote:
>
>
>>Hi,
>>Yes, we are going to dig into all this CPC925 and Processor Interface
>>initialization.
>>Note that I checked that both MSR_ME and MSR_RI were set prior to
>>triggering the PCI Target-Abort.
>>
>>-MSR_ME: If not set the CPU will "checkstop" on a machine chaeck.
>>-MSR_RI: So that the exception is recoverable.
>>
>>Regarding MSR_RI, this should always be set, I think?
>>
>>
>
>Yes, MSR:RI is always set by the kernel except in the rare code path
>where taking an exception is actually unsafe (like in some of the
>exception handling code itself)
>
>Ben.
>
>
>
>
-------- Original Message --------
Subject: Re: Maple freezing on PCI Target-Abort
Date: Fri, 03 Feb 2006 12:42:37 +1100
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: jfaslist <jfaslist@yahoo.fr>
CC: linuxppc64-dev@ozlabs.org
References: <43E23B4A.4020402@yahoo.fr>
> -What exception vector is taking care of a DERR excp? From what I can
> see it seems to be the "machine check" vector. But that seems a bit
> drastic to me. After all this is just a PCI target abort.
I would expect a machine check yes.
> -I expect that the normal behavior would be for the kernel to send a
> signal termination to the user process which caused the PIO READ PCI
> cycle (from a previously mmap()'ed VMA address). Is it doable on this
> platform? Since a READ operation is coupled by nature, I think this is
> the only acceptable way.
It should SIGBUS except if the problem occurred in the kernel. I don't
know why it's not doing so, maybe you are hitting an issue/errata or
misconfiguration of the 925 ?
> I have tried to set the MSR[RI] bit before doing the PCI cycle, but it
> didn't change change anything. Also on our design we disconnect the
> CPC925 checkstop pin from the 970 machine check pin.(see page 39 of
> cpc925 user's manual). So a DERR shouldn't cause a machine check I would
> think.
>
> I realize that these questions are very H/W related but couldn't find
> the answer in IBM doc.
___________________________________________________________________________
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel.
Rendez-vous sur http://fr.yahoo.com/set
^ permalink raw reply
* Re: Maple freezing on PCI Target-Abort
From: Segher Boessenkool @ 2006-05-03 15:40 UTC (permalink / raw)
To: jfaslist; +Cc: linuxppc64-dev
In-Reply-To: <4458C89B.9070505@yahoo.fr>
> I still don't like the fact that a user process causing the
> condition causes the system to enter the "mon" debugger rather than
> being killed w/ SIGBUS/SIGSEGV. I guess the correct way for a fix
> would be to write a Maple specific machine_check exception?
arch/powerpc/kernel/traps.c:machine_check_exception() does
check for user mode, and if so, throws SIGBUS. It doesn't
do this if CONFIG_PPC64 though; that's a bug.
I'm not sure if the user-mode check should be done before
or after the machine-specific handler though. Ben?
Segher
^ permalink raw reply
* Re: kernel debugging
From: David Hawkins @ 2006-05-03 16:06 UTC (permalink / raw)
To: Steve Iribarne (GMail); +Cc: linuxppc-embedded
In-Reply-To: <b4b98b690605030711q69426a59j28db8e38be73f1f0@mail.gmail.com>
> This is more a general question to see what others do out here. I am
> begining to get sick of printk debugging. I work on two different PPC
> boards. An 860 and 8260.
>
> I want to get some feedback on the best kernel debugger to use. I
> have been looking at three.
>
> 1. kgdb
> 2. kdb
> 3. UML
>
> I am leaning towards kgdb, but before I jump in I thought I'd put this
> out to the best group I could think of linuxppc. Because I am sure
> most of you are using something! :)
Hey Steve,
You've missed the most important one; a hardware debugger. I believe
most people using PPC use a BDI2000 from Abatron. They're about $3k.
I recently received one, but haven't had time to work on my PPC
stuff, so can't comment further. I'm sure everyone else on the
list will help with comments.
Note that if you use a bunch of different PPC cores, you need to
add $1k per core for the firmware uploads to the BDI2000. So if
you are working with say AMCC 440, Freescale e300/G2, e500, etc
you'll need a firmware image for each due to the debug core
differences (I guess).
The US distributor for the BDI2000 is Ultimate Solutions,
www.ultsol.com.
Cheers
Dave
^ permalink raw reply
* Re: Impossible to open the root console with 2.6.15
From: jfaslist @ 2006-05-03 17:04 UTC (permalink / raw)
To: Jean-Marie Teuler; +Cc: linuxppc-embedded
In-Reply-To: <1146663369.2448.25.camel@khnoum.lcp.u-psud.fr>
Jean-Marie Teuler wrote:
>Hi there,
>
>I am trying to use ELDK 4.0 on my TQM860L board.
>
>I have compiled the included 2.6.15 kernel with reasonable options, but
>when I try to boot it, I do not get the prompt after the message
>"Uncompressing Kernel Image ... OK"
>
>
It could be a FAQ:
http://www.denx.de/wiki/DULG/LinuxHangsAfterUncompressingKernel
But in fact, wwe had a similar case recently (no console outputs, but
linux running OK) and I am told that the problem was with the "virtual
terminal" option that needed to be disabled:
Device Drivers
-> Character devices
-> [ ] Virtual Terminal
serial drivers->
<*> CPM SCC/SMC serial port support
<*> Support for console CMP SCC/SMC serial port......
--
Best regards,
_______________________________________
jean-francois simon - themis computer
5, rue irene joliot curie
38330 eybens - france
+33 (0)870 448 638
+33 (0)4 76 14 77 85
___________________________________________________________________________
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel.
Rendez-vous sur http://fr.yahoo.com/set
^ permalink raw reply
* Fw: Configuring PCI w/ 44x
From: Stephen Winiecki @ 2006-05-03 17:11 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1073 bytes --]
Eugene Surovegin <ebs@ebshome.net> wrote on 05/02/2006 07:49:16 PM:
> On Tue, May 02, 2006 at 04:58:32PM -0400, Stephen Winiecki wrote:
> > I have a question regarding configuring PCI with 44x. Using 2.6.17-rc3
as
> > a reference, PCI_CONFIG is defined for the 44x defconfigs, and Kconfig
is
> > not enabled to reflect/change the setting for 44x. When I update
> > arch/ppc/Kconfig to enable configuring or not configuring PCI with 44x,
and
> > then don't configure it, the kernel won't compile:
>
> Hmm, you cannot disable PCI for 44x in the current 2.6. It's always
> enabled.
>
> If you changed Konfig to be able to do so, why are you complaining
> here? It's not enough to just change Konfig, you have to modify Ocotea
> port as well. Look for example how this is handled for 85xx.
>
> Patches are welcome.
>
> --
> Eugene
>
I was first wondering if for some reason defaulting/forcing PCI to always
be configured for 44x was intentional. I was second reporting the fact
that if a change is made to not configure PCI for 44x, the kernel will not
compile.
Steve
[-- Attachment #2: Type: text/html, Size: 1338 bytes --]
^ permalink raw reply
* Re: Fw: Configuring PCI w/ 44x
From: Eugene Surovegin @ 2006-05-03 17:18 UTC (permalink / raw)
To: Stephen Winiecki; +Cc: linuxppc-embedded
In-Reply-To: <OF417BCEEB.CBCC9EBC-ON87257163.005DB572-85257163.005E34EB@us.ibm.com>
On Wed, May 03, 2006 at 01:11:26PM -0400, Stephen Winiecki wrote:
>
> Eugene Surovegin <ebs@ebshome.net> wrote on 05/02/2006 07:49:16 PM:
>
> > On Tue, May 02, 2006 at 04:58:32PM -0400, Stephen Winiecki wrote:
> > > I have a question regarding configuring PCI with 44x. Using 2.6.17-rc3
> as
> > > a reference, PCI_CONFIG is defined for the 44x defconfigs, and Kconfig
> is
> > > not enabled to reflect/change the setting for 44x. When I update
> > > arch/ppc/Kconfig to enable configuring or not configuring PCI with 44x,
> and
> > > then don't configure it, the kernel won't compile:
> >
> > Hmm, you cannot disable PCI for 44x in the current 2.6. It's always
> > enabled.
> >
> > If you changed Konfig to be able to do so, why are you complaining
> > here? It's not enough to just change Konfig, you have to modify Ocotea
> > port as well. Look for example how this is handled for 85xx.
> >
> > Patches are welcome.
> >
> > --
> > Eugene
> >
>
> I was first wondering if for some reason defaulting/forcing PCI to always
> be configured for 44x was intentional.
Yes. I think it's quite obvious from the way it's configured in
Konfig.
> I was second reporting the fact
> that if a change is made to not configure PCI for 44x, the kernel will not
> compile.
Well, I don't follow you here. You made the wrong change and report
here that it broke the build. How is this interesting?
Your report looked as you discovered a bug, when in fact you broke the
build yourself.
And again, if disabling PCI is important to you you are welcome to
submit patches instead of sending misleading e-mails to this list.
--
Eugene
^ permalink raw reply
* RE: Performance improvement Montavista 3.0 MPC8260 by D-cache enable
From: Om Vadlapatla @ 2006-05-03 18:34 UTC (permalink / raw)
To: srideep.devireddy, linuxppc-embedded
In-Reply-To: <6AD9F6A5F6E096408F0B703773355A07E24DF9@CHN-SNR-MBX01.wipro.com>
How do you suggest I go about enabling the data cache
with out running into the machine check exception
(0200 exception).
I need the data cache as there is lot of data access
in the applications we run on our SDH unit.
OS Montavista 3.0
Processor MPC8260
Register required to madify: HID0 (bit 17 to be set)
=> controlword is: HID0 OR 000004000 => sets the 17th
bit
but this gives me the 0200 exception
are there any kernel routines I can run to get this to
work?
Thank you,
Sincerely,
Om Vadlapatla
--- srideep.devireddy@wipro.com wrote:
> Data chache is not enabled you have to enable it
> ......
>
> srideep
>
> -----Original Message-----
> From:
>
linuxppc-embedded-bounces+srideep.devireddy=wipro.com@ozlabs.org
>
[mailto:linuxppc-embedded-bounces+srideep.devireddy=wipro.com@ozlabs.org
> ] On Behalf Of Om Vadlapatla
> Sent: Wednesday, May 03, 2006 7:57 PM
> To: linuxppc-embedded@ozlabs.org
> Subject: Performance improvement Montavista 3.0
> MPC8260 by D-cache
> enable
>
> I want to confirm if the Montavista linux version
> 3.0
> for the MPC8260 has the data cache working.
>
> I work on an SDH unit that uses 2 channels and we
> are
> about to recieve a shipment of new harware that has
> to
> support 4 serial optical channels.
>
> I need to confirm if the version of linux we are
> using
> has the data chache enabled as I am about to spend a
> lot of time on the data cache.
>
> Thank you,
> Best Regards,
>
> Om Vadlapatla
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
>
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply
* Sandpoint X3B and 7447 - boot problems
From: Simon Smith @ 2006-05-03 18:45 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1621 bytes --]
Hi,
I'm a new member on this list. I've been trying to get my Sandpoint
X3B/mpmc7447 to boot a stock Linux kernel from kernel.org (tried 2.6.14 and
2.6.16). I'm running into a boot issue, I load zImage.elf (using DINK32
v13.1.1) - I get the "Linux/PPC load:" prompt and then nothing (no more
text, and no more serial port response).
I been searching through the archives - I did come across one email that
mentioned that Motorola(Freescale) started to ship Sandpoint X3B's with
serial #'s > 6000 with "different" switch settings (my board has a serial #
greater than 6000). I haven't changed any switch settings from the
defaults, the comments in arch/ppc/platforms/sandpoint.c seem to make
reference to switch settings for the X1/2 board - but nothing about the X3B.
In all my searching I have yet to find any reference to what the switch
settings for the X3B rev should be for Linux.
If anyone has any pointers regarding the switch settings for the X3B - or
anything else that might help - I would appreciate any help I can get.
Here's my environment:
Development Environment:
-------------------------------------
RedHat Enterprise Linux 4.0
ELDK 4.0 cross devlopment tools
(I'm successufully building zImage for sandpoint_defconfig and cross
compiling for ppc_74xx-)
build steps:
export CROSS_COMPILE=ppc_74xx-
make ARCH=ppc CROSS_COMPILE=ppc_74xx- sandpoint_defconfig
make ARCH=ppc CROSS_COMPILE=ppc_74xx- zImage
Board:
---------
Sandpoint X3B , serial # > 6000
DINK32 v13.1.1
Altimus (MPMC7447) v1.1
Memory: Map B (CHRP) 128MB at CL3
Thanks,
-Simon.
[-- Attachment #2: Type: text/html, Size: 1785 bytes --]
^ permalink raw reply
* [PATCH] define defaultimage for pseries
From: Mike Wolf @ 2006-05-03 19:11 UTC (permalink / raw)
To: linuxppc-dev
Need to define defaultimage in arch/powerpc/Makefile
so that make rpm will work.
Signed-off-by: Mike Wolf <mjw@us.ibm.com>
---
--- 21959/arch/powerpc/Makefile.orig 2006-05-03 12:40:00.648340168 -0500
+++ 21959/arch/powerpc/Makefile 2006-05-03 13:49:53.754321760 -0500
@@ -141,6 +141,7 @@
# Default to zImage, override when needed
defaultimage-y := zImage
defaultimage-$(CONFIG_PPC_ISERIES) := vmlinux
+defaultimage-$(CONFIG_PPC_PSERIES) := vmlinux
defaultimage-$(CONFIG_DEFAULT_UIMAGE) := uImage
KBUILD_IMAGE := $(defaultimage-y)
all: $(KBUILD_IMAGE)
^ permalink raw reply
* Re: mpc8270 : i2c support
From: Heiko Schocher @ 2006-05-03 20:11 UTC (permalink / raw)
To: linuxppc-embedded
Hello jfaslist,
on Wed, 03 May 2006 14:33:37 jfaslist wrote:
> But when we try to access i2c devices from under linux 2.6 using
> the /dev/i2c-0 special file we get an ENODEV on opening that
> file. I think it is because we lack an adapter driver.
>
> If I look in the official kernel, it looks like the adapter
> driver for the mpc8270 i2c system is
> ./drivers/i2c/busses/i2c-mpc.c. Is this correct?
No. It is for:
MODULE_DESCRIPTION
("I2C-Bus adapter for MPC107 bridge and MPC824x/85xx/52xx processors");
> In DENX ELDK there is also a i2c-mpc8260.c, but we couldn't get
> that to work either.
OK, this was the right driver ... but it was tested on a MPC826x
Processor.
Hmmm.... I think there are differences in the memory map between
MPC826x and MPC827x ... can you try following Hack in
include/asm-ppc/cpm_8260.h?
-#define PROFF_I2C ((16 * 1024) - 64)
+#define PROFF_I2C ((8 * 1024) - 64)
[If it solves the problem, we must do this on a better way ;-)]
I think i had the same problem with a 2.4er Kernel ... Yes,
this is in my queue, but not merged in our official 2.4er Tree ...
Maybe you have to set other Portsettings in
drivers/i2c/busses/i2c-cpm2.c cpm2_iic_init() ... ?
> What should I do to be able to access i2c devices using the
> /dev/i2c-0 file? I feel I need to modify the i2c adapter driver
> to follow the driver model, but in what ways?
Bring up the driver running, and then read:
Documentation/i2c/dev-interface.
Best regards
Heiko
^ permalink raw reply
* Where to look for CRAMFS
From: Sauro Salomoni @ 2006-05-03 21:15 UTC (permalink / raw)
To: linuxppc-embedded
Greetings.
I have an embedded board using i.MX21.
What I want to know is: how do I tell the kernel where my CRAMFS root
file system is?
I mean, I put it in a specific memory address, but how does the kernel
know where it is?!
What happens here is that the kernel looks in some address and don't
find the Magic Number CRAMFS stores in its own start address. I have a
"bad magic number" msg because my root fs is somewhere else.
Can anyone help me, plz?
Thanks in advance.
Sauro
Engineer
Z Tec
www.ztec.com.br
+55 61 3322-2544
^ permalink raw reply
* Re: [PATCH] define defaultimage for pseries
From: Paul Mackerras @ 2006-05-03 22:23 UTC (permalink / raw)
To: Mike Wolf; +Cc: linuxppc-dev
In-Reply-To: <1146683474.26128.4.camel@localhost.localdomain>
Mike Wolf writes:
> Need to define defaultimage in arch/powerpc/Makefile
> so that make rpm will work.
Hmmm. Why does defaultimage want to be "vmlinux" rather than
"zImage" for pseries?
Paul.
^ permalink raw reply
* please pull powerpc.git 'merge' branch
From: Paul Mackerras @ 2006-05-03 22:29 UTC (permalink / raw)
To: torvalds; +Cc: linuxppc-dev
Linus,
Please do a pull from the "merge" branch of
git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git
Five smallish bugfixes, plus one commit from me that has no effect on
existing machines, but will allow the kernel to run on some machines
that will shortly be released.
Thanks,
Paul.
Ananth N Mavinakayanahalli:
powerpc/kprobes: fix singlestep out-of-line
Linas Vepstas:
powerpc/pseries: avoid crash in PCI code if mem system not up
Paul Mackerras:
powerpc: Fix incorrect might_sleep in __get_user/__put_user on kernel addresses
powerpc: Use the ibm,pa-features property if available
Vitaly Bordug:
ppc32 CPM_UART: Fixed break send on SCC
ppc32 CPM_UART: fixes and improvements
arch/powerpc/kernel/kprobes.c | 14 +++---
arch/powerpc/kernel/prom.c | 70 ++++++++++++++++++++++++++++
arch/powerpc/platforms/pseries/eeh_event.c | 8 +++
arch/ppc/platforms/mpc866ads_setup.c | 2 -
drivers/serial/cpm_uart/cpm_uart.h | 19 ++++++--
drivers/serial/cpm_uart/cpm_uart_core.c | 37 ++++++++++++---
drivers/serial/cpm_uart/cpm_uart_cpm1.c | 2 +
drivers/serial/cpm_uart/cpm_uart_cpm2.c | 2 +
include/asm-powerpc/uaccess.h | 19 +++++---
include/asm-ppc/commproc.h | 1
include/asm-ppc/cpm2.h | 2 -
include/linux/fs_uart_pd.h | 60 ++++++++++++++++++++++++
12 files changed, 209 insertions(+), 27 deletions(-)
create mode 100644 include/linux/fs_uart_pd.h
^ 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