Re: [PATCH 0/4] hwrng: omap - fixes and improvements

2017-03-07 Thread Jason Cooper
Hi Thomas, On Tue, Mar 07, 2017 at 03:14:45PM +0100, Thomas Petazzoni wrote: > Hello, > > This small patch series brings a few fixes and improvements to the > omap_rng driver. The first fix is particularly important, as it fixes > using the driver built as a module on SoCs that require a clock fo

Re: [RFC PATCH v2 08/32] x86: Use PAGE_KERNEL protection for ioremap of memory page

2017-03-07 Thread Borislav Petkov
On Thu, Mar 02, 2017 at 10:13:32AM -0500, Brijesh Singh wrote: > From: Tom Lendacky > > In order for memory pages to be properly mapped when SEV is active, we > need to use the PAGE_KERNEL protection attribute as the base protection. > This will insure that memory mapping of, e.g. ACPI tables, re

[PATCH] dt-bindings: rng: clocks property on omap_rng is optional

2017-03-07 Thread Thomas Petazzoni
Commit 52060836f79 ("dt-bindings: omap-rng: Document SafeXcel IP-76 device variant") update the omap_rng Device Tree binding to add support for the IP-76 variation of the IP. As part of this change, a "clocks" property was added, but is indicated as "Required", while it is in fact "Optional": some

[PATCH 1/4] hwrng: omap - write registers after enabling the clock

2017-03-07 Thread Thomas Petazzoni
Commit 383212425c926 ("hwrng: omap - Add device variant for SafeXcel IP-76 found in Armada 8K") added support for the SafeXcel IP-76 variant of the IP. This modification included getting a reference and enabling a clock. Unfortunately, this was done *after* writing to the RNG_INTMASK_REG register.

[PATCH 2/4] hwrng: omap - use devm_clk_get() instead of of_clk_get()

2017-03-07 Thread Thomas Petazzoni
The omap-rng driver currently uses of_clk_get() to get a reference to the clock, but never releases that reference. This commit fixes that by using devm_clk_get() instead. Fixes: 383212425c926 ("hwrng: omap - Add device variant for SafeXcel IP-76 found in Armada 8K") Cc: Signed-off-by: Thomas Pe

[PATCH 3/4] hwrng: omap - Do not access INTMASK_REG on EIP76

2017-03-07 Thread Thomas Petazzoni
The INTMASK_REG register does not exist on EIP76. Due to this, the call: omap_rng_write(priv, RNG_INTMASK_REG, RNG_SHUTDOWN_OFLO_MASK); ends up, through the reg_map_eip76[] array, in accessing the register at offset 0, which is the RNG_OUTPUT_0_REG. This by itself doesn't cause any problem, bu

[PATCH 0/4] hwrng: omap - fixes and improvements

2017-03-07 Thread Thomas Petazzoni
Hello, This small patch series brings a few fixes and improvements to the omap_rng driver. The first fix is particularly important, as it fixes using the driver built as a module on SoCs that require a clock for the IP to work properly. Thanks, Thomas Thomas Petazzoni (4): hwrng: omap - write

[PATCH 4/4] hwrng: omap - move clock related code to omap_rng_probe()

2017-03-07 Thread Thomas Petazzoni
Currently, the code that takes a reference to the clock and enables it is located inside of_get_omap_rng_device_details(), called only when probing through the Device Tree. However, there is nothing that makes this clock logic dependent on the Device Tree, so it makes more sense to have it in omap

Re: [RFC PATCH v2 07/32] x86/efi: Access EFI data as encrypted when SEV is active

2017-03-07 Thread Borislav Petkov
On Thu, Mar 02, 2017 at 10:13:21AM -0500, Brijesh Singh wrote: > From: Tom Lendacky > > EFI data is encrypted when the kernel is run under SEV. Update the > page table references to be sure the EFI memory areas are accessed > encrypted. > > Signed-off-by: Tom Lendacky > Signed-off-by: Brijesh S

Re: [RFC PATCH v2 02/32] x86: Secure Encrypted Virtualization (SEV) support

2017-03-07 Thread Borislav Petkov
On Thu, Mar 02, 2017 at 10:12:20AM -0500, Brijesh Singh wrote: > From: Tom Lendacky > > Provide support for Secure Encyrpted Virtualization (SEV). This initial > support defines a flag that is used by the kernel to determine if it is > running with SEV active. > > Signed-off-by: Tom Lendacky B

Re: [RFC PATCH v2 05/32] x86: Use encrypted access of BOOT related data with SEV

2017-03-07 Thread Borislav Petkov
On Thu, Mar 02, 2017 at 10:12:59AM -0500, Brijesh Singh wrote: > From: Tom Lendacky > > When Secure Encrypted Virtualization (SEV) is active, BOOT data (such as > EFI related data, setup data) is encrypted and needs to be accessed as > such when mapped. Update the architecture override in early_m

Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes

2017-03-07 Thread Ingo Molnar
* James Hogan wrote: > Hi Ingo, > > On Tue, Mar 07, 2017 at 08:38:05AM +0100, Ingo Molnar wrote: > > Just a quick question: is your MIPS build fix going to be merged and sent > > to > > Linus? I can apply it too, and send it to Linus later today, together with > > a few > > other sched.h he

Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes

2017-03-07 Thread James Hogan
Hi Guenter, On Tue, Mar 07, 2017 at 09:33:40AM +, James Hogan wrote: > On Mon, Mar 06, 2017 at 07:30:05PM -0800, Guenter Roeck wrote: > > On 03/06/2017 03:20 PM, James Hogan wrote: > > > On Mon, Mar 06, 2017 at 11:13:55AM -0800, Guenter Roeck wrote: > > >> Since commit f3ac60671954 ("sched/hea

Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes

2017-03-07 Thread James Hogan
On Mon, Mar 06, 2017 at 07:30:05PM -0800, Guenter Roeck wrote: > On 03/06/2017 03:20 PM, James Hogan wrote: > > On Mon, Mar 06, 2017 at 11:13:55AM -0800, Guenter Roeck wrote: > >> Since commit f3ac60671954 ("sched/headers: Move task-stack related > >> APIs from to ") and commit > >> f780d89a0e82 (

Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes

2017-03-07 Thread James Hogan
Hi Ingo, On Tue, Mar 07, 2017 at 08:38:05AM +0100, Ingo Molnar wrote: > Just a quick question: is your MIPS build fix going to be merged and sent to > Linus? I can apply it too, and send it to Linus later today, together with a > few > other sched.h header related build fixes. One for Ralf...

Mutual Cooperation! Thank you.

2017-03-07 Thread Mr Obama Basolle
-- Dear Friend, I know that this message will come to you as a surprise. I am the Auditing and Accounting section manager with African Development Bank, Ouagadougou Burkina faso. I Hope that you will not expose or betray this trust and confident that I am about to repose on you for the mutual ben

Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes

2017-03-07 Thread Ingo Molnar
* James Hogan wrote: > Hi Guenter, > > On Mon, Mar 06, 2017 at 11:13:55AM -0800, Guenter Roeck wrote: > > Since commit f3ac60671954 ("sched/headers: Move task-stack related > > APIs from to ") and commit > > f780d89a0e82 ("sched/headers: Remove from > > "), various mips builds fail as follows