Re: [PATCH v2 2/4] gpio: add LP3943 I2C GPIO expander driver

2013-08-07 Thread Linus Walleij
On Tue, Jul 30, 2013 at 2:42 AM, Kim, Milo wrote: > This is one of LP3943 MFD driver. > LP3943 is configurable as a GPIO expander, up to 16 GPIOs. > > * Application note: how to configure LP3943 as a GPIO expander > http://www.ti.com/lit/an/snva287a/snva287a.pdf > > * Supported GPIO controller

[PATCH] IB/qib: make qib_driver static

2013-08-07 Thread Paul Bolle
struct pci_driver qib_driver is only used in qib_init.c. Remove it from qib.h and make it static for qib_init.c. Signed-off-by: Paul Bolle --- Compile tested only. drivers/infiniband/hw/qib/qib.h | 1 - drivers/infiniband/hw/qib/qib_init.c | 2 +- 2 files changed, 1 insertion(+), 2 deletio

Re: [PATCH 4/4] x86/jump-label: Show where and what was wrong on errors

2013-08-07 Thread H. Peter Anvin
On 08/07/2013 11:41 AM, Borislav Petkov wrote: > On Wed, Aug 07, 2013 at 10:51:43AM -0700, H. Peter Anvin wrote: >> A bigger issue is probably if panic-on-bug should be the default, with >> !panic being an opt-in debugging option. > > Yes, it might make sense although embedded wants to disable CON

Re: WARNING: CPU: 26 PID: 93793 at fs/ext4/inode.c:230 ext4_evict_inode+0x4c9/0x500 [ext4]() still in 3.11-rc3

2013-08-07 Thread Jan Kara
On Wed 07-08-13 11:08:43, Davidlohr Bueso wrote: > Hi Jan, > > On Wed, 2013-08-07 at 17:20 +0200, Jan Kara wrote: > > On Thu 01-08-13 20:58:46, Davidlohr Bueso wrote: > > > On Thu, 2013-08-01 at 22:33 +0200, Jan Kara wrote: > > > > Hi, > > > > > > > > On Thu 01-08-13 13:14:19, Davidlohr Bueso w

Re: [PATCH v2 1/1] input: ideapad_slidebar: new input driver

2013-08-07 Thread Dmitry Torokhov
Hi Andrey, On Wed, Aug 07, 2013 at 03:25:34PM +0400, Andrey Moiseev wrote: > +/* Keyboard handler */ > +static irq_handler_t kbd_irq_handler(int irq, void *dev_id, > +struct pt_regs *regs) > +{ > +/* Scancodes: e03b on move, bb on release */ > +int scancode = inb(0x60);

Re: [PATCH v3 05/11] syslog_ns: make permisiion check per user namespace

2013-08-07 Thread Ben Hutchings
On Wed, 2013-08-07 at 15:37 +0800, Rui Xiang wrote: > Use ns_capable to check capability in user ns, > instead of capable function. The user ns is the > owner of current syslog ns. > > Signed-off-by: Rui Xiang > --- > kernel/printk.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >

Re: [PATCH 4/4] x86/jump-label: Show where and what was wrong on errors

2013-08-07 Thread Borislav Petkov
On Wed, Aug 07, 2013 at 10:51:43AM -0700, H. Peter Anvin wrote: > A bigger issue is probably if panic-on-bug should be the default, with > !panic being an opt-in debugging option. Yes, it might make sense although embedded wants to disable CONFIG_BUG on systems which cannot report errors: │ CON

Re: [PATCH 04/10] idr: Percpu ida

2013-08-07 Thread Kent Overstreet
On Wed, Aug 07, 2013 at 05:56:34PM +, Christoph Lameter wrote: > On Wed, 7 Aug 2013, Kent Overstreet wrote: > > > +{ > > + DEFINE_WAIT(wait); > > + struct percpu_ida_cpu *tags; > > + unsigned long flags; > > + unsigned this_cpu; > > + int tag; > > + > > + local_irq_save(flags); >

Re: [PATCH] kernel/sysctl_binary.c: improve the usage of return value 'result'

2013-08-07 Thread Eric W. Biederman
Chen Gang writes: > Firstly, sorry for replying late, and also thank you for your detail > patient reply. > > On 08/07/2013 03:45 PM, Eric W. Biederman wrote: >> Chen Gang writes: >> >>> On 08/07/2013 05:46 AM, Eric W. Biederman wrote: Chen Gang writes: Have you tested this code

Re: linux-next: Tree for Aug 7

2013-08-07 Thread Phil Sutter
On Wed, Aug 07, 2013 at 10:47:13AM -0700, David Miller wrote: > From: Eric Dumazet > Date: Wed, 07 Aug 2013 09:40:09 -0700 > > > On Wed, 2013-08-07 at 18:22 +0200, Johannes Berg wrote: > > > >> Maybe. I haven't tested it, but I'm thinking that skb->data doesn't > >> point to the start of the dat

Re: [PATCH] usb: phy: Cleanup error code in **_usb_get_phy_**() APIs

2013-08-07 Thread Julius Werner
> @@ -94,11 +94,11 @@ static int devm_usb_phy_match(struct device *dev, void > *res, void *match_data) > */ > struct usb_phy *devm_usb_get_phy(struct device *dev, enum usb_phy_type type) > { > - struct usb_phy **ptr, *phy; > + struct usb_phy *phy = ERR_PTR(-ENOMEM), **ptr; This l

Re: [PATCH 16/17] Add EFI stub for ARM

2013-08-07 Thread Leif Lindholm
On Wed, Aug 07, 2013 at 07:05:54PM +0100, Dave Martin wrote: > Is it possible for this allocation to fail -- i.e., because UEFI has > put us in an unsuitable location which is within the first 128MB of > RAM, such that we can't pick a suitable location without overlap? > > For the time being thoug

Re: [PATCH V4] drivers/rtc/rtc-palmas.c: support for backup battery charging

2013-08-07 Thread Laxman Dewangan
On Wednesday 07 August 2013 10:08 PM, Mark Rutland wrote: On Wed, Aug 07, 2013 at 11:29:52AM +0100, Laxman Dewangan wrote: +Optional properties: +- ti,back-battery-charge-enable: The Palmas series device like TPS65913 or + TPS80036 supports the battery backup for powering the RTC when main

Re: [PATCH v4 8/9] pci: Tune secondary bus reset timing

2013-08-07 Thread Alexander Duyck
On 08/06/2013 07:56 PM, Alex Williamson wrote: > On Tue, 2013-08-06 at 16:27 -0700, Alexander Duyck wrote: >> On 08/05/2013 12:37 PM, Alex Williamson wrote: >>> The PCI spec indicates that with stable power, reset needs to be >>> asserted for a minimum of 1ms (Trst). Seems like we should be able >

Re: [PATCH 1/2] pinctrl: pinconf_generic: add utility functions for add map/configs

2013-08-07 Thread Linus Walleij
On Fri, Jul 26, 2013 at 7:36 PM, Stephen Warren wrote: > On 07/26/2013 04:15 AM, Laxman Dewangan wrote: >> Some of pincontrol driver needs the utility function to create map >> list. The utility function needed for adding mux, configs etc. It is a noble goal to unify this and thank you *very* muc

Re: [PATCH 1/1] pinctrl: sunxi: Fix incorrect NULL check

2013-08-07 Thread Linus Walleij
On Mon, Jul 29, 2013 at 10:19 AM, Sachin Kamat wrote: > *map should be tested for NULL instead of map as kmalloc pointer > is assigned to it. This also fixes a potential null pointer dereference > bug later in the code. > > Signed-off-by: Sachin Kamat > Cc: Maxime Ripard Patch applied with Max

[PATCH] mtd: onenand: omap: remove two unused functions

2013-08-07 Thread Paul Bolle
Nothing calls omap2_onenand_rephase(). And __adjust_timing() is only called by omap2_onenand_rephase(). Remove these two unused functions. Signed-off-by: Paul Bolle --- Completely untested. drivers/mtd/onenand/omap2.c | 22 -- 1 file changed, 22 deletions(-) diff --git a/dr

Re: [PATCH v2 1/2] mm: make vmstat_update periodic run conditional

2013-08-07 Thread Christoph Lameter
Is there any work in progress on this issue? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 14/27] drivers/pinctrl: don't check resource with devm_ioremap_resource

2013-08-07 Thread Linus Walleij
On Tue, Jul 23, 2013 at 8:01 PM, Wolfram Sang wrote: > devm_ioremap_resource does sanity checks on the given resource. No need to > duplicate this in the driver. > > Signed-off-by: Wolfram Sang > --- > Please apply via the subsystem-tree. Patch applied, but I had to drop the hunk to the imx dri

Re: [RFC 0/1] drm/pl111: Initial drm/kms driver for pl111

2013-08-07 Thread Rob Clark
On Wed, Aug 7, 2013 at 1:33 PM, Tom Cooksey wrote: > >> >> > Didn't you say that programmatically describing device placement >> >> > constraints was an unbounded problem? I guess we would have to >> >> > accept that it's not possible to describe all possible constraints >> >> > and instead find a

[PATCH 1/1] audit_alloc: clear TIF_SYSCALL_AUDIT if !audit_context

2013-08-07 Thread Oleg Nesterov
If audit_filter_task() nacks the new thread it makes sense to clear TIF_SYSCALL_AUDIT which can be copied from parent by dup_task_struct(). A wrong TIF_SYSCALL_AUDIT is not really bad, but it triggers the "slow" audit paths in entry.S. Signed-off-by: Oleg Nesterov --- kernel/auditsc.c |4 ++

[PATCH 0/1] audit_alloc: clear TIF_SYSCALL_AUDIT if !audit_context

2013-08-07 Thread Oleg Nesterov
Even if I am right the problem is really minor, the patch should be ignored without the authoritative acks. I am only sending it because I am curious, and I would like to ask another question about audit. search_binary_handler()->audit_bprm(bprm) looks a bit strange, and I can't understand if th

Re: WARNING: CPU: 26 PID: 93793 at fs/ext4/inode.c:230 ext4_evict_inode+0x4c9/0x500 [ext4]() still in 3.11-rc3

2013-08-07 Thread Davidlohr Bueso
Hi Jan, On Wed, 2013-08-07 at 17:20 +0200, Jan Kara wrote: > On Thu 01-08-13 20:58:46, Davidlohr Bueso wrote: > > On Thu, 2013-08-01 at 22:33 +0200, Jan Kara wrote: > > > Hi, > > > > > > On Thu 01-08-13 13:14:19, Davidlohr Bueso wrote: > > > > FYI I'm seeing loads of the following messages with

Re: [PATCH] pinctrl: msm: Add support for MSM TLMM pinmux

2013-08-07 Thread Hanumant Singh
On 7/29/2013 4:39 PM, Bjorn Andersson wrote: On Wed, Jul 24, 2013 at 1:41 PM, Hanumant Singh wrote: Add a new device tree enabled pinctrl driver for Qualcomm MSM SoC's. This driver provides an extensible framework to interface all MSM's that use a TLMM pinmux, with the pinctrl subsytem. Thank

Re: [PATCH 3/6] ARM: Tegra: Enable OPP library

2013-08-07 Thread Viresh Kumar
On 7 August 2013 23:13, Stephen Warren wrote: > On 08/07/2013 08:46 AM, Viresh Kumar wrote: >> cpufreq-cpu0 driver is dependent on OPP library and hence we need to enable >> it >> for Tegra as we are going to use cpufreq-cpu0. > > Shouldn't these be selected by something in drivers/cpufreq/Kconfi

Re: [PATCH 16/17] Add EFI stub for ARM

2013-08-07 Thread Dave Martin
On Tue, Aug 06, 2013 at 08:45:12PM -0700, Roy Franz wrote: > This patch adds EFI stub support for the ARM Linux kernel. The EFI stub > operations similarly to the x86 stub: it is a shim between the EFI firmware > and the normal zImage entry point, and sets up the environment that the > zImage is e

Re: [PATCH 2/6] ARM: Tegra: Add CPU's OPPs for using cpufreq-cpu0 driver

2013-08-07 Thread Viresh Kumar
On 7 August 2013 23:12, Stephen Warren wrote: > On 08/07/2013 08:46 AM, Viresh Kumar wrote: >> cpufreq-cpu0 driver needs OPPs to be present in DT which can be probed by it >> to >> get frequency table. This patch adds OPPs and clock-latency to tegra cpu0 >> node >> for multiple SoCs. >> >> Volta

Re: [RFC 0/3] Add madvise(..., MADV_WILLWRITE)

2013-08-07 Thread Andy Lutomirski
On Wed, Aug 7, 2013 at 10:40 AM, Dave Hansen wrote: > On 08/07/2013 06:40 AM, Jan Kara wrote: >> One question before I look at the patches: Why don't you use fallocate() >> in your application? The functionality you require seems to be pretty >> similar to it - writing to an already allocated bl

Re: [PATCH 5/6] ARM: Tegra: start using cpufreq-cpu0 driver

2013-08-07 Thread Viresh Kumar
On 7 August 2013 23:23, Stephen Warren wrote: > That link only describes why we shouldn't have a dedicated compatible > value for cpufreq. I certainly agree with that. However, I think it's > reasonable that whatever code binds to: > > compatible = "arm,cortex-a9"; > > ... should instantia

Re: [RFC][PATCH 2/2] x86/jump labels: Use etiher 5 byte or 2 byte jumps

2013-08-07 Thread Steven Rostedt
On Wed, 2013-08-07 at 13:36 -0400, Steven Rostedt wrote: > plain text document attachment > (0002-x86-jump-labels-Use-etiher-5-byte-or-2-byte-jumps.patch) > From: Steven Rostedt > > Have the jump labels add a "jmp" in the assembly instead > of a default nop. This will cause the assembler to put i

Re: [Linaro-mm-sig] [RFC 0/1] drm/pl111: Initial drm/kms driver for pl111

2013-08-07 Thread Alex Deucher
On Wed, Aug 7, 2013 at 1:33 PM, Tom Cooksey wrote: > >> >> > Didn't you say that programmatically describing device placement >> >> > constraints was an unbounded problem? I guess we would have to >> >> > accept that it's not possible to describe all possible constraints >> >> > and instead find a

Re: [PATCH 04/10] idr: Percpu ida

2013-08-07 Thread Christoph Lameter
On Wed, 7 Aug 2013, Kent Overstreet wrote: > +{ > + DEFINE_WAIT(wait); > + struct percpu_ida_cpu *tags; > + unsigned long flags; > + unsigned this_cpu; > + int tag; > + > + local_irq_save(flags); > + this_cpu = smp_processor_id(); > + tags = per_cpu_ptr(pool->tag_c

Re: [PATCH 1/6] clk: Tegra: Add CPU0 clock driver

2013-08-07 Thread Viresh Kumar
On 7 August 2013 23:18, Stephen Warren wrote: > On 08/07/2013 11:45 AM, Viresh Kumar wrote: >> On 7 August 2013 23:08, Stephen Warren wrote: >>> On 08/07/2013 08:46 AM, Viresh Kumar wrote: This patch adds CPU0's clk driver for Tegra. It will be used by the generic cpufreq-cpu0 driver to

[RFC][PATCH 3/2] x86/jump labels: Count and display the short jumps used

2013-08-07 Thread Steven Rostedt
On Wed, 2013-08-07 at 13:36 -0400, Steven Rostedt wrote: > As I said, I would post the patches that let the jmps used by jump labels > be turn to 2 bytes where possible. These are a bit controversial due > to the complexity of the update_jump_label code. > > These patches are based off of tip's x8

Re: [PATCH 5/6] ARM: Tegra: start using cpufreq-cpu0 driver

2013-08-07 Thread Stephen Warren
On 08/07/2013 11:49 AM, Viresh Kumar wrote: > On 7 August 2013 23:16, Stephen Warren wrote: >> On 08/07/2013 08:46 AM, Viresh Kumar wrote: >>> cpufreq-cpu0 driver can be probed over DT only if a corresponding device >>> node is >>> created for the SoC which wants to use it. Lets create a platform

Re: [PATCH 4/4] x86/jump-label: Show where and what was wrong on errors

2013-08-07 Thread H. Peter Anvin
On 08/07/2013 10:46 AM, Steven Rostedt wrote: > On Wed, 2013-08-07 at 19:37 +0200, Borislav Petkov wrote: >> On Wed, Aug 07, 2013 at 01:33:06PM -0400, Steven Rostedt wrote: >>> Right, and this code keeps the same logic as it was before. If it was >>> disabled by CONFIG_EXPERT, it stays disabled, bu

Re: [PATCH] ACPI: Try harder to resolve _ADR collisions for bridges

2013-08-07 Thread Bjorn Helgaas
On Tue, Aug 6, 2013 at 5:00 PM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > In theory, under a given ACPI namespace node there should be only > one child device object with _ADR whose value matches a given bus > address exactly. In practice, however, there are systems in which > multi

Re: [PATCH 5/6] ARM: Tegra: start using cpufreq-cpu0 driver

2013-08-07 Thread Viresh Kumar
On 7 August 2013 23:16, Stephen Warren wrote: > On 08/07/2013 08:46 AM, Viresh Kumar wrote: >> cpufreq-cpu0 driver can be probed over DT only if a corresponding device >> node is >> created for the SoC which wants to use it. Lets create a platform device for >> cpufreq-cpu0 driver for Tegra. >> >

Re: [PATCH 1/6] clk: Tegra: Add CPU0 clock driver

2013-08-07 Thread Stephen Warren
On 08/07/2013 11:45 AM, Viresh Kumar wrote: > On 7 August 2013 23:08, Stephen Warren wrote: >> On 08/07/2013 08:46 AM, Viresh Kumar wrote: >>> This patch adds CPU0's clk driver for Tegra. It will be used by the generic >>> cpufreq-cpu0 driver to get/set cpu clk. >>> >>> Most of the platform specif

Re: [edk2] Corrupted EFI region

2013-08-07 Thread Laszlo Ersek
On 08/07/13 17:19, Borislav Petkov wrote: > On Tue, Aug 06, 2013 at 05:31:29PM +0200, Laszlo Ersek wrote: >> Can you capture the OVMF debug output? Do you see >> >> ConvertPages: Incompatible memory types >> >> there? >> >> Can you set the following bits too in the debug mask? >> >> #define DEBUG

[PATCH 06/10] idr: Rename idr_get_next() -> idr_find_next()

2013-08-07 Thread Kent Overstreet
get() implies taking a ref or sometimes an allocation, which this function definitely does not do - rename it to something more sensible. Signed-off-by: Kent Overstreet Cc: Andrew Morton Cc: Tejun Heo --- drivers/block/drbd/drbd_main.c | 2 +- drivers/block/drbd/drbd_nl.c | 2 +- drivers/mtd

[PATCH 05/10] idr: Kill old deprecated idr interfaces

2013-08-07 Thread Kent Overstreet
The deprecated idr interfaces don't have any in kernel users, so let's delete them as prep work for the idr rewrite. Signed-off-by: Kent Overstreet Cc: Andrew Morton Cc: Tejun Heo --- include/linux/idr.h | 63 - lib/idr.c | 36 +++--

[PATCH 08/10] idr: Reimplement idr on top of ida/radix trees

2013-08-07 Thread Kent Overstreet
The old idr code was really a second radix tree implementation - we already have one in lib/radix-tree.c. This patch reimplements idr on top of our existing radix trees, using our shiny new ida implementation for allocating/freeing the ids. The old idr code was noticably slower than lib/radix-tree

Re: [PATCH 5/6] ARM: Tegra: start using cpufreq-cpu0 driver

2013-08-07 Thread Stephen Warren
On 08/07/2013 08:46 AM, Viresh Kumar wrote: > cpufreq-cpu0 driver can be probed over DT only if a corresponding device node > is > created for the SoC which wants to use it. Lets create a platform device for > cpufreq-cpu0 driver for Tegra. > > Also it removes the Kconfig entry responsible to com

Re: [PATCH 4/4] x86/jump-label: Show where and what was wrong on errors

2013-08-07 Thread Steven Rostedt
On Wed, 2013-08-07 at 19:37 +0200, Borislav Petkov wrote: > On Wed, Aug 07, 2013 at 01:33:06PM -0400, Steven Rostedt wrote: > > Right, and this code keeps the same logic as it was before. If it was > > disabled by CONFIG_EXPERT, it stays disabled, but at least you get to > > see a warning that your

Re: [PATCH 1/6] clk: Tegra: Add CPU0 clock driver

2013-08-07 Thread Viresh Kumar
On 7 August 2013 23:08, Stephen Warren wrote: > On 08/07/2013 08:46 AM, Viresh Kumar wrote: >> This patch adds CPU0's clk driver for Tegra. It will be used by the generic >> cpufreq-cpu0 driver to get/set cpu clk. >> >> Most of the platform specific bits are picked from tegra-cpufreq.c. > > Hmmm.

Re: [PATCH 3/6] ARM: Tegra: Enable OPP library

2013-08-07 Thread Stephen Warren
On 08/07/2013 08:46 AM, Viresh Kumar wrote: > cpufreq-cpu0 driver is dependent on OPP library and hence we need to enable it > for Tegra as we are going to use cpufreq-cpu0. Shouldn't these be selected by something in drivers/cpufreq/Kconfig? -- To unsubscribe from this list: send the line "unsubs

Re: [PATCH 2/6] ARM: Tegra: Add CPU's OPPs for using cpufreq-cpu0 driver

2013-08-07 Thread Stephen Warren
On 08/07/2013 08:46 AM, Viresh Kumar wrote: > cpufreq-cpu0 driver needs OPPs to be present in DT which can be probed by it > to > get frequency table. This patch adds OPPs and clock-latency to tegra cpu0 node > for multiple SoCs. > > Voltage levels aren't used until now for tegra and so a flat va

Re: linux-next: Tree for Aug 7

2013-08-07 Thread David Miller
From: Eric Dumazet Date: Wed, 07 Aug 2013 09:40:09 -0700 > On Wed, 2013-08-07 at 18:22 +0200, Johannes Berg wrote: > >> Maybe. I haven't tested it, but I'm thinking that skb->data doesn't >> point to the start of the data frame in this case, since we now call >> eth_type_trans() which pulls the

[RFC][PATCH 1/2] jump labels: Add infrastructure to update jump labels at compile time

2013-08-07 Thread Steven Rostedt
From: Steven Rostedt Add the infrastructure to allow architectures to modify the jump label locations at compile time. This is mainly for x86, where the jmps may be either 2 bytes or 5 bytes. Instead of wasting 5 bytes for all jump labels, this code will let x86 put in a jmp instead of a 5 byte n

[RFC][PATCH 0/2] x86/jump labels: Add the 5 byte or 2 byte jumps

2013-08-07 Thread Steven Rostedt
As I said, I would post the patches that let the jmps used by jump labels be turn to 2 bytes where possible. These are a bit controversial due to the complexity of the update_jump_label code. These patches are based off of tip's x86/jumplabel code. But if someone cares to play with it, feel free.

[RFC][PATCH 2/2] x86/jump labels: Use etiher 5 byte or 2 byte jumps

2013-08-07 Thread Steven Rostedt
From: Steven Rostedt Have the jump labels add a "jmp" in the assembly instead of a default nop. This will cause the assembler to put in either a 2 byte or 5 byte jmp depending on where the target lable is. Then at compile time, the update_jump_label code will replace the jmps with either 2 or 5

Re: [PATCH] [TRIVIAL] ARM: msm: fix compilation error in gpiomux

2013-08-07 Thread David Brown
On Wed, Aug 07, 2013 at 08:34:39AM +0200, Krzysztof Kozlowski wrote: Fix compilation error in gpiomux (CONFIG_MSM_GPIOMUX=y): arch/arm/mach-msm/gpiomux.c:24:13: error: static declaration of ‘__msm_gpiomux_write’ follows non-static declaration arch/arm/mach-msm/gpiomux.h:85:6: note: previo

Re: [RFC 0/3] Add madvise(..., MADV_WILLWRITE)

2013-08-07 Thread Dave Hansen
On 08/07/2013 06:40 AM, Jan Kara wrote: > One question before I look at the patches: Why don't you use fallocate() > in your application? The functionality you require seems to be pretty > similar to it - writing to an already allocated block is usually quick. One problem I've seen is that it st

Re: [PATCH 1/6] clk: Tegra: Add CPU0 clock driver

2013-08-07 Thread Stephen Warren
On 08/07/2013 08:46 AM, Viresh Kumar wrote: > This patch adds CPU0's clk driver for Tegra. It will be used by the generic > cpufreq-cpu0 driver to get/set cpu clk. > > Most of the platform specific bits are picked from tegra-cpufreq.c. Hmmm. I'm not sure if it makes sense to represent this as a c

Re: [PATCH 4/4] x86/jump-label: Show where and what was wrong on errors

2013-08-07 Thread Borislav Petkov
On Wed, Aug 07, 2013 at 01:33:06PM -0400, Steven Rostedt wrote: > Right, and this code keeps the same logic as it was before. If it was > disabled by CONFIG_EXPERT, it stays disabled, but at least you get to > see a warning that your kernel may be corrupt now :-) Don't we really want to panic inst

[PATCH 04/10] idr: Percpu ida

2013-08-07 Thread Kent Overstreet
Percpu frontend for allocating ids. With percpu allocation (that works), it's impossible to guarantee it will always be possible to allocate all nr_tags - typically, some will be stuck on a remote percpu freelist where the current job can't get to them. We do guarantee that it will always be possi

[PATCH 03/10] idr: Rewrite ida

2013-08-07 Thread Kent Overstreet
This is a new, from scratch implementation of ida that should be simpler, faster and more space efficient. Two primary reasons for the rewrite: * A future patch will reimplement idr on top of this ida implementation + radix trees. Once that's done, the end result will be ~1k fewer lines of

IDA/IDR rewrite, percpu ida

2013-08-07 Thread Kent Overstreet
Andrew - this should be pretty much identical to the patch series I mailed out during last merge window, except rebased onto 3.11-rc4 and retested. I think the series should be more or less ready to go, and it'd be really nice to get at least the percpu bits in - think you can have a look and pick

Re: [PATCH 4/4] x86/jump-label: Show where and what was wrong on errors

2013-08-07 Thread Steven Rostedt
On Wed, 2013-08-07 at 19:20 +0200, Borislav Petkov wrote: > > > +static void bug_at(unsigned char *ip, int line) > > +{ > > + /* > > +* The location is not an op that we were expecting. > > +* Something went wrong. Crash the box, as something could be > > +* corrupting the kernel.

Re: [PATCH 2/3] memcg: Limit the number of events registered on oom_control

2013-08-07 Thread Michal Hocko
On Wed 07-08-13 16:47:30, Michal Hocko wrote: > On Wed 07-08-13 15:57:34, Michal Hocko wrote: > [...] > > Hmm, OK so you think that the fd limit is sufficient already? > > Hmm, that would need to touch the code as well (the register callback > would need to make sure only one event is registered p

Re: [PATCH 00/11] Add compression support to pstore

2013-08-07 Thread Tony Luck
Oh - one more thing - and my apologies for not spotting this before: dst = allocate_buf_for_compression(big_buf_sz); No - you may not call kmalloc() in oops/panic context. Please pre-allocate everything you need in some initialization code to make sure that we don't fail in the p

Re: [PATCH] ARM: at91/dt: split sam9x5 peripheral definitions

2013-08-07 Thread boris brezillon
Hello Thomas, Sorry for the noise, this mail was filtered by LKML and LAKML beacause thunderbird added HTML contents. On 07/08/2013 18:08, Thomas Petazzoni wrote: Dear Boris BREZILLON, On Wed, 7 Aug 2013 12:14:26 +0200, Boris BREZILLON wrote: This patch splits the sam9x5 peripheral definit

Re: [PATCH 0/1] (Was: Linux 3.11-rc4)

2013-08-07 Thread Oleg Nesterov
On 08/07, Grazvydas Ignotas wrote: > > It's not that wine needs all this, it's the Windows games that use > debug registers to store random values to them for their copy > protection stuff. Thanks. > My wine commits try to sidestep these > kernel restrictions/sanity checking. My point was, it se

Re: [RFC/PATCH 0/2] ext4: Transparent Decompression Support

2013-08-07 Thread Jörn Engel
On Wed, 7 August 2013 03:21:47 -0600, Andreas Dilger wrote: > > I'm not saying that a tool to check this would be a bad thing, but > if the compression support is a generic feature of the VFS, then it > makes sense that the checker can also be generic and unrelated to > the filesystem metadata che

Re: [edk2] Corrupted EFI region

2013-08-07 Thread Andrew Fish
On Aug 7, 2013, at 8:19 AM, Borislav Petkov wrote: > On Tue, Aug 06, 2013 at 05:31:29PM +0200, Laszlo Ersek wrote: >> Can you capture the OVMF debug output? Do you see >> >> ConvertPages: Incompatible memory types >> >> there? >> >> Can you set the following bits too in the debug mask? >> >

Re: [PATCH 4/4] x86/jump-label: Show where and what was wrong on errors

2013-08-07 Thread Borislav Petkov
On Wed, Aug 07, 2013 at 12:49:38PM -0400, Steven Rostedt wrote: > From: Steven Rostedt > > When modifying text sections for jump labels, a paranoid check is > performed. If the check fails, the system "bugs". But why it failed > is not shown. > > The BUG_ON()s in the jump label update code is re

Re: [PATCH 12/17] Add proper definitions for some EFI function pointers.

2013-08-07 Thread Roy Franz
On Wed, Aug 7, 2013 at 6:09 AM, Matt Fleming wrote: > On Tue, 06 Aug, at 08:45:08PM, Roy Franz wrote: >> The x86/AMD64 EFI stubs must us a call wrapper to convert between >> the Linux and EFI ABIs, so void pointers are sufficient. For ARM, >> the ABIs are compatible, so we can directly invoke the

Re: [PATCH 2/3] mfd: sec: Add clock cell for s2mps11

2013-08-07 Thread Mike Turquette
Quoting Yadwinder Singh Brar (2013-07-07 04:44:21) > This patch adds clock to list of mfd cells for s2mps11 and DT documentation > for clock part. > > Signed-off-by: Yadwinder Singh Brar Reviewed-by: Mike Turquette > --- > Documentation/devicetree/bindings/mfd/s2mps11.txt | 20 +

[PATCH] Tools: hv: cache FQDN in kvp_daemon to avoid timeouts

2013-08-07 Thread Olaf Hering
kvp_daemon does some operations which take an unpredicable amount of time. In addition the kernel driver gives the kvp_daemon a 5 second timeout to respond to message from the host. If an operation such as getaddrinfo takes a long time and the timeout triggers then netlink errors occour. As a resul

Re: [PATCH 1/5] pdev: Fix platform device resource linking

2013-08-07 Thread Matt Porter
[trimmed my old email] On Wed, Aug 07, 2013 at 10:37:17AM +0300, Pantelis Antoniou wrote: > Hi Greg, > > On Aug 7, 2013, at 8:56 AM, Greg Kroah-Hartman wrote: > > > On Tue, Aug 06, 2013 at 01:27:35PM +0300, Pantelis Antoniou wrote: > >> Hi Greg, > >> > >> On Aug 6, 2013, at 1:15 PM, Greg Kroah-

Re: [PATCH 04/17] Rename memory allocation/free functions

2013-08-07 Thread Roy Franz
On Wed, Aug 7, 2013 at 6:09 AM, Matt Fleming wrote: > On Tue, 06 Aug, at 08:45:00PM, Roy Franz wrote: >> Rename them to be more similar, as low_free() could be used to free >> memory allocated by both high_alloc() and low_alloc(). >> high_alloc() -> efi_high_alloc() >> low_alloc() -> efi_low_allo

[PATCH] Staging:BCM:DDRInit.c:Replacing __FUNCTION__

2013-08-07 Thread Paul McQuade
>From 5b6fbb6496ddc4e428f5dd0950b0617faed6596b Mon Sep 17 00:00:00 2001 From: Paul McQuade Date: Wed, 7 Aug 2013 16:21:16 +0100 Subject: [PATCH] Staging:BCM:DDRInit.c:Replacing __FUNCTION__ __func__ replaces __Function__. Signed-off-by: Paul McQuade --- drivers/staging/bcm/DDRInit.c | 58 +

Re: [PATCH 03/17] Add system pointer argument to shared EFI stub related functions so they no longer use global system table pointer as they did when part of eboot.c.

2013-08-07 Thread Roy Franz
On Wed, Aug 7, 2013 at 6:08 AM, Matt Fleming wrote: > On Tue, 06 Aug, at 08:44:59PM, Roy Franz wrote: >> Signed-off-by: Roy Franz >> --- >> arch/x86/boot/compressed/eboot.c | 38 +++-- >> drivers/firmware/efi/efi-stub-helper.c | 96 >> +--- >> 2 fil

Re: [PATCH] pinctrl: pinmux: Don't free pins requested by other devices

2013-08-07 Thread Stephen Warren
On 08/07/2013 10:23 AM, Linus Walleij wrote: > On Wed, Jul 17, 2013 at 7:31 AM, Sonic Zhang wrote: > > I'd like Stephen and Axel to have a look at this as well... > >> From: Sonic Zhang >> >> in pinmux_disable_setting after current device fails to request >> the same pins. >> >> Signed-off-by:

Re: [PATCH 1/3 v5] usb: phy-samsung-usb: Simplify PMU register handling

2013-08-07 Thread Julius Werner
> This breaks compatibility, both for an old kernel and a new dt and a new > kernel with an old dt. Is anyone using these bindings? They only affect Samsung SoCs and have only been upstream for half a year, so I doubt it's heavily used. > Why are we describing fewer registers now? Are they descri

Re: [PATCH V5] pci: exynos: split into two parts such as Synopsys part and Exynos part

2013-08-07 Thread Bjorn Helgaas
On Tue, Aug 6, 2013 at 10:13 PM, Jingoo Han wrote: > On Wednesday, July 31, 2013 5:14 PM, Jingoo Han wrote: >> Exynos PCIe IP consists of Synopsys specific part and Exynos >> specific part. Only core block is a Synopsys designware part; >> other parts are Exynos specific. >> Also, the Synopsys de

Re: [RFC 0/3] Add madvise(..., MADV_WILLWRITE)

2013-08-07 Thread Andy Lutomirski
On Wed, Aug 7, 2013 at 6:40 AM, Jan Kara wrote: > On Mon 05-08-13 12:43:58, Andy Lutomirski wrote: >> My application fallocates and mmaps (shared, writable) a lot (several >> GB) of data at startup. Those mappings are mlocked, and they live on >> ext4. The first write to any given page is slow b

[PATCH 4/4] x86/jump-label: Show where and what was wrong on errors

2013-08-07 Thread Steven Rostedt
From: Steven Rostedt When modifying text sections for jump labels, a paranoid check is performed. If the check fails, the system "bugs". But why it failed is not shown. The BUG_ON()s in the jump label update code is replaced with bug_at(ip). This is a function that will show what pointer failed,

Re: BUG cxgb3: Check and handle the dma mapping errors

2013-08-07 Thread Divy Le ray
On 08/05/2013 11:41 AM, Jay Fenlason wrote: On Mon, Aug 05, 2013 at 12:59:04PM +1000, Alexey Kardashevskiy wrote: Hi! Recently I started getting multiple errors like this: cxgb3 0006:01:00.0: iommu_alloc failed, tbl c3067980 vaddr c01fbdaaa882 npages 1 cxgb3 0006:01:00.0: iommu_all

Re: rcu stall warning, again.

2013-08-07 Thread Paul E. McKenney
On Wed, Aug 07, 2013 at 01:05:11AM -0400, Dave Jones wrote: > Still seeing these (though not as frequently) > > > INFO: rcu_preempt self-detected stall on CPU { 2} (t=6500 jiffies g=4433279 > c=4433278 q=0) > sending NMI to all CPUs: > NMI backtrace for cpu 0 > CPU: 0 PID: 0 Comm: swapper/0 Not

Re: [PATCH] clocksource: add an "menu" item to Kconfig

2013-08-07 Thread John Stultz
On 08/07/2013 09:30 AM, Sebastian Andrzej Siewior wrote: On 08/07/2013 06:21 PM, John Stultz wrote: On 08/07/2013 03:56 AM, Sebastian Andrzej Siewior wrote: This patch adds a menu item to clocksource' Kconfig file. Without it the changeable items look somehow lost in the main drivers' menu So

Re: [PATCH 1/2] kernel/sys.c: return the current gid when error occurs

2013-08-07 Thread Andy Lutomirski
On Wed, Aug 7, 2013 at 9:21 AM, Oleg Nesterov wrote: > On 08/06, Andy Lutomirski wrote: >> >> I assume that what the man page means is that the return value is >> whatever fsgid was prior to the call. On error, fsgid isn't changed, so >> the return value is still "current". > > Probably... Still

Re: Can we drop __must_check from driver_for_each_device()?

2013-08-07 Thread Paul Bolle
On Wed, 2013-08-07 at 14:51 +0900, Greg Kroah-Hartman wrote: > On Tue, Aug 06, 2013 at 10:31:25PM +0200, Paul Bolle wrote: > > On Fri, 2013-08-02 at 08:31 +0800, Greg Kroah-Hartman wrote: > > > On Wed, Jul 31, 2013 at 11:35:13PM +0200, Paul Bolle wrote: > > > > 2) Please note that if the callback a

Re: [PATCH] ARM: at91: add missing uart clocks DT entries

2013-08-07 Thread Douglas Gilbert
On 13-08-07 12:29 PM, Boris BREZILLON wrote: Add clocks to clock lookup table for uart DT entries. Signed-off-by: Boris BREZILLON Tested-by: Douglas Gilbert -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More ma

Re: [RFC v02 5/5] Introduce Intel RAPL power capping driver

2013-08-07 Thread Joe Perches
On Wed, 2013-08-07 at 09:12 -0700, Srinivas Pandruvada wrote: > RAPL(Running Average Power Limit) interface provides platform software > with the ability to monitor, control, and get notifications on SOC > power consumptions. trivial notes: > diff --git a/drivers/powercap/intel_rapl.c b/drivers/p

[PATCH 1/4] x86/jump-label: Use best default nops for inital jump label calls

2013-08-07 Thread Steven Rostedt
From: Steven Rostedt As specified by H. Peter Anvin, the best nops for x86 without knowing the running computer is: 32bit: 0x3e, 0x8d, 0x74, 0x26, 0x00 also known as GENERIC_NOP5_ATOMIC 64bit: 0x0f, 0x1f, 0x44, 0x00, 0x00 also known as P6_NOP5_ATOMIC Currently the default nop that is used

Re: linux-next: Tree for Aug 7

2013-08-07 Thread Eric Dumazet
On Wed, 2013-08-07 at 18:22 +0200, Johannes Berg wrote: > Maybe. I haven't tested it, but I'm thinking that skb->data doesn't > point to the start of the data frame in this case, since we now call > eth_type_trans() which pulls the ethernet header. So if the device just > transmits skb->len starti

Re: [PATCH 7/8] rcu: add # of deferred _special() statistics

2013-08-07 Thread Paul E. McKenney
On Wed, Aug 07, 2013 at 06:25:03PM +0800, Lai Jiangshan wrote: > Signed-off-by: Lai Jiangshan > --- > kernel/rcutree.h|1 + > kernel/rcutree_plugin.h |1 + > kernel/rcutree_trace.c |1 + > 3 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/kernel/rcutree.h b/k

[PATCH 2/4] x86/jump-label: Do not bother updating nops if they are correct

2013-08-07 Thread Steven Rostedt
From: Steven Rostedt On boot up, the jump label init function scans all the jump label locations and converts them to the best nop for the machine. If the nop is already the ideal nop, do not bother with changing it. Cc: Jason Baron Cc: H. Peter Anvin Signed-off-by: Steven Rostedt --- arch/x

[PATCH 0/4] [GIT PULL][3.12] x86/jump-label: Clean ups and safety checks

2013-08-07 Thread Steven Rostedt
Peter, These 4 patches were taken from the patchset that did the 2-5 byte jumps, but had nothing to do with the 2-5 byte jumps itself. They were clean ups and safety checks that were needed for the jump code. Although the 2-5 byte jump code is controversial, these cleanups are not. The first cha

[PATCH 3/4] x86/jump-label: Add safety checks to jump label conversions

2013-08-07 Thread Steven Rostedt
From: Steven Rostedt As with all modifying of kernel text, we need to be very paranoid. When converting the jump label locations to and from nops to jumps a check has been added to make sure what we are replacing is what we expect, otherwise we bug. Cc: H. Peter Anvin Cc: Jason Baron Signed-o

Re: [PATCH 1/1] module: fix sprintf format specifier in param_get_byte()

2013-08-07 Thread Jon Mason
On Wed, Aug 07, 2013 at 04:13:57PM +0930, Rusty Russell wrote: > Christoph Jaeger writes: > > In param_get_byte(), to which the macro STANDARD_PARAM_DEF(byte, ...) > > expands, > > "%c" is used to print an unsigned char. So it gets printed as a character > > what > > is not intended here. Use "%

Re: [PATCH v2 1/2] ALSA: Added jack detection KControl support

2013-08-07 Thread Mark Brown
On Fri, Aug 02, 2013 at 12:59:24AM -0700, Felipe F. Tonello wrote: > +int jack_ctl_integer_info(struct snd_kcontrol *kcontrol, > + struct snd_ctl_elem_info *uinfo) > +{ > + uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; > + uinfo->count = 0x1U; > + uinfo->value

Re: [PATCH 1/6] clk: Tegra: Add CPU0 clock driver

2013-08-07 Thread Mike Turquette
Quoting Viresh Kumar (2013-08-07 07:46:43) > This patch adds CPU0's clk driver for Tegra. It will be used by the generic > cpufreq-cpu0 driver to get/set cpu clk. > > Most of the platform specific bits are picked from tegra-cpufreq.c. > > Signed-off-by: Viresh Kumar Hi Viresh, It is nice to se

Re: [PATCH 1/2] hwmon: (lm90) Add power control

2013-08-07 Thread Guenter Roeck
On Wed, Aug 07, 2013 at 10:06:30AM -0600, Stephen Warren wrote: > On 08/07/2013 03:35 AM, Wei Ni wrote: > > On 08/07/2013 04:45 PM, Alexander Shiyan wrote: > >>> On 08/07/2013 03:50 PM, Guenter Roeck wrote: > On 08/07/2013 12:32 AM, Wei Ni wrote: > > On 08/07/2013 03:27 PM, Alexander Shiya

Re: [PATCH] ARM: dts: Fix memory node in skeleton64.dtsi

2013-08-07 Thread Jason Cooper
On Tue, Aug 06, 2013 at 06:33:06PM -0700, Stepan Moskovchenko wrote: > Update the reg property of the memory node in > skeleton64.dtsi to reflect the fact that the root node uses > address-cells=2 and size-cells=2. > > Change-Id: Ie9b61166143969e020ceebc51e9a384405d8c0f2 > Signed-off-by: Stepan Mo

Re: [PATCH V4] drivers/rtc/rtc-palmas.c: support for backup battery charging

2013-08-07 Thread Mark Rutland
On Wed, Aug 07, 2013 at 11:29:52AM +0100, Laxman Dewangan wrote: > Palmas series device like TPS65913, TPS80036 supports the backup battery > for powering the RTC when no other energy source is available. > > The backup battery is optional, connected to the VBACKUP pin, and can be > nonrechargeabl

Re: linux-next: Tree for Aug 7

2013-08-07 Thread Eric Dumazet
On Wed, 2013-08-07 at 18:12 +0200, Johannes Berg wrote: > On Wed, 2013-08-07 at 17:59 +0200, Phil Sutter wrote: > > > The idea behind this patch is that users setting the protocol to > > something else probably do know better and so should be left alone. > > Regardless of that, I think that still

Re: [PATCH v2] [SCSI] sg: Fix user memory corruption when SG_IO is interrupted by a signal

2013-08-07 Thread Douglas Gilbert
On 13-08-07 11:50 AM, Roland Dreier wrote: On Wed, Aug 7, 2013 at 7:38 AM, David Milburn wrote: I was able to succesfully test this patch overnight, I had been experimenting with the sg driver setting the BIO_NULL_MAPPED flag in sg_rq_end_io_usercontext for a orphan process which prevented th

<    1   2   3   4   5   6   7   8   9   >