Re: [PATCH 30/38] leds: flash: remove invalid check

2015-09-22 Thread Jacek Anaszewski
Hi Andrzej, On 09/21/2015 03:34 PM, Andrzej Hajda wrote: Unsigned cannot be lesser than zero. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: And

Re: [PATCH 31/38] leds: tca6507: remove invalid check

2015-09-22 Thread Jacek Anaszewski
Hi Andrzej, On 09/21/2015 03:34 PM, Andrzej Hajda wrote: unsigned value cannot be lesser than zero. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-b

[PATCH v5 04/17] drm: bridge: analogix/dp: remove duplicate configuration of link rate and link count

2015-09-22 Thread Yakir Yang
link_rate and lane_count already configured in analogix_dp_set_link_train(), so we don't need to config those repeatly after training finished, just remove them out. Beside Display Port 1.2 already support 5.4Gbps link rate, the maximum sets would change from {1.62Gbps, 2.7Gbps} to {1.62Gbps, 2.7G

Re: [PATCH RFC] pidns: introduce syscall getvpid

2015-09-22 Thread Konstantin Khlebnikov
On 21.09.2015 17:22, Serge E. Hallyn wrote: On Mon, Sep 21, 2015 at 10:49:39AM +0800, Chen Fan wrote: On 09/17/2015 12:31 AM, Serge E. Hallyn wrote: On Wed, Sep 16, 2015 at 09:49:02AM -0500, Eric W. Biederman wrote: "Serge E. Hallyn" writes: On Wed, Sep 16, 2015 at 10:37:33AM +0300, Konsta

Re: [PATCH v2] iio: mcp4xxx_dpot: Driver for Microchip digital potentiometers

2015-09-22 Thread Daniel Baluta
On Tue, Sep 22, 2015 at 12:18 AM, Peter Rosin wrote: > From: Peter Rosin > > Add support for Microchip digital potentiometers and rheostats > MCP4531, MCP4532, MCP4551, MCP4552, > MCP4631, MCP4632, MCP4651, MCP4652 > > These are either single (45xx) or dual (46xx) wipers with eith

[PATCH v5 06/17] Documentation: drm/bridge: add document for analogix_dp

2015-09-22 Thread Yakir Yang
Analogix dp driver is split from exynos dp driver, so we just make an copy of exynos_dp.txt, and then simplify exynos_dp.txt Beside update some exynos dtsi file with the latest change according to the devicetree binding documents. Signed-off-by: Yakir Yang --- Changes in v5: None Changes in v4:

Re: [PATCH 3/3] mfd: Add battery charger as subdevice to the tps65217.

2015-09-22 Thread Enric Balletbo Serra
2015-09-20 6:19 GMT+02:00 Lee Jones : > On Tue, 08 Sep 2015, Enric Balletbo i Serra wrote: > >> Add tps65217 battery charger subdevice. >> >> Signed-off-by: Enric Balletbo i Serra >> --- >> drivers/mfd/tps65217.c | 4 >> 1 file changed, 4 insertions(+) > > Applied, thanks. > Many thanks, an

[PATCH v5 07/17] ARM: dts: exynos/dp: remove some properties that deprecated by analogix_dp driver

2015-09-22 Thread Yakir Yang
After exynos_dp have been split the common IP code into analogix_dp driver, the analogix_dp driver have deprecated some Samsung platform properties which could be dynamically parsed from EDID/MODE/DPCD message, so this is an update for Exynos DTS file for dp-controller. Beside the backward compati

Re: [PATCH 1/3] irqchip: atmel-aic5: fix bug with mask/unmask

2015-09-22 Thread Boris Brezillon
Hi Ludovic, On Mon, 21 Sep 2015 15:46:04 +0200 Ludovic Desroches wrote: > When masking/unmasking interrupts, mask_cache is updated and used later > for suspend/resume. Unfortunately, it always was the mask_cache > associated with the first irq chip which was updated. So when performing > resume,

[PATCH] perf: Fix perf-targz-src-pkg building failure

2015-09-22 Thread Wang Nan
Commit 01ca9fd41d6f2ad796a6b109b5253e06b6ae6dc7 ("tools: Add err.h with ERR_PTR PTR_ERR interface") introduces 'linux/err.h', but forgot to insert it into MANIFEST, which causes failure when calling tests/perf-targz-src-pkg to create tarball and building. This patch add it into MANIFEST. Signed-o

[PATCH v5 08/17] drm: rockchip: dp: add rockchip platform dp driver

2015-09-22 Thread Yakir Yang
Rockchip have three clocks for dp controller, we leave pclk_edp to analogix_dp driver control, and keep the sclk_edp_24m and sclk_edp in platform driver. Signed-off-by: Yakir Yang --- Changes in v5: - Remove the empty line at the end of document, and correct the endpoint numbers in the example

[PATCH v5 10/17] phy: Add driver for rockchip Display Port PHY

2015-09-22 Thread Yakir Yang
This phy driver would control the Rockchip DisplayPort module phy clock and phy power, it is relate to analogix_dp-rockchip dp driver. If you want DP works rightly on rockchip platform, then you should select both of them. Signed-off-by: Yakir Yang --- Changes in v5: - Remove "reg" DT property, c

[PATCH v5 09/17] Documentation: drm/bridge: add document for analogix_dp

2015-09-22 Thread Yakir Yang
Rockchip DP driver is a helper driver of analogix_dp coder driver, so most of the DT property should be descriped in analogix_dp document. Signed-off-by: Yakir Yang --- Changes in v5: - Split binding doc's from driver changes. (Rob) - Add eDP hotplug pinctrl property. (Heiko) Changes in v4: None

[PATCH v5 11/17] Documentation: phy: add document for rockchip dp phy

2015-09-22 Thread Yakir Yang
This phy driver is binded with the Rockchip DisplayPort driver, here are the brief properties: edp_phy: edp-phy@ff770274 { compatible = "rockchip,rk3288-dp-phy"; rockchip,grf = <&grf>; clocks = <&cru SCLK_EDP_24M>; clock-names

[PATCH v5 12/17] drm: rockchip: vop: add bpc and color mode setting

2015-09-22 Thread Yakir Yang
From: Mark Yao Add bpc and color mode setting in rockchip_drm_vop driver, so connector could try to use the edid drm_display_info to config vop output mode. Signed-off-by: Mark Yao Signed-off-by: Yakir Yang --- Changes in v5: - Fix compiled error (Heiko) - Using the connector display info mess

[PATCH v5 05/17] drm: bridge: analogix/dp: dynamic parse sync_pol & interlace & dynamic_range

2015-09-22 Thread Yakir Yang
Both hsync/vsync polarity and interlace mode can be parsed from drm display mode, and dynamic_range and ycbcr_coeff can be judge by the video code. But presumably Exynos still relies on the DT properties, so take good use of mode_fixup() in to achieve the compatibility hacks. Signed-off-by: Yakir

[PATCH v5 13/17] drm: bridge: analogix/dp: add some rk3288 special registers setting

2015-09-22 Thread Yakir Yang
RK3288 need some special registers setting, we can separate them out by the dev_type of plat_data. Signed-off-by: Yakir Yang --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - Fix compile failed dut to phy_pd_addr variable misspell error drivers/gpu/drm/bridge/anal

[PATCH v5 14/17] drm: bridge: analogix/dp: add max link rate and lane count limit for RK3288

2015-09-22 Thread Yakir Yang
There are some IP limit on rk3288 that only support 4 physical lanes of 2.7/1.6 Gbps/lane, so seprate them out by device_type flag. Signed-off-by: Yakir Yang --- Changes in v5: None Changes in v4: - Seprate the link-rate and lane-count limit out with the device_type flag. (Thierry) Changes in

Re: [PATCH 5/5] leds: core: Use set_brightness_work for the blocking op

2015-09-22 Thread Sakari Ailus
Hi Jacek, Jacek Anaszewski wrote: > This patch makes LED core capable of setting brightness for drivers > that implement brightness_set_blocking op. It removes from LED class > drivers responsibility for using work queues on their own. > > In order to achieve this set_brightness_delayed callback

[PATCH v5 15/17] drm: bridge: analogix/dp: try force hpd after plug in lookup failed

2015-09-22 Thread Yakir Yang
Some edp screen do not have hpd signal, so we can't just return failed when hpd plug in detect failed. This is an hardware property, so we need add a devicetree property "analogix,need-force-hpd" to indicate this sutiation. Signed-off-by: Yakir Yang --- Changes in v5: None Changes in v4: None Ch

RE: [PATCH v10 3/5] CPM/QE: use genalloc to manage CPM/QE muram

2015-09-22 Thread Zhao Qiang
On Tue, Sep 22, 2015 at 06:47 AM +0800, Wood Scott-B07421 wrote: > -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, September 22, 2015 6:47 AM > To: Zhao Qiang-B45475 > Cc: linux-kernel@vger.kernel.org; linuxppc-...@lists.ozlabs.org; > lau...@codeaurora.org; Xie Xiaobo-R63061;

Re: [alsa-devel] [PATCH] mfd: arizona: Call the runtime PM function if the state is runtime resumed

2015-09-22 Thread Charles Keepax
On Mon, Sep 21, 2015 at 11:16:42AM +0900, Inha Song wrote: > Hi, Charles, > > I've already tried to change. > If I change to that, we can't enter the suspen during the playback. > > - > [ 72.538263] arizona spi1.0: Suspend, disabling IRQ > ... > [ 72.585823] arizona spi1.0: Late suspend, reen

Re: [PATCH v2 1/2] x86/msr: Carry on after a non-"safe" MSR access fails without !panic_on_oops

2015-09-22 Thread Paolo Bonzini
On 21/09/2015 19:43, Andy Lutomirski wrote: > And maybe the KVM user return notifier. No, not really. If anything, the place in KVM where it makes a difference is vmx_save_host_state, which is also only using always-present MSRs. But don't care about KVM. First clean it up, then we can add ba

Re: Driver for Microchip digital potentiometers, v2

2015-09-22 Thread Lars-Peter Clausen
On 09/21/2015 11:18 PM, Peter Rosin wrote: > From: Peter Rosin > > Hi! > > This is a new attempt for a driver for these chips. It is a > complete rewrite since the first version which was a dirty > misc driver (plagiarized from another misc driver) that got > shredded in review. Yeah, we need t

Question about the sparse memory section size

2015-09-22 Thread chenfeng
Hi all, The sparse memory section size, SECTION_SIZE_BITS, currently is 1GB for arm64 by default. However, it might generate wasted memmap memory space for those memory sections less than 1GB. e.g. for 512MB memory section, still 14MB(sizeof(struct page) * PAGES_PER_SECTION) memmap needs to be r

Re: [PATCH 1/2] nios2: Add architectural support for PCIe

2015-09-22 Thread Arnd Bergmann
On Tuesday 22 September 2015 15:19:26 Ley Foon Tan wrote: > + > +config PCI_SYSCALL > + def_bool PCI IIRC, PCI_SYSCALL is deprecated and you should just leave that turned off. In any case, you enable the syscalls here but don't assign a system call number, so that is rather pointless. I I m

Re: [PATCH] lib: fix data race in rhashtable_rehash_one

2015-09-22 Thread Thomas Graf
On 09/21/15 at 04:03pm, Eric Dumazet wrote: > What I said is : > > In @head you already have the correct nulls value, from hash table. > > You do not need to recompute this value, and/or test if hash table chain > is empty. > > If hash bucket is empty, it contains the appropriate NULLS value. >

[GIT PULL] extcon fixes for 4.3-rc3

2015-09-22 Thread Chanwoo Choi
Dear Greg, This is extcon-fixes pull request for v4.3-rc3. I add detailed description of this pull request on below. Please pull extcon with following updates. Best Regards, Chanwoo Choi The following changes since commit 1f93e4a96c9109378204c147b3eec0d0e8100fde: Linux 4.3-rc2 (2015-09-20 14

[PATCH v5 16/17] drm: bridge: analogix/dp: move hpd detect to connector detect function

2015-09-22 Thread Yakir Yang
This change just make a little clean to make code more like drm core expect, move hdp detect code from bridge->enable(), and place them into connector->detect(). Signed-off-by: Yakir Yang --- Changes in v5: None Changes in v4: - Take Jingoo suggest, add commit messages. Changes in v3: - move dp

[PATCH] KVM: x86: fix bogus warning about reserved bits

2015-09-22 Thread Paolo Bonzini
29ecd6601904 ("KVM: x86: avoid uninitialized variable warning", 2015-09-06) introduced a not-so-subtle problem, which probably escaped review because it was not part of the patch context. Before the patch, leaf was always equal to iterator.level. After, it is equal to iterator.level - 1 in the ca

Re: [PATCH 2/2] drivers/base/node.c: skip non-present sections in register_mem_sect_under_node

2015-09-22 Thread Jan Stancek
- Original Message - > From: "Jan Stancek" > To: gre...@linuxfoundation.org > Cc: linux-kernel@vger.kernel.org, linux...@kvack.org, "Dave Young" > > Sent: Wednesday, 9 September, 2015 1:11:23 PM > Subject: Re: [PATCH 2/2] drivers/base/node.c: skip non-present sections in > register_

Re: [PATCH 2/3] irqchip: atmel-aic5: fix variable naming

2015-09-22 Thread Nicolas Ferre
Le 21/09/2015 15:46, Ludovic Desroches a écrit : > To avoid errors, use an explicit variable name when accessing the 'base' > generic chip. > > Signed-off-by: Ludovic Desroches Acked-by: Nicolas Ferre > --- > drivers/irqchip/irq-atmel-aic5.c | 44 > >

Re: [PATCH 1/3] irqchip: atmel-aic5: fix bug with mask/unmask

2015-09-22 Thread Nicolas Ferre
Le 21/09/2015 15:46, Ludovic Desroches a écrit : > When masking/unmasking interrupts, mask_cache is updated and used later > for suspend/resume. Unfortunately, it always was the mask_cache > associated with the first irq chip which was updated. So when performing > resume, only irqs 0-31 could be e

Re: [PATCH 3/3] irqchip: atmel-aic5: simplify base chip selection

2015-09-22 Thread Nicolas Ferre
Le 21/09/2015 15:46, Ludovic Desroches a écrit : > Use irq_get_domain_generic_chip() to select the base chip. > > Signed-off-by: Ludovic Desroches Acked-by: Nicolas Ferre > --- > drivers/irqchip/irq-atmel-aic5.c | 28 ++-- > 1 file changed, 10 insertions(+), 18 deletio

Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-09-22 Thread Sascha Hauer
On Tue, Sep 22, 2015 at 03:30:47PM +0800, Daniel Kurtz wrote: > On Mon, Sep 14, 2015 at 3:32 PM, Daniel Kurtz wrote: > > > > Hi Sascha, > > > > On Mon, Aug 31, 2015 at 3:34 PM, Sascha Hauer > > wrote: > > > This adds support for the Mediatek thermal controller found on MT8173 > > > and likely ot

[PATCH v5 17/17] drm: bridge: analogix/dp: add edid modes parse in get_modes method

2015-09-22 Thread Yakir Yang
Display Port monitor could support kinds of mode which indicate in monitor edid, not just one single display resolution which defined in panel or devivetree property display timing. Signed-off-by: Yakir Yang --- Changes in v5: None Changes in v4: - Call drm_panel_prepare() in .get_modes function,

Re: Please suggest proper format for DT properties.

2015-09-22 Thread Arnd Bergmann
On Saturday 19 September 2015 01:36:43 Constantine Shulyupin wrote: > > I am designing DT support for a hwmon chip. > It has some sensors, each of them can be: > - "disabled" > - "thermal diode" > - "thermistor" > - "voltage" > > Four possible options for DT properties format. > > Option 1:

RE: [PATCH v10 5/5] QE: Move QE from arch/powerpc to drivers/soc

2015-09-22 Thread Zhao Qiang
On Tue, Sep 22, 2015 at 06:56 AM +0800, Wood Scott-B07421 wrote: > -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, September 22, 2015 6:56 AM > To: Zhao Qiang-B45475 > Cc: linux-kernel@vger.kernel.org; linuxppc-...@lists.ozlabs.org; > lau...@codeaurora.org; Xie Xiaobo-R63061;

Re: [PATCH] kernel: fix data race in put_pid

2015-09-22 Thread Dmitry Vyukov
Should I wait until atomic_read_ctrl patch is landed and update my patch? On Fri, Sep 18, 2015 at 1:56 PM, Peter Zijlstra wrote: > On Fri, Sep 18, 2015 at 01:50:01PM +0200, Dmitry Vyukov wrote: >> > +#ifndef atomic_read_ctrl >> > +static inline int atomic_read_ctrl(atomic_t *v) >> > +{ >> > +

Re: [PATCH RFC 0/8] Add New DRM Driver for Hisilicon's Hi6220 SoC

2015-09-22 Thread Daniel Vetter
On Thu, Sep 17, 2015 at 05:51:28PM +0800, Xinliang Liu wrote: > On 17 September 2015 at 04:16, Daniel Vetter wrote: > > > On Wed, Sep 16, 2015 at 04:23:35PM +0100, Daniel Stone wrote: > > > The biggest issue though, is that this driver should become an atomic > > > modesetting driver. Atomic mode

[PATCH v2] lib: fix data race in rhashtable_rehash_one

2015-09-22 Thread Dmitry Vyukov
rhashtable_rehash_one() uses complex logic to update entry->next field, after INIT_RHT_NULLS_HEAD and NULLS_MARKER expansion: entry->next = 1 | ((base + off) << 1) This can be compiled along the lines of: entry->next = base + off entry->next <<= 1 entry->next |= 1 Which will break concurrent re

Re: [PATCH] lib: fix data race in rhashtable_rehash_one

2015-09-22 Thread Dmitry Vyukov
On Tue, Sep 22, 2015 at 10:19 AM, Thomas Graf wrote: > On 09/21/15 at 04:03pm, Eric Dumazet wrote: >> What I said is : >> >> In @head you already have the correct nulls value, from hash table. >> >> You do not need to recompute this value, and/or test if hash table chain >> is empty. >> >> If hash

Re: [PATCH 3/3] page-flags: rectify forward declaration

2015-09-22 Thread Sudip Mukherjee
On Mon, Sep 21, 2015 at 03:35:09PM -0700, Andrew Morton wrote: > On Sat, 19 Sep 2015 22:42:59 +0530 Sudip Mukherjee > wrote: > > > Is it fixable? Can we use the traditional define-before-using structure? How about this: diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h ind

[PATCH] net: davinci_emac: Add support for fixed-link PHY

2015-09-22 Thread Neil Armstrong
In case the DaVinci Emac is directly connected to a non-mdio PHY/device, it should be possible to provide a fixed link configuration in the DT. Signed-off-by: Neil Armstrong --- drivers/net/ethernet/ti/davinci_emac.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dri

RE: [PATCH v9 12/18] vfio: Register/unregister irq_bypass_producer

2015-09-22 Thread Wu, Feng
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org > [mailto:linux-kernel-ow...@vger.kernel.org] On Behalf Of Eric Auger > Sent: Tuesday, September 22, 2015 3:46 AM > To: Paolo Bonzini; Wu, Feng; alex.william...@redhat.com; j...@8bytes.org; > mtosa...@redhat.com > Cc: k...@vg

[PATCH] Add virt directory to the top Makefile

2015-09-22 Thread Feng Wu
We need to build files in virt/lib/, which are now used by KVM and VFIO, so add virt directory to the top Makefile. Signed-off-by: Feng Wu --- Makefile | 8 +--- arch/x86/kvm/Makefile | 3 --- virt/Makefile | 1 + 3 files changed, 6 insertions(+), 6 deletions(-) create

Re: 4.3-rc1 dirty page count underflow (cgroup-related?)

2015-09-22 Thread Michal Hocko
[I am sorry I didn't get to this earlier because I was at an internal conference last week] On Mon 21-09-15 01:06:58, Greg Thelen wrote: [...] > >From f5c39c2e8471c10fe0464ca7b6e6f743ce6920a6 Mon Sep 17 00:00:00 2001 > From: Greg Thelen > Date: Sat, 19 Sep 2015 16:21:18 -0700 > Subject: [PATCH] m

Re: [PATCH v2] lib: fix data race in rhashtable_rehash_one

2015-09-22 Thread Eric Dumazet
On Tue, 2015-09-22 at 10:51 +0200, Dmitry Vyukov wrote: > rhashtable_rehash_one() uses complex logic to update entry->next field, > after INIT_RHT_NULLS_HEAD and NULLS_MARKER expansion: > > entry->next = 1 | ((base + off) << 1) > > This can be compiled along the lines of: > > entry->next = base

Re: [PATCH] Add FS_CLOSE_READ and FS_CLOSE_NOREAD flag to fsnotify

2015-09-22 Thread Jan Kara
On Sun 20-09-15 23:07:35, Patrick Puzik wrote: > Attached is a patch which is a preparation for the later support of an > event notification, when an unreadable or readable file was closed. So I'm missing two things in this patch (or rather changelog): 1) When should these events be generated? I

[PATCH] perf report: fix owner error when reading perf.data

2015-09-22 Thread Taeung Song
If perf.data file is owned by some user, it can't be read even if current user is root. So, add a condition (if root) to skip the owner error handling if statement. Signed-off-by: Taeung Song --- tools/perf/util/data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/per

Re: [PATCH 00/38] Fixes related to incorrect usage of unsigned types

2015-09-22 Thread Andrzej Hajda
On 09/21/2015 03:42 PM, David Howells wrote: > Andrzej Hajda wrote: > >> Semantic patch finds comparisons of types: >> unsigned < 0 >> unsigned >= 0 >> The former is always false, the latter is always true. >> Such comparisons are useless, so theoretically they could be >> safely removed,

Re: [PATCH v2] lib: fix data race in rhashtable_rehash_one

2015-09-22 Thread Thomas Graf
On 09/22/15 at 10:51am, Dmitry Vyukov wrote: > rhashtable_rehash_one() uses complex logic to update entry->next field, > after INIT_RHT_NULLS_HEAD and NULLS_MARKER expansion: > > entry->next = 1 | ((base + off) << 1) > > This can be compiled along the lines of: > > entry->next = base + off > ent

Re: [PATCH 2/3] drm: fix kernel-doc warnings in drm_crtc.h

2015-09-22 Thread Daniel Vetter
On Wed, Sep 16, 2015 at 11:25:22PM -0700, Geliang Tang wrote: > Fix the following 'make htmldocs' warning: > > .//include/drm/drm_crtc.h:929: warning: Excess struct/union/enum/typedef > member 'base' description in 'drm_bridge' > > Signed-off-by: Geliang Tang Applied to drm-misc, thanks. -Da

Re: [PATCH] Add virt directory to the top Makefile

2015-09-22 Thread Michal Marek
On 2015-09-22 10:47, Feng Wu wrote: > We need to build files in virt/lib/, which are now used by > KVM and VFIO, so add virt directory to the top Makefile. > > Signed-off-by: Feng Wu > --- > Makefile | 8 +--- > arch/x86/kvm/Makefile | 3 --- > virt/Makefile | 1 + > 3 f

[PATCH V4] mmc: block: Add new ioctl to send multi commands

2015-09-22 Thread Jon Hunter
Certain eMMC devices allow vendor specific device information to be read via a sequence of vendor commands. These vendor commands must be issued in sequence and an atomic fashion. One way to support this would be to add an ioctl function for sending a sequence of commands to the device atomically a

[PATCH] net: dsa: Fix Marvell Egress Trailer check

2015-09-22 Thread Neil Armstrong
The Marvell Egress rx trailer check must be fixed to correctly detect bad bits in the third byte of the Eggress trailer as described in the Table 28 of the 88E6060 datasheet. The current code incorrectly omits to check the third byte and checks the fourth byte twice. Signed-off-by: Neil Armstrong

Re: [PATCH V3] mmc: block: Add new ioctl to send multi commands

2015-09-22 Thread Jon Hunter
On 21/09/15 19:40, Grant Grundler wrote: > Jon, Ulf, > Can we first get the current implementation upstream and _then_ add > more patches to it? > > On Mon, Sep 21, 2015 at 4:19 AM, Jon Hunter wrote: > ... > + for (i = 0; i < num_of_cmds; i++) { > + err = __mmc_blk_io

[PATCH v2 1/3] mm, compaction: export tracepoints status strings to userspace

2015-09-22 Thread Vlastimil Babka
Some compaction tracepoints convert the integer return values to strings using the compaction_status_string array. This works for in-kernel printing, but not userspace trace printing of raw captured trace such as via trace-cmd report. This patch converts the private array to appropriate tracepoint

[PATCH v2 3/3] mm, compaction: disginguish contended status in tracepoints

2015-09-22 Thread Vlastimil Babka
Compaction returns prematurely with COMPACT_PARTIAL when contended or has fatal signal pending. This is ok for the callers, but might be misleading in the traces, as the usual reason to return COMPACT_PARTIAL is that we think the allocation should succeed. After this patch we distinguish the premat

[PATCH v2 2/3] mm, compaction: export tracepoints zone names to userspace

2015-09-22 Thread Vlastimil Babka
Some compaction tracepoints use zone->name to print which zone is being compacted. This works for in-kernel printing, but not userspace trace printing of raw captured trace such as via trace-cmd report. This patch uses zone_idx() instead of zone->name as the raw value, and when printing, converts

Re: [PATCH v2 5/6] virtio-gpu: add basic prime support

2015-09-22 Thread Daniel Vetter
On Mon, Sep 21, 2015 at 11:40:16AM +0200, Gerd Hoffmann wrote: > From: Dave Airlie > > This is enough to enable DRI3. > > Signed-off-by: Dave Airlie > Signed-off-by: Gerd Hoffmann > --- > drivers/gpu/drm/virtio/Makefile| 2 +- > drivers/gpu/drm/virtio/virtgpu_drv.c | 13 +- > d

Re: [PATCH 03/38] drm/i915: fix handling gen8_emit_flush_coherentl3_wa result

2015-09-22 Thread Daniel Vetter
On Mon, Sep 21, 2015 at 04:59:58PM +0300, Jani Nikula wrote: > On Mon, 21 Sep 2015, Andrzej Hajda wrote: > > The function can return negative value. > > > > The problem has been detected using proposed semantic patch > > scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. > > > > [1]: ht

Re: [PATCH 16/17] pinctrl: single: remove misuse of IRQF_NO_SUSPEND flag

2015-09-22 Thread Sudeep Holla
On 21/09/15 19:53, Thomas Gleixner wrote: On Mon, 21 Sep 2015, Sudeep Holla wrote: The IRQF_NO_SUSPEND flag is used to identify the interrupts that should be left enabled so as to allow them to work as expected during the suspend-resume cycle, but doesn't guarantee that it will wake the system

Re: [PATCH 00/38] Fixes related to incorrect usage of unsigned types

2015-09-22 Thread Jacek Anaszewski
On 09/22/2015 11:13 AM, Andrzej Hajda wrote: On 09/21/2015 03:42 PM, David Howells wrote: Andrzej Hajda wrote: Semantic patch finds comparisons of types: unsigned < 0 unsigned >= 0 The former is always false, the latter is always true. Such comparisons are useless, so theoretically

[GIT PULL] clk: mediatek: New clocks support and fixes

2015-09-22 Thread James Liao
This is a collection of new Mediatek clocks support and fixes. These patches come from Joe [1], Pi-cheng [2] and me [3], including clock support for subsystems, CPU, GPT and some minor fixes. [1] https://patchwork.kernel.org/patch/6777041/ [2] https://patchwork.kernel.org/patch/7174721/ [3] https:

[PATCH v3 03/24] dmaengine: edma: Simplify and optimize the edma_execute path

2015-09-22 Thread Peter Ujfalusi
The code path in edma_execute() and edma_callback() can be simplified and make it more optimal. There is not need to call in to edma_execute() when the transfer has been finished for example. Also the handling of missed/first or next batch of paRAMs can be done in a more optimal way. Signed-off-by

[PATCH v3 00/24] dmaengine/ARM: Merge the edma drivers into one

2015-09-22 Thread Peter Ujfalusi
Hi, Changes since v2: - devm_kasprintf format string fixed - Additional patch to enable dynamic paRAM slot usage when the channel mapping is supported by the eDMA module. On am335x we have 256 paRAM slots and 64 DMA channels, this means that we had 64 slots 'locked away' all the time. The dy

[PATCH v3 13/24] dmaengine: edma: Use devm_kcalloc when possible

2015-09-22 Thread Peter Ujfalusi
When allocating a memory for number of items it is better (looks better) to use devm_kcalloc. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 46c0cbf1fe20..f5010c8f6273 1006

[PATCH v3 04/24] ARM: davinci/common: Convert edma driver to handle one eDMA instance per driver

2015-09-22 Thread Peter Ujfalusi
Currently we have one device created to handle all (maximum 2) eDMAs in the system. With this change all eDMA instance will have it's own device/driver. This change is needed for further cleanups in the eDMA driver stack since the one device/driver to handle all eDMAs in the system was not flexible

[PATCH v3 10/24] ARM: davinci: Add set dma_mask to eDMA devices

2015-09-22 Thread Peter Ujfalusi
The upcoming change to merge the arch/arm/common/edma.c into drivers/dma/edma.c will need this change when booting daVinci devices in no DT mode. Signed-off-by: Peter Ujfalusi --- arch/arm/Kconfig |1 - arch/arm/common/Kconfig |3 - arch/arm/common/Make

[PATCH v3 24/24] dmaengine: edma: Dynamic paRAM slot handling if HW supports it

2015-09-22 Thread Peter Ujfalusi
If the eDMA3 has support for channel paRAM slot mapping we can utilize it to allocate slots on demand and save precious slots for real transfers. On am335x the eDMA has 64 channels which means we can unlock 64 paRAM slots out from the available 256. Signed-off-by: Peter Ujfalusi --- drivers/dma/

[PATCH v3 23/24] dmaengine: edma: Rename bitfields for slot and channel usage tracking

2015-09-22 Thread Peter Ujfalusi
The names chosen for the bitfields were quite confusing and given no real information on what they are used for... edma_inuse -> slot_inuse: tracks the slot usage/availability edma_unused -> channel_unused: tracks the channel usage/availability Signed-off-by: Peter Ujfalusi --- drivers/dma/edma

[PATCH v3 18/24] dmaengine: edma: Consolidate the comments for functions

2015-09-22 Thread Peter Ujfalusi
Remove or rewrite the comments for the internal functions. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 86 +++--- 1 file changed, 11 insertions(+), 75 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index b0102984e98d.

[PATCH v3 19/24] dmaengine: edma: Simplify the interrupt handling

2015-09-22 Thread Peter Ujfalusi
With the merger of the arch/arm/common/edma.c code into the dmaengine driver, there is no longer need to have per channel callback/data storage for interrupt events. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 447 - 1 file changed,

[PATCH v3 22/24] dmaengine: edma: Read channel mapping support only once from HW

2015-09-22 Thread Peter Ujfalusi
Instead of directly reading it from CCCFG register take the information out once when we set up the configuration from the HW. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c

[PATCH v3 21/24] dmaengine: edma: Simplify and optimize ccerr interrupt handler

2015-09-22 Thread Peter Ujfalusi
No need to run through the bits in QEMR and CCERR events since they will not trigger any action, so just clearing the errors there is fine. In case of the missed event the loop can be optimized so we spend less time to handle the event. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 64 +

[PATCH v3 15/24] dmaengine: edma: Use dev_dbg instead pr_debug

2015-09-22 Thread Peter Ujfalusi
We have access to dev, so it is better to use the dev_dbg for debug prints. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 2332142c36db..fe8cde21b497 1

[PATCH v3 20/24] dmaengine: edma: Move the pending error check into helper function

2015-09-22 Thread Peter Ujfalusi
In the ccerr interrupt handler the code checks for pending errors in the error status registers in two different places. Move the check out to a helper function. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff

[PATCH v3 06/24] ARM: common: edma: Internal API to use pointer to 'struct edma'

2015-09-22 Thread Peter Ujfalusi
Merge the iomem into the 'struct edma' and change the internal (static) functions to use pointer to the edma_cc instead of the ctlr number. Signed-off-by: Peter Ujfalusi --- arch/arm/common/edma.c | 400 - 1 file changed, 197 insertions(+), 203 del

[PATCH v3 17/24] dmaengine: edma: Print warning when linking slots from different eDMA

2015-09-22 Thread Peter Ujfalusi
Warning message in case of linking between paRAM slots in different eDMA controllers. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index d759abc80bef..b0102984e98d 100644 --- a/drivers/dma/edma

[PATCH v3 08/24] ARM/dmaengine: edma: Remove limitation on the number of eDMA controllers

2015-09-22 Thread Peter Ujfalusi
Since the driver stack no longer depends on lookup with id number in a global array of pointers, the limitation for the number of eDMAs are no longer needed. We can handle as many eDMAs in legacy and DT boot as we have memory for them to allocate the needed structures. Signed-off-by: Peter Ujfalus

[PATCH v3 16/24] dmaengine: edma: Use the edma_write_slot instead open coded memcpy_toio

2015-09-22 Thread Peter Ujfalusi
edma_write_slot() is for writing an entire paRAM slot. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index fe8cde21b497..d759abc80bef 100644 --- a/drivers/dma/edma.c +++ b/drivers

[PATCH v3 14/24] dmaengine: edma: Cleanup regarding the use of dev around the code

2015-09-22 Thread Peter Ujfalusi
Be consistent and do not mix the use of dev, &pdev->dev, etc in the functions. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index f5010c8f6273..2332142c36db

[PATCH v3 07/24] ARM/dmaengine: edma: Public API to use private struct pointer

2015-09-22 Thread Peter Ujfalusi
Instead of relying on indexes pointing to edma private date in the global pointer array, pass the private data pointer via the public API. Signed-off-by: Peter Ujfalusi --- arch/arm/common/edma.c | 305 ++--- drivers/dma/edma.c | 79 ++

Re: [PATCH 07/17] input: tegra-kbc: drop use of IRQF_NO_SUSPEND flag

2015-09-22 Thread Sudeep Holla
Hi Lee, On 22/09/15 00:21, Lee Jones wrote: The $SUBJECT is not correct. Any suggestions ? Most of this series I have used "remove misuse..." But this driver was doing things correctly, just that it left this flag as is. Regards, Sudeep -- To unsubscribe from this list: send the line "unsubs

[PATCH v3 05/24] ARM/dmaengine: edma: Move of_dma_controller_register to the dmaengine driver

2015-09-22 Thread Peter Ujfalusi
If the of_dma_controller is registered in the non dmaengine driver we could have race condition: the of_dma_controller has been registered, but the dmaengine driver is not yet probed. Drivers requesting DMA channels during this window will fail since we do not yet have dmaengine drivers registered.

[PATCH v3 12/24] dmaengine: edma: Parameter alignment and long line fixes

2015-09-22 Thread Peter Ujfalusi
Makes the code a bit more readable. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 84 -- 1 file changed, 44 insertions(+), 40 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 49158ab1c798..46c0cbf1fe20 100644 --

[PATCH v3 11/24] dmaengine: edma: Allocate memory dynamically for bitmaps and structures

2015-09-22 Thread Peter Ujfalusi
Instead of using defines to specify the size of different arrays and bitmaps, allocate the memory for them based on the information we get from the HW itself. Since these defines are set based on the worst case, there are devices where they are not valid. Signed-off-by: Peter Ujfalusi --- driver

[PATCH v3 09/24] ARM: davinci: Use platform_device_register_full() to create pdev for eDMA

2015-09-22 Thread Peter Ujfalusi
Convert the eDMA platform device creation to use struct platform_device_info XX __initconst and platform_device_register_full() This will allow us to cleanly specify the dma_mask for the devices in an upcoming patch. Signed-off-by: Peter Ujfalusi --- arch/arm/mach-davinci/devices-da8xx.c | 3

[PATCH v3 02/24] ARM: common: edma: Remove unused functions

2015-09-22 Thread Peter Ujfalusi
We no longer have users for these functions so they can be removed. Remove also unused enums from the header file. Signed-off-by: Peter Ujfalusi --- arch/arm/common/edma.c | 376 - include/linux/platform_data/edma.h | 33 2 files changed, 409

[PATCH v3 01/24] ARM: common: edma: Fix channel parameter for irq callbacks

2015-09-22 Thread Peter Ujfalusi
In case when the interrupt happened for the second eDMA the channel number was incorrectly passed to the client driver. Signed-off-by: Peter Ujfalusi CC: --- arch/arm/common/edma.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/common/edma.c b/arch/arm/common

Re: [PATCH 17/17] mfd : ab8500/db8500: fix the abuse of IRQF_NO_SUSPEND

2015-09-22 Thread Sudeep Holla
On 22/09/15 00:20, Lee Jones wrote: On Mon, 21 Sep 2015, Sudeep Holla wrote: The IRQF_NO_SUSPEND flag is used to identify the interrupts that should be left enabled so as to allow them to work as expected during the suspend-resume cycle, but doesn't guarantee that it will wake the system from

Re: [4.3-rc1, regression] dax: hang on i_mmap_rwsem in generic/075

2015-09-22 Thread Kirill A. Shutemov
On Tue, Sep 22, 2015 at 01:05:55PM +1000, Dave Chinner wrote: > Hi folks, > > I'm seeing hangs like this when using DAX on XFS on 4.3-rc1 running > xfstests generic/075 (fsx test): > > # echo w > /proc/sysrq-trigger > [71628.984872] sysrq: SysRq : Show Blocked State > [71628.985988] task

Re: [PATCH] fs/jbd2: fix data races in jbd2_journal_set_features

2015-09-22 Thread Jan Kara
Hello, On Mon 21-09-15 12:57:19, Dmitry Vyukov wrote: > jbd2_journal_set_features() uses complex logic to update > various feature flags while they are being concurrently read. > This gives compiler whole lot of possibilities to temporary > set features to unexpected values and break readers. >

Re: [PATCH 0/4] printk: Softlockup avoidance

2015-09-22 Thread Jan Kara
On Fri 18-09-15 15:14:11, Andrew Morton wrote: > On Wed, 19 Aug 2015 17:38:27 +0200 Jan Kara wrote: > > > From: Jan Kara > > > > Hello, > > > > since lately there were several attempts at dealing with softlockups due > > to heavy printk traffic [1] [2] and I've been also privately pinged by >

[PATCH v1 4/8] mfd: intel_quark_i2c_gpio: support devices behind i2c bus

2015-09-22 Thread Andy Shevchenko
On Intel Galileo Gen2 the GPIO expanders are connected to the i2c bus. For those devices the ACPI table has specific parameters that refer to an actual i2c host controller. Since MFD now copes with that specific configuration we have to provide a necessary information how to distinguish devices in

[PATCH v1 3/8] mfd: intel_quark_i2c_gpio: load gpio driver first

2015-09-22 Thread Andy Shevchenko
On Intel Galileo boards the GPIO expander is connected to i2c bus. Moreover it is able to generate interrupt, but interrupt line is connected to GPIO. That's why we have to have GPIO driver in place when we will probe i2c host with device connected to it. Signed-off-by: Andy Shevchenko --- drive

[PATCH v1 0/8] enable I2C devices behind I2C bus on Gen2

2015-09-22 Thread Andy Shevchenko
There is a board in the wild, i.e. Intel Galileo Gen2, that has ACPI enumerated devices behind I2C bus. This patch series dedicated to enable those devices. Meanwhile it also changes I2C core to cope with ACPI 6.0 specification (patch 1/8). The MFD framework is also updated to cope with interesti

[PATCH v1 6/8] gpio: pca953x: support ACPI devices found on Galileo Gen2

2015-09-22 Thread Andy Shevchenko
This patch adds a support of the expandes found on Intel Galileo Gen2 board. The platform information comes from ACPI. Signed-off-by: Andy Shevchenko --- drivers/gpio/gpio-pca953x.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-pca953

[PATCH v1 8/8] pwm-pca9685: enable ACPI device found on Galileo Gen2

2015-09-22 Thread Andy Shevchenko
There is a chip connected to i2c bus on Intel Galileo Gen2 board. Enable it via ACPI ID INT3492. Cc: Thierry Reding Signed-off-by: Andy Shevchenko --- drivers/pwm/Kconfig | 2 +- drivers/pwm/pwm-pca9685.c | 14 +++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git

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