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
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
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,
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/
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,
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
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
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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
() 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
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
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 --
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
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
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
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
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
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 |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
; 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
() 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
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
.
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
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
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
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'
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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 - 100 of 3671 matches
Mail list logo