Re: [PATCH v4 5/8] ARM: dts: Add properties to use pwm-fan device as a cooling device in Odroid U3

2015-02-24 Thread Eduardo Valentin
On Wed, Feb 18, 2015 at 11:07:33AM +0100, Lukasz Majewski wrote: With those bindings it is possible to use pwm-fan device available in Odroid U3 as a cooling device. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- Changes for v2: - Rename cooling-pwm-values property to

Re: [PATCH 2/3] resource: Add new flag IORESOURCE_WARN (64bit)

2015-02-24 Thread Andy Lutomirski
On Mon, Feb 23, 2015 at 11:20 PM, Boaz Harrosh b...@plexistor.com wrote: On 02/23/2015 05:46 PM, Andy Lutomirski wrote: On Mon, Feb 23, 2015 at 4:43 AM, Boaz Harrosh b...@plexistor.com wrote: Resource providers set this flag if they want that request_region_XXX will print a warning in dmesg

Re: [PATCH V2] (gpio-fan): Add thermal control hooks

2015-02-24 Thread Eduardo Valentin
On Tue, Feb 24, 2015 at 11:55:23AM -0800, Guenter Roeck wrote: On Tue, Feb 24, 2015 at 03:29:35PM -0400, Eduardo Valentin wrote: Guenter, On Thu, Jan 08, 2015 at 08:48:40PM -0800, Guenter Roeck wrote: On 01/08/2015 10:05 AM, Nishanth Menon wrote: Allow gpio-fan to be used as thermal

Re: [PATCH 0/2] HID: huion: add libinput support

2015-02-24 Thread Peter Hutterer
On Tue, Feb 24, 2015 at 01:22:37PM +0200, Nikolai Kondrashov wrote: On 02/24/2015 12:34 AM, Benjamin Tissoires wrote: On Feb 23 2015 or thereabouts, Peter Hutterer wrote: yeah, but the thing is: those emails are only necessary _once_ per tablet. if they're not in the database, you'll get

[PATCH 3/3] kernel/sysctl.c: threads-max observe limits

2015-02-24 Thread Heinrich Schuchardt
Users can change the maximum number of threads by writing to /proc/sys/kernel/threads-max. With the patch the value entered is checked against the same limits that apply when fork_init is called. Signed-off-by: Heinrich Schuchardt xypron.g...@gmx.de --- include/linux/sysctl.h | 3 +++

[PATCH 2/3 v5] kernel/fork.c: avoid division by zero

2015-02-24 Thread Heinrich Schuchardt
PAGE_SIZE is not guaranteed to be equal to or less than 8 times the THREAD_SIZE. E.g. architecture hexagon may have page size 1M and thread size 4096. This would lead to a division by zero in the calculation of max_threads. With 32-bit calculation there is no solution which delivers valid

Re: [PATCH -next 00/13] Extensible console matching direct earlycon

2015-02-24 Thread Rob Herring
On Tue, Feb 24, 2015 at 1:53 PM, Peter Hurley pe...@hurleysoftware.com wrote: Hi Rob, On 02/24/2015 02:27 PM, Rob Herring wrote: On Tue, Feb 24, 2015 at 10:36 AM, Peter Hurley pe...@hurleysoftware.com wrote: Hi Greg Andrew, This patch series implements: 1. console-definable (aka

Re: [PATCH] OMAPDSS: restore name sysfs entry.

2015-02-24 Thread NeilBrown
On Tue, 24 Feb 2015 12:40:32 +0200 Tomi Valkeinen tomi.valkei...@ti.com wrote: Hi, On 24/02/15 11:37, NeilBrown wrote: commit 303e4697e762dc92a40405f4e4b8aac02cd0d70b OMAPDSS: rename display-sysfs 'name' entry broke the xorg X server on my device as it couldn't find the

Re: [lm-sensors] [PATCH 1/4] kernel.h: add find_closest() macro

2015-02-24 Thread Guenter Roeck
On Tue, Feb 24, 2015 at 12:33:06PM -0800, Phil Pokorny wrote: On Tue, Feb 24, 2015 at 9:42 AM, Bartosz Golaszewski bgolaszew...@baylibre.com wrote: Searching for the member of an array closest to 'x' is duplicated in several places. Add two macros that implement this algorithm for

[PATCH 4/4] pinctrl: tegra: add a driver for Tegra210

2015-02-24 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com Tegra210's pinmux supports a different set of pins/options than earlier SoCs, so requires its own driver (well, table of pin-specific data). Cc: devicet...@vger.kernel.org Signed-off-by: Stephen Warren swar...@nvidia.com ---

[PATCH 3/3] Hal8188ERateAdaptive.c : Expression is always false because 'else if' condition matches previous condition at line 404.

2015-02-24 Thread Ameen Ali
else if at line 406 has the same condition as the else if at line 404. Signed-off-by : Ameen Ali ameenali...@gmail.com --- drivers/staging/rtl8188eu/hal/Hal8188ERateAdaptive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/hal/Hal8188ERateAdaptive.c

Re: [PATCH] OMAPDSS: restore name sysfs entry.

2015-02-24 Thread Tony Lindgren
* NeilBrown ne...@suse.de [150224 12:35]: On Tue, 24 Feb 2015 12:40:32 +0200 Tomi Valkeinen tomi.valkei...@ti.com wrote: Hi, On 24/02/15 11:37, NeilBrown wrote: commit 303e4697e762dc92a40405f4e4b8aac02cd0d70b OMAPDSS: rename display-sysfs 'name' entry broke the

Re: [PATCH 2/3 v5] kernel/fork.c: avoid division by zero

2015-02-24 Thread David Rientjes
On Tue, 24 Feb 2015, Heinrich Schuchardt wrote: PAGE_SIZE is not guaranteed to be equal to or less than 8 times the THREAD_SIZE. E.g. architecture hexagon may have page size 1M and thread size 4096. This would lead to a division by zero in the calculation of max_threads. This should only

Re: [PATCH v3 1/4] mm: cma: add trace events to debug physically-contiguous memory allocations

2015-02-24 Thread Michal Nazarewicz
On Tue, Feb 24 2015, Stefan Strogin s.stro...@partner.samsung.com wrote: Add trace events for cma_alloc() and cma_release(). Signed-off-by: Stefan Strogin s.stro...@partner.samsung.com Looks good to me but than again I don’t know much about trace points so perhaps someone else should ack it as

[PATCH v3 0/3] epoll: introduce round robin wakeup mode

2015-02-24 Thread Jason Baron
Hi, When we are sharing a wakeup source among multiple epoll fds, we end up with thundering herd wakeups, since there is currently no way to add to the wakeup source exclusively. This series introduces a new EPOLL_ROTATE flag to allow for round robin exclusive wakeups. I believe this patch

Re: [PATCH 1/3 v5] kernel/fork.c: new function for max_threads

2015-02-24 Thread Heinrich Schuchardt
On 24.02.2015 22:03, David Rientjes wrote: On Tue, 24 Feb 2015, Heinrich Schuchardt wrote: diff --git a/init/main.c b/init/main.c index 61b99376..21394ec 100644 --- a/init/main.c +++ b/init/main.c @@ -94,7 +94,7 @@ static int kernel_init(void *); extern void init_IRQ(void); -extern

Re: [tip:x86/asm] x86/asm: Add support for the pcommit instruction

2015-02-24 Thread H. Peter Anvin
On 02/24/2015 01:40 PM, H. Peter Anvin wrote: On 02/24/2015 01:30 AM, Borislav Petkov wrote: On Mon, Feb 23, 2015 at 03:14:01PM -0800, H. Peter Anvin wrote: That may cause the same line to be flushed twice. I would suggest, instead, also removing the arithmetic on void *: Btw, should we

Re: Linux 4.0-rc1 out..

2015-02-24 Thread Steven Rostedt
On Mon, Feb 23, 2015 at 04:15:41PM +1100, Stephen Rothwell wrote: There are also 265 commits in next-20150209 that didn't make it into v4.0-rc1. Top ten first word of commit summary: 25 rcu 24 arm 20 selftests 19 mm 11 arm-soc 6 documentation 5

[PATCH 0/3 v5] max_threadx handling

2015-02-24 Thread Heinrich Schuchardt
In fork_init a division by zero may occur. In the first patch the calculation of max_threads is moved from fork_init to a new separate function. The incorrect calculation of max threads is addressed in the second patch. Furthermore max_threads is checked against FUTEX_TID_MASK. The third

[PATCH 1/3 v5] kernel/fork.c: new function for max_threads

2015-02-24 Thread Heinrich Schuchardt
PAGE_SIZE is not guaranteed to be equal to or less than 8 times the THREAD_SIZE. E.g. architecture hexagon may have page size 1M and thread size 4096. This would lead to a division by zero in the calculation of max_threads. With this patch the buggy code is moved to a separate function

Re: [PATCH -next 00/13] Extensible console matching direct earlycon

2015-02-24 Thread Peter Hurley
Hi Rob, On 02/24/2015 02:27 PM, Rob Herring wrote: On Tue, Feb 24, 2015 at 10:36 AM, Peter Hurley pe...@hurleysoftware.com wrote: Hi Greg Andrew, This patch series implements: 1. console-definable (aka extensible) matching 2. generic earlycon-to-console handoff via extensible

Re: [ANNOUNCE] 3.18.7-rt2

2015-02-24 Thread Gustavo Bittencourt
On Tue, Feb 24, 2015 at 2:50 PM, Mike Galbraith umgwanakikb...@gmail.com wrote: On Tue, 2015-02-24 at 13:19 -0300, Gustavo Bittencourt wrote: The deadlock returned after I applied this patch in v3.18.7-rt2. Here is my log: Hrmph. I definitely want your patch to die ;-) It adds a whole

Re: [PATCH] mm: readahead: get back a sensible upper limit

2015-02-24 Thread David Rientjes
On Tue, 24 Feb 2015, Rafael Aquini wrote: commit 6d2be915e589 (mm/readahead.c: fix readahead failure for memoryless NUMA nodes and limit readahead pages)[1] imposed 2 mB hard limits to readahead by changing max_sane_readahead() to sort out a corner case where a thread runs on

Re: [PATCH 1/4] usb: phy: twl4030: make runtime pm more reliable.

2015-02-24 Thread Tony Lindgren
* NeilBrown ne...@suse.de [150223 19:45]: A construct like: if (pm_runtime_suspended(twl-dev)) pm_runtime_get_sync(twl-dev); is against the spirit of the runtime_pm interface as it makes the internal refcounting useless. In this case it is also racy, particularly

[PATCH 10/15] twl4030_charger: only draw USB current as negotiated with host.

2015-02-24 Thread NeilBrown
If the phy has been told what current it can draw, it tells us and now we use that number. Note that 'vbus_draw' is in mA, while usb_cur is in uA. Signed-off-by: NeilBrown ne...@suse.de --- drivers/power/twl4030_charger.c |5 + 1 file changed, 5 insertions(+) diff --git

[PATCH 2/4] pinctrl: tegra: some bits move between registers

2015-02-24 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com Some of the pinmux configuration bits that exist in drive group registers in Tegra30..Tegra124 move to the pinmux registers on future chips. Add a flag to support this. Signed-off-by: Stephen Warren swar...@nvidia.com --- drivers/pinctrl/pinctrl-tegra.c

Re: [PATCH 1/3 v5] kernel/fork.c: new function for max_threads

2015-02-24 Thread David Rientjes
On Tue, 24 Feb 2015, Heinrich Schuchardt wrote: diff --git a/init/main.c b/init/main.c index 61b99376..21394ec 100644 --- a/init/main.c +++ b/init/main.c @@ -94,7 +94,7 @@ static int kernel_init(void *); extern void init_IRQ(void); -extern void fork_init(unsigned long); +extern void

[PATCH net-next 1/2] net: davinci_mdio: don't request io address range

2015-02-24 Thread Murali Karicheri
From: Grygorii Strashko grygorii.stras...@ti.com Historically Davinci MDIO driver was created with assumption that MDIO is standalone device, but for Keystone 2 it's a part of NETCP module and now NETCP driver requests IO range which includes MDIO IO range too. This causes Keystone 2 networking

[PATCH v3 1/3] sched/wait: add __wake_up_rotate()

2015-02-24 Thread Jason Baron
Create a special queue where waiters are 'rotated' to the end of the queue after they are woken up. Waiters are expected to be added 'exclusively' to this queue, and the wakeup must occur with __wake_up_rotate(). The current issue with just adding a waiter as exclusive is that it that often

[PATCH net-next 2/2] net: netcp: select davinci_mdio driver by default

2015-02-24 Thread Murali Karicheri
Keystone netcp driver re-uses davinci mdio driver. So enable it by default for keystone netcp driver. Signed-off-by: Murali Karicheri m-kariche...@ti.com --- drivers/net/ethernet/ti/Kconfig |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/ti/Kconfig

Re: [PATCH 3/3] HID: i2c-hid: Add support for ACPI GPIO interrupts

2015-02-24 Thread Antonio Ospite
On Mon, 23 Feb 2015 15:52:45 +0200 Mika Westerberg mika.westerb...@linux.intel.com wrote: The HID over I2C specification allows to have the interrupt for a HID device to be GPIO instead of directly connected to the IO-APIC. Add support for this so that when the driver does not find proper

Re: [PATCH v3 4/4] mm: cma: add functions to get region pages counters

2015-02-24 Thread Michal Nazarewicz
On Tue, Feb 24 2015, Stefan Strogin s.stro...@partner.samsung.com wrote: From: Dmitry Safonov d.safo...@partner.samsung.com Here are two functions that provide interface to compute/get used size and size of biggest free chunk in cma region. Add that information to debugfs. Signed-off-by:

Re: [PATCH 0/5] ARM: imx: ventana: enable LDO-bypass mode

2015-02-24 Thread Jean-Michel Hautbois
Hi Tim, 2014-10-31 5:27 GMT+01:00 Tim Harvey thar...@gateworks.com: The IMX6 has some internal LDO regulators provided by the anatop regulator block that can regulate the arm, soc, gpu/vpu core supplies. Alternatively a design can supply vdd_arm and vdd_soc externally via a PMIC to provide a

Re: [PATCH 2/2] cosa.c : Array index 'i' is used before limits check.

2015-02-24 Thread Sergei Shtylyov
Hello. On 02/24/2015 10:52 PM, Ameen Ali wrote: avoid out-of-bounds-read by checking count before indexing. Signed-off-by: Ameen Ali ameenali...@gmail.com --- drivers/net/wan/cosa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wan/cosa.c

Re: [PATCH] thermal: armada: read stable temp on Armada XP

2015-02-24 Thread Tyler Hall
Eduardo, On Tue, Feb 24, 2015 at 1:36 PM, Eduardo Valentin edubez...@gmail.com wrote: The fix seams reasonable. Although, it remains the question what is applicability to other Armada chips? Besides, shouldn't we simply use it by default? Also, do you plan to send updates in the DTS files? As

[PATCH] mm: cma: fix CMA aligned offset calculation

2015-02-24 Thread Danesh Petigara
The CMA aligned offset calculation is incorrect for non-zero order_per_bit values. For example, if cma-order_per_bit=1, cma-base_pfn= 0x2f80 and align_order=12, the function returns a value of 0x17c00 instead of 0x400. This patch fixes the CMA aligned offset calculation. Cc:

Re: [PATCH 1/4] x86: entry.S: tidy up several suboptimal insns

2015-02-24 Thread Borislav Petkov
On Tue, Feb 24, 2015 at 07:51:32PM +0100, Denys Vlasenko wrote: In all three 32-bit entry points, %eax is zero-extended to %rax. It is safe to do 32-bit compare when checking that syscall# is not too large. The last instance of mysterious SS+8 constant is replaced by SIZEOF_PTREGS. The

Re: [PATCH V2] (gpio-fan): Add thermal control hooks

2015-02-24 Thread Guenter Roeck
On Tue, Feb 24, 2015 at 03:29:35PM -0400, Eduardo Valentin wrote: Guenter, On Thu, Jan 08, 2015 at 08:48:40PM -0800, Guenter Roeck wrote: On 01/08/2015 10:05 AM, Nishanth Menon wrote: Allow gpio-fan to be used as thermal cooling device for platforms that use GPIO maps to control fans.

Re: [PATCH 3/3] HID: i2c-hid: Add support for ACPI GPIO interrupts

2015-02-24 Thread Jiri Kosina
On Mon, 23 Feb 2015, Mika Westerberg wrote: The HID over I2C specification allows to have the interrupt for a HID device to be GPIO instead of directly connected to the IO-APIC. Add support for this so that when the driver does not find proper interrupt number from the I2C client structure

[PATCH 1/8 v2] ARM OMAP2+ GPMC: don't undef DEBUG

2015-02-24 Thread Robert ABEL
OMAP2+ GPMC driver undefines DEBUG, which makes it unnecessarily hard to turn DEBUG on. Remove the offending lines. Signed-off-by: Robert ABEL ra...@cit-ec.uni-bielefeld.de --- drivers/memory/omap-gpmc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/memory/omap-gpmc.c

Re: [PATCH 3.2 055/152] x86_64, switch_to(): Load TLS descriptors before switching DS and ES

2015-02-24 Thread Denys Vlasenko
On Tue, Feb 24, 2015 at 9:02 PM, Andy Lutomirski l...@amacapital.net wrote: This currently fails in 32-bit kernels (at least in qemu): / # ./es_test Allocated GDT index 7 [FAIL]ES changed from 0x3b to 0x7b [FAIL]ES was corrupted 1000/1000 times / # uname -a Linux (none) 4.0.0-rc1

Re: [PATCH 0/8 v2] ARM OMAP2+ GPMC: fixes and bus children

2015-02-24 Thread Robert Abel
On Tue, Feb 24, 2015 at 9:05 PM, Robert ABEL ra...@cit-ec.uni-bielefeld.de wrote: These are the changes I proposed in two separate patchsets #([1], [2]) rebased to 3.19 as well as new changes for little bugs I noticed while preparing this patchset. It seems my m4d s3d sk177z failed me.

RE: [E1000-devel] [PATCH v2 3/3] ixgbe: Add new ndo to allow VF multicast promiscuous mode

2015-02-24 Thread Tantilov, Emil S
-Original Message- From: Hiroshi Shimamoto [mailto:h-shimam...@ct.jp.nec.com] Sent: Thursday, February 19, 2015 5:01 PM Subject: [E1000-devel] [PATCH v2 3/3] ixgbe: Add new ndo to allow VF multicast promiscuous mode From: Hiroshi Shimamoto h-shimam...@ct.jp.nec.com Implements the new

Re: [PATCH 1/4] x86: entry.S: tidy up several suboptimal insns

2015-02-24 Thread Borislav Petkov
On Tue, Feb 24, 2015 at 09:13:03PM +0100, Denys Vlasenko wrote: They aren't equal. $1 and $2 in two lowest bits will also be interpreted as userspace here. Equal to $3 sends a wrong message here to a human reading the code, the code doesn't test for CPL=3, it tests for any nonzero CPL. Doh,

Re: [RFC PATCH] gpio: support for GPIO forwarding

2015-02-24 Thread David Cohen
Hi, If we decide to go ahead with the solution proposed by this patch for practical reasons (which are good reasons indeed), I still have one problem with its current form. As the discussion highlighted, this is an ACPI problem, so I'd very much like it to be confined to the ACPI GPIO

[PATCH 11/15] twl4030_charger: enable manual enable/disable of usb charging.

2015-02-24 Thread NeilBrown
'off' or 'auto' to /sys/class/power/twl4030_usb/mode will now enable or disable charging from USB port. Normally this is enabled on 'plug' and disabled on 'unplug'. Unplug will still disable charging. 'plug' will only enable it if 'auto' if selected. Signed-off-by: NeilBrown ne...@suse.de

[PATCH 14/15] twl4030_charger: Increase current carefully while watching voltage.

2015-02-24 Thread NeilBrown
The USB Battery Charging spec (BC1.2) suggests a dedicated charging port can deliver from 0.5 to 5.0A at between 4.75 and 5.25 volts. To choose the correct current voltage setting requires a trial and error approach: try to draw current and see if the voltage drops too low. Even with a configure

[PATCH 15/15] twl4030_charger: assume a 'charger' can supply maximum current.

2015-02-24 Thread NeilBrown
If it cannot, we will stop pulling more current when voltage drops. Signed-off-by: NeilBrown ne...@suse.de --- drivers/power/twl4030_charger.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/power/twl4030_charger.c b/drivers/power/twl4030_charger.c index

[PATCH 12/15] twl4030_charger: add software controlled linear charging mode.

2015-02-24 Thread NeilBrown
Add a 'continuous' option for usb charging which enabled the linear charging mode of the twl4030. Linear charging does a good job with not so reliable power sources, since several voltage controlling is then often too intelligent. It was used with a bike hub dynamo since a year or so. In that

[PATCH 13/15] twl4030_charger: add ac/mode to match usb/mode

2015-02-24 Thread NeilBrown
This allows AC charging to be turned off, much like usb charging. continuous (aka linear) mode maps to the CVENAC (constant voltage) feature of the twl4030. Signed-off-by: NeilBrown ne...@suse.de --- drivers/power/twl4030_charger.c | 40 +-- 1 file changed,

Re: [PATCH v3 2/4] mm: cma: add number of pages to debug message in cma_release()

2015-02-24 Thread Michal Nazarewicz
On Tue, Feb 24 2015, Stefan Strogin s.stro...@partner.samsung.com wrote: It's more useful to print address and number of pages which are being released, not only address. Signed-off-by: Stefan Strogin s.stro...@partner.samsung.com Acked-by: Michal Nazarewicz min...@mina86.com ---

Re: [PATCH 1/2] x86: mce: kdump: use under_crashdumping to turn off MCE in all CPUs together

2015-02-24 Thread Borislav Petkov
On Tue, Feb 24, 2015 at 06:47:23PM +, Luck, Tony wrote: since offline cpus will still show up to rendezvous ... perhaps num_present_cpus() is the right number?? Provided nmi_shootdown_cpus() code path clears offlined CPUs from cpumasks so that num_present_cpus() or any other for that matter

[PATCH v3 3/3] epoll: Add EPOLL_ROTATE mode

2015-02-24 Thread Jason Baron
Epoll file descriptors that are added to a shared wakeup source are always added in a non-exclusive manner. That means that when we have multiple epoll fds attached to a shared wakeup source they are all woken up. This can lead to excessive cpu usage and uneven load distribution. This patch

[PATCH v3 2/3] epoll: restrict wakeups to the overflow list

2015-02-24 Thread Jason Baron
During ep_scan_ready_list(), when the ep-mtx is dropped, we queue new events to the ep-ovflist. However, instead of just issuing wakeup for these newly encountered events, we instead proceed to issue wakeups even if nothing new is being propagated. Normally, this simply results in unnecessary

Re: [PATCHv2] r8169: Fix trivial typo in rtl_check_firmware

2015-02-24 Thread David Miller
From: Yannick Guerrini yguerr...@tomshardware.fr Date: Tue, 24 Feb 2015 13:03:51 +0100 Change 'firwmare' to 'firmware' Signed-off-by: Yannick Guerrini yguerr...@tomshardware.fr --- v2: replace drivers, realtek of the subject with r8169 and cc net...@vger.kernel.org, as suggested by

Re: [PATCH v2] x86, boot: Allow 64bit EFI kernel to be loaded above 4G

2015-02-24 Thread Matt Fleming
On Sun, 22 Feb, at 07:43:48PM, Yinghai Lu wrote: Index: linux-2.6/arch/x86/boot/header.S === --- linux-2.6.orig/arch/x86/boot/header.S +++ linux-2.6/arch/x86/boot/header.S @@ -301,7 +301,7 @@ _start: # Part 2 of the

Re: [PATCH] mm: readahead: get back a sensible upper limit

2015-02-24 Thread Linus Torvalds
On Tue, Feb 24, 2015 at 4:58 AM, Rafael Aquini aqu...@redhat.com wrote: This patch brings back the old behavior of max_sane_readahead() Yeah no. There was a reason that code was killed. No way in hell are we bringing back the insanities with node memory etc. Also, we have never actually heard

Re: [PATCH 0/2] PCI: pci_unignore_hotplug()

2015-02-24 Thread Alex Deucher
On Tue, Feb 24, 2015 at 3:12 PM, Alex Williamson alex.william...@redhat.com wrote: I'd kinda like to use pci_ignore_hotplug() for devices in use by a user via vfio-pci, but the interface seems only partially implemented since we can only set ignore_hotplug and not clear it. This adds the

Re: [PATCH] mm: cma: fix CMA aligned offset calculation

2015-02-24 Thread Gregory Fong
[removed stable from cc] On Tue, Feb 24, 2015 at 11:55 AM, Danesh Petigara dpetig...@broadcom.com wrote: diff --git a/mm/cma.c b/mm/cma.c index 75016fd..58f37bd 100644 --- a/mm/cma.c +++ b/mm/cma.c @@ -70,9 +70,13 @@ static unsigned long cma_bitmap_aligned_offset(struct cma *cma, int

[PATCH v3 3/3] tomoyo: reduce mmap_sem hold for mm-exe_file

2015-02-24 Thread Davidlohr Bueso
The mm-exe_file is currently serialized with mmap_sem (shared) in order to both safely (1) read the file and (2) compute the realpath by calling tomoyo_realpath_from_path, making it an absolute overkill. Good users will, on the other hand, make use of the more standard get_mm_exe_file(), requiring

[PATCH 2/2] cosa.c : Array index 'i' is used before limits check.

2015-02-24 Thread Ameen Ali
avoid out-of-bounds-read by checking count before indexing. Signed-off-by: Ameen Ali ameenali...@gmail.com --- drivers/net/wan/cosa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index 83c39e2..5252e21 100644 ---

[PATCH 0/2] PCI: pci_unignore_hotplug()

2015-02-24 Thread Alex Williamson
I'd kinda like to use pci_ignore_hotplug() for devices in use by a user via vfio-pci, but the interface seems only partially implemented since we can only set ignore_hotplug and not clear it. This adds the capability to clear the flag and applies it as seems to be appropriate to the existing

Re: [PATCH 1/4] x86: entry.S: tidy up several suboptimal insns

2015-02-24 Thread Denys Vlasenko
On Tue, Feb 24, 2015 at 8:58 PM, Borislav Petkov b...@alien8.de wrote: On Tue, Feb 24, 2015 at 07:51:32PM +0100, Denys Vlasenko wrote: In all three 32-bit entry points, %eax is zero-extended to %rax. It is safe to do 32-bit compare when checking that syscall# is not too large. The last

[PATCH 1/2] pci: Add reciprocal function for pci_ignore_hotplug()

2015-02-24 Thread Alex Williamson
We have pci_ignore_hotplug(), but there's no way to undo this without manipulating the device itself. It seems like the original intention of the function is to provide the driver with a way to ignore hotplug over a specific time window, ex. the time while the device is powered off. Once the

[PATCH 2/2] nouveau/radeon: Un-ignore hotplug on resume

2015-02-24 Thread Alex Williamson
Commit b440bde74f04 enabled drivers to be able to set an ignore hotplug flag on the device and used it in the suspend routine for nouveau and radeon to prevent hotplug when the device is powered off. However, there was no undo function provided, so once set, the ignore hotplug flag lives on for

Re: [PATCH] rtnetlink: avoid 0 sized arrays

2015-02-24 Thread David Miller
From: Sasha Levin sasha.le...@oracle.com Date: Tue, 24 Feb 2015 14:14:35 -0500 Arrays (when not in a struct) shall have a value greater than zero. GCC complains when it's not the case here. Fixes: ba7d49b1f0 (rtnetlink: provide api for getting and setting slave info) Signed-off-by:

[PATCH 09/15] twl4030_charger: allow max_current to be managed via sysfs.

2015-02-24 Thread NeilBrown
'max_current' sysfs attributes are created which allow the max to be set. Whenever a current source changes, the default is restored. This will be followed by a uevent, so user-space can decide to update again. Signed-off-by: NeilBrown ne...@suse.de --- drivers/power/twl4030_charger.c | 76

Re: [PATCH] mm: cma: fix CMA aligned offset calculation

2015-02-24 Thread Michal Nazarewicz
On Tue, Feb 24 2015, Danesh Petigara dpetig...@broadcom.com wrote: The CMA aligned offset calculation is incorrect for non-zero order_per_bit values. For example, if cma-order_per_bit=1, cma-base_pfn= 0x2f80 and align_order=12, the function returns a value of 0x17c00 instead of 0x400.

Re: [PATCH 3/3] kernel/sysctl.c: threads-max observe limits

2015-02-24 Thread David Rientjes
On Tue, 24 Feb 2015, Heinrich Schuchardt wrote: Users can change the maximum number of threads by writing to /proc/sys/kernel/threads-max. With the patch the value entered is checked against the same limits that apply when fork_init is called. Correct me if I'm wrong, but this is a

Re: [RFC][PATCH v2] sched/rt: Use IPI to trigger RT task push migration instead of pulling

2015-02-24 Thread Steven Rostedt
On Tue, 24 Feb 2015 13:39:46 -0500 Steven Rostedt rost...@goodmis.org wrote: @@ -1775,6 +1946,15 @@ static int pull_rt_task(struct rq *this_ */ smp_rmb(); + /* Use local just in case a feature is switched in the middle of this */ + if ((use_ipi =

Re: [PATCH 2/5] MIPS: Allow platforms to specify the decompressor load address

2015-02-24 Thread Andrew Bresticker
On Tue, Feb 24, 2015 at 12:15 AM, Arnd Bergmann a...@arndb.de wrote: On Monday 23 February 2015 17:31:44 Andrew Bresticker wrote: Platforms which use raw zboot images may need to link the image at a fixed address if there is no other way to communicate the load address to the bootloader.

Re: [tip:x86/asm] x86/asm: Add support for the pcommit instruction

2015-02-24 Thread H. Peter Anvin
On 02/24/2015 01:30 AM, Borislav Petkov wrote: On Mon, Feb 23, 2015 at 03:14:01PM -0800, H. Peter Anvin wrote: That may cause the same line to be flushed twice. I would suggest, instead, also removing the arithmetic on void *: Btw, should we hold down all those suggested usages somewhere in

[3.13.y-ckt stable] Linux 3.13.11-ckt16

2015-02-24 Thread Kamal Mostafa
I am announcing the release of the Linux 3.13.11-ckt16 kernel. The updated 3.13.y-ckt tree can be found at: git://kernel.ubuntu.com/ubuntu/linux.git linux-3.13.y and can be browsed at: http://kernel.ubuntu.com/git?p=ubuntu/linux.git;h=refs/heads/linux-3.13.y;a=shortlog The diff from

Re: [lm-sensors] [PATCH 1/4] kernel.h: add find_closest() macro

2015-02-24 Thread Phil Pokorny
On Tue, Feb 24, 2015 at 9:42 AM, Bartosz Golaszewski bgolaszew...@baylibre.com wrote: Searching for the member of an array closest to 'x' is duplicated in several places. Add two macros that implement this algorithm for arrays sorted both in ascending and descending order. I don't see the

Re: [tip:x86/asm] x86/asm: Add support for the pcommit instruction

2015-02-24 Thread H. Peter Anvin
On 02/24/2015 01:48 PM, Ross Zwisler wrote: On Tue, 2015-02-24 at 13:41 -0800, H. Peter Anvin wrote: On 02/24/2015 01:40 PM, H. Peter Anvin wrote: On 02/24/2015 01:30 AM, Borislav Petkov wrote: On Mon, Feb 23, 2015 at 03:14:01PM -0800, H. Peter Anvin wrote: That may cause the same line to be

Re: [PATCH RFC 1/4] mm: throttle MADV_FREE

2015-02-24 Thread Shaohua Li
On Tue, Feb 24, 2015 at 04:43:18PM +0100, Michal Hocko wrote: On Tue 24-02-15 17:18:14, Minchan Kim wrote: Recently, Shaohua reported that MADV_FREE is much slower than MADV_DONTNEED in his MADV_FREE bomb test. The reason is many of applications went to stall with direct reclaim since

Re: [PATCH 3.2 055/152] x86_64, switch_to(): Load TLS descriptors before switching DS and ES

2015-02-24 Thread Andy Lutomirski
On Tue, Feb 24, 2015 at 7:47 AM, Denys Vlasenko vda.li...@googlemail.com wrote: On Tue, Feb 17, 2015 at 2:46 AM, Ben Hutchings b...@decadent.org.uk wrote: 3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski l...@amacapital.net

Re: [PATCH 2/4] x86: get rid of KERNEL_STACK_OFFSET

2015-02-24 Thread Denys Vlasenko
On 02/24/2015 08:30 PM, Steven Rostedt wrote: On Tue, 24 Feb 2015 19:51:33 +0100 Denys Vlasenko dvlas...@redhat.com wrote: PER_CPU_VAR(kernel_stack) was set up in a way where it points five stack slots below the top of stack. Presumably, it was done to avoid one sub $5*8,%rsp in

[PATCH 7/8 v2] ARM OMAP2+ GPMC: calculate GPMCFCLKDIVIDER based on WAITMONITORINGTIME

2015-02-24 Thread Robert ABEL
The WAITMONITORINGTIME is expressed as a number of GPMC_CLK clock cycles, even though the access is defined as asynchronous, and no GPMC_CLK clock is provided to the external device. Still, GPMCFCLKDIVIDER is used as a divider for the GPMC clock, so it must be programmed to define the correct

[PATCH 9/8 v2] ARM OMAP2+ GPMC: fix programming/showing reserved timing parameters

2015-02-24 Thread Robert ABEL
GPMC_CONFIG1_i parameters CLKACTIVATIONTIME and WAITMONITORINGTIME have reserved values. Raise an error if calculated timings try to program reserved values. GPMC_CONFIG1_i ATTCHEDDEVICEPAGELENGTH and DEVICESIZE were already checked when parsing the DT. Explicitly comment invalid values on

[PATCH 4/8 v2] ARM OMAP2+ GPMC: fix debug output alignment

2015-02-24 Thread Robert ABEL
GPMC debug output is aligned to 10 characters for field names. However, some fields have bigger names, screwing up the alignment. Consequently, alignment was changed to longest field name (17 chars) for now. Signed-off-by: Robert ABEL ra...@cit-ec.uni-bielefeld.de --- drivers/memory/omap-gpmc.c

[PATCH 0/8 v2] ARM OMAP2+ GPMC: fixes and bus children

2015-02-24 Thread Robert ABEL
These are the changes I proposed in two separate patchsets #([1], [2]) rebased to 3.19 as well as new changes for little bugs I noticed while preparing this patchset. 1. DEBUG was undefined in source code -- remove offending lines 2. add capability to have busses as children of the GPMC and

[PATCH 8/8 v2] ARM OMAP2+ GPMC: fix WAITMONITORINGTIME divider bug

2015-02-24 Thread Robert ABEL
The WAITMONITORINGTIME is expressed as a number of GPMC_CLK clock cycles, even though the access is defined as asynchronous, and no GPMC_CLK clock is provided to the external device. Still, GPMCFCLKDIVIDER is used as a divider for the GPMC clock, so it must be programmed to define the correct

Re: [PATCH v2 00/15] x86, alternatives: Instruction padding and more robust JMPs

2015-02-24 Thread Andy Lutomirski
On Tue, Feb 24, 2015 at 3:14 AM, Borislav Petkov b...@alien8.de wrote: From: Borislav Petkov b...@suse.de [ Changelog is in version-increasing number so that one can follow the evolution of the patch set in a more natural way (i.e., latest version comes at the end. ] v0: this is

Re: [PATCH] mm: hide per-cpu lists in output of show_mem()

2015-02-24 Thread David Rientjes
On Fri, 20 Feb 2015, Konstantin Khlebnikov wrote: diff --git a/include/linux/mm.h b/include/linux/mm.h index 028565a..0538de0 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1126,6 +1126,7 @@ extern void pagefault_out_of_memory(void); * various contexts. */ #define

[PATCH 1/4] pinctrl: tegra: driver layout/consistency fixes

2015-02-24 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com Various non-semantic tweaks and layout/consistency fixes for existing Tegra pinctrl drivers. Move the definition of DRV_PINGROUP_REG() before the definition of PINGROUP() so that a future SoC driver can invoke the former from the latter. PINGROUP_BIT_Y(n)

Re: [RESEND PATCH 3/4] hwmon: (lm85) replace x_TO_REG() functions with find_closest()

2015-02-24 Thread Guenter Roeck
On Tue, Feb 24, 2015 at 06:48:28PM +0100, Bartosz Golaszewski wrote: Replace RANGE_TO_REG() and FREQ_TO_REG() functions with calls to find_closest(). Signed-off-by: Bartosz Golaszewski bgolaszew...@baylibre.com --- drivers/hwmon/lm85.c | 43 --- 1

Re: [RESEND PATCH] af_packet: don't pass empty blocks for PACKET_V3

2015-02-24 Thread David Miller
From: Alexander Drozdov al.droz...@gmail.com Date: Tue, 24 Feb 2015 08:18:28 +0300 Before da413eec729d (packet: Fixed TPACKET V3 to signal poll when block is closed rather than every packet) poll listening for an af_packet socket was not signaled if there was no packets to process. After the

Re: [RFC v1 0/5] fs/locks: Use plain percpu spinlocks instead of lglock to protect file_lock

2015-02-24 Thread Jeff Layton
On Tue, 24 Feb 2015 16:58:26 +0100 Daniel Wagner daniel.wag...@bmw-carit.de wrote: On 02/20/2015 05:05 PM, Andi Kleen wrote: Daniel Wagner daniel.wag...@bmw-carit.de writes: I am looking at how to get rid of lglock. Reason being -rt is not too happy with that lock, especially that it

Re: [tip:x86/asm] x86/asm: Add support for the pcommit instruction

2015-02-24 Thread Ross Zwisler
On Tue, 2015-02-24 at 13:41 -0800, H. Peter Anvin wrote: On 02/24/2015 01:40 PM, H. Peter Anvin wrote: On 02/24/2015 01:30 AM, Borislav Petkov wrote: On Mon, Feb 23, 2015 at 03:14:01PM -0800, H. Peter Anvin wrote: That may cause the same line to be flushed twice. I would suggest,

[PATCH 3/8 v2] ARM OMAP2+ GPMC: add bus children

2015-02-24 Thread Robert ABEL
This patch adds support for spawning busses as children of the GPMC. Signed-off-by: Robert ABEL ra...@cit-ec.uni-bielefeld.de --- drivers/memory/omap-gpmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c index

[PATCH 5/8 v2] ARM OMAP2+ GPMC: change get_gpmc_timing_reg output for DTS

2015-02-24 Thread Robert ABEL
DTS output was formatted to require additional work when copy-pasting into DTS. Nano-second timings were removed, because they were not a confidence interval nor an indication what timing values would result in the same #ticks Signed-off-by: Robert ABEL ra...@cit-ec.uni-bielefeld.de ---

[PATCH 6/8 v2] ARM OMAP2+ GPMC: always program GPMCFCLKDIVIDER

2015-02-24 Thread Robert ABEL
The WAITMONITORINGTIME is expressed as a number of GPMC_CLK clock cycles, even though the access is defined as asynchronous, and no GPMC_CLK clock is provided to the external device. Still, GPMCFCLKDIVIDER is used as a divider for the GPMC clock, so it must be programmed to define the correct

Re: [PATCH V2] (gpio-fan): Add thermal control hooks

2015-02-24 Thread Nishanth Menon
On Tue, Feb 24, 2015 at 1:55 PM, Guenter Roeck li...@roeck-us.net wrote: On Tue, Feb 24, 2015 at 03:29:35PM -0400, Eduardo Valentin wrote: Guenter, On Thu, Jan 08, 2015 at 08:48:40PM -0800, Guenter Roeck wrote: On 01/08/2015 10:05 AM, Nishanth Menon wrote: Allow gpio-fan to be used as

Re: [PATCH] mm, oom: do not fail __GFP_NOFAIL allocation if oom killer is disbaled

2015-02-24 Thread David Rientjes
On Tue, 24 Feb 2015, Johannes Weiner wrote: On Tue, Feb 24, 2015 at 07:19:24PM +0100, Michal Hocko wrote: Tetsuo Handa has pointed out that __GFP_NOFAIL allocations might fail after OOM killer is disabled if the allocation is performed by a kernel thread. This behavior was introduced from

Re: [PATCH 0/4] Enhancements to twl4030 phy to support better charging.

2015-02-24 Thread Tony Lindgren
* NeilBrown ne...@suse.de [150223 19:45]: Hi, the following 4 patches make some improvements to the twl4030 phy. Together with some other patches I have for twl4030_charger, they allow for better automatic control of charging. In particular, the status of the ID pin is assessed and the

[PATCH 3/4] pinctrl: tegra: support nvidia,io-hv DT property

2015-02-24 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com Both nvidia,io-hv and nvidia,rcv-sel represent the fact that a particular pin's IO buffers are configured to accept high voltage input signals. The TRM for different chips names the register field rcv-sel on older SoCs and io_hv on newer SoCs. Add the new

Re: [PATCH] mm: readahead: get back a sensible upper limit

2015-02-24 Thread Rafael Aquini
On Tue, Feb 24, 2015 at 12:50:20PM -0800, David Rientjes wrote: On Tue, 24 Feb 2015, Rafael Aquini wrote: commit 6d2be915e589 (mm/readahead.c: fix readahead failure for memoryless NUMA nodes and limit readahead pages)[1] imposed 2 mB hard limits to readahead by changing

Re: [PATCH 3/3] kernel/sysctl.c: threads-max observe limits

2015-02-24 Thread Heinrich Schuchardt
On 24.02.2015 22:17, David Rientjes wrote: On Tue, 24 Feb 2015, Heinrich Schuchardt wrote: Users can change the maximum number of threads by writing to /proc/sys/kernel/threads-max. With the patch the value entered is checked against the same limits that apply when fork_init is called.

Re: [PATCH v3 3/4] mm: cma: add list of currently allocated CMA buffers to debugfs

2015-02-24 Thread Michal Nazarewicz
On Tue, Feb 24 2015, Stefan Strogin s.stro...@partner.samsung.com wrote: When CONFIG_CMA_BUFFER_LIST is configured a file is added to debugfs: /sys/kernel/debug/cma/cma-N/buffers contains a list of currently allocated CMA buffers for each CMA region (N stands for number of CMA region). Format

  1   2   3   4   5   6   7   8   9   10   >