[PATCH v2 5/5] riscv: Make mmap allocation top-down by default

2019-04-03 Thread Alexandre Ghiti
In order to avoid wasting user address space by using bottom-up mmap allocation scheme, prefer top-down scheme when possible. Before: root@qemuriscv64:~# cat /proc/self/maps 0001-00016000 r-xp fe:00 6389 /bin/cat.coreutils 00016000-00017000 r--p 5000 fe:00 6389

[PATCH v2 4/5] mips: Use generic mmap top-down layout

2019-04-03 Thread Alexandre Ghiti
mips uses a top-down layout by default that fits the generic functions. At the same time, this commit allows to fix problem uncovered and not fixed for mips here: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1429066.html Signed-off-by: Alexandre Ghiti --- arch/mips/Kconfig

[PATCH v2 3/5] arm: Use generic mmap top-down layout

2019-04-03 Thread Alexandre Ghiti
arm uses a top-down layout by default that fits the generic functions. At the same time, this commit allows to fix the following problems: - one uncovered and not fixed for arm here: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1429066.html - the use of TASK_SIZE instead of

Re: [RFC PATCH 1/9] drivers: regulator: qcom_spmi: enable linear range info

2019-04-03 Thread Mark Brown
On Thu, Apr 04, 2019 at 07:09:22AM +0200, Niklas Cassel wrote: > From: Jorge Ramirez-Ortiz > > Signed-off-by: Jorge Ramirez-Ortiz > --- > drivers/regulator/qcom_spmi-regulator.c | 7 +++ > 1 file changed, 7 insertions(+) This doesn't build: CC

[PATCH v2 2/5] arm64, mm: Move generic mmap layout functions to mm

2019-04-03 Thread Alexandre Ghiti
arm64 handles top-down mmap layout in a way that can be easily reused by other architectures, so make it available in mm. This commit also takes the opportunity to: - make use of is_compat_task instead of specific arm64 test test_thread_flag(TIF_32BIT), which allows more genericity and is

[PATCH v2 1/5] mm, fs: Move randomize_stack_top from fs to mm

2019-04-03 Thread Alexandre Ghiti
This preparatory commit moves this function so that further introduction of generic topdown mmap layout is contained only in mm/util.c. Signed-off-by: Alexandre Ghiti --- fs/binfmt_elf.c| 20 include/linux/mm.h | 2 ++ mm/util.c | 22 ++ 3

[PATCH v2 0/5] Provide generic top-down mmap layout functions

2019-04-03 Thread Alexandre Ghiti
This series introduces generic functions to make top-down mmap layout easily accessible to architectures, in particular riscv which was the initial goal of this series. The generic implementation was taken from arm64 and used successively by arm, mips and finally riscv. Note that in addition the

Re: [PATCH 5/7] ASoC: cs42l51: change mic bias DAPM

2019-04-03 Thread Mark Brown
On Wed, Apr 03, 2019 at 03:23:35PM +0200, Olivier Moysan wrote: > Use SND_SOC_DAPM_SUPPLY for mic bias DAPM > instead of deprecated SND_SOC_DAPM_MICBIAS. There are existing users in mainline, have they all been updated to be compatible with this, or verified that they don't need updates?

Respond

2019-04-03 Thread Ella Golan
My name is Ms Ella Golan, I'm the Chief Executive Officer (C.P.A) of the First International Bank of Israel (FIBI). I'm getting in touch with you in regards to a very important and urgent matter. Kindly respond back at your earliest convenience so I can provide you the details. Faithfully, Ms

Re: [PATCH v4 2/2] PCI: iproc: Add outbound configuration for 32-bit I/O region

2019-04-03 Thread Srinath Mannam
Hi Lorenzo, I am sorry, I took your long time. In my commit log I gave details about purpose of feature instead of implementation. Thanks a lot for all inputs and knowledge. I will remember and follow these notes while writing commit log. commit log re-written by you is very much impressive and

Re: [PATCH 2/6] arm64/mm: Enable memory hot remove

2019-04-03 Thread Anshuman Khandual
On 04/03/2019 06:07 PM, Robin Murphy wrote: > [ +Steve ] > > Hi Anshuman, > > On 03/04/2019 05:30, Anshuman Khandual wrote: >> Memory removal from an arch perspective involves tearing down two different >> kernel based mappings i.e vmemmap and linear while releasing related page >> table

Re: [PATCH 1/2] ASoC: rt5677: allow multiple interrupt sources

2019-04-03 Thread Mark Brown
On Wed, Apr 03, 2019 at 03:32:04PM -0600, Fletcher Woodruff wrote: > On Mon, Apr 1, 2019 at 11:02 PM Mark Brown wrote: > > This looks unrelated to the polarity of the interupt? > Yes this is separate. If a plug/unplug happens after regmap_read and > before regmap_write, it will not be

Re: [PATCH AUTOSEL 5.0 209/262] regulator: mcp16502: Include linux/gpio/consumer.h to fix build error

2019-04-03 Thread Mark Brown
On Wed, Apr 03, 2019 at 08:46:08PM -0400, Sasha Levin wrote: > On Wed, Mar 27, 2019 at 07:32:11PM +, Mark Brown wrote: > > > Fix below build error: > > > drivers/regulator/mcp16502.c: In function ‘mcp16502_gpio_set_mode’: > > > drivers/regulator/mcp16502.c:135:3: error: implicit declaration

linux-next: Tree for Apr 4

2019-04-03 Thread Stephen Rothwell
Hi all, Changes since 20190403: The sound-asoc tree lost its build failure. The mfd tree lost its build failure. The selinux tree lost its build failure. The ipmi tree lost its build failure. The staging tree gained conflicts against the spi and v4l-dvb trees. Non-merge commits (relative

Re: [PATCH 1/6] arm64/mm: Enable sysfs based memory hot add interface

2019-04-03 Thread Anshuman Khandual
On 04/03/2019 01:50 PM, David Hildenbrand wrote: > On 03.04.19 06:30, Anshuman Khandual wrote: >> Sysfs memory probe interface (/sys/devices/system/memory/probe) can accept >> starting physical address of an entire memory block to be hot added into >> the kernel. This is in addition to the

Re: [PATCH 1/6] arm64/mm: Enable sysfs based memory hot add interface

2019-04-03 Thread Anshuman Khandual
On 04/03/2019 06:42 PM, Robin Murphy wrote: > On 03/04/2019 09:20, David Hildenbrand wrote: >> On 03.04.19 06:30, Anshuman Khandual wrote: >>> Sysfs memory probe interface (/sys/devices/system/memory/probe) can accept >>> starting physical address of an entire memory block to be hot added into

Re: [PATCH -next] pinctrl: fsl: Make pinctrl_ipc_handle static

2019-04-03 Thread Linus Walleij
On Wed, Mar 20, 2019 at 9:15 PM Yue Haibing wrote: > From: YueHaibing > > Fix sparse warning: > > drivers/pinctrl/freescale/pinctrl-scu.c:38:19: warning: > symbol 'pinctrl_ipc_handle' was not declared. Should it be static? > > Signed-off-by: YueHaibing Patch applied. Yours, Linus Walleij

[RFC PATCH 8/9] power: avs: Add support for CPR (Core Power Reduction)

2019-04-03 Thread Niklas Cassel
CPR (Core Power Reduction) is a technology that reduces core power on a CPU or other device. It reads voltage settings in efuse from product test process as initial settings. Each OPP corresponds to a "corner" that has a range of valid voltages for a particular frequency. While the device is

[RFC PATCH 9/9] arm64: dts: qcom: qcs404: Add CPR and populate OPP tables

2019-04-03 Thread Niklas Cassel
Co-developed-by: Jorge Ramirez-Ortiz Signed-off-by: Jorge Ramirez-Ortiz Signed-off-by: Niklas Cassel --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 152 ++- 1 file changed, 148 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi

[RFC PATCH 6/9] dt-bindings: opp: Add qcom-opp bindings with properties needed for CPR

2019-04-03 Thread Niklas Cassel
Add qcom-opp bindings with properties needed for Core Power Reduction (CPR). CPR is included in a great variety of Qualcomm SoC, e.g. msm8916 and msm8996, and was first introduced in msm8974. Co-developed-by: Jorge Ramirez-Ortiz Signed-off-by: Jorge Ramirez-Ortiz Signed-off-by: Niklas Cassel

[RFC PATCH 4/9] cpufreq: qcom: support qcs404 on nvmem driver

2019-04-03 Thread Niklas Cassel
From: Jorge Ramirez-Ortiz Signed-off-by: Jorge Ramirez-Ortiz Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel --- drivers/cpufreq/qcom-cpufreq-nvmem.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/cpufreq/qcom-cpufreq-nvmem.c

[RFC PATCH 5/9] cpufreq: Add qcs404 to cpufreq-dt-platdev blacklist

2019-04-03 Thread Niklas Cassel
From: Jorge Ramirez-Ortiz Signed-off-by: Jorge Ramirez-Ortiz Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c

[RFC PATCH 7/9] dt-bindings: power: avs: Add support for CPR (Core Power Reduction)

2019-04-03 Thread Niklas Cassel
Add DT bindings to describe the CPR HW found on certain Qualcomm SoCs. Co-developed-by: Jorge Ramirez-Ortiz Signed-off-by: Jorge Ramirez-Ortiz Signed-off-by: Niklas Cassel --- .../bindings/power/avs/qcom,cpr.txt | 119 ++ 1 file changed, 119 insertions(+) create

[RFC PATCH 3/9] cpufreq: qcom: create a driver struct

2019-04-03 Thread Niklas Cassel
create a driver struct to make it easier to free up all common resources, and only call dev_pm_opp_set_supported_hw() if the implementation has dynamically allocated versions. Co-developed-by: Jorge Ramirez-Ortiz Signed-off-by: Jorge Ramirez-Ortiz Signed-off-by: Niklas Cassel ---

[RFC PATCH 2/9] cpufreq: qcom: Re-organise kryo cpufreq to use it for other nvmem based qcom socs

2019-04-03 Thread Niklas Cassel
From: Sricharan R The kryo cpufreq driver reads the nvmem cell and uses that data to populate the opps. There are other qcom cpufreq socs like krait which does similar thing. Except for the interpretation of the read data, rest of the driver is same for both the cases. So pull the common things

[RFC PATCH 0/9] Add support for QCOM Core Power Reduction

2019-04-03 Thread Niklas Cassel
This is a first RFC for Core Power Reduction (CPR), a form of Adaptive Voltage Scaling (AVS), found on certain Qualcomm SoCs. Since this is simply an RFC, things like MAINTAINERS hasn't been updated yet. CPR is a technology that reduces core power on a CPU or on other device. It reads voltage

[RFC PATCH 1/9] drivers: regulator: qcom_spmi: enable linear range info

2019-04-03 Thread Niklas Cassel
From: Jorge Ramirez-Ortiz Signed-off-by: Jorge Ramirez-Ortiz --- drivers/regulator/qcom_spmi-regulator.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/regulator/qcom_spmi-regulator.c index 3193506eac6f..f2edf510b0df 100644 ---

Re: [PATCH v2 3/5] locking/qspinlock: Introduce CNA into the slow path of qspinlock

2019-04-03 Thread Juergen Gross
On 03/04/2019 18:01, Peter Zijlstra wrote: > On Wed, Apr 03, 2019 at 11:39:09AM -0400, Alex Kogan wrote: > The patch that I am looking for is to have a separate numa_queued_spinlock_slowpath() that coexists with native_queued_spinlock_slowpath() and

Re: [PATCH 6/6] arm64/mm: Enable ZONE_DEVICE

2019-04-03 Thread Dan Williams
On Wed, Apr 3, 2019 at 9:42 PM Anshuman Khandual wrote: > > > > On 04/03/2019 07:28 PM, Robin Murphy wrote: > > [ +Dan, Jerome ] > > > > On 03/04/2019 05:30, Anshuman Khandual wrote: > >> Arch implementation for functions which create or destroy vmemmap mapping > >> (vmemmap_populate,

Question on a lockdep test case about mixed read-write ABBA

2019-04-03 Thread Yuyang Du
Hi Peter, I observed this test case you wrote in Commit: e9149858974606 ("locking/lockdep/selftests: Add mixed read-write ABBA"). static void rwsem_ABBA2(void) { RSL(X1); ML(Y1); MU(Y1); RSU(X1); ML(Y1); RSL(X1); RSU(X1); MU(Y1); // should

Re: [PATCH 6/6] arm64/mm: Enable ZONE_DEVICE

2019-04-03 Thread Anshuman Khandual
On 04/03/2019 09:37 PM, Jerome Glisse wrote: > On Wed, Apr 03, 2019 at 02:58:28PM +0100, Robin Murphy wrote: >> [ +Dan, Jerome ] >> >> On 03/04/2019 05:30, Anshuman Khandual wrote: >>> Arch implementation for functions which create or destroy vmemmap mapping >>> (vmemmap_populate, vmemmap_free)

Re: [PATCH v3 04/20] coresight: etm4x: Configure tracers to emit timestamps

2019-04-03 Thread Mike Leach
Hi, On Thu, 4 Apr 2019 at 04:36, Mathieu Poirier wrote: > > Configure timestamps to be emitted at regular intervals in the trace > stream to temporally correlate instructions executed on different CPUs. > > Signed-off-by: Mathieu Poirier > --- > drivers/hwtracing/coresight/coresight-etm4x.c |

Re: [PATCH 6/6] arm64/mm: Enable ZONE_DEVICE

2019-04-03 Thread Anshuman Khandual
On 04/03/2019 07:28 PM, Robin Murphy wrote: > [ +Dan, Jerome ] > > On 03/04/2019 05:30, Anshuman Khandual wrote: >> Arch implementation for functions which create or destroy vmemmap mapping >> (vmemmap_populate, vmemmap_free) can comprehend and allocate from inside >> device memory range

Re: 15c8410c67 ("mm/slob.c: respect list_head abstraction layer"): WARNING: CPU: 0 PID: 1 at lib/list_debug.c:28 __list_add_valid

2019-04-03 Thread Tobin C. Harding
On Wed, Apr 03, 2019 at 03:54:17PM +1100, Tobin C. Harding wrote: > On Wed, Apr 03, 2019 at 10:00:38AM +0800, kernel test robot wrote: > > Greetings, > > > > 0day kernel testing robot got the below dmesg and the first bad commit is > > > >

I will be waiting for your urgent answer

2019-04-03 Thread Jucai LI
Beautiful day, My name is Mr. Jucai Li, Chief Executive Officer of the Bank of China I am looking for a business partner who will work with me in a joint venture. Contact me in my private email for more details. Email (jucailil...@gmail.com) I am waiting to hear from you. Many thanks, Mr. Jucai

Re: [PATCH v1] ARM: dts: exynos: Add proper regulator states for suspend-to-mem for odroid-u3

2019-04-03 Thread Anand Moon
hi Krzysztof, On Tue, 26 Mar 2019 at 16:28, Krzysztof Kozlowski wrote: > > On Tue, 26 Mar 2019 at 11:35, Anand Moon wrote: > > (...) > > > > This is third or fourth submission but you marked it as v1. This makes > > > it very difficult to discuss and reference previous versions. > > > > > > The

RE: [PATCH] usb: uas: fix usb subsystem hang after power off hub port

2019-04-03 Thread Kento.A.Kobayashi
Hi, >> Root Cause >> - Block layer timeout happens after power off UAS USB device which is >> accessed as reproduce step. During timeout error handler process, scsi host >> state becomes SHOST_CANCEL_RECOVERY that causes IO hangs up and lock cannot >> be released. And in final, usb subsystem

[PATCH v1 12/12] ASoC: rockchip: pdm: Correct PDM_CTRL0 reg value

2019-04-03 Thread Sugar Zhang
This patch fix the wrong reg value for rk322x/rk322xh, cuz there is no STORE JUSTIFIED MODE on it. on rk322x/rk322xh, the same bit means PDM_MODE/RESERVED, if the bit is set to RESERVED, the controller will not work. Signed-off-by: Sugar Zhang --- sound/soc/rockchip/rockchip_pdm.c | 7 +--

[PATCH v1 11/12] ASoC: rockchip: pdm: Mark RXFIFO_DATA as volatile and precious

2019-04-03 Thread Sugar Zhang
This patch marks RXFIFO_DATA as precious to avoid being read outside a call from the driver, such as regmap debugfs Signed-off-by: Sugar Zhang --- sound/soc/rockchip/rockchip_pdm.c | 13 + 1 file changed, 13 insertions(+) diff --git a/sound/soc/rockchip/rockchip_pdm.c

[PATCH v1 10/12] ASoC: rockchip: pdm: adjust waterlevel in frame unit

2019-04-03 Thread Sugar Zhang
This patch make the waterlevel more reasonable, because the pdm controller share the single FIFO(128 entries) with each channel. adjust waterlevel in frame to meet the vad or dma frames request. Signed-off-by: Sugar Zhang --- sound/soc/rockchip/rockchip_pdm.c | 3 ++- 1 file changed, 2

[PATCH v1 09/12] dt-bindings: sound: add compatible for rk1808

2019-04-03 Thread Sugar Zhang
This patch adds bindings for rk1808 soc. Signed-off-by: Sugar Zhang --- Documentation/devicetree/bindings/sound/rockchip,pdm.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/sound/rockchip,pdm.txt

[PATCH v1 08/12] ASoC: rockchip: pdm: add compatible for rk1808

2019-04-03 Thread Sugar Zhang
This patch adds support for rk1808, the pdm controller is the same as rk3308. Signed-off-by: Sugar Zhang --- sound/soc/rockchip/rockchip_pdm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c index 4f93a74..3e1c5fd

[PATCH v1 07/12] dt-bindings: sound: rockchip: add compatible for rk3308/px30

2019-04-03 Thread Sugar Zhang
This patch adds bindings for rk3308/px30. Signed-off-by: Sugar Zhang --- Documentation/devicetree/bindings/sound/rockchip,pdm.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/rockchip,pdm.txt

[PATCH v1 06/12] ASoC: rockchip: pdm: fixup pdm fractional div

2019-04-03 Thread Sugar Zhang
This patch adds support fractional div for rk3308. Signed-off-by: Sugar Zhang --- sound/soc/rockchip/rockchip_pdm.c | 172 -- sound/soc/rockchip/rockchip_pdm.h | 9 ++ 2 files changed, 139 insertions(+), 42 deletions(-) diff --git

CAN I TRUST YOU I NEED YOUR ASSISTANCE AND TRUST

2019-04-03 Thread info
INVESTMENT FOR PARTNERSHIP. Can I Trust You My Dear Friend Can I Trust You.docx Description: MS-Word 2007 document My Dear Friend Can I Trust You.docx Description: MS-Word 2007 document

[PATCH v1 05/12] ASoC: rockchip: pdm: change dma burst to 8

2019-04-03 Thread Sugar Zhang
This patch decreases the transfer bursts to avoid the fifo overrun. Signed-off-by: Sugar Zhang --- sound/soc/rockchip/rockchip_pdm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c index abbb6d7..c50494b

Re: [RESEND PATCH v6 07/11] power: supply: max77650: add support for battery charger

2019-04-03 Thread Linus Walleij
On Tue, Mar 19, 2019 at 12:42 AM Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Add basic support for the battery charger for max77650 PMIC. > > Signed-off-by: Bartosz Golaszewski This looks like a clean and good driver to me. Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH 1/2] dt-bindings: pinctrl: meson: Add drive-strength property

2019-04-03 Thread Linus Walleij
On Sun, Mar 31, 2019 at 2:04 PM Jerome Brunet wrote: > On Sun, 2019-03-31 at 01:40 -0500, Rob Herring wrote: > > On Thu, Mar 14, 2019 at 05:37:24PM +0100, Jerome Brunet wrote: > > > From: Guillaume La Roque > > > +Optional properties : > > > + - drive-strength: Drive strength for the specified

Re: [PATCH] lib: Fix possible incorrect result from rational fractions helper

2019-04-03 Thread tpiepho
On Mon, Apr 1, 2019 at 10:22 PM Andrew Morton < a...@linux-foundation.org> wrote: > On Sat, 30 Mar 2019 13:58:55 -0700 Trent Piepho > wrote: > > In some cases the previous algorithm would not return the closest > > approximation. This would happen when a semi-convergent was the > > closest, as

Re: [PATCH 0/2] pinctrl: meson: add g12a drive strength support

2019-04-03 Thread Linus Walleij
On Thu, Mar 14, 2019 at 11:37 PM Jerome Brunet wrote: > Now the slightly annoying part :( > The value achievable by the SoC are 0.5mA, 2.5mA, 3mA and 4mA and the DT > property > 'drive-strength' is expressed in mA. > > 1) Rounding down the value, we could be requesting a 0mA drive strength. >

[PATCH v3 14/20] coresight: tmc-etr: Introduce the notion of process ID to ETR devices

2019-04-03 Thread Mathieu Poirier
In preparation to support CPU-wide trace scenarios, introduce the notion of process ID to ETR devices. That way events monitoring the same process can use the same etr_buf, allowing multiple CPUs to use the same sink. Signed-off-by: Mathieu Poirier ---

[PATCH v3 20/20] coresight: etb10: Add support for CPU-wide trace scenarios

2019-04-03 Thread Mathieu Poirier
This patch adds support for CPU-wide trace scenarios by making sure that only the sources monitoring the same process have access to a common sink. Because the sink is shared between sources, the first source to use the sink switches it on while the last one does the cleanup. Any attempt to

[PATCH v3 08/20] coresight: Properly address concurrency in sink::update() functions

2019-04-03 Thread Mathieu Poirier
When operating in CPU-wide trace scenarios and working with an N:1 source/sink HW topology, update() functions need to be made atomic in order to avoid racing with start and stop operations. Signed-off-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose ---

[PATCH v3 18/20] coresight: tmc-etr: Add support for CPU-wide trace scenarios

2019-04-03 Thread Mathieu Poirier
This patch adds support for CPU-wide trace scenarios by making sure that only the sources monitoring the same process have access to a common sink. Because the sink is shared between sources, the first source to use the sink switches it on while the last one does the cleanup. Any attempt to

[PATCH v3 19/20] coresight: tmc-etf: Add support for CPU-wide trace scenarios

2019-04-03 Thread Mathieu Poirier
This patch adds support for CPU-wide trace scenarios by making sure that only the sources monitoring the same process have access to a common sink. Because the sink is shared between sources, the first source to use the sink switches it on while the last one does the cleanup. Any attempt to

[PATCH v3 17/20] coresight: tmc-etr: Allocate and free ETR memory buffers for CPU-wide scenarios

2019-04-03 Thread Mathieu Poirier
This patch uses the PID of the process being traced to allocate and free ETR memory buffers for CPU-wide scenarios. The implementation is tailored to handle both N:1 and 1:1 source/sink HW topologies. Signed-off-by: Mathieu Poirier --- .../hwtracing/coresight/coresight-tmc-etr.c | 107

[PATCH v3 13/20] coresight: tmc-etr: Create per-thread buffer allocation function

2019-04-03 Thread Mathieu Poirier
Buffer allocation is different when dealing with per-thread and CPU-wide sessions. In preparation to support CPU-wide trace scenarios simplify things by keeping allocation functions for both type separate. Signed-off-by: Mathieu Poirier --- .../hwtracing/coresight/coresight-tmc-etr.c | 29

[PATCH v3 06/20] coresight: Move reference counting inside sink drivers

2019-04-03 Thread Mathieu Poirier
When operating in CPU-wide mode with an N:1 source/sink HW topology, multiple CPUs can access a sink concurrently. As such reference counting needs to happen when the device's spinlock is held to avoid racing with other operations (start(), update(), stop()), such as: session A

[PATCH v3 15/20] coresight: tmc-etr: Introduce the notion of reference counting to ETR devices

2019-04-03 Thread Mathieu Poirier
This patch adds reference counting to struct etr_buf so that, in CPU-wide trace scenarios, shared buffers can be disposed of when no longer used. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-tmc-etr.c | 5 + drivers/hwtracing/coresight/coresight-tmc.h | 3 +++

[PATCH v3 09/20] coresight: perf: Clean up function etm_setup_aux()

2019-04-03 Thread Mathieu Poirier
There is no point in allocating sink memory for a trace session if there is not a way to free it once it is no longer needed. As such make sure the sink API function to allocate and free memory have been implemented before moving ahead with the establishment of a trace session. Signed-off-by:

[PATCH v3 16/20] coresight: tmc-etr: Introduce the notion of IDR to ETR devices

2019-04-03 Thread Mathieu Poirier
In CPU-wide scenarios with an N:1 source/sink topology, sources share the same sink. In order to reuse the same sink for all sources an IDR is needed to archive events that have already been accounted for. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-tmc.c | 4

[PATCH v3 12/20] coresight: tmc-etr: Refactor function tmc_etr_setup_perf_buf()

2019-04-03 Thread Mathieu Poirier
Refactoring function tmc_etr_setup_perf_buf() so that it only deals with the high level etr_perf_buffer, leaving the allocation of the backend buffer (i.e etr_buf) to another function. That way the backend buffer allocation function can decide if it wants to reuse an existing buffer (CPU-wide

[PATCH v3 05/20] coresight: Adding return code to sink::disable() operation

2019-04-03 Thread Mathieu Poirier
In preparation to handle device reference counting inside of the sink drivers, add a return code to the sink::disable() operation so that proper action can be taken if a sink has not been disabled. Signed-off-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose ---

[PATCH v3 02/20] coresight: etm4x: Add kernel configuration for CONTEXTID

2019-04-03 Thread Mathieu Poirier
Set the proper bit in the configuration register when contextID tracing has been requested by user space. That way PE_CONTEXT elements are generated by the tracers when a process is installed on a CPU. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/Kconfig | 1 +

[PATCH v3 07/20] coresight: Properly address errors in sink::disable() functions

2019-04-03 Thread Mathieu Poirier
When disabling a sink the reference counter ensures the operation goes through if nobody else is using it. As such if drvdata::mode is already set do CS_MODE_DISABLED, it is an error and should be reported as such. Signed-off-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose ---

[PATCH v3 01/20] coresight: pmu: Adding ITRACE property to cs_etm PMU

2019-04-03 Thread Mathieu Poirier
Add to the capabilities the ITRACE property so that ITRACE START events are generated when the PMU is switched on by the core. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm-perf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v3 03/20] coresight: etm4x: Skip selector pair 0

2019-04-03 Thread Mathieu Poirier
Resource selector pair 0 is always implemented and reserved. As such it should not be explicitly programmed. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm4x.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[PATCH v3 11/20] coresight: Communicate perf event to sink buffer allocation functions

2019-04-03 Thread Mathieu Poirier
Make struct perf_event available to sink buffer allocation functions in order to use the pid they carry to allocate and free buffer memory along with regimenting access to what source a sink can collect data for. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etb10.c

[PATCH v3 04/20] coresight: etm4x: Configure tracers to emit timestamps

2019-04-03 Thread Mathieu Poirier
Configure timestamps to be emitted at regular intervals in the trace stream to temporally correlate instructions executed on different CPUs. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm4x.c | 101 +- 1 file changed, 100 insertions(+), 1

[PATCH v3 10/20] coresight: perf: Refactor function free_event_data()

2019-04-03 Thread Mathieu Poirier
Function free_event_data() is already busy and is bound to become worse with the addition of CPU-wide trace scenarios. As such spin off a new function to strickly take care of the sink buffers. Signed-off-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose ---

[PATCH v3 00/20] coresight: Add support for CPU-wide trace scenarios

2019-04-03 Thread Mathieu Poirier
This is the third revision of a patchset that adds support for CPU-wide trace scenarios and as such, it is now possible to issue the following commands: # perf record -e cs_etm/@2007.etr/ -C 2,3 $COMMAND # perf record -e cs_etm/@2007.etr/ -a $COMMAND The solution is

[PATCH] mm:workingset use real time to judge activity of the file page

2019-04-03 Thread Zhaoyang Huang
From: Zhaoyang Huang In previous implementation, the number of refault pages is used for judging the refault period of each page, which is not precised as eviction of other files will be affect a lot on current cache. We introduce the timestamp into the workingset's entry and refault ratio to

Re: [PATCH v3 04/13] thermal: qoriq: Add local struct qoriq_sensor pointer

2019-04-03 Thread Daniel Lezcano
On 01/04/2019 06:14, Andrey Smirnov wrote: > Add local struct qoriq_sensor pointer in qoriq_tmu_register_tmu_zone() > for brevity. > > Signed-off-by: Andrey Smirnov > Cc: Chris Healy > Cc: Lucas Stach > Cc: Zhang Rui > Cc: Eduardo Valentin > Cc: Daniel Lezcano > Cc: Angus Ainslie (Purism)

Re: [PATCH v3 03/13] thermal: qoriq: Don't store struct thermal_zone_device reference

2019-04-03 Thread Daniel Lezcano
On 01/04/2019 06:14, Andrey Smirnov wrote: > Struct thermal_zone_device reference stored as sensor's private data > isn't really used anywhere in the code. Drop it. > > Signed-off-by: Andrey Smirnov > Cc: Chris Healy > Cc: Lucas Stach > Cc: Zhang Rui > Cc: Eduardo Valentin > Cc: Daniel

Re: [PATCH v3 01/13] thermal: qoriq: Remove unnecessary DT node is NULL check

2019-04-03 Thread Daniel Lezcano
On 01/04/2019 06:14, Andrey Smirnov wrote: > This driver is meant to be used with Device Tree and there's no > use-case where device's DT node is going to be NULL. Remove code > protecting against that. May be elaborate why is never going to be NULL? > Signed-off-by: Andrey Smirnov > Cc: Chris

Re: [PATCH v2 3/5] locking/qspinlock: Introduce CNA into the slow path of qspinlock

2019-04-03 Thread Alex Kogan
Hi, Hanjun. > On Apr 3, 2019, at 10:02 PM, Hanjun Guo wrote: > > Hi Alex, > > On 2019/3/29 23:20, Alex Kogan wrote: >> + >> +static __always_inline void cna_init_node(struct mcs_spinlock *node, int >> cpuid, >> + u32 tail) >> +{ >> +if

Re: [PATCH v3 02/13] thermal: qoriq: Add local struct device pointer

2019-04-03 Thread Daniel Lezcano
On 01/04/2019 06:14, Andrey Smirnov wrote: > Use a local "struct device *dev" for brevity. No functional change > intended. > > Signed-off-by: Andrey Smirnov > Cc: Chris Healy > Cc: Lucas Stach > Cc: Zhang Rui > Cc: Eduardo Valentin > Cc: Daniel Lezcano > Cc: Angus Ainslie (Purism) > Cc:

[PATCH] tools/power: turbostat: make output buffer extensible (Re: [PATCH v1] tools/power: turbostat: fix buffer overrun)

2019-04-03 Thread Naoya Horiguchi
Hi Prarit, On Wed, Apr 03, 2019 at 07:42:45AM -0400, Prarit Bhargava wrote: > > > On 4/3/19 3:02 AM, Naoya Horiguchi wrote: > > turbostat could be terminated by general protection fault on some latest > > hardwares which (for example) support 9 levels of C-states and show 18 > > "tADDED" lines.

Re: [PATCH v1 3/3] thermal: rockchip: Support the PX30 SoC in thermal driver

2019-04-03 Thread Daniel Lezcano
On 01/04/2019 08:43, Elaine Zhang wrote: > PX30 SOC has two Temperature Sensors for CPU and GPU. > > Signed-off-by: Elaine Zhang > --- > drivers/thermal/rockchip_thermal.c | 39 > ++ > 1 file changed, 39 insertions(+) > > diff --git

Re: [PATCH v1 2/3] dt-bindings: rockchip-thermal: Support the PX30 SoC compatible

2019-04-03 Thread Daniel Lezcano
On 01/04/2019 08:43, Elaine Zhang wrote: > Add a new compatible for thermal founding on PX30 SoCs. > > Signed-off-by: Elaine Zhang > --- > Documentation/devicetree/bindings/thermal/rockchip-thermal.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [PATCH v1 1/3] thermal: rockchip: add pinctrl control

2019-04-03 Thread Daniel Lezcano
On 01/04/2019 08:43, Elaine Zhang wrote: > Based on the TSADC Tshut mode to select pinctrl, > instead of setting pinctrl based on architecture > (Not depends on pinctrl setting by "init" or "default"). > And it requires setting the tshut polarity before select pinctrl. I'm not sure to fully read

Re: [PATCH v11 2/8] mfd: bd70528: Support ROHM bd70528 PMIC - core

2019-04-03 Thread Lee Jones
On Wed, 03 Apr 2019, Vaittinen, Matti wrote: > On Wed, 2019-04-03 at 12:25 +0100, Lee Jones wrote: > > On Wed, 03 Apr 2019, Matti Vaittinen wrote: > > > > > On Wed, Apr 03, 2019 at 10:30:15AM +0100, Lee Jones wrote: > > > > On Wed, 03 Apr 2019, Matti Vaittinen wrote: > > > > > > > > > Hello

linux-next: manual merge of the staging tree with the spi tree

2019-04-03 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the staging tree got conflicts in: drivers/staging/mt7621-spi/Kconfig drivers/staging/mt7621-spi/Makefile between commit: cbd66c626e16 ("spi: mt7621: Move SPI driver out of staging") from the spi tree and commits: 99b75a4e3275 ("staging: add

Re: [PATCH 3/4] mfd: ti-lmu: Remove LM3532 backlight driver references

2019-04-03 Thread Lee Jones
On Wed, 03 Apr 2019, Jacek Anaszewski wrote: > On 4/3/19 9:57 AM, Lee Jones wrote: > > On Mon, 25 Mar 2019, Jacek Anaszewski wrote: > > > > > On 3/25/19 8:53 AM, Lee Jones wrote: > > > > On Sat, 23 Mar 2019, Jacek Anaszewski wrote: > > > > > > > > > Hi Lee, > > > > > > > > > > Can we have your

linux-next: manual merge of the staging tree with the v4l-dvb tree

2019-04-03 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the staging tree got conflicts in: drivers/staging/media/mt9t031/Kconfig drivers/staging/media/mt9t031/Makefile between commit: dfe571ca8daa ("media: soc_camera: Remove leftover files, add TODO") from the v4l-dvb tree and commits: 99b75a4e3275

Re: [PATCH v4] arm64: dts: ls1088a: add one more thermal zone node

2019-04-03 Thread Daniel Lezcano
On 01/04/2019 05:29, Yuantian Tang wrote: > Ls1088a has 2 thermal sensors, core cluster and SoC platform. Core cluster > sensor is used to monitor the temperature of core and SoC platform is for > platform. The current dts only support the first sensor. > This patch adds the second sensor node to

linux-next: manual merge of the staging tree with the spi tree

2019-04-03 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the staging tree got a conflict in: drivers/spi/spi-mt7621.c between commit: cbd66c626e16 ("spi: mt7621: Move SPI driver out of staging") from the spi tree and commit: 18f0e249da67 ("staging: mt7621-spi: Remove parentheses") from the staging tree.

[PATCH] of: Documentation: Correct return value from of_overlay_fdt_apply

2019-04-03 Thread Chris Packham
The return from of_overlay_fdt_apply() just indicates success or fail. The cookie is returned via reference. Signed-off-by: Chris Packham --- Documentation/devicetree/overlay-notes.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v3 0/3] Add restrictions for kexec/kdump jumping between 5-level and 4-level kernel

2019-04-03 Thread Baoquan He
PING Any comment for this patch, Or consider to merge? On 03/12/19 at 06:30pm, Baoquan He wrote: > This is v3 post. > > The original v1 post can be found here: > http://lkml.kernel.org/r/20180829141624.13985-1-...@redhat.com > > Later a v1 RESEND version: >

Re: [PATCH v3 0/2] x86/mm/KASLR: Change the granularity of randomization to PUD size in 5-level

2019-04-03 Thread Baoquan He
PING Is there any comment for this patchset, or could we consider to merge them? On 03/08/19 at 10:56am, Baoquan He wrote: > This is v3 post, v2 post is here: > http://lkml.kernel.org/r/20190228003522.9957-1-...@redhat.com > v1 can be found here: >

[RFC PATCH 06/25] mm: migrate: Make the number of copy threads adjustable via sysctl.

2019-04-03 Thread Zi Yan
From: Zi Yan Signed-off-by: Zi Yan --- kernel/sysctl.c | 9 + mm/copy_page.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 3d8490e..0eae0b8 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -102,6 +102,7 @@ #if

[RFC PATCH 10/25] mm: migrate: copy_page_lists_mt() to copy a page list using multi-threads.

2019-04-03 Thread Zi Yan
From: Zi Yan This prepare the support for migrate_page_concur(), which migrates multiple pages at the same time. Signed-off-by: Zi Yan --- mm/copy_page.c | 123 + mm/internal.h | 2 + 2 files changed, 125 insertions(+) diff --git

[RFC PATCH 23/25] memory manage: page migration based page manipulation between NUMA nodes.

2019-04-03 Thread Zi Yan
From: Zi Yan Users are expected to set memcg max size to reflect their memory resource allocation policy. The syscall simply migrates pages belong to the application's memcg between from_node to to_node, where from_node is considered fast memory and to_node is considered slow memory. In common

[RFC PATCH 08/25] mm: migrate: Add copy_page_dma into migrate_page_copy.

2019-04-03 Thread Zi Yan
From: Zi Yan Fallback to copy_highpage when it fails. Signed-off-by: Zi Yan --- include/linux/migrate_mode.h | 1 + include/uapi/linux/mempolicy.h | 1 + mm/migrate.c | 31 +-- 3 files changed, 23 insertions(+), 10 deletions(-) diff --git

[RFC PATCH 24/25] memory manage: limit migration batch size.

2019-04-03 Thread Zi Yan
From: Zi Yan Make migration batch size adjustable to avoid excessive migration overheads when a lot of pages are under migration. Signed-off-by: Zi Yan --- kernel/sysctl.c| 8 mm/memory_manage.c | 60 -- 2 files changed, 48

[RFC PATCH 05/25] mm: migrate: Add vm.accel_page_copy in sysfs to control page copy acceleration.

2019-04-03 Thread Zi Yan
From: Zi Yan Since base page migration did not gain any speedup from multi-threaded methods, we only accelerate the huge page case. Signed-off-by: Zi Yan --- kernel/sysctl.c | 11 +++ mm/migrate.c| 6 ++ 2 files changed, 17 insertions(+) diff --git a/kernel/sysctl.c

[RFC PATCH 12/25] exchange pages: new page migration mechanism: exchange_pages()

2019-04-03 Thread Zi Yan
From: Zi Yan It exchanges two pages by unmapping both first, then exchanging the data of the pages using a u64 register, and finally remapping both pages. It saves the overheads of allocating two new pages in two back-to-back migrate_pages(). Signed-off-by: Zi Yan ---

[RFC PATCH 11/25] mm: migrate: Add concurrent page migration into move_pages syscall.

2019-04-03 Thread Zi Yan
From: Zi Yan Concurrent page migration unmaps all pages in a list, copy all pages in one function (copy_page_list*), finally remaps all new pages. This is different from existing page migration process which migrate one page at a time. Only anonymous pages are supported. All file-backed pages

[RFC PATCH 01/25] mm: migrate: Change migrate_mode to support combination migration modes.

2019-04-03 Thread Zi Yan
From: Zi Yan No functionality is changed. Prepare for the following patches, which add parallel, concurrent page migration modes in conjunction to the existing modes. Signed-off-by: Zi Yan --- fs/aio.c | 10 +- fs/f2fs/data.c | 4 ++--

[RFC PATCH 07/25] mm: migrate: Add copy_page_dma to use DMA Engine to copy pages.

2019-04-03 Thread Zi Yan
From: Zi Yan vm.use_all_dma_chans will grab all usable DMA channels vm.limit_dma_chans will limit how many DMA channels in use Signed-off-by: Zi Yan --- include/linux/highmem.h | 1 + include/linux/sched/sysctl.h | 3 + kernel/sysctl.c | 19 +++ mm/copy_page.c

  1   2   3   4   5   6   7   8   9   10   >