Re: [RFC PATCH v2 0/6] mm, memory_hotplug: allocate memmap from hotadded memory

2017-08-07 Thread Michal Hocko
Any comments? Especially for the arch specific? Has anybody had a chance to test this? I do not want to rush this but I would be really glag if we could push this work in 4.14 merge window. -- Michal Hocko SUSE Labs

Re: [PATCH v10 4/4] irqchip/qeic: remove PPCisms for QEIC

2017-08-07 Thread Michael Ellerman
Zhao Qiang writes: > QEIC was supported on PowerPC, and dependent on PPC, > Now it is supported on other platforms, so remove PPCisms. > > Signed-off-by: Zhao Qiang > --- > arch/powerpc/platforms/83xx/km83xx.c | 1 - > arch/powerpc/platforms/83xx/misc.c| 1 - > arch/pow

Re: [PATCHv5 3/3] ARM:drm ivip Intel FPGA Video and Image Processing Suite

2017-08-07 Thread kbuild test robot
Hi Ong, [auto build test WARNING on drm/drm-next] [also build test WARNING on v4.13-rc4 next-20170804] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Hean-Loong-Ong/Intel-FPGA-VIP-Frame-Buffer-I

Re: [PATCH][resend] media: ti-vpe: cal: use of_graph_get_remote_endpoint()

2017-08-07 Thread Kuninori Morimoto
Hi Hans > > From: Kuninori Morimoto > > > > Now, we can use of_graph_get_remote_endpoint(). Let's use it. > > I'm not sure why this is resent. It's part of a pending pull request > so I expect it to be merged this week. Sorry, I didn't know that. Thank you for your help Best regards --- Kuni

Re: [PATCH] thunderbolt: icm: Remove Apple check for Alpine Ridge

2017-08-07 Thread Mika Westerberg
On Mon, Aug 07, 2017 at 02:50:49PM +0800, Kai-Heng Feng wrote: > On Mon, Aug 7, 2017 at 12:49 PM, Kai-Heng Feng > wrote: > > In icm_ar_is_supported(), icm->upstream_port will be uninitialized if > > the hardware is not an Apple one. > > > > The uninitialized icm->upstream_port will later be derefe

Re: [PATCH] mm: vmstat: get slab statistics always from node counters

2017-08-07 Thread Michal Hocko
On Sun 06-08-17 17:04:09, Stefan Agner wrote: > After the move of slab statistics from zone to node counters some > users still try to get the counters from the zone counters. This has > been caught while compiling with clang printing a warning like: > > implicit conversion from enumeration type

Re: [PATCH] ASoC: fsl_asrc: protect macro argument

2017-08-07 Thread Nicolin Chen
On Sun, Aug 06, 2017 at 11:36:57PM -0700, Stefan Agner wrote: > Protect macro argument with parentheses to avoid ambiguity. > This fixes a warning seen with clang: > warning: logical not is only applied to the left hand side of this > comparison > > Signed-off-by: Stefan Agner Acked-by: Nicol

Re: [PATCH] media: i2c: OV5647: gate clock lane before stream on

2017-08-07 Thread Jacob Chen
Hi all, 2017-07-25 10:34 GMT+08:00 Jacob Chen : > According to datasheet, BIT5 in reg-0x4800 are used to > enable/disable clock lane gate. > > It's wrong to make clock lane free running before > sensor stream on was called, while the mipi phy > are not initialized. > > Signed-off-by: Jacob Chen >

[PATCH v8 08/14] lockdep: Make print_circular_bug() aware of crossrelease

2017-08-07 Thread Byungchul Park
print_circular_bug() reporting circular bug assumes that target hlock is owned by the current. However, in crossrelease, target hlock can be owned by other than the current. So the report format needs to be changed to reflect the change. Signed-off-by: Byungchul Park --- kernel/locking/lockdep.c

[PATCH v8 14/14] lockdep: Crossrelease feature documentation

2017-08-07 Thread Byungchul Park
This document describes the concept of crossrelease feature. Signed-off-by: Byungchul Park --- Documentation/locking/crossrelease.txt | 874 + 1 file changed, 874 insertions(+) create mode 100644 Documentation/locking/crossrelease.txt diff --git a/Documentation/

[PATCH v8 02/14] lockdep: Add a function building a chain between two classes

2017-08-07 Thread Byungchul Park
Crossrelease needs to build a chain between two classes regardless of their contexts. However, add_chain_cache() cannot be used for that purpose since it assumes that it's called in the acquisition context of the hlock. So this patch introduces a new function doing it. Signed-off-by: Byungchul Par

[PATCH v8 13/14] lockdep: Move data of CONFIG_LOCKDEP_PAGELOCK from page to page_ext

2017-08-07 Thread Byungchul Park
CONFIG_LOCKDEP_PAGELOCK needs to keep lockdep_map_cross per page. Since it's a debug feature, it's preferred to keep it in struct page_ext than struct page. Move it to struct page_ext. Signed-off-by: Byungchul Park --- include/linux/mm_types.h | 4 --- include/linux/page-flags.h | 19

[PATCH v8 12/14] lockdep: Apply lock_acquire(release) on __Set(__Clear)PageLocked

2017-08-07 Thread Byungchul Park
Usually PG_locked bit is updated by lock_page() or unlock_page(). However, it can be also updated through __SetPageLocked() or __ClearPageLockded(). They have to be considered, to get paired between acquire and release. Furthermore, e.g. __SetPageLocked() in add_to_page_cache_lru() is called frequ

[PATCH v8 04/14] lockdep: Make check_prev_add() able to handle external stack_trace

2017-08-07 Thread Byungchul Park
Currently, a space for stack_trace is pinned in check_prev_add(), that makes us not able to use external stack_trace. The simplest way to achieve it is to pass an external stack_trace as an argument. A more suitable solution is to pass a callback additionally along with a stack_trace so that calle

[PATCH v8 05/14] lockdep: Implement crossrelease feature

2017-08-07 Thread Byungchul Park
Lockdep is a runtime locking correctness validator that detects and reports a deadlock or its possibility by checking dependencies between locks. It's useful since it does not report just an actual deadlock but also the possibility of a deadlock that has not actually happened yet. That enables prob

[PATCH v8 00/14] lockdep: Implement crossrelease feature

2017-08-07 Thread Byungchul Park
Change from v7 - rebase on latest tip/sched/core (Jul 26 2017) - apply peterz's suggestions - simplify code of crossrelease_{hist/soft/hard}_{start/end} - exclude a patch avoiding redundant links - exclude a patch already applied onto the base Change from v6

[PATCH v8 06/14] lockdep: Detect and handle hist_lock ring buffer overwrite

2017-08-07 Thread Byungchul Park
The ring buffer can be overwritten by hardirq/softirq/work contexts. That cases must be considered on rollback or commit. For example, |<-- hist_lock ring buffer size ->| iii wrapped > iii

[PATCH v8 10/14] pagemap.h: Remove trailing white space

2017-08-07 Thread Byungchul Park
Trailing white space is not accepted in kernel coding style. Remove them. Signed-off-by: Byungchul Park --- include/linux/pagemap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index baa9344..9717ca8 100644 --- a/includ

[PATCH v8 07/14] lockdep: Handle non(or multi)-acquisition of a crosslock

2017-08-07 Thread Byungchul Park
No acquisition might be in progress on commit of a crosslock. Completion operations enabling crossrelease are the case like: CONTEXT X CONTEXT Y - - trigger completion context complete AX

[PATCH v8 01/14] lockdep: Refactor lookup_chain_cache()

2017-08-07 Thread Byungchul Park
Currently, lookup_chain_cache() provides both 'lookup' and 'add' functionalities in a function. However, each is useful. So this patch makes lookup_chain_cache() only do 'lookup' functionality and makes add_chain_cahce() only do 'add' functionality. And it's more readable than before. Signed-off-b

[PATCH v8 09/14] lockdep: Apply crossrelease to completions

2017-08-07 Thread Byungchul Park
Although wait_for_completion() and its family can cause deadlock, the lock correctness validator could not be applied to them until now, because things like complete() are usually called in a different context from the waiting context, which violates lockdep's assumption. Thanks to CONFIG_LOCKDEP_

[PATCH v8 03/14] lockdep: Change the meaning of check_prev_add()'s return value

2017-08-07 Thread Byungchul Park
Firstly, return 1 instead of 2 when 'prev -> next' dependency already exists. Since the value 2 is not referenced anywhere, just return 1 indicating success in this case. Secondly, return 2 instead of 1 when successfully added a lock_list entry with saving stack_trace. With that, a caller can deci

Re: [PATCH] i2c: imx: Remove a useless test in 'i2c_imx_init_recovery_info()'

2017-08-07 Thread Julia Lawall
On Mon, 7 Aug 2017, Uwe Kleine-König wrote: > On Mon, Aug 07, 2017 at 01:49:53AM +0200, Christophe JAILLET wrote: > > 'devm_pinctrl_get()' never returns NULL, so this test can be simplified. > > That's wrong. If CONFIG_PINCTRL is disabled devm_pinctrl_get returns > NULL. But I think this shouldn

[PATCH v8 11/14] lockdep: Apply crossrelease to PG_locked locks

2017-08-07 Thread Byungchul Park
Although lock_page() and its family can cause deadlock, the lock correctness validator could not be applied to them until now, becasue things like unlock_page() might be called in a different context from the acquisition context, which violates lockdep's assumption. Thanks to CONFIG_LOCKDEP_CROSSR

Re: [PATCH v6 1/3] perf/core: use rb trees for pinned/flexible groups

2017-08-07 Thread Alexey Budankov
On 04.08.2017 17:36, Peter Zijlstra wrote: > On Thu, Aug 03, 2017 at 11:30:09PM +0300, Alexey Budankov wrote: >> On 03.08.2017 16:00, Peter Zijlstra wrote: >>> On Wed, Aug 02, 2017 at 11:13:54AM +0300, Alexey Budankov wrote: > +/* + * Find group list by a cpu key and rotate it. + */

Re: [PATCH] thunderbolt: icm: Remove Apple check for Alpine Ridge

2017-08-07 Thread Kai-Heng Feng
On Mon, Aug 7, 2017 at 3:02 PM, Mika Westerberg wrote: > On Mon, Aug 07, 2017 at 02:50:49PM +0800, Kai-Heng Feng wrote: >> On Mon, Aug 7, 2017 at 12:49 PM, Kai-Heng Feng >> wrote: >> > In icm_ar_is_supported(), icm->upstream_port will be uninitialized if >> > the hardware is not an Apple one. >>

[PATCH -mm] mm: Clear to access sub-page last when clearing huge page

2017-08-07 Thread Huang, Ying
From: Huang Ying Huge page helps to reduce TLB miss rate, but it has higher cache footprint, sometimes this may cause some issue. For example, when clearing huge page on x86_64 platform, the cache footprint is 2M. But on a Xeon E5 v3 2699 CPU, there are 18 cores, 36 threads, and only 45M LLC (l

[PATCH v3 1/4] dt-bindings: soc: update the binding document for SCPSYS on MediaTek MT7622 SoC

2017-08-07 Thread sean.wang
From: Sean Wang Update the binding document for enabling SCPSYS on MediaTek MT7622 SoC. Signed-off-by: Sean Wang Signed-off-by: Chen Zhong Acked-by: Rob Herring --- Documentation/devicetree/bindings/soc/mediatek/scpsys.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/

[PATCH v3 3/4] soc: mediatek: add header files required for MT7622 SCPSYS dt-binding

2017-08-07 Thread sean.wang
From: Chen Zhong Add relevant header files required for dt-bindings of SCPSYS power domain control for all subsystems found on MT7622 SoC. Signed-off-by: Chen Zhong Signed-off-by: Sean Wang --- include/dt-bindings/power/mt7622-power.h | 22 ++ 1 file changed, 22 insertions

[PATCH v3 0/4] add support of SCPSYS power domain for MediaTek MT7622

2017-08-07 Thread sean.wang
From: Sean Wang Changes since v2: - reduce code duplication of scpsys_probe across all SoCs Changes since v1: - rebase to Linux v4.13-rc1 There are four power domains on MediaTek MT7622 SoC which are respectively ETHSYS for Ethernet including extra embedded switch, HIF0SYS for PCI-E and SATA, H

[PATCH v3 4/4] soc: mediatek: add SCPSYS power domain driver for MediaTek MT7622 SoC

2017-08-07 Thread sean.wang
From: Sean Wang Add SCPSYS power domain driver for MT7622 SoC having four power domains which are respectively ETHSYS for Ethernet including embedded switch, WBSYS for WIFI and Bluetooth, HIF0SYS for PCI-E and SATA, and HIF1SYS for USB. Those functions could be selectively powered gated when the

[PATCH v3 2/4] soc: mediatek: reduce code duplication of scpsys_probe across all SoCs

2017-08-07 Thread sean.wang
From: Sean Wang Reduce code duplication of scpsys_probe_mt across all SoCs using the more generic scpsys_probe all covering all cases to avoid starting to bloat the driver when more MediaTek SoCs supported are added. Suggested-by: Matthias Brugger Signed-off-by: Sean Wang --- drivers/soc/

[v5] wlcore: add missing nvs file name info for wilink8

2017-08-07 Thread Reizer, Eyal
The following commits: c815fde wlcore: spi: Populate config firmware data d776fc8 wlcore: sdio: Populate config firmware data Populated the nvs entry for wilink6 and wilink7 only while it is still needed for wilink8 as well. This broke user space backward compatibility when upgrading from older ke

RE: [v4] wlcore: add missing nvs file name info for wilink8

2017-08-07 Thread Reizer, Eyal
> -Original Message- > From: Julian Calaby [mailto:julian.cal...@gmail.com] > Sent: Saturday, August 5, 2017 8:51 AM > To: Reizer, Eyal > Cc: Kalle Valo; ,Tony Lindgren; linux-wirel...@vger.kernel.org; linux- > ker...@vger.kernel.org; sebastian.reic...@collabora.co.uk > Subject: Re: [v4]

[RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X table

2017-08-07 Thread Alexey Kardashevskiy
This is a followup for "[PATCH kernel v4 0/6] vfio-pci: Add support for mmapping MSI-X table" http://www.spinics.net/lists/kvm/msg152232.html This time it is using "caps" in IOMMU groups. The main question is if PCI bus flags or IOMMU domains are still better (and which one). Here is some bac

Re: [ANNOUNCE] v4.11.12-rt9

2017-08-07 Thread Sebastian Andrzej Siewior
On 2017-08-05 16:57:23 [+0200], Mike Galbraith wrote: > > Woohoo! > > Box put a small dent in enthusiasm.  After a bit of hotplug flogging, > box blew up on shutdown.  x3550 M3 has a serial port, and reproduced. > > [ 624.216065] list_del corruption. prev->next should be 88015cb31278, > but

[RFC PATCH v5 3/5] iommu/intel/amd: Set IOMMU_GROUP_CAP_ISOLATE_MSIX if IRQ remapping is enabled

2017-08-07 Thread Alexey Kardashevskiy
This sets IOMMU_GROUP_CAP_ISOLATE_MSIX to a group if IRQ remapping is enabled. For Intel, this checks disable_sourceid_checking in addition; AMD ignores the "nosid" kernel parameters. Here is some background on how the isolation works: On Intel VT-d [1], there is an Interrupt Remapping Table, one

[RFC PATCH v5 1/5] iommu: Add capabilities to a group

2017-08-07 Thread Alexey Kardashevskiy
This introduces capabilities to IOMMU groups. The first defined capability is IOMMU_GROUP_CAP_ISOLATE_MSIX which tells the IOMMU group users that a particular IOMMU group is capable of MSIX message filtering; this is useful when deciding whether or not to allow mapping of MSIX table to the userspac

Re: [v5] wlcore: add missing nvs file name info for wilink8

2017-08-07 Thread Tony Lindgren
* Reizer, Eyal [170807 00:32]: > The following commits: > c815fde wlcore: spi: Populate config firmware data > d776fc8 wlcore: sdio: Populate config firmware data > > Populated the nvs entry for wilink6 and wilink7 only while it is > still needed for wilink8 as well. > This broke user space backw

[RFC PATCH v5 2/5] iommu: Set IOMMU_GROUP_CAP_ISOLATE_MSIX if MSI controller enables IRQ remapping

2017-08-07 Thread Alexey Kardashevskiy
This sets IOMMU_GROUP_CAP_ISOLATE_MSIX to a group if MSI remapping is enabled on an IRQ domain; this is expected to set the capability on ARM. Signed-off-by: Alexey Kardashevskiy --- drivers/iommu/iommu.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/iommu/iommu.c b/drivers/

Re: Odp:

2017-08-07 Thread BSN Solutions Ltd
Witam, W imieniu BSN Solutions chcemy wykorzystac te okazje do reklamowania naszej oferty kredytowej tym, którzy potrzebuja pilnej pomocy finansowej. Jestem doradca ds. Pozyczek dla BSN Solutions; I szukamy dobrych projektów dla organizacji; Poszukujacych sposobów rozszerzenia i przenoszenia na

[RFC PATCH v5 4/5] powerpc/iommu: Set IOMMU_GROUP_CAP_ISOLATE_MSIX

2017-08-07 Thread Alexey Kardashevskiy
This sets IOMMU_GROUP_CAP_ISOLATE_MSIX to a group unconditionally as there is no IOMMU-capable hardware without such a feature. On IBM POWERPC (POWER8) [1], PCI host bridge maintains BFDN-to-PE translation (PE stands for "partitionable endpoint"), and PE index is used to look at Interrupt Vector T

[PATCH v2 1/6] devicetree: Extend synopsys ddrc binding for Xilinx ZynqMP

2017-08-07 Thread Michal Simek
Add ZynqMP support to Synopsys memory controller. Signed-off-by: Michal Simek --- Changes in v2: - New patch in this series .../devicetree/bindings/memory-controllers/synopsys.txt| 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bin

[PATCH v2 6/6] edac: synopsys: Enable CE and UE interrupts for ZynqMP DDRC

2017-08-07 Thread Michal Simek
From: Naga Sureshkumar Relli This patch enables Corrected and Uncorrected Error interrupts for ZynqMP DDRC controller Signed-off-by: Naga Sureshkumar Relli Reviewed-by: Punnaiah Choudary Kalluri Signed-off-by: Michal Simek --- Changes in v2: - Fix function alignment - Fix macro indentation

Re: [linux-sunxi] [PATCH v3 05/12] ASoC: sun4i-i2s: Add regmap fields for channels

2017-08-07 Thread Code Kipper
On 1 August 2017 at 10:31, Chen-Yu Tsai wrote: > On Sat, Jul 29, 2017 at 10:17 PM, wrote: >> From: Marcus Cooper >> >> On the original i2s block the channel mapping and selection were >> configured for stereo audio by default: This is not the case with >> the newer SoCs and they are also locate

[PATCH v2 3/6] edac: synopsys: Add EDAC ECC support for ZynqMP DDRC

2017-08-07 Thread Michal Simek
From: Naga Sureshkumar Relli This patch adds EDAC ECC support for ZynqMP DDRC IP Signed-off-by: Naga Sureshkumar Relli Signed-off-by: Michal Simek --- Changes in v2: - Add binding doc to this series to resolve checkpatch warning - Rebased on the top of https://git.kernel.org/pub/scm/linux/k

Re: [PATCH 1/5] edac: synopsys: Add platform specific structures ddrc controller

2017-08-07 Thread Michal Simek
On 6.8.2017 07:18, Borislav Petkov wrote: > On Fri, Aug 04, 2017 at 02:00:23PM +0200, Michal Simek wrote: >> From: Naga Sureshkumar Relli > > That subject: > Subject: [PATCH 1/5] edac: synopsys: Add platform specific structures ddrc > controller > > doesn't read like a proper sentence to me.

RE: [PATCH] qed: Fix a memory allocation failure test in 'qed_mcp_cmd_init()'

2017-08-07 Thread Tayar, Tomer
> We allocate 'p_info->mfw_mb_cur' and 'p_info->mfw_mb_shadow' but we > check > 'p_info->mfw_mb_addr' instead of 'p_info->mfw_mb_cur'. > > 'p_info->mfw_mb_addr' is never 0, because it is initiliazed a few lines > above in 'qed_load_mcp_offsets()'. > > Update the test and check the result of the 2

[PATCH v2 4/6] edac: synopsys: Add ECC error injection support

2017-08-07 Thread Michal Simek
From: Naga Sureshkumar Relli The ZynqMP DDRC controller has data poisoning support to inject CE or UE errors. this patch adds this support using sysfs attributes. created the following sysfs entries to support this. -> /sys/devices/system/edac/mc/mc0/inject_data_poison -> /sys/devices/system/eda

[PATCH v2 5/6] edac: synopsys: Update ECC error message info

2017-08-07 Thread Michal Simek
From: Naga Sureshkumar Relli This patch updates the ECC error message info for zynqmp ddrc. added Block number and Bankgroup in the message info. Signed-off-by: Naga Sureshkumar Relli Signed-off-by: Michal Simek --- Changes in v2: - s/ecc/ECC/ in commit message drivers/edac/synopsys_edac.c

[PATCH v2 2/6] edac: synopsys: Add platform specific structures for ddrc controller

2017-08-07 Thread Michal Simek
From: Naga Sureshkumar Relli Adds platform specific structures, so that we can add different IP support later using quirks. Signed-off-by: Naga Sureshkumar Relli Signed-off-by: Michal Simek --- Changes in v2: - Update commit message - Update patch subject - Update kernel-doc description for s

Re: [RFC]Add new mdev interface for QoS

2017-08-07 Thread Gao, Ping A
On 2017/8/4 5:11, Alex Williamson wrote: > On Thu, 3 Aug 2017 20:26:14 +0800 > "Gao, Ping A" wrote: > >> On 2017/8/3 0:58, Alex Williamson wrote: >>> On Wed, 2 Aug 2017 21:16:28 +0530 >>> Kirti Wankhede wrote: >>> On 8/2/2017 6:29 PM, Gao, Ping A wrote: > On 2017/8/2 18:19, Kirti Wa

[PATCH 11/11] ALSA: vsnd: Introduce Kconfig option to enable Xen PV sound

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Introduce Kconfig option to enable Xen para-virtualized sound frontend driver. Also add sound frontend to the Makefile. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/Kconfig | 12 sound/drivers/Makefile | 2 ++ 2 files changed, 14 inserti

[PATCH 06/11] ALSA: vsnd: Introduce ALSA virtual sound driver

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Implement essential initialization of the sound driver: - introduce required data structures - handle driver registration - handle sound card registration - register sound driver on backend connection - remove sound driver on backend disconnect Signed-off-by: Oleksa

[PATCH 07/11] ALSA: vsnd: Initialize virtul sound card

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Initialize virtual sound card with streams according to the Xen store configuration. Add stubs for stream PCM operations. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen-front.c | 232 ++ 1 file changed, 232

Re: [v4 PATCH 0/2] powerpc/powernv: Enable stop4 via cpuidle

2017-08-07 Thread Nicholas Piggin
On Mon, 7 Aug 2017 11:12:42 +0530 "Gautham R. Shenoy" wrote: > From: "Gautham R. Shenoy" > > Hi, > > This is the fourth iteration of the patchset to enable exploitation of > stop4 idle state on POWER9 via cpuidle. These look good to me, thanks. I think the SPR saving is moving in the right d

[PATCH 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements the protocol from include/xen/interface/io/sndif.h with the following limitations: - mute/unmute is not supported - get/set volume is not supported Volume control is not

[PATCH 09/11] ALSA: vsnd: Implement ALSA PCM operations

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Implement ALSA driver operations including: - start/stop period interrupt emulation - manage frontend/backend shraed buffers - manage Xen bus event channel state Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen-front.c | 175 +++

Re: [PATCH] iommu/arm-smmu: Defer TLB flush in case of unmap op

2017-08-07 Thread Vivek Gautam
Hi Robin, On Fri, Aug 4, 2017 at 10:34 PM, Robin Murphy wrote: > On 03/08/17 06:35, Vivek Gautam wrote: >> Hi Robin, >> >> >> >> On 08/02/2017 05:47 PM, Robin Murphy wrote: >>> On 02/08/17 10:53, Vivek Gautam wrote: We don't want to touch the TLB when smmu is suspended. Defer it until

[PATCH 10/11] ALSA: vsnd: Implement communication with backend

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Implement frontend to backend communication according to the para-virtualized sound protocol: xen/interface/io/sndif.h. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen-front.c | 302 +++--- 1 file changed, 288 i

[PATCH 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Front sound driver has no real interrupts, so playback/capture period passed interrupt needs to be emulated: this is done via timer. Add required timer operations, this is based on sound/drivers/dummy.c. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen

[PATCH 02/11] ALSA: vsnd: Implement Xen bus state handling

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Initial handling for Xen bus states: implement Xen bus state machine for the front driver according to the state diagram and recovery flow from sound para-virtualized protocol: xen/interface/io/sndif.h. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen-

[PATCH 05/11] ALSA: vsnd: Implement handling of shared buffers

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Implement shared buffer handling according to the para-virtualized sound device protocol at xen/interface/io/sndif.h: - manage buffer memory - handle granted references - handle page directories Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen-front.c

[PATCH 1/2] dmaengine: at_xdmac: Fix compilation warning.

2017-08-07 Thread Arvind Yadav
Replace '%d' by '%zu' to fix the compilation warning:- "format ‘%d’ expects argument of type ‘int’,but argument has type ‘size_t’ [-Wformat=]" Signed-off-by: Arvind Yadav --- drivers/dma/at_xdmac.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/dma/at_xdm

[PATCH 2/2] dmaengine: at_xdmac: Handle return value of clk_prepare_enable.

2017-08-07 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/dma/at_xdmac.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c index 6a3cf97..c00e392 100644 --- a/drivers/dma/at

[PATCH 03/11] ALSA: vsnd: Read sound driver configuration from Xen store

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Read configuration values from Xen store according to xen/interface/io/sndif.h protocol: - introduce configuration structures for different components, e.g. sound card, device, stream - read PCM HW parameters, e.g rate, format etc. - detect stream type (capture/pla

[PATCH 01/11] ALSA: vsnd: Implement driver's probe/remove

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Add essential driver private info structure, initialize locks and implement probe/remove of the Xen frontend driver. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen-front.c | 27 +++ 1 file changed, 27 insertions(+) diff --git

RE: [v5] wlcore: add missing nvs file name info for wilink8

2017-08-07 Thread Reizer, Eyal
Hi Tony, > > * Reizer, Eyal [170807 00:32]: > > The following commits: > > c815fde wlcore: spi: Populate config firmware data > > d776fc8 wlcore: sdio: Populate config firmware data > > > > Populated the nvs entry for wilink6 and wilink7 only while it is > > still needed for wilink8 as well. > >

[PATCH 04/11] ALSA: vsnd: Implement Xen event channel handling

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko 1. Create event channels for all configured streams and publish corresponding ring references and event channels in Xen store, so backend can connect. 2. Implement event channel interrupt handler. 3. Create and destroy event channels with respect to Xen bus state. S

[RFC PATCH v5 5/5] vfio-pci: Allow to expose MSI-X table to userspace when safe

2017-08-07 Thread Alexey Kardashevskiy
Some devices have a MSIX BAR not aligned to the system page size greater than 4K (like 64k for ppc64) which at the moment prevents such MMIO pages from being mapped to the userspace for the sake of the MSIX BAR content protection. If such page happens to share the same system page with some frequen

Re: [PATCH] thunderbolt: icm: Remove Apple check for Alpine Ridge

2017-08-07 Thread Mika Westerberg
On Mon, Aug 07, 2017 at 03:20:40PM +0800, Kai-Heng Feng wrote: > On Mon, Aug 7, 2017 at 3:02 PM, Mika Westerberg > wrote: > > On Mon, Aug 07, 2017 at 02:50:49PM +0800, Kai-Heng Feng wrote: > >> On Mon, Aug 7, 2017 at 12:49 PM, Kai-Heng Feng > >> wrote: > >> > In icm_ar_is_supported(), icm->upstre

Re: [ANNOUNCE] v4.11.12-rt9

2017-08-07 Thread Sebastian Andrzej Siewior
On 2017-08-05 08:13:03 [+0200], Mike Galbraith wrote: > > Steven's script annoyed the scheduler here, but woohoo regardless, it > hasn't yet made boom, or stopped dead in its tracks.  I'll give it some > exercise on my 64 core box, where death has never (modulo fugly hacks > that survived 30 hrs o

Re: [PATCH 1/2 v2] backlight: gpio: Convert to use GPIO descriptor

2017-08-07 Thread Lee Jones
On Tue, 01 Aug 2017, Linus Walleij wrote: > On Tue, May 30, 2017 at 1:48 PM, Linus Walleij > wrote: > > > This driver is predominantly used by device tree systems, all > > of which can deal with modern GPIO descriptors. The legacy > > GPIO API is only used by one SH board so make the GPIO > > d

Re: [PATCH] Fix missing PCI ID (thanks to CoolStar); Necessary for Lenovo Yoga 720-15 Touchpad

2017-08-07 Thread Lee Jones
Subject line looks wrong. To see the format expected please use: `git log --oneline -- drivers/mfd` You are missing your SoB. > --- > This patch fixes a missing PCI ID which is necessary for the Lenovo Yoga > 720-15 Touchpad to work. This should be in the commit log above. > See this bug re

Re: [regression] tty console panic for 4.13-rcx

2017-08-07 Thread Shawn Lin
On 2017/8/7 12:00, Shawn Lin wrote: Hi, I saw the log at the bottom and bisect the issue to the commits of 065ea0a7afd64d6c ("tty: improve tty_insert_flip_char() slow path") 979990c628481461 ("tty: improve tty_insert_flip_char() fast path") I nearly could 100% reproduce this. Any thought? O

Re: [PATCH] thunderbolt: icm: Remove Apple check for Alpine Ridge

2017-08-07 Thread Kai-Heng Feng
On Mon, Aug 7, 2017 at 3:51 PM, Mika Westerberg wrote: > At this point we should find out that the ICM is already running and the > function never calls pci2cio_write(). I guess you mean this code section: /* Check if the ICM firmware is already running */ val = ioread32(nhi->iob

[PATCH RESEND] X.509: Recognize the legacy OID 1.3.14.3.2.29 (sha1WithRSASignature)

2017-08-07 Thread Carlo Caione
From: Carlo Caione We have found some ACER laptops shipping with certificates signed using the 1.3.14.3.2.29 OID. This is causing the message EFI: Problem loading in-kernel X.509 certificate (-65) to be printed at boot. This OID is Rivest, Shamir and Adleman (RSA) algorithm that uses the Se

Re: [PATCH] thunderbolt: icm: Remove Apple check for Alpine Ridge

2017-08-07 Thread Mika Westerberg
On Mon, Aug 07, 2017 at 04:00:06PM +0800, Kai-Heng Feng wrote: > On Mon, Aug 7, 2017 at 3:51 PM, Mika Westerberg > wrote: > > At this point we should find out that the ICM is already running and the > > function never calls pci2cio_write(). > > I guess you mean this code section: > > /*

Re: FSGSBASE ABI considerations

2017-08-07 Thread Stas Sergeev
Hello. 31.07.2017 06:05, Andy Lutomirski пишет: - User code can use the new RD/WR FS/GS BASE instructions. Apparently some users really want this for, umm, userspace threading. Think Java. I wonder how java avoids the lack of the user-space continuations support while getting the userspace th

[PATCH v2 3/4] usb: xhci: Add DbC support in xHCI driver

2017-08-07 Thread Lu Baolu
xHCI compatible USB host controllers(i.e. super-speed USB3 controllers) can be implemented with the Debug Capability(DbC). It presents a debug device which is fully compliant with the USB framework and provides the equivalent of a very high performance full-duplex serial link. The debug capability

[PATCH v2 2/4] usb: common: Move u_serial from gadget/function to usb/common

2017-08-07 Thread Lu Baolu
The component u_serial provides a glue layer between TTY layer and a USB gadget device needed to provide a basic serial port functionality. Currently, u_serial sits under gadget/function and depends on CONFIG_USB_GADGET to be compiled and used. Most of the serial gadget devices are based on a UDC

[PATCH v2 0/4] usb: xhci: Add debug capability support in xhci

2017-08-07 Thread Lu Baolu
Hi, This series is for xHCI debug capability (spec section 7.6.8) support in the xHCI driver. xHCI compatible USB host controllers(i.e. super-speed USB3 controllers) can be implemented with the Debug Capability(DbC). It presents a debug device which is fully compliant with the USB framework and p

[PATCH v2 1/4] usb: xhci: Make some static functions global

2017-08-07 Thread Lu Baolu
This patch makes some static functions global to avoid duplications in different files. These functions can be used in the implementation of xHCI debug capability. There is no functional change. Signed-off-by: Lu Baolu --- drivers/usb/host/xhci-mem.c | 94 ++-

[PATCH v2 4/4] usb: doc: Update document for USB3 debug port usage

2017-08-07 Thread Lu Baolu
Update Documentation/driver-api/usb/usb3-debug-port.rst. This update includes the guide for using xHCI debug capability based TTY serial link. Signed-off-by: Lu Baolu --- Documentation/driver-api/usb/usb3-debug-port.rst | 68 1 file changed, 68 insertions(+) diff --git

[PATCH 0/7] arm64: dts: hi3660: add more device nodes

2017-08-07 Thread Guodong Xu
This patchset adds more device nodes for hi3660 and hikey960, including: - cpu idle states - L2 cache - PMU - OP-TEE - reboot - pstore Patch 7 fixes an issue in mmc nodes, by adding 'reset' HiKey960 is one of 96boards. For details information about it, please refer to [1]. [1] https://git

[PATCH 4/7] arm64: dts: hikey960: Add optee node

2017-08-07 Thread Guodong Xu
From: Victor Chong This patch adds op-tee node for hikey960 Signed-off-by: Victor Chong --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hik

[PATCH 3/7] arm64: dts: hi3660: add pmu dt node for hi3660

2017-08-07 Thread Guodong Xu
From: YiPing Xu Add pmu dt node for hi3660 Signed-off-by: YiPing Xu Signed-off-by: Zhong Kaihua Signed-off-by: Leo Yan Tested-by: Jumana Mundichipparakkal --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/

[PATCH 1/7] arm64: dts: hi3660: enable idle states

2017-08-07 Thread Guodong Xu
From: Leo Yan On Hi3660 there have two clusters, one is CA53 cluster and another is CA73 cluster. This two clusters have different idle states separately. With Daniel Lezcano's patch (ARM: cpuidle: Support asymmetric idle definition), now ARM idle driver can support different clusters with differ

[PATCH 7/7] arm64: dts: hi3660: Reset the mmc hosts

2017-08-07 Thread Guodong Xu
Add reset-names = "reset" into mmc nodes. Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index 5fd5686..41841f7 100644 --- a/arch/

[PATCH 5/7] arm64: dts: hikey960: Add support for syscon-reboot-mode

2017-08-07 Thread Guodong Xu
Add support to hikey960 dts for the syscon-reboot-mode driver. Cc: John Stultz Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot

[PATCH 6/7] arm64: dts: hikey960: Add pstore support

2017-08-07 Thread Guodong Xu
This patch reserves some memory in the DTS and sets up a pstore device tree node to enable pstore support on HiKey960. Cc: John Stultz Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/b

Re: Suspend-resume failure on Intel Eagle Lake Core2Duo

2017-08-07 Thread Marc Zyngier
On 07/08/17 05:45, Masahiro Yamada wrote: > Hi Marc, > > > 2017-08-03 22:30 GMT+09:00 Marc Zyngier : >> On 03/08/17 13:52, Masahiro Yamada wrote: >>> Hi Marc, >>> >>> 2017-08-03 17:41 GMT+09:00 Marc Zyngier : Hi Masahiro, On 03/08/17 08:32, Masahiro Yamada wrote: > Hi. > >>

[PATCH 2/7] arm64: dts: hi3660: add L2 cache topology

2017-08-07 Thread Guodong Xu
From: Leo Yan This patch adds the L2 cache topology on 96boards Hikey960. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660

Re: [PATCH] media: i2c: OV5647: gate clock lane before stream on

2017-08-07 Thread Philipp Zabel
Hi Jacob, On Mon, 2017-08-07 at 15:11 +0800, Jacob Chen wrote: > Hi all, > > 2017-07-25 10:34 GMT+08:00 Jacob Chen : > > According to datasheet, BIT5 in reg-0x4800 are used to > > enable/disable clock lane gate. > > > > It's wrong to make clock lane free running before > > sensor stream on was ca

Re: [PATCH v2 2/4] usb: common: Move u_serial from gadget/function to usb/common

2017-08-07 Thread Felipe Balbi
Hi, Lu Baolu writes: > The component u_serial provides a glue layer between TTY layer > and a USB gadget device needed to provide a basic serial port > functionality. Currently, u_serial sits under gadget/function > and depends on CONFIG_USB_GADGET to be compiled and used. > > Most of the serial

Re: [ANNOUNCE] v4.11.12-rt9

2017-08-07 Thread Mike Galbraith
On Mon, 2017-08-07 at 09:33 +0200, Sebastian Andrzej Siewior wrote: > On 2017-08-05 16:57:23 [+0200], Mike Galbraith wrote: > > > Woohoo! > > > > Box put a small dent in enthusiasm.  After a bit of hotplug flogging, > > box blew up on shutdown.  x3550 M3 has a serial port, and reproduced. > > > >

Re: [PATCH 0/3] remove rw_page() from brd, pmem and btt

2017-08-07 Thread Minchan Kim
On Fri, Aug 04, 2017 at 11:24:49AM -0700, Dan Williams wrote: > On Fri, Aug 4, 2017 at 11:21 AM, Ross Zwisler > wrote: > > On Fri, Aug 04, 2017 at 11:01:08AM -0700, Dan Williams wrote: > >> [ adding Dave who is working on a blk-mq + dma offload version of the > >> pmem driver ] > >> > >> On Fri, A

Re: [PATCH] scsi: mpt3sas: Fix memory allocation failure test in 'mpt3sas_base_attach()'

2017-08-07 Thread walter harms
Am 07.08.2017 00:51, schrieb Christophe JAILLET: > In the lines above this test, 8 'kzalloc' are performed, but only 7 results > are tested. > > Add the missing one (i.e. '!ioc->port_enable_cmds.reply'). > > Signed-off-by: Christophe JAILLET > --- > drivers/scsi/mpt3sas/mpt3sas_base.c | 8 +++

Re: [v3 PATCH 1/2] powernv/powerpc:Save/Restore additional SPRs for stop4 cpuidle

2017-08-07 Thread Michael Ellerman
Gautham R Shenoy writes: > On Tue, Aug 01, 2017 at 08:56:18PM +1000, Michael Ellerman wrote: >> "Gautham R. Shenoy" writes: >> > >> > Subject: [v3 PATCH 1/2] powernv/powerpc:Save/Restore additional SPRs for >> > stop4 cpuidle >> >> I know it's not a big deal, but can we agree on the subject for

Re: [PATCH V4 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2017-08-07 Thread Vivek Gautam
On Thu, Jul 13, 2017 at 5:20 PM, Rob Clark wrote: > On Thu, Jul 13, 2017 at 1:35 AM, Sricharan R wrote: >> Hi Vivek, >> >> On 7/13/2017 10:43 AM, Vivek Gautam wrote: >>> Hi Stephen, >>> >>> >>> On 07/13/2017 04:24 AM, Stephen Boyd wrote: On 07/06, Vivek Gautam wrote: > @@ -1231,12 +1237,

  1   2   3   4   5   6   7   8   9   10   >