[PATCH] net/mlx4: Support shutdown() interface

2014-03-03 Thread Gavin Shan
In kexec scenario, we failed to load the mlx4 driver in the second kernel because the ownership bit was hold by the first kernel without release correctly. The patch adds shutdown() interface so that the ownership can be released correctly in the first kernel. It also helps avoiding EEH error happ

Re: [PATCH v3 03/11] perf: provide a common perf_event_nop_0() for use with .event_idx

2014-03-03 Thread Cody P Schafer
On 03/03/2014 09:19 PM, Michael Ellerman wrote: On Thu, 2014-27-02 at 21:04:56 UTC, Cody P Schafer wrote: Rather an having every pmu that needs a function that just returns 0 for .event_idx define their own copy, reuse the one in kernel/events/core.c. Rename from perf_swevent_event_idx() becaus

[PATCH v3 2/2] powerpc/perf: Add lost exception workaround

2014-03-03 Thread Michael Ellerman
Some power8 revisions have a hardware bug where we can lose a PMU exception, this commit adds a workaround to detect the bad condition and rectify the situation. See the comment in the commit for a full description. Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/reg.h | 2 + ar

[PATCH v3 1/2] powerpc: Add a cpu feature CPU_FTR_PMAO_BUG

2014-03-03 Thread Michael Ellerman
Some power8 revisions have a hardware bug where we can lose a Performance Monitor (PMU) exception under certain circumstances. We will be adding a workaround for this case, see the next commit for details. The observed behaviour is that writing PMAO doesn't cause an exception as we would expect, h

Re: [PATCH v3 03/11] perf: provide a common perf_event_nop_0() for use with .event_idx

2014-03-03 Thread Michael Ellerman
On Thu, 2014-27-02 at 21:04:56 UTC, Cody P Schafer wrote: > Rather an having every pmu that needs a function that just returns 0 for > .event_idx define their own copy, reuse the one in kernel/events/core.c. > > Rename from perf_swevent_event_idx() because we're no longer using it > for just softw

Re: [PATCH v3 02/11] perf: add PMU_FORMAT_RANGE() helper for use by sw-like pmus

2014-03-03 Thread Michael Ellerman
On Thu, 2014-27-02 at 21:04:55 UTC, Cody P Schafer wrote: > Add PMU_FORMAT_RANGE() and PMU_FORMAT_RANGE_RESERVED() (for reserved > areas) which generate functions to extract the relevent bits from > event->attr.config{,1,2} for use by sw-like pmus where the > 'config{,1,2}' values don't map directl

Re: [PATCH] powerpc: Check that all cpu features are in the possible map

2014-03-03 Thread Michael Ellerman
On Tue, 2014-03-04 at 13:44 +1100, Michael Ellerman wrote: > diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c > index 6c8dd5d..eb31713 100644 > --- a/arch/powerpc/kernel/cputable.c > +++ b/arch/powerpc/kernel/cputable.c > @@ -2255,6 +2255,15 @@ static struct cpu_spec * _

[PATCH] powerpc: Check that all cpu features are in the possible map

2014-03-03 Thread Michael Ellerman
cpu_has_feature() has an optimisation where it maintains a map of possible cpu features. This allows the compiler to determine at compile time that some cpu_has_feature() checks will always return 0, and therefore the code guarded by the check can be elided. However we have no logic to check wheth

[PATCH] powerpc: Align p_dyn, p_rela and p_st symbols

2014-03-03 Thread Anton Blanchard
The 64bit relocation code places a few symbols in the text segment. These symbols are only 4 byte aligned where they need to be 8 byte aligned. Add an explicit alignment. Signed-off-by: Anton Blanchard Cc: sta...@vger.kernel.org --- diff --git a/arch/powerpc/kernel/reloc_64.S b/arch/powerpc/ker

Re: Panic on ppc64 with numa_balancing and !sparsemem_vmemmap

2014-03-03 Thread Mel Gorman
On Tue, Mar 04, 2014 at 12:45:19AM +0530, Aneesh Kumar K.V wrote: > Mel Gorman writes: > > > On Wed, Feb 19, 2014 at 11:32:00PM +0530, Srikar Dronamraju wrote: > >> > >> On a powerpc machine with CONFIG_NUMA_BALANCING=y and > >> CONFIG_SPARSEMEM_VMEMMAP > >> not enabled, kernel panics. > >> >

Re: Panic on ppc64 with numa_balancing and !sparsemem_vmemmap

2014-03-03 Thread Aneesh Kumar K.V
Mel Gorman writes: > On Wed, Feb 19, 2014 at 11:32:00PM +0530, Srikar Dronamraju wrote: >> >> On a powerpc machine with CONFIG_NUMA_BALANCING=y and >> CONFIG_SPARSEMEM_VMEMMAP >> not enabled, kernel panics. >> > > This? This one fixed that crash on ppc64 http://mid.gmane.org/1393578122-6500

Re: Panic on ppc64 with numa_balancing and !sparsemem_vmemmap

2014-03-03 Thread Mel Gorman
On Wed, Feb 19, 2014 at 11:32:00PM +0530, Srikar Dronamraju wrote: > > On a powerpc machine with CONFIG_NUMA_BALANCING=y and CONFIG_SPARSEMEM_VMEMMAP > not enabled, kernel panics. > This? ---8<--- sched: numa: Do not group tasks if last cpu is not set On configurations with vmemmap disabled,

Re: [PATCH] Corenet: Add QE platform support for Corenet

2014-03-03 Thread Kumar Gala
On Feb 28, 2014, at 2:48 AM, Zhao Qiang wrote: > There is QE on platform T104x, add support. > Call funcs qe_ic_init and qe_init if CONFIG_QUICC_ENGINE is defined. > > Signed-off-by: Zhao Qiang > --- > arch/powerpc/platforms/85xx/corenet_generic.c | 32 +++ > 1 file chan

Re: [RFC PATCH] vfio-pci: avoid deadlock between unbind and VFIO_DEVICE_RESET

2014-03-03 Thread Alex Williamson
On Mon, 2014-03-03 at 12:28 -0300, Thadeu Lima de Souza Cascardo wrote: > On Mon, Mar 03, 2014 at 08:09:22AM -0700, Alex Williamson wrote: > > On Mon, 2014-03-03 at 11:33 -0300, Thadeu Lima de Souza Cascardo wrote: > > > When we unbind vfio-pci from a device, while running a guest, we might > > > h

Re: [RFC PATCH] vfio-pci: avoid deadlock between unbind and VFIO_DEVICE_RESET

2014-03-03 Thread Thadeu Lima de Souza Cascardo
On Mon, Mar 03, 2014 at 08:09:22AM -0700, Alex Williamson wrote: > On Mon, 2014-03-03 at 11:33 -0300, Thadeu Lima de Souza Cascardo wrote: > > When we unbind vfio-pci from a device, while running a guest, we might > > have a deadlock when such a guest reboots. > > > > Unbind takes device_lock at d

Re: [RFC PATCH] vfio-pci: avoid deadlock between unbind and VFIO_DEVICE_RESET

2014-03-03 Thread Alex Williamson
On Mon, 2014-03-03 at 11:33 -0300, Thadeu Lima de Souza Cascardo wrote: > When we unbind vfio-pci from a device, while running a guest, we might > have a deadlock when such a guest reboots. > > Unbind takes device_lock at device_release_driver, and waits for > release_q at vfio_del_group_dev. > >

[RFC PATCH] vfio-pci: avoid deadlock between unbind and VFIO_DEVICE_RESET

2014-03-03 Thread Thadeu Lima de Souza Cascardo
When we unbind vfio-pci from a device, while running a guest, we might have a deadlock when such a guest reboots. Unbind takes device_lock at device_release_driver, and waits for release_q at vfio_del_group_dev. release_q will only be woken up when all references to vfio_device are gone, and that

[PATCH 2/3] powerpc/fsl-booke: Add initial T208x QDS board support

2014-03-03 Thread Shengzhou Liu
Add support for Freescale T2080/T2081 QDS Development System Board. T2081QDS board shares the same PCB with T1040QDS with some differences. The T2080QDS Development System is a high-performance computing, evaluation, and development platform that supports T2080 QorIQ Power Architecture processor,

[PATCH 3/3] powerpc/t2080rdb: Add T2080RDB board support

2014-03-03 Thread Shengzhou Liu
T2080PCIe-RDB is a Freescale Reference Design Board that hosts the T2080 SoC. The board feature overview: Processor: - T2080 SoC integrating four 64-bit dual-threads e6500 cores up to 1.8GHz DDR Memory: - Single memory controller capable of supporting DDR3 and DDR3-LP devices - 72bit 4GB DDR3-LP

[PATCH 1/3] powerpc/fsl-booke: Add support for T2080/T2081 SoC

2014-03-03 Thread Shengzhou Liu
Add support for T2080/T2081 SoC without DPAA components. The T2080 SoC includes the following function and features: - Four dual-threaded 64-bit Power architecture e6500 cores, up to 1.8GHz - 2MB L2 cache and 512KB CoreNet platform cache (CPC) - Hierarchical interconnect fabric - One 32-/64-bit DD

Re: [PATCH 2/3] dts: mpc512x: adjust clock specs for FEC nodes

2014-03-03 Thread Gerhard Sittig
On Mon, Feb 24, 2014 at 11:25 +0100, Gerhard Sittig wrote: > > a recent FEC binding document update that was motivated by i.MX > development revealed that ARM and PowerPC implementations in Linux > did not agree on the clock names to use for the FEC nodes > > change clock names from "per" to "ipg

[PATCH 4/4] powernv:cpufreq: Implement the driver->get() method

2014-03-03 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" The current frequency of a cpu is reported through the sysfs file cpuinfo_cur_freq. This requires the driver to implement a "->get(unsigned int cpu)" method which will return the current operating frequency. Implement a function named powernv_cpufreq_get() which corresp

[PATCH 0/4] powernv:cpufreq: Export nominal and current frequency via sysfs

2014-03-03 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Hi, On IBM POWERNV platforms[1], presently we do not report the current operating frequency of the processor through the sysfs interface "cpuinfo_cur_freq" since the cpu frequency driver[1] has not implemented the ->get(unsigned int cpu) method. Fix this by implementing

[PATCH 2/4] powernv:cpufreq: Export nominal frequency via sysfs.

2014-03-03 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Create a driver attribute named cpuinfo_nominal_frequency which creates a sysfs read-only file named cpuinfo_nominal_frequency. Export the frequency corresponding to the nominal_pstate through this interface. Signed-off-by: Gautham R. Shenoy --- drivers/cpufreq/powern

[PATCH 1/4] powernv:cpufreq: Create pstate_id_to_freq() helper

2014-03-03 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Create a helper routine that can return the cpu-frequency for the corresponding pstate_id. Also, cache the values of the pstate_max, pstate_min and pstate_nominal and nr_pstates in a static structure so that they can be reused in the future to perform any validations.

[PATCH 3/4] powernv:cpufreq: Create a powernv_cpu_to_core_mask() helper.

2014-03-03 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Move the code that computes the cpumask corresponding to the thread-siblings of a cpu to a new method named powernv_cpu_to_core_mask() so that it can be used by other places in the code. Signed-off-by: Gautham R. Shenoy --- drivers/cpufreq/powernv-cpufreq.c | 24 +

Sound on PowerBook and iBook (snd_powermac/snd_aoa)‏

2014-03-03 Thread Adam Smith
Hi list, I was hoping to pick your brains regarding the sound on Apple PowerPC machines. For a long time now, sound has been broken on a number of these machines. This, I think, is due to i2c changes that started in April 2012. A number of bug reports have been raised by users at a distribution