Re: Preemptable Ticket Spinlock

2013-04-21 Thread Raghavendra K T
On 04/22/2013 04:37 AM, Jiannan Ouyang wrote: On Sun, Apr 21, 2013 at 5:12 PM, Rik van Riel wrote: Your algorithm is very clever, and very promising. However, it does increase the size of the struct spinlock, and adds an additional atomic operation to spin_unlock, neither of which I suspect

linux-next: manual merge of the ftrace tree with Linus' tree

2013-04-21 Thread Stephen Rothwell
Hi Steven, Today's linux-next merge of the ftrace tree got a conflict in kernel/trace/ftrace.c between commit b67bfe0d42ca ("hlist: drop the node parameter from iterators") from Linus' tree and commit f1943977e664 ("tracing: Get rid of unneeded key calculation in ftrace_hash_move()") and

Re: Preemptable Ticket Spinlock

2013-04-21 Thread Raghavendra K T
On 04/21/2013 03:42 AM, Jiannan Ouyang wrote: Hello Everyone, I recently came up with a spinlock algorithm that can adapt to preemption, which you may be interested in. It is overall a great and clever idea as Rik mentioned already. The intuition is to downgrade a fair lock to an unfair

Re: [PATCH 4/6] arm: mach-omap2: remove "OMAP_DEVICE_NO_IDLE_ON_SUSPEND" check

2013-04-21 Thread Sourav Poddar
Hi Kevin, On Friday 19 April 2013 08:22 PM, Kevin Hilman wrote: Sourav Poddar writes: [...] Yes, got your point. omap_device_idle should not be called only for console uart. Just did a quick testing by including the following hunk on top of my patch series.. diff --git

[PATCH 2/2] smp: remove 'priv' of call_single_data

2013-04-21 Thread liguang
the 'priv' field seems a little redundant, because we can pass data via 'info'. Signed-off-by: liguang --- include/linux/smp.h |1 - kernel/softirq.c|6 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/linux/smp.h b/include/linux/smp.h index

[PATCH 1/2] smp: use '|=' for csd_lock

2013-04-21 Thread liguang
originally, 'data->flags = CSD_FLAG_LOCK', and we use 'data->flags &= ~CSD_FLAG_LOCK' for csd_unlock, they are not symmetrix operations so use '|=' instead of '='. though, now data->flags only hold CSD_FLAG_LOCK, it's not so meaningful to use '|=' to set 1 bit, and '&= ~' to clear 1 bit.

Re: [RFC PATCH v3 5/6] sched: pack the idle load balance

2013-04-21 Thread Preeti U Murthy
Hi Vincent, On 04/05/2013 04:38 PM, Vincent Guittot wrote: > Peter, > > After some toughts about your comments,I can update the buddy cpu > during ILB or periofdic LB to a new idle core and extend the packing > mechanism Does this additional mechanism sound better for you ? If the primary goal

[PATCH 1/3 v2] iommu: Move swap_pci_ref function to pci.h.

2013-04-21 Thread Varun Sethi
swap_pci_ref function is used by the IOMMU API code for swapping pci device pointers, while determining the iommu group for the device. Currently this function was being implemented for different IOMMU drivers. This patch moves the function to a new file, drivers/iommu/pci.h so that the

[PATCH 2/3 v13] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-04-21 Thread Varun Sethi
Added the following domain attributes for the FSL PAMU driver: 1. Added new iommu stash attribute, which allows setting of the LIODN specific stash id parameter through IOMMU API. 2. Added an attribute for enabling/disabling DMA to a particular memory window. 3. Added domain attribute to

Re: [PATCH RFC] media: videobuf2: fix the length check for mmap

2013-04-21 Thread Prabhakar Lad
On Fri, Apr 19, 2013 at 4:48 PM, Mauro Carvalho Chehab wrote: > Em Fri, 19 Apr 2013 15:16:56 +0530 > Prabhakar lad escreveu: > >> From: Lad, Prabhakar >> >> From commit 068a0df76023926af958a336a78bef60468d2033 >> "[media] media: vb2: add length check for mmap" >> patch verifies that the mmap()

Re: [PATCH 1/1] intel-iommu: Disable DMA Remapping when intel_iommu=off

2013-04-21 Thread Takao Indoh
(2013/04/20 15:58), Wei Hu wrote: > On a VT-d capable machine Linux will enable IOMMU by default. If it > then kexec's a second kernel with intel_iommu=off, this second kernel > will leave the DMA remapping engine on with no code handling it. The > symptom is at least USB and SATA drives stop

Re: [PATCH] sched: wake-affine throttle

2013-04-21 Thread Mike Galbraith
On Mon, 2013-04-22 at 12:21 +0800, Michael Wang wrote: > On 04/10/2013 11:30 AM, Michael Wang wrote: > > Log since RFC: > > 1. Throttle only when wake-affine failed. (thanks to PeterZ) > > 2. Do throttle inside wake_affine(). (thanks to PeterZ) > > 3. Other small fix. > > > >

[RFC/PATCH 4/4] s390: Provide default implementation for dma_{alloc,free}_attrs

2013-04-21 Thread Damian Hobson-Garcia
Most architectures that define CONFIG_HAVE_DMA, have implementations for both dma_alloc_attrs() and dma_free_attrs(). All achitectures that do not define CONFIG_HAVE_DMA also have both of these definitions provided by dma-mapping-broken.h. Add default implementations for these functions on s390.

[RFC/PATCH 3/4] parisc: Provide default implementation for dma_{alloc,free}_attrs

2013-04-21 Thread Damian Hobson-Garcia
Most architectures that define CONFIG_HAVE_DMA, have implementations for both dma_alloc_attrs() and dma_free_attrs(). All achitectures that do not define CONFIG_HAVE_DMA also have both of these definitions provided by dma-mapping-broken.h. Add default implementations for these functions on

[RFC/PATCH 2/4] c6x: Provide default implementation for dma_{alloc,free}_attrs

2013-04-21 Thread Damian Hobson-Garcia
Most architectures that define CONFIG_HAVE_DMA, have implementations for both dma_alloc_attrs() and dma_free_attrs(). All achitectures that do not define CONFIG_HAVE_DMA also have both of these definitions provided by dma-mapping-broken.h. Add default implementations for these functions on c6x.

[RFC/PATCH 1/4] arm64: Provide default implementation for dma_{alloc,free}_attrs

2013-04-21 Thread Damian Hobson-Garcia
Most architectures that define CONFIG_HAVE_DMA, have implementations for both dma_alloc_attrs() and dma_free_attrs(). All achitectures that do not define CONFIG_HAVE_DMA also have both of these definitions provided by dma-mapping-broken.h. Add default implementations for these functions on

[PATCH] ARM64: kernel: compiling issue, define cmpxchg64 and cmpxchg64_local for outside using.

2013-04-21 Thread Chen Gang
drivers use cmpxchg64, cmpxchg64_local ... to perform 64-bit operation, so they can cross 32-bit and 64-bit platforms (it is a standard way). Signed-off-by: Chen Gang --- arch/arm64/include/asm/cmpxchg.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git

Re: [Suggestion] ARM64: kernel: compiling issue, need implement cmpxchg64 with assembler language.

2013-04-21 Thread Chen Gang
On 2013年04月20日 15:32, Arnd Bergmann wrote: > On Saturday 20 April 2013 10:28:55 Chen Gang wrote: >> >> ---patch >> begin-- >> >> diff --git a/arch/arm64/include/asm/cmpxchg.h >> b/arch/arm64/include/asm/cmpxchg.h >> index

[RFC/PATCH 0/4] dma-mapping: Define dma_{alloc,free}_attrs() for all archs

2013-04-21 Thread Damian Hobson-Garcia
Most architectures that define CONFIG_HAVE_DMA=y, have implementations for both dma_alloc_attrs() and dma_free_attrs(). All achitectures that do not define CONFIG_HAVE_DMA also have both of these definitions provided by dma-mapping-broken.h. Provide a default definition for the archs that define

Re: [PATCH 0/3] Add boot_enable attribute to eMMC device for boot mode operation selection

2013-04-21 Thread Namjae Jeon
2013/4/19, Neil Armstrong : > Since eMMC 4.3 a special boot mode operation was introduced to retrieve > data from the eMMC device with a very simple procedure. Since the Linux > kernel exports these device boot partitions, it may be useful to select > the boot partition from the user space. > >

Re: [PATCH v3] X.509: Support parse long form of length octets in Authority Key Identifier

2013-04-21 Thread joeyli
於 一,2013-04-22 於 11:37 +0930,Rusty Russell 提到: > "Lee, Chun-Yi" writes: > > From: Chun-Yi Lee > > > > Per X.509 spec in 4.2.1.1 section, the structure of Authority Key > > Identifier Extension is: > > > >AuthorityKeyIdentifier ::= SEQUENCE { > > keyIdentifier [0]

Re: [PATCH] sched: wake-affine throttle

2013-04-21 Thread Michael Wang
On 04/10/2013 11:30 AM, Michael Wang wrote: > Log since RFC: > 1. Throttle only when wake-affine failed. (thanks to PeterZ) > 2. Do throttle inside wake_affine(). (thanks to PeterZ) > 3. Other small fix. > > Recently testing show that wake-affine stuff cause regression on

Re: [PATCH v3] X.509: Support parse long form of length octets in Authority Key Identifier

2013-04-21 Thread Rusty Russell
"Lee, Chun-Yi" writes: > From: Chun-Yi Lee > > Per X.509 spec in 4.2.1.1 section, the structure of Authority Key > Identifier Extension is: > >AuthorityKeyIdentifier ::= SEQUENCE { > keyIdentifier [0] KeyIdentifier OPTIONAL, > authorityCertIssuer [1]

Re: [PATCH 66/72] mtdchar: fix offset overflow detection

2013-04-21 Thread Ben Hutchings
On Thu, 2013-04-18 at 10:16 +0100, Luis Henriques wrote: > 3.5.7.11 -stable review patch. If anyone has any objections, please let me > know. > > -- > > From: Linus Torvalds > > commit 9c603e53d380459fb62fec7cd085acb0b74ac18f upstream. [...] There are further problems with

Re: [PATCH 35/72] KVM: x86: Convert MSR_KVM_SYSTEM_TIME to use gfn_to_hva_cache functions (CVE-2013-1797)

2013-04-21 Thread Ben Hutchings
On Thu, 2013-04-18 at 10:16 +0100, Luis Henriques wrote: > 3.5.7.11 -stable review patch. If anyone has any objections, please let me > know. > > -- > > From: Andy Honig > > commit 0b79459b482e85cb7426aa7da683a9f2c97aeae1 upstream. > > There is a potential use after free

Re: [PATCH] ext4: fix a big-endian bug when an extent is zeroed out

2013-04-21 Thread CAI Qian
Hi Ted, - Original Message - > From: "Theodore Ts'o" > To: "CAI Qian" > Cc: "Eric Whitney" , "Dmitry Monakhov" > , "Christian Kujau" > nerdbynature.de>, "LKML" , "linux-s390" > , "Steve > Best" , linux-e...@vger.kernel.org > Sent: Saturday, April 20, 2013 11:19:45 PM > Subject: Re:

Re: [PATCH 2/2] f2fs: add REQ_META about metadata requests for submit bio

2013-04-21 Thread Namjae Jeon
2013/4/22, Jaegeuk Kim : > 2013-04-20 (토), 01:27 +0900, Namjae Jeon: >> From: Namjae Jeon >> >> Adding REQ_META for all the metadata requests can help in improving the >> FS performance, if the underlying device supports TAGGING. >> So, when considering the submit_bio path for all the f2fs

linux-next: build failure after merge of the net-next tree

2013-04-21 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: drivers/net/ethernet/ibm/ehea/ehea_main.c: In function 'ehea_proc_rwqes': drivers/net/ethernet/ibm/ehea/ehea_main.c:728:5: error: too few arguments to function '__vlan_hwaccel_put_tag'

Re: [PATCH v2 06/15] powerpc/85xx: add support to JOG feature using cpufreq interface

2013-04-21 Thread Viresh Kumar
On Fri, Apr 19, 2013 at 4:17 PM, Zhao Chenhui wrote: > diff --git a/drivers/cpufreq/mpc85xx-cpufreq.c > b/drivers/cpufreq/mpc85xx-cpufreq.c > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include Would be better to keep them in alphabetical

Re: OOM-killer and strange RSS value in 3.9-rc7

2013-04-21 Thread Han Pingtian
On Sun, Apr 21, 2013 at 02:49:31AM +0200, Jiri Kosina wrote: > On Wed, 17 Apr 2013, Han Pingtian wrote: > > > > > On a power7 system, we have installed 3.9-rc7 and crash 6.1.6. If I run > > > > something like "make -j 64" to compile linux kernel from source, sooner > > > > or latter, oom-killer

Re: linux-next: Tree for Apr 9 [cpufreq: NULL pointer deref]

2013-04-21 Thread Viresh Kumar
On 22 April 2013 05:00, Rafael J. Wysocki wrote: > Applied to linux-pm.git/linux-next, although please check the result, because > the patchwork version of the patch wasn't quite applicable and I fixed it up > manually. Yes it looks fine and that's why i have attached the patch with my email

RE: [PATCHv5 00/11] Remove ARM local timer API

2013-04-21 Thread Barry Song
> -Original Message- > From: Stephen Boyd [mailto:sb...@codeaurora.org] > Sent: Saturday, April 20, 2013 12:20 AM > To: linux-arm-ker...@lists.infradead.org > Cc: linux-kernel@vger.kernel.org; linux-arm-...@vger.kernel.org; Mark > Rutland; Marc Zyngier; Kukjin Kim; Barry Song; Daniel

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-21 Thread Anup Patel
On 22 April 2013 06:51, Rusty Russell wrote: > > Pranavkumar Sawargaonkar writes: > > On 18 April 2013 12:21, Rusty Russell wrote: > >> > >> PranavkumarSawargaonkar writes: > >> > From: Pranavkumar Sawargaonkar > >> > > >> > This patch implements early printk support for virtio-mmio console >

linux-next: manual merge of the net-next tree with Linus' tree

2013-04-21 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in include/net/scm.h between commit 83f1b4ba917d ("net: fix incorrect credentials passing") from Linus' tree and commit 6b0ee8c036ec ("scm: Stop passing struct cred") from the net-next tree. I fixed it up (see below) and can

linux-next: manual merge of the net-next tree with Linus' tree

2013-04-21 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in net/ipv4/tcp_input.c between commit 12fb3dd9dc3c ("tcp: call tcp_replace_ts_recent() from tcp_ack()") from Linus' tree and commit 9b717a8d2450 ("tcp: TLP loss detection") from the net-next tree. I fixed it up (see below) and

PCB Solid Carbide Drills and Routers from China

2013-04-21 Thread Archer
Dear Manager, We are a professional producer of tungsten carbide cutters. Our products include standard solid PCB drills (dia 3.20mm-6.50mm) and special PCB drills with chip-removal groove and reground chisel edge (dia 1.5mm-6.5mm). By adopting a world famous brand of micro-grain tungsten

Re: [PATCH v3 00/15] KVM: MMU: fast zap all shadow pages

2013-04-21 Thread Xiao Guangrong
On 04/21/2013 11:24 PM, Marcelo Tosatti wrote: > On Sun, Apr 21, 2013 at 10:09:29PM +0800, Xiao Guangrong wrote: >> On 04/21/2013 09:03 PM, Gleb Natapov wrote: >>> On Tue, Apr 16, 2013 at 02:32:38PM +0800, Xiao Guangrong wrote: This patchset is based on my previous two patchset: [PATCH

Re: [PATCH 2/2] f2fs: add REQ_META about metadata requests for submit bio

2013-04-21 Thread Jaegeuk Kim
2013-04-20 (토), 01:27 +0900, Namjae Jeon: > From: Namjae Jeon > > Adding REQ_META for all the metadata requests can help in improving the > FS performance, if the underlying device supports TAGGING. > So, when considering the submit_bio path for all the f2fs requests. We can > add REQ_META for

Re: [PATCH V3 1/5] powerpc, perf: Add new BHRB related instructions for POWER8

2013-04-21 Thread Michael Neuling
Michael Ellerman wrote: > On Mon, Apr 22, 2013 at 11:13:43AM +1000, Michael Neuling wrote: > > Michael Ellerman wrote: > > > > > On Thu, Apr 18, 2013 at 05:56:12PM +0530, Anshuman Khandual wrote: > > > > This patch adds new POWER8 instruction encoding for reading > > > > the BHRB buffer

linux-next: manual merge of the net-next tree with Linus' tree

2013-04-21 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in drivers/net/ethernet/intel/igb/igb_main.c between commit f9d40f6a9921 ("igb: Revert support for build_skb in igb") from Linus' tree and commit b980ac18c95f ("igb: Fix code comments and whitespace") from the net-next tree. I

Re: [PATCH V3 1/5] powerpc, perf: Add new BHRB related instructions for POWER8

2013-04-21 Thread Michael Ellerman
On Mon, Apr 22, 2013 at 11:13:43AM +1000, Michael Neuling wrote: > Michael Ellerman wrote: > > > On Thu, Apr 18, 2013 at 05:56:12PM +0530, Anshuman Khandual wrote: > > > This patch adds new POWER8 instruction encoding for reading > > > the BHRB buffer entries and also clearing it. Encoding for >

linux-next: manual merge of the net-next tree with Linus' tree

2013-04-21 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in drivers/net/ethernet/emulex/benet/be_main.c between commit f11a869d4e38 ("be2net: take care of __vlan_put_tag return value") from Linus' tree and commit 86a9bad3ab6b ("net: vlan: add protocol argument to packet tagging

Re: [PATCH 00/30] thermal: cpu_cooling: code improvements

2013-04-21 Thread amit daniel kachhap
Hi Eduardo, I looked at your whole series and they certainly looks useful, so for the entire series, Acked-by: Amit Daniel Kachhap Thanks, Amit Daniel Kachhap On Thu, Apr 18, 2013 at 2:02 AM, Eduardo Valentin wrote: > On 17-04-2013 13:11, Eduardo Valentin wrote: >> >> Rui, > > > > Looks like

Re: [NEW DRIVER V6 6/7] drivers/hwmon: DA9058 HWMON driver

2013-04-21 Thread Guenter Roeck
On Mon, Apr 22, 2013 at 01:14:26AM +, Opensource [Anthony Olech] wrote: > > -Original Message- > > From: Guenter Roeck [mailto:li...@roeck-us.net] > > Sent: 20 April 2013 18:35 > > To: Lars-Peter Clausen > > Cc: Opensource [Anthony Olech]; Jean Delvare; Mark Brown; Randy Dunlap; > >

RE: [RESEND][PATCH] ARM: PL011: add support for extended FIFO-size of PL011-r1p5

2013-04-21 Thread Jongsung Kim
Thank you for your comments, Russell. I'll happily apply your recommendation just after it come up to the merge window. Or, do you want me to send it by now? -Original Message- From: Russell King - ARM Linux [mailto:li...@arm.linux.org.uk] Sent: Friday, April 19, 2013 11:18 PM To:

Re: [PATCH 03/30] thermal: cpu_cooling: fix kernel_doc for cpufreq_cooling_device

2013-04-21 Thread amit kachhap
On Wed, Apr 17, 2013 at 10:41 PM, Eduardo Valentin wrote: > Simple fixes for making kernel_doc happy about > struct cpufreq_cooling_device. Includes also a minor > spelling fix. > > Cc: Zhang Rui > Cc: linux...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Eduardo Valentin

Re: [PATCH 01/30] thermal: cpu_cooling: remove unused headers

2013-04-21 Thread amit daniel kachhap
Hi, On Wed, Apr 17, 2013 at 10:41 PM, Eduardo Valentin wrote: > As this code is not a module nor a platform device driver, > this patch removes some unused header files. > > Cc: Zhang Rui > Cc: linux...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Eduardo Valentin

[PATCH 1/5] ibmebus: convert of_platform_driver to platform_driver

2013-04-21 Thread Rob Herring
From: Rob Herring ibmebus is the last remaining user of of_platform_driver and the conversion to a regular platform driver is trivial. Signed-off-by: Rob Herring Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Hoang-Nam Nguyen Cc: Christoph Raisch Cc: Roland Dreier Cc: Sean Hefty Cc:

[PATCH 3/5] of: remove of_platform_driver

2013-04-21 Thread Rob Herring
From: Rob Herring The last user of of_platform_driver is converted to a regular platform_driver, so of_platform_driver can be removed now. Signed-off-by: Rob Herring Cc: Grant Likely --- include/linux/of_platform.h | 21 - 1 file changed, 21 deletions(-) diff --git

[PATCH 2/5] driver core: move to_platform_driver to platform_device.h

2013-04-21 Thread Rob Herring
From: Rob Herring In converting the last remaining of_platform_driver (ibmebus) to a regular platform driver, to_platform_driver is needed to replace to_of_platform_driver. Signed-off-by: Rob Herring Cc: Greg Kroah-Hartman Cc: Grant Likely --- drivers/base/platform.c |3 ---

[PATCH 0/5] of_platform_driver and OF_DEVICE removal

2013-04-21 Thread Rob Herring
From: Rob Herring This series is a relatively straight-forward removal of the last remaining user of of_platform_driver (ibmebus) and removal of CONFIG_OF_DEVICE which is always enabled when CONFIG_OF is enabled. Compile tested on powerpc and sparc. Rob Rob Herring (5): ibmebus: convert

[PATCH 4/5] usb: chipidea: depend on CONFIG_OF instead of CONFIG_OF_DEVICE

2013-04-21 Thread Rob Herring
From: Rob Herring CONFIG_OF_DEVICE is going away, so use CONFIG_OF instead. It does not appear that CONFIG_OF_DEVICE was the correct dependency either. Signed-off-by: Rob Herring Cc: Alexander Shishkin Cc: Greg Kroah-Hartman Cc: Grant Likely Cc: linux-...@vger.kernel.org ---

[PATCH 5/5] of: remove CONFIG_OF_DEVICE

2013-04-21 Thread Rob Herring
From: Rob Herring CONFIG_OF_DEVICE is always selected when CONFIG_OF is enabled, so remove it and simplify of_platform.h and of_device.h headers. This also fixes !OF compiles using of_platform_populate. Signed-off-by: Rob Herring Cc: Grant Likely --- drivers/of/Kconfig |3 ---

Re: [PATCH v9 00/12] Driver for Si476x series of chips

2013-04-21 Thread Andrey Smirnov
On Sun, Apr 21, 2013 at 2:33 AM, Mauro Carvalho Chehab wrote: > Em 21-04-2013 02:53, Andrey Smirnov escreveu: > >>> I applied all the MFD patches from this patchset (All 4 first ones), plus >>> a >>> follow up one for fixing the i2c related warning. >>> I also squashed the REGMAP_I2C dependency

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-21 Thread Rusty Russell
Pranavkumar Sawargaonkar writes: > On 18 April 2013 12:21, Rusty Russell wrote: >> >> PranavkumarSawargaonkar writes: >> > From: Pranavkumar Sawargaonkar >> > >> > This patch implements early printk support for virtio-mmio console devices >> > without using any hypercalls. >> >> This makes

Re: [ 10/11] mtdchar: fix offset overflow detection

2013-04-21 Thread Ben Hutchings
On Mon, 2013-04-15 at 21:55 +0100, David Woodhouse wrote: > On Sun, 2013-04-14 at 19:17 -0700, Greg Kroah-Hartman wrote: > > 3.0-stable review patch. If anyone has any objections, please let me know. > > Please use f5cf8f07423b2677cebebcebc863af77223a4972 instead (for 3.4 > too). I've queued

Re: [PATCH 2/2] dma:of: Use a mutex to protect the of_dma_list

2013-04-21 Thread Jon Hunter
On 04/19/2013 06:13 PM, Arnd Bergmann wrote: > On Saturday 20 April 2013, Jon Hunter wrote: >> Change also means that of_dma_request_slave_channel() cannot be called >> from a context where it is not possible to sleep too, right? May be >> worth mentioning this in the changelog as well. > > You

Re: [PATCH 2/2] dma:of: Use a mutex to protect the of_dma_list

2013-04-21 Thread Jon Hunter
On 04/20/2013 05:38 AM, Arnd Bergmann wrote: > On Saturday 20 April 2013, Lars-Peter Clausen wrote: >> On 04/20/2013 12:45 AM, Jon Hunter wrote: >>> I think that there is a problem here. For controllers using the >>> of_dma_simple_xlate(), this will call dma_request_channel() which also >>> uses

RE: [NEW DRIVER V6 6/7] drivers/hwmon: DA9058 HWMON driver

2013-04-21 Thread Opensource [Anthony Olech]
> -Original Message- > From: Guenter Roeck [mailto:li...@roeck-us.net] > Sent: 20 April 2013 18:35 > To: Lars-Peter Clausen > Cc: Opensource [Anthony Olech]; Jean Delvare; Mark Brown; Randy Dunlap; > lm-sens...@lm-sensors.org; LKML; David Dajun Chen > Subject: Re: [NEW DRIVER V6 6/7]

Re: [PATCH V3 1/5] powerpc, perf: Add new BHRB related instructions for POWER8

2013-04-21 Thread Michael Neuling
Michael Ellerman wrote: > On Thu, Apr 18, 2013 at 05:56:12PM +0530, Anshuman Khandual wrote: > > This patch adds new POWER8 instruction encoding for reading > > the BHRB buffer entries and also clearing it. Encoding for > > "clrbhrb" instruction is straight forward. > > Which is "clear branch

Re: [PATCH 1/3] Tools: hv: fix warnings in hv_vss_daemon

2013-04-21 Thread Greg KH
On Sun, Apr 21, 2013 at 10:32:45PM +, KY Srinivasan wrote: > > > -Original Message- > > From: Greg KH [mailto:gre...@linuxfoundation.org] > > Sent: Friday, April 19, 2013 7:24 PM > > To: Olaf Hering > > Cc: KY Srinivasan; linux-kernel@vger.kernel.org > > Subject: Re: [PATCH 1/3]

[PATCH V1] fs/buffer.c: Remove unnecessary init operation after, allocating buffer_head.

2013-04-21 Thread majianpeng
Because alloc 'struct buffer_head' using kmem_cache_zalloc,so it doesn't need to call 'init_buffer(bh, NULL, NULL)' and other set-zero-operation. Signed-off-by: Jianpeng Ma --- fs/buffer.c | 2 -- fs/jbd/journal.c | 2 -- fs/jbd2/journal.c | 2 -- 3 files changed, 6 deletions(-) diff

Re: [PATCH 3.8.y] drm/i915: add quirk to invert brightness on eMachines e725

2013-04-21 Thread Ben Hutchings
On Wed, 2013-04-10 at 12:37 +0300, Jani Nikula wrote: > On Wed, 10 Apr 2013, Ben Hutchings wrote: > > I cherry-picked the following series for Debian: > > > > [pre-3.8] > > 7bd90909bbf9 drm/i915: panel: invert brightness via parameter > > 4dca20efb1a9 drm/i915: panel: invert brightness via quirk

Re: [PATCH] fs/buffer.c: Remove the unnecessary init operation after allocating buffer_head.

2013-04-21 Thread majianpeng
On 04/19/2013 10:48 PM, Jan Kara wrote: > On Fri 19-04-13 10:29:36, majianpeng wrote: >> Because alloc struct buffer_head using kmem_cache_zalloc,so it's not need to >> call 'init_buffer(bh, NULL, NULL)'. >> >> Signed-off-by: Jianpeng Ma >> --- >> fs/buffer.c | 2 -- >> fs/jbd/journal.c |

Re: [PATCH 3.8-stable] thermal: return an error on failure to register thermal

2013-04-21 Thread Ben Hutchings
On Wed, 2013-04-03 at 15:47 +0100, Luis Henriques wrote: > On Wed, Apr 03, 2013 at 09:38:55AM +0900, Jonghwan Choi wrote: > > 3.8-stable review patch. If anyone has any objections, please let me know. > > I believe this is applicable to all the other stable kernels. Queued up for 3.2, thanks.

RE: [PATCH v2] NMI: fix NMI period is not correct when cpu frequency changes issue.

2013-04-21 Thread Pan, Zhenjie
> I believe it mattered to the Chrome folks. They want the watchdog to be as > tight as possible so the user experience isn't a hang but a quick reboot > instead. They like setting the watchdog to something like 2 seconds. > > There was a patch a few months ago that tried to hack around this

Re: Crypto Fixes for 3.9

2013-04-21 Thread Herbert Xu
Hi Linus: This push fixes a kernel memory leak in the algif interface. Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git or master.kernel.org:/pub/scm/linux/kernel/git/herbert/crypto-2.6.git Mathias Krause (1): crypto: algif - suppress sending

Re: [PATCH v3 00/15] KVM: MMU: fast zap all shadow pages

2013-04-21 Thread Marcelo Tosatti
On Sun, Apr 21, 2013 at 04:03:46PM +0300, Gleb Natapov wrote: > On Tue, Apr 16, 2013 at 02:32:38PM +0800, Xiao Guangrong wrote: > > This patchset is based on my previous two patchset: > > [PATCH 0/2] KVM: x86: avoid potential soft lockup and unneeded mmu reload > >

Re: [PATCH v3 00/15] KVM: MMU: fast zap all shadow pages

2013-04-21 Thread Marcelo Tosatti
On Sun, Apr 21, 2013 at 10:09:29PM +0800, Xiao Guangrong wrote: > On 04/21/2013 09:03 PM, Gleb Natapov wrote: > > On Tue, Apr 16, 2013 at 02:32:38PM +0800, Xiao Guangrong wrote: > >> This patchset is based on my previous two patchset: > >> [PATCH 0/2] KVM: x86: avoid potential soft lockup and

Re: [PATCH v3 00/15] KVM: MMU: fast zap all shadow pages

2013-04-21 Thread Marcelo Tosatti
On Sun, Apr 21, 2013 at 12:27:51PM -0300, Marcelo Tosatti wrote: > On Sun, Apr 21, 2013 at 04:03:46PM +0300, Gleb Natapov wrote: > > On Tue, Apr 16, 2013 at 02:32:38PM +0800, Xiao Guangrong wrote: > > > This patchset is based on my previous two patchset: > > > [PATCH 0/2] KVM: x86: avoid potential

Re: [PATCH V3 1/5] powerpc, perf: Add new BHRB related instructions for POWER8

2013-04-21 Thread Michael Ellerman
On Thu, Apr 18, 2013 at 05:56:12PM +0530, Anshuman Khandual wrote: > This patch adds new POWER8 instruction encoding for reading > the BHRB buffer entries and also clearing it. Encoding for > "clrbhrb" instruction is straight forward. Which is "clear branch history rolling buffer" ? > But

Re: [PATCH 1/2] cpufreq: ARM big LITTLE: put DT nodes after using them

2013-04-21 Thread Rafael J. Wysocki
On Monday, April 15, 2013 12:35:24 PM Viresh Kumar wrote: > DT nodes should be put using of_node_put() to balance their usage counts. This > is not done properly in ARM's big LITTLE driver. Fix it. > > Signed-off-by: Viresh Kumar > --- > Hi Rafael, > > These are fixes for 3.10 Both applied.

Re: [PATCH] cpufreq: cpu0: Put cpu parent node after using it

2013-04-21 Thread Rafael J. Wysocki
On Tuesday, April 16, 2013 04:40:15 PM Shawn Guo wrote: > On Mon, Apr 15, 2013 at 12:39:37PM +0530, Viresh Kumar wrote: > > Parent node must be put after using it to balance its usage count. This was > > missing in cpufreq-cpu0 driver. Fix it. > > > > Signed-off-by: Viresh Kumar > > Acked-by:

Re: [PATCH] cpufreq: exynos5440: Protect opp search calls with rcu lock

2013-04-21 Thread Rafael J. Wysocki
On Monday, April 15, 2013 11:54:47 AM Amit Daniel Kachhap wrote: > As per the OPP library documentation(Documentation/power/opp.txt) all > opp find/get calls should be protected by rcu locks. > > Signed-off-by: Amit Daniel Kachhap > --- > > This patch is created against linux-next tree and is

Re: linux-next: Tree for Apr 9 [cpufreq: NULL pointer deref]

2013-04-21 Thread Rafael J. Wysocki
On Monday, April 15, 2013 10:52:28 PM Viresh Kumar wrote: > On 15 April 2013 21:37, Dirk Brandewie wrote: > > If the intel_pstate driver is being used __cpufreq_governor() should NOT be > > called intel_pstate does not implement the target() callback. > > > > Nathan's commit 5800043b2 changed the

Re: [PATCH] [media] uvcvideo: quirk PROBE_DEF for Dell Studio / OmniVision webcam

2013-04-21 Thread Laurent Pinchart
Hi Kamal, On Wednesday 17 April 2013 09:38:43 Kamal Mostafa wrote: > On Wed, 2013-04-17 at 01:05 +0200, Laurent Pinchart wrote: > > Hi Kamal, > > > > On Monday 15 April 2013 12:01:51 Kamal Mostafa wrote: > > > BugLink: https://bugs.launchpad.net/bugs/1168430 > > > > > > OminiVision webcam

Re: Preemptable Ticket Spinlock

2013-04-21 Thread Jiannan Ouyang
On Sun, Apr 21, 2013 at 5:12 PM, Rik van Riel wrote: > Your algorithm is very clever, and very promising. > > However, it does increase the size of the struct spinlock, and adds > an additional atomic operation to spin_unlock, neither of which I > suspect are necessary. > > If we always

Re: [PATCH] x86: Fix AMD K6 indirect call check v2

2013-04-21 Thread Borislav Petkov
On Sun, Apr 21, 2013 at 03:35:41PM -0700, H. Peter Anvin wrote: > Looks like it is just trying to sense the bug... but then it doesn't > actually do anything about it. At least it should taint the kernel. Yeah, I was thinking of asking my old contacts about it but it is simply not worth it. Those

Re: [PATCH RFC] media: videobuf2: fix the length check for mmap

2013-04-21 Thread Laurent Pinchart
Hi Mauro, On Friday 19 April 2013 08:18:01 Mauro Carvalho Chehab wrote: > Em Fri, 19 Apr 2013 15:16:56 +0530 Prabhakar lad escreveu: > > From: Lad, Prabhakar > > > > From commit 068a0df76023926af958a336a78bef60468d2033 > > "[media] media: vb2: add length check for mmap" > > patch verifies that

Re: mdadm raid1 regression

2013-04-21 Thread NeilBrown
On Thu, 18 Apr 2013 14:38:53 +0400 Vasiliy Tolstov wrote: > Hello. I'm using linux 3.8.6 and mdadm 3.2.6 (from git). > I have many raid1 arrays that have data offset 2048 (metadata 1.2, > created with various mdadm versions but mostly 3.2.1 on linux 2.6.32). > If i create raid1 with never mdadm

Re: [PATCH] x86: Fix AMD K6 indirect call check v2

2013-04-21 Thread H. Peter Anvin
On 04/21/2013 10:44 AM, Borislav Petkov wrote: > > But I have hard time understanding what that test with the 10^6 loop > iterations is supposed to achieve. And what makes sure that the RDTSCs > don't get reordered? Or maybe K6 wasn't reordering that aggressively... > > Erratum says

RE: [PATCH 1/3] Tools: hv: fix warnings in hv_vss_daemon

2013-04-21 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Friday, April 19, 2013 7:24 PM > To: Olaf Hering > Cc: KY Srinivasan; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 1/3] Tools: hv: fix warnings in hv_vss_daemon > > On Tue, Mar 26, 2013 at 04:28:27PM

Re: irq 16: nobody cared

2013-04-21 Thread Borislav Petkov
On Sun, Apr 21, 2013 at 03:00:15PM -0700, Paul E. McKenney wrote: > Cool!!! Note that there is no need for expediting TINY_RCU because > its grace periods are already maximally expedited. There is only one > CPU, so if you are following the rules, when you call synchronize_rcu(), > by definition

Re: irq 16: nobody cared

2013-04-21 Thread Paul E. McKenney
On Sun, Apr 21, 2013 at 11:42:41PM +0200, Borislav Petkov wrote: > On Sun, Apr 21, 2013 at 10:51:39PM +0200, Borislav Petkov wrote: > > A similar oneliner at the end of the resume path. > > > > Maybe have rcu suspend/resume callbacks where you can do this stuff > > and maybe more in the future. >

Linux 3.9-rc8

2013-04-21 Thread Linus Torvalds
Yes, I was really hoping (and originally planning) to release 3.9 final this weekend, but we had enough issues that I just didn't feel comfy about it. It was borderline, and none of the issues were huge, and maybe I could have called this just 3.9 and opened the merge window, but hey, another week

Re: [PATCH 26/28] proc: Supply a function to remove a proc entry by PDE [RFC]

2013-04-21 Thread Rafael J. Wysocki
On Tuesday, April 16, 2013 07:27:34 PM David Howells wrote: > Supply a function (proc_remove()) to remove a proc entry (and any subtree > rooted there) by proc_dir_entry pointer rather than by name and (optionally) > root dir entry pointer. This allows us to eliminate all remaining pde->name >

Re: 3.6.11 AMD-Vi: Completion-Wait loop timed out

2013-04-21 Thread Borislav Petkov
On Sun, Apr 21, 2013 at 01:03:16AM +, Jake wrote: > ACPI BIOS Bug: Warning: Optional FADT field Pm2CintrolBlock has no address or > length: 0x/0x1 (20121018/tbfadt-589) I have the same one: [0.00] ACPI BIOS Bug: Warning: Optional FADT field Pm2ControlBlock has zero

Re: irq 16: nobody cared

2013-04-21 Thread Borislav Petkov
On Sun, Apr 21, 2013 at 10:51:39PM +0200, Borislav Petkov wrote: > A similar oneliner at the end of the resume path. > > Maybe have rcu suspend/resume callbacks where you can do this stuff > and maybe more in the future. Ok, here's one - it is pretty straight-forward using that notifier

Re: Preemptable Ticket Spinlock

2013-04-21 Thread Rik van Riel
On 04/20/2013 06:12 PM, Jiannan Ouyang wrote: Hello Everyone, I recently came up with a spinlock algorithm that can adapt to preemption, which you may be interested in. The intuition is to downgrade a fair lock to an unfair lock automatically upon preemption, and preserve the fairness

Re: irq 16: nobody cared

2013-04-21 Thread Borislav Petkov
On Sun, Apr 21, 2013 at 01:34:47PM -0700, Paul E. McKenney wrote: > > No warning, no delay, 2 suspend/resume cycles back-to-back. So, a > > probable fix could be to force-enable the expedited grace periods during > > suspend...? > > Fix for the slowness, for sure! > > For the irq warning, it is

[PATCH 3/3 -v2] ext4: mark metadata blocks using bh flags

2013-04-21 Thread Theodore Ts'o
Whoops, here's the right version of the patch. >From 13fca323e9a8b63c08de7a4e05d3c702516b535d Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 21 Apr 2013 16:45:54 -0400 Subject: [PATCH 3/3] ext4: mark metadata blocks using bh flags This allows metadata writebacks which are issued via

Re: irq 16: nobody cared

2013-04-21 Thread Paul E. McKenney
On Sun, Apr 21, 2013 at 09:06:55PM +0200, Borislav Petkov wrote: > On Sun, Apr 21, 2013 at 11:56:09AM -0700, Paul E. McKenney wrote: > > CONFIG_RCU_FAST_NO_HZ will definitely change the timing, for example, > > increasing grace-period durations by up to a factor of four. > > > > One way to figure

Re: [PATCH 3/3] ext4: mark metadata blocks using bh flags

2013-04-21 Thread Theodore Ts'o
On Sun, Apr 21, 2013 at 08:09:14AM +0200, Jiri Slaby wrote: > On 04/21/2013 02:07 AM, Theodore Ts'o wrote: > > This allows metadata writebacks which are issued via block device > > writeback to be sent with the current write request flags. > > Hi, where do these come from? > fs/ext4/ext4_jbd2.c:

Re: [PATCH] x86: kaslr: move ELF relocation handling to C

2013-04-21 Thread Kees Cook
On Sun, Apr 21, 2013 at 2:13 AM, Ingo Molnar wrote: > > * Kees Cook wrote: > >> Moves the relocation handling into C, after decompression. Only >> kernels that need relocation support will use the code. The new >> CONFIG_RANDOMIZE_BASE does not yet do anything except turn on this logic >> for

Re: [PATCH documentation 2/2] kthread: Document ways of reducing OS jitter due to per-CPU kthreads

2013-04-21 Thread Borislav Petkov
On Tue, Apr 16, 2013 at 09:41:30AM -0700, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > The Linux kernel uses a number of per-CPU kthreads, any of which might > contribute to OS jitter at any time. The usual approach to normal > kthreads, namely to bind them to a "housekeeping" CPU,

Centos 6.3 (2.6.33) hwclock not defaulting to --directisa mode on select() timeout util-linux

2013-04-21 Thread Jeffrey Merkey
On the older P4 systems from HP, the util-linux hwclock is no longer defaulting to --directisa port setting mode if the select() timeout fails. It only shows up when you have an old PC with a battery that's screwed up on the motherboard and the clock doesn't stay up to date. But whether this is

Re: irq 16: nobody cared

2013-04-21 Thread Borislav Petkov
On Sun, Apr 21, 2013 at 11:56:09AM -0700, Paul E. McKenney wrote: > CONFIG_RCU_FAST_NO_HZ will definitely change the timing, for example, > increasing grace-period durations by up to a factor of four. > > One way to figure out if this is the problem would be to either (1) > apply the following

Re: [PATCH 3/3] Add Documentation for MMC boot_enable attribute

2013-04-21 Thread Rob Landley
On 04/19/2013 07:46:25 AM, Neil Armstrong wrote: Add documentation on the enable_boot sysfs attribute. Signed-off-by: Neil Armstrong --- Documentation/mmc/mmc-dev-parts.txt |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/Documentation/mmc/mmc-dev-parts.txt

Re: [PATCH] of: export of_get_next_parent

2013-04-21 Thread Sylwester Nawrocki
Hi, On 04/21/2013 02:11 PM, Ming Lei wrote: On Wed, Apr 10, 2013 at 5:47 PM, Ming Lei wrote: The function is called by at least three drivers now: pinctrl mfd/vexpress v4l2-core The 3rd one can be built as module, so export the function to avoid build failure.

Re: irq 16: nobody cared

2013-04-21 Thread Paul E. McKenney
On Sun, Apr 21, 2013 at 08:10:35PM +0200, Borislav Petkov wrote: > On Sun, Apr 21, 2013 at 06:56:54PM +0200, Borislav Petkov wrote: > > Ok, let me try to disable the soundcard in the BIOS. > > Ok, there's no warning message anymore but maybe a dozen of seconds > delay before the machine is

  1   2   3   4   >