Re: [RESEND PATCH V4 1/4] stm class: provision for statically assigned masterIDs

2016-03-21 Thread Alexander Shishkin
Chunyan Zhang writes: > From: Mathieu Poirier > > Some architecture like ARM assign masterIDs at the HW design > phase. Those are therefore unreachable to users, making masterID > management in the generic STM core irrelevant. > > In this kind of configuration channels are shared between master

[PATCH] Documentation: update missing index files in block/00-INDEX

2016-03-21 Thread Wei Fang
Update missing index files in block/00-INDEX. Signed-off-by: Wei Fang --- Documentation/block/00-INDEX |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/Documentation/block/00-INDEX b/Documentation/block/00-INDEX index e840b47..e55103a 100644 --- a/Documentation/block/0

Re: [PATCH v5 1/6] Elf: add livepatch-specific Elf constants

2016-03-21 Thread Miroslav Benes
On Wed, 16 Mar 2016, Jessica Yu wrote: > Livepatch manages its own relocation sections and symbols in order to be > able to reuse module loader code to write relocations. This removes > livepatch's dependence on separate "dynrela" sections to write relocations > and also allows livepatch to patch

Re: [PATCH v5 2/6] module: preserve Elf information for livepatch modules

2016-03-21 Thread Miroslav Benes
On Wed, 16 Mar 2016, Jessica Yu wrote: > For livepatch modules, copy Elf section, symbol, and string information > from the load_info struct in the module loader. Persist copies of the > original symbol table and string table. > > Livepatch manages its own relocation sections in order to reuse mo

Re: [PATCH v5 3/6] module: s390: keep mod_arch_specific for livepatch modules

2016-03-21 Thread Miroslav Benes
On Wed, 16 Mar 2016, Jessica Yu wrote: > Livepatch needs to utilize the symbol information contained in the > mod_arch_specific struct in order to be able to call the s390 > apply_relocate_add() function to apply relocations. Keep a reference to > syminfo if the module is a livepatch module. Remov

Re: [PATCH v5 4/6] livepatch: reuse module loader code to write relocations

2016-03-21 Thread Miroslav Benes
On Wed, 16 Mar 2016, Jessica Yu wrote: [...] > +struct klp_buf { > + char symname[KSYM_SYMBOL_LEN]; I think it is better to make this KSYM_NAME_LEN. KSYM_SYMBOL_LEN looks like something different and KSYM_NAME_LEN is 128 which you reference below. > + char objname[MODULE_NAME_LEN]; >

Re: [PATCH v5 5/6] samples: livepatch: mark as livepatch module

2016-03-21 Thread Miroslav Benes
On Wed, 16 Mar 2016, Jessica Yu wrote: > Mark the module as a livepatch module so that the module loader can > appropriately identify and initialize it. > > Signed-off-by: Jessica Yu Reviewed-by: Miroslav Benes -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body

Re: [PATCH v5 6/6] Documentation: livepatch: outline Elf format and requirements for patch modules

2016-03-21 Thread Miroslav Benes
On Wed, 16 Mar 2016, Jessica Yu wrote: > Document livepatch module requirements and the special Elf constants patch > modules use. > > Signed-off-by: Jessica Yu Fantastic to have it Acked-by: Miroslav Benes -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of

Re: [PATCH v5 2/6] module: preserve Elf information for livepatch modules

2016-03-21 Thread Josh Poimboeuf
On Wed, Mar 16, 2016 at 03:47:04PM -0400, Jessica Yu wrote: > For livepatch modules, copy Elf section, symbol, and string information > from the load_info struct in the module loader. Persist copies of the > original symbol table and string table. > > Livepatch manages its own relocation sections

Re: [PATCH v5 4/6] livepatch: reuse module loader code to write relocations

2016-03-21 Thread Josh Poimboeuf
On Wed, Mar 16, 2016 at 03:47:06PM -0400, Jessica Yu wrote: > Reuse module loader code to write relocations, thereby eliminating the need > for architecture specific relocation code in livepatch. Specifically, reuse > the apply_relocate_add() function in the module loader to write relocations > ins

Re: [PATCH v5 5/6] samples: livepatch: mark as livepatch module

2016-03-21 Thread Josh Poimboeuf
On Wed, Mar 16, 2016 at 03:47:07PM -0400, Jessica Yu wrote: > Mark the module as a livepatch module so that the module loader can > appropriately identify and initialize it. > > Signed-off-by: Jessica Yu > --- > samples/livepatch/livepatch-sample.c | 1 + > 1 file changed, 1 insertion(+) > > di

[PATCHv3 2/9] EDAC, altera: Move Device structs and defines to header file

2016-03-21 Thread tthayer
From: Thor Thayer Move the device structs and defines to altera_edac.h in preparation for adding the Arria10 L2 cache ECC. Signed-off-by: Thor Thayer --- v2: Split original patch into smaller patches. Move private data and defines into header file. v3: Commented description above defines. -

[PATCHv3 3/9] EDAC, altera: Remove platform device from check_deps()

2016-03-21 Thread tthayer
From: Thor Thayer In preparation for the Arria10 peripheral ECCs, the platform device parameter is removed from the check_deps() functions because it is not needed and makes the Arria10 check_deps() cleaner. Signed-off-by: Thor Thayer --- v3: This change added. --- drivers/edac/altera_edac.c

[PATCHv3 9/9] ARM: dts: Add Altera Arria10 L2 Cache EDAC devicetree entry

2016-03-21 Thread tthayer
From: Thor Thayer Add the device tree entries needed to support the Altera L2 cache EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- v2 Match register value (l2-ecc@ffd06010) v3 Set ecc_manager to beginning of system_manager. Add sysman phandle. Move IRQs into ecc_manager from childr

[PATCHv3 4/9] EDAC, altera: Abstract ECC Enable Mask in check_deps()

2016-03-21 Thread tthayer
From: Thor Thayer In preparation for the Arria10 peripheral ECCs, the ECC Enable mask is used in place of hard coded masks in the check dependency functions. Signed-off-by: Thor Thayer --- v3: This change added. --- drivers/edac/altera_edac.c |9 +++-- 1 file changed, 7 insertions(+),

[PATCHv3 5/9] EDAC, altera: Add register offset for ECC Error Inject

2016-03-21 Thread tthayer
From: Thor Thayer In preparation for the Arria10 peripheral ECCs, a register offset from the ECC base was added to the private data structure to index to the error injection register. Signed-off-by: Thor Thayer --- v2: Split large patch into smaller patches. Add an ECC error inject offset t

Series adding Arria10 L2 Cache EDAC

2016-03-21 Thread tthayer
This version refactors how the EDAC is configured for Arria10 since the ECC hardware is significantly different than Cyclone5 and Arria5. Since all the IRQs are shared, a new probe function based on the xgene codebase was used. [PATCHv3 1/9] EDAC: Altera L2 Kconfig change from select to depends [

[PATCHv3 1/9] EDAC: Altera L2 Kconfig change from select to depends upon.

2016-03-21 Thread tthayer
From: Thor Thayer Force L2 cache dependency instead of forcing selection of L2 cache. Signed-off-by: Thor Thayer --- v2/3 No change --- drivers/edac/Kconfig |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig index 37755e6..6c

[PATCHv3 8/9] ARM: socfpga: Enable Arria10 L2 cache ECC on startup

2016-03-21 Thread tthayer
From: Thor Thayer Enable ECC for Arria10 L2 cache on machine startup. The ECC has to be enabled before data is stored in memory otherwise the ECC will fail on reads. Use DT_MACHINE to select Arria10 L2 cache function. Signed-off-by: Thor Thayer Acked-by: Dinh Nguyen --- v2: Split into 2 separa

[PATCHv3 7/9] EDAC, altera: Addition of Arria10 L2 Cache ECC

2016-03-21 Thread tthayer
From: Thor Thayer Addition of the Arria10 L2 Cache ECC handling. Addition of private data structure for Arria10 L2 cache ECC and the probe function for it. The Arria10 ECC device IRQs are in a shared register so the ECC Manager parent/child relationship requires a different probe function. Signe

[PATCHv3 6/9] Documentation: dt: socfpga: Add Altera Arria10 L2 cache binding

2016-03-21 Thread tthayer
From: Thor Thayer Add the device tree bindings needed to support the Altera L2 cache on the Arria10 chip. Since all the peripherals share IRQs, the IRQ fields are now in the ecc_manager. Signed-off-by: Thor Thayer --- v2 Correct spelling of Arria10 in patch title. v3 Major restructuring change

Re: [PATCH v5 4/6] livepatch: reuse module loader code to write relocations

2016-03-21 Thread Petr Mladek
On Wed 2016-03-16 15:47:06, Jessica Yu wrote: > Reuse module loader code to write relocations, thereby eliminating the need > for architecture specific relocation code in livepatch. Specifically, reuse > the apply_relocate_add() function in the module loader to write relocations > instead of duplic

Re: [PATCH v5 4/6] livepatch: reuse module loader code to write relocations

2016-03-21 Thread Josh Poimboeuf
On Mon, Mar 21, 2016 at 05:31:57PM +0100, Petr Mladek wrote: > > diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c > > index 780f00c..2aa20fa 100644 > > --- a/kernel/livepatch/core.c > > +++ b/kernel/livepatch/core.c > > +static int klp_resolve_symbols(Elf_Shdr *relasec, struct module

Re: [PATCH v5 2/6] module: preserve Elf information for livepatch modules

2016-03-21 Thread Petr Mladek
On Wed 2016-03-16 15:47:04, Jessica Yu wrote: > For livepatch modules, copy Elf section, symbol, and string information > from the load_info struct in the module loader. Persist copies of the > original symbol table and string table. > > Livepatch manages its own relocation sections in order to re

[PATCH 0/2] Re-work UV BAU enable/disable logic, add documentation

2016-03-21 Thread Alex Thorlton
Hey everyone, This is a fairly simple change to disable the UV BAU by default (see commit message for reasoning) and to add some documentation to kernel-parameters.txt to explain the new parameter. Let me know what you think! Alex Thorlton (2): Disable UV BAU by default Add documentation for

[PATCH 2/2] Add documentation for the bau parameter

2016-03-21 Thread Alex Thorlton
This commit updates kernel-parameters.txt with some information about the new "bau" parameter. Signed-off-by: Alex Thorltlon Cc: Jonathan Corbet Cc: Hedi Berriche Cc: linux-ker...@vger.kernel.org --- Documentation/kernel-parameters.txt | 8 1 file changed, 8 insertions(+) diff --git

Re: [PATCH v5 4/6] livepatch: reuse module loader code to write relocations

2016-03-21 Thread Josh Poimboeuf
On Mon, Mar 21, 2016 at 11:46:51AM -0500, Josh Poimboeuf wrote: > On Mon, Mar 21, 2016 at 05:31:57PM +0100, Petr Mladek wrote: > > > diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c > > > index 780f00c..2aa20fa 100644 > > > --- a/kernel/livepatch/core.c > > > +++ b/kernel/livepatch/co

Re: livepatch: reuse module loader code to write relocations

2016-03-21 Thread Jessica Yu
+++ Josh Poimboeuf [21/03/16 12:36 -0500]: On Mon, Mar 21, 2016 at 11:46:51AM -0500, Josh Poimboeuf wrote: On Mon, Mar 21, 2016 at 05:31:57PM +0100, Petr Mladek wrote: > > diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c > > index 780f00c..2aa20fa 100644 > > --- a/kernel/livepatch/

Re: livepatch: reuse module loader code to write relocations

2016-03-21 Thread Jessica Yu
+++ Miroslav Benes [21/03/16 14:55 +0100]: On Wed, 16 Mar 2016, Jessica Yu wrote: [...] +struct klp_buf { + char symname[KSYM_SYMBOL_LEN]; I think it is better to make this KSYM_NAME_LEN. KSYM_SYMBOL_LEN looks like something different and KSYM_NAME_LEN is 128 which you reference below.

Re: livepatch: reuse module loader code to write relocations

2016-03-21 Thread Josh Poimboeuf
On Mon, Mar 21, 2016 at 03:18:32PM -0400, Jessica Yu wrote: > +++ Miroslav Benes [21/03/16 14:55 +0100]: > >On Wed, 16 Mar 2016, Jessica Yu wrote: > > > >[...] > > > >>+struct klp_buf { > >>+ char symname[KSYM_SYMBOL_LEN]; > > > >I think it is better to make this KSYM_NAME_LEN. KSYM_SYMBOL_LEN lo

FOR YOUR INFORMATION DEAR BENEFICIARY,

2016-03-21 Thread David Kedogo
FOR YOUR INFORMATION DEAR BENEFICIARY, Your Over-due ATM Card payment of $1.5MUSD by the UN Office have deposited to the ATM MASTER CARD OFFICE. All you have to do now is to contact the Office Manager Dr. peter Akupa Boni at: (peterakupa...@gmail.com) and Phone number: +229 61 31 07 78 , he will

Re: [RESEND PATCH V4 1/4] stm class: provision for statically assigned masterIDs

2016-03-21 Thread Mathieu Poirier
On 21 March 2016 at 01:47, Alexander Shishkin wrote: > Chunyan Zhang writes: > >> From: Mathieu Poirier >> >> Some architecture like ARM assign masterIDs at the HW design >> phase. Those are therefore unreachable to users, making masterID >> management in the generic STM core irrelevant. >> >>

[PATCH] Documentation,barriers: Mention smp_cond_acquire()

2016-03-21 Thread Davidlohr Bueso
... do this next to smp_load_acquire when first mentioning ACQUIRE. While this call is briefly explained and ctrl dependencies are mentioned later, it does not hurt the reader. Signed-off-by: Davidlohr Bueso --- Documentation/memory-barriers.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 dele

Re: livepatch: reuse module loader code to write relocations

2016-03-21 Thread Jiri Kosina
On Mon, 21 Mar 2016, Jessica Yu wrote: > Yes, this is a concern and I'm not sure what the best way to fix it > is. If both MODULE_NAME_LEN and KSYM_NAME_LEN were straight up > constants, then I think Josh's stringify approach would have worked > perfectly. However since MODULE_NAME_LEN translates

Re: livepatch: reuse module loader code to write relocations

2016-03-21 Thread Josh Poimboeuf
On Mon, Mar 21, 2016 at 10:16:17PM +0100, Jiri Kosina wrote: > On Mon, 21 Mar 2016, Jessica Yu wrote: > > > Yes, this is a concern and I'm not sure what the best way to fix it > > is. If both MODULE_NAME_LEN and KSYM_NAME_LEN were straight up > > constants, then I think Josh's stringify approach w

Re: livepatch: reuse module loader code to write relocations

2016-03-21 Thread Jiri Kosina
On Mon, 21 Mar 2016, Josh Poimboeuf wrote: > According to my test that still results in the literal value of > "(64 - 8)". Alright. But we should be able to special-case it with a two #if checks on the __SIZEOF_LONG__ value and BUILD_BUG_ON() when __SIZEOF_LONG__ is not of one of the ususal siz

Re: [v8,09/10] tpm: Initialize TPM and get durations and timeouts

2016-03-21 Thread Jarkko Sakkinen
On Sun, Mar 13, 2016 at 06:54:39PM -0400, Stefan Berger wrote: > Add the retrieval of TPM 1.2 durations and timeouts. Since this requires > the startup of the TPM, do this for TPM 1.2 and TPM 2. > > Signed-off-by: Stefan Berger > CC: linux-ker...@vger.kernel.org > CC: linux-doc@vger.kernel.org >