[PATCH 5.0 11/43] net: sit: fix UBSAN Undefined behaviour in check_6rd

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Miaohe Lin [ Upstream commit a843dc4ebaecd15fca1f4d35a97210f72ea1473b ] In func check_6rd,tunnel->ip6rd.relay_prefixlen may equal to 32,so UBSAN complain about it. UBSAN: Undefined behaviour i

[PATCH 5.0 19/43] tcp: do not report TCP_CM_INQ of 0 for closed connections

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Soheil Hassas Yeganeh [ Upstream commit 6466e715651f9f358e60c5ea4880e4731325827f ] Returning 0 as inq to userspace indicates there is no more data to read, and the application needs to wait for

[PATCH 5.0 12/43] net/x25: fix use-after-free in x25_device_event()

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 95d6ebd53c79522bf9502dbc7e89e0d63f94dae4 ] In case of failure x25_connect() does a x25_neigh_put(x25->neighbour) but forgets to clear x25->neighbour pointer, thus

[PATCH 5.0 15/43] ravb: Decrease TxFIFO depth of Q3 and Q2 to one

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Masaru Nagai [ Upstream commit ae9819e339b451da7a86ab6fe38ecfcb6814e78a ] Hardware has the CBS (Credit Based Shaper) which affects only Q3 and Q2. When updating the CBS settings, even if the dr

[PATCH 5.0 13/43] net/x25: reset state in x25_connect()

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit ee74d0bd4325efb41e38affe5955f920ed973f23 ] In case x25_connect() fails and frees the socket neighbour, we also need to undo the change done to x25->state. Before

[PATCH 5.0 16/43] route: set the deleted fnhe fnhe_daddr to 0 in ip_del_fnhe to fix a race

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit ee60ad219f5c7c4fb2f047f88037770063ef785f ] The race occurs in __mkroute_output() when 2 threads lookup a dst: CPU A CPU B find_exception()

[PATCH 5.0 14/43] pptp: dst_release sk_dst_cache in pptp_sock_destruct

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit 9417d81f4f8adfe20a12dd1fadf73a618cbd945d ] sk_setup_caps() is called to set sk->sk_dst_cache in pptp_connect, so we have to dst_release(sk->sk_dst_cache) in pptp_sock

[PATCH 5.0 01/43] connector: fix unsafe usage of ->real_parent

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Li RongQing [ Upstream commit 6d2b0f02f5a07a4bf02e4cbc90d7eaa85cac2986 ] proc_exit_connector() uses ->real_parent lockless. This is not safe that its parent can go away at any moment, so use RC

Re: [PATCH v9 0/2] PWM support for HiFive Unleashed

2019-03-18 Thread Andreas Schwab
On Mär 15 2019, Yash Shah wrote: > Use the open-source FSBL from: > https://github.com/sifive/freedom-u540-c000-bootloader > > Modify the fsbl/ux00_fsbl.dts file and re-build the fsbl.bin That doesn't even compile. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 01

Re: [PATCH v2 0/4] perf: Support a new 'percore' event qualifier

2019-03-18 Thread Jiri Olsa
On Sun, Mar 17, 2019 at 12:34:24AM +0800, Jin Yao wrote: > The 'percore' event qualifier which sums up the event counts for both > hardware threads in a core. For example, > > perf stat -e cpu/event=0,umask=0x3,percore=1/,cpu/event=0,umask=0x3/ > > In this example, we count the event 'ref-cycles'

Re: [PATCH v1 2/3] ARM: dts: stm32: enable Vivante GPU support on stm32mp157c-ed1 board

2019-03-18 Thread Pierre Yves MORDRET
Hi Lucas, I'm going to resend a new version on this DT. I have to move this region elsewhere. However I didn't get your feedback about statement I did. Would it be possible to have your feelings ? Thanks :) On 2/25/19 4:57 PM, Pierre Yves MORDRET wrote: > Hi again, > > On 2/15/19 5:14 PM, Luc

Re: [PATCH v2 1/4] perf: Add a 'percore' event qualifier

2019-03-18 Thread Jiri Olsa
On Sun, Mar 17, 2019 at 12:34:25AM +0800, Jin Yao wrote: SNIP > static bool config_term_shrinked; > @@ -950,6 +951,7 @@ config_term_avail(int term_type, struct > parse_events_error *err) > case PARSE_EVENTS__TERM_TYPE_CONFIG2: > case PARSE_EVENTS__TERM_TYPE_NAME: > case PARSE_

Re: [PATCH] lib: Add shared copy of __lshrti3 from libgcc

2019-03-18 Thread Peter Zijlstra
On Fri, Mar 15, 2019 at 03:06:37PM -0700, Nick Desaulniers wrote: > On Fri, Mar 15, 2019 at 1:54 PM Matthias Kaehlcke wrote: > > > > The compiler may emit calls to __lshrti3 from the compiler runtime > > library, which results in undefined references: > > > > arch/x86/kvm/x86.o: In function `mul_u

Re: [PATCH v2 2/2] ceph: quota: fix quota subdir mounts

2019-03-18 Thread Yan, Zheng
On Mon, Mar 18, 2019 at 5:06 PM Gregory Farnum wrote: > > On Mon, Mar 18, 2019 at 2:32 PM Yan, Zheng wrote: > > After reading the code carefully. I feel a little uncomfortable with > > the "lookup_ino" in get_quota_realm. how about populating directories > > above the 'mount subdir' during mount

Re: [PATCH 1/5] reset: add acquired/released state for exclusive reset controls

2019-03-18 Thread Thierry Reding
On Thu, Feb 21, 2019 at 04:28:58PM +0100, Thierry Reding wrote: > On Thu, Feb 21, 2019 at 04:25:53PM +0100, Thierry Reding wrote: > > From: Philipp Zabel > > > > There are cases where a driver needs explicit control over a reset line > > that is exclusively conneted to its device, but this contro

Re: [PATCH 07/12] platform/x86: intel_cht_int33fe: Provide software node for all components

2019-03-18 Thread Heikki Krogerus
On Sun, Mar 17, 2019 at 10:36:03PM +0200, Andy Shevchenko wrote: > On Fri, Mar 15, 2019 at 6:58 PM Heikki Krogerus > wrote: > > > > Software nodes provide two features that we will need later. > > 1) Software nodes can have references to other software nodes. > > 2) Software nodes can exist before

Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-18 Thread Pankaj Suryawanshi
Hello shrink_page_list() returns , number of pages reclaimed, when pages is unevictable it returns VM_BUG_ON_PAGE(PageLRU(page) || PageUnevicatble(page),page); We can add the unevictable pages in reclaim list in shrink_page_list(), return total number of reclaim pages including unevictable p

Re: Enabling -Wint-in-bool-context

2019-03-18 Thread Arnd Bergmann
On Mon, Mar 18, 2019 at 9:46 AM Masahiro Yamada wrote: > > Hi Arnd, > > I saw several commits from you > fixing -Wint-in-bool-context warnings. > Thanks! > > > I guess we are almost ready to remove > > KBUILD_CFLAGS += $(call cc-disable-warning, int-in-bool-context) > > > In there any concern ab

Re: [PATCH v2 2/2] ceph: quota: fix quota subdir mounts

2019-03-18 Thread Gregory Farnum
On Mon, Mar 18, 2019 at 2:32 PM Yan, Zheng wrote: > After reading the code carefully. I feel a little uncomfortable with > the "lookup_ino" in get_quota_realm. how about populating directories > above the 'mount subdir' during mounting (similar to cifs_get_root ). Isn't that going to be a proble

Re: [PATCH v2 2/2] ceph: quota: fix quota subdir mounts

2019-03-18 Thread Yan, Zheng
On Tue, Mar 12, 2019 at 10:22 PM Luis Henriques wrote: > > The CephFS kernel client does not enforce quotas set in a directory that > isn't visible from the mount point. For example, given the path > '/dir1/dir2', if quotas are set in 'dir1' and the filesystem is mounted with > > mount -t ceph

Re: [PATCH] x86/vdso: include generic __lshrdi3 in 32-bit vDSO

2019-03-18 Thread Peter Zijlstra
On Fri, Mar 15, 2019 at 04:18:31PM -0700, h...@zytor.com wrote: > Note: it is also probably no reason to use -Os/-Oz for the vdso. Is anyone actually using -Os and CONFIG_CC_OPTIMIZE_FOR_SIZE ? I've been staring at compiler output a lot lately and -Os really generates atrocious crap. That is, sho

[PATCH v2 14/19] locking/lockdep: Change type of the element field in circular_queue

2019-03-18 Thread Yuyang Du
The element field is an array in struct circular_queue to keep track of locks in the search. Making it the same type as the locks avoids type cast. Also fix a typo. No functional change. Signed-off-by: Yuyang Du --- kernel/locking/lockdep.c | 23 +-- 1 file changed, 13 inse

[PATCH v2 19/19] locking/lockdep: Change if to else-if when checking bfs errors

2019-03-18 Thread Yuyang Du
After BFS searching, we check whether there is an error. These checks are exclusive, so we can use "else if" instead of "if", which results in a bit optimized code. No functional change. Signed-off-by: Yuyang Du --- kernel/locking/lockdep.c | 18 +- 1 file changed, 9 insertions(

[PATCH v2 16/19] locking/lockdep: Use function pointer to avoid constant checks

2019-03-18 Thread Yuyang Du
In search of a dependency in the lock graph, there is contant check for forward or backward search. Use a function pointer to avoid that check. No functional change. Signed-off-by: Yuyang Du --- kernel/locking/lockdep.c | 27 +++ 1 file changed, 15 insertions(+), 12 dele

[PATCH v2 13/19] locking/lockdep: Remove unnecessary function pointer argument

2019-03-18 Thread Yuyang Du
check_prev_add() always has save_trace() as an input argument, which is unnecessary. Signed-off-by: Yuyang Du --- kernel/locking/lockdep.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index 250ba64..de731b8 10

Re: [PATCH 4/6] nvmem: sunxi_sid: Read out data in native format

2019-03-18 Thread Maxime Ripard
On Mon, Mar 18, 2019 at 04:45:19PM +0800, Chen-Yu Tsai wrote: > On Mon, Mar 18, 2019 at 4:42 PM Maxime Ripard > wrote: > > > > Hi, > > > > On Mon, Mar 18, 2019 at 03:33:52PM +0800, Chen-Yu Tsai wrote: > > > From: Chen-Yu Tsai > > > > > > Originally the SID e-fuses were thought to be in big-endia

[PATCH v2 03/19] locking/lockdep: Adjust lock usage bit character checks

2019-03-18 Thread Yuyang Du
The lock usage bit characters are defined and determined with tricks. Use a macro and add some explanation to make it a bit clearer. Then adjust the logic to check the usage, which optimizes the code a bit. No functional change. Signed-off-by: Yuyang Du --- kernel/locking/lockdep.c |

[PATCH v2 06/19] locking/lockdep: Print the right depth for chain key colission

2019-03-18 Thread Yuyang Du
Since chains are separated by irq context, so when printing a chain the depth should be consistent with it. Signed-off-by: Yuyang Du --- kernel/locking/lockdep.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index 3

[PATCH v2 10/19] locking/lockdep: Change the range of class_idx in held_lock struct

2019-03-18 Thread Yuyang Du
held_lock->class_idx is used to point to the class of the held lock. The index is shifted by 1 to make index 0 mean no class, which results in class index shifting back and forth but is not worth doing so. The reason is: (1) there will be no "no-class" held_lock to begin with, and (2) index 0 seem

[PATCH v2 08/19] locking/lockdep: Use lockdep_init_task for task initiation consistently

2019-03-18 Thread Yuyang Du
Despite that there is a lockdep_init_task() which does nothing, lockdep initiates tasks by assigning lockdep fields and does so inconsistently. Fix this by using lockdep_init_task(). Signed-off-by: Yuyang Du --- include/linux/lockdep.h | 7 ++- init/init_task.c | 2 ++ kernel/fork

[PATCH v2 11/19] locking/lockdep: Remove unused argument in validate_chain()

2019-03-18 Thread Yuyang Du
Its lockdep_map argument is not used, remove it. Signed-off-by: Yuyang Du --- kernel/locking/lockdep.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index e8871f2..dcff644 100644 --- a/kernel/locking/lockdep

[PATCH v2 18/19] locking/lockdep: Update comments on dependency search

2019-03-18 Thread Yuyang Du
The breadth-first search is implemented as flat-out non-recursive now, but the comments are still describing it as recursive, update the comments in that regard. Signed-off-by: Yuyang Du --- kernel/locking/lockdep.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) d

[PATCH v2 17/19] locking/lockdep: Combine check_noncircular and check_redundant

2019-03-18 Thread Yuyang Du
These two functions are essentially duplicates, combine them. No functional change. Signed-off-by: Yuyang Du --- kernel/locking/lockdep.c | 29 ++--- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index

[PATCH v2 15/19] locking/lockdep: Remove __cq_empty()

2019-03-18 Thread Yuyang Du
__cq_empty() can be embeded in __cq_dequeue(), removing it. We get slightly simpler code. No functional change. Signed-off-by: Yuyang Du --- kernel/locking/lockdep.c | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/kernel/locking/lockdep.c b/k

[PATCH v2 09/19] locking/lockdep: Define INITIAL_CHAIN_KEY for chain keys to start with

2019-03-18 Thread Yuyang Du
Chain keys are computed using Jenkins hash function, which needs an initial hash to start with. Dedicate a macro to make this clear and configurable. A later patch changes this initial chain key. Signed-off-by: Yuyang Du --- include/linux/lockdep.h | 1 + init/init_task.c | 2 +- kern

[PATCH v2 05/19] locking/lockdep: Adjust indents for function definitions

2019-03-18 Thread Yuyang Du
Being paranoid to see function arguments lines are aligned. Signed-off-by: Yuyang Du --- kernel/locking/lockdep.c | 63 +++- 1 file changed, 30 insertions(+), 33 deletions(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index dea49

[PATCH v2 12/19] locking/lockdep: Update comment

2019-03-18 Thread Yuyang Du
An out-of-nowhere comment is removed. While at it, add more explanatory comments. Such a trivial patch! Signed-off-by: Yuyang Du --- kernel/locking/lockdep.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index

[PATCH v2 01/19] locking/lockdep: Change all print_*() return type to void

2019-03-18 Thread Yuyang Du
Since none of the print_*() function's return value is necessary, change their return type to void. No functional change. In cases where an invariable return value is used, this change slightly improves readability, i.e.: print_x(); return 0; is definitely better than: r

[PATCH v2 07/19] locking/lockdep: Update obsolete struct field description

2019-03-18 Thread Yuyang Du
The lock_chain struct definition has outdated comment, update it. Signed-off-by: Yuyang Du --- include/linux/lockdep.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 79c3873..1258a62 100644 --- a/include/linux/lock

[PATCH v2 04/19] locking/lockdep: Remove useless conditional macro

2019-03-18 Thread Yuyang Du
Since #defined(CONFIG_PROVE_LOCKING) is used in the scope of #ifdef CONFIG_PROVE_LOCKING, it can be removed. Signed-off-by: Yuyang Du --- kernel/locking/lockdep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index d

[PATCH v2 02/19] locking/lockdep: Add description and explanation in lockdep design doc

2019-03-18 Thread Yuyang Du
More words are added to lockdep design document regarding key concepts, which helps people understand the design as well as read the reports. Signed-off-by: Yuyang Du --- Documentation/locking/lockdep-design.txt | 89 +++- 1 file changed, 64 insertions(+), 25 deletion

[PATCH v2 00/19] locking/lockdep: Add comments and make some code

2019-03-18 Thread Yuyang Du
Hi Peter, I recently looked at some system hang issues. While at it, I tried to use and understand lockdep. These patches are made as a result. I believe they should have helped me, so hopefully they do for others as well. Change from v1: - Rebased the patch series. - Added more no-functional-cha

Re: [PATCH v2 0/5] phy: tegra: xusb: Add Tegra186 support

2019-03-18 Thread Kishon Vijay Abraham I
Hi Thierry, On 21/02/19 9:16 PM, Thierry Reding wrote: > From: Thierry Reding > > This series adds support for Tegra186 to the XUSB pad controller driver. > Patch 1 extends the device tree bindings with support for Tegra186 while > patches 2-4 are preparatory work for the final patch 5 that adds

Re: vmscan: Reclaim unevictable pages

2019-03-18 Thread Pankaj Suryawanshi
Hello shrink_page_list() returns , number of pages reclaimed, when pages is unevictable it returns VM_BUG_ON_PAGE(PageLRU(page) || PageUnevicatble(page),page); We can add the unevictable pages in reclaim list in shrink_page_list(), return total number of reclaim pages including unevictable pag

Re: [PATCH] perf pmu: Fix parser error for uncore event alias

2019-03-18 Thread Jiri Olsa
On Fri, Mar 15, 2019 at 11:00:14AM -0700, kan.li...@linux.intel.com wrote: > From: Kan Liang > > Perf fails to parse uncore event alias, for example: > > #perf stat -e unc_m_clockticks -a --no-merge sleep 1 > event syntax error: 'unc_m_clockticks' >\___ parser error >

Re: [PATCH] hostfs: fix mismatch between link_file definition and declaration

2019-03-18 Thread Walter Harms
Hi, Colin is obvously right with that. But my guess is that the error occured because the pattern (from, to) is brocken here. Also Maybe the maintainer can fix that. just my 2 cents, re, wh Am 18.03.2019 00:09, schrieb Colin King: > From: Colin Ian King > > The function link_file declarati

Enabling -Wint-in-bool-context

2019-03-18 Thread Masahiro Yamada
Hi Arnd, I saw several commits from you fixing -Wint-in-bool-context warnings. Thanks! I guess we are almost ready to remove KBUILD_CFLAGS += $(call cc-disable-warning, int-in-bool-context) In there any concern about re-enabling this warning? When I asked 0-day bot to test it some days ag

Re: [PATCH 2/2] Revert "x86/hpet: Reduce HPET counter read contention"

2019-03-18 Thread Zhenzhong Duan
On 2019/3/15 22:17, Waiman Long wrote: On 03/15/2019 05:25 AM, Peter Zijlstra wrote: On Thu, Mar 14, 2019 at 04:42:12PM +0800, Zhenzhong Duan wrote: This reverts commit f99fd22e4d4bc84880a8a3117311bbf0e3a6a9dc. It's unnecessory after commit "acpi_pm: Fix bootup softlockup due to PMTMR counte

Re: [PATCH 4/6] nvmem: sunxi_sid: Read out data in native format

2019-03-18 Thread Chen-Yu Tsai
On Mon, Mar 18, 2019 at 4:42 PM Maxime Ripard wrote: > > Hi, > > On Mon, Mar 18, 2019 at 03:33:52PM +0800, Chen-Yu Tsai wrote: > > From: Chen-Yu Tsai > > > > Originally the SID e-fuses were thought to be in big-endian format. > > Later sources show that they are in fact native or little-endian. >

[PATCH v9] arm64: dts: Add Mediatek SoC MT8183 and evaluation board dts and Makefile

2019-03-18 Thread Erin Lo
From: Ben Ho Add basic chip support for Mediatek 8183, include uart node with correct uart clocks, pwrap device Add clock controller nodes, include topckgen, infracfg, apmixedsys and subsystem. Signed-off-by: Ben Ho Signed-off-by: Erin Lo Signed-off-by: Seiya Wang Signed-off-by: Weiyi Lu Si

[PATCH v9] Add basic and clock support for Mediatek MT8183 SoC

2019-03-18 Thread Erin Lo
MT8183 is a SoC based on 64bit ARMv8 architecture. It contains 4 CA53 and 4 CA73 cores. MT8183 share many HW IP with MT65xx series. This patchset was tested on MT8183 evaluation board and use correct clock to shell. Based on v5.1-rc1 and http://lists.infradead.org/pipermail/linux-mediatek/2019-Ma

Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-18 Thread Vlastimil Babka
On 3/15/19 11:11 AM, Pankaj Suryawanshi wrote: > > [ cc Aneesh kumar, Anshuman, Hillf, Vlastimil] Can you send a proper patch with changelog explaining the change? I don't know the context of this thread. > From: Pankaj Suryawanshi > Sent: 15 March 2019 11:35:05 > To: Kirill Tkhai; Michal Hocko

Re: [PATCH] hostfs: fix mismatch between link_file definition and declaration

2019-03-18 Thread Colin Ian King
On 17/03/2019 23:49, Richard Weinberger wrote: > Am Montag, 18. März 2019, 00:09:09 CET schrieb Colin King: >> From: Colin Ian King >> >> The function link_file declaration in the header file has the order >> of the two arguments (from, to) swapped when compared to the definition >> arguments of (

[PATCH] arm64: dts: mt2712: Remove un-used property for PCIe

2019-03-18 Thread honghui.zhang
From: Honghui Zhang The "num-lanes" property for PCIe is not used, remove it. Signed-off-by: Honghui Zhang --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi i

Re: [PATCH] percpu/module resevation: change resevation size iff X86_VSMP is set

2019-03-18 Thread Eial Czerwacki
Greetings Paul, On 3/15/19 12:19 AM, Paul E. McKenney wrote: > On Thu, Mar 14, 2019 at 10:36:19AM -0700, Tejun Heo wrote: >> On Wed, Mar 13, 2019 at 04:11:55PM -0700, Paul E. McKenney wrote: >>> commit 34f67df09cc0c6bf082a7cfca435373caeeb8d82 >>> Author: Paul E. McKenney >>> Date: Wed Mar 13 16

Re: [PATCH V5 1/5] dt-bindings: pwm: Add i.MX TPM PWM binding

2019-03-18 Thread Stefan Agner
On 18.03.2019 08:41, Anson Huang wrote: > Add i.MX TPM(Low Power Timer/Pulse Width Modulation Module) PWM binding. > > Signed-off-by: Anson Huang > --- > No changes. > --- > Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt | 19 > +++ > 1 file changed, 19 insertions(+) > c

Re: [PATCH V4 2/5] pwm: Add i.MX TPM PWM driver support

2019-03-18 Thread Uwe Kleine-König
On Mon, Mar 18, 2019 at 07:41:02AM +, Anson Huang wrote: > Hi,Uwe > > > + val &= ~PWM_IMX_TPM_SC_CMOD; > > > + writel(val, tpm->base + PWM_IMX_TPM_SC); > > > > As this interrupts the output, please only do it if necessary. > > OK, will do it ONLY when it is enabled previously. I think you on

[PATCH] arm64: ptrace: Add function argument access API

2019-03-18 Thread Masami Hiramatsu
Add regs_get_argument() which returns N th argument of the function call. On arm64, it supports up to 8th argument. Note that this chooses most probably assignment, in some case it can be incorrect (e.g. passing data structure or floating point etc.) This enables ftrace kprobe events to access ker

Re: [PATCH v2 07/45] drivers: tty: serial: 8250_uniphier: use devm_ioremap_resource()

2019-03-18 Thread Masahiro Yamada
On Fri, Mar 15, 2019 at 7:35 AM Enrico Weigelt, metux IT consult wrote: > > Instead of fetching out data from a struct resource for passing > it to devm_ioremap(), directly use devm_ioremap_resource() > > Signed-off-by: Enrico Weigelt, metux IT consult > --- NACK. This patch would break my dr

Re: Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-18 Thread Pankaj Suryawanshi
It fixes the below issue. 1. Large size buffer allocation using cma_alloc successful with unevictable pages. cma_alloc of current kernel will fail due to unevictable pages. Solved the below issue of cma_alloc ---

Re: [PATCH] spi: spi-fsl-spi: support use of the SPISEL_BOOT signal on MPC8309

2019-03-18 Thread Rasmus Villemoes
ping On 06/03/2019 11.32, Rasmus Villemoes wrote: > The MPC8309 has a dedicated signal, SPISEL_BOOT, usually used as chip > select for the flash device from which the bootloader is loaded. It is > not an ordinary gpio, but is simply controlled via the SPI_CS register > in the system configuration.

[PATCH V5 5/5] ARM: dts: imx7ulp-evk: Add backlight support

2019-03-18 Thread Anson Huang
This patch adds i.MX7ULP EVK board MIPI-DSI backlight support. Signed-off-by: Anson Huang --- No changes. --- arch/arm/boot/dts/imx7ulp-evk.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp-evk.dts b/arch/arm/boot/dts/imx7ulp-evk.dts index 3f5ea18..f90f2f

[PATCH V5 4/5] ARM: dts: imx7ulp: Add pwm0 support

2019-03-18 Thread Anson Huang
Add i.MX7ULP EVK board PWM0 support. Signed-off-by: Anson Huang --- No changes. --- arch/arm/boot/dts/imx7ulp-evk.dts | 12 arch/arm/boot/dts/imx7ulp.dtsi| 10 ++ 2 files changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp-evk.dts b/arch/arm/boot/dts/imx7u

[PATCH V5 1/5] dt-bindings: pwm: Add i.MX TPM PWM binding

2019-03-18 Thread Anson Huang
Add i.MX TPM(Low Power Timer/Pulse Width Modulation Module) PWM binding. Signed-off-by: Anson Huang --- No changes. --- Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/imx-t

[PATCH V5 3/5] ARM: imx_v6_v7_defconfig: Add TPM PWM support by default

2019-03-18 Thread Anson Huang
Select CONFIG_PWM_IMX_TPM by default to support i.MX7ULP TPM PWM. Signed-off-by: Anson Huang --- No changes. --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 5586a50..57

RE: [PATCH V4 2/5] pwm: Add i.MX TPM PWM driver support

2019-03-18 Thread Anson Huang
Hi,Uwe Best Regards! Anson Huang > -Original Message- > From: Uwe Kleine-König [mailto:u.kleine-koe...@pengutronix.de] > Sent: 2019年3月15日 17:36 > To: Anson Huang > Cc: thierry.red...@gmail.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; s.ha...@pengutronix.de; ker..

[PATCH V5 0/5] Add i.MX7ULP EVK PWM backlight support

2019-03-18 Thread Anson Huang
i.MX7ULP EVK board has MIPI-DSI display, its backlight is supplied by TPM PWM module, this patch set enables i.MX7ULP TPM PWM driver support and also add backlight support for MIPI-DSI display. Anson Huang (5): dt-bindings: pwm: Add i.MX TPM PWM binding pwm: Add i.MX TPM PWM driver support A

[PATCH V5 2/5] pwm: Add i.MX TPM PWM driver support

2019-03-18 Thread Anson Huang
i.MX7ULP has TPM(Low Power Timer/Pulse Width Modulation Module) inside, add TPM PWM driver support. Signed-off-by: Anson Huang --- Changes since V4: - improve register read/write using bit field operations; - correct some logic issue; - ONLY disable clock when PWM is NOT i

Re: [PATCH 0/2] Unlock 1GB-hugetlb on x86_64

2019-03-18 Thread Oscar Salvador
On Mon, Mar 04, 2019 at 09:51:45AM +0100, Oscar Salvador wrote: > RFC -> V1: > - Split up the patch > - Added Michal's Acked-by > > The RFC version of this patch was discussed here [1], and it did not find any > objection. > I decided to split up the former patch because one of the cha

[PATCH v2] mm: Fix __dump_page when mapping->host is not set

2019-03-18 Thread Oscar Salvador
Swap mapping->host is NULL, so let us protect __dump_page() for such cases. Fixes: 1c6fb1d89e73c ("mm: print more information about mapping in __dump_page") Signed-off-by: Oscar Salvador Acked-by: Michal Hocko --- mm/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm

Re: [PATCH] tty: atmel_serial: fix a NULL pointer dereference

2019-03-18 Thread Richard Genoud
Le 15/03/2019 à 18:16, Kangjie Lu a écrit : > In case dmaengine_prep_dma_cyclic fails, the fix returns a proper > error code to avoid NULL pointer dereference. > > Signed-off-by: Kangjie Lu > Fixes: 34df42f59a60 ("serial: at91: add rx dma support") Acked-by: Richard Genoud > > --- > V2: simpli

Re: [PATCH 3/3] RISC-V: Allow booting kernel from any 4KB aligned address

2019-03-18 Thread Mike Rapoport
On Sat, Mar 16, 2019 at 04:55:30AM +0530, Anup Patel wrote: > On Fri, Mar 15, 2019 at 9:52 PM Anup Patel wrote: > > > > On Fri, Mar 15, 2019 at 9:28 PM Mike Rapoport wrote: > > > > > > I still don't get why it is that important to relax alignment of the > > > kernel > > > load address. Provided

<    5   6   7   8   9   10