Re: [PATCH] tee: optee: add invoke_fn tracepoints

2021-02-23 Thread Jens Wiklander
Hi Jisheng, On Wed, Feb 10, 2021 at 7:44 AM Jisheng Zhang wrote: > > Add tracepoints to retrieve information about the invoke_fn. This would > help to measure how many invoke_fn are triggered and how long it takes > to complete one invoke_fn call. > > Signed-off-by: Jisheng Zhang > --- > > Since

Re: [PATCH 1/1] net: fec: ptp: avoid register access when ipg clock is disabled

2021-02-23 Thread Heiko Thiery
HI Jakub, Am Di., 23. Feb. 2021 um 04:00 Uhr schrieb Jakub Kicinski : > > On Sat, 20 Feb 2021 07:56:55 +0100 Heiko Thiery wrote: > > When accessing the timecounter register on an i.MX8MQ the kernel hangs. > > This is only the case when the interface is down. This can be reproduced > > by reading w

[PATCH v2] watchdog: bcm7038_wdt: add big endian support

2021-02-23 Thread Álvaro Fernández Rojas
bcm7038_wdt can be used on bmips big endian (bcm63xx) devices too. Signed-off-by: Álvaro Fernández Rojas --- v2: use approach indicated by Florian (same as bcmgenet.c) drivers/watchdog/bcm7038_wdt.c | 31 +-- 1 file changed, 25 insertions(+), 6 deletions(-) diff --

RE: RE: [PATCH v22 2/4] scsi: ufs: L2P map management for HPB read

2021-02-23 Thread Daejun Park
> +/* > > + * This function will parse recommended active subregion information in > > sense > > + * data field of response UPIU with SAM_STAT_GOOD state. > > + */ > > +void ufshpb_rsp_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) > > +{ > > + struct ufshpb_lu *hpb; > > + struct sc

Re: [PATCH v4 1/4] PCI: Introduce pcim_alloc_irq_vectors()

2021-02-23 Thread Robert Richter
On 22.02.21 23:14:15, Dejin Zheng wrote: > On Mon, Feb 22, 2021 at 11:56:08AM +0100, Robert Richter wrote: > > On 20.02.21 00:46:49, Dejin Zheng wrote: > > > > On 18.02.21 23:04:55, Dejin Zheng wrote: > > > > > > > + if (!dr || !dr->enabled) > > > here checks whether the pci device is enabled.

RE: RE: [PATCH v22 2/4] scsi: ufs: L2P map management for HPB read

2021-02-23 Thread Daejun Park
> > + if (!ufshpb_is_hpb_rsp_valid(hba, lrbp, rsp_field)) > > + return; > > + > > + hpb->stats.rb_noti_cnt++; > > > + switch (rsp_field->hpb_op) { > > + case HPB_RSP_NONE: > > + /* nothing to do */ > > + break; > Maybe checks this

RE: Re: [PATCH v22 4/4] scsi: ufs: Add HPB 2.0 support

2021-02-23 Thread Daejun Park
> > +} > > +static DEVICE_ATTR_RW(requeue_timeout_ms); > > + > > +static struct attribute *hpb_dev_param_attrs[] = { > > + &dev_attr_requeue_timeout_ms.attr, > > +}; > > here, you lost a NULL member at the end of attribute struct. > OK, I will. Thanks, Daejun

RE: RE: [PATCH v22 4/4] scsi: ufs: Add HPB 2.0 support

2021-02-23 Thread Daejun Park
> > @@ -7447,8 +7452,14 @@ static int ufs_get_device_desc(struct ufs_hba *hba) > > > > if (dev_info->wspecversion >= UFS_DEV_HPB_SUPPORT_VERSION && > > (b_ufs_feature_sup & UFS_DEV_HPB_SUPPORT)) { > > - dev_info->hpb_enabled = true; > > - ufshpb_get_

Re: [PATCH v3 8/9] dt-bindings: media: nxp,imx8mq-vpu: Update bindings

2021-02-23 Thread Benjamin Gaignard
Le 23/02/2021 à 01:34, Rob Herring a écrit : On Mon, Feb 22, 2021 at 01:24:05PM +0100, Benjamin Gaignard wrote: The current bindings seem to make the assumption that the two VPUs hardware blocks (G1 and G2) are only one set of registers. After implementing the VPU reset driver and G2 decoder d

Re: [PATCH V4 1/3] virtio: don't prompt CONFIG_VIRTIO_PCI_MODERN

2021-02-23 Thread Arnd Bergmann
On Tue, Feb 23, 2021 at 7:19 AM Jason Wang wrote: > > We used to prompt CONFIG_VIRTIO_PCI_MODERN to user which may bring a > lot of confusion. E.g it may break various default configs which want > virtio devices. > > So this patch fixes this by hiding the prompot and documenting the > dependency.

Re: [PATCH v6 1/1] mm/page_alloc.c: refactor initialization of struct page for holes in memory layout

2021-02-23 Thread David Hildenbrand
On 22.02.21 11:57, Mike Rapoport wrote: From: Mike Rapoport There could be struct pages that are not backed by actual physical memory. This can happen when the actual memory bank is not a multiple of SECTION_SIZE or when an architecture does not register memory holes reserved by the firmware as

WARNING in hid_alloc_report_buf

2021-02-23 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:f40ddce8 Linux 5.11 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12c5a17f50 kernel config: https://syzkaller.appspot.com/x/.config?x=4b919ebed7b4902 dashboard link: https://syzkaller.appspot.com

Re: [PATCH 5.10 03/29] vdpa_sim: store parsed MAC address in a buffer

2021-02-23 Thread Stefano Garzarella
On Mon, Feb 22, 2021 at 08:54:15PM +0100, Pavel Machek wrote: Hi! From: Stefano Garzarella commit cf1a3b35382c10ce315c32bd2b3d7789897fbe13 upstream. As preparation for the next patches, we store the MAC address, parsed during the vdpasim_create(), in a buffer that will be used to fill 'confi

Re: [PATCH v3] erofs: support adjust lz4 history window size

2021-02-23 Thread Gao Xiang
On Tue, Feb 23, 2021 at 03:44:18PM +0800, Gao Xiang wrote: > On Tue, Feb 23, 2021 at 03:31:19PM +0800, Huang Jianan via Linux-erofs wrote: > > lz4 uses LZ4_DISTANCE_MAX to record history preservation. When > > using rolling decompression, a block with a higher compression > > ratio will cause a lar

Re: [PATCH v6 0/2] add support for GPIO or IRQ based evemt counter

2021-02-23 Thread William Breathitt Gray
On Tue, Feb 23, 2021 at 08:16:30AM +0100, Oleksij Rempel wrote: > Hi William, > > On Mon, Feb 22, 2021 at 10:48:56AM +0900, William Breathitt Gray wrote: > > On Tue, Feb 16, 2021 at 09:13:54AM +0100, Oleksij Rempel wrote: > > > changes v6: > > > - rename it to interrupt-counter > > > > Hi Oleksij

[PATCH 0/2] leds: bcm63x8: improve read and write functions

2021-02-23 Thread Álvaro Fernández Rojas
This code is proven to work in BMIPS BE/LE and ARM BE/LE. See bcm2835-rng and bcmgenet.c: https://github.com/torvalds/linux/blob/3b9cdafb5358eb9f3790de2f728f765fef100731/drivers/char/hw_random/bcm2835-rng.c#L42-L60 https://github.com/torvalds/linux/blob/3b9cdafb5358eb9f3790de2f728f765fef100731/driv

[PATCH 2/2] leds: bcm6358: improve write and read functions

2021-02-23 Thread Álvaro Fernández Rojas
This is proven to work in BMIPS BE/LE and ARM BE/LE, as used in bcm2835-rng and bcmgenet drivers. Both should also be inline functions. Signed-off-by: Álvaro Fernández Rojas --- drivers/leds/leds-bcm6358.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --

[PATCH 1/2] leds: bcm6328: improve write and read functions

2021-02-23 Thread Álvaro Fernández Rojas
This is proven to work in BMIPS BE/LE and ARM BE/LE, as used in bcm2835-rng and bcmgenet drivers. Both should also be inline functions. Signed-off-by: Álvaro Fernández Rojas --- drivers/leds/leds-bcm6328.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --

Re: [PATCH V4 3/3] vdpa: introduce virtio pci driver

2021-02-23 Thread Stefano Garzarella
On Tue, Feb 23, 2021 at 02:19:05PM +0800, Jason Wang wrote: This patch introduce a vDPA driver for virtio-pci device. It bridges the virtio-pci control command to the vDPA bus. This will be used for features prototyping and testing. Note that get/restore virtqueue state is not supported which ne

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

2021-02-23 Thread Jens Wiklander
On Mon, Feb 22, 2021 at 06:15:08PM +0530, Allen Pais wrote: > > > On Wed, 17 Feb 2021 14:57:12 +0530, Allen Pais wrote: > > > - /* > > > - * Ask OP-TEE to free all cached shared memory objects to decrease > > > - * reference counters and also avoid wild pointers in secure world > > > - * into t

[PATCH mm] kfence: report sensitive information based on no_hash_pointers

2021-02-23 Thread Marco Elver
We cannot rely on CONFIG_DEBUG_KERNEL to decide if we're running a "debug kernel" where we can safely show potentially sensitive information in the kernel log. Instead, simply rely on the newly introduced "no_hash_pointers" to print unhashed kernel pointers, as well as decide if our reports can in

[PATCH] media/usb:Remove superfluous "breaks"

2021-02-23 Thread dingsenjie
From: dingsenjie Remove superfluous "breaks", as there is a "return" before them. Signed-off-by: dingsenjie --- drivers/media/usb/pwc/pwc-if.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/media/usb/pwc/pwc-if.c b/drivers/media/usb/pwc/pwc-if.c index 6186963..f48c86c 10064

[PATCH 1/2] arm64: uprobe: Return EOPNOTSUPP for AARCH32 instruction probing

2021-02-23 Thread He Zhe
As stated in linux/errno.h, ENOTSUPP should never be seen by user programs. When we set up uprobe with 32-bit perf and arm64 kernel, we would see the following vague error without useful hint. The sys_perf_event_open() syscall returned with 524 (INTERNAL ERROR: strerror_r(524, [buf], 128)=22) Use

[PATCH 2/2] perf tools: Improve EOPNOTSUPP error reporting

2021-02-23 Thread He Zhe
There may be multiple reasons for EOPNOTSUPP. Sometimes we cannot determine which one it is. For example, when we set up uprobe with 32-bit perf and arm64 kernel on some hardware that does not support sampling/overflow-interrupts, $ perf probe -x /lib/libc.so.6 malloc $ perf record -e probe_libc:m

RE: [PATCH v22 3/4] scsi: ufs: Prepare HPB read for cached sub-region

2021-02-23 Thread Avri Altman
> + err = ufshpb_fill_ppn_from_page(hpb, srgn->mctx, srgn_offset, 1, > &ppn); > + spin_unlock_irqrestore(&hpb->rgn_state_lock, flags); > + if (unlikely(err < 0)) { > + /* > +* In this case, the region state is active, > +* but the pp

RE: RE: RE: [PATCH v22 2/4] scsi: ufs: L2P map management for HPB read

2021-02-23 Thread Daejun Park
> +/* > > + * This function will parse recommended active subregion information in > > sense > > + * data field of response UPIU with SAM_STAT_GOOD state. > > + */ > > +void ufshpb_rsp_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) > > +{ > > +   struct ufshpb_lu *hpb; > > +   struct sc

Re: [PATCH 1/2] leds: bcm6328: improve write and read functions

2021-02-23 Thread Pavel Machek
On Tue 2021-02-23 09:17:31, Álvaro Fernández Rojas wrote: > This is proven to work in BMIPS BE/LE and ARM BE/LE, as used in bcm2835-rng > and bcmgenet drivers. > Both should also be inline functions. > -#ifdef CONFIG_CPU_BIG_ENDIAN > - iowrite32be(data, reg); > -#else > - writel(data, re

[PATCH] perf/core: make perf_pmu_snapshot_aux static

2021-02-23 Thread Jiapeng Chong
Fix the following sparse warning: kernel/events/core.c:6524:6: warning: symbol 'perf_pmu_snapshot_aux' was not declared. Should it be static? Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- kernel/events/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kerne

[PATCH] gpiolib: acpi: Add missing IRQF_ONESHOT

2021-02-23 Thread Yang Li
fixed the following coccicheck: ./drivers/gpio/gpiolib-acpi.c:176:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Make sure threaded IRQs without a primary handler are always request with IRQF_ONESHOT Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/

RE: [PATCH] scripts/gdb: document lx_current is only supported by x86

2021-02-23 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Jan Kiszka [mailto:jan.kis...@siemens.com] > Sent: Tuesday, February 23, 2021 8:27 PM > To: Song Bao Hua (Barry Song) ; > kieran.bing...@ideasonboard.com; cor...@lwn.net; linux-...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org; linux...@openeuler.org > Su

[PATCH] media/usb:Remove superfluous "breaks" in the ttusb_dec.c

2021-02-23 Thread dingsenjie
From: dingsenjie Remove superfluous "breaks", as there is a "return" before them. Signed-off-by: dingsenjie --- drivers/media/usb/ttusb-dec/ttusb_dec.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/media/usb/ttusb-dec/ttusb_dec.c b/drivers/media/usb/ttusb-dec/ttusb_dec.c inde

Re: [PATCH 1/2] leds: bcm6328: improve write and read functions

2021-02-23 Thread Álvaro Fernández Rojas
Hi Pavel, > El 23 feb 2021, a las 9:34, Pavel Machek escribió: > > On Tue 2021-02-23 09:17:31, Álvaro Fernández Rojas wrote: >> This is proven to work in BMIPS BE/LE and ARM BE/LE, as used in bcm2835-rng >> and bcmgenet drivers. >> Both should also be inline functions. > > > >> -#ifdef CONFIG

RE: RE: [PATCH v22 3/4] scsi: ufs: Prepare HPB read for cached sub-region

2021-02-23 Thread Daejun Park
> > + err = ufshpb_fill_ppn_from_page(hpb, srgn->mctx, srgn_offset, 1, > > &ppn); > > + spin_unlock_irqrestore(&hpb->rgn_state_lock, flags); > > + if (unlikely(err < 0)) { > > + /* > > +* In this case, the region state is active, > > +

Re: [PATCH v2] rtw88: 8822ce: fix wifi disconnect after S3/S4 on HONOR laptop

2021-02-23 Thread Pkshih
On Tue, 2021-02-23 at 09:08 +0200, Kalle Valo wrote: > Pkshih writes: > > >> > --- a/drivers/net/wireless/realtek/rtw88/rtw8822ce.c > >> > +++ b/drivers/net/wireless/realtek/rtw88/rtw8822ce.c > >> > @@ -25,7 +25,6 @@ static struct pci_driver rtw_8822ce_driver = { > >> >  .id_table = rtw_8

RE: RE: RE: [PATCH v22 2/4] scsi: ufs: L2P map management for HPB read

2021-02-23 Thread Avri Altman
> > > +/* > > > + * This function will parse recommended active subregion information in > > > sense > > > + * data field of response UPIU with SAM_STAT_GOOD state. > > > + */ > > > +void ufshpb_rsp_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) > > > +{ > > > + struct ufshpb_lu *hpb; >

[PATCH] drm/ttm/ttm_bo: make ttm_bo_glob_use_count static

2021-02-23 Thread Jiapeng Chong
Fix the following sparse warning: drivers/gpu/drm/ttm/ttm_bo.c:53:10: warning: symbol 'ttm_bo_glob_use_count' was not declared. Should it be static? Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/ttm/ttm_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

RE: RE: RE: RE: [PATCH v22 2/4] scsi: ufs: L2P map management for HPB read

2021-02-23 Thread Daejun Park
> > > > +/* > > > > + * This function will parse recommended active subregion information in > > > > sense > > > > + * data field of response UPIU with SAM_STAT_GOOD state. > > > > + */ > > > > +void ufshpb_rsp_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) > > > > +{ > > > > + struct ufs

Re: [PATCH net v2 2/2] can: fix ref count warning if socket was closed before skb was cloned

2021-02-23 Thread Eric Dumazet
On Tue, Feb 23, 2021 at 6:53 AM Oleksij Rempel wrote: > > There are two ref count variables controlling the free()ing of a socket: > - struct sock::sk_refcnt - which is changed by sock_hold()/sock_put() > - struct sock::sk_wmem_alloc - which accounts the memory allocated by > the skbs in the sen

Re: general protection fault in vmx_vcpu_run (2)

2021-02-23 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:a99163e9 Merge tag 'devicetree-for-5.12' of git://git.kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15cd357f50 kernel config: https://syzkaller.appspot.com/x/.config?x=4911607

[PATCH] tty/serial:Remove superfluous "breaks"

2021-02-23 Thread dingsenjie
From: dingsenjie Remove superfluous "breaks", as there is a "return" before them. Signed-off-by: dingsenjie --- drivers/tty/serial/imx.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 425624d..6c1c31a 100644 --- a/drivers/tty/s

Re: [PATCH 1/2] leds: bcm6328: improve write and read functions

2021-02-23 Thread Pavel Machek
Hi! > >> This is proven to work in BMIPS BE/LE and ARM BE/LE, as used in bcm2835-rng > >> and bcmgenet drivers. > >> Both should also be inline functions. > > > > > > > >> -#ifdef CONFIG_CPU_BIG_ENDIAN > >> - iowrite32be(data, reg); > >> -#else > >> - writel(data, reg); > >> -#endif > >> + /

Re: [RFC PATCH v5 0/4] add simple copy support

2021-02-23 Thread Selva Jove
Thanks Su Yue. I'll update the link in the next series. On Mon, Feb 22, 2021 at 12:23 PM Su Yue wrote: > > > On Fri 19 Feb 2021 at 20:45, SelvaKumar S > wrote: > > > This patchset tries to add support for TP4065a ("Simple Copy > > Command"), > > v2020.05.04 ("Ratified") > > > > The Specification

Re: [PATCH v2] printk: avoid prb_first_valid_seq() where possible

2021-02-23 Thread Petr Mladek
On Thu 2021-02-11 18:37:52, John Ogness wrote: > If message sizes average larger than expected (more than 32 > characters), the data_ring will wrap before the desc_ring. Once the > data_ring wraps, it will start invalidating descriptors. These > invalid descriptors hang around until they are eventu

[PATCH] Input: st1232 - Fix NORMAL vs. IDLE state handling

2021-02-23 Thread Geert Uytterhoeven
NORMAL (0x0) and IDLE (0x4) are really two different states. Hence you cannot check for both using a bitmask, as that checks for IDLE only, breaking operation for devices that are in NORMAL state. Fix the wait function to report either state as ready. Fixes: 6524d8eac258452e ("Input: st1232 - ad

Re: [PATCH] kernel: debug: Handle breakpoints in kernel .init.text section

2021-02-23 Thread Sumit Garg
Thanks Doug for your comments. On Tue, 23 Feb 2021 at 05:28, Doug Anderson wrote: > > Hi, > > On Fri, Feb 19, 2021 at 12:03 AM Sumit Garg wrote: > > > > Currently breakpoints in kernel .init.text section are not handled > > correctly while allowing to remove them even after corresponding pages >

Re: [PATCH 1/2] leds: bcm6328: improve write and read functions

2021-02-23 Thread Álvaro Fernández Rojas
> El 23 feb 2021, a las 9:58, Pavel Machek escribió: > > Hi! > This is proven to work in BMIPS BE/LE and ARM BE/LE, as used in bcm2835-rng and bcmgenet drivers. Both should also be inline functions. >>> >>> >>> -#ifdef CONFIG_CPU_BIG_ENDIAN - iowrite32be(data, reg

RE: RE: [PATCH v22 3/4] scsi: ufs: Prepare HPB read for cached sub-region

2021-02-23 Thread Avri Altman
> > > > > + err = ufshpb_fill_ppn_from_page(hpb, srgn->mctx, srgn_offset, 1, > &ppn); > > > + spin_unlock_irqrestore(&hpb->rgn_state_lock, flags); > > > + if (unlikely(err < 0)) { > > > + /* > > > +* In this case, the region state is active, > > > +

Re: [PATCH v10 2/5] sched: CGroup tagging interface for core scheduling

2021-02-23 Thread Peter Zijlstra
On Mon, Feb 22, 2021 at 11:00:37PM -0500, Chris Hyser wrote: > On 1/22/21 8:17 PM, Joel Fernandes (Google) wrote: > While trying to test the new prctl() code I'm working on, I ran into a bug I > chased back into this v10 code. Under a fair amount of stress, when the > function __sched_core_update_c

[PATCH] drivers: ipa: Add missing IRQF_ONESHOT

2021-02-23 Thread Yang Li
fixed the following coccicheck: ./drivers/net/ipa/ipa_smp2p.c:186:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Make sure threaded IRQs without a primary handler are always request with IRQF_ONESHOT Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/

[PATCH] banalabs: Switch to using the new API kobj_to_dev()

2021-02-23 Thread Yang Li
fixed the following coccicheck: ./drivers/misc/habanalabs/common/sysfs.c:347:60-61: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/misc/habanalabs/common/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/h

Re: [PATCH v2 00/25] Apple M1 SoC platform bring-up

2021-02-23 Thread Hector Martin
On 22/02/2021 05.41, Andy Shevchenko wrote: Hector, I would like to be cc’ed in the next version Noted, thanks! -- Hector Martin (mar...@marcan.st) Public Key: https://mrcn.st/pub

[PATCH] mm: memcontrol: fix get_active_memcg return value

2021-02-23 Thread Muchun Song
We use a global percpu int_active_memcg variable to store the remote memcg when we are in the interrupt context. But get_active_memcg always return the current->active_memcg or root_mem_cgroup. The remote memcg (set in the interrupt context) is ignored. This is not what we want. So fix it. Fixes:

[PATCH] hwmon: Switch to using the new API kobj_to_dev()

2021-02-23 Thread Yang Li
fixed the following coccicheck: ./drivers/hwmon/hwmon.c:82:60-61: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/hwmon/hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c ind

Re: [RFC PATCH v5 0/4] add simple copy support

2021-02-23 Thread Selva Jove
Dave, copy_file_range() is work under progress. FALLOC_FL_UNSHARE of fallocate() use case sounds interesting. I will try to address both of them in the next series. Adding SCSI_XCOPY() support is not in the scope of this patchset. However blkdev_issue_copy() interface is made generic so that it

Re: [PATCH] drm/ttm/ttm_bo: make ttm_bo_glob_use_count static

2021-02-23 Thread Christian König
Am 23.02.21 um 09:54 schrieb Jiapeng Chong: Fix the following sparse warning: drivers/gpu/drm/ttm/ttm_bo.c:53:10: warning: symbol 'ttm_bo_glob_use_count' was not declared. Should it be static? IIRC we already have a patch for this on the mailing list and the mutex can be static as well. Chr

Re: [PATCH] Revert "ARM: dts: exynos: Remove 'opp-shared' from Exynos4412 bus OPP-tables"

2021-02-23 Thread Marek Szyprowski
Hi Markus, On 22.02.2021 10:54, Markus Reichl wrote: > This reverts commit a23beead41a18c3be3ca409cb52f35bc02e601b9. > > I'm running an Odroid-X2 as headless 24/7 server. > With plain stable 5.10.1 I had 54 up days without problems. > With opp-shared removed on kernels before and now on 5.11 > my

[PATCH] power: supply: Switch to using the new API kobj_to_dev()

2021-02-23 Thread Yang Li
fixed the following coccicheck: ./drivers/power/supply/ds2760_battery.c:201:60-61: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/power/supply/ds2760_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/su

RE: RE: [PATCH v22 3/4] scsi: ufs: Prepare HPB read for cached sub-region

2021-02-23 Thread Avri Altman
> > > > + err = ufshpb_fill_ppn_from_page(hpb, srgn->mctx, srgn_offset, 1, > > &ppn); > > > > + spin_unlock_irqrestore(&hpb->rgn_state_lock, flags); > > > > + if (unlikely(err < 0)) { > > > > + /* > > > > +* In this case, the region state is active, >

Re: [PATCH v22 4/4] scsi: ufs: Add HPB 2.0 support

2021-02-23 Thread Bean Huo
On Mon, 2021-02-22 at 18:31 +0900, Daejun Park wrote: > } > } > @@ -532,8 +870,8 @@ static int ufshpb_execute_map_req(struct > ufshpb_lu *hpb, > if (unlikely(last)) > mem_size = hpb->last_srgn_entries * HPB_ENTRY_SIZE; > > - ufshpb_set_read_bu

[PATCH] mm: memcontrol: fix slub memory accounting

2021-02-23 Thread Muchun Song
SLUB currently account kmalloc() and kmalloc_node() allocations larger than order-1 page per-node. But it forget to update the per-memcg vmstats. So it can lead to inaccurate statistics of "slab_unreclaimable" which is from memory.stat. Fix it by using mod_lruvec_page_state instead of mod_node_page

Re: [PATCH] vdpa/mlx5: set_features should allow reset to zero

2021-02-23 Thread Michael S. Tsirkin
On Mon, Feb 22, 2021 at 09:09:28AM -0800, Si-Wei Liu wrote: > > > On 2/21/2021 8:14 PM, Jason Wang wrote: > > > > On 2021/2/19 7:54 下午, Si-Wei Liu wrote: > > > Commit 452639a64ad8 ("vdpa: make sure set_features is invoked > > > for legacy") made an exception for legacy guests to reset > > > feat

[PATCH] pcmcia: Switch to using the new API kobj_to_dev()

2021-02-23 Thread Yang Li
fixed the following coccicheck: ./drivers/pcmcia/cistpl.c:1584:53-54: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/pcmcia/cistpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pcmcia/cistpl.c b/drivers/pcmcia/ci

Re: [PATCH v16 4/9] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page

2021-02-23 Thread Oscar Salvador
On Mon, Feb 22, 2021 at 04:00:27PM -0800, Mike Kravetz wrote: > > -static void update_and_free_page(struct hstate *h, struct page *page) > > +static int update_and_free_page(struct hstate *h, struct page *page) > > + __releases(&hugetlb_lock) __acquires(&hugetlb_lock) > > { > > int i; > > +

Re: [PATCH v3 2/8] xen/events: don't unmask an event channel when an eoi is pending

2021-02-23 Thread Ross Lagerwall
On 2021-02-19 15:40, Juergen Gross wrote: > An event channel should be kept masked when an eoi is pending for it. > When being migrated to another cpu it might be unmasked, though. > > In order to avoid this keep three different flags for each event channel > to be able to distinguish "normal" mas

Re: [PATCH] vdpa/mlx5: set_features should allow reset to zero

2021-02-23 Thread Michael S. Tsirkin
On Mon, Feb 22, 2021 at 08:05:26AM +0200, Eli Cohen wrote: > On Sun, Feb 21, 2021 at 04:52:05PM -0500, Michael S. Tsirkin wrote: > > On Sun, Feb 21, 2021 at 04:44:37PM +0200, Eli Cohen wrote: > > > On Fri, Feb 19, 2021 at 06:54:58AM -0500, Si-Wei Liu wrote: > > > > Commit 452639a64ad8 ("vdpa: make

Re: [PATCH v2] rtw88: 8822ce: fix wifi disconnect after S3/S4 on HONOR laptop

2021-02-23 Thread Kalle Valo
Pkshih writes: > On Tue, 2021-02-23 at 09:08 +0200, Kalle Valo wrote: >> Pkshih writes: >> >> >> > --- a/drivers/net/wireless/realtek/rtw88/rtw8822ce.c >> >> > +++ b/drivers/net/wireless/realtek/rtw88/rtw8822ce.c >> >> > @@ -25,7 +25,6 @@ static struct pci_driver rtw_8822ce_driver = { >> >> >  

Re: [PATCH] pcmcia: Switch to using the new API kobj_to_dev()

2021-02-23 Thread Dominik Brodowski
Am Tue, Feb 23, 2021 at 05:26:50PM +0800 schrieb Yang Li: > fixed the following coccicheck: > ./drivers/pcmcia/cistpl.c:1584:53-54: WARNING opportunity for > kobj_to_dev() > > Reported-by: Abaci Robot > Signed-off-by: Yang Li Sorry, an equivalent patch is already in pcmcia-next and about to be

Re: [PATCH v5 11/22] media: camss: Add support for CSIPHY hardware version Titan 170

2021-02-23 Thread Robert Foss
On Sun, 21 Feb 2021 at 19:17, Andrey Konovalov wrote: > > Hi Robert, > > Thank you for your patch! > > On 17.02.2021 14:21, Robert Foss wrote: > > Add register definitions for version 170 of the Titan architecture > > and implement support for the CSIPHY subdevice. > > > > Signed-off-by: Robert Fo

[PATCH] mfd: lm3533: Switch to using the new API kobj_to_dev()

2021-02-23 Thread Yang Li
fixed the following coccicheck: ./drivers/mfd/lm3533-core.c:361:60-61: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/mfd/lm3533-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/lm3533-core.c b/drivers/mfd/

Re: [PATCH v2] x86/mce: fix wrong no-return-ip logic in do_machine_check()

2021-02-23 Thread Borislav Petkov
On Tue, Feb 23, 2021 at 10:27:55AM +0800, Aili Yao wrote: > When Guest access one address with UE error, it will exit guest mode, > the host will do the recovery job, and then one SIGBUS is send to > the VCPU and qemu will catch the signal, there is only address and > error level no RIPV in signal,

Re: [PATCH 3/3] fastrpc: remove redundant fastrpc_map_create() call

2021-02-23 Thread Srinivas Kandagatla
On 22/02/2021 13:53, Jonathan Marek wrote: On 2/22/21 7:37 AM, Srinivas Kandagatla wrote: On 18/02/2021 03:20, Jonathan Marek wrote: fastrpc_internal_invoke() will call fastrpc_map_create, so there is no point in having it called here. This does change the behavior somewhat as fastrpc_int

Re: [PATCH v2] kexec: move machine_kexec_post_load() to public interface

2021-02-23 Thread Will Deacon
On Mon, Feb 22, 2021 at 11:16:38PM -0600, Eric W. Biederman wrote: > Will Deacon writes: > > > On Fri, 19 Feb 2021 14:51:42 -0500, Pavel Tatashin wrote: > >> machine_kexec_post_load() is called after kexec load is finished. It must > >> declared in public header not in kexec_internal.h > >> > >>

Re: [PATCH net] net: l2tp: reduce log level when passing up invalid packets

2021-02-23 Thread Tom Parkin
On Mon, Feb 22, 2021 at 17:40:16 +0100, Matthias Schiffer wrote: > On 2/22/21 12:49 PM, Tom Parkin wrote: > > On Sat, Feb 20, 2021 at 10:56:33 +0100, Matthias Schiffer wrote: > > > On 2/19/21 9:12 PM, Tom Parkin wrote: > > > > On Fri, Feb 19, 2021 at 20:06:15 +0100, Matthias Schiffer wrote: > >

Re: mainline/master bisection: baseline.login on meson-sm1-khadas-vim3l

2021-02-23 Thread Guillaume Tucker
Hello Marc, Please see the bisection report below about a boot failure on meson-sm1-khadas-vim3l on mainline. It seems to only be affecting kernels built with CONFIG_ARM64_64K_PAGES=y. Reports aren't automatically sent to the public while we're trialing new bisection features on kernelci.org but

Re: [PATCH net v1 3/3] [RFC] mac80211: ieee80211_store_ack_skb(): make use of skb_clone_sk_optional()

2021-02-23 Thread Johannes Berg
On Mon, 2021-02-22 at 19:51 +0100, Marc Kleine-Budde wrote: > On 22.02.2021 17:30:59, Johannes Berg wrote: > > On Mon, 2021-02-22 at 16:12 +0100, Oleksij Rempel wrote: > > > This code is trying to clone the skb with optional skb->sk. But this > > > will fail to clone the skb if socket was closed ju

[PATCH] include/linux: remove duplicate description

2021-02-23 Thread zuoqilin1
From: zuoqilin linux/spinlock.h Signed-off-by: zuoqilin --- include/linux/spinlock.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/spinlock.h b/include/linux/spinlock.h index 7989784..732150e 100644 --- a/include/linux/spinlock.h +++ b/include/linux/spinlock.h @@ -43,8 +43

Re: [PATCH net] net: l2tp: reduce log level when passing up invalid packets

2021-02-23 Thread Tom Parkin
On Mon, Feb 22, 2021 at 14:31:38 -0800, Jakub Kicinski wrote: > On Mon, 22 Feb 2021 17:40:16 +0100 Matthias Schiffer wrote: > > >> This will not be sufficient for my usecase: To stay compatible with older > > >> versions of fastd, I can't set the T flag in the first packet of the > > >> handshake,

Re: [PATCH] vdpa/mlx5: set_features should allow reset to zero

2021-02-23 Thread Jason Wang
On 2021/2/23 下午5:25, Michael S. Tsirkin wrote: On Mon, Feb 22, 2021 at 09:09:28AM -0800, Si-Wei Liu wrote: On 2/21/2021 8:14 PM, Jason Wang wrote: On 2021/2/19 7:54 下午, Si-Wei Liu wrote: Commit 452639a64ad8 ("vdpa: make sure set_features is invoked for legacy") made an exception for legacy

Re: [PATCH v2 1/1] s390/vfio-ap: fix circular lockdep when setting/clearing crypto masks

2021-02-23 Thread Halil Pasic
On Mon, 15 Feb 2021 20:15:47 -0500 Tony Krowiak wrote: > This patch fixes a circular locking dependency in the CI introduced by > commit f21916ec4826 ("s390/vfio-ap: clean up vfio_ap resources when KVM > pointer invalidated"). The lockdep only occurs when starting a Secure > Execution guest. Cryp

Re: [PATCH v6 1/1] mm/page_alloc.c: refactor initialization of struct page for holes in memory layout

2021-02-23 Thread Mike Rapoport
On Tue, Feb 23, 2021 at 09:04:19AM +0100, David Hildenbrand wrote: > On 22.02.21 11:57, Mike Rapoport wrote: > > From: Mike Rapoport > > > > There could be struct pages that are not backed by actual physical memory. > > This can happen when the actual memory bank is not a multiple of > > SECTION_

Re: [PATCH 2/5] MAINTAINERS: remove linux-mips.org references

2021-02-23 Thread Philippe Mathieu-Daudé
On Mon, Feb 22, 2021 at 5:22 PM Lukas Bulwahn wrote: > > The domain lookup for linux-mips.org fails for quite some time now. Hence, > webpages, the patchwork instance and Ralf Baechle's email there is not > reachable anymore. > > Remove all references of webpages from linux-mips.org in MAINTAINERS

Re: [PATCH 3/5] arch: mips: update references to current linux-mips list

2021-02-23 Thread Philippe Mathieu-Daudé
On Mon, Feb 22, 2021 at 5:22 PM Lukas Bulwahn wrote: > > The linux-mips mailing list now lives at kernel.org. Update all references > in the kernel tree. > > Signed-off-by: Lukas Bulwahn > --- > arch/mips/kernel/r4k-bugs64.c | 2 +- > arch/mips/lib/iomap-pci.c | 2 +- > arch/mips/sgi-ip32/ip

RE: Re: [PATCH v22 4/4] scsi: ufs: Add HPB 2.0 support

2021-02-23 Thread Daejun Park
> > } > > } > > @@ -532,8 +870,8 @@ static int ufshpb_execute_map_req(struct > > ufshpb_lu *hpb, > > if (unlikely(last)) > > mem_size = hpb->last_srgn_entries * HPB_ENTRY_SIZE; > > > > - ufshpb_set_read_buf_cmd(rq->cmd, map_req->rgn_idx, > > -

Re: [PATCH] vdpa/mlx5: set_features should allow reset to zero

2021-02-23 Thread Jason Wang
On 2021/2/23 下午5:26, Michael S. Tsirkin wrote: On Mon, Feb 22, 2021 at 08:05:26AM +0200, Eli Cohen wrote: On Sun, Feb 21, 2021 at 04:52:05PM -0500, Michael S. Tsirkin wrote: On Sun, Feb 21, 2021 at 04:44:37PM +0200, Eli Cohen wrote: On Fri, Feb 19, 2021 at 06:54:58AM -0500, Si-Wei Liu wrote:

Re: [PATCH v6 1/1] mm/page_alloc.c: refactor initialization of struct page for holes in memory layout

2021-02-23 Thread David Hildenbrand
On 23.02.21 10:48, Mike Rapoport wrote: On Tue, Feb 23, 2021 at 09:04:19AM +0100, David Hildenbrand wrote: On 22.02.21 11:57, Mike Rapoport wrote: From: Mike Rapoport There could be struct pages that are not backed by actual physical memory. This can happen when the actual memory bank is not

Re: [PATCH 5/5] MIPS: SGI-IP27: fix spelling in Copyright

2021-02-23 Thread Philippe Mathieu-Daudé
On Mon, Feb 22, 2021 at 5:22 PM Lukas Bulwahn wrote: > > This is a Copyright line, and just a typo slipped through. > > Signed-off-by: Lukas Bulwahn > --- > arch/mips/sgi-ip27/ip27-timer.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/mips/sgi-ip27/ip27-timer.

RE: RE: RE: [PATCH v22 3/4] scsi: ufs: Prepare HPB read for cached sub-region

2021-02-23 Thread Daejun Park
> > > > > + err = ufshpb_fill_ppn_from_page(hpb, srgn->mctx, srgn_offset, > > > > > 1, > > > &ppn); > > > > > + spin_unlock_irqrestore(&hpb->rgn_state_lock, flags); > > > > > + if (unlikely(err < 0)) { > > > > > + /* > > > > > +* In this case, the re

[PATCH] powerpc/chrp: Make hydra_init() static

2021-02-23 Thread Geert Uytterhoeven
Commit 407d418f2fd4c20a ("powerpc/chrp: Move PHB discovery") moved the sole call to hydra_init() to the source file where it is defined, so it can be made static. Signed-off-by: Geert Uytterhoeven --- Compile-tested only. My LongTrail died in 2004. --- arch/powerpc/include/asm/hydra.h | 2 --

[PATCH v1 0/4] clk: rockchip: add clock controller for rk3568

2021-02-23 Thread Elaine Zhang
Add the clock tree definition for the new rk3568 SoC Elaine Zhang (4): dt-bindings: add bindings for rk3568 clock controller clk: rockchip: add dt-binding header for rk3568 clk: rockchip: support more core div setting clk: rockchip: add clock controller for rk3568 .../bindings/clock/rock

[PATCH v1 1/4] dt-bindings: add bindings for rk3568 clock controller

2021-02-23 Thread Elaine Zhang
Add devicetree bindings for Rockchip cru which found on Rockchip SoCs. Signed-off-by: Elaine Zhang --- .../bindings/clock/rockchip,rk3568-cru.txt| 66 +++ 1 file changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/rockchip,rk3568-cru.txt di

[PATCH v1 3/4] clk: rockchip: support more core div setting

2021-02-23 Thread Elaine Zhang
A55 supports each core to work at different frequencies, and each core has an independent divider control. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-cpu.c | 25 + drivers/clk/rockchip/clk.h | 17 - 2 files changed, 41 insertions(+), 1 de

[PATCH v1 4/4] clk: rockchip: add clock controller for rk3568

2021-02-23 Thread Elaine Zhang
Add the clock tree definition for the new rk3568 SoC. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/Kconfig |7 + drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-rk3568.c | 1724 + drivers/clk/rockchip/clk.h| 28 + 4 file

Re: next/master bisection: baseline.login on r8a77960-ulcb

2021-02-23 Thread Guillaume Tucker
Hi Christoph, Please see the bisection report below about a boot failure on r8a77960-ulcb on next-20210222. Reports aren't automatically sent to the public while we're trialing new bisection features on kernelci.org but this one looks valid. The log shows a kernel panic, more details can be fo

Re: [PATCH v2] x86/mce: fix wrong no-return-ip logic in do_machine_check()

2021-02-23 Thread Aili Yao
On Tue, 23 Feb 2021 10:43:00 +0100 Borislav Petkov wrote: > On Tue, Feb 23, 2021 at 10:27:55AM +0800, Aili Yao wrote: > > When Guest access one address with UE error, it will exit guest mode, > > the host will do the recovery job, and then one SIGBUS is send to > > the VCPU and qemu will catch th

Re: [PATCH 4/5] arch: mips: remove dead references

2021-02-23 Thread Philippe Mathieu-Daudé
On Mon, Feb 22, 2021 at 5:22 PM Lukas Bulwahn wrote: > > The domain lookup for linux-mips.org fails for quite some time now. > Further, the two links: > > http://decstation.unix-ag.org/ https://web.archive.org/web/20070609185805/http://decstation.unix-ag.org/ > http://www.computer-refuge.org

Re: [PATCH] vdpa/mlx5: set_features should allow reset to zero

2021-02-23 Thread Michael S. Tsirkin
On Tue, Feb 23, 2021 at 05:48:10PM +0800, Jason Wang wrote: > > On 2021/2/23 下午5:26, Michael S. Tsirkin wrote: > > On Mon, Feb 22, 2021 at 08:05:26AM +0200, Eli Cohen wrote: > > > On Sun, Feb 21, 2021 at 04:52:05PM -0500, Michael S. Tsirkin wrote: > > > > On Sun, Feb 21, 2021 at 04:44:37PM +0200,

[PATCH v1 2/4] clk: rockchip: add dt-binding header for rk3568

2021-02-23 Thread Elaine Zhang
Add the dt-bindings header for the rk3568, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3568. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/rk3568-cru.h | 926 + 1 file changed, 926 insertions(+) cr

Re: [PATCH] vdpa/mlx5: set_features should allow reset to zero

2021-02-23 Thread Michael S. Tsirkin
On Tue, Feb 23, 2021 at 05:46:20PM +0800, Jason Wang wrote: > > On 2021/2/23 下午5:25, Michael S. Tsirkin wrote: > > On Mon, Feb 22, 2021 at 09:09:28AM -0800, Si-Wei Liu wrote: > > > > > > On 2/21/2021 8:14 PM, Jason Wang wrote: > > > > On 2021/2/19 7:54 下午, Si-Wei Liu wrote: > > > > > Commit 45263

Re: [PATCH v4] ARM: Implement SLS mitigation

2021-02-23 Thread Will Deacon
On Mon, Feb 22, 2021 at 01:50:06PM -0800, Jian Cai wrote: > Please see my comments inlined below. > > Thanks, > Jian > > On Mon, Feb 22, 2021 at 3:58 AM Will Deacon wrote: > > > > On Fri, Feb 19, 2021 at 03:08:13PM -0800, Jian Cai wrote: > > > This patch adds CONFIG_HARDEN_SLS_ALL that can be us

Re: [PATCH v2] x86/mce: fix wrong no-return-ip logic in do_machine_check()

2021-02-23 Thread Borislav Petkov
On Tue, Feb 23, 2021 at 05:56:40PM +0800, Aili Yao wrote: > What i inject is AR error, and I don't see MCG_STATUS_RIPV flag. Then keep debugging qemu to figure out why that is. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette

  1   2   3   4   5   6   7   8   9   10   >