[PATCH v2] IIO ADC support for AD7923

2013-02-12 Thread Christophe Leroy
This patch adds support for Analog Devices AD7923 ADC in the IIO Subsystem. Signed-off-by: Patrick Vasseur Signed-off-by: Christophe Leroy diff -urN linux-next-e347c98/drivers/iio/adc/Kconfig linux-next-e347c98.new/drivers/iio/adc/Kconfig --- linux-next-e347c98/drivers/iio/adc/Kconfig 2013

[PATCH v2] Enhanced support for MPC8xx/8xxx watchdog

2013-02-28 Thread Christophe Leroy
allows to set up the userspace timeout. The driver also implements the WDIOC_SETTIMEOUT ioctl. Signed-off-by: Christophe Leroy diff -ur linux-3.7.9/drivers/watchdog/mpc8xxx_wdt.c linux/drivers/watchdog/mpc8xxx_wdt.c --- linux-3.7.9/drivers/watchdog/mpc8xxx_wdt.c 2013-02-17 19:53:32.0 +0

[PATCH] Unset LANG in setlocalversion script

2013-02-21 Thread Christophe Leroy
modification' Signed-off-by: Christophe Leroy diff -ur linux-3.7.9/scripts/setlocalversion linux/scripts/setlocalversion --- linux-3.7.9/scripts/setlocalversion 2013-02-17 19:53:32.0 +0100 +++ linux/scripts/setlocalversion 2012-11-03 03:15:32.0 +0100 @@ -9,6 +9,

[PATCH] Handling of IRQ in MPC8xx GPIO

2013-02-21 Thread Christophe Leroy
ario-bank-c"; reg = <0x960 0x10>; interrupts = <255 255 255 255 1 2 6 9 10 11 14 15 23 24 26 31>; interrupt-parent = <&CPM_PIC>; gpio-controller; }; Signed-off-by: Christophe Leroy diff -ur linux-3.7.9/

[PATCH v2] Unset langage specific variables in setlocalversion script

2013-02-22 Thread Christophe Leroy
re modification' Signed-off-by: Christophe Leroy diff -ur linux-3.7.9/scripts/setlocalversion linux/scripts/setlocalversion --- linux-3.7.9/scripts/setlocalversion 2013-02-17 19:53:32.0 +0100 +++ linux/scripts/setlocalversion 2013-02-22 03:37:31.0 +0100 @@ -108,7 +108,

[PATCH] Adds support for Open Firmware in MAX730x GPIO Driver

2013-02-22 Thread Christophe Leroy
This patch allows the use of the MAX730x Driver on systems using the Open Firmware platform format Signed-off-by: Patrick Vasseur Signed-off-by: Christophe Leroy diff -ur linux-3.7.9/drivers/gpio/gpio-max7301.c linux/drivers/gpio/gpio-max7301.c --- linux-3.7.9/drivers/gpio/gpio-max7301.c

[PATCH 0/2] hwmon/lm70: changes to allow 4w with LM70 and add LM71/LM74

2012-09-04 Thread Christophe Leroy
Hello, The two following patches do: 1) Allow the use of NS LM70 with a 4 wire SPI bus too, since the component allows both configuration 2) Adds support for NS LM71 and LM74 Regards Christophe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message t

[PATCH 1/2] hwmon/lm70: Allow 4wire SPI bus with LM70

2012-09-04 Thread Christophe Leroy
Removing the 3wire limitation on LM70 as the component also allows operation on 4wire SPI bus Signed-off-by: Christophe Leroy diff -u linux-3.5-vanilla/drivers/hwmon/lm70.c linux-3.5/drivers/hwmon/lm70.c --- linux-3.5-vanilla/drivers/hwmon/lm70.c 2012-07-21 22:58:29.0 +0200

[PATCH 2/2] hwmon/lm70: Adds support for LM71 and LM74

2012-09-04 Thread Christophe Leroy
Adding support for LM74 and LM71 chips Signed-off-by: Christophe Leroy diff -u linux-3.5-vanilla/drivers/hwmon/Kconfig linux-3.5/drivers/hwmon/Kconfig --- linux-3.5-vanilla/drivers/hwmon/Kconfig 2012-07-21 22:58:29.0 +0200 +++ linux-3.5/drivers/hwmon/Kconfig 2012-08-25 00:44

[PATCH 2/2] hwmon/lm70: Adds support for LM71 and LM74

2012-09-05 Thread Christophe Leroy
Adding support for LM74 and LM71 chips Signed-off-by: Christophe Leroy diff -u linux-3.5-vanilla/drivers/hwmon/Kconfig linux-3.5/drivers/hwmon/Kconfig --- linux-3.5-vanilla/drivers/hwmon/Kconfig 2012-07-21 22:58:29.0 +0200 +++ linux-3.5/drivers/hwmon/Kconfig 2012-08-25 00:44

[PATCH v3] lxt PHY: Support for the buggy LXT973 rev A2

2012-09-22 Thread Christophe Leroy
This patch adds proper handling of the buggy revision A2 of LXT973 phy, adding precautions linked to ERRATA Item 4: Revision A2 of LXT973 chip randomly returns the contents of the previous even register when you read a odd register regularly Signed-off-by: Christophe Leroy diff -u linux-3.5

[PATCH v2] Powerpc 8xx CPM_UART desynchronisation

2012-09-23 Thread Christophe Leroy
This patch fixes a desynchronisation problem with CPM UART driver on Powerpc MPC8xx. The problem happens if data is received before the device is open by the user application. Signed-off-by: Christophe Leroy --- linux-3.5-vanilla/drivers/tty/serial/cpm_uart/cpm_uart_core.c 2012-07-21 22

[PATCH] Powerpc 8xx CPM_UART too many interrupts

2012-09-23 Thread Christophe Leroy
Setting the fifo to only 1 byte generates one interrupt every 1ms at 9600 bauds. This is too much. This patch reduces the threshold to speeds below 2400 bauds like in the 8250 UART driver. Signed-off-by: Christophe Leroy --- linux-3.5-vanilla/drivers/tty/serial/cpm_uart/cpm_uart_core.c

[PATCH] Powerpc 8xx CPM_UART maxidl should not depend on fifo size

2012-09-23 Thread Christophe Leroy
maxidl register was set to fifo size. There is no reason to set this register to same value as fifo size. Setting it now to 0x10 by default as in the UCC UART driver. Signed-off-by: Christophe Leroy --- linux-3.5-vanilla/drivers/tty/serial/cpm_uart/cpm_uart_core.c 2012-07-21 22:58

[PATCH] Powerpc 8xx CPM_UART setting MAXIDL register proportionaly to baud rate

2012-09-23 Thread Christophe Leroy
UART. Signed-off-by: Christophe Leroy --- linux-3.5-vanilla/drivers/tty/serial/cpm_uart/cpm_uart_core.c 2012-07-21 22:58:29.0 +0200 +++ linux-3.5/drivers/tty/serial/cpm_uart/cpm_uart_core.c 2012-08-09 17:38:37.0 +0200 @@ -501,6 +501,7 @@ struct uart_cpm_port

[PATCH v4] lxt PHY: Support for the buggy LXT973 rev A2

2012-09-24 Thread Christophe Leroy
This patch adds proper handling of the buggy revision A2 of LXT973 phy, adding precautions linked to ERRATA Item 4: Revision A2 of LXT973 chip randomly returns the contents of the previous even register when you read a odd register regularly Signed-off-by: Christophe Leroy diff -u a/drivers

[PATCH] powerpc/mpc8xx: Clearer Oops message for Software Emulation Exception

2013-08-28 Thread Christophe Leroy
. The new message tries to be more generic in order to make the user understand that the Oops is due to something wrong with an instruction, not necessarily due to an FPU instruction. Signed-off-by: Christophe Leroy diff -ur linux-3.11-rc6/arch/powerpc/kernel/traps.c linux/arch/powerpc/kernel

[PATCH] IIO AD7923 iio_consumer support

2013-10-05 Thread Christophe Leroy
This patch adds support for iio_consumer to Analog Devices AD7923 ADC driver. Signed-off-by: Christophe Leroy Verified-by: Patrick Vasseur diff -urN a/drivers/iio/adc/ad7923.c b/drivers/iio/adc/ad7923.c --- a/drivers/iio/adc/ad7923.c 1970-01-01 01:00:00.0 +0100 +++ b/drivers/iio/adc

[PATCH v3] powerpc 8xx: Fixing issue with CONFIG_PIN_TLB

2013-09-17 Thread Christophe Leroy
written being entry 31, next entries would possibly get overwritten after. We are now starting from entry 31 and decrementing. Signed-off-by: Christophe Leroy diff -ur linux-3.11.org/arch/powerpc/kernel/head_8xx.S linux-3.11/arch/powerpc/kernel/head_8xx.S --- linux-3.11.org/arch/powerpc/kernel

[PATCH] powerpc 8xx: Reverting commit e0908085fc2391c85b85fb814ae1df377c8e0dcb which has become useless

2013-09-11 Thread Christophe Leroy
8xx. Signed-off-by: Christophe Leroy diff -ur linux-3.11.org/arch/powerpc/mm/pgtable.c linux-3.11/arch/powerpc/mm/pgtable.c --- linux-3.11.org/arch/powerpc/mm/pgtable.c2013-09-02 22:46:10.0 +0200 +++ linux-3.11/arch/powerpc/mm/pgtable.c2013-09-09 11:25:57.0 +0200

[PATCH] powerpc 8xx: Fixing issue with CONFIG_PIN_TLB

2013-09-11 Thread Christophe Leroy
Activating CONFIG_PIN_TLB is supposed to pin the IMMR and the first three 8Mbytes pages. But the setting of the MD_CTR was missing so as the index is decremented every DTLB update, the pinning of the third 8Mbytes page was overwriting the DTLB entry for IMMR. Signed-off-by: Christophe Leroy

[PATCH] powerpc 8xx: Reverting commit e0908085fc2391c85b85fb814ae1df377c8e0dcb which has become useless

2013-09-11 Thread Christophe Leroy
8xx. Signed-off-by: Christophe Leroy diff -ur linux-3.11.org/arch/powerpc/mm/pgtable.c linux-3.11/arch/powerpc/mm/pgtable.c --- linux-3.11.org/arch/powerpc/mm/pgtable.c2013-09-02 22:46:10.0 +0200 +++ linux-3.11/arch/powerpc/mm/pgtable.c2013-09-09 11:25:57.0 +0200

[PATCH v2] powerpc 8xx: Fixing issue with CONFIG_PIN_TLB

2013-09-12 Thread Christophe Leroy
This is a reorganisation of the setup of the TLB at kernel startup, in order to handle the CONFIG_PIN_TLB case in accordance with chapter 8.10.3 of MPC866 and MPC885 reference manuals. Signed-off-by: Christophe Leroy diff -ur linux-3.11.org/arch/powerpc/kernel/head_8xx.S linux-3.11/arch

[PATCH v4] powerpc 8xx: Fixing issue with CONFIG_PIN_TLB

2013-09-24 Thread Christophe Leroy
not pinned. Signed-off-by: Christophe Leroy diff -ur linux-3.11.org/arch/powerpc/kernel/head_8xx.S linux-3.11/arch/powerpc/kernel/head_8xx.S --- linux-3.11.org/arch/powerpc/kernel/head_8xx.S 2013-09-02 22:46:10.0 +0200 +++ linux-3.11/arch/powerpc/kernel/head_8xx.S 2013-09-09 11

[PATCH v2] lxt PHY: Support for the buggy LXT973 rev A2

2012-09-10 Thread Christophe Leroy
register. Implication: Managed applications may not obtain the correct register contents when a particular register is monitored for device status. Workaround: None. Status: This erratum has been previously fixed (in rev A3) Signed-off-by: Christophe Leroy diff -u linux-3.5-vanilla/drivers

[PATCH] Erroneous double irq_eoi() on CPM IRQ in MPC8xx

2013-04-17 Thread Christophe Leroy
irq_eoi() is already called by generic_handle_irq() so it shall not be called a again Signed-off-by: Christophe Leroy Index: linux/arch/powerpc/platforms/8xx/m8xx_setup.c === --- linux/arch/powerpc/platforms/8xx/m8xx_setup.c

[PATCH v2] Erroneous double irq_eoi() on CPM IRQ in MPC8xx

2013-04-17 Thread Christophe Leroy
irq_eoi() is already called by generic_handle_irq() so it shall not be called a again Signed-off-by: Christophe Leroy Index: linux/arch/powerpc/platforms/8xx/m8xx_setup.c === --- linux/arch/powerpc/platforms/8xx/m8xx_setup.c

[PATCH] Fix regression on spi-fsl-spi.c following modification on spi.c

2013-06-09 Thread Christophe Leroy
his patch fixes the issue by comparing the t->new bits_per_word and t->speed_hz with the previous one in order to determine if one of them changed. Signed-off-by: Christophe Leroy --- linux-3.8.13/drivers/spi/spi-fsl-spi.c 2013-05-11 22:57:46.0 +0200 +++ linux/drivers/sp

[PATCH] MAX7301 GPIO: Do not force SPI speed when using OF Platform

2013-03-22 Thread Christophe Leroy
The bit_per_word can be set in the OF Device tree, so no need to force it as with the platform_data when using OF Platform Signed-off-by: Patrick Vasseur Signed-off-by: Christophe Leroy diff -ur linux-3.8.4/drivers/gpio/gpio-max7301.c linux/drivers/gpio/gpio-max7301.c --- linux-3.8.4/drivers

Re: [PATCH v2] Adds support for Open Firmware in MAX730x GPIO Driver

2013-03-22 Thread christophe leroy
Le 22/03/2013 09:38, Linus Walleij a écrit : On Tue, Mar 5, 2013 at 4:26 PM, Christophe Leroy wrote: This patch allows the use of the MAX730x Driver on systems using the Open Firmware platform format. The bit_per_word can be set in the OF Device tree, so no need to force it as with the

Re: [PATCH v2] Adds support for Open Firmware in MAX730x GPIO Driver

2013-03-22 Thread christophe leroy
Le 22/03/2013 09:38, Linus Walleij a écrit : On Tue, Mar 5, 2013 at 4:26 PM, Christophe Leroy wrote: This patch allows the use of the MAX730x Driver on systems using the Open Firmware platform format. The bit_per_word can be set in the OF Device tree, so no need to force it as with the

[PATCH] MAX7301 GPIO: Reverting "Do not force SPI speed when using OF Platform"

2013-08-19 Thread Christophe Leroy
This patch reverts commit 047b93a35961f7a6561e6f5dcb040738f822b892 which breaks MAX7301 GPIO driver because that commit was dependant on a rejected patch that was implementing selection of SPI speed from the Device Tree. Signed-off-by: Christophe Leroy --- linux-3.11-rc6/drivers/gpio/gpio

[PATCH] Adding proper request of GPIO used by cpm_uart driver

2013-08-21 Thread Christophe Leroy
cpm_uart serial driver uses GPIO for control signals. In order to be used properly, GPIOs have to be reserved. Comment in gpiolib.c considers illegal the use of GPIOs without requesting them. In addition, the direction of the GPIO has to be set properly. Signed-off-by: Christophe Leroy diff -ur

Re: [PATCH] MAX7301 GPIO: Reverting "Do not force SPI speed when using OF Platform"

2013-08-24 Thread christophe leroy
Le 23/08/2013 19:47, Linus Walleij a écrit : On Tue, Aug 20, 2013 at 8:29 AM, Christophe Leroy wrote: This patch reverts commit 047b93a35961f7a6561e6f5dcb040738f822b892 which breaks MAX7301 GPIO driver because that commit was dependant on a rejected patch that was implementing selection of

[PATCH] SPI: Set SPI bits per words in an OF DeviceTree SPI node

2013-08-07 Thread Christophe Leroy
spi-max-frequency = <1000>; reg = <7>; spi-cs-high; spi-bits = <16>; }; Signed-off-by: Christophe Leroy --- linux-3.8.13/drivers/spi/spi.c 2013-05-11 22:57:46.0 +0200 +++ linux/drivers/spi/spi.c

[PATCH v3] Enhanced support for MPC8xx/8xxx watchdog

2013-08-07 Thread Christophe Leroy
out' allows to set up the userspace timeout. This patch also adds the WDIOC_SETTIMEOUT ioctl to the driver. Signed-off-by: Christophe Leroy --- linux-3.8.13/drivers/watchdog/mpc8xxx_wdt.c 2013-05-11 22:57:46.0 +0200 +++ linux/drivers/watchdog/mpc8xxx_wdt.c2013-08-08 02:12:15.000

[PATCH v2] Adds support for Open Firmware in MAX730x GPIO Driver

2013-03-05 Thread Christophe Leroy
This patch allows the use of the MAX730x Driver on systems using the Open Firmware platform format. The bit_per_word can be set in the OF Device tree, so no need to force it as with the platform_data. Signed-off-by: Patrick Vasseur Signed-off-by: Christophe Leroy diff -ur linux-3.7.9/drivers

[PATCH] hwmon/lm70: adding support for NS LM74 chip

2012-08-23 Thread Christophe Leroy
Hello, This Patch adds support for the LM74 chip from National Semiconductor (NS) in the lm70 driver Signed-off-by: Christophe Leroy diff -u linux-3.5-vanilla/drivers/hwmon/Kconfig linux-3.5/drivers/hwmon/Kconfig --- linux-3.5-vanilla/drivers/hwmon/Kconfig 2012-07-21 22:58:29.0

[PATCH] Powerpc 8xx CPM_UART delay in receive

2012-08-14 Thread Christophe Leroy
t 300 bauds. This fix limits to one byte the waiting period. Signed-off-by: Christophe Leroy --- linux-3.5-vanilla/drivers/tty/serial/cpm_uart/cpm_uart_core.c 2012-07-21 22:58:29.0 +0200 +++ linux-3.5/drivers/tty/serial/cpm_uart/cpm_uart_core.c 2012-08-09 17:38:37.0

[PATCH] Powerpc 8xx CPM_UART desynchronisation

2012-08-14 Thread Christophe Leroy
Hello, I'm not sure who to address this Patch to. It fixes a desynchronisation problem with CPM UART driver on Powerpc MPC8xx. The problem happens if data is received before the device is open by the user application. Signed-off-by: Christophe Leroy --- linux-3.5-vanilla/drivers/tty/s

[PATCH] lxt PHY: Support for the buggy LXT973 rev A2

2012-08-16 Thread Christophe Leroy
previous even register. Implication: Managed applications may not obtain the correct register contents when a particular register is monitored for device status. Workaround: None. Status: This erratum has been previously fixed (in rev A3) Signed-off-by: Christophe Leroy diff -u linux-3.5

Re: [PATCH] IIO ADC support for AD7923

2013-01-19 Thread christophe leroy
a bit new comers in Kernel Development, so thanks for your help. Christophe Le 08/01/2013 11:27, Lars-Peter Clausen a écrit : On 01/08/2013 09:42 AM, Christophe Leroy wrote: This patch adds support for Analog Devices AD7923 ADC in the IIO Subsystem. Signed-off-by: Patrick Vasseur Signed-o

[PATCH v3] IIO ADC support for AD7923

2013-02-12 Thread Christophe Leroy
This patch adds support for Analog Devices AD7923 ADC in the IIO Subsystem. Signed-off-by: Patrick Vasseur Signed-off-by: Christophe Leroy diff -urN linux-next-e347c98/drivers/iio/adc/Kconfig linux-next-e347c98.new/drivers/iio/adc/Kconfig --- linux-next-e347c98/drivers/iio/adc/Kconfig 2013

[PATCH] Enhanced support for MPC8xx/8xxx watchdog

2013-02-13 Thread Christophe Leroy
ements the WDIOC_SETTIMEOUT ioctl. Signed-off-by: Christophe Leroy diff -ur linux-3.7.7/drivers/watchdog/mpc8xxx_wdt.c linux/drivers/watchdog/mpc8xxx_wdt.c --- linux-3.7.7/drivers/watchdog/mpc8xxx_wdt.c 2013-02-11 18:05:09.0 +0100 +++ linux/drivers/watchdog/mpc8xxx_wdt.c2013-0

[PATCH] IIO ADC support for AD7923

2013-01-08 Thread Christophe Leroy
This patch adds support for Analog Devices AD7923 ADC in the IIO Subsystem. Signed-off-by: Patrick Vasseur Signed-off-by: Christophe Leroy diff -uN linux-3.7.1/drivers/staging/iio/adc/Kconfig linux/drivers/staging/iio/adc/Kconfig --- linux-3.7.1/drivers/staging/iio/adc/Kconfig 2012-12-17 20

Re: [PATCH v2 2/3] powerpc: get hugetlbpage handling more generic

2016-09-19 Thread christophe leroy
Le 19/09/2016 à 07:45, Aneesh Kumar K.V a écrit : Christophe Leroy writes: Today there are two implementations of hugetlbpages which are managed by exclusive #ifdefs: * FSL_BOOKE: several directory entries points to the same single hugepage * BOOK3S: one upper level directory entry points

Re: [PATCH v2 2/3] powerpc: get hugetlbpage handling more generic

2016-09-19 Thread christophe leroy
Le 19/09/2016 à 07:50, Aneesh Kumar K.V a écrit : Christophe Leroy writes: +#else +static void hugepd_free(struct mmu_gather *tlb, void *hugepte) +{ + BUG(); +} + #endif I was expecting that BUG will get removed in the next patch. But I don't see it in the next patch. Consid

Re: [PATCH v2 1/3] powerpc: port 64 bits pgtable_cache to 32 bits

2016-09-19 Thread christophe leroy
Le 19/09/2016 à 07:22, Aneesh Kumar K.V a écrit : Christophe Leroy writes: Today powerpc64 uses a set of pgtable_caches while powerpc32 uses standard pages when using 4k pages and a single pgtable_cache if using other size pages. In preparation of implementing huge pages on the 8xx, this

Re: [PATCH v2 2/3] powerpc: get hugetlbpage handling more generic

2016-09-19 Thread Christophe Leroy
Le 20/09/2016 à 04:28, Aneesh Kumar K.V a écrit : christophe leroy writes: Le 19/09/2016 à 07:50, Aneesh Kumar K.V a écrit : Christophe Leroy writes: +#else +static void hugepd_free(struct mmu_gather *tlb, void *hugepte) +{ + BUG(); +} + #endif I was expecting that BUG will

Re: [PATCH v2 2/3] powerpc: get hugetlbpage handling more generic

2016-09-20 Thread Christophe Leroy
Le 19/09/2016 à 07:45, Aneesh Kumar K.V a écrit : Christophe Leroy writes: Today there are two implementations of hugetlbpages which are managed by exclusive #ifdefs: * FSL_BOOKE: several directory entries points to the same single hugepage * BOOK3S: one upper level directory entry points

[PATCH v3 0/3] powerpc: implementation of huge pages for 8xx

2016-09-21 Thread Christophe Leroy
been split in two parts. v3: Taking into account comments from aneesh This patch serie applies on top of the patch serie named "Optimisation on 8xx prior to hugepage implementation" Christophe Leroy (3): powerpc: port 64 bits pgtable_cache to 32 bits powerpc: get hugetlbpage han

[PATCH v3 1/3] powerpc: port 64 bits pgtable_cache to 32 bits

2016-09-21 Thread Christophe Leroy
tables Signed-off-by: Christophe Leroy --- v2: in v1, hugepte_cache was wrongly replaced by PGT_CACHE(1). This modification has been removed from v2. v3: - Not adding anymore MIN_HUGEPTE_SHIFT to 32 bits headers as this constant was last used on kernel 2.6.32. - Fixed PMD_TABLE_SIZE and

[PATCH v3 2/3] powerpc: get hugetlbpage handling more generic

2016-09-21 Thread Christophe Leroy
() functions as they are pretty similar * merges the two hugetlbpage_init() functions as they are pretty similar Signed-off-by: Christophe Leroy --- v2: This part is new and results from a split of last patch of v1 serie in two parts v3: - Only allocate hugepte_cache on FSL_BOOKE. Not needed on BOOK3S_64

[PATCH v3 3/3] powerpc/8xx: Implement support of hugepages

2016-09-21 Thread Christophe Leroy
being, we do not support CPU15 ERRATA when HUGETLB is selected Signed-off-by: Christophe Leroy --- v2: This v1 was split in two parts. This part focuses on adding the support on 8xx. It also fixes an error in TLBmiss handlers in the case of 8M hugepages in 16k pages mode. v3: No change arch/powerpc

[PATCH] powerpc/64: get rid of MIN_HUGEPTE_SHIFT

2016-09-21 Thread Christophe Leroy
MIN_HUGEPTE_SHIFT hasn't been used since commit d1837cba5d5d5 ("powerpc/mm: Cleanup initialization of hugepages on powerpc") Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/64/hash-4k.h | 3 --- arch/powerpc/include/asm/book3s/64/hash-64k.h| 3 --

[PATCH] powerpc/32: fix csum_partial_copy_generic()

2016-08-01 Thread Christophe Leroy
is Fixes: 7aef4136566b0 ("powerpc32: rewrite csum_partial_copy_generic() based on copy_tofrom_user()") Cc: sta...@vger.kernel.org Signed-off-by: Christophe Leroy --- arch/powerpc/lib/checksum_32.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/lib/checksum

Re: [PATCH] powerpc/32: fix csum_partial_copy_generic()

2016-08-01 Thread Christophe Leroy
Le 01/08/2016 à 15:15, Segher Boessenkool a écrit : On Mon, Aug 01, 2016 at 02:56:05PM +0200, Christophe Leroy wrote: --- a/arch/powerpc/lib/checksum_32.S +++ b/arch/powerpc/lib/checksum_32.S @@ -127,7 +127,8 @@ _GLOBAL(csum_partial_copy_generic) stw r7,12(r1) stw r8,8

Re: [PATCH] powerpc/8xx: add system_reset_exception

2016-09-06 Thread Christophe Leroy
Le 07/09/2016 à 00:40, Scott Wood a écrit : On Mon, 2016-09-05 at 08:42 +0200, Christophe Leroy wrote: When the watchdog is in NMI mode, the system reset interrupt is generated when the watchdog counter expires. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_8xx.S | 2

Re: [PATCH v2] powerpc/32: fix csum_partial_copy_generic()

2016-08-05 Thread Christophe Leroy
Le 05/08/2016 à 08:57, Michael Ellerman a écrit : Alessio Igor Bogani writes: On 4 August 2016 at 05:53, Scott Wood wrote: On Tue, 2016-08-02 at 10:07 +0200, Christophe Leroy wrote: commit 7aef4136566b0 ("powerpc32: rewrite csum_partial_copy_generic() based on copy_tofrom

[PATCH] powerpc/40x: Clear MSR_DR in one insn instead of two

2016-08-05 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/misc_32.S | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/misc_32.S b/arch/powerpc/kernel/misc_32.S index d9c912b..e025230 100644 --- a/arch/powerpc/kernel/misc_32.S +++ b/arch/powerpc/kernel

[PATCH] powerpc/32: Remove CLR_TOP32

2016-08-05 Thread Christophe Leroy
CLR_TOP32() is defined as blank. Last useful instance of CLR_TOP32() was removed by commit 40ef8cbc6d360 ("powerpc: Get 64-bit configs to compile with ARCH=powerpc") Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ppc_asm.h | 1 - arch/powerpc/kernel/entry_32.S |

[PATCH] powerpc/32: Remove one insn in __bswapdi2

2016-08-05 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/misc_32.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/misc_32.S b/arch/powerpc/kernel/misc_32.S index e025230..e18055c 100644 --- a/arch/powerpc/kernel/misc_32.S +++ b/arch/powerpc/kernel

Re: [PATCH v13 3/6] CPM/QE: use genalloc to manage CPM/QE muram

2016-08-05 Thread Christophe Leroy
Le 30/11/2015 à 03:48, Zhao Qiang a écrit : Use genalloc to manage CPM/QE muram instead of rheap. Signed-off-by: Zhao Qiang --- Changes for v9: - splitted from patch 3/5, modify cpm muram management functions. Changes for v10: - modify cpm muram first, then move to qe_common

[PATCH] gpio: max730x: set gpiochip data pointeur before using it

2016-08-08 Thread Christophe Leroy
549d0f7c <813e0018> 7fc3f378 7d3f2430 57ff07fe [4.626041] ---[ end trace 303adb021dd4caf2 ]--- fixes: 5e45e01916197 ("gpio: max730x: use gpiochip data pointer") Cc: sta...@vger.kernel.org Signed-off-by: Christophe Leroy --- drivers/gpio/gpio-max730x.c | 8 1

Re: [PATCH v13 3/6] CPM/QE: use genalloc to manage CPM/QE muram

2016-08-08 Thread christophe leroy
Le 08/08/2016 à 05:00, Qiang Zhao a écrit : On 6/8/2016 03:48AM, Christophe Leroy wrote : -Original Message- From: Christophe Leroy [mailto:christophe.le...@c-s.fr] Sent: Saturday, August 06, 2016 12:59 AM To: Zhao Qiang ; lau...@codeaurora.org Cc: catalin.mari...@arm.com; linux

[PATCH 1/3] net: fs_enet: merge NAPI RX and NAPI TX

2016-08-24 Thread Christophe Leroy
ed-off-by: Christophe Leroy --- .../net/ethernet/freescale/fs_enet/fs_enet-main.c | 259 + drivers/net/ethernet/freescale/fs_enet/fs_enet.h | 16 +- drivers/net/ethernet/freescale/fs_enet/mac-fcc.c | 57 ++--- drivers/net/ethernet/freescale/fs_enet/mac-fec.c

[PATCH 2/3] net: fs_enet: don't unmap DMA when packet len is below copybreak

2016-08-24 Thread Christophe Leroy
eived Signed-off-by: Christophe Leroy --- .../net/ethernet/freescale/fs_enet/fs_enet-main.c | 36 -- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c

[PATCH 0/3] Optimisation of fs_enet ethernet driver

2016-08-24 Thread Christophe Leroy
This set optimises the freescale fs_enet ethernet driver: 1/ Merge of RX and TX NAPI functions in order to limit the amount of interrupts 2/ Do not unmap DMA when packets len is below copybreak, otherwise there is no benefit in copying the skb instead of allocating a new one 3/ Make copybreak value

[PATCH 3/3] net: fs_enet: make rx_copybreak value configurable

2016-08-24 Thread Christophe Leroy
make it configurable. Signed-off-by: Christophe Leroy --- drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 8 +--- include/linux/fs_enet_pd.h| 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/freescale/fs_enet/fs_enet

Re: [PATCH] net: phy: micrel: remove suspend/resume

2016-08-24 Thread Christophe Leroy
Le 23/08/2016 à 21:03, Florian Fainelli a écrit : +others, On 08/23/2016 04:13 AM, Christophe Leroy wrote: In ERRATA DS8700A dated 05 May 2016, Microship recommends to not use software power down mode on KSZ8041 family. s/Microship/Microchip/ They say they have no plan to fix this

Re: [PATCH 1/3] net: fs_enet: merge NAPI RX and NAPI TX

2016-08-24 Thread Christophe Leroy
Le 24/08/2016 à 15:07, Eric Dumazet a écrit : On Wed, 2016-08-24 at 12:36 +0200, Christophe Leroy wrote: Initially, a NAPI TX routine has been implemented separately from NAPI RX, as done on the freescale/gianfar driver. By merging NAPI RX and NAPI TX, we reduce the amount of TX completion

Re: [PATCH] net: phy: micrel: remove suspend/resume

2016-08-25 Thread Christophe Leroy
Le 26/08/2016 à 06:35, Florian Fainelli a écrit : Le 24/08/2016 à 07:14, Christophe Leroy a écrit : Le 23/08/2016 à 21:03, Florian Fainelli a écrit : +others, On 08/23/2016 04:13 AM, Christophe Leroy wrote: In ERRATA DS8700A dated 05 May 2016, Microship recommends to not use software

[PATCH] powerpc/32: fix again csum_partial_copy_generic()

2016-08-26 Thread Christophe Leroy
igned copy part is skipped so no alignment is performed. Fixes: 7aef4136566b0 ("powerpc32: rewrite csum_partial_copy_generic() based on copy_tofrom_user()") Cc: sta...@vger.kernel.org Reported-by: Alessio Igor Bogani Signed-off-by: Christophe Leroy Tested-by: Alessio Igor Boga

Re: [PATCH v9 17/20] crypto: talitos: move to generic async completion

2017-10-17 Thread Christophe LEROY
Le 15/10/2017 à 11:20, Gilad Ben-Yossef a écrit : The talitos driver starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef Tested-by: Christophe Leroy --- drivers/crypto/talitos.c | 38

Re: [PATCH v1 7/8] powerpc/Kconfig: Enable STRICT_KERNEL_RWX

2017-05-29 Thread Christophe LEROY
Le 25/05/2017 à 18:45, kbuild test robot a écrit : Hi Balbir, [auto build test ERROR on powerpc/next] [also build test ERROR on v4.12-rc2 next-20170525] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linu

[PATCH 7/7] powerpc/mm: Simplify __set_fixmap()

2017-05-29 Thread Christophe Leroy
; variable. This variable is set but has never been used from the beginning (commit 2c419bdeca1d9 ("[POWERPC] Port fixmap from x86 and use for kmap_atomic")) Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/fixmap.h | 10 +++--- arch/powerpc/mm/pgtable_32.c | 15

[PATCH 3/7] powerpc/mm: Fix kernel RAM protection after freeing unused memory on PPC32

2017-05-29 Thread Christophe Leroy
() Area ]--- This patch fixes that. The implementation is done by reusing the change_page_attr() function implemented for CONFIG_DEBUG_PAGEALLOC Signed-off-by: Christophe Leroy --- arch/powerpc/mm/mem.c| 1 + arch/powerpc/mm/mmu_decl.h | 3 +++ arch/powerpc/mm/pgtable_32.c | 13

[PATCH 5/7] powerpc/mm: declare some local functions static

2017-05-29 Thread Christophe Leroy
get_pteptr() and __mapin_ram_chunk() are only used locally, so define them static Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/pgtable.h | 3 --- arch/powerpc/include/asm/nohash/32/pgtable.h | 3 --- arch/powerpc/mm/pgtable_32.c | 4 ++-- 3 files

[PATCH 2/7] powerpc/mm: Ensure change_page_attr() doesn't invalidate pinned TLBs

2017-05-29 Thread Christophe Leroy
. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/pgtable_32.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c index 9c23c0965566..bdfee8e62a6a 100644 --- a/arch/powerpc/mm/pgtable_32.c +++ b/arch/powerpc/mm

[PATCH 6/7] powerpc/mm: remove __this_fixmap_does_not_exist()

2017-05-29 Thread Christophe Leroy
This function has not been used since commit 9494a1e8428ea ("powerpc: use generic fixmap.h) Signed-off-by: Christophe Leroy --- arch/powerpc/mm/pgtable_32.c | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c index d151779

[PATCH 4/7] powerpc/mm: Implement STRICT_KERNEL_RWX on PPC32

2017-05-29 Thread Christophe Leroy
and keep it OFF by default. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig | 3 ++- arch/powerpc/kernel/vmlinux.lds.S | 2 +- arch/powerpc/mm/init_32.c | 6 ++ arch/powerpc/mm/pgtable_32.c | 24 4 files changed, 33 insertions

[PATCH 0/7] powerpc/mm: Fix kernel protection and implement STRICT_KERNEL_RWX on PPC32

2017-05-29 Thread Christophe Leroy
ed "Enable STRICT_KERNEL_RWX" and applies on top of it. At the end we take the opportunity to get rid of some unneccessary/outdated fixmap stuff. Christophe Leroy (7): powerpc/mm: rename map_page() to map_kernel_page() on PPC32 powerpc/mm: Ensure change_page_attr() doesn'

[PATCH 1/7] powerpc/mm: rename map_page() to map_kernel_page() on PPC32

2017-05-29 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/pgtable.h | 2 ++ arch/powerpc/include/asm/nohash/32/pgtable.h | 2 ++ arch/powerpc/mm/8xx_mmu.c| 2 +- arch/powerpc/mm/dma-noncoherent.c| 2 +- arch/powerpc/mm/mem.c| 4

Re: [PATCH 1/7] powerpc/mm: rename map_page() to map_kernel_page() on PPC32

2017-05-30 Thread Christophe LEROY
Le 30/05/2017 à 12:50, Michael Ellerman a écrit : Christophe Leroy writes: ... Please tell me why. Because of patch https://patchwork.ozlabs.org/patch/766777/ which modifies patch_instruction() to use an alternative mapping. Compilation fails on PPC32 because map_kernel_page() only

[PATCH] powerpc: ipic - fix status get and status clear

2017-10-18 Thread Christophe Leroy
IPIC Status is provided by register IPIC_SERSR and not by IPIC_SERMR which is the mask register. Signed-off-by: Christophe Leroy --- arch/powerpc/sysdev/ipic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/sysdev/ipic.c b/arch/powerpc/sysdev/ipic.c index

Re: [PATCH] powerpc: ipic - fix status get and status clear

2017-10-18 Thread Christophe LEROY
Le 19/10/2017 à 07:06, Michael Ellerman a écrit : Christophe Leroy writes: IPIC Status is provided by register IPIC_SERSR and not by IPIC_SERMR which is the mask register. This seems like it would be a bad bug. But I guess it hasn't mattered for some reason? As far as I can see,

Re: [PATCH v2 01/25] powerpc/8xx: Save r3 all the time in DTLB miss handler

2015-10-06 Thread Christophe Leroy
Le 29/09/2015 00:07, Scott Wood a écrit : On Tue, Sep 22, 2015 at 06:50:29PM +0200, Christophe Leroy wrote: We are spending between 40 and 160 cycles with a mean of 65 cycles in the TLB handling routines (measured with mftbl) so make it more simple althought it adds one instruction. Signed

Re: [PATCH v2 06/25] powerpc32: iounmap() cannot vunmap() area mapped by TLBCAMs either

2015-10-06 Thread Christophe Leroy
Le 29/09/2015 01:41, Scott Wood a écrit : On Tue, Sep 22, 2015 at 06:50:40PM +0200, Christophe Leroy wrote: iounmap() cannot vunmap() area mapped by TLBCAMs either Signed-off-by: Christophe Leroy --- No change in v2 arch/powerpc/mm/pgtable_32.c | 4 +++- 1 file changed, 3 insertions

Re: [PATCH v2 07/25] powerpc32: refactor x_mapped_by_bats() and x_mapped_by_tlbcam() together

2015-10-06 Thread Christophe Leroy
Le 29/09/2015 01:47, Scott Wood a écrit : On Tue, Sep 22, 2015 at 06:50:42PM +0200, Christophe Leroy wrote: x_mapped_by_bats() and x_mapped_by_tlbcam() serve the same kind of purpose, so lets group them into a single function. Signed-off-by: Christophe Leroy --- No change in v2 arch

Re: [PATCH v2 11/25] powerpc/8xx: map 16M RAM at startup

2015-10-06 Thread Christophe Leroy
Le 29/09/2015 01:58, Scott Wood a écrit : On Tue, Sep 22, 2015 at 06:50:50PM +0200, Christophe Leroy wrote: On recent kernels, with some debug options like for instance CONFIG_LOCKDEP, the BSS requires more than 8M memory, allthough the kernel code fits in the first 8M. Today, it is necessary

Re: [PATCH v2 13/25] powerpc/8xx: also use r3 in the ITLB miss in all situations

2015-10-06 Thread Christophe Leroy
Le 29/09/2015 02:00, Scott Wood a écrit : On Tue, Sep 22, 2015 at 06:50:54PM +0200, Christophe Leroy wrote: We are spending between 40 and 160 cycles with a mean of 65 cycles in the TLB handling routines (measured with mftbl) so make it more simple althought it adds one instruction Signed

Re: [PATCH v2 15/25] powerpc/8xx: move 8xx SPRN defines into reg_8xx.h and add some missing ones

2015-10-06 Thread Christophe Leroy
Le 29/09/2015 02:03, Scott Wood a écrit : On Tue, Sep 22, 2015 at 06:50:58PM +0200, Christophe Leroy wrote: Move 8xx SPRN defines into reg_8xx.h and add some missing ones Signed-off-by: Christophe Leroy --- No change in v2 Why are they being moved? Why are they being separated from the

Re: [PATCH v2 01/25] powerpc/8xx: Save r3 all the time in DTLB miss handler

2015-10-06 Thread christophe leroy
Le 06/10/2015 18:46, Scott Wood a écrit : On Tue, 2015-10-06 at 15:35 +0200, Christophe Leroy wrote: Le 29/09/2015 00:07, Scott Wood a écrit : On Tue, Sep 22, 2015 at 06:50:29PM +0200, Christophe Leroy wrote: We are spending between 40 and 160 cycles with a mean of 65 cycles in the TLB

Re: [PATCH v2 22/25] powerpc32: move xxxxx_dcache_range() functions inline

2015-10-07 Thread Christophe Leroy
Le 29/09/2015 02:29, Scott Wood a écrit : On Tue, Sep 22, 2015 at 06:51:13PM +0200, Christophe Leroy wrote: flush/clean/invalidate _dcache_range() functions are all very similar and are quite short. They are mainly used in __dma_sync() perf_event locate them in the top 3 consumming functions

Re: [PATCH v2 22/25] powerpc32: move xxxxx_dcache_range() functions inline

2015-10-12 Thread christophe leroy
Le 08/10/2015 21:12, Scott Wood a écrit : On Wed, 2015-10-07 at 14:49 +0200, Christophe Leroy wrote: Le 29/09/2015 02:29, Scott Wood a écrit : On Tue, Sep 22, 2015 at 06:51:13PM +0200, Christophe Leroy wrote: flush/clean/invalidate _dcache_range() functions are all very similar and are

[PATCH] powerpc32: memcpy: only use dcbz once cache is enabled

2015-09-07 Thread Christophe Leroy
we patch memcpy() by replacing the temporary 'dcbt' by 'dcbz' Reported-by: Michal Sojka Signed-off-by: Christophe Leroy --- @Michal, can you please test it ? arch/powerpc/kernel/setup_32.c | 12 arch/powerpc/lib/copy_32.S | 11 ++- 2 files changed, 22 in

Re: Strange reports of perf events on powerpc 83xx

2015-09-02 Thread christophe leroy
Le 02/09/2015 16:20, Joakim Tjernlund a écrit : On Thu, 2015-08-27 at 15:58 +0200, leroy christophe wrote: Hi, Has anybody already used 'perf' tool on powerpc MPC83xx ? I have been succesfully using perf on MPC8xx, but on MPC83xx I get something strange. perf record/report reports addresses

[PATCH] powerpc/book3s32: Only select PPC_HAVE_PMU on e600

2015-09-03 Thread Christophe Leroy
inter() is redefined in arch/powerpc/perf/core-book3s.c when CONFIG_PPC_PERF_CTRS is selected. This patch moves the selection of CONFIG_PPC_HAVE_PMU in 86xx section so that CONFIG_PPC_PERF_CTRS won't be selected for other 6xx powerpc Signed-off-by: Christophe Leroy --- arch/powerpc/plat

Re: [PATCH] powerpc/book3s32: Only select PPC_HAVE_PMU on e600

2015-09-04 Thread christophe leroy
Le 04/09/2015 18:43, Scott Wood a écrit : On Thu, Sep 03, 2015 at 11:27:03AM +0200, Christophe Leroy wrote: On PPC832x, perf record/report reports martian addresses 2.62% perf_reseau4 libpthread-2.18.so [.] __libc_send 2.56% perf_reseau4 [kernel.kallsyms] [k] __ip_make_skb

[PATCH] powerpc/cpm1: fix compilation error with CONFIG_PPC_EARLY_DEBUG_CPM

2018-08-06 Thread Christophe Leroy
move superflous inclusions of asm/fixmap.h") Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/fixmap.h | 1 + arch/powerpc/sysdev/cpm_common.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/powerpc/include/asm/fixmap.h b/arch/powerpc/include/asm/fixmap.h index 40efdf1d2d6e.

  1   2   3   4   5   6   7   8   9   10   >