[PATCH] perf/annotate/powerpc: Fix branch instruction with multiple operands

2017-05-25 Thread Ravi Bangoria
Perf annotate is dropping the cr* fields from branch instructions. Fix it by adding support to display branch instructions having multiple operands. Objdump of int_sqrt: 20.36 | c04d2694: subf r10,r10,r3 | c04d2698: v bgtcr6,c04d26a0 1.82

Re: [Question] Mlocked count will not be decreased

2017-05-25 Thread Vlastimil Babka
On 05/25/2017 03:16 AM, Xishi Qiu wrote: > On 2017/5/24 21:16, Vlastimil Babka wrote: I agree about yisheng's fix (but v2 didn't address my comments). I don't think we should add the hunk below, as that deviates from the rest of the design. >>> >>> Hi Vlastimil, >>> >>> The

Re: [PATCH 2/2] libsas: Enhance libsas hotplug

2017-05-25 Thread John Garry
Hi, There are some comments, inline. In general, if it works, it looks ok. Other reviews would be greatly appreciated - Hannes, Christoph, Johannes, Dan - please. > Libsas complete a hotplug event notified by LLDD in several works, > for example, if libsas receive a PHYE_LOSS_OF_SIGNAL, we

Re: [RFC PATCH tip/master] kprobes: Use synchronize_rcu_tasks() for optprobe wit CONFIG_PREEMPT

2017-05-25 Thread Ingo Molnar
* Masami Hiramatsu wrote: > --- a/kernel/kprobes.c > +++ b/kernel/kprobes.c > @@ -377,6 +377,23 @@ static inline void copy_kprobe(struct kprobe *ap, struct > kprobe *p) > static bool kprobes_allow_optimization; > > /* > + * Synchronizing wait on trampline code for

Re: [PATCH v2 0/15] [dt-bindings] [media] Add document file and driver for Sony CXD2880 DVB-T2/T tuner + demodulator

2017-05-25 Thread Takiguchi, Yasunari
Hi, all I sent the patch series of Sony CXD2880 DVB-T2/T tuner + demodulator driver on Apr/14. Are there any comments, advices and review results for them? I'd like to get better understanding of current review status for our codes. Regards, Takiguchi

Re: [PATCH] x86/ftrace: Make sure that ftrace trampolines are not RWX

2017-05-25 Thread Thomas Gleixner
On Wed, 24 May 2017, Steven Rostedt wrote: > The trampolines uses the module allocation, and it appears, that needs > to become rw before freeing again. Indeed. I realized that when enabling more debug options, which led to a reliable triple fault. How intuitive. > I applied this patch, and it

[PATCH -mm 01/13] mm, THP, swap: Support to clear swap cache flag for THP swapped out

2017-05-25 Thread Huang, Ying
From: Huang Ying Previously, swapcache_free_cluster() is used only in the error path of shrink_page_list() to free the swap cluster just allocated if the THP (Transparent Huge Page) is failed to be split. In this patch, it is enhanced to clear the swap cache flag

Re: [PATCH] staging: iio: light: Replace snprintf calls with scnprintf

2017-05-25 Thread Greg KH
On Wed, May 24, 2017 at 07:22:11PM -0400, Harinath Nampally wrote: > This patch fixes the miscoded use of return value of snprintf > by using the scnprintf function which returns the length of actual > string created in the buffer. > > Signed-off-by: Harinath Nampally >

[PATCH -mm 02/13] mm, THP, swap: Support to reclaim swap space for THP swapped out

2017-05-25 Thread Huang, Ying
From: Huang Ying The normal swap slot reclaiming can be done when the swap count reaches SWAP_HAS_CACHE. But for the swap slot which is backing a THP, all swap slots backing one THP must be reclaimed together, because the swap slot may be used again when the THP is swapped

[PATCH -mm 07/13] mm, THP, swap: Support to write THP to swap device as a whole

2017-05-25 Thread Huang, Ying
From: Huang Ying In the patch, the swap writing is enhanced to support to write a THP (Transparent Huge Page) as a whole. This is a part of the THP swap optimization and will improve swap write IO performance for the more large continuous IOs. Signed-off-by: "Huang, Ying"

[PATCH -mm 08/13] mm, THP, swap: Support to split THP for THP swapped out

2017-05-25 Thread Huang, Ying
From: Huang Ying After adding swapping out support for THP (Transparent Huge Page), it is possible that a THP in swap cache (partly swapped out) need to be split. To split such a THP, the swap cluster backing the THP need to be split too, that is, the CLUSTER_FLAG_HUGE

Re: [PATCH] ARM: dts: vf610-zii-dev-rev-b: add hi8435 device

2017-05-25 Thread Shawn Guo
On Mon, May 22, 2017 at 04:10:10PM +0300, Nikita Yushchenko wrote: > ZII dev board rev B has a Holt Hi8435 connected to dspi2. > Add it to device tree. > > ZII dev board rev C does not have that, so use rev-b dts file, > not common dtsi file. > > Signed-off-by: Nikita Yushchenko

Re: [PATCH 14/24] thunderbolt: Let the connection manager handle all notifications

2017-05-25 Thread Mika Westerberg
On Wed, May 24, 2017 at 04:00:49PM +0200, Lukas Wunner wrote: > On Thu, May 18, 2017 at 05:39:04PM +0300, Mika Westerberg wrote: > > @@ -320,18 +330,42 @@ static void tb_ctl_rx_callback(struct tb_ring *ring, > > struct ring_frame *frame, > > } > > > > frame->size -= 4; /* remove

Re: [PATCH 00/24] Thunderbolt security levels and NVM firmware upgrade

2017-05-25 Thread Mika Westerberg
On Wed, May 24, 2017 at 07:06:33PM +, mario.limoncie...@dell.com wrote: > > -Original Message- > > From: Mika Westerberg [mailto:mika.westerb...@linux.intel.com] > > Sent: Wednesday, May 24, 2017 6:11 AM > > To: Limonciello, Mario > > Cc:

[PATCH] PCI / PM: Restore the status of PCI devices across hibernation

2017-05-25 Thread Chen Yu
Currently we saw a lot of "No irq handler" errors during hibernation, which caused the system hang finally: [ 710.141581] ata4.00: qc timeout (cmd 0xec) [ 710.147135] ata4.00: failed to IDENTIFY (I/O error, err_mask=0x4) [ 710.154593] ata4.00: revalidation failed (errno=-5) [ 710.468124]

Re: [PATCH v4 2/2] PCI: Add tango PCIe host bridge support

2017-05-25 Thread Marc Zyngier
On 20/04/17 15:31, Marc Gonzalez wrote: > This driver is required to work around several hardware bugs in the > PCIe controller. > > NB: Revision 1 does not support legacy interrupts, or IO space. > > Signed-off-by: Marc Gonzalez > --- >

Re: [PATCH] x86/ftrace: Make sure that ftrace trampolines are not RWX

2017-05-25 Thread Masami Hiramatsu
On Wed, 24 May 2017 18:25:47 -0400 Steven Rostedt wrote: > On Wed, 24 May 2017 21:13:27 +0200 (CEST) > Thomas Gleixner wrote: > > > > > Oops: 0003 [#1] SMP > > > Modules linked in: > > > CPU: 3 PID: 1 Comm: swapper/0 Not tainted 4.12.0-rc2-test+ #42 >

Re: [linux-next] PPC Lpar fail to boot with error hid: module verification failed: signature and/or required key missing - tainting kernel

2017-05-25 Thread Jiri Kosina
On Thu, 25 May 2017, Abdul Haleem wrote: > Hi, > > Test : boot > Machine : Power 8 PowerVM LPAR > Kernel version : 4.12.0-rc2-next-20170524 > Toolchain : gcc version 5.2.1 > Config : attached > > next-20170517 was last good version where we did not see the failure. > from next-20170519 to

Re: [PATCH] DT: hwspinlock: Add binding documentation for Spreadtrum hwspinlock

2017-05-25 Thread Baolin Wang
On 三, 5月 24, 2017 at 12:27:28下午 -0700, Bjorn Andersson wrote: > On Wed 17 May 19:49 PDT 2017, Baolin Wang wrote: > > > This patch adds the binding documentation for Spreadtrum hardware spinlock > > device. > > > > Signed-off-by: Baolin Wang > > Applied, with Rob's

Re: [PATCH] modpost: abort if a module name is too long

2017-05-25 Thread Wanlong Gao
Folks, Any comments? On 2017/5/20 15:46, Xie XiuQi wrote: > From: Wanlong Gao > > Module name has a limited length, but currently the build system > allows the build finishing even if the module name is too long. > > CC >

Re: [PATCH 05/24] thunderbolt: Rework capability handling

2017-05-25 Thread Lukas Wunner
On Sun, May 21, 2017 at 09:09:37PM +0200, Andreas Noever wrote: > (and of course I have to request > this at least once: you should definitely release the spec - I highly > doubt that Intel's competitive advantage depends on keeping this > linked list technology secret ;) ). "next year Intel

Re: Patch 0727d35de ("Make initramfs honor CONFIG_DEVTMPFS_MOUNT") breaks boot

2017-05-25 Thread Michael Ellerman
Hi Rob, This is breaking a bunch of my powerpc boxes, for the exact same reason, they use a config that has DEVTMPFS_MOUNT=y and that trips up the initramfs. Rob Landley writes: > On 05/23/2017 03:01 AM, Yury Norov wrote: >> On Mon, May 22, 2017 at 09:07:54PM -0500, Rob

Re: [PATCH v2] mlock: fix mlock count can not decrease in race condition

2017-05-25 Thread Vlastimil Babka
On 05/25/2017 04:13 AM, Yisheng Xie wrote: > Kefeng reported that when run the follow test the mlock count > in meminfo > cannot be decreased: "increases permanently."? > [1] testcase > linux:~ # cat test_mlockal > grep Mlocked /proc/meminfo > for j in `seq 0 10` > do > for i in

Re: MIPS: Alchemy: Delete an error message for a failed memory allocation in alchemy_pci_probe()

2017-05-25 Thread SF Markus Elfring
>> How do you think about to achieve a small code reduction also for this >> software module? > > Generally speaking, sure. Thanks for your interest in such a direction. > But why remove just this one? Is it because it loosely follows a > pattern that was deemed removable in that slidedeck

Re: [PATCH 1/6] clk: mediatek: add missing cpu mux causing Mediatek cpufreq can't work

2017-05-25 Thread Sean Wang
Hi Michael and Stephen Just a gentle ping on this one :) Cheers, Sean On Fri, 2017-05-05 at 23:26 +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > This patch adds CPU multiplexer clocks which are essential for Mediatek > cpufreq driver. It would use the

[PATCH] staging : sm750fb : Replace CamelCase variable names and hungarian prefx

2017-05-25 Thread Richa Jha
Replace CamelCase variable names with underscores and remove hungarian prefixes to comply with the standard kernel coding style Signed-off-by: Richa Jha --- drivers/staging/sm750fb/ddk750_chip.c | 59 ++- drivers/staging/sm750fb/ddk750_chip.h |

[PATCH v2 03/12] arm64: dts: hikey960: pinctrl: add more pinmux and pinconfig

2017-05-25 Thread Guodong Xu
From: Wang Xiaoyin This commit adds more pinmux and pinctrl information for devices on HiKey960, including i2c, spi, cam, uart, ufs, pcie, csi, pwr_key, isp, sd/sdio, i2s, and usb. Signed-off-by: Wang Xiaoyin Signed-off-by: Chen Jun

[PATCH v2 06/12] arm64: dts: hi3660: add gpio dtsi file for Hisilicon Hi3660 SOC

2017-05-25 Thread Guodong Xu
From: Wang Xiaoyin This patch adds pl061 device nodes for Hi3660 SoC. Signed-off-by: Wang Xiaoyin --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 380 ++ 1 file changed, 380 insertions(+) diff --git

[PATCH v2 10/12] arm64: dts: hi3660: add power key dts node

2017-05-25 Thread Guodong Xu
From: Chen Jun We use gpio_034 as power key on hikey960, and set gpio with pull-up state, when key press the voltage on the gpio will come to lower, and power key event will be reported. Signed-off-by: Chen Jun Signed-off-by: John Stultz

Re: [PATCH v2 4/5] ARM: dts: imx7: add GPMI NAND

2017-05-25 Thread Stefan Agner
On 2017-05-04 15:59, Han Xu wrote: > On 05/04/2017 04:50 PM, Stefan Agner wrote: >> On 2017-05-04 12:13, Han Xu wrote: >>> On 04/21/2017 08:23 PM, Stefan Agner wrote: Add i.MX 7 GPMI NAND module. Signed-off-by: Stefan Agner ---

[PATCH v2 09/12] arm64: dts: hi3660: Add pl031 rtc node

2017-05-25 Thread Guodong Xu
From: Chen Feng Add dts node to enable pl031 rtc. Signed-off-by: Chen Feng Acked-by: Rob Herring --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v2 04/12] arm64: dts: hi3660: add resources for clock and reset

2017-05-25 Thread Guodong Xu
From: Zhangfei Gao Add some resource nodes for clock and reset Signed-off-by: Zhangfei Gao Acked-by: Rob Herring --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 53 +++ 1 file changed, 46

[PATCH v2 08/12] arm64: dts: hikey960: add WL1837 Bluetooth device node

2017-05-25 Thread Guodong Xu
This adds the serial slave device for the WL1837 Bluetooth interface. Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts

[PATCH v2 11/12] arm64: dts: hikey960: add LED nodes

2017-05-25 Thread Guodong Xu
HiKey960 has four user LEDs, and two special purpose LEDs: WiFi and BT respectively. All of them are implemented as GPIO. Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 48 +++ 1 file changed, 48 insertions(+) diff

[PATCH 06/10] gpio: mockup: refuse to accept an odd number of GPIO ranges

2017-05-25 Thread Bartosz Golaszewski
Currently we ignore the last odd range value, since each chip is described by two values. Be more strict and require the user to pass an even number of ranges. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 08/10] gpio: mockup: don't return magic numbers from probe()

2017-05-25 Thread Bartosz Golaszewski
When the requested number of GPIO lines is 0, return -EINVAL, not -1 which is -EPERM. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c

[PATCH 09/10] gpio: mockup: improve the error message

2017-05-25 Thread Bartosz Golaszewski
Indicate the error number and make the message a bit more elaborate. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index

[PATCH 10/10] gpio: mockup: add myself as author

2017-05-25 Thread Bartosz Golaszewski
Just taking credit for the recent changes and new features. :) Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index 96a6c6e..d870597 100644 ---

Re: [PATCH 1/2] fs: configfs: make qw_sign attribute symmetric

2017-05-25 Thread Stefan Agner
Hi Felipe, On 2017-04-19 01:53, Krzysztof Opasiak wrote: > On 04/15/2017 03:35 AM, Stefan Agner wrote: >> Currently qw_sign requires UTF-8 character to set, but returns UTF-16 >> when read. This isn't obvious when simply using cat since the null >> characters are not visible, but hexdump unveils

RE: [PATCH 1/2] watchdog: uniphier: add UniPhier watchdog driver

2017-05-25 Thread Keiji Hayashibara
Hi Yamada-san, > > a/Documentation/devicetree/bindings/watchdog/uniphier-wdt.txt > > b/Documentation/devicetree/bindings/watchdog/uniphier-wdt.txt > > new file mode 100644 > > index 000..a59d1ba > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/watchdog/uniphier-wdt.txt > > @@

Re: [PATCH 2/3] gpio: pcf857x: move header file out of I2C realm

2017-05-25 Thread Sekhar Nori
Hi Linus, On Tuesday 23 May 2017 03:05 PM, Linus Walleij wrote: > On Sun, May 21, 2017 at 11:57 PM, Wolfram Sang wrote: > >> include/linux/i2c is not for client devices. Move the header file to a >> more appropriate location. >> >> Signed-off-by: Wolfram Sang

Re: [RFC PATCH tip/master] kprobes: Use synchronize_rcu_tasks() for optprobe wit CONFIG_PREEMPT

2017-05-25 Thread Masami Hiramatsu
On Thu, 25 May 2017 08:15:55 +0200 Ingo Molnar wrote: > > * Masami Hiramatsu wrote: > > > --- a/kernel/kprobes.c > > +++ b/kernel/kprobes.c > > @@ -377,6 +377,23 @@ static inline void copy_kprobe(struct kprobe *ap, > > struct kprobe *p) > > static bool

Re: [PATCH] MIPS: Alchemy: Delete an error message for a failed memory allocation in alchemy_pci_probe()

2017-05-25 Thread Manuel Lauss
On Wed, May 24, 2017 at 8:15 PM, SF Markus Elfring wrote: >>> +++ b/arch/mips/pci/pci-alchemy.c >>> @@ -377,7 +377,6 @@ static int alchemy_pci_probe(struct platform_device >>> *pdev) >>> >>> ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); >>> if (!ctx) {

Re: [RFC PATCH 2/2] mm, memory_hotplug: drop CONFIG_MOVABLE_NODE

2017-05-25 Thread Michal Hocko
On Wed 24-05-17 17:17:08, Vlastimil Babka wrote: > On 05/24/2017 03:42 PM, Michal Hocko wrote: [...] > >>> --- a/mm/Kconfig > >>> +++ b/mm/Kconfig > >>> @@ -149,32 +149,6 @@ config NO_BOOTMEM > >>> config MEMORY_ISOLATION > >>> bool > >>> > >>> -config MOVABLE_NODE > >>> - bool "Enable to

Re: [PATCH 4/4] iio: hi8435: cleanup reset gpio

2017-05-25 Thread Nikita Yushchenko
> Reset GPIO is active low. > > Currently driver uses gpiod_set_value(1) to clean reset, which depends > on device tree to contain GPIO_ACTIVE_HIGH - that does not match reality. > > This fixes driver to use _raw version of gpiod_set_value() to enforce > active-low

Re: [RFC PATCH 1/2] mm, memory_hotplug: drop artificial restriction on online/offline

2017-05-25 Thread Michal Hocko
On Wed 24-05-17 16:50:56, Reza Arbab wrote: > On Wed, May 24, 2017 at 02:24:10PM +0200, Michal Hocko wrote: > >74d42d8fe146 ("memory_hotplug: ensure every online node has NORMAL > >memory") has added can_offline_normal which checks the amount of > >memory in !movable zones as long as

[PATCH -mm 00/13] mm, THP, swap: Delay splitting THP after swapped out

2017-05-25 Thread Huang, Ying
From: Huang Ying Hi, Andrew, could you help me to check whether the overall design is reasonable? Hi, Johannes and Minchan, Thanks a lot for your review to the first step of the THP swap optimization! Could you help me to review the second step in this patchset? Hi,

[PATCH -mm 05/13] block, THP: Make block_device_operations.rw_page support THP

2017-05-25 Thread Huang, Ying
From: Huang Ying The .rw_page in struct block_device_operations is used by the swap subsystem to read/write the page contents from/into the corresponding swap slot in the swap device. To support the THP (Transparent Huge Page) swap optimization, the .rw_page is enhanced to

[PATCH v8 2/5] irqchip/aspeed-i2c-ic: Add I2C IRQ controller for Aspeed

2017-05-25 Thread Brendan Higgins
The Aspeed 24XX/25XX chips share a single hardware interrupt across 14 separate I2C busses. This adds a dummy irqchip which maps the single hardware interrupt to software interrupts for each of the busses. Signed-off-by: Brendan Higgins --- Added in v6: - Pulled

Re: [PATCH 0/6] refine and rename slub sysfs

2017-05-25 Thread Michal Hocko
On Wed 24-05-17 23:21:24, Wei Yang wrote: > On Wed, May 24, 2017 at 02:03:18PM +0200, Michal Hocko wrote: > >On Wed 24-05-17 17:54:50, Wei Yang wrote: > >> On Tue, May 23, 2017 at 08:39:11AM +0200, Michal Hocko wrote: > >[...] > >> >Is this worth risking breakage of the userspace which consume

[PATCH v8 0/5] i2c: aspeed: added driver for Aspeed I2C

2017-05-25 Thread Brendan Higgins
Addressed comments from: - Ben in: http://www.spinics.net/lists/devicetree/msg174576.html and: https://www.spinics.net/lists/kernel/msg2496151.html - Wolfram in: https://www.spinics.net/lists/kernel/msg2504011.html - Cedric in: https://www.spinics.net/lists/kernel/msg2506531.html

[PATCH v8 3/5] i2c: aspeed: added documentation for Aspeed I2C driver

2017-05-25 Thread Brendan Higgins
Added device tree binding documentation for Aspeed I2C busses. Signed-off-by: Brendan Higgins --- Changes for v2: - None Changes for v3: - Removed reference to "bus" device tree param Changes for v4: - None Changes for v5: - None Changes for v6: - Replaced

[PATCH v2 2/2] dmaengine: mtk-hsdma: Add Mediatek High-Speed DMA controller on MT7623 SoC

2017-05-25 Thread sean.wang
From: Sean Wang Add dmaengine driver for Mediatek High-Speed DMA based on the feature DMA_VIRTUAL_CHANNELS. Mediatek High-Speed DMA controller (HSDMA) on MT7623 SoC has the single channel which is dedicated to memory-to-memory transfer through ring-based descriptor

[PATCH v2 0/2] dmaengine: mtk-hsdma: add support for Mediatek High-Speed DMA controller on MT7623 SoC

2017-05-25 Thread sean.wang
From: Sean Wang Changes since v1: - fix typo in the commit message. - delete status shown in the dt-binding example. This patchset introduces support for Mediatek High-Speed DMA controller (MTK-HSDMA) Currently, the driver is already tested successfully with dmatest

Re: [PATCH 20/24] thunderbolt: Do not touch the hardware if the NHI is gone on resume

2017-05-25 Thread Mika Westerberg
On Wed, May 24, 2017 at 04:43:10PM +0200, Lukas Wunner wrote: > On Thu, May 18, 2017 at 05:39:10PM +0300, Mika Westerberg wrote: > > @@ -655,6 +659,16 @@ static int nhi_resume_noirq(struct device *dev) > > { > > struct pci_dev *pdev = to_pci_dev(dev); > > struct tb *tb =

[PATCH v3] mlock: fix mlock count can not decrease in race condition

2017-05-25 Thread Yisheng Xie
Kefeng reported that when running the follow test, the mlock count in meminfo will increases permanently: [1] testcase linux:~ # cat test_mlockal grep Mlocked /proc/meminfo for j in `seq 0 10` do for i in `seq 4 15` do ./p_mlockall >> log & done

Re: [PATCH BUGFIX] block, bfq: access and cache blkg data only when safe

2017-05-25 Thread Paolo Valente
> Il giorno 24 mag 2017, alle ore 17:47, Tejun Heo ha scritto: > > Hello, > > On Wed, May 24, 2017 at 05:43:18PM +0100, Paolo Valente wrote: >>> so none of the above objects can be destroyed before the request is >>> done. >> >> ... the issue seems just to move to a more

[PATCH v2 1/2] dt-bindings: dmaengine: Add Mediatek High-Speed DMA controller bindings

2017-05-25 Thread sean.wang
From: Sean Wang Document the devicetree bindings for Mediatek High-Speed DMA controller which could be found on MT7623 SoC or other similar Mediatek SoCs. Signed-off-by: Sean Wang Acked-by: Rob Herring ---

Re: [PATCH 0/4] fix some issues for Rockchip usb2-phy and add rk322x SoCs' support

2017-05-25 Thread Frank Wang
Hi Heiko and Kishon, Friendly ping... :-) On 2017/5/18 11:42, Frank Wang wrote: These series of patches fix some issues for rockchip usb2-phy and amend usb2-phy framework to support one phy which comprises with two host-ports. In addition, this change also add rk322x usb2-phy support. Frank

Re: [PATCH 00/24] Thunderbolt security levels and NVM firmware upgrade

2017-05-25 Thread mika.westerb...@linux.intel.com
On Thu, May 25, 2017 at 10:20:10AM +0300, mika.westerb...@linux.intel.com wrote: > On Wed, May 24, 2017 at 07:32:45PM +, Jamet, Michael wrote: > > I talked to our BIOS expert today. Here is his advice to debugging further: > > > > It looks like something may have been wrong from system (BIOS,

[PATCH v2 02/12] arm64: dts: hisilicon: update compatible string for hikey960

2017-05-25 Thread Guodong Xu
Update compatible string for hikey960. HiKey960 is a develpment board built with SoC Hi3660. Signed-off-by: Guodong Xu Signed-off-by: Chen Feng Acked-by: Rob Herring --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 2 +-

[PATCH v2 01/12] dt-bindings: arm: hisilicon: add bindings for HiKey960 board

2017-05-25 Thread Guodong Xu
Add bindings for HiKey960 Board. Signed-off-by: Guodong Xu Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v2 07/12] arm64: dts: hi3660: Add uarts nodes

2017-05-25 Thread Guodong Xu
From: Chen Feng Add nodes uart0 to uart4 and uart6 for hi3660 SoC. Enable uart3 and uart6, disable uart5, in hikey960 board dts. On HiKey960: - UART6 is used as default console, and is wired out through low speed expansion connector. - UART3 has RTS/CTS

Re: [PATCH] ARM: dts: vf610-zii-dev-rev-b: add hi8435 device

2017-05-25 Thread Shawn Guo
On Thu, May 25, 2017 at 11:06:47AM +0300, Nikita Yushchenko wrote: > >> + { > >> + status = "okay"; > >> +}; > >> + > >> + { > > > > Please keep these labelled nodes sort alphabetically. > > Ok > > >> + bus-num = <1>; > >> + pinctrl-names = "default"; > >> + pinctrl-0 = <_dspi2>; > >> +

[PATCH v2 12/12] arm64: dts: hi3660: add spi device nodes

2017-05-25 Thread Guodong Xu
From: Wang Xiaoyin Add spi2 and spi3 device nodes for hi3660, and enable them for hikey960. On HiKey960: - SPI2 is wired out through low speed expansion connector. - SPI3 is wired out through high speed expansion connector. Signed-off-by: Wang Xiaoyin

[PATCH v2 05/12] arm64: dts: Add I2C nodes for Hi3660

2017-05-25 Thread Guodong Xu
From: Zhangfei Gao Add I2C nodes for Hi3660-hikey960. On HiKey960, I2C0, I2C7 are connected to Low Speed Expansion Connector. I2C1 is connected to ADV7535. I2C3 is connected to USB5734. Cc: Jarkko Nikula Signed-off-by: Zhangfei Gao

[PATCH 02/10] gpio: mockup: add prefixes to the direction enum

2017-05-25 Thread Bartosz Golaszewski
All internal symbols except for the direction enum follow the same convention and use the gpio_mockup prefix. Add the prefix to the DIR_IN and DIR_OUT definitions as well for consistency across the file. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 8

[PATCH 04/10] gpio: mockup: support irqmask and irqunmask

2017-05-25 Thread Bartosz Golaszewski
Even though this is a testing module, be nice and actually implement these functions. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 26 -- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-mockup.c

[PATCH 03/10] gpio: mockup: be quiet unless something goes wrong

2017-05-25 Thread Bartosz Golaszewski
When inserting and removing the module repeatedly (e.g. when running the libgpiod test-suite) the kernel log gets clobbered with messages reporting successful creation of dummy gpiochips. Remove this message and only emit logs when something bad happens. Signed-off-by: Bartosz Golaszewski

[PATCH 05/10] gpio: mockup: improve the debugfs input sanitization

2017-05-25 Thread Bartosz Golaszewski
We're currently only checking the first character of the input to the debugfs event files, so a string like '0sdfdsf' is valid and indicates a falling edge event. Be more strict and only allow '0', '1', '0\n' & '1\n'. Signed-off-by: Bartosz Golaszewski ---

[PATCH 01/10] gpio: mockup: fix direction values

2017-05-25 Thread Bartosz Golaszewski
The comment in linux/gpio/driver.h says: @get_direction: returns direction for signal "offset", 0=out, 1=in We got those switched at some point. Fix the values. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 1/3] gpio: pch: check the return value of irq_alloc_generic_chip()

2017-05-25 Thread Bartosz Golaszewski
This function can fail, so check the return value before dereferencing the returned pointer. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-pch.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-pch.c

Re: [linux-sunxi] [PATCH 1/2] ARM: sun8i: v3s: add device nodes for DE2 display pipeline

2017-05-25 Thread Chen-Yu Tsai
On Wed, May 24, 2017 at 7:17 PM, Icenowy Zheng wrote: > Allwinner V3s SoC features a "Display Engine 2.0" with only one mixer > and only one TCON connected to this mixer, which have RGB LCD output. > > Add device nodes for this display pipeline. > > Signed-off-by: Icenowy Zheng

Re: pxa3xx-nand failing to find device on linux-next

2017-05-25 Thread Boris Brezillon
Le Wed, 24 May 2017 22:58:53 +, Chris Packham a écrit : > On 25/05/17 10:36, Boris Brezillon wrote: > > Le Wed, 24 May 2017 22:03:52 +, > > Chris Packham a écrit : > > > >> On 24/05/17 23:25, Boris Brezillon wrote:

RE: [PATCH 2/2] Revert "ACPI / button: Change default behavior to lid_init_state=open"

2017-05-25 Thread Zheng, Lv
Hi, > >> >> >> Benjamin, my understanding is that this is the case, is it correct? > >> >> > > >> >> > That is correct. This patch I reverted introduces regression for > >> >> > professional > >> >> > laptops that expect the LID switch to be reported accurately. > >> >> > >> >> And from a user's

Re: [RFC 04/11] ima: add support to namespace securityfs file

2017-05-25 Thread John Johansen
On 05/24/2017 01:12 PM, Mimi Zohar wrote: > On Thu, 2017-05-11 at 10:59 -0300, Guilherme Magalhaes wrote: >> Creating the namespace securityfs file under ima folder. When a mount >> namespace id is written to the namespace file, a new folder is created and >> with a policy file for that specified

Re: [PATCH v7 18/34] platform: video-mux: include temporary mmio-mux support

2017-05-25 Thread kbuild test robot
Hi Philipp, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.12-rc2 next-20170525] [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/Steve-Longerbeam/i-MX-Media

[PATCH] platform: video-mux: fix ptr_ret.cocci warnings

2017-05-25 Thread kbuild test robot
drivers/media/platform/video-mux.c:246:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci CC: Philipp Zabel Signed-off-by: Fengguang Wu ---

RE: [PATCH v2] phy: rcar-gen3-usb3: add support for R-Car Gen3 USB 3.0 PHY

2017-05-25 Thread Yoshihiro Shimoda
Hi Geert-san, > From: Geert Uytterhoeven > Sent: Wednesday, May 24, 2017 9:39 PM > > Hi Shimoda-san, > > On Wed, May 24, 2017 at 2:17 PM, Yoshihiro Shimoda > wrote: > > The USB 3.0 PHY modules of R-Car Gen3 SoCs have: > > - Spread spectrum clock (ssc). > > -

Re: [PATCH] pci-hyperv: Use only 16 bit integer for PCI domain

2017-05-25 Thread Christoph Hellwig
On Wed, May 24, 2017 at 01:39:15PM -0700, Haiyang Zhang wrote: > From: Haiyang Zhang > > This patch uses the lower 16 bits of the serial number as PCI > domain, otherwise some drivers may not be able to handle it. > > Besides Nvidia drivers, we also found X.org, and DPDK

Re: [PATCH v2 10/13] perf header: add a buffer to struct feat_fd

2017-05-25 Thread Jiri Olsa
On Tue, May 23, 2017 at 12:48:50AM -0700, David Carrillo-Cisneros wrote: SNIP > @@ -82,11 +83,27 @@ bool perf_header__has_feat(const struct perf_header > *header, int feat) > /* Return: 0 if succeded, -ERR if failed. */ > int do_write(struct feat_fd *fd, const void *buf, size_t size) > { > -

Re: [PATCH v2 13/13] perf tools: add feature header record to pipe-mode

2017-05-25 Thread Jiri Olsa
On Tue, May 23, 2017 at 12:48:53AM -0700, David Carrillo-Cisneros wrote: SNIP > +int perf_event__process_feature(struct perf_tool *tool, > + union perf_event *event, > + struct perf_session *session __maybe_unused) > +{ > + struct

Re: [PATCH v2 11/13] perf header: change FEAT_OP* macros

2017-05-25 Thread Jiri Olsa
On Tue, May 23, 2017 at 12:48:51AM -0700, David Carrillo-Cisneros wrote: SNIP > -#define FEAT_OPA(n, func) \ > - [n] = { .name = #n, .write = write_##func, .print = print_##func } > -#define FEAT_OPP(n, func) \ > - [n] = { .name = #n, .write = write_##func, .print = print_##func, \ > -

Re: [PATCH v2 05/13] perf header: revamp do_write

2017-05-25 Thread Jiri Olsa
On Tue, May 23, 2017 at 12:48:45AM -0700, David Carrillo-Cisneros wrote: > Now that writen takes a const buffer, use it in do_write instead > of duplicating readn functionality.. readn? jirka

Re: [PATCH v2 10/13] perf header: add a buffer to struct feat_fd

2017-05-25 Thread Jiri Olsa
On Tue, May 23, 2017 at 12:48:50AM -0700, David Carrillo-Cisneros wrote: > Extend struct feat_fd to use a temporal buffer in pipe-mode, rather > than a perf.data file. > > Revamp write_pmu_mappings to avoid seeking so that is compatible with > pipe-mode. > > Print an error when trying to use buf

Re: [PATCH v2 13/13] perf tools: add feature header record to pipe-mode

2017-05-25 Thread Jiri Olsa
On Tue, May 23, 2017 at 12:48:53AM -0700, David Carrillo-Cisneros wrote: SNIP > + for_each_set_bit(feat, header->adds_features, HEADER_FEAT_BITS) { > + if (!feat_ops[feat].has_record) { > + pr_debug("No record header feature for header :%d\n", > feat); > +

Re: [PATCH V2 1/1] nvme: fix multiple ctrl removal scheduling

2017-05-25 Thread Christoph Hellwig
> diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c > index 4c2ff2b..ba54e2a 100644 > --- a/drivers/nvme/host/pci.c > +++ b/drivers/nvme/host/pci.c > @@ -1903,9 +1903,6 @@ static void nvme_reset_work(struct work_struct *work) > bool was_suspend = !!(dev->ctrl.ctrl_config &

[PATCH 3/4] watchdog: split out config options

2017-05-25 Thread Nicholas Piggin
Split SOFTLOCKUP_DETECTOR from LOCKUP_DETECTOR, and split HARDLOCKUP_DETECTOR_PERF from HARDLOCKUP_DETECTOR. LOCKUP_DETECTOR provides the boot, sysctl, and programming interfaces for lockup detectors. An architecture that defines HAVE_NMI_WATCHDOG need not use this this if it has a very basic

[PATCH 2/4] watchdog: introduce arch_touch_nmi_watchdog()

2017-05-25 Thread Nicholas Piggin
For architectures that define HAVE_NMI_WATCHDOG, instead of having them provide the complete touch_nmi_watchdog() function, just have them provide arch_touch_nmi_watchdog(). This gives the generic code more flexibility in implementing this function, and arch implementations don't miss out on

[PATCH 0/4][V2] Improve watchdog config for arch watchdogs

2017-05-25 Thread Nicholas Piggin
Hi Don, The kbuild 0day caught a compile bug on some archs, I think I've got that fixed. I'm resending without the powerpc watchdog example. However if you decide to accept these changes for the next merge window, I may send the powerpc patch through your tree with appropriate acks, because it's

Re: [PATCH] mm/oom_kill: count global and memory cgroup oom kills

2017-05-25 Thread Konstantin Khlebnikov
On 24.05.2017 23:43, David Rientjes wrote: On Tue, 23 May 2017, Konstantin Khlebnikov wrote: This is worth addition. Let's call it "oom_victim" for short. It allows to locate leaky part if they are spread over sub-containers within common limit. But doesn't tell which limit caused this

Re: [PATCH -mm 06/13] block: Increase BIO_MAX_PAGES to PMD size if THP_SWAP enabled

2017-05-25 Thread Ming Lei
On Thu, May 25, 2017 at 02:46:28PM +0800, Huang, Ying wrote: > From: Huang Ying > > In this patch, BIO_MAX_PAGES is changed from 256 to HPAGE_PMD_NR if > CONFIG_THP_SWAP is enabled and HPAGE_PMD_NR > 256. This is to support > THP (Transparent Huge Page) swap optimization.

[PATCH -mm 12/13] mm, THP, swap: Delay splitting THP after swapped out

2017-05-25 Thread Huang, Ying
From: Huang Ying In this patch, splitting transparent huge page (THP) during swapping out is delayed from after adding the THP into the swap cache to after swapping out finishes. After the patch, more operations for the anonymous THP reclaiming, such as writing the THP to

Re: [PATCH v2] mlock: fix mlock count can not decrease in race condition

2017-05-25 Thread Yisheng Xie
Hi Vlastimil, Thanks for comment! On 2017/5/25 14:32, Vlastimil Babka wrote: > On 05/25/2017 04:13 AM, Yisheng Xie wrote: >> Kefeng reported that when run the follow test the mlock count > >> in meminfo >> cannot be decreased: > > "increases permanently."? Yes if I am not mis-understanding what

[PATCH -mm 11/13] memcg, THP, swap: Make mem_cgroup_swapout() support THP

2017-05-25 Thread Huang, Ying
From: Huang Ying This patch makes mem_cgroup_swapout() works for the transparent huge page (THP). Which will move the memory cgroup charge from memory to swap for a THP. This will be used for the THP swap support. Where a THP may be swapped out as a whole to a set of

[PATCH -mm 10/13] memcg, THP, swap: Avoid to duplicated charge THP in swap cache

2017-05-25 Thread Huang, Ying
From: Huang Ying For a THP (Transparent Huge Page), tail_page->mem_cgroup is NULL. So to check whether the page is charged already, we need to check the head page. This is not an issue before because it is impossible for a THP to be in the swap cache before. But after we

[PATCH -mm 13/13] mm, THP, swap: Add THP swapping out fallback counting

2017-05-25 Thread Huang, Ying
From: Huang Ying When swapping out THP (Transparent Huge Page), instead of swapping out the THP as a whole, sometimes we have to fallback to split the THP into normal pages before swapping, because no free swap clusters are available, or cgroup limit is exceeded, etc. To

[PATCH -mm 09/13] memcg, THP, swap: Support move mem cgroup charge for THP swapped out

2017-05-25 Thread Huang, Ying
From: Huang Ying PTE mapped THP (Transparent Huge Page) will be ignored when moving memory cgroup charge. But for THP which is in the swap cache, the memory cgroup charge for the swap of a tail-page may be moved in current implementation. That isn't correct, because the

[PATCH -mm 06/13] block: Increase BIO_MAX_PAGES to PMD size if THP_SWAP enabled

2017-05-25 Thread Huang, Ying
From: Huang Ying In this patch, BIO_MAX_PAGES is changed from 256 to HPAGE_PMD_NR if CONFIG_THP_SWAP is enabled and HPAGE_PMD_NR > 256. This is to support THP (Transparent Huge Page) swap optimization. Where the THP will be write to disk as a whole instead of HPAGE_PMD_NR

Re: [PATCH 07/24] thunderbolt: Convert switch to a device

2017-05-25 Thread Mika Westerberg
On Wed, May 24, 2017 at 03:53:59PM +0200, Lukas Wunner wrote: > On Wed, May 24, 2017 at 02:43:22PM +0300, Mika Westerberg wrote: > > On Wed, May 24, 2017 at 01:09:08PM +0200, Lukas Wunner wrote: > > > On Thu, May 18, 2017 at 05:38:57PM +0300, Mika Westerberg wrote: > > > > Thunderbolt domain

  1   2   3   4   5   6   7   8   9   10   >