Re: [PATCH] ALSA: pci/asihpi: Fix memory leak in snd_card_asihpi_capture_open()

2020-08-09 Thread Takashi Iwai
On Mon, 10 Aug 2020 08:39:55 +0200, Dinghao Liu wrote: > > When snd_pcm_hw_constraint_pow2() fails, dpcm should be freed > just like when hpi_instream_open() fails. It will be cleaned up via runtime->private_free call in the caller side (snd_pcm_open -> snd_pcm_release_substream -> snd_pcm_detac

Re: [v2,5/6] reset-controller: ti: Introduce force-update method

2020-08-09 Thread Crystal Guo
On Tue, 2020-08-04 at 15:03 +0800, Philipp Zabel wrote: > Hi Crystal, > > On Mon, 2020-08-03 at 14:15 +0800, Crystal Guo wrote: > > Introduce force-update method for assert and deassert interface, > > which force the write operation in case the read already happens > > to return the correct value.

Re: [PATCH] ALSA: echoaudio: Fix memory leak in snd_echo_resume()

2020-08-09 Thread Takashi Iwai
On Mon, 10 Aug 2020 08:14:58 +0200, Dinghao Liu wrote: > > When restore_dsp_rettings() fails, chip should be freed > just like when init_hw() and request_irq() fails. > > Fixes: 47b5d028fdce8 ("ALSA: Echoaudio - Add suspend support #2") > Signed-off-by: Dinghao Liu Actually it's rather wrong to

Re: Non-deterministically boot into dark screen with `amdgpu`

2020-08-09 Thread Alexander Monakov
Hi, you should Сс a specialized mailing list and a relevant maintainer, otherwise your email is likely to be ignored as LKML is an incredibly high-volume list. Adding amd-gfx and Alex Deucher. More thoughts below. On Sun, 9 Aug 2020, Ignat Insarov wrote: > Hello! > > This is an issue report. I

[PATCH] ALSA: pci/asihpi: Fix memory leak in snd_card_asihpi_capture_open()

2020-08-09 Thread Dinghao Liu
When snd_pcm_hw_constraint_pow2() fails, dpcm should be freed just like when hpi_instream_open() fails. Fixes: 719f82d3987aa ("ALSA: Add support of AudioScience ASI boards") Signed-off-by: Dinghao Liu --- sound/pci/asihpi/asihpi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -

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

2020-08-09 Thread Stephen Rothwell
Hi Christoph, On Mon, 10 Aug 2020 08:11:06 +0200 Christoph Hellwig wrote: > > please drop my set_fs tree from linux-next. It is not going to be > merged for 5.9 in this form. OK, done from tomorrow. -- Cheers, Stephen Rothwell pgpxA4T6L9eP2.pgp Description: OpenPGP digital signature

RE: [PATCH v4 3/4] fpga: dfl: create a dfl bus type to support DFL devices

2020-08-09 Thread Wu, Hao
> > A new bus type "dfl" is introduced for private features which are not > initialized by DFL feature drivers (dfl-fme & dfl-afu drivers). So these > private features could be handled by separate driver modules. > > DFL feature drivers (dfl-fme, dfl-port) will create DFL devices on > enumeration

[PATCH] mempolicy.h: fix typo

2020-08-09 Thread yanfei.xu
From: Yanfei Xu Change "interlave" to "interleave". Signed-off-by: Yanfei Xu --- include/linux/mempolicy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index ea9c15b60a96..4dc41428b095 100644 --- a/include/linux/mempo

[PATCH] docs/vm: fix 'mm_count' vs 'mm_users' counter confusion

2020-08-09 Thread Alexander Gordeev
In the context of the anonymous address space lifespan description the 'mm_users' reference counter is confused with 'mm_count'. I.e a "zombie" mm gets released when "mm_count" becomes zero, not "mm_users". Cc: Jonathan Corbet Cc: Andrew Morton Signed-off-by: Alexander Gordeev --- Documentatio

[PATCH v2 2/3] perf bench numa: fix number of processes in "2x3-convergence" test

2020-08-09 Thread Alexander Gordeev
Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rutland Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Alexander Gordeev --- tools/perf/bench/numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/bench/numa.c b/

[PATCH v2 0/3] perf bench numa: make possible testing on uneven and/or overlapping CPU ranges

2020-08-09 Thread Alexander Gordeev
This series allows running the tool on some configurations that do not conform to an assumption each node contains nr_cpus/nr_nodes CPUs at most. Instead, the actual node-to- CPU mapping is acquired dynamically. patch 1 fixes the described issue patches 2,3 are follow-up fixes Changes since v1:

[PATCH v2 1/3] perf bench numa: use numa_node_to_cpus() to bind tasks to nodes

2020-08-09 Thread Alexander Gordeev
It is currently assumed that each node contains at most nr_cpus/nr_nodes CPUs and node CPU ranges do not overlap. That assumption is generally incorrect as there are archs where a CPU number does not depend on to its node number. This update removes the described assumption by simply calling numa_

[PATCH v2 3/3] perf bench numa: fix benchmark names

2020-08-09 Thread Alexander Gordeev
Standard benchmark names let users know the tests specifics. For example "2x1-bw-process" name tells that two processes one thread each are run and the RAM bandwidth is measured. Several benchmarks names do not correspond to their actual running configuration. Fix that and also some whitespace and

RE: arm64: imx8qm: tlb SW workaround for IMX8QM

2020-08-09 Thread Jason Liu
> -Original Message- > From: Oliver Graute > Sent: Monday, August 10, 2020 2:13 PM > To: Jason Liu > Cc: Anson Huang ; Aisheng Dong > ; catalin.mari...@arm.com; w...@kernel.org; > dl-linux-imx ; linux-kernel@vger.kernel.org > Subject: Re: arm64: imx8qm: tlb SW workaround for IMX8QM >

RE: [PATCH 1/2] exfat: add dir-entry set checksum validation

2020-08-09 Thread Namjae Jeon
> Add checksum validation for dir-entry set when getting it. > exfat_calc_dir_chksum_with_entry_set() also validates entry-type. > > ** This patch depends on: > '[PATCH v3] exfat: integrates dir-entry getting and validation' > > Signed-off-by: Tetsuhiro Kohada > --- > fs/exfat/dir.c | 34

[PATCH] ALSA: echoaudio: Fix memory leak in snd_echo_resume()

2020-08-09 Thread Dinghao Liu
When restore_dsp_rettings() fails, chip should be freed just like when init_hw() and request_irq() fails. Fixes: 47b5d028fdce8 ("ALSA: Echoaudio - Add suspend support #2") Signed-off-by: Dinghao Liu --- sound/pci/echoaudio/echoaudio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci

Re: [PATCH v2] sched/fair: ignore cache hotness for SMT migration

2020-08-09 Thread Srikar Dronamraju
* Josh Don [2020-08-04 12:34:13]: > SMT siblings share caches, so cache hotness should be irrelevant for > cross-sibling migration. > > Proposed-by: Venkatesh Pallipadi > Signed-off-by: Josh Don > --- > kernel/sched/fair.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/kernel/s

RE: [PATCH 1/2] exfat: add NameLength check when extracting name

2020-08-09 Thread Namjae Jeon
> The current implementation doesn't care NameLength when extracting the name > from Name dir-entries, so > the name may be incorrect. > (Without null-termination, Insufficient Name dir-entry, etc) Add a NameLength > check when extracting > the name from Name dir-entries to extract correct name.

Re: arm64: imx8qm: tlb SW workaround for IMX8QM

2020-08-09 Thread Oliver Graute
On 27/04/20, Oliver Graute wrote: > On 27/04/20, Oliver Graute wrote: > > Hello, > > > > is this nxp software workaround already proposed to linux community? can > > someone point me to the discussion if available. > > > > https://source.codeaurora.org/external/imx/linux-imx/commit/?h=3Dimx_5.4.3

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

2020-08-09 Thread Christoph Hellwig
Hi Stephen, please drop my set_fs tree from linux-next. It is not going to be merged for 5.9 in this form. Thanks!

Re: [PATCH v6 08/18] nitro_enclaves: Add logic for creating an enclave VM

2020-08-09 Thread Alexander Graf
On 05.08.20 11:10, Andra Paraschiv wrote: Add ioctl command logic for enclave VM creation. It triggers a slot allocation. The enclave resources will be associated with this slot and it will be used as an identifier for triggering enclave run. Return a file descriptor, namely enclave fd. This

RE: [PATCH v3] exfat: integrates dir-entry getting and validation

2020-08-09 Thread Namjae Jeon
> > +#define TYPE_PRIMARY (TYPE_CRITICAL_PRI | TYPE_BENIGN_PRI) > +#define TYPE_SECONDARY (TYPE_CRITICAL_SEC | TYPE_BENIGN_SEC) > + > #define MAX_CHARSET_SIZE 6 /* max size of multi-byte character */ > #define MAX_NAME_LENGTH 255 /* max len of file name exc

Announce loop-AES-v3.7r file/swap crypto package

2020-08-09 Thread Jari Ruusu
loop-AES changes since previous release: - Worked around kernel interface changes on 5.8 kernels bzip2 compressed tarball is here: http://loop-aes.sourceforge.net/loop-AES/loop-AES-v3.7r.tar.bz2 md5sum e264e305c829d002a7a94376789f4adc http://loop-aes.sourceforge.net/loop-AES/loop-AES

Re: [PATCH v11 5/5] kdump: update Documentation about crashkernel

2020-08-09 Thread Dave Young
Hi, > > Previously I remember we talked about to use similar logic as X86, but I > > remember you mentioned on some arm64 platform there could be no low > > memory at all. Is this not a problem now for the fallback? Just be > > curious, thanks for the update, for the common part looks good. > Hi

Re: [PATCH v11 5/5] kdump: update Documentation about crashkernel

2020-08-09 Thread Dave Young
On 08/10/20 at 11:28am, chenzhou wrote: > On 2020/8/8 18:02, Dave Young wrote: > > On 08/01/20 at 09:08pm, Chen Zhou wrote: > >> Now the behavior of crashkernel=X has been changed, which tries low > >> allocation in ZONE_DMA, and fall back to high allocation if it fails. > >> > >> If requized size

RE: [PATCH v4 2/4] fpga: dfl: map feature mmio resources in their own feature drivers

2020-08-09 Thread Wu, Hao
> -Original Message- > From: linux-fpga-ow...@vger.kernel.org > On Behalf Of Xu Yilun > Sent: Monday, August 10, 2020 10:41 AM > To: m...@kernel.org; linux-f...@vger.kernel.org; linux- > ker...@vger.kernel.org > Cc: t...@redhat.com; lgonc...@redhat.com; Xu, Yilun ; > Wu, Hao ; Matthew Gerl

Re: [PATCH 1/2] arm: dts: mt7623: move more display-related nodes to mt7623n.dtsi

2020-08-09 Thread Frank Wunderlich
Am 10. August 2020 02:06:27 MESZ schrieb Chun-Kuang Hu : >Alphabetical order is better. In dts there is alphabetical order but not yet in dtsi...i try to fix this. >> Is the tmds Patch ok? (because review missing) >https://patchwork.kernel.org/patch/11700679/ > >That patch looks really like a

[PATCH v2] iio: documentation: light: Add as73211 sysfs documentation

2020-08-09 Thread Christian Eggers
The driver for the as73211 light sensor provides the following not yet documented sysfs entries: - in_intensity_(x|y|z)_raw - in_intensity_(x|y|z)_scale - in_intensity_sampling_frequency(_available) - in_intensity_hardwaregain(_available) - in_intensity_integration_time Signed-off-by: Christian Eg

Re: [PATCH v6 07/18] nitro_enclaves: Init misc device providing the ioctl interface

2020-08-09 Thread Alexander Graf
On 05.08.20 11:10, Andra Paraschiv wrote: The Nitro Enclaves driver provides an ioctl interface to the user space for enclave lifetime management e.g. enclave creation / termination and setting enclave resources such as memory and CPU. This ioctl interface is mapped to a Nitro Enclaves misc d

Re: [PATCH] tty/vt: fix a memory leak in con_insert_unipair

2020-08-09 Thread Jiri Slaby
On 10. 08. 20, 0:14, James Bond wrote: > Syzkaller find a memory leak in con_insert_unipair: > BUG: memory leak > unreferenced object 0x88804893d100 (size 256): > comm "syz-executor.3", pid 16154, jiffies 4295043307 (age 2392.340s) > hex dump (first 32 bytes): > 80 af 88 4e

Re: [PATCH] regulator: simplify locking

2020-08-09 Thread Dmitry Osipenko
10.08.2020 03:59, Michał Mirosław пишет: > On Mon, Aug 10, 2020 at 03:21:47AM +0300, Dmitry Osipenko wrote: >> 10.08.2020 01:30, Michał Mirosław пишет: >>> On Mon, Aug 10, 2020 at 12:40:04AM +0300, Dmitry Osipenko wrote: 10.08.2020 00:16, Michał Mirosław пишет: > Simplify regulator locking

Re: [kbuild-all] Re: drivers/md/dm-mpath.c:524 multipath_clone_and_map() error: double unlocked 'm->lock' (orig line 516)

2020-08-09 Thread Rong Chen
On 8/8/20 10:35 PM, Mike Snitzer wrote: On Sat, Aug 08 2020 at 8:10am -0400, kernel test robot wrote: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 449dc8c97089a6e09fb2dac4d92b1b7ac0eb7c1e commit: 374117ad4736c5a4f8012cfe59fc07d9d58191d5 dm mpat

[Linux-kernel-mentees] [PATCH] v4l2-tpg: Fix global-out-of-bounds read in precalculate_color()

2020-08-09 Thread Peilin Ye
precalculate_color() is reading out of `sin` since `tpg->hue` is not being properly checked. Fix it. `cos` is safe, as long as `tpg->hue` is higher than or equal to -192. Fixes: 63881df94d3e ("[media] vivid: add the Test Pattern Generator") Reported-and-tested-by: syzbot+02d9172bf4c43104c...@syzka

[PATCH] ARM: dts: am33xx: add ocp label

2020-08-09 Thread Drew Fustini
Add label to the ocp node in the AM33xx SoC include so that it can be referenced in board-level files like am335x-pocketbeagle.dts Signed-off-by: Drew Fustini --- arch/arm/boot/dts/am33xx.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/ar

[PATCH] clk: rockchip: Fix initialization of mux_pll_src_4plls_p

2020-08-09 Thread Nathan Chancellor
A new warning in Clang points out that the initialization of mux_pll_src_4plls_p appears incorrect: ../drivers/clk/rockchip/clk-rk3228.c:140:58: warning: suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma? [-Wstring-concatenat

Re: [PATCH v3 4/7] x86/paravirt: remove 32-bit support from PARAVIRT_XXL

2020-08-09 Thread Jürgen Groß
On 09.08.20 04:34, Boris Ostrovsky wrote: On 8/7/20 4:38 AM, Juergen Gross wrote: @@ -377,10 +373,7 @@ static inline pte_t __pte(pteval_t val) { pteval_t ret; - if (sizeof(pteval_t) > sizeof(long)) - ret = PVOP_CALLEE2(pteval_t, mmu.make_pte, val, (u64)val >> 32); -

Re: [PATCH v3 2/7] x86/xen: eliminate xen-asm_64.S

2020-08-09 Thread Jürgen Groß
On 09.08.20 04:04, Boris Ostrovsky wrote: On 8/7/20 4:38 AM, Juergen Gross wrote: With 32-bit pv-guest support removed xen-asm_64.S can be merged with xen-asm.S Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky except for diff --git a/arch/x86/xen/xen-asm.S b/arch/x86/xen/xen-

Re: [PATCH v3 3/7] x86/xen: drop tests for highmem in pv code

2020-08-09 Thread Jürgen Groß
On 09.08.20 04:22, Boris Ostrovsky wrote: On 8/7/20 4:38 AM, Juergen Gross wrote: With support for 32-bit pv guests gone pure pv-code no longer needs to test for highmem. Dropping those tests removes the need for flushing in some places. Signed-off-by: Juergen Gross Reviewed-by: Boris Ostro

Re: [PATCH v3 1/7] x86/xen: remove 32-bit Xen PV guest support

2020-08-09 Thread Jürgen Groß
On 09.08.20 04:01, Boris Ostrovsky wrote: On 8/7/20 4:38 AM, Juergen Gross wrote: void __init xen_reserve_top(void) { -#ifdef CONFIG_X86_32 - unsigned long top = HYPERVISOR_VIRT_START; - struct xen_platform_parameters pp; - - if (HYPERVISOR_xen_version(XENVER_platform_pa

[PATCH 3/3] regulator: unexport regulator_lock/unlock()

2020-08-09 Thread Michał Mirosław
regulator_lock/unlock() was used only to guard regulator_notifier_call_chain(). As no users remain, make the functions internal. Signed-off-by: Michał Mirosław --- drivers/regulator/core.c | 6 ++ include/linux/regulator/driver.h | 3 --- 2 files changed, 2 insertions(+), 7 deletions

[PATCH 1/3] regulator: don't require mutex for regulator_notifier_call_chain()

2020-08-09 Thread Michał Mirosław
Since 3801b86aa482 ("regulator: Refactor supply implementation to work as regular consumers") we no longer cascade notifications and so notifier head's built-in rwsem is enough to protect the notifier chain. Remove the requirement to fix one case where rdev->mutex might be forced to be taken recurs

[PATCH 2/3] regulator: remove locking around regulator_notifier_call_chain()

2020-08-09 Thread Michał Mirosław
regulator_notifier_call_chain() doesn't need rdev lock and rdev's existence is assumed in the code anyway. Remove the locks from drivers. Signed-off-by: Michał Mirosław --- drivers/regulator/da9055-regulator.c | 2 -- drivers/regulator/da9062-regulator.c | 2 -- drivers/regulator/da9063-re

[PATCH 0/3] regulator: unexport regulator_lock/unlock()

2020-08-09 Thread Michał Mirosław
This removes regulator_lock/unlock() calls around regulator_notifier_call_chain() as they are redundant - drivers already have to guarantee regulator_dev's existence during the call. This should make reasoing about the lock easier, as this was the only use outside regulator core code. The only cl

linux-next: Tree for Aug 10

2020-08-09 Thread Stephen Rothwell
Hi all, News: The merge window has opened, so please do not add any v5.10 related material to your linux-next included branches until after the merge window closes again. Changes since 20200807: My fixes tree contains: 73c7adb54169 ("device_cgroup: Fix RCU list debugging warning") Non-merge

[RFT PATCH v5] serial: samsung: Removes the IRQ not found warning

2020-08-09 Thread Tamseel Shams
In few older Samsung SoCs like s3c2410, s3c2412 and s3c2440, UART IP is having 2 interrupt lines. However, in other SoCs like s3c6400, s5pv210, exynos5433, and exynos4210 UART is having only 1 interrupt line. Due to this, "platform_get_irq(platdev, 1)" call in the driver gives the following false-p

[PATCH] tools/objtool: Fix unnecessary jumps

2020-08-09 Thread Youling Tang
There is no need to jump to the "out" tag when "ret < 0", just return directly to "ret". Signed-off-by: Youling Tang --- tools/objtool/check.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index e034a8f..94b166d

drivers/video/fbdev/grvga.c:151:26: sparse: sparse: incorrect type in argument 2 (different address spaces)

2020-08-09 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fc80c51fd4b23ec007e88d4c688f2cac1b8648e7 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 7 weeks ago config: sparc-randconfig-s032-20200810 (attached

Re: [PATCH v3 5/8] mm: HUGE_VMAP arch support cleanup

2020-08-09 Thread kernel test robot
Hi Nicholas, I love your patch! Yet something to improve: [auto build test ERROR on hnaz-linux-mm/master] [also build test ERROR on arm64/for-next/core powerpc/next tip/x86/mm linus/master v5.8 next-20200807] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submit

Re: [PATCH] ionic_lif: Use devm_kcalloc() in ionic_qcq_alloc()

2020-08-09 Thread Shannon Nelson
On 8/9/20 7:38 PM, Xu Wang wrote: 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 Acked-by: Shannon Nelson --- drivers/net/ethernet/pe

Re: [PATCH] ionic_lif: Use devm_kcalloc() in ionic_qcq_alloc()

2020-08-09 Thread Joe Perches
On Sun, 2020-08-09 at 20:50 -0700, Shannon Nelson wrote: > On 8/9/20 8:20 PM, Joe Perches wrote: > > On Mon, 2020-08-10 at 02:38 +, Xu Wang wrote: > > > A multiplication for the size determination of a memory allocation > > > indicated that an array data structure should be processed. > > > Thu

Re: [PATCH] ionic_lif: Use devm_kcalloc() in ionic_qcq_alloc()

2020-08-09 Thread Shannon Nelson
On 8/9/20 8:20 PM, Joe Perches wrote: On Mon, 2020-08-10 at 02:38 +, Xu Wang wrote: 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". [] diff --git a/drivers/net

Re: [PATCH v5 2/2] soc: mediatek: add mt6779 devapc driver

2020-08-09 Thread Neal Liu
Hi Chun-Kuang, On Fri, 2020-08-07 at 23:52 +0800, Chun-Kuang Hu wrote: > Hi, Neal: > > Neal Liu 於 2020年8月7日 週五 上午10:34寫道: > > > > MediaTek bus fabric provides TrustZone security support and data > > protection to prevent slaves from being accessed by unexpected > > masters. > > The security viol

Re: [PATCH] erofs: Convert to use the fallthrough macro

2020-08-09 Thread Chao Yu
On 2020/8/8 17:21, linmiaohe wrote: From: Miaohe Lin Convert the uses of fallthrough comments to fallthrough macro. Signed-off-by: Hongxiang Lou Signed-off-by: Miaohe Lin Reviewed-by: Chao Yu Thanks,

[PATCH] iio/dac: convert ltc2632.txt to lltc,ltc2632.yaml

2020-08-09 Thread Chris Ruehl
Conversion of the ltc2632 to yaml format and name the file to 'lltc,ltc2632.yaml'. Signed-off-by: Chris Ruehl --- v6: Remove tab and drop unused label Related patches already in linux-next. [PATCH v5 1/3] iio: documentation ltc2632_chip_info add num_channels linux-next commit: 6f1c9e0da9aae511774

Re: [PATCH v11 5/5] kdump: update Documentation about crashkernel

2020-08-09 Thread chenzhou
On 2020/8/8 18:02, Dave Young wrote: > On 08/01/20 at 09:08pm, Chen Zhou wrote: >> Now the behavior of crashkernel=X has been changed, which tries low >> allocation in ZONE_DMA, and fall back to high allocation if it fails. >> >> If requized size X is too large and leads to very little free memory

Re: Very slow qemu device access

2020-08-09 Thread Matthew Wilcox
On Mon, Aug 10, 2020 at 11:10:49AM +0800, Ming Lei wrote: > On Sun, Aug 09, 2020 at 03:25:22PM +0100, Matthew Wilcox wrote: > > On Sun, Aug 09, 2020 at 10:40:05AM +0800, Ming Lei wrote: > > > Hello Matthew, > > > > > > On Fri, Aug 07, 2020 at 06:44:16PM +0100, Matthew Wilcox wrote: > > > > > > >

Re: [PATCH] ionic_lif: Use devm_kcalloc() in ionic_qcq_alloc()

2020-08-09 Thread Joe Perches
On Mon, 2020-08-10 at 02:38 +, Xu Wang wrote: > 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". [] > diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.

[PATCH v2 0/2] Add mediatek codec mt6359 driver

2020-08-09 Thread Jiaxin Yu
Add mediatek codec (MT6359) driver MT6359 support playback and capture feature. On downlink path, it includes three DACs for handset, headset, and lineout path. On unlink path, it includeds three ADCs for main mic, second mic, 3rd mic, and headset mic. By scenario, select *_MUX widget to create

[PATCH v2 2/2] dt-bindings: mediatek: mt6359: add codec document

2020-08-09 Thread Jiaxin Yu
This patch adds MediaTek MT6359 codec document. Signed-off-by: Jiaxin Yu --- .../devicetree/bindings/sound/mt6359.yaml | 68 ++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/mt6359.yaml diff --git a/Documentation/device

Re: Very slow qemu device access

2020-08-09 Thread Ming Lei
On Sun, Aug 09, 2020 at 03:25:22PM +0100, Matthew Wilcox wrote: > On Sun, Aug 09, 2020 at 10:40:05AM +0800, Ming Lei wrote: > > Hello Matthew, > > > > On Fri, Aug 07, 2020 at 06:44:16PM +0100, Matthew Wilcox wrote: > > > > > > Everything starts going very slowly after this commit: > > > > > > co

Re: [PATCH net] net: qcom/emac: Fix missing clk_disable_unprepare() in error path of emac_probe

2020-08-09 Thread wanghai (M)
在 2020/8/7 21:38, Timur Tabi 写道: On 8/6/20 8:54 PM, wanghai (M) wrote: Thanks for your suggestion. May I fix it like this? Yes, this is what I had in mind.  Thanks. Acked-by: Timur Tabi . Thanks for your ack. I just sent a new patch. "[PATCH net] net: qcom/emac: add missed clk_disable_

Re: [PATCH v5 3/3] iio/dac: convert ltc2632.txt to lltc,ltc2632.yaml

2020-08-09 Thread Chris Ruehl
Rob, On 30/4/2020 11:24 pm, Rob Herring wrote: On Mon, Apr 20, 2020 at 12:26:08PM +0800, Chris Ruehl wrote: Conversion of the ltc2632 to yaml format and name the file 'lltc,ltc2632.yaml'. Signed-off-by: Chris Ruehl --- v5: correct require section set maintainer of analog.com v4..v2: no change

[PATCH net] net: qcom/emac: add missed clk_disable_unprepare in error path of emac_clks_phase1_init

2020-08-09 Thread Wang Hai
Fix the missing clk_disable_unprepare() before return from emac_clks_phase1_init() in the error handling case. Fixes: b9b17debc69d ("net: emac: emac gigabit ethernet controller driver") Reported-by: Hulk Robot Signed-off-by: Wang Hai Acked-by: Timur Tabi --- drivers/net/ethernet/qualcomm/emac/

[PATCH v4 4/4] fpga: dfl: add support for N3000 Nios private feature

2020-08-09 Thread Xu Yilun
This patch adds support for the Nios handshake private feature on Intel N3000 FPGA Card. The terminology "Nios" stands for the NIOS II - 32 bit embedded soft processor designed for FPGAs. This private feature provides a handshake interface to FPGA Nois firmware, which receives retimer configuratio

Re: [kbuild-all] Re: drivers/video/fbdev/pxafb.c:916:24: sparse: sparse: incorrect type in assignment (different address spaces)

2020-08-09 Thread Rong Chen
On 8/7/20 7:53 PM, Luc Van Oostenryck wrote: On Fri, Aug 07, 2020 at 06:37:36PM +0800, kernel test robot wrote: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 86cfccb66937dd6cbf26ed619958b9e587e6a115 commit: 670d0a4b10704667765f7d18f7592993d02783aa

arch/x86/platform/efi/efi_64.c:857:18: sparse: sparse: context imbalance in 'efi_thunk_set_variable_nonblocking' - wrong count at exit

2020-08-09 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fc80c51fd4b23ec007e88d4c688f2cac1b8648e7 commit: ea5e1919b44f09fce72d919fbb87f9611fc700a6 efi/x86: Simplify mixed mode call wrapper date: 7 months ago config: x86_64-randconfig-s031-20200810 (attached as .

[PATCH] rpc_pipefs: convert comma to semicolon

2020-08-09 Thread Xu Wang
Replace a comma between expression statements by a semicolon. Signed-off-by: Xu Wang --- fs/nfs/blocklayout/rpc_pipefs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/blocklayout/rpc_pipefs.c b/fs/nfs/blocklayout/rpc_pipefs.c index 9fb067a6f7e0..ef9db135c649 100644 -

[PATCH] Doc: admin-guide: use correct legends in kernel-parameters.txt

2020-08-09 Thread Randy Dunlap
Documentation/admin-guide/kernel-parameters.rst includes a legend telling us what configurations or hardware platforms are relevant for certain boot options. For X86, it is spelled "X86" and for x86_64, it is spelled "X86-64", so make corrections for those. Signed-off-by: Randy Dunlap Cc: Jonath

[PATCH v4 3/4] fpga: dfl: create a dfl bus type to support DFL devices

2020-08-09 Thread Xu Yilun
A new bus type "dfl" is introduced for private features which are not initialized by DFL feature drivers (dfl-fme & dfl-afu drivers). So these private features could be handled by separate driver modules. DFL feature drivers (dfl-fme, dfl-port) will create DFL devices on enumeration. DFL drivers c

[PATCH v4 0/4] Modularization of DFL private feature drivers

2020-08-09 Thread Xu Yilun
This patchset makes it possible to develop independent driver modules for DFL private features. It also helps to leverage existing kernel drivers to enable some IP blocks in DFL. Patch #1: An improvement of feature id definition. The feature id will be used as the key field for dfl devic

[PATCH v4 2/4] fpga: dfl: map feature mmio resources in their own feature drivers

2020-08-09 Thread Xu Yilun
This patch makes preparation for modularization of DFL sub feature drivers. Currently, if we need to support a new DFL sub feature, an entry should be added to fme/port_feature_drvs[] in dfl-fme/port-main.c. And we need to re-compile the whole DFL modules. That make the DFL drivers hard to be exte

[PATCH v4 1/4] fpga: dfl: change data type of feature id to u16

2020-08-09 Thread Xu Yilun
The feature id is stored in a 12 bit field in DFH. So a u16 variable is enough for feature id. This patch changes all feature id related places to fit u16. Signed-off-by: Xu Yilun Reviewed-by: Tom Rix Acked-by: Wu Hao --- v3: no change. v4: no change. --- drivers/fpga/dfl-fme-perf.c | 2 +-

[PATCH] ionic_lif: Use devm_kcalloc() in ionic_qcq_alloc()

2020-08-09 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 --- drivers/net/ethernet/pensando/ionic/ionic_lif.c | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH] genirq/proc: Show percpu irq affinity

2020-08-09 Thread Yunfeng Ye
When the "affinity=" cmdline parameter is configured, the interrupt affinity displayed in the proc directory does not match with that of the the percu interrupt, and the percu interrupt uses desc->percu_affinity. So show desc->percu_affinity in show_irq_affinity() for percpu interrupt. Signed-off

[PATCH v3 5/8] mm: HUGE_VMAP arch support cleanup

2020-08-09 Thread Nicholas Piggin
This changes the awkward approach where architectures provide init functions to determine which levels they can provide large mappings for, to one where the arch is queried for each call. This removes code and indirection, and allows constant-folding of dead code for unsupported levels. This also

[PATCH v3 7/8] mm/vmalloc: add vmap_range_noflush variant

2020-08-09 Thread Nicholas Piggin
As a side-effect, the order of flush_cache_vmap() and arch_sync_kernel_mappings() calls are switched, but that now matches the other callers in this file. Signed-off-by: Nicholas Piggin --- mm/vmalloc.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/mm/vma

[PATCH v3 6/8] mm: Move vmap_range from lib/ioremap.c to mm/vmalloc.c

2020-08-09 Thread Nicholas Piggin
This is a generic kernel virtual memory mapper, not specific to ioremap. Signed-off-by: Nicholas Piggin --- include/linux/vmalloc.h | 2 + mm/ioremap.c| 192 mm/vmalloc.c| 191 +++ 3 files chan

[PATCH v3 1/8] mm/vmalloc: fix vmalloc_to_page for huge vmap mappings

2020-08-09 Thread Nicholas Piggin
vmalloc_to_page returns NULL for addresses mapped by larger pages[*]. Whether or not a vmap is huge depends on the architecture details, alignments, boot options, etc., which the caller can not be expected to know. Therefore HUGE_VMAP is a regression for vmalloc_to_page. This change teaches vmallo

[PATCH v3 4/8] lib/ioremap: rename ioremap_*_range to vmap_*_range

2020-08-09 Thread Nicholas Piggin
This will be moved to mm/ and used as a generic kernel virtual mapping function, so re-name it in preparation. Signed-off-by: Nicholas Piggin --- mm/ioremap.c | 55 ++-- 1 file changed, 23 insertions(+), 32 deletions(-) diff --git a/mm/ioremap.c b

[PATCH v3 8/8] mm/vmalloc: Hugepage vmalloc mappings

2020-08-09 Thread Nicholas Piggin
On platforms that define HAVE_ARCH_HUGE_VMAP and support PMD vmaps, vmalloc will attempt to allocate PMD-sized pages first, before falling back to small pages. Allocations which use something other than PAGE_KERNEL protections are not permitted to use huge pages yet, not all callers expect this (e

[PATCH v3 3/8] mm/vmalloc: rename vmap_*_range vmap_pages_*_range

2020-08-09 Thread Nicholas Piggin
The vmalloc mapper operates on a struct page * array rather than a linear physical address, re-name it to make this distinction clear. Signed-off-by: Nicholas Piggin --- mm/vmalloc.c | 28 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/mm/vmalloc.c b

[PATCH v3 2/8] mm: apply_to_pte_range warn and fail if a large pte is encountered

2020-08-09 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- mm/memory.c | 60 +++-- 1 file changed, 44 insertions(+), 16 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index c39a13b09602..1d5f3093c249 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -2260,13 +2260,20 @@

[PATCH v3 0/8] huge vmalloc mappings

2020-08-09 Thread Nicholas Piggin
Not tested on x86 or arm64, would appreciate a quick test there so I can ask Andrew to put it in -mm. Other option is I can disable huge vmallocs for them for the time being. Since v2: - Rebased on vmalloc cleanups, split series into simpler pieces. - Fixed several compile errors and warnings - Ke

Re: [kbuild-all] Re: drivers/virtio/virtio_mem.c:1031 virtio_mem_mb_plug_any_sb() error: uninitialized symbol 'rc'.

2020-08-09 Thread Rong Chen
On 8/8/20 8:44 PM, David Hildenbrand wrote: Am 08.08.2020 um 13:39 schrieb kernel test robot : tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 449dc8c97089a6e09fb2dac4d92b1b7ac0eb7c1e commit: 5f1f79bbc9e26fa9412fa9522f957bb8f030c442 virtio-mem: Pa

[PATCH] mballoc: Replace seq_printf with seq_puts

2020-08-09 Thread Xu Wang
seq_puts is a lot cheaper than seq_printf, so use that to print literal strings. Signed-off-by: Xu Wang --- fs/ext4/mballoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index c0a331e2feb0..77288e549a95 100644 --- a/fs/ext4/mballoc.c

Re: [PATCH 10/10] mm/hugetlb: not necessary to abuse temporary page to workaround the nasty free_huge_page

2020-08-09 Thread Baoquan He
On 08/07/20 at 05:12pm, Wei Yang wrote: > Let's always increase surplus_huge_pages and so that free_huge_page > could decrease it at free time. > > Signed-off-by: Wei Yang > --- > mm/hugetlb.c | 14 ++ > 1 file changed, 6 insertions(+), 8 deletions(-) > > diff --git a/mm/hugetlb.c b

[PATCH] ROMFS: support inode blocks calculation

2020-08-09 Thread Libing Zhou
When use 'stat' tool to display file status, the 'Blocks' field always in '0', this is not good for tool 'du'(e.g.: busybox 'du'), it always output '0' size for the files under ROMFS since such tool calculates number of 512B Blocks. This patch calculates approx. number of 512B blocks based on inod

microblaze-linux-ld: drivers/net/usb/cdc_ncm.o:undefined reference to `usbnet_cdc_update_filter'

2020-08-09 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fc80c51fd4b23ec007e88d4c688f2cac1b8648e7 commit: e10dcb1b6ba714243ad5a35a11b91cc14103a9a9 net: cdc_ncm: hook into set_rx_mode to admit multicast traffic date: 3 weeks ago config: microblaze-randconfig-r025

[PATCH] yurex: remove needless check before usb_free_coherent()

2020-08-09 Thread Xu Wang
usb_free_coherent() is safe with NULL addr and this check is not required. Signed-off-by: Xu Wang --- drivers/usb/misc/yurex.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/usb/misc/yurex.c b/drivers/usb/misc/yurex.c index 6e7d34e7fec4..2063ef071393 100644 ---

Re: [PATCH v1 2/2] perf/core: Fake regs for leaked kernel samples

2020-08-09 Thread Jin, Yao
Hi Peter, On 8/7/2020 5:02 PM, pet...@infradead.org wrote: On Fri, Aug 07, 2020 at 02:24:30PM +0800, Jin, Yao wrote: Hi Peter, On 8/6/2020 7:00 PM, pet...@infradead.org wrote: On Thu, Aug 06, 2020 at 11:18:27AM +0200, pet...@infradead.org wrote: Suppose we have nested virt: L0-hv

Re: [PATCH] powerpc/legacy_serial: Use early_ioremap()

2020-08-09 Thread Chris Packham
On 24/03/20 10:54 am, Chris Packham wrote: > Hi Christophe, > > On Wed, 2020-02-05 at 12:03 +, Christophe Leroy wrote: >> [0.00] ioremap() called early from >> find_legacy_serial_ports+0x3cc/0x474. Use early_ioremap() instead >> > I was just about to dig into this error message and fou

[PATCH] regulator: sy8827n: Fix W=1 build warning when CONFIG_OF=n

2020-08-09 Thread Jisheng Zhang
Fixing W=1 build warning when no support for device tree is there. Reported-by: kernel test robot Signed-off-by: Jisheng Zhang --- drivers/regulator/sy8827n.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/regulator/sy8827n.c b/drivers/regulator/sy8827n.c index b207217f74d8..52e8

[PATCH] net/nfc/rawsock.c: add CAP_NET_RAW check.

2020-08-09 Thread Qingyu Li
When creating a raw AF_NFC socket, CAP_NET_RAW needs to be checked first. Signed-off-by: Qingyu Li --- net/nfc/rawsock.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/net/nfc/rawsock.c b/net/nfc/rawsock.c index ba5ffd3badd3..b5c867fe3232 100644 --- a/net/nfc/rawsock.

[PATCH 1/1] x86/hyperv: Make hv_setup_sched_clock inline

2020-08-09 Thread Michael Kelley
Make hv_setup_sched_clock inline so the reference to pv_ops works correctly with objtool updates to detect noinstr violations. See https://lore.kernel.org/patchwork/patch/1283635/ Signed-off-by: Michael Kelley --- arch/x86/include/asm/mshyperv.h | 12 arch/x86/kernel/cpu/mshyperv.c

[PATCH RESEND for-5.9] MIPS: KVM: Convert a fallthrough comment to fallthrough

2020-08-09 Thread Jiaxun Yang
There is a fallthrough comment being forgotten, GCC complains about it: arch/mips/kvm/emulate.c: In function kvm_mips_emulate_load: arch/mips/kvm/emulate.c:1936:21: error: this statement may fall through 1936 | vcpu->mmio_needed = 1; /* unsigned */ | ~~^~~ arch/mips/kvm/

Re: [PATCH 2/9] macintosh/via-macii: Poll the device most likely to respond

2020-08-09 Thread Guenter Roeck
Hi, On 8/9/20 3:58 PM, Finn Thain wrote: > On Sun, 9 Aug 2020, Guenter Roeck wrote: > >> Hi, >> >> On Sun, Jun 28, 2020 at 02:23:12PM +1000, Finn Thain wrote: >>> Poll the most recently polled device by default, rather than the lowest >>> device address that happens to be enabled in autopoll_devs

Re: [PATCH] regulator: simplify locking

2020-08-09 Thread Michał Mirosław
On Mon, Aug 10, 2020 at 03:21:47AM +0300, Dmitry Osipenko wrote: > 10.08.2020 01:30, Michał Mirosław пишет: > > On Mon, Aug 10, 2020 at 12:40:04AM +0300, Dmitry Osipenko wrote: > >> 10.08.2020 00:16, Michał Mirosław пишет: > >>> Simplify regulator locking by removing locking around locking. rdev->r

[PATCH] sched/fair: Remove the duplicate check from group_has_capacity()

2020-08-09 Thread Qi Zheng
1. The group_has_capacity() function is only called in group_classify(). 2. The following inequality has already been checked in group_is_overloaded() which was also called in group_classify(). (sgs->group_capacity * imbalance_pct) < (sgs->group_runnable *

[PATCH 3/3] drivers/clk/clk-asm9260.c

2020-08-09 Thread YourName
From: Daniel --- drivers/ata/acard-ahci.c | 6 +++--- drivers/bluetooth/bfusb.c | 5 ++--- drivers/clk/clk-asm9260.c | 12 ++-- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/drivers/ata/acard-ahci.c b/drivers/ata/acard-ahci.c index 2a04e8abd397..3ffb21f3e88b 100644

Re: [PATCH v7] cpufreq: intel_pstate: Implement passive mode with HWP enabled

2020-08-09 Thread Srinivas Pandruvada
On Thu, 2020-08-06 at 14:03 +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Allow intel_pstate to work in the passive mode with HWP enabled and > make it set the HWP minimum performance limit (HWP floor) to the > P-state value given by the target frequency supplied by the cpufreq >

  1   2   3   4   >