[PATCH v2] cxl: Set the valid bit in PE for dedicated mode

2017-09-04 Thread Vaibhav Jain
Make sure to set the valid-bit in software-state field of the populated PE. This was earlier missing for dedicated mode AFUs, hence was causing a PSL freeze when the AFU was activated. Signed-off-by: Vaibhav Jain --- Changelog: v2 -> Removed a call to smp_wmb() after setting the bit [Michael Ell

linux-next: build warning after merge of the powerpc tree

2017-09-04 Thread Stephen Rothwell
Hi all, After merging the powerpc tree, today's linux-next build (powerpc allyesconfig) produced this warning: WARNING: vmlinux.o(.text+0xa7cb8): Section mismatch in reference from the function .xive_spapr_init() to the function .init.text:.xive_core_init() The function .xive_spapr_init() refere

Re: linux-next: build warning after merge of the powerpc tree

2017-09-04 Thread Cédric Le Goater
On 09/04/2017 10:53 AM, Stephen Rothwell wrote: > Hi all, > > After merging the powerpc tree, today's linux-next build (powerpc > allyesconfig) produced this warning: > > WARNING: vmlinux.o(.text+0xa7cb8): Section mismatch in reference from the > function .xive_spapr_init() to the function .init

Re: [PATCH v2] cxl: Set the valid bit in PE for dedicated mode

2017-09-04 Thread Frederic Barrat
Le 04/09/2017 à 10:48, Vaibhav Jain a écrit : Make sure to set the valid-bit in software-state field of the populated PE. This was earlier missing for dedicated mode AFUs, hence was causing a PSL freeze when the AFU was activated. Signed-off-by: Vaibhav Jain --- Changelog: v2 -> Removed a ca

Applied "ASoC: fsl_spdif: make const arrays rate static" to the asoc tree

2017-09-04 Thread Mark Brown
The patch ASoC: fsl_spdif: make const arrays rate static has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

Re: [PATCH] video: fbdev: annotate fb_fix_screeninfo with const and __initconst

2017-09-04 Thread Bartlomiej Zolnierkiewicz
On Sunday, August 20, 2017 11:14:51 PM Bhumika Goyal wrote: > Make these const as they are only used during a copy operation. > Some structures are used as a copy operation inside __init functions, so > make them const and replace __initdata with __initconst to avoid section > conflict error. > >

[GIT PULL 00/13] perf/core improvements and fixes

2017-09-04 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, - Arnaldo Test results at the end of this message, as usual. The following changes since commit 1b2f76d77a277bb70d38ad0991ed7f16bbc115a9: Merge tag 'perf-core-for-mingo-4.14-20170829' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into

[PATCH 04/13] perf test powerpc: Fix 'Object code reading' test

2017-09-04 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria 'Object code reading' test always fails on powerpc guest. Two reasons for the failure are: 1. When elf section is too big (size beyond 'unsigned int' max value). objdump fails to disassemble from such section. This was fixed with commit 0f6329bd7fc ("binutils/objdump: Fix dis

[PATCH V2] cxl: Add support for POWER9 DD2

2017-09-04 Thread Christophe Lombard
The PSL initialization sequence has been updated to DD2. This patch adapts to the changes, retaining compatibility with DD1. The patch includes some changes to DD1 fix-ups as well. Tests performed on some of the old/new hardware. The function is_page_fault(), for POWER9, lists the Translation Che

Re: [RFC Part1 PATCH v3 16/17] X86/KVM: Provide support to create Guest and HV shared per-CPU variables

2017-09-04 Thread Borislav Petkov
On Fri, Sep 01, 2017 at 05:52:13PM -0500, Brijesh Singh wrote: > So far, we have not seen the need for having such functions except > this cases. The approach we have right now works just fine and not > sure if its worth adding new functions. Then put the call to kvm_map_hv_shared_decrypted() int

Re: [RFC Part1 PATCH v3 16/17] X86/KVM: Provide support to create Guest and HV shared per-CPU variables

2017-09-04 Thread Brijesh Singh
On 9/4/17 12:05 PM, Borislav Petkov wrote: > On Fri, Sep 01, 2017 at 05:52:13PM -0500, Brijesh Singh wrote: >> So far, we have not seen the need for having such functions except >> this cases. The approach we have right now works just fine and not >> sure if its worth adding new functions. > Then

Re: [PATCH v2] cxl: Set the valid bit in PE for dedicated mode

2017-09-04 Thread Andrew Donnellan
Acked-by: Andrew Donnellan On 04/09/17 18:48, Vaibhav Jain wrote: Make sure to set the valid-bit in software-state field of the populated PE. This was earlier missing for dedicated mode AFUs, hence was causing a PSL freeze when the AFU was activated. Signed-off-by: Vaibhav Jain --- Changelog:

[PATCH 1/2] powerpc/npu: Use flush_all_mm() instead of flush_tlb_mm()

2017-09-04 Thread Alistair Popple
With the optimisations introduced by commit a46cc7a908 ("powerpc/mm/radix: Improve TLB/PWC flushes"), flush_tlb_mm() no longer flushes the page walk cache with radix. Switch to using flush_all_mm() to ensure the pwc and tlb are properly flushed on the nmmu. Signed-off-by: Alistair Popple --- Mic

[PATCH 2/2] powerpc/powernv/npu: Don't explicitly flush nmmu tlb

2017-09-04 Thread Alistair Popple
The nest mmu required an explicit flush as a tlbi would not flush it in the same way as the core. However an alternate firmware fix exists which should eliminate the need for this flush, so instead add a device-tree property (ibm,nmmu-flush) on the NVLink2 PHB to enable it only if required. Signed

[rfc 0/3] Revisit MCE handling for UE errors

2017-09-04 Thread Balbir Singh
This patch series is designed to hook up memory_failure on UE errors, this is specially helpful for user_mode UE errors. The first patch is a cleanup patch, it removes dead code. I could not find any users of get_mce_fault_addr(). The second patch walks kernel/user mode page tables in real mode to

[rfc 1/3] powerpc/mce.c: Remove unused function get_mce_fault_addr()

2017-09-04 Thread Balbir Singh
There are no users of get_mce_fault_addr() Fixes: b63a0ff ("powerpc/powernv: Machine check exception handling.") Signed-off-by: Balbir Singh --- arch/powerpc/include/asm/mce.h | 2 -- arch/powerpc/kernel/mce.c | 39 --- 2 files changed, 41 deletions(-)

[rfc 2/3] powerpc/mce: Extract physical_address for UE errors

2017-09-04 Thread Balbir Singh
Walk the page table for NIP and extract the instruction. Then use the instruction to find the effective address via analyse_instr(). We might have page table walking races, but we expect them to be rare, the physical address extraction is best effort. The idea is to then hook up this infrastructur

[rfc 3/3] powerpc/mce: hookup memory_failure for UE errors

2017-09-04 Thread Balbir Singh
If we are in user space and hit a UE error, we now have the basic infrastructure to walk the page tables and find out the effective address that was accessed, since the DAR is not valid. We use a work_queue content to hookup the bad pfn, any other context causes problems, since memory_failure itse

Re: [FIX PATCH v0] powerpc: Fix memory unplug failure on radix guest

2017-09-04 Thread Bharata B Rao
On Fri, Sep 01, 2017 at 09:11:18AM -0500, Nathan Fontenot wrote: > On 09/01/2017 01:53 AM, Bharata B Rao wrote: > > On Thu, Aug 10, 2017 at 02:53:48PM +0530, Bharata B Rao wrote: > >> For a PowerKVM guest, it is possible to specify a DIMM device in > >> addition to the system RAM at boot time. When

Re: [PATCH] sound: soc: fsl: Do not set DAI sysclk when it is equal to system freq

2017-09-04 Thread Nicolin Chen
On Sun, Sep 03, 2017 at 01:05:01PM +0200, Lukasz Majewski wrote: > The problem is visible in the following setup (on the imx6q): > "simple-audio-card" -> ssi2 -> I2S + I2C -> codec > > The function call log (simple-card probe -> CONFIG_SND_SIMPLE_CARD): > > asoc_simple_card_init_dai() @ sound/soc

Re: [GIT PULL 00/13] perf/core improvements and fixes

2017-09-04 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Test results at the end of this message, as usual. > > The following changes since commit 1b2f76d77a277bb70d38ad0991ed7f16bbc115a9: > > Merge tag 'perf-core-for-mingo-4.14-20170829' of > git

Re: [PATCH] sound: soc: fsl: Do not set DAI sysclk when it is equal to system freq

2017-09-04 Thread Nicolin Chen
On Sun, Sep 03, 2017 at 04:40:21PM +0200, Łukasz Majewski wrote: > >/* > >* Hardware limitation: The bclk rate must be > >* never greater than 1/5 IPG clock rate > >*/ > >if (freq * 5 > clk_get_rate(ssi_private->clk)) { > >dev_err(cpu_dai->dev, "bitclk > ipgclk/5\n"); > >return -EINVAL; > >} > > >