[PATCH v2 2/2] power: supply: sbs-battery: don't assume every i2c errors as battery disconnect

2020-08-10 Thread Ikjoon Jang
Current sbs-battery considers all smbus errors as diconnection events when battery-detect pin isn't supplied, and restored to present state back on any successful transaction were made. This can leads to unlimited state changes between present and !present when one unsupported command was requeste

Re: [PATCH V2 3/3] pwm: imx1: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Uwe Kleine-König
On Tue, Aug 11, 2020 at 02:24:32PM +0800, Anson Huang wrote: > dev_err_probe() can reduce code size, uniform error handling and record the > defer probe reason etc., use it to simplify the code. > > Signed-off-by: Anson Huang > --- > changes since V1: > - remove redundant return value print

[PATCH v2 1/2] power: supply: sbs-battery: combine get_presence_and_health

2020-08-10 Thread Ikjoon Jang
This patch combines two different sbs_get_battery_presence_and_health() for reuse in the future. No functional changes. Signed-off-by: Ikjoon Jang --- drivers/power/supply/sbs-battery.c | 73 +++--- 1 file changed, 36 insertions(+), 37 deletions(-) diff --git a/drivers/p

Re: [PATCH] kcsan: Treat runtime as NMI-like with interrupt tracing

2020-08-10 Thread Marco Elver
On Mon, 10 Aug 2020 at 22:18, Thomas Gleixner wrote: > Marco Elver writes: > > Since KCSAN instrumentation is everywhere, we need to treat the hooks > > NMI-like for interrupt tracing. In order to present an as 'normal' as > > possible context to the code called by KCSAN when reporting errors, we

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

2020-08-10 Thread Michal Hocko
On Tue 11-08-20 09:51:48, Baoquan He wrote: > On 08/10/20 at 05:19pm, Mike Kravetz wrote: > > On 8/9/20 7:17 PM, Baoquan He wrote: > > > 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. > > >> >

[PATCH v2 0/2] power: supply: sbs-battery: fix presence check

2020-08-10 Thread Ikjoon Jang
When gpio detection is not supplied, presence state transitions depend on every smbus transfer result from get_property(). This patch tries to check battery presence again with well supported command before state transition. Changes: v2: combine get_presence_and_health functions to reuse Ikjoon J

Re: [PATCH] mm/slub: fix missing ALLOC_SLOWPATH stat when bulk alloc

2020-08-10 Thread Pekka Enberg
On Tue, Aug 11, 2020 at 5:25 AM wrote: > > From: Abel Wu > > The ALLOC_SLOWPATH statistics is missing in bulk allocation now. > Fix it by doing statistics in alloc slow path. > > Signed-off-by: Abel Wu Reviewed-by: Pekka Enberg

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

2020-08-10 Thread David Sterba
On Mon, Aug 10, 2020 at 08:35:08PM -0700, syzbot wrote: > syzbot has bisected this issue to: > > commit 6a3c7f5c87854e948c3c234e5f5e745c7c553722 > Author: Nikolay Borisov > Date: Thu May 28 08:05:13 2020 + > > btrfs: don't balance btree inode pages from buffered write path This does n

Re: [PATCH v2 3/5] clk: mediatek: Fix asymmetrical PLL enable and disable control

2020-08-10 Thread Weiyi Lu
On Wed, 2020-07-29 at 18:51 +0800, Nicolas Boichat wrote: > On Wed, Jul 29, 2020 at 4:44 PM Weiyi Lu wrote: > > > > The en_mask actually is a combination of divider enable mask > > and pll enable bit(bit0). > > Before this patch, we enabled both divider mask and bit0 in prepare(), > > but only cle

Re: [PATCH v2] loop: unset GENHD_FL_NO_PART_SCAN on LOOP_CONFIGURE

2020-08-10 Thread Martijn Coenen
On Mon, Aug 10, 2020 at 7:16 PM Lennart Poettering wrote: > > When LOOP_CONFIGURE is used with LO_FLAGS_PARTSCAN we need to propagate > this into the GENHD_FL_NO_PART_SCAN. LOOP_SETSTATUS does this, > LOOP_CONFIGURE doesn't so far. Effect is that setting up a loopback > device with partition scann

KASAN: use-after-free Read in io_async_task_func

2020-08-10 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:fc80c51f Merge tag 'kbuild-v5.9' of git://git.kernel.org/p.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17601ab290 kernel config: https://syzkaller.appspot.com/x/.config?x=d48472fcc2f68903 das

Re: [PATCH v3 0/6] tracing: export event trace and trace_marker

2020-08-10 Thread Tingwei Zhang
On Tue, Aug 11, 2020 at 12:03:33PM +0800, Steven Rostedt wrote: > On Tue, 11 Aug 2020 11:49:46 +0800 > Tingwei Zhang wrote: > > > On Tue, Aug 11, 2020 at 11:19:54AM +0800, Steven Rostedt wrote: > > > On Tue, 11 Aug 2020 11:04:18 +0800 > > > Tingwei Zhang wrote: > > > > > > > Thanks for your c

Re: [PATCH v2 4/5] clk: mediatek: Add configurable enable control to mtk_pll_data

2020-08-10 Thread Weiyi Lu
On Wed, 2020-07-29 at 18:58 +0800, Nicolas Boichat wrote: > On Wed, Jul 29, 2020 at 4:44 PM Weiyi Lu wrote: > > > > In all MediaTek PLL design, bit0 of CON0 register is always > > the enable bit. > > However, there's a special case of usbpll on MT8192. > > The enable bit of usbpll is moved to bit2

Re: [PATCH] riscv: Setup exception vector for K210 properly

2020-08-10 Thread Damien Le Moal
On 2020/08/11 15:38, Qiu Wenbo wrote: > Exception vector is missing on nommu platform and it is a big issue. > This patch is tested in Sipeed MAIX Bit Dev Board. > > Fixes: 79b1feba5455 ("RISC-V: Setup exception vector early") I think this needs a "Cc: sta...@vger.kernel.org #5.8" too. > Signed-

[PATCH] bfq: fix blkio cgroup leakage v4

2020-08-10 Thread Dmitry Monakhov
Changes from v1: - update commit description with proper ref-accounting justification commit db37a34c563b ("block, bfq: get a ref to a group when adding it to a service tree") introduce leak forbfq_group and blkcg_gq objects because of get/put imbalance. In fact whole idea of original commit

Re: [PATCH 2/2] perf sched timehist: Fix use of CPU list with summary option

2020-08-10 Thread Namhyung Kim
On Sat, Aug 8, 2020 at 1:49 AM David Ahern wrote: > > Do not update thread stats or show idle summary unless CPU is in > the list of interest. > > Fixes: c30d630d1bcf ("perf sched timehist: Add support for filtering on CPU") > Signed-off-by: David Ahern > --- > tools/perf/builtin-sched.c | 6 +++

Re: [PATCH 1/2] perf sched: Prefer sched_waking event when it exists

2020-08-10 Thread Namhyung Kim
Hi David, On Sat, Aug 8, 2020 at 1:48 AM David Ahern wrote: > > Commit fbd705a0c618 ("sched: Introduce the 'trace_sched_waking' tracepoint") > added sched_waking tracepoint which should be preferred over sched_wakeup > when analyzing scheduling delays. > > Update 'perf sched record' to collect sc

Re: [PATCH] riscv: Setup exception vector for K210 properly

2020-08-10 Thread Damien Le Moal
On 2020/08/11 15:38, Qiu Wenbo wrote: > Exception vector is missing on nommu platform and it is a big issue. > This patch is tested in Sipeed MAIX Bit Dev Board. > > Fixes: 79b1feba5455 ("RISC-V: Setup exception vector early") > Signed-off-by: Qiu Wenbo > --- > arch/riscv/kernel/smpboot.c | 1 +

Re: [PATCH V2 2/3] pwm: imx27: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Lee Jones
On Tue, 11 Aug 2020, Anson Huang wrote: > dev_err_probe() can reduce code size, uniform error handling and record the > defer probe reason etc., use it to simplify the code. > > Signed-off-by: Anson Huang > --- > changes since V1: > - remove redundant return value print. > --- > drivers/p

Re: [PATCH V2 3/3] pwm: imx1: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Lee Jones
On Tue, 11 Aug 2020, Anson Huang wrote: > dev_err_probe() can reduce code size, uniform error handling and record the > defer probe reason etc., use it to simplify the code. > > Signed-off-by: Anson Huang > --- > changes since V1: > - remove redundant return value print. > --- > drivers/p

[PATCH] riscv: Setup exception vector for K210 properly

2020-08-10 Thread Qiu Wenbo
Exception vector is missing on nommu platform and it is a big issue. This patch is tested in Sipeed MAIX Bit Dev Board. Fixes: 79b1feba5455 ("RISC-V: Setup exception vector early") Signed-off-by: Qiu Wenbo --- arch/riscv/kernel/smpboot.c | 1 + arch/riscv/kernel/traps.c | 11 ++- 2 fi

Re: [PATCH V2 1/3] pwm: imx-tpm: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Lee Jones
On Tue, 11 Aug 2020, Anson Huang wrote: > dev_err_probe() can reduce code size, uniform error handling and record the > defer probe reason etc., use it to simplify the code. > > Signed-off-by: Anson Huang > --- > changes since V1: > - remove redundant return value print. > --- > drivers/p

Re: [PATCH v2 3/5] clk: mediatek: Fix asymmetrical PLL enable and disable control

2020-08-10 Thread Weiyi Lu
On Wed, 2020-07-29 at 19:02 +0800, Nicolas Boichat wrote: > On Wed, Jul 29, 2020 at 6:51 PM Nicolas Boichat wrote: > > > > On Wed, Jul 29, 2020 at 4:44 PM Weiyi Lu wrote: > > > > > > The en_mask actually is a combination of divider enable mask > > > and pll enable bit(bit0). > > > Before this pat

[PATCH V2 3/3] pwm: imx1: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- changes since V1: - remove redundant return value print. --- drivers/pwm/pwm-imx1.c | 21 ++--- 1 file changed,

[PATCH V2 2/3] pwm: imx27: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- changes since V1: - remove redundant return value print. --- drivers/pwm/pwm-imx27.c | 25 ++--- 1 file cha

Re: [PATCH 5.8 00/38] 5.8.1-rc1 review

2020-08-10 Thread Naresh Kamboju
On Mon, 10 Aug 2020 at 20:50, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.8.1 release. > There are 38 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Respo

[PATCH V2 1/3] pwm: imx-tpm: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- changes since V1: - remove redundant return value print. --- drivers/pwm/pwm-imx-tpm.c | 10 +++--- 1 file changed, 3 inser

Re: [PATCH 1/2 v3] rseq/membarrier: add MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ

2020-08-10 Thread Peter Zijlstra
On Mon, Aug 10, 2020 at 05:09:58PM -0700, Peter Oskolkov wrote: > @@ -27,6 +35,12 @@ > > static void ipi_mb(void *info) > { The #ifdef wants to behere, otherwise you'll get a compile warning for !RSEQ builds. > + int *flags = info; > + > +#ifdef CONFIG_RSEQ > + if (flags && (*flags ==

Re: [PATCH v7 00/11] Introduce features and debugfs/sysfs entries for MHI

2020-08-10 Thread Manivannan Sadhasivam
Hi Bhaumik, On Mon, Aug 10, 2020 at 03:00:54PM -0700, Bhaumik Bhatt wrote: > Save hardware information from BHI. > Allow reading and modifying some MHI variables for debug, test, and > informational purposes using debugfs. > Read values for device specific hardware information to be used by OEMs i

My Name is Miss Amina Ibrahim from Libya, I am 23 years old

2020-08-10 Thread Miss Amina Ibrahim
My Name is Miss Amina Ibrahim from Libya, I am 23 years old, I am in St.Christopher's Parish for refugee in Burkina Faso under United Nations High commission for Refugee, I lost my parents in the recent war in Libya, right now am in Burkina Faso, please save my life i am in danger need your help

Re: [PATCH v7 08/11] bus: mhi: core: Introduce debugfs entries for MHI

2020-08-10 Thread Manivannan Sadhasivam
On Mon, Aug 10, 2020 at 03:01:02PM -0700, Bhaumik Bhatt wrote: > Introduce debugfs entries to show state, register, channel, device, > and event rings information. Allow the host to dump registers, > issue device wake, and change the MHI timeout to help in debug. > > Signed-off-by: Bhaumik Bhatt

[PATCH V2 1/2] irqchip/imx-intmux: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- changes since V1: - remove redundant return value print. --- drivers/irqchip/irq-imx-intmux.c | 9 +++-- 1 file changed, 3

[PATCH V2 2/2] irqchip/imx-irqsteer: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- changes since V1: - remove redundant return value print. --- drivers/irqchip/irq-imx-irqsteer.c | 9 +++-- 1 file changed,

Re: [PATCH v7 11/11] bus: mhi: core: Introduce sysfs entries for MHI

2020-08-10 Thread Manivannan Sadhasivam
On Mon, Aug 10, 2020 at 03:01:05PM -0700, Bhaumik Bhatt wrote: > Introduce sysfs entries to enable userspace clients the ability to read > the serial number and the OEM PK Hash values obtained from BHI. OEMs > need to read these device-specific hardware information values through > userspace for fa

[PATCH] genirq/affinity: show managed irq affinity correctly

2020-08-10 Thread Yunfeng Ye
The "managed_irq" for isolcpus is supported after the commit 11ea68f553e2 ("genirq, sched/isolation: Isolate from handling managed interrupts"), but the interrupt affinity shown in proc directory is still the original affinity. So modify the interrupt affinity correctly for managed_irq. Signed-of

Re: Please pull NFS server updates for v5.9

2020-08-10 Thread Stephen Rothwell
Hi Chuck, On Mon, 10 Aug 2020 08:25:14 -0400 Chuck Lever wrote: > > Is there something I need to change? The public copy of the cel-testing > branch has had this content for the past 12 days. You just need to keep your cel-next branch up to the top commit that is ready. That is the branch you

Re: [PATCH 5/7] regulator: plug of_node leak in regulator_register()'s error path

2020-08-10 Thread Vladimir Zapolskiy
Hi Michał, On 8/11/20 4:07 AM, Michał Mirosław wrote: > By calling device_initialize() earlier and noting that kfree(NULL) is > ok, we can save a bit of code in error handling and plug of_node leak. > Fixed commit already did part of the work. > > Cc: sta...@vger.kernel.org > Fixes: 9177514ce349

Re: [PATCH] fs: RWF_NOWAIT should imply IOCB_NOIO

2020-08-10 Thread Dave Chinner
On Mon, Aug 10, 2020 at 06:48:19PM -0600, Jens Axboe wrote: > With the change allowing read-ahead for IOCB_NOWAIT, we changed the > RWF_NOWAIT semantics of only doing cached reads. Since we know have > IOCB_NOIO to manage that specific side of it, just make RWF_NOWAIT > imply IOCB_NOIO as well to r

RE: [PATCH 1/2] irqchip/imx-intmux: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
Hi, Ahmad > Subject: Re: [PATCH 1/2] irqchip/imx-intmux: Use dev_err_probe() to simplify > error handling > > Hello, > > On 8/11/20 6:25 AM, Anson Huang wrote: > > dev_err_probe() can reduce code size, uniform error handling and > > record the defer probe reason etc., use it to simplify the cod

Re: [PATCH] HID: i2c-hid: Add 60ms delay after SET_POWER ON

2020-08-10 Thread Kai-Heng Feng
Hi Hans, > On Aug 11, 2020, at 00:13, Hans de Goede wrote: > > Hi, > > On 10-08-2020 16:29, Kai-Heng Feng wrote: >> Goodix touchpad fails to operate in I2C mode after system suspend. >> According to the vendor, Windows is more forgiving and there's a 60ms >> delay after SET_POWER ON command. >>

Re: [PATCH 4/7] regulator: push allocation in set_consumer_device_supply() out of lock

2020-08-10 Thread kernel test robot
Hi "Michał, I love your patch! Perhaps something to improve: [auto build test WARNING on regulator/for-next] [also build test WARNING on v5.8 next-20200810] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base'

Re: [RFC V2 PATCH] dma-iommu: allow devices to set IOVA range dynamically

2020-08-10 Thread Christoph Hellwig
On Mon, Aug 10, 2020 at 11:28:12PM +0530, Ajay Kumar wrote: > Currently, there is no other option to change the lower limit of > IOVA for any device than calling iova_init_domain(), but the > said function will re-init whole domain and also doesn't track > the previously allocated IOVA before re-in

Re: [PATCH net-next RFC 01/13] devlink: Add reload level option to devlink reload command

2020-08-10 Thread Jiri Pirko
Mon, Aug 10, 2020 at 06:53:05PM CEST, k...@kernel.org wrote: >On Sun, 9 Aug 2020 16:21:29 +0300 Moshe Shemesh wrote: >> Okay, so devlink reload default for mlx5 will include also fw-activate >> to align with mlxsw default. >> >> Meaning drivers that supports fw-activate will add it to the default

Re: [PATCH 1/2] irqchip/imx-intmux: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Ahmad Fatoum
Hello, On 8/11/20 6:25 AM, Anson Huang wrote: > dev_err_probe() can reduce code size, uniform error handling and record the > defer probe reason etc., use it to simplify the code. > > Signed-off-by: Anson Huang > --- > drivers/irqchip/irq-imx-intmux.c | 10 -- > 1 file changed, 4 insert

Re: [dm-devel] [RFC PATCH v5 00/11] Integrity Policy Enforcement LSM (IPE)

2020-08-10 Thread James Bottomley
On Mon, 2020-08-10 at 19:36 -0400, Chuck Lever wrote: > > On Aug 10, 2020, at 11:35 AM, James Bottomley > > wrote: > > On Sun, 2020-08-09 at 13:16 -0400, Mimi Zohar wrote: > > > On Sat, 2020-08-08 at 13:47 -0400, Chuck Lever wrote: [...] > > > > The first priority (for me, anyway) therefore is get

[PATCH v12 3/6] KASAN: Port KASAN Tests to KUnit

2020-08-10 Thread David Gow
From: Patricia Alfonso Transfer all previous tests for KASAN to KUnit so they can be run more easily. Using kunit_tool, developers can run these tests with their other KUnit tests and see "pass" or "fail" with the appropriate KASAN report instead of needing to parse each KASAN report to test KASA

[PATCH v12 4/6] kasan: test: Make KASAN KUnit test comply with naming guidelines

2020-08-10 Thread David Gow
The proposed KUnit test naming guidelines[1] suggest naming KUnit test modules [suite]_kunit (and hence test source files [suite]_kunit.c). Rename test_kunit.c to kasan_kunit.c to comply with this, and be consistent with other KUnit tests. [1]: https://lore.kernel.org/linux-kselftest/20200702071

[PATCH v12 6/6] mm: kasan: Do not panic if both panic_on_warn and kasan_multishot set

2020-08-10 Thread David Gow
KASAN errors will currently trigger a panic when panic_on_warn is set. This renders kasan_multishot useless, as further KASAN errors won't be reported if the kernel has already paniced. By making kasan_multishot disable this behaviour for KASAN errors, we can still have the benefits of panic_on_war

[PATCH v12 5/6] KASAN: Testing Documentation

2020-08-10 Thread David Gow
From: Patricia Alfonso Include documentation on how to test KASAN using CONFIG_TEST_KASAN_KUNIT and CONFIG_TEST_KASAN_MODULE. Signed-off-by: Patricia Alfonso Signed-off-by: David Gow Reviewed-by: Andrey Konovalov Reviewed-by: Dmitry Vyukov Acked-by: Brendan Higgins Tested-by: Andrey Konoval

[PATCH v12 2/6] KUnit: KASAN Integration

2020-08-10 Thread David Gow
From: Patricia Alfonso Integrate KASAN into KUnit testing framework. - Fail tests when KASAN reports an error that is not expected - Use KUNIT_EXPECT_KASAN_FAIL to expect a KASAN error in KASAN tests - Expected KASAN reports pass tests and are still printed when ru

[PATCH v12 0/6] KASAN-KUnit Integration

2020-08-10 Thread David Gow
sions. I'd _really_ like to get this into 5.9 if possible: we also have some other changes which depend on some things here. Changes from v11: - Rebased on top of latest -next (20200810) - Fixed a redundant memchr() call in kasan_memchr() - Added Andrey's "Tested-by" to everythin

[PATCH v12 1/6] Add KUnit Struct to Current Task

2020-08-10 Thread David Gow
From: Patricia Alfonso In order to integrate debugging tools like KASAN into the KUnit framework, add KUnit struct to the current task to keep track of the current KUnit test. Signed-off-by: Patricia Alfonso Reviewed-by: Brendan Higgins Tested-by: Andrey Konovalov Signed-off-by: David Gow --

[PATCH] arm64: perf: Add general hardware LLC events for PMUv3

2020-08-10 Thread Leo Yan
This patch is to add the general hardware last level cache (LLC) events for PMUv3: one event is for LLC access and another is for LLC miss. With this change, perf tool can support last level cache profiling, below is an example to demonstrate the usage on Arm64: $ perf stat -e LLC-load-misses -

Re: [RFC][PATCH] tty: serial: qcom_geni_serial: Drop __init from qcom_geni_console_setup

2020-08-10 Thread Bjorn Andersson
On Mon 10 Aug 19:50 PDT 2020, John Stultz wrote: > When booting with heavily modularized config, the serial console > may not be able to load until after init when modules that > satisfy needed dependencies have time to load. > > Unfortunately, as qcom_geni_console_setup is marked as __init, > th

[GIT PULL] hwspinlock updates for 5.9

2020-08-10 Thread Bjorn Andersson
The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407: Linux 5.8-rc1 (2020-06-14 12:45:04 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/andersson/remoteproc.git tags/hwlock-v5.9 for you to fetch changes up to 35efb0e1d5

[GIT PULL] remoteproc updates for v5.9

2020-08-10 Thread Bjorn Andersson
The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407: Linux 5.8-rc1 (2020-06-14 12:45:04 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/andersson/remoteproc.git tags/rproc-v5.9 for you to fetch changes up to 62b8f9e9932

[GIT PULL] rpmsg updates for v5.9

2020-08-10 Thread Bjorn Andersson
The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407: Linux 5.8-rc1 (2020-06-14 12:45:04 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/andersson/remoteproc.git tags/rpmsg-v5.9 for you to fetch changes up to 111d1089700

[PATCH] ROMFS: support inode blocks calculation

2020-08-10 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

drivers/thermal/da9062-thermal.c:258:2-9: line 258 is redundant because platform_get_irq() already prints an error

2020-08-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 00e4db51259a5f936fec1424b884f029479d3981 commit: ca7ce5a2710ad2a57bf7d0c4c712590bb69a5e1c coccinelle: platform_get_irq: Fix parse error date: 11 months ago config: i386-randconfig-c004-20200811 (attached a

I have a proposition for you it will be a mutual benefit to both of us

2020-08-10 Thread David Williams
-- Dear Sir, I am David Williams. I have a Proposition involving an investment initiative in your Country to discuss with you, It will be of mutual benefit to both of us, and I believe we can handle it together, once we have a common understanding and mutual co-operation in the execution of the m

Re: [PATCH AUTOSEL 5.7 52/60] dyndbg: prefer declarative init in caller, to memset in callee

2020-08-10 Thread Greg Kroah-Hartman
On Mon, Aug 10, 2020 at 03:10:20PM -0400, Sasha Levin wrote: > From: Jim Cromie > > [ Upstream commit 9c9d0acbe2793315fa6945a19685ad2a51fb281b ] > > ddebug_exec_query declares an auto var, and passes it to > ddebug_parse_query, which memsets it before using it. Drop that > memset, instead initi

Re: [RFC v4 1/3] usb: dwc3: Resize TX FIFOs to meet EP bursting requirements

2020-08-10 Thread Wesley Cheng
On 8/10/2020 5:27 AM, Felipe Balbi wrote: > Wesley Cheng writes: > > Hi, > >> Some devices have USB compositions which may require multiple endpoints >> that support EP bursting. HW defined TX FIFO sizes may not always be >> sufficient for these compositions. By utilizing flexible TX FIFO >

Re: [GIT PULL] sound updates for 5.9

2020-08-10 Thread John Stultz
On Mon, Aug 10, 2020 at 10:06 AM Srinivas Kandagatla wrote: > > Hi John, > Thanks for reporting this. > > On 08/08/2020 01:23, John Stultz wrote: > > q6routing remoteproc-adsp:glink-edge:apr:apr-service@8:routing: ASoC: > > error at soc_component_read_no_lock on > > remoteproc-adsp:glink-edge:apr:

Re: [Linux-kernel-mentees] [PATCH net] ipvs: Fix uninit-value in do_ip_vs_set_ctl()

2020-08-10 Thread Peilin Ye
On Mon, Aug 10, 2020 at 08:57:19PM -0700, Cong Wang wrote: > On Mon, Aug 10, 2020 at 3:10 PM Peilin Ye wrote: > > > > do_ip_vs_set_ctl() is referencing uninitialized stack value when `len` is > > zero. Fix it. > > Which exact 'cmd' is it here? > > I _guess_ it is one of those uninitialized in se

Re: [RFC PATCH] printk: Change timestamp to triplet as mono, boot and real

2020-08-10 Thread Randy Dunlap
On 8/10/20 9:40 PM, Orson Zhai wrote: > +/* > + * struct timestanps - Simultaneous mono/boot/real timestamps typo:timestamps > + * @mono:Monotonic timestamp > + * @boot:Boottime timestamp > + * @real:Realtime timestamp > + */ > +struct timestamps { > + u64 mono

linux-next: Tree for Aug 11

2020-08-10 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 20200810: Dropped tree: set_fs at maintainer's request My fixes tree contains: 73c7adb

Re: [PATCH] arm64: Skip apply SSBS call for non SSBS system

2020-08-10 Thread Gaurav Kohli
Hi, Please let us know, is below patch good to have or not for non ssbs systems. On 8/4/2020 7:44 PM, Gaurav Kohli wrote: In a system where no cpu's implement SSBS, for them no need to set pstate. This might help to save few cpu cycles during context switch. Signed-off-by: Gaurav Kohli diff

[PATCH 2/2] mm: proc: smaps_rollup: do not stall write attempts on mmap_lock

2020-08-10 Thread Chinwen Chang
smaps_rollup will try to grab mmap_lock and go through the whole vma list until it finishes the iterating. When encountering large processes, the mmap_lock will be held for a longer time, which may block other write requests like mmap and munmap from progressing smoothly. There are upcoming mmap_l

[PATCH 1/2] mmap locking API: add mmap_lock_is_contended()

2020-08-10 Thread Chinwen Chang
Add new API to query if someone wants to acquire mmap_lock for write attempts. Using this instead of rwsem_is_contended makes it more tolerant of future changes to the lock type. Signed-off-by: Chinwen Chang --- include/linux/mmap_lock.h | 5 + 1 file changed, 5 insertions(+) diff --git a/

[PATCH 0/2] Try to release mmap_lock temporarily in smaps_rollup

2020-08-10 Thread Chinwen Chang
Recently, we have observed some janky issues caused by unpleasantly long contention on mmap_lock which is held by smaps_rollup when probing large processes. To address the problem, we let smaps_rollup detect if anyone wants to acquire mmap_lock for write attempts. If yes, just release the lock temp

[PATCH v2] power: supply: sbs-battery: remove unused enable_detection flags

2020-08-10 Thread Ikjoon Jang
Remove unused enable_detection flag which is always true after the device is proved. Signed-off-by: Ikjoon Jang --- v2: initialize work queue before registering power supply --- drivers/power/supply/sbs-battery.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/dri

[RFC PATCH] printk: Change timestamp to triplet as mono, boot and real

2020-08-10 Thread Orson Zhai
From: Thomas Gleixner Timestamps printed in kernel log are retrieved by local_clock which reads jiffies as a referrence clock source. But it is diffcult to be synchronized with logs generated out of kernel, say some remote processors (Modem) in the Soc of mobile phones. Jiffies will be unchanged

Re: [RFC][PATCH v3 11/11] misc: hisi_hikey_usb: Driver to support usb functionality of Hikey960

2020-08-10 Thread John Stultz
On Mon, Aug 10, 2020 at 9:35 AM Mauro Carvalho Chehab wrote: > Em Wed, 16 Oct 2019 03:33:40 + > John Stultz escreveu: > > > From: Yu Chen > > > > The HiKey960 has a fairly complex USB configuration due to it > > needing to support a USB-C port for host/device mode and multiple > > USB-A port

linux-next: new build warnings after binutils update

2020-08-10 Thread Stephen Rothwell
Hi all, After upgading some software, builds of Linus' tree now produce these warnings: x86_64-linux-gnu-ld: arch/x86/boot/compressed/head_64.o: warning: relocation in read-only section `.head.text' x86_64-linux-gnu-ld: warning: creating DT_TEXTREL in a PIE I upgraded binutils from 2.34-8 to 2.

Re: [PATCH v1 1/2] kunit: tool: fix running kunit_tool from outside kernel tree

2020-08-10 Thread David Gow
On Sat, Aug 8, 2020 at 4:51 PM Brendan Higgins wrote: > > On Fri, Aug 7, 2020 at 10:45 PM David Gow wrote: > > > > On Sat, Aug 8, 2020 at 9:17 AM Brendan Higgins > > wrote: > > > > > > Currently kunit_tool does not work correctly when executed from a path > > > outside of the kernel tree, so mak

[PATCH 2/2] irqchip/imx-irqsteer: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/irqchip/irq-imx-irqsteer.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/irqchip/irq-i

[PATCH 1/2] irqchip/imx-intmux: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/irqchip/irq-imx-intmux.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/irqchip/irq-imx

Re: include/linux/bits.h:25:21: error: first argument to '__builtin_choose_expr' not a constant

2020-08-10 Thread Andrew Morton
On Sat, 8 Aug 2020 08:03:38 +0800 kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 30185b69a2d533c4ba6ca926b8390ce7de495e29 > commit: 295bcca84916cb5079140a89fccb472bb8d1f6e2 linux/bits.h: add compile > time sanity check of

[PATCH] powerpc: kvm: Increase HDEC threshold to enter guest

2020-08-10 Thread David Gibson
Before entering a guest, we need to set the HDEC to pull us out again when the guest's time is up. This needs some care, though, because the HDEC is edge triggered, which means that if it expires before entering the guest, the interrupt will be lost, meaning we stay in the guest indefinitely (in p

[PATCH] [v2] tools/objtool: Fix unnecessary jumps

2020-08-10 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 | 30 ++ 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index

drivers/video/fbdev/kyro/fbdev.c:725:23: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-08-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 00e4db51259a5f936fec1424b884f029479d3981 commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH date: 9 months ago config: s390-randconfig-s031-20200810 (attached as .config

[PATCH v3 5/6] stm class: ftrace: enable supported trace export flag

2020-08-10 Thread Tingwei Zhang
Set flags for trace_export. Export function trace, event trace and trace marker to stm. Signed-off-by: Tingwei Zhang Reviewed-by: Steven Rostedt (VMware) --- drivers/hwtracing/stm/ftrace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hwtracing/stm/ftrace.c b/drivers/hwtracing/s

[PATCH v3 6/6] stm class: ftrace: use different channel accroding to CPU

2020-08-10 Thread Tingwei Zhang
To avoid mixup of packets from differnt ftrace packets simultaneously, use different channel for packets from different CPU. Signed-off-by: Tingwei Zhang Reviewed-by: Steven Rostedt (VMware) --- drivers/hwtracing/stm/ftrace.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v3 0/6] tracing: export event trace and trace_marker

2020-08-10 Thread Tingwei Zhang
Ftrace has ability to export trace packets to other destination. Currently, only function trace can be exported. This series extends the support to event trace and trace_maker. STM is one possible destination to export ftrace. Use separate channel for each CPU to avoid mixing up packets from differ

[PATCH v3 1/6] stm class: ftrace: change dependency to TRACING

2020-08-10 Thread Tingwei Zhang
We will support copying event trace to STM. Change STM_SOURCE_FTRACE to depend on TRACING since we will support multiple tracers. Signed-off-by: Tingwei Zhang Reviewed-by: Steven Rostedt (VMware) --- drivers/hwtracing/stm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [Linux-kernel-mentees] [PATCH net] ipvs: Fix uninit-value in do_ip_vs_set_ctl()

2020-08-10 Thread Cong Wang
On Mon, Aug 10, 2020 at 3:10 PM Peilin Ye wrote: > > do_ip_vs_set_ctl() is referencing uninitialized stack value when `len` is > zero. Fix it. Which exact 'cmd' is it here? I _guess_ it is one of those uninitialized in set_arglen[], which is 0. But if that is the case, should it be initialized t

[PATCH v3 2/6] tracing: add flag to control different traces

2020-08-10 Thread Tingwei Zhang
More traces like event trace or trace marker will be supported. Add flag for difference traces, so that they can be controlled separately. Move current function trace to it's own flag instead of global ftrace enable flag. Signed-off-by: Tingwei Zhang Reviewed-by: Steven Rostedt (VMware) --- inc

[PATCH v3 3/6] tracing: add trace_export support for event trace

2020-08-10 Thread Tingwei Zhang
Only function traces can be exported to other destinations currently. This patch exports event trace as well. Move trace export related function to the beginning of file so other trace can call trace_process_export() to export. Signed-off-by: Tingwei Zhang Reviewed-by: Steven Rostedt (VMware) --

[PATCH v3 4/6] tracing: add trace_export support for trace_marker

2020-08-10 Thread Tingwei Zhang
Add the support to route trace_marker buffer to other destination via trace_export. Signed-off-by: Tingwei Zhang Reviewed-by: Steven Rostedt (VMware) --- include/linux/trace.h | 1 + kernel/trace/trace.c | 9 + 2 files changed, 10 insertions(+) diff --git a/include/linux/trace.h b/inc

Re: [PATCH v6 00/12] HWPOISON: soft offline rework

2020-08-10 Thread 堀口 直也
On Mon, Aug 10, 2020 at 11:45:36PM -0400, Qian Cai wrote: > > > > On Aug 10, 2020, at 11:11 PM, HORIGUCHI NAOYA(堀口 直也) > > wrote: > > > > I'm still not sure why the test succeeded by reverting these because > > current mainline kernel provides similar mechanism to prevent reuse of > > soft off

[PATCH 2/3] iio: light: isl29018: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/iio/light/isl29018.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/iio/light/isl29018.c

[PATCH 1/3] iio: accel: mma8452: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/iio/accel/mma8452.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/drivers/iio/accel

[PATCH 3/3] iio: magnetometer: mag3110: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/iio/magnetometer/mag3110.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/drivers/ii

Re: [PATCH v6 00/12] HWPOISON: soft offline rework

2020-08-10 Thread Qian Cai
> On Aug 10, 2020, at 11:11 PM, HORIGUCHI NAOYA(堀口 直也) > wrote: > > I'm still not sure why the test succeeded by reverting these because > current mainline kernel provides similar mechanism to prevent reuse of > soft offlined page. So this success seems to me something suspicious. Even if we

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

2020-08-10 Thread Qi Zheng
On 2020/8/11 上午2:33, Valentin Schneider wrote: On 10/08/20 02:00, Qi Zheng wrote: 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().

sound/soc/codecs/max98373-sdw.c:325:4: warning: Variable 'i' is reassigned a value before the old one has been used.

2020-08-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 086ba2ec163b638abd2a90ef3e8bab0238d02e56 commit: 56a5b7910e965c6905d112ce94fd9a9f5561f326 ASoC: codecs: max98373: add SoundWire support date: 5 weeks ago compiler: mipsel-linux-gcc (GCC) 9.3.0 If you fix

[PATCH] f2fs: change virtual mapping way for compression pages

2020-08-10 Thread Daeho Jeong
From: Daeho Jeong By profiling f2fs compression works, I've found vmap() callings are bottlenecks of f2fs decompression path. Changing these with vm_map_ram(), we can enhance f2fs decompression speed pretty much. [Verification] dd if=/dev/zero of=dummy bs=1m count=1000 echo 3 > /proc/sys/vm/drop

Re: [PATCH v2 4/4] mm/hugetl.c: warn out if expected count of huge pages adjustment is not achieved

2020-08-10 Thread Mike Kravetz
Cc: Michal On 8/10/20 7:11 PM, Baoquan He wrote: > Hi Mike, > > On 07/23/20 at 11:21am, Mike Kravetz wrote: >> On 7/23/20 2:11 AM, Baoquan He wrote: > ... But is kernel expected to warn for all such situations where the user requested resources could not be allocated completely ? Otherw

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

2020-08-10 Thread syzbot
syzbot has bisected this issue to: commit 6a3c7f5c87854e948c3c234e5f5e745c7c553722 Author: Nikolay Borisov Date: Thu May 28 08:05:13 2020 + btrfs: don't balance btree inode pages from buffered write path bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=14f973c290 start

[PATCH v8 1/5] firmware: xilinx: Add ZynqMP firmware ioctl enums for RPU configuration.

2020-08-10 Thread Ben Levinsky
Add ZynqMP firmware ioctl enums for RPU configuration. Signed-off-by: Ben Levinsky --- v3: - add xilinx-related platform mgmt fn's instead of wrapping around function pointer in xilinx eemi ops struct v4: - add default values for enums --- include/linux/firmware/xlnx-zynqmp.h | 19 +++

  1   2   3   4   5   6   7   8   9   10   >