Re: [PATCHv14 2/3] usb: USB Type-C connector class

2017-01-10 Thread Heikki Krogerus
On Tue, Jan 10, 2017 at 11:08:51AM +0100, Oliver Neukum wrote: > > And since we are talking about the ABI, can we also change the listing > > of the accessory mode back to just "audio" and "debug" like I > > originally had it? I don't remember who and why wanted it to be > > changed to "Audio Adapt

[PATCH v8 0/2] securityfs support for TPM 2.0 firmware event log

2017-01-10 Thread Nayna Jain
The TPM device driver defines ascii and binary methods for displaying the TPM 1.2 event log via securityfs files, which are needed for validating a TPM quote. The device driver for TPM 2.0 does not have similar support for displaying the TPM 2.0 event log. This patch set adds the support for displa

[PATCH v8 2/2] tpm: add securityfs support for TPM 2.0 firmware event log

2017-01-10 Thread Nayna Jain
Unlike the device driver support for TPM 1.2, the TPM 2.0 does not support the securityfs pseudo files for displaying the firmware event log. This patch enables support for providing the TPM 2.0 event log in binary form. TPM 2.0 event log supports a crypto agile format that records multiple digest

[PATCH v8 1/2] tpm: enhance read_log_of() to support Physical TPM event log

2017-01-10 Thread Nayna Jain
Physical TPMs use Open Firmware Device Tree bindings that are similar to the IBM Power virtual TPM to support event log. However, these properties store the values in different endianness for Physical and Virtual TPM. This patch fixes the endianness issue by doing appropriate conversion based on P

Re: [PATCH v3 5/7] mtd: nand: raw: create struct rawnand_device

2017-01-10 Thread Boris Brezillon
On Tue, 10 Jan 2017 20:09:15 +0100 Marek Vasut wrote: > On 11/21/2016 01:45 PM, Boris Brezillon wrote: > > Create the rawnand_device struct inheriting from nand_device and make > > nand_chip inherit from this struct. > > > > The rawnand_device object should be used for the new > > rawnand-device

Re: [PATCH v8 3/3] arm64: dts: exynos: Add support for S6E3HA2 panel device on TM2 board

2017-01-10 Thread Andrzej Hajda
On 11.01.2017 07:33, Hoegeun Kwon wrote: > From: Hyungwon Hwang > > This patch add the panel device tree node for S6E3HA2 display > controller to TM2 dts. > > Signed-off-by: Hyungwon Hwang > Signed-off-by: Andrzej Hajda > Signed-off-by: Chanwoo Choi > Signed-off-by: Hoegeun Kwon > Tested-by: C

Re: [PATCH v3 4/7] mtd: nand: raw: prefix conflicting names with nandc instead of nand

2017-01-10 Thread Boris Brezillon
On Tue, 10 Jan 2017 20:08:23 +0100 Marek Vasut wrote: > On 11/21/2016 01:45 PM, Boris Brezillon wrote: > > Some raw NAND function names conflict with names defined in nand.h. > > Prefix all those functions with nandc (for nand chip) instead of nand so > > we can include nand.h from rawnand.h > >

Re: [Intel-gfx] 4.10-rc2 oops in DRM connector code

2017-01-10 Thread Daniel Vetter
On Tue, Jan 10, 2017 at 08:52:47AM -0800, Dave Hansen wrote: > On 01/10/2017 02:31 AM, Daniel Vetter wrote: > > commit e73ab00e9a0f1731f34d0620a9c55f5c30c4ad4e > > Author: Daniel Vetter > > Date: Sun Dec 18 14:35:45 2016 +0100 > > > > drm: prevent double-(un)registration for connectors > >

Re: [PATCH v8 1/3] dt-bindings: Add support for samsung s6e3ha2 panel binding

2017-01-10 Thread Andrzej Hajda
On 11.01.2017 07:33, Hoegeun Kwon wrote: > The Samsung s6e3ha2 is a 5.7" 1440x2560 AMOLED panel connected > using MIPI-DSI interfaces. > > Signed-off-by: Donghwa Lee > Signed-off-by: Hyungwon Hwang > Signed-off-by: Hoegeun Kwon > Tested-by: Chanwoo Choi > Reviewed-by: Andrzej Hajda > --- > ..

Re: [patch v2] mm, thp: add new defer+madvise defrag option

2017-01-10 Thread Vlastimil Babka
[+CC linux-api] On 01/11/2017 01:15 AM, David Rientjes wrote: > There is no thp defrag option that currently allows MADV_HUGEPAGE regions > to do direct compaction and reclaim while all other thp allocations simply > trigger kswapd and kcompactd in the background and fail immediately. > > The "

Re: [PATCH net-next v2] net: dsa: make "label" property optional for dsa2

2017-01-10 Thread Jiri Pirko
Tue, Jan 10, 2017 at 06:58:18PM CET, f.faine...@gmail.com wrote: >On 01/10/2017 01:55 AM, Jiri Pirko wrote: >> Mon, Jan 09, 2017 at 07:06:39PM CET, f.faine...@gmail.com wrote: >>> On 01/09/2017 09:58 AM, Jiri Pirko wrote: Mon, Jan 09, 2017 at 06:42:07PM CET, f.faine...@gmail.com wrote: > O

Re: [PATCH] serial: fsl_lpuart: Remove the alias node dependence

2017-01-10 Thread Greg KH
On Wed, Dec 14, 2016 at 04:33:32PM +0800, Yuan Yao wrote: > From: Yuan Yao > > Numbering the ttyLPn space should not depend on the generic name > "serial". > > If don't add the alias node like:"serial0 = &lpuart0;", then lpuart > will probe failed: > [0.773410] fsl-lpuart 295.serial: fai

Re: [PATCH] tty/serial: atmel: RS485 half duplex w/DMA: enable RX after TX is done

2017-01-10 Thread Greg KH
On Mon, Jan 02, 2017 at 03:14:37PM +0100, Richard Genoud wrote: > 2017-01-02 12:53 GMT+01:00 Alexandre Belloni > : > > On 06/12/2016 at 13:05:33 +0100, Richard Genoud wrote : > >> When using RS485 in half duplex, RX should be enabled when TX is > >> finished, and stopped when TX starts. > >> > >> B

Re: [PATCH] tty/serial: atmel_serial: BUG: stop DMA from transmitting in stop_tx

2017-01-10 Thread Greg Kroah-Hartman
On Mon, Jan 02, 2017 at 03:16:46PM +0100, Richard Genoud wrote: > 2017-01-02 12:13 GMT+01:00 Nicolas Ferre : > > Le 13/12/2016 à 17:27, Richard Genoud a écrit : > >> If we don't disable the transmitter in atmel_stop_tx, the DMA buffer > >> continues to send data until it is emptied. > >> This cause

Re: [PATCH] mm: Respect FOLL_FORCE/FOLL_COW for thp

2017-01-10 Thread Hugh Dickins
On Tue, 10 Jan 2017, Hugh Dickins wrote: > On Thu, 5 Jan 2017, Kirill A. Shutemov wrote: > > On Thu, Jan 05, 2017 at 12:36:58AM -0500, Keno Fischer wrote: > > > struct page *follow_devmap_pmd(struct vm_area_struct *vma, unsigned long > > > addr, > > > pmd_t *pmd, int flags) > > > { > >

Re: [PATCH v3 04/15] livepatch/x86: add TIF_PATCH_PENDING thread flag

2017-01-10 Thread Kamalesh Babulal
On Thursday 08 December 2016 11:38 PM, Josh Poimboeuf wrote: Add the TIF_PATCH_PENDING thread flag to enable the new livepatch per-task consistency model for x86_64. The bit getting set indicates the thread has a pending patch which needs to be applied when the thread exits the kernel. The bit

[PATCH v11 11/12] drm/mediatek: update DSI sub driver flow for sending commands to panel

2017-01-10 Thread YT Shen
This patch update enable/disable flow of DSI module. Original flow works on there is a bridge chip: DSI -> bridge -> panel. In this case: DSI -> panel, the DSI sub driver flow should be updated. We need to initialize DSI first so that we can send commands to panel. Signed-off-by: shaoming chen Si

[PATCH v11 09/12] drm/mediatek: add dsi transfer function

2017-01-10 Thread YT Shen
From: shaoming chen add dsi read/write commands for transfer function Signed-off-by: shaoming chen --- drivers/gpu/drm/mediatek/mtk_dsi.c | 168 - 1 file changed, 166 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/g

[PATCH v11 08/12] drm/mediatek: add dsi interrupt control

2017-01-10 Thread YT Shen
From: shaoming chen add dsi interrupt control Signed-off-by: shaoming chen --- drivers/gpu/drm/mediatek/mtk_dsi.c | 92 ++ 1 file changed, 92 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index 6f4b3bb..

[PATCH v11 10/12] drm/mediatek: add non-continuous clock mode and EOT packet control

2017-01-10 Thread YT Shen
This patch will update dsi clock control method. 1. dsi non-continue clock mode will enhance antistatic effect for panel 2. EOT packet control will judge whether dsi send end of packet or not by customize Signed-off-by: shaoming chen Signed-off-by: YT Shen --- drivers/gpu/drm/mediatek/mtk_dsi.c

[PATCH v11 12/12] drm/mediatek: add support for Mediatek SoC MT2701

2017-01-10 Thread YT Shen
This patch add support for the Mediatek MT2701 DISP subsystem. There is only one OVL engine in MT2701. Signed-off-by: YT Shen --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 8 drivers/gpu/drm/mediatek/mtk_disp_rdma.c| 6 ++ drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 17 +

[PATCH v11 07/12] drm/mediatek: cleaning up and refine

2017-01-10 Thread YT Shen
cleaning up unused define and refine function name and variable Signed-off-by: shaoming chen Signed-off-by: YT Shen --- drivers/gpu/drm/mediatek/mtk_dsi.c | 73 -- drivers/gpu/drm/mediatek/mtk_mipi_tx.c | 8 ++-- 2 files changed, 39 insertions(+), 42 deletio

[PATCH v11 04/12] drm/mediatek: add shadow register support

2017-01-10 Thread YT Shen
We need to acquire mutex before using the resources, and need to release it after finished. So we don't need to write registers in the blanking period. Signed-off-by: YT Shen --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 75 - drivers/gpu/drm/mediatek/mtk_drm_ddp.

[PATCH v11 03/12] drm/mediatek: add *driver_data for different hardware settings

2017-01-10 Thread YT Shen
There are some hardware settings changed, between MT8173 & MT2701: DISP_OVL address offset changed, color format definition changed. DISP_RDMA fifo size changed. DISP_COLOR offset changed. MIPI_TX pll setting changed. And add prefix for mtk_ddp_main & mtk_ddp_ext & mutex_mod. Signed-off-by: YT She

[PATCH v11 06/12] drm/mediatek: update display module connections

2017-01-10 Thread YT Shen
update connections for OVL, RDMA, BLS, DSI Signed-off-by: YT Shen --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index b77d456..a9b209c 1006

[PATCH v11 01/12] dt-bindings: display: mediatek: update supported chips

2017-01-10 Thread YT Shen
Add decriptions about supported chips, including MT2701 & MT8173 Signed-off-by: YT Shen --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 2 ++ Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Do

[PATCH v11 05/12] drm/mediatek: add BLS component

2017-01-10 Thread YT Shen
Add BLS component for PWM + GAMMA function Signed-off-by: YT Shen --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 5 - drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gp

[PATCH v11 02/12] drm/mediatek: add helpers for coverting from the generic components

2017-01-10 Thread YT Shen
define helpers for converting from 'mtk_ddp_comp' to 'mtk_disp_ovl' define helpers for converting from 'mtk_ddp_comp' to 'mtk_disp_rdma' Signed-off-by: YT Shen --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 15 +-- drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 15 +-- 2 file

[PATCH v11 00/12] MT2701 DRM support

2017-01-10 Thread YT Shen
This is MT2701 DRM support PATCH v10, based on 4.10-rc1. We add DSI interrupt control, transfer function for MIPI DSI panel support. Most codes are the same, except some register changed. For example: - DISP_OVL address offset changed, color format definition changed. - DISP_RDMA fifo size chang

Re: [PATCH 4.9 000/206] 4.9.3-stable review

2017-01-10 Thread Greg Kroah-Hartman
On Tue, Jan 10, 2017 at 02:28:07PM -0800, Guenter Roeck wrote: > On Tue, Jan 10, 2017 at 02:34:43PM +0100, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.3 release. > > There are 206 patches in this series, all will be posted as a response > > to this one. I

Re: WARNING at fs/sysfs/group.c:237 .sysfs_remove_group+0xc4/0xd0 on Linus mainline

2017-01-10 Thread seeteena
Hi , Let me know if the below community fix is been merged into upstream code. https://www.mail-archive.com/linux-scsi@vger.kernel.org/msg39187.html Thanks Seeteena On 01/11/2017 12:14 PM, abdul wrote: Hi Today's mainline shows warning while load/unload lpfc module on PowerPC Machine : Po

Re: [PATCH 0/2] Style fixes: open code obfuscating macros

2017-01-10 Thread Greg Kroah-Hartman
On Tue, Jan 10, 2017 at 04:34:41PM -0700, Logan Gunthorpe wrote: > > > On 10/01/17 04:06 PM, Joe Perches wrote: > > It might also be better to add and use YA > > logging macro like ndev_dbg > > > > #define ndev_dvg(ndev, fmt, ...)\ > > dev_dbg(&(ndev)->ntb.pdev->dev, fmt, ##__VA_ARGS__)

Re: [PATCH v2 6/6] arm64: allwinner: a64: Increase the MMC max frequency

2017-01-10 Thread Chen-Yu Tsai
On Wed, Jan 11, 2017 at 3:15 AM, Maxime Ripard wrote: > Hi, > > On Tue, Jan 10, 2017 at 01:01:20AM +0800, Chen-Yu Tsai wrote: >> On Tue, Jan 10, 2017 at 12:46 AM, Maxime Ripard >> wrote: >> > All the controllers can have a maximum frequency of 200MHz. >> > >> > Since older SoCs cannot go that hig

[PATCH v8 2/3] drm/panel: Add support for S6E3HA2 panel driver on TM2 board

2017-01-10 Thread Hoegeun Kwon
This patch add support for MIPI-DSI based S6E3HA2 AMOLED panel driver. This panel has 1440x2560 resolution in 5.7-inch physical panel in the TM2 device. Signed-off-by: Donghwa Lee Signed-off-by: Hyungwon Hwang Signed-off-by: Hoegeun Kwon Tested-by: Chanwoo Choi Reviewed-by: Andrzej Hajda ---

[PATCH v8 3/3] arm64: dts: exynos: Add support for S6E3HA2 panel device on TM2 board

2017-01-10 Thread Hoegeun Kwon
From: Hyungwon Hwang This patch add the panel device tree node for S6E3HA2 display controller to TM2 dts. Signed-off-by: Hyungwon Hwang Signed-off-by: Andrzej Hajda Signed-off-by: Chanwoo Choi Signed-off-by: Hoegeun Kwon Tested-by: Chanwoo Choi --- arch/arm64/boot/dts/exynos/exynos5433-tm2

[PATCH v8 1/3] dt-bindings: Add support for samsung s6e3ha2 panel binding

2017-01-10 Thread Hoegeun Kwon
The Samsung s6e3ha2 is a 5.7" 1440x2560 AMOLED panel connected using MIPI-DSI interfaces. Signed-off-by: Donghwa Lee Signed-off-by: Hyungwon Hwang Signed-off-by: Hoegeun Kwon Tested-by: Chanwoo Choi Reviewed-by: Andrzej Hajda --- .../bindings/display/panel/samsung,s6e3ha2.txt | 26 ++

[PATCH v8 0/3] Add support for the S6E3HA2 panel on TM2 board

2017-01-10 Thread Hoegeun Kwon
Purpose of this patch is add support for S6E3HA2 AMOLED panel on the TM2 board. The first patch adds support for S6E3HA2 panel device tree document and driver, the second patch add support for S6E3HA2 panel device tree. Thank you for your review. Changes for V8: - Applied below two patches: (drm/

Re: [Cocci] [PATCH] coccicheck: add a test for repeat copy_from_user

2017-01-10 Thread Julia Lawall
I looked at the get_user part of the original script. It looks like most of the complexity is to deal with the possibility of the src location being expressed in two different ways between the two calls. Even if this happens in practice only for get_user, it would seem that it could happen for co

[PATCH perf/core v2 4/4] perf-probe: Find probe events without target module

2017-01-10 Thread Masami Hiramatsu
Find probe events without -m "module" option. If perf-probe failed to find given function in kernel image, it tries to find same symbol and module in kallsyms, and retry search in the found module. E.g. # perf probe -D i915_capabilities p:probe/i915_capabilities i915:i915_capabilities+0 Note:

[PATCH perf/core v2 3/4] perf-probe: Fix to probe on gcc generated functions in modules

2017-01-10 Thread Masami Hiramatsu
Fix to probe on gcc generated functions on modules. Since probing on a module is based on its symbol name, it should be adjusted on actual symbols. E.g. without this fix, perf probe shows probe definition on non-exist symbol as below. $ perf probe -m build-x86_64/net/netfilter/nf_nat.ko -F in_r

[PATCH perf/core v2 2/4] perf-probe: Add error checks to offline probe post-processing

2017-01-10 Thread Masami Hiramatsu
Add error check codes to post process and improve it for offline probe events as; - post process fails if no matched symbol found in map(-ENOENT) or strdup() failed(-ENOMEM). - Even if the symbol name is same, it updates symbol address and offset. Signed-off-by: Masami Hiramatsu --- tool

Re: x86-64: Maintain 16-byte stack alignment

2017-01-10 Thread Andy Lutomirski
On Tue, Jan 10, 2017 at 8:35 PM, Herbert Xu wrote: > On Tue, Jan 10, 2017 at 08:17:17PM -0800, Linus Torvalds wrote: >> >> That said, I do think that the "don't assume stack alignment, do it by >> hand" may be the safer thing. Because who knows what the random rules >> will be on other architectur

[PATCH perf/core v2 1/4] perf-probe: Fix to show correct locations for events on modules

2017-01-10 Thread Masami Hiramatsu
Fix to show correct locations for events on modules by relocating given address instead of retrying after failure. This happens when the module text size is enough big, bigger than sh_addr, because original code retries withgiven address + sh_addr if it failed to find CU DIE at the given address.

[PATCH perf/core v2 0/4] perf-probe: Fix and improve module probe events

2017-01-10 Thread Masami Hiramatsu
Hello, This is the 2nd version of the series for fixing offline/online module probe support and improving perf-probe to probe module without -m option (Thanks Arnaldo!). This includes below patches. - [1/4] Fix perf-probe --list to show correct probe location in module. - [2/4] Improve

Re: [RFC] coccicheck: add a test for repeat memory fetches

2017-01-10 Thread Julia Lawall
On Tue, 10 Jan 2017, Kees Cook wrote: > On Tue, Jan 10, 2017 at 1:14 PM, Julia Lawall wrote: > > OK, I have the impression that what you are looking for is the following, > > that currently does not seem to work well. Still maybe it gives an idea. > > > > The basic pattern is the following sequ

Re: [PATCH] mm: Respect FOLL_FORCE/FOLL_COW for thp

2017-01-10 Thread Hugh Dickins
On Thu, 5 Jan 2017, Kirill A. Shutemov wrote: > On Thu, Jan 05, 2017 at 12:36:58AM -0500, Keno Fischer wrote: > > struct page *follow_devmap_pmd(struct vm_area_struct *vma, unsigned long > > addr, > > pmd_t *pmd, int flags) > > { > > @@ -783,7 +793,7 @@ struct page *follow_devmap_pmd

Re: [PATCH v7 1/4] drm/exynos: mic: Add mode_set callback function

2017-01-10 Thread Inki Dae
Applied. Thanks. 2017년 01월 05일 19:20에 Hoegeun Kwon 이(가) 쓴 글: > Before applying the patch, used the of_get_videomode function to > parse the display-timings in the panel which is the child driver > of dsi in the devicetree. this is wrong. So removed the > of_get_videomode and fixed to get videomod

Re: [PATCH v7 2/4] drm/exynos: mic: Fix parse_dt function

2017-01-10 Thread Inki Dae
Applied. Thanks. 2017년 01월 05일 19:20에 Hoegeun Kwon 이(가) 쓴 글: > The OF graph is not necessary because the panel is a child of > dsi. therefore, the parse_dt function of dsi does not need to > check the remote_node connected to the panel. and the whole > parse_dt function should be refactored later

Re: [PATCH 3/3] xen: optimize xenbus driver for multiple concurrent xenstore accesses

2017-01-10 Thread Juergen Gross
On 10/01/17 23:56, Boris Ostrovsky wrote: > > > >> diff --git a/drivers/xen/xenbus/xenbus_xs.c b/drivers/xen/xenbus/xenbus_xs.c >> index ebc768f..ebdfbee 100644 >> --- a/drivers/xen/xenbus/xenbus_xs.c >> +++ b/drivers/xen/xenbus/xenbus_xs.c > > >> - >> -static struct xs_handle xs_state; >> +/*

Re: [Cocci] [RFC] coccicheck: add a test for repeat memory fetches

2017-01-10 Thread Vaishali Thakkar
On Wednesday 11 January 2017 05:34 AM, Kees Cook wrote: On Tue, Jan 10, 2017 at 1:14 PM, Julia Lawall wrote: OK, I have the impression that what you are looking for is the following, that currently does not seem to work well. Still maybe it gives an idea. The basic pattern is the following seq

Re: [PATCH 02/62] watchdog: aspeed_wdt: Convert to use device managed functions

2017-01-10 Thread Joel Stanley
On Wed, Jan 11, 2017 at 10:34 AM, Guenter Roeck wrote: > Use device managed functions to simplify error handling, reduce > source code size, improve readability, and reduce the likelyhood of bugs. > > The conversion was done automatically with coccinelle using the > following semantic patches. The

RE: [PATCH] block: loose check on sg gap

2017-01-10 Thread Dexuan Cui
> From: Dexuan Cui > Sent: Tuesday, December 20, 2016 11:41 > To: 'Jens Axboe' ; Ming Lei > Cc: Linux Kernel Mailing List ; linux-block > ; Christoph Hellwig ; > Vitaly Kuznetsov ; Keith Busch > ; Hannes Reinecke ; Mike Christie > ; Martin K. Petersen ; > Toshi Kani ; Dan Williams ; > Damien Le Mo

[PATCH 1/3] gpio: davinci: Remove unwanted blank line

2017-01-10 Thread Keerthy
Remove redundant blank line. Signed-off-by: Keerthy --- include/linux/platform_data/gpio-davinci.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/platform_data/gpio-davinci.h b/include/linux/platform_data/gpio-davinci.h index 44ca530..18127c4 100644 --- a/include/linux/platfor

[PATCH 3/3] gpio: davinci: Add support for multiple GPIO controllers

2017-01-10 Thread Keerthy
Update GPIO driver to support Multiple GPIO controllers by updating the base of subsequent GPIO chips with total of previous chips gpio count so that gpio_add_chip gets unique numbers. Signed-off-by: Keerthy --- drivers/gpio/gpio-davinci.c| 4 +++- include/linux/platform_data/gpi

[PATCH 0/3] gpio: davinci: Redesign driver to accommodate ngpios in one gpio chip

2017-01-10 Thread Keerthy
The Davinci GPIO driver is implemented to work with one monolithic Davinci GPIO platform device which may have up to Y(144) gpios. The Davinci GPIO driver instantiates number of GPIO chips with max 32 gpio pins per each during initialization and one IRQ domain. So, the current GPIO's opjects struc

[PATCH 2/3] gpio: davinci: Redesign driver to accommodate ngpios in one gpio chip

2017-01-10 Thread Keerthy
The Davinci GPIO driver is implemented to work with one monolithic Davinci GPIO platform device which may have up to Y(144) gpios. The Davinci GPIO driver instantiates number of GPIO chips with max 32 gpio pins per each during initialization and one IRQ domain. So, the current GPIO's opjects struc

[PATCH] staging: wlan-ng: Fix sparse warnings about endianness

2017-01-10 Thread Eric Salem
Fixed sparse warnings about endianness. E.g.: warning: cast to restricted __le16 Signed-off-by: Eric Salem --- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h index 6

Re: [PATCH] selftests/futex: Fix makefile dependencies

2017-01-10 Thread Stafford Horne
On Tue, Jan 10, 2017 at 02:17:18PM -0800, Darren Hart wrote: > On Tue, Jan 10, 2017 at 02:10:42PM -0800, Darren Hart wrote: > > On Fri, Jan 06, 2017 at 01:18:39PM +0900, Stafford Horne wrote: > > > I am working on doing selftests for openrisc and found issues with the > > > futex test is not buildi

Re: [PATCH v4] DAX: enable iostat for read/write

2017-01-10 Thread Joe Perches
On Tue, 2017-01-10 at 17:11 -0700, Toshi Kani wrote: > DAX IO path does not support iostat, but its metadata IO path does. > Therefore, iostat shows metadata IO statistics only, which has been > confusing to users. [] > diff --git a/fs/dax.c b/fs/dax.c [] > @@ -1058,12 +1058,22 @@ dax_iomap_rw(stru

Re: x86-64: Maintain 16-byte stack alignment

2017-01-10 Thread Herbert Xu
On Tue, Jan 10, 2017 at 08:17:17PM -0800, Linus Torvalds wrote: > > That said, I do think that the "don't assume stack alignment, do it by > hand" may be the safer thing. Because who knows what the random rules > will be on other architectures. Sure we can ban the use of attribute aligned on stack

[PATCH] staging:vt6656:mac.c Aligned to match open parenthesis

2017-01-10 Thread Scott Matheina
Fixes checkpatch warning: Alignment should match open parenthesis Signed-off-by: Scott Matheina --- drivers/staging/vt6656/mac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vt6656/mac.c b/drivers/staging/vt6656/mac.c index 86d98bc..417fdad 100644 --- a

[PATCH] staging:vt6656:mac.c Aligned to match open parenthesis

2017-01-10 Thread Scott Matheina
Fixes checkpatch warning: Alignment should match open parenthesis Signed-off-by: Scott Matheina --- drivers/staging/vt6656/mac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vt6656/mac.c b/drivers/staging/vt6656/mac.c index 86d98bc..417fdad 100644 --- a

Re: [PATCH V7 00/11] megaraid_sas: Updates for scsi-next

2017-01-10 Thread Martin K. Petersen
> "Sasikumar" == Sasikumar Chandrasekaran > writes: Sasikumar> Sasikumar Chandrasekaran (11): Sasikumar> megaraid_sas: driver version upgrade Applied patches 1 through 11 to 4.11/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

Re: x86-64: Maintain 16-byte stack alignment

2017-01-10 Thread Linus Torvalds
On Tue, Jan 10, 2017 at 7:30 PM, Linus Torvalds wrote: > > If you really want more stack alignment, you have to generate that > alignment yourself by hand (and have a bigger buffer that you do that > alignment inside). Side note: gcc can (and does) actually generate forced alignment using "and" i

Re: [PATCH] scsi: qedi: select UIO

2017-01-10 Thread Martin K. Petersen
> "Ewan" == Ewan D Milne writes: Ewan> Randy posted a similar patch back in December but I don't think Ewan> there was ever a reply to Christoph's question about why qedi Ewan> depends on uio. I did queue up Randy's patch to shut up the build warnings. But we're still looking for a long term

Re: [PATCH v2] scsi: remove useless acpi functions in the header file

2017-01-10 Thread Martin K. Petersen
> "Hanjun" == Hanjun Guo writes: Hanjun> From: Hanjun Guo commit f1bc1e4c44b1 Hanjun> ("ata: acpi: rework the ata acpi bind support") removed Hanjun> scsi_register_acpi_bus_type() and Hanjun> scsi_unregister_acpi_bus_type(), but forgot to remove them in Hanjun> the header file, do it now. A

Re: [scsi 1/4] scsi: ufs: ufshcd_query_descriptor_retry should be static

2017-01-10 Thread Martin K. Petersen
> "Tomas" == Tomas Winkler writes: Tomas> Fix the following compilation warning: Tomas> drivers/scsi/ufs/ufshcd.c:2076:5: warning: no previous prototype Tomas> for ‘ufshcd_query_descriptor_retry’ [-Wmissing-prototypes] Tomas> Also do not export the function, it should not be used out of ufs

Re: [PATCH v6] x86: fix kaslr and memmap collision

2017-01-10 Thread Baoquan He
On 01/10/17 at 10:56am, Dave Jiang wrote: > CONFIG_RANDOMIZE_BASE relocates the kernel to a random base address. > However it does not take into account the memmap= parameter passed in from > the kernel cmdline. This results in the kernel sometimes being put in > the middle of memmap. Teaching kasl

Re: 174cc7187e6f ACPICA: Tables: Back port acpi_get_table_with_size() and early_acpi_os_unmap_memory() from Linux kernel

2017-01-10 Thread Rafael J. Wysocki
On Tue, Jan 10, 2017 at 10:41 AM, Borislav Petkov wrote: > On Tue, Jan 10, 2017 at 02:27:16AM +0100, Rafael J. Wysocki wrote: >> Well, if the https://patchwork.kernel.org/patch/9504277/ patch from Lv >> worked, the attached one should work too (please test), but it can be >> justified in a slightl

Re: [PATCH v4 4/4] phy: qcom-qmp: new qmp phy driver for qcom-chipsets

2017-01-10 Thread Vivek Gautam
Hi, On 01/11/2017 04:50 AM, Andy Gross wrote: On Tue, Jan 10, 2017 at 04:21:59PM +0530, Vivek Gautam wrote: Qualcomm SOCs have QMP phy controller that provides support to a number of controller, viz. PCIe, UFS, and USB. Add a new driver, based on generic phy framework, for this phy controller.

[PATCH v2] net: netcp: correct netcp_get_stats function signature

2017-01-10 Thread Keerthy
Commit: bc1f44709cf2 - net: make ndo_get_stats64 a void function and Commit: 6a8162e99ef3 - net: netcp: store network statistics in 64 bits. The commit 6a8162e99ef3 adds ndo_get_stats64 function as per old signature which causes compilation error: drivers/net/ethernet/ti/netcp_core.c:1951:28: err

HELLO

2017-01-10 Thread reply...@ono.com
Greetings and how are you today? I am Dr Paul Sawadogo the chief Medical consultant at Suka Clinic Ouagadougou and I have a Patient who hails from the Republic of Philippines she want me to transfer the sum of $4.7 Million United States (Four Million seven Hundred Thousand) Dollars to you Plea

Re: x86-64: Maintain 16-byte stack alignment

2017-01-10 Thread Linus Torvalds
On Tue, Jan 10, 2017 at 7:11 PM, Herbert Xu wrote: > > Well the only other alternative I see is to ban compilers which > enforce 16-byte stack alignment, such as gcc 4.7.2. No, you don't have to ban the compiler - it's just a "generate overly stupid code that just uses extra instructions to like

Re: [PATCH] net: netcp: correct netcp_get_stats function signature

2017-01-10 Thread Keerthy
On Tuesday 10 January 2017 10:22 PM, David Miller wrote: From: Keerthy Date: Tue, 10 Jan 2017 16:56:25 +0530 @@ -1909,7 +1909,7 @@ static int netcp_setup_tc(struct net_device *dev, u32 handle, __be16 proto, return 0; } -static struct rtnl_link_stats64 * +void netcp_get_stats(stru

Re: [PATCH 0/9] IB: Optimize DMA mapping

2017-01-10 Thread santosh.shilim...@oracle.com
On 1/10/17 4:56 PM, Bart Van Assche wrote: Hello Doug, As you know there are two sets of DMA mapping operations in the Linux kernel: - One set of DMA mapping operations that is used by most drivers. - Another set of DMA mapping operations that is only used by the RDMA drivers. Having two sets

Re: x86-64: Maintain 16-byte stack alignment

2017-01-10 Thread Herbert Xu
On Tue, Jan 10, 2017 at 03:25:47PM -0800, Andy Lutomirski wrote: > > > If it does what it says on the tin, it should fix the issue, but after > > adding the attribute, I get the exact same object output, so there's > > something dodgy going on here. > > Ugh, that's annoying. Maybe it needs noinli

Re: x86-64: Maintain 16-byte stack alignment

2017-01-10 Thread Herbert Xu
On Tue, Jan 10, 2017 at 11:22:15AM -0800, Andy Lutomirski wrote: > > > Actually, the breakage is introduced by the patch Herbert refers to > > > > https://patchwork.kernel.org/patch/9468391/ > > > > where the state is replaced by a simple > > > > u32 state[16] __aligned(CHACHA20_STATE_ALIGN); > > >

linux-next: Tree for Jan 11

2017-01-10 Thread Stephen Rothwell
Hi all, Changes since 20170110: Non-merge commits (relative to Linus' tree): 2646 3419 files changed, 102456 insertions(+), 57379 deletions(-) I have created today's linux-next tree at git://git.kernel.o

Re: x86-64: Maintain 16-byte stack alignment

2017-01-10 Thread Herbert Xu
On Tue, Jan 10, 2017 at 11:00:31AM -0800, Andy Lutomirski wrote: > > Here's what I think is really going on. This is partially from > memory, so I could be off base. The kernel is up against > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53383, which means that, > on some GCC versions (like the

[RFC][Update][PATCH 1/2] cpufreq: intel_pstate: Expose global sysfs attributes upfront

2017-01-10 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Expose the intel_pstate's global sysfs attributes before registering the driver to prepare for the addition of an attribute that also will have to work if the driver is not registered. Signed-off-by: Rafael J. Wysocki --- drivers/cpufreq/intel_pstate.c | 68 ++

Re: x86-64: Maintain 16-byte stack alignment

2017-01-10 Thread Herbert Xu
On Tue, Jan 10, 2017 at 05:30:48PM +, Ard Biesheuvel wrote: > > Apologies for introducing this breakage. It seemed like an obvious and > simple cleanup, so I didn't even bother to mention it in the commit > log, but if the kernel does not guarantee 16 byte alignment, I guess > we should revert

Re: [PATCH v2 7/8] net: Rename TCA*BPF_DIGEST to ..._SHA256

2017-01-10 Thread Andy Lutomirski
On Tue, Jan 10, 2017 at 4:50 PM, Daniel Borkmann wrote: > On 01/11/2017 12:24 AM, Andy Lutomirski wrote: >> >> This makes it easier to add another digest algorithm down the road if >> needed. It also serves to force any programs that might have been >> written against a kernel that had the old fi

Re: x86-64: Maintain 16-byte stack alignment

2017-01-10 Thread Herbert Xu
On Tue, Jan 10, 2017 at 09:05:28AM -0800, Linus Torvalds wrote: > On Tue, Jan 10, 2017 at 6:39 AM, Herbert Xu > wrote: > > > > BTW this is with Debian gcc 4.7.2 which does not allow an 8-byte > > stack alignment as attempted by the Makefile: > > I'm pretty sure we have random asm code that may n

Re: linux-next: build failure after merge of the selinux tree

2017-01-10 Thread Paul Moore
On Mon, Jan 9, 2017 at 8:27 PM, Stephen Rothwell wrote: > Hi Paul, > > After merging the selinux tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > In file included from /home/sfr/next/next/security/selinux/avc.c:35:0: > /home/sfr/next/next/security/selinux/include/classm

Re: [PATCH v7 2/7] perf/amd/iommu: Modify functions to query max banks and counters

2017-01-10 Thread Suravee Suthikulpanit
On 1/10/17 21:43, Joerg Roedel wrote: On Mon, Jan 09, 2017 at 09:33:42PM -0600, Suthikulpanit, Suravee wrote: +static struct amd_iommu *get_amd_iommu(uint idx) +{ + uint i = 0; + struct amd_iommu *iommu = NULL; + + for_each_iommu(iommu) { + if (i == idx) +

Re: [Resend][PATCH 2/3] PM / core / docs: Convert sleep states API document to reST

2017-01-10 Thread Rafael J. Wysocki
On Tue, Jan 10, 2017 at 2:41 AM, Lukas Wunner wrote: > Hi Rafael, > > I've perused devices.rst up until section "Entering System Suspend" > so far, about half of the document. Here are my comments, I'll read > the remainder of the document later. > > > On Fri, Jan 06, 2017 at 02:41:38AM +0100, Ra

Re: [PATCH v4] ceph: set io_pages bdi hint

2017-01-10 Thread Yan, Zheng
> On 10 Jan 2017, at 21:17, Andreas Gerstmayr > wrote: > > This patch sets the io_pages bdi hint based on the rsize mount option. > Without this patch large buffered reads (request size > max readahead) > are processed sequentially in chunks of the readahead size (i.e. read > requests are sent

Re: [PATCH v2] ceph/iov_iter: fix bad iov_iter handling in ceph splice codepaths

2017-01-10 Thread Yan, Zheng
> On 10 Jan 2017, at 20:57, Jeff Layton wrote: > > v2: fix bug in offset handling in iov_iter_pvec_size > > xfstest generic/095 triggers soft lockups in kcephfs. Basically it uses > fio to drive some I/O via vmsplice ane splice. Ceph then ends up trying > to access an ITER_BVEC type iov_iter as

Re: [PATCH] usb: dwc3-exynos fix unspecified suspend clk error handling

2017-01-10 Thread pankaj.dubey
Hi Krzysztof, On Tuesday 10 January 2017 11:55 PM, Krzysztof Kozlowski wrote: > On Tue, Jan 10, 2017 at 06:09:40PM +0100, Bartlomiej Zolnierkiewicz wrote: >> BTW What is interesting is that the Exynos7 dts patch [2] has never >> made it into upstream for some reason. In the meantime however >> Ex

Re: [RFC][PATCH 1/2] cpufreq: intel_pstate: Expose global sysfs attributes upfront

2017-01-10 Thread Rafael J. Wysocki
On Tue, Jan 10, 2017 at 9:48 PM, Srinivas Pandruvada wrote: > On Thu, 2017-01-05 at 02:51 +0100, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> Expose the intel_pstate's global sysfs attributes before registering >> the driver to prepare for the addition of an attribute that also will

[PATCH] arm64: lib: patch in prfm for copy_template if requested

2017-01-10 Thread Andrew Pinski
On ThunderX T88 pass 1 and pass 2, there is no hardware prefetching so we need to patch in explicit software prefetching instructions. This speeds up copy_to_user and copy_from_user for large size. The main use of large sizes is I/O read/writes. Signed-off-by: Andrew Pinski --- arch/arm64/lib/c

[PATCH] patch in prfm for copy_template if requested

2017-01-10 Thread Andrew Pinski
As mentioned in http://lists.infradead.org/pipermail/linux-arm-kernel/2016-February/404146.html copy_template was left alone at the time which mentions: "since the template really deals with 64 bytes per iteration, which would need changing". The problem is that there is not enough registers ava

Re: [PATCH] scsi: remove useless acpi functions in the head file

2017-01-10 Thread Aaron Lu
On 01/11/2017 10:15 AM, Hanjun Guo wrote: > On 2017/1/11 9:50, Aaron Lu wrote: >> On 01/10/2017 07:44 PM, John Garry wrote: >>> On 10/01/2017 08:14, Hanjun Guo wrote: From: Hanjun Guo commit f1bc1e4c44b1 ("ata: acpi: rework the ata acpi bind support") removed scsi_register_acpi

Re: [PATCH net-next 5/8] net: dsa: Export dev_to_net_device()

2017-01-10 Thread David Miller
From: Florian Fainelli Date: Tue, 10 Jan 2017 12:12:32 -0800 > @@ -491,7 +491,7 @@ struct mii_bus *dsa_host_dev_to_mii_bus(struct device > *dev) > } > EXPORT_SYMBOL_GPL(dsa_host_dev_to_mii_bus); > > -static struct net_device *dev_to_net_device(struct device *dev) > +struct net_device *dev_to

Re: [PATCH] scsi: remove useless acpi functions in the head file

2017-01-10 Thread Hanjun Guo
On 2017/1/11 9:50, Aaron Lu wrote: > On 01/10/2017 07:44 PM, John Garry wrote: >> On 10/01/2017 08:14, Hanjun Guo wrote: >>> From: Hanjun Guo >>> >>> commit f1bc1e4c44b1 ("ata: acpi: rework the ata acpi bind support") >>> removed scsi_register_acpi_bus_type() and scsi_unregister_acpi_bus_type(), >

[PATCH 56/62] watchdog: tangox_wdt: Convert to use device managed functions

2017-01-10 Thread Guenter Roeck
Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the scripts used to generate this commit lo

[PATCH 54/62] watchdog: stmp3xxx_rtc_wdt: Convert to use device managed functions

2017-01-10 Thread Guenter Roeck
Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the scripts used to generate this commit lo

[PATCH 62/62] watchdog: wm831x_wdt: Convert to use device managed functions

2017-01-10 Thread Guenter Roeck
Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the scripts used to generate this commit lo

[PATCH 61/62] watchdog: ux500_wdt: Convert to use device managed functions

2017-01-10 Thread Guenter Roeck
Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the scripts used to generate this commit lo

[PATCH 59/62] watchdog: twl4030_wdt: Convert to use device managed functions

2017-01-10 Thread Guenter Roeck
Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the scripts used to generate this commit lo

  1   2   3   4   5   6   7   8   9   10   >