Re: Question about kernel interfaces

2015-01-21 Thread One Thousand Gnomes
On Sun, 18 Jan 2015 15:03:55 +0530 Let's say you need to call an ioctl from a shell script ( I know its a very rare use case but please bear with me ... :) ) So the current way of doing it is probably to write a C program which actually calls the ioctl and then call the C program from the

Re: [PATCH] of: Custom printk format specifier for device node

2015-01-21 Thread Joe Perches
On Wed, 2015-01-21 at 19:39 +0200, Pantelis Antoniou wrote: Hi Joe, On Jan 21, 2015, at 19:37 , Joe Perches j...@perches.com wrote: On Wed, 2015-01-21 at 19:06 +0200, Pantelis Antoniou wrote: 90% of the usage of device node's full_name is printing it out in a kernel message.

[PATCH v2] net: stmmac: add BQL support

2015-01-21 Thread Beniamino Galvani
Add support for Byte Queue Limits to the STMicro MAC driver. Tested on a Amlogic S802 quad Cortex-A9 board, where the use of BQL decreases the latency of a high priority ping from ~12ms to ~1ms when the 100Mbit link is saturated by 20 TCP streams. Signed-off-by: Beniamino Galvani

Re: [PATCH v2 1/3] asus-laptop: fix is_visible return value

2015-01-21 Thread Darren Hart
On Sun, Jan 18, 2015 at 06:25:24PM -0500, Vivien Didelot wrote: With a Lucid platform, asus_sysfs_is_visible() returned a boolean for ls_switch and ls_level attributes. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com Queued, thanks. ---

Re: [PATCH 11/11] usb: core: fix a race with usb_queue_reset_device()

2015-01-21 Thread Alan Stern
On Wed, 21 Jan 2015, Olivier Sobrie wrote: I tested your patch. It also fixes the problem I observed. You can drop mine. For your info: My test consists in powering down a usb hso modem while one of its serial port is opened. It leads to two URB failures, each urb callback queues a

Re: [PATCH 08/36] perf build: Add builtin objects building

2015-01-21 Thread Jiri Olsa
On Wed, Jan 21, 2015 at 11:52:07AM -0700, David Ahern wrote: On 1/20/15 9:39 AM, Jiri Olsa wrote: Move the rest of builtin objects (bench and test are already in) building under build framework. Signed-off-by: Jiri Olsa jo...@kernel.org Cc: Alexis Berlemont alexis.berlem...@gmail.com Cc:

[PATCH v2 1/3] ASoC: core: export snd_soc_get_dai_name

2015-01-21 Thread Jean-Francois Moine
snd_soc_get_dai_name() may be used to define a sound card with a different syntax from the one of the simple-card. Signed-off-by: Jean-Francois Moine moin...@free.fr --- include/sound/soc.h | 2 ++ sound/soc/soc-core.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git

Re: [PATCHv3 1/2] usb: ehci-platform: add support for multiple phys per controller

2015-01-21 Thread Arun Ramamurthy
Thanks Alan. I did run check patch and I had no errors or warnings. I explained my changes in v3 in the cover patch, did that not come through or is it convention to do it in the individual patch? Is the ack for the ohci patch as well? Thanks Arun Ramamurthy On 15-01-21 07:03 AM, Alan

Re: [alsa-devel][PATCH 2/3] ASoC: fsl_sai: Add support for tdm slots operation

2015-01-21 Thread Nicolin Chen
On Tue, Jan 20, 2015 at 08:21:19PM +0800, Zidan Wang wrote: @@ -369,10 +380,25 @@ static int fsl_sai_hw_params(struct snd_pcm_substream *substream, u32 word_width = snd_pcm_format_width(params_format(params)); u32 val_cr4 = 0, val_cr5 = 0; int ret; + u32 bclk; + +

Re: [PATCH v2 0/4] toshiba_acpi: Add support for USB Sleep functions

2015-01-21 Thread Darren Hart
On Wed, Jan 21, 2015 at 11:21:06AM -0700, Azael Avalos wrote: Hi there, Sorry for the late reply. 2015-01-20 4:15 GMT-07:00 Oliver Neukum oneu...@suse.de: On Sun, 2015-01-18 at 18:30 -0700, Azael Avalos wrote: The following patches add support to several USB Sleep functions found on

Re: [RFC][PATCH 4/5] tracing: Have mkdir and rmdir be part of tracefs

2015-01-21 Thread Steven Rostedt
The update to the missing tracefs.h. -- Steve --- include/linux/tracefs.h | 8 diff --git a/include/linux/tracefs.h b/include/linux/tracefs.h index 23e04ce21749..f8c58ab18bca 100644 --- a/include/linux/tracefs.h +++ b/include/linux/tracefs.h @@ -34,6 +34,14 @@ struct dentry

Re: [PATCHv2 1/4] x86_64: cleanup THREAD_INFO(reg,offset) macro

2015-01-21 Thread Alexander van Heukelum
On Wed, Jan 21, 2015, at 19:04, Borislav Petkov wrote: On Wed, Jan 21, 2015 at 05:20:09PM +0100, Alexander van Heukelum wrote: On Wed, Jan 21, 2015, at 14:40, Denys Vlasenko wrote: On Sun, Jan 18, 2015 at 12:45 PM, Alexander van Heukelum heuke...@fastmail.fm wrote: The macro

[PATCH v2 0/3] ASoC: add audio card creation from graph of ports in DT

2015-01-21 Thread Jean-Francois Moine
This patchset adds a way to build audio cards from the description of a graph of ports in a devicetree. v2: - move the soc-core and dt-card from the patchset ASoC: tda998x: add a codec to the HDMI transmitter - add DT documentation (Mark Brown) Jean-Francois Moine

Re: [PATCH] lib/kstrtox.c break if overflow is detected

2015-01-21 Thread Levente Kurusa
Hi, On Wed, Jan 21, 2015 at 11:26:26AM -0800, Anshul Garg wrote: From: Anshul Garg aksgarg1...@gmail.com 1. While converting string representation to integer break the loop if overflow is detected. 2. Clean kstrtoll function Signed-off-by: Anshul Garg aksgarg1...@gmail.com ---

Re: [PATCH] MAINTAINERS: Update rydberg's addresses

2015-01-21 Thread Henrik Rydberg
Hi Benjamin, - there is a fragmentation problem: we would have to fix the bug in xorg-synaptics (which is slowly waiting for its death), libinput, ChromeOS, Qt Embedded, Kivy (I think), etc... Indeed, this is the problem I wanted to highlight. As the fragmentation problem grows (graphics,

Re: [PATCH v4 3/3] perf: Sample additional clock value

2015-01-21 Thread Pawel Moll
On Wed, 2015-01-21 at 17:44 +, John Stultz wrote: That said, there is the dynamic posix clockids. I'm not sure if it would make sense, but even if we don't bump MAX_CLOCKS, might there be some case where someone wants to use a dynamic posix clock for the perf reference? If I remember

[PATCH v2] ARM: qcom: Fix SCM interface for big-endian kernels

2015-01-21 Thread Stephen Boyd
The secure environment only runs in little-endian mode, so any buffers shared with the secure environment should have their contents converted to little-endian. We also mark such elements with __le32 to allow sparse to catch such problems. Signed-off-by: Stephen Boyd sb...@codeaurora.org ---

[PATCH] lib/kstrtox.c break if overflow is detected

2015-01-21 Thread Anshul Garg
From: Anshul Garg aksgarg1...@gmail.com 1. While converting string representation to integer break the loop if overflow is detected. 2. Clean kstrtoll function Signed-off-by: Anshul Garg aksgarg1...@gmail.com --- lib/kstrtox.c | 28 +--- 1 file changed, 13

Re: [PATCH] of: Custom printk format specifier for device node

2015-01-21 Thread Pantelis Antoniou
Hi Joe, On Jan 21, 2015, at 19:37 , Joe Perches j...@perches.com wrote: On Wed, 2015-01-21 at 19:06 +0200, Pantelis Antoniou wrote: 90% of the usage of device node's full_name is printing it out in a kernel message. Preparing for the eventual delayed allocation introduce a custom printk

Re: linux-next: Tree for Jan 20 -- Kernel panic - Unable to mount root fs

2015-01-21 Thread Guenter Roeck
On 01/21/2015 09:38 AM, Al Viro wrote: On Wed, Jan 21, 2015 at 11:16:23AM -0500, Paul Moore wrote: On Wednesday, January 21, 2015 04:54:07 PM Sabrina Dubroca wrote: 2015-01-21, 16:39:12 +0100, Thierry Reding wrote: That doesn't seem to help, at least in my case. Same here. Okay, thanks

Re: [PATCH 08/36] perf build: Add builtin objects building

2015-01-21 Thread Jiri Olsa
On Wed, Jan 21, 2015 at 12:18:57PM -0700, David Ahern wrote: On 1/21/15 12:12 PM, Jiri Olsa wrote: hum I can't reproduce, but I can see why I'm using a 16-cpu box, so perf build defaults to 16 jobs. Perhaps you are getting lucky with the build ordering? yea probably.. I tested commit by

Re: [PATCH 3/5] PCI: st: Provide support for the sti PCIe controller

2015-01-21 Thread Arnd Bergmann
On Wednesday 21 January 2015 16:47:36 Gabriel Fernandez wrote: On 19 January 2015 at 14:49, Arnd Bergmann a...@arndb.de wrote: On Monday 19 January 2015 13:37:33 Gabriel Fernandez wrote: On 17 December 2014 at 23:14, Arnd Bergmann a...@arndb.de wrote: On Wednesday 17 December 2014 11:34:44

[PATCH 2/2] ARM: qcom: Use secondary_startup_arm()

2015-01-21 Thread Stephen Boyd
On qcom platforms we always enter the kernel in ARM mode, regardless of the kernel being compiled for THUMB mode. Use secondary_startup_arm() to properly switch the mode to what the kernel expects if required. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-qcom/platsmp.c | 4

[PATCH 1/2] ARM: Add a secondary_startup that assumes ARM mode

2015-01-21 Thread Stephen Boyd
Some platforms always enter the kernel in ARM mode even if the kernel is compiled for THUMB2. Add a small wrapper on top of secondary_startup() that switches into THUMB2 mode. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/kernel/head.S | 7 +++ 1 file changed, 7 insertions(+)

Re: [PATCH v7 1/4] Documentation: dt: add common bindings for hwspinlock

2015-01-21 Thread Suman Anna
On 01/21/2015 06:41 AM, Ohad Ben-Cohen wrote: On Tue, Jan 20, 2015 at 8:05 PM, Tony Lindgren t...@atomide.com wrote: How about default to Linux id space and allow overriding that with a module param option if needed? I'm not sure I'm following. If the main point of contention is the

Re: linux-next: Tree for Jan 20 -- Kernel panic - Unable to mount root fs

2015-01-21 Thread Al Viro
On Wed, Jan 21, 2015 at 05:32:13AM -0800, Guenter Roeck wrote: Another data point (though I have no idea if it is useful or what it means): In the working case, path_init sets nd-flags to 0x50 or 0x51. In the non-working case (ie for all files with a '/' in the name), it sets nd-flags to

Re: [PATCH v2] net: stmmac: add BQL support

2015-01-21 Thread Eric Dumazet
On Wed, 2015-01-21 at 19:07 +0100, Beniamino Galvani wrote: Add support for Byte Queue Limits to the STMicro MAC driver. Tested on a Amlogic S802 quad Cortex-A9 board, where the use of BQL decreases the latency of a high priority ping from ~12ms to ~1ms when the 100Mbit link is saturated by

Re: [PATCH] dell-laptop: use dedicated sysfs file for ALS

2015-01-21 Thread Darren Hart
On Sun, Jan 18, 2015 at 07:34:17PM +0100, Gabriele Mazzotta wrote: On Sunday 18 January 2015 10:08:21 Darren Hart wrote: On Wed, Jan 14, 2015 at 03:07:21PM +0100, Gabriele Mazzotta wrote: Hi, I decided to remove als from input_triggers and created a dedicated sysfs file for it.

[PATCH v2 0/1] x86: Add IMR support to Quark/Galileo

2015-01-21 Thread Bryan O'Donoghue
This patchset adds support for Isolated Memory Regions to the kernel. Quark SoC X1000 contains a set of registers called Isolated Memory Regions. IMRs provide fine grained memory access control to various system agents within the SoC such as CPU SMM/non-SMM mode, PCIe virtual channels, CPU snoop

Re: [PATCH 08/36] perf build: Add builtin objects building

2015-01-21 Thread David Ahern
On 1/20/15 9:39 AM, Jiri Olsa wrote: Move the rest of builtin objects (bench and test are already in) building under build framework. Signed-off-by: Jiri Olsa jo...@kernel.org Cc: Alexis Berlemont alexis.berlem...@gmail.com Cc: Arnaldo Carvalho de Melo a...@redhat.com Cc: Borislav Petkov

[PATCH] ARM: qcom: Drop unnecessary selects from ARCH_QCOM

2015-01-21 Thread Stephen Boyd
We don't need to force gpiolib on everyone given that it isn't required to actually boot the device and the multiplatform Kconfig already selects ARCH_WANT_OPTIONAL_GPIOLIB. CLKSRC_OF is already selected by CONFIG_ARCH_MULTIPLATFORM too, so we can drop that here. Signed-off-by: Stephen Boyd

Re: [PATCH v3 2/3] mfd: lubbock_io: add lubbock_io board

2015-01-21 Thread Robert Jarzmik
Lee Jones lee.jo...@linaro.org writes: Very well, Russell and yourself have convinced me. If you fixup the remainder of comments, I'm happy. Cool. Let me a couple of days to gather my wits, cross-check I have not forgotten a comment, make some testing on the board and then post v4. Cheers.

Re: [PATCH v4 3/6] arm64: Kprobes with single stepping support

2015-01-21 Thread David Long
On 01/19/15 04:03, Pratyush Anand wrote: On Saturday 17 January 2015 12:58 AM, David Long wrote: +static bool aarch64_insn_is_steppable(u32 insn) +{ + if (aarch64_get_insn_class(insn) == AARCH64_INSN_CLS_BR_SYS) { + if (aarch64_insn_is_branch(insn)) +

Re: [PATCH v4 3/3] perf: Sample additional clock value

2015-01-21 Thread John Stultz
On Wed, Jan 21, 2015 at 9:54 AM, Pawel Moll pawel.m...@arm.com wrote: On Wed, 2015-01-21 at 17:44 +, John Stultz wrote: That said, there is the dynamic posix clockids. I'm not sure if it would make sense, but even if we don't bump MAX_CLOCKS, might there be some case where someone wants to

Re: [PATCH v2 3/3] asus-laptop: cleanup is_visible

2015-01-21 Thread Darren Hart
On Tue, Jan 20, 2015 at 01:20:36PM -0500, Vivien Didelot wrote: Hi Corentin, Use the attribute indexes and concise the if statements. Why ? I really don't see that as an improvement. The improvement is code clarity and maintainability. I'm not use we want to keep multiple returns

Re: [RFC][PATCH 1/5] tracefs: Add new tracefs file system

2015-01-21 Thread Steven Rostedt
I need to learn how to use git better :-/ I forgot to git add include/linux/tracefs.h: -- Steve --- include/linux/tracefs.h| 41 create mode 100644 include/linux/tracefs.h diff --git a/include/linux/tracefs.h b/include/linux/tracefs.h new file mode 100644 index

Re: [PATCH net-next v13 5/5] openvswitch: Add support for unique flow IDs.

2015-01-21 Thread Pravin Shelar
On Tue, Jan 20, 2015 at 10:32 AM, Joe Stringer joestrin...@nicira.com wrote: Previously, flows were manipulated by userspace specifying a full, unmasked flow key. This adds significant burden onto flow serialization/deserialization, particularly when dumping flows. This patch adds an

Re: [PATCH] spmi: pmic_arb: add support for hw version 2

2015-01-21 Thread Stephen Boyd
On 01/19/2015 05:10 PM, Gilad Avidov wrote: Qualcomm PMIC Arbiter version-2 changes from version-1 are: - Some diffrent register offsets. s/diffrent/different/ - New channel register space, one per PMIC peripheral (ppid). All tx tarffic uses these channels. s/tarffic/traffic/ - New

[PATCH 0/3] Drivers: hv: vmbus: fix crashes on hv_vmbus load/unload path

2015-01-21 Thread Vitaly Kuznetsov
It is possible (since 93e5bd06a953: Drivers: hv: Make the vmbus driver unloadable) to unload hv_vmbus driver if no other devices are connected. 1aec169673d7: x86: Hyperv: Cleanup the irq mess fixed doulble interrupt gate setup. However, if we try to unload hv_vmbus and then load it back crashes in

Re: [PATCH v2 0/5] clean up and generalize swap-over-NFS

2015-01-21 Thread Omar Sandoval
On Tue, Jan 13, 2015 at 07:18:36PM -0800, Omar Sandoval wrote: On Fri, Dec 19, 2014 at 07:18:24PM -0800, Omar Sandoval wrote: Hi, This patch series (based on ecb5ec0 in Linus' tree) contains all of the non-BTRFS work that I've done to implement swapfiles on BTRFS. The BTRFS portion is

Re: [PATCH 1/3] mfd/axp20x: change battery cell name to fuel gauge

2015-01-21 Thread Todd E Brandt
On Tue, Jan 20, 2015 at 11:47:25AM +, Lee Jones wrote: On Wed, 07 Jan 2015, Todd E Brandt wrote: mfd/axp20x: change battery cell name to fuel gauge Name changes to the battery cell structure to a more generic cell type: fuel gauge. Signed-off-by: Todd Brandt

[PATCH v2 3/3] ASoC: add generic dt-card support

2015-01-21 Thread Jean-Francois Moine
This patch adds a generic way to create audio cards from a graph of ports defined in a DT. The dt-card devices are created by audio controllers with themselves as the root of the graph and the sound cards are created according to the parameters found in the tree. Signed-off-by: Jean-Francois

[PATCH v2 2/3] Documentation: of: Document audio graph bindings

2015-01-21 Thread Jean-Francois Moine
This patch adds a document describing common OF bindings for audio devices. Signed-off-by: Jean-Francois Moine moin...@free.fr --- .../devicetree/bindings/sound/audio-interfaces.txt | 101 + 1 file changed, 101 insertions(+) create mode 100644

Re: [PATCH v4 1/3] perf: Use monotonic clock as a source for timestamps

2015-01-21 Thread Pawel Moll
On Wed, 2015-01-21 at 15:52 +, Pawel Moll wrote: On Mon, 2015-01-05 at 13:00 +, Peter Zijlstra wrote: On Thu, Nov 06, 2014 at 04:51:56PM +, Pawel Moll wrote: Documentation/kernel-parameters.txt | 9 + kernel/events/core.c| 37

[PATCH 0/2] Fix secondary CPU boot for thumb2 kernels

2015-01-21 Thread Stephen Boyd
Currently I can't boot up secondary CPUs on qcom platforms when I compile the kernel for THUMB2 mode. This is because we always enter the kernel in ARM mode regardless of what mode the kernel is compiled for. This patchset adds a small wrapper to secondary_startup() called secondary_startup_arm()

Re: [PATCH 3/5] PCI: st: Provide support for the sti PCIe controller

2015-01-21 Thread Lucas Stach
Am Mittwoch, den 21.01.2015, 20:35 +0100 schrieb Arnd Bergmann: On Wednesday 21 January 2015 16:47:36 Gabriel Fernandez wrote: On 19 January 2015 at 14:49, Arnd Bergmann a...@arndb.de wrote: On Monday 19 January 2015 13:37:33 Gabriel Fernandez wrote: On 17 December 2014 at 23:14, Arnd

Re: [PATCH] of: Custom printk format specifier for device node

2015-01-21 Thread Måns Rullgård
Pantelis Antoniou pa...@antoniou-consulting.com writes: Hi Joe, On Jan 21, 2015, at 19:37 , Joe Perches j...@perches.com wrote: On Wed, 2015-01-21 at 19:06 +0200, Pantelis Antoniou wrote: 90% of the usage of device node's full_name is printing it out in a kernel message. Preparing for the

Re: [PATCH v2 0/4] toshiba_acpi: Add support for USB Sleep functions

2015-01-21 Thread Azael Avalos
Hi there, Sorry for the late reply. 2015-01-20 4:15 GMT-07:00 Oliver Neukum oneu...@suse.de: On Sun, 2015-01-18 at 18:30 -0700, Azael Avalos wrote: The following patches add support to several USB Sleep functions found on newer Toshiba laptops, allowing to use the USB ports while the laptop

Re: [RFC PATCH v3 1/2] drivers: pci: fix pci_mmap_fits() implementation for procfs mmap

2015-01-21 Thread Lorenzo Pieralisi
Hi Bjorn, On Fri, Nov 21, 2014 at 05:51:14PM +, Bjorn Helgaas wrote: On Thu, Nov 13, 2014 at 11:19:15AM +, Lorenzo Pieralisi wrote: The introduction of pci_mmap_fits() in commit: b5ff7df3df9efab511244d5a299fce706c71af48 Check mapped ranges on sysfs resource files allowed to

Re: [PATCH v2] drm/i2c: tda998x: Set the CEC I2C address based on the slave I2C address.

2015-01-21 Thread Liviu Dudau
On Fri, Nov 07, 2014 at 08:31:25AM +, Andrew Jackson wrote: The I2C address for the TDA9989 and TDA19989 is fixed at 0x34 but the two LSBs of the TDA19988's address are set by two configuration pins on the chip. Irrespective of the chip, the associated CEC peripheral's I2C address is

Re: [alsa-devel][PATCH 3/3] ASoC: fsl_sai: Add support for Right-J mode

2015-01-21 Thread Nicolin Chen
On Tue, Jan 20, 2015 at 08:21:20PM +0800, Zidan Wang wrote: Add Right-J mode and set TCR5 FBT bit to let data right justify. Signed-off-by: Zidan Wang zidan.w...@freescale.com - if (sai-is_lsb_first) + if (sai-is_lsb_first sai-is_right_j_mode) val_cr5 |=

perf: easily crash kernel with rapl event close

2015-01-21 Thread Vince Weaver
Hello on my haswell system, running 3.19-rc5, and with echo 0 /proc/sys/kernel/perf_event_paranoid I can easily crash my system with the attached test program that simply opens a RAPL event and then closes it. This bug was found by the perf_fuzzer. It looks like somehow rapl_pmu gets

Re: [PATCH 08/36] perf build: Add builtin objects building

2015-01-21 Thread David Ahern
On 1/21/15 12:12 PM, Jiri Olsa wrote: hum I can't reproduce, but I can see why I'm using a 16-cpu box, so perf build defaults to 16 jobs. Perhaps you are getting lucky with the build ordering? -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [PATCH] SATA: OCTEON: support SATA on OCTEON platform

2015-01-21 Thread David Daney
On 01/21/2015 08:54 AM, Mark Rutland wrote: On Mon, Jan 19, 2015 at 07:16:28PM +, David Daney wrote: [...] @@ -67,6 +76,7 @@ static const struct of_device_id ahci_of_match[] = { { .compatible = ibm,476gtr-ahci, }, { .compatible = snps,dwc-ahci, }, { .compatible =

Re: [PATCH v4 3/3] perf: Sample additional clock value

2015-01-21 Thread John Stultz
On Wed, Jan 21, 2015 at 9:12 AM, Pawel Moll pawel.m...@arm.com wrote: On Mon, 2015-01-05 at 13:45 +, Peter Zijlstra wrote: On Thu, Nov 06, 2014 at 04:51:58PM +, Pawel Moll wrote: Currently three clocks are implemented: CLOCK_REALITME = 0, CLOCK_MONOTONIC = 1 and CLOCK_MONOTONIC_RAW =

Re: [PATCHv2 1/4] x86_64: cleanup THREAD_INFO(reg,offset) macro

2015-01-21 Thread Borislav Petkov
On Wed, Jan 21, 2015 at 05:20:09PM +0100, Alexander van Heukelum wrote: On Wed, Jan 21, 2015, at 14:40, Denys Vlasenko wrote: On Sun, Jan 18, 2015 at 12:45 PM, Alexander van Heukelum heuke...@fastmail.fm wrote: The macro THREAD_INFO(reg,offset) is used in assembly to compute the offset

Re: [PATCH v2 2/3] asus-laptop: use DEVICE_ATTR_* macros

2015-01-21 Thread Darren Hart
On Sun, Jan 18, 2015 at 06:25:25PM -0500, Vivien Didelot wrote: Use DEVICE_ATTR_{RO,WO,RW} macros to simplify attributes declarations. It does a lot more than that, including a lot of seemingly superfluous reformatting of function declarations and renaming. -- Darren Hart Intel Open Source

[PATCH v2 1/1] x86: Add Isolated Memory Regions for Quark X1000

2015-01-21 Thread Bryan O'Donoghue
Intel's Quark X1000 SoC contains a set of registers called Isolated Memory Regions. IMRs are accessed over the IOSF mailbox interface. IMRs are areas carved out of memory that define read/write access rights to the various system agents within the Quark system. For a given agent in the system it

Re: [PATCH v2] drm/i2c: tda998x: Set the CEC I2C address based on the slave I2C address.

2015-01-21 Thread Russell King - ARM Linux
On Wed, Jan 21, 2015 at 06:44:05PM +, Liviu Dudau wrote: On Fri, Nov 07, 2014 at 08:31:25AM +, Andrew Jackson wrote: The I2C address for the TDA9989 and TDA19989 is fixed at 0x34 but the two LSBs of the TDA19988's address are set by two configuration pins on the chip. Irrespective

Re: [RFCv2 1/2] device: add dma_params-max_segment_count

2015-01-21 Thread Robin Murphy
Hi Sumit, On 21/01/15 04:16, Sumit Semwal wrote: From: Rob Clark robdcl...@gmail.com For devices which have constraints about maximum number of segments in an sglist. For example, a device which could only deal with contiguous buffers would set max_segment_count to 1. The initial motivation

[PATCH 3/3] Drivers: hv: vmbus: teardown hv_vmbus_con workqueue and vmbus_connection pages on shutdown

2015-01-21 Thread Vitaly Kuznetsov
We need to destroy hv_vmbus_con on module shutdown, otherwise the following crash is sometimes observed: [ 76.569845] hv_vmbus: Hyper-V Host Build:9600-6.3-17-0.17039; Vmbus version:3.0 [ 82.598859] BUG: unable to handle kernel paging request at a0003480 [ 82.599287] IP:

[PATCH 1/3] Drivers: hv: vmbus: avoid double kfree for device_obj

2015-01-21 Thread Vitaly Kuznetsov
On driver shutdown device_obj is being freed twice: 1) In vmbus_free_channels() 2) vmbus_device_release() (which is being triggered by device_unregister() in vmbus_device_unregister(). This double kfree leads to the following sporadic crash on driver unload: [ 23.469876] general protection

[PATCH 2/3] Drivers: hv: vmbus: introduce vmbus_acpi_remove

2015-01-21 Thread Vitaly Kuznetsov
In case we do request_resource() in vmbus_acpi_add() we need to tear it down to be able to load the driver again. Otherwise the following crash in oberved when hv_vmbus unload/load sequence is performed on Generation2 instance: [ 38.165701] BUG: unable to handle kernel paging request at

Re: linux-next: Tree for Jan 20 -- Kernel panic - Unable to mount root fs

2015-01-21 Thread Guenter Roeck
On 01/21/2015 10:29 AM, Al Viro wrote: On Wed, Jan 21, 2015 at 05:32:13AM -0800, Guenter Roeck wrote: Another data point (though I have no idea if it is useful or what it means): In the working case, path_init sets nd-flags to 0x50 or 0x51. In the non-working case (ie for all files with a '/'

Re: [PATCH v2] drm/i2c: tda998x: Set the CEC I2C address based on the slave I2C address.

2015-01-21 Thread Liviu Dudau
On Wed, Jan 21, 2015 at 06:46:58PM +, Russell King - ARM Linux wrote: On Wed, Jan 21, 2015 at 06:44:05PM +, Liviu Dudau wrote: On Fri, Nov 07, 2014 at 08:31:25AM +, Andrew Jackson wrote: The I2C address for the TDA9989 and TDA19989 is fixed at 0x34 but the two LSBs of the

Re: [PATCH net-next v13 5/5] openvswitch: Add support for unique flow IDs.

2015-01-21 Thread Joe Stringer
On 21 January 2015 at 10:31, Pravin Shelar pshe...@nicira.com wrote: On Tue, Jan 20, 2015 at 10:32 AM, Joe Stringer joestrin...@nicira.com wrote: Previously, flows were manipulated by userspace specifying a full, unmasked flow key. This adds significant burden onto flow

Re: [PATCH v7 04/17] ARM64 / ACPI: Introduce early_param for acpi and pass acpi=force to enable ACPI

2015-01-21 Thread Catalin Marinas
On Wed, Jan 21, 2015 at 03:29:52PM +, Jon Masters wrote: On 01/21/2015 10:23 AM, Catalin Marinas wrote: I have some questions for the ACPI and EFI folk: 1. When booting with ACPI, are the EFI run-time services required for anything? If yes, Xen may have a bigger problem Yes. At

[PATCH] Add security hooks to binder and implement the hooks for SELinux.

2015-01-21 Thread Stephen Smalley
Add security hooks to the binder and implement the hooks for SELinux. The security hooks enable security modules such as SELinux to implement controls over binder IPC. The security hooks include support for controlling what process can become the binder context manager (binder_set_context_mgr),

Re: [PATCH v8 2/4] fpga manager: add sysfs interface document

2015-01-21 Thread One Thousand Gnomes
On Thu, 15 Jan 2015 22:54:46 +0200 Pantelis Antoniou pantelis.anton...@konsulko.com wrote: Hi Alan, On Jan 15, 2015, at 22:45 , One Thousand Gnomes gno...@lxorguk.ukuu.org.uk wrote: On Thu, 15 Jan 2015 11:47:26 -0700 Jason Gunthorpe jguntho...@obsidianresearch.com wrote: It is a

Re: [PATCH v6 17/17] Documentation: ACPI for ARM64

2015-01-21 Thread Christoffer Dall
On Wed, Jan 21, 2015 at 08:37:00PM +0800, Hanjun Guo wrote: Hi Christoffer, Sorry for the late reply, I got no answer yet but with one question below. no worries, I think the discussion has moved to Stefano's e-mail:

Re: unclear ipv6 redirect message (was Re: [PATCH v3 2/3] mfd: lubbock_io: add lubbock_io board)

2015-01-21 Thread Russell King - ARM Linux
On Wed, Jan 21, 2015 at 08:05:21AM -0800, Joe Perches wrote: (adding netdev) I wasn't actually reporting that as an issue; I was using it as an example. It's from a very old kernel (2.6.27.21) which I run on one of my old x86 machines. -- FTTC broadband for 0.8mile line: currently at 10.5Mbps

Re: [PATCHv2 1/4] x86_64: cleanup THREAD_INFO(reg,offset) macro

2015-01-21 Thread Alexander van Heukelum
On Wed, Jan 21, 2015, at 14:40, Denys Vlasenko wrote: On Sun, Jan 18, 2015 at 12:45 PM, Alexander van Heukelum heuke...@fastmail.fm wrote: The macro THREAD_INFO(reg,offset) is used in assembly to compute the offset between the user ptregs and the thread_info struct. Change the macro and

Re: [PATCH] net: dsa: set parent of hwmon device

2015-01-21 Thread Vivien Didelot
Hi Guenter, Florian, - ds-hwmon_dev = hwmon_device_register_with_groups(NULL, + ds-hwmon_dev = hwmon_device_register_with_groups(parent, ds-hwmon_name, ds, dsa_hwmon_groups); if (IS_ERR(ds-hwmon_dev))

Re: [PATCH/RFC v10 17/19] DT: Add documentation for exynos4-is 'flashes' property

2015-01-21 Thread Sylwester Nawrocki
Hi, On 09/01/15 16:23, Jacek Anaszewski wrote: This patch adds a description of 'flashes' property to the samsung-fimc.txt. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com --- .../devicetree/bindings/media/samsung-fimc.txt |

Re: [PATCH 8/8] gpio/mpc8xxx: Use of_mm_gpiochip_remove

2015-01-21 Thread Linus Walleij
On Sun, Jan 18, 2015 at 12:39 PM, Ricardo Ribalda Delgado ricardo.riba...@gmail.com wrote: Since d621e8bae5ac9c67 (Create of_mm_gpiochip_remove), there is a counterpart for of_mm_gpiochip_add. This patch implements the remove function of the driver making use of it. Cc: Linus Walleij

[RFC PATCH 1/1] mmc: dw_mmc: Add runtime pm to dw_mmc

2015-01-21 Thread Karol Wrona
This patch adds runtime pm handling to dw_mmc and enables it for dw_mmc-exynos. It mainly uses mci_request/mci_request_end for mmc host state information. Signed-off-by: Karol Wrona k.wr...@samsung.com --- drivers/mmc/host/dw_mmc-exynos.c | 69 --

[RFC PATCH] sched_clock: Avoid tearing during read from NMI

2015-01-21 Thread Daniel Thompson
Currently it is possible for an NMI (or FIQ on ARM) to come in and read sched_clock() whilst update_sched_clock() has half updated the state. This results in a bad time value being observed. This patch fixes that problem in a similar manner to Thomas Gleixner's 4396e058c52e(timekeeping: Provide

Re: [PATCH] SATA: OCTEON: support SATA on OCTEON platform

2015-01-21 Thread Mark Rutland
On Mon, Jan 19, 2015 at 07:16:28PM +, David Daney wrote: On 01/19/2015 07:43 AM, Mark Rutland wrote: On Mon, Jan 19, 2015 at 03:23:58PM +, Aleksey Makarov wrote: The OCTEON SATA controller is currently found on cn71XX devices. Signed-off-by: David Daney david.da...@cavium.com

[PATCH v9 16/17] module: fix types of device tables aliases

2015-01-21 Thread Andrey Ryabinin
MODULE_DEVICE_TABLE() macro used to create aliases to device tables. Normally alias should have the same type as aliased symbol. Device tables are arrays, so they have 'struct type##_device_id[x]' types. Alias created by MODULE_DEVICE_TABLE() will have non-array type - 'struct

Re: [PATCH v6 0/7] Add initial support for DA9150 Charger Fuel-Gauge IC

2015-01-21 Thread Sebastian Reichel
Hi, On Wed, Jan 21, 2015 at 03:46:25PM +, Adam Thomson wrote: This patch set adds initial support for the Dialog DA9150 Integrated Charger Fuel-Gauge IC. The device also provides GPIO and GPADC functionality. In this patch set the following is provided: - MFD Core support and DT

[PATCH v2] checkpatch: add check for the buggy while_each_thread()

2015-01-21 Thread Sergey Dyasly
Now it's preferable to use for_each_thread() instead of while_each_thread(). Add a check to checkpatch.pl in order to prevent any new usages of the buggy while_each_thread() when possible. Cc: Oleg Nesterov o...@redhat.com Cc: Andy Whitcroft a...@canonical.com Cc: Joe Perches j...@perches.com

[RFC][PATCH 0/5] tracing: Add new file system tracefs

2015-01-21 Thread Steven Rostedt
There has been complaints that tracing is tied too much to debugfs, as there are systems that would like to perform tracing, but do not mount debugfs for security reasons. That is because any subsystem may use debugfs for debugging, and these interfaces are not always tested for security.

Re: [PATCH v6 0/7] Add initial support for DA9150 Charger Fuel-Gauge IC

2015-01-21 Thread Jonathan Cameron
On 21 January 2015 16:52:50 GMT+00:00, Sebastian Reichel s...@kernel.org wrote: Hi, On Wed, Jan 21, 2015 at 03:46:25PM +, Adam Thomson wrote: This patch set adds initial support for the Dialog DA9150 Integrated Charger Fuel-Gauge IC. The device also provides GPIO and GPADC

[RFC][PATCH 4/5] tracing: Have mkdir and rmdir be part of tracefs

2015-01-21 Thread Steven Rostedt
From: Steven Rostedt (Red Hat) rost...@goodmis.org The tracing instances directory can create sub tracing buffers with mkdir, and remove them with rmdir. As a mkdir will also create all the files and directories that control the sub buffer the locks needed to be released before doing so to avoid

[RFC][PATCH 3/5] tracing: Automatically mount tracefs on debugfs/tracing

2015-01-21 Thread Steven Rostedt
From: Steven Rostedt (Red Hat) rost...@goodmis.org As tools currently rely on the tracing directory in debugfs, we can not just created a tracefs infrastructure and expect sysadmins to mount the new tracefs to have their old tools work. Instead, the debugfs tracing directory is still created and

[RFC][PATCH 5/5] tracefs: Add directory /sys/kernel/tracing

2015-01-21 Thread Steven Rostedt
From: Steven Rostedt (Red Hat) rost...@goodmis.org When tracefs is configured, have the directory /sys/kernel/tracing appear just like /sys/kernel/debug appears when debugfs is configured. This will give a consistent place for system admins to mount tracefs. Signed-off-by: Steven Rostedt

[PATCH v3 0/1] thermal: rockchip: make temperature reporting much more accurate

2015-01-21 Thread Caesar Wang
This patch is merged on chromiumos/third_party/kernel. https://chromium-review.googlesource.com/#/c/239190/ Tested on veyron boards. Changes in v3: Suggested-by Daniel Kurtz, the check doesn't reject code == 0xfff Fixed in rk_tsadcv2_code_to_temp(u32 code) Changes in v2: Reviewed-by: Dmitry

[PATCH v3] thermal: rockchip: make temperature reporting much more accurate

2015-01-21 Thread Caesar Wang
In general, the kernel should report temperature readings exactly as reported by the hardware. The cpu / gpu thermal driver works in 5 degree increments,but we ought to do more accurate. The temperature will do linear interpolation between the entries in the table. Test= $md5sum /dev/zero $while

Re: [PATCH] of: Custom printk format specifier for device node

2015-01-21 Thread Joe Perches
On Wed, 2015-01-21 at 19:06 +0200, Pantelis Antoniou wrote: 90% of the usage of device node's full_name is printing it out in a kernel message. Preparing for the eventual delayed allocation introduce a custom printk format specifier that is both more compact and more pleasant to the eye.

Re: [patch] cfq-iosched: fix incorrect filing of rt async cfqq

2015-01-21 Thread Jens Axboe
On 01/12/2015 01:21 PM, Jeff Moyer wrote: Hi, If you can manage to submit an async write as the first async I/O from the context of a process with realtime scheduling priority, then a cfq_queue is allocated, but filed into the wrong async_cfqq bucket. It ends up in the best effort array,

Re: linux-next: Tree for Jan 20 -- Kernel panic - Unable to mount root fs

2015-01-21 Thread Al Viro
On Wed, Jan 21, 2015 at 11:16:23AM -0500, Paul Moore wrote: On Wednesday, January 21, 2015 04:54:07 PM Sabrina Dubroca wrote: 2015-01-21, 16:39:12 +0100, Thierry Reding wrote: That doesn't seem to help, at least in my case. Same here. Okay, thanks for trying. Sorry that didn't

Re: [RFC PATCHv2 00/19] power_supply: Allow safe usage of power supply

2015-01-21 Thread Krzysztof Kozlowski
On śro, 2015-01-21 at 16:22 +0100, Sebastian Reichel wrote: Hi Krzysztof, On Mon, Jan 05, 2015 at 04:47:43PM +0100, Krzysztof Kozlowski wrote: This is RFC, please don't apply yet but let me know if this approach is OK. I just reviewed the patchset. It looks fine to me. Great! Thanks

[PATCH 3/3] spi/xilinx: Support for spi mode LOOP

2015-01-21 Thread Ricardo Ribalda Delgado
Hardware supports LOOP mode. Support it also in the driver. Signed-off-by: Ricardo Ribalda Delgado ricardo.riba...@gmail.com --- drivers/spi/spi-xilinx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c index

[PATCH 2/3] spi/xilinx: Support for spi mode LSB_FIRST

2015-01-21 Thread Ricardo Ribalda Delgado
Hardware supports LSB_FIRST mode. Support it also in the driver. Signed-off-by: Ricardo Ribalda Delgado ricardo.riba...@gmail.com --- drivers/spi/spi-xilinx.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c index

[PATCH 0/3] xilinx-spi: Support more spi modes and multiple device tree

2015-01-21 Thread Ricardo Ribalda Delgado
This series of patches add drier support for hardware implemented modes: spi_lsb_fist and spi_loop Also fix an issue when multiple spi devices are defined on a device tree. Ricardo Ribalda Delgado (3): spi/xilinx: Use automatic bus number on device tree spi/xilinx: Support for spi mode

Re: [PATCH 1/2] perf: convert: fix duplicate field names and avoid reserved keywords.

2015-01-21 Thread Jérémie Galarneau
On Wed, Jan 21, 2015 at 9:11 AM, Jiri Olsa jo...@redhat.com wrote: On Wed, Jan 21, 2015 at 11:23:54AM +0800, Wang Nan wrote: Some parameters of syscall tracepoints named as 'nr', 'event', etc. When dealing with them, perf convert to ctf meets some problem: 1. If a parameter with name 'nr',

Re: [PATCH v7 04/17] ARM64 / ACPI: Introduce early_param for acpi and pass acpi=force to enable ACPI

2015-01-21 Thread Jon Masters
On 01/21/2015 10:42 AM, Catalin Marinas wrote: On Wed, Jan 21, 2015 at 03:29:52PM +, Jon Masters wrote: On 01/21/2015 10:23 AM, Catalin Marinas wrote: I have some questions for the ACPI and EFI folk: 1. When booting with ACPI, are the EFI run-time services required for anything? If

Re: [PATCH] backlight: da9052_bl: terminate da9052_wled_ids array with empty element

2015-01-21 Thread Lee Jones
On Wed, 21 Jan 2015, Andrey Ryabinin wrote: Array of platform_device_id elements should be terminated with empty element. Signed-off-by: Andrey Ryabinin a.ryabi...@samsung.com --- drivers/video/backlight/da9052_bl.c | 1 + 1 file changed, 1 insertion(+) Applied, thanks. diff --git

Re: [PATCH v7 04/17] ARM64 / ACPI: Introduce early_param for acpi and pass acpi=force to enable ACPI

2015-01-21 Thread Parth Dixit
On 21 January 2015 at 21:46, Catalin Marinas catalin.mari...@arm.com wrote: On Wed, Jan 21, 2015 at 04:05:33PM +, Jon Masters wrote: On 01/21/2015 10:42 AM, Catalin Marinas wrote: On Wed, Jan 21, 2015 at 03:29:52PM +, Jon Masters wrote: On 01/21/2015 10:23 AM, Catalin Marinas wrote:

Re: [PATCH 1/3] spi/xilinx: Use automatic bus number on device tree

2015-01-21 Thread Ricardo Ribalda Delgado
Hi Lars I think you are right. The other patches on the set are still valid though Thanks! On Wed, Jan 21, 2015 at 5:02 PM, Lars-Peter Clausen l...@metafoo.de wrote: On 01/21/2015 04:53 PM, Ricardo Ribalda Delgado wrote: If there is more than one spi device on a device tree, the second one

  1   2   3   4   5   6   7   8   9   10   >