Re: general protection fault in perf_misc_flags

2020-09-20 Thread Dmitry Vyukov
On Sat, Sep 19, 2020 at 1:08 PM Borislav Petkov wrote: > > On Sat, Sep 19, 2020 at 01:32:14AM -0700, syzbot wrote: > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:92ab97ad Merge tag 'sh-for-5.9-part2' of git://git.libc.or.. > > git tree: upstream > > console

Re: [PATCH v2] dm: Call proper helper to determine dax support

2020-09-20 Thread Naresh Kamboju
On Fri, 18 Sep 2020 at 11:18, Dan Williams wrote: > > From: Jan Kara > > DM was calling generic_fsdax_supported() to determine whether a device > referenced in the DM table supports DAX. However this is a helper for "leaf" > device drivers so that > they don't have to duplicate common generic

Re: [PATCH 3/3] exfat: replace memcpy with structure assignment

2020-09-20 Thread Namjae Jeon
2020-09-15 19:23 GMT-07:00, Sungjong Seo : >> Use structure assignment instead of memcpy. >> >> Signed-off-by: Tetsuhiro Kohada > > Acked-by: Sungjong Seo Applied. Thanks for your patch!

Re: [PATCH 4/4] perf test: Add expand cgroup event test

2020-09-20 Thread Namhyung Kim
On Fri, Sep 18, 2020 at 10:52 PM Jiri Olsa wrote: > > On Wed, Sep 16, 2020 at 03:31:29PM +0900, Namhyung Kim wrote: > > SNIP > > > +++ b/tools/perf/tests/tests.h > > @@ -123,6 +123,7 @@ const char *test__pfm_subtest_get_desc(int subtest); > > int test__pfm_subtest_get_nr(void); > > int

Re: [PATCH 1/3] exfat: remove useless directory scan in exfat_add_entry()

2020-09-20 Thread Namjae Jeon
2020-09-15 19:22 GMT-07:00, Sungjong Seo : >> There is nothing in directory just created, so there is no need to scan. >> >> Signed-off-by: Tetsuhiro Kohada > > Acked-by: Sungjong Seo Applied. Thanks for your patch!

Re: [PATCH] s390/vfio-ap: fix unregister GISC when KVM is already gone results in OOPS

2020-09-20 Thread Christian Borntraeger
On 18.09.20 19:02, Tony Krowiak wrote: > Attempting to unregister Guest Interruption Subclass (GISC) when the > link between the matrix mdev and KVM has been removed results in the > following: > >"Kernel panic -not syncing: Fatal exception: panic_on_oops" I think the full backtrace would

Re: [PATCH 3/4] perf tools: Copy metric events properly when expand cgroups

2020-09-20 Thread Namhyung Kim
On Fri, Sep 18, 2020 at 10:45 PM Jiri Olsa wrote: > > On Wed, Sep 16, 2020 at 03:31:28PM +0900, Namhyung Kim wrote: > > SNIP > > > + free(new_expr); > > + return -ENOMEM; > > + } > > + > > +

Re: [PATCH 2/4] perf stat: Add --for-each-cgroup option

2020-09-20 Thread Namhyung Kim
On Fri, Sep 18, 2020 at 10:34 PM Jiri Olsa wrote: > > On Wed, Sep 16, 2020 at 03:31:27PM +0900, Namhyung Kim wrote: > > SNIP > > > +int evlist__expand_cgroup(struct evlist *evlist, const char *str) > > +{ > > + struct evlist *orig_list, *tmp_list; > > + struct evsel *pos, *evsel, *leader;

Re: [PATCH 1/4] perf evsel: Add evsel__clone() function

2020-09-20 Thread Namhyung Kim
Hi Jiri, On Fri, Sep 18, 2020 at 10:31 PM Jiri Olsa wrote: > > On Wed, Sep 16, 2020 at 03:31:26PM +0900, Namhyung Kim wrote: > > SNIP > > > +struct evsel *evsel__clone(struct evsel *orig) > > +{ > > + struct evsel *evsel; > > + struct evsel_config_term *pos, *tmp; > > + > > +

Re: KASAN: use-after-free Read in btrfs_scan_one_device

2020-09-20 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:325d0eab Merge branch 'akpm' (patches from Andrew) git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1512df5390 kernel config: https://syzkaller.appspot.com/x/.config?x=6a8a2ae52ed737db

[PATCH v3] memory: dfl-emif: add the DFL EMIF private feature driver

2020-09-20 Thread Xu Yilun
This driver is for the EMIF private feature implemented under FPGA Device Feature List (DFL) framework. It is used to expose memory interface status information as well as memory clearing control. The purpose of memory clearing block is to zero out all private memory when FPGA is to be

[PATCH v3] add the FPGA Device Feature List (DFL) EMIF support

2020-09-20 Thread Xu Yilun
The driver supports the EMIF controller on Intel Programmable Acceleration Card (PAC). The controller manages the on-board memory of the PCIe card. Hi Moritz: I have sent 2 versions of the patch to Krzysztof who maintains the drivers/memory folder. And because this patch depends on the previous

Re: [PATCH v2 0/6] tools/bootconfig: Add boot-time tracing script

2020-09-20 Thread Masami Hiramatsu
Hi Steve, Can you also merge this series to tracing tree? Thank you, On Sat, 15 Aug 2020 23:01:00 +0900 Masami Hiramatsu wrote: > Hi, > > This is the 2nd version of the series to introduce scripts for the > boot-time tracing. In this version, I just updated 4/6 according to > Steve's

[PATCH] drivers:staging:comedi:comedi.h: Fixed typos in comments

2020-09-20 Thread James Browning
Removed repeated words "the" and "in" Signed-off-by: James Browning --- drivers/staging/comedi/comedi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi/comedi.h index 09a940066c0e..b5d00a006dbb 100644 ---

Re: [PATCH v2 3/3] ARM: dts: add Plymovent M2M board

2020-09-20 Thread Oleksij Rempel
On Sun, Sep 13, 2020 at 12:49:45PM +0800, Shawn Guo wrote: > On Fri, Sep 11, 2020 at 08:03:12AM +0200, Marco Felsch wrote: > > On 20-09-11 07:09, Oleksij Rempel wrote: > > > Plymovent M2M is a control interface produced for the Plymovent filter > > > systems. > > > > > > Signed-off-by: David

linux-next: manual merge of the usb tree with the pci tree

2020-09-20 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the usb tree got a conflict in: drivers/pci/controller/pcie-brcmstb.c between commit: 1cf1b0a6dd95 ("PCI: brcmstb: Add bcm7278 register info") from the pci tree and commit: f48cc509c935 ("Revert "PCI: brcmstb: Wait for Raspberry Pi's firmware when

KMSAN: uninit-value in hsr_fill_frame_info

2020-09-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c5a13b33 kmsan: clang-format core git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=13ef204b90 kernel config:

Re: RE: RE: [PATCH v14 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2020-09-20 Thread Wendy Liang
Hi Ben On Sun, Sep 20, 2020 at 4:16 PM Ben Levinsky wrote: > > Hi All, > > > -Original Message- > > From: Wendy Liang > > Sent: Friday, September 18, 2020 6:53 PM > > To: Michael Auchter > > Cc: Ben Levinsky ; punit1.agra...@toshiba.co.jp; > > devicet...@vger.kernel.org;

Re: RE: RE: [PATCH v14 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2020-09-20 Thread Wendy Liang
Hi Ben, On Sun, Sep 20, 2020 at 4:16 PM Ben Levinsky wrote: > > Hi All, > > > -Original Message- > > From: Wendy Liang > > Sent: Friday, September 18, 2020 6:53 PM > > To: Michael Auchter > > Cc: Ben Levinsky ; punit1.agra...@toshiba.co.jp; > > devicet...@vger.kernel.org;

Re: [PATCH 2/2] drivers:staging:comedi:comedi.h Fixed typo in comment

2020-09-20 Thread Greg Kroah-Hartman
On Sun, Sep 20, 2020 at 09:14:49PM -0700, James Browning wrote: > Removed repeated word "in" > > Signed-off-by: James Browning > --- > drivers/staging/comedi/comedi.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) You sent two different patches that did different things, yet had the

Re: [PATCH] mmap_lock: add tracepoints around lock acquisition

2020-09-20 Thread Yafang Shao
On Fri, Sep 18, 2020 at 2:13 AM Axel Rasmussen wrote: > > The goal of these tracepoints is to be able to debug lock contention > issues. This lock is acquired on most (all?) mmap / munmap / page fault > operations, so a multi-threaded process which does a lot of these can > experience significant

Re: [PATCH v5 14/17] NTB: Add support for EPF PCI-Express Non-Transparent Bridge

2020-09-20 Thread Randy Dunlap
On 9/20/20 9:52 PM, Kishon Vijay Abraham I wrote: > Hi Randy, > > On 18/09/20 9:45 pm, Randy Dunlap wrote: >> On 9/17/20 11:42 PM, Kishon Vijay Abraham I wrote: >>> diff --git a/drivers/ntb/hw/epf/Kconfig b/drivers/ntb/hw/epf/Kconfig >>> new file mode 100644 >>> index ..6197d1aab344

Re: WARNING in tracepoint_add_func

2020-09-20 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:325d0eab Merge branch 'akpm' (patches from Andrew) git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16992c8190 kernel config: https://syzkaller.appspot.com/x/.config?x=b12e84189082991c

Re: [PATCH v5 14/17] NTB: Add support for EPF PCI-Express Non-Transparent Bridge

2020-09-20 Thread Kishon Vijay Abraham I
Hi Randy, On 18/09/20 9:45 pm, Randy Dunlap wrote: > On 9/17/20 11:42 PM, Kishon Vijay Abraham I wrote: >> diff --git a/drivers/ntb/hw/epf/Kconfig b/drivers/ntb/hw/epf/Kconfig >> new file mode 100644 >> index ..6197d1aab344 >> --- /dev/null >> +++ b/drivers/ntb/hw/epf/Kconfig >> @@

[PATCH v2 2/2] vfio/pci: Don't regenerate vconfig for all BARs if !bardirty

2020-09-20 Thread Zenghui Yu
Now we regenerate vconfig for all the BARs via vfio_bar_fixup(), every time any offset of any of them are read. Though BARs aren't re-read regularly, the regeneration can be avoid if no BARs had been written since they were last read, in which case the vdev->bardirty is false. Let's predicate the

[PATCH v2 1/2] vfio/pci: Remove redundant declaration of vfio_pci_driver

2020-09-20 Thread Zenghui Yu
It was added by commit 137e5531351d ("vfio/pci: Add sriov_configure support") but duplicates a forward declaration earlier in the file. Remove it. Signed-off-by: Zenghui Yu Reviewed-by: Cornelia Huck --- * From v1: - Clarify the commit message per Alex's suggestion. - Add Cornelia's R-b

kernel v5.9-rc6 not compiling

2020-09-20 Thread bob
Hi.  I've been building kernels weekly since 1996.  Never had one not build before today.  v5.9-rc6 does not compile. Error:   AR  drivers/gpu/built-in.a make: *** [Makefile:1784: drivers] Error 2   CALL    scripts/checksyscalls.sh   CALL    scripts/atomic/check-atomics.sh   DESCEND 

Re: let import_iovec deal with compat_iovecs as well

2020-09-20 Thread 'Christoph Hellwig'
On Sat, Sep 19, 2020 at 02:24:10PM +, David Laight wrote: > I thought about that change while writing my import_iovec() => iovec_import() > patch - and thought that the io_uring code would (as usual) cause grief. > > Christoph - did you see those patches? No.

Re: [PATCH v5 12/17] PCI: endpoint: Add EP function driver to provide NTB functionality

2020-09-20 Thread Kishon Vijay Abraham I
Hi Randy, On 18/09/20 9:47 pm, Randy Dunlap wrote: > On 9/17/20 11:42 PM, Kishon Vijay Abraham I wrote: >> diff --git a/drivers/pci/endpoint/functions/Kconfig >> b/drivers/pci/endpoint/functions/Kconfig >> index 8820d0f7ec77..55ac7bb2d469 100644 >> --- a/drivers/pci/endpoint/functions/Kconfig >>

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Christoph Hellwig
On Sun, Sep 20, 2020 at 12:14:49PM -0700, Andy Lutomirski wrote: > I wonder if this is really quite cast in stone. We could also have > FMODE_SHITTY_COMPAT and set that when a file like this is *opened* in > compat mode. Then that particular struct file would be read and > written using the

[PATCH v4 4/4] Bluetooth: Add toggle to switch off interleave scan

2020-09-20 Thread Howard Chung
This patch add a configurable parameter to switch off the interleave scan feature. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud --- Changes in v4: - Set EnableAdvMonInterleaveScan default to Disable - Fix 80 chars limit in mgmt_config.c include/net/bluetooth/hci_core.h | 1 +

[PATCH v4 3/4] Bluetooth: Handle active scan case

2020-09-20 Thread Howard Chung
This patch adds code to handle the active scan during interleave scan. The interleave scan will be canceled when users start active scan, and it will be restarted after active scan stopped. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud Reviewed-by: Manish Mandlik --- (no changes

[PATCH v4 2/4] Bluetooth: Handle system suspend resume case

2020-09-20 Thread Howard Chung
This patch adds code to handle the system suspension during interleave scan. The interleave scan will be canceled when the system is going to sleep, and will be restarted after waking up. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud Reviewed-by: Manish Mandlik Reviewed-by: Abhishek

[PATCH v4 1/4] Bluetooth: Interleave with allowlist scan

2020-09-20 Thread Howard Chung
This patch implements the interleaving between allowlist scan and no-filter scan. It'll be used to save power when at least one monitor is registered and at least one pending connection or one device to be scanned for. The durations of the allowlist scan and the no-filter scan are controlled by

[PATCH 2/2] drivers:staging:comedi:comedi.h Fixed typo in comment

2020-09-20 Thread James Browning
Removed repeated word "in" Signed-off-by: James Browning --- drivers/staging/comedi/comedi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi/comedi.h index 3bc74bea830d..b5d00a006dbb 100644 ---

[PATCH 1/2] drivers:staging:comedi:comedi.h Fixed typo in comment

2020-09-20 Thread James Browning
Removed repeated "the". Signed-off-by: James Browning --- drivers/staging/comedi/comedi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi/comedi.h index 09a940066c0e..3bc74bea830d 100644 ---

[RFC PATCH] arm64: dts: mt8183: Add arm,no-tick-in-suspend

2020-09-20 Thread Nicolas Boichat
The armv8-timer on MT8183 (kukui family) actually ticks in suspend, but its precision is so low (measured 400+ ppm -- 35 seconds/day) that it's actually better to use a fallback option (RTC). Signed-off-by: Nicolas Boichat --- We asked MTK if there is anything that can be done to make the

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

2020-09-20 Thread Stephen Rothwell
Hi all, After merging the iommu tree, today's linux-next build (arm multi_v7_defconfig) failed like this: drivers/gpu/drm/msm/msm_iommu.c: In function 'msm_iommu_pagetable_unmap': drivers/gpu/drm/msm/msm_iommu.c:46:2: error: implicit declaration of function 'iommu_flush_tlb_all'; did you mean

[PATCH] mm/mempolicy: remove or narrow the lock on current

2020-09-20 Thread Wei Yang
It is not necessary to hold the lock of current when setting nodemask of a new policy. Signed-off-by: Wei Yang --- mm/mempolicy.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 906adc58d86f..3fde772ef5ef 100644 --- a/mm/mempolicy.c

Re: PROBLEM: 5.9.0-rc6 fails to compile due to 'redefinition of ‘dax_supported’'

2020-09-20 Thread Robert Gadsdon
On 9/20/20 7:25 PM, Stuart Little wrote: An update on this: I've done a bisect, with the following result. --- cut here --- e2ec5128254518cae320d5dc631b71b94160f663 is the first bad commit commit e2ec5128254518cae320d5dc631b71b94160f663 Author: Jan Kara Date: Sun Sep 20 08:54:42 2020

[PATCH] clk: clk-prima2: fix return value check in prima2_clk_init()

2020-09-20 Thread Xu Wang
In case of error, the function clk_register() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Xu Wang --- drivers/clk/sirf/clk-prima2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v2 2/2] ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary

2020-09-20 Thread Leizhen (ThunderTown)
On 2020/9/17 22:00, Ard Biesheuvel wrote: > On Tue, 15 Sep 2020 at 22:06, Russell King - ARM Linux admin > wrote: >> >> On Tue, Sep 15, 2020 at 09:16:15PM +0800, Zhen Lei wrote: >>> Currently, only support the kernels where the base of physical memory is >>> at a 16MiB boundary. Because the

[PATCH v7 4/7] perf util: Link stream pair

2020-09-20 Thread Jin Yao
In previous patch, we have created an evsel_streams for one event, and top N hottest streams will be saved in a stream array in evsel_streams. This patch compares total streams among two evsel_streams. Once two streams are fully matched, they will be linked as a pair. From the pair, we can know

[PATCH v7 7/7] perf diff: Support hot streams comparison

2020-09-20 Thread Jin Yao
This patch enables perf-diff with "--stream" option. "--stream": Enable hot streams comparison Now let's see example. perf record -b ... Generate perf.data.old with branch data perf record -b ... Generate perf.data with branch data perf diff --stream [ Matched hot streams ] hot

[PATCH v7 6/7] perf util: Report hot streams

2020-09-20 Thread Jin Yao
We show the streams separately. They are divided into different sections. 1. "Matched hot streams" 2. "Hot streams in old perf data only" 3. "Hot streams in new perf data only". For each stream, we report the cycles and hot percent (hits%). For example, cycles: 2, hits: 4.08%

[PATCH v7 0/7] perf: Stream comparison

2020-09-20 Thread Jin Yao
Sometimes, a small change in a hot function reducing the cycles of this function, but the overall workload doesn't get faster. It is interesting where the cycles are moved to. What it would like is to diff before/after streams. The stream is the branch history which is aggregated by the branch

[PATCH v7 5/7] perf util: Calculate the sum of total streams hits

2020-09-20 Thread Jin Yao
We have used callchain_node->hit to measure the hot level of one stream. This patch calculates the sum of hits of total streams. Thus in next patch, we can use following formula to report hot percent for one stream. hot percent = callchain_node->hit / sum of total hits Signed-off-by: Jin Yao

[PATCH v7 2/7] perf util: Get the evsel_streams by evsel_idx

2020-09-20 Thread Jin Yao
In previous patch, we have created evsel_streams array This patch returns the specified evsel_streams according to the evsel_idx. Signed-off-by: Jin Yao --- v7: - Rename functions: evsel_streams__entry v6: - Rebase to perf/core v5: - Rebase to perf/core v4: - Rename

[PATCH v7 3/7] perf util: Compare two streams

2020-09-20 Thread Jin Yao
Stream is the branch history which is aggregated by the branch records from perf samples. Now we support the callchain as stream. If the callchain entries of one stream are fully matched with the callchain entries of another stream, we think two streams are matched. For example, cycles: 1,

[PATCH v7 1/7] perf util: Create streams

2020-09-20 Thread Jin Yao
We define the stream is the branch history which is aggregated by the branch records from perf samples. For example, the callchains aggregated from the branch records are considered as streams. By browsing the hot stream, we can understand the hot code path. Now we only support the callchain for

[rcu:rcu/next] BUILD SUCCESS ec179933e2502ebd3cbc31eac42a64d00e0e9c07

2020-09-20 Thread kernel test robot
allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a005-20200920 x86_64 randconfig-a003-20200920 x86_64 randconfig-a004-20200920 x86_64 randconfig-a002-20200920 x86_64

[PATCH] net: unix: remove redundant assignment to variable 'err'

2020-09-20 Thread Jing Xiangfeng
After commit 37ab4fa7844a ("net: unix: allow bind to fail on mutex lock"), the assignment to err is redundant. So remove it. Signed-off-by: Jing Xiangfeng --- net/unix/af_unix.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index

[PATCH drm/hisilicon 3/3] drm/hisilicon: Releasing Resources in the Destroy callback Function

2020-09-20 Thread Tian Tao
Rewrite the desrtoy callback function to release resources. Signed-off-by: Tian Tao --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c

[PATCH drm/hisilicon 0/3] support reading resolutions from EDID

2020-09-20 Thread Tian Tao
patch #1 add a new file to implements i2c adapters, #2 read the resolution from the edid, if that fails, set the resolution to fixed. patch #3 update the destroy callback function to release the i2c adapters. Tian Tao (3): drm/hisilicon: Support i2c driver algorithms for bit-shift adapters

[PATCH drm/hisilicon 2/3] drm/hisilicon: Features to support reading resolutions from EDID

2020-09-20 Thread Tian Tao
Use drm_get_edid to get the resolution, if that fails, set it to a fixed resolution. Signed-off-by: Tian Tao --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 35 1 file changed, 29 insertions(+), 6 deletions(-) diff --git

[PATCH drm/hisilicon 1/3] drm/hisilicon: Support i2c driver algorithms for bit-shift adapters

2020-09-20 Thread Tian Tao
Adding driver implementation to support i2c driver algorithms for bit-shift adapters, so hibmc will using the interface provided by drm to read edid. Signed-off-by: Tian Tao --- drivers/gpu/drm/hisilicon/hibmc/Makefile| 2 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 21 +-

linux-next: build warning after merge of the drm-msm tree

2020-09-20 Thread Stephen Rothwell
Hi all, After merging the drm-msm tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: In file included from include/linux/bitops.h:5, from include/linux/kernel.h:12, from include/linux/ascii85.h:11, from

linux-next: manual merge of the drm-msm tree with the drm tree

2020-09-20 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-msm tree got a conflict in: drivers/gpu/drm/msm/msm_iommu.c between commit: 7690a33f22ab ("drm: msm: fix common struct sg_table related issues") from the drm tree and commit: e3c64c7221f6 ("drm/msm: Set the global virtual address range from

RE: [EXT] Re: [PATCH v6 0/3] Add 802.1AD protocol support for dsa switch and ocelot driver

2020-09-20 Thread Hongbo Wang
> You're going to have to update every single SWITCHDEV_PORT_ADD_OBJ > handler and subsequent helpers to check the validate the protocol value. > > You also are going to have to make sure that every instantiated > switchdev_obj_port_vlan object initializes the vlan protocol field properly. > >

linux-next: manual merge of the drm-msm tree with Linus' tree

2020-09-20 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-msm tree got a conflict in: drivers/gpu/drm/msm/adreno/adreno_gpu.c between commit: df561f6688fe ("treewide: Use fallthrough pseudo-keyword") from Linus' tree and commit: 2fb7487aaf71 ("drm/msm: Get rid of the REG_ADRENO offsets") from the

Re: [PATCH 2/2] arm64/mm: Enable color zero pages

2020-09-20 Thread Gavin Shan
Hi Robin, On 9/17/20 8:22 PM, Robin Murphy wrote: On 2020-09-17 04:35, Gavin Shan wrote: On 9/16/20 6:28 PM, Will Deacon wrote: On Wed, Sep 16, 2020 at 01:25:23PM +1000, Gavin Shan wrote: This enables color zero pages by allocating contigous page frames for it. The number of pages for this

[GIT PULL] ARM: soc: TI driver updates for v5.10

2020-09-20 Thread Santosh Shilimkar
The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone.git tags/drivers_soc_for_5.10 for you to fetch changes up to

Re: [PATCH v2] add the FPGA Device Feature List (DFL) EMIF support

2020-09-20 Thread Xu Yilun
On Sun, Sep 20, 2020 at 06:22:05PM +0200, Krzysztof Kozlowski wrote: > On Wed, Sep 16, 2020 at 01:37:01PM +0800, Xu Yilun wrote: > > The patchsets "Modularization of DFL private feature drivers" & "add dfl > > bus support to MODULE_DEVICE_TABLE()" are all queued to linux-next. So > > there is no

[PATCH 3/4] dt-bindings: usb: Add Intel Keem Bay USB controller bindings

2020-09-20 Thread Wan Ahmad Zainie
Binding description for Intel Keem Bay USB controller. Signed-off-by: Wan Ahmad Zainie --- .../bindings/usb/intel,keembay-dwc3.yaml | 77 +++ 1 file changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/intel,keembay-dwc3.yaml diff --git

[PATCH 2/4] phy: intel: Add Keem Bay USB PHY support

2020-09-20 Thread Wan Ahmad Zainie
Add support for USB PHY on Intel Keem Bay SoC. Signed-off-by: Wan Ahmad Zainie --- drivers/phy/intel/Kconfig | 12 + drivers/phy/intel/Makefile| 1 + drivers/phy/intel/phy-intel-keembay-usb.c | 319 ++ 3 files changed, 332 insertions(+)

[PATCH 4/4] usb: dwc3: of-simple: Add compatible string for Intel Keem Bay platform

2020-09-20 Thread Wan Ahmad Zainie
Add compatible string to use this generic glue layer to support Intel Keem Bay platform's dwc3 controller. Signed-off-by: Wan Ahmad Zainie --- drivers/usb/dwc3/dwc3-of-simple.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/dwc3-of-simple.c

[PATCH 0/4] phy: intel: Add Keem Bay USB PHY support

2020-09-20 Thread Wan Ahmad Zainie
Hi. Intel Keem Bay USB subsystem incorporates DesignWare USB3.1 controller, an USB3.1 (Gen1/2) PHY and an USB2.0 PHY. It is a Dual Role Device (DRD), operating as either a USB host or a USB device. The patchset is tested on Keem Bay EVM. Thank you. Best regards, Zainie Wan Ahmad Zainie (4):

[PATCH 1/4] dt-bindings: phy: Add Intel Keem Bay USB PHY bindings

2020-09-20 Thread Wan Ahmad Zainie
Binding description for Intel Keem Bay USB PHY. Signed-off-by: Wan Ahmad Zainie --- .../bindings/phy/intel,phy-keembay-usb.yaml | 44 +++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/intel,phy-keembay-usb.yaml diff --git

Re: [PATCH -next v2] soc: ti: Convert to DEFINE_SHOW_ATTRIBUTE

2020-09-20 Thread santosh.shilim...@oracle.com
On 9/18/20 7:52 PM, Qinglang Miao wrote: Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Qinglang Miao --- v2: based on linux-next(20200917), and can be applied to mainline cleanly now. Applied. Thanks !! Regards, Santosh

linux-next: manual merge of the crypto tree with Linus' tree

2020-09-20 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the crypto tree got a conflict in: drivers/crypto/Kconfig between commit: bfe8fe939a04 ("crypto: sa2ul - add Kconfig selects to fix build error") from Linus' tree and commit: 61f033ba18c3 ("crypto: sa2ul - Select CRYPTO_AUTHENC") from the crypto

撤回: [PATCH] [v2] nvme: use correct upper limit for tag in nvme_handle_cqe()

2020-09-20 Thread Tianxianting
tianxianting (RD) 将撤回邮件“[PATCH] [v2] nvme: use correct upper limit for tag in nvme_handle_cqe()”。

RE: [PATCH] [v2] nvme: use correct upper limit for tag in nvme_handle_cqe()

2020-09-20 Thread Tianxianting
Hi Keith, I found an extreme case, in function blk_mq_alloc_map_and_requests(), it will adjust tagset depth by 'set->queue_depth >>= 1' if there is no enough memory for rqs. If this happens, the real available number of tags(nr_tags) is much smaller than nvmeq->q_depth. So the judgement "if

Re: PROBLEM: 5.9.0-rc6 fails to compile due to 'redefinition of ‘dax_supported’'

2020-09-20 Thread Stuart Little
An update on this: I've done a bisect, with the following result. --- cut here --- e2ec5128254518cae320d5dc631b71b94160f663 is the first bad commit commit e2ec5128254518cae320d5dc631b71b94160f663 Author: Jan Kara Date: Sun Sep 20 08:54:42 2020 -0700 dm: Call proper helper to determine

Re: [PATCH v7 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-09-20 Thread Hector Yuan
Hi, Rob sir: Sorry to bother you, may I have your review comment for the binding part? Appreciated. On Thu, 2020-09-10 at 12:31 +0800, Hector Yuan wrote: > From: "Hector.Yuan" > > Add devicetree bindings for MediaTek HW driver. > > Signed-off-by: Hector.Yuan > --- >

Re: [PATCH 14/18] drm/exynos: Consolidate IOMMU mapping code

2020-09-20 Thread Inki Dae
20. 8. 21. 오전 12:08에 Robin Murphy 이(가) 쓴 글: > Now that arch/arm is wired up for default domains and iommu-dma, we can > consolidate the shared mapping code onto the generic IOMMU API version, > and retire the arch-specific implementation. > > Signed-off-by: Robin Murphy > > --- > This is a

[PATCH] nvme: replace meaningless judgement by checking whether req is null

2020-09-20 Thread Xianting Tian
We met a crash issue when hot-insert a nvme device, blk_mq_tag_to_rq() returned null(req=null), then crash happened in nvme_end_request(): req = blk_mq_tag_to_rq(); struct nvme_request *rq = nvme_req(req); //rq = req + 1 rq->result = result; <==crash here!!! [

[PATCH] mm: remove unused alloc_page_vma_node()

2020-09-20 Thread Wei Yang
No one use this macro anymore. Also fix code style of policy_node(). Signed-off-by: Wei Yang --- include/linux/gfp.h | 2 -- mm/mempolicy.c | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/include/linux/gfp.h b/include/linux/gfp.h index 67a0774e080b..e83cc7f5a2fc

Re: [PATCH 03/14] dpaa2-eth: drop double zeroing

2020-09-20 Thread David Miller
From: Julia Lawall Date: Sun, 20 Sep 2020 13:26:15 +0200 > sg_init_table zeroes its first argument, so the allocation of that argument > doesn't have to. > > the semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x,n,flags; > @@ > > x

Re: [PATCH 07/14] RDS: drop double zeroing

2020-09-20 Thread David Miller
From: Julia Lawall Date: Sun, 20 Sep 2020 13:26:19 +0200 > sg_init_table zeroes its first argument, so the allocation of that argument > doesn't have to. > > the semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x,n,flags; > @@ > > x

[PATCH net-next] net: use in_softirq() to indicate the NAPI context in napi_consume_skb()

2020-09-20 Thread Yunsheng Lin
When napi_consume_skb() is called in the tx desc cleaning process, it is usually in the softirq context(BH disabled, or are processing softirqs), but it may also be in the task context, such as in the netpoll or loopback selftest process. Currently napi_consume_skb() uses non-zero budget to

[PATCH] fsl: imx-audmix : Use devm_kcalloc() instead of devm_kzalloc()

2020-09-20 Thread Xu Wang
A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "devm_kcalloc". Signed-off-by: Xu Wang --- sound/soc/fsl/imx-audmix.c | 8 1 file changed, 4 insertions(+), 4 deletions(-)

Re: [RFC v5 0/5] Add support length of each segment in the segcblist (breaks TREE04)

2020-09-20 Thread Joel Fernandes
On Sun, Sep 20, 2020 at 09:21:47PM -0400, Joel Fernandes (Google) wrote: > > NOTE: I marked as RFC since TREE 04 fails even though TREE03 passes. I don't > see any RCU errors in the counters, however when shutdown thread tries to > shutdown the system, it hangs when trying to shutdown the

Re: [PATCH] net: phy: realtek: Replace 2.5Gbps name from RTL8125 to RTL8226

2020-09-20 Thread David Miller
From: 劉偉權 Date: Mon, 21 Sep 2020 01:55:23 + > Hi Andrew, > Thanks...understood... This is a top-post. Andrew said to not top-post, and you said you understand this. If you understand it, please stop top-posting. Thank you.

[PATCH -next 4/5] mm/kmemleak-test: use %px instead of %p in print

2020-09-20 Thread Chen Jun
From: Wei Yongjun Real addresses are used for diagnose issues. Convert %p with %px to print kernel addresses. Signed-off-by: Wei Yongjun Signed-off-by: Chen Jun --- mm/kmemleak-test.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git

[PATCH -next 5/5] mm/kmemleak-test: Add a test case for alloc_percpu

2020-09-20 Thread Chen Jun
After insmod kmemleak-test.ko, a leaking for alloc_percpu will be reported as below: kmemleak: alloc_percpu(sizeof(*elem)) = 7dfdd26a2c40 : : unreferenced object 0x7dfdd26a2c40 (size 8): comm "insmod", pid 183, jiffies 4294905864 (age 40.520s)

[PATCH -next 0/5] mm/kmemleak:support for percpu memory leak detect

2020-09-20 Thread Chen Jun
Currently the reporting of the percpu chunks leaking problem are not supported. This patch set introduce this feature. PATCH 1-2 do some cleanup to current kmemleak. PATCH 3 make percpu memleak works. PATCH 4-5 add test case for percpu memleak detector. Following links are some real cases

[PATCH -next 2/5] mm/kmemleak: skip update_checksum for OBJECT_NO_SCAN objects

2020-09-20 Thread Chen Jun
From: Wei Yongjun Objects marked with OBJECT_NO_SCAN are never scanned. So there is no need to update checksum for them. Signed-off-by: Wei Yongjun Signed-off-by: Chen Jun --- mm/kmemleak.c | 4 1 file changed, 4 insertions(+) diff --git a/mm/kmemleak.c b/mm/kmemleak.c index

[PATCH -next 3/5] mm/kmemleak: Add support for percpu memory leak detect

2020-09-20 Thread Chen Jun
From: Wei Yongjun Currently the reporting of the percpu chunks leaking problem are not supported. This patch introduces this function. Since __percpu pointer is not pointing directly to the actual chunks, this patch creates an object for __percpu pointer, but marks it as no scan block, only

[PATCH -next 1/5] mm/kmemleak: make create_object return void

2020-09-20 Thread Chen Jun
From: Wei Yongjun No user cares about the return value of create_object, so make it return void. Signed-off-by: Wei Yongjun Signed-off-by: Chen Jun --- mm/kmemleak.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mm/kmemleak.c b/mm/kmemleak.c index

Re: [PATCH RFC 2/4] mm/page_alloc: place pages to tail in __putback_isolated_page()

2020-09-20 Thread Wei Yang
On Fri, Sep 18, 2020 at 09:27:23AM +0200, David Hildenbrand wrote: >On 18.09.20 04:07, Wei Yang wrote: >> On Wed, Sep 16, 2020 at 08:34:09PM +0200, David Hildenbrand wrote: >>> __putback_isolated_page() already documents that pages will be placed to >>> the tail of the freelist - this is, however,

RE: [PATCH] net: phy: realtek: Replace 2.5Gbps name from RTL8125 to RTL8226

2020-09-20 Thread 劉偉權
Hi Andrew, Thanks...understood... B.R. Willy Original Message- From: Andrew Lunn Sent: Friday, September 18, 2020 10:01 PM To: 劉偉權 Cc: hkallwe...@gmail.com; da...@davemloft.net; li...@armlinux.org.uk; k...@kernel.org; Ryan Kao ; net...@vger.kernel.org; linux-kernel@vger.kernel.org

RE: [PATCH V2 1/2] bindings: media: gpio-ir-receiver: add linux,autosuspend-period property

2020-09-20 Thread Joakim Zhang
> -Original Message- > From: Joakim Zhang > Sent: 2020年9月19日 2:17 > To: mche...@kernel.org; robh...@kernel.org; s...@mess.org > Cc: linux-me...@vger.kernel.org; devicet...@vger.kernel.org; > linux-kernel@vger.kernel.org; dl-linux-imx > Subject: [PATCH V2 1/2] bindings: media:

[RFC v5 1/5] rcu/tree: Make rcu_do_batch count how many callbacks were executed

2020-09-20 Thread Joel Fernandes (Google)
Currently, rcu_do_batch() depends on the unsegmented callback list's len field to know how many CBs are executed. This fields counts down from 0 as CBs are dequeued. It is possible that all CBs could not be run because of reaching limits in which case the remaining unexecuted callbacks are

[RFC v5 0/5] Add support length of each segment in the segcblist (breaks TREE04)

2020-09-20 Thread Joel Fernandes (Google)
NOTE: I marked as RFC since TREE 04 fails even though TREE03 passes. I don't see any RCU errors in the counters, however when shutdown thread tries to shutdown the system, it hangs when trying to shutdown the rcu_barrier thread. My suspicion is this is becaues I broke rcu_barrier() however I

[RFC v5 5/5] rcu/segcblist: Remove useless rcupdate.h include

2020-09-20 Thread Joel Fernandes (Google)
Signed-off-by: Joel Fernandes (Google) --- kernel/rcu/rcu_segcblist.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/rcu/rcu_segcblist.c b/kernel/rcu/rcu_segcblist.c index 72b284f965aa..13f8f181521d 100644 --- a/kernel/rcu/rcu_segcblist.c +++ b/kernel/rcu/rcu_segcblist.c @@ -10,7

[RFC v5 3/5] rcu: Fix rcu_barrier() breakage from earlier patch

2020-09-20 Thread Joel Fernandes (Google)
This patch is split up because I'm not sure about the patch, and also because it does not fix the issue I am seeing with TREE04. :-(. Though it does fix the theoretical issue I was considering, with rcu_barrier. The previous patch breaks rcu_barrier (in theory at least). This is because

[RFC v5 4/5] rcu/trace: Add tracing for how segcb list changes

2020-09-20 Thread Joel Fernandes (Google)
Track how the segcb list changes before/after acceleration, during queuing and during dequeuing. This has proved useful to discover an optimization to avoid unwanted GP requests when there are no callbacks accelerated. The overhead is minimal as each segment's length is now stored in the

[RFC v5 2/5] rcu/segcblist: Add counters to segcblist datastructure

2020-09-20 Thread Joel Fernandes (Google)
Add counting of segment lengths of segmented callback list. This will be useful for a number of things such as knowing how big the ready-to-execute segment have gotten. The immediate benefit is ability to trace how the callbacks in the segmented callback list change. Also this patch remove hacks

[PATCH v2 net-next] net: phy: realtek: enable ALDPS to save power for RTL8211F

2020-09-20 Thread Jisheng Zhang
Enable ALDPS(Advanced Link Down Power Saving) to save power when link down. Signed-off-by: Jisheng Zhang --- Since v1: - add what does ALDPS mean. - replace magic number 0x18 with RTL8211F_PHYCR1 macro. drivers/net/phy/realtek.c | 9 + 1 file changed, 9 insertions(+) diff --git

[PATCH -next] mtd: rawnand: remove redundant dev_err call in cadence_nand_dt_probe

2020-09-20 Thread Liu Shixin
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Liu Shixin --- drivers/mtd/nand/raw/cadence-nand-controller.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git

  1   2   3   4   5   >