Re: [PATCH 2/7] kexec_file,x86,powerpc: factor out kexec_file_ops functions

2018-03-01 Thread Dave Young
On 03/02/18 at 04:16pm, AKASHI Takahiro wrote: > On Fri, Mar 02, 2018 at 02:08:57PM +0800, Dave Young wrote: > > On 03/02/18 at 01:53pm, Dave Young wrote: > > > On 03/02/18 at 02:24pm, AKASHI Takahiro wrote: > > > > On Fri, Mar 02, 2018 at 01:04:26PM +0800, Dave Young wrote: > > > > > On 02/27/18 a

Re: [PATCH] PCI: stop crashing in pci_release_resource v2

2018-03-01 Thread Christian König
Am 01.03.2018 um 19:49 schrieb Bjorn Helgaas: On Wed, Feb 21, 2018 at 10:07:15AM +0100, Christian König wrote: Is it entirely possible that the BIOS wasn't able to assign resources to a device. In this case don't crash in pci_release_resource() when we try to resize the resource. v2: keep print

[PATCH] f2fs: add nowait aio support

2018-03-01 Thread Hyunchul Lee
From: Hyunchul Lee This patch adds nowait aio support[1]. Return EAGAIN if any of the following checks fail for direct I/O: - i_rwsem is not lockable - Blocks are not allocated at the write location And xfstests generic/471 is passed. [1]: 6be96d "Introduce RWF_NOWAIT and FMODE_AIO_NOWAIT

[PATCH] scripts/kconfig: replace single character strcat() appends

2018-03-01 Thread Joey Pabalinas
Convert strcat() calls which only append single characters to the end of res into simpler (and most likely cheaper) single assignment statements. Signed-off-by: Joey Pabalinas 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c inde

Re: [PATCH v1 03/19] dt-bindings: pinctrl: mediatek: add bindings for I2C2 and SPI2 on MT7623

2018-03-01 Thread Linus Walleij
On Fri, Feb 23, 2018 at 11:16 AM, wrote: > From: Sean Wang > > Add missing pinctrl binding about I2C2 and SPI2 which would be used in > devicetree related files. > > Signed-off-by: Sean Wang > Cc: Rob Herring > Cc: Mark Rutland > Cc: Linus Walleij > Cc: linux-g...@vger.kernel.org > Cc: devi

Re: [PATCH v1 01/19] dt-bindings: pinctrl: mediatek: use - instead of _ in examples

2018-03-01 Thread Linus Walleij
On Fri, Feb 23, 2018 at 11:16 AM, wrote: > From: Sean Wang > > It should be good that no use "_" is in examples. Consequently, > those nodes in certain files which have an inappropriate name containing > "_" are all being replaced with "-". > > Signed-off-by: Sean Wang > Cc: Linus Walleij > C

Re: [PATCH v3 3/5] arm64: dts: rockchip: add usb3-phy otg-port support for rk3399.

2018-03-01 Thread Heiko Stuebner
Am Samstag, 16. Dezember 2017, 18:06:50 CET schrieb Heiko Stuebner: > Am Freitag, 15. Dezember 2017, 12:00:03 CET schrieb Enric Balletbo i Serra: > > Add the usb3 phyter for the USB3.0 OTG controller. > > > > Signed-off-by: Enric Balletbo i Serra > > applied for 4.16 and reverted again for the

[PATCH] rcu: Remove deprecated RCU debugfs tracing code

2018-03-01 Thread Byungchul Park
Commit ae91aa0adb14(rcu: Remove debugfs tracing) removed the RCU debugfs tracing code, and left deprecated code. Because exp_workdone{0,1,2,3} won't be used anymore since the commit, it's better to remove code to do with those variables. Remove it. Signed-off-by: Byungchul Park --- kernel/rcu/t

Re: [PATCH v3 1/2] dt-bindings: add bindings doc for HiSilicon INNO USB2 PHY

2018-03-01 Thread Shawn Guo
Hi Kishon, On Fri, Mar 02, 2018 at 11:55:57AM +0530, Kishon Vijay Abraham I wrote: > On Thursday 01 March 2018 12:52 PM, Shawn Guo wrote: > > From: Pengcheng Li > > > > It adds device tree bindings document for HiSilicon INNO USB2 PHY. > > > > Signed-off-by: Pengcheng Li > > Signed-off-by: Jia

Re: [PATCH] kdump, vmcoreinfo: Export value to tell if 5-level is enabled

2018-03-01 Thread Kirill A. Shutemov
On Fri, Mar 02, 2018 at 01:18:01PM +0800, Baoquan He wrote: > Userspace utility needs to know if the corrupted kernel is in > 5-level paging mode. So write 'pgtable_l5_enabled' to vmcoreinfo. > It covers below three cases: > pgtable_l5_enabled == 0 when > Compile kernel with CONFIG_X86_5LEVEL=n

Re: [PATCH v4 2/3] mm/free_pcppages_bulk: do not hold lock when picking pages to free

2018-03-01 Thread Huang, Ying
Michal Hocko writes: > On Thu 01-03-18 14:28:44, Aaron Lu wrote: >> When freeing a batch of pages from Per-CPU-Pages(PCP) back to buddy, >> the zone->lock is held and then pages are chosen from PCP's migratetype >> list. While there is actually no need to do this 'choose part' under >> lock since

Re: [PATCH 1/7] kexec_file: make an use of purgatory optional

2018-03-01 Thread AKASHI Takahiro
On Fri, Mar 02, 2018 at 02:11:14PM +0800, Dave Young wrote: > On 03/02/18 at 01:58pm, Dave Young wrote: > > On 02/27/18 at 01:48pm, AKASHI Takahiro wrote: > > > On arm64, crash dump kernel's usable memory is protected by > > > *unmapping* it from kernel virtual space unlike other architectures > >

Re: [PATCH 00/45] arm Spectre fix backport review for LTS 4.9

2018-03-01 Thread Alex Shi
On 03/02/2018 12:45 AM, Greg KH wrote: > On Thu, Mar 01, 2018 at 08:53:37PM +0800, Alex Shi wrote: >> Hi All, >> >> Resent without non-upstream patches. > > Again, please start numbering these submissions like any other normal > patchset... > Thanks for reminder! Regards Alex

Re: [PATCH 2/7] kexec_file,x86,powerpc: factor out kexec_file_ops functions

2018-03-01 Thread AKASHI Takahiro
On Fri, Mar 02, 2018 at 02:08:57PM +0800, Dave Young wrote: > On 03/02/18 at 01:53pm, Dave Young wrote: > > On 03/02/18 at 02:24pm, AKASHI Takahiro wrote: > > > On Fri, Mar 02, 2018 at 01:04:26PM +0800, Dave Young wrote: > > > > On 02/27/18 at 01:48pm, AKASHI Takahiro wrote: > > > > > As arch_kexec

Re: [PATCH v4 2/3] mm/free_pcppages_bulk: do not hold lock when picking pages to free

2018-03-01 Thread Aaron Lu
On Thu, Mar 01, 2018 at 02:55:18PM +0100, Michal Hocko wrote: > On Thu 01-03-18 14:28:44, Aaron Lu wrote: > > When freeing a batch of pages from Per-CPU-Pages(PCP) back to buddy, > > the zone->lock is held and then pages are chosen from PCP's migratetype > > list. While there is actually no need to

RE: [PATCH 0/3] vfio/pci: ioeventfd support

2018-03-01 Thread Tian, Kevin
> From: Alex Williamson > Sent: Thursday, March 1, 2018 4:15 AM > > A vfio ioeventfd will perform the pre-specified device write on > triggering of an eventfd. When coupled with KVM ioeventfds, this > feature allows a VM to trap a device page for virtualization, while > also registering targeted

Re: [PATCH v2 11/11] kconfig: unittest: test if recursive inclusion is detected

2018-03-01 Thread Masahiro Yamada
2018-03-02 13:32 GMT+09:00 Masahiro Yamada : > If recursive inclusion is detected, it should fail with error messages. > Test this. > > Signed-off-by: Masahiro Yamada > Reviewed-by: Ulf Magnusson > --- > > Changes in v2: > - coding style clean-up based on PEP8, PEP257 > > scripts/kconfig/tests

[PATCH] kconfig: fix line number in recursive inclusion error message

2018-03-01 Thread Masahiro Yamada
When recursive inclusion is detected, the line number of the last 'included from:' is wrong. [Test Case] Kconfig: >8 source "Kconfig2" >8 Kconfig2: >8 source "Kconfig3" >8 Kconfig3: >8 source "Kconfi

Re: [PATCH net] virtio-net: re enable XDP_REDIRECT for mergeable buffer

2018-03-01 Thread Jesper Dangaard Brouer
On Fri, 2 Mar 2018 14:25:29 +0800 Jason Wang wrote: > @@ -770,6 +774,19 @@ static struct sk_buff *receive_mergeable(struct > net_device *dev, > goto err_xdp; > rcu_read_unlock(); > goto xdp_xmit; > + case XDP_

fsl,ifc + MT29F64G08CBAAAWP

2018-03-01 Thread Maxim Uvarov
Hello, I'm trying to make work NAND MT29F64G08CBAAAWP with fsl IFC driver. And that seems trickly or I'm missing some fundamental thing. >From MT29F64G08CBAAAWP it's said: Organization Page – Page size x8: 8640 bytes (8192 + 448 bytes) – Block size: 256 pages (2048K + 112K bytes) – Plane size:

RE: [PATCH] pci-iov: Add support for unmanaged SR-IOV

2018-03-01 Thread Tian, Kevin
> From: Tian, Kevin > Sent: Friday, March 2, 2018 2:54 PM > > > From: Alex Williamson > > Sent: Friday, March 2, 2018 4:22 AM > > > > > > I am pretty sure that you are describing is true of some, but not for > > > all. I think the Amazon solutions and the virtio solution are doing > > > hard parti

RE: [PATCH] pci-iov: Add support for unmanaged SR-IOV

2018-03-01 Thread Tian, Kevin
> From: Alex Williamson > Sent: Friday, March 2, 2018 4:22 AM > > > > I am pretty sure that you are describing is true of some, but not for > > all. I think the Amazon solutions and the virtio solution are doing > > hard partitioning of the part. I will leave it to those guys to speak > > for thems

Re: [PATCH v5 2/3] dmaengine: mediatek: Add MediaTek High-Speed DMA controller for MT7622 and MT7623 SoC

2018-03-01 Thread Sean Wang
Hi, Vinod On Thu, 2018-03-01 at 18:26 +0530, Vinod Koul wrote: > On Thu, Mar 01, 2018 at 06:27:01PM +0800, Sean Wang wrote: > > On Thu, 2018-03-01 at 13:53 +0530, Vinod Koul wrote: > > > On Sun, Feb 18, 2018 at 03:08:30AM +0800, sean.w...@mediatek.com wrote: > > > > > > > @@ -0,0 +1,1054 @@ > > >

Deleting pstore data causes immediate hang of 4.15.5 on Lenovo P70 with upgraded bios

2018-03-01 Thread Marc MERLIN
Howdy, I have a thinkpad P70 which started to fail resuming from S3 sleep after any kernel past 4.12 (sometimes it would work, sometimes the HD led would come on when trying to resume, but nothing else). After much debugging trying to figure what was causing it and coming short, I decided to upgra

RE: [PATCH] arm64: defconfig: enable CONFIG_LEDS_TRIGGER_TIMER

2018-03-01 Thread Ooi, Joyce
Hi, It's been a while since I received any feedback about this patch. Are there any concerns about this patch? If no, could you please kindly ACK this patch? Thanks. Regards, Joyce Ooi > -Original Message- > From: Ooi, Joyce > Sent: Thursday, February 15, 2018 11:20 AM > To: Catalin Ma

[PATCH 1/2] dt-bindings: watchdog: Add Nuvoton NPCM description

2018-03-01 Thread Joel Stanley
These bindings describe the watchdog IP as used by the Nuvoton NPCM750 (Poleg) BMC SoC. Signed-off-by: Joel Stanley --- .../bindings/watchdog/nuvoton,npcm-wdt.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog

[PATCH 2/2] watchdog: Add Nuvoton NPCM watchdog driver

2018-03-01 Thread Joel Stanley
The Nuvoton NPCM750 has a watchdog implemented as a single register inside the timer peripheral. This driver exposes that watchdog as a standard watchdog device with coarse timeout intervals, limited by the combination of prescaler and counter that is provided by the hardware. The calculation is t

[PATCH 0/2] watchdog: Add Nuvoton NPCM (Poleg) driver

2018-03-01 Thread Joel Stanley
This is a driver for the Poleg board that is in the process of being upstreamed. I have tested it on an evaluation board. The watchdog is a single register inside of the timer IP. This made me think about how to describe the device tree bindings for a while, but after some discussion I settled on

[PATCH] ACPI / scan: Send the change uevent with offine environmental data

2018-03-01 Thread Lee, Chun-Yi
In current design of ACPI container offline, Kernel emits KOBJ_CHANGE uevent to user space to indidate that the ejection of the container was triggered by platform. (caa73ea15 patch) A pure KOBJ_CHANGE uevent is not enough for user space to identify the purpose. For example, a "udevadm trigger" co

Re: [Outreachy kernel] [PATCH] staging: rtl8712: Fixed 'tabstop' coding style warning

2018-03-01 Thread Julia Lawall
On Fri, 2 Mar 2018, Arushi Singhal wrote: > Replace a mix of tabs and spaces indentation by tabs only. > > Fixed checkpatch warning "Statements should start on a tabstop" in > rtl8712 module. There is no need to say "in rtl8712 module". That is apparent from the subject line and the diffstat j

Re: [PATCH v4 01/19] [BUGFIX] tracing: probeevent: Fix to support minus offset from symbol

2018-03-01 Thread Masami Hiramatsu
On Fri, 2 Mar 2018 13:49:51 +0900 Namhyung Kim wrote: > Hi Masami, > > On Wed, Feb 28, 2018 at 12:19:53PM +0900, Masami Hiramatsu wrote: > > In Documentation/trace/kprobetrace.txt, it says > > > > @SYM[+|-offs] : Fetch memory at SYM +|- offs (SYM should be a data symbol) > > > > However, the

Re: [PATCH v3 1/2] dt-bindings: add bindings doc for HiSilicon INNO USB2 PHY

2018-03-01 Thread Kishon Vijay Abraham I
On Thursday 01 March 2018 12:52 PM, Shawn Guo wrote: > From: Pengcheng Li > > It adds device tree bindings document for HiSilicon INNO USB2 PHY. > > Signed-off-by: Pengcheng Li > Signed-off-by: Jiancheng Xue > Signed-off-by: Shawn Guo > --- > .../devicetree/bindings/phy/phy-hisi-inno-usb2.

[PATCH net] virtio-net: re enable XDP_REDIRECT for mergeable buffer

2018-03-01 Thread Jason Wang
XDP_REDIRECT support for mergeable buffer was removed since commit 7324f5399b06 ("virtio_net: disable XDP_REDIRECT in receive_mergeable() case"). This is because we don't reserve enough tailroom for struct skb_shared_info which breaks XDP assumption. So this patch fixes this by reserving enough tai

Re: [RFC][PATCH 03/10] x86/mm: introduce "default" kernel PTE mask

2018-03-01 Thread Dave Hansen
On 02/22/2018 03:11 PM, Tom Lendacky wrote: >> I don't think we can help out-of-tree modules getting this wrong. >> They're OK if they use PAGE_KERNEL*, btw. > You will probably need to change __default_kernel_pte_mask to be an > EXPORT_SYMBOL instead of an EXPORT_SYMBOL_GPL for (some) out-of-tree

Re: [PATCH v4 18/19] selftests: ftrace: Add a testcase for $argN with kprobe_event

2018-03-01 Thread Masami Hiramatsu
On Fri, 2 Mar 2018 14:31:17 +0900 Namhyung Kim wrote: > On Wed, Feb 28, 2018 at 12:28:11PM +0900, Masami Hiramatsu wrote: > > Add a testcase for array type with kprobe event. > > This tests whether the traced data is correct or not. > > If the kernel doesn't support array type, it skips > > the t

Re: [PATCH 1/7] kexec_file: make an use of purgatory optional

2018-03-01 Thread Dave Young
On 03/02/18 at 01:58pm, Dave Young wrote: > On 02/27/18 at 01:48pm, AKASHI Takahiro wrote: > > On arm64, crash dump kernel's usable memory is protected by > > *unmapping* it from kernel virtual space unlike other architectures > > where the region is just made read-only. It is highly unlikely that

Re: [PATCH 2/7] kexec_file,x86,powerpc: factor out kexec_file_ops functions

2018-03-01 Thread Dave Young
On 03/02/18 at 01:53pm, Dave Young wrote: > On 03/02/18 at 02:24pm, AKASHI Takahiro wrote: > > On Fri, Mar 02, 2018 at 01:04:26PM +0800, Dave Young wrote: > > > On 02/27/18 at 01:48pm, AKASHI Takahiro wrote: > > > > As arch_kexec_kernel_image_{probe,load}(), > > > > arch_kimage_file_post_load_clean

Re: [PATCH 6/7] x86: kexec_file: clean up prepare_elf64_headers()

2018-03-01 Thread Dave Young
On 03/02/18 at 02:58pm, AKASHI Takahiro wrote: > On Fri, Mar 02, 2018 at 01:39:45PM +0800, Dave Young wrote: > > On 02/27/18 at 01:48pm, AKASHI Takahiro wrote: > > > removing bufp variable in prepare_elf64_headers() makes the code simpler > > > and more understandable. > > > > > > Signed-off-by: A

Re: [PATCH v2 1/2] dt-bindings: phy: add support for STM32 USB PHY Controller (USBPHYC)

2018-03-01 Thread Kishon Vijay Abraham I
On Thursday 01 March 2018 09:00 PM, Amelie Delaunay wrote: > This patch adds the device tree bindings description for STM32 USBPHYC > (USB PHY Controller). > > Signed-off-by: Amelie Delaunay > --- > .../devicetree/bindings/phy/phy-stm32-usbphyc.txt | 46 > ++ > 1 file cha

Re: [PATCH 1/7] kexec_file: make an use of purgatory optional

2018-03-01 Thread Dave Young
On 02/27/18 at 01:48pm, AKASHI Takahiro wrote: > On arm64, crash dump kernel's usable memory is protected by > *unmapping* it from kernel virtual space unlike other architectures > where the region is just made read-only. It is highly unlikely that > the region is accidentally corrupted and this ob

Re: [PATCH 6/7] x86: kexec_file: clean up prepare_elf64_headers()

2018-03-01 Thread AKASHI Takahiro
On Fri, Mar 02, 2018 at 01:39:45PM +0800, Dave Young wrote: > On 02/27/18 at 01:48pm, AKASHI Takahiro wrote: > > removing bufp variable in prepare_elf64_headers() makes the code simpler > > and more understandable. > > > > Signed-off-by: AKASHI Takahiro > > Cc: Dave Young > > Cc: Vivek Goyal >

Re: [LKP] [lkp-robot] [iversion] c0cef30e4f: aim7.jobs-per-min -18.0% regression

2018-03-01 Thread kemi
On 2018年02月28日 01:04, Linus Torvalds wrote: > On Tue, Feb 27, 2018 at 5:43 AM, David Howells wrote: >> Is it possible there's a stall between the load of RCX and the subsequent >> instructions because they all have to wait for RCX to become available? > > No. Modern Intel big-core CPU's simply

Re: [PATCH 0/7] kexec_file: refactoring for other architecutres

2018-03-01 Thread Dave Young
Hi AKASHI, On 02/27/18 at 01:48pm, AKASHI Takahiro wrote: > subject: > > This is a preparatory patch set for adding kexec_file support on arm64. > > It was originally included in a arm64 patch set[1], but Philipp is also > working on their kexec_file support on s390[2] and some changes are now >

Re: [PATCH 2/7] kexec_file,x86,powerpc: factor out kexec_file_ops functions

2018-03-01 Thread Dave Young
On 03/02/18 at 02:24pm, AKASHI Takahiro wrote: > On Fri, Mar 02, 2018 at 01:04:26PM +0800, Dave Young wrote: > > On 02/27/18 at 01:48pm, AKASHI Takahiro wrote: > > > As arch_kexec_kernel_image_{probe,load}(), > > > arch_kimage_file_post_load_cleanup() and arch_kexec_kernel_verify_sig() > > > are al

[PATCH v4 06/11] clk: actions: Add mux clock support

2018-03-01 Thread Manivannan Sadhasivam
Add support for Actions Semi mux clock together with helper functions to be used in composite clock. Signed-off-by: Manivannan Sadhasivam --- drivers/clk/actions/Makefile | 1 + drivers/clk/actions/owl-mux.c | 60 ++ drivers/clk/actions/owl-mux.h | 61 ++

[PATCH v4 08/11] clk: actions: Add factor clock support

2018-03-01 Thread Manivannan Sadhasivam
Add support for Actions Semi factor clock together with helper functions to be used in composite clock. Signed-off-by: Manivannan Sadhasivam --- drivers/clk/actions/Makefile | 1 + drivers/clk/actions/owl-factor.c | 222 +++ drivers/clk/actions/owl-facto

[PATCH v4 07/11] clk: actions: Add divider clock support

2018-03-01 Thread Manivannan Sadhasivam
Add support for Actions Semi divider clock together with helper functions to be used in composite clock. Signed-off-by: Manivannan Sadhasivam --- drivers/clk/actions/Makefile | 1 + drivers/clk/actions/owl-divider.c | 94 +++ drivers/clk/actions/owl-divi

[PATCH v4 10/11] clk: actions: Add pll clock support

2018-03-01 Thread Manivannan Sadhasivam
Add support for Actions Semi PLL clock Signed-off-by: Manivannan Sadhasivam --- drivers/clk/actions/Makefile | 1 + drivers/clk/actions/owl-pll.c | 194 ++ drivers/clk/actions/owl-pll.h | 92 3 files changed, 287 insertions(+) cre

[PATCH v4 11/11] clk: actions: Add S900 SoC clock support

2018-03-01 Thread Manivannan Sadhasivam
Add Actions Semi S900 SoC clock support. Signed-off-by: Manivannan Sadhasivam --- drivers/clk/actions/Kconfig| 10 + drivers/clk/actions/Makefile | 3 + drivers/clk/actions/owl-s900.c | 666 + drivers/clk/actions/owl-s900.h | 61 4 files cha

Re: [PATCH 00/23] kconfig: move compiler capability tests to Kconfig

2018-03-01 Thread Masahiro Yamada
2018-02-22 6:39 GMT+09:00 Ulf Magnusson : > On Wed, Feb 21, 2018 at 09:57:03PM +0900, Masahiro Yamada wrote: >> 2018-02-21 19:52 GMT+09:00 Arnd Bergmann : >> > On Wed, Feb 21, 2018 at 11:20 AM, Masahiro Yamada >> > wrote: >> >> 2018-02-21 18:56 GMT+09:00 Arnd Bergmann : >> >>> On Wed, Feb 21, 2018

[PATCH v4 09/11] clk: actions: Add composite clock support

2018-03-01 Thread Manivannan Sadhasivam
Add support for Actions Semi composite clock. This clock consists of gate, mux, divider and factor clocks. Signed-off-by: Manivannan Sadhasivam --- drivers/clk/actions/Makefile| 1 + drivers/clk/actions/owl-composite.c | 155 drivers/clk/actions/owl

[PATCH v4 04/11] clk: actions: Add common clock driver support

2018-03-01 Thread Manivannan Sadhasivam
Add support for Actions Semi common clock driver with generic structures and interface functions. Signed-off-by: Manivannan Sadhasivam --- drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 1 + drivers/clk/actions/Kconfig | 4 ++ drivers/clk/actions/Makefile

[PATCH v4 03/11] arm64: dts: actions: Source CMU clock for UART5

2018-03-01 Thread Manivannan Sadhasivam
Remove fixed clock and source CMU (Clock Management Unit) clock for UART5 driver in Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900-bubblegum-96.dts | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/act

[PATCH v4 02/11] arm64: dts: actions: Add S900 clock management unit nodes

2018-03-01 Thread Manivannan Sadhasivam
Add Actions Semi S900 Clock Management Unit (CMU) nodes Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s900.dtsi b/arch/arm64/boot/dts/actions/s900.dtsi index 11

[PATCH v4 05/11] clk: actions: Add gate clock support

2018-03-01 Thread Manivannan Sadhasivam
Add support for Actions Semi gate clock together with helper functions to be used in composite clock. Signed-off-by: Manivannan Sadhasivam --- drivers/clk/actions/Makefile | 1 + drivers/clk/actions/owl-gate.c | 77 ++ drivers/clk/actions/owl-gate.h | 7

[PATCH v4 00/11] Add clock driver for Actions S900 SoC

2018-03-01 Thread Manivannan Sadhasivam
This patchset adds clock support for Actions Semi OWL series S900 SoC with relevant clock bindings and device tree info. Driver has been validated on Bubblegum-96 board. Thanks, Mani Changes in V4: * Moved to SPDX license tag for dt-bindings * Fixed a warning in owl-common.h * Rebased on top of

[PATCH v4 01/11] dt-bindings: clock: Add Actions S900 clock bindings

2018-03-01 Thread Manivannan Sadhasivam
Add Actions Semi S900 clock bindings. Signed-off-by: Manivannan Sadhasivam Acked-by: Rob Herring --- .../devicetree/bindings/clock/actions,s900-cmu.txt | 47 include/dt-bindings/clock/actions,s900-cmu.h | 129 + 2 files changed, 176 insertions(+) create mode

Re: [PATCH 6/7] x86: kexec_file: clean up prepare_elf64_headers()

2018-03-01 Thread Dave Young
On 02/27/18 at 01:48pm, AKASHI Takahiro wrote: > removing bufp variable in prepare_elf64_headers() makes the code simpler > and more understandable. > > Signed-off-by: AKASHI Takahiro > Cc: Dave Young > Cc: Vivek Goyal > Cc: Baoquan He > --- > arch/x86/kernel/crash.c | 18 +++--- >

Re: [PATCH 5/7] x86: kexec_file: lift CRASH_MAX_RANGES limit on crash_mem buffer

2018-03-01 Thread AKASHI Takahiro
On Fri, Mar 02, 2018 at 01:31:53PM +0800, Dave Young wrote: > On 02/27/18 at 01:48pm, AKASHI Takahiro wrote: > > While CRASH_MAX_RANGES (== 16) seems to be good enough, fixed-number > > array is not a good idea in general. > > > > In this patch, size of crash_mem buffer is calculated as before and

Re: [PATCH 4/7] x86: kexec_file: remove X86_64 dependency from prepare_elf64_headers()

2018-03-01 Thread AKASHI Takahiro
On Fri, Mar 02, 2018 at 01:19:56PM +0800, Dave Young wrote: > On 02/27/18 at 01:48pm, AKASHI Takahiro wrote: > > The code guarded by CONFIG_X86_64 is necessary on some architectures > > which have a dedicated kernel mapping outside of linear memory mapping. > > (arm64 is among those.) > > > > In t

Re: [PATCH 5/7] x86: kexec_file: lift CRASH_MAX_RANGES limit on crash_mem buffer

2018-03-01 Thread Dave Young
On 02/27/18 at 01:48pm, AKASHI Takahiro wrote: > While CRASH_MAX_RANGES (== 16) seems to be good enough, fixed-number > array is not a good idea in general. > > In this patch, size of crash_mem buffer is calculated as before and > the buffer is now dynamically allocated. This change also allows re

Re: [PATCH v4 18/19] selftests: ftrace: Add a testcase for $argN with kprobe_event

2018-03-01 Thread Namhyung Kim
On Wed, Feb 28, 2018 at 12:28:11PM +0900, Masami Hiramatsu wrote: > Add a testcase for array type with kprobe event. > This tests whether the traced data is correct or not. > If the kernel doesn't support array type, it skips > the test as UNSUPPORTED. This description is wrong - it's for position

[PATCH] HID: ntrig: document sysfs interface

2018-03-01 Thread Aishwarya Pant
Add sysfs documentation for N-Trig touchscreens under Documentation/ABI. Descriptions have been collected from code comments. Signed-off-by: Aishwarya Pant --- Documentation/ABI/testing/sysfs-driver-hid-ntrig | 70 1 file changed, 70 insertions(+) create mode 100644 Doc

Re: [PATCH 2/7] kexec_file,x86,powerpc: factor out kexec_file_ops functions

2018-03-01 Thread AKASHI Takahiro
On Fri, Mar 02, 2018 at 01:04:26PM +0800, Dave Young wrote: > On 02/27/18 at 01:48pm, AKASHI Takahiro wrote: > > As arch_kexec_kernel_image_{probe,load}(), > > arch_kimage_file_post_load_cleanup() and arch_kexec_kernel_verify_sig() > > are almost duplicated among architectures, they can be commonal

Re: [PATCH 4/7] x86: kexec_file: remove X86_64 dependency from prepare_elf64_headers()

2018-03-01 Thread Dave Young
On 02/27/18 at 01:48pm, AKASHI Takahiro wrote: > The code guarded by CONFIG_X86_64 is necessary on some architectures > which have a dedicated kernel mapping outside of linear memory mapping. > (arm64 is among those.) > > In this patch, an additional argument, kernel_map, is added to enable/ > dis

[PATCH] kdump, vmcoreinfo: Export value to tell if 5-level is enabled

2018-03-01 Thread Baoquan He
Userspace utility needs to know if the corrupted kernel is in 5-level paging mode. So write 'pgtable_l5_enabled' to vmcoreinfo. It covers below three cases: pgtable_l5_enabled == 0 when Compile kernel with CONFIG_X86_5LEVEL=n Compile with CONFIG_X86_5LEVEL=y while cpu has no 'la57' flag pg

Re: [PATCH] scsi_lib: increase {host|target|device}_busy count after dispatch cmd

2018-03-01 Thread Bart Van Assche
On Fri, 2018-03-02 at 12:56 +0800, Ganesh Mahendran wrote: > 2018-03-02 7:11 GMT+08:00 Bart Van Assche : > > On Mon, 2017-06-05 at 17:37 +0800, Ganesh Mahendran wrote: > > > In android system, when there are lots of threads running. Thread A > > > holding *host_busy* count is easily to be preempted

Re: [lkp-robot] [printk] c162d5b433: BUG:KASAN:use-after-scope_in_c

2018-03-01 Thread Sergey Senozhatsky
On (03/01/18 16:53), Dmitry Vyukov wrote: [..] > > Hello Dmitry, > > > > I believe it's this one > > > > https://marc.info/?l=linux-kernel&m=151200883525299 > > > Thanks, but now that I debugged this one, I think that one is the same issue. > Amusingly a write in READ_ONCE is actually legitimate

linux-next: build failure after merge of the printk tree

2018-03-01 Thread Stephen Rothwell
Hi Petr, After merging the printk tree, today's linux-next build (bfin BF518F-EZBRD_defconfig) failed like this: lib/dump_stack.o: In function `dump_stack': lib/dump_stack.c:122: multiple definition of `dump_stack' arch/blackfin/kernel/dumpstack.o:arch/blackfin/kernel/dumpstack.c:166: first defi

Re: [PATCH 2/7] kexec_file,x86,powerpc: factor out kexec_file_ops functions

2018-03-01 Thread Dave Young
On 02/27/18 at 01:48pm, AKASHI Takahiro wrote: > As arch_kexec_kernel_image_{probe,load}(), > arch_kimage_file_post_load_cleanup() and arch_kexec_kernel_verify_sig() > are almost duplicated among architectures, they can be commonalized with > an architecture-defined kexec_file_ops array. So let's f

[PATCH] PM / wakeup: use seq_open() to show wakeup stats

2018-03-01 Thread Ganesh Mahendran
single_open() interface requires that the whole output must fit into a single buffer. This will lead to timeout when system memory is not in a good situation. This patch use seq_open() to show wakeup stats. This method need only one page, so timeout will not be observed. Signed-off-by: Ganesh Mah

Re: [PATCH] scsi_lib: increase {host|target|device}_busy count after dispatch cmd

2018-03-01 Thread Ganesh Mahendran
Hi, Bart: 2018-03-02 7:11 GMT+08:00 Bart Van Assche : > On Mon, 2017-06-05 at 17:37 +0800, Ganesh Mahendran wrote: >> In android system, when there are lots of threads running. Thread A >> holding *host_busy* count is easily to be preempted, and if at the >> same time, thread B set *host_blocked*,

linux-next: Signed-off-by missing for commits in the net-next tree

2018-03-01 Thread Stephen Rothwell
Hi all, Commits 568477045f80 (" phy: marvell10g: Utilize gen10g_no_soft_reset()") 0adfdb667ab5 (" phy: cortina: Utilize generic functions") aebc78a40b88 (" phy: teranetics: Utilize generic functions") e8a714e086e4 (" phy: Export gen10g_* functions") 6ed33d3a06e6 (" phy: aquantia: Utiliz

Re: [PATCH v4 01/19] [BUGFIX] tracing: probeevent: Fix to support minus offset from symbol

2018-03-01 Thread Namhyung Kim
Hi Masami, On Wed, Feb 28, 2018 at 12:19:53PM +0900, Masami Hiramatsu wrote: > In Documentation/trace/kprobetrace.txt, it says > > @SYM[+|-offs] : Fetch memory at SYM +|- offs (SYM should be a data symbol) > > However, the parser doesn't parse minus offset correctly, since > commit 2fba0c8867af

Re: [PATCH 2/2 v2 RFC] tools/memory-model: redefine rb in terms of rcu-fence

2018-03-01 Thread Paul E. McKenney
On Fri, Mar 02, 2018 at 12:31:41PM +0800, Boqun Feng wrote: > On Thu, Mar 01, 2018 at 10:37:58AM -0800, Paul E. McKenney wrote: > > On Thu, Mar 01, 2018 at 09:49:06AM -0800, Paul E. McKenney wrote: [ . . . ] > > And as Andrea pointed out off-list, I did indeed mess up Boqun's change. > > I forgot

Re: [PATCH v5 2/9] watchdog/hpwdt: Remove legacy NMI sourcing.

2018-03-01 Thread Guenter Roeck
On 02/28/2018 11:45 AM, Jerry Hoemann wrote: On Mon, Feb 26, 2018 at 05:29:55PM -0800, Guenter Roeck wrote: On 02/26/2018 05:02 PM, Jerry Hoemann wrote: On Mon, Feb 26, 2018 at 06:32:30AM -0800, Guenter Roeck wrote: On 02/26/2018 06:11 AM, Arnd Bergmann wrote: On Mon, Feb 26, 2018 at 4:22 AM,

Re: [PATCH v5 0/9] watchdog/hpwdt: Update driver to use watchdog core.

2018-03-01 Thread Guenter Roeck
On 02/25/2018 07:22 PM, Jerry Hoemann wrote: == v5 == Patch numbers changing due to squash and reorder. Using Prior (v4) Patch number noting *new* patch numbers as bullet item. Patch 0001 & 0004 Merged into: Update-Module-info-and-copyright 1) New Patch 0001 Patch 0002 Remove legacy NMI sourc

[PATCH v2 08/11] kconfig: unittest: test defconfig when two choices interact

2018-03-01 Thread Masahiro Yamada
Commit fbe98bb9ed3d ("kconfig: Fix defconfig when one choice menu selects options that another choice menu depends on") fixed defconfig when two choices interact (i.e. calculating the visibility of a choice requires to calculate another choice). The test code in that commit log was based on the re

[PATCH v2 06/11] kconfig: unittest: check unneeded "is not set" with unmet dependency

2018-03-01 Thread Masahiro Yamada
Commit cb67ab2cd2b8 ("kconfig: do not write choice values when their dependency becomes n") fixed a problem where "# CONFIG_... is not set" for choice values are wrongly written into the .config file when they are once visible, then become invisible later. Add a test for this naive case. Signed-o

[PATCH v2 05/11] kconfig: unittest: test if new symbols in choice are asked

2018-03-01 Thread Masahiro Yamada
If new choice values are added with new dependency, and they become visible during user configuration, oldconfig should recognize them as (NEW), and ask the user for choice. This issue was fixed by commit 5d09598d488f ("kconfig: fix new choices being skipped upon config update"). This is a subtle

[PATCH v2 11/11] kconfig: unittest: test if recursive inclusion is detected

2018-03-01 Thread Masahiro Yamada
If recursive inclusion is detected, it should fail with error messages. Test this. Signed-off-by: Masahiro Yamada Reviewed-by: Ulf Magnusson --- Changes in v2: - coding style clean-up based on PEP8, PEP257 scripts/kconfig/tests/err_recursive_inc/Kconfig | 1 + scripts/kconfig/tests

[PATCH v2 04/11] kconfig: unittest: test automatic submenu creation

2018-03-01 Thread Masahiro Yamada
If a symbols has dependency on the preceding symbol, the menu entry should become the submenu of the preceding one, and displayed with deeper indentation. This is done by restructuring the menu tree in menu_finalize(). It is a bit complicated computation, so let's add a test case. Signed-off-by:

[PATCH v2 02/11] kconfig: unittest: add framework for Kconfig unit testing

2018-03-01 Thread Masahiro Yamada
Many parts in Kconfig are so cryptic and need refactoring. However, its complexity prevents us from moving forward. There are several naive corner cases where it is difficult to notice breakage. If those are covered by unit tests, we will be able to touch the code with more confidence. Here is

[PATCH v2 09/11] kconfig: unittest: test randconfig for choice in choice

2018-03-01 Thread Masahiro Yamada
Commit 3b9a19e08960 ("kconfig: loop as long as we changed some symbols in randconfig") fixed randconfig where a choice contains a sub-choice. Prior to that commit, the sub-choice values were not set. This is complicated usage, but it is still used in the real world; drivers/usb/gadget/legacy/Kconf

[PATCH v2 00/11] Add Kconfig unit tests

2018-03-01 Thread Masahiro Yamada
I am applying various cleanups to Kconfig these days. However, I fear regressions. I have been thinking of unit-tests. There are various cryptic parts in Kconfig and corner cases where it is difficult to notice breakage. If unit-tests cover those, I will be able to apply changes more confident

Re: [PATCH net 0/4] net: dsa: Use strncpy() for ethtool::get_strings

2018-03-01 Thread Florian Fainelli
Hi David, On 03/01/2018 04:25 PM, Florian Fainelli wrote: > Hi all, > > After turning on KASAN on one of my systems, I started getting lots of out of > bounds errors while fetching a given port's statistics, and indeed using > memcpy() is unsafe for copying strings, so let's use strncpy() instead

[PATCH v2 03/11] kconfig: unittest: add basic 'choice' tests

2018-03-01 Thread Masahiro Yamada
The calculation of 'choice' is a bit complicated part in Kconfig. The behavior of 'y' choice is intuitive. If choice values are tristate, the choice can be 'm' where each value can be enabled independently. Also, if a choice is marked as 'optional', the whole choice can be invisible. Test basic

[PATCH v2 01/11] kbuild: define PYTHON2 and PYTHON3 variables instead of PYTHON

2018-03-01 Thread Masahiro Yamada
The variable 'PYTHON' allows users to specify a proper executable name in case the default 'python' does not work. However, this does not address the case where both Python 2 and Python 3 scripts are used in one source tree. PEP 394 (https://www.python.org/dev/peps/pep-0394/) provides a conventio

[PATCH v2 07/11] kconfig: unittest: check visibility of tri-choice values in y choice

2018-03-01 Thread Masahiro Yamada
If tristate choice values depend on symbols set to 'm', they should be hidden when the choice containing them is changed from 'm' to 'y' (i.e. exclusive choice). This issue was fixed by commit fa64e5f6a35e ("kconfig/symbol.c: handle choice_values that depend on 'm' symbols"). Add a test case to a

[PATCH v2 10/11] kconfig: unittest: test if recursive dependencies are detected

2018-03-01 Thread Masahiro Yamada
Recursive dependency should be detected and warned. Test this. (This indirectly tests the line number increments.) Signed-off-by: Masahiro Yamada Reviewed-by: Ulf Magnusson --- Changes in v2: - Fix missing end quote - coding style clean-up based on PEP8, PEP257 scripts/kconfig/tests/war

Re: [PATCH 2/2 v2 RFC] tools/memory-model: redefine rb in terms of rcu-fence

2018-03-01 Thread Boqun Feng
On Thu, Mar 01, 2018 at 10:37:58AM -0800, Paul E. McKenney wrote: > On Thu, Mar 01, 2018 at 09:49:06AM -0800, Paul E. McKenney wrote: > > On Thu, Mar 01, 2018 at 10:49:05AM -0500, Alan Stern wrote: > > > On Thu, 1 Mar 2018, Boqun Feng wrote: > > > > > > > > +let rec rcu-fence = gp | > > > > > +

Re: [PATCH net 4/4] net: dsa: mv88e6xxx: Utilize strncpy() for ethtool::get_strings

2018-03-01 Thread Florian Fainelli
On 03/01/2018 07:08 PM, Andrew Lunn wrote: > On Thu, Mar 01, 2018 at 04:25:29PM -0800, Florian Fainelli wrote: >> Do not use memcpy() which is not safe, but instead use strncpy() which >> will make sure that the string is NUL terminated (in the Linux >> implementation) if the string is smaller th

Re: [PATCH net-next 1/2] virtio-net: re enable XDP_REDIRECT for mergeable buffer

2018-03-01 Thread Jason Wang
On 2018年03月01日 21:36, Michael S. Tsirkin wrote: On Thu, Mar 01, 2018 at 11:19:04AM +0800, Jason Wang wrote: XDP_REDIRECT support for mergeable buffer was removed since commit 7324f5399b06 ("virtio_net: disable XDP_REDIRECT in receive_mergeable() case"). This is because we don't reserve enough

Re: [PATCH net-next 0/2] virtio-net: re enable XDP_REDIRECT for mergeable buffer

2018-03-01 Thread Jason Wang
On 2018年03月01日 22:16, Jesper Dangaard Brouer wrote: On Thu, 1 Mar 2018 21:15:36 +0800 Jason Wang wrote: On 2018年03月01日 18:35, Jesper Dangaard Brouer wrote: On Thu, 1 Mar 2018 17:23:37 +0800 Jason Wang wrote: On 2018年03月01日 17:10, Jesper Dangaard Brouer wrote: On Thu, 1 Mar 2018 11:19

[PATCH] Delete some unusefull operations for centaur CPU/platform

2018-03-01 Thread David Wang
For Centaur CPU, the ucode will make sure that each CPU core can keep cache coherency with each other when the CPU core entering to any C state. So the cache flush operations when enter C3 is not necessary and will cause large C3 enter/exit latency. And the bus master disable operation when CPU cor

[PATCH v5 04/12] ext2, dax: define ext2_dax_*() infrastructure in all cases

2018-03-01 Thread Dan Williams
In preparation for fixing S_DAX to be defined in the CONFIG_FS_DAX=n + CONFIG_DEV_DAX=y case, move the definition of these routines outside of the "#ifdef CONFIG_FS_DAX" guard. This is also a coding-style fix to move all ifdef handling to header files rather than in the source. The compiler will st

[PATCH v5 06/12] ext2, dax: replace IS_DAX() with IS_FSDAX()

2018-03-01 Thread Dan Williams
In preparation for fixing the broken definition of S_DAX in the CONFIG_FS_DAX=n + CONFIG_DEV_DAX=y case, convert all IS_DAX() usages to use explicit tests for FSDAX since DAX is ambiguous. Cc: Matthew Wilcox Cc: Ross Zwisler Cc: Fixes: dee410792419 ("/dev/dax, core: file operations and dax-mmap

[PATCH v5 12/12] vfio: disable filesystem-dax page pinning

2018-03-01 Thread Dan Williams
Filesystem-DAX is incompatible with 'longterm' page pinning. Without page cache indirection a DAX mapping maps filesystem blocks directly. This means that the filesystem must not modify a file's block map while any page in a mapping is pinned. In order to prevent the situation of userspace holding

[PATCH v5 10/12] fs, dax: kill IS_DAX()

2018-03-01 Thread Dan Williams
In preparation for fixing the broken definition of S_DAX in the CONFIG_FS_DAX=n + CONFIG_DEV_DAX=y case, convert all the remaining IS_DAX() usages to use explicit tests for FSDAX. Cc: Matthew Wilcox Cc: Ross Zwisler Cc: Fixes: dee410792419 ("/dev/dax, core: file operations and dax-mmap") Review

[PATCH v5 11/12] dax: fix S_DAX definition

2018-03-01 Thread Dan Williams
Make sure S_DAX is defined in the CONFIG_FS_DAX=n + CONFIG_DEV_DAX=y case. Otherwise vma_is_dax() may incorrectly return false in the Device-DAX case. Cc: Alexander Viro Cc: linux-fsde...@vger.kernel.org Cc: Christoph Hellwig Cc: Fixes: dee410792419 ("/dev/dax, core: file operations and dax-mma

  1   2   3   4   5   6   7   8   9   10   >