[PATCH v5 03/29] vfio: powerpc/spapr: Check that TCE page size is equal to it_page_size

2015-03-09 Thread Alexey Kardashevskiy
This checks that the TCE table page size is not bigger that the size of a page we just pinned and going to put its physical address to the table. Otherwise the hardware gets unwanted access to physical memory between the end of the actual page and the end of the aligned up TCE page. Since

Re: [PATCH 4/4] mm: numa: Slow PTE scan rate if migration failures occur

2015-03-09 Thread Dave Chinner
On Sun, Mar 08, 2015 at 11:35:59AM -0700, Linus Torvalds wrote: On Sun, Mar 8, 2015 at 3:02 AM, Ingo Molnar mi...@kernel.org wrote: But: As a second hack (not to be applied), could we change: #define _PAGE_BIT_PROTNONE _PAGE_BIT_GLOBAL to: #define _PAGE_BIT_PROTNONE

[PATCH v5 29/29] vfio: powerpc/spapr: Support Dynamic DMA windows

2015-03-09 Thread Alexey Kardashevskiy
This adds create/remove window ioctls to create and remove DMA windows. sPAPR defines a Dynamic DMA windows capability which allows para-virtualized guests to create additional DMA windows on a PCI bus. The existing linux kernels use this new window to map the entire guest memory and switch to the

[PATCH v5 16/29] powerpc/iommu: Fix IOMMU ownership control functions

2015-03-09 Thread Alexey Kardashevskiy
This adds missing locks in iommu_take_ownership()/ iommu_release_ownership(). This marks all pages busy in iommu_table::it_map in order to catch errors if there is an attempt to use this table while ownership over it is taken. This only clears TCE content if there is no page marked busy in

[PATCH v5 04/29] vfio: powerpc/spapr: Use it_page_size

2015-03-09 Thread Alexey Kardashevskiy
This makes use of the it_page_size from the iommu_table struct as page size can differ. This replaces missing IOMMU_PAGE_SHIFT macro in commented debug code as recently introduced IOMMU_PAGE_XXX macros do not include IOMMU_PAGE_SHIFT. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru

[PATCH v5 02/29] vfio: powerpc/spapr: Do cleanup when releasing the group

2015-03-09 Thread Alexey Kardashevskiy
This clears the TCE table when a container is being closed as this is a good thing to leave the table clean before passing the ownership back to the host kernel. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- drivers/vfio/vfio_iommu_spapr_tce.c | 14 +++--- 1 file changed, 11

Re: [PATCH v2 5/5] crypto: talitos: Add software backlog queue handling

2015-03-09 Thread Horia Geantă
On 3/6/2015 6:48 AM, Herbert Xu wrote: On Thu, Mar 05, 2015 at 11:35:23AM +0200, Horia Geantă wrote: Only potential problem is getting the crypto API to set the GFP_DMA flag in the allocation request, but presumably a CRYPTO_TFM_REQ_DMA crt_flag can be made to handle that. Right. And this

[PATCH v5 00/29] powerpc/iommu/vfio: Enable Dynamic DMA windows

2015-03-09 Thread Alexey Kardashevskiy
This enables sPAPR defined feature called Dynamic DMA windows (DDW). Each Partitionable Endpoint (IOMMU group) has an address range on a PCI bus where devices are allowed to do DMA. These ranges are called DMA windows. By default, there is a single DMA window, 1 or 2GB big, mapped at zero on a

[PATCH v5 05/29] vfio: powerpc/spapr: Move locked_vm accounting to helpers

2015-03-09 Thread Alexey Kardashevskiy
There moves locked pages accounting to helpers. Later they will be reused for Dynamic DMA windows (DDW). This reworks debug messages to show the current value and the limit. This stores the locked pages number in the container so when unlocking the iommu table pointer won't be needed. This does

[PATCH v5 19/29] poweppc/powernv/ioda2: Rework iommu_table creation

2015-03-09 Thread Alexey Kardashevskiy
This moves iommu_table creation to the beginning. This is a mechanical patch. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- arch/powerpc/platforms/powernv/pci-ioda.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git

[PATCH v5 06/29] vfio: powerpc/spapr: Disable DMA mappings on disabled container

2015-03-09 Thread Alexey Kardashevskiy
At the moment DMA map/unmap requests are handled irrespective to the container's state. This allows the user space to pin memory which it might not be allowed to pin. This adds checks to MAP/UNMAP that the container is enabled, otherwise -EPERM is returned. Signed-off-by: Alexey Kardashevskiy

[PATCH v5 24/29] powerpc/powernv: Change prototypes to receive iommu

2015-03-09 Thread Alexey Kardashevskiy
This changes few functions to receive a iommu_table_group pointer rather than PE as they are going to be a part of upcoming iommu_table_group_ops callback set. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- arch/powerpc/platforms/powernv/pci-ioda.c | 13 - 1 file changed, 8

[RFC v3 00/10] Freescale DPAA B/QMan drivers

2015-03-09 Thread Emil Medve
v3: Addressed feedback from Kumar and Scott (partially, more in the next round) Moved public headers into include/soc/fsl and code into drivers/soc/fsl Various clean-up v2: Moved out of staging into soc/freescale To do: Add a maintainer(s) entry Add module(s)

[PATCH v5 07/29] vfio: powerpc/spapr: Moving pinning/unpinning to helpers

2015-03-09 Thread Alexey Kardashevskiy
This is a pretty mechanical patch to make next patches simpler. New tce_iommu_unuse_page() helper does put_page() now but it might skip that after the memory registering patch applied. As we are here, this removes unnecessary checks for a value returned by pfn_to_page() as it cannot possibly

[PATCH v5 10/29] powerpc/powernv: Do not set read flag if direction==DMA_NONE

2015-03-09 Thread Alexey Kardashevskiy
Normally a bitmap from the iommu_table is used to track what TCE entry is in use. Since we are going to use iommu_table without its locks and do xchg() instead, it becomes essential not to put bits which are not implied in the direction flag. This adds iommu_direction_to_tce_perm() (its

[PATCH v5 20/29] powerpc/powernv/ioda2: Introduce pnv_pci_ioda2_create_table/pnc_pci_free_table

2015-03-09 Thread Alexey Kardashevskiy
This is a part of moving TCE table allocation into an iommu_ops callback to support multiple IOMMU groups per one VFIO container. This enforce window size to be a power of two. This is a pretty mechanical patch. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru ---

[PATCH v5 08/29] vfio: powerpc/spapr: Register memory

2015-03-09 Thread Alexey Kardashevskiy
The existing implementation accounts the whole DMA window in the locked_vm counter which is going to be even worse with multiple containers and huge DMA windows. This introduces 2 ioctls to register/unregister DMA memory which receive user space address and size of a memory region which needs to

[PATCH v5 17/29] powerpc/powernv/ioda/ioda2: Rework tce_build()/tce_free()

2015-03-09 Thread Alexey Kardashevskiy
The pnv_pci_ioda_tce_invalidate() helper invalidates TCE cache. It is supposed to be called on IODA1/2 and not called on p5ioc2. It receives start and end host addresses of TCE table. This approach makes it possible to get pnv_pci_ioda_tce_invalidate() unintentionally called on p5ioc2. Another

[PATCH v5 27/29] vfio: powerpc/spapr: powerpc/powernv/ioda2: Rework ownership

2015-03-09 Thread Alexey Kardashevskiy
Before the IOMMU user would take control over the IOMMU table belonging to a specific IOMMU group. This approach did not allow sharing tables between IOMMU groups attached to the same container. This introduces a new IOMMU ownership flavour when the user can not just control the existing IOMMU

[RFC v3 09/10] fsl_bman: Add HOTPLUG_CPU support

2015-03-09 Thread Emil Medve
From: Hai-Ying Wang haiying.w...@freescale.com Signed-off-by: Hai-Ying Wang haiying.w...@freescale.com --- drivers/soc/fsl/bman_portal.c | 45 ++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/drivers/soc/fsl/bman_portal.c

[RFC v3 10/10] fsl_qman: Add HOTPLUG_CPU support

2015-03-09 Thread Emil Medve
From: Hai-Ying Wang haiying.w...@freescale.com Signed-off-by: Hai-Ying Wang haiying.w...@freescale.com --- drivers/soc/fsl/qman_portal.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/drivers/soc/fsl/qman_portal.c b/drivers/soc/fsl/qman_portal.c

[RFC v3 06/10] fsl_qman: Add self-tester

2015-03-09 Thread Emil Medve
From: Geoff Thorpe geoff.tho...@freescale.com Signed-off-by: Geoff Thorpe geoff.tho...@freescale.com --- drivers/soc/fsl/Kconfig | 26 +- drivers/soc/fsl/Makefile | 4 + drivers/soc/fsl/bman_test.c | 2 +-

[PATCH v5 26/29] vfio: powerpc/spapr: Define v2 IOMMU

2015-03-09 Thread Alexey Kardashevskiy
The existing IOMMU code takes/releases ownership over the existing IOMMU tables created by the platform code, i.e. the tables remain in memory all the time. Also, the existing IOMMU requires VFIO_IOMMU_ENABLE call to start working as that's where we check the rlimit for locked pages. New IOMMU

[PATCH v5 13/29] powerpc/spapr: vfio: Switch from iommu_table to new iommu_table_group

2015-03-09 Thread Alexey Kardashevskiy
Modern IBM POWERPC systems support multiple (currently two) TCE tables per IOMMU group (a.k.a. PE). This adds a iommu_table_group container for TCE tables. Right now just one table is supported. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- arch/powerpc/include/asm/iommu.h|

[PATCH v5 01/29] vfio: powerpc/spapr: Move page pinning from arch code to VFIO IOMMU driver

2015-03-09 Thread Alexey Kardashevskiy
This moves page pinning (get_user_pages_fast()/put_page()) code out of the platform IOMMU code and puts it to VFIO IOMMU driver where it belongs to as the platform code does not deal with page pinning. This makes iommu_take_ownership()/iommu_release_ownership() deal with the IOMMU table bitmap

[PATCH v5 28/29] vfio: powerpc/spapr: Support multiple groups in one container if possible

2015-03-09 Thread Alexey Kardashevskiy
At the moment only one group per container is supported. POWER8 CPUs have more flexible design and allows naving 2 TCE tables per IOMMU group so we can relax this limitation and support multiple groups per container. This adds TCE table descriptors to a container and uses iommu_table_group_ops to

[RFC v3 04/10] powerpc/mpc85xx: Add platform support for the Freescale DPAA QMan

2015-03-09 Thread Emil Medve
From: Geoff Thorpe geoff.tho...@freescale.com Signed-off-by: Geoff Thorpe geoff.tho...@freescale.com --- arch/powerpc/platforms/85xx/corenet_generic.c | 8 +++- arch/powerpc/platforms/85xx/p1023_rdb.c | 8 +++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git

[RFC v3 07/10] fsl_bman: Add debugfs support

2015-03-09 Thread Emil Medve
From: Geoff Thorpe geoff.tho...@freescale.com Signed-off-by: Geoff Thorpe geoff.tho...@freescale.com --- drivers/soc/fsl/Kconfig| 7 +++ drivers/soc/fsl/Makefile | 1 + drivers/soc/fsl/bman_api.c | 19 +++ drivers/soc/fsl/bman_debugfs.c | 118

Re: [PATCH 0/2] crypto: talitos: Add AES-XTS mode

2015-03-09 Thread Martin Hicks
On Mon, Mar 9, 2015 at 6:16 AM, Horia Geantă horia.gea...@freescale.com wrote: On 3/3/2015 7:44 PM, Martin Hicks wrote: On Tue, Mar 3, 2015 at 10:44 AM, Horia Geantă horia.gea...@freescale.com wrote: For talitos, there are two cases: 1. request data size is = data unit / sector size

[PATCH v5 09/29] vfio: powerpc/spapr: Rework attach/detach

2015-03-09 Thread Alexey Kardashevskiy
This is to make extended ownership and multiple groups support patches simpler for review. This is a mechanical patch. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- drivers/vfio/vfio_iommu_spapr_tce.c | 38 ++--- 1 file changed, 23 insertions(+), 15

Re: Build regressions/improvements in v4.0-rc3

2015-03-09 Thread Arnd Bergmann
On Monday 09 March 2015 11:56:22 Geert Uytterhoeven wrote: On Mon, Mar 9, 2015 at 11:50 AM, Geert Uytterhoeven ge...@linux-m68k.org wrote: JFYI, when comparing v4.0-rc3[1] to v4.0-rc2[3], the summaries are: - build errors: +18/-7 + /home/kisskb/slave/src/arch/arm/mach-pxa/idp.c:

[RFC v3 05/10] fsl_bman: Add self-tester

2015-03-09 Thread Emil Medve
From: Geoff Thorpe geoff.tho...@freescale.com Signed-off-by: Geoff Thorpe geoff.tho...@freescale.com --- drivers/soc/fsl/Kconfig| 26 + drivers/soc/fsl/Makefile | 4 + drivers/soc/fsl/bman_test.c| 55 +++ drivers/soc/fsl/bman_test.h| 43

[PATCH v5 14/29] vfio: powerpc/spapr: powerpc/iommu: Rework IOMMU ownership control

2015-03-09 Thread Alexey Kardashevskiy
This replaces iommu_take_ownership()/iommu_release_ownership() calls with the callback calls and it is up to the platform code to call iommu_take_ownership()/iommu_release_ownership() if needed. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- arch/powerpc/include/asm/iommu.h| 4 +--

[PATCH v5 25/29] powerpc/powernv/ioda: Define and implement DMA table/window management callbacks

2015-03-09 Thread Alexey Kardashevskiy
This extends iommu_table_group_ops by a set of callbacks to support dynamic DMA windows management. query() returns IOMMU capabilities such as default DMA window address and supported number of DMA windows and TCE table levels. create_table() creates a TCE table with specific parameters. it

Re: [PATCH 1/5] arm: factor out mmap ASLR into mmap_rnd

2015-03-09 Thread Russell King - ARM Linux
On Mon, Mar 02, 2015 at 04:19:44PM -0800, Kees Cook wrote: In preparation for exporting per-arch mmap randomization functions, this moves the ASLR calculations for mmap on ARM into a separate routine. Signed-off-by: Kees Cook keesc...@chromium.org Looks fine, thanks. Acked-by: Russell King

Re: [PATCH v2 0/5] split ET_DYN ASLR from mmap ASLR

2015-03-09 Thread Russell King - ARM Linux
On Mon, Mar 02, 2015 at 04:19:43PM -0800, Kees Cook wrote: To address the offset2lib ASLR weakness[1], this separates ET_DYN ASLR from mmap ASLR, as already done on s390. The architectures that are already randomizing mmap (arm, arm64, mips, powerpc, s390, and x86), have their various forms of

[PATCH v5 23/29] powerpc/powernv: Implement multilevel TCE tables

2015-03-09 Thread Alexey Kardashevskiy
TCE tables might get too big in case of 4K IOMMU pages and DDW enabled on huge guests (hundreds of GB of RAM) so the kernel might be unable to allocate contiguous chunk of physical memory to store the TCE table. To address this, POWER8 CPU (actually, IODA2) supports multi-level TCE tables, up to

Re: Build regressions/improvements in v4.0-rc3

2015-03-09 Thread Geert Uytterhoeven
Hi Arnd, On Mon, Mar 9, 2015 at 3:10 PM, Arnd Bergmann a...@arndb.de wrote: smc91x fallout. The lpd270_defconfig failure looks like not covered by ARM: fix typos in smc91x platform data yet? It's not? This should be part of that patch: --- a/arch/arm/mach-pxa/lpd270.c +++

[RFC v3 03/10] powerpc/mpc85xx: Add platform support for the Freescale DPAA BMan

2015-03-09 Thread Emil Medve
From: Geoff Thorpe geoff.tho...@freescale.com Signed-off-by: Geoff Thorpe geoff.tho...@freescale.com --- arch/powerpc/Kconfig | 33 +++ arch/powerpc/configs/mpc85xx_defconfig| 1 + arch/powerpc/configs/mpc85xx_smp_defconfig| 1 +

Re: [PATCH 4/5] mm: split ET_DYN ASLR from mmap ASLR

2015-03-09 Thread Russell King - ARM Linux
On Mon, Mar 02, 2015 at 04:19:47PM -0800, Kees Cook wrote: diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 248d99cabaa8..e2f0ef9c6ee3 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1,7 +1,6 @@ config ARM bool default y - select

[PATCH v5 15/29] vfio: powerpc/spapr: powerpc/powernv/ioda2: Rework IOMMU ownership control

2015-03-09 Thread Alexey Kardashevskiy
At the moment the iommu_table struct has a set_bypass() which enables/ disables DMA bypass on IODA2 PHB. This is exposed to POWERPC IOMMU code which calls this callback when external IOMMU users such as VFIO are about to get over a PHB. The set_bypass() callback is not really an iommu_table

[PATCH v5 12/29] powerpc/iommu: Introduce iommu_table_alloc() helper

2015-03-09 Thread Alexey Kardashevskiy
This replaces multiple calls of kzalloc_node() with a new iommu_table_alloc() helper. Right now it calls kzalloc_node() but later it will be modified to allocate a iommu_table_group struct with a single iommu_table in it. Later the helper will allocate a iommu_table_group struct which embeds the

[PATCH v5 11/29] powerpc/iommu: Move tce_xxx callbacks from ppc_md to iommu_table

2015-03-09 Thread Alexey Kardashevskiy
This adds a iommu_table_ops struct and puts pointer to it into the iommu_table struct. This moves tce_build/tce_free/tce_get/tce_flush callbacks from ppc_md to the new struct where they really belong to. This adds the requirement for @it_ops to be initialized before calling iommu_init_table() to

[PATCH v5 21/29] powerpc/powernv/ioda2: Introduce pnv_pci_ioda2_set_window

2015-03-09 Thread Alexey Kardashevskiy
This is a part of moving DMA window programming to an iommu_ops callback. This is a mechanical patch. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- arch/powerpc/platforms/powernv/pci-ioda.c | 85 --- 1 file changed, 56 insertions(+), 29 deletions(-) diff

[PATCH v5 18/29] powerpc/iommu/powernv: Release replaced TCE

2015-03-09 Thread Alexey Kardashevskiy
At the moment writing new TCE value to the IOMMU table fails with EBUSY if there is a valid entry already. However PAPR specification allows the guest to write new TCE value without clearing it first. Another problem this patch is addressing is the use of pool locks for external IOMMU users such

Re: [PATCH 5/5] mm: fold arch_randomize_brk into ARCH_HAS_ELF_RANDOMIZE

2015-03-09 Thread Russell King - ARM Linux
On Mon, Mar 02, 2015 at 04:19:48PM -0800, Kees Cook wrote: diff --git a/arch/arm/include/asm/elf.h b/arch/arm/include/asm/elf.h index afb9cafd3786..c1ff8ab12914 100644 --- a/arch/arm/include/asm/elf.h +++ b/arch/arm/include/asm/elf.h @@ -125,10 +125,6 @@ int dump_task_regs(struct task_struct

Re: [PATCH 2/5] mm: expose arch_mmap_rnd when available

2015-03-09 Thread Russell King - ARM Linux
On Mon, Mar 02, 2015 at 04:19:45PM -0800, Kees Cook wrote: diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 9f1f09a2bc9b..248d99cabaa8 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -3,6 +3,7 @@ config ARM default y select ARCH_BINFMT_ELF_RANDOMIZE_PIE

[PATCH v5 22/29] powerpc/iommu: Split iommu_free_table into 2 helpers

2015-03-09 Thread Alexey Kardashevskiy
The iommu_free_table helper release memory it is using (the TCE table and @it_map) and release the iommu_table struct as well. We might not want the very last step as we store iommu_table in parent structures. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru ---

[RFC v3 08/10] fsl_qman: Add debugfs support

2015-03-09 Thread Emil Medve
From: Geoff Thorpe geoff.tho...@freescale.com Signed-off-by: Geoff Thorpe geoff.tho...@freescale.com --- drivers/soc/fsl/Kconfig|7 + drivers/soc/fsl/Makefile |1 + drivers/soc/fsl/qman_api.c | 58 ++ drivers/soc/fsl/qman_debugfs.c | 1325

Re: [RFC V2 03/12] i2c: at91: make use of the new infrastructure for quirks

2015-03-09 Thread Ludovic Desroches
Hi Wolfram, On Sun, Mar 08, 2015 at 09:28:45AM +0100, Wolfram Sang wrote: On Wed, Feb 25, 2015 at 05:01:54PM +0100, Wolfram Sang wrote: From: Wolfram Sang wsa+rene...@sang-engineering.com Signed-off-by: Wolfram Sang wsa+rene...@sang-engineering.com Hi Ludovic, if you have a few

Re: [PATCH v3 0/10] split ET_DYN ASLR from mmap ASLR

2015-03-09 Thread Russell King - ARM Linux
On Tue, Mar 03, 2015 at 06:10:15PM -0800, Kees Cook wrote: To address the offset2lib ASLR weakness[1], this separates ET_DYN ASLR from mmap ASLR, as already done on s390. The architectures that are already randomizing mmap (arm, arm64, mips, powerpc, s390, and x86), have their various forms of

Re: [PATCH 4/4] mm: numa: Slow PTE scan rate if migration failures occur

2015-03-09 Thread Linus Torvalds
On Mon, Mar 9, 2015 at 4:29 AM, Dave Chinner da...@fromorbit.com wrote: Also, is there some sane way for me to actually see this behavior on a regular machine with just a single socket? Dave is apparently running in some fake-numa setup, I'm wondering if this is easy enough to reproduce that

Re: [PATCH v3 0/10] split ET_DYN ASLR from mmap ASLR

2015-03-09 Thread Kees Cook
On Mon, Mar 9, 2015 at 9:19 AM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Tue, Mar 03, 2015 at 06:10:15PM -0800, Kees Cook wrote: To address the offset2lib ASLR weakness[1], this separates ET_DYN ASLR from mmap ASLR, as already done on s390. The architectures that are already

Re: [PATCH v4 06/10] s390: standardize mmap_rnd() usage

2015-03-09 Thread Martin Schwidefsky
On Wed, 4 Mar 2015 13:10:50 -0800 Kees Cook keesc...@chromium.org wrote: In preparation for splitting out ET_DYN ASLR, this refactors the use of mmap_rnd() to be used similarly to arm and x86, and extracts the checking of PF_RANDOMIZE. Signed-off-by: Kees Cook keesc...@chromium.org ---

Re: [PATCH v4 08/10] s390: redefine randomize_et_dyn for ELF_ET_DYN_BASE

2015-03-09 Thread Martin Schwidefsky
On Wed, 4 Mar 2015 13:10:52 -0800 Kees Cook keesc...@chromium.org wrote: In preparation for moving ET_DYN randomization into the ELF loader (which requires a static ELF_ET_DYN_BASE), this redefines s390's existing ET_DYN randomization in a call to arch_mmap_rnd(). This refactoring results in

Re: [PATCH 4/4] mm: numa: Slow PTE scan rate if migration failures occur

2015-03-09 Thread Mel Gorman
On Sun, Mar 08, 2015 at 08:40:25PM +, Mel Gorman wrote: Because if the answer is 'yes', then we can safely say: 'we regressed performance because correctness [not dropping dirty bits] comes before performance'. If the answer is 'no', then we still have a mystery (and a regression)

Re: [PATCH] ps3: Fix trivial typos in comment and debug message

2015-03-09 Thread Geoff Levand
On Sat, 2015-03-07 at 13:03 +0100, Yannick Guerrini wrote: Change 'prosessor' to 'processor' Change 'set_inteval' to 'set_interval' Signed-off-by: Yannick Guerrini yguerr...@tomshardware.fr --- drivers/ps3/ps3-lpm.c | 4 ++-- Looks good. Thanks for the fixes. Acked-by: Geoff Levand

Re: [PATCH v2 15/17] crypto: talitos - Implementation of SEC1

2015-03-09 Thread Kim Phillips
On Fri, 6 Mar 2015 17:42:26 +0100 Christophe Leroy christophe.le...@c-s.fr wrote: This patch adds talitos1.c and talitos1.h with all specificities needed to handle the SEC1 security engine found in MPC885 and MPC8272. The SEC1 has several differences with its younger brother SEC2: * Several

Re: [REGRESSION in 3.18][PPC] PA Semi fails to boot after: of/base: Fix PowerPC address parsing hack

2015-03-09 Thread Olof Johansson
On Mon, Mar 9, 2015 at 5:28 PM, Michael Ellerman m...@ellerman.id.au wrote: On Sat, 2015-03-07 at 15:02 +1100, Benjamin Herrenschmidt wrote: On Fri, 2015-03-06 at 15:50 -0800, Olof Johansson wrote: On Fri, Mar 6, 2015 at 2:56 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On

Re: [PATCH] powerpc64: use fixed lock token for !CONFIG_PPC_SPLPAR

2015-03-09 Thread Michael Ellerman
On Mon, 2015-03-09 at 17:53 +1100, Benjamin Herrenschmidt wrote: On Sat, 2015-03-07 at 19:19 +0800, Kevin Hao wrote: It makes no sense to use a variant lock token on a platform which doesn't support for shared-processor logical partitions. Actually we can eliminate a memory load by using a

Re: [PATCH v2] powerpc/numa: set node_possible_map to only node_online_map during boot

2015-03-09 Thread Michael Ellerman
On Thu, 2015-03-05 at 21:27 -0800, Nishanth Aravamudan wrote: diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 0257a7d659ef..0c1716cd271f 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c @@ -958,6 +958,13 @@ void __init initmem_init(void)

Re: Problems with Kernels 3.17-rc1 and onwards on Acube Sam460 AMCC 460ex board

2015-03-09 Thread Michael Ellerman
On Sat, 2015-03-07 at 12:10 -0400, Julian Margetson wrote: With the latest commits [ 29.960572] Unable to handle kernel paging request for data at address 0x0008 [ 29.974350] Faulting instruction address: 0xc04a4f44 [ 32.012918] Oops: Kernel access of bad area, sig: 11 [#1] [

Re: [REGRESSION in 3.18][PPC] PA Semi fails to boot after: of/base: Fix PowerPC address parsing hack

2015-03-09 Thread Michael Ellerman
On Sat, 2015-03-07 at 15:02 +1100, Benjamin Herrenschmidt wrote: On Fri, 2015-03-06 at 15:50 -0800, Olof Johansson wrote: On Fri, Mar 6, 2015 at 2:56 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Fri, 2015-03-06 at 10:00 -0500, Steven Rostedt wrote: On Fri, 06 Mar 2015

Re: [PATCH] crypto: powerpc - move files to fix build error

2015-03-09 Thread Herbert Xu
On Fri, Mar 06, 2015 at 06:46:21PM -0600, Kim Phillips wrote: The current cryptodev-2.6 tree commits: d9850fc529ef (crypto: powerpc/sha1 - kernel config) 50ba29aaa7b0 (crypto: powerpc/sha1 - glue) failed to properly place files under arch/powerpc/crypto, which leads to build errors:

Re: Build regressions/improvements in v4.0-rc3

2015-03-09 Thread Geert Uytterhoeven
On Mon, Mar 9, 2015 at 11:50 AM, Geert Uytterhoeven ge...@linux-m68k.org wrote: JFYI, when comparing v4.0-rc3[1] to v4.0-rc2[3], the summaries are: - build errors: +18/-7 + /home/kisskb/slave/src/arch/arm/mach-pxa/idp.c: error: 'SMC91X_NOWAIT' undeclared here (not in a function): = 85:47

Re: Problems with Kernels 3.17-rc1 and onwards on Acube Sam460 AMCC 460ex board

2015-03-09 Thread Julian Margetson
On 3/9/2015 8:30 PM, Michael Ellerman wrote: On Sat, 2015-03-07 at 12:10 -0400, Julian Margetson wrote: With the latest commits [ 29.960572] Unable to handle kernel paging request for data at address 0x0008 [ 29.974350] Faulting instruction address: 0xc04a4f44 [ 32.012918] Oops:

Re: [PATCH v4 0/3] powerpc: Enable seccomp filter support

2015-03-09 Thread Purcareata Bogdan
On 27.02.2015 22:54, Benjamin Herrenschmidt wrote: On Fri, 2015-02-27 at 09:28 +0200, Purcareata Bogdan wrote: Ping? What is the ping for ? Ben. Making sure the patches are not lost on the mailing lists :) Didn't receive any feedback on v4 and just wanted to check if there's anything

Re: [PATCH] powerpc64: use fixed lock token for !CONFIG_PPC_SPLPAR

2015-03-09 Thread Benjamin Herrenschmidt
On Sat, 2015-03-07 at 19:19 +0800, Kevin Hao wrote: It makes no sense to use a variant lock token on a platform which doesn't support for shared-processor logical partitions. Actually we can eliminate a memory load by using a fixed lock token on these platforms. Does this provide an actual

Re: [PATCH] powerpc: book3e_64: fix the align size for paca_struct

2015-03-09 Thread Benjamin Herrenschmidt
On Mon, 2015-03-09 at 09:13 +0800, Kevin Hao wrote: On Sun, Mar 08, 2015 at 08:13:26PM +1100, Benjamin Herrenschmidt wrote: On Sat, 2015-03-07 at 19:14 +0800, Kevin Hao wrote: All the cache line size of the current book3e 64bit SoCs are 64 bytes. So we should use this size to align the

Re: [PATCH 2/2] crypto: talitos: Add AES-XTS Support

2015-03-09 Thread Horia Geantă
On 3/7/2015 3:16 AM, Kim Phillips wrote: On Fri, 6 Mar 2015 11:49:43 -0500 Martin Hicks m...@bork.org wrote: On Thu, Mar 5, 2015 at 7:16 PM, Kim Phillips kim.phill...@freescale.com wrote: On Fri, 20 Feb 2015 12:00:10 -0500 Martin Hicks m...@bork.org wrote: The newer talitos hardware has

Re: [PATCH 0/2] crypto: talitos: Add AES-XTS mode

2015-03-09 Thread Horia Geantă
On 3/3/2015 7:44 PM, Martin Hicks wrote: On Tue, Mar 3, 2015 at 10:44 AM, Horia Geantă horia.gea...@freescale.com wrote: On 3/3/2015 12:09 AM, Martin Hicks wrote: On Mon, Mar 02, 2015 at 03:37:28PM +0100, Milan Broz wrote: If crypto API allows to encrypt more sectors in one run (handling