Re: [PATCH v2] arm64: dts: sdm845: Add video nodes

2019-07-02 Thread Rajendra Nayak
On 6/27/2019 12:55 PM, Aniket Masule wrote: From: Malathi Gottam This adds video nodes to sdm845 based on the examples in the bindings. Signed-off-by: Malathi Gottam Co-developed-by: Aniket Masule Signed-off-by: Aniket Masule --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 30

[PATCH v12 1/5] dt-bindings: Add a binding for Mediatek SCP

2019-07-02 Thread Pi-Hsun Shih
From: Erin Lo Add a DT binding documentation of SCP for the MT8183 SoC from Mediatek. Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih Reviewed-by: Rob Herring --- Changes from v11, v10, v9, v8, v7, v6: - No change. Changes from v5: - Remove dependency on CONFIG_RPMSG_MTK_SCP. Changes

[PATCH v12 5/5] arm64: dts: mt8183: add scp node

2019-07-02 Thread Pi-Hsun Shih
From: Eddie Huang Add scp node to mt8183 and mt8183-evb Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih Signed-off-by: Eddie Huang --- Changes from v11, v10: - No change. Changes from v9: - Remove extra reserve-memory-vpu_share node. Changes from v8: - New patch. ---

[PATCH v12 0/5] Add support for mt8183 SCP.

2019-07-02 Thread Pi-Hsun Shih
Add support for controlling and communicating with mt8183's system control processor (SCP), using the remoteproc & rpmsg framework. And also add a cros_ec driver for CrOS EC host command over rpmsg. The overall structure of the series is: * remoteproc/mtk_scp.c: Control the start / stop of SCP

[PATCH v12 3/5] remoteproc: mt8183: add reserved memory manager API

2019-07-02 Thread Pi-Hsun Shih
From: Erin Lo Add memory table mapping API for other driver to lookup reserved physical and virtual memory Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih --- Changes from v11: - No change. Changes from v10: - Fix some type mismatch warnings when printing debug messages. Changes from

[PATCH v12 4/5] rpmsg: add rpmsg support for mt8183 SCP.

2019-07-02 Thread Pi-Hsun Shih
Add a simple rpmsg support for mt8183 SCP, that use IPI / IPC directly. Signed-off-by: Pi-Hsun Shih --- Changes from v11: - Fix a bug that when rproc_boot fails, the ns_ept won't be properly destroyed, causing memory leak. - Add documentation for mtk_rpmsg_info. Changes from v10, v9, v8,

[PATCH v12 2/5] remoteproc/mediatek: add SCP support for mt8183

2019-07-02 Thread Pi-Hsun Shih
From: Erin Lo Provide a basic driver to control Cortex M4 co-processor Signed-off-by: Erin Lo Signed-off-by: Nicolas Boichat Signed-off-by: Pi-Hsun Shih --- Changes from v11: - No change. Changes from v10: - Add a clock reset before loading firmware. Changes from v9: - No change.

Re: [PATCH 2/3] net: phy: realtek: Enable accessing RTL8211E extension pages

2019-07-02 Thread Heiner Kallweit
On 02.07.2019 02:09, Matthias Kaehlcke wrote: > On Mon, Jul 01, 2019 at 11:09:02PM +0200, Andrew Lunn wrote: >> On Mon, Jul 01, 2019 at 10:37:16PM +0200, Heiner Kallweit wrote: >>> On 01.07.2019 22:02, Andrew Lunn wrote: On Mon, Jul 01, 2019 at 12:52:24PM -0700, Matthias Kaehlcke wrote: >

[PATCH -next] ASoC: rt1308: Fix platform_no_drv_owner.cocci warnings

2019-07-02 Thread YueHaibing
Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: YueHaibing --- sound/soc/codecs/rt1308.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/codecs/rt1308.c b/sound/soc/codecs/rt1308.c

Re: [PATCH v2 1/3] mm: Trigger bug on if a section is not found in __section_nr

2019-07-02 Thread Michal Hocko
On Tue 02-07-19 14:13:25, Alastair D'Silva wrote: > On Mon, 2019-07-01 at 12:46 +0200, Michal Hocko wrote: > > On Fri 28-06-19 10:46:28, Alastair D'Silva wrote: > > [...] > > > Given that there is already a VM_BUG_ON in the code, how do you > > > feel > > > about broadening the scope from

Re: [PATCH v2 1/3] mm: Trigger bug on if a section is not found in __section_nr

2019-07-02 Thread Alastair D'Silva
On Tue, 2019-07-02 at 08:13 +0200, Michal Hocko wrote: > On Tue 02-07-19 14:13:25, Alastair D'Silva wrote: > > On Mon, 2019-07-01 at 12:46 +0200, Michal Hocko wrote: > > > On Fri 28-06-19 10:46:28, Alastair D'Silva wrote: > > > [...] > > > > Given that there is already a VM_BUG_ON in the code, how

Reminder: 6 open syzbot bugs in "net/dccp" subsystem

2019-07-02 Thread Eric Biggers
[This email was generated by a script. Let me know if you have any suggestions to make it better, or if you want it re-generated with the latest status.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 6 of them as possibly being bugs in the "net/dccp"

[PATCH -next] rslib: Make some functions static

2019-07-02 Thread YueHaibing
Fix sparse warnings: lib/reed_solomon/test_rslib.c:313:5: warning: symbol 'ex_rs_helper' was not declared. Should it be static? lib/reed_solomon/test_rslib.c:349:5: warning: symbol 'exercise_rs' was not declared. Should it be static? lib/reed_solomon/test_rslib.c:407:5: warning: symbol

[PATCH net-next] iavf: remove unused debug function iavf_debug_d

2019-07-02 Thread YueHaibing
There is no caller of function iavf_debug_d() in tree since commit 75051ce4c5d8 ("iavf: Fix up debug print macro"), so it can be removed. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/net/ethernet/intel/iavf/iavf_main.c | 22 -- 1 file changed, 22

Reminder: 3 open syzbot bugs in "net/rxrpc" subsystem

2019-07-02 Thread Eric Biggers
[This email was generated by a script. Let me know if you have any suggestions to make it better, or if you want it re-generated with the latest status.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 3 of them as possibly being bugs in the "net/rxrpc"

[PATCH] selftests/ftrace: skip ftrace test if FTRACE was not enabled

2019-07-02 Thread Po-Hsu Lin
The ftrace test will need to have CONFIG_FTRACE enabled to make the ftrace directory available. Add an additional check to skip this test if the CONFIG_FTRACE was not enabled. This will be helpful to avoid a false-positive test result when testing it directly with the following commad against a

Reminder: 6 open syzbot bugs in "net/smc" subsystem

2019-07-02 Thread Eric Biggers
[This email was generated by a script. Let me know if you have any suggestions to make it better, or if you want it re-generated with the latest status.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 6 of them as possibly being bugs in the "net/smc"

Reminder: 5 open syzbot bugs in "net/hsr" subsystem

2019-07-02 Thread Eric Biggers
[This email was generated by a script. Let me know if you have any suggestions to make it better, or if you want it re-generated with the latest status.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 5 of them as possibly being bugs in the "net/hsr"

Re: [PATCH v2] remoteproc: copy parent dma_pfn_offset for vdev

2019-07-02 Thread Bjorn Andersson
On Mon 01 Jul 00:02 PDT 2019, Clement Leger wrote: > When preparing the subdevice for the vdev, also copy dma_pfn_offset > since this is used for sub device dma allocations. Without that, there > is incoherency between the parent dma settings and the childs one, > potentially leading to

Reminder: 18 open syzbot bugs in "fs/9p" subsystem

2019-07-02 Thread Eric Biggers
[This email was generated by a script. Let me know if you have any suggestions to make it better, or if you want it re-generated with the latest status.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 18 of them as possibly being bugs in the "fs/9p"

Re: memory leak in nfs_get_client

2019-07-02 Thread Eric Biggers
On Tue, Jun 11, 2019 at 12:23:12PM -0400, Benjamin Coddington wrote: > Ugh.. Now that you can cancel the wait, you have to also handle if "new" was > allocated. I think this needs: > > diff --git a/fs/nfs/client.c b/fs/nfs/client.c > index d7e4f0848e28..4d90f5bf0b0a 100644 > ---

Re: [PATCH] MAINTAINERS: Add FSI subsystem

2019-07-02 Thread Nathan Chancellor
Hi Joel, On Tue, Jul 02, 2019 at 02:07:05PM +0930, Joel Stanley wrote: > The subsystem was merged some time ago but we did not have a maintainers > entry. > > Signed-off-by: Joel Stanley > --- > MAINTAINERS | 13 + > 1 file changed, 13 insertions(+) > > diff --git a/MAINTAINERS

ARM setting up secure mode vector table

2019-07-02 Thread Tinchu
Hi, Apologies in advance for extra CC list. I'm trying to hack linux kernel (v4.14 LTS) for Raspberry PI 3 (ARM32 build), to enable early boot code switch to secure mode using SMC #0 instruction and return (and later tinker with some secure mode registers). While this may generally not be

Re: [BUG] kvm: APIC emulation problem - was Re: [LKP] [x86/hotplug] ...

2019-07-02 Thread Thomas Gleixner
Wanpeng, On Tue, 2 Jul 2019, Wanpeng Li wrote: > On Tue, 2 Jul 2019 at 06:44, Thomas Gleixner wrote: > > > > While that CPU0 hotplug test case is surely an esoteric issue, the APIC > > emulation is still wrong, Even if the play_dead() code would not enable > > interrupts then the pending IRR bit

Re: [PATCH] soc: imx-scu: Add SoC UID(unique identifier) support

2019-07-02 Thread Marco Felsch
Hi Anson, On 19-06-27 07:01, Anson Huang wrote: > Hi, Daniel > > > -Original Message- > > From: Daniel Baluta > > Sent: Thursday, June 27, 2019 2:44 PM > > To: Anson Huang > > Cc: Shawn Guo ; Sascha Hauer > > ; Pengutronix Kernel Team > > ; Fabio Estevam ; Aisheng > > Dong ; Abel Vesa

Re: [PATCH v2 0/5] Allocate memmap from hotadded memory

2019-07-02 Thread Rashmica Gupta
Hi David, Sorry for the late reply. On Wed, 2019-06-26 at 10:28 +0200, David Hildenbrand wrote: > On 26.06.19 10:15, Oscar Salvador wrote: > > On Wed, Jun 26, 2019 at 10:11:06AM +0200, David Hildenbrand wrote: > > > Back then, I already mentioned that we might have some users that > > >

Re: KASAN: use-after-free Write in xfrm_hash_rebuild

2019-07-02 Thread Dmitry Vyukov
On Tue, Jul 2, 2019 at 8:38 AM Hillf Danton wrote: > > > On Wed, 26 Jun 2019 20:59:05 -0700 (PDT) > > syzbot has found a reproducer for the following crash on: > > > > HEAD commit:249155c2 Merge branch 'parisc-5.2-4' of git://git.kernel.o.. > > git tree: upstream > > console output:

[tip:core/rslib] rslib: Make some functions static

2019-07-02 Thread tip-bot for YueHaibing
Commit-ID: ede7c247abfaeef62484cfff320b072ec2b1dca0 Gitweb: https://git.kernel.org/tip/ede7c247abfaeef62484cfff320b072ec2b1dca0 Author: YueHaibing AuthorDate: Tue, 2 Jul 2019 14:18:47 +0800 Committer: Thomas Gleixner CommitDate: Tue, 2 Jul 2019 08:41:37 +0200 rslib: Make some

Re: [RFC 0/2] Add workaround for core wake-up on IPI for i.MX8MQ

2019-07-02 Thread Martin Kepplinger
On 28.06.19 10:54, Abel Vesa wrote: > On 19-06-23 13:47:26, Martin Kepplinger wrote: >> On 10.06.19 14:13, Abel Vesa wrote: >>> This is another alternative for the RFC: >>>

Re: [PATCH] net: stmmac: add sanity check to device_property_read_u32_array call

2019-07-02 Thread Colin Ian King
On 01/07/2019 23:43, Martin Blumenstingl wrote: > On Fri, Jun 28, 2019 at 6:05 PM Martin Blumenstingl > wrote: >> >> Hi Colin, >> >> On Fri, Jun 28, 2019 at 10:32 AM Colin Ian King >> wrote: >>> >>> On 28/06/2019 05:15, Martin Blumenstingl wrote: On Tue, Jun 25, 2019 at 9:58 AM Colin Ian

[tip:x86/cpu] selftests/x86: Test SYSCALL and SYSENTER manually with TF set

2019-07-02 Thread tip-bot for Andy Lutomirski
Commit-ID: 9402eaf4c11f0b892eda7b2bcb4654ab34ce34f9 Gitweb: https://git.kernel.org/tip/9402eaf4c11f0b892eda7b2bcb4654ab34ce34f9 Author: Andy Lutomirski AuthorDate: Mon, 1 Jul 2019 20:43:19 -0700 Committer: Thomas Gleixner CommitDate: Tue, 2 Jul 2019 08:45:20 +0200 selftests/x86: Test

[tip:x86/cpu] x86/entry/64: Don't compile ignore_sysret if 32-bit emulation is enabled

2019-07-02 Thread tip-bot for Andy Lutomirski
Commit-ID: dffb3f9db6b593f3ed6ab4c8d8f10e0aa6aa7a88 Gitweb: https://git.kernel.org/tip/dffb3f9db6b593f3ed6ab4c8d8f10e0aa6aa7a88 Author: Andy Lutomirski AuthorDate: Mon, 1 Jul 2019 20:43:20 -0700 Committer: Thomas Gleixner CommitDate: Tue, 2 Jul 2019 08:45:20 +0200 x86/entry/64: Don't

[tip:x86/cpu] x86/entry/64: Fix and clean up paranoid_exit

2019-07-02 Thread tip-bot for Andy Lutomirski
Commit-ID: 539bca535decb11a0861b6205c6684b8e908589b Gitweb: https://git.kernel.org/tip/539bca535decb11a0861b6205c6684b8e908589b Author: Andy Lutomirski AuthorDate: Mon, 1 Jul 2019 20:43:21 -0700 Committer: Thomas Gleixner CommitDate: Tue, 2 Jul 2019 08:45:20 +0200 x86/entry/64: Fix

Re: [PATCH] MAINTAINERS: Add FSI subsystem

2019-07-02 Thread Joel Stanley
On Tue, 2 Jul 2019 at 06:33, Nathan Chancellor wrote: > > Hi Joel, > > On Tue, Jul 02, 2019 at 02:07:05PM +0930, Joel Stanley wrote: > > The subsystem was merged some time ago but we did not have a maintainers > > entry. > > > > Signed-off-by: Joel Stanley > > --- > > MAINTAINERS | 13

[PATCH 0/7] Optimize cgroup context switch

2019-07-02 Thread Ian Rogers
Organize per-CPU perf event groups by cgroup then by group/insertion index. To support cgroup hierarchies, a set of iterators is needed in visit_groups_merge. To make this unbounded, use a per-CPU allocated buffer. To make the set of iterators fast, use a min-heap ordered by the group index.

[PATCH 2/7] perf/cgroup: order events in RB tree by cgroup id

2019-07-02 Thread Ian Rogers
If one is monitoring 6 events on 20 cgroups the per-CPU RB tree will hold 120 events. The scheduling in of the events currently iterates over all events looking to see which events match the task's cgroup or its cgroup hierarchy. If a task is in 1 cgroup with 6 events, then 114 events are

[PATCH 4/7] perf: avoid a bounded set of visit_groups_merge iterators

2019-07-02 Thread Ian Rogers
Create a per-cpu array of iterators that gets resized when cgroup events are added. The size of the array reflects the maximum depth of cgroups, although not all cgroups will have events monitored within them. This approach avoids added storage cost to perf_event. Signed-off-by: Ian Rogers ---

[PATCH 1/7] perf: propagate perf_install_in_context errors up

2019-07-02 Thread Ian Rogers
The current __perf_install_in_context can fail and the error is ignored. Changing __perf_install_in_context can add new failure modes that need errors propagating up. This change prepares for this. Signed-off-by: Ian Rogers --- kernel/events/core.c | 38 +- 1

[PATCH 7/7] perf: rename visit_groups_merge to ctx_groups_sched_in

2019-07-02 Thread Ian Rogers
The visit_groups_merge function no longer takes a function pointer, change the name to be similar to other sched_in functions. Follow Kan Liang's and remove the single caller flexible_sched_in and pinned_sched_in, moving functionality to caller. Signed-off-by: Ian Rogers ---

[PATCH 6/7] perf: avoid double checking CPU and cgroup

2019-07-02 Thread Ian Rogers
When ctx_groups_sched_in iterates the CPU and cgroup of events is known to match the current task. Avoid double checking this with event_filter_match by passing in an additional argument. Signed-off-by: Ian Rogers --- kernel/events/core.c | 27 ++- 1 file changed, 18

[PATCH 3/7] perf: order iterators for visit_groups_merge into a min-heap

2019-07-02 Thread Ian Rogers
The groups rbtree holding perf events, either for a CPU or a task, needs to have multiple iterators that visit events in group_index (insertion) order. Rather than linearly searching the iterators, use a min-heap to go from a O(#iterators) search to a O(log2(#iterators)) insert cost per event

[PATCH 5/7] perf: cache perf_event_groups_first for cgroups

2019-07-02 Thread Ian Rogers
Add a per-CPU cache of the pinned and flexible perf_event_groups_first value for a cgroup avoiding an O(log(#perf events)) searches during sched_in. This patch is derived from an original patch by Kan Liang Signed-off-by: Ian Rogers --- include/linux/perf_event.h | 6 ++

Re: [PATCH v8 7/8] sched/core: Prevent race condition between cpuset and __sched_setscheduler()

2019-07-02 Thread Juri Lelli
On 01/07/19 21:11, Peter Zijlstra wrote: > On Fri, Jun 28, 2019 at 10:06:17AM +0200, Juri Lelli wrote: > > No synchronisation mechanism exists between the cpuset subsystem and > > calls to function __sched_setscheduler(). As such, it is possible that > > new root domains are created on the cpuset

Re: [PATCH v8 8/8] rcu/tree: Setschedule gp ktread to SCHED_FIFO outside of atomic region

2019-07-02 Thread Juri Lelli
On 01/07/19 21:13, Peter Zijlstra wrote: > On Fri, Jun 28, 2019 at 10:06:18AM +0200, Juri Lelli wrote: > > sched_setscheduler() needs to acquire cpuset_rwsem, but it is currently > > called from an invalid (atomic) context by rcu_spawn_gp_kthread(). > > > > Fix that by simply moving

Re: [PATCH RT v2] Fix a lockup in wait_for_completion() and friends

2019-07-02 Thread Kurt Kanzenbach
Hi, On Mon, Jul 01, 2019 at 05:28:25PM -0400, Steven Rostedt wrote: > On Mon, 1 Jul 2019 17:13:33 -0400 > Steven Rostedt wrote: > > > On Mon, 1 Jul 2019 17:06:02 -0400 > > Steven Rostedt wrote: > > > > > On Mon, 1 Jul 2019 15:43:25 -0500 > > > Corey Minyard wrote: > > > > > > > > > > I show

Re: [PATCH v2] mmc: sdhci-msm: fix mutex while in spinlock

2019-07-02 Thread Adrian Hunter
On 1/07/19 6:01 PM, Jorge Ramirez-Ortiz wrote: > mutexes can sleep and therefore should not be taken while holding a > spinlock. move clk_get_rate (can sleep) outside the spinlock protected > region. > > Fixes: 83736352e0ca ("mmc: sdhci-msm: Update DLL reset sequence") > Cc:

Re: [PATCH 1/2] arm64: dts: imx8mq: Add gpio-ranges property

2019-07-02 Thread Abel Vesa
On 19-07-02 09:43:59, anson.hu...@nxp.com wrote: > From: Anson Huang > > Add "gpio-ranges" property to establish connections between GPIOs > and PINs on i.MX8MQ pinctrl driver. > > Signed-off-by: Anson Huang For both patches: Reviewed-by: Abel Vesa > --- >

RE: [PATCH v2] mdev: Send uevents around parent device registration

2019-07-02 Thread Parav Pandit
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Alex Williamson > Sent: Tuesday, July 2, 2019 11:12 AM > To: Kirti Wankhede > Cc: coh...@redhat.com; k...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v2] mdev:

Re: Reminder: 2 open syzbot bugs in vhost subsystem

2019-07-02 Thread Jason Wang
On 2019/7/2 下午1:32, Eric Biggers wrote: On Tue, Jul 02, 2019 at 01:24:43PM +0800, Jason Wang wrote: Title: INFO: task hung in vhost_init_device_iotlb Last occurred: 125 days ago Reported:

Re: INFO: task hung in vhost_init_device_iotlb

2019-07-02 Thread Jason Wang
On 2019/1/30 下午4:12, Dmitry Vyukov wrote: On Tue, Jan 29, 2019 at 5:06 PM Michael S. Tsirkin wrote: On Tue, Jan 29, 2019 at 01:22:02AM -0800, syzbot wrote: Hello, syzbot found the following crash on: HEAD commit:983542434e6b Merge tag 'edac_fix_for_5.0' of git://git.ker.. git tree:

RE: [PATCH] soc: imx-scu: Add SoC UID(unique identifier) support

2019-07-02 Thread Anson Huang
Hi, Marco > Hi Anson, > > On 19-06-27 07:01, Anson Huang wrote: > > Hi, Daniel > > > > > On Thu, Jun 27, 2019 at 3:48 AM Anson Huang > > > wrote: > > > > > > > > Hi, Daniel > > > > > > > > > On Wed, Jun 26, 2019 at 10:06 AM wrote: > > > > > > > > > > > > From: Anson Huang > > > > > > > > > >

Re: [PATCH v2 1/1] ARM: dts: colibri: introduce dts with UHS-I support enabled

2019-07-02 Thread Marco Felsch
Hi Igor, On 19-05-14 17:38, Igor Opaniuk wrote: > Introduce DTS for Colibri iMX6S/DL V1.1x re-design, where UHS-I support was > added. Provide proper configuration for VGEN3, which allows that rail to > be automatically switched to 1.8 volts for proper UHS-I operation mode. > > Signed-off-by:

Re: [PATCH] x86/stacktrace: Do not access user space memory unnecessarily

2019-07-02 Thread Peter Zijlstra
On Tue, Jul 02, 2019 at 02:31:51PM +0900, Eiichi Tsukata wrote: > Put the boundary check before it accesses user space to prevent unnecessary > access which might crash the machine. > > Especially, ftrace preemptirq/irq_disable event with user stack trace > option can trigger SEGV in pid 1 which

[PATCH net-next] hinic: remove standard netdev stats

2019-07-02 Thread Xue Chaojing
This patch removes standard netdev stats in ethtool -S. Suggested-by: Jakub Kicinski Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_ethtool.c | 47 +-- 1 file changed, 1 insertion(+), 46 deletions(-) diff --git

Re: [PATCH V2] soc: imx-scu: Add SoC UID(unique identifier) support

2019-07-02 Thread Marco Felsch
Hi Anson, On 19-06-28 11:25, anson.hu...@nxp.com wrote: > From: Anson Huang > > Add i.MX SCU SoC's UID(unique identifier) support, user > can read it from sysfs: > > root@imx8qxpmek:~# cat /sys/devices/soc0/soc_uid > 7B64280B57AC1898 > > Signed-off-by: Anson Huang > --- > Changes since V1: >

RE: [PATCH V2] soc: imx-scu: Add SoC UID(unique identifier) support

2019-07-02 Thread Anson Huang
Hi, Marco > > + hdr->ver = IMX_SC_RPC_VERSION; > > + hdr->svc = IMX_SC_RPC_SVC_MISC; > > + hdr->func = IMX_SC_MISC_FUNC_UNIQUE_ID; > > + hdr->size = 1; > > + > > + /* > > +* SCU FW API always returns an error even the > > +* function is successfully executed, so skip > > +*

Re: [PATCH] mm/z3fold: Fix z3fold_buddy_slots use after free

2019-07-02 Thread Vitaly Wool
Hi Henry, On Mon, Jul 1, 2019 at 8:31 PM Henry Burns wrote: > > Running z3fold stress testing with address sanitization > showed zhdr->slots was being used after it was freed. > > z3fold_free(z3fold_pool, handle) > free_handle(handle) > kmem_cache_free(pool->c_handle, zhdr->slots) >

Re: [PATCH v2 0/5] Allocate memmap from hotadded memory

2019-07-02 Thread Oscar Salvador
On Tue, Jul 02, 2019 at 04:42:34PM +1000, Rashmica Gupta wrote: > Hi David, > > Sorry for the late reply. > > On Wed, 2019-06-26 at 10:28 +0200, David Hildenbrand wrote: > > On 26.06.19 10:15, Oscar Salvador wrote: > > > On Wed, Jun 26, 2019 at 10:11:06AM +0200, David Hildenbrand wrote: > > > >

RE: [PATCH V2] soc: imx-scu: Add SoC UID(unique identifier) support

2019-07-02 Thread Anson Huang
Hi, Marco > > > + hdr->ver = IMX_SC_RPC_VERSION; > > > + hdr->svc = IMX_SC_RPC_SVC_MISC; > > > + hdr->func = IMX_SC_MISC_FUNC_UNIQUE_ID; > > > + hdr->size = 1; > > > + > > > + /* > > > + * SCU FW API always returns an error even the > > > + * function is successfully executed, so skip > > > +

[PATCH V3] soc: imx-scu: Add SoC UID(unique identifier) support

2019-07-02 Thread Anson . Huang
From: Anson Huang Add i.MX SCU SoC's UID(unique identifier) support, user can read it from sysfs: root@imx8qxpmek:~# cat /sys/devices/soc0/soc_uid 7B64280B57AC1898 Signed-off-by: Anson Huang Reviewed-by: Daniel Baluta --- Change since V2: - The SCU FW API for getting UID does NOT

[PATCH v3 02/27] ata: Remove memset after dma_alloc_coherent/dmam_alloc_coherent

2019-07-02 Thread Fuqian Huang
In commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent/dmam_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- Changes in v3: - Use actual commit rather than the merge commit in the commit message

[PATCH v3 03/27] atm: idt77252: remove memset after dma_alloc_coherent

2019-07-02 Thread Fuqian Huang
In commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- Changes in v3: - Use actual commit rather than the merge commit in the commit message

[PATCH v3 07/27] drm/amdgpu: remove memset after zalloc

2019-07-02 Thread Fuqian Huang
zalloc has already zeroed the memory. so memset is unneeded. Signed-off-by: Fuqian Huang --- Changes in v3: - Changes in title: gpu: drm -> drm/amdgpu drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c | 2 -- drivers/gpu/drm/amd/powerplay/hwmgr/process_pptables_v1_0.c | 2 --

[PATCH v3 06/27] dma: remove memset after dma_alloc_coherent/dmam_alloc_coherent

2019-07-02 Thread Fuqian Huang
In commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent/dmam_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- Changes in v3: - Use actual commit rather than the merge commit in the commit message

[PATCH v3 04/27] block: remove memset after dma_alloc_coherent

2019-07-02 Thread Fuqian Huang
In commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- Changes in v3: - Use actual commit rather than the merge commit in the commit message

[PATCH v3 05/27] crypto: remove memset after dma_alloc_coherent

2019-07-02 Thread Fuqian Huang
In commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- Changes in v3: - Use actual commit rather than the merge commit in the commit message

[PATCH v3 01/27] sh: mm: Remove call to memset after dma_alloc_coherent

2019-07-02 Thread Fuqian Huang
In commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- Changes in v3: - Use actual commit rather than the merge commit in the commit message

[PATCH v3 13/27] message: fusion: remove memset after pci_alloc_consistent

2019-07-02 Thread Fuqian Huang
pci_alloc_consistent calls dma_alloc_coherent directly. In commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- Changes in v3: - Use actual commit rather than the

[PATCH v3 11/27] media: remove memset after dma_alloc_coherent/pci_alloc_consistent

2019-07-02 Thread Fuqian Huang
pci_alloc_consistent calls dma_alloc_coherent directly. In commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent has already zeroed the memory. So memset after these 2 functions is not needed. Signed-off-by: Fuqian Huang --- Changes in v3: - Use actual

[PATCH v3 14/27] mtd: nand: use kzalloc instead of kmalloc and memset

2019-07-02 Thread Fuqian Huang
Replace kmalloc followed by a memset with kzalloc. There is a recommendation to use zeroing allocator rather than allocator followed by memset with 0 in ./scripts/coccinelle/api/alloc/zalloc-simple.cocci Signed-off-by: Fuqian Huang --- Changes in v3: - Resend drivers/mtd/nand/raw/nand_bch.c

[PATCH v2 2/3] augmented rbtree: add new RB_DECLARE_CALLBACKS_MAX macro

2019-07-02 Thread Michel Lespinasse
Add RB_DECLARE_CALLBACKS_MAX, which generates augmented rbtree callbacks for the case where the augmented value is a scalar whose definition follows a max(f(node)) pattern. This actually covers all present uses of RB_DECLARE_CALLBACKS, and saves some (source) code duplication in the various

[PATCH v3 12/27] media: use kzalloc instead of kmalloc and memset

2019-07-02 Thread Fuqian Huang
Replace kmalloc followed by a memset with kzalloc. Signed-off-by: Fuqian Huang --- Changes in v3: - Resend drivers/media/usb/pvrusb2/pvrusb2-eeprom.c | 3 +-- drivers/media/usb/pvrusb2/pvrusb2-hdw.c| 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git

[PATCH v3 09/27] infiniband: remove unneeded memset

2019-07-02 Thread Fuqian Huang
pci_alloc_consistent calls dma_alloc_coherent directly. In commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent/dmam_alloc_coherent has already zeroed the memory. So the memset after these 3 function calls is not needed. Signed-off-by: Fuqian Huang ---

[PATCH v2 0/3] make RB_DECLARE_CALLBACKS more generic

2019-07-02 Thread Michel Lespinasse
These changes are intended to make the RB_DECLARE_CALLBACKS macro more generic (allowing the aubmented subtree information to be a struct instead of a scalar) and tweak the macro arguments to be more similar to INTERVAL_TREE_DEFINE(). Changes since v1: I have added a new RB_DECLARE_CALLBACKS_MAX

[PATCH v3 08/27] i2c: busses: remove memset after dmam_alloc_coherent

2019-07-02 Thread Fuqian Huang
In commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dmam_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- Changes in v3: - Use actual commit rather than the merge commit in the commit message

[PATCH v2 1/3] augmented rbtree: add comments for RB_DECLARE_CALLBACKS macro

2019-07-02 Thread Michel Lespinasse
Add a short comment summarizing the arguments to RB_DECLARE_CALLBACKS. The arguments are also now capitalized. This copies the style of the INTERVAL_TREE_DEFINE macro. No functional changes in this commit, only comments and capitalization. Signed-off-by: Michel Lespinasse ---

[PATCH v2 3/3] augmented rbtree: rework the RB_DECLARE_CALLBACKS macro definition

2019-07-02 Thread Michel Lespinasse
- Change the definition of the RBCOMPUTE function. The propagate callback repeatedly calls RBCOMPUTE as it moves from leaf to root. it wants to stop recomputing once the augmented subtree information doesn't change. This was previously checked using the == operator, but that only works

[PATCH v3 19/27] staging: rtl8*: use zeroing allocator rather than allocator followed with memset 0

2019-07-02 Thread Fuqian Huang
Use zeroing allocator rather than allocator followed with memset 0. Signed-off-by: Fuqian Huang --- Changes in v3: - Resend drivers/staging/rtl8188eu/os_dep/mlme_linux.c | 3 +-- drivers/staging/rtl8712/rtl871x_io.c | 4 +---

[PATCH v3 17/27] scsi: remove unneeded memset

2019-07-02 Thread Fuqian Huang
The memset with 0 after zeroing alloctors is unneeded. pci_alloc_persistent calls dma_alloc_coherent directly. In commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent has already zeroed the memory. So the memset after these functions is not needed.

[PATCH] crypto: cryptd - Fix skcipher instance memory leak

2019-07-02 Thread Vincent Whitchurch
cryptd_skcipher_free() fails to free the struct skcipher_instance allocated in cryptd_create_skcipher(), leading to a memory leak. This is detected by kmemleak on bootup on ARM64 platforms: unreferenced object 0x80003377b180 (size 1024): comm "cryptomgr_probe", pid 822, jiffies

[PATCH v3 20/27] staging: rtl8723bs: remove unneeded memset

2019-07-02 Thread Fuqian Huang
rtw_zmalloc already zeroes the memory, so memset is unneeded. Signed-off-by: Fuqian Huang --- Changes in v3: - Resend drivers/staging/rtl8723bs/core/rtw_ap.c | 2 -- drivers/staging/rtl8723bs/core/rtw_mlme.c | 2 -- 2 files changed, 4 deletions(-) diff --git

[PATCH v3 18/27] scsi: use zeroing allocator rather than allocator followed by memset 0

2019-07-02 Thread Fuqian Huang
Replace allocator followed by memset with 0 with zeroing allocator. Signed-off-by: Fuqian Huang --- Changes in v3: - Resend drivers/scsi/lpfc/lpfc_debugfs.c | 5 + drivers/scsi/qedf/qedf_dbg.c | 3 +-- drivers/scsi/qla2xxx/qla_attr.c | 7 ++- 3 files changed, 4 insertions(+), 11

[PATCH v3 22/27] usb: remove unneeded memset after dma_alloc_coherent

2019-07-02 Thread Fuqian Huang
In commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- Changes in v3: - Use actual commit rather than the merge commit in the commit message

[PATCH v3 21/27] tty: remove unneeded memset

2019-07-02 Thread Fuqian Huang
pci_alloc_consistent calls dma_alloc_coherent directly. In commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- Changes in v3: - Use actual commit rather than the

[PATCH v3 16/27] net: remove unneeded memset

2019-07-02 Thread Fuqian Huang
The memset with 0 after zeroing allocator is unneeded. pci_alloc_persistent calls dma_alloc_coherent directly. In commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent has already zeroed the memory. So the memset after these functions is unneeded.

[PATCH v3 15/27] net: use zeroing allocator rather than allocator followed by memset zero

2019-07-02 Thread Fuqian Huang
Replace allocator followed by memset with 0 with zeroing allocator. Signed-off-by: Fuqian Huang --- Changes in v3: - Resend drivers/net/eql.c | 3 +-- drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c | 4 +---

[PATCH v3 23/27] video: fbdev: remove unneeded memset after dma_alloc_coherent

2019-07-02 Thread Fuqian Huang
In commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- Changes in v3: - Use actual commit rather than the merge commit in the commit message

[PATCH v3 25/27] kernel: power: use kzalloc rather than kmalloc followed with memset

2019-07-02 Thread Fuqian Huang
Use zeroing allocator instead of using allocator followed with memset with 0 Signed-off-by: Fuqian Huang --- Changes in v3: - Resend kernel/power/swap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/power/swap.c b/kernel/power/swap.c index

[PATCH v3 27/27] sound: ppc: remove unneeded memset after dma_alloc_coherent

2019-07-02 Thread Fuqian Huang
In commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- Changes in v3: - Use actual commit rather than the merge commit in the commit message sound/ppc/pmac.c | 1

[PATCH v3 26/27] sound: oss: use kzalloc rather than kmalloc with memset

2019-07-02 Thread Fuqian Huang
Use zeroing allocator instead of using allocator followed with memset with 0. Signed-off-by: Fuqian Huang --- Changes in v3: - Resend sound/core/seq/oss/seq_oss_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/core/seq/oss/seq_oss_init.c

[PATCH v3 24/27] fs: jffs2: use kzalloc rather than kmalloc followed with memset

2019-07-02 Thread Fuqian Huang
Use zero allocator rather than kmalloc followed with memset with 0. Signed-off-by: Fuqian Huang --- Changes in v3: - Fix pr_warn message. fs/jffs2/erase.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/jffs2/erase.c b/fs/jffs2/erase.c index

Re: [PATCH] rtl8xxxu: Fix wifi low signal strength issue of RTL8723BU

2019-07-02 Thread Chris Chiu
On Mon, Jul 1, 2019 at 4:28 PM Daniel Drake wrote: > > Hi Chris, > > On Thu, Jun 27, 2019 at 5:53 PM Chris Chiu wrote: > > The WiFi tx power of RTL8723BU is extremely low after booting. So > > the WiFi scan gives very limited AP list and it always fails to > > connect to the selected AP. This

[PATCH v3 10/27] md: use kzalloc instead of kmalloc and memset

2019-07-02 Thread Fuqian Huang
Replace kmalloc followed by a memset with kzalloc Signed-off-by: Fuqian Huang --- Changes in v3: - Resend drivers/md/dm-integrity.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c index 44e76cda087a..f5db89b28757

[PATCH 5.1 10/55] drm/i915: Save the old CDCLK atomic state

2019-07-02 Thread Greg Kroah-Hartman
From: Imre Deak commit 48d9f87ddd2108663fd866b254e05d422243cc56 upstream. The old state will be needed by an upcoming patch to determine if the commit increases or decreases CDCLK, so move the old state to the atomic state (while keeping the new one in dev_priv). cdclk.logical and cdclk.actual

[PATCH 5.1 11/55] drm/i915: Remove redundant store of logical CDCLK state

2019-07-02 Thread Greg Kroah-Hartman
From: Imre Deak commit 2b21dfbeee725778daed2c3dd45a3fc808176feb upstream. We copied the original state into the atomic state already earlier in the function, so no need to do it a second time. Cc: Ville Syrjälä Signed-off-by: Imre Deak Reviewed-by: Ville Syrjälä Link:

[PATCH 5.1 01/55] arm64: Dont unconditionally add -Wno-psabi to KBUILD_CFLAGS

2019-07-02 Thread Greg Kroah-Hartman
From: Nathan Chancellor commit fa63da2ab046b885a7f70291aafc4e8ce015429b upstream. This is a GCC only option, which warns about ABI changes within GCC, so unconditionally adding it breaks Clang with tons of: warning: unknown warning option '-Wno-psabi' [-Wunknown-warning-option] and link time

[PATCH 5.1 13/55] mm: soft-offline: return -EBUSY if set_hwpoison_free_buddy_page() fails

2019-07-02 Thread Greg Kroah-Hartman
From: Naoya Horiguchi commit b38e5962f8ed0d2a2b28a887fc2221f7f41db119 upstream. The pass/fail of soft offline should be judged by checking whether the raw error page was finally contained or not (i.e. the result of set_hwpoison_free_buddy_page()), but current code do not work like that. It

[PATCH 5.1 18/55] dm log writes: make sure super sector log updates are written in order

2019-07-02 Thread Greg Kroah-Hartman
From: zhangyi (F) commit 211ad4b733037f66f9be0a79eade3da7ab11cbb8 upstream. Currently, although we submit super bios in order (and super.nr_entries is incremented by each logged entry), submit_bio() is async so each super sector may not be written to log device in order and then the final

[PATCH 5.1 12/55] drm/i915: Skip modeset for cdclk changes if possible

2019-07-02 Thread Greg Kroah-Hartman
From: Ville Syrjälä commit 59f9e9cab3a1e6762fb707d0d829b982930f1349 upstream. If we have only a single active pipe and the cdclk change only requires the cd2x divider to be updated bxt+ can do the update with forcing a full modeset on the pipe. Try to hook that up. v2: - Wait for vblank after

[PATCH 5.1 02/55] Revert "x86/uaccess, ftrace: Fix ftrace_likely_update() vs. SMAP"

2019-07-02 Thread Greg Kroah-Hartman
This reverts commit b65b70ba068b7cdbfeb65eee87cce84a74618603, which was upstream commit 4a6c91fbdef846ec7250b82f2eeeb87ac5f18cf9. On Tue, Jun 25, 2019 at 09:39:45AM +0200, Sebastian Andrzej Siewior wrote: >Please backport commit e74deb11931ff682b59d5b9d387f7115f689698e to >stable _or_ revert the

  1   2   3   4   5   6   7   8   9   10   >