Re: [PATCH net-next V2 1/3] tap: use build_skb() for small packet

2017-08-15 Thread Jason Wang
On 2017年08月16日 11:55, Michael S. Tsirkin wrote: On Tue, Aug 15, 2017 at 08:45:20PM -0700, Eric Dumazet wrote: On Fri, 2017-08-11 at 19:41 +0800, Jason Wang wrote: We use tun_alloc_skb() which calls sock_alloc_send_pskb() to allocate skb in the past. This socket based method is not suitable fo

Re: [PATCH net-next V2 1/3] tap: use build_skb() for small packet

2017-08-15 Thread Jason Wang
(ftrace buffer empty) Modules linked in: CPU: 0 PID: 3982 Comm: syz-executor0 Not tainted 4.13.0-rc5-next-20170815+ #3 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 task: 880069f265c0 task.stack: 880067688000 RIP: 0010:__read_once_size include/linux/compiler.h:2

Re: [PATCH net-next V2 1/3] tap: use build_skb() for small packet

2017-08-15 Thread Michael S. Tsirkin
skbs. > > > Well well well. > > You do realize that tun_build_skb() is not thread safe ? The issue is alloc frag, isn't it? I guess for now we can limit this to XDP mode only, and just allocate full pages in that mode. > general protection fault: [#1] SMP KASAN >

Re: [PATCH net-next V2 1/3] tap: use build_skb() for small packet

2017-08-15 Thread Eric Dumazet
> > What's more important, this makes it possible to implement XDP for tap > before creating skbs. Well well well. You do realize that tun_build_skb() is not thread safe ? general protection fault: [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked

Re: [PATCH net-next V2 3/3] tap: XDP support

2017-08-15 Thread Michael S. Tsirkin
On Tue, Aug 15, 2017 at 01:02:05PM +0800, Jason Wang wrote: > > > On 2017年08月15日 00:01, Michael S. Tsirkin wrote: > > On Sat, Aug 12, 2017 at 10:48:49AM +0800, Jason Wang wrote: > > > > > > On 2017年08月12日 07:12, Jakub Kicinski wrote: > > > > On Fri, 11 Aug 2017 19:41:18 +0800, Jason Wang wrote:

[PATCH] vmbus: don't acquire the mutex in vmbus_hvsock_device_unregister()

2017-08-15 Thread Dexuan Cui
Due to commit 54a66265d675 ("Drivers: hv: vmbus: Fix rescind handling"), we need this patch to resolve the below deadlock: after we get the mutex in vmbus_hvsock_device_unregister() and call vmbus_device_unregister() -> device_unregister() -> ... -> device_release() -> vmbus_device_release(), we'

Re: [PATCH v4 06/20] mtd: nand: qcom: allocate BAM transaction

2017-08-15 Thread Archit Taneja
On 08/11/2017 05:09 PM, Abhishek Sahu wrote: - The BAM transaction is the core data structure which will be used for all the data transfers in QPIC NAND. Since the core framework in nand_base.c is serializing all the NAND requests so allocating BAM transaction before every transfer wil

Re: [PATCH v4] mtd: spi-nor: add support for GD25Q256

2017-08-15 Thread Andy Yan
Hi Cyrille: On 2017年08月16日 00:04, Cyrille Pitchen wrote: Hi Andy, Le 25/07/2017 à 12:12, Andy Yan a écrit : Add support for GD25Q256, a 32MiB SPI Nor flash from Gigadevice. Signed-off-by: Andy Yan --- Changes in v4: - add SPI_NOR_HAS_LOCK and SPI_NOR_HAS_TB Between v3 and v4, I see that

[PATCH] vmbus: suppress uevents for hv_sock devices

2017-08-15 Thread Dexuan Cui
hv_sock driver is automatically loaded when an application creates an AF_VSOCK socket, so we don't really need to trigger uevents to the user space udevd. And hv_sock devices can appear and disappear frequency, e.g. 100 per second, so triggering the udevents can cause a high cpu utilization of ud

Re: early x86 unseeded randomness

2017-08-15 Thread Theodore Ts'o
On Tue, Aug 15, 2017 at 07:37:05PM +0200, Thomas Gleixner wrote: > That exploits the fact that the CPU and caches run at a different non > synchronized clock than the memory controller and therefore the execution > time for both the wbinvd() and the memchr_inv() measured in TSC cycles is > non cons

Re: [PATCH v4 05/20] mtd: nand: qcom: DMA mapping support for register read buffer

2017-08-15 Thread Archit Taneja
On 08/11/2017 05:09 PM, Abhishek Sahu wrote: The EBI2 NAND controller directly remaps register read buffer with dma_map_sg and DMA address of this buffer will be passed to DMA API’s. While, on QPIC NAND controller, which uses BAM DMA, we read the controller registers by preparing a BAM command

Re: [PATCH 2/2] staging: typec: tcpm: explicit_contract is always established

2017-08-15 Thread Guenter Roeck
On 08/15/2017 04:23 PM, Badhri Jagan Sridharan wrote: While in SNK_READY state, the explicit_contract seems to be set to true irrespective of whether an explicit contract was established for the current connection. TCPM also seems to report the pwr_opmode as TYPEC_PWR_MODE_PD always once the port

Re: [PATCH 1/2] staging: typec: tcpm: Report right typec_pwr_opmode

2017-08-15 Thread Guenter Roeck
On 08/15/2017 04:22 PM, Badhri Jagan Sridharan wrote: At present, TCPM does not take into account the actual resistor value presented in the CC line and therefore reports TYPEC_PWR_MODE_USB irrespective of the power_op_mode it is in. This patch makes TCPM consider the actual value of Rp. Signed-

Re: [PATCH] CPUFREQ: Loongson2: constify platform_device_id

2017-08-15 Thread Viresh Kumar
On 13-08-17, 15:10, Arvind Yadav wrote: > platform_device_id are not supposed to change at runtime. All functions > working with platform_device_id provided by > work with const platform_device_id. So mark the non-const structs as > const. > > Signed-off-by: Arvind Yadav > --- > drivers/cpufreq

Re: [PATCH 0/2] Separate NUMA statistics from zone statistics

2017-08-15 Thread kemi
On 2017年08月15日 18:36, Jesper Dangaard Brouer wrote: > On Tue, 15 Aug 2017 16:45:34 +0800 > Kemi Wang wrote: > >> Each page allocation updates a set of per-zone statistics with a call to >> zone_statistics(). As discussed in 2017 MM submit, these are a substantial >

Re: [PATCH] devicetree: Enable generation of __symbols__ in all dtb files

2017-08-15 Thread Frank Rowand
On 08/15/17 17:42, Tom Rini wrote: > On Tue, Aug 15, 2017 at 04:50:40PM -0700, Frank Rowand wrote: >> On 08/15/17 14:15, Tom Rini wrote: >>> With support for stacked overlays being part of libfdt it is now >>> possible and likely that overlays which require __symbols__ will be >>> applied to the dt

Re: early x86 unseeded randomness

2017-08-15 Thread Theodore Ts'o
On Tue, Aug 15, 2017 at 04:42:47PM +0200, Thomas Gleixner wrote: > Care to read the paper? > > We tried that 6 years ago on a wide range of machines from server to stupid > first generation in order ATOM chips. All of them exposed more or less the > same behaviour and passed RND validation tests.

[GIT PULL] (xen) stable/for-jens-4.13 for rc5

2017-08-15 Thread Konrad Rzeszutek Wilk
Hey Jens, Please git pull the following branch: git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git stable/for-jens-4.13 which has two fixes, both of them spotted by Amazon. 1) Fix in Xen-blkfront caused by the re-write in 4.8 time-frame. 2) Fix in the xen_biovec_phys_mergeable whi

[PATCH v3] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-15 Thread Hui Zhu
After commit [1] zs_page_migrate can handle the ZS_EMPTY zspage. But I got some false in zs_page_isolate: if (get_zspage_inuse(zspage) == 0) { spin_unlock(&class->lock); return false; } The page of this zspage was migrated in before. The reason is c

Re: [PATCH] arm64: dts: rk3399: init vop clock rates

2017-08-15 Thread Mark yao
On 2017年08月16日 10:51, Kever Yang wrote: We need to init vop aclk and hclk incase the U-Boot does not do the initialize. Signed-off-by: Kever Yang --- Looks good for me: Reviewed-by: Mark Yao arch/arm64/boot/dts/rockchip/rk3399.dtsi | 4 1 file changed, 4 insertions(+) diff --g

Re: [PATCH] KVM/x86: Increase max vcpu number to 352

2017-08-15 Thread Lan Tianyu
On 2017年08月15日 22:10, Konrad Rzeszutek Wilk wrote: > On Tue, Aug 15, 2017 at 11:00:04AM +0800, Lan Tianyu wrote: >> On 2017年08月12日 03:35, Konrad Rzeszutek Wilk wrote: >>> On Fri, Aug 11, 2017 at 03:00:20PM +0200, Radim Krčmář wrote: 2017-08-11 10:11+0200, David Hildenbrand: > On 11.08.2017

Re: [PATCH v3 2/2] i2c: mediatek: Add i2c compatible for MediaTek MT7622

2017-08-15 Thread Sean Wang
On Tue, 2017-08-15 at 21:08 +0800, Jun Gao wrote: > From: Jun Gao > > Add i2c compatible for MT7622. Compare to MT8173 i2c controller, > MT7622 limits message numbers to 255, and does not support 4GB > DMA mode. > > Signed-off-by: Jun Gao you seemed missing a Reviewed-by tag from Joe.C http:/

RE: 答复: [iscsi] Deadlock occurred when network is in error

2017-08-15 Thread Tangchen (UVP)
> On Tue, 2017-08-15 at 02:16 +, Tangchen (UVP) wrote: > > But I'm not using mq, and I run into these two problems in a non-mq system. > > The patch you pointed out is fix for mq, so I don't think it can resolve > > this > problem. > > > > IIUC, mq is for SSD ? I'm not using ssd, so mq is dis

Re: [GIT] Networking

2017-08-15 Thread David Miller
From: Linus Torvalds Date: Tue, 15 Aug 2017 19:21:16 -0700 > On Tue, Aug 15, 2017 at 5:52 PM, David Miller wrote: >> >> dingtianhong (4): >> PCI: Disable PCIe Relaxed Ordering if unsupported >> PCI: Disable Relaxed Ordering for some Intel processors >> PCI: Disable Relaxed Orde

Re: [PATCH 2/2] mm: Update NUMA counter threshold size

2017-08-15 Thread kemi
On 2017年08月16日 00:55, Tim Chen wrote: > On 08/15/2017 02:58 AM, Mel Gorman wrote: >> On Tue, Aug 15, 2017 at 04:45:36PM +0800, Kemi Wang wrote: >> I'm fairly sure this pushes the size of that structure into the next >> cache line which is not welcome. vm_numa_stat_diff is an always incremen

[GIT PULL] ARM: dts: uniphier: UniPhier DT updates for v4.14

2017-08-15 Thread Masahiro Yamada
Hi Arnd, Olof, Here are UniPhier DT (32bit) updates for the v4.14 merge window. Please pull! The following changes since commit 5771a8c08880cdca3bfb4a3fc6d309d6bba20877: Linux v4.13-rc1 (2017-07-15 15:22:10 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/

[GIT PULL] arm64: dts: uniphier: UniPhier DT updates (64bit) for v4.14

2017-08-15 Thread Masahiro Yamada
Hi Arnd, Olof, Here are UniPhier DT (64bit) updates for the v4.14 merge window. Please pull! The following changes since commit 5771a8c08880cdca3bfb4a3fc6d309d6bba20877: Linux v4.13-rc1 (2017-07-15 15:22:10 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/

[PATCH] usb: quirks: add delay init quirk for Corsair Strafe RGB keyboard

2017-08-15 Thread Kai-Heng Feng
Corsair Strafe RGB keyboard has trouble to initialize: [ 1.679455] usb 3-6: new full-speed USB device number 4 using xhci_hcd [ 6.871136] usb 3-6: unable to read config index 0 descriptor/all [ 6.871138] usb 3-6: can't read configurations, error -110 [ 6.991019] usb 3-6: new full-speed USB device

Re: [PATCH 6/6] arm64: dts: uniphier: add Denali NAND controller nodes

2017-08-15 Thread Masahiro Yamada
2017-08-10 1:43 GMT+09:00 Masahiro Yamada : > Add NAND controller node to LD11 and LD20. Neither of them supports > the CS1 line, so pinctrl is set up for a single CS line. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-uniphier. -- Best Regards Masahiro Yamada

Re: [PATCH 5/6] ARM: dts: uniphier: add Denali NAND controller node

2017-08-15 Thread Masahiro Yamada
2017-08-10 1:43 GMT+09:00 Masahiro Yamada : > Add NAND controller node to LD4, Pro4, sLD8, Pro5, and PXs2. > Set up pinctrl to enable 2 chip select lines except Pro4. The CS1 > for Pro4 is multiplexed with other peripherals such as UART2, so > I did not enable it. > > Signed-off-by: Masahiro Yamad

[PATCH] arm64: dts: rk3399: init vop clock rates

2017-08-15 Thread Kever Yang
We need to init vop aclk and hclk incase the U-Boot does not do the initialize. Signed-off-by: Kever Yang --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi ind

Re: [PATCH v2] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-15 Thread Hui Zhu
Hi Minchan, 2017-08-16 10:13 GMT+08:00 Minchan Kim : > Hi Hui, > > On Mon, Aug 14, 2017 at 05:56:30PM +0800, Hui Zhu wrote: >> After commit e2846124f9a2 ("zsmalloc: zs_page_migrate: skip unnecessary > > This patch is not merged yet so the hash is invalid. > That means we may fold this patch to [1]

Re: Do we really need d_weak_revalidate???

2017-08-15 Thread NeilBrown
On Mon, Aug 14 2017, Jeff Layton wrote: > On Mon, 2017-08-14 at 09:36 +1000, NeilBrown wrote: >> On Fri, Aug 11 2017, Jeff Layton wrote: >> >> > On Fri, 2017-08-11 at 05:55 +, Trond Myklebust wrote: >> > > On Fri, 2017-08-11 at 14:31 +1000, NeilBrown wrote: >> > > > Funny story. 4.5 years ag

[PATCH v2] swap: choose swap device according to numa node

2017-08-15 Thread Aaron Lu
On Tue, Aug 15, 2017 at 03:09:47PM -0700, Andrew Morton wrote: > On Tue, 15 Aug 2017 13:49:45 +0800 Aaron Lu wrote: > > > > I'm not sure what to do...any hint? > > Adding a pr_err() perhaps? > > pr_emerg(), probably. Would it make sense to disable all swapon()s > after this? Right! I should ha

Re: [GIT PULL] seccomp updates for next

2017-08-15 Thread James Morris
On Tue, 15 Aug 2017, Kees Cook wrote: > Hi James, > > Please pull these seccomp changes for next. > Pulled to -next, thanks! -- James Morris

[PATCH 3/5] autofs: use AUTOFS_DEV_IOCTL_SIZE

2017-08-15 Thread Ian Kent
From: Tomohiro Kusumi Use a macro which defines misc-dev ioctl parameter size (excluding a path beyond &path[0]) since it's been used to initialize and copy this structure ever since it first appeared in 8d7b48e0 in 2008. (or simply get rid of this if this is just unnecessary abstraction when al

Re: [PATCH 2/2] mm: Update NUMA counter threshold size

2017-08-15 Thread kemi
>> >> -static inline unsigned long zone_numa_state(struct zone *zone, >> +static inline unsigned long zone_numa_state_snapshot(struct zone *zone, >> enum zone_numa_stat_item item) >> { >> long x = atomic_long_read(&zone->vm_numa_stat[item]); >> +int

[PATCH 1/5] autofs: remove unused AUTOFS_IOC_EXPIRE_DIRECT/INDIRECT

2017-08-15 Thread Ian Kent
From: Tomohiro Kusumi These are not used by either kernel or userspace, although AUTOFS_IOC_EXPIRE_DIRECT once seems to have been used by userspace in around 2006-2008, which was technically just an alias of the existing ioctl AUTOFS_IOC_EXPIRE_MULTI. ioctls for autofs are already complicated en

[PATCH 2/5] autofs: non functional header inclusion cleanup

2017-08-15 Thread Ian Kent
From: Tomohiro Kusumi Having header includes before any macro (without any dependency) simply looks normal. No reason to have these macros in between. Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- fs/autofs4/autofs_i.h | 22 +++--- 1 file changed, 11 insertions(

[PATCH 5/5] autofs: use unsigned int/long instead of uint/ulong for ioctl args

2017-08-15 Thread Ian Kent
From: Tomohiro Kusumi The standard types unsigned int and unsigned long should be used for .compat_ioctl. autofs is the only fs using uing/ulong for this, and these are even the only uint/ulong in the entire autofs code. Drop unneeded long cast in return value of autofs_dev_ioctl_compat(). It's

[PATCH 4/5] autofs: drop wrong comment

2017-08-15 Thread Ian Kent
From: Tomohiro Kusumi This comment was correct when it was added in 8d7b48e0 in 2008, but not after 4e44b685 in 2009 which introduced find_autofs_mount(). Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- fs/autofs4/dev-ioctl.c |5 - 1 file changed, 5 deletions(-) diff --git

[PATCH v1 2/4] perf annotate: Display multiple events for stdio mode

2017-08-15 Thread Jin Yao
For example: perf record -e cycles,branches ./div perf annotate main --stdio Percent | Source code & Disassembly of div for branches,cycles (90966 samples) ..

[PATCH v1 4/4] perf annotate: Display multiple events for gtk mode

2017-08-15 Thread Jin Yao
For example: perf record -e cycles,branches ./div perf annotate main --gtk Both the cycles and branches are displayed at the left column in gtk window. Signed-off-by: Jin Yao --- tools/perf/ui/gtk/annotate.c | 35 ++- 1 file changed, 22 insertions(+), 13

[PATCH v1 0/4] perf annotate: Display multiple events on the left side of annotate view

2017-08-15 Thread Jin Yao
perf record -e cycles,branches ... perf annotate main --stdio The result only shows cycles. It should show both cycles and branches on the left side of annotate view. It works with "--group", but need this to work even without groups. The patch series supports to display multiple events on the le

[PATCH v1 3/4] perf annotate: Display multiple events for tui mode

2017-08-15 Thread Jin Yao
For example: perf record -e cycles,branches ./div perf annotate main │for (i = 0; i < 20; i++) { │flag = compute_flag(); 5.77 4.85 │38: xor%eax,%eax 0.01 0.01 │→ callq compute_flag │

[PATCH v1 1/4] perf annotate: create a new hists to manage multiple events samples

2017-08-15 Thread Jin Yao
An issue is found during using perf annotate. perf record -e cycles,branches ... perf annotate main --stdio The result only shows cycles. It should show both cycles and branches on the left side. It works with "--group", but need this to work even without groups. In current design, the hists is

Re: [PATCH 4/6] arm64: dts: uniphier: use cross-arch include instead of symlinks

2017-08-15 Thread Masahiro Yamada
2017-08-10 1:43 GMT+09:00 Masahiro Yamada : > On UniPhier platform, some DTSI files are shared between arm and arm64. > Recently, inclusion of DT material of different architectures has been > supported by the build system level. Use #include , which > will work without relying on the exact same h

Re: [GIT] Networking

2017-08-15 Thread Linus Torvalds
On Tue, Aug 15, 2017 at 5:52 PM, David Miller wrote: > > dingtianhong (4): > PCI: Disable PCIe Relaxed Ordering if unsupported > PCI: Disable Relaxed Ordering for some Intel processors > PCI: Disable Relaxed Ordering Attributes for AMD A1100 > PCI: fix oops when try to find

Re: [PATCH v3 1/2] dt-bindings: i2c: Add MediaTek MT7622 i2c binding

2017-08-15 Thread Sean Wang
On Tue, 2017-08-15 at 21:08 +0800, Jun Gao wrote: > From: Jun Gao > > Add MT7622 i2c binding to binding file and change the compatible > information formats of all SoCs to the same. > > Signed-off-by: Jun Gao > --- > Documentation/devicetree/bindings/i2c/i2c-mtk.txt | 11 ++- > 1 file

Re: [PATCH v6 1/2] sched/deadline: Add support for SD_PREFER_SIBLING on find_later_rq()

2017-08-15 Thread Byungchul Park
On Tue, Aug 15, 2017 at 09:42:01PM -0400, Steven Rostedt wrote: > > > > @@ -1385,6 +1407,17 @@ static int find_later_rq(struct task_struct > > > > *task) > > > > * already under consideration through > > > > later_mask. > > > > */ > > > >

Re: [PATCH 2/2] mm,fork: introduce MADV_WIPEONFORK

2017-08-15 Thread Rik van Riel
On Tue, 2017-08-15 at 15:51 -0700, Andrew Morton wrote: > On Fri, 11 Aug 2017 17:28:29 -0400 r...@redhat.com wrote: > > > A further complication is the proliferation of clone flags, > > programs bypassing glibc's functions to call clone directly, > > and programs calling unshare, causing the glibc

Re: [PATCH v3 5/5] usb: xhci: Handle USB transaction error on address command

2017-08-15 Thread Lu Baolu
Hi, On 08/15/2017 07:30 PM, Mathias Nyman wrote: > On 11.08.2017 05:41, Lu Baolu wrote: >> Xhci driver handles USB transaction errors on transfer events, >> but transaction errors are possible on address device command >> completion events as well. >> >> The xHCI specification (section 4.6.5) says

Re: [PATCH v2] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-15 Thread Minchan Kim
Hi Hui, On Mon, Aug 14, 2017 at 05:56:30PM +0800, Hui Zhu wrote: > After commit e2846124f9a2 ("zsmalloc: zs_page_migrate: skip unnecessary This patch is not merged yet so the hash is invalid. That means we may fold this patch to [1] in current mmotm. [1] zsmalloc-zs_page_migrate-skip-unnecessar

Re: [PATCH 1/2] mm: Change the call sites of numa statistics items

2017-08-15 Thread kemi
On 2017年08月15日 17:49, Mel Gorman wrote: > On Tue, Aug 15, 2017 at 04:45:35PM +0800, Kemi Wang wrote: >> In this patch, NUMA statistics is separated from zone statistics >> framework, all the call sites of NUMA stats are changed to use >> numa-stats-specific functions, it does not have any functi

[PATCH] spi: rockchip: configure CTRLR1 according to size and data frame

2017-08-15 Thread Huibin Hong
CTRLR1 is number of data frames, when rx only. When data frame is 8 bit, CTRLR1 is len-1. When data frame is 16 bit, CTRLR1 is (len/2)-1. Signed-off-by: Huibin Hong --- drivers/spi/spi-rockchip.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-rockchip

Re: [PATCH] scsi: cxlflash: Fix an error handling path in 'cxlflash_disk_attach()'

2017-08-15 Thread Martin K. Petersen
Christophe, > 'rc' is known to be 0 at this point. > If 'create_context()' fails, returns -ENOMEM instead of 0 which means > success. Applied to 4.14/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

[RESEND v9 12/12] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC

2017-08-15 Thread Joseph Chen
Signed-off-by: Joseph Chen Acked-by: Linus Walleij --- .../devicetree/bindings/pinctrl/pinctrl-rk805.txt | 63 ++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-rk805.txt diff --git a/Documentation/devicetree/bindings/

[RESEND v9 11/12] mfd: rk808: Add RK805 power key support

2017-08-15 Thread Joseph Chen
Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/rk808.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index c803d2d..216fbf6 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -94,6 +94,19 @@ sta

[RESEND v9 09/12] Input: Add power key driver for Rockchip RK805 PMIC

2017-08-15 Thread Joseph Chen
This driver provides a input driver for the power key on the Rockchip RK805 PMIC. Signed-off-by: Joseph Chen --- drivers/input/misc/Kconfig| 6 +++ drivers/input/misc/Makefile | 1 + drivers/input/misc/rk805-pwrkey.c | 111 ++ 3 files changed

[RESEND v9 10/12] mfd: rk808: Add RK805 pinctrl support

2017-08-15 Thread Joseph Chen
Signed-off-by: Joseph Chen Acked-by: Linus Walleij Acked-for-MFD-by: Lee Jones --- drivers/mfd/rk808.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index 18329c8..c803d2d 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -97,6 +97,7 @

[RESEND v9 08/12] pinctrl: Add pinctrl driver for the RK805 PMIC

2017-08-15 Thread Joseph Chen
RK805 is one of Rockchip PMICs family, it has 2 output only GPIOs. This driver is also designed for other Rockchip PMICs to expend. Different PMIC maybe have different pin features, for example, RK816 has one pin which can be used for TS or GPIO(input/out). The mainly difference between PMICs pins

[RESEND v9 06/12] rtc: Kconfig: Name RK805 in Kconfig for RTC_DRV_RK808

2017-08-15 Thread Joseph Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the rtc driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen --- drivers/rtc/Kconfig | 4 ++-- 1 file changed, 2 insertio

[RESEND v9 05/12] clk: Kconfig: Name RK805 in Kconfig for COMMON_CLK_RK808

2017-08-15 Thread Joseph Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the clk driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen --- drivers/clk/Kconfig | 4 ++-- 1 file changed, 2 insertio

[RESEND v9 07/12] mfd: dt-bindings: Add RK805 device tree bindings document

2017-08-15 Thread Joseph Chen
From: Elaine Zhang Add device tree bindings documentation for Rockchip's RK805 PMIC. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-by: Rob Herring Acked-for-MFD-by: Lee Jones --- Documentation/devicetree/bindings/mfd/rk808.txt | 22 +- 1 file changed, 21 i

[RESEND v9 04/12] mfd: rk808: Add RK805 support

2017-08-15 Thread Joseph Chen
From: Elaine Zhang The RK805 chip is a Power Management IC (PMIC) for multimedia and handheld devices. It contains the following components: - Regulators - RTC - Clocking Both RK808 and RK805 chips are using a similar register map, so we can reuse the RTC and Clocking functionality.

[RESEND v9 03/12] regulator: rk808: Add regulator driver for RK805

2017-08-15 Thread Joseph Chen
From: Elaine Zhang Add support for the rk805 regulator. The regulator module consists of 4 DCDCs, 3 LDOs. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-by: Mark Brown

[RESEND v9 02/12] mfd: rk808: add rk805 regs addr and ID

2017-08-15 Thread Joseph Chen
From: Elaine Zhang Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- include/linux/mfd/rk808.h | 120 ++ 1 file changed, 120 insertions(+) diff --git a/include/linux/mfd/rk808.h b/include/linux/mfd/rk808.h index

[RESEND v9 00/12] rk808: Add RK805 support

2017-08-15 Thread Joseph Chen
change in RESEND v9: None changes, add Lee Jones and other related email address. change in v9: PATCH V9 1/12: (1) fix spelling issue: s/Chip/chip/ (2) apply tag: Acked-for-MFD-by: Lee Jones PATCH V9 2/12: apply tag: Acked-for-MFD-by: Lee Jones PATCH V9 3/12: None PATCH V9 4/12: a

[RESEND v9 01/12] mfd: rk808: fix up the chip id get failed

2017-08-15 Thread Joseph Chen
From: Elaine Zhang the rk8xx chip id is: ((MSB << 8) | LSB) & 0xfff0 Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/rk808.c | 21 +++-- include/linux/mfd/rk808.h | 1 + 2 files changed, 16 insertions(+), 6 deletions(-

Re: [PATCH 3/6] arm64: dts: uniphier: use #include instead of /include/

2017-08-15 Thread Masahiro Yamada
2017-08-10 1:43 GMT+09:00 Masahiro Yamada : > To include dt-bindings headers. > > Signed-off-by: Masahiro Yamada Applied to linux-uniphier. -- Best Regards Masahiro Yamada

Re: [PATCH -next 2/2] zram: fix typo in comment

2017-08-15 Thread Minchan Kim
On Mon, Aug 14, 2017 at 06:44:07PM +0800, Yisheng Xie wrote: > ZRAM_SAME means page consists the same element not the entirely zero page. > > Signed-off-by: Yisheng Xie Acked-by: Minchan Kim Thanks!

Re: [PATCH -next 1/2] zram: fix compr_data_size stat

2017-08-15 Thread Minchan Kim
On Mon, Aug 14, 2017 at 06:44:06PM +0800, Yisheng Xie wrote: > The compr_data_size is a stat for compressed size of pages stored, which > should be updated when we compresse a page. > > Meanwhile fix a typo in comment: > * read_from_bdev_async() return 1 to avoid call page_endio() in zram_rw_page(

Re: [PATCH v2 0/5] usb: Replace the deprecated extcon API

2017-08-15 Thread Chanwoo Choi
Dear Kishon and Felipe, I applied these patches on extcon-next branch for v4.14-rc1. And I created the immutable branch ('ib-extcon-usb-phy-4.14') and send the pull-request for these patches in order to prevent the merge conflict. Best Regards, Chanwoo Choi The following changes since commit 5

Re: [PATCH 2/6] ARM: dts: uniphier use #incluude instead of /include/

2017-08-15 Thread Masahiro Yamada
2017-08-10 1:43 GMT+09:00 Masahiro Yamada : > To include dt-bindings headers. > > Signed-off-by: Masahiro Yamada With a type (incluude -> include) fixed, applied to linux-uniphier. -- Best Regards Masahiro Yamada

Re: [PATCH 1/6] ARM: dts: uniphier: remove sLD3 SoC support

2017-08-15 Thread Masahiro Yamada
2017-08-10 1:43 GMT+09:00 Masahiro Yamada : > This SoC is too old. It is difficult to maintain any longer. > > Signed-off-by: Masahiro Yamada Applied to linux-uniphier. -- Best Regards Masahiro Yamada

Re: [PATCH v6 1/2] sched/deadline: Add support for SD_PREFER_SIBLING on find_later_rq()

2017-08-15 Thread Steven Rostedt
On Wed, 16 Aug 2017 09:38:11 +0900 Byungchul Park wrote: > On Tue, Aug 15, 2017 at 11:19:40AM -0400, Steven Rostedt wrote: > > > @@ -1385,6 +1407,17 @@ static int find_later_rq(struct task_struct *task) > > >* already under consideration through later_mask. > > >

Re: [PATCH v10 00/12] Fix the on-flight DMA issue on system with amd iommu

2017-08-15 Thread Baoquan He
On 08/15/17 at 06:18pm, Joerg Roedel wrote: > On Wed, Aug 09, 2017 at 04:33:32PM +0800, Baoquan He wrote: > > Baoquan He (12): > > iommu/amd: Detect pre enabled translation > > iommu/amd: add several helper functions > > Revert "iommu/amd: Suppress IO_PAGE_FAULTs in kdump kernel" > > iommu/

Re: [PATCH] cpuset: Allow v2 behavior in v1 cgroup

2017-08-15 Thread Zefan Li
On 2017/8/16 1:27, Waiman Long wrote: > Cpuset v2 has some valuable attributes that are not present in > v1 because of backward compatibility concern. One of that is the > restoration of the original cpu and memory node mask after a hot > removal and addition event sequence. > > This patch adds a

Re: [PATCH] f2fs: let fill_super handle roll-forward errors

2017-08-15 Thread Chao Yu
On 2017/8/16 0:42, Jaegeuk Kim wrote: > On 08/15, Chao Yu wrote: >> On 2017/8/15 11:22, Jaegeuk Kim wrote: >>> On 08/15, Chao Yu wrote: Hi Jaegeuk, On 2017/8/11 8:42, Jaegeuk Kim wrote: > If we set CP_ERROR_FLAG in roll-forward error, f2fs is no longer to > proceed > any

[PATCH v5] ACPI / Sleep: Check low power idle constraints for debug only

2017-08-15 Thread Srinivas Pandruvada
For SoC to achieve its lowest power platform idle state a set of hardware preconditions must be met. These preconditions or constraints can be obtained by issuing a device specific method (_DSM) with function "1". Refer to the document provided in the link below. Here during initialization (from a

Re: [PATCH v4 3/3] fs, xfs: introduce MAP_DIRECT for creating block-map-sealed file ranges

2017-08-15 Thread Dan Williams
On Tue, Aug 15, 2017 at 9:29 AM, Dan Williams wrote: > On Tue, Aug 15, 2017 at 5:42 AM, Jan Kara wrote: >> On Mon 14-08-17 23:12:22, Dan Williams wrote: >>> diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h >>> index ff151814a02d..73fdc0ada9ee 100644 >>> --- a/include/linux/mm_type

Re: [GIT PULL] lkdtm updates for next, part 2

2017-08-15 Thread Greg Kroah-Hartman
On Tue, Aug 15, 2017 at 12:43:16PM -0700, Kees Cook wrote: > Hi Greg, > > Please pull these additional lkdtm changes for next. > > Thanks! > > -Kees > > The following changes since commit c7fea48876773603721f545f8c1a2f894291ef85: > > lkdtm: Provide timing tests for atomic_t vs refcount_t (20

[PATCH 1/2] x86/intel_rdt/mbm: Fix MBM overflow handler during hot cpu

2017-08-15 Thread Vikas Shivappa
When a CPU is dying, we cancel the worker and schedule a new worker on a different CPU on the same domain. But if the timer is already about to expire (say 0.99s) then we essentially double the interval. We modify the hot cpu handling to cancel the delayed work on the dying cpu and run the worker

[PATCH 0/2 V4] Cqm3 support based on resctrl along with MBM

2017-08-15 Thread Vikas Shivappa
Sending some fixes to V3 as per discussions with Thomas. This is on top of the merged patches in tip and contains the following: - a fix to MBM hot cpu handling to avoid doubling of the overflow timer interval. - some changes to the limbo RMID processing patch to make corrections to handle th

[PATCH 2/2] x86/intel_rdt/cqm: Improve limbo list processing

2017-08-15 Thread Vikas Shivappa
During a mkdir, we synchronously check the entire limbo list on each package for free RMIDs by sending IPIs and the worst case would end up taking more than tolerable amount of time in IPIs. For ex: On SKL we could end up reading all 192 RMIDs for llc_occupancy. Modify this to make some improvemen

[GIT] Networking

2017-08-15 Thread David Miller
1) Fix TCP checksum offload handling in iwlwifi driver, from Emmanuel Grumbach. 2) In ksz DSA tagging code, free SKB if skb_put_padto() fails. From Vivien Didelot. 3) Fix two regressions with bonding on wireless, from Andreas Born. 4) Fix build when busypoll is disabled, from Daniel Bork

Re: [PATCH v3] Fix missing PCI ID; Necessary for Lenovo Yoga 720-15 Touchpad.

2017-08-15 Thread Daniel Axtens
Hi all, This has worked its way from a pull request on GitHub through to this patch, which is a great credit to the determination and effort of Florian. I think it's an excellent first contribution. Reviewed-by: Daniel Axtens Regards, Daniel Hoeze writes: > From: Hoeze > > This patch adds

Re: [PATCH 3/3] x86/efi: Use efi_switch_mm() rather than manually twiddling with cr3

2017-08-15 Thread Andy Lutomirski
On Tue, Aug 15, 2017 at 5:23 PM, Sai Praneeth Prakhya wrote: > On Tue, 2017-08-15 at 14:46 -0700, Andy Lutomirski wrote: >> On Tue, Aug 15, 2017 at 12:18 PM, Sai Praneeth Prakhya >> wrote: >> > +/* >> > + * Makes the calling kernel thread switch to/from efi_mm context >> > + * Can be used from Se

Re: [PATCH] devicetree: Enable generation of __symbols__ in all dtb files

2017-08-15 Thread Tom Rini
On Tue, Aug 15, 2017 at 04:50:40PM -0700, Frank Rowand wrote: > On 08/15/17 14:15, Tom Rini wrote: > > With support for stacked overlays being part of libfdt it is now > > possible and likely that overlays which require __symbols__ will be > > applied to the dtb files generated by the kernel. This

[PATCH 0/5] arm64: Realtek RTD1295 reset controllers

2017-08-15 Thread Andreas Färber
Hello, This series adds reset controllers for the Realtek RTD1295 SoC. Since there is still no public source code for RTD1295, the individual resets were derived from reset-names in the vendor DT; the implementation was a guess. More experimental patches at: https://github.com/afaerber/linux/com

[PATCH 2/5] arm64: dts: realtek: Add RTD1295 reset controller nodes

2017-08-15 Thread Andreas Färber
Add nodes for the Realtek RTD1295 reset controllers. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi

[PATCH 4/5] arm64: dts: realtek: Add RTD1295 UART resets

2017-08-15 Thread Andreas Färber
Associate the UART nodes with the corresponding reset controller bits. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi index 9f1d

[PATCH 5/5] arm64: dts: realtek: Adopt RTD1295 reset constants

2017-08-15 Thread Andreas Färber
Replace reset controller indices with constants. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi index e77720

[PATCH 3/5] reset: Add Realtek RTD1295 driver

2017-08-15 Thread Andreas Färber
Add a per-register reset controller driver. This deals with the fact that not all registers are adjoined. Signed-off-by: Andreas Färber --- drivers/reset/Kconfig | 6 +++ drivers/reset/Makefile| 1 + drivers/reset/reset-rtd129x.c | 100

[PATCH 1/5] dt-bindings: reset: Add Realtek RTD1295

2017-08-15 Thread Andreas Färber
Add binding for Realtek RTD1295 reset controller. Signed-off-by: Andreas Färber --- .../bindings/reset/realtek,rtd129x-reset.txt | 18 include/dt-bindings/reset/realtek,rtd1295.h| 112 + 2 files changed, 130 insertions(+) create mode 100644 Documentation

Re: [PATCH v6 1/2] sched/deadline: Add support for SD_PREFER_SIBLING on find_later_rq()

2017-08-15 Thread Byungchul Park
On Tue, Aug 15, 2017 at 11:19:40AM -0400, Steven Rostedt wrote: > > @@ -1385,6 +1407,17 @@ static int find_later_rq(struct task_struct *task) > > * already under consideration through later_mask. > > */ > > if (best_cpu < nr_cpu_ids) { >

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

2017-08-15 Thread Benjamin Herrenschmidt
On Tue, 2017-08-15 at 10:37 -0600, Alex Williamson wrote: > Of course I don't think either of those are worth imposing a > performance penalty where we don't otherwise need one. However, if we > look at a VM scenario where the guest is following the PCI standard for > programming MSI-X interrupts

Re: [PATCH 2/2] Revert "pstore: Honor dmesg_restrict sysctl on dmesg dumps"

2017-08-15 Thread Steven Rostedt
On Tue, 15 Aug 2017 17:29:38 -0700 Kees Cook wrote: > On Tue, Aug 15, 2017 at 5:21 PM, Steven Rostedt wrote: > > On Thu, 10 Aug 2017 13:36:35 -0700 > > Kees Cook wrote: > > > >> This reverts commit 68c4a4f8abc60c9440ede9cd123d48b78325f7a3, with > >> various conflict clean-ups. > >> > >> With

Re: [PATCH 2/2] Revert "pstore: Honor dmesg_restrict sysctl on dmesg dumps"

2017-08-15 Thread Kees Cook
On Tue, Aug 15, 2017 at 5:21 PM, Steven Rostedt wrote: > On Thu, 10 Aug 2017 13:36:35 -0700 > Kees Cook wrote: > >> This reverts commit 68c4a4f8abc60c9440ede9cd123d48b78325f7a3, with >> various conflict clean-ups. >> >> With the default root directory mode set to 0750 now, the capability >> check

Re: [PATCH 0/3] extcon: Clean-up the description and indentation of functions

2017-08-15 Thread Chanwoo Choi
On 2017년 07월 17일 10:30, Chanwoo Choi wrote: > These patches just clean-up code for extcon functions. > > Firstly, patch2 modifies the description for functions/structures > in order to improve the readability and guide the role of > functions more well. > > Second, the extcon header file defines

<    1   2   3   4   5   6   7   8   9   >