Re: [PATCH 29/31] PM / devfreq: imx-bus: convert to use devm_pm_opp_* API

2021-01-04 Thread Chanwoo Choi
On Sun, Jan 3, 2021 at 12:58 PM Yangtao Li wrote: > > Use devm_pm_opp_* API to simplify code. > > Signed-off-by: Yangtao Li > --- > drivers/devfreq/imx-bus.c | 14 +++--- > 1 file changed, 3 insertions(+), 11 deletions(-) > > diff --git a/drivers/devfreq/imx-bus.c

Re: [PATCH v2] fs/dax: include to fix build error on ARC

2021-01-04 Thread Al Viro
On Thu, Dec 31, 2020 at 08:29:14PM -0800, Randy Dunlap wrote: > fs/dax.c uses copy_user_page() but ARC does not provide that interface, > resulting in a build error. > > Provide copy_user_page() in (beside copy_page()) and > add to fs/dax.c to fix the build error. > > ../fs/dax.c: In function

Re: [PATCH] x86/mm: Fix leak of pmd ptlock

2021-01-04 Thread Dan Williams
Ping, this bug is still present on v5.11-rc2, need a resend? On Wed, Dec 2, 2020 at 10:28 PM Dan Williams wrote: > > Commit 28ee90fe6048 ("x86/mm: implement free pmd/pte page interfaces") > introduced a new location where a pmd was released, but neglected to run > the pmd page destructor. In

[PATCH v2] f2fs: fix null page reference in redirty_blocks

2021-01-04 Thread Daeho Jeong
From: Daeho Jeong Fixed null page reference when find_lock_page() fails in redirty_blocks(). Signed-off-by: Daeho Jeong Reported-by: Colin Ian King Fixes: 5fdb322ff2c2 ("f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE") --- v2: changed error value and break the loop when error

Re: [PATCH 06/21] vdpa: introduce virtqueue groups

2021-01-04 Thread Jason Wang
On 2021/1/4 下午6:04, Stefan Hajnoczi wrote: On Wed, Dec 16, 2020 at 02:48:03PM +0800, Jason Wang wrote: This patch introduces virtqueue groups to vDPA device. The virtqueue group is the minimal set of virtqueues that must share an address space. And the adddress space identifier could only be

Re: [PATCH 28/31] PM / devfreq: imx8m-ddrc: convert to use devm_pm_opp_* API

2021-01-04 Thread Chanwoo Choi
On Sun, Jan 3, 2021 at 12:58 PM Yangtao Li wrote: > > Use devm_pm_opp_* API to simplify code. > > Signed-off-by: Yangtao Li > --- > drivers/devfreq/imx8m-ddrc.c | 15 ++- > 1 file changed, 2 insertions(+), 13 deletions(-) > > diff --git a/drivers/devfreq/imx8m-ddrc.c

Re: 5.11-rc1 TTM list corruption

2021-01-04 Thread Huang Rui
On Mon, Jan 04, 2021 at 06:58:02PM +0800, Borislav Petkov wrote: > On Fri, Jan 01, 2021 at 03:34:28PM +0100, Christian K?nig wrote: > > Going to double check the code, but can you reproduce this issue > > reliable? > > Lemme find a test box which can trigger it too - the splat happened > on my

Re: [PATCH 27/31] PM / devfreq: rk3399_dmc: convert to use devm_pm_opp_* API

2021-01-04 Thread Chanwoo Choi
Hi, Do you make this patch on latest source? When I apply this patch for test, it make the merge conflict error. On Sun, Jan 3, 2021 at 12:57 PM Yangtao Li wrote: > > Use devm_pm_opp_* API to simplify code. Since devres release > can guarantee the order, let's remove >

Re: [PATCH] iommu: check for the deferred attach when attaching a device

2021-01-04 Thread lijiang
Hi, Also add Joerg to cc list. Thanks. Lianbo 在 2020年12月26日 13:39, Lianbo Jiang 写道: > Currently, because domain attach allows to be deferred from iommu > driver to device driver, and when iommu initializes, the devices > on the bus will be scanned and the default groups will be allocated. > >

Re: [PATCH][next] cpufreq: powernow-k8: add null check to policy to avoid null pointer dereference

2021-01-04 Thread Viresh Kumar
On 04-01-21, 13:02, Colin King wrote: > From: Colin Ian King > > Currently there is an unlikely case where cpufreq_cpu_get returns a > null policy and this will cause a null pointer dereference later on. > Fix this by adding a null check and adding an error return. > > Addresses-Coverity:

Re: [PATCH v8 2/2] power: supply: bq256xx: Introduce the BQ256XX charger driver

2021-01-04 Thread kernel test robot
Hi Ricardo, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on power-supply/for-next] [also build test WARNING on robh/for-next v5.11-rc2 next-20210104] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest

Re: [PATCH v2] fs/dax: include to fix build error on ARC

2021-01-04 Thread Dan Williams
On Mon, Jan 4, 2021 at 7:47 PM Randy Dunlap wrote: > > On 1/4/21 12:13 PM, Dan Williams wrote: > > On Thu, Dec 31, 2020 at 8:29 PM Randy Dunlap wrote: > >> > >> fs/dax.c uses copy_user_page() but ARC does not provide that interface, > >> resulting in a build error. > >> > >> Provide

Re: [PATCH 26/31] PM / devfreq: tegra30: convert to use devm_pm_opp_* API

2021-01-04 Thread Chanwoo Choi
Hi, On Sun, Jan 3, 2021 at 12:57 PM Yangtao Li wrote: > > Use devm_pm_opp_* API to simplify code, and remove opp_table > from tegra_devfreq. > > Signed-off-by: Yangtao Li > --- > drivers/devfreq/tegra30-devfreq.c | 21 +++-- > 1 file changed, 7 insertions(+), 14 deletions(-) >

[PATCH v3] arch/arc: add copy_user_page() to to fix build error on ARC

2021-01-04 Thread Randy Dunlap
fs/dax.c uses copy_user_page() but ARC does not provide that interface, resulting in a build error. Provide copy_user_page() in . ../fs/dax.c: In function 'copy_cow_page_dax': ../fs/dax.c:702:2: error: implicit declaration of function 'copy_user_page'; did you mean 'copy_to_user_page'?

Re: [External] Re: [PATCH 4/6] mm: hugetlb: add return -EAGAIN for dissolve_free_huge_page

2021-01-04 Thread Muchun Song
On Tue, Jan 5, 2021 at 11:14 AM Muchun Song wrote: > > On Tue, Jan 5, 2021 at 9:33 AM Mike Kravetz wrote: > > > > On 1/3/21 10:58 PM, Muchun Song wrote: > > > When dissolve_free_huge_page() races with __free_huge_page(), we can > > > do a retry. Because the race window is small. > > > > In

Re: [PATCH 1/3] MIPS: kernel: Support extracting off-line stack traces from user-space with perf

2021-01-04 Thread Jiaxun Yang
在 2021/1/4 下午6:59, Peter Zijlstra 写道: On Tue, Dec 29, 2020 at 08:55:59PM +0800, Tiezhu Yang wrote: +u64 perf_reg_abi(struct task_struct *tsk) +{ + if (test_tsk_thread_flag(tsk, TIF_32BIT_REGS)) + return PERF_SAMPLE_REGS_ABI_32; + else + return

Re: [PATCH v2] fs/dax: include to fix build error on ARC

2021-01-04 Thread Randy Dunlap
On 1/4/21 12:13 PM, Dan Williams wrote: > On Thu, Dec 31, 2020 at 8:29 PM Randy Dunlap wrote: >> >> fs/dax.c uses copy_user_page() but ARC does not provide that interface, >> resulting in a build error. >> >> Provide copy_user_page() in (beside copy_page()) and >> add to fs/dax.c to fix the

Re: [PATCH v2 4/4] arm64: dts: allwinner: h6: Use RSB for AXP805 PMIC connection

2021-01-04 Thread Samuel Holland
On 1/4/21 4:54 AM, André Przywara wrote: > On 03/01/2021 10:00, Samuel Holland wrote: >> On boards where the only peripheral connected to PL0/PL1 is an X-Powers >> PMIC, configure the connection to use the RSB bus rather than the I2C >> bus. Compared to the I2C controller that shares the pins, the

Re: kernel BUG at mm/page-writeback.c:LINE!

2021-01-04 Thread Hugh Dickins
On Mon, 4 Jan 2021, Linus Torvalds wrote: > On Mon, Jan 4, 2021 at 12:41 PM Andrew Morton > wrote: > > > Linus, how confident are you in those wait_on_page_bit_common() > > changes? > > Pretty confident. The atomicity of the bitops themselves is fairly simple. > > But in the writeback bit?

Re: [PATCH] net: qrtr: fix null-ptr-deref in qrtr_ns_remove

2021-01-04 Thread weiyongjun (A)
A null-ptr-deref bug is reported by Hulk Robot like this: -- KASAN: null-ptr-deref in range [0x0128-0x012f] Call Trace: qrtr_ns_remove+0x22/0x40 [ns] qrtr_proto_fini+0xa/0x31 [qrtr] __x64_sys_delete_module+0x337/0x4e0 do_syscall_64+0x34/0x80

Re: [PATCH v8 2/2] power: supply: bq256xx: Introduce the BQ256XX charger driver

2021-01-04 Thread kernel test robot
Hi Ricardo, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on power-supply/for-next] [also build test WARNING on robh/for-next v5.11-rc2 next-20210104] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest

Re: [RFC 1/2] arm64/mm: Fix pfn_valid() for ZONE_DEVICE based memory

2021-01-04 Thread Anshuman Khandual
On 1/4/21 9:06 PM, Jonathan Cameron wrote: > On Tue, 22 Dec 2020 12:42:23 +0530 > Anshuman Khandual wrote: > >> pfn_valid() validates a pfn but basically it checks for a valid struct page >> backing for that pfn. It should always return positive for memory ranges >> backed with struct page

[PATCH] PM / clk: make PM clock layer compatible with clocks that must sleep

2021-01-04 Thread Nicolas Pitre
The clock API splits its interface into sleepable ant atomic contexts: - clk_prepare/clk_unprepare for stuff that might sleep - clk_enable_clk_disable for anything that may be done in atomic context The code handling runtime PM for clocks only calls clk_disable() on suspend requests, and

[PATCH] lib/genalloc: change return type to unsigned long for bitmap_set_ll

2021-01-04 Thread Huang Shijie
Just as bitmap_clear_ll(), change return type to unsigned long for bitmap_set_ll to avoid the possible overflow in future. Signed-off-by: Huang Shijie --- This patch is not a bug fix. I missed to change it in previous patch. --- lib/genalloc.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH 2/2] scsi: ufs-qcom: Add one sysfs node to monitor performance

2021-01-04 Thread Can Guo
Add one sysfs node to monitor driver layer performance data. One can manipulate it to get performance related statistics during runtime. Signed-off-by: Can Guo diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index 2206b1e..5303ce9 100644 --- a/drivers/scsi/ufs/ufs-qcom.c

Re: [External] Re: [PATCH 4/6] mm: hugetlb: add return -EAGAIN for dissolve_free_huge_page

2021-01-04 Thread Muchun Song
On Tue, Jan 5, 2021 at 9:33 AM Mike Kravetz wrote: > > On 1/3/21 10:58 PM, Muchun Song wrote: > > When dissolve_free_huge_page() races with __free_huge_page(), we can > > do a retry. Because the race window is small. > > In general, I agree that the race window is small. However, worst case >

[PATCH 1/2] scsi: ufs: Introduce a vops to get info of command completion

2021-01-04 Thread Can Guo
Similar with the vops setup_xfer_req in ufshcd_send_command(), this change adds the vops compl_xfer_req in __ufshcd_transfer_req_compl() such that vendor drivers can make use of the two hooks to do variant stuffs. Signed-off-by: Kiwoong Kim Signed-off-by: Can Guo diff --git

Re: [resend/standalone PATCH v4] Add auxiliary bus support

2021-01-04 Thread Dan Williams
On Mon, Jan 4, 2021 at 5:53 PM Jason Gunthorpe wrote: > > On Mon, Jan 04, 2021 at 04:51:51PM -0800, Dan Williams wrote: > > On Mon, Jan 4, 2021 at 4:14 PM Jason Gunthorpe wrote: > > > > > > On Mon, Jan 04, 2021 at 09:19:30PM +, Mark Brown wrote: > > > > > > > > > > > Regardless of the

[PATCH v4, 07/10] soc: mediatek: mmsys: add component POSTMASK

2021-01-04 Thread Yongqiang Niu
This patch add component POSTMASK Signed-off-by: Yongqiang Niu --- include/linux/soc/mediatek/mtk-mmsys.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/soc/mediatek/mtk-mmsys.h b/include/linux/soc/mediatek/mtk-mmsys.h index ed99122..13546e9 100644 ---

[PATCH v4, 10/10] soc: mediatek: mmsys: add mt8192 mmsys support

2021-01-04 Thread Yongqiang Niu
add mt8192 mmsys support Signed-off-by: Yongqiang Niu --- drivers/soc/mediatek/mmsys/Makefile | 1 + drivers/soc/mediatek/mmsys/mt8192-mmsys.c | 149 ++ drivers/soc/mediatek/mmsys/mtk-mmsys.c| 9 ++ include/linux/soc/mediatek/mtk-mmsys.h| 1 + 4

[PATCH v4, 04/10] soc: mediatek: mmsys: Use function call for setting the routing registers

2021-01-04 Thread Yongqiang Niu
Actually, setting the registers for routing, use multiple 'if-else' for different routes, but this code would be more and more complicated while we support more and more SoCs. Change that and use a function call per SoC so the code will be more portable and clear. Signed-off-by: Yongqiang Niu

[PATCH v4, 05/10] soc: mediatek: mmsys: add mt8183 function call for setting the routing registers

2021-01-04 Thread Yongqiang Niu
add mt8183 function call for setting the routing registers Signed-off-by: Yongqiang Niu --- drivers/soc/mediatek/mmsys/Makefile | 1 + drivers/soc/mediatek/mmsys/mt8183-mmsys.c | 110 ++ drivers/soc/mediatek/mmsys/mtk-mmsys.c| 1 +

[PATCH v4, 09/10] soc: mediatek: mmsys: Use function call for setting mmsys ovl mout register

2021-01-04 Thread Yongqiang Niu
Use function call for setting mmsys ovl mout register Signed-off-by: Yongqiang Niu --- drivers/soc/mediatek/mmsys/mtk-mmsys.c | 6 ++ include/linux/soc/mediatek/mtk-mmsys.h | 4 2 files changed, 10 insertions(+) diff --git a/drivers/soc/mediatek/mmsys/mtk-mmsys.c

[PATCH v4, 01/10] soc: mediatek: mmsys: create mmsys folder

2021-01-04 Thread Yongqiang Niu
the mmsys will more and more complicated after support more and more SoCs, add an independent folder will be more clear Signed-off-by: Yongqiang Niu --- drivers/soc/mediatek/Makefile | 2 +- drivers/soc/mediatek/mmsys/Makefile| 2 + drivers/soc/mediatek/mmsys/mtk-mmsys.c | 373

[PATCH v4, 06/10] soc: mediatek: mmsys: add component OVL_2L2

2021-01-04 Thread Yongqiang Niu
This patch add component OVL_2L2 Signed-off-by: Yongqiang Niu Reviewed-by: Chun-Kuang Hu --- include/linux/soc/mediatek/mtk-mmsys.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/soc/mediatek/mtk-mmsys.h b/include/linux/soc/mediatek/mtk-mmsys.h index 7e2c0fe..ed99122 100644

[PATCH v4, 08/10] soc: mediatek: mmsys: add component RDMA4

2021-01-04 Thread Yongqiang Niu
This patch add component RDMA4 Signed-off-by: Yongqiang Niu Reviewed-by: Chun-Kuang Hu --- include/linux/soc/mediatek/mtk-mmsys.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/soc/mediatek/mtk-mmsys.h b/include/linux/soc/mediatek/mtk-mmsys.h index 13546e9..2c11617 100644

[PATCH v4, 02/10] soc: mediatek: mmsys: Create struct mtk_mmsys to store context data

2021-01-04 Thread Yongqiang Niu
Apart from the driver data, in order to extend the driver to support more and more SoCs, we will need to store other configuration data. So, create a mtk_mmsys struct to encapsulate all that information. Signed-off-by: CK Hu Signed-off-by: Enric Balletbo i Serra Signed-off-by: Yongqiang Niu

[PATCH v4, 03/10] soc: mediatek: mmsys: move register operation into mmsys path select function

2021-01-04 Thread Yongqiang Niu
move register operation into mmsys path select function Signed-off-by: Yongqiang Niu --- drivers/soc/mediatek/mmsys/mtk-mmsys.c | 140 + 1 file changed, 71 insertions(+), 69 deletions(-) diff --git a/drivers/soc/mediatek/mmsys/mtk-mmsys.c

[PATCH] bcache: consider the fragmentation when update the writeback rate

2021-01-04 Thread Dongdong Tao
From: dongdong tao Current way to calculate the writeback rate only considered the dirty sectors, this usually works fine when the fragmentation is not high, but it will give us unreasonable small rate when we are under a situation that very few dirty sectors consumed a lot dirty buckets. In

[PATCH v4, 00/10] soc: mediatek: mmsys: Use function call for setting the routing registers

2021-01-04 Thread Yongqiang Niu
The following series are intended to prepare the mtk-mmsys driver to allow different DDP (Data Display Path) function call per SoC. base 5.11-rc1 change since v3: - move register operation into mmsys path select function Yongqiang Niu (10): soc: mediatek: mmsys: create mmsys folder soc:

Re: [PATCH] arm64: dts: imx8mm-beacon: Fix WiFi Pinmuxing

2021-01-04 Thread Shawn Guo
On Wed, Dec 02, 2020 at 07:59:50AM -0600, Adam Ford wrote: > The WiFi chip is capable of communication at SDR104 speeds, and > the pinmux was configured to support this, but the sdhc1 controller > didn't properly reference the pinmux. Enable 100Mhz and 200MHz pinmux > as was originally intended.

[PATCH v8 17/20] dlb: add static queue map register operations

2021-01-04 Thread Mike Ximing Chen
Add the register accesses that implement the static queue map operation and handle an unmap request when a queue map operation is in progress. If a queue map operation is requested before the domain is started, it is a synchronous procedure on "static"/unchanging hardware. (The "dynamic"

[PATCH v8 20/20] dlb: queue map/unmap workqueue

2021-01-04 Thread Mike Ximing Chen
Add workqueue support for asynchronous queue map/unmap operations. When mapping or unmapped a queue, it's possible that the thread that requires the map/unmap is the same one which is responsible for doing the processing that would quiesce the queue/port, thus the driver may have to complete the

[PATCH v8 19/20] dlb: add queue unmap register operations

2021-01-04 Thread Mike Ximing Chen
Add the "dynamic" unmap procedure and associated register operations. Unmapping a load-balanced queue from a port removes that port from the queue's load-balancing candidates. If a queue unmap is requested after the domain is started, the driver must disable the requested queue and wait for it to

[PATCH v8 18/20] dlb: add dynamic queue map register operations

2021-01-04 Thread Mike Ximing Chen
Adds the "dynamic" map procedure and register operations. If a queue map is requested after the domain is started, the driver must disable the requested queue and wait for it to quiesce before mapping it to the requested port. Signed-off-by: Gage Eads Signed-off-by: Mike Ximing Chen

[PATCH v8 16/20] dlb: add port map/unmap state machine

2021-01-04 Thread Mike Ximing Chen
Add support for the port map/unmap state machine. Each load-balanced port has eight "slots", one for each queue it is linked to, and each slot can be in one of five states: 1. Queue unmapped 2. Queue mapped 3. Queue unmap in progress 4. Queue map in progress 5. Queue unmap in progress, with a map

[PATCH v8 15/20] dlb: add queue map, unmap, and pending unmap operations

2021-01-04 Thread Mike Ximing Chen
Add the high-level code for queue map, unmap, and pending unmap query ioctl commands and argument verification -- with stubs for the low-level register accesses and the queue map/unmap state machine, to be filled in a later commit. The queue map/unmap in this commit refers to link/unlink between

[PATCH v8 14/20] dlb: add start domain ioctl

2021-01-04 Thread Mike Ximing Chen
Add ioctl to start a domain. Once a scheduling domain and its resources have been configured, this ioctl is called to allow the domain's ports to begin enqueueing to the device. Once started, the domain's resources cannot be configured again until after the domain is reset. This ioctl instructs

[PATCH v8 13/20] dlb: add port mmap support

2021-01-04 Thread Mike Ximing Chen
Once a port is created, the application can mmap the corresponding DMA memory and MMIO into user-space. This allows user-space applications to do (performance-sensitive) enqueue and dequeue independent of the kernel driver. The mmap callback is only available through special port files: a

[PATCH v8 11/20] dlb: add ioctl to configure ports and query poll mode

2021-01-04 Thread Mike Ximing Chen
Add high-level code for port configuration and poll-mode query ioctl commands, argument verification, and placeholder functions for the low-level register accesses. A subsequent commit will add the low-level logic. The port is a core's interface to the DLB, and it consists of an MMIO page (the

[PATCH v8 12/20] dlb: add register operations for port management

2021-01-04 Thread Mike Ximing Chen
Add the low-level code for configuring a new port, programming the device-wide poll mode setting, and resetting a port. The low-level port configuration functions program the device based on the user-supplied ioctl arguments. These arguments are first verified, e.g. to ensure that the port's CQ

[PATCH v8 09/20] dlb: add queue create, reset, get-depth ioctls

2021-01-04 Thread Mike Ximing Chen
Add ioctl commands to create DLB queues and query their depth, and the corresponding scheduling domain reset code to drain the queues when they are no longer in use. When a CPU enqueues a queue entry (QE) to DLB, the QE entry is sent to a DLB queue. These queues hold queue entries (QEs) that have

[PATCH v8 10/20] dlb: add register operations for queue management

2021-01-04 Thread Mike Ximing Chen
Add the low-level code for configuring a new queue and querying its depth. When configuring a queue, program the device based on the user-supplied queue configuration ioctl arguments. Add low-level code for resetting (draining) a non-empty queue during scheduling domain reset. Draining a queue is

[PATCH v8 08/20] dlb: add runtime power-management support

2021-01-04 Thread Mike Ximing Chen
Implemented a power-management policy of putting the device in D0 when in use (when there are any open device files or memory mappings, or there are any virtual devices), and D3Hot otherwise. Add resume/suspend callbacks; when the device resumes, reset the hardware to a known good state.

[PATCH v8 07/20] dlb: add low-level register reset operations

2021-01-04 Thread Mike Ximing Chen
Program all registers used to configure the domain's resources back to their reset values during scheduling domain reset. This ensures the device is in a known good state if/when it is configured again in the future. Additional work is required if a resource is in-use (e.g. a queue is non-empty)

[PATCH v8 06/20] dlb: add domain software reset

2021-01-04 Thread Mike Ximing Chen
Add operation to reset a domain's resource's software state when its reference count reaches zero, and re-inserts those resources in their respective available-resources linked lists, for use by future scheduling domains. Signed-off-by: Gage Eads Signed-off-by: Mike Ximing Chen Reviewed-by:

[PATCH v8 05/20] dlb: add scheduling domain configuration

2021-01-04 Thread Mike Ximing Chen
Add support for configuring a scheduling domain, creating the domain fd, and reserving the domain's resources. A scheduling domain serves as a container of DLB resources -- e.g. ports, queues, and credits -- with the property that a port can only enqueue to and dequeue from queues within its

[PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-04 Thread Mike Ximing Chen
Introduce the dlb device ioctl layer and the first three ioctls: query device version, query available resources, and create a scheduling domain. Also introduce the user-space interface file dlb_user.h. The device version query is designed to allow each DLB device version/type to have its own

[PATCH v8 03/20] dlb: add resource and device initialization

2021-01-04 Thread Mike Ximing Chen
Add the hardware resource data structures, functions for their initialization/teardown, and a function for device power-on. In subsequent commits, dlb_resource.c will be expanded to hold the dlb resource-management and configuration logic (using the data structures defined in dlb_hw_types.h).

[PATCH v8 01/20] dlb: add skeleton for DLB driver

2021-01-04 Thread Mike Ximing Chen
Add basic driver functionality (load, unload, probe, and remove callbacks) for the DLB driver. Add documentation which describes in detail the hardware, the user interface, device interrupts, and the driver's power-management strategy. For more details about the driver see the documentation in

[PATCH v8 02/20] dlb: initialize device

2021-01-04 Thread Mike Ximing Chen
Assign the physical function device 'ops' callbacks, map the PCI BAR space, create a char device, set the DMA API mask for 64-bit addressing. Add the corresponding undo operations to the remove callback. The ops callbacks are implement behavior that differs depending on device type -- physical

[PATCH v8 00/20] dlb: introduce DLB device driver

2021-01-04 Thread Mike Ximing Chen
Introduce a new misc device driver for the Intel(r) Dynamic Load Balancer (Intel(r) DLB). The Intel DLB is a PCIe device that provides load-balanced, prioritized scheduling of core-to-core communication. Intel DLB is an accelerator for the event-driven programming model of DPDK's Event Device

Re: [PATCH] ARM: imx_v6_v7_defconfig: enable power driver of RN5T618 PMIC family

2021-01-04 Thread Shawn Guo
On Wed, Dec 02, 2020 at 08:37:39AM +0100, Andreas Kemnade wrote: > There is a driver now for the power supply and fuel gauge functionality > of that chip family, so enable them, since they are used by various > i.MX6 boards, especially ebook-readers. > > Signed-off-by: Andreas Kemnade Applied,

Re: [PATCH v2 0/4] Add some clocks support for i.MX8qxp DC0/MIPI-LVDS subsystems

2021-01-04 Thread Shawn Guo
On Wed, Dec 02, 2020 at 01:33:35PM +0800, Liu Ying wrote: > This patch set adds some SCU clocks support for i.MX8qxp DC0/MIPI-LVDS > subsystems. > > With this patch set, some basic clocks for i.MX8qxp LVDS displays can be got > by drivers. > > v1->v2: > * Drop LPCG clocks as they can be

Re: [External] Re: [PATCH 3/6] mm: hugetlb: fix a race between freeing and dissolving the page

2021-01-04 Thread Muchun Song
On Tue, Jan 5, 2021 at 8:02 AM Mike Kravetz wrote: > > On 1/3/21 10:58 PM, Muchun Song wrote: > > There is a race condition between __free_huge_page() > > and dissolve_free_huge_page(). > > > > CPU0: CPU1: > > > > // page_count(page) == 1 > > put_page(page) > >

Re: [PATCH -tip V3 3/8] workqueue: introduce wq_online_cpumask

2021-01-04 Thread Lai Jiangshan
On Tue, Jan 5, 2021 at 10:41 AM Lai Jiangshan wrote: > > On Mon, Jan 4, 2021 at 9:56 PM Peter Zijlstra wrote: > > > > On Sat, Dec 26, 2020 at 10:51:11AM +0800, Lai Jiangshan wrote: > > > From: Lai Jiangshan > > > > > > wq_online_cpumask is the cached result of cpu_online_mask with the > > >

linux-next: Tree for Jan 5

2021-01-04 Thread Stephen Rothwell
Hi all, Changes since 20210104: The vfs tree gained a build failure so I used the version from next-20210104. The rcu tree lost its build failure. The staging tree lost its build failures. Non-merge commits (relative to Linus' tree): 1367 1323 files changed, 47247 insertions(+), 20428

memory leak in usb_urb_init

2021-01-04 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:f6e1ea19 Merge tag 'ceph-for-5.11-rc2' of git://github.com.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=102e814f50 kernel config: https://syzkaller.appspot.com/x/.config?x=1dcbf163b62a8256

Re: Re: [PATCH] iommu/intel: Fix memleak in intel_irq_remapping_alloc

2021-01-04 Thread dinghao . liu
> On 1/3/21 2:22 PM, dinghao@zju.edu.cn wrote: > >> On 2021/1/3 12:08, dinghao@zju.edu.cn wrote: > Hi, > > On 2021/1/2 17:50, Dinghao Liu wrote: > > When irq_domain_get_irq_data() or irqd_cfg() fails > > meanwhile i == 0, data allocated by kzalloc() has not > >

RE: [PATCH] drivers core: Free dma_range_map when driver probe failed

2021-01-04 Thread Li, Meng
> -Original Message- > From: Jim Quinlan > Sent: Monday, January 4, 2021 11:56 PM > To: Jim Quinlan ; Li, Meng > ; open list > Cc: Greg Kroah-Hartman ; raf...@kernel.org; > Hao, Kexin ; Jim Quinlan > ; Christoph Hellwig > Subject: Re: [PATCH] drivers core: Free dma_range_map when

Re: [PATCH 0/2] hid: intel-ish-hid: ipc: enable OOB support for EHL

2021-01-04 Thread Zhang, Lixu
On Mon, Jan 04, 2021 at 08:01:36AM -0800, Srinivas Pandruvada wrote: > On Mon, 2021-01-04 at 16:12 +0100, Jiri Kosina wrote: > > On Wed, 16 Dec 2020, Zhang Lixu wrote: > > > > > The EHL (Elkhart Lake) based platforms provide a OOB (Out of band) > > > service, which allows wakup device when the

Re: [External] Re: [PATCH 2/6] hugetlbfs: fix cannot migrate the fallocated HugeTLB page

2021-01-04 Thread Muchun Song
On Tue, Jan 5, 2021 at 6:40 AM Mike Kravetz wrote: > > On 1/3/21 10:58 PM, Muchun Song wrote: > > Because we only can isolate a active page via isolate_huge_page() > > and hugetlbfs_fallocate() forget to mark it as active, we cannot > > isolate and migrate those pages. > > > > Fixes: 70c3547e36f5

Re: [PATCH v3] perf stat: Fix wrong skipping for per-die aggregation

2021-01-04 Thread Jin, Yao
Hi Jiri, On 1/4/2021 6:15 PM, Jiri Olsa wrote: On Fri, Dec 25, 2020 at 09:04:09AM +0800, Jin Yao wrote: SNIP void update_stats(struct stats *stats, u64 val) @@ -275,16 +276,39 @@ void evlist__save_aggr_prev_raw_counts(struct evlist *evlist) static void zero_per_pkg(struct evsel

Re: [PATCH -tip V3 3/8] workqueue: introduce wq_online_cpumask

2021-01-04 Thread Lai Jiangshan
On Mon, Jan 4, 2021 at 9:56 PM Peter Zijlstra wrote: > > On Sat, Dec 26, 2020 at 10:51:11AM +0800, Lai Jiangshan wrote: > > From: Lai Jiangshan > > > > wq_online_cpumask is the cached result of cpu_online_mask with the > > going-down cpu cleared. > > You can't use cpu_active_mask ? When a cpu

Re: [PATCH] net: ethernet: fs_enet: Add missing MODULE_LICENSE

2021-01-04 Thread Andrew Lunn
On Tue, Jan 05, 2021 at 01:22:29PM +1100, Michael Ellerman wrote: > Since commit 1d6cd3929360 ("modpost: turn missing MODULE_LICENSE() > into error") the ppc32_allmodconfig build fails with: > > ERROR: modpost: missing MODULE_LICENSE() in > drivers/net/ethernet/freescale/fs_enet/mii-fec.o >

[PATCH v4] perf stat: Fix wrong skipping for per-die aggregation

2021-01-04 Thread Jin Yao
Uncore becomes die-scope on Xeon Cascade Lake-AP and perf has supported --per-die aggregation yet. One issue is found in check_per_pkg() for uncore events running on AP system. On cascade Lake-AP, we have: S0-D0 S0-D1 S1-D0 S1-D1 But in check_per_pkg(), S0-D1 and S1-D1 are skipped because the

Re: [PATCH v2 2/2] ARM: dts: add Protonic MVT board

2021-01-04 Thread Shawn Guo
On Tue, Dec 01, 2020 at 08:41:25AM +0100, Oleksij Rempel wrote: > PRTMVT is the reference platform for Protonic industrial touchscreen > terminals. > > Signed-off-by: Oleksij Rempel > --- > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/imx6dl-prtmvt.dts | 851

[PATCH] net: qrtr: fix null-ptr-deref in qrtr_ns_remove

2021-01-04 Thread Qinglang Miao
A null-ptr-deref bug is reported by Hulk Robot like this: -- KASAN: null-ptr-deref in range [0x0128-0x012f] Call Trace: qrtr_ns_remove+0x22/0x40 [ns] qrtr_proto_fini+0xa/0x31 [qrtr] __x64_sys_delete_module+0x337/0x4e0 do_syscall_64+0x34/0x80

Re: [EXTERNAL] PROBLEM: commit f36a74b9345a leads to not booting system with AMD 2990WX

2021-01-04 Thread Johnathan Smithinovic
On 05/01/2021 01:19, David Woodhouse wrote: > On Tue, 2021-01-05 at 00:05 +0100, Johnathan Smithinovic wrote: >> commit f36a74b9345a leads to not booting system with AMD 2990WX >> >> > > No problem, that was enough to reproduce it in qemu just by simulating > the same BIOS bug which causes it to

[PATCH v3 2/2] Input: cros-ec-keyb - Expose function row physical map to userspace

2021-01-04 Thread Philip Chen
The top-row keys in a keyboard usually have dual functionalities. E.g. A function key "F1" is also an action key "Browser back". Therefore, when an application receives an action key code from a top-row key press, the application needs to know how to correlate the action key code with the

[PATCH v3 1/2] dt-bindings: input: cros-ec-keyb: Add a new property

2021-01-04 Thread Philip Chen
This patch adds a new property `function-row-physmap` to the device tree for the custom keyboard top row design. The property describes the rows/columns of the top row keys from left to right. Signed-off-by: Philip Chen --- (no changes since v2) Changes in v2: - add `function-row-physmap`

[PATCH] net: ethernet: fs_enet: Add missing MODULE_LICENSE

2021-01-04 Thread Michael Ellerman
Since commit 1d6cd3929360 ("modpost: turn missing MODULE_LICENSE() into error") the ppc32_allmodconfig build fails with: ERROR: modpost: missing MODULE_LICENSE() in drivers/net/ethernet/freescale/fs_enet/mii-fec.o ERROR: modpost: missing MODULE_LICENSE() in

[PATCH v2] genirq: add IRQF_NO_AUTOEN for request_irq

2021-01-04 Thread Barry Song
Many drivers don't want interrupts enabled automatically due to request_irq(). So they are handling this issue by either way of the below two: (1) irq_set_status_flags(irq, IRQ_NOAUTOEN); request_irq(dev, irq...); (2) request_irq(dev, irq...); disable_irq(irq); The code in the second way is silly

Re: [RFC v2 PATCH 0/4] speed up page allocation for __GFP_ZERO

2021-01-04 Thread Liang Li
> >>> In our production environment, there are three main applications have such > >>> requirement, one is QEMU [creating a VM with SR-IOV passthrough device], > >>> anther other two are DPDK related applications, DPDK OVS and SPDK vhost, > >>> for best performance, they populate memory when

Re: [PATCH v2] i2c: sprd: use a specific timeout to avoid system hang up issue

2021-01-04 Thread Chunyan Zhang
On Tue, 5 Jan 2021 at 02:24, Wolfram Sang wrote: > > On Mon, Dec 14, 2020 at 12:58:50PM +0800, Chunyan Zhang wrote: > > From: Chunyan Zhang > > > > If the i2c device SCL bus being pulled up due to some exception before > > message transfer done, the system cannot receive the completing interrupt

Re: [PATCH v9 8/8] selinux: include a consumer of the new IMA critical data hook

2021-01-04 Thread Paul Moore
On Mon, Jan 4, 2021 at 6:30 PM Lakshmi Ramasubramanian wrote: > On 12/23/20 1:10 PM, Paul Moore wrote: > Hi Paul, Hello. > >> diff --git a/security/selinux/measure.c b/security/selinux/measure.c > >> new file mode 100644 > >> index ..b7e24358e11d > >> --- /dev/null > >> +++

Re: [f2fs-dev] [PATCH] f2fs: fix null page reference in redirty_blocks

2021-01-04 Thread Daeho Jeong
Yes, it's better~ :) 2021년 1월 5일 (화) 오전 10:44, Chao Yu 님이 작성: > > On 2021/1/5 9:28, Daeho Jeong wrote: > > From: Daeho Jeong > > > > Fixed null page reference when find_lock_page() fails in > > redirty_blocks(). > > > > Signed-off-by: Daeho Jeong > > Reported-by: Colin Ian King > > Fixes:

Re: Is there a reason not to use -@ to compile devicetrees ?

2021-01-04 Thread Rob Herring
On Mon, Dec 21, 2020 at 7:47 AM Vincent Pelletier wrote: > > Hello, > > Distro: https://raspi.debian.net/ (sid) > Hardware: Raspberry Pi Zero W > Kernel version: 5.9.11 (linux-image-5.9.0-4-rpi) > > To access a device connected to my pi, I need the spi0 bus, and would > like to not be doing GPIO

Re: [PATCH v5 2/2] Documentation: fpga: dfl: Add description for DFL UIO support

2021-01-04 Thread Xu Yilun
On Mon, Jan 04, 2021 at 09:19:24AM -0800, Russ Weight wrote: > > > On 1/1/21 7:13 PM, Xu Yilun wrote: > > This patch adds description for UIO support for dfl devices on DFL > > bus. > > > > Signed-off-by: Xu Yilun > > --- > > v2: no doc in v1, add it for v2. > > v3: some documentation fixes. >

[PATCH v3 -next] staging: vc04_services: use DEFINE_MUTEX() for mutex lock

2021-01-04 Thread Zheng Yongjun
mutex lock can be initialized automatically with DEFINE_MUTEX() rather than explicitly calling mutex_init(). Signed-off-by: Zheng Yongjun --- .../vc04_services/interface/vchiq_arm/vchiq_connected.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

Re: [PATCH] iommu/intel: Fix memleak in intel_irq_remapping_alloc

2021-01-04 Thread Lu Baolu
On 1/3/21 2:22 PM, dinghao@zju.edu.cn wrote: On 2021/1/3 12:08, dinghao@zju.edu.cn wrote: Hi, On 2021/1/2 17:50, Dinghao Liu wrote: When irq_domain_get_irq_data() or irqd_cfg() fails meanwhile i == 0, data allocated by kzalloc() has not been freed before returning, which leads to

Re: [PATCH 2/2] mm: memcg: add a new MEMCG_UPDATE_BATCH

2021-01-04 Thread Feng Tang
On Mon, Jan 04, 2021 at 02:15:40PM +0100, Michal Hocko wrote: > On Tue 29-12-20 22:35:14, Feng Tang wrote: > > When profiling memory cgroup involved benchmarking, status update > > sometimes take quite some CPU cycles. Current MEMCG_CHARGE_BATCH > > is used for both charging and statistics/events

Re: [PATCH 4.19 00/35] 4.19.165-rc1 review

2021-01-04 Thread Guenter Roeck
On 1/4/21 7:57 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.165 release. > There are 35 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: [RFC PATCH bpf-next] ksnoop: kernel argument/return value tracing/display using BTF

2021-01-04 Thread Alexei Starovoitov
On Mon, Jan 04, 2021 at 03:26:31PM +, Alan Maguire wrote: > > ksnoop can be used to show function signatures; for example: > > $ ksnoop info ip_send_skb > int ip_send_skb(struct net * net, struct sk_buff * skb); > > Then we can trace the function, for example: > > $ ksnoop trace

Re: [resend/standalone PATCH v4] Add auxiliary bus support

2021-01-04 Thread Jason Gunthorpe
On Mon, Jan 04, 2021 at 04:51:51PM -0800, Dan Williams wrote: > On Mon, Jan 4, 2021 at 4:14 PM Jason Gunthorpe wrote: > > > > On Mon, Jan 04, 2021 at 09:19:30PM +, Mark Brown wrote: > > > > > > > > Regardless of the shortcut to make everything a struct > > > > platform_device, I think it was

Re: [PATCH] scsi: megaraid_sas: Fix MEGASAS_IOC_FIRMWARE regression

2021-01-04 Thread Phil Oester
On Tue, Jan 05, 2021 at 12:41:04AM +0100, Arnd Bergmann wrote: > Phil Oester reported that a fix for a possible buffer overrun that I > sent caused a regression that manifests in this output: > > Event Message: A PCI parity error was detected on a component at bus 0 > device 5 function 0. >

Re: [PATCH 6/6] mm: hugetlb: remove VM_BUG_ON_PAGE from page_huge_active

2021-01-04 Thread Mike Kravetz
On 1/3/21 10:58 PM, Muchun Song wrote: > The page_huge_active() can be called from scan_movable_pages() which > do not hold a reference count to the HugeTLB page. So when we call > page_huge_active() from scan_movable_pages(), the HugeTLB page can > be freed parallel. Then we will trigger a BUG_ON

Re: [PATCH] scsi: target/sbp: remove firewire SBP target driver

2021-01-04 Thread Bart Van Assche
On 1/4/21 2:50 PM, Finn Thain wrote: > On Mon, 4 Jan 2021, Bart Van Assche wrote: >> Additionally, there is a good alternative available for the sbp driver. >> Every system I know of that is equipped with a Firewire port also has an >> Ethernet port. So users who want to provide SCSI target

Re: [v4 02/11] arm64: dts: ls1043a: add DT node for external interrupt lines

2021-01-04 Thread Shawn Guo
On Mon, Nov 30, 2020 at 06:15:06PM +0800, Biwen Li wrote: > From: Biwen Li > > Add device-tree node for external interrupt lines IRQ0-IRQ11. > > Signed-off-by: Biwen Li Applied 2 ~ 10, thanks.

Re: [f2fs-dev] [PATCH] f2fs: fix null page reference in redirty_blocks

2021-01-04 Thread Chao Yu
On 2021/1/5 9:28, Daeho Jeong wrote: From: Daeho Jeong Fixed null page reference when find_lock_page() fails in redirty_blocks(). Signed-off-by: Daeho Jeong Reported-by: Colin Ian King Fixes: 5fdb322ff2c2 ("f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE") ---

<    1   2   3   4   5   6   7   8   9   10   >