Re: [PATCH] Timer: fix a race condition between init_timers_cpu() and get_next_timer_interrupt()

2015-04-30 Thread Ethan Zhao
This patches works with 4.0.1, but doesn't work with 4.1-rc1+ Thanks, Ethan On Wed, Apr 29, 2015 at 10:58 PM, Ethan Zhao wrote: > while testing CPU hotplug and MCE with following two scripts, > > script 1: > > for i in {1..30}; do while :; do ((a=$RANDOM%160)); echo 0 >> >

Re: [PATCH] x86/mce: fix mce_restart() race with CPU hotplug operation

2015-04-30 Thread Ethan Zhao
On Fri, May 1, 2015 at 12:29 AM, Borislav Petkov wrote: > On Thu, Apr 30, 2015 at 12:04:53AM +0900, Ethan Zhao wrote: >> while testing CPU hotplug and MCE with following two scripts, >> >> script 1: >> >> for i in {1..30}; do while :; do ((a=$RANDOM%160)); echo 0 >> >>

Regression: Disk corruption with dm-crypt and kernels >= 4.0

2015-04-30 Thread Abelardo Ricart III
I made sure to run a completely vanilla kernel when testing why I was suddenly seeing some nasty libata errors with all kernels >= v4.0. Here's a snippet: >8 [ 165.592136] ata5.00: exception Emask 0x60 SAct 0x7000 SErr 0x800 action 0x6 frozen [

[PATCH V2 1/2] mm/thp: Use new functions to clear pmd on splitting and collapse

2015-04-30 Thread Aneesh Kumar K.V
Some arch may require an explicit IPI before a THP PMD split or collapse. This enable us to use local_irq_disable to prevent a parallel THP PMD split or collapse. Signed-off-by: Aneesh Kumar K.V --- include/asm-generic/pgtable.h | 32 mm/huge_memory.c

[PATCH V2 2/2] powerpc/thp: Remove _PAGE_SPLITTING and related code

2015-04-30 Thread Aneesh Kumar K.V
With the new thp refcounting we don't need to mark the PMD splitting. Drop the code to handle this. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/kvm_book3s_64.h | 6 -- arch/powerpc/include/asm/pgtable-ppc64.h | 29 ++-- arch/powerpc/mm/hugepage-hash64.c| 3 -

[PATCH V2 0/2] Remove _PAGE_SPLITTING from ppc64

2015-04-30 Thread Aneesh Kumar K.V
The changes are on top of what is posted at http://mid.gmane.org/1429823043-157133-1-git-send-email-kirill.shute...@linux.intel.com git://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git thp/refcounting/v5 Changes from V1: * Fold part of patch 3 to 1 and 2 * Drop patch 3. * Make

Re: [PATCH v6 4/4] clk: dt: Introduce binding for always-on clock support

2015-04-30 Thread Sascha Hauer
On Thu, Apr 30, 2015 at 10:57:22AM +0100, Lee Jones wrote: > On Wed, 29 Apr 2015, Maxime Ripard wrote: > > > On Wed, Apr 29, 2015 at 03:17:51PM +0100, Lee Jones wrote: > > > On Wed, 22 Apr 2015, Maxime Ripard wrote: > > > > > > > On Wed, Apr 08, 2015 at 06:23:44PM +0100, Lee Jones wrote: > > > >

Re: [PATCH kernel v9 29/32] vfio: powerpc/spapr: Register memory and define IOMMU v2

2015-04-30 Thread David Gibson
On Fri, May 01, 2015 at 02:35:23PM +1000, Alexey Kardashevskiy wrote: > On 04/30/2015 04:55 PM, David Gibson wrote: > >On Sat, Apr 25, 2015 at 10:14:53PM +1000, Alexey Kardashevskiy wrote: > >>The existing implementation accounts the whole DMA window in > >>the locked_vm counter. This is going to

Re: [PATCH kernel v9 27/32] powerpc/iommu/ioda2: Add get_table_size() to calculate the size of future table

2015-04-30 Thread David Gibson
On Fri, May 01, 2015 at 02:10:58PM +1000, Alexey Kardashevskiy wrote: > On 04/29/2015 04:40 PM, David Gibson wrote: > >On Sat, Apr 25, 2015 at 10:14:51PM +1000, Alexey Kardashevskiy wrote: > >>This adds a way for the IOMMU user to know how much a new table will > >>use so it can be accounted in

Re: mmotm 2015-04-30-15-43 uploaded

2015-04-30 Thread Guenter Roeck
On Thu, Apr 30, 2015 at 03:44:10PM -0700, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2015-04-30-15-43 has been uploaded to > >http://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > http://www.ozlabs.org/~akpm/mmotm/ > > This

Re: [1/4] watchdog: MAX63XX_WATCHDOG does not depend on ARM

2015-04-30 Thread Guenter Roeck
On Thu, Jan 29, 2015 at 12:15:42PM -0500, Vivien Didelot wrote: > Remove the ARM Kconfig dependency since the Maxim MAX63xx devices are > architecture independent. > > Signed-off-by: Vivien Didelot Reviewed-by: Guenter Roeck -- To unsubscribe from this list: send the line "unsubscribe

Re: [RFC 1/2] ACPI: activate acpi_os_get_physical_address

2015-04-30 Thread Matthew Garrett
On Fri, May 01, 2015 at 03:45:52AM +0200, Rafael J. Wysocki wrote: > And I don't really understand the Matthew's comment regarding limiting > operation regions to system memory. This is about a specific operation > region (which BTW only seems to be used as a means to access system memory > at

Re: [PATCH kernel v9 31/32] vfio: powerpc/spapr: Support multiple groups in one container if possible

2015-04-30 Thread David Gibson
On Fri, May 01, 2015 at 10:46:08AM +1000, Benjamin Herrenschmidt wrote: > On Thu, 2015-04-30 at 19:33 +1000, Alexey Kardashevskiy wrote: > > On 04/30/2015 05:22 PM, David Gibson wrote: > > > On Sat, Apr 25, 2015 at 10:14:55PM +1000, Alexey Kardashevskiy wrote: > > >> At the moment only one group

Re: [PATCH kernel v9 26/32] powerpc/iommu: Add userspace view of TCE table

2015-04-30 Thread David Gibson
On Fri, May 01, 2015 at 02:01:17PM +1000, Alexey Kardashevskiy wrote: > On 04/29/2015 04:31 PM, David Gibson wrote: > >On Sat, Apr 25, 2015 at 10:14:50PM +1000, Alexey Kardashevskiy wrote: > >>In order to support memory pre-registration, we need a way to track > >>the use of every registered

Re: [PATCH kernel v9 31/32] vfio: powerpc/spapr: Support multiple groups in one container if possible

2015-04-30 Thread David Gibson
On Thu, Apr 30, 2015 at 07:33:09PM +1000, Alexey Kardashevskiy wrote: > On 04/30/2015 05:22 PM, David Gibson wrote: > >On Sat, Apr 25, 2015 at 10:14:55PM +1000, Alexey Kardashevskiy wrote: > >>At the moment only one group per container is supported. > >>POWER8 CPUs have more flexible design and

[PATCH 1/2] dt-bindings: Add pxa1928 clock binding

2015-04-30 Thread Rob Herring
This adds the clock binding documentation for the Marvell PXA1928 SOC. The PXA1928 has 3 clock control blocks for different subsystems of the chip. Signed-off-by: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala ---

[PATCH 2/2] clk: mmp: add PXA1928 clock support

2015-04-30 Thread Rob Herring
Add initial clock support for Marvell PXA1928. The PXA1928 is a mobile SOC and is similar to other MMP/PXA series of SOCs, so a lot of the existing infrastructure is reused here. Currently the PLLs are just fixed clocks, and not all leaf clocks are implemented. Signed-off-by: Rob Herring Cc:

Re: 3.17.0+ files disappearing after playing old dos game on nfsroot laptop

2015-04-30 Thread Eric W. Biederman
Hans de Bruin writes: >> I expect what needs to happen is to confirm that nfs directory entry >> revalidation is buggy, and at least for the short term re-add the nfs >> logic that will avoid dropping a dentry if it is a mount point, or >> path to a mount point, to avoid the nfs bugs. >> > > ok,

Re: [RFC PATCH 00/22] perf tools: introduce 'perf bpf' command to load eBPF programs.

2015-04-30 Thread Alexei Starovoitov
On 4/30/15 3:52 AM, Wang Nan wrote: This series of patches is an approach to integrate eBPF with perf. After applying these patches, users are allowed to use following command to load eBPF program compiled by LLVM into kernel: $ perf bpf sample_bpf.o The required BPF code and the loading

Re: [PATCH V2 net-next 1/1] hv_netvsc: Use the xmit_more skb flag to optimize signaling the host

2015-04-30 Thread Eric Dumazet
On Thu, 2015-04-30 at 16:29 -0700, K. Y. Srinivasan wrote: > Based on the information given to this driver (via the xmit_more skb flag), > we can defer signaling the host if more packets are on the way. This will help > make the host more efficient since it can potentially process a larger batch

Re: [PATCH kernel v9 29/32] vfio: powerpc/spapr: Register memory and define IOMMU v2

2015-04-30 Thread Alexey Kardashevskiy
On 04/30/2015 04:55 PM, David Gibson wrote: On Sat, Apr 25, 2015 at 10:14:53PM +1000, Alexey Kardashevskiy wrote: The existing implementation accounts the whole DMA window in the locked_vm counter. This is going to be worse with multiple containers and huge DMA windows. Also, real-time

linux-next: Tree for May 1

2015-04-30 Thread Stephen Rothwell
Hi all, Changes since 20150430: The sound-asoc tree lost its build failure. The akpm-current tree gained a build failure for which I apllied a fix patch. Non-merge commits (relative to Linus' tree): 1233 1252 files changed, 78167 insertions(+), 22093 deletions

[PATCH 3/3] Change all uses of JOBCTL_* from int to long

2015-04-30 Thread Palmer Dabbelt
c56fb6564dcd ("Fix a misaligned load inside ptrace_attach()") makes jobctl an "unsigned long". It makes sense to have the masks applied to it match that type. This is currently just a cosmetic change, but it will prevent the mask from being unexpectedly truncated if we ever end up with masks

[PATCH 1/3] Fix a misaligned load inside ptrace_attach()

2015-04-30 Thread Palmer Dabbelt
The misaligned load exception arises when running ptrace_attach() on the RISC-V (which hasn't been upstreamed yet). The problem is that wait_on_bit() takes a void* but then proceeds to call test_bit(), which takes a long*. This allows an int-aligned pointer to be passed to test_bit(), which

[PATCH 2/3] Change wait_on_bit*() to take an unsigned long*, not a void*

2015-04-30 Thread Palmer Dabbelt
The implementations of wait_on_bit*() will only work with long-aligned memory on systems that don't support misaligned loads and stores. This patch changes the function prototypes to ensure that the compiler will enforce alignment. Running make defconfig make KFLAGS="-Werror" seems to

[PATCH 0/3] Fix a misaligned load inside ptrace_attach()

2015-04-30 Thread Palmer Dabbelt
I ran across what I believe is a bug in some asm-generic code while working on the RISC-V Linux port. Essentially the problem is that wait_on_bit() takes a void *, but then perfroms long-aligned operation. As far as I can tell, this bug could manifest on any other architecture that doesn't

linux-next: build failure after merge of the akpm-current tree

2015-04-30 Thread Stephen Rothwell
Hi Andrew, After merging the akpm tree, today's linux-next build (sparc defconfig) failed like this: mm/bootmem.c: In function 'free_all_bootmem_core': mm/bootmem.c:237:32: error: 'cur' undeclared (first use in this function) __free_pages_bootmem(page++, cur++, 0);

Re: [PATCH 2/4] x86/mce/amd: Introduce deferred error interrupt handler

2015-04-30 Thread Aravind Gopalakrishnan
On 4/30/15 3:41 PM, Andy Lutomirski wrote: On Thu, Apr 30, 2015 at 7:49 AM, Aravind Gopalakrishnan wrote: Changes introduced in the patch- - Assign vector number 0xf4 for Deferred errors - Declare deferred_interrupt, allocate gate and bind it to DEFERRED_APIC_VECTOR. - Declare

Re: [PATCH kernel v9 27/32] powerpc/iommu/ioda2: Add get_table_size() to calculate the size of future table

2015-04-30 Thread Alexey Kardashevskiy
On 04/29/2015 04:40 PM, David Gibson wrote: On Sat, Apr 25, 2015 at 10:14:51PM +1000, Alexey Kardashevskiy wrote: This adds a way for the IOMMU user to know how much a new table will use so it can be accounted in the locked_vm limit before allocation happens. This stores the allocated table

Re: [PATCH kernel v9 26/32] powerpc/iommu: Add userspace view of TCE table

2015-04-30 Thread Alexey Kardashevskiy
On 04/29/2015 04:31 PM, David Gibson wrote: On Sat, Apr 25, 2015 at 10:14:50PM +1000, Alexey Kardashevskiy wrote: In order to support memory pre-registration, we need a way to track the use of every registered memory region and only allow unregistration if a region is not in use anymore. So we

Re: [PATCH kernel v9 28/32] powerpc/mmu: Add userspace-to-physical addresses translation cache

2015-04-30 Thread David Gibson
On Thu, Apr 30, 2015 at 06:25:25PM +1000, Paul Mackerras wrote: > On Thu, Apr 30, 2015 at 04:34:55PM +1000, David Gibson wrote: > > On Sat, Apr 25, 2015 at 10:14:52PM +1000, Alexey Kardashevskiy wrote: > > > We are adding support for DMA memory pre-registration to be used in > > > conjunction with

Re: [PATCH kernel v9 23/32] powerpc/powernv/ioda: Define and implement DMA table/window management callbacks

2015-04-30 Thread David Gibson
On Thu, Apr 30, 2015 at 07:56:17PM +1000, Alexey Kardashevskiy wrote: > On 04/30/2015 02:37 PM, David Gibson wrote: > >On Wed, Apr 29, 2015 at 07:44:20PM +1000, Alexey Kardashevskiy wrote: > >>On 04/29/2015 03:30 PM, David Gibson wrote: > >>>On Sat, Apr 25, 2015 at 10:14:47PM +1000, Alexey

Re: [PATCH] i2c: rk3x: Increase wait timeout to 1 second

2015-04-30 Thread Caesar Wang
在 2015年05月01日 05:44, Doug Anderson 写道: While it's not sensible for an i2c command to _actually_ need more than 200ms to complete, let's increase the timeout anyway. Why? It turns out that if you've got a large number of printks going out to a serial console, interrupts on a CPU can be

Re: [PATCH] i2c: rk3x: Increase wait timeout to 1 second

2015-04-30 Thread Caesar Wang
在 2015年05月01日 05:44, Doug Anderson 写道: While it's not sensible for an i2c command to _actually_ need more than 200ms to complete, let's increase the timeout anyway. Why? It turns out that if you've got a large number of printks going out to a serial console, interrupts on a CPU can be

[PATCH v6] block: loop: avoiding too many pending per work I/O

2015-04-30 Thread Ming Lei
If there are too many pending per work I/O, too many high priority work thread can be generated so that system performance can be effected. This patch limits the max pending per work I/O as 16, and will fackback to single queue mode when the max number is reached. This patch fixes Fedora 22 live

[PATCH] fs: ext3: super: fixed a space coding style issue

2015-04-30 Thread Adir Kuhn
Fixed a coding style issue Signed-off-by: Adir Kuhn --- fs/ext3/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext3/super.c b/fs/ext3/super.c index a9312f0..5ed0044 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c @@ -1908,7 +1908,7 @@ static int

Re: [PATCH 01/11] drivers/crypto: include for modular caam code

2015-04-30 Thread Herbert Xu
On Thu, Apr 30, 2015 at 09:47:37PM -0400, Paul Gortmaker wrote: > This file is built off of a tristate Kconfig option and also contains > modular function calls so it should explicitly include module.h to > avoid compile breakage during header shuffles done in the future. > > Cc: Herbert Xu >

Re: [PATCH 1/2] crypto: Constify (de)compression parameters

2015-04-30 Thread Herbert Xu
On Tue, Apr 28, 2015 at 03:36:30PM +0100, David Howells wrote: > In testmgr, struct pcomp_testvec takes a non-const 'params' field, which is > pointed to a const deflate_comp_params or deflate_decomp_params object. With > gcc-5 this incurs the following warnings: > > In file included from

Re: [PATCH v3 4/6] crypto: drbg - add async seeding operation

2015-04-30 Thread Herbert Xu
On Tue, Apr 28, 2015 at 05:00:03AM +0200, Stephan Mueller wrote: > > @@ -1081,6 +1115,11 @@ static int drbg_seed(struct drbg_state *drbg, struct > drbg_string *pers, > return -EINVAL; > } > > + /* cancel any previously invoked seeding */ > +

Re: [RFD 5/5] tracing: Add trace_irqsoff tracepoints

2015-04-30 Thread Steven Rostedt
On Thu, 30 Apr 2015 21:14:52 -0500 Tom Zanussi wrote: > > 'hist:key=latency.bucket:val=hitcount:sort=latency if cpu==0' > > > > but I haven't got this working. I didn't spend much time figuring out > > why this doesn't work. Even if the above is working you still > > I think it doesn't work

Re: [PATCH 2/2] sched/rt: Optimizate task_woken_rt()

2015-04-30 Thread Steven Rostedt
On Fri, 1 May 2015 10:02:47 +0800 pang.xun...@zte.com.cn wrote: > > > > > > - Remove "!test_tsk_need_resched(rq->curr)" condition, because > > > the flag might be set right before the waking up, but we still > > > need to push equal or lower priority tasks, it should be removed. > > > Without

god dag

2015-04-30 Thread Loan Engine®
hallo Få et lån nå med lån motor ®, med en rente på 3%. Fyll ut skjemaet nedenfor hvis du er interessert i: Kjønn: Land: Forbruk: Lengde: Formål: Det er mange grunner til hvorfor et lån kan hjelpe Hilsener, Kennel Turid -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 09/11] drivers/scsi: include for modular ufshcd-pltfrm code

2015-04-30 Thread James Bottomley
On Thu, 2015-04-30 at 21:47 -0400, Paul Gortmaker wrote: > This file is built off of a tristate Kconfig option and also contains > modular function calls so it should explicitly include module.h to > avoid compile breakage during header shuffles done in the future. I don't understand your logic.

Re: [RFD 5/5] tracing: Add trace_irqsoff tracepoints

2015-04-30 Thread Tom Zanussi
On Thu, 2015-04-30 at 12:06 +0200, Daniel Wagner wrote: > Finally we place a few tracepoint at the end of critical section. With > the hist trigger in place we can generate the plots. > > There are a few drawbacks compared to the latency_hist.patch [1] > > The latency plots contain the values

Re: [RFD 3/5] tracing: Add option to quantize key values

2015-04-30 Thread Tom Zanussi
On Thu, 2015-04-30 at 12:06 +0200, Daniel Wagner wrote: > Let's group some values together. This avoids a too detailed > histogram. Some sort of logarythmic scale could be useful > for latency plots. > > Now we can write something like: > > 'hist:key=latency.bucket:val=hitcount:sort=latency' >

Re: [RFD 2/5] tracing: Add support to sort on the key

2015-04-30 Thread Tom Zanussi
On Thu, 2015-04-30 at 12:06 +0200, Daniel Wagner wrote: > The hist patch allows sorting on values only. By allowing to > sort also on the key we can do something like this: > > 'hist:key=latency:val=hitcount:sort=latency' > > latency: 16 hitcount: 3 > latency: 17

Re: [RFD 0/5] Add latency histogram

2015-04-30 Thread Tom Zanussi
Hi Daniel, On Thu, 2015-04-30 at 12:06 +0200, Daniel Wagner wrote: > Hi, > > I would like to discuss a possible way of getting the feature of the > latecy_hist.patch [1] added to mainline. > > "Latency histograms are primarily relevant in the context of real-time > enabled kernels

[PATCH 04/11] drivers/gpu: include for modular rockchip code

2015-04-30 Thread Paul Gortmaker
These files are built off of a tristate Kconfig option and also contain modular function calls so they should explicitly include module.h to avoid compile breakage during header shuffles done in the future. Cc: David Airlie Cc: Mark Yao Cc: dri-de...@lists.freedesktop.org Signed-off-by: Paul

[PATCH 11/11] sh: mach-highlander/psw.c is tristate and should use module.h

2015-04-30 Thread Paul Gortmaker
This file is controlled by a tristate Kconfig option, and hence needs to include module.h so that it can get module_init() once we relocate it from init.h into module.h in the future. Note that module_exit() appears to be missing from the driver, so it is questionable whether it would actually

[PATCH 01/11] drivers/crypto: include for modular caam code

2015-04-30 Thread Paul Gortmaker
This file is built off of a tristate Kconfig option and also contains modular function calls so it should explicitly include module.h to avoid compile breakage during header shuffles done in the future. Cc: Herbert Xu Cc: "David S. Miller" Signed-off-by: Paul Gortmaker ---

[PATCH 07/11] drivers/pcmcia: include for modular xxs1500_ss code

2015-04-30 Thread Paul Gortmaker
This file is built off of a tristate Kconfig option and also contains modular function calls so it should explicitly include module.h to avoid compile breakage during header shuffles done in the future. Cc: Wolfram Sang Cc: linux-pcm...@lists.infradead.org Signed-off-by: Paul Gortmaker ---

[PATCH 06/11] drivers/net: include for modular stmmac_platform code

2015-04-30 Thread Paul Gortmaker
This file is built off of a tristate Kconfig option and also contains modular function calls so it should explicitly include module.h to avoid compile breakage during header shuffles done in the future. Cc: Giuseppe Cavallaro Cc: net...@vger.kernel.org Signed-off-by: Paul Gortmaker ---

[PATCH 02/11] drivers/clk: include for clk-max77xxx modular code

2015-04-30 Thread Paul Gortmaker
These files are built off of the tristate COMMON_CLK_MAX77686 and COMMON_CLK_MAX77802 respectively. They also contains modular function calls so they should explicitly include module.h to avoid compile breakage during header shuffles done in the future. Cc: Mike Turquette Cc: Stephen Boyd

[PATCH 08/11] drivers/pcmcia: include for modular max77802 code

2015-04-30 Thread Paul Gortmaker
This file is built off of a tristate Kconfig option and also contains modular function calls so it should explicitly include module.h to avoid compile breakage during header shuffles done in the future. Cc: Liam Girdwood Cc: Mark Brown Signed-off-by: Paul Gortmaker ---

[PATCH 03/11] drivers/gpio: include for modular crystalcove code

2015-04-30 Thread Paul Gortmaker
This file is built off of a tristate Kconfig option and also contains modular function calls so it should explicitly include module.h to avoid compile breakage during header shuffles done in the future. Cc: Linus Walleij Cc: Alexandre Courbot Cc: linux-g...@vger.kernel.org Signed-off-by: Paul

[PATCH 10/11] drivers/staging: include for modular android tegra_ion code

2015-04-30 Thread Paul Gortmaker
This file is built off of a tristate Kconfig option and also contains modular function calls so it should explicitly include module.h to avoid compile breakage during header shuffles done in the future. Cc: Greg Kroah-Hartman Cc: "Arve Hj�nnev�g" Cc: Riley Andrews Cc: Stephen Warren Cc:

[PATCH 09/11] drivers/scsi: include for modular ufshcd-pltfrm code

2015-04-30 Thread Paul Gortmaker
This file is built off of a tristate Kconfig option and also contains modular function calls so it should explicitly include module.h to avoid compile breakage during header shuffles done in the future. Cc: Vinayak Holikatti Cc: "James E.J. Bottomley" Cc: linux-s...@vger.kernel.org

[PATCH 05/11] drivers/hsi: include for modular omap_ssi code

2015-04-30 Thread Paul Gortmaker
These files are built off of a tristate Kconfig option and also contain modular function calls so they should explicitly include module.h to avoid compile breakage during header shuffles done in the future. We change the one header file wich gives us coverage on both files:

[PATCH 00/11] Fix implicit includes of that will break.

2015-04-30 Thread Paul Gortmaker
The files changed here are simply modular source files that are implicitly relying on being present. We fix them up now, so that we can decouple some of the module related init code from the core init code in another pending series. This is the second series; a pseudo followup to the 1st

Re: [PATCH kernel v9 31/32] vfio: powerpc/spapr: Support multiple groups in one container if possible

2015-04-30 Thread Benjamin Herrenschmidt
On Thu, 2015-04-30 at 19:33 +1000, Alexey Kardashevskiy wrote: > On 04/30/2015 05:22 PM, David Gibson wrote: > > On Sat, Apr 25, 2015 at 10:14:55PM +1000, Alexey Kardashevskiy wrote: > >> At the moment only one group per container is supported. > >> POWER8 CPUs have more flexible design and allows

Re: [PATCH 2/2] clk: qcom: Fix MSM8916 gfx3d_clk_src configuration

2015-04-30 Thread Stephen Boyd
On 04/29, Georgi Djakov wrote: > The gfx3d_clk_src parents configuration is incorrect. Fix it. > > Fixes: 3966fab8b6ab "clk: qcom: Add MSM8916 Global Clock Controller support" > Signed-off-by: Georgi Djakov Applied to clk-fixes -- Qualcomm Innovation Center, Inc. is a member of Code Aurora

Re: [PATCH 1/2] clk: qcom: Fix MSM8916 venus divider value

2015-04-30 Thread Stephen Boyd
On 04/29, Georgi Djakov wrote: > One of the video codec clock frequencies has incorrect divider value. Fix it. > > Fixes: 3966fab8b6ab "clk: qcom: Add MSM8916 Global Clock Controller support" > Signed-off-by: Georgi Djakov Applied to clk-fixes -- Qualcomm Innovation Center, Inc. is a member

Re: [PATCH RESEND] clk: Fix JSON output in debugfs

2015-04-30 Thread Stephen Boyd
On 04/30, Felipe Balbi wrote: > On Thu, Apr 30, 2015 at 05:37:12PM -0700, Stephen Boyd wrote: > > On 04/29, Stefan Wahren wrote: > > > key/value pairs in a JSON object must be separated by a comma. > > > After adding the properties "accuracy" and "phase" the JSON output > > > of

context tracking vs. syscall_trace_leave & do_notify_resume loop

2015-04-30 Thread Rik van Riel
Andy pointed out to me something I should have seen earlier: both syscall_trace_leave and do_notify_resume call both user_exit() and user_enter(), which has the potential to greatly increase the cost of context tracking. I believe (though it is hard to know for sure) there are legitimate reasons

Re: [PATCH] clk: at91: Constify irq_domain_ops

2015-04-30 Thread Stephen Boyd
On 04/27, Boris Brezillon wrote: > On Mon, 27 Apr 2015 21:52:38 +0900 > Krzysztof Kozlowski wrote: > > > The irq_domain_ops are not modified by the driver and the irqdomain core > > code accepts pointer to a const data. > > > > Signed-off-by: Krzysztof Kozlowski > > Acked-by: Boris Brezillon

Re: [PATCH] block: loop: avoiding too many pending per work I/O

2015-04-30 Thread Ming Lei
On Fri, May 1, 2015 at 12:59 AM, Jeff Moyer wrote: > Ming Lei writes: > >> On Wed, Apr 29, 2015 at 12:36 AM, Jeff Moyer wrote: >>> Ming Lei writes: >>> If there are too many pending per work I/O, too many high priority work thread can be generated so that system performance can

Re: [RFC 1/2] ACPI: activate acpi_os_get_physical_address

2015-04-30 Thread Rafael J. Wysocki
On Friday, May 01, 2015 03:32:29 AM Rafael J. Wysocki wrote: > On Thursday, April 30, 2015 11:10:25 AM Darren Hart wrote: > > On Wed, Apr 22, 2015 at 04:12:24PM +0200, Kast Bernd wrote: > > > acpi_os_get_physical_address will be needed by an acpi driver > > > (asus-wmi.c). > > > Additionally it

Re: [PATCH 6/6] dt-bindings: ARM: Mediatek: Document devicetree bindings for clock/reset controllers

2015-04-30 Thread Stephen Boyd
On 04/23, Sascha Hauer wrote: > This adds the binding documentation for the apmixedsys, perisys and > infracfg controllers found on Mediatek SoCs. > > Signed-off-by: Sascha Hauer Please Cc devicetree reviewers on bindings (CCed now). > --- > .../bindings/arm/mediatek/mediatek,apmixedsys.txt

Re: [PATCH 1/3] HID: wacom: Do not add suffix to name of devices with an unknown type

2015-04-30 Thread Ping Cheng
On Thu, Apr 30, 2015 at 5:51 PM, Jason Gerecke wrote: > The naming logic currently assumes that all devices will be a pen, finger, > or pad. Though this has historically been the case, the new HID_GENERIC > catch-all may cause us to probe devices with Wacom's 056A VID which aren't > any of these

Re: [PATCH RFC v1 5/5] clk: introduce clk_core_enable_lock and clk_core_disable_lock functions

2015-04-30 Thread Stephen Boyd
On 04/15, Dong Aisheng wrote: > This can be usefully when clock core wants to enable/disable clocks. > Then we don't have to convert the struct clk_core to struct clk to call > clk_enable/clk_disable which is a bit un-align with exist using. > > Cc: Mike Turquette > Cc: Stephen Boyd >

Re: [PATCH RFC v1 4/5] clk: core: add CLK_SET_PARENT_ON flags to support clocks require parent on

2015-04-30 Thread Stephen Boyd
On 04/15, Dong Aisheng wrote: > diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c > index 7af553d..f2470e5 100644 > --- a/drivers/clk/clk.c > +++ b/drivers/clk/clk.c > @@ -43,6 +43,11 @@ static int clk_core_get_phase(struct clk_core *clk); > static bool clk_core_is_prepared(struct clk_core

Re: [RFC 1/2] ACPI: activate acpi_os_get_physical_address

2015-04-30 Thread Rafael J. Wysocki
On Thursday, April 30, 2015 11:10:25 AM Darren Hart wrote: > On Wed, Apr 22, 2015 at 04:12:24PM +0200, Kast Bernd wrote: > > acpi_os_get_physical_address will be needed by an acpi driver (asus-wmi.c). > > Additionally it could be used by dell-laptop.c instead of directly calling > >

Re: [PATCH RESEND] clk: Fix JSON output in debugfs

2015-04-30 Thread Felipe Balbi
On Thu, Apr 30, 2015 at 05:37:12PM -0700, Stephen Boyd wrote: > On 04/29, Stefan Wahren wrote: > > key/value pairs in a JSON object must be separated by a comma. > > After adding the properties "accuracy" and "phase" the JSON output > > of /sys/kernel/debug/clk/clk_dump is invalid. > > > > So add

Re: [PATCH v2 02/20] libnd, nd_acpi: initial libnd infrastructure and NFIT support

2015-04-30 Thread Rafael J. Wysocki
On Thursday, April 30, 2015 05:39:06 PM Dan Williams wrote: > On Thu, Apr 30, 2015 at 4:23 PM, Rafael J. Wysocki wrote: > > On Tuesday, April 28, 2015 02:24:23 PM Dan Williams wrote: > >> 1/ Autodetect an NFIT table for the ACPI namespace device with _HID of > >>"ACPI0012" > >> > >> 2/ libnd

[PATCH 2/3] HID: wacom: Discover device_type from HID descriptor for all devices

2015-04-30 Thread Jason Gerecke
Currently, we assume a device_type of BTN_TOOL_PEN before scanning the HID descriptor and then change the device_type if what we discover proves that assumption wrong. This way of doing things makes it more difficult to figure out if a device (particularly a HID_GENERIC device) actually does

[PATCH 3/3] HID: wacom: Fail probe if HID_GENERIC device has unknown device_type

2015-04-30 Thread Jason Gerecke
The last patch was careful to maintain backwards-compatible behavior by forcing device_type to BTN_TOOL_PEN (and printing a warning) if it were still uninitialized after scanning the HID descriptor and applying quirks. We should be more strict with HID_GENERIC devices, however, since there is no a

[PATCH 1/3] HID: wacom: Do not add suffix to name of devices with an unknown type

2015-04-30 Thread Jason Gerecke
The naming logic currently assumes that all devices will be a pen, finger, or pad. Though this has historically been the case, the new HID_GENERIC catch-all may cause us to probe devices with Wacom's 056A VID which aren't any of these types (e.g. the "Cintiq 24HDT Monitor Control"). This patch

Re: [PATCH RESEND] clk: Fix JSON output in debugfs

2015-04-30 Thread Stefan Wahren
> Stephen Boyd hat am 1. Mai 2015 um 02:37 geschrieben: > > > On 04/29, Stefan Wahren wrote: > > key/value pairs in a JSON object must be separated by a comma. > > After adding the properties "accuracy" and "phase" the JSON output > > of /sys/kernel/debug/clk/clk_dump is invalid. > > > > So add

Re: [PATCH v2 02/20] libnd, nd_acpi: initial libnd infrastructure and NFIT support

2015-04-30 Thread Dan Williams
On Thu, Apr 30, 2015 at 4:23 PM, Rafael J. Wysocki wrote: > On Tuesday, April 28, 2015 02:24:23 PM Dan Williams wrote: >> 1/ Autodetect an NFIT table for the ACPI namespace device with _HID of >>"ACPI0012" >> >> 2/ libnd bus registration >> >> The NFIT provided by ACPI is one possible method

Re: [PATCH RESEND] clk: Fix JSON output in debugfs

2015-04-30 Thread Stephen Boyd
On 04/29, Stefan Wahren wrote: > key/value pairs in a JSON object must be separated by a comma. > After adding the properties "accuracy" and "phase" the JSON output > of /sys/kernel/debug/clk/clk_dump is invalid. > > So add the missing commas to fix it. > > Fixes: 5279fc4 ("clk: add clk accuracy

Re: [mm/meminit] PANIC: early exception 06 rip 10:ffffffff811bfa9a error 0 cr2 ffff88000fbff000

2015-04-30 Thread Fengguang Wu
Hi Mel, On Wed, Apr 29, 2015 at 02:41:31PM +0100, Mel Gorman wrote: > On Wed, Apr 29, 2015 at 09:28:17PM +0800, Fengguang Wu wrote: > > Greetings, > > > > 0day kernel testing robot got the below dmesg and the first bad commit is > > > >

[PATCH v3 2/5] sched, numa: Document usages of mm->numa_scan_seq

2015-04-30 Thread Jason Low
On Thu, 2015-04-30 at 14:13 -0700, Jason Low wrote: > On Thu, 2015-04-30 at 14:42 -0400, Waiman Long wrote: > > > I do have a question of what kind of tearing you are talking about. Do > > you mean the tearing due to mm being changed in the middle of the > > access? The reason why I don't like

Re: [PATCH v4 2/5] lib: devres: add pcim_iomap_wc() variants

2015-04-30 Thread Luis R. Rodriguez
On Thu, Apr 30, 2015 at 04:46:38PM -0500, Bjorn Helgaas wrote: > On Thu, Apr 30, 2015 at 07:27:23PM +0200, Luis R. Rodriguez wrote: > > On Thu, Apr 30, 2015 at 11:26:47AM -0500, Bjorn Helgaas wrote: > > > > I don't see users of either pcim_iomap_wc() or pcim_iomap_wc_regions() so > > > far. Did

Re: [PATCH v3 0/2] clk: improve handling of orphan clocks

2015-04-30 Thread Stephen Boyd
On 04/22, Heiko Stuebner wrote: > Using orphan clocks can introduce strange behaviour as they don't have > rate information at all and also of course don't track > > This v2/v3 takes into account suggestions from Stephen Boyd to not try to > walk the clock tree at runtime but instead keep track

Re: [PATCH 2/3] x86: Remove unused kernel_stack per-cpu variable

2015-04-30 Thread Andy Lutomirski
On Fri, Apr 24, 2015 at 8:31 AM, Denys Vlasenko wrote: > Signed-off-by: Denys Vlasenko > CC: Linus Torvalds > CC: Steven Rostedt > CC: Ingo Molnar > CC: Borislav Petkov > CC: "H. Peter Anvin" > CC: Andy Lutomirski > CC: Oleg Nesterov > CC: Frederic Weisbecker > CC: Alexei Starovoitov >

[PATCH 4/6] clk: Remove impossible if condition in clk_core_get_phase()

2015-04-30 Thread Stephen Boyd
This condition can't ever be true because this function is static and it's always called with a non-NULL pointer. Signed-off-by: Stephen Boyd --- drivers/clk/clk.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index

[PATCH 6/6] clk: Update some comments to reflect reality

2015-04-30 Thread Stephen Boyd
The debugfs clk directory no longer expresses a clk tree. Update the comments around that apporiately. Also drop comments about prepare locks needing to be held as we have the proper annotations with lockdep_assert_held(). Signed-off-by: Stephen Boyd --- drivers/clk/clk.c | 51

[PATCH 5/6] clk: Remove forward declared function prototypes

2015-04-30 Thread Stephen Boyd
Move the code around so that we don't need to declare function prototypes at the start of the file. Simplify clk_core_is_prepared() and clk_core_is_enabled() too to make the diff easier to read. Signed-off-by: Stephen Boyd --- drivers/clk/clk.c | 811

[PATCH 1/6] clk: s/clk/core/ for struct clk_core

2015-04-30 Thread Stephen Boyd
While introducing struct clk_core we tried to minimize the diff by changing the type of 'clk' variables from struct clk to struct clk_core without changing the names of the variables. Now that the split is complete, the code is slightly confusing when it mixes variables called 'clk' and variables

[PATCH 0/6] clk.c cleanups

2015-04-30 Thread Stephen Boyd
Here are some cleanups spurned by some patches from Dong Aisheng. No functionality is changed, just reordering of code, etc. Cc: Tomeu Vizoso Cc: Dong Aisheng Dong Aisheng (1): clk: Squash __clk_{enable,disable}() into callers Stephen Boyd (5): clk: s/clk/core/ for struct clk_core clk:

[PATCH 2/6] clk: Squash __clk_{enable,disable}() into callers

2015-04-30 Thread Stephen Boyd
From: Dong Aisheng These functions are only used in one place. Let's squash them into their respective callers to save some lines. Signed-off-by: Dong Aisheng [sb...@codeaurora.org: Redo commit text, add NULL check in clk_enable()] Signed-off-by: Stephen Boyd --- drivers/clk/clk.c | 23

[PATCH 3/6] clk: Drop unnecessary OOM prints

2015-04-30 Thread Stephen Boyd
We don't need to print error messages when allocations fail. We'll get a nice backtrace in such situations anyway. Signed-off-by: Stephen Boyd --- drivers/clk/clk.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 88439af5d032..8d36100c00ce

[PATCH] mwifiex: do not return success when command times out

2015-04-30 Thread Dmitry Torokhov
wait_event_interruptible_timeout() returns 0 upon timeout. We should convert it to a negative error code (such as -ETIMEDOUT) instead of returning it directly, as return code of 0 indicates that command was executed. Signed-off-by: Dmitry Torokhov --- drivers/net/wireless/mwifiex/sta_ioctl.c |

Re: [PATCH] perf probe: Ignore tail calls to probed functions

2015-04-30 Thread Masami Hiramatsu
On 2015/04/30 23:58, Naveen N. Rao wrote: > [CC'ing Srikar] > > On 2015/04/30 10:06PM, Masami Hiramatsu wrote: >> On 2015/04/30 20:42, Naveen N. Rao wrote: >>> perf probe currently errors out if there are any tail calls to probed >>> functions: >>> >>> [root@rhel71be]# perf probe do_fork >>>

Re: [Linaro-acpi] [PATCH 2/2] ACPI / scan: Parse _CCA and setup device coherency

2015-04-30 Thread Suravee Suthikulanit
On 4/30/2015 3:23 AM, Arnd Bergmann wrote: On Wednesday 29 April 2015 16:53:10 Suravee Suthikulpanit wrote: On 4/29/15 11:25, Arnd Bergmann wrote: On Wednesday 29 April 2015 08:44:09 Suravee Suthikulpanit wrote: [...] As for the case where _CCA=0, I think the ACPI driver should essentially

Re: [PATCH] x86_64, asm: Work around AMD SYSRET SS descriptor attribute issue

2015-04-30 Thread H. Peter Anvin
On 04/30/2015 02:39 PM, H. Peter Anvin wrote: > This is the microbenchmark I used. > > For the record, Intel's intention going forward is that 0F 1F will > always be as fast or faster than any other alternative. > I probably should have added that the microbenchmark specifically tests for an

Re: [PATCH v3 2/2] clk: prevent orphan clocks from being used

2015-04-30 Thread Stephen Boyd
On 04/22, Heiko Stuebner wrote: > Orphan clocks or children of orphan clocks don't have rate information at > all and can produce strange results if they're allowed to be used and the > parent becomes available later on. > > So using the newly introduced orphan status bit defer >

Re: [PATCH v3 1/2] clk: track the orphan status of clocks and their children

2015-04-30 Thread Stephen Boyd
On 04/22, Heiko Stuebner wrote: > @@ -1401,18 +1402,40 @@ static int clk_fetch_parent_index(struct clk_core > *clk, > return -EINVAL; > } > > +/* > + * Update the orphan status of @clk and all its children. > + */ > +static void clk_core_update_orphan_status(struct clk_core *clk, bool >

Re: [PATCH 3/3] MTD: spi-nor: add flag to not use sector erase.

2015-04-30 Thread Marek Vasut
On Thursday, April 30, 2015 at 11:13:12 PM, Michal Suchanek wrote: > The sector size of the flash memory is unclear from datasheet or may > possibly vary between chips so add a flag to always use 4k blocks. > > Currently 4k blocks are always used when possible but in the future > somebody might

Re: [PATCH 1/3] MTD: m25p80: fix write return value.

2015-04-30 Thread Marek Vasut
On Thursday, April 30, 2015 at 03:33:47 PM, Michal Suchanek wrote: > The 'retlen' points to a variable representing the number of data bytes > written/read (see include/linux/mtd/mtd.h) by the current invocation of > the function. This variable must be set, not incremented. > > v2: clearer commit

  1   2   3   4   5   6   7   8   9   10   >