[PATCH AUTOSEL 5.4 15/23] vhost scsi: fix cmd completion race

2020-11-25 Thread Sasha Levin
From: Mike Christie [ Upstream commit 47a3565e8bb14ec48a75b48daf57aa830e2691f8 ] We might not do the final se_cmd put from vhost_scsi_complete_cmd_work. When the last put happens a little later then we could race where vhost_scsi_complete_cmd_work does vhost_signal, the guest runs and sends

[PATCH AUTOSEL 5.4 12/23] HID: Add Logitech Dinovo Edge battery quirk

2020-11-25 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 7940fb035abd88040d56be209962feffa33b03d0 ] The battery status is also being reported by the logitech-hidpp driver, so ignore the standard HID battery status to avoid reporting the same info twice. Note the logitech-hidpp battery driver provides more info,

[PATCH AUTOSEL 5.4 22/23] xtensa: uaccess: Add missing __user to strncpy_from_user() prototype

2020-11-25 Thread Sasha Levin
From: Laurent Pinchart [ Upstream commit dc293f2106903ab9c24e9cea18c276e32c394c33 ] When adding __user annotations in commit 2adf5352a34a, the strncpy_from_user() function declaration for the CONFIG_GENERIC_STRNCPY_FROM_USER case was missed. Fix it. Reported-by: kernel test robot

[PATCH AUTOSEL 5.4 13/23] proc: don't allow async path resolution of /proc/self components

2020-11-25 Thread Sasha Levin
From: Jens Axboe [ Upstream commit 8d4c3e76e3be11a64df95ddee52e99092d42fc19 ] If this is attempted by a kthread, then return -EOPNOTSUPP as we don't currently support that. Once we can get task_pid_ptr() doing the right thing, then this can go away again. Signed-off-by: Jens Axboe

[PATCH AUTOSEL 5.9 28/33] lockdep: Put graph lock/unlock under lock_recursion protection

2020-11-25 Thread Sasha Levin
From: Boqun Feng [ Upstream commit 43be4388e94b915799a24f0eaf664bf95b85231f ] A warning was hit when running xfstests/generic/068 in a Hyper-V guest: [...] [ cut here ] [...] DEBUG_LOCKS_WARN_ON(lockdep_hardirqs_enabled()) [...] WARNING: CPU: 2 PID: 1350 at

[PATCH AUTOSEL 5.4 17/23] vhost scsi: Add support for LUN resets.

2020-11-25 Thread Sasha Levin
From: Mike Christie [ Upstream commit efd838fec17bd8756da852a435800a7e6281bfbc ] In newer versions of virtio-scsi we just reset the timer when an a command times out, so TMFs are never sent for the cmd time out case. However, in older kernels and for the TMF inject cases, we can still get

Re: [PATCH V4 2/3] sched/core: Rename schedutil_cpu_util() and allow rest of the kernel to use it

2020-11-25 Thread Rafael J. Wysocki
On Tue, Nov 24, 2020 at 7:26 AM Viresh Kumar wrote: > > There is nothing schedutil specific in schedutil_cpu_util(), rename it > to effective_cpu_util(). Also create and expose another wrapper > sched_cpu_util() which can be used by other parts of the kernel, like > thermal core (that will be

[PATCH AUTOSEL 4.4 5/8] proc: don't allow async path resolution of /proc/self components

2020-11-25 Thread Sasha Levin
From: Jens Axboe [ Upstream commit 8d4c3e76e3be11a64df95ddee52e99092d42fc19 ] If this is attempted by a kthread, then return -EOPNOTSUPP as we don't currently support that. Once we can get task_pid_ptr() doing the right thing, then this can go away again. Signed-off-by: Jens Axboe

[PATCH AUTOSEL 5.4 11/23] HID: logitech-hidpp: Add HIDPP_CONSUMER_VENDOR_KEYS quirk for the Dinovo Edge

2020-11-25 Thread Sasha Levin
From: Hans de Goede [ Upstream commit c27168a04a438a457c100253b1aaf0c779218aae ] Like the MX5000 and MX5500 quad/bluetooth keyboards the Dinovo Edge also needs the HIDPP_CONSUMER_VENDOR_KEYS quirk for some special keys to work. Specifically without this the "Phone" and the 'A' - 'D' Smart Keys

[PATCH AUTOSEL 4.14 04/12] dmaengine: xilinx_dma: use readl_poll_timeout_atomic variant

2020-11-25 Thread Sasha Levin
From: Marc Ferland [ Upstream commit 0ba2df09f1500d3f27398a3382b86d39c3e6abe2 ] The xilinx_dma_poll_timeout macro is sometimes called while holding a spinlock (see xilinx_dma_issue_pending() for an example) this means we shouldn't sleep when polling the dma channel registers. To address it in

[PATCH AUTOSEL 5.9 23/33] vhost scsi: Add support for LUN resets.

2020-11-25 Thread Sasha Levin
From: Mike Christie [ Upstream commit efd838fec17bd8756da852a435800a7e6281bfbc ] In newer versions of virtio-scsi we just reset the timer when an a command times out, so TMFs are never sent for the cmd time out case. However, in older kernels and for the TMF inject cases, we can still get

[PATCH AUTOSEL 4.4 6/8] dmaengine: pl330: _prep_dma_memcpy: Fix wrong burst size

2020-11-25 Thread Sasha Levin
From: Sugar Zhang [ Upstream commit e773ca7da8beeca7f17fe4c9d1284a2b66839cc1 ] Actually, burst size is equal to '1 << desc->rqcfg.brst_size'. we should use burst size, not desc->rqcfg.brst_size. dma memcpy performance on Rockchip RV1126 @ 1512MHz A7, 1056MHz LPDDR3, 200MHz DMA: dmatest: /#

[PATCH AUTOSEL 5.9 21/33] vhost scsi: fix cmd completion race

2020-11-25 Thread Sasha Levin
From: Mike Christie [ Upstream commit 47a3565e8bb14ec48a75b48daf57aa830e2691f8 ] We might not do the final se_cmd put from vhost_scsi_complete_cmd_work. When the last put happens a little later then we could race where vhost_scsi_complete_cmd_work does vhost_signal, the guest runs and sends

Re: [PATCH next] mm/swap.c: reduce lock contention in lru_cache_add

2020-11-25 Thread Vlastimil Babka
On 11/20/20 9:27 AM, Alex Shi wrote: The current relock logical will change lru_lock when found a new lruvec, so if 2 memcgs are reading file or alloc page at same time, they could hold the lru_lock alternately, and wait for each other for fairness attribute of ticket spin lock. This patch will

[PATCH AUTOSEL 5.9 20/33] vhost scsi: alloc cmds per vq instead of session

2020-11-25 Thread Sasha Levin
From: Mike Christie [ Upstream commit 25b98b64e28423b0769313dcaf96423836b1f93d ] We currently are limited to 256 cmds per session. This leads to problems where if the user has increased virtqueue_size to more than 2 or cmd_per_lun to more than 256 vhost_scsi_get_tag can fail and the guest will

[PATCH AUTOSEL 4.9 10/10] perf/x86: fix sysfs type mismatches

2020-11-25 Thread Sasha Levin
From: Sami Tolvanen [ Upstream commit ebd19fc372e3e78bf165f230e7c084e304441c08 ] This change switches rapl to use PMU_FORMAT_ATTR, and fixes two other macros to use device_attribute instead of kobj_attribute to avoid callback type mismatches that trip indirect call checking with Clang's

[PATCH AUTOSEL 4.4 1/8] HID: cypress: Support Varmilo Keyboards' media hotkeys

2020-11-25 Thread Sasha Levin
From: Frank Yang [ Upstream commit 652f3d00de523a17b0cebe7b90debccf13aa8c31 ] The Varmilo VA104M Keyboard (04b4:07b1, reported as Varmilo Z104M) exposes media control hotkeys as a USB HID consumer control device, but these keys do not work in the current (5.8-rc1) kernel due to the incorrect

[PATCH AUTOSEL 4.4 8/8] scsi: target: iscsi: Fix cmd abort fabric stop race

2020-11-25 Thread Sasha Levin
From: Mike Christie [ Upstream commit f36199355c64a39fe82cfddc7623d827c7e050da ] Maurizio found a race where the abort and cmd stop paths can race as follows: 1. thread1 runs iscsit_release_commands_from_conn and sets CMD_T_FABRIC_STOP. 2. thread2 runs iscsit_aborted_task and then does

[PATCH AUTOSEL 4.4 7/8] scsi: libiscsi: Fix NOP race condition

2020-11-25 Thread Sasha Levin
From: Lee Duncan [ Upstream commit fe0a8a95e7134d0b44cd407bc0085b9ba8d8fe31 ] iSCSI NOPs are sometimes "lost", mistakenly sent to the user-land iscsid daemon instead of handled in the kernel, as they should be, resulting in a message from the daemon like: iscsid: Got nop in, but kernel

[PATCH AUTOSEL 5.4 01/23] HID: uclogic: Add ID for Trust Flex Design Tablet

2020-11-25 Thread Sasha Levin
From: Martijn van de Streek [ Upstream commit 022fc5315b7aff69d3df2c953b892a6232642d50 ] The Trust Flex Design Tablet has an UGTizer USB ID and requires the same initialization as the UGTizer GP0610 to be detected as a graphics tablet instead of a mouse. Signed-off-by: Martijn van de Streek

[PATCH AUTOSEL 4.14 10/12] scsi: libiscsi: Fix NOP race condition

2020-11-25 Thread Sasha Levin
From: Lee Duncan [ Upstream commit fe0a8a95e7134d0b44cd407bc0085b9ba8d8fe31 ] iSCSI NOPs are sometimes "lost", mistakenly sent to the user-land iscsid daemon instead of handled in the kernel, as they should be, resulting in a message from the daemon like: iscsid: Got nop in, but kernel

[PATCH AUTOSEL 5.4 09/23] dmaengine: xilinx_dma: use readl_poll_timeout_atomic variant

2020-11-25 Thread Sasha Levin
From: Marc Ferland [ Upstream commit 0ba2df09f1500d3f27398a3382b86d39c3e6abe2 ] The xilinx_dma_poll_timeout macro is sometimes called while holding a spinlock (see xilinx_dma_issue_pending() for an example) this means we shouldn't sleep when polling the dma channel registers. To address it in

[PATCH AUTOSEL 4.19 10/15] nvme: free sq/cq dbbuf pointers when dbbuf set fails

2020-11-25 Thread Sasha Levin
From: Minwoo Im [ Upstream commit 0f0d2c876c96d4908a9ef40959a44bec21bdd6cf ] If Doorbell Buffer Config command fails even 'dev->dbbuf_dbs != NULL' which means OACS indicates that NVME_CTRL_OACS_DBBUF_SUPP is set, nvme_dbbuf_update_and_check_event() will check event even it's not been

[PATCH AUTOSEL 5.9 19/33] vhost: add helper to check if a vq has been setup

2020-11-25 Thread Sasha Levin
From: Mike Christie [ Upstream commit 6bcf34224ac1e94103797fd68b9836061762f2b2 ] This adds a helper check if a vq has been setup. The next patches will use this when we move the vhost scsi cmd preallocation from per session to per vq. In the per vq case, we only want to allocate cmds for vqs

[PATCH AUTOSEL 5.4 02/23] HID: ite: Replace ABS_MISC 120/121 events with touchpad on/off keypresses

2020-11-25 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 3c785a06dee99501a17f8e8cf29b2b7e3f1e94ea ] The usb-hid keyboard-dock for the Acer Switch 10 SW5-012 model declares an application and hid-usage page of 0x0088 for the INPUT(4) report which it sends. This reports contains 2 8-bit fields which are declared as

[PATCH AUTOSEL 4.19 08/15] HID: Add Logitech Dinovo Edge battery quirk

2020-11-25 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 7940fb035abd88040d56be209962feffa33b03d0 ] The battery status is also being reported by the logitech-hidpp driver, so ignore the standard HID battery status to avoid reporting the same info twice. Note the logitech-hidpp battery driver provides more info,

[PATCH AUTOSEL 5.9 18/33] vdpasim: fix "mac_pton" undefined error

2020-11-25 Thread Sasha Levin
From: Laurent Vivier [ Upstream commit a312db697cb05dfa781848afe8585a1e1f2a5a99 ] ERROR: modpost: "mac_pton" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined! mac_pton() is defined in lib/net_utils.c and is not built if NET is not set. Select GENERIC_NET_UTILS as vdpasim doesn't depend on

[PATCH AUTOSEL 5.4 04/23] HID: add support for Sega Saturn

2020-11-25 Thread Sasha Levin
From: Jiri Kosina [ Upstream commit 1811977cb11354aef8cbd13e35ff50db716728a4 ] This device needs HID_QUIRK_MULTI_INPUT in order to be presented to userspace in a consistent way. Reported-and-tested-by: David Gámiz Jiménez Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 4.9 08/10] scsi: libiscsi: Fix NOP race condition

2020-11-25 Thread Sasha Levin
From: Lee Duncan [ Upstream commit fe0a8a95e7134d0b44cd407bc0085b9ba8d8fe31 ] iSCSI NOPs are sometimes "lost", mistakenly sent to the user-land iscsid daemon instead of handled in the kernel, as they should be, resulting in a message from the daemon like: iscsid: Got nop in, but kernel

[PATCH AUTOSEL 4.9 01/10] HID: cypress: Support Varmilo Keyboards' media hotkeys

2020-11-25 Thread Sasha Levin
From: Frank Yang [ Upstream commit 652f3d00de523a17b0cebe7b90debccf13aa8c31 ] The Varmilo VA104M Keyboard (04b4:07b1, reported as Varmilo Z104M) exposes media control hotkeys as a USB HID consumer control device, but these keys do not work in the current (5.8-rc1) kernel due to the incorrect

[PATCH AUTOSEL 5.9 17/33] net: stmmac: dwmac_lib: enlarge dma reset timeout

2020-11-25 Thread Sasha Levin
From: Jisheng Zhang [ Upstream commit 56311a315da7ebc668dbcc2f1c99689cc10796c4 ] If the phy enables power saving technology, the dwmac's software reset needs more time to complete, enlarge dma reset timeout to 20us. Signed-off-by: Jisheng Zhang Link:

[PATCH AUTOSEL 4.9 07/10] dmaengine: pl330: _prep_dma_memcpy: Fix wrong burst size

2020-11-25 Thread Sasha Levin
From: Sugar Zhang [ Upstream commit e773ca7da8beeca7f17fe4c9d1284a2b66839cc1 ] Actually, burst size is equal to '1 << desc->rqcfg.brst_size'. we should use burst size, not desc->rqcfg.brst_size. dma memcpy performance on Rockchip RV1126 @ 1512MHz A7, 1056MHz LPDDR3, 200MHz DMA: dmatest: /#

[PATCH AUTOSEL 5.9 05/33] Input: i8042 - allow insmod to succeed on devices without an i8042 controller

2020-11-25 Thread Sasha Levin
From: Hans de Goede [ Upstream commit b1884583fcd17d6a1b1bba94bbb5826e6b5c6e17 ] The i8042 module exports several symbols which may be used by other modules. Before this commit it would refuse to load (when built as a module itself) on systems without an i8042 controller. This is a problem

[PATCH AUTOSEL 5.9 12/33] HID: logitech-hidpp: Add HIDPP_CONSUMER_VENDOR_KEYS quirk for the Dinovo Edge

2020-11-25 Thread Sasha Levin
From: Hans de Goede [ Upstream commit c27168a04a438a457c100253b1aaf0c779218aae ] Like the MX5000 and MX5500 quad/bluetooth keyboards the Dinovo Edge also needs the HIDPP_CONSUMER_VENDOR_KEYS quirk for some special keys to work. Specifically without this the "Phone" and the 'A' - 'D' Smart Keys

[PATCH AUTOSEL 5.9 15/33] nvme: free sq/cq dbbuf pointers when dbbuf set fails

2020-11-25 Thread Sasha Levin
From: Minwoo Im [ Upstream commit 0f0d2c876c96d4908a9ef40959a44bec21bdd6cf ] If Doorbell Buffer Config command fails even 'dev->dbbuf_dbs != NULL' which means OACS indicates that NVME_CTRL_OACS_DBBUF_SUPP is set, nvme_dbbuf_update_and_check_event() will check event even it's not been

[PATCH AUTOSEL 5.9 14/33] proc: don't allow async path resolution of /proc/self components

2020-11-25 Thread Sasha Levin
From: Jens Axboe [ Upstream commit 8d4c3e76e3be11a64df95ddee52e99092d42fc19 ] If this is attempted by a kthread, then return -EOPNOTSUPP as we don't currently support that. Once we can get task_pid_ptr() doing the right thing, then this can go away again. Signed-off-by: Jens Axboe

[PATCH AUTOSEL 5.9 07/33] staging: ralink-gdma: fix kconfig dependency bug for DMA_RALINK

2020-11-25 Thread Sasha Levin
From: Necip Fazil Yildiran [ Upstream commit 06ea594051707c6b8834ef5b24e9b0730edd391b ] When DMA_RALINK is enabled and DMADEVICES is disabled, it results in the following Kbuild warnings: WARNING: unmet direct dependencies detected for DMA_ENGINE Depends on [n]: DMADEVICES [=n] Selected by

[PATCH AUTOSEL 5.9 11/33] kunit: fix display of failed expectations for strings

2020-11-25 Thread Sasha Levin
From: Daniel Latypov [ Upstream commit 3084db0e0d5076cd48408274ab0911cd3ccdae88 ] Currently the following expectation KUNIT_EXPECT_STREQ(test, "hi", "bye"); will produce: Expected "hi" == "bye", but "hi" == 1625079497 "bye" == 1625079500 After this patch: Expected "hi" ==

[PATCH AUTOSEL 5.9 10/33] x86/xen: don't unbind uninitialized lock_kicker_irq

2020-11-25 Thread Sasha Levin
From: Brian Masney [ Upstream commit 65cae18882f943215d0505ddc7e70495877308e6 ] When booting a hyperthreaded system with the kernel parameter 'mitigations=auto,nosmt', the following warning occurs: WARNING: CPU: 0 PID: 1 at drivers/xen/events/events_base.c:1112

[PATCH AUTOSEL 5.9 08/33] HID: add HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE for Gamevice devices

2020-11-25 Thread Sasha Levin
From: Chris Ye [ Upstream commit f59ee399de4a8ca4d7d19cdcabb4b63e94867f09 ] Kernel 5.4 introduces HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE, devices need to be set explicitly with this flag. Signed-off-by: Chris Ye Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.9 04/33] HID: add support for Sega Saturn

2020-11-25 Thread Sasha Levin
From: Jiri Kosina [ Upstream commit 1811977cb11354aef8cbd13e35ff50db716728a4 ] This device needs HID_QUIRK_MULTI_INPUT in order to be presented to userspace in a consistent way. Reported-and-tested-by: David Gámiz Jiménez Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.9 02/33] HID: ite: Replace ABS_MISC 120/121 events with touchpad on/off keypresses

2020-11-25 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 3c785a06dee99501a17f8e8cf29b2b7e3f1e94ea ] The usb-hid keyboard-dock for the Acer Switch 10 SW5-012 model declares an application and hid-usage page of 0x0088 for the INPUT(4) report which it sends. This reports contains 2 8-bit fields which are declared as

[PATCH AUTOSEL 5.9 03/33] HID: cypress: Support Varmilo Keyboards' media hotkeys

2020-11-25 Thread Sasha Levin
From: Frank Yang [ Upstream commit 652f3d00de523a17b0cebe7b90debccf13aa8c31 ] The Varmilo VA104M Keyboard (04b4:07b1, reported as Varmilo Z104M) exposes media control hotkeys as a USB HID consumer control device, but these keys do not work in the current (5.8-rc1) kernel due to the incorrect

Re: [PATCH v2] HID: sony: support for ghlive ps3/wii u dongles

2020-11-25 Thread Pascal Giard
Apologies for the resend. I had not realized that gmail's app for smartphones didn't really support plaintext. On Wed, Nov 25, 2020 at 8:41 AM Jiri Kosina wrote: > > On Wed, 25 Nov 2020, pascal.gi...@etsmtl.ca wrote: > > > Thank you for reviewing this new version. > > > > You are right, we could

[PATCH AUTOSEL 5.9 01/33] HID: uclogic: Add ID for Trust Flex Design Tablet

2020-11-25 Thread Sasha Levin
From: Martijn van de Streek [ Upstream commit 022fc5315b7aff69d3df2c953b892a6232642d50 ] The Trust Flex Design Tablet has an UGTizer USB ID and requires the same initialization as the UGTizer GP0610 to be detected as a graphics tablet instead of a mouse. Signed-off-by: Martijn van de Streek

Re: [PATCH v22 02/18] mm/damon: Implement region based sampling

2020-11-25 Thread Shakeel Butt
On Tue, Oct 20, 2020 at 2:01 AM SeongJae Park wrote: > > From: SeongJae Park > > DAMON separates its monitoring target address space independent high > level logics Please rewrite the above sentence to be more clear. > from the target space dependent low level primitives for > flexible support

Re: [PATCH 2/5] memory: renesas-rpc-if: Make rpcif_enable/disable_rpm() as static inline

2020-11-25 Thread Lad, Prabhakar
Hi Geert, Thank you for the review. On Tue, Nov 24, 2020 at 3:43 PM Geert Uytterhoeven wrote: > > Hi Prabhakar, > > On Tue, Nov 24, 2020 at 12:27 PM Lad Prabhakar > wrote: > > Define rpcif_enable_rpm() and rpcif_disable_rpm() as static > > inline in the header instead of exporting it. > > > >

Re: [PATCH v22 05/18] mm/idle_page_tracking: Make PG_(idle|young) reusable

2020-11-25 Thread Shakeel Butt
On Tue, Oct 20, 2020 at 2:04 AM SeongJae Park wrote: > > From: SeongJae Park > > PG_idle and PG_young allows the two PTE Accessed bit users, > IDLE_PAGE_TRACKING and the reclaim logic concurrently work while don't > interfere each other. That is, when they need to clear the Accessed > bit, they

Re: [PATCH v22 06/18] mm/damon: Implement primitives for the virtual memory address spaces

2020-11-25 Thread Shakeel Butt
On Tue, Oct 20, 2020 at 2:06 AM SeongJae Park wrote: > > From: SeongJae Park > > This commit introduces a reference implementation of the address space > specific low level primitives for the virtual address space, so that > users of DAMON can easily monitor the data accesses on virtual address

Re: [PATCH v22 07/18] mm/page_idle: Avoid interferences from concurrent users

2020-11-25 Thread Shakeel Butt
On Tue, Oct 20, 2020 at 2:06 AM SeongJae Park wrote: > > From: SeongJae Park > > Concurrent Idle Page Tracking users can interfere each other because the > interface doesn't provide a central rule for synchronization between the > users. Users could implement their own synchronization rule, but

[PATCH] mm: cma: improve pr_debug log in cma_release()

2020-11-25 Thread Charan Teja Reddy
It is required to print 'count' of pages, along with the pages, passed to cma_release to debug the cases of mismatched count value passed between cma_alloc() and cma_release() from a code path. As an example, consider the below scenario: 1) CMA pool size is 4MB and 2) User doing the erroneous

Re: [PATCH v22 04/18] mm/damon: Track dynamic monitoring target regions update

2020-11-25 Thread Shakeel Butt
On Tue, Oct 20, 2020 at 2:02 AM SeongJae Park wrote: > > From: SeongJae Park > > The monitoring target address range can be dynamically changed. For > example, virtual memory could be dynamically mapped and unmapped. > Physical memory could be hot-plugged. > > As the changes could be quite

Re: [PATCH v22 10/18] mm/damon: Implement a debugfs-based user space interface

2020-11-25 Thread Shakeel Butt
On Tue, Oct 20, 2020 at 2:06 AM SeongJae Park wrote: > > From: SeongJae Park > > DAMON is designed to be used by kernel space code such as the memory > management subsystems, and therefore it provides only kernel space API. > That said, letting the user space control DAMON could provide some >

Re: [PATCH v22 01/18] mm: Introduce Data Access MONitor (DAMON)

2020-11-25 Thread Shakeel Butt
On Tue, Oct 20, 2020 at 2:01 AM SeongJae Park wrote: > > From: SeongJae Park > > DAMON is a data access monitoring framework for the Linux kernel. The > core mechanisms of DAMON make it > > - accurate (the monitoring output is useful enough for DRAM level >performance-centric memory

Re: [PATCH v22 03/18] mm/damon: Adaptively adjust regions

2020-11-25 Thread Shakeel Butt
On Tue, Oct 20, 2020 at 2:01 AM SeongJae Park wrote: > > From: SeongJae Park > > Even somehow the initial monitoring target regions are well constructed > to fulfill the assumption (pages in same region have similar access > frequencies), the data access pattern can be dynamically changed. This

Re: [PATCH v4 00/34] SEV-ES hypervisor support

2020-11-25 Thread Tom Lendacky
On 11/24/20 12:52 PM, Sean Christopherson wrote: On Mon, Nov 23, 2020, Tom Lendacky wrote: On 11/17/20 11:07 AM, Tom Lendacky wrote: From: Tom Lendacky This patch series provides support for running SEV-ES guests under KVM. Any comments on this series? I'm planning on doing a thorough

[PATCH 0/4] configfs: implement committable items and add sample code

2020-11-25 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Committable items in configfs are well defined and documented but unfortunately so far never implemented. The use-case we have over at the GPIO subsystem is using configfs in conjunction with sysfs to replace our current gpio-mockup testing module with one that will be

[PATCH 4/4] samples: configfs: add a committable group

2020-11-25 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Add an example of using committable items to configfs samples. Each config item has two attributes: read-write 'storeme' which works similarly to other examples in this file and a read-only 'committed' attribute which changes its value between false and true depending

[PATCH 2/4] configfs: use BIT() for internal flags

2020-11-25 Thread Bartosz Golaszewski
From: Bartosz Golaszewski For better readability and maintenance: use the BIT() macro for flag definitions. Signed-off-by: Bartosz Golaszewski --- fs/configfs/configfs_internal.h | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git

[PATCH 1/4] configfs: increase the item name length

2020-11-25 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 20 characters limit for item name is relatively small. Let's increase it to 32 to fit '04-committable-children' - a name we'll use in the sample code for committable items. Signed-off-by: Bartosz Golaszewski --- include/linux/configfs.h | 2 +- 1 file changed, 1

[PATCH 3/4] configfs: implement committable items

2020-11-25 Thread Bartosz Golaszewski
From: Bartosz Golaszewski This implements configfs committable items. We mostly follow the documentation except that we extend config_group_ops with uncommit_item() callback for reverting the changes made by commit_item(). Each committable group has two sub-directories: pending and live. New

Re: [PATCH] leds: trigger: fix potential deadlock with libata

2020-11-25 Thread Andrea Righi
On Wed, Nov 25, 2020 at 03:15:18PM +0100, Andrea Righi wrote: ... > > I'd hate to see this in stable 3 days after Linus merges it... > > > > Do these need _irqsave, too? > > > > drivers/leds/led-triggers.c: read_lock(>leddev_list_lock); > > drivers/leds/led-triggers.c:

Re: [PATCH] [RFC] init/main: fix broken buffer_init when DEFERRED_STRUCT_PAGE_INIT set

2020-11-25 Thread Vlastimil Babka
On 11/23/20 12:05 PM, Lin Feng wrote: In the booting phase if CONFIG_DEFERRED_STRUCT_PAGE_INIT is set, we have following callchain: start_kernel ... mm_init mem_init memblock_free_all reset_all_zones_managed_pages free_low_memory_core_early ... buffer_init

[PATCH v2] leds: trigger: fix potential deadlock with libata

2020-11-25 Thread Andrea Righi
We have the following potential deadlock condition: WARNING: possible irq lock inversion dependency detected 5.10.0-rc2+ #25 Not tainted swapper/3/0 just changed the state of

Re: [FEATURE REQUEST] tracing: Have event filters handle dynamic arrays

2020-11-25 Thread Tom Zanussi
Hi Steve, Daniel, On Tue, 2020-11-24 at 11:37 -0500, Steven Rostedt wrote: > Hi Tom, > > Daniel asked about filtering bitmasks, something like: > >cpumask != 0xff > > Looking into the code, I realized that bitmasks are dynamic arrays, > and > there's no logic in the filter code to handle

RE: [PATCH][next] drm/amdgpu: Fix sizeof() mismatch in bps_bo kmalloc_array creation

2020-11-25 Thread Chen, Guchun
[AMD Public Use] Reviewed-by: Guchun Chen Regards, Guchun -Original Message- From: Colin King Sent: Wednesday, November 25, 2020 10:18 PM To: Deucher, Alexander ; Koenig, Christian ; David Airlie ; Daniel Vetter ; Zhou1, Tao ; Chen, Guchun ; amd-...@lists.freedesktop.org;

[PATCH v3 1/2] genirq/irqdomain: Add an irq_create_mapping_affinity() function

2020-11-25 Thread Laurent Vivier
There is currently no way to convey the affinity of an interrupt via irq_create_mapping(), which creates issues for devices that expect that affinity to be managed by the kernel. In order to sort this out, rename irq_create_mapping() to irq_create_mapping_affinity() with an additional affinity

[PATCH v3 2/2] powerpc/pseries: pass MSI affinity to irq_create_mapping()

2020-11-25 Thread Laurent Vivier
With virtio multiqueue, normally each queue IRQ is mapped to a CPU. But since commit 0d9f0a52c8b9f ("virtio_scsi: use virtio IRQ affinity") this is broken on pseries. The affinity is correctly computed in msi_desc but this is not applied to the system IRQs. It appears the affinity is correctly

[PATCH] kvm/svm: fixed a potential register value inconsistent with variable ldr_reg

2020-11-25 Thread Richard
If the ldr value is read out to zero, it does not call avic_ldr_write to update the virtual register, but the variable ldr_reg is updated. Fixes: 98d90582be2e ("SVM: Fix AVIC DFR and LDR handling") Signed-off-by: Peng Hao --- arch/x86/kvm/svm/avic.c | 14 -- 1 file changed, 8

[PATCH v3 0/2] powerpc/pseries: fix MSI/X IRQ affinity on pseries

2020-11-25 Thread Laurent Vivier
With virtio, in multiqueue case, each queue IRQ is normally bound to a different CPU using the affinity mask. This works fine on x86_64 but totally ignored on pseries. This is not obvious at first look because irqbalance is doing some balancing to improve that. It appears that the "managed"

Re: [RFC] ACPI PM during kernel poweroff/reboot

2020-11-25 Thread Furquan Shaikh
On Thu, Nov 12, 2020 at 11:19 AM Furquan Shaikh wrote: > > On x86 Chromebooks, we have observed this issue for a long time now - > when the system is powered off or rebooted, ACPI PM is not invoked and > this results in PowerResource _OFF methods not being invoked for any > of the devices. The

Re: [PATCH v4] HID: i2c-hid: add polling mode based on connected GPIO chip's pin status

2020-11-25 Thread Greg KH
On Wed, Nov 25, 2020 at 10:10:22PM +0800, Coiby Xu wrote: > For a broken touchpad, it may take several months or longer to be fixed. > Polling mode could be a fallback solution for enthusiastic Linux users > when they have a new laptop. It also acts like a debugging feature. If > polling mode

Re: [PATCH v3 1/4] pwm: pca9685: Switch to atomic API

2020-11-25 Thread Sven Van Asbroeck
On Wed, Nov 25, 2020 at 3:35 AM Clemens Gruber wrote: > > > > > The datasheet I found for this chip indicates that every ALL_LED_XXX > > register > > is write-only. Those registers cannot be read back from the chip. > > > > Datasheet "Rev. 4 - 16 April 2015" > > Thanks, good catch! Would you

Re: [PATCH v3 00/10] Introduced new Cadence USBSSP DRD Driver.

2020-11-25 Thread Sekhar Nori
On 24/11/20 3:22 PM, Pawel Laszczak wrote: > Sekhar, > >> >> >> On 24/11/20 2:51 PM, Pawel Laszczak wrote: >>> Peter, >>> On 20-11-19 15:12:57, Pawel Laszczak wrote: > This patch introduce new Cadence USBSS DRD driver to linux kernel. > > The Cadence USBSS DRD Controller is a

Re: [PATCH v3 net-next] net: phy: realtek: read actual speed on rtl8211f to detect downshift

2020-11-25 Thread Yonglong Liu
Tested-by: Yonglong Liu On 2020/11/25 7:07, Antonio Borneo wrote: The rtl8211f supports downshift and before commit 5502b218e001 ("net: phy: use phy_resolve_aneg_linkmode in genphy_read_status") the read-back of register MII_CTRL1000 was used to detect the negotiated link speed. The code added

Re: [PATCH v2 1/2] genirq: add an irq_create_mapping_affinity() function

2020-11-25 Thread Laurent Vivier
On 25/11/2020 15:54, Marc Zyngier wrote: > On 2020-11-25 14:09, Laurent Vivier wrote: >> On 25/11/2020 14:20, Thomas Gleixner wrote: >>> Laurent, >>> >>> On Wed, Nov 25 2020 at 12:16, Laurent Vivier wrote: >>> >>> The proper subsystem prefix is: 'genirq/irqdomain:' and the first letter >>> after

Re: [PATCH v2 0/3] x86/intel_rdt: task_work vs task_struct rmid/closid write race

2020-11-25 Thread Valentin Schneider
Hi Reinette, On 24/11/20 21:37, Reinette Chatre wrote: > Hi Valentin, > > On 11/22/2020 6:24 PM, Valentin Schneider wrote: >> This is a small cleanup + a fix for a race I stumbled upon while staring at >> resctrl stuff. >> >> Briefly tested on a Xeon Gold 5120 (m2.xlarge.x86 on Equinix) by

Re: [PATCH] nfsd: Fix error return code in nfsd_file_cache_init()

2020-11-25 Thread Chuck Lever
> On Nov 25, 2020, at 9:17 AM, J. Bruce Fields wrote: > > On Wed, Nov 25, 2020 at 03:39:33AM -0500, Huang Guobin wrote: >> Fix to return PTR_ERR() error code from the error handling case instead of >> 0 in function nfsd_file_cache_init(), as done elsewhere in this function. >> >> Fixes:

Re: [PATCH v2 1/2] genirq: add an irq_create_mapping_affinity() function

2020-11-25 Thread Marc Zyngier
On 2020-11-25 14:09, Laurent Vivier wrote: On 25/11/2020 14:20, Thomas Gleixner wrote: Laurent, On Wed, Nov 25 2020 at 12:16, Laurent Vivier wrote: The proper subsystem prefix is: 'genirq/irqdomain:' and the first letter after the colon wants to be uppercase. Ok. This function adds an

Re: [PATCH v9] hwmon:Driver for Delta power supplies Q54SJ108A2

2020-11-25 Thread Guenter Roeck
On Mon, Nov 23, 2020 at 04:52:36PM -1000, xiao.ma wrote: > From: "xiao.ma" > > The driver supports Q54SJ108A2 series modules of Delta. > Standard attributes are in the sysfs, and other attributes are in the debugfs. > > Signed-off-by: xiao.ma checkpatch still reports: WARNING: Possible

Re: [PATCH 0/8] linker-section array fix and clean ups

2020-11-25 Thread Jessica Yu
+++ Johan Hovold [23/11/20 11:39 +0100]: On Fri, Nov 13, 2020 at 03:18:36PM +0100, Johan Hovold wrote: On Wed, Nov 11, 2020 at 04:47:16PM +0100, Jessica Yu wrote: > Thanks for providing the links and references. Your explanation and > this reply from Jakub [1] clarified things for me. I was

[RFC PATCH 3/4] x86/cpu: amd: Define processor families

2020-11-25 Thread Punit Agrawal
So far, the AMD processor identifier (family, models, stepping) are referred to by raw values making it easy to make mistakes. It is also harder to read and maintain. Additionally, these values are also being used in subsystems outside the arch code where not everybody maybe be as familiar with

[RFC PATCH 2/4] cpufreq: acpi-cpufreq: Add processor to the ignore PSD override list

2020-11-25 Thread Punit Agrawal
Booting Linux on a Zen2 based processor (family: 0x17, model: 0x60, stepping: 0x1) shows the following message in the logs - acpi_cpufreq: overriding BIOS provided _PSD data Although commit 5368512abe08 ("acpi-cpufreq: Honor _PSD table setting on new AMD CPUs") indicates that the override is

[RFC PATCH 4/4] cpufreq: acpi-cpufreq: Use identifiers for AMD processor family

2020-11-25 Thread Punit Agrawal
Replace the raw values for AMD processor family with recently introduced identifier macros to improve code readability and maintainability. Signed-off-by: Punit Agrawal --- drivers/cpufreq/acpi-cpufreq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[RFC PATCH 0/4] Add processor to the ignore PSD override list

2020-11-25 Thread Punit Agrawal
Hi, While looking into Giovanni's patches to enable frequency invariance on AMD systems[0], I noticed an issue with initialising frequency domain information on a recent AMD APU. Patch 1 refactors the test to ignore firmware provided frequency domain into a separate function. Patch 2 adds said

[RFC PATCH 1/4] cpufreq: acpi-cpufreq: Re-factor overriding ACPI PSD

2020-11-25 Thread Punit Agrawal
Re-factor the code to override the firmware provided frequency domain information (via PSD) to localise the checks in one function. No functional change intended. Signed-off-by: Punit Agrawal Cc: Wei Huang --- drivers/cpufreq/acpi-cpufreq.c | 17 +++-- 1 file changed, 15

Re: [PATCH v3 0/2] siox: two cleanups

2020-11-25 Thread Thorsten Scherer
Hello, On Wed, Nov 25, 2020 at 10:31:04AM +0100, Uwe Kleine-König wrote: > Hello, > > compared to v2 sent starting with Message-Id: > 20201124141834.3096325-1-u.kleine-koe...@pengutronix.de: > > - fix typo in commit log of patch 1 > - add Ack by Thorsten for patch 1 > > Uwe Kleine-König (2):

Re: [PATCH v3 2/2] siox: Make remove callback return void

2020-11-25 Thread Thorsten Scherer
Hello, On Wed, Nov 25, 2020 at 10:31:06AM +0100, Uwe Kleine-König wrote: > The driver core ignores the return value of the remove callback, so > don't give siox drivers the chance to provide a value. > > All siox drivers only allocate devm-managed resources in > .probe, so there is no .remove

Re: [PATCH] soc: qcom: Introduce debugfs interface to smem

2020-11-25 Thread Alex Elder
On 11/22/20 11:21 PM, Bjorn Andersson wrote: Every now and then it's convenient to be able to inspect the content of SMEM items. Rather than carrying some hack locally let's upstream a driver that when inserted exposes a debugfs interface for dumping available items. I have a number of

Re: [PATCH v5 2/2] docs: hwmon: Document max127 driver

2020-11-25 Thread Guenter Roeck
On Mon, Nov 23, 2020 at 10:56:58AM -0800, rentao.b...@gmail.com wrote: > From: Tao Ren > > Add documentation for the max127 hardware monitoring driver. > > Signed-off-by: Tao Ren > Reviewed-by: Guenter Roeck Applied. Thanks, Guenter > --- > Changes in v5: >- None. > Changes in v4: >

Re: [PATCH v5 1/2] hwmon: (max127) Add Maxim MAX127 hardware monitoring driver

2020-11-25 Thread Guenter Roeck
On Mon, Nov 23, 2020 at 10:56:57AM -0800, rentao.b...@gmail.com wrote: > From: Tao Ren > > Add hardware monitoring driver for the Maxim MAX127 chip. > > MAX127 min/max range handling code is inspired by the max197 driver. > > Signed-off-by: Tao Ren Applied. Thanks, Guenter > --- > Changes

Re: [PATCH 1/1] mm: compaction: avoid fast_isolate_around() to set pageblock_skip on reserved pages

2020-11-25 Thread David Hildenbrand
On 25.11.20 15:13, Mike Rapoport wrote: > On Wed, Nov 25, 2020 at 02:32:02PM +0100, David Hildenbrand wrote: >> On 25.11.20 13:08, Vlastimil Babka wrote: >>> On 11/25/20 6:34 AM, Andrea Arcangeli wrote: Hello, On Mon, Nov 23, 2020 at 02:01:16PM +0100, Vlastimil Babka wrote: > On

[PATCH v3 iproute2] bridge: add support for L2 multicast groups

2020-11-25 Thread Vladimir Oltean
Extend the 'bridge mdb' command for the following syntax: bridge mdb add dev br0 port swp0 grp 01:02:03:04:05:06 permanent Signed-off-by: Vladimir Oltean --- Changes in v3: - Using rt_addr_n2a_r instead of inet_ntop/ll_addr_n2a directly. - Updated the bridge manpage. Changes in v2: - Removed

Re: [PATCH v5 5/5] Bluetooth: Change MGMT security info CMD to be more generic

2020-11-25 Thread Marcel Holtmann
Hi Daniel, > For advertising, we wish to know the LE tx power capabilities of the > controller in userspace, so this patch edits the Security Info MGMT > command to be more generic, such that other various controller > capabilities can be included in the EIR data. This change also includes > the

Re: [PATCH 4/7] blk-iocost: Add a flag to indicate if need update hwi

2020-11-25 Thread Tejun Heo
On Wed, Nov 25, 2020 at 10:15:38PM +0800, Baolin Wang wrote: > > > Hello, > > > > On Tue, Nov 24, 2020 at 11:33:33AM +0800, Baolin Wang wrote: > > > @@ -1445,7 +1447,8 @@ static void iocg_kick_waitq(struct ioc_gq *iocg, > > > bool pay_debt, > > >* after the above debt payment. > > >

Re: [PATCH 1/2] HID: elecom: rewrite report based on model specific parameters

2020-11-25 Thread Takuma YOSHIOKA
On 2020/11/22 5:54, YOSHIOKA Takuma wrote: > case USB_DEVICE_ID_ELECOM_M_DT1URBK: > case USB_DEVICE_ID_ELECOM_M_DT1DRBK: > case USB_DEVICE_ID_ELECOM_M_HT1URBK: > case USB_DEVICE_ID_ELECOM_M_HT1DRBK: > - mouse_button_fixup(hdev, rdesc, *rsize, 8); > +

Re: [PATCH 2/5] riscv: Add QUEUED_SPINLOCKS & QUEUED_RWLOCKS supported

2020-11-25 Thread Will Deacon
On Wed, Nov 25, 2020 at 03:16:45PM +0100, Peter Zijlstra wrote: > @@ -207,6 +187,32 @@ static __always_inline void > clear_pending_set_locked(struct qspinlock *lock) > atomic_add(-_Q_PENDING_VAL + _Q_LOCKED_VAL, >val); > } > > +#endif /* _Q_PENDING_BITS == 8 */ > + > +#if _Q_PENDING_BITS

[PATCH] nvme-pci: disable write zeros support on specific SSDs

2020-11-25 Thread Mark Hsieh
Like commit 5611ec2b9814 ("nvme-pci: prevent SK hynix PC400 from using Write Zeroes command"), Samsung, Phison and Kingston have the same issue: [ 6305.633887] blk_update_request: operation not supported error, dev nvme0n1, sector 340812032 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0

Re: [PATCH 22/25] perf buildid-cache: Add support to add build ids from perf data

2020-11-25 Thread Jiri Olsa
On Wed, Nov 25, 2020 at 10:29:11PM +0900, Namhyung Kim wrote: SNIP > > +#ifdef HAVE_DEBUGINFOD_SUPPORT > > +static int call_debuginfod(const char *sbuild_id, char **path, bool > > debuginfo) > > +{ > > + debuginfod_client *c; > > + int fd; > > + > > + c = debuginfod_begin(); >

Re: [PATCH][next] drm/amdgpu: Fix sizeof() mismatch in bps_bo kmalloc_array creation

2020-11-25 Thread Christian König
Am 25.11.20 um 15:18 schrieb Colin King: From: Colin Ian King An incorrect sizeof() is being used, sizeof((*data)->bps_bo) is not correct, it should be sizeof(*(*data)->bps_bo). It just so happens to work because the sizes are the same. Fix it. Addresses-Coverity: ("Sizeof not portable

<    3   4   5   6   7   8   9   10   11   12   >