Re: Relocatable kernel for ppc44x

2011-06-15 Thread Suzuki Poulose
On 06/14/11 17:34, Michal Simek wrote: Hi, have someone tried to support RELOCATABLE kernel on ppc44x? As Josh, mentioned, I will be working on this. In fact I was trying a couple of patches towards this on PPC440x. But, I am stuck in debugging the hang that I am experiencing with the changes.

Re: [PATCH 06/15] 8xx: Always pin kernel instruction TLB

2011-06-15 Thread Joakim Tjernlund
Joakim Tjernlund/Transmode wrote on 2011/06/14 20:00:09: From: Joakim Tjernlund/Transmode Dan Malek ppc6...@digitaldans.com wrote on 2011/06/14 18:06:45: Hi Joakim. On Jun 14, 2011, at 6:54 AM, Joakim Tjernlund wrote: Various kernel asm modifies SRR0/SRR1 just before executing

Re: [PATCH 00/15] Backport 8xx TLB to 2.4

2011-06-15 Thread Joakim Tjernlund
Willy Tarreau w...@1wt.eu wrote on 2011/06/14 21:31:06: Hi Joakim, On Tue, Jun 14, 2011 at 03:54:45PM +0200, Joakim Tjernlund wrote: This is a backport from 2.6 which I did to overcome 8xx CPU bugs. 8xx does not update the DAR register when taking a TLB error caused by dcbX and icbi

Re: [RFC,PATCH] Cleanup PC parallel port Kconfig

2011-06-15 Thread Russell King - ARM Linux
On Tue, Jun 14, 2011 at 09:30:47PM -0700, H. Peter Anvin wrote: On 06/14/2011 02:33 PM, Arnd Bergmann wrote: Why on earth restrict it like that? It's just a device driver, like more or less any other device driver... I'd say any other classic ISA/PC driver, including floppy, gameport

Re: [RFC,PATCH] Cleanup PC parallel port Kconfig

2011-06-15 Thread Russell King - ARM Linux
On Tue, Jun 14, 2011 at 09:31:27PM -0700, H. Peter Anvin wrote: On 06/14/2011 03:08 PM, Luck, Tony wrote: I took a look at the back of all my ia64 systems - none of them have a parallel port. It seems unlikely that new systems will start adding parallel ports :-) So even if I had a

Re: [RFC,PATCH] Cleanup PC parallel port Kconfig

2011-06-15 Thread Lennox Wu
2011/6/15 Arnd Bergmann a...@arndb.de config SCORE - def_bool y - select HAVE_GENERIC_HARDIRQS - select GENERIC_IRQ_SHOW + def_bool y + select HAVE_GENERIC_HARDIRQS + select HAVE_PC_PARPORT + select GENERIC_IRQ_SHOW choice prompt

[PATCH][v2] Add support for RTC device: pt7c4338 in rtc-ds1307.c

2011-06-15 Thread Priyanka Jain
PT7C4338 chip is being manufactured by Pericom Technology Inc. It is a serial real-time clock which provides: 1)Low-power clock/calendar. 2)Programmable square-wave output. It has 56 bytes of nonvolatile RAM. Its register set is same as that of rtc device: DS1307. Signed-off-by: Priyanka Jain

Re: [PATCH 06/15] 8xx: Always pin kernel instruction TLB

2011-06-15 Thread Joakim Tjernlund
Dan Malek ppc6...@digitaldans.com wrote on 2011/06/14 20:11:18: Hi Joakim. On Jun 14, 2011, at 11:00 AM, Joakim Tjernlund wrote: I don't have a mpc850, do you? I have to say I do :-) Probably but that is another matter. You could continue with that if you like but I am stopping here

Re: [RFC,PATCH] Cleanup PC parallel port Kconfig

2011-06-15 Thread Ralf Baechle
On Tue, Jun 14, 2011 at 09:18:36PM -0700, H. Peter Anvin wrote: On 06/14/2011 03:34 PM, Ralf Baechle wrote: There is no point in offering to build something that couldn't possibly be used. It just makes the kernel harder to configure and inflates the test matrix for no good reason.

RE: Relocatable kernel for ppc44x

2011-06-15 Thread David Laight
The PPC440X currently uses 256M TLB entries to pin the lowmem. When we go for a relocatable kernel we have to : 1) Restrict the kernel load address to be 256M aligned OR 2) Use 16M TLB(the next possible TLB page size supported) entries till the first 256M and then use the 256M TLB

Re: [RFC,PATCH] Cleanup PC parallel port Kconfig

2011-06-15 Thread Arnd Bergmann
On Wednesday 15 June 2011, H. Peter Anvin wrote: On 06/14/2011 02:33 PM, Arnd Bergmann wrote: Why on earth restrict it like that? It's just a device driver, like more or less any other device driver... I'd say any other classic ISA/PC driver, including floppy, gameport or

Re: Relocatable kernel for ppc44x

2011-06-15 Thread John Williams
On Wed, Jun 15, 2011 at 11:30 AM, David Laight david.lai...@aculab.comwrote: The PPC440X currently uses 256M TLB entries to pin the lowmem. When we go for a relocatable kernel we have to : 1) Restrict the kernel load address to be 256M aligned OR 2) Use 16M TLB(the next possible

Re: Relocatable kernel for ppc44x

2011-06-15 Thread Benjamin Herrenschmidt
On Wed, 2011-06-15 at 11:43 +0530, Suzuki Poulose wrote: On 06/14/11 17:34, Michal Simek wrote: Hi, have someone tried to support RELOCATABLE kernel on ppc44x? As Josh, mentioned, I will be working on this. In fact I was trying a couple of patches towards this on PPC440x. But, I am

RE: Relocatable kernel for ppc44x

2011-06-15 Thread Benjamin Herrenschmidt
On Wed, 2011-06-15 at 10:30 +0100, David Laight wrote: The PPC440X currently uses 256M TLB entries to pin the lowmem. When we go for a relocatable kernel we have to : 1) Restrict the kernel load address to be 256M aligned OR 2) Use 16M TLB(the next possible TLB page size

Re: [RFC,PATCH] Cleanup PC parallel port Kconfig

2011-06-15 Thread Geert Uytterhoeven
On Wed, Jun 15, 2011 at 11:46, Arnd Bergmann a...@arndb.de wrote: * In case of floppies, the solution was to write a driver for every platform that  doesn't have PIO, since they tend to have other differences. The amiflop and  ataflop drivers are not even use readb(), they just derefence

Re: [PATCH][v2] Add support for RTC device: pt7c4338 in rtc-ds1307.c

2011-06-15 Thread Tabi Timur-B04825
Priyanka Jain wrote: + * Copyright (C) 2011 Priyanka Jain (priyanka.j...@freescale.com) + * (pt7c4338 support) You can't claim copyright just by adding one line of text. -- Timur Tabi Linux kernel developer at Freescale

Re: Relocatable kernel for ppc44x

2011-06-15 Thread Suzuki Poulose
On 06/15/11 15:41, Benjamin Herrenschmidt wrote: On Wed, 2011-06-15 at 11:43 +0530, Suzuki Poulose wrote: On 06/14/11 17:34, Michal Simek wrote: Hi, have someone tried to support RELOCATABLE kernel on ppc44x? As Josh, mentioned, I will be working on this. In fact I was trying a couple of

Re: [RFC,PATCH] Cleanup PC parallel port Kconfig

2011-06-15 Thread Guenter Roeck
On Wed, Jun 15, 2011 at 04:34:37AM -0400, Ralf Baechle wrote: On Tue, Jun 14, 2011 at 09:18:36PM -0700, H. Peter Anvin wrote: On 06/14/2011 03:34 PM, Ralf Baechle wrote: There is no point in offering to build something that couldn't possibly be used. It just makes the kernel harder

Re: [PATCH][v2] Add support for RTC device: pt7c4338 in rtc-ds1307.c

2011-06-15 Thread Timur Tabi
Priyanka Jain wrote: config RTC_DRV_DS1307 - tristate Dallas/Maxim DS1307/37/38/39/40, ST M41T00, EPSON RX-8025 + tristate Dallas/Maxim DS1307/37/38/39/40, ST M41T00, EPSON RX-8025, PT7C4338 help If you say yes here you get support for various compatible RTC

Re: [RFC,PATCH] Cleanup PC parallel port Kconfig

2011-06-15 Thread H. Peter Anvin
On 06/15/2011 12:47 AM, Russell King - ARM Linux wrote: OK, serial-8250 is clearly just plain wrong, since the 8250 series UARTs are ubiquitous across just about every platform. Floppy is special (in the short bus sense), since it is closely tied to ISA DMA. Conditionalizing this on ISA DMA

Re: [RFC,PATCH] Cleanup PC parallel port Kconfig

2011-06-15 Thread H. Peter Anvin
On 06/15/2011 12:39 AM, Russell King - ARM Linux wrote: On Tue, Jun 14, 2011 at 09:31:27PM -0700, H. Peter Anvin wrote: On 06/14/2011 03:08 PM, Luck, Tony wrote: I took a look at the back of all my ia64 systems - none of them have a parallel port. It seems unlikely that new systems will

[PATCH -v3] Audit: push audit success and retcode into arch ptrace.h

2011-06-15 Thread Eric Paris
The audit system previously expected arches calling to audit_syscall_exit to supply as arguments if the syscall was a success and what the return code was. Audit also provides a helper AUDITSC_RESULT which was supposed to simplify things by converting from negative retcodes to an audit internal

Re: [RFC,PATCH] Cleanup PC parallel port Kconfig

2011-06-15 Thread Russell King - ARM Linux
On Wed, Jun 15, 2011 at 08:08:05AM -0700, H. Peter Anvin wrote: On 06/15/2011 12:47 AM, Russell King - ARM Linux wrote: OK, serial-8250 is clearly just plain wrong, since the 8250 series UARTs are ubiquitous across just about every platform. Floppy is special (in the short bus sense),

Re: Relocatable kernel for ppc44x

2011-06-15 Thread Tirumala Marri
On Wed, Jun 15, 2011 at 7:40 AM, Suzuki Poulose suz...@in.ibm.com wrote: On 06/15/11 15:41, Benjamin Herrenschmidt wrote: On Wed, 2011-06-15 at 11:43 +0530, Suzuki Poulose wrote: On 06/14/11 17:34, Michal Simek wrote: Hi, have someone tried to support RELOCATABLE kernel on ppc44x? As

libata/ipr/powerpc: regression between 2.6.39-rc4 and 2.6.39-rc5

2011-06-15 Thread Nishanth Aravamudan
Hi Jeff, It appears that commit 7b3a24c57d2eeda8dba9c205342b12689c4679f9 broke CD-ROMs on the IPR SATA bus on powerpc machines: ata_port_alloc: ENTER ata_port_probe: ata1: bus probe begin ata1.00: ata_dev_read_id: ENTER ata1.00: failed to IDENTIFY (I/O error, err_mask=0x40) ata1.00:

Re: Relocatable kernel for ppc44x

2011-06-15 Thread Scott Wood
On Wed, 15 Jun 2011 20:11:55 +1000 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Wed, 2011-06-15 at 11:43 +0530, Suzuki Poulose wrote: On 06/14/11 17:34, Michal Simek wrote: Hi, have someone tried to support RELOCATABLE kernel on ppc44x? As Josh, mentioned, I will be

Re: libata/ipr/powerpc: regression between 2.6.39-rc4 and 2.6.39-rc5

2011-06-15 Thread Brian King
On 06/15/2011 02:17 PM, Nishanth Aravamudan wrote: From what I can tell, the only place that explicitly clears the FROZEN flag is the error-handling code via ata_eh_thaw_port(). So I thought either we're not invoking the error-handler at probe time correctly to kick the port or perhaps the

Re: libata/ipr/powerpc: regression between 2.6.39-rc4 and 2.6.39-rc5

2011-06-15 Thread Nishanth Aravamudan
On 15.06.2011 [15:02:18 -0500], Brian King wrote: On 06/15/2011 02:17 PM, Nishanth Aravamudan wrote: From what I can tell, the only place that explicitly clears the FROZEN flag is the error-handling code via ata_eh_thaw_port(). So I thought either we're not invoking the error-handler at

Re: [RFC][PATCH] kexec-tools: powerpc: Use the #address-cells information to parsememory/reg - V2

2011-06-15 Thread Simon Horman
On Wed, Jun 08, 2011 at 12:08:55PM +0530, Suzuki Poulose wrote: Hi, This is version 2 of the patch Changes from Version 1 : : Changed the interface for read_memory_region_limits to use 'int fd' instead of FILE*. : Use sizeof(variable) for read(, instead of sizeof(type). ---

[PATCH][v3] Add support for RTC device: pt7c4338 in rtc-ds1307.c

2011-06-15 Thread Priyanka Jain
PT7C4338 chip is being manufactured by Pericom Technology Inc. It is a serial real-time clock which provides: 1)Low-power clock/calendar. 2)Programmable square-wave output. It has 56 bytes of nonvolatile RAM. Its register set is same as that of rtc device: DS1307. Signed-off-by: Priyanka Jain