Re: [PATCH] soc: imx: Add generic i.MX8 SoC driver

2019-02-24 Thread Chris Spencer
On Sun, 3 Feb 2019 at 11:50, Abel Vesa wrote: > Add generic i.MX8 SoC driver along with the i.MX8MQ SoC specific code. > > Signed-off-by: Abel Vesa Tested-by: Chris Spencer My patch series which adds support for the i.MX8MQ to the CAAM driver [1] needs the SoC driver, so it would be good to

Re: [PATCH v2 17/26] userfaultfd: wp: support swap and page migration

2019-02-24 Thread Peter Xu
On Thu, Feb 21, 2019 at 01:16:19PM -0500, Jerome Glisse wrote: > On Tue, Feb 12, 2019 at 10:56:23AM +0800, Peter Xu wrote: > > For either swap and page migration, we all use the bit 2 of the entry to > > identify whether this entry is uffd write-protected. It plays a similar > > role as the

Re: [ANNOUNCE][CFP] Power Management and Scheduling in the Linux Kernel III edition (OSPM-summit 2019)

2019-02-24 Thread Juri Lelli
Hello, A quick one to inform everybody that registrations are now open! Although list of topics looks pretty good already, we are still accepting new ones. So, please don't hesitate to add your. Best, - Juri On 14/01/19 17:19, Juri Lelli wrote: > Power Management and Scheduling in the Linux

Re: [PATCH v3] x86/gart/kcore: Exclude GART aperture from kcore

2019-02-24 Thread Kairui Song
On Wed, Feb 13, 2019 at 4:28 PM Kairui Song wrote: > > On machines where the GART aperture is mapped over physical RAM, > /proc/kcore contains the GART aperture range and reading it may lead > to kernel panic. > > In 'commit 2a3e83c6f96c ("x86/gart: Exclude GART aperture from vmcore")', > a

linux-next: Tree for Feb 25

2019-02-24 Thread Stephen Rothwell
Hi all, Changes since 20190222: The powerpc tree lost its build failure. The sound tree gained a conflict against the arm-soc tree. The akpm-current tree gained a conflict against the powerpc tree. The akpm tree gained a conflict against the powerpc tree. Non-merge commits (relative to

Re: [PATCH v5] PM / sleep: measure the time of filesystem syncing

2019-02-24 Thread kbuild test robot
Hi Harry, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.0-rc4 next-20190222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[PATCH v2] net: dsa: fix a leaked reference by adding missing of_node_put

2019-02-24 Thread Wen Yang
The call to of_parse_phandle returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./net/dsa/port.c:294:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented

[PATCH] dt-bindings: regulator: tps65218: rectify units of LS3

2019-02-24 Thread Christian Hohnstaedt
LS3 has a selectable current limit. Change units to microamp in the example. Signed-off-by: Christian Hohnstaedt --- Documentation/devicetree/bindings/regulator/tps65218.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v2 14/26] userfaultfd: wp: handle COW properly for uffd-wp

2019-02-24 Thread Peter Xu
On Fri, Feb 22, 2019 at 10:35:09AM -0500, Jerome Glisse wrote: > On Fri, Feb 22, 2019 at 04:46:03PM +0800, Peter Xu wrote: > > On Thu, Feb 21, 2019 at 01:04:24PM -0500, Jerome Glisse wrote: > > > On Tue, Feb 12, 2019 at 10:56:20AM +0800, Peter Xu wrote: > > > > This allows uffd-wp to support

Re: [PATCH 06/15] perf script python: add Python3 support to intel-pt-events.py

2019-02-24 Thread Adrian Hunter
On 23/02/19 1:06 AM, Tony Jones wrote: > Support both Python2 and Python3 in the intel-pt-events.py script > > There may be differences in the ordering of output lines due to > differences in dictionary ordering etc. However the format within lines > should be unchanged. > > Fix space/tab

Re: [PATCH 2/6] mm/memblock: make full utilization of numa info

2019-02-24 Thread kbuild test robot
Hi Pingfan, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.0-rc4] [cannot apply to next-20190222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

RE: [PATCH 0/3] soc: fsl: dpio: enable and configure cache stashing

2019-02-24 Thread Ioana Ciornei
> Subject: Re: [PATCH 0/3] soc: fsl: dpio: enable and configure cache stashing > > From: Ioana Ciornei > Date: Sat, 23 Feb 2019 08:48:42 + > > > The first two patches enable cache stashing and configure the core > > cluster destination per software portal while the third patch is the > >

Re: [PATCH 2/2] staging: erofs: switch to ->iterate_shared()

2019-02-24 Thread Gao Xiang
On 2019/2/25 9:36, Chao Yu wrote: > On 2019/2/21 10:34, Gao Xiang wrote: >> After commit 6192269444eb ("introduce a parallel variant of ->iterate()"), >> readdir can be done without taking exclusive inode lock of course. >> >> Signed-off-by: Gao Xiang > > Reviewed-by: Chao Yu Thanks for

[PATCH v4 0/5] soc: qcom: Add SoC info driver

2019-02-24 Thread Vaishali Thakkar
This patchset adds SoC info driver which can provide information such as Chip ID, Chip family and serial number about Qualcomm SoCs to user space via sysfs. Furthermore, it allows userspace to get information about custom attributes and various image version information via debugfs. The patchset

[PATCH v4 2/5] base: soc: Export soc_device_register/unregister APIs

2019-02-24 Thread Vaishali Thakkar
From: Vinod Koul Qcom Socinfo driver can be built as a module, so export these two APIs. Signed-off-by: Vinod Koul Signed-off-by: Vaishali Thakkar Reviewed-by: Greg Kroah-Hartman --- Changes since v3: - Add Greg's reviewed-by Changes since v2: - Reorder patches [patch

[PATCH v2 1/2] arm64: dts: mt8173: correct cpu type of cpu2 and cpu3 to cortex-a72

2019-02-24 Thread Seiya Wang
The cpu type of cpu2 and cpu3 should be cortex-a72, not cortex-a57. Signed-off-by: Seiya Wang --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi

[PATCH v4 5/5] soc: qcom: socinfo: Expose image information

2019-02-24 Thread Vaishali Thakkar
The socinfo driver provides information about version of the various images loaded in the system. Expose this to user space for debugging purpose. Signed-off-by: Vaishali Thakkar --- Changes since v3: - Remove extra debugfs directory creation checks Changes since v2: - None

[PATCH v2 2/2] clk: mediatek: correct cpu clock name for MT8173 SoC

2019-02-24 Thread Seiya Wang
Correct cpu clock name from ca57 to ca72 since MT8173 does use cortex-a72. Signed-off-by: Seiya Wang Reviewed-by: Matthias Brugger Acked-by: Stephen Boyd --- drivers/clk/mediatek/clk-mt8173.c | 4 ++-- include/dt-bindings/clock/mt8173-clk.h | 3 ++- 2 files changed, 4 insertions(+), 3

[PATCH v4 3/5] soc: qcom: Add socinfo driver

2019-02-24 Thread Vaishali Thakkar
From: Imran Khan The Qualcomm socinfo driver exposes information about the SoC, its version and its serial number to user space. Signed-off-by: Imran Khan [Bjorn: Extract code to platform_driver, split patch in multiple] Signed-off-by: Bjorn Andersson [Vaishali: Simplify declarations,

[PATCH v4 1/5] base: soc: Add serial_number attribute to soc

2019-02-24 Thread Vaishali Thakkar
From: Bjorn Andersson Add new attribute named "serial_number" as a standard interface for user space to acquire the serial number of the device. For ST-Ericsson SoCs this is exposed by the cryptically named "soc_id" attribute, but this provides a human readable standardized name for this

[PATCH v4 4/5] soc: qcom: socinfo: Expose custom attributes

2019-02-24 Thread Vaishali Thakkar
The Qualcomm socinfo provides a number of additional attributes, add these to the socinfo driver and expose them via debugfs functionality. Signed-off-by: Vaishali Thakkar --- Changes since v3: - Fix compilation error in function signatures when debugfs is disabled Changes

Re: [PATCH v2 10/26] userfaultfd: wp: add UFFDIO_COPY_MODE_WP

2019-02-24 Thread Peter Xu
On Fri, Feb 22, 2019 at 10:15:47AM -0500, Jerome Glisse wrote: > On Fri, Feb 22, 2019 at 03:11:06PM +0800, Peter Xu wrote: > > On Thu, Feb 21, 2019 at 12:29:19PM -0500, Jerome Glisse wrote: > > > On Tue, Feb 12, 2019 at 10:56:16AM +0800, Peter Xu wrote: > > > > From: Andrea Arcangeli > > > > > >

[PATCH v2 0/2] regulator: tps65218: support LS2

2019-02-24 Thread Christian Hohnstaedt
Add support for the LS2 regulator in the tps65218 device Christian Hohnstaedt (2): dt-bindings: regulator: Add LS2 load switch documentation regulator: tps65218: Add support for LS2 .../devicetree/bindings/regulator/tps65218.txt | 4 ++-- drivers/regulator/tps65218-regulator.c

[PATCH v2 2/2] regulator: tps65218: add support for LS2

2019-02-24 Thread Christian Hohnstaedt
Re-use the "tps65218_pmic_*_current_limit()" functions of LS3 and calculate the different required bit-shift by counting the trailing 0s in "struct regulator_desc.csel_mask" Signed-off-by: Christian Hohnstaedt --- drivers/regulator/tps65218-regulator.c | 18 +-

Re: linux-next: manual merge of the akpm-current tree with the powerpc tree

2019-02-24 Thread Stephen Rothwell
Hi all, On Mon, 25 Feb 2019 17:42:48 +1100 Stephen Rothwell wrote: > > Today's linux-next merge of the akpm-current tree got a conflict in: This was actually the akpm tree. -- Cheers, Stephen Rothwell pgpPothP9uC2A.pgp Description: OpenPGP digital signature

linux-next: manual merge of the akpm-current tree with the powerpc tree

2019-02-24 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: arch/powerpc/kernel/irq.c between commit: c8e409a33cf8 ("powerpc/irq: use memblock functions returning virtual address") and other patches in the powerpc tree from the powerpc tree and patch: "powerpc: use

[PATCH v2 1/2] dt-bindings: regulator: add LS2 load switch documentation

2019-02-24 Thread Christian Hohnstaedt
Document device-tree settings of the load-switch LS2 in the tps65218 device. Signed-off-by: Christian Hohnstaedt --- Documentation/devicetree/bindings/regulator/tps65218.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/tps65218.txt

Re: [PATCH v2 1/2] dt-bindings: dmaengine: sprd: Change channel id to slave id for DMA cell specifier

2019-02-24 Thread Vinod Koul
On 21-02-19, 13:34, Baolin Wang wrote: > For Spreadtrum DMA engine, all channels are equal, which means slave can > request any channels with setting a unique slave id to trigger this channel. > > Thus we can remove the channel id from device tree to assign the channel > dynamically, moreover we

Re: [PATCH net-next] switchdev: Complete removal of switchdev_port_attr_get()

2019-02-24 Thread David Miller
From: Florian Fainelli Date: Sun, 24 Feb 2019 18:39:02 -0800 > We have no more in tree users of switchdev_port_attr_get() after > d0e698d57a94 ("Merge branch 'net-Get-rid-of-switchdev_port_attr_get'") > so completely remove the function signature and body. > > Signed-off-by: Florian Fainelli

Re: [PATCH v2.1 04/26] mm: allow VM_FAULT_RETRY for multiple times

2019-02-24 Thread Peter Xu
On Fri, Feb 22, 2019 at 10:11:58AM -0500, Jerome Glisse wrote: > On Fri, Feb 22, 2019 at 12:25:44PM +0800, Peter Xu wrote: > > On Thu, Feb 21, 2019 at 10:53:11AM -0500, Jerome Glisse wrote: > > > On Thu, Feb 21, 2019 at 04:56:56PM +0800, Peter Xu wrote: > > > > The idea comes from a discussion

Re: [PATCH v5 1/6] dt-bindings: Add a binding for Mediatek SCP

2019-02-24 Thread Pi-Hsun Shih
On Fri, Feb 22, 2019 at 10:43 PM Rob Herring wrote: > > On Thu, Feb 21, 2019 at 04:47:24PM +0800, Pi-Hsun Shih wrote: > > From: Erin Lo > > > > Add a DT binding documentation of SCP for the > > MT8183 SoC from Mediatek. > > > > Signed-off-by: Erin Lo > > --- > > Changes from v4: > > - Add

linux-next: manual merge of the akpm-current tree with the powerpc tree

2019-02-24 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: arch/powerpc/kernel/setup_64.c between commits: c8e409a33cf8 ("powerpc/irq: use memblock functions returning virtual address") d608898abc74 ("powerpc: clean stack pointers naming") from the powerpc tree and

Clang patches for 4.9

2019-02-24 Thread Nathan Chancellor
Hi Greg and Sasha, Attached are three mbox files containing patches that bring the Clang backports that Nick did in 4.9.139 up to date with what is currently in 4.14 and mainline, as well as fix warnings that are present in the arm64 and x86_64 defconfigs here and in AOSP (cuttlefish_defconfig).

Re: [PATCH v1 2/2] clk: mediatek: correct cpu clock name for MT8173 SoC

2019-02-24 Thread Seiya Wang
On Thu, 2019-02-21 at 14:03 -0800, Stephen Boyd wrote: > Quoting Seiya Wang (2019-02-10 23:15:55) > > Change cpu clock name from ca57 to ca72 since MT8173 does use cortex-a72. > > > > Signed-off-by: Seiya Wang > > --- > > Acked-by: Stephen Boyd > > I'm guessing I can't apply this patch

Re: [PATCH] tun: fix blocking read

2019-02-24 Thread David Miller
From: Timur Celik Date: Sat, 23 Feb 2019 12:53:13 +0100 > This patch moves setting of the current state into the loop. Otherwise > the task may end up in a busy wait loop if none of the break conditions > are met. > > Signed-off-by: Timur Celik Applied and queued up for -stable, thanks.

Re: [Patch net-next 00/12] code optimizations & bugfixes for HNS3 driver

2019-02-24 Thread David Miller
From: Huazhong Tan Date: Sat, 23 Feb 2019 17:22:07 +0800 > This patchset includes bugfixes and code optimizations for > the HNS3 ethernet controller driver. Series applied, thanks.

Re: [PATCH 0/3] soc: fsl: dpio: enable and configure cache stashing

2019-02-24 Thread David Miller
From: Ioana Ciornei Date: Sat, 23 Feb 2019 08:48:42 + > The first two patches enable cache stashing and configure the core cluster > destination per software portal while the third patch is the one > configuring the amount of stashing on a queue. Should I merge this series in via my

[PATCH v1 0/3] perf diff: Add new filter options

2019-02-24 Thread Jin Yao
This patch series creates following new filter options for perf diff. --time: It supports time percent with multipe time ranges. Time string is 'a%/n,b%/m,...' or 'a%-b%,c%-%d,...'. For example: Select the second 10% time slice to diff: perf diff --time 10%/2 Select

[PATCH v1 3/3] perf diff: Support --pid/--tid filter options

2019-02-24 Thread Jin Yao
For better filtering support for perf diff, it would be useful to add --pid and --tid filter options. For example, perf diff --tid 13965 It only diff the samples for thread 13965. Signed-off-by: Jin Yao --- tools/perf/Documentation/perf-diff.txt | 6 ++ tools/perf/builtin-diff.c

[PATCH v1 2/3] perf diff: Support --cpu filter option

2019-02-24 Thread Jin Yao
For better support for perf diff, it would be useful to add --cpu filter option. Multiple CPUs can be provided as a comma-separated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2. Default is to report samples on all CPUs. For example, perf diff --cpu 0,1 It only diff the

[PATCH v1 1/3] perf diff: Support --time filter option

2019-02-24 Thread Jin Yao
For better support for perf diff, it would be useful to add --time filter option to diff the samples within given time window. It supports time percent with multipe time ranges. Time string is 'a%/n,b%/m,...' or 'a%-b%,c%-%d,...'. For example: Select the second 10% time slice to diff: perf diff

Re: [PATCH 03/11] x86 topology: Add CPUID.1F multi-die/package support

2019-02-24 Thread Like Xu
On 2019/2/24 18:04, Brice Goglin wrote: Le 19/02/2019 à 04:40, Len Brown a écrit : diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index ccd1f2a8e557..4250a87f57db 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -393,6 +393,7 @@ static bool

Re: [PATCH v6 0/7] Support Trusted Foundations firmware on Tegra30

2019-02-24 Thread Dmitry Osipenko
В Mon, 25 Feb 2019 05:02:33 +0100 Michał Mirosław пишет: > On Fri, Feb 22, 2019 at 10:34:19PM +0300, Dmitry Osipenko wrote: > > Hello, > > > > This patchset adds support for the Trusted Foundations firmware on > > NVIDIA Tegra30. Pretty much all of Tegra30 consumer devices have > > that

Re: huge fsync latencies for a small file on ext4

2019-02-24 Thread Sahitya Tummala
On Tue, Feb 19, 2019 at 02:53:02PM +0100, Jan Kara wrote: > Hi! > > On Tue 19-02-19 15:50:23, stumm...@codeaurora.org wrote: > > I am observing huge fsync latencies for a small file under the below test > > scenario - > > > > process A - > > Issue async write of 4GB using dd command (say

Re: [PATCH v1] usb: chipidea: tegra: Fix missed ci_hdrc_remove_device()

2019-02-24 Thread Dmitry Osipenko
В Mon, 25 Feb 2019 02:27:19 + Peter Chen пишет: > > > > > Fixes: dfebb5f43a78827a ("usb: chipidea: Add support for > > Tegra20/30/114/124") > > I suppose you need to apply at stable tree too, right? > It is enough to have the "Fixes" tag to get patch backported into all relevant

Re: [PATCH] time64: Avoid undefined behaviour in timespec64_add()

2019-02-24 Thread Deepa Dinamani
On Sun, Feb 24, 2019 at 7:13 PM Hongbo Yao wrote: > > I ran into this: > > = > UBSAN: Undefined behaviour in ./include/linux/time64.h:70:2 > signed integer overflow: > 1551059291 +

linux-next: build warning after merge of the gpio tree

2019-02-24 Thread Stephen Rothwell
Hi Linus, After merging the gpio tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/gpio/gpio-amd-fch.c: In function 'amd_fch_gpio_probe': drivers/gpio/gpio-amd-fch.c:164:49: warning: passing argument 2 of 'devm_ioremap_resource' discards 'const' qualifier from

Re: [PATCH 1/2 v2] kprobe: Do not use uaccess functions to access kernel memory that can fault

2019-02-24 Thread Andy Lutomirski
On Sun, Feb 24, 2019 at 6:40 PM Masami Hiramatsu wrote: > > On Sun, 24 Feb 2019 09:26:45 -0800 > Linus Torvalds wrote: > > > On Sun, Feb 24, 2019 at 7:18 AM Masami Hiramatsu > > wrote: > > > > > > On Sat, 23 Feb 2019 20:38:03 -0800 > > > Andy Lutomirski wrote: > > > > > > > > Can we just get

Re: [PATCH V2 4/5] cpufreq: Register notifiers with the PM QoS framework

2019-02-24 Thread Viresh Kumar
On 22-02-19, 11:44, Qais Yousef wrote: > Hi Verish > > On 02/21/19 16:59, Viresh Kumar wrote: > > [...] > > > @@ -2239,6 +2314,8 @@ static int cpufreq_set_policy(struct cpufreq_policy > > *policy, > > struct cpufreq_policy *new_policy) > > { > > struct

Re: [PATCH 10/12] cpufreq: ap806: add missing of_node_put after of_device_is_available

2019-02-24 Thread Viresh Kumar
On 23-02-19, 14:20, Julia Lawall wrote: > Add an of_node_put when a tested device node is not available. > > The semantic patch that fixes this problem is as follows > (http://coccinelle.lip6.fr): > > // > @@ > identifier f; > local idexpression e; > expression x; > @@ > > e = f(...); > ...

Re: [PATCH net-next v2 0/7] net: phy: marvell10g: Add 2.5GBaseT support

2019-02-24 Thread David Miller
From: Maxime Chevallier Date: Sat, 23 Feb 2019 00:37:37 +0100 > This series adds the missing bits necessary to fully support 2.5GBaseT > in the Marvell Alaska PHYs. > > The main points for that support are : > > - Making use of the .get_features call, recently introduced by Heiner >and

Re: [PATCH] block: fix inconsistent page index

2019-02-24 Thread Francesco Ruggeri
On Thu, Feb 21, 2019 at 11:27 AM Francesco Ruggeri wrote: > > __find_get_block_slow() and grow_buffers() use different methods to compute > a page index for a given block: __find_get_block_slow() computes it from > bd_inode->i_blkbits, while grow_buffers() computes it from the block size >

[PATCH v2 1/1] lib/string: Add strscpy_pad() function

2019-02-24 Thread Tobin C. Harding
We have a function to copy strings safely and we have a function to copy strings and zero the tail of the destination (if source string is shorter than destination buffer) but we do not have a function to do both at once. This means developers must write this themselves if they desire this

[PATCH v2 0/1] lib/string: Add strscpy_pad() function

2019-02-24 Thread Tobin C. Harding
Hi, This patch set was formerly Subject: [PATCH 0/6] lib: Add safe string funtions[sic] And FTR can be seen here: https://lkml.org/lkml/2019/2/18/1428 The v1 patch set has been reduced to a single patch by dropping the strscpy_from_user() stuff and by rolling all the docs

Re: [PATCH RFC] mm/vmscan: try to protect active working set of cgroup from reclaim.

2019-02-24 Thread Roman Gushchin
On Fri, Feb 22, 2019 at 08:58:25PM +0300, Andrey Ryabinin wrote: > In a presence of more than 1 memory cgroup in the system our reclaim > logic is just suck. When we hit memory limit (global or a limit on > cgroup with subgroups) we reclaim some memory from all cgroups. > This is sucks because,

Re: [PATCH v6 0/7] Support Trusted Foundations firmware on Tegra30

2019-02-24 Thread Michał Mirosław
On Fri, Feb 22, 2019 at 10:34:19PM +0300, Dmitry Osipenko wrote: > Hello, > > This patchset adds support for the Trusted Foundations firmware on > NVIDIA Tegra30. Pretty much all of Tegra30 consumer devices have that > firmware and upstream kernel can't boot on those devices without the >

Re: [v6 PATCH 6/6] RISC-V: Assign hwcap as per comman capabilities.

2019-02-24 Thread Anup Patel
On Sat, Feb 23, 2019 at 1:11 AM Atish Patra wrote: > > Currently, we set hwcap based on first valid hart from DT. This may not > be correct always as that hart might not be current booting cpu or may > have a different capability. > > Set hwcap as the capabilities supported by all possible harts

[PATCH v2 2/9] power: supply: axp20x_usb_power: Fix typo in VBUS current limit macros

2019-02-24 Thread Chen-Yu Tsai
The VBUS current limit value macros have VBUS typed as VBUC, while the bitmask macro is named correctly. Fix it. Fixes: 69fb4dcada77 ("power: Add an axp20x-usb-power driver") Signed-off-by: Chen-Yu Tsai --- drivers/power/supply/axp20x_usb_power.c | 16 1 file changed, 8

[PATCH v2 4/9] power: supply: axp20x_usb_power: use polling to detect vbus status change

2019-02-24 Thread Chen-Yu Tsai
On AXP221 and later AXP PMICs that have the N_VBUSEN pin, when this pin is high, either due to the PMIC driving it high or as an input, the VBUS detection related interrupt mechanisms are disabled. Previously this was worked around in the phy-sun4i-usb driver, which needed to sense VBUS changes

[PATCH v2 6/9] power: supply: axp20x_usb_power: add support for AXP813

2019-02-24 Thread Chen-Yu Tsai
From: Quentin Schulz This adds support for AXP813 PMIC. It is almost the same as AXP22X but has a different current limit. Signed-off-by: Quentin Schulz Signed-off-by: Chen-Yu Tsai --- drivers/power/supply/axp20x_usb_power.c | 66 - 1 file changed, 65 insertions(+), 1

[PATCH v2 7/9] mfd: axp20x: add USB power supply mfd cell to AXP813

2019-02-24 Thread Chen-Yu Tsai
From: Quentin Schulz The AXP813 has a VBUS power input. Now that the axp20x_usb_power driver supports this variant, we can add an mfd cell for it to use it. Signed-off-by: Quentin Schulz [w...@csie.org: add commit message] Acked-for-MFD-by: Lee Jones Signed-off-by: Chen-Yu Tsai --- Changes

[PATCH v2 1/9] dt-bindings: power: supply: axp20x_usb_power: add axp813 compatible

2019-02-24 Thread Chen-Yu Tsai
This adds the "x-powers,axp813-usb-power-supply" to the list of compatibles for AXP20X VBUS power supply driver. Signed-off-by: Chen-Yu Tsai --- .../devicetree/bindings/power/supply/axp20x_usb_power.txt| 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 8/9] ARM: dtsi: axp81x: add USB power supply node

2019-02-24 Thread Chen-Yu Tsai
From: Quentin Schulz The AXP813/818 has a VBUS power input. Add a device node for it, now that we support it. Signed-off-by: Quentin Schulz [w...@csie.org: Add commit message] Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/axp81x.dtsi | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v2 0/9] ARM: sun8i: a83t: Enable USB OTG

2019-02-24 Thread Chen-Yu Tsai
Hi everyone, This is v2 of my A83T USB power supply / OTG series. Changes since v1: - Added Lee's ack for mfd patch - Make axp803_usb_power_supply_resources[] const This series has since been tested. Both host mode and gadget mode work well. However this SoC seems to have a glitch in

[PATCH v2 5/9] power: supply: axp20x_usb_power: add function to get max current

2019-02-24 Thread Chen-Yu Tsai
From: Quentin Schulz To prepare for a new PMIC, factor out the code responsible of returning the maximum current to axp20x_get_current_max. Signed-off-by: Quentin Schulz Signed-off-by: Chen-Yu Tsai --- drivers/power/supply/axp20x_usb_power.c | 52 ++--- 1 file changed, 30

[PATCH v2 9/9] ARM: dts: sun8i: a83t: Enable USB OTG controller on some boards

2019-02-24 Thread Chen-Yu Tsai
The Bananapi M3 and Cubietruck Plus both have USB OTG ports wired to the SoC and PMIC in the same way, with the N_VBUSEN pin on the PMIC controlling VBUS output, the PMIC's VBUS input for sensing VBUS, and PH11 on the SoC for sensing the ID pin. Enable OTG on both boards. Signed-off-by: Chen-Yu

[PATCH v2 3/9] power: supply: axp20x_usb_power: allow disabling input current limiting

2019-02-24 Thread Chen-Yu Tsai
The AXP PMICs allow the user to disable current limiting on the VBUS input. While read-out of this setting was already supported by the driver, it did not allow the user to configure the PMIC to disable current limiting. Add support for this. Signed-off-by: Chen-Yu Tsai ---

Re: [PATCH] sched/debug: Show intergroup and hierarchy sum wait time of a task group

2019-02-24 Thread 禹舟键
PING 禹舟键 于2019年2月19日周二 上午10:15写道: > > PING > > 禹舟键 于2019年2月12日周二 上午11:14写道: > > > > Hi, Peter > > I think hierarchy wait time for task groups is worth accounting > > despite with a little extra overhead. Because we can evaluate task > > groups' condition with a more direct metric. We cannot

Re: [PATCH v4] mm/hugetlb: Fix unsigned overflow in __nr_hugepages_store_common()

2019-02-24 Thread David Rientjes
On Sun, 24 Feb 2019, Mike Kravetz wrote: > > User can change a node specific hugetlb count. i.e. > > /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages > > the calculated value of count is a total number of huge pages. It could > > be overflow when a user entering a crazy high

[PATCH] time64: Avoid undefined behaviour in timespec64_add()

2019-02-24 Thread Hongbo Yao
I ran into this: = UBSAN: Undefined behaviour in ./include/linux/time64.h:70:2 signed integer overflow: 1551059291 + 9223372036854775807 cannot be represented in type 'long long int'

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

2019-02-24 Thread Yuantian Tang
Ls1088a has 2 thermal sensors. This patch adds the second node to dts to enable it. Signed-off-by: Yuantian Tang --- arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 43 +-- 1 files changed, 39 insertions(+), 4 deletions(-) diff --git

[PATCH 1/1] iommu/vt-d: Check identity map for hot-added devices

2019-02-24 Thread Lu Baolu
The Intel IOMMU driver will put devices into a static identity mapped domain during boot if the kernel parameter "iommu=pt" is used. That means the IOMMU hardware will translate a DMA address into the same memory address. Unfortunately, hot-added devices are not subject to this. That results in

Re: [PATCH v2] perf record: Add support for limit perf output file size

2019-02-24 Thread Jiwei Sun
Hi Arnaldo, On 02/22/2019 10:53 PM, Arnaldo Carvalho de Melo wrote: > Em Fri, Feb 22, 2019 at 03:19:04PM +0800, Jiwei Sun escreveu: >> The patch adds a new option to limit the output file size, then based >> on it, we can create a wrapper of the perf command that uses the option >> to avoid

Re: [PATCH 1/2 v2] kprobe: Do not use uaccess functions to access kernel memory that can fault

2019-02-24 Thread Masami Hiramatsu
On Sun, 24 Feb 2019 09:26:45 -0800 Linus Torvalds wrote: > On Sun, Feb 24, 2019 at 7:18 AM Masami Hiramatsu wrote: > > > > On Sat, 23 Feb 2019 20:38:03 -0800 > > Andy Lutomirski wrote: > > > > > > Can we just get rid of this might_sleep()? access_ok() doesn't sleep > > > as far as I know. > >

[PATCH net-next] switchdev: Complete removal of switchdev_port_attr_get()

2019-02-24 Thread Florian Fainelli
We have no more in tree users of switchdev_port_attr_get() after d0e698d57a94 ("Merge branch 'net-Get-rid-of-switchdev_port_attr_get'") so completely remove the function signature and body. Signed-off-by: Florian Fainelli --- include/net/switchdev.h | 4 net/switchdev/switchdev.c | 42

Re: [PATCH 1/3] net: ethernet: add support for PCS and 2.5G speed

2019-02-24 Thread Florian Fainelli
Le 2/22/19 à 12:12 PM, Parshuram Thombare a écrit : > This patch add support for PCS (for SGMII interface) and 2.5Gbps MAC > in Cadence ethernet controller driver. At a high level you don't seem to be making use of PHYLINK so which 2.5Gbps interfaces do you actually support? > > Signed-off-by:

RE: [PATCH v1] usb: chipidea: tegra: Fix missed ci_hdrc_remove_device()

2019-02-24 Thread Peter Chen
> > Fixes: dfebb5f43a78827a ("usb: chipidea: Add support for Tegra20/30/114/124") I suppose you need to apply at stable tree too, right? > Signed-off-by: Dmitry Osipenko > --- > drivers/usb/chipidea/ci_hdrc_tegra.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [PATCH v2] PCI: pciehp: Report degraded links via link bandwidth notification

2019-02-24 Thread Lukas Wunner
On Fri, Dec 07, 2018 at 12:20:00PM -0600, Alexandru Gagniuc wrote: > A warning is generated when a PCIe device is probed with a degraded > link, but there was no similar mechanism to warn when the link becomes > degraded after probing. The Link Bandwidth Notification provides this > mechanism. >

RE: [PATCH RESEND V2 1/4] dt-bindings: fsl: scu: add watchdog binding

2019-02-24 Thread Anson Huang
Hi, Guenter Best Regards! Anson Huang > -Original Message- > From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter > Roeck > Sent: 2019年2月24日 11:20 > To: Anson Huang ; Rob Herring > Cc: mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de;

RE: [PATCH RESEND V2 2/4] watchdog: imx_sc: Add i.MX system controller watchdog support

2019-02-24 Thread Anson Huang
Hi, Guenter Best Regards! Anson Huang > -Original Message- > From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter > Roeck > Sent: 2019年2月24日 11:29 > To: Anson Huang ; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pengutronix.de; >

Re: [PATCH] mfd: sc27xx: Use SoC compatible string for PMIC devices

2019-02-24 Thread Baolin Wang
Hi Lee, On Wed, 13 Feb 2019 at 20:57, Baolin Wang wrote: > > We should use SoC compatible string in stead of wildcard string for > PMIC child devices. > > Signed-off-by: Baolin Wang > --- Could you apply this patch if you have no other issues? Thanks. > drivers/mfd/sprd-sc27xx-spi.c | 42

[PATCH V3 4/4] arm64: dts: freescale: imx8qxp: add watchdog support

2019-02-24 Thread Anson Huang
Add i.MX8QXP system controller watchdog support. Signed-off-by: Anson Huang --- Changes since V2: - add fallback compatilbe "fsl,imx-sc-wdt" for other i.MX platforms with system controller watchdog available; - this patch depends on my thermal patch series:

[PATCH V3 2/4] watchdog: imx_sc: Add i.MX system controller watchdog support

2019-02-24 Thread Anson Huang
i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller inside, the system controller is in charge of controlling power, clock and watchdog etc.. This patch adds i.MX system controller watchdog driver support, watchdog operation needs to be done in secure EL3 mode via

[PATCH V3 3/4] arm64: defconfig: add support for i.MX system controller watchdog

2019-02-24 Thread Anson Huang
Enable CONFIG_IMX_SC_WDT as module to support i.MX system controller watchdog. Signed-off-by: Anson Huang --- No changes since V2. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index

[PATCH V3 0/4] Add i.MX8QXP system controller watchdog support

2019-02-24 Thread Anson Huang
i.MX8QXP is an ARMv8 Cortex-A35 SoC with a Cortex-M4 system controller inside, the system controller manages overall power, clock, secure RTC and watchdog etc., so Linux kernel running on A35 needs to communicate with system controller for watchdog operation, this system controller watchdog will

[PATCH V3 1/4] dt-bindings: fsl: scu: add watchdog binding

2019-02-24 Thread Anson Huang
Add i.MX8QXP system controller watchdog binding. Signed-off-by: Anson Huang --- Changes since V2: - add fallback compatible "fsl,imx-sc-wdt" to cover other i.MX platforms with system controller watchdog available. - this patch depends on my thermal patch series:

[PATCH V6 4/8] drm/mediatek: fix the rate and divder of hdmi phy for MT2701

2019-02-24 Thread wangyan wang
From: chunhui dai Due to a clerical error,there is one zero less for 1280. Fix it for 12800. Fixes: 0fc721b2968e ("drm/mediatek: add hdmi driver for MT2701 and MT7623") Reviewed-by: CK Hu Signed-off-by: chunhui dai Signed-off-by: wangyan wang ---

[PATCH v6 1/8] drm/mediatek: recalculate hdmi phy clock of MT2701 by querying hardware

2019-02-24 Thread wangyan wang
From: chunhui dai Recalculate the rate of this clock, by querying hardware. Signed-off-by: chunhui dai Signed-off-by: wangyan wang --- drivers/gpu/drm/mediatek/mtk_hdmi_phy.c| 7 ++ drivers/gpu/drm/mediatek/mtk_hdmi_phy.h| 3 +--

[PATCH V6 8/8] drm/mediatek: fix the rate of parent for hdmi phy in MT2701

2019-02-24 Thread wangyan wang
From: chunhui dai We should not change the rate of parent for hdmi phy when doing round_rate for this clock. The parent clock of hdmi phy must be the same as it. We change it when doing set_rate only. Signed-off-by: chunhui dai Signed-off-by: wangyan wang ---

[PATCH V6 2/8] drm/mediatek: move the setting of fixed divider

2019-02-24 Thread wangyan wang
From: chunhui dai move the setting of fixed divider from enable/disable to the function of setting rate. the patch is for hdmi pll divider, the divder should be configured before clock calculation to ensure the clock is right. Signed-off-by: chunhui dai Signed-off-by: wangyan wang ---

[PATCH V6 7/8] drm/mediatek: using new factor for tvdpll in MT2701

2019-02-24 Thread wangyan wang
From: chunhui dai The factor depends on the divider of DPI in MT2701, therefore, we should fix this factor to the right and new one. Signed-off-by: chunhui dai Signed-off-by: wangyan wang --- drivers/gpu/drm/mediatek/mtk_dpi.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-)

[PATCH V6 6/8] clk: mediatek: using CLK_MUX_ROUND_CLOSEST for the clock of dpi1_sel

2019-02-24 Thread wangyan wang
From: chunhui dai The MUX clock of dpi1_sel should select the closet clock for itself. We could add this flag to enable this function of MUX in CCF. Signed-off-by: chunhui dai Signed-off-by: wangyan wang --- drivers/clk/mediatek/clk-mt2701.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH V6 0/8] make mt7623 clock of hdmi stable

2019-02-24 Thread wangyan wang
From: Wangyan Wang V6 adopt maintainer's suggestion. Here is the change list between V5 & V6 1. change "unsigned char mux_flags;" to "u8 mux_flags;" to match with the struct in " clk: mediatek: add MUX_GATE_FLAGS_2". chunhui dai (8): drm/mediatek: recalculate hdmi phy clock of MT2701 by

[PATCH V6 5/8] clk: mediatek: add MUX_GATE_FLAGS_2

2019-02-24 Thread wangyan wang
From: chunhui dai Add MUX_GATE_FLAGS_2 for the clock which needs to set two falgs. Such as some mux need to set the flags of "CLK_MUX_ROUND_CLOSEST". Signed-off-by: chunhui dai Signed-off-by: wangyan wang --- drivers/clk/mediatek/clk-mtk.c | 2 +- drivers/clk/mediatek/clk-mtk.h | 20

[PATCH V6 3/8] drm/mediatek: using different flags of clk for HDMI phy

2019-02-24 Thread wangyan wang
From: chunhui dai The parent rate of hdmi phy had set by DPI driver. We should not set or change the parent rate of MT2701 hdmi phy, as a result we should remove the flags of "CLK_SET_RATE_PARENT" from the clock of MT2701 hdmi phy. Signed-off-by: chunhui dai Signed-off-by: wangyan wang ---

Re: [PATCHv7] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr

2019-02-24 Thread Dave Young
On 02/24/19 at 09:25pm, Pingfan Liu wrote: > On Fri, Feb 22, 2019 at 9:00 PM Borislav Petkov wrote: > > > > On Fri, Feb 22, 2019 at 09:42:41AM +0100, Joerg Roedel wrote: > > > The current default of 256MB was found by experiments on a bigger > > > number of machines, to create a reasonable

[PATCH net-next] mlxsw: spectrum: remove set but not used variable 'autoneg_status'

2019-02-24 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/mellanox/mlxsw/spectrum.c: In function 'mlxsw_sp_port_get_link_ksettings': drivers/net/ethernet/mellanox/mlxsw/spectrum.c:3062:5: warning: variable 'autoneg_status' set but not used [-Wunused-but-set-variable] It's not used

Re: [PATCH] arm64: dts: renesas: r8a77965: add SSIU support for sound

2019-02-24 Thread Kuninori Morimoto
Hi Jiada Thank you for your patch > From: Jiada Wang > > rsnd driver supports SSIU now, let's use it. > Then, BUSIF DMA settings on rcar_sound,ssi (= rxu, txu) are > no longer needed. > Applies commit 8d14bfa074db ("arm64: dts: renesas: r8a7796: add SSIU > support for sound") for r8a77965. >

linux-next: manual merge of the sound tree with the arm-soc tree

2019-02-24 Thread Stephen Rothwell
Hi Takashi, Today's linux-next merge of the sound tree got conflicts in: arch/arm64/boot/dts/nvidia/tegra194-p2972-.dts arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi between commits: 5eef17ee764d ("arm64: tegra: p2972: Sort nodes properly") be4f0dd347ad ("arm64: tegra: p2597: Sort

Re: [PATCH 2/2] staging: erofs: switch to ->iterate_shared()

2019-02-24 Thread Chao Yu
On 2019/2/21 10:34, Gao Xiang wrote: > After commit 6192269444eb ("introduce a parallel variant of ->iterate()"), > readdir can be done without taking exclusive inode lock of course. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks,

  1   2   3   >