[PATCH v3 2/3] siox: add gpio bus driver

2017-12-19 Thread Uwe Kleine-König
This bus driver uses GPIOs to control the four SIOX bus lines. Acked-by: Gavin Schenk Signed-off-by: Uwe Kleine-König --- Notes: No changes since v1, sent with Message-Id: 20171207093008.20688-4-u.kleine-koe...@pengutronix.de No changes since v2, sent with Message-Id: 20171218165910.1

[PATCH v3 3/3] MAINTAINERS: Add entry for SIOX

2017-12-19 Thread Uwe Kleine-König
Maintenance is split between Gavin who works for Eckelmann and so has the functional authority, knows the background and history of this bus system and me who designed most of the actual code with the old microcontroller code as reference. Acked-by: Gavin Schenk Signed-off-by: Uwe Kleine-König -

Re: [PATCH 1/2] bdisp: Fix a possible sleep-in-atomic bug in bdisp_hw_reset

2017-12-19 Thread Fabien DESSENNE
On 16/12/17 15:14, Mauro Carvalho Chehab wrote: > Em Sat, 16 Dec 2017 19:53:55 +0800 > Jia-Ju Bai escreveu: > >> Hi, >> >> On 2017/12/15 22:51, Fabien DESSENNE wrote: >>> Hi >>> >>> On 12/12/17 14:47, Jia-Ju Bai wrote: The driver may sleep under a spinlock. The function call path is: >

[PATCH 0/1] Reduce scheduler migrations due to wake_affine

2017-12-19 Thread Mel Gorman
wake_affine has the impossible task of figuring out when it's best for a waker to pull a wakee towards the wakers CPU on the expectation that data locality will offset the migration. It's hurt by the fact that most wakeups cannot run on the current CPU to avoid stacking multiple tasks on one CPU by

[PATCH -tip v3 5/6] net: dccp: Add DCCP sendmsg trace event

2017-12-19 Thread Masami Hiramatsu
Add DCCP sendmsg trace event (dccp/dccp_probe) for replacing dccpprobe. User can trace this event via ftrace or perftools. Signed-off-by: Masami Hiramatsu --- net/dccp/proto.c |5 +++ net/dccp/trace.h | 105 ++ 2 files changed, 110 inserti

[PATCH v2 3/3] PCI: dra7xx: Enable x2 mode support for dra74x, dra76x and dra72x

2017-12-19 Thread Kishon Vijay Abraham I
dra74x/dra76x and dra72x has separate compatible strings. Add support for these compatible strings in pci-dra7xx driver to perform syscon configurations required to get x2 mode working. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/dwc/pci-dra7xx.c | 90 ++

Re: [PATCH 17/25] hrtimer: Implementation of softirq hrtimer handling

2017-12-19 Thread Sebastian Andrzej Siewior
this is late I know… On 2017-09-27 18:40:26 [+0200], Peter Zijlstra wrote: > - removed superfluous local_bh_disable(), since local_irq_disable() >already implies much the same. it is not superfluous. > Please consider... > > @@ -1768,7 +1786,6 @@ int hrtimers_dead_cpu(unsigned int scpu) >

Re: BUG: bad usercopy in memdup_user

2017-12-19 Thread Tobin C. Harding
On Tue, Dec 19, 2017 at 09:41:39AM +0100, Dmitry Vyukov wrote: > On Tue, Dec 19, 2017 at 9:37 AM, Tobin C. Harding wrote: > >> > wrote: > >> >> On 2017/12/18 22:40, syzbot wrote: > >> >>> Hello, > >> >>> > >> >>> syzkaller hit the following crash on > >> >>> 6084b576dca2e898f5c101baef151f7bfdbb6

[PATCH v2 1/3] dt-bindings: PCI: dra7xx: Add SoC specific compatible strings

2017-12-19 Thread Kishon Vijay Abraham I
Add new compatible strings for dra74x SoC (also used by dra76x) and dra72x. This can be used to perform SoC specific configuration (like configuring PCIe in x2 lane mode). Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori Acked-by: Rob Herring --- Documentation/devicetree/bindin

Re: [PATCH v3 3/3] MAINTAINERS: Add entry for SIOX

2017-12-19 Thread Joe Perches
On Tue, 2017-12-19 at 10:00 +0100, Uwe Kleine-König wrote: > Maintenance is split between Gavin who works for Eckelmann and so has > the functional authority, knows the background and history of this bus > system and me who designed most of the actual code with the old > microcontroller code as ref

Re: [PATCH 1/3] mmc: sdhci-pci-o2micro: Add hardware tuning for eMMC

2017-12-19 Thread Adrian Hunter
On 04/12/17 11:39, LinuxPatchCommit wrote: > Dear All, > > For O2micro/Bayhubtech SD Host DeviceID 8620, eMMC HS200 mode is working at > 1.8v and it uses hardware tuning. The hardware tuning only needs to send one > tuning command instead of multiple tuning commands with software tuning. > > Si

Re: [net-next] phylib: Add device reset GPIO support causes DSA MT7530 acquires reset-gpios fails

2017-12-19 Thread Sergei Shtylyov
On 12/15/2017 9:55 AM, Sean Wang wrote: Hi Sergei, Note that I'm no longer responsible for the patch in question -- it was abandoned by me back in 2016. Geert has somewhat reworked it and pushed into net-next. MBR, Sergei

Re: WARNING in sysfs_warn_dup

2017-12-19 Thread Dmitry Vyukov
On Tue, Dec 19, 2017 at 10:03 AM, Dmitry Vyukov wrote: > > On Tue, Dec 19, 2017 at 10:01 AM, Greg KH wrote: >> >> On Mon, Dec 18, 2017 at 08:57:01AM -0800, syzbot wrote: >> > Hello, >> > >> > syzkaller hit the following crash on >> > 6084b576dca2e898f5c101baef151f7bfdbb606d >> > git://git.kernel.

Re: BUG: bad usercopy in memdup_user

2017-12-19 Thread Dmitry Vyukov
On Tue, Dec 19, 2017 at 10:04 AM, Tobin C. Harding wrote: >> >> > wrote: >> >> >> On 2017/12/18 22:40, syzbot wrote: >> >> >>> Hello, >> >> >>> >> >> >>> syzkaller hit the following crash on >> >> >>> 6084b576dca2e898f5c101baef151f7bfdbb606d >> >> >>> git://git.kernel.org/pub/scm/linux/kernel/gi

Re: [PATCH 1/5] sched: Move tick code to a separate file

2017-12-19 Thread Peter Zijlstra
On Tue, Dec 19, 2017 at 04:23:54AM +0100, Frederic Weisbecker wrote: > Let's debloat some more core.c > Also we are going to expand the tick code even further to introduce > scheduler tick offloading. Not a fan, this is a pretty artificial split and just makes me curse more for not finding code.

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2017-12-19 Thread Boris Brezillon
On Tue, 19 Dec 2017 09:52:50 +0100 Greg Kroah-Hartman wrote: > On Thu, Dec 14, 2017 at 04:16:05PM +0100, Boris Brezillon wrote: > > +/** > > + * i3c_device_match_id() - Find the I3C device ID entry matching an I3C dev > > + * @i3cdev: the I3C device we're searching a match for > > + * @id_table:

Re: [PATCH v9 2/2] media: i2c: Add the ov7740 image sensor driver

2017-12-19 Thread Sakari Ailus
Hi Wenyou, On Tue, Dec 19, 2017 at 02:11:28AM +, wenyou.y...@microchip.com wrote: > Hi Sakari, > > > -Original Message- > > From: Sakari Ailus [mailto:sakari.ai...@iki.fi] > > Sent: 2017年12月14日 4:06 > > To: Wenyou Yang - A41535 ; Mauro Carvalho > > Chehab ; Rob Herring ; > > Mark Rutl

Re: [PATCH] kobject: fix suppressing modalias in uevents delivered over netlink

2017-12-19 Thread Eric Dumazet
On Tue, Dec 19, 2017 at 12:48 AM, Greg Kroah-Hartman wrote: > On Wed, Dec 13, 2017 at 03:21:22PM -0800, Dmitry Torokhov wrote: >> The commit 4a336a23d619 ("kobject: copy env blob in one go") optimized >> constructing uevent data for delivery over netlink by using the raw >> environment buffer, ins

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2017-12-19 Thread Boris Brezillon
On Tue, 19 Dec 2017 10:09:00 +0100 Boris Brezillon wrote: > On Tue, 19 Dec 2017 09:52:50 +0100 > Greg Kroah-Hartman wrote: > > > On Thu, Dec 14, 2017 at 04:16:05PM +0100, Boris Brezillon wrote: > > > +/** > > > + * i3c_device_match_id() - Find the I3C device ID entry matching an I3C > > > de

Re: [PATCH v6] atmel_flexcom: Support resuming after a chip reset

2017-12-19 Thread Lee Jones
On Tue, 19 Dec 2017, Nicolas Ferre wrote: > On 18/12/2017 at 21:19, Alexandre Belloni wrote: > > On 12/12/2017 at 17:21:19 +0100, Romain Izard wrote: > >> The controller used by a flexcom module is configured at boot, and left > >> alone after this. In the suspend mode called "backup with self-ref

Re: [PATCH v3] misc: mic: Use memdup_user() as a cleanup

2017-12-19 Thread Greg KH
On Wed, Dec 13, 2017 at 11:01:08PM +0100, Vasyl Gomonovych wrote: > Fix coccicheck warning which recommends to use memdup_user(): > > drivers/misc/mic/vop/vop_vringh.c:940:14-21: WARNING opportunity for > memdup_user > drivers/misc/mic/vop/vop_vringh.c:998:8-15: WARNING opportunity for > memdup_

Re: [PATCH V2 9/9] ARM: dts: stm32: add initial support of stm32mp157c eval board

2017-12-19 Thread Alexandre Torgue
Hi, On 12/18/2017 09:20 PM, Arnd Bergmann wrote: On Mon, Dec 18, 2017 at 4:17 PM, Ludovic Barre wrote: = + +/ { + model = "STMicroelectronics STM32MP157C eval daughter"; + compatible = "st,stm32mp157c-ed1", "st,stm32mp157"; + + chosen { + bootargs = "earlyprintk

Re: [PATCH 4/5] sched/isolation: Residual 1Hz scheduler tick offload

2017-12-19 Thread Peter Zijlstra
On Tue, Dec 19, 2017 at 04:23:57AM +0100, Frederic Weisbecker wrote: > When a CPU runs in full dynticks mode, a 1Hz tick remains in order to > keep the scheduler stats alive. However this residual tick is a burden > for Real-Time tasks that can't stand no interruption at all. I'm not sure that is

Re: [PATCH] cpufreq: powernv: Add support of frequency domain

2017-12-19 Thread Gautham R Shenoy
Hi Viresh, On Mon, Dec 18, 2017 at 01:59:35PM +0530, Viresh Kumar wrote: > On 18-12-17, 10:41, Abhishek wrote: > > We need to do it in this way as the current implementation takes the max of > > the PMSR of the cores. Thus, when the frequency is required to be ramped up, > > it suffices to write to

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2017-12-19 Thread Greg Kroah-Hartman
On Tue, Dec 19, 2017 at 10:13:36AM +0100, Boris Brezillon wrote: > On Tue, 19 Dec 2017 10:09:00 +0100 > Boris Brezillon wrote: > > > On Tue, 19 Dec 2017 09:52:50 +0100 > > Greg Kroah-Hartman wrote: > > > > > On Thu, Dec 14, 2017 at 04:16:05PM +0100, Boris Brezillon wrote: > > > > +/** > > > >

Re: [Xen-devel] [PATCH v2] xen/balloon: Mark unallocated host memory as UNUSABLE

2017-12-19 Thread Juergen Gross
On 19/12/17 09:23, Jan Beulich wrote: On 18.12.17 at 23:22, wrote: >> +void __init arch_xen_balloon_init(struct resource *hostmem_resource) >> +{ >> +struct xen_memory_map memmap; >> +int rc; >> +unsigned int i, last_guest_ram; >> +phys_addr_t max_addr = max_pfn << PAGE_SHIFT;

Re: [PATCH v6] mfd: syscon: Add hardware spinlock support

2017-12-19 Thread Mark Brown
On Tue, Dec 19, 2017 at 02:55:47PM +0800, Baolin Wang wrote: > Um, why regmap doesn't accept a zero lock-id, that because regmap will > reguest hwlock depending on the 'regmap_config->hwlock_id' is not > zero, if regmap regard a zero lock-id as valid which will affect other > 'struct regmap_config

Re: [PATCH v9 2/2] media: i2c: Add the ov7740 image sensor driver

2017-12-19 Thread Sakari Ailus
On Mon, Dec 11, 2017 at 09:31:46AM +0800, Wenyou Yang wrote: > The ov7740 (color) image sensor is a high performance VGA CMOS > image snesor, which supports for output formats: RAW RGB and YUV > and image sizes: VGA, and QVGA, CIF and any size smaller. > > Signed-off-by: Songjun Wu > Signed-off-b

Re: [PATCH v14 3/5] mfd: Add driver for RAVE Supervisory Processor

2017-12-19 Thread Lee Jones
On Thu, 07 Dec 2017, Andrey Smirnov wrote: > Add a driver for RAVE Supervisory Processor, an MCU implementing > various bits of housekeeping functionality (watchdoging, backlight > control, LED control, etc) on RAVE family of products by Zodiac > Inflight Innovations. > > This driver implementes

Re: [PATCH v2] IPI performance benchmark

2017-12-19 Thread Philippe Ombredanne
Dear Yury, On Tue, Dec 19, 2017 at 9:50 AM, Yury Norov wrote: > This benchmark sends many IPIs in different modes and measures > time for IPI delivery (first column), and total time, ie including > time to acknowledge the receive by sender (second column). > --- /dev/null > +++ b/kernel/ipi_be

Re: [Xen-devel] [PATCH v2] xen/balloon: Mark unallocated host memory as UNUSABLE

2017-12-19 Thread Jan Beulich
>>> On 19.12.17 at 10:21, wrote: > On 19/12/17 09:23, Jan Beulich wrote: > On 18.12.17 at 23:22, wrote: >>> +void __init arch_xen_balloon_init(struct resource *hostmem_resource) >>> +{ >>> + struct xen_memory_map memmap; >>> + int rc; >>> + unsigned int i, last_guest_ram; >>> + phys_a

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2017-12-19 Thread Boris Brezillon
On Tue, 19 Dec 2017 10:21:19 +0100 Greg Kroah-Hartman wrote: > On Tue, Dec 19, 2017 at 10:13:36AM +0100, Boris Brezillon wrote: > > On Tue, 19 Dec 2017 10:09:00 +0100 > > Boris Brezillon wrote: > > > > > On Tue, 19 Dec 2017 09:52:50 +0100 > > > Greg Kroah-Hartman wrote: > > > > > > > On T

Re: [PATCH v3 19/19] fs: handle inode->i_version more efficiently

2017-12-19 Thread Jan Kara
On Mon 18-12-17 12:22:20, Jeff Layton wrote: > On Mon, 2017-12-18 at 17:34 +0100, Jan Kara wrote: > > On Mon 18-12-17 10:11:56, Jeff Layton wrote: > > > static inline bool > > > inode_maybe_inc_iversion(struct inode *inode, bool force) > > > { > > > - atomic64_t *ivp = (atomic64_t *)&inode->i_ve

Re: [PATCH v6 1/3] lib: Add strongly typed 64bit int_sqrt

2017-12-19 Thread Crt Mori
On 18 December 2017 at 17:44, Peter Zijlstra wrote: > On Mon, Dec 18, 2017 at 04:05:44PM +0100, Crt Mori wrote: >> There is no option to perform 64bit integer sqrt on 32bit platform. >> Added stronger typed int_sqrt64 enables the 64bit calculations to >> be performed on 32bit platforms. Although i

[PATCH 3/7] ARM: dts: DRA72x: Use PCIe compatible specific to dra72

2017-12-19 Thread Kishon Vijay Abraham I
Use dra72 specific compatible string for PCIe while preserving the older compatible. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- arch/arm/boot/dts/dra72x.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/dra72x.dtsi b/arch/arm/boot

[PATCH 5/7] ARM: dts: dra7: Remove deprecated PCI compatible string

2017-12-19 Thread Kishon Vijay Abraham I
Since SoC specific compatible strings are used for PCIe in dra74x.dtsi and dra72x.dtsi, remove the compatible property from dra7.dtsi which uses the deprecated compatible string. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- arch/arm/boot/dts/dra7.dtsi | 3 --- 1 file cha

[PATCH 7/7] ARM: multi_v7_defconfig: Enable CONFIG_PCI_DRA7XX (Host & Device modes)

2017-12-19 Thread Kishon Vijay Abraham I
Enable CONFIG_PCI_DRA7XX in order to be able to configure PCIe controller present in dra7 SoCs in both host mode and device mode. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/configs/multi_v7_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/configs/multi_v7_defc

[PATCH 4/7] ARM: dts: dra76-evm: Enable x2 PCIe lanes

2017-12-19 Thread Kishon Vijay Abraham I
DRA76 EVM has a 4-lane PCIe connector and DRA76 can support x2 lanes. Enable both the PCIe lanes here. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- arch/arm/boot/dts/dra76-evm.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/dra

Re: [PATCH v6 1/3] lib: Add strongly typed 64bit int_sqrt

2017-12-19 Thread Crt Mori
On 18 December 2017 at 17:24, Joe Perches wrote: > On Mon, 2017-12-18 at 16:05 +0100, Crt Mori wrote: >> There is no option to perform 64bit integer sqrt on 32bit platform. >> Added stronger typed int_sqrt64 enables the 64bit calculations to >> be performed on 32bit platforms. Although int_sqrt()

[PATCH 1/7] ARM: dts: dra7: Add properties to enable PCIe x2 lane mode

2017-12-19 Thread Kishon Vijay Abraham I
ti,syscon-lane-sel and ti,syscon-lane-conf properties specific to enable PCIe x2 lane mode are added here. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- arch/arm/boot/dts/dra7.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/

[PATCH 2/7] ARM: dts: DRA74x: Use PCIe compatible specific to dra74

2017-12-19 Thread Kishon Vijay Abraham I
Use dra74 specific compatible string for PCIe while preserving the older compatible. While at that add a new label for the 2nd instance of pcie. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- arch/arm/boot/dts/dra7.dtsi | 2 +- arch/arm/boot/dts/dra74x.dtsi | 12 +++

[PATCH 0/7] ARM: dts: dra7: Enable x2 lane mode support

2017-12-19 Thread Kishon Vijay Abraham I
Add properties to enable PCIe x2 lane mode since all dra7 based SoCs support x2 lane mode. However only dra76-evm has a slot which can support x2 lane cards. Hence only enable x2 lane mode in dra76-evm. (am571x-idk can support x2 lane mode but that makes usb port not functional so not including th

[PATCH 6/7] ARM: omap2plus_defconfig: Enable CONFIG_PCI_DRA7XX (Host & Device modes)

2017-12-19 Thread Kishon Vijay Abraham I
Enable CONFIG_PCI_DRA7XX in order to be able to configure PCIe controller present in dra7 SoCs in both host mode and device mode. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/configs/omap2plus_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/configs/omap2plus_

Re: [RFC PATCH 2/2] ASoC: select sysclk clock from mlck clock provider in wm8994 driver

2017-12-19 Thread Mark Brown
On Fri, Dec 15, 2017 at 03:15:22PM +, Olivier MOYSAN wrote: > You are right. wm8994 allows to select either MCLK for each AIF. > From this point of view, the current patch is too limiting. > MCLK information in DT allows to enforce MCLK use, but an additionnal > information is required to de

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2017-12-19 Thread Greg Kroah-Hartman
On Tue, Dec 19, 2017 at 10:28:58AM +0100, Boris Brezillon wrote: > On Tue, 19 Dec 2017 10:21:19 +0100 > Greg Kroah-Hartman wrote: > > > On Tue, Dec 19, 2017 at 10:13:36AM +0100, Boris Brezillon wrote: > > > On Tue, 19 Dec 2017 10:09:00 +0100 > > > Boris Brezillon wrote: > > > > > > > On Tue,

Re: [PATCH v5 7/9] arm64: Topology, rename cluster_id

2017-12-19 Thread Morten Rasmussen
On Mon, Dec 18, 2017 at 03:47:03PM +, Lorenzo Pieralisi wrote: > On Mon, Dec 18, 2017 at 12:42:29PM +, Morten Rasmussen wrote: > > On Fri, Dec 15, 2017 at 10:36:35AM -0600, Jeremy Linton wrote: > > > Hi, > > > > > > On 12/13/2017 12:02 PM, Lorenzo Pieralisi wrote: > > > >[+Morten, Dietmar]

Re: [PATCH 1/2] bdisp: Fix a possible sleep-in-atomic bug in bdisp_hw_reset

2017-12-19 Thread Mauro Carvalho Chehab
Em Tue, 19 Dec 2017 09:01:41 + Fabien DESSENNE escreveu: > On 16/12/17 15:14, Mauro Carvalho Chehab wrote: > > Em Sat, 16 Dec 2017 19:53:55 +0800 > > Jia-Ju Bai escreveu: > > > >> Hi, > >> > >> On 2017/12/15 22:51, Fabien DESSENNE wrote: > >>> Hi > >>> > >>> On 12/12/17 14:47, Jia-Ju Bai

[PATCH v2] USB: serial: option: adding support for YUGA CLM920-NC5

2017-12-19 Thread 林上智
This patch adds support for YUGA CLM920-NC5 PID 0x9625 USB modem to option driver. Interface layout: 0: QCDM/DIAG 1: ADB 2: MODEM 3: AT 4: RMNET Signed-off-by: Taiyi Wu Signed-off-by: SZ Lin (林上智) --- Changes from v1: - Fix typo - Remove QCDM/DIAG interface in blacklist drivers/usb/serial/opt

Re: [PATCH] wireless: Always rewrite generated files from scratch

2017-12-19 Thread Johannes Berg
On Thu, 2017-12-14 at 14:33 +0100, Thierry Reding wrote: > From: Thierry Reding > > Currently the certs C code generation appends to the generated files, > which is most likely a leftover from commit 715a12334764 ("wireless: > don't write C files on failures"). This causes duplicate code in the >

[PATCH 0/2] ti-pipe3: PCIe x2 lane mode configuration in dra72

2017-12-19 Thread Kishon Vijay Abraham I
DRA72 uses the same pipe3 PHY for the 2nd lane of PCIE and USB3 PHY. By default it is configured to be used as USB3 PHY and some special configuration has to be done inorder to use it for the 2nd lane of PCIE. This series adds a new dt property and the configuration required to enable 2nd lane of

[PATCH 1/2] dt-bindings: phy: ti-pipe3: Add dt binding to use USB3 PHY for PCIe

2017-12-19 Thread Kishon Vijay Abraham I
DRA72 uses USB3 PHY for the 2nd lane of PCIE. Add dt bindings property to indicate if the USB3 PHY should be used for 2nd lane of PCIe. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/phy/ti-phy.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/d

[PATCH 2/2] phy: ti-pipe3: configure usb3 phy to be used as pcie phy

2017-12-19 Thread Kishon Vijay Abraham I
DRA72 uses USB3 PHY for the 2nd lane of PCIE. The configuration required to make USB3 PHY used for the 2nd lane of PCIe is done here. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/ti/phy-ti-pipe3.c | 47 +-- 1 file changed, 41 insertions(+), 6 dele

shmctl(SHM_STAT) vs. /proc/sysvipc/shm permissions discrepancies

2017-12-19 Thread Michal Hocko
Hi, we have been contacted by our partner about the following permission discrepancy 1. Create a shared memory segment with permissions 600 with user A using shmget(key, 1024, 0600 | IPC_CREAT) 2. ipcs -m should return an output as follows: -- Shared Memory Segments keyshmi

Re: [PATCH] misc: mic: remove unused label

2017-12-19 Thread Greg Kroah-Hartman
On Fri, Dec 15, 2017 at 01:47:27PM +0100, Arnd Bergmann wrote: > A cleanup left an unused label behind: > > drivers/misc/mic/vop/vop_vringh.c: In function 'vop_ioctl': > drivers/misc/mic/vop/vop_vringh.c:1001:1: error: label 'done' defined but not > used [-Werror=unused-label] > > This cleans it

Re: [ANNOUNCE] autofs 5.1.4 release

2017-12-19 Thread Patrick Goetz
On 12/19/2017 02:29 AM, Ian Kent wrote: A new amd mount type has been added. The amd mount type "program" has been added which allows a user provided program to be given in a map entry that will be used for performing the mount and optionally another program to be used at umount. What's a use

Re: [PATCH] powerpc/perf: Dereference bhrb entries safely

2017-12-19 Thread Balbir Singh
On Tue, Dec 19, 2017 at 6:23 PM, Ravi Bangoria wrote: > Hi Balbir, > > Sorry was away for few days. > No problem at all > On 12/14/2017 05:54 PM, Balbir Singh wrote: >> On Tue, Dec 12, 2017 at 11:29 PM, Ravi Bangoria >> wrote: >>> It may very well happen that branch instructions recorded by >>>

[PATCH v2] PCI: designware-ep: Fix ->get_msi() to check MSI_EN bit

2017-12-19 Thread Kishon Vijay Abraham I
->get_msi() now checks MSI_EN bit in the MSI CAPABILITY register to find whether the host supports MSI instead of using the MSI ADDRESS in the MSI CAPABILITY register. This fixes the issue with the following sequence 'modprobe pci_endpoint_test' enables MSI 'rmmod pci_endpoint_test' disables M

Re: [PATCH v4 25/36] nds32: Miscellaneous header files

2017-12-19 Thread Arnd Bergmann
On Tue, Dec 19, 2017 at 6:34 AM, Greentime Hu wrote: > Hi, Arnd: > > 2017-12-18 19:13 GMT+08:00 Arnd Bergmann : >> On Mon, Dec 18, 2017 at 7:46 AM, Greentime Hu wrote: >>> From: Greentime Hu >>> >>> This patch introduces some miscellaneous header files. >> >>> +static inline void __delay(unsigne

Re: [PATCH] kthread: finer-grained lockdep/cross-release completion

2017-12-19 Thread Daniel Vetter
On Mon, Dec 18, 2017 at 09:42:13AM -0800, Linus Torvalds wrote: > On Sun, Dec 17, 2017 at 11:11 PM, Daniel Vetter wrote: > > > > This didn't seem to have made it into -rc4. Anything needed to get it > > going? > > Do you actually see the problem in -rc4? > > Because we ended up removing the cros

[PATCH 2/2] drivers: base: add coredump driver ops

2017-12-19 Thread Arend van Spriel
From: Arend van Spriel This adds the coredump driver operation. When the driver defines it a coredump file is added in the sysfs folder of the device upon driver binding. The file is removed when the driver is unbound. User-space can trigger a coredump for this device by echo'ing to the coredump

[PATCH 1/2] sysfs: add attribute specification for /sysfs/devices/.../coredump

2017-12-19 Thread Arend van Spriel
From: Arend van Spriel This patch adds the specification for /sysfs/devices/.../coredump which allows user-space to trigger a device coredump obtaining binary data from the device for (fault) analysis. It relies on CONFIG_DEV_COREDUMP being enabled. Signed-off-by: Arend van Spriel --- Document

[PATCH 0/2] sysfs: allow user-space request for devcoredump

2017-12-19 Thread Arend van Spriel
From: Arend van Spriel Since commit 833c95456a70 ("device coredump: add new device coredump class") device drivers have a unified way to provide binary data obtained from a failing_device to user-space. However, there may be use-cases in which the driver has no reason to obtain the data, but user

Re: [Xen-devel] [PATCH v2] xen/balloon: Mark unallocated host memory as UNUSABLE

2017-12-19 Thread Juergen Gross
On 19/12/17 10:27, Jan Beulich wrote: On 19.12.17 at 10:21, wrote: >> On 19/12/17 09:23, Jan Beulich wrote: >> On 18.12.17 at 23:22, wrote: +void __init arch_xen_balloon_init(struct resource *hostmem_resource) +{ + struct xen_memory_map memmap; + int rc; + uns

Re: [PATCH v2] USB: serial: option: adding support for YUGA CLM920-NC5

2017-12-19 Thread Johan Hovold
On Tue, Dec 19, 2017 at 05:40:32PM +0800, SZ Lin (林上智) wrote: > This patch adds support for YUGA CLM920-NC5 PID 0x9625 USB modem to option > driver. > > Interface layout: > 0: QCDM/DIAG > 1: ADB > 2: MODEM > 3: AT > 4: RMNET > > Signed-off-by: Taiyi Wu > Signed-off-by: SZ Lin (林上智) > --- > Chan

[PATCH v3 1/3] usb: host: Implement workaround for Erratum A-007463

2017-12-19 Thread yinbo.zhu
From: yinbo.zhu When a transaction error (defined in Section 4.10.2.3, "USB Transaction Error" of the xHCI Specification) occurs on the USB, the host controller reports this through a transfer event with the completion code "USB Transaction Error". When this happens, the endpoint is placed in the

Re: [PATCH v3 3/3] MAINTAINERS: Add entry for SIOX

2017-12-19 Thread Uwe Kleine-König
On Tue, Dec 19, 2017 at 01:05:40AM -0800, Joe Perches wrote: > On Tue, 2017-12-19 at 10:00 +0100, Uwe Kleine-König wrote: > > Maintenance is split between Gavin who works for Eckelmann and so has > > the functional authority, knows the background and history of this bus > > system and me who design

[PATCH v3 3/3] usb: host: Implement workaround for Erratum A-009668

2017-12-19 Thread yinbo.zhu
From: yinbo.zhu This issue is observed in USB 2.0 mode when the USB 3.0 host controller is connected to a FS/LS device via a hub. The host controller issues start-split (SSPLIT) and (CSPLIT) tokens to accomplish a split-transaction. A split-transaction consists of a SSPLIT token, token/data consi

[PATCH v3 2/3] usb: host: Implement workaround for Erratum A-009611

2017-12-19 Thread yinbo.zhu
From: yinbo.zhu This is a occasional problem where the software issues an End Transfer command while a USB transfer is in progress, resulting in the TxFIFO being flushed when the lower layer is waiting for data, causing the super speed (ss) transmit to get blocked. If the End Transfer command is

[PATCH] bpf: fix BPF_KPROBE_OVERRIDE dependencies

2017-12-19 Thread Arnd Bergmann
CONFIG_BPF_KPROBE_OVERRIDE causes a link failure when CONFIG_KPROBE_EVENTS is disabled: kernel/trace/bpf_trace.o: In function `bpf_override_return': (.text+0x172): undefined reference to `bpf_kprobe_override' This adds it to the list of dependencies. Fixes: 9802d86585db ("bpf: add a bpf_override

[PATCH] CIFS: SMBD: fix configurations with INFINIBAND=m

2017-12-19 Thread Arnd Bergmann
A built-in SMB file system cannot link against a modular infiniband core module: fs/cifs/smbdirect.o: In function `smbd_destroy_rdma_work': smbdirect.c:(.text+0x28e3): undefined reference to `ib_drain_qp' smbdirect.c:(.text+0x2915): undefined reference to `rdma_destroy_qp' smbdirect.c:(.text+0x2d0

Re: [PATCH v2] USB: serial: option: adding support for YUGA CLM920-NC5

2017-12-19 Thread Johan Hovold
On Tue, Dec 19, 2017 at 11:11:43AM +0100, Johan Hovold wrote: > On Tue, Dec 19, 2017 at 05:40:32PM +0800, SZ Lin (林上智) wrote: > > This patch adds support for YUGA CLM920-NC5 PID 0x9625 USB modem to option > > driver. > > > > Interface layout: > > 0: QCDM/DIAG > > 1: ADB > > 2: MODEM > > 3: AT > >

intel_pmu_init() extra_attr memory leak

2017-12-19 Thread Tommi Rantala
Hi, I'm seeing this kmemleak report in v4.15-rc4: # cat /sys/kernel/debug/kmemleak unreferenced object 0x8801f3d5d720 (size 64): comm "swapper/0", pid 1, jiffies 4294667312 (age 2687.423s) hex dump (first 32 bytes): 60 d1 41 ad ff ff ff ff 20 d1 41 ad ff ff ff ff `.A. .A.

[PATCH linux-next] mqueue: fix IPC namespace use-after-free

2017-12-19 Thread Giuseppe Scrivano
mqueue_evict_inode() doesn't access the ipc namespace if it was already freed. It can happen if in a new IPC namespace the inode was created without a prior mq_open() which creates the vfsmount used to access the superblock from mq_clear_sbinfo(). Keep a direct pointer to the superblock used by t

Re: [PATCH 1/9] ASoC: Intel: Fix Kconfig with top-level selector

2017-12-19 Thread Takashi Iwai
On Fri, 15 Dec 2017 13:30:28 +0100, Pierre-Louis Bossart wrote: > > On 12/15/17 5:07 AM, Takashi Iwai wrote: > > On Fri, 15 Dec 2017 01:44:43 +0100, > > Pierre-Louis Bossart wrote: > >> > >> +config SND_SOC_ACPI_INTEL_MATCH > >> + tristate > >> + depends on X86 && ACPI > >> + select SND_SOC_ACP

Re: [PATCH v5 01/18] PCI: dwc: Use the DMA-API to get the MSI address

2017-12-19 Thread Lorenzo Pieralisi
On Mon, Nov 20, 2017 at 02:32:04PM +0100, Niklas Cassel wrote: > Use the DMA-API to get the MSI address. This address will be written to > our PCI config space and to the register which determines which AXI > address the DWC IP will spoof for incoming MSI irqs. > > Since it is a PCIe endpoint devi

Re: error: redefinition of ‘shipped_regdb_certs’

2017-12-19 Thread Michal Hocko
On Tue 19-12-17 09:36:54, Johannes Berg wrote: > Hi Michal, > > > this is the first time I am seeing this with the current Linus > > tree. 4.15-rc3 compiled fine. I have checked that you have updated the > > makefile which generates the file by 715a12334764 ("wireless: don't > > write C files on f

Re: [PATCH] cpufreq: powernv: Add support of frequency domain

2017-12-19 Thread Balbir Singh
On Tue, Dec 19, 2017 at 8:20 PM, Gautham R Shenoy wrote: > Hi Viresh, > On Mon, Dec 18, 2017 at 01:59:35PM +0530, Viresh Kumar wrote: >> On 18-12-17, 10:41, Abhishek wrote: >> > We need to do it in this way as the current implementation takes the max of >> > the PMSR of the cores. Thus, when the f

RE: [PATCH v2] USB: serial: option: adding support for YUGA CLM920-NC5

2017-12-19 Thread 林上智
> -Original Message- > From: Johan Hovold [mailto:jhov...@gmail.com] On Behalf Of Johan Hovold > Sent: Tuesday, December 19, 2017 6:12 PM > To: SZ Lin (林上智) > Cc: bj...@mork.no; Taiyi TY Wu (吳泰毅); Johan Hovold; Greg Kroah-Hartman; > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org >

Re: [PATCH] powerpc/perf: Dereference bhrb entries safely

2017-12-19 Thread Michael Ellerman
Ravi Bangoria writes: > Hi Balbir, > > Sorry was away for few days. > > On 12/14/2017 05:54 PM, Balbir Singh wrote: >> On Tue, Dec 12, 2017 at 11:29 PM, Ravi Bangoria >> wrote: >>> It may very well happen that branch instructions recorded by >>> bhrb entries already get unmapped before they get

Re: [PATCH] spi: atmel: fixed spin_lock usage inside atmel_spi_remove

2017-12-19 Thread Nicolas Ferre
On 15/12/2017 at 16:40, Radu Pirea wrote: > The only part of atmel_spi_remove which needs to be atomic is hardware > reset. > > atmel_spi_stop_dma calls dma_terminate_all and this needs interrupts > enabled. > atmel_spi_release_dma calls dma_release_channel and dma_release_channel > locks a mutex

Re: [PATCH v2] USB: serial: option: adding support for YUGA CLM920-NC5

2017-12-19 Thread Johan Hovold
On Tue, Dec 19, 2017 at 11:14:37AM +0100, Johan Hovold wrote: > On Tue, Dec 19, 2017 at 11:11:43AM +0100, Johan Hovold wrote: > > On Tue, Dec 19, 2017 at 05:40:32PM +0800, SZ Lin (林上智) wrote: > > > This patch adds support for YUGA CLM920-NC5 PID 0x9625 USB modem to option > > > driver. > > > > > >

Re: [PATCH v2] spi: atmel: Implements transfers with bounce buffer

2017-12-19 Thread Nicolas Ferre
On 12/12/2017 at 16:37, Radu Pirea wrote: > This patch enables DMA transfers for Atmel SAM9 SoCs and implements a bounce > buffer for transfers which have vmalloc allocated buffers. Those buffers are > not cache coherent even if they have been transformed into sg lists. UBIFS > is affected by this

Re: [PATCH v2] IPI performance benchmark

2017-12-19 Thread Yury Norov
On Tue, Dec 19, 2017 at 10:26:02AM +0100, Philippe Ombredanne wrote: > Dear Yury, > > On Tue, Dec 19, 2017 at 9:50 AM, Yury Norov wrote: > > This benchmark sends many IPIs in different modes and measures > > time for IPI delivery (first column), and total time, ie including > > time to acknowledg

Re: [PATCH V4 02/26] powerpc/PCI: deprecate pci_get_bus_and_slot()

2017-12-19 Thread Michael Ellerman
Sinan Kaya writes: > pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as > where a PCI device is present. This restricts the device drivers to be > reused for other domain numbers. > > Getting ready to remove pci_get_bus_and_slot() function in favor of > pci_get_domain_bus_and_

Re: [PATCH] hw: Fix permissions for OCRDMA_RESET_STATS

2017-12-19 Thread Selvin Xavier
On Wed, Aug 16, 2017 at 12:01 AM, Leon Romanovsky wrote: > On Tue, Aug 08, 2017 at 06:56:37PM +0300, Anton Vasilyev wrote: >> Debugfs file reset_stats is created with S_IRUSR permissions, >> but ocrdma_dbgfs_ops_read() doesn't support OCRDMA_RESET_STATS, >> whereas ocrdma_dbgfs_ops_write() support

Re: [PATCH] CIFS: SMBD: fix configurations with INFINIBAND=m

2017-12-19 Thread Stefan Metzmacher
Hi Arnd, > diff --git a/fs/cifs/Kconfig b/fs/cifs/Kconfig > index 500fd69fb58b..3bfc55c08bef 100644 > --- a/fs/cifs/Kconfig > +++ b/fs/cifs/Kconfig > @@ -199,6 +199,7 @@ config CIFS_SMB311 > config CIFS_SMB_DIRECT > bool "SMB Direct support (Experimental)" > depends on CIFS && INFINIB

Re: [PATCH v6 00/14] soundwire: Add a new SoundWire subsystem

2017-12-19 Thread Greg Kroah-Hartman
On Thu, Dec 14, 2017 at 03:09:14PM +, Mark Brown wrote: > On Thu, Dec 14, 2017 at 01:49:49PM +0100, Greg Kroah-Hartman wrote: > > > Ok, but that feels a bit rushed, as I'm guessing those sysfs files are > > essencial for the use of the hardware. To not include them feels odd to > > me :) > >

[PATCH v4 2/3] usb: host: Implement workaround for Erratum A-009611

2017-12-19 Thread yinbo.zhu
From: yinbo.zhu This is a occasional problem where the software issues an End Transfer command while a USB transfer is in progress, resulting in the TxFIFO being flushed when the lower layer is waiting for data, causing the super speed (ss) transmit to get blocked. If the End Transfer command is

[PATCH v4 1/3] usb: host: Implement workaround for Erratum A-007463

2017-12-19 Thread yinbo.zhu
From: yinbo.zhu When a transaction error (defined in Section 4.10.2.3, "USB Transaction Error" of the xHCI Specification) occurs on the USB, the host controller reports this through a transfer event with the completion code "USB Transaction Error". When this happens, the endpoint is placed in the

Re: [linux-sunxi] [PATCH v3 1/3] media: V3s: Add support for Allwinner CSI.

2017-12-19 Thread Chen-Yu Tsai
On Mon, Nov 13, 2017 at 3:30 PM, Yong Deng wrote: > Allwinner V3s SoC have two CSI module. CSI0 is used for MIPI interface > and CSI1 is used for parallel interface. This is not documented in > datasheet but by testing and guess. > > This patch implement a v4l2 framework driver for it. > > Current

[PATCH v4 3/3] usb: host: Implement workaround for Erratum A-009668

2017-12-19 Thread yinbo.zhu
From: yinbo.zhu This issue is observed in USB 2.0 mode when the USB 3.0 host controller is connected to a FS/LS device via a hub. The host controller issues start-split (SSPLIT) and (CSPLIT) tokens to accomplish a split-transaction. A split-transaction consists of a SSPLIT token, token/data consi

Re: nouveau. swiotlb: coherent allocation failed for device 0000:01:00.0 size=2097152

2017-12-19 Thread Michel Dänzer
On 2017-12-18 08:01 PM, Tobias Klausmann wrote: > On 12/18/17 7:06 PM, Mike Galbraith wrote: >> Greetings, >> >> Kernel bound workloads seem to trigger the below for whatever reason. >>   I only see this when beating up NFS.  There was a kworker wakeup >> latency issue, but with a bandaid applied t

Re: [lustre-devel] [PATCH 02/16] staging: lustre: replace simple cases of l_wait_event() with wait_event().

2017-12-19 Thread Dilger, Andreas
On Dec 18, 2017, at 11:03, Patrick Farrell wrote: > > The wait calls in ll_statahead_thread are done in a service thread, and > should probably *not* contribute to load. > > The one in osc_extent_wait is perhaps tough - It is called both from user > threads & daemon threads depending on the situ

Re: nouveau. swiotlb: coherent allocation failed for device 0000:01:00.0 size=2097152

2017-12-19 Thread Michel Dänzer
On 2017-12-19 11:37 AM, Michel Dänzer wrote: > On 2017-12-18 08:01 PM, Tobias Klausmann wrote: >> On 12/18/17 7:06 PM, Mike Galbraith wrote: >>> Greetings, >>> >>> Kernel bound workloads seem to trigger the below for whatever reason. >>>   I only see this when beating up NFS.  There was a kworker w

Re: [GIT PULL v2] phy: for 4.15 -rc

2017-12-19 Thread Greg KH
On Fri, Dec 15, 2017 at 04:22:50PM +0530, Kishon Vijay Abraham I wrote: > Hi Greg, > > Please find the updated pull request for 4.15 -rc cycle below. > > It removes calibrate ops patch done in exynos5-usbdrd to enumerate > superspeed devices on Odroid XU3. Rest of it all are same, the details > o

[PATCH] ARM: imx: remove unused imx3 pm definitions

2017-12-19 Thread Martin Kaiser
Remove the defintion of mx3_cpu_lp_set(), this function is not implemented anywhere. Remove then mx3_cpu_pwr_mode enum as well, it was used only as parameter of mx3_cpu_lp_set(). Signed-off-by: Martin Kaiser --- arch/arm/mach-imx/common.h | 9 - 1 file changed, 9 deletions(-) diff --git

Re: [PATCH] KVM/Eventfd: Avoid crash when assign and deassign same eventfd in parallel.

2017-12-19 Thread Paolo Bonzini
On 19/12/2017 07:35, Lan Tianyu wrote: > On 2017年12月18日 16:50, Paolo Bonzini wrote: >> On 18/12/2017 09:30, David Hildenbrand wrote: >>> The ugly thing in kvm_irqfd_assign() is that we access irqfd without >>> holding a lock. I think that should rather be fixed than working around >>> that issue. (

Re: [ANNOUNCE] autofs 5.1.4 release

2017-12-19 Thread Ian Kent
On 19/12/17 17:45, Patrick Goetz wrote: > On 12/19/2017 02:29 AM, Ian Kent wrote: >> A new amd mount type has been added. The amd mount type "program" >> has been added which allows a user provided program to be given >> in a map entry that will be used for performing the mount and >> optionally an

Re: [PATCH v5 1/2] x86/mm: add a function to check if a pfn is UC/UC-

2017-12-19 Thread Paolo Bonzini
On 19/12/2017 03:40, Haozhong Zhang wrote: >> As discussed in the reply to v2, this should include WC too. The >> function name could become something like pat_pfn_downgraded_by_uc_mtrr. > > Or shall we just expose lookup_memtype(), and keep all other logic in > KVM? The function name still looks

[PATCH] zsmalloc: add fs.h include

2017-12-19 Thread Sergey Senozhatsky
`struct file_system_type' and alloc_anon_inode() function are defined in fs.h, include it directly. Signed-off-by: Sergey Senozhatsky --- mm/zsmalloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 685049a9048d..683c0651098c 100644 --- a/mm/zsmalloc.c ++

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