[PATCH v2 0/3] ALSA: compress: Document stream states and fix gapless SM

2020-06-21 Thread Vinod Koul
Srini found issue with gapless implementation which prompted to look deeper into SM for compressed stream. So documenting SM was first step, so first two patches add that. Last patch fixes the issue by keeping track on partial_drain and then moving state to 'running' in snd_compr_drain_notify() fo

[PATCH v2 2/3] ALSA: compress: document the compress gapless audio state machine

2020-06-21 Thread Vinod Koul
Also documented the galpess transitions. Please note that these are not really stream states, but show how the stream steps in gapless mode Signed-off-by: Vinod Koul --- .../sound/designs/compress-offload.rst| 32 +++ 1 file changed, 32 insertions(+) diff --git a/Documen

[PATCH v2 1/3] ALSA: compress: document the compress audio state machine

2020-06-21 Thread Vinod Koul
So we had some discussions of the stream states, so I thought it is a good idea to document the state transitions, so add it documentation Signed-off-by: Vinod Koul --- .../sound/designs/compress-offload.rst| 52 +++ 1 file changed, 52 insertions(+) diff --git a/Document

Re: DMA Engine: Transfer From Userspace

2020-06-21 Thread Federico Vaga
On Mon, Jun 22, 2020 at 10:17:33AM +0530, Vinod Koul wrote: On 21-06-20, 22:36, Federico Vaga wrote: On Sun, Jun 21, 2020 at 12:54:57PM +0530, Vinod Koul wrote: > On 19-06-20, 16:31, Dave Jiang wrote: > > > > > > On 6/19/2020 3:47 PM, Federico Vaga wrote: > > > Hello, > > > > > > is there the po

Re: [PATCH v5 1/2] dt-bindings: mfd: Add ENE KB3930 Embedded Controller binding

2020-06-21 Thread Lee Jones
On Wed, 17 Jun 2020, Lubomir Rintel wrote: > Add binding document for the ENE KB3930 Embedded Controller. > > Signed-off-by: Lubomir Rintel > Reviewed-by: Rob Herring > > --- > Changes since v4: > - Collected Rob's Reviewed-by > > Changes since v1: > - Addressed binding validation failure >

[PATCH] soc: qcom: rpmh-rsc: Set suppress_bind_attrs flag

2020-06-21 Thread Maulik Shah
rpmh-rsc driver is fairly core to system and should not be removable once its probed. However it allows to unbind driver from sysfs using below command which results into a crash on sc7180. echo 1820.rsc > /sys/bus/platform/drivers/rpmh/unbind Lets prevent unbind at runtime by setting suppres

Re: [PATCH] arch/x86: Check return value from a notify_die() call

2020-06-21 Thread Markus Elfring
>>> This is detected by Coverity scan: #CID: 1464472(CHECKED_RETURN) Can an additional imperative wording be helpful for the change description (besides an adjusted patch subject)? >>> FIXES: c94082656dac7(x86: Use enum instead of literals for trap values) >> >> Is the following tag specificatio

Re: [PATCH v5 2/2] mfd: ene-kb3930: Add driver for ENE KB3930 Embedded Controller

2020-06-21 Thread Lee Jones
On Wed, 17 Jun 2020, Lubomir Rintel wrote: > This driver provides access to the EC RAM of said embedded controller > attached to the I2C bus as well as optionally supporting its slightly weird > power-off/restart protocol. > > A particular implementation of the EC firmware can be identified by a

Re: [PATCH v7 0/7] Add interrupt support to FPGA DFL drivers

2020-06-21 Thread Xu Yilun
Hi Moritz: Could you please help review the patchset when you have time? You have already reviewed the first 3 patches some time ago. The comments are all fixed. Hao and Redhat guys also have done several rounds of review. The patches are all Acked-by Hao, reviewed by Marcelo & Tom. There is lit

Re: [PATCHv4 1/4] dt-bindings: watchdog: Add support for TI K3 RTI watchdog

2020-06-21 Thread Tero Kristo
On 18/06/2020 19:09, Jan Kiszka wrote: On 12.03.20 10:58, Tero Kristo wrote: TI K3 SoCs contain an RTI (Real Time Interrupt) module which can be used to implement a windowed watchdog functionality. Windowed watchdog will generate an error if it is petted outside the time window, either too early

Re: linux-next boot error: WARNING in kmem_cache_free

2020-06-21 Thread Dmitry Vyukov
On Mon, Jun 22, 2020 at 8:29 AM Qian Cai wrote: > > On Jun 22, 2020, at 1:37 AM, syzbot > > wrote: > > > > WARNING: CPU: 0 PID: 0 at mm/slab.h:232 kmem_cache_free+0x0/0x200 > > mm/slab.c:2262 > > Is there any particular reason to use CONFIG_SLAB rather than CONFIG_SLUB? There is a reason, it's

[RESEND v2 3/4] regulator: mt6359: Add support for MT6359 regulator

2020-06-21 Thread Wen Su
From: "Wen Su" The MT6359 is a regulator found on boards based on MediaTek MT6779 and probably other SoCs. It is a so called pmic and connects as a slave to SoC using SPI, wrapped inside the pmic-wrapper. Signed-off-by: Wen Su --- drivers/regulator/Kconfig | 9 + drivers/reg

[RESEND v2 4/4] arm64: dts: mt6359: add PMIC MT6359 related nodes

2020-06-21 Thread Wen Su
From: "Wen Su" add PMIC MT6359 related nodes which is for MT6779 platform Signed-off-by: Wen Su --- arch/arm64/boot/dts/mediatek/mt6359.dtsi | 306 +++ 1 file changed, 306 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt6359.dtsi diff --git a/arch/

[RESEND v2 0/4] Add Support for MediaTek PMIC MT6359 Regulator

2020-06-21 Thread Wen Su
This patchset add support to MT6359 PMIC regulator. MT6359 is primary PMIC for MT6779 platform. Changes since v2: - remove open coding in the mt6359 regulator for volt_table type regulators - refine coding style in the mt6359 regulator to avoid using ternery operator - remove unnecessary reject op

[RESEND v2 1/4] dt-bindings: regulator: Add document for MT6359 regulator

2020-06-21 Thread Wen Su
From: "Wen Su" add dt-binding document for MediaTek MT6359 PMIC Signed-off-by: Wen Su Reviewed-by: Rob Herring --- .../bindings/regulator/mt6359-regulator.txt| 58 ++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/

[RESEND v2 2/4] mfd: Add for PMIC MT6359 registers definition

2020-06-21 Thread Wen Su
From: "Wen Su" This adds MediaTek PMIC MT6359 registers definition for the following sub modules: - Regulator - RTC - Interrupt Signed-off-by: Wen Su Acked-for-MFD-by: Lee Jones --- include/linux/mfd/mt6359/registers.h | 531 +++ 1 file changed, 531 insertions

Re: [PATCH v4 2/9] remoteproc: Add new attach() remoteproc operation

2020-06-21 Thread Bjorn Andersson
On Mon 01 Jun 10:51 PDT 2020, Mathieu Poirier wrote: > Add an new attach() operation in order to properly deal with > scenarios where the remoteproc core needs to attach to a > remote processor that has been booted by another entity. > > Signed-off-by: Mathieu Poirier > --- > drivers/remoteproc

Re: [PATCH 6/8] arm64: dts: qcom: sdm630: Add sdm630 dts file

2020-06-21 Thread Konrad Dybcio
Qualcomm keeps them separate, so there's probably a good reason to, and I would prefer to do so as well. But if you guys really want it merged, then it's doable I guess.. Regards Konrad

Re: [PATCH v2] dma-buf: Move dma_buf_release() from fops to dentry_ops

2020-06-21 Thread Sumit Semwal
Hello Charan, On Tue, 16 Jun 2020 at 19:13, Charan Teja Kalla wrote: > > Thanks Sumit for the fix. > > On 6/11/2020 5:14 PM, Sumit Semwal wrote: > > Charan Teja reported a 'use-after-free' in dmabuffs_dname [1], which > > happens if the dma_buf_release() is called while the userspace is > > acces

[PATCH v2 0/2] Add STRICT_DEVMEM support on RISC-V

2020-06-21 Thread Zong Li
This patch set adds devmem_is_allowed to support STRICT_DEVMEM. In devmem_is_allowed, it invokes page_is_ram to check the specific address whether registered as System RAM in iomem_resource. The resource initialization is in kexec/kdump patch series which is reviewing, page_is_ram checking is no us

[PATCH v2 2/2] riscv: mm: refine the Makefile

2020-06-21 Thread Zong Li
Put all objects which selected by obj-y together. Signed-off-by: Zong Li --- arch/riscv/mm/Makefile | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/riscv/mm/Makefile b/arch/riscv/mm/Makefile index 4530ad52f1d6..7f95f66e135a 100644 --- a/arch/riscv/mm/Makefile +++ b/

[PATCH v2 1/2] riscv: Support CONFIG_STRICT_DEVMEM

2020-06-21 Thread Zong Li
Implement the 'devmem_is_allowed()' interface for RISC-V, like some of other architectures have done. It will be called from range_is_allowed() when userpsace attempts to access /dev/mem. Access to exclusive IOMEM and kernel RAM is denied unless CONFIG_STRICT_DEVMEM is set to 'n'. Test it by devm

Re: linux-next boot error: WARNING in kmem_cache_free

2020-06-21 Thread Qian Cai
> On Jun 22, 2020, at 1:37 AM, syzbot > wrote: > > WARNING: CPU: 0 PID: 0 at mm/slab.h:232 kmem_cache_free+0x0/0x200 > mm/slab.c:2262 Is there any particular reason to use CONFIG_SLAB rather than CONFIG_SLUB? You are really asking for trouble to test something that almost nobody is exerci

Re: [PATCH v4 1/9] remoteproc: Add new RPROC_DETACHED state

2020-06-21 Thread Bjorn Andersson
On Mon 01 Jun 10:51 PDT 2020, Mathieu Poirier wrote: > Add a new RPROC_DETACHED state to take into account scenarios > where the remoteproc core needs to attach to a remote processor > that is booted by another entity. > > Signed-off-by: Mathieu Poirier Reviewed-by: Bjorn Andersson Regards, B

Re: [PATCH] kernel/signal.c: Export symbol __lock_task_sighand

2020-06-21 Thread Oleg Nesterov
On 06/21, Alexander Kapshuk wrote: > > Export symbol __lock_task_sighand, so it is accessible from code compiled > as modules. > This fixes the following modpost error: > ERROR: modpost: "__lock_task_sighand" [net/9p/9pnet.ko] undefined! > > Where __lock_task_sighand is called via lock_task_sighand

Re: [PATCHv3 0/2] Convert QCOM watchdog timer bindings to YAML

2020-06-21 Thread Sai Prakash Ranjan
On 2020-06-21 13:03, Bjorn Andersson wrote: On Tue 16 Jun 23:56 PDT 2020, Sai Prakash Ranjan wrote: Hi Bjorn, Hi Sai, On 2020-02-12 03:54, Sai Prakash Ranjan wrote: > This series converts QCOM watchdog timer bindings to YAML. Also > it adds the missing SoC-specific compatible for QCS404, S

Re: [PATCH] remoteproc: qcom: q6v5-mss: Fix kfree build error

2020-06-21 Thread Naresh Kamboju
On Sun, 21 Jun 2020 at 13:12, Bjorn Andersson wrote: > > On Tue 16 Jun 23:56 PDT 2020, Naresh Kamboju wrote: > > > This patch adds linux/slab.h to fix build error in qcom_q6v5_mss.c > > > > Build error: > > ../drivers/remoteproc/qcom_q6v5_mss.c: > > In function ‘q6v5_mpss_init_image’: > > ../d

[PATCH 2/3] crypto: qce: re-initialize context on import

2020-06-21 Thread Sivaprakash Murugesan
crypto testmgr deliberately corrupts the request context while passing vectors to the import. This is to make sure that drivers do not rely on request but they take all the necessary input from io vec passed to it. qce casts the request context from request parameter, since it is corrupted the sub

[PATCH 3/3] crypto: qce: sha: Do not modify scatterlist passed along with request

2020-06-21 Thread Sivaprakash Murugesan
Crypto test driver's test_ahash_speed calls crypto_ahash_update and crypto_ahash_final APIs repeatedly for all the available test vector buffer lengths. if we mark the end for scatterlist based on the current vector size then the subsequent vectors might fail if the later buffer lengths are higher

[PATCH 1/3] crypto: qce: support zero length test vectors

2020-06-21 Thread Sivaprakash Murugesan
crypto test module passes zero length vectors as test input to sha-1 and sha-256. To provide correct output for these vectors, hash zero support has been added as in other crypto drivers. Signed-off-by: Sivaprakash Murugesan --- drivers/crypto/Kconfig | 2 ++ drivers/crypto/qce/common.h |

[PATCH 0/3] qce crypto fixes for tcrypto failures

2020-06-21 Thread Sivaprakash Murugesan
while running tcrypto test cases on qce crypto engine few failures are noticed, this is mainly because of the updates on tcrypto driver and not testing qce reqgularly with mainline tcrypto driver. This series tries to address few of the errors while running tcrypto on qce. Sivaprakash Murugesan (

[PATCH v2 1/2] dt-bindings: iio: bmc150_magn: Document and fix missing compatibles

2020-06-21 Thread Krzysztof Kozlowski
The driver supports also BMC156B and BMM150B but these compatibles had redundant suffix "_magn". Add existing compatibles marking them deprecated along with adding a new, proper one for this family of devices. Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. Mark old compatibles as

[PATCH v2 2/2] iio: magnetometer: bmc150: Add proper compatible BMC156 and BMM150

2020-06-21 Thread Krzysztof Kozlowski
The compatibles (except BMC150) should not have "_magn" suffix and BMC156 is compatible with BMM150 so use just one compatible. Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. New patch. --- drivers/iio/magnetometer/bmc150_magn_i2c.c | 5 +++-- 1 file changed, 3 insertions(+), 2 de

linux-next boot error: WARNING in kmem_cache_free

2020-06-21 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:5a94f5bc Add linux-next specific files for 20200621 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=12a02c7610 kernel config: https://syzkaller.appspot.com/x/.config?x=e1788c418b2ddc66 dashboard

Re: [PATCH 3/3] ALSA: compress: fix partial_drain completion state

2020-06-21 Thread Vinod Koul
On 19-06-20, 10:13, Srinivas Kandagatla wrote: > > > On 19/06/2020 05:54, Vinod Koul wrote: > > On partial_drain completion we should be in SNDRV_PCM_STATE_RUNNING > > state, so set that for partially draining streams in > > snd_compr_drain_notify() and use a flag for partially draining streams >

Re: [PATCH] proc: Avoid a thundering herd of threads freeing proc dentries

2020-06-21 Thread Masahiro Yamada
On Fri, Jun 19, 2020 at 11:14 PM Eric W. Biederman wrote: > > > Junxiao Bi reported: > > When debugging some performance issue, i found that thousands of threads > > exit > > around same time could cause a severe spin lock contention on proc dentry > > "/proc/$parent_process_pid/task/", that's b

Re: [PATCH 2/3] ALSA: compress: document the compress gapless audio state machine

2020-06-21 Thread Vinod Koul
On 19-06-20, 09:27, Pierre-Louis Bossart wrote: > > > +For Gapless, we move from running state to partial drain and back, along > > +with setting of meta_data and signalling for next track :: > > + > > + > > ++--+ > > +compr_drain_not

Re: [PATCH 1/3] ALSA: compress: document the compress audio state machine

2020-06-21 Thread Vinod Koul
HI Pierre, On 19-06-20, 09:22, Pierre-Louis Bossart wrote: > > > + > > ++--+ > > +| | > > +| OPEN | > > +|

[PATCH] drm/mediatek: check plane visibility in atomic_update

2020-06-21 Thread Hsin-Yi Wang
Disable the plane if it's not visible. Otherwise mtk_ovl_layer_config() would proceed with invalid plane and we may see vblank timeout. Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_drm_plane.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff -

WARNING in tcf_chain0_head_change_cb_del

2020-06-21 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7ae77150 Merge tag 'powerpc-5.8-1' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1630b4d110 kernel config: https://syzkaller.appspot.com/x/.config?x=d195fe572fb15312 das

KASAN: null-ptr-deref Write in kvm_vcpu_halt

2020-06-21 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7ae77150 Merge tag 'powerpc-5.8-1' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17d9bfa910 kernel config: https://syzkaller.appspot.com/x/.config?x=be4578b3f1083656 das

[snd_pcm] [5.8RC1] kernel BUG at mm/huge_memory.c:2613! (system stopped playing sound)

2020-06-21 Thread Mikhail Gavrilov
Hi folks. After upgrade kernel to 5.8RC1 (git69119673bd50) my system stopped playing sound. In the kernel log, I see the message 'invalid opcode: [#1] SMP NOPTI' which probably related to this issue. [ 19.076508] page:eb1b1dc14b00 refcount:1 mapcount:0 mapping: index:0x0

[PATCH -next] lib/test_bits: add MODULE_LICENSE()

2020-06-21 Thread Randy Dunlap
From: Randy Dunlap Add MODULE_LICENSE() to prevent build warning: WARNING: modpost: missing MODULE_LICENSE() in lib/test_bits.o Signed-off-by: Randy Dunlap Cc: Rikard Falkeborn Cc: Andrew Morton ---  lib/test_bits.c |    2 ++  1 file changed, 2 insertions(+) --- linux-next-20200621.orig

Re: [PATCH][next] dmaengine: hisilicon: Use struct_size() in devm_kzalloc()

2020-06-21 Thread Zhou Wang
On 2020/6/18 5:11, Gustavo A. R. Silva wrote: > Make use of the struct_size() helper instead of an open-coded version > in order to avoid any potential type mistakes. > > This code was detected with the help of Coccinelle and, audited and > fixed manually. > > Signed-off-by: Gustavo A. R. Silva

Re: [PATCH] dt-bindings: iio: bmc150_magn: Document missing compatibles

2020-06-21 Thread Krzysztof Kozlowski
On Sat, Jun 20, 2020 at 04:40:49PM +0100, Jonathan Cameron wrote: > On Wed, 17 Jun 2020 12:12:59 +0200 > Krzysztof Kozlowski wrote: > > > The driver supports also BMC156B and BMM150B so document the compatibles > > for these devices. > > > > Fixes: 9d75db36df14 ("iio: magn: Add support for BMM15

linux-next: Tree for Jun 22

2020-06-21 Thread Stephen Rothwell
Hi all, Changes since 20200621: New tree: seccomp My fixes tree contains: 466d58f824f1 ("device_cgroup: Fix RCU list debugging warning") 9bd7b7c45d71 ("sched: Fix RANDSTRUCT build fail") The printk tree still had its build failure so I used the version from next-202

Re: [PATCH] proc: Avoid a thundering herd of threads freeing proc dentries

2020-06-21 Thread Junxiao Bi
On 6/20/20 9:27 AM, Matthew Wilcox wrote: On Fri, Jun 19, 2020 at 05:42:45PM -0500, Eric W. Biederman wrote: Junxiao Bi writes: Still high lock contention. Collect the following hot path. A different location this time. I know of at least exit_signal and exit_notify that take thread wide lo

Re: kbuild: separate kerneldoc warnings from compiler warnings

2020-06-21 Thread Masahiro Yamada
On Sun, Jun 21, 2020 at 3:52 AM Valdis Klētnieks wrote: > > This patch introduces a new build flag 'K=1' which controls whether kerneldoc > warnings should be issued, separating them from the compiler warnings that W= > controls. I do not understand why this change is needed. IIRC, our goal wa

ld.lld: warning: kernel/built-in.a(trace/trace_events_hist.o):(".discard.ksym") is being placed in '".discard.ksym"'

2020-06-21 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 625d3449788f85569096780592549d0340e9c0c7 commit: 5990cdee689c6885b27c6d969a3d58b09002b0bc lib/mpi: Fix building for powerpc with clang date: 8 weeks ago config: powerpc64-randconfig-r003-20200621

[PATCH V2] arm64/panic: Unify all three existing notifier blocks

2020-06-21 Thread Anshuman Khandual
Currently there are three different registered panic notifier blocks. This unifies all of them into a single one i.e arm64_panic_block, hence reducing code duplication and required calling sequence during panic. This preserves the existing dump sequence. While here, just use device_initcall() inste

Re: DMA Engine: Transfer From Userspace

2020-06-21 Thread Vinod Koul
On 21-06-20, 22:36, Federico Vaga wrote: > On Sun, Jun 21, 2020 at 12:54:57PM +0530, Vinod Koul wrote: > > On 19-06-20, 16:31, Dave Jiang wrote: > > > > > > > > > On 6/19/2020 3:47 PM, Federico Vaga wrote: > > > > Hello, > > > > > > > > is there the possibility of using a DMA engine channel from

Re: [PATCH v2 01/11] KVM: x86: Add helper functions for illegal GPA checking and page fault injection

2020-06-21 Thread Yuan Yao
On Fri, Jun 19, 2020 at 05:39:15PM +0200, Mohammed Gamal wrote: > This patch adds two helper functions that will be used to support virtualizing > MAXPHYADDR in both kvm-intel.ko and kvm.ko. > > kvm_fixup_and_inject_pf_error() injects a page fault for a user-specified GVA, > while kvm_mmu_is_illeg

Re: [PATCH v2 00/11] KVM: Support guest MAXPHYADDR < host MAXPHYADDR

2020-06-21 Thread Yuan Yao
On Fri, Jun 19, 2020 at 05:39:14PM +0200, Mohammed Gamal wrote: > When EPT/NPT is enabled, KVM does not really look at guest physical > address size. Address bits above maximum physical memory size are reserved. > Because KVM does not look at these guest physical addresses, it currently > effecti

[PATCH V8 2/4] clk: qcom: Add ipq apss pll driver

2020-06-21 Thread Sivaprakash Murugesan
The CPUs on Qualcomm ipq based devices are clocked by an alpha PLL. Add support for the apss pll found on ipq based devices which can support CPU frequencies above 1Ghz. Signed-off-by: Sivaprakash Murugesan --- drivers/clk/qcom/Kconfig| 8 drivers/clk/qcom/Makefile | 1 + dr

[PATCH V8 3/4] clk: qcom: Add DT bindings for ipq6018 apss clock controller

2020-06-21 Thread Sivaprakash Murugesan
Add dt-binding for ipq6018 apss clock controller Acked-by: Rob Herring Signed-off-by: Sivaprakash Murugesan --- [V8] * took Ack from Rob include/dt-bindings/clock/qcom,apss-ipq.h | 12 1 file changed, 12 insertions(+) create mode 100644 include/dt-bindings/clock/qcom,apss-ipq.h

[PATCH V8 0/4] Add APSS clock controller support for IPQ6018

2020-06-21 Thread Sivaprakash Murugesan
The CPU on Qualcomm's IPQ6018 devices are primarily fed by APSS PLL and XO, these are connected to a clock mux and enable block. This patch series adds support for these clocks and inturn enables clocks required for CPU freq. [V8] * In patch 1 changed compatible string from const to enum * Sinc

[PATCH V8 1/4] dt-bindings: clock: add ipq6018 a53 pll compatible

2020-06-21 Thread Sivaprakash Murugesan
cpus on ipq6018 are clocked by a53 pll, add device compatible for a53 pll found on ipq6018 devices. Reviewed-by: Rob Herring Signed-off-by: Sivaprakash Murugesan --- [V8] * converted compatible strings from const to enum to avoid dt binding error * retained Rob's review tag as the change is mi

[PATCH V8 4/4] clk: qcom: Add ipq6018 apss clock controller

2020-06-21 Thread Sivaprakash Murugesan
The CPU on Qualcomm ipq6018 devices are clocked primarily by a aplha PLL and xo which are connected to a mux and enable block. Add support for the mux and enable block which feeds the CPU on ipq6018 devices. Reviewed-by: Stephen Boyd Signed-off-by: Sivaprakash Murugesan --- drivers/clk/qcom/Kc

Re: [PATCH] venus: core: add shutdown callback for venus

2020-06-21 Thread mansur
Hi Stan, On 2020-06-13 17:43, Stanimir Varbanov wrote: Hi Mansur, Thanks for the patch! How you test this? Is it enough to start playback and issue reboot (did you test with reboot -f) ? Yes, I have tested it with "reboot -f" and started video playback (YouTube browser and local video) an

Re: [RFC PATCH 1/2] Explicitly include linux/major.h where it is needed

2020-06-21 Thread Stephen Rothwell
Hi Arnd, On Wed, 17 Jun 2020 16:18:10 +1000 Stephen Rothwell wrote: > > On Wed, 17 Jun 2020 07:58:43 +0200 Greg KH wrote: > > > > On Wed, Jun 17, 2020 at 09:27:47AM +1000, Stephen Rothwell wrote: > > > This is in preparation for removing the include of major.h where it is > > > not needed. >

[rcu:rcu/next] BUILD SUCCESS d831090dafcc38c0c5671e69c3c7efa422bf4242

2020-06-21 Thread kernel test robot
i386 randconfig-a006-20200621 i386 randconfig-a002-20200621 i386 randconfig-a003-20200621 i386 randconfig-a001-20200621 i386 randconfig-a005-20200621 i386 randconfig-a004-20200621 riscv

Re: [RFC PATCH v2 0/5] scsi: ufs: Add Host Performance Booster Support

2020-06-21 Thread Bart Van Assche
On 2020-06-14 23:27, Daejun Park wrote: > The current version only supports the DCM (device control mode). > This patch consists of 4 parts to support HPB feature. > > 1) UFS-feature layer > 2) HPB probe and initialization process > 3) READ -> HPB READ using cached map information > 4) L2P (logica

Re: [PATCH] Documentation: kunit: Add naming guidelines

2020-06-21 Thread Randy Dunlap
Hi-- On 6/19/20 10:49 PM, David Gow wrote: > Documentation/dev-tools/kunit/index.rst | 1 + > Documentation/dev-tools/kunit/style.rst | 139 > 2 files changed, 140 insertions(+) > create mode 100644 Documentation/dev-tools/kunit/style.rst > > diff --git a/Documentatio

Re: [PATCH v2 3/5] mm: memcg/percpu: per-memcg percpu memory statistics

2020-06-21 Thread Nathan Chancellor
On Sun, Jun 21, 2020 at 08:26:35PM -0700, Roman Gushchin wrote: > On Sun, Jun 21, 2020 at 06:48:03PM -0700, Nathan Chancellor wrote: > > On Mon, Jun 08, 2020 at 04:08:17PM -0700, Roman Gushchin wrote: > > > Percpu memory can represent a noticeable chunk of the total > > > memory consumption, especi

Re: [PATCH] Revert "kernel/printk: add kmsg SEEK_CUR handling"

2020-06-21 Thread Linus Torvalds
On Sun, Jun 21, 2020 at 8:02 PM Jason A. Donenfeld wrote: > > This reverts commit 8ece3b3eb576a78d2e67ad4c3a80a39fa6708809. > > This commit broke userspace. Bash uses ESPIPE to determine whether or > not the file should be read using "unbuffered I/O", which means reading > 1 byte at a time instead

Re: [PATCH] rcu/tree: Force quiescent state on callback overload

2020-06-21 Thread Neeraj Upadhyay
Hi Paul, On 6/22/2020 8:43 AM, Paul E. McKenney wrote: On Mon, Jun 22, 2020 at 01:30:31AM +0530, Neeraj Upadhyay wrote: Hi Paul, On 6/22/2020 1:20 AM, Paul E. McKenney wrote: On Mon, Jun 22, 2020 at 12:07:27AM +0530, Neeraj Upadhyay wrote: On callback overload, we want to force quiescent sta

Re: [RFC PATCH v4 07/10] vfio/pci: introduce a new irq type VFIO_IRQ_TYPE_REMAP_BAR_REGION

2020-06-21 Thread Yan Zhao
On Fri, Jun 19, 2020 at 04:55:34PM -0600, Alex Williamson wrote: > On Wed, 10 Jun 2020 01:23:14 -0400 > Yan Zhao wrote: > > > On Fri, Jun 05, 2020 at 10:13:01AM -0600, Alex Williamson wrote: > > > On Thu, 4 Jun 2020 22:02:31 -0400 > > > Yan Zhao wrote: > > > > > > > On Wed, Jun 03, 2020 at 10

Re: [PATCH v8 00/13] perf: support enable and disable commands in stat and record modes

2020-06-21 Thread Alexey Budankov
Hi, On 17.06.2020 11:30, Alexey Budankov wrote: > > Changes in v8: > - avoided moving of fds at fdarray__filter() call > - skipped counting of fds with zeroed revents at fdarray__filter() call > - converted explicit --ctl-fd[-ack] into --control fd:ctl-fd[,ack-fd option > - updated docs to acc

Re: [PATCH v2 3/5] mm: memcg/percpu: per-memcg percpu memory statistics

2020-06-21 Thread Roman Gushchin
On Sun, Jun 21, 2020 at 06:48:03PM -0700, Nathan Chancellor wrote: > On Mon, Jun 08, 2020 at 04:08:17PM -0700, Roman Gushchin wrote: > > Percpu memory can represent a noticeable chunk of the total > > memory consumption, especially on big machines with many CPUs. > > Let's track percpu memory usage

Re: [PATCH v2] nbd: Fix memory leak in nbd_add_socket

2020-06-21 Thread Zhengbin (OSKernel)
On 2020/6/20 20:05, Markus Elfring wrote: If we add first socket to nbd, config->socks is malloced but num_connections does not update(nsock's allocation fail), the memory is leaked. Cause in later nbd_config_put(), will only free config->socks when num_connections is not 0. Let nsock's alloca

RE: [PATCH] ASoC: Intel: KeemBay: Fix header guard

2020-06-21 Thread Sia, Jee Heng
Looks good to me. Thanks Regards Jee Heng -Original Message- From: Nathan Chancellor Sent: Wednesday, June 17, 2020 9:03 AM To: Rojewski, Cezary ; Pierre-Louis Bossart ; Liam Girdwood ; Jie Yang ; Mark Brown Cc: Sia, Jee Heng ; alsa-de...@alsa-project.org; linux-kernel@vger.kernel.

WARNING in usb_ep_queue

2020-06-21 Thread Kyungtae Kim
We report a bug (in linux-5.6.11) found by FuzzUSB (a modified version of syzkaller) == WARNING: CPU: 0 PID: 4452 at drivers/usb/gadget/udc/core.c:276 usb_ep_queue+0x157/0x3a0 drivers/usb/gadget/udc/core.c:276 Kernel panic - not synci

Re: [PATCH] rcu/tree: Force quiescent state on callback overload

2020-06-21 Thread Paul E. McKenney
On Mon, Jun 22, 2020 at 01:30:31AM +0530, Neeraj Upadhyay wrote: > Hi Paul, > > On 6/22/2020 1:20 AM, Paul E. McKenney wrote: > > On Mon, Jun 22, 2020 at 12:07:27AM +0530, Neeraj Upadhyay wrote: > > > On callback overload, we want to force quiescent state immediately, > > > for the first and secon

[PATCH v4 2/2] checks: Improve i2c reg property checking

2020-06-21 Thread Joel Stanley
The i2c bindings in the kernel tree describe support for 10 bit addressing, which must be indicated with the I2C_TEN_BIT_ADDRESS flag. When this is set the address can be up to 10 bits. When it is not set the address is a maximum of 7 bits. See Documentation/devicetree/bindings/i2c/i2c.txt. Take

[PATCH v4 1/2] checks: Remove warning for I2C_OWN_SLAVE_ADDRESS

2020-06-21 Thread Joel Stanley
dtc does a sanity check on reg properties that they are within the 10 bit address range for i2c slave addresses. In the case of multi-master buses or devices that act as a slave, the binding may describe an address that the bus will listen on as a device. Do not warn when this flag is set. See Doc

[PATCH v4 0/2] dtc: Improve checks for i2c reg properties

2020-06-21 Thread Joel Stanley
This is to fix a build warning in the Linux kernel caused by dtc incorrectly warning about I2C_OWN_SLAVE_ADDRESS. v4 adds a U to the defines v3 fixes the 10 bit size check v2 contains a second patch to check for 10 bit vs 7 bit addresses. Joel Stanley (2): checks: Remove warning for I2C_OWN_SLA

Re: [PATCH 1/2] workqueue: don't always set __WQ_ORDERED implicitly

2020-06-21 Thread Bob Liu
ping.. On 6/11/20 6:07 PM, Bob Liu wrote: > Current code always set 'Unbound && max_active == 1' workqueues to ordered > implicitly, while this may be not an expected behaviour for some use cases. > > E.g some scsi and iscsi workqueues(unbound && max_active = 1) want to be bind > to different cpu

Re: [PATCH v6 00/19] The new cgroup slab memory controller

2020-06-21 Thread Roman Gushchin
On Sun, Jun 21, 2020 at 07:53:23PM -0400, Qian Cai wrote: > > > > On Jun 21, 2020, at 7:34 PM, Roman Gushchin wrote: > > > > My wild guess is that kmemleak is getting confused by modifying the lowest > > bit of page->mem_cgroup/obhj_cgroups pointer: > > > > struct page { > >... > >unio

Re: [PATCH 0/4] small random patches

2020-06-21 Thread Jens Axboe
On 6/21/20 4:09 AM, Pavel Begunkov wrote: > Nothing interesting, just killing some stuff first. > Based on top of io_uring-5.8 + 15 async-buf patches. > > Pavel Begunkov (4): > io_uring: remove setting REQ_F_MUST_PUNT in rw > io_uring: remove REQ_F_MUST_PUNT > io_uring: set @poll->file after

drivers/misc/mic/vop/vop_main.c:551:51: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-06-21 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 48778464bb7d346b47157d21ffde2af6b2d39110 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 3 days ago config: sh-randconfig-s032-20200622 (attached as

[PATCH] Revert "kernel/printk: add kmsg SEEK_CUR handling"

2020-06-21 Thread Jason A. Donenfeld
This reverts commit 8ece3b3eb576a78d2e67ad4c3a80a39fa6708809. This commit broke userspace. Bash uses ESPIPE to determine whether or not the file should be read using "unbuffered I/O", which means reading 1 byte at a time instead of 128 bytes at a time. I used to use bash to read through kmsg in a

[PATCH v2 04/11] pinctrl: sunxi: add support for the Allwinner A100 pin controller

2020-06-21 Thread Frank Lee
This commit introduces support for the pin controller on A100. Signed-off-by: Frank Lee --- drivers/pinctrl/sunxi/Kconfig | 10 + drivers/pinctrl/sunxi/Makefile| 2 + drivers/pinctrl/sunxi/pinctrl-sun50i-a100-r.c | 105 drivers/pinctrl/sunxi/pinctrl-sun50i

[PATCH v2 05/11] dt-bindings: nvmem: SID: add binding for A100's SID controller

2020-06-21 Thread Frank Lee
Add a binding for A100's SID controller. Signed-off-by: Frank Lee --- Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml b/Documentation/devicetree/binding

[PATCH v2 11/11] arm64: allwinner: A100: add support for Allwinner Perf1 board

2020-06-21 Thread Frank Lee
A100 perf1 is an Allwinner A100-based SBC, with the following features: - 1GiB DDR3 DRAM - AXP803 PMIC - 2 USB 2.0 ports - MicroSD slot and on-board eMMC module - on-board Nand flash - ··· Adds initial support for it, including the UART. Signed-off-by: Frank Lee --- arch/arm64/boot/dts/allwinn

[PATCH v2 10/11] dt-bindings: arm: sunxi: Add Allwinner A100 Perf1 Board bindings

2020-06-21 Thread Frank Lee
Document board compatible names for Allwinner A100 Perf1 Board. Signed-off-by: Frank Lee --- Documentation/devicetree/bindings/arm/sunxi.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.y

[PATCH v2 08/11] thermal: sun8i: Add A100's THS controller support

2020-06-21 Thread Frank Lee
This patch add thermal sensor controller support for A100, which is similar to the previous ones. Signed-off-by: Frank Lee Signed-off-by: Yangtao Li --- drivers/thermal/sun8i_thermal.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/thermal/sun8i_thermal.c b/drivers/

[PATCH v2 07/11] dt-bindings: thermal: sun8i: Add binding for A100's THS controller

2020-06-21 Thread Frank Lee
Add a binding for A100's ths controller. Signed-off-by: Frank Lee Signed-off-by: Yangtao Li --- .../devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/thermal/allwinner,sun8i

[PATCH v2 01/11] dt-bindings: clk: sunxi-ccu: add compatible string for A100 CCU and R-CCU

2020-06-21 Thread Frank Lee
This patch adds binding to a100's ccu clock and r-ccu clock. Signed-off-by: Frank Lee --- .../devicetree/bindings/clock/allwinner,sun4i-a10-ccu.yaml | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/allwinner,sun4i-a10-ccu.

[PATCH v2 03/11] dt-bindings: pinctrl: sunxi: Add A100 pinctrl bindings

2020-06-21 Thread Frank Lee
Add device tree binding Documentation details for A100 pinctrl driver, whic has an r pin controller and a pin controller with more irq lines. Signed-off-by: Frank Lee --- .../pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 72 +- 1 file changed, 43 insertions(+), 29 deletion

[PATCH v2 09/11] arm64: allwinner: A100: add the basical Allwinner A100 DTSI file

2020-06-21 Thread Frank Lee
Allwinner A100 is a new SoC with Cortex-A53 cores, this commit adds the basical DTSI file of it, including the clock, i2c, pins, sid, ths, and UART support. Signed-off-by: Frank Lee --- arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi | 337 + 1 file changed, 337 insertions

[PATCH v2 02/11] clk: sunxi-ng: add support for the Allwinner A100 CCU

2020-06-21 Thread Frank Lee
Add support for a100 in the sunxi-ng CCU framework. Signed-off-by: Frank Lee --- drivers/clk/sunxi-ng/Kconfig | 10 + drivers/clk/sunxi-ng/Makefile |2 + drivers/clk/sunxi-ng/ccu-sun50i-a100-r.c | 214 + drivers/clk/sunxi-ng/ccu-sun50i-a100-r.h

[PATCH v2 00/11] Allwinner A100 Initial support

2020-06-21 Thread Frank Lee
From: frank This patch set adds initial support for allwinner a100 soc, which is a 64-bit tablet chip. v2: -Some naming consistency -Repair email address -Fix mmc clock -Don't export system clock -Fix checkpatch warning -Drop unneeded pin function, convert to jtag_gpu and i2s_x Frank Lee (11):

[PATCH v2 06/11] nvmem: sunxi-sid: add support for A100's SID controller

2020-06-21 Thread Frank Lee
Add support for A100's SID controller. Signed-off-by: Frank Lee --- drivers/nvmem/sunxi_sid.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c index e26ef1b..8ac074b 100644 --- a/drivers/nvmem/sunxi_sid.c +++ b/drivers/nvmem/sunxi_si

[PATCH 0/3] crypto: allow users to specify acomp hardware from a desired NUMA node

2020-06-21 Thread Barry Song
For a typical Linux server, probably there are several hardware modules. For example, numa node0 has a compressor, numa node2 has a same module. Some drivers are automatically using the module near the CPU calling acomp_alloc. But it isn't necessarily correct. Just like memory allocation API like k

[PATCH 2/3] crypto: hisilicon/zip - permit users to specify NUMA node

2020-06-21 Thread Barry Song
If users don't specify NUMA node, the driver will use the ZIP module near the CPU allocating acomp. Otherwise, it uses the ZIP module according to the requirement of users. Cc: Zhou Wang Signed-off-by: Barry Song --- drivers/crypto/hisilicon/zip/zip.h| 2 +- drivers/crypto/hisilicon/zip

[PATCH 1/3] crypto: permit users to specify numa node of acomp hardware

2020-06-21 Thread Barry Song
For a Linux server with NUMA, there are possibly multiple (de)compressors which are either local or remote to some NUMA node. Some drivers will automatically use the (de)compressor near the CPU calling acomp_alloc(). However, it is not necessarily correct because users who send acomp_req could be f

[PATCH 3/3] mm/zswap: specify the NUMA node of acomp to use local compressors

2020-06-21 Thread Barry Song
zswap_cpu_comp_prepare() is called on a different CPU with the CPU which will really send acomp_req. In order to use the right local compressors, this patch specifies the NUMA node to which the CPU sending acomp_req belongs. Cc: Seth Jennings Cc: Dan Streetman Cc: Vitaly Wool Cc: Herbert Xu Cc

RE: [PATCH 1/2 v4] exfat: write multiple sectors at once

2020-06-21 Thread kohada.tetsuh...@dc.mitsubishielectric.co.jp
> 2020-06-19 17:38 GMT+09:00, Tetsuhiro Kohada : > > Write multiple sectors at once when updating dir-entries. > > Add exfat_update_bhs() for that. It wait for write completion once > > instead of sector by sector. > > It's only effective if sync enabled. > > > > Reviewed-by: Christoph Hellwig > H

Re: [PATCH v1 01/11] soc: mediatek: cmdq: add address shift in jump

2020-06-21 Thread Bibby Hsieh
Reviewed-by: Bibby Hsieh Thanks. On Sun, 2020-06-21 at 22:18 +0800, Dennis YC Hsieh wrote: > Add address shift when compose jump instruction > to compatible with 35bit format. > > Signed-off-by: Dennis YC Hsieh > --- > drivers/soc/mediatek/mtk-cmdq-helper.c |3 ++- > 1 file changed, 2 ins

[PATCH] crypto: sun8i-ce - Fix runtime PM imbalance in sun8i_ce_cipher_init

2020-06-21 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even the call returns an error code. Thus a corresponding decrement is needed on the error handling path to keep the counter balanced. Fix this by adding the missed function call. Signed-off-by: Dinghao Liu --- drivers/crypto/allwinn

  1   2   3   4   5   >