Re: [PATCH v4] RISC-V: Use SBI SRST extension when available

2021-03-02 Thread Anup Patel
On Mon, Mar 1, 2021 at 5:29 PM Anup Patel wrote: > > The SBI SRST extension provides a standard way to poweroff and > reboot the system irrespective to whether Linux RISC-V S-mode > is running natively (HS-mode) or inside Guest/VM (VS-mode). > > The SBI SRST extension is available in latest SBI

Re: [PATCH v5] i2c: virtio: add a virtio i2c frontend driver

2021-03-02 Thread Viresh Kumar
On 01-03-21, 16:19, Arnd Bergmann wrote: > On Mon, Mar 1, 2021 at 7:41 AM Jie Deng wrote: > > > --- /dev/null > > +++ b/include/uapi/linux/virtio_i2c.h > > @@ -0,0 +1,56 @@ > > +/* SPDX-License-Identifier: GPL-2.0-or-later WITH Linux-syscall-note */ > > +/* > > + * Definitions for virtio I2C

Re: [RFC PATCH 10/10] vhost/vdpa: return configuration bytes read and written to user space

2021-03-02 Thread Jason Wang
On 2021/2/16 5:44 下午, Stefano Garzarella wrote: vdpa_get_config() and vdpa_set_config() now return the amount of bytes read and written, so let's return them to the user space. We also modify vhost_vdpa_config_validate() to return 0 (bytes read or written) instead of an error, when the buffer

Re: [PATCH v2 2/2] memblock: do not start bottom-up allocations with kernel_end

2021-03-02 Thread Florian Fainelli
On 3/1/2021 1:22 AM, Serge Semin wrote: > On Sun, Feb 28, 2021 at 07:50:45PM -0800, Florian Fainelli wrote: >> Hi Serge, >> >> On 2/28/2021 3:08 PM, Serge Semin wrote: >>> Hi folks, >>> What you've got here seems a more complicated problem than it >>> could originally look like. Please, see my

Re: [RFC PATCH 01/10] vdpa: add get_config_size callback in vdpa_config_ops

2021-03-02 Thread Jason Wang
On 2021/2/16 5:44 下午, Stefano Garzarella wrote: This new callback is used to get the size of the configuration space of vDPA devices. Signed-off-by: Stefano Garzarella --- include/linux/vdpa.h | 4 drivers/vdpa/ifcvf/ifcvf_main.c | 6 ++

Re: [External] Re: [PATCH 4/5] mm: memcontrol: move remote memcg charging APIs to CONFIG_MEMCG_KMEM

2021-03-02 Thread Muchun Song
On Tue, Mar 2, 2021 at 9:15 AM Roman Gushchin wrote: > > On Mon, Mar 01, 2021 at 02:22:26PM +0800, Muchun Song wrote: > > The remote memcg charing APIs is a mechanism to charge kernel memory > > to a given memcg. So we can move the infrastructure to the scope of > > the CONFIG_MEMCG_KMEM. > >

Re: [f2fs-dev] [PATCH 3/3] f2fs: check if swapfile is section-alligned

2021-03-02 Thread Jaegeuk Kim
On 03/01, Chao Yu wrote: > Hi Jianan, Merged 1/3 and 2/3, so please post v2 on 3/3. Thanks, > > On 2021/2/27 20:02, Huang Jianan via Linux-f2fs-devel wrote: > > If the swapfile isn't created by pin and fallocate, it cann't be > > Typo: > > can't > > > guaranteed section-aligned, so it may

[PATCH] drm: meson_drv add shutdown function

2021-03-02 Thread Artem Lapkin
Problem: random stucks on reboot stage about 1/20 stuck/reboots // debug kernel log [4.496660] reboot: kernel restart prepare CMD:(null) [4.498114] meson_ee_pwrc c883c000.system-controller:power-controller: shutdown begin [4.503949] meson_ee_pwrc

Re: [PATCH v5] i2c: virtio: add a virtio i2c frontend driver

2021-03-02 Thread Viresh Kumar
On 02-03-21, 09:31, Viresh Kumar wrote: > On 01-03-21, 16:19, Arnd Bergmann wrote: > > On Mon, Mar 1, 2021 at 7:41 AM Jie Deng wrote: > > > > > --- /dev/null > > > +++ b/include/uapi/linux/virtio_i2c.h > > > @@ -0,0 +1,56 @@ > > > +/* SPDX-License-Identifier: GPL-2.0-or-later WITH

[PATCH] MIPS: BMIPS: Reserve exception base to prevent corruption

2021-03-02 Thread Florian Fainelli
BMIPS is one of the few platforms that do change the exception base. After commit 2dcb39645441 ("memblock: do not start bottom-up allocations with kernel_end") we started seeing BMIPS boards fail to boot with the built-in FDT being corrupted. Before the cited commit, early allocations would be in

Re: [PATCH 1/2] MIPS: Remove KVM_GUEST support

2021-03-02 Thread Huacai Chen
Reviewed-by: Huacai Chen On Tue, Mar 2, 2021 at 10:27 AM Jiaxun Yang wrote: > > > > 在 2021/3/1 下午11:29, Thomas Bogendoerfer 写道: > > KVM_GUEST is broken and unmaintained, so let's remove it. > > > > Signed-off-by: Thomas Bogendoerfer > > Reviewed-by: Jiaxun Yang > > I'll prepare a patch for

Re: [External] Re: [PATCH 5/5] mm: memcontrol: use object cgroup for remote memory cgroup charging

2021-03-02 Thread Muchun Song
On Tue, Mar 2, 2021 at 9:29 AM Roman Gushchin wrote: > > On Mon, Mar 01, 2021 at 02:22:27PM +0800, Muchun Song wrote: > > We spent a lot of energy to make slab accounting do not hold a refcount > > to memory cgroup, so the dying cgroup can be freed as soon as possible > > on cgroup offlined. > >

[RFC PATCH v1 2/6] badblocks: add helper routines for badblock ranges handling

2021-03-02 Thread Coly Li
This patch adds several helper routines to improve badblock ranges handling. These helper routines will be used later in the improved version of badblocks_set()/badblocks_clear()/badblocks_check(). - Helpers prev_by_hint() and prev_badblocks() are used to find the bad range from bad table which

[RFC PATCH v1 5/6] badblocks: improve badblocks_check() for multiple ranges handling

2021-03-02 Thread Coly Li
This patch rewrites badblocks_check() with similar coding style as _badblocks_set() and _badblocks_clear(). The only difference is bad blocks checking may handle multiple ranges in bad tables now. If a checking range covers multiple bad blocks range in bad block table, like the following

[RFC PATCH v1 3/6] badblocks: improvement badblocks_set() for multiple ranges handling

2021-03-02 Thread Coly Li
Recently I received a bug report that current badblocks code does not properly handle multiple ranges. For example, badblocks_set(bb, 32, 1, true); badblocks_set(bb, 34, 1, true); badblocks_set(bb, 36, 1, true); badblocks_set(bb, 32, 12, true); Then indeed

Re: [PATCH] mm,hwpoison: return -EBUSY when page already poisoned

2021-03-02 Thread Aili Yao
On Fri, 26 Feb 2021 09:58:37 -0800 "Luck, Tony" wrote: > On Fri, Feb 26, 2021 at 10:52:50AM +0800, Aili Yao wrote: > > Hi naoya,Oscar,david: > > > > > > > We could use some negative value (error code) to report the reported > > > > case, > > > > then as you mentioned above, some callers

Re: [f2fs-dev] [PATCH 3/3] f2fs: check if swapfile is section-alligned

2021-03-02 Thread Jaegeuk Kim
On 03/01, Jaegeuk Kim wrote: > On 03/01, Chao Yu wrote: > > Hi Jianan, > > Merged 1/3 and 2/3, so please post v2 on 3/3. NVM. Found v2. > > Thanks, > > > > > On 2021/2/27 20:02, Huang Jianan via Linux-f2fs-devel wrote: > > > If the swapfile isn't created by pin and fallocate, it cann't be >

Re: [PATCH] perf diff: Don't crash on freeing errno-session

2021-03-02 Thread Namhyung Kim
Hello, On Tue, Mar 2, 2021 at 11:35 AM Dmitry Safonov wrote: > > __cmd_diff() sets result of perf_session__new() to d->session. > In case of failure, it's errno and perf-diff may crash with: > failed to open perf.data: Permission denied > Failed to open perf.data > Segmentation fault (core

Re: [PATCH] net: 9p: free what was emitted when read count is 0

2021-03-02 Thread Dominique Martinet
Jisheng Zhang wrote on Mon, Mar 01, 2021 at 11:01:57AM +0800: > Per my understanding of iov_iter, we need to call iov_iter_advance() > even when the read out count is 0. I believe we can see this common style > in other fs. I'm not sure where you see this style, but I don't see exceptions for

Re: [PATCH v5] i2c: virtio: add a virtio i2c frontend driver

2021-03-02 Thread Viresh Kumar
On 01-03-21, 14:41, Jie Deng wrote: > +static int virtio_i2c_send_reqs(struct virtqueue *vq, > + struct virtio_i2c_req *reqs, > + struct i2c_msg *msgs, int nr) > +{ > + struct scatterlist *sgs[3], out_hdr, msg_buf, in_hdr; > + int i,

[RFC PATCH v1 6/6] badblocks: switch to the improved badblock handling code

2021-03-02 Thread Coly Li
This patch removes old code of badblocks_set(), badblocks_clear() and badblocks_check(), and make them as wrappers to call _badblocks_set(), _badblocks_clear() and _badblocks_check(). By this change now the badblock handing switch to the improved algorithm in _badblocks_set(), _badblocks_clear()

undefined reference to `cpu_sa110_suspend_size'

2021-03-02 Thread kernel test robot
date: 9 months ago config: arm-randconfig-m031-20210302 (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross

[RFC PATCH v1 0/6] badblocks improvement for multiple bad block ranges

2021-03-02 Thread Coly Li
This is the first completed effort to improve badblocks code to handle multiple ranges in bad block table. There is neither in-memory nor on-disk format change in this series, all existing API and data structures are consistent. This series just only improve the code algorithm to handle more

[PATCH 35/44] tty: let tty_unregister_driver return void

2021-03-02 Thread Jiri Slaby
Now that noone checks the return value, switch the return type of tty_unregister_driver to void. We can do that as we always return zero. Generally, drivers are not allowed to call tty_unregister_driver while there are open devices. Signed-off-by: Jiri Slaby --- drivers/tty/tty_io.c | 9

[PATCH 24/44] tty: nozomi, remove useless debug prints

2021-03-02 Thread Jiri Slaby
These are either commented out or can be printed by tracing mechanisms. Signed-off-by: Jiri Slaby --- drivers/tty/nozomi.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/tty/nozomi.c b/drivers/tty/nozomi.c index 1ec975d66528..9a2d78ace49b 100644 ---

Re: [PATCH v4 2/2] power: supply: mt6360_charger: add MT6360 charger support

2021-03-02 Thread Gene Chen
Gene Chen 於 2021年1月18日 週一 下午8:42寫道: > > From: Gene Chen > > Add basic support for the battery charger for MT6360 PMIC > > Signed-off-by: Gene Chen > --- > drivers/power/supply/Kconfig | 10 + > drivers/power/supply/Makefile | 1 + > drivers/power/supply/mt6360_charger.c |

Re: [PATCH v4] RISC-V: Use SBI SRST extension when available

2021-03-02 Thread Atish Patra
On Mon, Mar 1, 2021 at 3:59 AM Anup Patel wrote: > > The SBI SRST extension provides a standard way to poweroff and > reboot the system irrespective to whether Linux RISC-V S-mode > is running natively (HS-mode) or inside Guest/VM (VS-mode). > > The SBI SRST extension is available in latest SBI

[PATCH] clocksource/drivers/timer-mediatek: optimize systimer irq clear flow on Mediatek Socs

2021-03-02 Thread Fengquan Chen
1)ensure systimer is enabled before clear and disable interrupt, which only for systimer in Mediatek Socs. 2)clear any pending timer-irq when shutdown to keep suspend flow clean, when use systimer as tick-broadcast timer Change-Id: Ia3eda83324af2fdaf5cbb3569a9bf020a11f8009 Signed-off-by:

[PATCH 1/4] arm64: dts: qcom: sc7180: Rename the qmp node to power-controller

2021-03-02 Thread Sai Prakash Ranjan
Use the generic DT node name "power-controller" for AOSS message ram instead of the protocol name QMP(Qualcomm Messaging Protocol) since it is used for power management requests. Suggested-by: Stephen Boyd Signed-off-by: Sai Prakash Ranjan --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 2 +- 1

[PATCH 0/4] arm64: dts: qcom: Rename the qmp node to power-controller

2021-03-02 Thread Sai Prakash Ranjan
This short series converts the qmp DT node name to generic "power-controller" for AOSS message ram instead of the protocol name QMP(Qualcomm Messaging Protocol) since it is used for power management requests. Sai Prakash Ranjan (4): arm64: dts: qcom: sc7180: Rename the qmp node to

[PATCH 4/4] arm64: dts: qcom: sm8350: Rename the qmp node to power-controller

2021-03-02 Thread Sai Prakash Ranjan
Use the generic DT node name "power-controller" for AOSS message ram instead of the protocol name QMP(Qualcomm Messaging Protocol) since it is used for power management requests. Suggested-by: Stephen Boyd Signed-off-by: Sai Prakash Ranjan --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 2 +- 1

[PATCH 2/4] arm64: dts: qcom: sdm845: Rename the qmp node to power-controller

2021-03-02 Thread Sai Prakash Ranjan
Use the generic DT node name "power-controller" for AOSS message ram instead of the protocol name QMP(Qualcomm Messaging Protocol) since it is used for power management requests. Suggested-by: Stephen Boyd Signed-off-by: Sai Prakash Ranjan --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 +- 1

[PATCH 3/4] arm64: dts: qcom: sm8250: Rename the qmp node to power-controller

2021-03-02 Thread Sai Prakash Ranjan
Use the generic DT node name "power-controller" for AOSS message ram instead of the protocol name QMP(Qualcomm Messaging Protocol) since it is used for power management requests. Suggested-by: Stephen Boyd Signed-off-by: Sai Prakash Ranjan --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 +- 1

[PATCH] clocksource/drivers/timer-mediatek: optimize systimer irq clear flow on Mediatek Socs

2021-03-02 Thread Fengquan Chen
clocksource/drivers/timer-mediatek: optimize systimer irq clear flow on Mediatek Socs 1)ensure systimer is enabled before clear and disable interrupt, which only for systimer in Mediatek Socs. 2)clear any pending timer-irq when shutdown to keep suspend flow clean, when use systimer as

Re: [PATCH] iwlwifi: fix ARCH=i386 compilation warnings

2021-03-02 Thread Coelho, Luciano
On Tue, 2021-03-02 at 07:58 +0200, Kalle Valo wrote: > Pierre-Louis Bossart writes: > > > An unsigned long variable should rely on '%lu' format strings, not '%zd' > > > > Fixes: a1a6a4cf49ece ("iwlwifi: pnvm: implement reading PNVM from UEFI") > > Signed-off-by: Pierre-Louis Bossart > > --- >

Re: [PATCH V2] mm: Generalize HUGETLB_PAGE_SIZE_VARIABLE

2021-03-02 Thread Christophe Leroy
Le 02/03/2021 à 07:37, Anshuman Khandual a écrit : On 3/2/21 11:13 AM, Christophe Leroy wrote: Le 02/03/2021 à 06:13, Anshuman Khandual a écrit : HUGETLB_PAGE_SIZE_VARIABLE need not be defined for each individual platform subscribing it. Instead just make it generic. Cc: Michael

Re: Re: Re: [PATCH] sata_dwc_460ex: Fix missing check in sata_dwc_isr

2021-03-02 Thread dinghao . liu
> On Mon, Mar 1, 2021 at 1:20 PM wrote: > > > > > On Mon, Mar 1, 2021 at 9:44 AM Dinghao Liu wrote: > > > > > > > > ata_qc_from_tag() may return a null pointer and further lead to > > > > null-pointer-dereference. Add a return value check to avoid such case. > > > > > > Can you elaborate more on

Re: [PATCH] net: 9p: free what was emitted when read count is 0

2021-03-02 Thread Jisheng Zhang
On Tue, 2 Mar 2021 13:38:08 +0900 Dominique Martinet wrote: > > > Jisheng Zhang wrote on Mon, Mar 01, 2021 at 11:01:57AM +0800: > > Per my understanding of iov_iter, we need to call iov_iter_advance() > > even when the read out count is 0. I believe we can see this common style > > in other fs.

Re: [PATCH] sched/fair: Prefer idle CPU to cache affinity

2021-03-02 Thread Srikar Dronamraju
* Peter Zijlstra [2021-03-01 18:18:28]: > On Mon, Mar 01, 2021 at 10:36:01PM +0530, Srikar Dronamraju wrote: > > * Peter Zijlstra [2021-03-01 16:44:42]: > > > > > On Sat, Feb 27, 2021 at 02:56:07PM -0500, Rik van Riel wrote: > > > > On Fri, 2021-02-26 at 22:10 +0530, Srikar Dronamraju wrote: >

Re: [PATCH 3/3] arm64: dts: ti: k3-j7200-som-p0: Add nodes for OSPI0

2021-03-02 Thread Vignesh Raghavendra
On 3/2/21 1:28 AM, Pratyush Yadav wrote: > + > + mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins-default { > + pinctrl-single,pins = < > + J721E_WKUP_IOPAD(0x, PIN_OUTPUT, 0) /* > MCU_OSPI0_CLK */ > + J721E_WKUP_IOPAD(0x002c,

[PATCH rdma-rc 2/2] RDMA/uverbs: Fix kernel-doc warning of _uverbs_alloc

2021-03-02 Thread Leon Romanovsky
From: Leon Romanovsky Fix the following W=1 compilation warning: drivers/infiniband/core/uverbs_ioctl.c:108: warning: expecting prototype for uverbs_alloc(). Prototype was for _uverbs_alloc() instead Fixes: 461bb2eee4e1 ("IB/uverbs: Add a simple allocator to uverbs_attr_bundle") Signed-off-by:

Re: [PATCH v2] can: c_can: move runtime PM enable/disable to c_can_platform

2021-03-02 Thread Marc Kleine-Budde
On 3/2/21 3:55 AM, Tong Zhang wrote: > Currently doing modprobe c_can_pci will make kernel complain > "Unbalanced pm_runtime_enable!", this is caused by pm_runtime_enable() > called before pm is initialized. > This fix is similar to 227619c3ff7c, move those pm_enable/disable code to >

[PATCH] riscv: Return -EFAULT if copy_to_user() failed in signal.c

2021-03-02 Thread Tiezhu Yang
copy_to_user() returns the amount left to copy, it should return -EFAULT if copy to user failed. Signed-off-by: Tiezhu Yang --- arch/riscv/kernel/signal.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/riscv/kernel/signal.c b/arch/riscv/kernel/signal.c index

[PATCH] sound: pps: fix spelling typo of values

2021-03-02 Thread dingsenjie
From: dingsenjie vaules -> values Signed-off-by: dingsenjie --- sound/ppc/snd_ps3_reg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/ppc/snd_ps3_reg.h b/sound/ppc/snd_ps3_reg.h index 566a318..e2212b7 100644 --- a/sound/ppc/snd_ps3_reg.h +++

Re: [PATCH] PATCH Documentation translations:translate sound/hd-audio/controls to chinese

2021-03-02 Thread Alex Shi
在 2021/3/2 上午11:22, huangjianghui 写道: >> > In the next patch ,I deleted the index of the untranstated files,and i > used checkpatch.pl to detect doc errors and tried to built the htmldocs > on my pc. > > Thanks, > > Huang Jianghui Hi Jianghui, we usually include patch into email instead of

Re: exec error: BUG: Bad rss-counter

2021-03-02 Thread Ilya Lipnitskiy
On Mon, Mar 1, 2021 at 12:43 PM Eric W. Biederman wrote: > > Ilya Lipnitskiy writes: > > > Eric, All, > > > > The following error appears when running Linux 5.10.18 on an embedded > > MIPS mt7621 target: > > [0.301219] BUG: Bad rss-counter state mm:(ptrval) type:MM_ANONPAGES > > val:1 > > >

Re: BUG: soft lockup in ieee80211_tasklet_handler

2021-03-02 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:7a7fd0de Merge branch 'kmap-conversion-for-5.12' of git://.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14df34ead0 kernel config:

Re: [PATCH] scsi: ufs: Fix incorrect ufshcd_state after ufshcd_reset_and_restore()

2021-03-02 Thread Adrian Hunter
On 2/03/21 9:01 am, Avri Altman wrote: > >> If ufshcd_probe_hba() fails it sets ufshcd_state to UFSHCD_STATE_ERROR, >> however, if it is called again, as it is within a loop in >> ufshcd_reset_and_restore(), and succeeds, then it will not set the state >> back to UFSHCD_STATE_OPERATIONAL unless

[PATCH] habanalabs: fix debugfs address translation

2021-03-02 Thread Oded Gabbay
From: farah kassabri when user uses virtual addresses to access dram through debugfs, driver translate this address to physical and use it for the access through the pcie bar. in case dram page size is different than the dmmu page size, we need to have special treatment for adding the page

Re: drivers/leds/blink/leds-lgm-sso.c:123:19: error: field has incomplete type 'struct gpio_chip'

2021-03-02 Thread Pavel Machek
Hi! > drivers/leds/blink/leds-lgm-sso.c:263:3: error: implicit declaration of > function 'gpiod_set_value' [-Werror,-Wimplicit-function-declaration] > >>gpiod_set_value(led->gpiod, val); > >>^ > >>drivers/leds/blink/leds-lgm-sso.c:263:3:

Re: Question about the "EXPERIMENTAL" tag for dax in XFS

2021-03-02 Thread Dave Chinner
On Mon, Mar 01, 2021 at 07:33:28PM -0800, Dan Williams wrote: > On Mon, Mar 1, 2021 at 6:42 PM Dave Chinner wrote: > [..] > > We do not need a DAX specific mechanism to tell us "DAX device > > gone", we need a generic block device interface that tells us "range > > of block device is gone". > >

[PATCH v9 0/4] pinctrl: pinmux: Add pinmux-select debugfs file

2021-03-02 Thread Drew Fustini
This series first converts the debugfs files in the pinctrl subsystem to octal permissions and then adds a new debugfs file "pinmux-select". Group name and function name can be written to "pinmux-select" which will cause the pin function for the specified group to be activated on the pin

[PATCH v9 1/4] pinctrl: use to octal permissions for debugfs files

2021-03-02 Thread Drew Fustini
Switch over pinctrl debugfs files to use octal permissions as they are preferred over symbolic permissions. Refer to commit f90774e1fd27 ("checkpatch: look for symbolic permissions and suggest octal instead"). Note: S_IFREG flag is added to the mode by __debugfs_create_file() in

[PATCH] f2fs: expose # of overprivision segments

2021-03-02 Thread Jaegeuk Kim
This is useful when checking conditions during checkpoint=disable in Android. Signed-off-by: Jaegeuk Kim --- fs/f2fs/sysfs.c | 8 1 file changed, 8 insertions(+) diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c index e38a7f6921dd..254b6fa17406 100644 --- a/fs/f2fs/sysfs.c +++

Re: Question about the "EXPERIMENTAL" tag for dax in XFS

2021-03-02 Thread Dan Williams
On Mon, Mar 1, 2021 at 7:28 PM Darrick J. Wong wrote: > > On Mon, Mar 01, 2021 at 12:55:53PM -0800, Dan Williams wrote: > > On Sun, Feb 28, 2021 at 2:39 PM Dave Chinner wrote: > > > > > > On Sat, Feb 27, 2021 at 03:40:24PM -0800, Dan Williams wrote: > > > > On Sat, Feb 27, 2021 at 2:36 PM Dave

Re: [perf] perf_fuzzer causes crash in intel_pmu_drain_pebs_nhm()

2021-03-02 Thread Vince Weaver
On Mon, 1 Mar 2021, Liang, Kan wrote: > https://lore.kernel.org/lkml/tip-01330d7288e0050c5aaabc558059ff91589e6...@git.kernel.org/ > The patch is an SW workaround for some old CPUs (HSW and earlier), which may > set 0 to the PEBS status. It adds a check in the intel_pmu_drain_pebs_nhm(). > It

Re: [PATCH v5] i2c: virtio: add a virtio i2c frontend driver

2021-03-02 Thread Jason Wang
On 2021/3/2 1:16 下午, Viresh Kumar wrote: On 02-03-21, 13:06, Jie Deng wrote: Yeah. Actually, the backend only needs "struct virtio_i2c_out_hdr out_hdr" and "struct virtio_i2c_in_hdr in_hdr" for communication. So we only need to keep the first two in uapi and move "struct virtio_i2c_req" into

Re: [PATCH V2] mm: Generalize HUGETLB_PAGE_SIZE_VARIABLE

2021-03-02 Thread Christophe Leroy
Le 02/03/2021 à 06:13, Anshuman Khandual a écrit : HUGETLB_PAGE_SIZE_VARIABLE need not be defined for each individual platform subscribing it. Instead just make it generic. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Andrew Morton Cc: Christoph Hellwig Cc:

Re: Question about the "EXPERIMENTAL" tag for dax in XFS

2021-03-02 Thread Dan Williams
On Mon, Mar 1, 2021 at 9:38 PM Dave Chinner wrote: > > On Mon, Mar 01, 2021 at 07:33:28PM -0800, Dan Williams wrote: > > On Mon, Mar 1, 2021 at 6:42 PM Dave Chinner wrote: > > [..] > > > We do not need a DAX specific mechanism to tell us "DAX device > > > gone", we need a generic block device

[PATCH 2/2] soc: qcom: rpmhpd: Add sc7280 powerdomains

2021-03-02 Thread Rajendra Nayak
Add the power domains exposed by RPMH in the Qualcomm Technologies Inc sc7280 platform Signed-off-by: Rajendra Nayak --- drivers/soc/qcom/rpmhpd.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c index

Re: [PATCH v2 3/3] kernel/smp: add more data to CSD lock debugging

2021-03-02 Thread Jürgen Groß
On 01.03.21 18:07, Peter Zijlstra wrote: On Mon, Mar 01, 2021 at 11:13:36AM +0100, Juergen Gross wrote: In order to help identifying problems with IPI handling and remote function execution add some more data to IPI debugging code. There have been multiple reports of cpus looping long times

Re: [PATCH] iwlwifi: fix ARCH=i386 compilation warnings

2021-03-02 Thread Kalle Valo
Pierre-Louis Bossart writes: > An unsigned long variable should rely on '%lu' format strings, not '%zd' > > Fixes: a1a6a4cf49ece ("iwlwifi: pnvm: implement reading PNVM from UEFI") > Signed-off-by: Pierre-Louis Bossart > --- > warnings found with v5.12-rc1 and next-20210301 Luca, can I take

[PATCH v2 3/4] mm: /proc/sys/vm/stat_refresh skip checking known negative stats

2021-03-02 Thread Hugh Dickins
vmstat_refresh() can occasionally catch nr_zone_write_pending and nr_writeback when they are transiently negative. The reason is partly that the interrupt which decrements them in test_clear_page_writeback() can come in before __test_set_page_writeback() got to increment them; but transient

Re: [PATCH v2 1/2] optee: fix tee out of memory failure seen during kexec reboot

2021-03-02 Thread Allen Pais
From: Allen Pais The following out of memory errors are seen on kexec reboot from the optee core. [0.368428] tee_bnxt_fw optee-clnt0: tee_shm_alloc failed [0.368461] tee_bnxt_fw: probe of optee-clnt0 failed with error -22 tee_shm_release() is not invoked on dma shm buffer. Implement

[PATCH 1/2] dt-bindings: power: rpmpd: Add sc7280 to rpmpd binding

2021-03-02 Thread Rajendra Nayak
Add compatible and constants for the power domains exposed by the RPMH in the Qualcomm Technologies Inc sc7280 platform. Signed-off-by: Rajendra Nayak --- Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 + include/dt-bindings/power/qcom-rpmpd.h | 11 +++ 2

dsa_master_find_slave()'s time complexity and potential performance hit

2021-03-02 Thread DENG Qingfang
Since commit 7b9a2f4bac68 ("net: dsa: use ports list to find slave"), dsa_master_find_slave() has been iterating over a linked list instead of accessing arrays, making its time complexity O(n). The said function is called frequently in DSA RX path, so it may cause a performance hit, especially for

Re: [PATCH] selftests/sgx: fix EINIT failure dueto SGX_INVALID_SIGNATURE

2021-03-02 Thread Andy Lutomirski
On Mon, Mar 1, 2021 at 9:06 PM Tianjia Zhang wrote: > > > > On 3/1/21 5:54 PM, Jarkko Sakkinen wrote: > > On Mon, Mar 01, 2021 at 01:18:36PM +0800, Tianjia Zhang wrote: > >> q2 is not always 384-byte length. Sometimes it only has 383-byte. > > > > What does determine this? > > > >> In this case,

Re: [PATCH v2 3/3] mm/slub: Use percpu partial free counter

2021-03-02 Thread Shu Ming
On Mon, Aug 10, 2020 at 8:22 PM Xunlei Pang wrote: > static inline void > @@ -2429,12 +2439,12 @@ static unsigned long partial_counter(struct > kmem_cache_node *n, > unsigned long ret = 0; > > if (item == PARTIAL_FREE) { > - ret =

[PATCH 1/2] pinctrl: qcom: sc7280: Fix SDC_QDSD_PINGROUP and UFS_RESET offsets

2021-03-02 Thread Rajendra Nayak
The offsets for SDC_QDSD_PINGROUP and UFS_RESET were off by 0x10 due to an issue in the scripts generating the data. Fixes: ecb454594c43: ("pinctrl: qcom: Add sc7280 pinctrl driver") Reported-by: Veerabhadrarao Badiganti Signed-off-by: Rajendra Nayak ---

RE: [EXT] Re: [PATCH 2/3] spi: spi-nxp-fspi: Add driver support for imx8dxl

2021-03-02 Thread Kuldeep Singh
> > I have converted bindings to yaml version in the patch and also added > imx8dxl compatible along-with the conversion. Please see the difference in > compatible entries from txt to yaml conversion[1]. > > Kindly let me know do I need to submit different patch for adding new > compatible or ok

[PATCH 28/44] tty: vcc, remove useless tty checks

2021-03-02 Thread Jiri Slaby
All these functions are called with a valid tty pointer, no need to check that. Signed-off-by: Jiri Slaby Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org --- drivers/tty/vcc.c | 45 - 1 file changed, 45 deletions(-) diff --git

[PATCH 32/44] tty: xtensa/iss, setup the timer statically

2021-03-02 Thread Jiri Slaby
Use DEFINE_TIMER and avoid runtime initialization of the serial_timer. Signed-off-by: Jiri Slaby Cc: Chris Zankel Cc: Max Filippov Cc: linux-xte...@linux-xtensa.org --- arch/xtensa/platforms/iss/console.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git

[PATCH 22/44] tty: nozomi, remove struct buffer

2021-03-02 Thread Jiri Slaby
It is unused. Signed-off-by: Jiri Slaby --- drivers/tty/nozomi.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/tty/nozomi.c b/drivers/tty/nozomi.c index 861e95043191..83490925a3e2 100644 --- a/drivers/tty/nozomi.c +++ b/drivers/tty/nozomi.c @@ -359,12 +359,6 @@ struct nozomi

[PATCH 27/44] tty: vcc, use name strings directly

2021-03-02 Thread Jiri Slaby
Do not define global variables for driver/device names, use the strings directly. Signed-off-by: Jiri Slaby Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org --- drivers/tty/vcc.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/tty/vcc.c b/drivers/tty/vcc.c

[PATCH 30/44] tty: xtensa/iss, don't reassign to tty->port

2021-03-02 Thread Jiri Slaby
We already do tty_port_link_device in rs_init, so we don't need to reassign a port to tty->port. It would be too late in tty::ops::open anyway. Signed-off-by: Jiri Slaby Cc: Chris Zankel Cc: Max Filippov Cc: linux-xte...@linux-xtensa.org --- arch/xtensa/platforms/iss/console.c | 1 - 1 file

[PATCH v3 0/4] kernel/smp.c: add more CSD lock debugging

2021-03-02 Thread Juergen Gross
This patch series was created to help catching a rather long standing problem with smp_call_function_any() and friends. Very rarely a remote cpu seems not to execute a queued function and the cpu queueing that function request will wait forever for the CSD lock to be released by the remote cpu.

[PATCH v3 3/4] kernel/smp: add more data to CSD lock debugging

2021-03-02 Thread Juergen Gross
In order to help identifying problems with IPI handling and remote function execution add some more data to IPI debugging code. There have been multiple reports of cpus looping long times (many seconds) in smp_call_function_many() waiting for another cpu executing a function like tlb flushing.

Re: [PATCH] exfat: fix erroneous discard when clear cluster bit

2021-03-02 Thread Hyeongseok Kim
On 3/2/21 11:41 AM, Sungjong Seo wrote: Subject: [PATCH] exfat: fix erroneous discard when clear cluster bit If mounted with discard option, exFAT issues discard command when clear cluster bit to remove file. But the input parameter of cluster-to-sector calculation is abnormally adds reserved

Re: [PATCH] net/mlx5e: fix mlx5e_tc_tun_update_header_ipv6 dummy definition

2021-03-02 Thread Saeed Mahameed
On Mon, 2021-03-01 at 11:57 +0200, Vlad Buslov wrote: > On Thu 25 Feb 2021 at 14:54, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > The alternative implementation of this function in a header file > > is declared as a global symbol, and gets added to every .c file > > that includes it,

Re: [PATCH v6 9/9] ALSA: virtio: introduce device suspend/resume support

2021-03-02 Thread Anton Yakovlev
On 28.02.2021 13:05, Takashi Iwai wrote: On Sat, 27 Feb 2021 09:59:56 +0100, Anton Yakovlev wrote: [snip] --- a/sound/virtio/virtio_pcm.c +++ b/sound/virtio/virtio_pcm.c @@ -109,6 +109,7 @@ static int virtsnd_pcm_build_hw(struct virtio_pcm_substream *vss,

[PATCH] xattr: switch to vmemdup_user()

2021-03-02 Thread Yang Li
Replace opencoded alloc and copy with vmemdup_user() fixed the following coccicheck: ./fs/xattr.c:561:11-19: WARNING opportunity for vmemdup_user Reported-by: Abaci Robot Signed-off-by: Yang Li --- fs/xattr.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git

[PATCH] riscv: kasan: remove unneeded semicolon

2021-03-02 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./arch/riscv/mm/kasan_init.c:217:2-3: Unneeded semicolon. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- arch/riscv/mm/kasan_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/mm/kasan_init.c

Re: [PATCH V2] mm: Generalize HUGETLB_PAGE_SIZE_VARIABLE

2021-03-02 Thread Anshuman Khandual
On 3/2/21 11:13 AM, Christophe Leroy wrote: > > > Le 02/03/2021 à 06:13, Anshuman Khandual a écrit : >> HUGETLB_PAGE_SIZE_VARIABLE need not be defined for each individual >> platform subscribing it. Instead just make it generic. >> >> Cc: Michael Ellerman >> Cc: Benjamin Herrenschmidt >>

Re: [PATCH 5.4 000/340] 5.4.102-rc1 review

2021-03-02 Thread Hanjun Guo
Hi Greg, On 2021/3/2 0:09, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.4.102 release. There are 340 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. Responses

Re: [PATCHv2 3/4] coresight: etm4x: Add support to exclude kernel mode tracing

2021-03-02 Thread Sai Prakash Ranjan
On 2021-03-02 04:13, Doug Anderson wrote: Hi, On Mon, Mar 1, 2021 at 11:05 AM Sai Prakash Ranjan wrote: On production systems with ETMs enabled, it is preferred to exclude kernel mode(NS EL1) tracing for security concerns and support only userspace(NS EL0) tracing. Perf subsystem interface

Re: [PATCHv2 2/4] perf evsel: Print warning for excluding kernel mode instruction tracing

2021-03-02 Thread Sai Prakash Ranjan
Hi On 2021-03-02 04:13, Doug Anderson wrote: Hi, On Mon, Mar 1, 2021 at 11:05 AM Sai Prakash Ranjan wrote: Add a warning message to check CONFIG_EXCLUDE_KERNEL_HW_ITRACE kernel config which excludes kernel mode instruction tracing to help perf tool users identify the perf event open

Re: [RFC PATCH 1/8] RISC-V: Enable CPU_IDLE drivers

2021-03-02 Thread Anup Patel
On Fri, Feb 26, 2021 at 6:46 PM Alex Ghiti wrote: > > Hi Anup, > > Le 2/21/21 à 4:37 AM, Anup Patel a écrit : > > We force select CPU_PM and provide asm/cpuidle.h so that we can > > use CPU IDLE drivers for Linux RISC-V kernel. > > > > Signed-off-by: Anup Patel > > --- > > arch/riscv/Kconfig

Re: [PATCHv2 4/4] coresight: etm3x: Add support to exclude kernel mode tracing

2021-03-02 Thread Sai Prakash Ranjan
On 2021-03-02 04:13, Doug Anderson wrote: Hi, On Mon, Mar 1, 2021 at 11:05 AM Sai Prakash Ranjan wrote: On production systems with ETMs enabled, it is preferred to exclude kernel mode(NS EL1) tracing for security concerns and support only userspace(NS EL0) tracing. Perf subsystem interface

Re: [PATCH 29/44] tty: xtensa/iss, drop serial_version & serial_name

2021-03-02 Thread Max Filippov
On Mon, Mar 1, 2021 at 10:22 PM Jiri Slaby wrote: > > There is no need to print the information during module load. Neither to > print some artificial version. So drop these strings and a print. > > Signed-off-by: Jiri Slaby > Cc: Chris Zankel > Cc: Max Filippov > Cc:

[PATCH v8 0/6] drm/imx: Introduce i.MX8qm/qxp DPU DRM

2021-03-02 Thread Liu Ying
Hi, This is the v8 series to introduce i.MX8qm/qxp Display Processing Unit(DPU) DRM support. DPU is comprised of a blit engine for 2D graphics, a display controller and a command sequencer. Outside of DPU, optional prefetch engines can fetch data from memory prior to some DPU fetchunits of

[PATCH v8 4/6] drm/atomic: Avoid unused-but-set-variable warning on for_each_old_plane_in_state

2021-03-02 Thread Liu Ying
Artificially use 'plane' and 'old_plane_state' to avoid 'not used' warning. The precedent has already been set by other macros in the same file. Acked-by: Daniel Vetter Signed-off-by: Liu Ying --- v7->v8: * No change. v6->v7: * No change. v5->v6: * Fix commit message typo -

[PATCH v8 2/6] dt-bindings: display: imx: Add i.MX8qxp/qm PRG binding

2021-03-02 Thread Liu Ying
This patch adds bindings for i.MX8qxp/qm Display Prefetch Resolve Gasket. Reviewed-by: Rob Herring Signed-off-by: Liu Ying --- v7->v8: * No change. v6->v7: * No change. v5->v6: * No change. v4->v5: * No change. v3->v4: * Improve compatible property by using enum instead of oneOf+const.

Re: [PATCH] net: 9p: free what was emitted when read count is 0

2021-03-02 Thread Dominique Martinet
Jisheng Zhang wrote on Tue, Mar 02, 2021 at 03:39:40PM +0800: > > Rather than make an exception for 0, how about just removing the if as > > follow ? > > IMHO, we may need to keep the "if" in current logic. When count > reaches zero, we need to break the "while(iov_iter_count(to))" loop, so >

Re: [PATCH 1/4] soc: mediatek: pm-domains: Add a meaningful power domain name

2021-03-02 Thread Hsin-Yi Wang
On Fri, Feb 26, 2021 at 1:50 AM Enric Balletbo i Serra wrote: > > Add the power domains names to the power domain struct so we > have meaningful name for every power domain. This also removes the > following debugfs error message. > > [2.242068] debugfs: Directory 'power-domain' with parent

Re: [PATCH 4/4] soc: mediatek: pm-domains: Add a power domain names for mt8167

2021-03-02 Thread Hsin-Yi Wang
On Fri, Feb 26, 2021 at 1:50 AM Enric Balletbo i Serra wrote: > > Add the power domains names for the mt8167 SoC. > > Fixes: 207f13b419a6 ("soc: mediatek: pm-domains: Add support for mt8167") > Signed-off-by: Enric Balletbo i Serra Reviewed-by: Hsin-Yi Wang > --- > >

Re: [PATCH 2/4] soc: mediatek: pm-domains: Add a power domain names for mt8183

2021-03-02 Thread Hsin-Yi Wang
On Fri, Feb 26, 2021 at 1:50 AM Enric Balletbo i Serra wrote: > > Add the power domains names for the mt8183 SoC. This removes the debugfs > errors like the following: > > debugfs: Directory 'power-domain' with parent 'pm_genpd' already present! > > Fixes: eb9fa767fbe1 ("soc: mediatek:

Re: [PATCH 3/4] soc: mediatek: pm-domains: Add a power domain names for mt8192

2021-03-02 Thread Hsin-Yi Wang
On Fri, Feb 26, 2021 at 1:50 AM Enric Balletbo i Serra wrote: > > Add the power domains names for the mt8192 SoC. > > Fixes: a49d5e7a89d6 ("soc: mediatek: pm-domains: Add support for mt8192") > Signed-off-by: Enric Balletbo i Serra Reviewed-by: Hsin-Yi Wang > --- > >

linux-next-20210302: build problems with certs

2021-03-02 Thread Randy Dunlap
I'm just guessing here, but I think that some of the certs build infrastructure doesn't handle O=subdir, which is what I use all of the time. $ mkdir build64 $ make ARCH=x86_64 O=build64 all EXTRACT_CERTS ../ At main.c:154: - SSL error:0909006C:PEM routines:get_name:no start line:

[PATCH] hwmon: (nct6883) Support NCT6886d

2021-03-02 Thread Jiqi Li
Add support for NCT6886d chip used in the Lenovo P620. Signed-off-by: Jiqi Li Reviewed-by: Mark Pearson --- drivers/hwmon/nct6683.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/nct6683.c b/drivers/hwmon/nct6683.c index a23047a3bfe2..3de7bd146965

回复: [PATCH] hwmon: (nct6883) Support NCT6886d

2021-03-02 Thread Jiqi JQ9 Li
Sorry, Please ignore this email as some typos. -邮件原件- 发件人: Jiqi JQ9 Li 发送时间: 2021年3月2日 14:12 收件人: jdelv...@suse.com; li...@roeck-us.net; linux-hw...@vger.kernel.org; linux-kernel@vger.kernel.org 抄送: Mark RH Pearson ; Jiqi JQ9 Li 主题: [PATCH] hwmon: (nct6883) Support NCT6886d Add

  1   2   3   4   5   6   7   8   9   10   >