Re: [PATCH 3/4] mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0

2016-06-01 Thread Scott Wood
On Mon, 2016-05-30 at 15:16 +0200, Arnd Bergmann wrote: > This is a rewrite of an earlier patch from Yangbo Lu, adding a quirk > for the NXP QorIQ T4240 in the detection of the host device version. > > Unfortunately, this device cannot be detected using the compatible > string, as we have to

Re: [PATCH 4/4] Revert "powerpc/fsl: Move fsl_guts.h out of arch/powerpc"

2016-06-01 Thread Scott Wood
On Mon, 2016-05-30 at 15:18 +0200, Arnd Bergmann wrote: > All users of this driver are PowerPC specific and the header file > has no business in the global include/linux/ hierarchy, so move > it back before anyone starts using it on ARM. > > This reverts commit

[PATCH 1/3] powerpc: export cpu_to_core_id()

2016-06-01 Thread Mauricio Faria de Oliveira
Export cpu_to_core_id(). This will be used by the lpfc driver. Tested on next-20160601. Signed-off-by: Mauricio Faria de Oliveira <mauri...@linux.vnet.ibm.com> --- arch/powerpc/kernel/smp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/

Re: [PATCH 1/3] powerpc: export cpu_to_core_id()

2016-06-01 Thread Mauricio Faria de Oliveira
Please ignore the 'PATCH 1/3' in the subject; this is a single patch. -- Mauricio Faria de Oliveira IBM Linux Technology Center ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [RFT PATCH 1/2] serial: Fix console setup section mismatch

2016-06-01 Thread Russell King - ARM Linux
On Tue, May 31, 2016 at 04:19:31PM +0200, Krzysztof Kozlowski wrote: > Remove __init annotation from all of console->setup implementations > because: > 1. The pointer to it is stored in a struct console which is not >marked with __initdata. > 2. It is referenced by register_console() from

Re: [PATCH] powerpc/mm: use _raw variant of page table accessors

2016-06-01 Thread Ram Pai
On Tue, May 31, 2016 at 04:29:42PM +0530, Aneesh Kumar K.V wrote: > This switch few of the page table accessor to use the __raw variant > and does the cpu to big endian conversion of constants. This helps in > generating better code. > > For ex: a pgd_none(pgd) check with and without fix is

Re: Build regressions/improvements in v4.7-rc1

2016-06-01 Thread Rich Felker
On Mon, May 30, 2016 at 09:34:07AM +0200, Geert Uytterhoeven wrote: > > + /home/kisskb/slave/src/arch/sh/kernel/setup.c: error: implicit > > declaration of function 'early_init_dt_scan' > > [-Werror=implicit-function-declaration]: => 256:2 > > sh-randconfig Nice find. I think I'm

[PATCH] powerpc/asm: Remove unused symbols in asm-offsets.c

2016-06-01 Thread Rashmica Gupta
THREAD_DSCR: Added in commit efcac6589a27 ("powerpc: Per process DSCR + some fixes (try#4)") and last usage was removed in commit 152d523e6307 ("powerpc: Create context switch helpers save_sprs() and restore_sprs()") --- THREAD_DSCR_INHERIT: Added in commit 714332858bfd ("powerpc: Restore correct

Re: [PATCH 2/4] soc: fsl: add GUTS driver for QorIQ platforms

2016-06-01 Thread Scott Wood
On Mon, 2016-05-30 at 15:15 +0200, Arnd Bergmann wrote: > diff --git a/drivers/soc/fsl/guts.c b/drivers/soc/fsl/guts.c > new file mode 100644 > index ..2f30698f5bcf > --- /dev/null > +++ b/drivers/soc/fsl/guts.c > @@ -0,0 +1,130 @@ > +/* > + * Freescale QorIQ Platforms GUTS Driver > +

[PATCH v2 1/5] fsl/qe: add rx_sync and tx_sync for TDM mode

2016-06-01 Thread Zhao Qiang
Rx_sync and tx_sync are used by QE-TDM mode, add them to struct ucc_fast_info. Signed-off-by: Zhao Qiang --- Changes for v2: - use strcmp instead of strcasecmp drivers/soc/fsl/qe/qe.c | 6 ++ include/soc/fsl/qe/qe.h | 2 ++

[PATCH v2 4/5] fsl/qe: Add QE TDM lib

2016-06-01 Thread Zhao Qiang
QE has module to support TDM, some other protocols supported by QE are based on TDM. add a qe-tdm lib, this lib provides functions to the protocols using TDM to configurate QE-TDM. Signed-off-by: Zhao Qiang --- Changes for v2: - delete dead code - use strcmp

[Patch v2 5/5] drivers/net: support hdlc function for QE-UCC

2016-06-01 Thread Zhao Qiang
The driver add hdlc support for Freescale QUICC Engine. It support NMSI and TSA mode. Signed-off-by: Zhao Qiang --- Changes for v2: - remove useless code. - remove Unnecessary casts - return IRQ_NONE when there are no interrupt - remove Useless

[PATCH v2 2/5] fsl/qe: setup clock source for TDM mode

2016-06-01 Thread Zhao Qiang
Add tdm clock configuration in both qe clock system and ucc fast controller. Signed-off-by: Zhao Qiang --- Changes for v2: - break codes getting clock_bits and source to smaller functions. - add __iomem to qe_mux_reg - add bits operation functions for

[PATCH v2 3/5] fsl/qe: Make regs resouce_size_t

2016-06-01 Thread Zhao Qiang
Signed-off-by: Zhao Qiang --- Changes for v2: - modify subject include/soc/fsl/qe/ucc_fast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/soc/fsl/qe/ucc_fast.h b/include/soc/fsl/qe/ucc_fast.h index b2633b7..e898895 100644 ---

Re: [PATCH v4 04/16] rtc: sh: provide rtc_class_ops directly

2016-06-01 Thread Rich Felker
On Mon, May 30, 2016 at 08:57:52PM +0200, Arnd Bergmann wrote: > The rtc-generic driver provides an architecture specific > wrapper on top of the generic rtc_class_ops abstraction, > and on sh, that goes through another indirection using > the rtc_sh_get_time/rtc_sh_set_time functions. > > This

Re: [PATCH] powerpc/512x: clk: Remove CLK_IS_ROOT

2016-06-01 Thread Stephen Boyd
On 04/19, Stephen Boyd wrote: > This flag is a no-op now (see commit 47b0eeb3dc8a "clk: Deprecate > CLK_IS_ROOT", 2016-02-02) so remove it. > > Cc: Gerhard Sittig > Signed-off-by: Stephen Boyd > --- Applied to clk-fixes -- Qualcomm Innovation Center, Inc.

[PATCH 2/3] powerpc/asm: Define STACK_OFFSET macro in asm-offsets.c

2016-06-01 Thread Rashmica Gupta
There are quite a few entries in asm-offests.c look like this: DEFINE(REG, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, reg)); So define a local MACRO to clean this up: STACK_OFFSET(sym, val) DEFINE(sym, STACK_FRAME_OVERHEAD + \ offsetof(struct pt_regs, val)) Signed-off-by:

[PATCH 1/3] powerpc/asm: Use OFFSET macro in asm-offsets.c

2016-06-01 Thread Rashmica Gupta
A lot of entries in asm-offests.c look like this: DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); But there is a common macro, OFFSET, which makes this cleaner: OFFSET(TI_flags, thread_info, flags), so use this. Signed-off-by: Rashmica Gupta ---

[PATCH 3/3] powerpc/asm: Add STACK_INT_OFFSET macro in asm-offsets.c

2016-06-01 Thread Rashmica Gupta
There are quite a few entries in asm-offests.c look like this: DEFINE(REG, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, reg)); So define a local MACRO to clean this up: STACK_INT_OFFSET(sym, val) DEFINE(sym, STACK_INT_FRAME_SIZE + \ offsetof(struct exception_regs, val))

[RESEND PATCH v2 0/4] PCI: Add support for enforcing all MMIO BARs not to share PAGE_SIZE

2016-06-01 Thread Yongji Xie
This series aims to add an option for PCI resource allocator to force BARs not to share PAGE_SIZE. This would make sense to VFIO driver. Because current VFIO implementation disallows to mmap sub-page(size < PAGE_SIZE) MMIO BARs which may share the same page with other BARs for security

[RESEND PATCH v2 2/4] PCI: Do not Use IORESOURCE_STARTALIGN to identify bridge resources

2016-06-01 Thread Yongji Xie
Now we use the IORESOURCE_STARTALIGN to identify bridge resources in __assign_resources_sorted(). That's quite fragile. We can't make sure that the PCI devices' resources will not use IORESOURCE_STARTALIGN any more. In this patch, we try to use a more robust way to identify bridge resources.

[RESEND PATCH v2 3/4] PCI: Add a new option for resource_alignment to reassign alignment

2016-06-01 Thread Yongji Xie
When using resource_alignment kernel parameter, the current implement reassigns the alignment by changing resources' size which can potentially break some drivers. For example, the driver uses the size to locate some register whose length is related to the size. This patch adds a new option

Re: [PATCH 2/2] KVM: PPC: hypervisor large decrementer support

2016-06-01 Thread Michael Neuling
On Tue, 2016-05-31 at 17:16 +1000, Oliver O'Halloran wrote: > Power ISAv3 extends the width of the decrementer register from 32 bits. > The enlarged register width is implementation dependent, but reads from > these registers are automatically sign extended to produce a 64 bit > output when

[PATCH 6/8] cpufreq: Drop freq-table param to cpufreq_frequency_table_target()

2016-06-01 Thread Viresh Kumar
The policy already has this pointer set, use it instead. Signed-off-by: Viresh Kumar --- Documentation/cpu-freq/cpu-drivers.txt | 1 - drivers/cpufreq/amd_freq_sensitivity.c | 3 +-- drivers/cpufreq/cpufreq.c | 4 ++-- drivers/cpufreq/cpufreq_ondemand.c

[PATCH 8/8] cpufreq: Return index from cpufreq_frequency_table_target()

2016-06-01 Thread Viresh Kumar
This routine can't fail unless the frequency table is invalid and doesn't contain any valid entries. Make it return the index and WARN() in case it is used for an invalid table. Signed-off-by: Viresh Kumar --- Documentation/cpu-freq/cpu-drivers.txt | 7 +++

[PATCH 3/8] cpufreq: powerenv: Fix memory leak

2016-06-01 Thread Viresh Kumar
The policy is copied (unnecessarily) and is never freed. Fix it by just getting a reference to the existing policy structure and putting it back. Signed-off-by: Viresh Kumar --- drivers/cpufreq/powernv-cpufreq.c | 15 +-- 1 file changed, 9 insertions(+), 6

Re: [PATCH V10 00/28] Add new powerpc specific ELF core notes

2016-06-01 Thread Anshuman Khandual
On 05/31/2016 04:42 AM, Michael Ellerman wrote: > Hi Laurent, > > Sorry no. My next branch closed for 4.7 about 3 weeks ago. > > This series has been blocked for a long time on the gdb support, but that is > now working. However it still doesn't pass its own selftests, and I had some This