Different behaviour when using nosmp parameter on SMP and UP

2011-12-01 Thread Jean-Michel Hautbois
Hi, I have a P2020 CPU (powerpc) and I compiled it with two different defconfigs. The first one is a SMP, 2 cores, launched with the nosmp kernel parameter, the other one is an UP kernel. My driver behaviour is not the same whether launching one or the other. It is hard to explain more

Re: Different behaviour when using nosmp parameter on SMP and UP

2011-12-01 Thread Jean-Michel Hautbois
2011/12/1 Kumar Gala ga...@kernel.crashing.org: On Dec 1, 2011, at 3:57 AM, Jean-Michel Hautbois wrote: Hi, I have a P2020 CPU (powerpc) and I compiled it with two different defconfigs. The first one is a SMP, 2 cores, launched with the nosmp kernel parameter, the other one is an UP kernel

Re: Different behaviour when using nosmp parameter on SMP and UP

2011-12-01 Thread Jean-Michel Hautbois
2011/12/1 Tabi Timur-B04825 b04...@freescale.com: On Thu, Dec 1, 2011 at 9:04 AM, Jean-Michel Hautbois jhautb...@gmail.com wrote: Any idea on how to debug this ? I am using a 2.6.35 kernel. There are a ton of Kconfig options for debugging various locking bugs.  Try turning them

Re: Different behaviour when using nosmp parameter on SMP and UP

2011-12-01 Thread Jean-Michel Hautbois
2011/12/1 Jean-Michel Hautbois jhautb...@gmail.com: 2011/12/1 Tabi Timur-B04825 b04...@freescale.com: On Thu, Dec 1, 2011 at 9:04 AM, Jean-Michel Hautbois jhautb...@gmail.com wrote: Any idea on how to debug this ? I am using a 2.6.35 kernel. There are a ton of Kconfig options for debugging

Re: Different behaviour when using nosmp parameter on SMP and UP

2011-12-01 Thread Jean-Michel Hautbois
2011/12/1 Kumar Gala ga...@kernel.crashing.org: On Dec 1, 2011, at 11:52 AM, Jean-Michel Hautbois wrote: 2011/12/1 Jean-Michel Hautbois jhautb...@gmail.com: 2011/12/1 Tabi Timur-B04825 b04...@freescale.com: On Thu, Dec 1, 2011 at 9:04 AM, Jean-Michel Hautbois jhautb...@gmail.com wrote

MMC on SPI (MPC8313) slow reading

2011-09-29 Thread Jean-Michel Hautbois
Hi list, I am currently using a MPC8313 with an MMC slot on SPI bus. My fsl is the following : spi@7000 {     #address-cells = 1;     #size-cells = 0;     cell-index = 0;     compatible = fsl,spi;  

Re: [PATCH 5/7] powerpc: add the mpic timer support

2011-01-17 Thread Jean-Michel Hautbois
Hi, I am interested by this implementation. +static ssize_t mpic_tm_timeout_store(struct device *dev, +                               struct device_attribute *attr, +                               const char *buf, size_t count) +{ snip + +       spin_lock_irq(priv-lock); + +       /*

Unbalanced enable for IRQ = phy_change

2010-12-15 Thread Jean-Michel Hautbois
Hi ! I am currently using a MPC8548 PowerPC board, and I have encountered the following problem : [   19.867849] Unbalanced enable for IRQ 48 [   19.867855] [ cut here ] [   19.873819] Badness at /.../kernel/irq/manage.c:174 [   19.873823] NIP: c0044acc LR: c0044acc CTR:

[MPC52xx]Latency issue with DMA on FEC

2010-12-01 Thread Jean-Michel Hautbois
Hi lists ! I measured the latency and the jitter of the RX and TX ethernet paths on my MPC5200 board. The RX path is quite good, but the TX path can be slow. [ 1218.976762] [mpc52xx_fec_start_xmit]Delay 30us for dma_map_single = 76364 ns [ 1219.188405] [mpc52xx_fec_tx_interrupt]Delay 30us for

Re: [MPC52xx]Latency issue with DMA on FEC

2010-12-01 Thread Jean-Michel Hautbois
2010/12/1 Jean-Michel Hautbois jhautb...@gmail.com: Hi lists ! I measured the latency and the jitter of the RX and TX ethernet paths on my MPC5200 board. The RX path is quite good, but the TX path can be slow. [ 1218.976762] [mpc52xx_fec_start_xmit]Delay 30us for dma_map_single = 76364 ns

Re: [MPC52xx]Latency issue with DMA on FEC

2010-12-01 Thread Jean-Michel Hautbois
2010/12/1 David Laight david.lai...@aculab.com: A mb() is usually used if you do a write to device and read from it. With out it, the CPU could perform the read before the write, which would give you an incorrect result. There's no other way around that. Possibly the synchronisation

Better performance when CONFIG_DEBUG_KERNEL is on

2010-11-08 Thread Jean-Michel Hautbois
Hi everybody, I am using a mpc5200 chip with a linux 2.6.33.7-rt29. I am using the ELDK toolchain : ppc_6xx-gcc -v Target: powerpc-linux Configured with:

[MPC8272ADS]Can not configure the ttyCPM0

2009-03-13 Thread Jean-Michel Hautbois
Hi all ! I am currently facing a big problem on my MPC8272ADS development board. I have tried to use the /dev/ttyCPM1 port in order to send data over the serial cable to another device. This is just not working but nothing is sent, my DTR signal is down: cat /proc/tty/driver/ttyCPM 0: uart:CPM

Re: [MPC8272ADS]Can not configure the ttyCPM0

2009-03-13 Thread Jean-Michel Hautbois
2009/3/13 Laurent Pinchart laure...@cse-semaphore.com: Hi Jean-Michel, Support for the modem control lines has been added in v2.6.27-rc2. You will need to declare the modem control lines in your device tree. See Documentation/powerpc/dts-bindings/fsl/cpm_qe/serial.txt for more information.

Re: [MPC8272ADS]Problem adding flash partitions inside the device tree

2009-02-13 Thread Jean-Michel Hautbois
2009/2/12 Scott Wood scottw...@freescale.com: On Thu, Feb 12, 2009 at 03:26:58PM +0100, Jean-Michel Hautbois wrote: I think that the problem is in the reg part, but I can't understand why. Isn't it the RAM mpping of my MTD that is the first address ? No, it's the offset into the chipselect

[MPC8272ADS]Problem adding flash partitions inside the device tree

2009-02-12 Thread Jean-Michel Hautbois
Hi everybody ! I am currently trying to add the support of partitions for the Flash chip on my MPC8272ADS board (the chips are Sharp LH28F016SCT-L90). I have added this part: fl...@0,0 { compatible = jedec-flash; reg = 0x0 0x0 0x200;

Re: [MPC8272ADS]Problem adding flash partitions inside the device tree

2009-02-12 Thread Jean-Michel Hautbois
2009/2/12 Pieter phenn...@vastech.co.za Jean-Michel Hautbois wrote: Warning (reg_format): reg property in /local...@f0010100/fl...@0,0/partit...@ff80 has invalid length (8 JM You are missing some definitions, The #address-cells and #size-cells = 1; tis is a snippet of teh dts i

Re: [MPC8272ADS]Problem adding flash partitions inside the device tree

2009-02-12 Thread Jean-Michel Hautbois
2009/2/12 David Gibson da...@gibson.dropbear.id.au On Thu, Feb 12, 2009 at 12:10:58PM +0100, Jean-Michel Hautbois wrote: 2009/2/12 Pieter phenn...@vastech.co.za Jean-Michel Hautbois wrote: Warning (reg_format): reg property in /local...@f0010100/fl...@0,0/partit...@ff80 has

Re: [MPC8272ADS]Problem adding flash partitions inside the device tree

2009-02-12 Thread Jean-Michel Hautbois
2009/2/12 Pieter phenn...@vastech.co.za Jean-Michel Hautbois wrote: 2009/2/12 David Gibson da...@gibson.dropbear.id.au mailto:da...@gibson.dropbear.id.au On Thu, Feb 12, 2009 at 12:10:58PM +0100, Jean-Michel Hautbois wrote: 2009/2/12 Pieter phenn...@vastech.co.za

Re: Help needed with initramfs

2009-01-27 Thread Jean-Michel Hautbois
2009/1/26 Scott Wood scottw...@freescale.com On Mon, Jan 26, 2009 at 11:17:05AM +0100, Jean-Michel Hautbois wrote: I understand that my load address is 0x40 and that the image is too big, but I can't find where this load adress is defined. It seems (from the .../arch/powerpc/boot

Help needed with initramfs

2009-01-26 Thread Jean-Michel Hautbois
Hi everybody ! I have a working Kernel with a NFS mounted root filesystem. I am trying to use my root file system, but with the use of initramfs. Compiling the kernel is not a problem, but when booting, I have the following error: Insufficient memory for kernel at address 0! (_start=0040,

Re: [MPC8272ADS]Cannot start my Linux Kernel

2009-01-21 Thread Jean-Michel Hautbois
I am now trying to use an initial RAM filesystem. I have this: checking if image is initramfs... it is And then, after some hardware detections: List of all partitions: 1f008192 mtdblock0 (driver?) No filesystem could mount root, tried: ext3 ext2 cramfs Kernel panic - not syncing:

Re: [MPC8272ADS]Cannot start my Linux Kernel

2009-01-20 Thread Jean-Michel Hautbois
2009/1/20 Jean-Michel Hautbois jhautb...@gmail.com: OK, I just tried a cuImage and a ramdisk without a FDT. I am starting to boot, but it freezes. [...] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 Kernel command line: root=/dev/ram rw PID hash table entries: 256

Re: [MPC8272ADS]Cannot start my Linux Kernel

2009-01-20 Thread Jean-Michel Hautbois
2009/1/20 Scott Wood scottw...@freescale.com: On Tue, Jan 20, 2009 at 11:56:58AM +0100, Jean-Michel Hautbois wrote: Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 Kernel command line: root=/dev/ram rw PID hash table entries: 256 (order: 8, 1024 bytes) time_init

Re: [MPC8272ADS]Cannot start my Linux Kernel

2009-01-20 Thread Jean-Michel Hautbois
2009/1/20 Scott Wood scottw...@freescale.com: Jean-Michel Hautbois wrote: It is *a lot* better ! I am finishing into a kernel panic, but it is a normal thing (bad initramfs). Well, that was using the cuImage. When I try to use the uImage and the FDT file, I am stopped here: Uncompressing

Re: [MPC8272ADS]Cannot start my Linux Kernel

2009-01-20 Thread Jean-Michel Hautbois
2009/1/16 Scott Wood scottw...@freescale.com: Jean-Michel Hautbois wrote: OK, I just tried a make of my kernel (already compiled yesterday), and it generated a cuImage.mpc8272ads kernel image (which it didn't do yesterday). I don't know why this image was generated, but I tried to reboot

Re: [MPC8272ADS]Cannot start my Linux Kernel

2009-01-16 Thread Jean-Michel Hautbois
try to fix ft_cpu_setup() in your u-boot source for mpc8272ads and use PowerPC,8...@0 as cpu_path instead of c...@0. Best regards, Anatolij I am currently going until this step: ## Booting kernel from Legacy Image at 0040 ... Image Name: Linux-2.6.29-rc1-01197-g5a7b6e7- Image

Re: [MPC8272ADS]Cannot start my Linux Kernel

2009-01-16 Thread Jean-Michel Hautbois
2009/1/16 Scott Wood scottw...@freescale.com: On Fri, Jan 16, 2009 at 01:06:06PM +0100, Jean-Michel Hautbois wrote: Could it be a problem in my bootargs command line ? I mean, maybe the console=ttyS0,11500 wrong ? Because my Run LED is on... I tried ttyS0, ttyCPM0, tty0. It should

Re: [MPC8272ADS]Cannot start my Linux Kernel

2009-01-16 Thread Jean-Michel Hautbois
2009/1/16 Scott Wood scottw...@freescale.com: On Fri, Jan 16, 2009 at 01:06:06PM +0100, Jean-Michel Hautbois wrote: Could it be a problem in my bootargs command line ? I mean, maybe the console=ttyS0,11500 wrong ? Because my Run LED is on... I tried ttyS0, ttyCPM0, tty0. It should

Re: [MPC8272ADS]Cannot start my Linux Kernel

2009-01-16 Thread Jean-Michel Hautbois
2009/1/16 Jean-Michel Hautbois jhautb...@gmail.com: 2009/1/16 Scott Wood scottw...@freescale.com: On Fri, Jan 16, 2009 at 01:06:06PM +0100, Jean-Michel Hautbois wrote: Could it be a problem in my bootargs command line ? I mean, maybe the console=ttyS0,11500 wrong ? Because my Run LED

Re: [MPC8272ADS]Cannot start my Linux Kernel

2009-01-16 Thread Jean-Michel Hautbois
2009/1/16 Scott Wood scottw...@freescale.com: Jean-Michel Hautbois wrote: OK, I just tried a make of my kernel (already compiled yesterday), and it generated a cuImage.mpc8272ads kernel image (which it didn't do yesterday). I don't know why this image was generated, but I tried to reboot

[MPC8272ADS]Cannot start my Linux Kernel

2009-01-15 Thread Jean-Michel Hautbois
Hi everybody ! This my first (but not least :) ) message on that mailing list. I hope I will find my solution. Here is my problem: I have a MPC8272ADS board, 64MB RAM, 8MB Flash. I compiled u-boot using the existing config file, and compiled my linux kernel successfully with the defconfig file

Re: [MPC8272ADS]Cannot start my Linux Kernel

2009-01-15 Thread Jean-Michel Hautbois
2009/1/15 Anatolij Gustschin ag...@denx.de Jean-Michel Hautbois wrote: I have a MPC8272ADS board, 64MB RAM, 8MB Flash. I compiled u-boot using the existing config file, and compiled my linux kernel successfully with the defconfig file too. I have updated u-boot, downloaded my kernel

Re: [MPC8272ADS]Cannot start my Linux Kernel

2009-01-15 Thread Jean-Michel Hautbois
2009/1/15 Anatolij Gustschin ag...@denx.de Jean-Michel Hautbois wrote: I just tried. I created a dtb from the file arch/powerpc/boot/dst/mpc8272ads.dts file. It is not rebboting, but handling (my run led is switching off). = tftp 200 mpc8272ads.dtb Using FCC1 ETHERNET device