Re: [PATCH] mfd: tps65010: remove incorrect __exit markups

2015-04-06 Thread Lee Jones
On Mon, 06 Apr 2015, Dmitry Torokhov wrote: > Hi Lee, > > On Mon, Mar 09, 2015 at 10:47:15AM -0700, Dmitry Torokhov wrote: > > Even if bus is not hot-pluggable, the devices can be unbound from the > > driver via sysfs, so we should not be using __exit annotations on > > remove() methods. The only

Re: [PATCH] mfd: Add support for CPLD chip on Mikrotik RB4xx boards

2015-04-06 Thread Lee Jones
On Mon, 06 Apr 2015, Bert Vermeulen wrote: > The SPI-connected CPLD chip controls access to the main NAND flash > chip and five LEDs. > > Signed-off-by: Bert Vermeulen > --- > arch/mips/include/asm/mach-ath79/rb4xx_cpld.h | 49 + > drivers/mfd/Kconfig | 7 + > d

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

2015-04-06 Thread Stephen Rothwell
Hi Mark, After merging the spi tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/spi/spi-fsl-dspi.c: In function 'dspi_setup': drivers/spi/spi-fsl-dspi.c:395:2: error: implicit declaration of function 'ns_delay_scale' [-Werror=implicit-function-declaration] ns_dela

RE: [PATCH v3 1/4] drm/layerscape: Add Freescale DCU DRM driver

2015-04-06 Thread jianwei.w...@freescale.com
Hi Stefan, Thank you for your review and testing on Vybrid F610 device. This driver just implement the basic functions and it only support the exported framebuffer access. Some DRM interfaces are not implemented now. So your test result is normal. I will implement these interfaces with patches

Re: Why not build kernel with -O3

2015-04-06 Thread Mike Galbraith
On Tue, 2015-04-07 at 11:37 +0800, Pengfei Yuan wrote: > Hi, > > I have conducted some experiments to compare kernels built with -O2 > and -O3. Here are the results: > > Application Performance O2 Performance O3 Improvement > Apache 127814.14 req/s 130321.24 req/s 1.96% > Nginx

Re: [PATCH v3 1/5] mfd: devicetree: bindings: Add Qualcomm RPM regulator subnodes

2015-04-06 Thread Lee Jones
On Mon, 06 Apr 2015, Bjorn Andersson wrote: > Add the regulator subnodes to the Qualcomm RPM MFD device tree bindings. > > Reviewed-by: Stephen Boyd > Signed-off-by: Bjorn Andersson > --- > > Changes since v2: > - s/notes/nodes from Stephen > > Documentation/devicetree/bindings/mfd/qcom-rpm.

Re: [PATCH v2] phy: core: Check requested PHY status in _of_phy_get()

2015-04-06 Thread Lee Jones
On Tue, 07 Apr 2015, Axel Lin wrote: > This is a common checking in various drivers, so move the checking to > _of_phy_get(). > > Signed-off-by: Axel Lin > --- > v2: Fixup the error patch. It needs to call module_put if Requested PHY is > disabled. > drivers/phy/phy-core.c | 12 +++

Re: [PATCH v2] x86: Revert E820_PRAM change in e820_end_pfn()

2015-04-06 Thread Boaz Harrosh
On 04/06/2015 10:00 PM, Toshi Kani wrote: > 'Commit ec776ef6bbe17 ("x86/mm: Add support for the non-standard > protected e820 type")' added E820_PRAM ranges, which do not have > have struct-page. Therefore, there is no need to update max_pfn > to cover the E820_PRAM ranges. But E820_PRAM ranges

[PATCH 1/3] clk: mmp: add fixed clock UBS_PLL for pxa910/pxa168

2015-04-06 Thread Chao Xie
From: Chao Xie USB will drive clock from USB_PLL. Signed-off-by: Chao Xie --- drivers/clk/mmp/clk-of-pxa168.c| 1 + drivers/clk/mmp/clk-of-pxa910.c| 1 + include/dt-bindings/clock/marvell,pxa168.h | 1 + include/dt-bindings/clock/marvell,pxa910.h | 1 + 4 files changed,

[PATCH 3/3] clk: mmp: add timer clock for pxa168/mmp2/pxa910

2015-04-06 Thread Chao Xie
From: Chao Xie Timer has external fast clock, and it is a mux clock. Add the timer clock type for timer driver. Signed-off-by: Chao Xie --- drivers/clk/mmp/clk-of-mmp2.c | 6 ++ drivers/clk/mmp/clk-of-pxa168.c| 7 +++ drivers/clk/mmp/clk-of-pxa910.c

[PATCH 2/3] clk: mmp: Fix the wrong factor table for uart PLL

2015-04-06 Thread Chao Xie
From: Chao Xie The suggested value in the mmp2 manual is wrong. There are only 13 bits for numerator, but some suggested value has 14 bits. Fix the factor tabled and remove the unused items. Signed-off-by: Chao Xie --- drivers/clk/mmp/clk-mmp2.c| 4 +--- drivers/clk/mmp/clk-of-mmp2.c | 4 +

[PATCH 0/3] clk: mmp: fix and add new clock

2015-04-06 Thread Chao Xie
From: Chao Xie There are three patches First two are fix patches. The last one will add the timer clock for pxa168/mmp2/pxa910. The timer driver will make use of the timer clock. Chao Xie (3): clk: mmp: add fixed clock UBS_PLL for pxa910/pxa168 clk: mmp: Fix the wrong factor table for uart

Re: [PATCH v4] x86, selftests: Add sigreturn selftest

2015-04-06 Thread Andy Lutomirski
On Mon, Apr 6, 2015 at 8:39 PM, Michael Ellerman wrote: > On Mon, 2015-04-06 at 19:01 -0700, Andy Lutomirski wrote: >> This is my sigreturn test, added mostly unchanged from its old home. >> It exercises the sigreturn(2) syscall, specifically focusing on its >> interactions with various IRET corne

[PATCH v5] x86, selftests: Add sigreturn selftest

2015-04-06 Thread Andy Lutomirski
This is my sigreturn test, added mostly unchanged from its old home. It exercises the sigreturn(2) syscall, specifically focusing on its interactions with various IRET corner cases. It tests for correct behavior in several areas that were historically dangerously buggy. For example, it exercises e

Re: [PATCH 4/5] phy: add Broadcom SATA3 PHY driver for Broadcom STB SoCs

2015-04-06 Thread Kishon Vijay Abraham I
On Thursday 02 April 2015 07:58 AM, Brian Norris wrote: On Tue, Mar 31, 2015 at 11:31:40AM +0530, Kishon Vijay Abraham I wrote: On Saturday 28 March 2015 05:58 AM, Brian Norris wrote: On Thu, Mar 26, 2015 at 03:29:44AM +0530, Kishon Vijay Abraham I wrote: On Thursday 19 March 2015 06:53 AM,

Re: [PATCH 2/3] drm:msm: Initial Add Writeback Support

2015-04-06 Thread Daniel Vetter
On Thu, Apr 02, 2015 at 10:29:52AM -0400, Rob Clark wrote: > So, from a quick look, it seems like there is a lot of potential to > split the v4l part out into some drm helpers.. it looks pretty > generic(ish), or at least it could be with some strategically placed > vfuncs in drm_v4l2_helper_funcs.

[PATCH] mmc: sdhci-of-arasan: Call OF parsing for MMC

2015-04-06 Thread Michal Simek
Also check MMC OF properties. The controller supports MMC too. Signed-off-by: Michal Simek --- drivers/mmc/host/sdhci-of-arasan.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index bcb51e9.

Re: Linux 3.18.11

2015-04-06 Thread Guenter Roeck
On Sun, Apr 05, 2015 at 10:31:52AM -0400, Sasha Levin wrote: > I'm announcing the release of the 3.18.11 kernel. > > All users of the 3.18 kernel series must upgrade. > > The updated 3.18.y git tree can be found at: > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git >

RE: [PATCH 6/7] thermal: Use bool function return values of true/false not 1/0

2015-04-06 Thread Zhang, Rui
> -Original Message- > From: Joe Perches [mailto:j...@perches.com] > Sent: Tuesday, March 31, 2015 1:43 AM > To: linux-kernel@vger.kernel.org; Zhang, Rui; Eduardo Valentin > Cc: linux...@vger.kernel.org > Subject: [PATCH 6/7] thermal: Use bool function return values of true/false > not >

Re: [PATCH 3/3] PCI: Set pref for mem64 resource of pcie device

2015-04-06 Thread Yinghai Lu
On Mon, Apr 6, 2015 at 8:43 PM, Bjorn Helgaas wrote: > On Mon, Apr 6, 2015 at 8:13 PM, Yinghai Lu wrote: >> On Mon, Apr 6, 2015 at 3:49 PM, Bjorn Helgaas wrote: >>> >>> For "[PATCH 1/3] PCI: Introduce pci_bus_addr_t", I'm waiting for an updated >>> version with Kconfig tweaks so we don't break o

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

2015-04-06 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in drivers/gpu/drm/i915/intel_sprite.c between commit 840a1cf0cd53 ("drm/i915: Reject the colorkey ioctls for primary and cursor planes") from Linus' tree and commit a8265c59e22a ("drm/i915: Rip out GET_SPRITE_COLORKEY ioctl") from t

Re: [PATCH v2 1/2] rtmutex Real-Time Linux: Fixing kernel BUG at kernel/locking/rtmutex.c:997!

2015-04-06 Thread Mike Galbraith
On Mon, 2015-04-06 at 21:59 -0400, Steven Rostedt wrote: > > We really should have a rt_spin_trylock_in_irq() and not have the > below if conditional. > > The paths that will be executed in hard irq context are static. They > should be labeled as such. I did it as an explicitly labeled special p

Re: [PATCH V2 2/6] i2c: qup: Add V2 tags support

2015-04-06 Thread Andy Gross
On Tue, Apr 07, 2015 at 12:01:03AM +0530, Sricharan R wrote: > +static u32 qup_i2c_send_data(struct qup_i2c_dev *qup, int tlen, u8 *tbuf, > + int dlen, u8 *dbuf) > +{ > + u32 val = 0, idx = 0, pos = 0, i = 0, t; > + int len = tlen + dlen; > + u8 *buf = tbuf;

RE: [v4 0/8] Add VT-d Posted-Interrupts support - IOMMU part

2015-04-06 Thread Wu, Feng
> -Original Message- > From: Li, ZhenHua [mailto:zhen-h...@hp.com] > Sent: Friday, April 03, 2015 4:13 PM > To: Wu, Feng > Cc: Joerg Roedel; dw...@infradead.org; jiang@linux.intel.com; > io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org; Li, ZhenHua > Subject: Re: [v4 0/8

[RFC 3/7] ia64/PCI: Use common struct resource_entry to replace struct iospace_resource

2015-04-06 Thread Jiang Liu
Use common struct resource_entry to replace private struct iospace_resource. Signed-off-by: Jiang Liu --- arch/ia64/include/asm/pci.h |5 - arch/ia64/pci/pci.c | 17 - 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/arch/ia64/include/asm/pci.h b/

[RFC 4/7] x86/PCI: Rename struct pci_sysdata as struct pci_controller

2015-04-06 Thread Jiang Liu
Rename struct pci_sysdata as struct pci_controller, so we could share common code between IA64 and x86 later. Signed-off-by: Jiang Liu --- arch/x86/include/asm/pci.h| 12 ++-- arch/x86/include/asm/pci_64.h |4 ++-- arch/x86/pci/acpi.c |8 arch/x86/pci/com

[RFC 6/7] x86/PCI/ACPI: Use common interface to support PCI host bridge

2015-04-06 Thread Jiang Liu
Use common interface to simplify ACPI PCI host bridge implementation. Signed-off-by: Jiang Liu --- arch/x86/pci/acpi.c | 281 +-- 1 file changed, 72 insertions(+), 209 deletions(-) diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c index e7f3

[RFC 7/7] ia64/PCI/ACPI: Use common interface to support PCI host bridge

2015-04-06 Thread Jiang Liu
Use common interface to simplify PCI host bridge implementation. Tested-by: Tony Luck Signed-off-by: Jiang Liu --- arch/ia64/pci/pci.c | 243 +++ 1 file changed, 49 insertions(+), 194 deletions(-) diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci

[RFC 1/7] ACPI/PCI: Enhance ACPI core to support sparse IO space

2015-04-06 Thread Jiang Liu
Enhance ACPI resource parsing interfaces to support sparse IO space, which will be used to share common code between x86 and IA64. Tested-by: Tony Luck Signed-off-by: Jiang Liu --- drivers/acpi/resource.c |9 ++--- include/linux/ioport.h |1 + 2 files changed, 7 insertions(+), 3 de

[RFC 5/7] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-04-06 Thread Jiang Liu
Introduce common interface acpi_pci_root_create() and related data structures to create PCI root bus for ACPI PCI host bridges. It will be used to kill duplicated arch specific code for IA64 and x86. It may also help ARM64 in future. Tested-by: Tony Luck Signed-off-by: Jiang Liu --- drivers/acp

[RFC 2/7] ia64/PCI/ACPI: Use common ACPI resource parsing interface for host bridge

2015-04-06 Thread Jiang Liu
Use common ACPI resource parsing interface to parse ACPI resources for PCI host bridge, so we could share more code between IA64 and x86. Later we will consolidate arch specific implementations into ACPI core. Tested-by: Tony Luck Signed-off-by: Jiang Liu --- arch/ia64/pci/pci.c | 388

[RFC 0/7] Consolidate common ACPI PCI host bridge code into ACPI core

2015-04-06 Thread Jiang Liu
As suggested by Bjorn, this patch set consolidates common ACPI PCI host bridge code from x86 and IA64 into ACPI core. It may also help to support ACPI PCI host bridge on ARM64 platfrom too in future. It introduces struct acpi_pci_root_ops and acpi_pci_root_create(). Arch code only needs to impleme

[Bugfix v4] x86/PCI/ACPI: Fix regression caused by commit 63f1789ec716

2015-04-06 Thread Jiang Liu
Before commit 593669c2ac0f("Use common ACPI resource interfaces to simplify implementation"), arch/x86/pci/acpi.c applies following rules when parsing ACPI resources for PCI host bridge: 1) Ignore IO port resources defined by acpi_resource_io and acpi_resource_fixed_io, which should be used to d

Re: [PATCH v2 1/2] dt-bindings: Document the hi6220 thermal sensor bindings

2015-04-06 Thread Eduardo Valentin
On Tue, Apr 07, 2015 at 11:46:22AM +0800, Xinwei Kong wrote: > > > On 2015/4/6 22:03, Matt Porter wrote: > > On Tue, Mar 31, 2015 at 02:59:21PM +0800, Xinwei Kong wrote: > >> From: kongxinwei > >> > >> This adds documentation of device tree bindings for the > >> thermal sensor controller of hi62

[PATCH v2] phy: core: Check requested PHY status in _of_phy_get()

2015-04-06 Thread Axel Lin
This is a common checking in various drivers, so move the checking to _of_phy_get(). Signed-off-by: Axel Lin --- v2: Fixup the error patch. It needs to call module_put if Requested PHY is disabled. drivers/phy/phy-core.c | 12 ++-- drivers/phy/phy-miphy28lp.c | 5 - drivers

linux-next: manual merge of the vfs tree with the v9fs tree

2015-04-06 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in net/9p/protocol.c between commit 6250a8badb31 ("9p: use unsigned integers for nwqid/count") from the v9fs tree and commit 3f39ef33084b ("net/9p: switch the guts of p9_client_{read,write}() to iov_iter") from the vfs tree. I fixed i

linux-next: manual merge of the vfs tree with the ext4 tree

2015-04-06 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in fs/ext4/inode.c between commit 72b8e0f9fa8a ("ext4: remove unused header files") from the ext4 tree and commit e2e40f2c1ed4 ("fs: move struct kiocb to fs.h") from the vfs tree. I fixed it up (see below) and can carry the fix as

[PATCH] sched/deadline: fix dl bandwidth of root domain overflow after dl task dead

2015-04-06 Thread Wanpeng Li
The total used dl bandwidth of each root domain will be reset to 0 after cpu hotplug when rebuild sched domains, since the call path is: _cpu_down cpuset_cpu_inactive() cpuset_update_active_cpus() partition_sched_domains() build_sched_domains() init_rootdomain()

Re: [PATCH 1/1] checkpatch: improve operator spacing check

2015-04-06 Thread Joe Perches
On Tue, 2015-04-07 at 13:36 +1000, Sam Bobroff wrote: > Code such as: >x = timercmp(&now, &end, <); > Will currently trigger a checkpatch error. e.g. > ERROR: spaces required around that '<' > > This is because the "Ignore operators passed as parameters" check > looks only for a comma foll

Re: [PATCH v9 0/10] iommu/vt-d: Fix intel vt-d faults in kdump kernel

2015-04-06 Thread Dave Young
On 04/03/15 at 02:05pm, Li, Zhen-Hua wrote: > The hardware will do some verification, but not completely. If people think > the OS should also do this, then it should be another patchset, I think. If there is chance to corrupt more memory I think it is not a right way. We should think about a be

Re: [PATCH v9 0/10] iommu/vt-d: Fix intel vt-d faults in kdump kernel

2015-04-06 Thread Dave Young
On 04/05/15 at 09:54am, Baoquan He wrote: > On 04/03/15 at 05:21pm, Dave Young wrote: > > On 04/03/15 at 05:01pm, Li, ZhenHua wrote: > > > Hi Dave, > > > > > > There may be some possibilities that the old iommu data is corrupted by > > > some other modules. Currently we do not have a better soluti

Re: [PATCH v2 1/2] dt-bindings: Document the hi6220 thermal sensor bindings

2015-04-06 Thread Xinwei Kong
On 2015/4/6 22:03, Matt Porter wrote: > On Tue, Mar 31, 2015 at 02:59:21PM +0800, Xinwei Kong wrote: >> From: kongxinwei >> >> This adds documentation of device tree bindings for the >> thermal sensor controller of hi6220 SoC. >> >> Signed-off-by: Leo Yan >> Signed-off-by: kongxinwei >> --- >>

Re: [PATCH 3/3] PCI: Set pref for mem64 resource of pcie device

2015-04-06 Thread Bjorn Helgaas
On Mon, Apr 6, 2015 at 8:13 PM, Yinghai Lu wrote: > On Mon, Apr 6, 2015 at 3:49 PM, Bjorn Helgaas wrote: >> >> For "[PATCH 1/3] PCI: Introduce pci_bus_addr_t", I'm waiting for an updated >> version with Kconfig tweaks so we don't break other arches. > > I was thinking that you will update it manu

Re: [PATCH v4] x86, selftests: Add sigreturn selftest

2015-04-06 Thread Michael Ellerman
On Mon, 2015-04-06 at 19:01 -0700, Andy Lutomirski wrote: > This is my sigreturn test, added mostly unchanged from its old home. > It exercises the sigreturn(2) syscall, specifically focusing on its > interactions with various IRET corner cases. It tests for correct > behavior in several areas tha

Why not build kernel with -O3

2015-04-06 Thread Pengfei Yuan
Hi, I have conducted some experiments to compare kernels built with -O2 and -O3. Here are the results: Application Performance O2 Performance O3 Improvement Apache 127814.14 req/s 130321.24 req/s 1.96% Nginx537589.08 req/s 556723.32 req/s 3.56% MySQL70661.38 tx/s

[PATCH 1/1] checkpatch: improve operator spacing check

2015-04-06 Thread Sam Bobroff
Code such as: x = timercmp(&now, &end, <); Will currently trigger a checkpatch error. e.g. ERROR: spaces required around that '<' This is because the "Ignore operators passed as parameters" check looks only for a comma following the operator. Improve the check by also looking for a close p

not syncing: Attempted to kill init! exitcode=0x00000004 ?

2015-04-06 Thread Masahiro Yamada
Hello experts, I hope this is the correct ML to ask this question. I am struggling to port Linux-4.0-rc7 onto my SoC/board, based on ARM cortex-A9 (single CPU), but the kernel fails to boot with the error: "not syncing: Attempted to kill init! exitcode=0x0004" I want to use NS16550-compatibl

Re: [PATCH] x86/numa: kernel stack corruption fix

2015-04-06 Thread Dave Young
On 04/06/15 at 07:26am, Yasuaki Ishimatsu wrote: > Hi, > > On Fri, 3 Apr 2015 15:15:13 +0800 > Dave Young wrote: > > > Hi, > > > > On 04/02/15 at 12:36pm, Yasuaki Ishimatsu wrote: > > > > > > On Wed, 1 Apr 2015 12:53:46 +0800 > > > Dave Young wrote: > > > > > > > I got below kernel panic dur

[PATCH] sdhci: rtsx: fix 64 BIT DMA quirks

2015-04-06 Thread micky_ching
From: Micky Ching rts5250 chip failed handle 64 bit ADMA for address below 4G. Add 64 BIT quirks to disable this feature. Signed-off-by: Micky Ching --- drivers/mmc/host/sdhci-pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c

Re: [rtc-linux] [PATCH] rtc: OMAP: Add external 32k clock feature

2015-04-06 Thread Keerthy
Hi Andrew, Apologies for replying late. On Wednesday 25 March 2015 04:29 AM, Andrew Morton wrote: On Tue, 3 Mar 2015 15:12:02 +0530 Keerthy wrote: Add external 32k clock feature. The internal clock will be gated during suspend. Hence make use of the external 32k clock so that rtc is function

Re: [PATCH 10/13] thermal: Make struct thermal_zone_device_ops const

2015-04-06 Thread Eduardo Valentin
On Thu, Mar 26, 2015 at 04:53:57PM +0100, Sascha Hauer wrote: > Now that the of thermal support no longer changes the > thermal_zone_device_ops it can be const again. > > Signed-off-by: Sascha Hauer > --- > drivers/thermal/thermal_core.c | 2 +- > include/linux/thermal.h| 6 +++--- I bel

Re: [PATCH 11/13] thermal: of: make of_thermal_ops const

2015-04-06 Thread Eduardo Valentin
On Thu, Mar 26, 2015 at 04:53:58PM +0100, Sascha Hauer wrote: > Now that we no longer modify the ops they can be const again. Also > we no longer have to duplicate them. > > Signed-off-by: Sascha Hauer Should this one be merged to patch 09/13? > --- > drivers/thermal/of-thermal.c | 18 +++-

Re: [PATCH 09/13] thermal: of: always set sensor related callbacks

2015-04-06 Thread Eduardo Valentin
On Thu, Mar 26, 2015 at 04:53:56PM +0100, Sascha Hauer wrote: > Now that the thermal core treats -ENOSYS like the callbacks were > not present at all we no longer have to overwrite the ops during > runtime but instead can always set them and return -ENOSYS if no > sensor is registered. > > Signed-

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

2015-04-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in net/core/fib_rules.c between commit 419df12fb5fa ("net: move fib_rules_unregister() under rtnl lock") from the net tree and commit efd7ef1c1929 ("net: Kill hold_net release_net") from the net-next tree. I fixed it up (see bel

Re: [PATCH 0/9] perf sched replay: Make some improvements and fixes

2015-04-06 Thread Yunlong Song
On 2015/3/31 21:46, Yunlong Song wrote: > Hi, > Found some functions to improve and bugs to fix in perf sched replay. > > Yunlong Song (9): > perf sched replay: Use struct task_desc instead of struct task_task > for correct meaning > perf sched replay: Increase the MAX_PID value to f

Re: [PATCH 06/13] thermal: streamline get_trend callbacks

2015-04-06 Thread Eduardo Valentin
On Thu, Mar 26, 2015 at 04:53:53PM +0100, Sascha Hauer wrote: > The .get_trend callback in struct thermal_zone_device_ops has the prototype: > > int (*get_trend) (struct thermal_zone_device *, int, > enum thermal_trend *); > > whereas the .get_trend callback in struc

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

2015-04-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in drivers/net/ethernet/mellanox/mlx4/cmd.c between commit fde913e25496 ("net/mlx4_core: Fix error message deprecation for ConnectX-2 cards") from the net tree and commit a130b5905732 ("net/mlx4: Add SET_PORT opcode modifiers enu

[PATCH] mac80211: Move message tracepoints to their own header

2015-04-06 Thread Steven Rostedt
Every tracing file must have its own TRACE_SYSTEM defined. The mac80211 tracepoint header broke this and add in the middle of the file had: #undef TRACE_SYSTEM #define TRACE_SYSTEM mac80211_msg Unfortunately, this broke new code in the ftrace infrastructure. Moving the mac80211_msg into its ow

Re: [PATCH 2/2] nohz: make nohz_full imply isolcpus

2015-04-06 Thread Mike Galbraith
On Mon, 2015-04-06 at 15:28 -0400, Rik van Riel wrote: > On 04/03/2015 11:43 PM, Mike Galbraith wrote: > > > Speaking of microsecond savers, the (ick) deferment experiment > > below > > cut 60 core jitter in half. Shooting the clocksource watchdog > > fixes > > alternating ~15us/~5us tick on my

[PATCH v15 01/15] qspinlock: A simple generic 4-byte queue spinlock

2015-04-06 Thread Waiman Long
This patch introduces a new generic queue spinlock implementation that can serve as an alternative to the default ticket spinlock. Compared with the ticket spinlock, this queue spinlock should be almost as fair as the ticket spinlock. It has about the same speed in single-thread and it can be much

[PATCH v15 04/15] qspinlock: Extract out code snippets for the next patch

2015-04-06 Thread Waiman Long
This is a preparatory patch that extracts out the following 2 code snippets to prepare for the next performance optimization patch. 1) the logic for the exchange of new and previous tail code words into a new xchg_tail() function. 2) the logic for clearing the pending bit and setting the loc

[PATCH v15 09/15] pvqspinlock: Implement simple paravirt support for the qspinlock

2015-04-06 Thread Waiman Long
Provide a separate (second) version of the spin_lock_slowpath for paravirt along with a special unlock path. The second slowpath is generated by adding a few pv hooks to the normal slowpath, but where those will compile away for the native case, they expand into special wait/wake code for the pv v

[PATCH v15 05/15] qspinlock: Optimize for smaller NR_CPUS

2015-04-06 Thread Waiman Long
From: Peter Zijlstra (Intel) When we allow for a max NR_CPUS < 2^14 we can optimize the pending wait-acquire and the xchg_tail() operations. By growing the pending bit to a byte, we reduce the tail to 16bit. This means we can use xchg16 for the tail part and do away with all the repeated compxch

[PATCH v15 02/15] qspinlock, x86: Enable x86-64 to use queue spinlock

2015-04-06 Thread Waiman Long
This patch makes the necessary changes at the x86 architecture specific layer to enable the use of queue spinlock for x86-64. As x86-32 machines are typically not multi-socket. The benefit of queue spinlock may not be apparent. So queue spinlock is not enabled. Currently, there is some incompatibi

[PATCH v15 15/15] pvqspinlock: Add debug code to check for PV lock hash sanity

2015-04-06 Thread Waiman Long
The current code for PV lock hash table processing will panic the system if pv_hash_find() can't find the desired hash bucket. However, there is no check to see if there is more than one entry for a given lock which should never happen. This patch adds a pv_hash_check_duplicate() function to do th

[PATCH v15 07/15] qspinlock: Revert to test-and-set on hypervisors

2015-04-06 Thread Waiman Long
From: Peter Zijlstra (Intel) When we detect a hypervisor (!paravirt, see qspinlock paravirt support patches), revert to a simple test-and-set lock to avoid the horrors of queue preemption. Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Waiman Long --- arch/x86/include/asm/qspinlock.h |

[PATCH v15 13/15] pvqspinlock: Only kick CPU at unlock time

2015-04-06 Thread Waiman Long
Before this patch, a CPU may have been kicked twice before getting the lock - one before it becomes queue head and once before it gets the lock. All these CPU kicking and halting (VMEXIT) can be expensive and slow down system performance, especially in an overcommitted guest. This patch add a new

[PATCH v15 08/15] lfsr: a simple binary Galois linear feedback shift register

2015-04-06 Thread Waiman Long
This patch is based on the code sent out by Peter Zijstra as part of his queue spinlock patch to provide a hashing function with open addressing. The lfsr() function can be used to return a sequence of numbers that cycle through all the bit patterns (2^n -1) of a given bit width n except the value

[PATCH v15 12/15] pvqspinlock, x86: Enable PV qspinlock for Xen

2015-04-06 Thread Waiman Long
This patch adds the necessary Xen specific code to allow Xen to support the CPU halting and kicking operations needed by the queue spinlock PV code. Signed-off-by: Waiman Long --- arch/x86/xen/spinlock.c | 63 --- kernel/Kconfig.locks|2 +- 2

[PATCH v15 06/15] qspinlock: Use a simple write to grab the lock

2015-04-06 Thread Waiman Long
Currently, atomic_cmpxchg() is used to get the lock. However, this is not really necessary if there is more than one task in the queue and the queue head don't need to reset the tail code. For that case, a simple write to set the lock bit is enough as the queue head will be the only one eligible to

[PATCH v15 11/15] pvqspinlock, x86: Enable PV qspinlock for KVM

2015-04-06 Thread Waiman Long
This patch adds the necessary KVM specific code to allow KVM to support the CPU halting and kicking operations needed by the queue spinlock PV code. Signed-off-by: Waiman Long --- arch/x86/kernel/kvm.c | 43 +++ kernel/Kconfig.locks |2 +- 2 files c

[PATCH v15 03/15] qspinlock: Add pending bit

2015-04-06 Thread Waiman Long
From: Peter Zijlstra (Intel) Because the qspinlock needs to touch a second cacheline (the per-cpu mcs_nodes[]); add a pending bit and allow a single in-word spinner before we punt to the second cacheline. It is possible so observe the pending bit without the locked bit when the last owner has ju

[PATCH v15 14/15] pvqspinlock: Improve slowpath performance by avoiding cmpxchg

2015-04-06 Thread Waiman Long
In the pv_scan_next() function, the slow cmpxchg atomic operation is performed even if the other CPU is not even close to being halted. This extra cmpxchg can harm slowpath performance. This patch introduces the new mayhalt flag to indicate if the other spinning CPU is close to being halted or not

[PATCH v15 10/15] pvqspinlock: Implement the paravirt qspinlock for x86

2015-04-06 Thread Waiman Long
From: Peter Zijlstra (Intel) We use the regular paravirt call patching to switch between: native_queue_spin_lock_slowpath() __pv_queue_spin_lock_slowpath() native_queue_spin_unlock()__pv_queue_spin_unlock() We use a callee saved call for the unlock function which reduces the

[PATCH v15 00/15] qspinlock: a 4-byte queue spinlock with PV support

2015-04-06 Thread Waiman Long
v14->v15: - Incorporate PeterZ's v15 qspinlock patch and improve upon the PV qspinlock code by dynamically allocating the hash table as well as some other performance optimization. - Simplified the Xen PV qspinlock code as suggested by David Vrabel . - Add benchmarking data for 3.19 ker

Re: [PATCH 03/13] thermal: remove useless call to thermal_zone_device_set_polling

2015-04-06 Thread Eduardo Valentin
On Thu, Mar 26, 2015 at 04:53:50PM +0100, Sascha Hauer wrote: > When the thermal zone has no get_temp callback then > thermal_zone_device_register() > calls thermal_zone_device_set_polling() with a polling delay of 0. This > only cancels the poll_queue. Since the poll_queue hasn't been scheduled t

Re: [PATCH v9 19/30] powerpc/pci: Use pci_scan_host_bridge() for simplicity

2015-04-06 Thread Yijing Wang
On 2015/4/7 7:35, Daniel Axtens wrote: > I've been looking at this patch series for a while now, and I now > believe it's ready on the PowerPC side. > > I was originally concerned that it would break odd corner cases, > particularly where similar code appears (namely kernel/pci_hotplug.c and > ker

Re: [PATCH 1/6] block: export blkdev_reread_part()

2015-04-06 Thread Ming Lei
On Mon, Apr 6, 2015 at 9:42 PM, Jarod Wilson wrote: > On Mon, Apr 06, 2015 at 12:40:12AM +0800, Ming Lei wrote: >> On Mon, Apr 6, 2015 at 12:12 AM, Christoph Hellwig >> wrote: >> >> +/* >> >> + * This is exported as API for block driver, can be called >> >> + * with requiring bd_mutex or not. >>

Re: [PATCH 13/13] thermal: of: implement .set_trips for device tree thermal zones

2015-04-06 Thread Eduardo Valentin
On Thu, Mar 26, 2015 at 04:54:00PM +0100, Sascha Hauer wrote: > Signed-off-by: Sascha Hauer > --- > drivers/thermal/of-thermal.c | 12 > include/linux/thermal.h | 1 + > 2 files changed, 13 insertions(+) Can you please include at least one user of this call back in your patch

Re: [PATCH 12/13] thermal: Add support for hardware-tracked trip points

2015-04-06 Thread Eduardo Valentin
On Thu, Mar 26, 2015 at 04:53:59PM +0100, Sascha Hauer wrote: > This adds support for hardware-tracked trip points to the device tree > thermal sensor framework. > > The framework supports an arbitrary number of trip points. Whenever > the current temperature is updated, the trip points immediatel

Re: [PATCH 4/4 V6] workqueue: Allow modifying low level unbound workqueue cpumask

2015-04-06 Thread Lai Jiangshan
On 04/07/2015 09:58 AM, Tejun Heo wrote: > Hello, Lai. > > On Tue, Apr 07, 2015 at 09:25:59AM +0800, Lai Jiangshan wrote: >> On 04/06/2015 11:53 PM, Tejun Heo wrote: >>> On Thu, Apr 02, 2015 at 07:14:42PM +0800, Lai Jiangshan wrote: /* make a copy of @attrs and sanitize it */ copy_

Re: [PATCH 07/13] thermal: of: streamline .get_temp callbacks

2015-04-06 Thread Eduardo Valentin
On Thu, Mar 26, 2015 at 04:53:54PM +0100, Sascha Hauer wrote: > In the thermal framework it was decided that temperatures can't > be negative, so let the .get_temp callback in struct > thermal_zone_of_device_ops take an unsigned long pointer for > the temperature like the .get_temp callback in > st

Re: [PATCH 05/13] thermal: inline only once used function

2015-04-06 Thread Eduardo Valentin
On Thu, Mar 26, 2015 at 04:53:52PM +0100, Sascha Hauer wrote: > Inline update_temperature into its only caller to make the code > more readable. I am not sure I understand how this is improving readability, can you please elaborate? The way it is now it is more modular at least. > > Signed-off-

Re: [PATCH 1/6] block: export blkdev_reread_part()

2015-04-06 Thread Ming Lei
On Mon, Apr 6, 2015 at 10:50 PM, Christoph Hellwig wrote: > On Mon, Apr 06, 2015 at 12:40:12AM +0800, Ming Lei wrote: >> > int blkdev_reread_part(struct block_device *bdev) >> > { >> > if (!mutex_trylock(&bdev->bd_mutex)) >> > return -EBUSY; >> > blkdev_reread_part_

[PATCH V2 0/2] hrtimer: Iterate only over active clock-bases

2015-04-06 Thread Viresh Kumar
Hi, 'active_bases' indicates which clock-base have active timers. While it is updated (almost) correctly, it is hardly used. And so this is an attempt to improve the code that iterates over all clock-bases. The first patch fixes a issue that will result in a bug after the second commit, and the

[PATCH V2 2/2] hrtimer: Iterate only over active clock-bases

2015-04-06 Thread Viresh Kumar
At several instances we iterate over all possible clock-bases for a particular cpu-base. Whereas, we only need to iterate over active bases. We already have per cpu-base 'active_bases' field, which is updated on addition/removal of hrtimers. This patch creates for_each_active_base(), which uses '

[PATCH V2 1/2] hrtimer: update '->active_bases' before calling hrtimer_force_reprogram()

2015-04-06 Thread Viresh Kumar
'active_bases' indicates which clock-base have active timers. While it is updated correctly, it is hardly used. Next commit will start using it to make code more efficient, but before that we need to fix a problem. While removing hrtimers, in __remove_hrtimer(): - We first remove the hrtimer from

Re: [PATCH 04/13] thermal: Fix not emulating critical temperatures

2015-04-06 Thread Eduardo Valentin
On Fri, Mar 27, 2015 at 06:23:18AM +0100, Sascha Hauer wrote: > Hi Amit, > > On Fri, Mar 27, 2015 at 08:35:50AM +0530, amit daniel kachhap wrote: > > Hi Sascha, > > > > > -#ifdef CONFIG_THERMAL_EMULATION > > > - if (!tz->emul_temperature) > > > - goto skip_emul; > > > - > > >

Re: [PATCH 1/1] irqchip/gicv3-its: remove GITS_BASER_TYPE_CPU base on latest specification

2015-04-06 Thread leizhen
On 2015/4/3 22:46, Jason Cooper wrote: > Zhen Lei, > > On Fri, Apr 03, 2015 at 11:33:52AM +0800, Zhen Lei wrote: >> Acutally, "Interrupt Collections" and "Physical Processors" is the >> same thing. > > I'm sorry, but this isn't clear. > >> Signed-off-by: Zhen Lei >> --- >> drivers/irqchip/irq-

[PATCH] staging: lustre: Make cfs_sched_rehash static

2015-04-06 Thread Nickolaus Woodruff
This patch fixes the following sparse warning: CHECK drivers/staging/lustre/lustre/libcfs/hash.c drivers/staging/lustre/lustre/libcfs/hash.c:119:21: warning: symbol 'cfs_sched_rehash' was not declared. Should it be static? Signed-off-by: Nickolaus Woodruff --- drivers/staging/lustre/lustre/li

[PATCH v4] x86, selftests: Add sigreturn selftest

2015-04-06 Thread Andy Lutomirski
This is my sigreturn test, added mostly unchanged from its old home. It exercises the sigreturn(2) syscall, specifically focusing on its interactions with various IRET corner cases. It tests for correct behavior in several areas that were historically dangerously buggy. For example, it exercises e

Re: [PATCH v2 1/2] rtmutex Real-Time Linux: Fixing kernel BUG at kernel/locking/rtmutex.c:997!

2015-04-06 Thread Steven Rostedt
On Mon, 6 Apr 2015 19:26:01 -0600 Thavatchai Makphaibulchoke wrote: > This patch fixes the problem that the ownership of a mutex acquired by an > interrupt handler(IH) gets incorrectly attributed to the interrupted thread. > > This could result in an incorrect deadlock detection in function > r

Re: [PATCH 1/3] mmc: dw_mmc: Increase cmd11 timeout to 500ms

2015-04-06 Thread Jaehoon Chung
Hi, Doug. On 04/07/2015 04:32 AM, Doug Anderson wrote: > Jaehoon, > > On Mon, Apr 6, 2015 at 3:46 AM, Jaehoon Chung wrote: >> Hi, Doug. >> >> On 04/04/2015 03:13 AM, Doug Anderson wrote: >>> The Designware databook claims that cmd11 should be finished in 2ms, >>> but my testing showed that not t

Re: [PATCH 5/6] block: dasd_genhd: convert to blkdev_reread_part

2015-04-06 Thread Ming Lei
On Mon, Apr 6, 2015 at 9:51 PM, Jarod Wilson wrote: >> >> Note: patch 6/6 in the series makes this whole while() loops pointless, >> since the possibility of the -EBUSY return goes away. > > Minor clarification: the -EBUSY due to the trylock, which is why that > retry loop exists, goes away. You *

Re: [PATCH 4/4 V6] workqueue: Allow modifying low level unbound workqueue cpumask

2015-04-06 Thread Tejun Heo
Hello, Lai. On Tue, Apr 07, 2015 at 09:25:59AM +0800, Lai Jiangshan wrote: > On 04/06/2015 11:53 PM, Tejun Heo wrote: > > On Thu, Apr 02, 2015 at 07:14:42PM +0800, Lai Jiangshan wrote: > >>/* make a copy of @attrs and sanitize it */ > >>copy_workqueue_attrs(new_attrs, attrs); > >> - cpuma

Re: + zram-fix-error-return-code.patch added to -mm tree

2015-04-06 Thread Sergey Senozhatsky
On (04/06/15 12:43), a...@linux-foundation.org wrote: > From: Julia Lawall > Subject: zram: fix error return code > > Return a negative error code on failure. > [..] > A simplified version of the semantic match that finds this problem is as > follows: (http://coccinelle.lip6.fr/) > > Signed-off

Re: [PATCH 02/13] thermal: trivial: fix typo in comment

2015-04-06 Thread Eduardo Valentin
On Thu, Mar 26, 2015 at 04:53:49PM +0100, Sascha Hauer wrote: > Signed-off-by: Sascha Hauer Acked-by: Eduardo Valentin > --- > drivers/thermal/thermal_core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.

Re: [PATCH 01/13] thermal: Make temperatures consistently unsigned long

2015-04-06 Thread Eduardo Valentin
On Fri, Mar 27, 2015 at 08:07:50PM +0100, Sascha Hauer wrote: > On Fri, Mar 27, 2015 at 10:18:14AM +, Punit Agrawal wrote: > > Hi Sascha, > > > > Sascha Hauer writes: > > > > > The thermal framework uses int, long and unsigned long for temperatures > > > in millicelsius. The majority of func

linux-next: manual merge of the arm64 tree with the arm-soc tree

2015-04-06 Thread Stephen Rothwell
Hi Catalin, Today's linux-next merge of the arm64 tree got a conflict in arch/arm64/configs/defconfig between commit d7f64a44356c ("arm64: qcom: Add support for Qualcomm MSM8916 SoC") from the arm-soc tree and commit 475bfd3d67fa ("arm64: defconfig: updates for 4.1") from the arm64 tree. I fixed

Re: [PATCH 01/13] thermal: Make temperatures consistently unsigned long

2015-04-06 Thread Eduardo Valentin
On Thu, Mar 26, 2015 at 04:53:48PM +0100, Sascha Hauer wrote: > The thermal framework uses int, long and unsigned long for temperatures > in millicelsius. The majority of functions uses unsigned long, so change > the remaining functions to use this type aswell. I believe it make sense to change al

  1   2   3   4   5   6   >