[PATCH 3.12 06/64] ALSA: seq: Fix race at timer setup and close

2016-02-11 Thread Jiri Slaby
From: Takashi Iwai 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3567eb6af614dac436c4b16a8d426f9faed639b3 upstream. ALSA sequencer code has an open race between the timer setup ioctl and the close of the client. This was triggered by syzka

[PATCH 3.12 05/64] ALSA: seq: Fix missing NULL check at remove_events ioctl

2016-02-11 Thread Jiri Slaby
From: Takashi Iwai 3.12-stable review patch. If anyone has any objections, please let me know. === commit 030e2c78d3a91dd0d27fef37e91950dde333eba1 upstream. snd_seq_ioctl_remove_events() calls snd_seq_fifo_clear() unconditionally even if there is no FIFO assigned, and this leads t

Re: [PATCH RESEND] bfa: deinline __bfa_trc() and __bfa_trc32()

2016-02-11 Thread Martin K. Petersen
> "Denys" == Denys Vlasenko writes: Denys> __bfa_trc() compiles to 115 bytes of machine code. With this Denys> .config: http://busybox.net/~vda/kernel_config there are 1494 Denys> calls of __bfa_trc(). Applied to 4.6/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

[PATCH 3.12 13/64] ALSA: control: Avoid kernel warnings from tlv ioctl with numid 0

2016-02-11 Thread Jiri Slaby
From: Takashi Iwai 3.12-stable review patch. If anyone has any objections, please let me know. === commit c0bcdbdff3ff73a54161fca3cb8b6cdbd0bb8762 upstream. When a TLV ioctl with numid zero is handled, the driver may spew a kernel warning with a stack trace at each call. The chec

Re: [PATCH 1/3] usb: USB Type-C Connector Class

2016-02-11 Thread Heikki Krogerus
On Thu, Feb 11, 2016 at 10:08:14AM +0100, Oliver Neukum wrote: > I would think that user space should be able to preselect > that we always want to be upstream or downstream or flexible. Agreed. > And it should be able to preemptively disallow power delivery > even if no cable is present. By pow

Re: [PATCH v10 3/8] dt, numa: adding numa dt binding implementation.

2016-02-11 Thread Rob Herring
On Tue, Feb 2, 2016 at 4:09 AM, Ganapatrao Kulkarni wrote: > dt node parsing for numa topology is done using device property > numa-node-id and device node distance-map. How is it that powerpc doesn't need flat DT parsing for NUMA? Both arches are memblock based and the binding is similar IIRC, s

Re: [PATCH repost net-next] ethtool: future-proof interface for speed extensions

2016-02-11 Thread David Miller
From: "Michael S. Tsirkin" Date: Sun, 7 Feb 2016 23:27:55 +0200 > Many virtual and not quite virtual devices allow any speed to be set > through ethtool. In particular, this applies to the virtio-net devices. > Document this fact to make sure people don't assume the enum lists all > possible valu

Re: [PATCH v1 2/6] mfd: cros_ec: Add MKBP event support

2016-02-11 Thread Tomeu Vizoso
On 02/05/2016 06:24 PM, Gwendal Grignou wrote: > We should not used kmalloc when get events, these functions are called > quite often. > Gwendal. > > On Fri, Feb 5, 2016 at 5:32 AM, Tomeu Vizoso > wrote: > > +static int cros_ec_get_host_command_version_mask

Re: [PATCH v3] openvswitch: allow management from inside user namespaces

2016-02-11 Thread David Miller
From: Tycho Andersen Date: Fri, 5 Feb 2016 09:20:52 -0700 > Operations with the GENL_ADMIN_PERM flag fail permissions checks because > this flag means we call netlink_capable, which uses the init user ns. > > Instead, let's introduce a new flag, GENL_UNS_ADMIN_PERM for operations > which should

Re: [PATCH] net: hamradio: baycom_ser_fdx: Replace timeval with timespec64

2016-02-11 Thread David Miller
From: Amitoj Kaur Chawla Date: Wed, 10 Feb 2016 10:08:54 +0530 > 32 bit systems using 'struct timeval' will break in the year 2038, so > we replace the code appropriately. However, this driver is not broken > in 2038 since we are only using microseconds portion of the time. > > This patch replac

Re: [PATCH 1/1] Perf: fix overwritten of free running PEBSv3 timestamp

2016-02-11 Thread Peter Zijlstra
On Wed, Feb 10, 2016 at 05:38:02PM -0500, Tong Zhang wrote: > commit a7b58d211ba18c9175b139e18b68c86a6bcc3c3f introduced feature of > timestamp on free running PEBSv3, however, the timestamp is later > overwritten, which makes the effort in vain. > > This patch fixed this problem by detecting w

Re: [PATCH v4 2/2] mips: Differentiate between 32 and 64 bit ELF header

2016-02-11 Thread Maciej W. Rozycki
On Thu, 11 Feb 2016, Maciej W. Rozycki wrote: > > > Signed-off-by: Daniel Wagner > > > Suggested-by: Maciej W. Rozycki > > > Reviewed-by: Maciej W. Rozycki > > > Reported-by: Fengguang Wu > > > > Thanks, applied. > > > > I'm getting a less spectacular warning from gcc 5.2: > > > > CC

Re: [PATCH 1/3] usb: USB Type-C Connector Class

2016-02-11 Thread Oliver Neukum
On Thu, 2016-02-11 at 16:36 +0200, Heikki Krogerus wrote: > Just in case there are no misunderstandings here, Oliver was > commenting on alternate_mode_store function, and USB of course is not > Alternate Mode. Yes I was because that is the hardest case. In hindsight it is also the most useless. I

Re: [PATCH] thermal: cpu_cooling: fix out of bounds access in time_in_idle

2016-02-11 Thread Eduardo Valentin
On Thu, Feb 11, 2016 at 12:00:51PM +, Javi Merino wrote: > In __cpufreq_cooling_register() we allocate the arrays for time_in_idle > and time_in_idle_timestamp to be as big as the number of cpus in this > cpufreq device. However, in get_load() we access this array using the > cpu number as ind

Re: [PATCH 1/1] mpt3sas: Fix - Remove cpumask_clear for zalloc_cpumask_var and dont free free_cpu_mask_var before reply_q

2016-02-11 Thread Martin K. Petersen
> "Suganath" == Suganath prabu Subramani > writes: Suganath> Removed cpumask_clear as it is not required for Suganath> zalloc_cpumask_var and free free_cpumask_var before freeing Suganath> reply_q. Applied to 4.6/scsi-queue. However, next time please submit two patches, one for each is

Re: [PATCH 0/6] net: thunderx: Setting IRQ affinity hints and other optimizations

2016-02-11 Thread David Miller
From: Sunil Kovvuri Date: Thu, 11 Feb 2016 18:56:48 +0530 > If time permits, can you please look at this patchset. You were given feedback and I expect you to address that feedback and resubmit this series. This is what the "Changed Requested" state in patchwork means.

[PATCH 3.12 04/64] ALSA: hda/realtek - Fix silent headphone output on MacPro 4,1 (v2)

2016-02-11 Thread Jiri Slaby
From: Mario Kleiner 3.12-stable review patch. If anyone has any objections, please let me know. === commit 9f660a1c43890c2cdd1f423fd73654e7ca08fe56 upstream. Without this patch, internal speaker and line-out work, but front headphone output jack stays silent on the Mac Pro 4,1. T

Re: Nokia N900: Proper C-states

2016-02-11 Thread Pali Rohár
On Tuesday 09 February 2016 18:06:26 Daniel Lezcano wrote: > On 02/09/2016 04:56 PM, Tony Lindgren wrote: > >* Daniel Lezcano [160102 14:01]: > >>On 01/02/2016 03:26 PM, Pali Rohár wrote: > >>>Hello, > >>> > >>>due to this Daniel Lezcano commit (ARM: OMAP3: cpuidle - remove rx51 > >>>cpuidle param

Re: [PATCH 1/4] KVM: x86: rename argument to kvm_set_tsc_khz

2016-02-11 Thread Marcelo Tosatti
On Mon, Feb 08, 2016 at 04:18:28PM +0100, Paolo Bonzini wrote: > This refers to the desired (scaled) frequency, which is called > user_tsc_khz in the rest of the file. > > Signed-off-by: Paolo Bonzini > --- > arch/x86/kvm/x86.c | 14 +++--- > 1 file changed, 7 insertions(+), 7 deletions(

Re: [RFC][PATCH v3 4/4] printk: set may_schedule for some of console_trylock callers

2016-02-11 Thread Sergey Senozhatsky
Hello Petr, On (02/11/16 15:41), Petr Mladek wrote: [..] > > + console_may_schedule = !oops_in_progress && > > + preemptible() && > > + !rcu_preempt_depth(); > > return 1; > > We discussed this a lot but I am still a bit nervous ;-) sure, no prob :-) >

Re: [PATCH v1 3/6] power_supply: Add types for USB Type C and PD chargers

2016-02-11 Thread Benson Leung
On Thu, Feb 11, 2016 at 2:00 AM, Tomeu Vizoso wrote: >> Could you change these to be "USB Power Delivery Port" and "USB PD >> Dual Role Port"? > > I have gone with omitting the USB prefix, following the lead of the > existing entries, do you agree with that? Sounds good to me! Thanks, Benson -

Re: [PATCH v2 0/7] irqchip: introduce the Alpine MSIX driver

2016-02-11 Thread Thomas Petazzoni
Hello, On Thu, 11 Feb 2016 15:45:44 +0100, Antoine Tenart wrote: > On Thu, Feb 11, 2016 at 01:41:48PM +, Marc Zyngier wrote: > > On 10/02/16 13:22, Antoine Tenart wrote: > > > > > > This series introduce the Alpine MSIX driver, and enables it in both > > > the Alpine v1 and Alpine v2 device

Re: [PATCH] libata: fix HDIO_GET_32BIT ioctl

2016-02-11 Thread Tejun Heo
On Thu, Feb 11, 2016 at 02:16:27PM +0100, Arnd Bergmann wrote: > As reported by Soohoon Lee, the HDIO_GET_32BIT ioctl does not > work correctly in compat mode with libata. > > I have investigated the issue further and found multiple problems > that all appeared with the same commit that originally

Re: [PATCH] mmc: sdhci-of-at91: fix card detect when using runtime PM

2016-02-11 Thread Ulf Hansson
On 11 February 2016 at 14:48, Ludovic Desroches wrote: > Add quirk broken card detection to enable card detection polling. It is > a short term solution until reworking PM stuff. > > If the card detect signal is connected to the sdhci controller and not a > gpio, when runtime PM suspend happens, w

Re: [PATCH 0/6] net: thunderx: Setting IRQ affinity hints and other optimizations

2016-02-11 Thread Robert Richter
On 11.02.16 09:33:41, David Miller wrote: > From: Sunil Kovvuri > Date: Thu, 11 Feb 2016 18:56:48 +0530 > > > If time permits, can you please look at this patchset. > > You were given feedback and I expect you to address that feedback > and resubmit this series. > > This is what the "Changed Re

Re: [PATCH] tty/serial: digicolor: Fix bad usage of IS_ERR_VALUE

2016-02-11 Thread Guenter Roeck
On Thu, Feb 11, 2016 at 10:46:50AM +, Russell King - ARM Linux wrote: > On Tue, Feb 09, 2016 at 06:37:46PM -0800, Guenter Roeck wrote: > > On 02/09/2016 07:26 AM, Arnd Bergmann wrote: > > >On Tuesday 09 February 2016 07:08:59 Guenter Roeck wrote: > > >>IS_ERR_VALUE() assumes that its parameter

[PATCH] x86, microcode: Remove unnecessary paravirt_enabled check

2016-02-11 Thread Boris Ostrovsky
Commit a18a0f6850d4 ("x86, microcode: Don't initialize microcode code on paravirt") added a paravirt test in microcode_init(), primarily to avoid making mc_bp_resume()->load_ucode_ap()->check_loader_disabled_ap() calls On 32-bit kernels this callchain ends up using __pa_nodebug() macro which is inv

Re: [PATCH 1/3] tools/liblockdep: add userspace version of READ_ONCE

2016-02-11 Thread Peter Zijlstra
On Thu, Feb 11, 2016 at 12:33:30AM +0100, Alfredo Alvarez Fernandez wrote: > From: Alfredo Alvarez Fernandez > > This was added to the kernel code in 1658d35ead5d ("list: Use > READ_ONCE() when testing for empty lists") > There's nothing special we need to do about it in userspace. > > Signed-of

Re: [Patch v9] SATA: OCTEON: support SATA on OCTEON platform

2016-02-11 Thread Tejun Heo
On Thu, Feb 11, 2016 at 01:53:08PM +, Zubair Lutfullah Kakakhel wrote: > From: Aleksey Makarov > > The OCTEON SATA controller is currently found on cn71XX devices. > > Cc: Arnd Bergmann > Acked-by: Hans de Goede > Acked-by: Rob Herring > Signed-off-by: David Daney > Signed-off-by: Vinita

Re: [PATCH] cgroup: provide cgroup_nov1= to disable controllers in v1 mounts

2016-02-11 Thread Tejun Heo
Hello, On Wed, Feb 10, 2016 at 05:59:55PM -0500, Johannes Weiner wrote: > cgroup_nov1=memory,cpu > cgroup_nov1=all It looks kinda confusing. cgroup_no_v1? Thanks. -- tejun

Re: [RFC] A first shot at asciidoc-based formatted docs

2016-02-11 Thread Keith Packard
Jonathan Corbet writes: > asciidoc->HTML on its own isn't viable, I think; we do have people wanting > other formats. Though one might well ask when somebody last successfully > generated PDF...maybe it's not worth the trouble. I would like epub > someday... I'm hopeful that I can hack up asci

Re: [PATCH 01/14] pinctrl: sunxi: Add A83T R_PIO controller support

2016-02-11 Thread Maxime Ripard
Hi Linus, On Thu, Feb 11, 2016 at 02:47:57PM +0100, Linus Walleij wrote: > On Thu, Feb 11, 2016 at 1:36 PM, Maxime Ripard > wrote: > > On Thu, Feb 11, 2016 at 12:59:47PM +0100, Linus Walleij wrote: > >> On Sun, Jan 31, 2016 at 2:20 AM, Vishnu Patekar > >> wrote: > >> > >> > The A83T has R_PIO pi

Re: [RFC] A first shot at asciidoc-based formatted docs

2016-02-11 Thread Keith Packard
Jani Nikula writes: > One of the chief complaints with the current pipeline (and some of the > proposals) has been the need to install lots of tools with lots of > dependencies. I would like to avoid the need to install bleeding edge > tools and stick to what's already widely available in distros

Re: [PATCH v7 04/10] mfd: axp20x: Add missing copyright notice

2016-02-11 Thread Lee Jones
On Mon, 25 Jan 2016, Lee Jones wrote: > On Wed, 13 Jan 2016, Chen-Yu Tsai wrote: > > > When the driver was merged, the original author did not include a proper > > copyright notice. This patch adds the notice, backdated to when the > > driver was merged. > > This is very wordy. > > "Supply a b

Re: [PATCH 2/4] KVM: x86: rewrite handling of scaled TSC for kvmclock

2016-02-11 Thread Marcelo Tosatti
On Mon, Feb 08, 2016 at 04:18:29PM +0100, Paolo Bonzini wrote: > This is the same as before: > > kvm_scale_tsc(tgt_tsc_khz) > = tgt_tsc_khz * ratio > = tgt_tsc_khz * user_tsc_khz / tsc_khz (see set_tsc_khz) > = user_tsc_khz (see kvm_guest_tim

Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks

2016-02-11 Thread Peter Zijlstra
On Thu, Feb 11, 2016 at 12:24:29PM +, Juri Lelli wrote: > Hi Peter, > > On 11/02/16 12:59, Peter Zijlstra wrote: > > On Tue, Feb 09, 2016 at 05:02:33PM -0800, Steve Muckle wrote: > > > > Index: linux-pm/kernel/sched/deadline.c > > > > ===

Re: fs/udf and udftools

2016-02-11 Thread Steve Kenton
On 02/11/2016 04:03 AM, Jan Kara wrote: > On Wed 10-02-16 21:45:05, Steve Kenton wrote: >> On 02/10/2016 08:19 PM, Ken Moffat wrote: >>> On Wed, Feb 10, 2016 at 05:56:16PM -0800, Randy Dunlap wrote: [add Jan Kara] On 02/10/16 13:29, Steve Kenton wrote: > Is anyone maintaining the

Re: [Patch v9] SATA: OCTEON: support SATA on OCTEON platform

2016-02-11 Thread Ralf Baechle
On Thu, Feb 11, 2016 at 01:53:08PM +, Zubair Lutfullah Kakakhel wrote: Acked-by: Ralf Baechle Ralf

Re: [PATCH v4 2/2] mips: Differentiate between 32 and 64 bit ELF header

2016-02-11 Thread Ralf Baechle
On Thu, Feb 11, 2016 at 02:58:55PM +, Maciej W. Rozycki wrote: > Date: Thu, 11 Feb 2016 14:58:55 + > From: "Maciej W. Rozycki" > To: Ralf Baechle > CC: Daniel Wagner , > linux-kernel@vger.kernel.org, linux-m...@linux-mips.org > Subject: Re: [PATCH v4 2/2] mips: Differentiate between 32

[PATCH] ARM: exynos: clarify KEYBOARD_SAMSUNG selection

2016-02-11 Thread Arnd Bergmann
The samsung-keypad driver is implicitly selected by ARCH_EXYNOS4 (why?), but this fails if CONFIG_INPUT is a loadable module: drivers/input/built-in.o: In function `samsung_keypad_remove': drivers/input/keyboard/samsung-keypad.c:461: undefined reference to `input_unregister_device' drivers/input/

Re: [PATCH] tty/serial: digicolor: Fix bad usage of IS_ERR_VALUE

2016-02-11 Thread Guenter Roeck
On Thu, Feb 11, 2016 at 07:45:11AM +0100, Andrzej Hajda wrote: > On 02/11/2016 04:38 AM, Guenter Roeck wrote: > > On 02/10/2016 07:21 AM, Arnd Bergmann wrote: > >> On Tuesday 09 February 2016 18:37:46 Guenter Roeck wrote: > >>> On 02/09/2016 07:26 AM, Arnd Bergmann wrote: > On Tuesday 09 Febru

[PATCH v2 1/6] KVM: arm/arm64: arch_timer: Gather KVM specific information in a structure

2016-02-11 Thread Julien Grall
Introduce a structure which are filled up by the arch timer driver and used by the virtual timer in KVM. The first member of this structure will be the timecounter. More members will be added later. This is also dropping arch_timer_get_timecounter as it was only used by the KVM code. Furthermore,

[PATCH v2 0/6] arm64: Add support of KVM with ACPI

2016-02-11 Thread Julien Grall
Hello, This small series allows an ARM64 ACPI based platform to use KVM. Currently the KVM code has to parse the firmware table to get the necessary information to setup the virtual timer and virtual GIC. However the parsing of those tables are already done in the GIC and arch timer drivers. Th

Re: [PATCH v2 2/2] dax: move writeback calls into the filesystems

2016-02-11 Thread Dan Williams
On Thu, Feb 11, 2016 at 4:50 AM, Jan Kara wrote: > On Wed 10-02-16 15:43:40, Ross Zwisler wrote: >> On Thu, Feb 11, 2016 at 09:03:12AM +1100, Dave Chinner wrote: >> > On Wed, Feb 10, 2016 at 01:48:56PM -0700, Ross Zwisler wrote: >> > > Previously calls to dax_writeback_mapping_range() for all DAX

[PATCH v2 3/6] irqchip/gic-v2: Gather ACPI specific data in a single structure

2016-02-11 Thread Julien Grall
For now, there is only one member. More member will be added later. Signed-off-by: Julien Grall --- Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Changes in v2: - Patch added --- drivers/irqchip/irq-gic.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-)

[PATCH v2 2/6] KVM: arm/arm64: arch_timer: Rely on the arch timer to parse the firmware tables

2016-02-11 Thread Julien Grall
The firmware table is currently parsed by the virt timer code in order to retrieve the virtual interrupt. However, this is already done by the arch timer driver and therefore make the parsing code duplicated twice. Introduce an helper to get the virtual interrupt number and use it in the virtual t

Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks

2016-02-11 Thread Peter Zijlstra
On Thu, Feb 11, 2016 at 01:08:28PM +0100, Rafael J. Wysocki wrote: > > Not really pretty though. It blows a bit that you require this callback > > to be periodic (in order to replace a timer). > > We need it for now, but that's because of how things work on the cpufreq side. Right, maybe stick a

drivers/net/wireless/cisco/airo.c:7198:1: warning: the frame size of 1068 bytes is larger than 1024 bytes

2016-02-11 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 721675fcf277cfd345117d3abae1c5590c5fdfd4 commit: c6d308534aef6c99904bf5862066360ae067abc4 UBSAN: run-time undefined behavior sanity checker date: 3 weeks ago config: i386-randconfig-h0-02112243 (attached a

Re: [PATCH 2/2] net: dsa: remove phy_disconnect from error path

2016-02-11 Thread Vivien Didelot
Hi Sascha, Sascha Hauer writes: > The phy has not been initialized, disconnecting it in the error > path results in a NULL pointer exception. Drop the phy_disconnect > from the error path. > > Signed-off-by: Sascha Hauer > --- > net/dsa/slave.c | 1 - > 1 file changed, 1 deletion(-) > > diff -

[PATCH v2 6/6] KVM: arm/arm64: vgic: Rely on the GIC driver to parse the firmware tables

2016-02-11 Thread Julien Grall
For now, the firmware tables are parsed 2 times: once in the GIC drivers, the other time when initializing the vGIC. It means code duplication and make more tedious to add the support for another firmware table (like ACPI). Use the recently introduced helper gic_get_kvm_info() to retrieve informat

[PATCH v2 5/6] irqchip/gic-v3: Parse and export virtual GIC information

2016-02-11 Thread Julien Grall
Fill up the recently introduced gic_kvm_info with the virtual GIC information. Signed-off-by: Julien Grall --- Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Changes in v2: - Use 0 rather than a negative value to know when the maintenance IRQ is not present.

[PATCH v2 4/6] irqchip/gic-v2: Parse and export virtual GIC information

2016-02-11 Thread Julien Grall
For now, the firmware tables are parsed 2 times: once in the GIC drivers, the other timer when initializing the vGIC. It means code duplication and make more tedious to add the support for another firmware table (like ACPI). Introduce a new structure and set of helpers to get/set the virtual GIC i

[PATCH v2 1/6] Revert "drivers/tty/serial: make 8250/8250_mtk.c explicitly non-modular"

2016-02-11 Thread Arnd Bergmann
This reverts commit d72d391c126e, which tried to remove dead code but left the driver in a useless state when the main 8250 driver is a loadable module. This would normally result in a link error, but as the entire drivers/tty/serial/8250/ directory is only entered when CONFIG_SERIAL_8250 is set, w

[PATCH v2 0/6] serial: 8250: fixes for modular build

2016-02-11 Thread Arnd Bergmann
This is a re-send of three patches I sent a couple of days ago, with a revert of two patches that Paul did, taking the code in the opposite direction now, towards ensuring the drivers actually work as loadable modules, which helps with 'allmodconfig' build testing. I've also added another patch fo

[PATCH v2 2/6] Revert "drivers/tty/serial: make 8250/8250_ingenic.c explicitly non-modular"

2016-02-11 Thread Arnd Bergmann
This reverts commit cafe1ac64023, which tried to remove dead code but left the driver in a useless state when the main 8250 driver is a loadable module. This would normally result in a link error, but as the entire drivers/tty/serial/8250/ directory is only entered when CONFIG_SERIAL_8250 is set, w

[PATCH v2 4/6] serial: 8250/uniphier: fix modular build

2016-02-11 Thread Arnd Bergmann
The newly added uniphier serial port driver fails to build as a loadable module when the base 8250 driver is built-in and its console support enabled: ERROR: "early_serial8250_setup" [drivers/tty/serial/8250/8250_uniphier.ko] undefined! This changes the driver to only provide the early console s

[PATCH v2 3/6] serial: 8250/mediatek: mark PM functions as __maybe_unused

2016-02-11 Thread Arnd Bergmann
The mtk8250_runtime_suspend function is not used when runtime PM is disabled, so we get a warning about an unused function: drivers/tty/serial/8250/8250_mtk.c:119:12: error: 'mtk8250_runtime_suspend' defined but not used [-Werror=unused-function] static int mtk8250_runtime_suspend(struct device

[PATCH v2 5/6] serial: 8250/mediatek: fix building with SERIAL_8250=m

2016-02-11 Thread Arnd Bergmann
The Mediatek 8250 driver has a 'bool' Kconfig symbol, but that breaks when SERIAL_8250 is a loadable module: drivers/tty/built-in.o: In function `mtk8250_set_termios': :(.text+0x1bee8): undefined reference to `serial8250_do_set_termios' :(.text+0x1bf10): undefined reference to `uart_get_baud_rate'

Re: [PATCH 1/2] net: dsa: mv88e6xxx: Add support for Marvell 88E6240

2016-02-11 Thread Andrew Lunn
On Thu, Feb 11, 2016 at 11:44:48AM +0100, Sascha Hauer wrote: > The Marvell 88E6240 has been tested successfully without further > changes. Add entry to the table of supported devices. > > Signed-off-by: Sascha Hauer Reviewed-by: Andrew Lunn Thanks Andrew > --- > drivers/net/dsa/mv88

[PATCH v2 6/6] serial: 8250/ingenic: fix building with SERIAL_8250=m

2016-02-11 Thread Arnd Bergmann
The Ingenic 8250 driver has a 'bool' Kconfig symbol, but that breaks when SERIAL_8250 is a loadable module: drivers/tty/built-in.o: In function `ingenic_uart_probe': 8250_ingenic.c:(.text+0x1c1a0): undefined reference to `serial8250_register_8250_port' This changes the symbol to a 'tristate', pl

Re: [PATCH v10 3/8] dt, numa: adding numa dt binding implementation.

2016-02-11 Thread Robert Richter
On 11.02.16 08:50:41, Rob Herring wrote: > On Tue, Feb 2, 2016 at 4:09 AM, Ganapatrao Kulkarni > wrote: > > dt node parsing for numa topology is done using device property > > numa-node-id and device node distance-map. > > How is it that powerpc doesn't need flat DT parsing for NUMA? Both > arche

Re: [PATCH 2/2] net: dsa: remove phy_disconnect from error path

2016-02-11 Thread Andrew Lunn
On Thu, Feb 11, 2016 at 11:44:49AM +0100, Sascha Hauer wrote: > The phy has not been initialized, disconnecting it in the error > path results in a NULL pointer exception. Drop the phy_disconnect > from the error path. > > Signed-off-by: Sascha Hauer Hi Sascha The fix looks correct, since the p

Re: [PATCH] ld-version: Drop the 4th and 5th version components

2016-02-11 Thread Michal Marek
On 2016-02-11 15:25, Maciej W. Rozycki wrote: > ... making upstream development binutils snapshots work as expected, > e.g.: > > $ mips64el-linux-ld --version > GNU ld (GNU Binutils) 2.20.1.20100303 > [...] > $ > > Signed-off-by: Maciej W. Rozycki fwiw, Acked-by: Michal Marek > NB comments

[PATCH] Revert "mmc: block: don't use parameter prefix if built as module"

2016-02-11 Thread Ulf Hansson
This reverts commit 829b6962f7e3cfc06f7c5c26269fd47ad48cf503. Revert this change as it causes a sysfs path to change and therefore introduces and ABI regression. More precisely Android's vold is not being able to access /sys/module/mmcblk/parameters/perdev_minors any more, since the path becomes c

Re: Bug 4.1.16: self-detected stall in net/unix/?

2016-02-11 Thread Rainer Weikusat
Philipp Hahn writes: [...] > Probably the same bug was also reported to samba-technical by Karolin > Seeger; she filed the bug for 3.19-ckt with Ubuntu: > > > > Running the Samba test suite reproduces the problem; see bug

Re: [PATCH] null_blk: oops when initializing without lightnvm

2016-02-11 Thread Jens Axboe
On 02/11/2016 06:49 AM, Matias Bjørling wrote: If the LightNVM subsystem is not compiled into the kernel, and the null_blk device driver requests lightnvm to be initialized. The call to nvm_register fails and the null_add_dev function cleans up the initialization. However, at this point the null

Re: [PATCH] Revert "mmc: block: don't use parameter prefix if built as module"

2016-02-11 Thread Ulf Hansson
On 11 February 2016 at 16:54, Ulf Hansson wrote: > This reverts commit 829b6962f7e3cfc06f7c5c26269fd47ad48cf503. > > Revert this change as it causes a sysfs path to change and therefore > introduces and ABI regression. More precisely Android's vold is not being > able to access /sys/module/mmcblk/

Re: [PATCH v3 1/8] iommu: Add MMIO mapping type

2016-02-11 Thread Robin Murphy
On 11/02/16 00:02, Laurent Pinchart wrote: Hi Niklas, Thank you for the patch. On Wednesday 10 February 2016 01:57:51 Niklas Söderlund wrote: From: Robin Murphy On some platforms, MMIO regions might need slightly different treatment compared to mapping regular memory; add the notion of MMIO

Re: [PATCH v10 3/8] dt, numa: adding numa dt binding implementation.

2016-02-11 Thread Ganapatrao Kulkarni
Hi Rob, On Thu, Feb 11, 2016 at 9:02 PM, Robert Richter wrote: > On 11.02.16 08:50:41, Rob Herring wrote: >> On Tue, Feb 2, 2016 at 4:09 AM, Ganapatrao Kulkarni >> wrote: >> > dt node parsing for numa topology is done using device property >> > numa-node-id and device node distance-map. >> >> Ho

Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks

2016-02-11 Thread Rafael J. Wysocki
On Thu, Feb 11, 2016 at 4:29 PM, Peter Zijlstra wrote: > On Thu, Feb 11, 2016 at 01:08:28PM +0100, Rafael J. Wysocki wrote: >> > Not really pretty though. It blows a bit that you require this callback >> > to be periodic (in order to replace a timer). >> >> We need it for now, but that's because o

[PATCH 0/2] clk: Add Artpec-6 SoC support

2016-02-11 Thread Lars Persson
Add clock support for the Artpec-6 SoC port. The ARM parts are in the series "arm: Add Artpec-6 SoC" and it goes through the arm-soc tree. Lars Persson (2): clk: add device tree binding for artpec-6 pll1 clock clk: add artpec-6 pll1 clock driver .../devicetree/bindings/clock/artpec6.txt

[PATCH 2/2] clk: add artpec-6 pll1 clock driver

2016-02-11 Thread Lars Persson
The PLL1 clock is a fixed-factor clock with factors derived from boot mode pins. This driver is a simple wrapper to register the fixed factor clock according to the pin settings. Signed-off-by: Lars Persson --- drivers/clk/Makefile | 1 + drivers/clk/clk-artpec6.c | 70

[PATCH] ext4: ioctl: fix erroneous return value

2016-02-11 Thread Anton Protopopov
The ext4_ioctl_setflags() function which is used in the ioctls EXT4_IOC_SETFLAGS and EXT4_IOC_FSSETXATTR may return the positive value EPERM instead of -EPERM in case of error. This bug was introduced by a recent commit 9b7365fc. The following program can be used to illustrate the wrong behavior:

[PATCH 1/2] clk: add device tree binding for artpec-6 pll1 clock

2016-02-11 Thread Lars Persson
Add device tree documentation for the main PLL in the Artpec-6 SoC. Signed-off-by: Lars Persson --- Documentation/devicetree/bindings/clock/artpec6.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/artpec6.txt diff --git a/Do

Re: [PATCH 3/5] net/mlx4: fix some error handling in mlx4_multi_func_init()

2016-02-11 Thread Doug Ledford
On 02/09/2016 03:11 PM, Rasmus Villemoes wrote: > The while loop after err_slaves should use post-decrement; otherwise > we'll fail to do the kfrees for i==0, and will run into out-of-bounds > accesses if the setup above failed already at i==0. > > The predecrement in the --port is ok, since ->vla

Re: [PATCH v2 1/6] Revert "drivers/tty/serial: make 8250/8250_mtk.c explicitly non-modular"

2016-02-11 Thread Paul Gortmaker
[[PATCH v2 1/6] Revert "drivers/tty/serial: make 8250/8250_mtk.c explicitly non-modular"] On 11/02/2016 (Thu 16:41) Arnd Bergmann wrote: > This reverts commit d72d391c126e, which tried to remove dead code but > left the driver in a useless state when the main 8250 driver is a Am I misunderstandi

[PATCH v3 1/2] usb: musb: Fix DMA for host mode

2016-02-11 Thread Joshua Henderson
From: Cristian Birsan Commit ac33cdb16681 ("usb: musb: Remove ifdefs for musb_host_rx in musb_host.c part5") introduces a problem setting DMA host mode. This commit fixes the done condition that advances the musb schedule. Without this patch the the msub_advance_schedule() is called immediately

[PATCH v3 2/2] usb: musb: Fix DMA desired mode for Mentor DMA engine

2016-02-11 Thread Joshua Henderson
From: Cristian Birsan Commit 754fe4a92c07 ("usb: musb: Remove ifdefs for TX DMA for musb_host.c") introduces a problem setting the desired channel mode for the Mentor DMA engine. There is a case where an address is incorrectly assigned to the DMA channel desired mode when it should instead be as

Re: [PATCH v2 2/6] Revert "drivers/tty/serial: make 8250/8250_ingenic.c explicitly non-modular"

2016-02-11 Thread Paul Gortmaker
[[PATCH v2 2/6] Revert "drivers/tty/serial: make 8250/8250_ingenic.c explicitly non-modular"] On 11/02/2016 (Thu 16:41) Arnd Bergmann wrote: > This reverts commit cafe1ac64023, which tried to remove dead code but > left the driver in a useless state when the main 8250 driver is a > loadable modul

[PATCH v3 4/6] arm: initial machine port for artpec-6 SoC

2016-02-11 Thread Lars Persson
Basic machine port for the Artpec-6 SoC from Axis Communications. Signed-off-by: Lars Persson --- arch/arm/Kconfig | 2 + arch/arm/Makefile| 1 + arch/arm/mach-artpec/Kconfig | 20 ++ arch/arm/mach-artpec/Makefile| 1 + arch/arm/

[PATCH v3 5/6] arm: multi_v7_defconfig: add MACH_ARTPEC6

2016-02-11 Thread Lars Persson
Signed-off-by: Lars Persson --- arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 8e8b2ac..1149642 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/mult

[PATCH v3 1/6] arm: add device-tree SoC bindings for Axis Artpec-6

2016-02-11 Thread Lars Persson
This adds device tree bindings for the Artpec-6 SoC. Signed-off-by: Lars Persson --- Documentation/devicetree/bindings/arm/axis.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/axis.txt diff --git a/Documentation/dev

[PATCH v3 0/6] arm: Add Artpec-6 SoC

2016-02-11 Thread Lars Persson
Basic support for the Axis Artpec-6 ARM SoC. Timers, interrupts, UARTs and ethernet are wired up. Changes since v2: - Create a syscon binding for the system controller. - Clock patches split out to new patch series "clk: Add Artpec-6 SoC support". Changes since v1: - Corrected bindings for axis,a

[PATCH v3 3/6] arm: dts: add Artpec-6 development board dts

2016-02-11 Thread Lars Persson
Signed-off-by: Lars Persson --- arch/arm/boot/dts/Makefile | 2 ++ arch/arm/boot/dts/artpec6-devboard.dts | 64 ++ 2 files changed, 66 insertions(+) create mode 100644 arch/arm/boot/dts/artpec6-devboard.dts diff --git a/arch/arm/boot/dts/Makefile b/a

[PATCH v3 2/6] arm: dts: add Artpec-6 SoC dtsi file

2016-02-11 Thread Lars Persson
Initial device tree for the Artpec-6 SoC. Signed-off-by: Lars Persson --- arch/arm/boot/dts/artpec6.dtsi | 236 + 1 file changed, 236 insertions(+) create mode 100644 arch/arm/boot/dts/artpec6.dtsi diff --git a/arch/arm/boot/dts/artpec6.dtsi b/arch/arm/b

[PATCH v3 6/6] arm: mach-artpec: add entry to MAINTAINERS

2016-02-11 Thread Lars Persson
Signed-off-by: Lars Persson Signed-off-by: Jesper Nilsson --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7f1fa4f..d32c1aa 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -932,6 +932,16 @@ M: Tsahee Zidenberg S: Maintained F:

Re: [Patch v9] SATA: OCTEON: support SATA on OCTEON platform

2016-02-11 Thread Zubair Lutfullah Kakakhel
On 11/02/16 15:15, Tejun Heo wrote: On Thu, Feb 11, 2016 at 01:53:08PM +, Zubair Lutfullah Kakakhel wrote: From: Aleksey Makarov The OCTEON SATA controller is currently found on cn71XX devices. Cc: Arnd Bergmann Acked-by: Hans de Goede Acked-by: Rob Herring Signed-off-by: David Daney

Re: [PATCH v2 5/6] serial: 8250/mediatek: fix building with SERIAL_8250=m

2016-02-11 Thread Paul Gortmaker
[[PATCH v2 5/6] serial: 8250/mediatek: fix building with SERIAL_8250=m] On 11/02/2016 (Thu 16:41) Arnd Bergmann wrote: > The Mediatek 8250 driver has a 'bool' Kconfig symbol, but that > breaks when SERIAL_8250 is a loadable module: > > drivers/tty/built-in.o: In function `mtk8250_set_termios': >

Re: [PATCH v2 1/1] powerpc/86xx: Consolidate common platform code

2016-02-11 Thread Scott Wood
On Thu, 2016-02-11 at 12:21 +0300, Denis Kirjanov wrote: > On 2/11/16, Alessio Igor Bogani wrote: > > Signed-off-by: Alessio Igor Bogani > > --- > > v1 -> v2 > > Use appropriate [PATCH] prefix > > > > arch/powerpc/platforms/86xx/Makefile | 2 +- > > arch/powerpc/platforms/86xx/common

Re: [RFC][PATCH v3 4/4] printk: set may_schedule for some of console_trylock callers

2016-02-11 Thread Petr Mladek
On Fri 2016-02-12 00:02:17, Sergey Senozhatsky wrote: > Hello Petr, > > On (02/11/16 15:41), Petr Mladek wrote: > [..] > > > + console_may_schedule = !oops_in_progress && > > > + preemptible() && > > > + !rcu_preempt_depth(); > > > return 1; > > > > We discussed

Re: [PATCH] efi: runtime-wrappers: run UEFI Runtime Services with interrupts enabled

2016-02-11 Thread Matt Fleming
On Tue, 09 Feb, at 05:52:34PM, Ard Biesheuvel wrote: > On 8 February 2016 at 20:37, Andy Lutomirski wrote: > > On Feb 4, 2016 5:58 AM, "Ard Biesheuvel" wrote: > >> > >> OK, since Sai has confirmed that Windows leaves interrupts enabled when > >> calling the EFI variable store related runtime serv

Re: [PATCH v4 01/17] Xen: ACPI: Hide UART used by Xen

2016-02-11 Thread Stefano Stabellini
On Wed, 10 Feb 2016, Rafael J. Wysocki wrote: > On Tuesday, February 09, 2016 11:19:02 AM Stefano Stabellini wrote: > > On Mon, 8 Feb 2016, Rafael J. Wysocki wrote: > > > On Monday, February 08, 2016 10:57:01 AM Stefano Stabellini wrote: > > > > On Sat, 6 Feb 2016, Rafael J. Wysocki wrote: > > > >

Re: [PATCH] efi: runtime-wrappers: run UEFI Runtime Services with interrupts enabled

2016-02-11 Thread Matt Fleming
On Mon, 08 Feb, at 11:37:58AM, Andy Lutomirski wrote: > On Feb 4, 2016 5:58 AM, "Ard Biesheuvel" wrote: > > > > OK, since Sai has confirmed that Windows leaves interrupts enabled when > > calling the EFI variable store related runtime services, we should be able > > to do the same for Linux, or at

Re: [PATCH v2 1/6] Revert "drivers/tty/serial: make 8250/8250_mtk.c explicitly non-modular"

2016-02-11 Thread Arnd Bergmann
On Thursday 11 February 2016 11:00:22 Paul Gortmaker wrote: > [[PATCH v2 1/6] Revert "drivers/tty/serial: make 8250/8250_mtk.c explicitly > non-modular"] On 11/02/2016 (Thu 16:41) Arnd Bergmann wrote: > > > This reverts commit d72d391c126e, which tried to remove dead code but > > left the driver

[PATCH] PM / OPP: Fix NULL pointer dereference when no regulator is defined

2016-02-11 Thread Bartlomiej Zolnierkiewicz
Commit 7d34d56ef334 ("PM / OPP: Disable OPPs that aren't supported by the regulator") causes NULL pointer dereference OOPS when no regulator for OPP is defined. Fix it by replacing IS_ERR() check with IS_ERR_OR_NULL() one (since providing regulator for OPP is optional). Cc: Viresh Kumar Cc: Step

Re: [PATCH] x86/efi: skip bgrt init for kexec reboot

2016-02-11 Thread Matt Fleming
On Fri, 05 Feb, at 08:41:15AM, Dave Young wrote: > On 02/04/16 at 11:56am, Matt Fleming wrote: > > On Thu, 04 Feb, at 07:09:03PM, Dave Young wrote: > > > > > > Consider the original code path, maybe change it to efi_kexec_setup will > > > be better to remind people? Or something else like a wraper

Re: [PATCH 3/3] ARM64: zynqmp: Use 64bit size cell format

2016-02-11 Thread Rob Herring
On Thu, Feb 11, 2016 at 6:26 AM, Michal Simek wrote: > Use 64bit size cell format instead of 32bit for memory > description. Change 64bit sizes also for all others IPs. Why? As is, this change is completely pointless because nothing needs a >4GB size. Do you have peripherals with >4GB size? > Si

[PATCH v5] powerpc32: provide VIRT_CPU_ACCOUNTING

2016-02-11 Thread Christophe Leroy
This patch provides VIRT_CPU_ACCOUTING to PPC32 architecture. PPC32 doesn't have the PACA structure, so we use the task_info structure to store the accounting data. In order to reuse on PPC32 the PPC64 functions, all u64 data has been replaced by 'unsigned long' so that it is u32 on PPC32 and u64

[PATCH v2 0/6] net: thunderx: Setting IRQ affinity hints and other optimizations

2016-02-11 Thread sunil . kovvuri
From: Sunil Goutham This patch series contains changes - To add support for virtual function's irq affinity hint - Replace napi_schedule() with napi_schedule_irqoff() - Reduce page allocation overhead by allocating pages of higher order when pagesize is 4KB. - Add couple of stats which helps in

Re: [PATCH v5] mmc: OCTEON: Add host driver for OCTEON MMC controller

2016-02-11 Thread David Daney
On 02/11/2016 12:24 AM, Matt Redfearn wrote: Hi, I will split the DT binding document into a separate patch, Good. and move the legacy FDT patch-up code to arch/mips/cavium-octeon/octeon-platform.c as suggested by Florian. NAK to this part. We are just talking about a couple of property na

<    1   2   3   4   5   6   7   8   9   >