Re: [PATCH kernel] powerpc/powernv/ioda2: Add devices only from buses which belong to PE

2015-06-11 Thread Gavin Shan
On Fri, Jun 12, 2015 at 04:19:17PM +1000, Alexey Kardashevskiy wrote: >The existing code puts all devices from a root PE to the same IOMMU group. >However it is a possible situation when subordinate buses belong to >separate PEs, in this case devices from these subordinate buses >should be added to

[PATCH kernel] powerpc/powernv/ioda2: Add devices only from buses which belong to PE

2015-06-11 Thread Alexey Kardashevskiy
The existing code puts all devices from a root PE to the same IOMMU group. However it is a possible situation when subordinate buses belong to separate PEs, in this case devices from these subordinate buses should be added to lower level PE rather to the root PE. This limits pnv_ioda_setup_bus_dma

mainline vs. QorIQ SDK for production with FSL SoCs...

2015-06-11 Thread Bob Cochran
Hi, Please correct me if I'm mistaken and / or provide your own insight on the following: I'm under the impression that it's better to develop with the mainline (eventually freezing for production on a stable release / branch ) than use the QorIQ SDK if the needed code (e.g., DPAA drivers) h

[PATCH] powerpc: pci: use %pR for printing struct resource

2015-06-11 Thread Kevin Hao
Use %pR to simplify the debug code. This also make the debug info more readable. Signed-off-by: Kevin Hao --- arch/powerpc/kernel/pci-common.c | 72 +++- 1 file changed, 19 insertions(+), 53 deletions(-) diff --git a/arch/powerpc/kernel/pci-common.c b/arch/po

Re: [PATCH v3 2/2] cxl: use more common format specifier

2015-06-11 Thread Ian Munsie
Acked-by: Ian Munsie ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 1/1] powerpc/tm: Abort syscalls in active transactions (v2)

2015-06-11 Thread Sam Bobroff
This patch changes the syscall handler to doom (tabort) active transactions when a syscall is made and return very early without performing the syscall and keeping side effects to a minimum (no CPU accounting or system call tracing is performed). Also included is a new HWCAP2 bit, PPC_FEATURE2_HTM_

Re: [PATCH 1/1 linux-next] net: fs_enet: use swap() in fs_enet_rx_napi()

2015-06-11 Thread David Miller
From: Fabian Frederick Date: Wed, 10 Jun 2015 18:33:19 +0200 > Use kernel.h macro definition. > > Thanks to Julia Lawall for Coccinelle scripting support. > > Signed-off-by: Fabian Frederick Applied. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.

Re: [PATCH v2] powerpc: support sizes greater than an unsigned long

2015-06-11 Thread Scott Wood
On Thu, 2015-06-11 at 19:10 +0300, Cristian Stoica wrote: > On 06/11/2015 06:38 PM, Greg KH wrote: > > On Thu, Jun 11, 2015 at 05:42:00PM +0300, Cristian Stoica wrote: > > > > Why? > > > > This patch matches the input argument "size" of ioremap() with the > output of request_mem_region() (which

Re: [RESEND PATCH V2 0/3] Allow user to request memory to be locked on page fault

2015-06-11 Thread Eric B Munson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/11/2015 03:34 PM, Andrew Morton wrote: > On Thu, 11 Jun 2015 15:21:30 -0400 Eric B Munson > wrote: > >>> Ditto mlockall(MCL_ONFAULT) followed by munlock(). I'm not >>> sure that even makes sense but the behaviour should be >>> understood and t

Re: [RESEND PATCH V2 0/3] Allow user to request memory to be locked on page fault

2015-06-11 Thread Andrew Morton
On Thu, 11 Jun 2015 15:21:30 -0400 Eric B Munson wrote: > > Ditto mlockall(MCL_ONFAULT) followed by munlock(). I'm not sure > > that even makes sense but the behaviour should be understood and > > tested. > > I have extended the kselftest for lock-on-fault to try both of these > scenarios and th

Re: [RESEND PATCH V2 0/3] Allow user to request memory to be locked on page fault

2015-06-11 Thread Eric B Munson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/10/2015 05:59 PM, Andrew Morton wrote: > On Wed, 10 Jun 2015 09:26:47 -0400 Eric B Munson > wrote: > >> mlock() allows a user to control page out of program memory, but >> this comes at the cost of faulting in the entire mapping when it >> is >

Re: [PATCH v2] powerpc: support sizes greater than an unsigned long

2015-06-11 Thread Greg KH
On Thu, Jun 11, 2015 at 07:10:36PM +0300, Cristian Stoica wrote: > On 06/11/2015 06:38 PM, Greg KH wrote: > > On Thu, Jun 11, 2015 at 05:42:00PM +0300, Cristian Stoica wrote: > > > > Why? > > > > This patch matches the input argument "size" of ioremap() with the output of > request_mem_region()

Re: [PATCH v2] powerpc: support sizes greater than an unsigned long

2015-06-11 Thread Cristian Stoica
On 06/11/2015 06:38 PM, Greg KH wrote: > On Thu, Jun 11, 2015 at 05:42:00PM +0300, Cristian Stoica wrote: > > Why? > This patch matches the input argument "size" of ioremap() with the output of request_mem_region() (which is resource_size_t). Since the latter is used as input to the former, the

Re: [alsa-devel][PATCH] ASoC: fsl: add imx-wm8960 machine driver

2015-06-11 Thread Nicolin Chen
On Thu, Jun 11, 2015 at 07:10:00PM +0800, Zidan Wang wrote: > > > This imx-wm8960 device-tree-only machine driver works with sai driver > > > and have below feature. > > > * support codec master and slave mode > > > * support headphone jack detect > > > * support headphone and micphone jack event

Re: [PATCH v2] powerpc: support sizes greater than an unsigned long

2015-06-11 Thread Greg KH
On Thu, Jun 11, 2015 at 05:42:00PM +0300, Cristian Stoica wrote: > Hi Greg, > > Can you have a look at this patch? > > https://patchwork.kernel.org/patch/6413191/ Why? ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org

Re: [PATCH v2] powerpc: support sizes greater than an unsigned long

2015-06-11 Thread Cristian Stoica
Hi Greg, Can you have a look at this patch? https://patchwork.kernel.org/patch/6413191/ Thanks, Cristian S. On 05/15/2015 12:44 PM, Cristian Stoica wrote: > Use resource_size_t to accommodate sizes greater than the size of an > unsigned long int on platforms that have more than 32 bit > physic

Re: [PATCH 2/3] block/ps3vram: Remove obsolete reference to MTD

2015-06-11 Thread Jens Axboe
On 06/11/2015 07:04 AM, Geert Uytterhoeven wrote: On Wed, Jun 10, 2015 at 8:00 PM, Geert Uytterhoeven did not write: The ps3vram driver is a plain block device driver since commit f507cd22035fdadd5dbb476dd05e9e7ee21c3b84 ("ps3/block: Replace mtd/ps3vram by block/ps3vram"). Signed-off-by: Geert

Re: [PATCH 2/3] block/ps3vram: Remove obsolete reference to MTD

2015-06-11 Thread Geert Uytterhoeven
On Wed, Jun 10, 2015 at 8:00 PM, Geert Uytterhoeven did not write: > The ps3vram driver is a plain block device driver since commit > f507cd22035fdadd5dbb476dd05e9e7ee21c3b84 ("ps3/block: Replace mtd/ps3vram > by block/ps3vram"). > > Signed-off-by: Geert Uytterhoeven > Signed-off-by: Geoff Levand

Re: [alsa-devel] [PATCH v2] ALSA: aoa: convert bus code to use dev_groups

2015-06-11 Thread Takashi Iwai
At Thu, 11 Jun 2015 14:04:45 +0200, Quentin Lambert wrote: > > > > On 11/06/2015 12:02, Takashi Iwai wrote: > > At Thu, 11 Jun 2015 10:03:38 +0200, > > Quentin Lambert wrote: > >> > >> The dev_attrs field of struct bus_type is going away, use dev_groups > >> instead. > >> This converts the soun

Re: [PATCH v2] ALSA: aoa: convert bus code to use dev_groups

2015-06-11 Thread Quentin Lambert
On 11/06/2015 13:55, walter harms wrote: Am 11.06.2015 10:03, schrieb Quentin Lambert: The dev_attrs field of struct bus_type is going away, use dev_groups instead. This converts the soundbus code to use the correct field. Given that all other usages of the macro define the struct attribute

Re: [PATCH v2] ALSA: aoa: convert bus code to use dev_groups

2015-06-11 Thread walter harms
Am 11.06.2015 10:03, schrieb Quentin Lambert: > The dev_attrs field of struct bus_type is going away, use dev_groups instead. > This converts the soundbus code to use the correct field. > > Given that all other usages of the macro define the struct attribute > *xxx_attrs[] in the same file they

Re: [alsa-devel] [PATCH v2] ALSA: aoa: convert bus code to use dev_groups

2015-06-11 Thread Quentin Lambert
On 11/06/2015 12:02, Takashi Iwai wrote: At Thu, 11 Jun 2015 10:03:38 +0200, Quentin Lambert wrote: The dev_attrs field of struct bus_type is going away, use dev_groups instead. This converts the soundbus code to use the correct field. Given that all other usages of the macro define the stru

Re: [PATCH v8] powerpc/powernv: Poweroff (EPOW, DPO) events support for PowerNV platform

2015-06-11 Thread Vipin K Parashar
On 06/11/2015 04:25 AM, Stewart Smith wrote: Vipin K Parashar writes: This patch adds support for FSP (Flexible Service Processor) EPOW (Early Power Off Warning) and DPO (Delayed Power Off) events for Not restricted to FSP systems, it's a generic OPAL API that any platform could implement.

[RESEND PATCH v8] powerpc/powernv: Add poweroff (EPOW, DPO) events support for PowerNV platform

2015-06-11 Thread Vipin K Parashar
This patch adds support for OPAL EPOW (Early Power Off Warning) and DPO (Delayed Power Off) events for the PowerNV platform. These events are generated on FSP (Flexible Service Processor) based systems. EPOW events are generated due to various critical system conditions that require system shutdown

[RESEND PATCH v8] powerpc/powernv: Add poweroff (EPOW, DPO) events support for PowerNV platform

2015-06-11 Thread Vipin K Parashar
This patch adds support for OPAL EPOW (Early Power Off Warning) and DPO (Delayed Power Off) events for the PowerNV platform. These events are generated on FSP (Flexible Service Processor) based systems. EPOW events are generated due to various critical system conditions that require system shutdown

[PATCH v3 2/2] cxl: use more common format specifier

2015-06-11 Thread Rasmus Villemoes
A precision of 16 (%.16llx) has the same effect as a field width of 16 along with passing the 0 flag (%016llx), but the latter is much more common in the kernel tree. Update cxl to use that. Signed-off-by: Rasmus Villemoes --- So, maybe this on top? drivers/misc/cxl/irq.c| 32 ++

[PATCH v3 1/2] cxl: Add explicit precision specifiers

2015-06-11 Thread Rasmus Villemoes
C99 says that a precision given as simply '.' with no following digits or * should be interpreted as 0. The kernel's printf implementation, however, treats this case as if the precision was omitted. C99 also says that if both the precision and value are 0, no digits should be printed. Even if the k

Re: [alsa-devel][PATCH] ASoC: fsl: add imx-wm8960 machine driver

2015-06-11 Thread Zidan Wang
On Wed, Jun 10, 2015 at 11:36:21AM -0700, Nicolin Chen wrote: > On Wed, Jun 10, 2015 at 04:26:27PM +0800, Zidan Wang wrote: > > This imx-wm8960 device-tree-only machine driver works with sai driver > > and have below feature. > > * support codec master and slave mode > > * support headphone jack de

[PATCH SLOF] disk-label: add support for booting from GPT FAT partition

2015-06-11 Thread Nikunj A Dadhania
For a GPT+LVM combination disk, older bootloader that does not support LVM, cannot load kernel from LVM. The patch add support to read from BASIC_DATA UUID partition. Installer has installed CHRP-BOOT config on a FAT file system. Signed-off-by: Nikunj A Dadhania --- slof/fs/packages/disk-label.

[PATCH 4/4] ppc64 ftrace_with_regs recursion protection

2015-06-11 Thread Torsten Duwe
This is an *emergency* parachute to avoid an endless recursion and consecutively a kernel stack overflow, should any function within some ftrace framework cause an access fault, which calls _mcount / ftrace_caller in return and so on. It might also call an ftrace'd function directly. As Michael El

Re: [alsa-devel] [PATCH v2] ALSA: aoa: convert bus code to use dev_groups

2015-06-11 Thread Takashi Iwai
At Thu, 11 Jun 2015 10:03:38 +0200, Quentin Lambert wrote: > > > The dev_attrs field of struct bus_type is going away, use dev_groups instead. > This converts the soundbus code to use the correct field. > > Given that all other usages of the macro define the struct attribute > *xxx_attrs[] in th

[PATCH 3/4] ppc64 ftrace_with_regs: spare early boot and low level code

2015-06-11 Thread Torsten Duwe
Using -mprofile-kernel on early boot code not only confuses the checker but is also useless, as the infrastructure is not yet in place. Proceed like with -pg (remove it from CFLAGS), equally with time.o and ftrace itself. * arch/powerpc/kernel/Makefile: - remove -mprofile-kernel from low lev

[PATCH 2/4] ppc64 ftrace_with_regs configuration variables

2015-06-11 Thread Torsten Duwe
* Makefile: - globally use -mprofile-kernel in case it's configured. * arch/powerpc/Kconfig / kernel/trace/Kconfig: - declare that ppc64 HAVE_MPROFILE_KERNEL and HAVE_DYNAMIC_FTRACE_WITH_REGS, and use it. Signed-off-by: Torsten Duwe -- Makefile |5 - arch/po

[PATCH 1/4] ppc64 FTRACE_WITH_REGS implementation

2015-06-11 Thread Torsten Duwe
Implement FTRACE_WITH_REGS for powerpc64, on ELF ABI v2. Initial work started by Vojtech Pavlik, used with permission. * arch/powerpc/kernel/entry_64.S: - enhance _mcount with a stub to test (ftrace_trace_function == &ftrace_stub) as suggested in Documentation/trace/ftrace-design.txt

[PATCH 0/4] resend: ppc64 LE ABI v2 ftrace-with-regs implementation

2015-06-11 Thread Torsten Duwe
Hi again, with the previous submission I was too much into the details to state a few obvious things. Now with nicer explanations and changelog. Torsten ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listin

Re: [PATCH 08/12] fsl/fman: Add Frame Manager support

2015-06-11 Thread Paul Bolle
So I couldn't help having yet another look at the code, just to drive home my point. On Thu, 2015-06-11 at 10:55 +0200, Paul Bolle wrote: > > +void *fm_drv_init(void) > > static. > > > +{ > > + memset(&fm_drvs, 0, sizeof(fm_drvs)); fm_drvs is an external variable. It is guaranteed to be zero,

[PATCH] powerpc/powernv: Bump opal_init initcall priority

2015-06-11 Thread Alistair Popple
opal_init() is called via a machine_subsys_initcall(). Due to a hack in the eeh code the eeh driver is initialised with at the same initcall level. This means depending on link ordering the following error can occur because the opal irchip has not been initialised: irq: XICS didn't like hwirq-0x9

Re: [V2] powerpc/mm: Limit the max memory we can support

2015-06-11 Thread Michael Ellerman
On Fri, 2015-29-05 at 08:20:18 UTC, "Aneesh Kumar K.V" wrote: > We need to limit the max memory based on Linux page table format. > Add checks to limit memory based on pte size. Also limit the memory > based on MAX_PHSYSMEM_BITS. > > Signed-off-by: Aneesh Kumar K.V > --- > Changes from V1: > * Up

Re: [PATCH 08/12] fsl/fman: Add Frame Manager support

2015-06-11 Thread Paul Bolle
You should note that I started with scanning this patch for basic, say, build system issues. Which I did find. But then I kept spotting all kind of oddities. After a while I stopped looking closely. So, to note something, I haven't yet looked into the 24 symbols this series exports. There might be

[PATCH 7/8] powerpc/perf: Set data source value

2015-06-11 Thread Madhavan Srinivasan
perf_sample_data_init initialize the data source variable "->val" with PERF_MEM_NA. New value should not be ORed since the userspace perf tool will look at bitmap field when displaying the hierarchy levels. Reviewed-by: Sukadev Bhattiprolu Signed-off-by: Madhavan Srinivasan --- arch/powerpc/per

[PATCH 8/8]powerpc/perf: cleanup in perf_event_print_debug()

2015-06-11 Thread Madhavan Srinivasan
From: Janani Code cleanup/fix in perf_event_print_debug(). Performance Monitoring Unit (PMU) registers in the server side are 64bit long. Signed-off-by: Janani Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/core-book3s.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) d

[PATCH 6/8]powerpc/perf: Export Power8 memory hierarchy info to user space

2015-06-11 Thread Madhavan Srinivasan
From: Sukadev Bhattiprolu On Power8, the LDST field in SIER identifies the memory hierarchy level (eg: L1, L2 etc), from which a data-cache miss for a marked instruction was satisfied. Use the 'perf_mem_data_src' object to export this hierarchy level to user space. Fortunately, the memory hierar

[PATCH 1/8]powerpc/perf: Remove PME_ prefix for power7 events

2015-06-11 Thread Madhavan Srinivasan
From: Sukadev Bhattiprolu We used the PME_ prefix earlier to avoid some macro/variable name collisions. We have since changed the way we define/use the event macros so we no longer need the prefix. By dropping the prefix, we keep the the event macros consistent with their official names. Repor

[PATCH 3/8]powerpc/perf: EVENT macro for exporting generic events

2015-06-11 Thread Madhavan Srinivasan
Adding EVENT macro for exporting Power8 generic events Reviewed-by: Sukadev Bhattiprolu Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/power8-pmu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/perf/power8-pmu.c b/arch/powerpc/perf/power8-pmu.c index a542310..282a

[PATCH 5/8]powerpc/perf: Define big-endian version of perf_mem_data_src

2015-06-11 Thread Madhavan Srinivasan
From: Sukadev Bhattiprolu perf_mem_data_src is an union that is initialized via the ->val field and accessed via the bitmap fields. For this to work on big endian platforms, we also need a big-endian represenation of perf_mem_data_src. Signed-off-by: Sukadev Bhattiprolu Signed-off-by: Madhavan

[PATCH 4/8]powerpc/perf: Add Power8 mem_access event to sysfs

2015-06-11 Thread Madhavan Srinivasan
Patch add "mem_access" event to sysfs. This as-is not a raw event supported by Power8 pmu. Instead, it is formed based on raw event encoding specificed in Power8-pmu.c. Primary PMU event used here is PM_MRK_INST_CMPL. This event tracks only the completed marked instructions. Random sampling mode

[PATCH 2/8]powerpc/perf: Export Power8 generic events in sysfs

2015-06-11 Thread Madhavan Srinivasan
From: Sukadev Bhattiprolu Export generic perf events for Power8 in sysfs. Signed-off-by: Sukadev Bhattiprolu Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/power8-events-list.h | 20 arch/powerpc/perf/power8-pmu.c | 43 +- 2 f

[PATCH 0/8]powerpc/perf: Export memory hierarchy level

2015-06-11 Thread Madhavan Srinivasan
Power8 Perforence Monitoring Unit (PMU) supports different sampling modes (SM) Random Instruction Sampling (RIS), Random Load/Store Facility Sampling (RLS) and Random Branch Sampling (RBS). This patchset enabled RLS mode to mark Load/Store instructions to save the memory hierarchy level (eg: L2, L3

[PATCH v2] ALSA: aoa: convert bus code to use dev_groups

2015-06-11 Thread Quentin Lambert
The dev_attrs field of struct bus_type is going away, use dev_groups instead. This converts the soundbus code to use the correct field. Given that all other usages of the macro define the struct attribute *xxx_attrs[] in the same file they assign the .dev_groups field, this patch merges sysfs.c i

[PATCH V3] QorIQ/TMU: add TMU node to device tree for QorIQ T1040

2015-06-11 Thread Jia Hongtao
This is Thermal Monitoring Unit for QorIQ platform. Signed-off-by: Jia Hongtao --- Changes of V3: * Put TMU node directly into t1040si-post.dtsi file. * Add "fsl,tmu-range" property. * Change "calibration" property to "fsl,tmu-calibration". * Update the calibration data. Changes of V2: * Provide

Re: [PATCH] net/ps3_gelic: Fix build error with DEBUG

2015-06-11 Thread David Miller
From: Geoff Levand Date: Wed, 10 Jun 2015 10:19:48 -0700 > When the DEBUG preprocessor macro is defined the ps3_gelic_net driver build > fails due to an undeclared routine gelic_descr_get_status(). This problem > was introduced during the code cleanup of commit > 6b0c21cede22be1f68f0a632c0ca3800