[PATCH] powerpc: get rid of PMD_PAGE_SIZE() and _PMD_SIZE

2018-05-15 Thread Christophe Leroy
PMD_PAGE_SIZE() is nowhere used and _PMD_SIZE is only used by PMD_PAGE_SIZE(). This patch removes them. Signed-off-by: Christophe Leroy --- Superseeds "powerpc: get rid of PMD_PAGE_SIZE()" sent a few minutes ago. arch/powerpc/include/asm/nohash/32/pte-40x.h | 3 --- arch/powerpc/include/asm/p

[PATCH] ARM: dts: imx51-zii-rdu1: cleanup eMMC node

2018-05-15 Thread Nikita Yushchenko
On RDU1, sdhc1 is used for eMMC, and that is 3.3V only. Thus configure device node not to probe it as SD/SDIO and not try 1.8V. Signed-off-by: Nikita Yushchenko --- arch/arm/boot/dts/imx51-zii-rdu1.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/imx51-zii-rdu1.dts

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

2018-05-15 Thread Stephen Rothwell
Hi all, After merging the drm tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c: In function 'init_user_pages': drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:632:3: error: implicit declaration of function 'release_pages';

Re: [RFC/RFT] [PATCH 00/10] Intel_pstate: HWP Dynamic performance boost

2018-05-15 Thread Juri Lelli
Hi Srinivas, On 15/05/18 21:49, Srinivas Pandruvada wrote: [...] > > Peter Zijlstra (1): > x86,sched: Add support for frequency invariance Cool! I was going to ask Peter about this patch. You beat me to it. :) I'll have a lokk at the set. BTW, just noticed that you Cc-ed me using my old add

Re: [PATCH net-next v2 2/2] drivers: net: Remove device_node checks with of_mdiobus_register()

2018-05-15 Thread Antoine Tenart
Hi Florian, On Tue, May 15, 2018 at 04:56:19PM -0700, Florian Fainelli wrote: > A number of drivers have the following pattern: > > if (np) > of_mdiobus_register() > else > mdiobus_register() > > which the implementation of of_mdiobus_register() now takes care of. > Remove that patte

Re: [PATCH] f2fs: Fix deadlock in shutdown ioctl

2018-05-15 Thread Chao Yu
On 2018/5/15 15:57, Sahitya Tummala wrote: > On Mon, May 14, 2018 at 11:39:42AM +0800, Chao Yu wrote: >> On 2018/5/10 21:20, Sahitya Tummala wrote: >>> f2fs_ioc_shutdown() ioctl gets stuck in the below path >>> when going down with full sync (F2FS_GOING_DOWN_FULLSYNC) >>> option. >>> >>> __switch_t

Re: [PATCH IB/core 2/2] IB/cm: Send authentic pkey in REQ msg and check eligibility of the pkeys

2018-05-15 Thread Håkon Bugge
> On 15 May 2018, at 21:04, Jason Gunthorpe wrote: > > On Tue, May 15, 2018 at 08:11:09PM +0200, Håkon Bugge wrote: >>> On 15 May 2018, at 02:38, Hal Rosenstock wrote: >>> >>> On 5/14/2018 5:02 PM, Jason Gunthorpe wrote: On Thu, May 10, 2018 at 05:16:28PM +0200, Håkon Bugge wrote:

[PATCH] powerpc: get rid of PMD_PAGE_SIZE()

2018-05-15 Thread Christophe Leroy
PMD_PAGE_SIZE() is nowhere used, this patch removes it Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/32/pte-40x.h | 2 -- arch/powerpc/include/asm/pte-common.h| 5 - 2 files changed, 7 deletions(-) diff --git a/arch/powerpc/include/asm/nohash/32/pte-40x.h b/ar

Re: linux-next: manual merge of the rockchip tree with the renesas tree

2018-05-15 Thread Simon Horman
Thanks Stephen, On Wed, May 16, 2018 at 11:39:18AM +1000, Stephen Rothwell wrote: > Hi all, > > On Thu, 3 May 2018 08:36:54 +1000 Stephen Rothwell > wrote: > > > > Today's linux-next merge of the rockchip tree got a conflict in: > > > > arch/arm64/configs/defconfig > > > > between commits:

Re: [J-core] [PATCH v5 00/22] sh: LANDISK and R2Dplus convert to device tree

2018-05-15 Thread Yoshinori Sato
On Tue, 15 May 2018 10:41:52 +0900, Rich Felker wrote: > > On Mon, May 07, 2018 at 10:40:34AM +0900, Yoshinori Sato wrote: > > On Thu, 03 May 2018 19:07:38 +0900, > > John Paul Adrian Glaubitz wrote: > > > > > > [1 ] > > > Hi Rich! > > > > > > On 05/03/2018 04:33 AM, Rich Felker wrote: > > > >

Re: [PATCH v10 23/25] mm: add speculative page fault vmstats

2018-05-15 Thread Laurent Dufour
On 16/05/2018 04:50, Ganesh Mahendran wrote: > 2018-04-17 22:33 GMT+08:00 Laurent Dufour : >> Add speculative_pgfault vmstat counter to count successful speculative page >> fault handling. >> >> Also fixing a minor typo in include/linux/vm_event_item.h. >> >> Signed-off-by: Laurent Dufour >> ---

Re: [PATCH 4/6] drm/panel: simple: Add support for Banana Pi 7" S070WV20-CT16 panel

2018-05-15 Thread Chen-Yu Tsai
On Mon, May 14, 2018 at 11:03 AM, Jagan Teki wrote: > On Thu, Apr 19, 2018 at 3:02 PM, Chen-Yu Tsai wrote: >> This panel is marketed as Banana Pi 7" LCD display. On the back is >> a sticker denoting the model name S070WV20-CT16. >> >> This is a 7" 800x480 panel connected through a 24-bit RGB inte

Re: [RFC/RFT] [PATCH 06/10] cpufreq / sched: Add interface to get utilization values

2018-05-15 Thread Viresh Kumar
On 15-05-18, 21:49, Srinivas Pandruvada wrote: > Added cpufreq_get_sched_util() to get the CFS, DL and max utilization > values for a CPU. This is required for getting utilization values > for cpufreq drivers outside of kernel/sched folder. > > Signed-off-by: Srinivas Pandruvada > --- > include/

[PATCH] ARM: dts: vf610-zii-dev: enable vf610 builtin temp sensor

2018-05-15 Thread Nikita Yushchenko
Vybrid has single internal temperature sensor connected to both internal ADC modules. vf610-zii-dev already has ADC0 enabled. Now, to get temperature sensor captured by iio_hwmon driver, need to configure iio_hwmon node to use that ADC. Signed-off-by: Nikita Yushchenko --- arch/arm/boot/dts/vf6

Re: [PATCH V4] clk: at91: PLL recalc_rate() now using cached MUL and DIV values

2018-05-15 Thread Stephen Boyd
Quoting Marcin Ziemianowicz (2018-04-29 12:01:11) > When a USB device is connected to the USB host port on the SAM9N12 then > you get "-62" error which seems to indicate USB replies from the device > are timing out. Based on a logic sniffer, I saw the USB bus was running > at half speed. > > The P

Re: [PATCH] ethernet: stmmac: dwmac-rk: Add GMAC support for px30

2018-05-15 Thread Shawn Lin
Hi David, On 2018/5/16 11:38, David Wu wrote: Add constants and callback functions for the dwmac on px30 soc. s/soc/SoC The base structure is the same, but registers and the bits in them moved slightly, and add the clk_mac_speed for the select s/moved/are moved of mac speed. for select

Re: [PATCH 3/3] types: use fixed width types without double-underscore prefix

2018-05-15 Thread Greg Kroah-Hartman
On Wed, May 16, 2018 at 10:07:50AM +0900, Masahiro Yamada wrote: > Hi Andrew, > > 2018-05-16 7:59 GMT+09:00 Andrew Morton : > > On Tue, 15 May 2018 11:22:05 +0900 Masahiro Yamada > > wrote: > > > >> This header file is not exported. It is safe to reference types > >> without double-underscore p

Re: [PATCH v9 1/2] arch/*: Add CONFIG_ARCH_HAVE_CMPXCHG64

2018-05-15 Thread Christoph Hellwig
> +config ARCH_HAVE_CMPXCHG64 > + bool 64-bit architectures must support this as long is 64-bits wide. So this should have a default y if 64BIT which also means you only need to explicitly select in on 32-bit architectures that support 64-bit cmpxchg.

Re: linux-next: build failure after merge of the kbuild tree

2018-05-15 Thread Masahiro Yamada
Stephen, 2018-05-15 14:50 GMT+09:00 Stephen Rothwell : > Hi Masahiro, > > After merging the kbuild tree, today's linux-next build (x86_64 > modules_install) failed like this: > > Usage: scripts/depmod.sh /sbin/depmod > Makefile:1314: recipe for target '_modinst_post' failed > > Caused by commit

Re: [PATCH v2 2/2] arm64: dts: exynos: add OF graph between USB-PHY and MUIC

2018-05-15 Thread Felipe Balbi
Krzysztof Kozlowski writes: > On Tue, May 15, 2018 at 2:12 PM, Andrzej Hajda wrote: >> OF graph describes USB data lanes between USB-PHY and respective MUIC. >> Since graph is present and DWC driver can use it to get extcon, obsolete >> extcon property can be removed. >> >> Signed-off-by: Andrze

Re: [PATCH 1/2] Convert target drivers to use sbitmap

2018-05-15 Thread Felipe Balbi
Hi, Matthew Wilcox writes: > From: Matthew Wilcox > > The sbitmap and the percpu_ida perform essentially the same task, > allocating tags for commands. Since the sbitmap is more used than > the percpu_ida, convert the percpu_ida users to the sbitmap API. > > Signed-off-by: Matthew Wilcox > --

Re: [RFC v3 4/5] virtio_ring: add event idx support in packed ring

2018-05-15 Thread Tiwei Bie
On Wed, May 16, 2018 at 01:01:04PM +0800, Jason Wang wrote: > On 2018年04月25日 13:15, Tiwei Bie wrote: [...] > > @@ -1143,10 +1160,17 @@ static unsigned > > virtqueue_enable_cb_prepare_packed(struct virtqueue *_vq) > > /* We optimistically turn back on interrupts, then check if there was > >

Re: [PATCH v10 02/27] clk: davinci: da850-pll: change PLL0 to CLK_OF_DECLARE

2018-05-15 Thread Sekhar Nori
On Tuesday 15 May 2018 09:12 PM, David Lechner wrote: > On 05/15/2018 08:31 AM, Sekhar Nori wrote: >> On Wednesday 09 May 2018 10:55 PM, David Lechner wrote: >>> +void of_da850_pll0_init(struct device_node *node) >>>   { >>> -    return of_davinci_pll_init(dev, dev->of_node, &da850_pll0_info, >>> -

[PATCH v4 0/2] tpm: improving granularity in poll sleep times

2018-05-15 Thread Nayna Jain
The existing TPM polling code sleeps in each loop iteration for time in msecs ranging from 1 msecs to 5 msecs. However, many of the TPM commands complete much faster, resulting in unnecessary delays. This set of patches identifies such iterations and optimizes the sleep time. The first patch repla

[PATCH v4 1/2] tpm: reduce poll sleep time in tpm_transmit()

2018-05-15 Thread Nayna Jain
tpm_try_transmit currently checks TPM status every 5 msecs between send and recv. It does so in a loop for the maximum timeout as defined in the TPM Interface Specification. However, the TPM may return before 5 msecs. Thus the polling interval for each iteration can be reduced, which improves overa

[PATCH] Makefile: disable PIE before testing asm goto

2018-05-15 Thread Michal Kubecek
Since commit e501ce957a78 ("x86: Force asm-goto"), aarch64 build on distributions which enable PIE by default (e.g. openSUSE Tumbleweed) does not detect support for asm goto correctly. The problem is that ARM specific part of scripts/gcc-goto.sh fails with PIE even with recent gcc versions. Moving

[PATCH v4 2/2] tpm: reduce polling time to usecs for even finer granularity

2018-05-15 Thread Nayna Jain
The TPM burstcount and status commands are supposed to return very quickly [2][3]. This patch further reduces the TPM poll sleep time to usecs in get_burstcount() and wait_for_tpm_stat() by calling usleep_range() directly. After this change, performance on a system[1] with a TPM 1.2 with an 8 byte

Re: [PATCH v16 3/9] PCI/AER: Handle ERR_FATAL with removal and re-enumeration of devices

2018-05-15 Thread poza
On 2018-05-16 05:29, Bjorn Helgaas wrote: On Fri, May 11, 2018 at 06:43:22AM -0400, Oza Pawandeep wrote: This patch alters the behavior of handling of ERR_FATAL, where removal of devices is initiated, followed by reset link, followed by re-enumeration. So the errors are handled in a different w

[PATCH 04/14] mm: remove the unused device_private_entry_fault export

2018-05-15 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- kernel/memremap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/memremap.c b/kernel/memremap.c index db4e1a373e5f..59ee3b604b39 100644 --- a/kernel/memremap.c +++ b/kernel/memremap.c @@ -65,7 +65,6 @@ int device_private_entry_fault(struct vm_area_s

Re: [PATCH] usbip: usbip_host: fix bad unlock balance during stub_probe()

2018-05-15 Thread Greg KH
On Tue, May 15, 2018 at 05:57:23PM -0600, Shuah Khan (Samsung OSG) wrote: > stub_probe() calls put_busid_priv() in an error path when device isn't > found in the busid_table. Fix it by making put_busid_priv() safe to be > called with null struct bus_id_priv pointer. > > This problem happens when "

[PATCH 06/14] btrfs: separate errno from VM_FAULT_* values

2018-05-15 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/btrfs/ctree.h | 2 +- fs/btrfs/inode.c | 19 ++- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 1485cd130e2b..02a0de73c1d1 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -

[PATCH 10/14] vgem: separate errno from VM_FAULT_* values

2018-05-15 Thread Christoph Hellwig
And streamline the code in vgem_fault with early returns so that it is a little bit more readable. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/vgem/vgem_drv.c | 51 +++-- 1 file changed, 23 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/vgem/vge

[PATCH 11/14] ttm: separate errno from VM_FAULT_* values

2018-05-15 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/ttm/ttm_bo_vm.c | 42 + 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo_vm.c b/drivers/gpu/drm/ttm/ttm_bo_vm.c index 8eba95b3c737..255e7801f62c 100644 --- a/drivers/gpu/

[PATCH 09/14] ubifs: separate errno from VM_FAULT_* values

2018-05-15 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/ubifs/file.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/ubifs/file.c b/fs/ubifs/file.c index 1acb2ff505e6..7c1a2e1c3de5 100644 --- a/fs/ubifs/file.c +++ b/fs/ubifs/file.c @@ -1513,7 +1513,7 @@ static int ubifs_releasepage(

[PATCH 12/14] lustre: separate errno from VM_FAULT_* values

2018-05-15 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- .../staging/lustre/lustre/llite/llite_mmap.c | 37 +++ .../lustre/lustre/llite/vvp_internal.h| 2 +- 2 files changed, 14 insertions(+), 25 deletions(-) diff --git a/drivers/staging/lustre/lustre/llite/llite_mmap.c b/drivers/staging/

[PATCH 13/14] mm: move arch specific VM_FAULT_* flags to mm.h

2018-05-15 Thread Christoph Hellwig
Various architectures define their own internal flags. Not sure a public header like mm.h is a good place, but keeping them inside the arch code with possible conflicts also seems like a bad idea. Maybe we just need to stop overloading the value instead. Signed-off-by: Christoph Hellwig --- ar

[PATCH 14/14] mm: turn on vm_fault_t type checking

2018-05-15 Thread Christoph Hellwig
Switch vm_fault_t to point to an unsigned int with __bіtwise annotations. This both catches any old ->fault or ->page_mkwrite instance with plain compiler type checking, as well as finding more intricate problems with sparse. Signed-off-by: Christoph Hellwig --- arch/alpha/mm/fault.c

[PATCH 08/14] ocfs2: separate errno from VM_FAULT_* values

2018-05-15 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/ocfs2/mmap.c | 36 +++- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/fs/ocfs2/mmap.c b/fs/ocfs2/mmap.c index fb9a20e3d608..e75c1fc5333e 100644 --- a/fs/ocfs2/mmap.c +++ b/fs/ocfs2/mmap.c @@ -44,11 +44,11 @@

[PATCH 01/14] orangefs: don't return errno values from ->fault

2018-05-15 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/orangefs/file.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c index 26358efbf794..b4a25cd4f3fa 100644 --- a/fs/orangefs/file.c +++ b/fs/orangefs/file.c @@ -528,18 +528,16 @@ static lon

[PATCH 05/14] ceph: untangle ceph_filemap_fault

2018-05-15 Thread Christoph Hellwig
Streamline the code to have a somewhat natural flow, and separate the errno values from the VM_FAULT_* values. Signed-off-by: Christoph Hellwig --- fs/ceph/addr.c | 100 + 1 file changed, 51 insertions(+), 49 deletions(-) diff --git a/fs/ceph/addr

[PATCH 07/14] ext4: separate errno from VM_FAULT_* values

2018-05-15 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/ext4/ext4.h | 4 ++-- fs/ext4/inode.c | 30 +++--- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index fa52b7dd4542..48592d0edf3e 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @

[PATCH 03/14] dax: make the dax_iomap_fault prototype consistent

2018-05-15 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/linux/dax.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/dax.h b/include/linux/dax.h index dc65ece825ee..a292bccdc274 100644 --- a/include/linux/dax.h +++ b/include/linux/dax.h @@ -183,7 +183,7 @@ void dax_flush(str

[PATCH 02/14] fs: make the filemap_page_mkwrite prototype consistent

2018-05-15 Thread Christoph Hellwig
!CONFIG_MMU version didn't agree with the rest of the kernel.. Signed-off-by: Christoph Hellwig --- mm/filemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/filemap.c b/mm/filemap.c index 52517f28e6f4..cf21ced98eff 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -2748,

vm_fault_t conversion, for real

2018-05-15 Thread Christoph Hellwig
Hi all, this series tries to actually turn vm_fault_t into a type that can be typechecked and checks the fallout instead of sprinkling random annotations without context. The first one fixes a real bug in orangefs, the second and third fix mismatched existing vm_fault_t annotations on the same fu

[RFC] powerpc/emulate_step: Fix kernel crash when VSX is not present

2018-05-15 Thread Ravi Bangoria
emulate_step() is not checking runtime VSX feature flag before emulating an instruction. This can cause kernel oops when kernel is compiled with CONFIG_VSX=y but running on machine where VSX is not supported or disabled. Ex, while running emulate_step tests on P6 machine: ... emulate_step_test

Re: [PATCH v4 2/2] locking/percpu-rwsem: Annotate rwsem ownership transfer by setting RWSEM_OWNER_UNKNOWN

2018-05-15 Thread Amir Goldstein
On Wed, May 16, 2018 at 12:49 AM, Waiman Long wrote: > The filesystem freezing code needs to transfer ownership of a rwsem > embedded in a percpu-rwsem from the task that does the freezing to > another one that does the thawing by calling percpu_rwsem_release() > after freezing and percpu_rwsem_ac

Re: [PATCH v6 04/17] media: rkisp1: add Rockchip MIPI Synopsys DPHY driver

2018-05-15 Thread Laurent Pinchart
Hi Jacob, Thank you for the patch. On Thursday, 8 March 2018 11:47:54 EEST Jacob Chen wrote: > From: Jacob Chen > > This commit adds a subdev driver for Rockchip MIPI Synopsys DPHY driver Should this really be a subdev driver ? After a quick look at the code, the only parameters you need to c

Re: [PATCH] clk: stm32mp1: Add CLK_IGNORE_UNUSED to ck_sys_dbg clock

2018-05-15 Thread Gabriel FERNANDEZ
Thanks Stephen On 05/15/2018 08:23 PM, Stephen Boyd wrote: > Quoting gabriel.fernan...@st.com (2018-04-24 00:58:43) >> From: Gabriel Fernandez >> >> Don't disable the dbg clock if was set by bootloader. >> >> Signed-off-by: Gabriel Fernandez >> --- > Applied to clk-next >

Re: [PATCH 2/2] powerpc: Enable ASYM_SMT on interleaved big-core systems

2018-05-15 Thread Gautham R Shenoy
On Mon, May 14, 2018 at 01:22:07PM +1000, Michael Neuling wrote: > On Fri, 2018-05-11 at 16:47 +0530, Gautham R. Shenoy wrote: > > From: "Gautham R. Shenoy" > > > > Each of the SMT4 cores forming a fused-core are more or less > > independent units. Thus when multiple tasks are scheduled to run on

Re: [RFC v3 4/5] virtio_ring: add event idx support in packed ring

2018-05-15 Thread Jason Wang
On 2018年04月25日 13:15, Tiwei Bie wrote: This commit introduces the event idx support in packed ring. This feature is temporarily disabled, because the implementation in this patch may not work as expected, and some further discussions on the implementation are needed, e.g. do we have to check th

Re: [PATCH 8/9] perf/breakpoint: Split breakpoint "check" and "commit"

2018-05-15 Thread Andy Lutomirski
> On May 15, 2018, at 8:11 PM, Frederic Weisbecker wrote: > >> On Wed, May 09, 2018 at 11:17:03AM +0200, Peter Zijlstra wrote: >>> On Sun, May 06, 2018 at 09:19:54PM +0200, Frederic Weisbecker wrote: >>> arch/arm/include/asm/hw_breakpoint.h | 5 - >>> arch/arm/kernel/hw_breakpoint.c

Re: Great Investment Offer

2018-05-15 Thread Gagum Melvin Sikze Kakha
Hello In my search for a business partner i got your contact in google search. My client is willing to invest $10 Million to $500 million but my client said he need a trusted partner who he can have a meeting at the point of releasing his funds. I told my client that you have a good profile w

[PATCH v5 1/2] perf: uncore: Adding documentation for ThunderX2 pmu uncore driver

2018-05-15 Thread Ganapatrao Kulkarni
Documentation for the UNCORE PMUs on Cavium's ThunderX2 SoC. The SoC has PMU support in its L3 cache controller (L3C) and in the DDR4 Memory Controller (DMC). Signed-off-by: Ganapatrao Kulkarni --- Documentation/perf/thunderx2-pmu.txt | 66 1 file changed, 66

[PATCH v5 2/2] ThunderX2: Add Cavium ThunderX2 SoC UNCORE PMU driver

2018-05-15 Thread Ganapatrao Kulkarni
This patch adds a perf driver for the PMU UNCORE devices DDR4 Memory Controller(DMC) and Level 3 Cache(L3C). ThunderX2 has 8 independent DMC PMUs to capture performance events corresponding to 8 channels of DDR4 Memory Controller and 16 independent L3C PMUs to capture events corresponding to 16 ti

[PATCH v5 0/2] Add ThunderX2 SoC Performance Monitoring Unit driver

2018-05-15 Thread Ganapatrao Kulkarni
This patchset adds PMU driver for Cavium's ThunderX2 SoC UNCORE devices. The SoC has PMU support in L3 cache controller (L3C) and in the DDR4 Memory Controller (DMC). v5: -Incroporated review comments from Mark Rutland[2] v4: -Incroporated review comments from Mark Rutland[1] [1] https:

[RFC/RFT] [PATCH 02/10] cpufreq: intel_pstate: Conditional frequency invariant accounting

2018-05-15 Thread Srinivas Pandruvada
intel_pstate has two operating modes: active and passive. In "active" mode, the in-built scaling governor is used and in "passive" mode, the driver can be used with any governor like "schedutil". In "active" mode the utilization values from schedutil is not used and there is a requirement from high

[PATCH] ARM: dts: imx7d: use operating-points-v2 for cpu

2018-05-15 Thread Anson Huang
This patch uses "operating-points-v2" instead of "operating-points" to be more fit with cpufreq-dt driver. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx7d.dtsi | 24 +++- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch

[RFC/RFT] [PATCH 01/10] x86,sched: Add support for frequency invariance

2018-05-15 Thread Srinivas Pandruvada
From: Peter Zijlstra Implement arch_scale_freq_capacity() for 'modern' x86. This function is used by the scheduler to correctly account usage in the face of DVFS. For example; suppose a CPU has two frequencies: 500 and 1000 Mhz. When running a task that would consume 1/3rd of a CPU at 1000 MHz,

[RFC/RFT] [PATCH 06/10] cpufreq / sched: Add interface to get utilization values

2018-05-15 Thread Srinivas Pandruvada
Added cpufreq_get_sched_util() to get the CFS, DL and max utilization values for a CPU. This is required for getting utilization values for cpufreq drivers outside of kernel/sched folder. Signed-off-by: Srinivas Pandruvada --- include/linux/sched/cpufreq.h | 2 ++ kernel/sched/cpufreq.c

[RFC/RFT] [PATCH 05/10] cpufreq: intel_pstate: HWP boost performance on IO Wake

2018-05-15 Thread Srinivas Pandruvada
When a task is woken up from IO wait, boost HWP prformance to max. This helps IO workloads on servers with per core P-states. But changing limits has extra over head of issuing new HWP Request MSR, which takes 1000+ cycles. So this change limits setting HWP Request MSR. Also request can be for a re

[RFC/RFT] [PATCH 03/10] cpufreq: intel_pstate: Utility functions to boost HWP performance limits

2018-05-15 Thread Srinivas Pandruvada
Setup necessary infrastructure to be able to boost HWP performance on a remote CPU. First initialize data structure to be able to use smp_call_function_single_async(). The boost up function simply set HWP min to HWP max value and EPP to 0. The boost down function simply restores to last cached HWP

[RFC/RFT] [PATCH 07/10] cpufreq: intel_pstate: HWP boost performance on busy task migrate

2018-05-15 Thread Srinivas Pandruvada
When a busy task migrates to a new CPU boost HWP prformance to max. This helps workloads on servers with per core P-states, which saturates all CPUs and then they migrate frequently. But changing limits has extra over head of issuing new HWP Request MSR, which takes 1000+ cycles. So this change lim

[RFC/RFT] [PATCH 00/10] Intel_pstate: HWP Dynamic performance boost

2018-05-15 Thread Srinivas Pandruvada
This series tries to address some concern in performance particularly with IO workloads (Reported by Mel Gorman), when HWP is using intel_pstate powersave policy. Background HWP performance can be controlled by user space using sysfs interface for max/min frequency limits and energy performance pr

[RFC/RFT] [PATCH 10/10] cpufreq: intel_pstate: enable boost for SKX

2018-05-15 Thread Srinivas Pandruvada
Enable HWP boost on Skylake server platform. Signed-off-by: Srinivas Pandruvada --- drivers/cpufreq/intel_pstate.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 65d11d2..827c003 100644 --- a/drivers/cpufreq/inte

[RFC/RFT] [PATCH 09/10] cpufreq: intel_pstate: New sysfs entry to control HWP boost

2018-05-15 Thread Srinivas Pandruvada
A new attribute is added to intel_pstate sysfs to enable/disable HWP dynamic performance boost. Signed-off-by: Srinivas Pandruvada --- drivers/cpufreq/intel_pstate.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufr

[RFC/RFT] [PATCH 08/10] cpufreq: intel_pstate: Dyanmically update busy pct

2018-05-15 Thread Srinivas Pandruvada
Calculate hwp_boost_threshold_busy_pct (task busy percent, which is worth boosting) and hwp_boost_pstate_threshold (Don't boost if CPU already has some performance) based on platform, min, max and turbo frequencies. Signed-off-by: Srinivas Pandruvada --- drivers/cpufreq/intel_pstate.c | 40 +

[RFC/RFT] [PATCH 04/10] cpufreq: intel_pstate: Add update_util_hook for HWP

2018-05-15 Thread Srinivas Pandruvada
When HWP dynamic boost is active then set the HWP specific update util hook. Also start and stop processing in frequency invariant accounting based on the HWP dyanmic boost setting Signed-off-by: Srinivas Pandruvada --- drivers/cpufreq/intel_pstate.c | 26 ++ 1 file chang

Re: [PATCH v2] ipc: Adding new return type vm_fault_t

2018-05-15 Thread Souptick Joarder
On Thu, May 10, 2018 at 7:34 PM, Souptick Joarder wrote: > On Wed, Apr 25, 2018 at 10:04 AM, Souptick Joarder > wrote: >> Use new return type vm_fault_t for fault handler. For >> now, this is just documenting that the function returns >> a VM_FAULT value rather than an errno. Once all instances

[PATCH] ASoC: codecs: fix pcm1789.c build errors

2018-05-15 Thread Randy Dunlap
From: Randy Dunlap Fix build errors in pcm1789.c. The source file needs to #include since it uses interfaces and macros that are provided by it. However, it does not need to #include , so drop it. Fixes these build errors: ../sound/soc/codecs/pcm1789.c: In function 'pcm1789_common_init': ../so

Re: [PATCH v2] powerpc: kvm: Change return type to vm_fault_t

2018-05-15 Thread Souptick Joarder
On Thu, May 10, 2018 at 11:57 PM, Souptick Joarder wrote: > Use new return type vm_fault_t for fault handler > in struct vm_operations_struct. For now, this is > just documenting that the function returns a > VM_FAULT value rather than an errno. Once all > instances are converted, vm_fault_t will

Re: [PATCH] gpu: drm: drm_vm: Adding new typedef vm_fault_t

2018-05-15 Thread Souptick Joarder
On Thu, May 10, 2018 at 7:12 PM, Souptick Joarder wrote: > Use new return type vm_fault_t for fault handler. For > now, this is just documenting that the function returns > a VM_FAULT value rather than an errno. Once all instances > are converted, vm_fault_t will become a distinct type. > > commit

Re: [PATCH v2] gpu: drm: armada: Adding new typedef vm_fault_t

2018-05-15 Thread Souptick Joarder
On Fri, May 11, 2018 at 2:52 PM, Russell King - ARM Linux wrote: > On Thu, May 10, 2018 at 08:34:48PM +0530, Souptick Joarder wrote: >> Use new return type vm_fault_t for fault handler in >> struct vm_operations_struct. For now, this is just >> documenting that the function returns a VM_FAULT >> v

Re: [PATCH 1/2] powerpc: Detect the presence of big-core with interleaved threads

2018-05-15 Thread Gautham R Shenoy
Hi Mikey, On Mon, May 14, 2018 at 01:21:11PM +1000, Michael Neuling wrote: > Thanks for posting this... A couple of comments below. Thanks for the review. Replies below. > > +/* > > + * check_for_interleaved_big_core - Checks if the core represented by > > + * dn is a big-core whose threads are

Re: [PATCH] cpufreq: brcmstb-avs-cpufreq: sort frequencies in ascending order

2018-05-15 Thread Viresh Kumar
On 15-05-18, 20:49, Markus Mayer wrote: > From: Markus Mayer > > Most CPUfreq drivers (at least on ARM) seem to be sorting the available > frequencies from lowest to highest. To match this behaviour, we reverse > the sorting order in brcmstb-avs-cpufreq, so it is now also lowest to > highest. Th

Re: [RFC PATCH V2] scsi: ufs: Add specific callback for setting DMA mask

2018-05-15 Thread Alim Akhtar
Ping !!! On Thu, Mar 8, 2018 at 4:33 PM, Alim Akhtar wrote: > Currently DMA mask for UFS HCI is set by reading CAP register's > [64AS] bit. Some HCI controller like Exynos support 36-bit bus address. > This works perfectly fine with DMA mask set as 64 in case there is no > IOMMU attached to HCI.

Re: [PATCH 0/4] Add required changes to ufshcd to support exynos ufs hci

2018-05-15 Thread Alim Akhtar
Hi All, Any thought on this patch set? On Sun, May 6, 2018 at 3:44 PM, Alim Akhtar wrote: > Hi All > > These patches are part of a larger patch series [1] which attempts upstreaming > EXYNOS UFS driver support. There was not much activities after v5 of that > series. In between I saw there were

Re: [RFC 0/8] Improving compiler inlining decisions

2018-05-15 Thread Nadav Amit
Josh Poimboeuf wrote: > On Tue, May 15, 2018 at 07:11:07AM -0700, Nadav Amit wrote: >> This patch-set deals with an interesting yet stupid problem: code that >> does not get inlined despite its simplicity. > > I got the 0/8 patch twice, and didn't get the 1/8 patch. Was there an > issue with th

Re: [PATCH v10 1/2] arch/*: Add CONFIG_ARCH_HAVE_CMPXCHG64

2018-05-15 Thread Michael Ellerman
Bart Van Assche writes: > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index c32a181a7cbb..901365d12dcd 100644 > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -149,6 +149,7 @@ config PPC > select ARCH_HAS_UACCESS_FLUSHCACHE if PPC64 > select ARCH_HAS_

Re: [PATCH v7 12/14] cpufreq: Add Kryo CPU scaling driver

2018-05-15 Thread kbuild test robot
Hi Ilia, Thank you for the patch! Yet something to improve: [auto build test ERROR on robh/for-next] [also build test ERROR on v4.17-rc5] [cannot apply to clk/clk-next next-20180515] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url

Re: [External] Re: [RFC PATCH v1 0/6] use mm to manage NVDIMM (pmem) zone

2018-05-15 Thread Dan Williams
On Tue, May 15, 2018 at 7:52 PM, Matthew Wilcox wrote: > On Wed, May 16, 2018 at 02:05:05AM +, Huaisheng HS1 Ye wrote: >> > From: Matthew Wilcox [mailto:wi...@infradead.org] >> > Sent: Wednesday, May 16, 2018 12:20 AM> >> > > > > > Then there's the problem of reconnecting the page cache (which

[PATCH] cpufreq: brcmstb-avs-cpufreq: sort frequencies in ascending order

2018-05-15 Thread Markus Mayer
From: Markus Mayer Most CPUfreq drivers (at least on ARM) seem to be sorting the available frequencies from lowest to highest. To match this behaviour, we reverse the sorting order in brcmstb-avs-cpufreq, so it is now also lowest to highest. Signed-off-by: Markus Mayer --- drivers/cpufreq/brcm

Re: [RFC 0/8] Improving compiler inlining decisions

2018-05-15 Thread Josh Poimboeuf
On Tue, May 15, 2018 at 07:11:07AM -0700, Nadav Amit wrote: > This patch-set deals with an interesting yet stupid problem: code that > does not get inlined despite its simplicity. I got the 0/8 patch twice, and didn't get the 1/8 patch. Was there an issue with the sending of the patches? -- Jos

[PATCH] ethernet: stmmac: dwmac-rk: Add GMAC support for px30

2018-05-15 Thread David Wu
Add constants and callback functions for the dwmac on px30 soc. The base structure is the same, but registers and the bits in them moved slightly, and add the clk_mac_speed for the select of mac speed. Signed-off-by: David Wu --- .../devicetree/bindings/net/rockchip-dwmac.txt | 1 + drivers

Re: [lkp-robot] [x86/asm] 51bad67ffb: int3:#[##]

2018-05-15 Thread Josh Poimboeuf
On Tue, May 15, 2018 at 04:05:33PM -0700, Linus Torvalds wrote: > I wonder if there's some way to add a test for "ENTRY only works in a code > section"? I suppose we could add a discardable annotation to the ENTRY macro and have objtool validate that it's in a text section. I'm not sure whether i

Re: [PATCH 8/9] perf/breakpoint: Split breakpoint "check" and "commit"

2018-05-15 Thread Frederic Weisbecker
On Wed, May 09, 2018 at 11:17:03AM +0200, Peter Zijlstra wrote: > On Sun, May 06, 2018 at 09:19:54PM +0200, Frederic Weisbecker wrote: > > arch/arm/include/asm/hw_breakpoint.h | 5 - > > arch/arm/kernel/hw_breakpoint.c | 22 +++--- > > arch/arm64/include/asm/hw_br

Re: [RFC PATCH 00/10] Add persistent clock support

2018-05-15 Thread Baolin Wang
HI Daniel, On 15 May 2018 at 21:56, Daniel Lezcano wrote: > On Mon, May 14, 2018 at 04:55:26PM +0800, Baolin Wang wrote: >> Hi, >> >> We will meet below issues when compensating the suspend time for the >> timekeeping. >> >> 1. We have too many different ways of dealing with persistent timekeepi

Re: [External] Re: [RFC PATCH v1 0/6] use mm to manage NVDIMM (pmem) zone

2018-05-15 Thread Matthew Wilcox
On Wed, May 16, 2018 at 02:05:05AM +, Huaisheng HS1 Ye wrote: > > From: Matthew Wilcox [mailto:wi...@infradead.org] > > Sent: Wednesday, May 16, 2018 12:20 AM> > > > > > > Then there's the problem of reconnecting the page cache (which is > > > > > > pointed to by ephemeral data structures like

Re: [PATCH 0/3] irqchip: meson-gpio: add support for Meson-AXG SoCs

2018-05-15 Thread Yixun Lan
Hi Marc (or anyone else) On 04/08/18 22:56, Yixun Lan wrote: > This series try to add GPIO interrupt controller support for Meson-AXG SoCs. > The first patch is a trivial typo fix, I can fold the first two patches > together if necessary. > > Yixun Lan (3): > dt-bindings: interrupt-controll

Re: [PATCH v10 23/25] mm: add speculative page fault vmstats

2018-05-15 Thread Ganesh Mahendran
2018-04-17 22:33 GMT+08:00 Laurent Dufour : > Add speculative_pgfault vmstat counter to count successful speculative page > fault handling. > > Also fixing a minor typo in include/linux/vm_event_item.h. > > Signed-off-by: Laurent Dufour > --- > include/linux/vm_event_item.h | 3 +++ > mm/memory.c

Re: [External] Re: [RFC PATCH v1 0/6] use mm to manage NVDIMM (pmem) zone

2018-05-15 Thread Dan Williams
On Tue, May 15, 2018 at 7:05 PM, Huaisheng HS1 Ye wrote: >> From: Matthew Wilcox [mailto:wi...@infradead.org] >> Sent: Wednesday, May 16, 2018 12:20 AM> >> > > > > Then there's the problem of reconnecting the page cache (which is >> > > > > pointed to by ephemeral data structures like inodes and d

[PATCH v3] dt-bindings: mediatek: Add binding for mt2712 IOMMU and SMI

2018-05-15 Thread Yong Wu
This patch adds decriptions for mt2712 IOMMU and SMI. In order to balance the bandwidth, mt2712 has two M4Us, two smi-commons, 10 smi-larbs. and mt2712 is also MTK IOMMU gen2 which uses ARM Short-Descriptor translation table format. The mt2712 M4U-SMI HW diagram is as below:

Re: [PATCH] KVM: arm/arm64: fix unaligned hva start and end in handle_hva_to_gpa

2018-05-15 Thread Jia He
On 5/16/2018 12:21 AM, Suzuki K Poulose Wrote: > Hi Jia, > > On 15/05/18 14:15, Jia He wrote: >> >> >> On 5/15/2018 8:38 PM, Jia He Wrote: >>> Hi Suzuki >>> >>> On 5/15/2018 4:36 PM, Suzuki K Poulose Wrote: Hi Jia On 05/15/2018 03:03 AM, Jia He wrote: > Hi Suzuki > >>

[PATCH v3 1/2] usb: dwc3: use local copy of resource to fix-up register offset

2018-05-15 Thread Masahiro Yamada
It is not a good idea to directly modify the resource of a platform device. Modify its local copy, and pass it to devm_ioremap_resource() so that we do not need to restore it in the failure path and the remove hook. Signed-off-by: Masahiro Yamada Reviewed-by: Masami Hiramatsu --- Changes in v3

[PATCH v3 0/2] usb: dwc3: support clocks and resets for DWC3 core

2018-05-15 Thread Masahiro Yamada
In the current design of DWC3 driver, the DT typically becomes a nested structure like follows: dwc3-glue { compatible = "foo,dwc3"; ... dwc3 { compatible = "snps,dwc3"; ... }; } The current DWC3 core (drivers/usb/d

[PATCH v3 2/2] usb: dwc3: support clocks and resets for DWC3 core

2018-05-15 Thread Masahiro Yamada
Historically, the clocks and resets are handled on the glue layer side instead of the DWC3 core. For simple cases, dwc3-of-simple.c takes care of arbitrary number of clocks and resets. The DT node structure typically looks like as follows: dwc3-glue { compatible = "foo,dwc3";

[PATCH v5 0/3] multi-threading device shutdown

2018-05-15 Thread Pavel Tatashin
Changelog v4 - v5 - Addressed comments from Andy Shevchenko and Greg Kroah-Hartman - Split the patch into a series of 3 patches in order to provide a better bisecting, and facilitate with reviewing. v3 - v4 - Added device_shutdown_serial kernel parameter

[PATCH v5 3/3] drivers core: multi-threading device shutdown

2018-05-15 Thread Pavel Tatashin
When system is rebooted, halted or kexeced device_shutdown() is called. This function shuts down every single device by calling either: dev->bus->shutdown(dev) dev->driver->shutdown(dev) Even on a machine with just a moderate amount of devices, device_shutdown() may take multiple

[PATCH v5 1/3] drivers core: refactor device_shutdown

2018-05-15 Thread Pavel Tatashin
device_shutdown() traverses through the list of devices, and calls dev->{bug/driver}->shutdown() for each entry in the list. Refactor the function by keeping device_shutdown() to do the logic of traversing the list of devices, and device_shutdown_one() to perform the actual shutdown operation on o

[PATCH v5 2/3] drivers core: prepare device_shutdown for multi-threading

2018-05-15 Thread Pavel Tatashin
Do all the necessary refactoring to prepare device_shutdown() logic to be multi-threaded. Which includes: 1. Change the direction of traversing the list instead of going backward, we now go forward. 2. Children are shutdown recursively for each root device from bottom-up. 3. Functions that can be

Re: [PATCH] net: qcom/emac: Encapsulate sgmii ops under one structure

2018-05-15 Thread Timur Tabi
On 5/15/18 8:10 PM, Hemanth Puranik wrote: This patch introduces ops structure for sgmii, This by ensures that we do not need dummy functions in case of emulation platforms. Signed-off-by: Hemanth Puranik Acked-by: Timur Tabi -- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualc

  1   2   3   4   5   6   7   8   9   10   >