[PATCH cgroup/for-4.4] cgroup: fix too early usage of static_branch_disable()

2015-09-25 Thread Tejun Heo
49d1dc4b8179 ("cgroup: implement static_key based cgroup_subsys_enabled() and cgroup_subsys_on_dfl()") converted cgroup enabled test to use static_key; however, cgroup_disable() is called before static_key subsystem itself is initialized and thus leads to the following warning when

[PATCH v3] Documentation: DT: twl-charger: document new iio properties

2015-09-25 Thread Marek Belisko
Document added iio properties to avoid using direct function call from twl4030-madc driver. Signed-off-by: Marek Belisko --- Documentation/devicetree/bindings/power/twl-charger.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/power/twl-charger.txt

[PATCH v3] ARM: dts: twl4030: Add iio properties for bci subnode

2015-09-25 Thread Marek Belisko
Added new iio properties which are required for twl4030-charger driver and allow to use twl4030-madc indirectly. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/twl4030.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/twl4030.dtsi b/arch/arm/boot/dts/twl4030.dtsi

[PATCH v3] drivers: power: twl4030_charger: fix link problems when building as module

2015-09-25 Thread Marek Belisko
If either twl4030_charger or twl4030_madc is configured as MODULE, we get build (link) errors. To solve, the direct call of twl4030_get_madc_conversion() is replaced by a call to iio_read_channel_processed(). Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- changes from v2:

Re: [RFC v7 25/41] richacl: Isolate the owner and group classes

2015-09-25 Thread J. Bruce Fields
On Fri, Sep 25, 2015 at 01:25:41PM +0200, Andreas Gruenbacher wrote: > Here is another minor improvement that produces deny aces with fewer > permissions in them and avoids creating unnecessary deny aces in some > cases. Looks good.--b. > > Andreas > > --- > fs/richacl_compat.c | 5 ++--- > 1

Re: [PATCH v3 4/5] regulators: tps65912: Add regulator driver for the TPS65912 PMIC

2015-09-25 Thread Andrew F. Davis
On 09/25/2015 01:05 PM, Mark Brown wrote: On Thu, Sep 24, 2015 at 09:52:53AM -0500, Andrew F. Davis wrote: +static int tps65912_regulator_probe(struct platform_device *pdev) +{ + struct tps65912 *tps = dev_get_drvdata(pdev->dev.parent); + struct regulator_init_data *init_data; +

Re: [PATCH V4 1/2] ACPI / EC: Fix broken 64bit big-endian users of 'global_lock'

2015-09-25 Thread Rafael J. Wysocki
On Friday, September 25, 2015 10:26:22 PM Rafael J. Wysocki wrote: > On Friday, September 25, 2015 11:52:56 AM Viresh Kumar wrote: > > On 25-09-15, 20:49, Johannes Berg wrote: > > > Ok, then, but that means Rafael is completely wrong ... > > > debugfs_create_bool() takes a *pointer* and it needs

Re: [Xen-devel] [PATCH] xen-blkback: free requests on disconnection

2015-09-25 Thread Konrad Rzeszutek Wilk
On Tue, Sep 22, 2015 at 12:10:18AM +0100, Julien Grall wrote: > Hi Konrad, > > On 09/09/2015 16:02, Konrad Rzeszutek Wilk wrote: > >>Konrad, would you like me to resend the patch with the modified commit > >>message, or do you plan to amend it yourself while committing? > > > >I will amend it.

Re: [PATCH V4 1/2] ACPI / EC: Fix broken 64bit big-endian users of 'global_lock'

2015-09-25 Thread Rafael J. Wysocki
On Friday, September 25, 2015 11:52:56 AM Viresh Kumar wrote: > On 25-09-15, 20:49, Johannes Berg wrote: > > Ok, then, but that means Rafael is completely wrong ... > > debugfs_create_bool() takes a *pointer* and it needs to be long-lived, > > it can't be on the stack. You also don't get a call

Re: [PATCH V4 1/2] ACPI / EC: Fix broken 64bit big-endian users of 'global_lock'

2015-09-25 Thread Rafael J. Wysocki
On Friday, September 25, 2015 10:18:13 PM Rafael J. Wysocki wrote: > On Friday, September 25, 2015 09:41:37 AM Viresh Kumar wrote: > > global_lock is defined as an unsigned long and accessing only its lower > > 32 bits from sysfs is incorrect, as we need to consider other 32 bits > > for big

Re: [PATCH V4 1/2] ACPI / EC: Fix broken 64bit big-endian users of 'global_lock'

2015-09-25 Thread Rafael J. Wysocki
On Friday, September 25, 2015 09:41:37 AM Viresh Kumar wrote: > global_lock is defined as an unsigned long and accessing only its lower > 32 bits from sysfs is incorrect, as we need to consider other 32 bits > for big endian 64 bit systems. There are no such platforms yet, but the > code needs to

Re: [v3 2/8] dpaa_eth: add support for DPAA Ethernet

2015-09-25 Thread David Miller
From: Madalin Bucur Date: Thu, 24 Sep 2015 18:00:13 +0300 > +#define DPA_NAPI_WEIGHT 64 This is just the default, so simply use "NAPI_POLL_WEIGHT" rather than defining your own macro unnecessarily for this. > +static int dpa_eth_priv_stop(struct net_device *net_dev) > +{ > +

Re: [RFC PATCH] PM / Runtime: runtime: Add sysfs option for forcing runtime suspend

2015-09-25 Thread Rafael J. Wysocki
On Friday, September 25, 2015 10:29:55 AM Alan Stern wrote: > On Fri, 25 Sep 2015, Rafael J. Wysocki wrote: > > > We are missing the "no remote wakeup" bit now (well, there is a PM QoS flag, > > but it isn't very useful, so I'd prefer to replace it with a "no remote > > wakeup" > > bit in struct

Re: x86_64: MAX_LOCAL_APIC way too big?

2015-09-25 Thread Denys Vlasenko
On 09/25/2015 06:56 PM, Jiang Liu wrote: > On 2015/9/26 0:16, Denys Vlasenko wrote: >> 32 thousand APICs? That's a lot. Especially >> considering that event with CONFIG_MAXSMP=y, >> NR_CPUS is "only" 8096. >> >> After a quick glance through code, it looks like >> such a big value causes several

Re: [PATCH] UBI: Validate data_size

2015-09-25 Thread Richard Weinberger
Am 24.09.2015 um 12:37 schrieb David Gstir: > >> On 22.09.2015, at 23:58, Richard Weinberger wrote: >> >> Make sure that data_size is less than LEB size. >> Otherwise a handcrafted UBI image is able to trigger >> an out of bounds memory access in ubi_compare_lebs(). >> >> Cc:

Re: [PATCH] net: via/Kconfig: GENERIC_PCI_IOMAP required if PCI not selected

2015-09-25 Thread David Miller
From: Sergei Shtylyov Date: Fri, 25 Sep 2015 21:03:52 +0300 > Hello. > > On 9/24/2015 1:16 PM, Sudip Mukherjee wrote: > >> The builds of allmodconfig of avr32 is failing with: >> >> drivers/net/ethernet/via/via-rhine.c:1098:2: error: implicit >> declaration >> of function 'pci_iomap'

Re: [PATCH] xen/pvhvm: add soft reset on kexec/kdump support

2015-09-25 Thread Konrad Rzeszutek Wilk
On Fri, Sep 25, 2015 at 03:19:57PM -0400, Boris Ostrovsky wrote: > On 09/25/2015 03:01 PM, Konrad Rzeszutek Wilk wrote: > >On Fri, Sep 25, 2015 at 01:17:40PM -0400, Boris Ostrovsky wrote: > >>On 09/25/2015 12:07 PM, Vitaly Kuznetsov wrote: > Also, I am not sure I see how this new op will be

Re: [PATCH net-next] net: remove unused argument of __netdev_find_adj()

2015-09-25 Thread David Miller
From: Michal Kubecek Date: Thu, 24 Sep 2015 10:59:05 +0200 (CEST) > The __netdev_find_adj() helper does not use its first argument, only the > device to find and list to walk through. > > Signed-off-by: Michal Kubecek Applied, thank you. -- To unsubscribe from this list: send the line

Re: [PATCH] regmap: Add HCI support

2015-09-25 Thread Marcel Holtmann
Hi Loic, > Add HCI support to the regmap API. > Some HCI/BT devices provide register access via their HCI interface. > (e.g. FM registers access for Intel BT/FM combo chip) > > Read/Write operations are performed via a HCI transaction composed of > a HCI command (host->controller) followed by a

Re: Multiple potential races on vma->vm_flags

2015-09-25 Thread Kirill A. Shutemov
On Wed, Sep 23, 2015 at 08:42:26PM -0400, Sasha Levin wrote: > On 09/23/2015 09:08 AM, Andrey Konovalov wrote: > > On Wed, Sep 23, 2015 at 3:39 AM, Hugh Dickins wrote: > >> > This is totally untested, and one of you may quickly prove me wrong; > >> > but I went in to fix your "Bad page state

Re: [PATCH 10/10] mm, page_alloc: Only enforce watermarks for order-0 allocations

2015-09-25 Thread Johannes Weiner
On Mon, Sep 21, 2015 at 01:03:17PM +0100, Mel Gorman wrote: > The primary purpose of watermarks is to ensure that reclaim can always > make forward progress in PF_MEMALLOC context (kswapd and direct reclaim). > These assume that order-0 allocations are all that is necessary for > forward progress.

[PATCHv4 3/3] drm: bridge: anx78xx: Add anx78xx driver support by analogix.

2015-09-25 Thread Enric Balletbo i Serra
At the moment it only supports ANX7814. The ANX7814 is an ultra-low power Full-HD (1080p60) SlimPort transmitter designed for portable devices. This driver adds initial support and supports HDMI to DP pass-through mode. Signed-off-by: Enric Balletbo i Serra --- drivers/gpu/drm/bridge/Kconfig

[PATCHv4 1/3] of: Add vendor prefix for Analogix Semiconductor, Inc.

2015-09-25 Thread Enric Balletbo i Serra
Analogix Semiconductor develops analog and mixed-signal devices for digital media and communications interconnect applications. Signed-off-by: Enric Balletbo i Serra Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff

[PATCHv4 2/3] devicetree: Add new ANX7814 SlimPort transmitter binding.

2015-09-25 Thread Enric Balletbo i Serra
The ANX7814 is an ultra-low power Full-HD (1080p60) SlimPort transmitter designed for portable devices. You can add support to your board with current binding. Example: anx7814: anx7814@38 { compatible = "analogix,anx7814"; reg = <0x38>;

[PATCHv4 0/3] Add initial support for slimport anx78xx

2015-09-25 Thread Enric Balletbo i Serra
Hi all, This is the fouth version with fixes suggested by Nicolas Boichat and Dan Carpenter. See the changelog below for details. The following series add initial support for the Slimport ANX7814 transmitter, a ultra-low power Full-HD (1080p60) transmitter designed for portable device. The

[PATCH 2/2] gpio: omap: convert to use generic irq handler

2015-09-25 Thread Grygorii Strashko
This patch converts TI OMAP GPIO driver to use generic irq handler instead of chained IRQ handler. This way OMAP GPIO driver will be compatible with RT kernel where it will be forced thread IRQ handler while in non-RT kernel it still will be executed in HW IRQ context. As part of this change the

[PATCH 0/2] convert to use generic irq handler

2015-09-25 Thread Grygorii Strashko
This patch series contains patches which fixes wrong APIs usage in atomic context on RT-kernel. The final goal is to make TI OMAP GPIO driver compatible with -RT kernel as much as possible. Patch 1: required to be compatible with -RT kernel, because PM runtime's irq_safe mode is incompatible with

[PATCH 1/2] gpio: omap: move pm runtime in irq_chip.irq_bus_lock/sync_unlock

2015-09-25 Thread Grygorii Strashko
The PM runtime API can't be used in atomic contex on -RT even if it's configured as irqsafe. As result, below error report can be seen when PM runtime API called from IRQ chip's callbacks irq_startup/irq_shutdown/irq_set_type, because they are protected by RAW spinlock: BUG: sleeping function

Re: [PATCH 09/10] mm, page_alloc: Reserve pageblocks for high-order atomic allocations on demand

2015-09-25 Thread Johannes Weiner
On Mon, Sep 21, 2015 at 11:52:41AM +0100, Mel Gorman wrote: > High-order watermark checking exists for two reasons -- kswapd high-order > awareness and protection for high-order atomic requests. Historically the > kernel depended on MIGRATE_RESERVE to preserve min_free_kbytes as high-order > free

Re: [PATCH] xen/pvhvm: add soft reset on kexec/kdump support

2015-09-25 Thread Boris Ostrovsky
On 09/25/2015 03:01 PM, Konrad Rzeszutek Wilk wrote: On Fri, Sep 25, 2015 at 01:17:40PM -0400, Boris Ostrovsky wrote: On 09/25/2015 12:07 PM, Vitaly Kuznetsov wrote: Also, I am not sure I see how this new op will be used in the hypervisor --- currently AFAICS it is only processed under

[PATCH V2 1/3] RAS, mce_amd_inj: Return early on invalid input

2015-09-25 Thread Aravind Gopalakrishnan
Invalid input such as these are currently reported on dmesg- $> echo sweet > flags [ 122.079139] flags_write: Invalid flags value: et Even if the 'flags' attribute has been updated correctly- $> cat flags sw But the input as a whole is wrong and we should not be writing anything to the file.

[PATCH V2 3/3] RAS, mce_amd_inj: Inject errors on NBC for bank 4 errors

2015-09-25 Thread Aravind Gopalakrishnan
Bank 4 MCEs are logged and reported only on the node base core (NBC) in a socket. Refer to the D18F3x44[NbMcaToMstCpuEn] field in Fam10h and later BKDGs. The node base core (NBC) is the lowest numbered core in the node. This patch ensures that we inject the error on the NBC for bank 4 errors.

[PATCH V2 0/3] Updates to mce_amd_inj module

2015-09-25 Thread Aravind Gopalakrishnan
This patchset is mostly a resend of earlier patches which got acceptance into maintainer's tree but did not make it into upstream. Original versions of patches 2 and 3 of this patchset- a. http://marc.info/?l=linux-edac=143327679901253=2 b. http://marc.info/?l=linux-edac=143392472509250=2 Changes

[PATCH V2 2/3] RAS, mce_amd_inj: Add capability to trigger apic interrupts

2015-09-25 Thread Aravind Gopalakrishnan
With this extension to the flags attribute, deferred error interrupts and threshold interrupts can be triggered to test the apic interrupt handler functionality for these type of errors Update README section about the same too. Signed-off-by: Aravind Gopalakrishnan ---

Re: [PATCH v3 3/5] mfd: tps65912: Add driver for the TPS65912 PMIC

2015-09-25 Thread Andrew F. Davis
On 09/25/2015 11:50 AM, Lee Jones wrote: On Thu, 24 Sep 2015, Andrew F. Davis wrote: This patch adds support for TPS65912 mfd device. It provides communication through the I2C and SPI interfaces. It contains the following components: - Regulators - GPIO controller Signed-off-by: Andrew

Re: [PATCH 03/16] page-flags: introduce page flags policies wrt compound pages

2015-09-25 Thread Kirill A. Shutemov
e = compound_head(page); \ > >+page;}) > >+#define PF_NO_COMPOUND(page, enforce) ({ > >\ > >+if (enforce)\ > >+VM_BUG_ON_PAGE(PageCom

[PATCH] Clk: tegra: Use module_platform_driver

2015-09-25 Thread Shraddha Barke
Use module_platform_driver for drivers whose init and exit functions only register and unregister, respectively. Coccinelle patch used- @a@ identifier f, x; @@ -static f(...) { return platform_driver_register(); } @b depends on a@ identifier e, a.x; @@ -static e(...) {

Re: [PATCH 07/10] mm, page_alloc: Delete the zonelist_cache

2015-09-25 Thread Johannes Weiner
On Mon, Sep 21, 2015 at 11:52:39AM +0100, Mel Gorman wrote: > The zonelist cache (zlc) was introduced to skip over zones that were > recently known to be full. This avoided expensive operations such as the > cpuset checks, watermark calculations and zone_reclaim. The situation > today is different

Re: [PATCH 1/3] Make /dev/urandom scalable

2015-09-25 Thread Austin S Hemmelgarn
On 2015-09-25 07:41, Austin S Hemmelgarn wrote: On 2015-09-24 16:14, Theodore Ts'o wrote: On Thu, Sep 24, 2015 at 03:11:23PM -0400, Austin S Hemmelgarn wrote: That is a startling result. Please say what architecture, kernel version, dieharder version and commandline arguments you are using to

[PATCH] gpio: omap: fix static checker warning

2015-09-25 Thread Grygorii Strashko
This patch fixes below static checker warning by changing type of irq field in struct gpio_bank from u16 to int. drivers/gpio/gpio-omap.c:1191 omap_gpio_probe() warn: assigning (-6) to unsigned variable 'bank->irq' drivers/gpio/gpio-omap.c 1188 bank->irq =

Re: [PATCH 06/10] mm, page_alloc: Rename __GFP_WAIT to __GFP_RECLAIM

2015-09-25 Thread Johannes Weiner
On Mon, Sep 21, 2015 at 11:52:38AM +0100, Mel Gorman wrote: > __GFP_WAIT was used to signal that the caller was in atomic context and > could not sleep. Now it is possible to distinguish between true atomic > context and callers that are not willing to sleep. The latter should clear >

Re: [PATCH 05/10] mm, page_alloc: Distinguish between being unable to sleep, unwilling to sleep and avoiding waking kswapd

2015-09-25 Thread Johannes Weiner
On Fri, Sep 25, 2015 at 01:51:06PM +0100, Mel Gorman wrote: > On Thu, Sep 24, 2015 at 04:55:09PM -0400, Johannes Weiner wrote: > > On Mon, Sep 21, 2015 at 11:52:37AM +0100, Mel Gorman wrote: > > > @@ -119,10 +134,10 @@ struct vm_area_struct; > > > #define GFP_USER (__GFP_WAIT | __GFP_IO |

Re: [PATCH] xen/pvhvm: add soft reset on kexec/kdump support

2015-09-25 Thread Konrad Rzeszutek Wilk
On Fri, Sep 25, 2015 at 01:17:40PM -0400, Boris Ostrovsky wrote: > On 09/25/2015 12:07 PM, Vitaly Kuznetsov wrote: > >>Also, I am not sure I see how this new op will be used in the > >>hypervisor --- currently AFAICS it is only processed under > >>is_hardware_domain(). Are there other patches that

Re: [PATCH 09/14] ARM: dts: ifc6410: Add missing pinctrl to gsbi7 uart

2015-09-25 Thread Kevin Hilman
patch, which landed in linux next in the form of commit d3a578ed4310 ARM: dts: ifc6410: Add missing pinctrl to gsbi7 uart. Kevin [1] http://kernelci.org/boot/qcom-apq8064-ifc6410/job/next/kernel/next-20150925/defconfig/multi_v7_defconfig/lab/lab-khilman/?_id=5605083c59b51466d26c3250 -- To unsu

Re: [PATCH V4 1/2] ACPI / EC: Fix broken 64bit big-endian users of 'global_lock'

2015-09-25 Thread Viresh Kumar
On 25-09-15, 20:49, Johannes Berg wrote: > Ok, then, but that means Rafael is completely wrong ... > debugfs_create_bool() takes a *pointer* and it needs to be long-lived, > it can't be on the stack. You also don't get a call when it changes. Ahh, ofcourse. My bad as well... I think we can

Re: [PATCH V4 1/2] ACPI / EC: Fix broken 64bit big-endian users of 'global_lock'

2015-09-25 Thread Johannes Berg
> Rafael wrote: > > Actually, what about adding a local u32 variable, say val, here and > > doing > > > > > if (!debugfs_create_x32("gpe", 0444, dev_dir, (u32 > > > *)_ec->gpe)) > > > goto error; > > > if (!debugfs_create_bool("use_global_lock", 0444, > > > dev_dir, > > > -

Re: [PATCH V4 1/2] ACPI / EC: Fix broken 64bit big-endian users of 'global_lock'

2015-09-25 Thread Viresh Kumar
On 25-09-15, 19:42, Johannes Berg wrote: > On Fri, 2015-09-25 at 09:41 -0700, Viresh Kumar wrote: > > > Signed-off-by: Viresh Kumar > > --- > > V3->V4: > > - Create a local variable instead of changing type of global_lock > > (Rafael) > > Err, surely that wasn't what Rafael meant, since it's

Re: No more new fbdev drivers, please

2015-09-25 Thread Daniel Vetter
On Fri, Sep 25, 2015 at 04:09:46PM +0300, Tomi Valkeinen wrote: > > > On 25/09/15 13:41, Kamil Lulko wrote: > > Hi, > > > >> fbdev is (more or less) maintained, but it's a deprecated framework. All > >> new Linux display drivers should be done on DRM. > > > > What about no-mmu platforms? DRM

Re: [PATCH] richacl: Possible other write-through fix

2015-09-25 Thread J. Bruce Fields
On Fri, Sep 25, 2015 at 06:45:59PM +0200, Andreas Gruenbacher wrote: > 2015-09-24 20:33 GMT+02:00 J. Bruce Fields : > > On Sat, Sep 05, 2015 at 12:27:21PM +0200, Andreas Gruenbacher wrote: > >> +int > >> +richacl_apply_masks(struct richacl **acl, kuid_t owner) > >> +{ > >> + if

Re: [PATCH v2] gpio: mention in DT binding doc that -gpio is deprecated

2015-09-25 Thread Rob Herring
On Mon, Sep 21, 2015 at 7:57 AM, Javier Martinez Canillas wrote: > The gpiolib supports parsing DT properties of the form -gpio but it > was only added for compatibility with older DT bindings that got it wrong > and should not be used in newer bindings. > > The commit that added support for this

[PATCH V1 3/6] ASoC: tlv320aic26: Make SND_SOC_TLV320AIC26 user-visible

2015-09-25 Thread Cormier, Jonathan
Allow SND_SOC_TLV320AIC26 to be built. Based on commit: http://mailman.alsa-project.org/pipermail/alsa-devel/2008-October/011287.html Signed-off-by: Cormier, Jonathan --- sound/soc/codecs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/Kconfig

[PATCH V1 2/6] ASoC: tlv320aic26: Fix module autoload

2015-09-25 Thread Cormier, Jonathan
Add the missing MODULE_DEVICE_TABLE() for OF and SPI to export the information so modules have the correct aliases built-in and autoloading works correctly. A longer explanation by Javier Canillas can be found here: https://lkml.org/lkml/2015/7/30/519 https://lkml.org/lkml/2014/9/11/458

[PATCH V1 1/6] ASoC: tlv320aic26: Add device tree binding

2015-09-25 Thread Cormier, Jonathan
Signed-off-by: Cormier, Jonathan --- .../devicetree/bindings/sound/tlv320aic26.txt | 65 ++ sound/soc/codecs/tlv320aic26.c | 6 ++ 2 files changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/tlv320aic26.txt diff

[PATCH V1 6/6] ASoC: tlv320aic26: Change Capture Mute to Capture Switch to match alsa documentation.

2015-09-25 Thread Cormier, Jonathan
Signed-off-by: Cormier, Jonathan --- sound/soc/codecs/tlv320aic26.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/tlv320aic26.c b/sound/soc/codecs/tlv320aic26.c index 7d2fbca068d0..f7629b17ee5b 100644 --- a/sound/soc/codecs/tlv320aic26.c +++

[PATCH V1 4/6] ASoC: tlv320aic26: Fix regmap by setting reg_defaults and reg_stride

2015-09-25 Thread Cormier, Jonathan
tlv320aic26 codec wasn't being setup correctly on bootup due to misconfigured regmap cache. Fixes: b7e9f3973279 "ASoC: tlv320aic26: Convert to direct regmap API usage" Signed-off-by: Cormier, Jonathan --- sound/soc/codecs/tlv320aic26.c | 28 1 file changed, 28

[PATCH V1 5/6] ASoC: tlv320aic26: hw_params was unintentionally clearing AIC26 master mode

2015-09-25 Thread Cormier, Jonathan
Commit: 5b0959d472c2 "ASoC: tlv320aic26: Use snd_soc_update_bits()" broke setting AIC26_REG_AUDIO_CTRL3 in master mode when fsref happens to be 48000. The master mode bit was getting cleared. Also fix setting AIC26_REG_DAC_GAIN and AIC26_REG_AUDIO_CTRL2 which was broke by same commit. Fixes:

[PATCH V1 0/6] ASoC: tlv320aic26: Add device tree support and bug fixes

2015-09-25 Thread Cormier, Jonathan
Hi, The following patches were created to get the tlv320aic26 working on our AM335x SoM. This patch series relies on commit 93d0ad8f374c "ASoC: tlv320aic26: Convert to params_width()" for proper operation. Changes since RFC: - Removed the unecessary "#if defined(CONFIG_OF)" - Dropped the DSP_B

[PATCH 0/5] kernel/cpu.c: eliminate some indirection

2015-09-25 Thread Rasmus Villemoes
Maybe third time's the charm... The four cpumasks cpu_{possible,online,present,active}_bits are exposed readonly via the corresponding const variables cpu_xyz_mask. But they are also accessible for arbitrary writing via the exposed functions set_cpu_xyz. There's quite a bit of code throughout the

[PATCH 2/5] kernel/cpu.c: export __cpu_*_mask

2015-09-25 Thread Rasmus Villemoes
Exporting the cpumasks __cpu_possible_mask and friends will allow us to remove the extra indirection through the cpu_*_mask variables. It will also allow the set_cpu_* functions to become static inlines, which will give a .text reduction. Signed-off-by: Rasmus Villemoes ---

Re: [PATCH] dax: fix deadlock in __dax_fault

2015-09-25 Thread Ross Zwisler
On Fri, Sep 25, 2015 at 12:53:57PM +1000, Dave Chinner wrote: <> > We've already got block allocation serialisation at the filesystem > level, and the issue is the unserialised block zeroing being done by > the dax code. That can be fixed by moving the zeroing into the > filesystem code when it

[PATCH 5/5] kernel/cpu.c: make set_cpu_* static inlines

2015-09-25 Thread Rasmus Villemoes
Almost all callers of the set_cpu_* functions pass an explicit true or false. Making them static inline thus replaces the function calls with a simple set_bit/clear_bit, saving some .text. Signed-off-by: Rasmus Villemoes --- include/linux/cpumask.h | 43

[PATCH 1/5] kernel/cpu.c: change type of cpu_possible_bits and friends

2015-09-25 Thread Rasmus Villemoes
Change cpu_possible_bits and friends (online, present, active) from being bitmaps that happen to have the right size to actually being struct cpumasks. Also rename them to __cpu_xyz_mask. This is mostly a small cleanup in preparation for exporting them and, eventually, eliminating the extra

[PATCH 4/5] kernel/cpu.c: eliminate cpu_*_mask

2015-09-25 Thread Rasmus Villemoes
Replace the variables cpu_possible_mask, cpu_online_mask, cpu_present_mask and cpu_active_mask with macros expanding to expressions of the same type and value, eliminating some indirection. Signed-off-by: Rasmus Villemoes --- include/linux/cpumask.h | 8 kernel/cpu.c| 8

[PATCH 3/5] drivers/base/cpu.c: use __cpu_*_mask directly

2015-09-25 Thread Rasmus Villemoes
The only user of the lvalue-ness of the cpu_*_mask variables is in drivers/base/cpu.c, and that is mostly a work-around for the fact that not even const variables can be used in static initialization. Now that the underlying struct cpumasks are exposed we can take their address. Signed-off-by:

Re: [PATCH v2 0/2] ASoC: atmel-classd: add driver for Atmel CLASSD

2015-09-25 Thread Mark Brown
On Thu, Sep 24, 2015 at 01:41:25PM +0800, Songjun Wu wrote: > Songjun Wu (2): > ASoC: atmel-classd: add the Audio Class D Amplifier > ASoC: atmel-classd: DT binding for Class D audio amplifier driver I don't seem to have the second patch with the binding documentation. signature.asc

Re: [PATCH v3 4/5] regulators: tps65912: Add regulator driver for the TPS65912 PMIC

2015-09-25 Thread Mark Brown
On Thu, Sep 24, 2015 at 09:52:53AM -0500, Andrew F. Davis wrote: > +static int tps65912_regulator_probe(struct platform_device *pdev) > +{ > + struct tps65912 *tps = dev_get_drvdata(pdev->dev.parent); > + struct regulator_init_data *init_data; > + const struct tps_info *template; > +

Re: [PATCH v4 4/7] fs: Limit file caps to the user namespace of the super block

2015-09-25 Thread Eric W. Biederman
Seth Forshee writes: > On Thu, Sep 24, 2015 at 04:59:35PM -0500, Eric W. Biederman wrote: >> Seth Forshee writes: >> >> > Capability sets attached to files must be ignored except in the >> > user namespaces where the mounter is privileged, i.e. s_user_ns >> > and its descendants. Otherwise a

Re: [PATCH v2] f2fs: fix to correct freed section number during gc

2015-09-25 Thread Jaegeuk Kim
On Fri, Sep 25, 2015 at 05:50:55PM +0800, Chao Yu wrote: > This patch fixes to maintain the right section count freed in garbage > collecting when triggering a foreground gc. > > Besides, when a foreground gc is running on current selected section, once > we fail to gc one segment, it's better to

Re: [PATCH] arm64: Increase the max granular size

2015-09-25 Thread Tirumalesh Chalamarla
On 09/25/2015 07:45 AM, Robert Richter wrote: Will, On 22.09.15 19:29:02, Will Deacon wrote: On Tue, Sep 22, 2015 at 06:59:48PM +0100, Robert Richter wrote: From: Tirumalesh Chalamarla Increase the standard cacheline size to avoid having locks in the same cacheline. Cavium's ThunderX

Re: [PATCH] net: via/Kconfig: GENERIC_PCI_IOMAP required if PCI not selected

2015-09-25 Thread Sergei Shtylyov
Hello. On 9/24/2015 1:16 PM, Sudip Mukherjee wrote: The builds of allmodconfig of avr32 is failing with: drivers/net/ethernet/via/via-rhine.c:1098:2: error: implicit declaration of function 'pci_iomap' [-Werror=implicit-function-declaration] drivers/net/ethernet/via/via-rhine.c:1119:2: error:

Re: [Patch v3 00/10] Add RPM/SMD Support for QCOM platforms

2015-09-25 Thread Mark Brown
On Thu, Sep 24, 2015 at 02:18:49PM -0500, Andy Gross wrote: > This patch set cleans up the documentation that is currently in place for the > SMD, SMD-RPM, and SMD-RPM regulators. In addition, this patch set adds > support > for the PM8916 found on MSM8916 platforms and the PMA8084 found on

[PATCH v2 2/8] spi: imx: replace fixed timeout with calculated one

2015-09-25 Thread Anton Bondarenko
Fixed timeout value can fire while transaction is ongoing. This may happen because there are no strict requirements on SPI transaction duration. Dynamic timeout value is generated based on SCLK and transaction size. There is also 4 * SCLK delay between TX bursts related to CS change.

[PATCH v2 5/8] spi: imx: Add support for loopback for ECSPI controllers

2015-09-25 Thread Anton Bondarenko
Support for ECSPI loopback for IMX51,IMX53 and IMX6Q using TEST register. Signed-off-by: Mohsin Kazmi Signed-off-by: Anton Bondarenko --- drivers/spi/spi-imx.c | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-imx.c

[PATCH v2 4/8] spi: imx: add selection for iMX53 and iMX6 controller type

2015-09-25 Thread Anton Bondarenko
ECSPI contorller for iMX53 and iMX6 has few hardware issues in slave mode and (32*n+1) SPI word size handling comparing to iMX51. The change add possibility to detect the SPI controller is use and apply workarounds/limitations. Documentation for device tree bindings updated Signed-off-by: Anton

[PATCH 0/1] ns: introduce proc_get_ns_by_fd()

2015-09-25 Thread Oleg Nesterov
On 09/25, Konstantin Khlebnikov wrote: > > +struct ns_common *proc_ns_fdget(int fd, int nstype, struct fd *fd_ref) > { > - struct file *file; > + struct ns_common *ns; > + struct fd f; > > - file = fget(fd); > - if (!file) > + f = fdget(fd); > + if (!f.file) >

[PATCH v2 7/8] spi: imx: defer spi initialization, if DMA engine is pending

2015-09-25 Thread Anton Bondarenko
If SPI device supports DMA mode, but DMA controller is not yet available due to e.g. a delay in the corresponding kernel module initialization, retry to initialize SPI driver later on instead of falling back into PIO only mode. Signed-off-by: Vladimir Zapolskiy Signed-off-by: Anton Bondarenko

[PATCH 1/1] ns: introduce proc_get_ns_by_fd()

2015-09-25 Thread Oleg Nesterov
Introduce proc_get_ns_by_fd() so that get_net_ns_by_fd() becomes one-liner. It will have another CLONE_NEWPID user soon. TODO: proc_get_ns_by_fd() can share some code with proc_ns_fget(). Signed-off-by: Oleg Nesterov --- fs/nsfs.c| 24

[PATCH v2 8/8] spi: imx: Add support for SPI Slave mode for imx53 and imx6 chips

2015-09-25 Thread Anton Bondarenko
Currently i.MX SPI controller only works in Master mode. This patch adds support to work also in Slave mode by adding "fsl,spi-slave-mode" in corresponding ecspi node in devicetree. Currently SPI Slave mode support patch has the following limitations: 1. The stale data in RXFIFO will be dropped

[PATCH v2 6/8] spi: imx: return error from dma channel request

2015-09-25 Thread Anton Bondarenko
On SDMA initialization return exactly the same error, which is reported by dma_request_slave_channel_reason(), it is a preceding change to defer SPI DMA initialization, if SDMA module is not yet available. Signed-off-by: Vladimir Zapolskiy Signed-off-by: Anton Bondarenko ---

[PATCH v2 1/8] spi: imx: Fix DMA transfer

2015-09-25 Thread Anton Bondarenko
RX DMA tail data handling doesn't work correctly in many cases with current implementation. It happens because SPI core was setup to generates both RX watermark level and RX DATA TAIL events incorrectly. SPI transfer triggering for DMA also done in wrong way. SPI client wants to transfer 70 words

[PATCH v2 3/8] spi: imx: add support for all SPI word width for DMA transfer

2015-09-25 Thread Anton Bondarenko
DMA transfer for SPI was limited to up to 8 bits word size until now. Sync in SPI burst size and DMA bus width is necessary to correctly support other BPW supported by HW. Signed-off-by: Anton Bondarenko --- drivers/spi/spi-imx.c | 121 -- 1 file

[PATCH v2 0/8] Improvements for SPI IMX driver for Freescale IMX53 and IMX6 families

2015-09-25 Thread Anton Bondarenko
A number of patches to impove or add the implementation for the spi-imx driver related to Freescale IMX53 and IMX6. It would also possible some of patches can be applied for other Freescale controllers using spi-imx driver but could not be tested due to lack of hardware. Anton Bondarenko (8):

Re: [PATCH v4 3/7] fs: Verify access of user towards block device file when mounting

2015-09-25 Thread Eric W. Biederman
Seth Forshee writes: > On Fri, Sep 25, 2015 at 12:16:59PM -0500, Eric W. Biederman wrote: >> >> Argh. This looks like morning person meets night owl. > > Indded :-) > >> Seth Forshee writes: >> >> > On Thu, Sep 24, 2015 at 04:53:11PM -0500, Eric W. Biederman wrote: >> >> Seth Forshee

Re: fuse scalability part 1

2015-09-25 Thread Ashish Samant
On 09/25/2015 05:11 AM, Miklos Szeredi wrote: On Thu, Sep 24, 2015 at 9:17 PM, Ashish Samant wrote: We did some performance testing without these patches and with these patches (with -o clone_fd option specified). We did 2 types of tests: 1. Throughput test : We did some parallel dd tests

[PATCH] sched/fair: Skip wake_affine() for core siblings

2015-09-25 Thread Kirill Tkhai
We are not interested in actual target if both prev and curr cpus share CPU cache. select_idle_sibling() searches in top-down order; top level is the same for both of them, and the result will be the same. So, we can save a little CPU cycles and cache misses and skip wake_affine() calculations.

Re: [PATCH] arm64: Add support for PTE contiguous bit.

2015-09-25 Thread Steve Capper
On 21 September 2015 at 09:44, David Woods wrote: > > Steve, Hi Dave, > > Thanks for your review and comments. I take your points about the 16k > granule - it's helpful to know that support is in the works. However, I'm > not sure I agree with your reading of section 4.4.2. It's clear that for

Applied "regmap: Add generic macro to define regmap_irq" to the regmap tree

2015-09-25 Thread Mark Brown
The patch regmap: Add generic macro to define regmap_irq has been applied to the regmap tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Re: [PATCH v2 2/2] EDAC: Fix sysfs dimm_label store operation

2015-09-25 Thread Borislav Petkov
On Thu, Sep 24, 2015 at 01:59:27PM -0600, Toshi Kani wrote: > On Thu, 2015-09-24 at 21:15 +0200, Borislav Petkov wrote: > > On Thu, Sep 24, 2015 at 01:06:04PM -0600, Toshi Kani wrote: > > > edac-utils(1) checks empty labels and shows them as "ch%d" [1]. So, > > > I think empty labels are

Re: [PATCH 2/7] tools build: Add test for missing include

2015-09-25 Thread Arnaldo Carvalho de Melo
Em Wed, Sep 23, 2015 at 12:33:57PM +0200, Jiri Olsa escreveu: > The current build framework fails to cope with header file > removal. The reason is the removed header file stays in the > .cmd file target rule and force the build to fail. So, where is this test hooked up, is the way to test this

[PATCH 2/4] lib/vsprintf.c: also improve sanity check in bstr_printf()

2015-09-25 Thread Rasmus Villemoes
Quoting from 2aa2f9e21e4e ("lib/vsprintf.c: improve sanity check in vsnprintf()"): On 64 bit, size may very well be huge even if bit 31 happens to be 0. Somehow it doesn't feel right that one can pass a 5 GiB buffer but not a 3 GiB one. So cap at INT_MAX as was probably the intention

Re: [PATCH V4 1/2] ACPI / EC: Fix broken 64bit big-endian users of 'global_lock'

2015-09-25 Thread Johannes Berg
On Fri, 2015-09-25 at 09:41 -0700, Viresh Kumar wrote: > Signed-off-by: Viresh Kumar > --- > V3->V4: > - Create a local variable instead of changing type of global_lock > (Rafael) Err, surely that wasn't what Rafael meant, since it's clearly impossible to use a pointer to the stack, assign to

[PATCH 1/4] lib/vsprintf.c: handle invalid format specifiers more robustly

2015-09-25 Thread Rasmus Villemoes
If we meet any invalid or unsupported format specifier, 'handling' it by just printing it as a literal string is not safe: Presumably the format string and the arguments passed gcc's type checking, but that means something like sprintf(buf, "%n %pd", , dentry) would end up interpreting as a

[PATCH 0/4] printf stuff

2015-09-25 Thread Rasmus Villemoes
A few printf-related patches I've been sitting on. I also have some documentation updates, but I'll wait until I see Martin's patch [1] in -next. There's also the %pb issue [2], but I'm not sure there's consensus on the best fix for that. [1] https://lkml.org/lkml/2015/9/24/256 [2]

[PATCH 4/4] test_printf: test printf family at runtime

2015-09-25 Thread Rasmus Villemoes
This adds a simple module for testing the kernel's printf facilities. Previously, some %p extensions have caused a wrong return value in case the entire output didn't fit and/or been unusable in kasprintf(). This should help catch such issues. Also, it should help ensure that changes to the

[PATCH 3/4] lib/vsprintf.c: Remove SPECIAL handling in pointer()

2015-09-25 Thread Rasmus Villemoes
As a quick git grep -E '%[ +0#-]*#[ +0#-]*(\*|[0-9]+)?(\.(\*|[0-9]+)?)?p' shows, nobody uses the # flag with %p. Moreover, I think users are unlikely to show up since gcc will complain with warning: `#' flag used with ā€˜%pā€™ gnu_printf format [-Wformat] Since default_width is effectively

Re: [PATCH v4 3/7] fs: Verify access of user towards block device file when mounting

2015-09-25 Thread Seth Forshee
On Fri, Sep 25, 2015 at 12:16:59PM -0500, Eric W. Biederman wrote: > > Argh. This looks like morning person meets night owl. Indded :-) > Seth Forshee writes: > > > On Thu, Sep 24, 2015 at 04:53:11PM -0500, Eric W. Biederman wrote: > >> Seth Forshee writes: > >> > >> > When mounting a

Re: [PATCH 1/3] Documentation: dt: keystone: provide SoC specific compatible flags

2015-09-25 Thread Nishanth Menon
On 09/25/2015 11:15 AM, santosh shilimkar wrote: > 9/25/2015 9:01 AM, Nishanth Menon wrote: >> On 09/25/2015 10:18 AM, santosh shilimkar wrote: >>> On 9/25/2015 7:50 AM, Nishanth Menon wrote: >> [...] But, how about userspace needing to know which SoC they are on, without needing to

Re: [PATCH 12/12] mtd: nand-bbt: move nand_bbt.c to mtd folder

2015-09-25 Thread Brian Norris
Hi Peter, First of all, thanks for taking the time to try to address my long-delayed comments. I hope to give this a proper look soon. (I also hope you can fix the email threading soon! I know that's a pain...) But first, a simpler comment: On Fri, Sep 25, 2015 at 06:48:05AM +, Peter Pan ę½˜ę ‹

Re: [PATCH 4/4] dma-debug: Allow poisoning nonzero allocations

2015-09-25 Thread Robin Murphy
Hi Russell, On 25/09/15 13:44, Russell King - ARM Linux wrote: On Fri, Sep 25, 2015 at 01:15:46PM +0100, Robin Murphy wrote: Since some dma_alloc_coherent implementations return a zeroed buffer regardless of whether __GFP_ZERO is passed, there exist drivers which are implicitly dependent on

Re: [PATCH 3/5] UBI: switch the UBI device in read-only mode when mtd returns -EROFS

2015-09-25 Thread Richard Weinberger
Am 25.09.2015 um 17:09 schrieb Boris Brezillon: > The NAND layer is now able to forward power-cut emulation errors from > a NAND driver to the MTD user. > Check for this kind of errors in UBI and switch the UBI device in read-only > mode if such an error occurs. > The error will also be forwarded

<    1   2   3   4   5   6   7   8   9   10   >