[PATCH V2 5/7] cpufreq: Merge cpufreq_offline_prepare/finish routines

2016-02-03 Thread Viresh Kumar
The offline routine was separated into two halves earlier by 'commit 1aee40ac9c86 ("cpufreq: Invoke __cpufreq_remove_dev_finish() after releasing cpu_hotplug.lock");. And the reasons cited were, race issues between accessing policy's sysfs files and policy kobject's cleanup. That race isn't valid

[PATCH V2 7/7] cpufreq: Remove cpufreq_governor_lock

2016-02-03 Thread Viresh Kumar
We used to drop policy->rwsem just before calling __cpufreq_governor() in some cases earlier and so it was possible that __cpufreq_governor() runs concurrently via separate threads. In order to guarantee valid state transitions for governors, 'governor_enabled' was required to be protected using s

[PATCH V2 6/7] cpufreq: Call __cpufreq_governor() with policy->rwsem held

2016-02-03 Thread Viresh Kumar
This isn't followed properly by all parts of the core code, some follow it, whereas others don't. Enforcing it will also enable us to remove cpufreq_governor_lock, that is used today because we can't guarantee that __cpufreq_governor() isn't executed in parallel. We should also ensure that the lo

[PATCH V2 4/7] Revert "cpufreq: Drop rwsem lock around CPUFREQ_GOV_POLICY_EXIT"

2016-02-03 Thread Viresh Kumar
Earlier, when the struct freq-attr was used to represent governor attributes, the standard cpufreq show/store sysfs attribute callbacks were applied to the governor tunable attributes and they always acquire the policy->rwsem lock before carrying out the operation. That could have resulted in an A

[PATCH V2 2/7] cpufreq: governor: New sysfs show/store callbacks for governor tunables

2016-02-03 Thread Viresh Kumar
The ondemand and conservative governors use the global-attr or freq-attr structures to represent sysfs attributes corresponding to their tunables (which of them is actually used depends on whether or not different policy objects can use the same governor with different tunables at the same time and

[PATCH V2 1/7] cpufreq: governor: Treat min_sampling_rate as a governor-specific tunable

2016-02-03 Thread Viresh Kumar
The min_sampling_rate governor tunable is a field in struct dbs_data, so it has to be handled in a special way separate from the rest of governor tunables. In particular, that requires a special macro to be present for creating its show/store sysfs attribute callbacks. However, there is no real n

[PATCH V2 0/7] cpufreq: governors: Fix ABBA lockups

2016-02-03 Thread Viresh Kumar
Hi Rafael, Here is the V2 with updated patches as suggested by you guys. These are pushed here: git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git cpufreq/governor-kobject The first four patches are for 4.5, if possible and others you can keep for 4.6. V1->V2: - Improved changelogs,

Re: [PATCH v8 0/6] cpufreq: powernv: Redesign the presentation of throttle notification and solve bug-fixes in the driver

2016-02-03 Thread Viresh Kumar
On 03-02-16, 14:40, Rafael J. Wysocki wrote: > It looks like patches [1-5/6] are not objectionable and I can apply > them without the last one if you want me to. Looks fine to me. -- viresh

Re: [PATCH 7/7] drm/fsl-dcu: use mode flags for hsync/vsync pixelclk polarity

2016-02-03 Thread Thierry Reding
On Wed, Jan 27, 2016 at 06:46:50PM -0800, Stefan Agner wrote: [...] > > diff --git a/drivers/gpu/drm/panel/panel-simple.c > > b/drivers/gpu/drm/panel/panel-simple.c > > index f97b73e..fa68b56 100644 > > --- a/drivers/gpu/drm/panel/panel-simple.c > > +++ b/drivers/gpu/drm/panel/panel-simple.c > > @@

[3.16.y-ckt stable] Patch "x86/boot: Double BOOT_HEAP_SIZE to 64KB" has been added to the 3.16.y-ckt tree

2016-02-03 Thread Luis Henriques
This is a note to let you know that I have just added a patch titled x86/boot: Double BOOT_HEAP_SIZE to 64KB to the linux-3.16.y-queue branch of the 3.16.y-ckt extended stable tree which can be found at: http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-3.16.y-queue This patch

[PATCH V3 0/5] rtc: max77686: make max77686 rtc driver as IP driver

2016-02-03 Thread Laxman Dewangan
Based on discussion on patch series of MAX77620 when adding separate driver for max77620 RTC, it is discussed to reuse the max77686 driver for all CHips MAX77802, MAX77686 and MAX77620. For this, the rtc-max77686 need to make as IP driver independent of their MFD parent driver. This series makes t

[PATCH V3 1/5] rtc: max77686: fix checkpatch error

2016-02-03 Thread Laxman Dewangan
Fix following check patch error in rtc-max77686 driver: - Alignment should match open parenthesis. - braces {} should be used on all arms of this statement. - Prefer using the BIT macro Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by: Krzysztof Kozl

[PATCH V3 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-03 Thread Laxman Dewangan
To make RTC block of MAX77686/MAX77802 as independent driver, move the registration of i2c device, regmap for register access and irq_chip for interrupt support inside the RTC driver. Removed the same initialisation from MFD driver. Having this change will allow to reuse this driver for different

[PATCH V3 3/5] rtc: max77686: avoid reference of parent device info multiple places

2016-02-03 Thread Laxman Dewangan
Get rid of referring parent device info for register access all the places by making regmap as part of max77686 rtc device info. This will also remove the need of storing parent device info in max77686 rtc device info as this is no more required. Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlo

[PATCH V3 4/5] mfd: max77686: do not set i2c client data for rtc i2c client

2016-02-03 Thread Laxman Dewangan
There is different RTC I2C address for RTC block in MAX77686. Driver is creating dummy i2c client for this address to access the register of this IP block. As there is no call to i2c_get_clientdata() for rtc_i2c client, there is no need to store pointer and hence removing the call to set client da

[PATCH V3 2/5] rtc: max77686: use rtc regmap to access RTC registers

2016-02-03 Thread Laxman Dewangan
rtc_regmap should be used to access all RTC registers instead of parent regmap regardless of what chip or property have it. This makes the register access uniform and extendible for other chips. Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by: Krzy

[3.16.y-ckt stable] Patch "=?UTF-8?q?veth:=20don=E2=80=99t=20modify=20ip=5Fsummed;=20doing?= =?UTF-8?q?=20so=20treats=20packets=20with=20bad=20checksums=20as=20good.?=" has been added to the 3.16.y-ck

2016-02-03 Thread Luis Henriques
This is a note to let you know that I have just added a patch titled =?UTF-8?q?veth:=20don=E2=80=99t=20modify=20ip=5Fsummed;=20doing?= =?UTF-8?q?=20so=20treats=20packets=20with=20bad=20checksums=20as=20good.?= to the linux-3.16.y-queue branch of the 3.16.y-ckt extended stable tree which can

Re: [PATCH 2/2] perf tools: Adjust symbol for shared objects

2016-02-03 Thread Namhyung Kim
Hi, On Wed, Feb 03, 2016 at 10:12:43AM +0800, Wangnan (F) wrote: > > > On 2016/2/2 23:18, Namhyung Kim wrote: > >On Tue, Feb 02, 2016 at 08:56:06AM +, Wang Nan wrote: > >>He Kuang reported a problem that perf fails to get correct symbol on > >>Android platform in [1]. The problem can be repr

Re: [PATCH 2/9] ARC: [dts] Introduce Timer bindings

2016-02-03 Thread Alexey Brodkin
(re-sending because Mike's email @ti is no longer valid) Hi Mike, On Wed, 2016-02-03 at 01:57 +0300, Alexey Brodkin wrote: > Hi Vineet, > > On Tue, 2016-02-02 at 18:36 +0300, Alexey Brodkin wrote: > > Hi Vineet, > > > > On Tue, 2016-02-02 at 19:59 +0530, Vineet Gupta wrote: > > > Hi Alexey, > >

Re: [PATCH v7 5/9] virtio_ring: Support DMA APIs

2016-02-03 Thread Michael S. Tsirkin
On Tue, Feb 02, 2016 at 09:46:36PM -0800, Andy Lutomirski wrote: > virtio_ring currently sends the device (usually a hypervisor) > physical addresses of its I/O buffers. This is okay when DMA > addresses and physical addresses are the same thing, but this isn't > always the case. For example, thi

Crash after commit module: clean up RO/NX handling

2016-02-03 Thread LABBE Corentin
Hello On my cubieboard2 (ARM) I have the following crash when modprobing any module. Without CONFIG_DEBUG_SET_MODULE_RONX the crash goes away. I bisected this issue to 85c898db6327353d38f3dd428457384cf81f83f8 module: clean up RO/NX handling. Regards [ 622.257293] [ cut here ]--

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

2016-02-03 Thread Arnd Bergmann
On Wednesday 03 February 2016 13:24:10 Zubair Lutfullah Kakakhel wrote: > > Typically we treat those special registers as part of the device itself > > and have a single device node for the AHCI controller and that one. > > > > What is your reason for doing it differently here? > > Two reasons >

Re: [PATCH] arm64: Allow vmalloc regions to be set with set_memory_*

2016-02-03 Thread Mark Rutland
On Sat, Jan 30, 2016 at 10:48:02AM +0800, Xishi Qiu wrote: Hi Mark, > > Thanks for your reply. Maybe I didn't express it clearly, sorry for it. > > The abstract process is the following: > 1. do not create a large block, use 4kb for all of the memory(regardless of > performance). > setup_arch->

Re: [PATCH 2/9] ARC: [dts] Introduce Timer bindings

2016-02-03 Thread Alexey Brodkin
Hi Mike, On Wed, 2016-02-03 at 01:57 +0300, Alexey Brodkin wrote: > Hi Vineet, > > On Tue, 2016-02-02 at 18:36 +0300, Alexey Brodkin wrote: > > Hi Vineet, > > > > On Tue, 2016-02-02 at 19:59 +0530, Vineet Gupta wrote: > > > Hi Alexey, > > > > > > On Tuesday 02 February 2016 06:45 PM, Alexey Bro

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

2016-02-03 Thread Arnd Bergmann
On Wednesday 03 February 2016 13:24:10 Zubair Lutfullah Kakakhel wrote: > > Bitfields for both endians are used and handled by mips. > Mainly used by cavium. > > As this is a cavium driver, would it be acceptable? > > Or should I replace with the following. > > v = cvmx_read_csr((uint64

Re: [PATCH v8 0/6] cpufreq: powernv: Redesign the presentation of throttle notification and solve bug-fixes in the driver

2016-02-03 Thread Rafael J. Wysocki
Hi, On Tue, Feb 2, 2016 at 8:41 PM, Shilpasri G Bhat wrote: > In POWER8, OCC(On-Chip-Controller) can throttle the frequency of the > CPU when the chip crosses its thermal and power limits. Currently, > powernv-cpufreq driver detects and reports this event as a console > message. Some machines may

Re: [PATCH 2/5] cpufreq: governor: Create separate sysfs-ops

2016-02-03 Thread Rafael J. Wysocki
On Wed, Feb 3, 2016 at 2:21 PM, Viresh Kumar wrote: > On 03-02-16, 13:42, Rafael J. Wysocki wrote: >> > +static ssize_t governor_show(struct kobject *kobj, struct attribute *attr, >> > +char *buf) >> > +{ >> > + struct dbs_data *dbs_data = to_dbs_data(kobj); >> >

Re: sound: out-of-bounds write in snd_rawmidi_kernel_write1

2016-02-03 Thread Dmitry Vyukov
On Wed, Feb 3, 2016 at 1:02 PM, Takashi Iwai wrote: > On Wed, 03 Feb 2016 12:39:31 +0100, > Takashi Iwai wrote: >> >> On Wed, 03 Feb 2016 10:41:14 +0100, >> Takashi Iwai wrote: >> > >> > On Wed, 03 Feb 2016 10:35:14 +0100, >> > Takashi Iwai wrote: >> > > >> > > On Wed, 03 Feb 2016 09:57:50 +0100,

Re: PM domain change on unbound devices warning on ipmi_si unload

2016-02-03 Thread Steven Rostedt
On Wed, 03 Feb 2016 01:56:45 +0100 "Rafael J. Wysocki" wrote: > Does this help: https://patchwork.kernel.org/patch/8170821/ ? Yep! Tested-by: Steven Rostedt -- Steve

[PATCH v3 02/11] staging/android: rename sync_pt_info to sync_fence_info

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan As struct sync_pt doesn't exist anymore it is a good idea remove any reference to it in the sync_framework. sync_pts were replaced directly by fences and here we rename it to sync_fence_info to let the fence namespace clean. v2: rename fence_info to sync_fence_info (Maarten

[PATCH v3 06/11] staging/android: turn fence_info into a __u64 pointer

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan Turn sync_fence_info into __u64 type enable us to extend the struct in the future without breaking the ABI. v2: use type __u64 for fence_info v3: fix commit message to reflect the v2 change Signed-off-by: Gustavo Padovan --- drivers/staging/android/sync.c | 2 +- d

Re: [PATCH 1/1] sched: Make schedstats a runtime tunable that is disabled by default v4

2016-02-03 Thread Mel Gorman
On Wed, Feb 03, 2016 at 01:49:21PM +0100, Ingo Molnar wrote: > > * Mel Gorman wrote: > > > On Wed, Feb 03, 2016 at 12:28:49PM +0100, Ingo Molnar wrote: > > > > > > * Mel Gorman wrote: > > > > > > > Changelog since v3 > > > > o Force enable stats during profiling and latencytop > > > > > > >

[PATCH v3 05/11] staging/android: remove len field from struct sync_fence_info

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan After removing driver_data struct sync_fence_info has now a fixed size, thus it doesn't need any field to tell its size, it is already known. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sync.c | 4 +--- drivers/staging/android/uapi/sync.h | 2 -- 2 fil

Re: [RFC][PATCH] mips: Fix arch_spin_unlock()

2016-02-03 Thread Will Deacon
On Wed, Feb 03, 2016 at 09:33:39AM +0100, Ingo Molnar wrote: > * Will Deacon wrote: > > On Tue, Feb 02, 2016 at 10:06:36AM -0800, Linus Torvalds wrote: > > > On Tue, Feb 2, 2016 at 9:51 AM, Will Deacon wrote: > > > > > > > > Given that the vast majority of weakly ordered architectures respect > >

[PATCH v3 09/14] mtd: spi-nor: configure the number of dummy clock cycles on Micron memories

2016-02-03 Thread Cyrille Pitchen
The spi-nor framework currently expects all Fast Read operations to use 8 dummy clock cycles. Especially some drivers like m25p80 can only support multiple of 8 dummy clock cycles. On Micron memories, the number of dummy clock cycles to be used by Fast Read commands can be safely set to 8 by updat

[PATCH v3 10/14] mtd: spi-nor: configure the number of dummy clock cycles on Macronix memories

2016-02-03 Thread Cyrille Pitchen
The spi-nor framework currently expects all Fast Read operations to use 8 dummy clock cycles. Especially some drivers like m25p80 can only support multiple of 8 dummy clock cycles. On Macronix memories, the number of dummy clock cycles to be used by Fast Read commands can be safely set to 8 by upd

[PATCH v3 11/14] mtd: spi-nor: configure the number of dummy clock cycles on Spansion memories

2016-02-03 Thread Cyrille Pitchen
On Spansion memories, the number of dummy clock cycles to be used during Fast Read commands is configured through the 2bit latency code (LC). These bits are non-volatile inside the Configuration Register. To avoid breaking the configuration expected at reset by some bootloaders, we'd rather read t

[PATCH v3 14/14] mtd: atmel-quadspi: add driver for Atmel QSPI controller

2016-02-03 Thread Cyrille Pitchen
This driver add support to the new Atmel QSPI controller embedded into sama5d2x SoCs. It expects a NOR memory to be connected to the QSPI controller. Signed-off-by: Cyrille Pitchen Acked-by: Nicolas Ferre --- drivers/mtd/spi-nor/Kconfig | 9 + drivers/mtd/spi-nor/Makefile| 1

[PATCH v3 12/14] mtd: m25p80: add support of dual and quad spi protocols to all commands

2016-02-03 Thread Cyrille Pitchen
Before this patch, m25p80_read() supported few SPI protocols: - regular SPI 1-1-1 - SPI Dual Output 1-1-2 - SPI Quad Output 1-1-4 On the other hand, all other m25p80_*() hooks only supported SPI 1-1-1. However once their Quad mode enabled, Micron and Macronix spi-nor memories expect all commands t

[PATCH v3 08/14] mtd: spi-nor: configure the number of dummy clock cycles by manufacturer

2016-02-03 Thread Cyrille Pitchen
This is a transitional patch which let us set the number of dummy clock cycles by manufacturer. More patches will follow by manufacturer to actually configure the relevant number of dummy clock cycles following the dedicated procedure. For instance, some manufacturers like Spansion configure the

[PATCH v3 13/14] Documentation: atmel-quadspi: add binding file for Atmel QSPI driver

2016-02-03 Thread Cyrille Pitchen
This patch documents the DT bindings for the driver of the Atmel QSPI controller embedded inside sama5d2x SoCs. Signed-off-by: Cyrille Pitchen Acked-by: Rob Herring Acked-by: Nicolas Ferre --- .../devicetree/bindings/mtd/atmel-quadspi.txt | 32 ++ 1 file changed, 32 in

[PATCH v3 07/14] mtd: spi-nor: fix support of Spansion memories

2016-02-03 Thread Cyrille Pitchen
This patch is only a transitional one. It concludes the series of patches to select op codes and protocols by manufacturer. Signed-off-by: Cyrille Pitchen --- drivers/mtd/spi-nor/spi-nor.c | 53 ++- 1 file changed, 37 insertions(+), 16 deletions(-) diff -

[PATCH v3 07/11] staging/android: add num_fences field to struct sync_file_info

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan Inform userspace how many fences are in the sync_fence_info field. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sync.c | 2 ++ drivers/staging/android/uapi/sync.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/staging/android/sync.c b/dr

[PATCH v3 08/11] staging/android: make info->len return only size of sync_fence_info array

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan The len member of struct sync_file_info was returning the size of the whole buffer (struct sync_file_info + sync_fence_infos at the of it). This commit change it to return only the size of the array of sync_fence_infos. It also moves len to be right before the sync_fences_i

[PATCH v3 09/11] staging/android: rename SYNC_IOC_FENCE_INFO

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan We don't use the 'fence' name to refer to sync_file anymore. So rename it to SYNC_IOC_FILE_INFO. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sync.c | 2 +- drivers/staging/android/uapi/sync.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) di

[PATCH v3 06/14] mtd: spi-nor: fix support of Micron memories

2016-02-03 Thread Cyrille Pitchen
This patch adds missing mode transitions. Indeed depending on both the current memory mode and the new protocol wanted by the user, we may need to perform a switch back to the Extended SPI mode. However when the current mode is the Quad mode and the user has asked for a Quad SPI protocol, we'd rat

[PATCH v3 05/14] mtd: spi-nor: fix support of Winbond memories

2016-02-03 Thread Cyrille Pitchen
This patch fixes the support of Winbond memories. Indeed, before performing any Quad SPI command, the Quad Enable (QE) non-volatile bit MUST be set in the Status Register 2. According to the w25q16fw datasheet from Winbond: "When QE=1, the /WP pin becomes IO2 and /HOLD pin becomes IO3." Quad SPI

[PATCH v3 04/14] mtd: spi-nor: fix support of Macronix memories

2016-02-03 Thread Cyrille Pitchen
This patch fixes the support of Macronix memories. Especially we avoid updating the Status Register when not needed as the Quad Enable (QE) bit is a non-volatile bit. Also we add comments to explain why we use some Fast Read op codes rather than others. Signed-off-by: Cyrille Pitchen --- driver

Re: [RFC 8/8] Do not reclaim the whole CPU bandwidth

2016-02-03 Thread luca abeni
Hi Juri, On Wed, 3 Feb 2016 11:30:19 + Juri Lelli wrote: [...] > > > > Which kind of interface is better for this? Would adding > > > > something like /proc/sys/kernel/sched_other_period_us > > > > /proc/sys/kernel/sched_other_runtime_us > > > > be ok? > > > > > > > > If this is ok, I'll add

Re: [PATCH 0/3] OOM detection rework v4

2016-02-03 Thread Michal Hocko
Hi, this thread went mostly quite. Are all the main concerns clarified? Are there any new concerns? Are there any objections to targeting this for the next merge window? -- Michal Hocko SUSE Labs

[PATCH v3 03/14] mtd: spi-nor: select op codes and SPI NOR protocols by manufacturer

2016-02-03 Thread Cyrille Pitchen
This is a transitional patch to prepare the split by Manufacturer of the support of Single/Dual/Quad SPI modes. Indeed every QSPI NOR manufacturer (Spansion, Micron, Macronix, Winbond) supports Dual or Quad SPI modes on its way. Especially the Fast Read op code and the SPI NOR protocols to use are

[PATCH v3 01/14] mtd: spi-nor: remove micron_quad_enable()

2016-02-03 Thread Cyrille Pitchen
This patch remove the micron_quad_enable() function which force the Quad SPI mode. However, once this mode is enabled, the Micron memory expect ALL commands to use the SPI 4-4-4 protocol. Hence a failure does occur when calling spi_nor_wait_till_ready() right after the update of the Enhanced Volati

[PATCH v3 10/11] staging/android: add flags member to sync ioctl structs

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan Play safe and add flags member to all structs. So we don't need to break API or create new IOCTL in the future if new features that requires flags arises. v2: check if flags are valid (zero, in this case) Signed-off-by: Gustavo Padovan --- drivers/staging/android/sync.c

[PATCH v3 11/11] staging/android: remove redundant comments on sync_merge_data

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan struct sync_merge_data already have documentation on top of the struct definition. No need to duplicate it. Signed-off-by: Gustavo Padovan --- drivers/staging/android/uapi/sync.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/and

[PATCH v3 02/14] mtd: spi-nor: properly detect the memory when it boots in Quad or Dual mode

2016-02-03 Thread Cyrille Pitchen
The quad (or dual) mode of a spi-nor memory may be enabled at boot time by non-volatile bits in some setting register. Also such a mode may have already been enabled at early stage by some boot loader. Hence, we should not guess the spi-nor memory is always configured for the regular SPI 1-1-1 pro

[PATCH v3 00/14] mtd: spi-nor: add driver for Atmel QSPI controller

2016-02-03 Thread Cyrille Pitchen
Hi all, This series of patches adds support to the Atmel QSPI controller available on sama5d2 SoCs. It was tested on a sama5d2 xplained ultra board with Micron n25q128a13, Spansion s25fl512 and Macronix mx25l51245g QSPI memories and a at25df321a SPI memory. The SPI protocol to be used by .read_

[PATCH v3 04/11] staging/android: remove driver_data from struct sync_fence_info

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan It is unclear in what situations driver_data should be used thus better do not upstream it for now. If a need arises in the future a discussion can be started to re-add it. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sw_sync.c | 14 -- drivers

Re: sound: out-of-bounds write in snd_rawmidi_kernel_write1

2016-02-03 Thread Dmitry Vyukov
On Wed, Feb 3, 2016 at 10:35 AM, Takashi Iwai wrote: > On Wed, 03 Feb 2016 09:57:50 +0100, > Dmitry Vyukov wrote: >> >> Hello, >> >> The following program triggers an out-of-bounds write in >> snd_rawmidi_kernel_write1 (run in parallel loop). It seems to try to >> copy -1 bytes (aka 4GB) from user

[PATCH v3 03/11] staging/android: rename sync_file_info_data to sync_file_info

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan info_data is a bit redundant, let's keep it as only sync_file_info. It is also smaller. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sync.c | 26 +- drivers/staging/android/uapi/sync.h | 9 - 2 files changed, 17 insertio

[PATCH v3 01/11] staging/android: remove SYNC_WAIT ioctl

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan This ioctl is replicating the work of poll() syscall so let's take the opportunity that this is still on staging tree and remove the duplication and force new users to use the poll() standard interface. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sync.c

[PATCH v3 00/11] android sync framework: clean up IOCTLs and ABI

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan Hi, This patch series clean up IOCTLs and abi of sync framework and it is a follow up on the clean up series I've sent on Jan 21: http://thread.gmane.org/gmane.comp.video.dri.devel/145509 The main changes here are: * remove of SYNC_WAIT ioctl, poll() should be used inst

Re: [PATCH V2 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-03 Thread Laxman Dewangan
On Wednesday 03 February 2016 04:52 PM, Krzysztof Kozlowski wrote: On 03.02.2016 19:45, Krzysztof Kozlowski wrote: On 03.02.2016 18:30, Laxman Dewangan wrote: err_rtc: + if (info->rtc) + i2c_unregister_device(info->rtc); + regmap_del_irq_chip(info->rtc_irq, info-

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

2016-02-03 Thread Zubair Lutfullah Kakakhel
Hi, Thanks for the review. Response and further questions below. On 02/02/16 20:48, Arnd Bergmann wrote: On Tuesday 02 February 2016 18:24:45 Zubair Lutfullah Kakakhel wrote: diff --git a/Documentation/devicetree/bindings/mips/cavium/sata-uctl.txt b/Documentation/devicetree/bindings/mips/cav

Re: [PATCH 1/1] staging: coding style cleanups for staging/most/mostcore driver

2016-02-03 Thread Dan Carpenter
On Tue, Feb 02, 2016 at 06:57:46AM +0530, Bijosh Thykkoottathil wrote: > Gentle reminder. Wait for two more weeks before reminding us. regards, dan carpenter

Re: sound: WARNING in snd_rawmidi_kernel_write1

2016-02-03 Thread Dmitry Vyukov
On Wed, Feb 3, 2016 at 12:20 AM, Takashi Iwai wrote: > On Tue, 02 Feb 2016 22:25:45 +0100, > Dmitry Vyukov wrote: >> >> On Mon, Feb 1, 2016 at 11:36 AM, Takashi Iwai wrote: >> > On Mon, 01 Feb 2016 11:15:08 +0100, >> > Dmitry Vyukov wrote: >> >> >> >> Hello, >> >> >> >> The following program trig

Re: sound: deadlock between snd_rawmidi_kernel_open/snd_seq_port_connect

2016-02-03 Thread Dmitry Vyukov
On Wed, Feb 3, 2016 at 8:47 AM, Takashi Iwai wrote: >> > This looks like a false-positive report to me. Of course, we should >> > annotate the mutex there for nested locks, though. >> >> >> Takashi, can you please annotate it for lockdep? I hit it on every run. > > The lock had an annotation but

[PATCH] [RFC] ARM: modify pgd_t definition for TRANSPARENT_HUGEPAGE_PUD

2016-02-03 Thread Arnd Bergmann
I ran into build errors on ARM after Willy's newly added generic TRANSPARENT_HUGEPAGE_PUD support. We don't support this feature on ARM at all, but the patch causes a build error anyway: In file included from ../kernel/memremap.c:17:0: ../include/linux/pfn_t.h:108:7: error: 'pud_mkdevmap' declared

Re: [RFC][PATCH 4/4] sched: Add debugfs/sched/deadline_bw file to show current bandwidths

2016-02-03 Thread Steven Rostedt
On Wed, 3 Feb 2016 11:12:09 +0100 Ingo Molnar wrote: > * Peter Zijlstra wrote: > > > On Mon, Feb 01, 2016 at 05:38:09PM -0500, Steven Rostedt wrote: > > > > > Regardless of this final patch, what do you think of the first three? I > > > can send them as a separate series, just to get more of

Re: [PATCH 2/5] cpufreq: governor: Create separate sysfs-ops

2016-02-03 Thread Viresh Kumar
On 03-02-16, 13:42, Rafael J. Wysocki wrote: > > +static ssize_t governor_show(struct kobject *kobj, struct attribute *attr, > > +char *buf) > > +{ > > + struct dbs_data *dbs_data = to_dbs_data(kobj); > > + struct governor_attr *gattr = to_gov_attr(attr); > >

Re: sound: another WARNING in rawmidi_transmit_ack

2016-02-03 Thread Dmitry Vyukov
On Wed, Feb 3, 2016 at 8:15 AM, Takashi Iwai wrote: > On Tue, 02 Feb 2016 22:59:49 +0100, > Dmitry Vyukov wrote: >> >> On Mon, Feb 1, 2016 at 12:55 PM, Takashi Iwai wrote: >> > On Mon, 01 Feb 2016 12:31:20 +0100, >> > Dmitry Vyukov wrote: >> >> >> >> Hello, >> >> >> >> The following program trigg

[PATCH] ext4: add a line break for proc mb_groups display

2016-02-03 Thread Huaitong Han
This patch adds a line break for proc mb_groups display. Signed-off-by: Huaitong Han --- fs/ext4/mballoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 61eaf74..4424b7b 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -2

[PATCH] ASoC: mxs-saif: check BUSY bit in hw_params() only if not mclk_in_use

2016-02-03 Thread Mans Rullgard
If something else, typically a codec, has enabled mclk, the BUSY bit may be set when hw_params() is called without this being an error. This check thus causes intermittent failures to configure the sound device when used in such a manner. Fix this by making the test conditional on !saif->mclk_in_

Re: [PATCH] PM: Avoid false-positive warnings in dev_pm_domain_set()

2016-02-03 Thread Ulf Hansson
On 3 February 2016 at 13:08, Rafael J. Wysocki wrote: > On Wed, Feb 3, 2016 at 10:58 AM, Ulf Hansson wrote: >> On 30 January 2016 at 12:54, Rafael J. Wysocki wrote: >>> From: Rafael J. Wysocki >>> >>> There is a WARN_ON() in dev_pm_domain_set() that triggers on attempts >>> to set the pm_domain

Re: mm: uninterruptable tasks hanged on mmap_sem

2016-02-03 Thread Dmitry Vyukov
On Wed, Feb 3, 2016 at 2:11 PM, Jiri Kosina wrote: > On Tue, 2 Feb 2016, Dmitry Vyukov wrote: > >> Hello, >> >> If the following program run in a parallel loop, eventually it leaves >> hanged uninterruptable tasks on mmap_sem. >> >> [ 4074.740298] sysrq: SysRq : Show Locks Held >> [ 4074.740780] S

Re: [PATCH 1/3] mm: migrate: do not touch page->mem_cgroup of live pages

2016-02-03 Thread Mateusz Guzik
On Fri, Jan 29, 2016 at 06:19:31PM -0500, Johannes Weiner wrote: > Changing a page's memcg association complicates dealing with the page, > so we want to limit this as much as possible. Page migration e.g. does > not have to do that. Just like page cache replacement, it can forcibly > charge a repl

[PATCH v3] err.h: allow IS_ERR_VALUE to handle properly more types

2016-02-03 Thread Andrzej Hajda
Current implementation of IS_ERR_VALUE works correctly only with following types: - unsigned long, - short, int, long. Other types are handled incorrectly either on 32-bit either on 64-bit either on both architectures. The patch fixes it by comparing argument with MAX_ERRNO casted to argument's typ

[PATCH 2/5] oom reaper: handle mlocked pages

2016-02-03 Thread Michal Hocko
From: Michal Hocko __oom_reap_vmas current skips over all mlocked vmas because they need a special treatment before they are unmapped. This is primarily done for simplicity. There is no reason to skip over them and reduce the amount of reclaimed memory. This is safe from the semantic point of vie

[PATCH 3/5] oom: clear TIF_MEMDIE after oom_reaper managed to unmap the address space

2016-02-03 Thread Michal Hocko
From: Michal Hocko When oom_reaper manages to unmap all the eligible vmas there shouldn't be much of the freable memory held by the oom victim left anymore so it makes sense to clear the TIF_MEMDIE flag for the victim and allow the OOM killer to select another task. The lack of TIF_MEMDIE also m

[PATCH 1/5] mm, oom: introduce oom reaper

2016-02-03 Thread Michal Hocko
From: Michal Hocko This is based on the idea from Mel Gorman discussed during LSFMM 2015 and independently brought up by Oleg Nesterov. The OOM killer currently allows to kill only a single task in a good hope that the task will terminate in a reasonable time and frees up its memory. Such a tas

Re: [PATCH v1 1/3] media: v4l: Add VP8 format support in V4L2 framework

2016-02-03 Thread Marek Szyprowski
Hello, On 2016-01-26 10:04, Jung Zhao wrote: From: zhaojun Signed-off-by: zhaojun --- drivers/media/v4l2-core/v4l2-ctrls.c | 17 - drivers/media/v4l2-core/v4l2-ioctl.c | 3 + drivers/media/v4l2-core/videobuf2-dma-contig.c | 51 +- There is a separate

[PATCH 4/5] mm, oom_reaper: report success/failure

2016-02-03 Thread Michal Hocko
From: Michal Hocko Inform about the successful/failed oom_reaper attempts and dump all the held locks to tell us more who is blocking the progress. Signed-off-by: Michal Hocko --- mm/oom_kill.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/mm/oom_kill.c

[PATCH 5/5] mm, oom_reaper: implement OOM victims queuing

2016-02-03 Thread Michal Hocko
From: Michal Hocko wake_oom_reaper has allowed only 1 oom victim to be queued. The main reason for that was the simplicity as other solutions would require some way of queuing. The current approach is racy and that was deemed sufficient as the oom_reaper is considered a best effort approach to he

[PATCH 0/5] oom reaper v5

2016-02-03 Thread Michal Hocko
Hi, I am reposting the whole patchset on top of mmotm with the previous version of the patchset reverted for an easier review. The series applies cleanly on top of the current Linus tree as well. The previous version was posted http://lkml.kernel.org/r/1452094975-551-1-git-send-email-mho...@kerne

Re: mm: uninterruptable tasks hanged on mmap_sem

2016-02-03 Thread Jiri Kosina
On Tue, 2 Feb 2016, Dmitry Vyukov wrote: > Hello, > > If the following program run in a parallel loop, eventually it leaves > hanged uninterruptable tasks on mmap_sem. > > [ 4074.740298] sysrq: SysRq : Show Locks Held > [ 4074.740780] Showing all locks held in the system: > ... > [ 4074.762133]

Re: [PATCH 00/10] KVM PCIe/MSI passthrough on ARM/ARM64

2016-02-03 Thread Will Deacon
On Wed, Feb 03, 2016 at 01:50:47PM +0100, Christoffer Dall wrote: > On Mon, Feb 01, 2016 at 02:03:51PM +, Will Deacon wrote: > > On Fri, Jan 29, 2016 at 10:25:52PM +0100, Eric Auger wrote: > > > On 01/29/2016 08:33 PM, Alex Williamson wrote: > > > >>> We know that x86 handles MSI vectors specia

Re: [PATCH 4/5] cpufreq: Don't drop rwsem before calling CPUFREQ_GOV_POLICY_EXIT

2016-02-03 Thread Viresh Kumar
On 03-02-16, 13:24, Rafael J. Wysocki wrote: > I guess this was supposed to be "I am not ...". Urg.. -- viresh

Re: [PATCH net-next] hv_netvsc: Increase delay for RNDIS_STATUS_NETWORK_CHANGE

2016-02-03 Thread Vitaly Kuznetsov
Haiyang Zhang writes: > We simulates a link down period for RNDIS_STATUS_NETWORK_CHANGE message to > trigger DHCP renew. User daemons may need multiple seconds to trigger the > link down event. (e.g. ifplugd: 5sec, network-manager: 4sec.) So update > this link down period to 10 sec to properly tr

[PATCH v2] fix out of bound read in __test_aead()

2016-02-03 Thread Jerome Marchand
__test_aead() reads MAX_IVLEN bytes from template[i].iv, but the actual length of the initialisation vector can be shorter. The length of the IV is already calculated earlier in the function. Let's just reuses that. Also the IV length is currently calculated several time for no reason. Let's fix th

Re: [PATCH V2 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-03 Thread Javier Martinez Canillas
Hello Laxman, On 02/03/2016 06:30 AM, Laxman Dewangan wrote: To make RTC block of MAX77686/MAX77802 as independent driver, move the registration of i2c device, regmap for register access and irq_chip for interrupt support inside the RTC driver. Removed the same initialisation from MFD driver. H

[PATCH v4 01/43] usb: gadget: f_sourcesink: make ISO altset user-selectable

2016-02-03 Thread Robert Baldyga
So far it was decided during the bind process whether is iso altsetting included to f_sourcesink function or not. This decision was based on availability of isochronous endpoints. Since we can assemble gadget driver using composite framework and configfs from many different functions, availability

[PATCH v4 05/43] usb: gadget: composite: fix recursive spinlock locking

2016-02-03 Thread Robert Baldyga
Avoid recursive spinlock locking, which could occur during usb_gadget_deactivate() call. At it's execution path it could call composite_disconnect() function which locks cdev->lock, previously locked in usb_function_deactivate() to protect deactivation counter. To fix this we introduce additional

Re: [PATCH 3/3] add support for DWC UFS Host Controller

2016-02-03 Thread Arnd Bergmann
On Wednesday 03 February 2016 11:28:26 Joao Pinto wrote: > > Signed-off-by: Joao Pinto This needs a changelog comment, like every patch. > @@ -0,0 +1,16 @@ > +* Universal Flash Storage (UFS) DesignWare Host Controller > + > +DWC_UFSHC nodes are defined to describe on-chip UFS host controllers.

[PATCH v4 07/43] usb: gadget: composite: add functions for descriptors handling

2016-02-03 Thread Robert Baldyga
Introduce functions and macros allowing to create and assign descriptors to function easily. Macros build structure hierarchy using pointers to USB descriptors, while functions assigning them to gadget make a deep copy. It allows for easy conversion of USB functions to make them using new descripto

[PATCH v4 03/43] usb: gadget: f_loopback: free requests in loopback_disable()

2016-02-03 Thread Robert Baldyga
USB requests in Loopback function are allocated in loopback_get_alt() function, so we prefer to free them rather in loopback_disable() than in loopback_complete() when request is completed with error. It provides better symetry in resource management and improves code readability. Signed-off-by: R

[PATCH v4 14/43] usb: gadget: composite: introduce clear_alt() operation

2016-02-03 Thread Robert Baldyga
Introduce clear_alt() callback, which is called when prevoiusly set altsetting is cleared. This can take place in two situations: - when another altsetting is selected, - during function disable. Thanks to symetry to set_alt(), clear_alt() simplifies managing of resources allocated in set_alt(). I

[PATCH v4 09/43] usb: gadget: composite: handle function bind

2016-02-03 Thread Robert Baldyga
As now USB function supplies entity descriptors to composite in prep_descs() callback, we can perform bind inside composite framework without involving bind() callback (which now is unused and will be removed after converting all functions in kernel to new API). For now we bind each configuration

[PATCH v4 12/43] usb: gadget: composite: disable eps before calling disable() callback

2016-02-03 Thread Robert Baldyga
Changes meaning of disable() operation for functions using new API. Before calling disable() callback composite automatically disables endpoints of active altsettings of given USB function. This reduces amount of boilerplate code in USB functions. Signed-off-by: Robert Baldyga --- drivers/usb/ga

[PATCH v4 11/43] usb: gadget: composite: generate old descs for compatibility

2016-02-03 Thread Robert Baldyga
For now we generate descriptor arrays for each speed as it is done by old API functions, to allow use mixed new and old API based functions in single configurations. This will be removed after complete switch to new API. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/composite.c | 175 +++

Business Proposal

2016-02-03 Thread Mr. Nelson Jones
Hello Dear, Thank you for this privilege to communicate to you privately. I am keen in investing in your country and I need your assistance and co-operation to actualize it. I have investment interest in mining, exotic properties for commercial/residential and development properties, hotels and

[PATCH v4 15/43] usb: gadget: composite: handle get_alt() automatically

2016-02-03 Thread Robert Baldyga
As now we store current altsetting number for each interface, we can handle USB_REQ_GET_INTERFACE automatically. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/composite.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/us

<    6   7   8   9   10   11   12   13   14   15   >