Re: [PATCH v4 0/4] Multiplex sdmmc low jitter clock path

2018-07-10 Thread Peter De Schrijver
Series Acked-By: Peter De Schrijver Peter. On Mon, Jul 09, 2018 at 07:38:54PM +0300, Aapo Vienamo wrote: > The SDMMC clocks have a Low Jitter (LJ) clock path which bypasses a > divider to achieve better jitter performance with high speed signaling > modes. The clock path with the divider is need

Re: [PATCH v6 08/21] s390: vfio-ap: register matrix device with VFIO mdev framework

2018-07-10 Thread Harald Freudenberger
On 09.07.2018 16:17, Pierre Morel wrote: > On 29/06/2018 23:11, Tony Krowiak wrote: >> Registers the matrix device created by the VFIO AP device >> driver with the VFIO mediated device framework. >> Registering the matrix device will create the sysfs >> structures needed to create mediated matrix d

Re: linux-next: Signed-off-by missing for commit in the pinctrl tree

2018-07-10 Thread Geert Uytterhoeven
Hi Shimoda-san, Linus, On Tue, Jul 10, 2018 at 3:18 AM Yoshihiro Shimoda wrote: > > -Original Message- > > From: Linus Walleij, Sent: Tuesday, July 10, 2018 7:46 AM > > > > Hm must have come from Geert's pull request? > > > > (I'm regularly wrong about this so not so certain...) > > > > G

Re: [PATCH -mm -v4 05/21] mm, THP, swap: Support PMD swap mapping in free_swap_and_cache()/swap_free()

2018-07-10 Thread Huang, Ying
Dave Hansen writes: > I'm seeing a pattern here. > > old code: > > foo() > { > do_swap_something() > } > > new code: > > foo(bool cluster) > { > if (cluster) > do_swap_cluster_something(); > else > do_swap_something(); > } > > That make me fear that w

Re: [PATCH 2/2] mips: mm: Discard ioremap_uncached_accelerated() method

2018-07-10 Thread Mathieu Malaterre
' On Mon, Jul 9, 2018 at 3:57 PM Serge Semin wrote: > > Adaptive ioremap_wc() method is now available (see "mips: mm: > Create UCA-based ioremap_wc() method" commit). We can use it for > UCA-featured MMIO transactions in the kernel, so we don't need > it platform clone ioremap_uncached_accelerated

RE: linux-next: build warning after merge of the printk tree

2018-07-10 Thread Maninder Singh
Hi Petr, > Hi all, > After merging the printk tree, today's linux-next build (x86_64 > allnoconfig) produced this warning: > kernel/printk/printk.c:2033:13: warning: 'suppress_message_printing' defined > but not used [-Wunused-function] > static bool suppress_message_printing(int level) { re

Re: [PATCH] net/9p/client.c: add missing '\n' at the end of p9_debug()

2018-07-10 Thread jiangyiwen
On 2018/7/10 14:56, piaojun wrote: > In p9_client_getattr_dotl(), we should add '\n' at the end of printing > log. > > Signed-off-by: Jun Piao Reviewed-by: Yiwen Jiang > --- > net/9p/client.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/9p/client.c b/net/9p/cl

Re: [PATCH] ARM: ftrace: Only set kernel memory back to read-only after boot

2018-07-10 Thread Stefan Agner
On 04.07.2018 13:30, Stefan Agner wrote: > On 21.06.2018 18:47, Steven Rostedt wrote: >> From: Steven Rostedt (VMware) >> >> Dynamic ftrace requires modifying the code segments that are usually >> set to read-only. To do this, a per arch function is called both before >> and after the ftrace modif

Re: linux-next: build warning after merge of the random tree

2018-07-10 Thread Stephen Rothwell
Hi all, On Mon, 18 Jun 2018 15:29:00 +1000 "Tobin C. Harding" wrote: > > On Mon, Jun 18, 2018 at 01:35:23PM +1000, Stephen Rothwell wrote: > > > > On Fri, 8 Jun 2018 13:37:48 +1000 Stephen Rothwell > > wrote: > > > > > > After merging the random tree, today's linux-next build (arm > > > mult

Re: linux-next: build warning after merge of the scsi tree

2018-07-10 Thread Stephen Rothwell
Hi all, On Wed, 20 Jun 2018 13:29:10 +1000 Stephen Rothwell wrote: > > After merging the scsi tree, today's linux-next build (powerpc > allyesconfig) produced this warning: > > In file included from include/target/target_core_base.h:7:0, > from drivers/target/target_core_tmr.c:

Re: [PATCHv2 1/7] tools: build: Fixup host c flags

2018-07-10 Thread Jiri Olsa
On Mon, Jul 09, 2018 at 05:45:56PM -0700, Laura Abbott wrote: > Commit 0c3b7e42616f ("tools build: Add support for host programs format") > introduced host_c_flags which referenced CHOSTFLAGS. The actual name of the > variable is HOSTCFLAGS. Fix this up. > > Fixes: 0c3b7e42616f ("tools build: Add

Re: [PATCHv2 2/7] tools: build: Use HOSTLDFLAGS with fixdep

2018-07-10 Thread Jiri Olsa
On Mon, Jul 09, 2018 at 05:45:57PM -0700, Laura Abbott wrote: > The final link of fixdep uses LDFLAGS but not the existing HOSTLDFLAGS. > Fix this. > > Signed-off-by: Laura Abbott Acked-by: Jiri Olsa thanks, jirka > --- > v2: Switch to just using HOSTLDFLAGS instead of both LDFLAGS and > HOST

linux-next: Tree for Jul 10

2018-07-10 Thread Stephen Rothwell
Hi all, Changes since 20180709: The vfs tree gained conflicts against the overlayfs tree. The rdma tree gained a conflict against the rdma-fixes tree. The akpm-current tree gained a conflict against the pci tree. Non-merge commits (relative to Linus' tree): 5017 5138 files changed, 186644 ins

Re: [PATCH 2/2] mips: mm: Discard ioremap_uncached_accelerated() method

2018-07-10 Thread Serge Semin
On Tue, Jul 10, 2018 at 09:15:17AM +0200, Mathieu Malaterre wrote: > ' > On Mon, Jul 9, 2018 at 3:57 PM Serge Semin wrote: > > > > Adaptive ioremap_wc() method is now available (see "mips: mm: > > Create UCA-based ioremap_wc() method" commit). We can use it for > > UCA-featured MMIO transactions

Re: [PATCH -mm -v4 14/21] mm, cgroup, THP, swap: Support to move swap account for PMD swap mapping

2018-07-10 Thread Huang, Ying
Daniel Jordan writes: > On Fri, Jun 22, 2018 at 11:51:44AM +0800, Huang, Ying wrote: >> Because there is no way to prevent a huge swap cluster from being >> split except when it has SWAP_HAS_CACHE flag set. > > What about making get_mctgt_type_thp take the cluster lock? That function > would be

Re: [PATCH 0/2] mm/fs: put_user_page() proposal

2018-07-10 Thread Jan Kara
On Mon 09-07-18 13:56:57, Jason Gunthorpe wrote: > On Mon, Jul 09, 2018 at 09:47:40PM +0200, Jan Kara wrote: > > On Mon 09-07-18 10:16:51, Matthew Wilcox wrote: > > > On Mon, Jul 09, 2018 at 06:08:06PM +0200, Jan Kara wrote: > > > > On Mon 09-07-18 18:49:37, Nicholas Piggin wrote: > > > > > The pro

[PATCH] gpio: mxc: add power management support

2018-07-10 Thread Anson Huang
GPIO registers could lose context on some i.MX SoCs, like on i.MX7D, when enter LPSR mode, the whole SoC will be powered off except LPSR domain, GPIO banks will lose context in this case, need to restore the context after resume from LPSR mode. This patch adds GPIO save/restore for those necessary

Re: [PATCH] kernel.h: Add for_each_if()

2018-07-10 Thread Daniel Vetter
On Mon, Jul 09, 2018 at 04:30:01PM -0700, Andrew Morton wrote: > On Mon, 9 Jul 2018 18:25:09 +0200 Daniel Vetter > wrote: > > > To avoid compilers complainig about ambigious else blocks when putting > > an if condition into a for_each macro one needs to invert the > > condition and add a dummy

[PATCH 2/2] arm64: dts: mt7622: update a clock property for UART0

2018-07-10 Thread Ryder Lee
The input clock of UART0 should be CLK_PERI_UART0_PD. Signed-off-by: Ryder Lee --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index 8cdec52..4caa

[PATCH 1/2] arm64: dts: mt7622: add some misc device nodes

2018-07-10 Thread Ryder Lee
Add some misc nodes support - timer and ARM CCI-400. Signed-off-by: Ryder Lee --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 36 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi in

Re: [RFC PATCH v2] watchdog: sp805: Add clock-frequency property

2018-07-10 Thread Srinath Mannam
Hi Guenter, Thank you for your feedback. Please find my answers in lined. On Mon, Jul 9, 2018 at 7:15 PM, Guenter Roeck wrote: > On 07/09/2018 03:19 AM, Srinath Mannam wrote: >> >> When using ACPI node, binding clock devices are >> not available as device tree, So clock-frequency >> property giv

Re: [RFC PATCH v2] watchdog: sp805: Add clock-frequency property

2018-07-10 Thread Srinath Mannam
Hi Guenter, I missed your comment about "Clearing wdt->clk is useless." I will remove that line. Regards, Srinath. On Tue, Jul 10, 2018 at 1:27 PM, Srinath Mannam wrote: > Hi Guenter, > > Thank you for your feedback. Please find my answers in lined. > > On Mon, Jul 9, 2018 at 7:15 PM, Guenter R

Re: [PATCH 07/18] fs_context: fix double free of legacy_fs_context data

2018-07-10 Thread David Howells
Eric Biggers wrote: > Why isn't this done in the same place that ->init_fs_context() would otherwise > be called? It logically does the same thing, right? Fair point. How about the attached incremental change? It breaks the legacy context initialisation out into its own init function and just

Re: [PATCH v3] soc: imx: gpc: Turn PU domain on/off in sleep on 6qp

2018-07-10 Thread Lucas Stach
Am Dienstag, den 10.07.2018, 00:27 +0200 schrieb Ulf Hansson: > > On 6 July 2018 at 18:46, Leonard Crestez wrote: > > On imx6qp power gating on the PU domain is disabled because of errata > > ERR009619. However power gating during suspend/resume can still be > > performed. > > Sounds a bit hand w

Re: [PATCH] netfilter: NFT_SOCKET don't use NF_SOCKET_IPV6 without NF_TABLES_IPV6

2018-07-10 Thread Máté Eckl
On Tue, Jul 10, 2018 at 10:02:27AM +0200, Máté Eckl wrote: > On Mon, Jul 09, 2018 at 11:35:09PM +0200, Arnd Bergmann wrote: > > It is now possible to build the nft_socket module as built-in when > > NF_TABLES_IPV6 is disabled, and have NF_SOCKET_IPV6=m set manually. > > > > In this case, the NF_SO

Re: [PATCH v12 05/13] x86/sgx: architectural structures

2018-07-10 Thread Andy Shevchenko
On Fri, Jul 6, 2018 at 12:50 AM, wrote: > On July 5, 2018 1:09:12 PM PDT, Jarkko Sakkinen > wrote: >>On Thu, Jul 05, 2018 at 08:31:42AM -0700, Dave Hansen wrote: >>> On 07/03/2018 11:19 AM, Jarkko Sakkinen wrote: >>> > +struct sgx_secs { >>> > + uint64_t size; >>> > + uint64_t base; >>> > +

INFO: task hung in utimes_common

2018-07-10 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:d00d6d9a339d Add linux-next specific files for 20180709 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=17fdd90c40 kernel config: https://syzkaller.appspot.com/x/.config?x=94fe2b586beccacd dashb

[PATCH v5 17/22] dt-bindings: media: Document bindings for the Sunxi-Cedrus VPU driver

2018-07-10 Thread Paul Kocialkowski
This adds a device-tree binding document that specifies the properties used by the Sunxi-Cedurs VPU driver, as well as examples. Signed-off-by: Paul Kocialkowski Reviewed-by: Rob Herring --- .../bindings/media/sunxi-cedrus.txt | 54 +++ 1 file changed, 54 insertions(+)

Re: INFO: task hung in utimes_common

2018-07-10 Thread Dmitry Vyukov
On Tue, Jul 10, 2018 at 10:08 AM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:d00d6d9a339d Add linux-next specific files for 20180709 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=17fdd90c40 > kernel config: ht

Re: [PATCH] mmc: core: improve rationality of bus width setting for HS400es

2018-07-10 Thread Ulf Hansson
On 10 July 2018 at 07:04, Fang Hongjie(方洪杰) wrote: >> On 9 July 2018 at 08:47, Hongjie Fang wrote: >> > mmc_select_hs400es() calls mmc_select_bus_width() which will try to >> > set 4bit transfer mode if fail to set 8bit mode. The problem is that >> > the bus width should not be set to 4bit in HS4

Re: 回复:Re:[RFC] a question about reuse hwpoison page in soft_offline_page()

2018-07-10 Thread Naoya Horiguchi
Hi Xishi, On Mon, Jul 09, 2018 at 09:13:07PM +0800, 裘稀石(稀石) wrote: > Hi Naoya, > > - does the same issue happens on soft offlining of normal pages? > > I thinks yes. We can do anything during get_any_page and set hwpoison flag. > soft_offline_page > get_any_page > soft_offline_free_page

Re: [PATCH 0/2] mm/fs: put_user_page() proposal

2018-07-10 Thread Jan Kara
On Mon 09-07-18 13:00:49, Matthew Wilcox wrote: > On Mon, Jul 09, 2018 at 09:47:40PM +0200, Jan Kara wrote: > > On Mon 09-07-18 10:16:51, Matthew Wilcox wrote: > > > > 2) What to do when some page is pinned but we need to do e.g. > > > > clear_page_dirty_for_io(). After some more thinking I agree w

[PATCH v1 0/4] add memcpy support for sdma

2018-07-10 Thread Robin Gong
This patchset is to add memcpy interface for imx-sdma, besides,to support dmatest and enable config related, so that easily test dma without any other device support such as uart/audio/spi... Robin Gong (4): dmaengine: imx-sdma: add memcpy interface dmaengine: imx-sdma: add check_bd_buswidth()

[PATCH V2 0/4] Fix kvm misconceives NVDIMM pages as reserved mmio

2018-07-10 Thread Zhang Yi
For device specific memory space, when we move these area of pfn to memory zone, we will set the page reserved flag at that time, some of these reserved for device mmio, and some of these are not, such as NVDIMM pmem. Now, we map these dev_dax or fs_dax pages to kvm for DIMM/NVDIMM backend, since

[PATCH v1 0/4] add memcpy support for sdma

2018-07-10 Thread Robin Gong
This patchset is to add memcpy interface for imx-sdma, besides,to support dmatest and enable config related, so that easily test dma without any other device support such as uart/audio/spi... Robin Gong (4): dmaengine: imx-sdma: add memcpy interface dmaengine: imx-sdma: add check_bd_buswidth()

[PATCH V2 3/4] mm: add a function to differentiate the pages is from DAX device memory

2018-07-10 Thread Zhang Yi
DAX driver hotplug the device memory and move it to memory zone, these pages will be marked reserved flag, however, some other kernel componet will misconceive these pages are reserved mmio (ex: we map these dev_dax or fs_dax pages to kvm for DIMM/NVDIMM backend). Together with the type MEMORY_DEVI

[PATCH v1 1/4] dmaengine: imx-sdma: add memcpy interface

2018-07-10 Thread Robin Gong
Add MEMCPY support, meanwhile, add SDMA_BD_MAX_CNT instead of '0x'. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 104 ++--- 1 file changed, 98 insertions(+), 6 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c ind

[PATCH v1 4/4] ARM: configs: imx_v6_v7_defconfig: add DMATEST support

2018-07-10 Thread Robin Gong
Add DMATEST support and remove invalid options, such as CONFIG_BT_HCIUART_H4 is default enabled and CONFIG_SND_SOC_IMX_WM8962 is out of date and not appear in any config file. Signed-off-by: Robin Gong --- arch/arm/configs/imx_v6_v7_defconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(

[PATCH v1 3/4] dmaengine: imx-sdma: support dmatest

2018-07-10 Thread Robin Gong
dmatest(memcpy) will never call dmaengine_slave_config before prep, so jobs in dmaengine_slave_config need to be moved into somewhere before device_prep_dma_memcpy. Besides, dmatest never setup chan ->private as other common case like uart/audio/spi will always setup chan->private. Here check it to

[PATCH v1 2/4] dmaengine: imx-sdma: add check_bd_buswidth() to kill the dulicated code

2018-07-10 Thread Robin Gong
Add check_bd_buswidth() to minimize the code size. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 64 +++--- 1 file changed, 29 insertions(+), 35 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 27ccabf..ed2267d

[PATCH V2 4/4] kvm: add a check if pfn is from NVDIMM pmem.

2018-07-10 Thread Zhang Yi
For device specific memory space, when we move these area of pfn to memory zone, we will set the page reserved flag at that time, some of these reserved for device mmio, and some of these are not, such as NVDIMM pmem. Now, we map these dev_dax or fs_dax pages to kvm for DIMM/NVDIMM backend, since

Re: [RFC PATCH 3/3] sdhci: arasan: Add support to read Tap Delay values from DT

2018-07-10 Thread Ulf Hansson
On 7 June 2018 at 14:11, Manish Narani wrote: > This patch adds support for reading Tap Delay values from Device Tree > and write them via eemi calls. The macros containing these tap delay > values are removed from the driver. > > Signed-off-by: Manish Narani > --- > drivers/mmc/host/sdhci-of-ar

Re: [RFC PATCH v4 03/12] PM: Introduce an Energy Model management framework

2018-07-10 Thread Quentin Perret
On Monday 09 Jul 2018 at 20:07:31 (+0200), Dietmar Eggemann wrote: > On 06/28/2018 01:40 PM, Quentin Perret wrote: > This em_rescale_cpu_capacity() function is still very much specific to > systems with asymmetric cpu capacity (Arm big.Little/DynamIQ). Only after > cpufreq is up we can determine th

Re: [PATCH 0/3] fix selftests compiling errors and warnings

2018-07-10 Thread Li Zhijian
ping On 07/02/2018 11:53 AM, Li Zhijian wrote: Li Zhijian (3): selftests/android: fix compiling error selftests/android: initialize heap_type to avoid compiling warning selftests/gpio: unset OUTPUT for build tools/gpio tools/testing/selftests/android/ion/Makefile| 5 -

Re: [V9fs-developer] [PATCH] p9_check_errors() validate PDU length

2018-07-10 Thread Dominique Martinet
Tomas Bortoli wrote on Tue, Jul 10, 2018: > > This however gets more complicated once you start factoring in that > > change I suggested about p9_parse_header not setting size (and checking > > size) because trans_fd relies on it; so I'm not sure how we should > > proceed. > > Mmh, me neither. I do

[PATCH v2 1/3] clk: meson: add DT documentation for emmc clock controller

2018-07-10 Thread Yixun Lan
Document the MMC sub clock controller driver, the potential consumer of this driver is MMC or NAND. Signed-off-by: Yixun Lan --- .../bindings/clock/amlogic,mmc-clkc.txt | 31 +++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/am

[PATCH v2 3/3] clk: meson: add sub MMC clock controller driver

2018-07-10 Thread Yixun Lan
The patch will add a MMC clock controller driver which used by MMC or NAND, It provide a mux and divider clock, and three phase clocks - core, tx, tx. Two clocks are provided as the parent of MMC clock controller from upper layer clock controller - eg "amlogic,axg-clkc" in AXG platform. To specif

[PATCH v2 0/3] clk: meson: add a sub EMMC clock controller support

2018-07-10 Thread Yixun Lan
This driver will add a MMC clock controller driver support. The original idea about adding a clock controller is during the discussion in the NAND driver mainline effort[1]. I've tested this in the S400 board (AXG platform) by using NAND driver. Changes since v1 [2]: - implement phase clock - u

[PATCH v2 2/3] clk: meson: add sub MMC clock dt-bindings IDs

2018-07-10 Thread Yixun Lan
Add two clock bindings IDs which provided by the MMC clock controller, These two clocks will be used by MMC or NAND driver. Signed-off-by: Yixun Lan --- .../dt-bindings/clock/amlogic,meson-mmc-clkc.h | 16 1 file changed, 16 insertions(+) create mode 100644 include/dt-binding

Re: [v2,3/3] i2c: at91: added slave mode support

2018-07-10 Thread Ludovic Desroches
On Mon, Jul 09, 2018 at 05:51:36PM +0200, Wolfram Sang wrote: > > > Sorry for having not catched it. If I remember well, it was the only > > issue I had while testing the slave support. > > > > > > > > BTW maybe I asked already and forgot: is this IP core capable of being > > > master and slave

[PATCH 1/2] clk: imx: add ocram_s clock for i.mx6sx

2018-07-10 Thread Anson Huang
i.MX6SX has a 16KB always-on ocram bank called ocram_s, and its clock gate in CCM CCGR1 CG14 needs to be enabled before access, add it to clock tree. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx6sx.c | 1 + include/dt-bindings/clock/imx6sx-clock.h | 3 ++- 2 files changed,

[PATCH 2/2] ARM: dts: imx6sx: add ocram_s support

2018-07-10 Thread Anson Huang
i.MX6SX has a 16KB always-on ocram bank called ocram_s, enable it as another mmio sram. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sx.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi index 596763c..9923739 1006

[RFC PATCH v3] watchdog: sp805: Add clock-frequency property

2018-07-10 Thread Srinath Mannam
When using ACPI node, binding clock devices are not available as device tree, So clock-frequency property given in _DSD object of ACPI device is used to calculate Watchdog rate. Signed-off-by: Srinath Mannam --- drivers/watchdog/sp805_wdt.c | 35 +-- 1 file change

Re: [PATCH v6 21/21] s390: doc: detailed specifications for AP virtualization

2018-07-10 Thread Pierre Morel
On 09/07/2018 17:50, Halil Pasic wrote: On 07/09/2018 05:21 AM, Pierre Morel wrote: On 03/07/2018 01:10, Halil Pasic wrote: On 06/29/2018 11:11 PM, Tony Krowiak wrote: This patch provides documentation describing the AP architecture and design concepts behind the virtualization of AP devic

[PATCH 3/3] KVM: x86: expose MOVDIR64B CPU feature into VM.

2018-07-10 Thread Jingqi Liu
MOVDIR64B moves 64-bytes as direct-store with 64-bytes write atomicity. Direct store is implemented by using write combining (WC) for writing data directly into memory without caching the data. Availability of the MOVDIR64B instruction is indicated by the presence of the CPUID feature flag MOVDIR6

[PATCH 1/3] KVM: x86: expose UMWAIT/UMONITOR/TPAUSE CPU features into VM.

2018-07-10 Thread Jingqi Liu
UMONITOR, UMWAIT, and TPAUSE are a set of user wait instructions. UMONITOR arms address monitoring hardware using an address. A store to an address within the specified address range triggers the monitoring hardware to wake up the processor waiting in umwait. UMWAIT instructs the processor to ent

[PATCH 0/3] KVM: x86: expose a few new features into VM.

2018-07-10 Thread Jingqi Liu
A few new features including user wait (umwait, umonitor, tpause) and direct stores (movdiri and movdir64b) will be available in Intel Snow Ridge, and need to be exposed to guest VM. The release document ref below link: https://software.intel.com/sites/default/files/managed/c5/15/\ architecture-in

[PATCH 2/3] KVM: x86: expose MOVDIRI CPU feature into VM.

2018-07-10 Thread Jingqi Liu
MOVDIRI moves doubleword or quadword from register to memory through direct store which is implemented by using write combining (WC) for writing data directly into memory without caching the data. Availability of the MOVDIRI instruction is indicated by the presence of the CPUID feature flag MOVDIR

[PATCH v5 1/7] arm_pmu: Clean up maximum period handling

2018-07-10 Thread Suzuki K Poulose
Each PMU defines their max_period of the counter as the maximum value that can be counted. Since all the PMU backends support 32bit counters by default, let us remove the redundant field. No functional changes. Cc: Will Deacon Acked-by: Mark Rutland Reviewed-by: Julien Thierry Signed-off-by: S

[PATCH v5 3/7] arm_pmu: Add support for 64bit event counters

2018-07-10 Thread Suzuki K Poulose
Each PMU has a set of 32bit event counters. But in some special cases, the events could be counted using counters which are effectively 64bit wide. e.g, Arm V8 PMUv3 has a 64 bit cycle counter which can count only the CPU cycles. Also, the PMU can chain the event counters to effectively count as a

[PATCH v5 4/7] arm_pmu: Tidy up clear_event_idx call backs

2018-07-10 Thread Suzuki K Poulose
The armpmu uses get_event_idx callback to allocate an event counter for a given event, which marks the selected counter as "used". Now, when we delete the counter, the arm_pmu goes ahead and clears the "used" bit and then invokes the "clear_event_idx" call back, which kind of splits the job between

[PATCH v5 5/7] arm64: perf: Clean up armv8pmu_select_counter

2018-07-10 Thread Suzuki K Poulose
armv8pmu_select_counter always returns the passed idx. So let us make that void and get rid of the pointless checks. Suggested-by: Mark Rutland Cc: Will Deacon Acked-by: Mark Rutland Signed-off-by: Suzuki K Poulose --- arch/arm64/kernel/perf_event.c | 29 +++-- 1 file

[PATCH v5 2/7] arm_pmu: Change API to support 64bit counter values

2018-07-10 Thread Suzuki K Poulose
Convert the {read/write}_counter APIs to handle 64bit values to enable supporting chained event counters. The backends still use 32bit values and we pass them 32bit values only. So in effect there are no functional changes. Cc: Will Deacon Acked-by: Mark Rutland Reviewed-by: Julien Thierry Sign

[PATCH v5 7/7] arm64: perf: Add support for chaining event counters

2018-07-10 Thread Suzuki K Poulose
Add support for 64bit event by using chained event counters and 64bit cycle counters. PMUv3 allows chaining a pair of adjacent 32-bit counters, effectively forming a 64-bit counter. The low/even counter is programmed to count the event of interest, and the high/odd counter is programmed to count t

[PATCH v5 6/7] arm64: perf: Disable PMU while processing counter overflows

2018-07-10 Thread Suzuki K Poulose
The arm64 PMU updates the event counters and reprograms the counters in the overflow IRQ handler without disabling the PMU. This could potentially cause skews in for group counters, where the overflowed counters may potentially loose some event counts, while they are reprogrammed. To prevent this,

[PATCH v5 0/7] arm64: perf: Support for chained counters

2018-07-10 Thread Suzuki K Poulose
This series adds support for counting PMU events using 64bit counters for arm64 PMU. The Arm v8 PMUv3 supports combining two adjacent 32bit counters (low even and hig odd counters) to count a given "event" in 64bit mode. This series adds the support for 64bit events in the core arm_pmu driver in

Re: [PATCH] Revert "arm64: Use aarch64elf and aarch64elfb emulation mode variants"

2018-07-10 Thread Will Deacon
Thanks, Laura. I'll take this as a fix, and add a comment to the Makefile to justify why we need the linux target. Will On Mon, Jul 09, 2018 at 01:09:56PM -0700, Laura Abbott wrote: > This reverts commit 38fc4248677552ce35efc09902fdcb06b61d7ef9. > > This breaks compilation with Fedora gcc-8 too

Re: linux-next: build warning after merge of the printk tree

2018-07-10 Thread Petr Mladek
On Tue 2018-07-10 12:46:14, Maninder Singh wrote: > Hi Petr, > > > Hi all, > > > After merging the printk tree, today's linux-next build (x86_64 > > allnoconfig) produced this warning: > > > kernel/printk/printk.c:2033:13: warning: 'suppress_message_printing' > > defined but not used [-Wunus

Re: [PATCH] locking/lockdep: Dump state of percpu_rwsem upon hung up.

2018-07-10 Thread Will Deacon
On Tue, Jul 10, 2018 at 03:10:51PM +0900, Tetsuo Handa wrote: > From 2642b4a1904259384f2018ea8df03ac49509c57a Mon Sep 17 00:00:00 2001 > From: Tetsuo Handa > Date: Tue, 10 Jul 2018 15:01:20 +0900 > Subject: [PATCH] locking/rwsem: Convert the other sem->count to > 'atomic_long_t' > > Since "locki

Re: [PATCH 0/3] pinctrl: meson-g12a: add pinctrl driver support

2018-07-10 Thread Yixun Lan
HI Martin On 07/10/18 06:07, Martin Blumenstingl wrote: > Hi Linus, > > On Mon, Jul 9, 2018 at 3:35 PM Linus Walleij wrote: >> >> On Wed, Jul 4, 2018 at 4:48 PM Yixun Lan wrote: >>> >>> This patch series try to add pinctrl driver support for >>> the Meson-G12A SoC. >>> >>> >>> Yixun Lan (3): >>

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-10 Thread Peter Zijlstra
On Mon, Jul 09, 2018 at 01:42:48PM -0700, Paul E. McKenney wrote: > On Mon, Jul 09, 2018 at 09:35:38PM +0100, David Woodhouse wrote: > > > > > > On Mon, 2018-07-09 at 13:34 -0700, Paul E. McKenney wrote: > > > > > > So here are the possible code paths when .rcu_urgent_qs is set to true: > > > >

Re: [PATCH 2/3] dt-bindings: clk: meson-g12a: Add G12A EE Clock Bindings

2018-07-10 Thread Jerome Brunet
On Tue, 2018-07-10 at 00:13 +0200, Martin Blumenstingl wrote: > On Mon, Jul 9, 2018 at 1:13 PM Jian Hu wrote: > > > > Add dt-bindings headers for the Meson-G12A's Everything-Else > > part clock controller. > > I wonder if this should be folded into patch #1 along with an update > to Documentatio

Re: cgroup trace events acquire sleeping locks

2018-07-10 Thread Peter Zijlstra
On Mon, Jul 09, 2018 at 04:30:10PM -0400, Steven Rostedt wrote: > On Mon, 9 Jul 2018 22:22:15 +0200 > Sebastian Andrzej Siewior wrote: > > > On 2018-07-09 15:01:54 [-0400], Steven Rostedt wrote: > > > > which is the trace_cgroup_rmdir() trace event in cgroup_rmdir(). The > > > > trace event invok

[PATCH v5 1/2] KVM: Switch 'requests' to be 64-bit (explicitly)

2018-07-10 Thread KarimAllah Ahmed
Switch 'requests' to be explicitly 64-bit and update BUILD_BUG_ON check to use the size of "requests" instead of the hard-coded '32'. That gives us a bit more room again for arch-specific requests as we already ran out of space for x86 due to the hard-coded check. The only exception here is ARM32

[PATCH v5 2/2] kvm: nVMX: Introduce KVM_CAP_NESTED_STATE

2018-07-10 Thread KarimAllah Ahmed
From: Jim Mattson For nested virtualization L0 KVM is managing a bit of state for L2 guests, this state can not be captured through the currently available IOCTLs. In fact the state captured through all of these IOCTLs is usually a mix of L1 and L2 state. It is also dependent on whether the L2 gu

Re: [PATCH v11 2/2] dt: qcom: Add qcom-cpufreq-kryo driver configuration

2018-07-10 Thread Niklas Cassel
On Wed, May 23, 2018 at 04:11:31PM +0300, Ilia Lin wrote: > 1. Add NVMEM node for the speedbin > 2. Add definitions for all possible MSM8996 CPU OPPs. > The qcom-cpufreq-kryo driver will select the appropriate subset. > > Signed-off-by: Ilia Lin > Acked-by: Viresh Kumar > --- > arch/arm64/boot/

Re: [PATCH 1/3] dt-bindings: clk: g12a: New binding for Meson-G12A SoC

2018-07-10 Thread Jerome Brunet
On Mon, 2018-07-09 at 19:12 +0800, Jian Hu wrote: > Add new binding for Meson-G12A SoC Everything-Else part nitpick: I would prefer if the words 'clock' and 'controller' was somewhere in the description. Maybe "add new clock controller compatible for the EE domain of the g12a SoC" ? > > Signed-

Re: 4.18-rc* regression: x86-32 troubles (with timers?)

2018-07-10 Thread Pavel Machek
On Wed 2018-07-04 14:41:08, Meelis Roos wrote: > I tried 4.18.0-rc1-00023-g9ffc59d57228 and now > 4.18.0-rc3-00113-gfc36def997cf on a 32-bit server and then some other > 32-bit machines, and got half-failed bootup - kernel and userspace come > up but some services fail to start, including networ

Re: [PATCH] locking/lockdep: Dump state of percpu_rwsem upon hung up.

2018-07-10 Thread Peter Zijlstra
On Tue, Jul 10, 2018 at 03:10:51PM +0900, Tetsuo Handa wrote: > From 2642b4a1904259384f2018ea8df03ac49509c57a Mon Sep 17 00:00:00 2001 > From: Tetsuo Handa > Date: Tue, 10 Jul 2018 15:01:20 +0900 > Subject: [PATCH] locking/rwsem: Convert the other sem->count to > 'atomic_long_t' > > Since "locki

Re: [PATCH] Revert "arm64: Use aarch64elf and aarch64elfb emulation mode variants"

2018-07-10 Thread Paul Kocialkowski
Hi, On Tue, 2018-07-10 at 10:01 +0100, Will Deacon wrote: > Thanks, Laura. > > I'll take this as a fix, and add a comment to the Makefile to justify > why we need the linux target. So this comes down to either breaking fedora/debian toolchains (that don't support elf emulation mode) or breaking

Re: 4.18-rc* regression: x86-32 troubles (with timers?)

2018-07-10 Thread Pavel Machek
On Wed 2018-07-04 14:41:08, Meelis Roos wrote: > I tried 4.18.0-rc1-00023-g9ffc59d57228 and now > 4.18.0-rc3-00113-gfc36def997cf on a 32-bit server and then some other > 32-bit machines, and got half-failed bootup - kernel and userspace come > up but some services fail to start, including networ

Re: [PATCH v3] soc: imx: gpc: Turn PU domain on/off in sleep on 6qp

2018-07-10 Thread Ulf Hansson
On 10 July 2018 at 10:05, Lucas Stach wrote: > Am Dienstag, den 10.07.2018, 00:27 +0200 schrieb Ulf Hansson: >> > On 6 July 2018 at 18:46, Leonard Crestez wrote: >> > On imx6qp power gating on the PU domain is disabled because of errata >> > ERR009619. However power gating during suspend/resume c

Re: [PATCH] Revert "arm64: Use aarch64elf and aarch64elfb emulation mode variants"

2018-07-10 Thread Will Deacon
On Tue, Jul 10, 2018 at 11:30:39AM +0200, Paul Kocialkowski wrote: > On Tue, 2018-07-10 at 10:01 +0100, Will Deacon wrote: > > Thanks, Laura. > > > > I'll take this as a fix, and add a comment to the Makefile to justify > > why we need the linux target. > > So this comes down to either breaking f

Re: [PATCH V2] MIPS: implement smp_cond_load_acquire() for Loongson-3

2018-07-10 Thread Peter Zijlstra
On Tue, Jul 10, 2018 at 12:26:34PM +0800, Huacai Chen wrote: > Hi, Paul and Peter, > > I think we find the real root cause, READ_ONCE() doesn't need any > barriers, the problematic code is queued_spin_lock_slowpath() in > kernel/locking/qspinlock.c: > > if (old & _Q_TAIL_MASK) { >

Re: [PATCH] KVM: Switch 'requests' to be 64-bit (explicitly)

2018-07-10 Thread Raslan, KarimAllah
On Thu, 2018-07-05 at 14:51 +0100, Mark Rutland wrote: > On Sun, Apr 15, 2018 at 12:26:44AM +0200, KarimAllah Ahmed wrote: > > > > Switch 'requests' to be explicitly 64-bit and update BUILD_BUG_ON check to > > use the size of "requests" instead of the hard-coded '32'. > > > > That gives us a bit

Re: [PATCH v2] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-07-10 Thread Andrea Parri
On Mon, Jul 09, 2018 at 04:01:57PM -0400, Alan Stern wrote: > More than one kernel developer has expressed the opinion that the LKMM > should enforce ordering of writes by locking. In other words, given I'd like to step back on this point: I still don't have a strong opinion on this, but all this

Re: [PATCH] locking/rwsem: Convert the other sem->count to 'atomic_long_t'

2018-07-10 Thread kbuild test robot
/linux/commits/Tetsuo-Handa/locking-rwsem-Convert-the-other-sem-count-to-atomic_long_t/20180710-141553 config: parisc-c3000_defconfig (attached as .config) compiler: hppa-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin

Re: [PATCH] locking/rwsem: Convert the other sem->count to 'atomic_long_t'

2018-07-10 Thread kbuild test robot
/linux/commits/Tetsuo-Handa/locking-rwsem-Convert-the-other-sem-count-to-atomic_long_t/20180710-141553 config: m68k-m5475evb_defconfig (attached as .config) compiler: m68k-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin

Re: [PATCH] mm, oom: remove sleep from under oom_lock

2018-07-10 Thread Michal Hocko
On Mon 09-07-18 15:49:53, David Rientjes wrote: > On Mon, 9 Jul 2018, Michal Hocko wrote: > > > From: Michal Hocko > > > > Tetsuo has pointed out that since 27ae357fa82b ("mm, oom: fix concurrent > > munlock and oom reaper unmap, v3") we have a strong synchronization > > between the oom_killer a

Re: kconfig usage in automatic kernel test

2018-07-10 Thread Cao jin
On 07/08/2018 10:15 AM, Masahiro Yamada wrote: > 2018-07-06 17:49 GMT+09:00 Cao jin : >> Masahiro-san, >> >> I am writing some utility for internal kdump test with latest kernel, >> my purpose is to test the new introduced kernel feature. For automatical >> test, I see several config target co

[PATCH v4 4/5] rtc: isl1208: set ev-evienb bit from device tree

2018-07-10 Thread Denis OSTERLAND
From: Denis Osterland Add support to disable event in pull-up. Signed-off-by: Denis Osterland --- drivers/rtc/rtc-isl1208.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-isl1208.c b/drivers/rtc/rtc-isl1208.c index bbe08c1ab9f3..2f18ee3c615a 100644 ---

[PATCH v4 0/5] rtc: isl1208: fixes, documentation and isl1219 support

2018-07-10 Thread Denis OSTERLAND
changes since v3: Add function to rtc-sysfs to add a group to device groups field, between alloc and register calls. Remove isl1208 struct to reduce patch footprint. Change prefix of defines and functions only available on isl1219. Use DEVICE_ATTR_RW macro for timestamp0 attribute. Call validate tm

[PATCH v4 2/5] rtc: isl1208: add support for isl1219 with tamper detection

2018-07-10 Thread Denis OSTERLAND
From: Michael Grzeschik We add support for the ISL1219 chip that got an integrated tamper detection function. This patch implements the feature by adding an additional timestamp0 file to sysfs device path. This file contains seconds since epoch, if an event occurred, or is empty, if none occurred

[PATCH v4 3/5] rtc: isl1208: Add "evdet" interrupt source for isl1219.

2018-07-10 Thread Denis OSTERLAND
From: Denis Osterland Add support for "evdet" named interrupt source. The check if i2c client irq matches evdet irq is needed for the case that there is only one interrupt named "evdet". In this case i2c client code handles this like an unnamed interrupt souce and assigns the value. Signed-off-

Re: [PATCH 3/3] clk: meson-g12a: Add EE Clock controller driver

2018-07-10 Thread Jerome Brunet
On Tue, 2018-07-10 at 09:21 +0800, Yixun Lan wrote: > HI Martin > > > On 07/10/18 05:53, Martin Blumenstingl wrote: > > On Mon, Jul 9, 2018 at 1:14 PM Jian Hu wrote: > > > > > > Add a Clock driver for the Everyting-Else part > > > of the Amlogic Meson-G12A SoC. > > > > > > Signed-off-by: Jian

[PATCH] KVM: Add coalesced PIO support

2018-07-10 Thread Wanpeng Li
Windows I/O, such as the real-time clock. The address register (port 0x70 in the RTC case) can use coalesced I/O, cutting the number of userspace exits by half when reading or writing the RTC. Guest access rtc like this: write register index to 0x70, then write or read data from 0x71. writing 0x7

[PATCH v4 1/5] rtc: sysfs: facilitate attribute add to rtc device

2018-07-10 Thread Denis OSTERLAND
From: Denis Osterland This patches addresses following problem: rtc_allocate_device devm_device_add_group <-- kernel oops / null pointer, because sysfs entry does not yet exist rtc_register_device rc = devm_device_add_group if (rc) return rc; <-- forbidden to

[PATCH v4 5/5] rtc: isl1219: add device tree docu

2018-07-10 Thread Denis OSTERLAND
From: Denis Osterland The devicetree documentation for the ISL1219 device tree binding is added with an short example. It is not a trivial device, because it supports two interrupt souces. Signed-off-by: Denis Osterland --- .../devicetree/bindings/rtc/isil,isl1219.txt | 29 +++

Re: [PATCH v4] driver core: add a debugfs entry to show deferred devices

2018-07-10 Thread Sebastian Reichel
Hi, On Sun, Jul 08, 2018 at 03:34:59PM +0200, Javier Martinez Canillas wrote: > With Device Trees (DT), the dependencies of the devices are defined in the > DT, then the drivers parse that information to lookup the needed resources > that have as dependencies. > > Since drivers and devices are re

[PATCH] doc: Replace smp_cond_acquire() with smp_cond_load_acquire()

2018-07-10 Thread Andrea Parri
Amend commit 1f03e8d2919270 ("locking/barriers: Replace smp_cond_acquire() with smp_cond_load_acquire()") by updating the documentation accordingly. Signed-off-by: Andrea Parri Cc: Alan Stern Cc: Will Deacon Cc: Peter Zijlstra Cc: Boqun Feng Cc: Nicholas Piggin Cc: David Howells Cc: Jade Al

  1   2   3   4   5   6   7   8   9   10   >