Re: [PATCH 5/6] mm: hugetlb: fix a race between isolating and freeing page

2021-01-04 Thread Mike Kravetz
On 1/3/21 10:58 PM, Muchun Song wrote: > There is a race between isolate_huge_page() and __free_huge_page(). > > CPU0: CPU1: > > if (PageHuge(page)) > put_page(page) >

[PATCH 0/2] Enumerate and expose AVX_VNNI feature

2021-01-04 Thread Yang Zhong
A processor supports AVX_VNNI instructions if CPUID.(EAX=7,ECX=1):EAX[bit 4] is present. This series includes kernel and kvm patches, kernel patch define this new cpu feature bit and kvm expose this bit to guest. When this bit is enabled on cpu or vcpu, the cpu feature flag is shown as "avx_vnni"

[PATCH 2/2] KVM: Expose AVX_VNNI instruction to guset

2021-01-04 Thread Yang Zhong
Expose AVX (VEX-encoded) versions of the Vector Neural Network Instructions to guest. The bit definition: CPUID.(EAX=7,ECX=1):EAX[bit 4] AVX_VNNI The following instructions are available when this feature is present in the guest. 1. VPDPBUS: Multiply and Add Unsigned and Signed Bytes 2.

[PATCH 1/2] Enumerate AVX Vector Neural Network instructions

2021-01-04 Thread Yang Zhong
From: Kyung Min Park Add AVX version of the Vector Neural Network (VNNI) Instructions. A processor supports AVX VNNI instructions if CPUID.0x07.0x1:EAX[4] is present. The following instructions are available when this feature is present. 1. VPDPBUS: Multiply and Add Unsigned and Signed Bytes

Re: [PATCH RFC v4 1/1] scsi: ufs: Fix ufs power down/on specs violation

2021-01-04 Thread Can Guo
On 2021-01-05 02:57, Bjorn Andersson wrote: On Mon 28 Dec 19:18 CST 2020, Can Guo wrote: On 2020-12-29 01:55, Bjorn Andersson wrote: > On Tue 22 Dec 07:49 CST 2020, Ziqi Chen wrote: > > > As per specs, e.g, JESD220E chapter 7.2, while powering > > off/on the ufs device, RST_N signal and

[PATCH] iommu/amd: Stop irq_remapping_select() matching when remapping is disabled

2021-01-04 Thread David Woodhouse
From: David Woodhouse The AMD IOMMU initialisation registers the IRQ remapping domain for each IOMMU before doing the final sanity check that every I/OAPIC is covered. This means that the AMD irq_remapping_select() function gets invoked even when IRQ remapping has been disabled, eventually

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

2021-01-04 Thread Mike Kravetz
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 would be if the freeing of the page is put on a work queue. Is it

Re: [PATCH v2 04/16] rpmsg: ctrl: implement the ioctl function to create device

2021-01-04 Thread Bjorn Andersson
On Tue 22 Dec 04:57 CST 2020, Arnaud Pouliquen wrote: > Implement the ioctl function that parses the list of > rpmsg drivers registered to create an associated device. > To be ISO user API, in a first step, the driver_override > is only allowed for the RPMsg raw service, supported by the >

RE: [PATCH] genirq: add IRQF_NO_AUTOEN for request_irq

2021-01-04 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] > Sent: Tuesday, January 5, 2021 12:01 PM > To: Song Bao Hua (Barry Song) > Cc: t...@linutronix.de; m...@kernel.org; gre...@linuxfoundation.org; > linux-in...@vger.kernel.org; linux-kernel@vger.kernel.org;

[PATCH] iommu/amd: Set iommu->int_enabled consistently when interrupts are set up

2021-01-04 Thread David Woodhouse
From: David Woodhouse When I made the INTCAPXT support stop gratuitously pretending to be MSI, I missed the fact that iommu_setup_msi() also sets the ->int_enabled flag. I missed this in the iommu_setup_intcapxt() code path, which means that a resume from suspend will try to allocate the IRQ

Re: [PATCH] mm/page_alloc: remove the static for local variable node_order

2021-01-04 Thread Matthew Wilcox
On Mon, Jan 04, 2021 at 03:23:57PM -0800, Andrew Morton wrote: > On Wed, 30 Dec 2020 12:42:33 + Matthew Wilcox wrote: > > > On Wed, Dec 30, 2020 at 07:40:14PM +0800, Hui Su wrote: > > > local variable node_order do not need the static here. > > > > It bloody well does. It can be up to 2^10

[PATCH] 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") --- fs/f2fs/file.c | 4 +++- 1 file changed, 3

Re: [PATCH v2 16/16] rpmsg: replace rpmsg_chrdev_register_device use

2021-01-04 Thread Bjorn Andersson
On Tue 22 Dec 04:57 CST 2020, Arnaud Pouliquen wrote: > Replace rpmsg_chrdev_register_device by the new helper > rpmsg_ctl_register_device to probe the new IOCTL interface. > This again implies that rpmsg_char was broken in SMD and GLINK during a large part of this series. Your strategy also

Re: [PATCH v2 3/3] scsi: ufs: Let resume callback return -EBUSY after ufshcd_shutdown

2021-01-04 Thread Can Guo
On 2020-12-25 01:20, Bean Huo wrote: From: Bean Huo After ufshcd_shutdown(), both UFS device and UFS LINk are powered off, return '0' will mislead the upper PM layer since the device has not been successfully resumed yet. This will let pm_runtime_get_sync() caller mistakenly believe the

Re: [PATCH v2 14/16] rpmsg: glink: add create and release rpmsg channel ops

2021-01-04 Thread Bjorn Andersson
On Tue 22 Dec 04:57 CST 2020, Arnaud Pouliquen wrote: > Add the new ops introduced by the rpmsg_ns series and used > by the rpmsg_ctrl driver to instantiate a new rpmsg channel. > This is nice for completeness sake, but I don't think it makes sense for transports that has the nameserver

Re: [PATCH 2/2] scsi: ufs: Protect PM ops and err_handler from user access through sysfs

2021-01-04 Thread Can Guo
On 2021-01-05 04:05, Bean Huo wrote: On Sat, 2021-01-02 at 05:59 -0800, Can Guo wrote: + * @shutting_down: flag to check if shutdown has been invoked I am not much sure if this flag is need, since once PM going in shutdown path, what will be returnded by pm_runtime_get_sync()? If

[PATCH AUTOSEL 5.10 09/17] scsi: ide: Do not set the RQF_PREEMPT flag for sense requests

2021-01-04 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit 96d86e6a80a3ab9aff81d12f9f1f2a0da2917d38 ] RQF_PREEMPT is used for two different purposes in the legacy IDE code: 1. To mark power management requests. 2. To mark requests that should preempt another request. An (old) explanation of that feature

[PATCH AUTOSEL 5.10 14/17] kdev_t: always inline major/minor helper functions

2021-01-04 Thread Sasha Levin
From: Josh Poimboeuf [ Upstream commit aa8c7db494d0a83ecae583aa193f1134ef25d506 ] Silly GCC doesn't always inline these trivial functions. Fixes the following warning: arch/x86/kernel/sys_ia32.o: warning: objtool: cp_stat64()+0xd8: call to new_encode_dev() with UACCESS enabled Link:

[PATCH AUTOSEL 5.10 10/17] scsi: ide: Mark power management requests with RQF_PM instead of RQF_PREEMPT

2021-01-04 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit 5ae65383fc7633e0247c31b0c8bf0e6ea63b95a3 ] This is another step that prepares for the removal of RQF_PREEMPT. Link: https://lore.kernel.org/r/20201209052951.16136-5-bvanass...@acm.org Cc: David S. Miller Cc: Alan Stern Cc: Can Guo Cc: Stanley Chu Cc:

[PATCH AUTOSEL 5.4 2/8] scsi: ufs: Fix wrong print message in dev_err()

2021-01-04 Thread Sasha Levin
From: Bean Huo [ Upstream commit 1fa0570002e3f66db9b58c32c60de4183b857a19 ] Change dev_err() print message from "dme-reset" to "dme_enable" in function ufshcd_dme_enable(). Link: https://lore.kernel.org/r/20201207190137.6858-3-huob...@gmail.com Acked-by: Alim Akhtar Acked-by: Avri Altman

[PATCH AUTOSEL 5.10 16/17] depmod: handle the case of /sbin/depmod without /sbin in PATH

2021-01-04 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit cedd1862be7e666be87ec824dabc6a2b05618f36 ] Commit 436e980e2ed5 ("kbuild: don't hardcode depmod path") stopped hard-coding the path of depmod, but in the process caused trouble for distributions that had that /sbin location, but didn't have it in the PATH

[PATCH v9 02/16] dmaengine: dw-axi-dmac: simplify descriptor management

2021-01-04 Thread Sia Jee Heng
Simplify and refactor the descriptor management by removing the redundant Linked List Item (LLI) queue control logic from the AxiDMA driver. The descriptor is split into virtual descriptor and hardware LLI so that only hardware LLI memories are allocated from the DMA memory pool. Up to 64

Re: [RFC PATCH V3 1/1] block: reject I/O for same fd if block size changed

2021-01-04 Thread Minwoo Im
Hello Christoph, Thanks for your review. On 21-01-04 18:11:41, Christoph Hellwig wrote: > On Mon, Jan 04, 2021 at 06:11:08PM +0100, Christoph Hellwig wrote: > > On Mon, Jan 04, 2021 at 10:06:59PM +0900, Minwoo Im wrote: > > > + if (q->backing_dev_info && q->backing_dev_info->owner && > > > +

[PATCH AUTOSEL 5.4 6/8] kdev_t: always inline major/minor helper functions

2021-01-04 Thread Sasha Levin
From: Josh Poimboeuf [ Upstream commit aa8c7db494d0a83ecae583aa193f1134ef25d506 ] Silly GCC doesn't always inline these trivial functions. Fixes the following warning: arch/x86/kernel/sys_ia32.o: warning: objtool: cp_stat64()+0xd8: call to new_encode_dev() with UACCESS enabled Link:

[PATCH AUTOSEL 5.4 4/8] scsi: ide: Do not set the RQF_PREEMPT flag for sense requests

2021-01-04 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit 96d86e6a80a3ab9aff81d12f9f1f2a0da2917d38 ] RQF_PREEMPT is used for two different purposes in the legacy IDE code: 1. To mark power management requests. 2. To mark requests that should preempt another request. An (old) explanation of that feature

Re: [PATCH 1/1] PM / devfreq: Replace devfreq->dev.parent as dev in devfreq_add_device

2021-01-04 Thread Chanwoo Choi
On Tue, Dec 29, 2020 at 12:25 AM pierre kuo wrote: > > Hi myungjoo, kyungmin and cw: > Would you please help to review this patch? > > Thanks a lot. > > pierre Kuo 於 2020年12月16日 週三 上午10:26寫道: > > > > In devfreq_add_device, replace devfreq->dev.parent > > as dev to keep code simple. > > > >

[PATCH AUTOSEL 5.4 8/8] depmod: handle the case of /sbin/depmod without /sbin in PATH

2021-01-04 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit cedd1862be7e666be87ec824dabc6a2b05618f36 ] Commit 436e980e2ed5 ("kbuild: don't hardcode depmod path") stopped hard-coding the path of depmod, but in the process caused trouble for distributions that had that /sbin location, but didn't have it in the PATH

[PATCH] x86/vmware: avoid TSC recalibration

2021-01-04 Thread Alexey Makhalov
When TSC frequency is known (retrieved from hypervisor), we should skip TSC refined calibration by setting X86_FEATURE_TSC_KNOWN_FREQ. Signed-off-by: Alexey Makhalov --- arch/x86/kernel/cpu/vmware.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/cpu/vmware.c

[PATCH AUTOSEL 4.14 5/6] lib/genalloc: fix the overflow when size is too big

2021-01-04 Thread Sasha Levin
From: Huang Shijie [ Upstream commit 36845663843fc59c5d794e3dc0641472e3e572da ] Some graphic card has very big memory on chip, such as 32G bytes. In the following case, it will cause overflow: pool = gen_pool_create(PAGE_SHIFT, NUMA_NO_NODE); ret = gen_pool_add(pool, 0x100,

[PATCH AUTOSEL 4.14 6/6] depmod: handle the case of /sbin/depmod without /sbin in PATH

2021-01-04 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit cedd1862be7e666be87ec824dabc6a2b05618f36 ] Commit 436e980e2ed5 ("kbuild: don't hardcode depmod path") stopped hard-coding the path of depmod, but in the process caused trouble for distributions that had that /sbin location, but didn't have it in the PATH

[PATCH v9 01/16] dt-bindings: dma: Add YAML schemas for dw-axi-dmac

2021-01-04 Thread Sia Jee Heng
YAML schemas Device Tree (DT) binding is the new format for DT to replace the old format. Introduce YAML schemas DT binding for dw-axi-dmac and remove the old version. Signed-off-by: Sia Jee Heng Reviewed-by: Rob Herring --- .../bindings/dma/snps,dw-axi-dmac.txt | 39 --

[PATCH AUTOSEL 4.19 6/8] kdev_t: always inline major/minor helper functions

2021-01-04 Thread Sasha Levin
From: Josh Poimboeuf [ Upstream commit aa8c7db494d0a83ecae583aa193f1134ef25d506 ] Silly GCC doesn't always inline these trivial functions. Fixes the following warning: arch/x86/kernel/sys_ia32.o: warning: objtool: cp_stat64()+0xd8: call to new_encode_dev() with UACCESS enabled Link:

[PATCH AUTOSEL 5.10 12/17] scsi: core: Only process PM requests if rpm_status != RPM_ACTIVE

2021-01-04 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit e6044f714b256259df9611ff49af433e5411c5c8 ] Instead of submitting all SCSI commands submitted with scsi_execute() to a SCSI device if rpm_status != RPM_ACTIVE, only submit RQF_PM (power management requests) if rpm_status != RPM_ACTIVE. This patch makes the

[PATCH AUTOSEL 5.10 06/17] scsi: ufs-pci: Fix recovery from hibernate exit errors for Intel controllers

2021-01-04 Thread Sasha Levin
From: Adrian Hunter [ Upstream commit 044d5bda7117891d6d0d56f2f807b7b11e120abd ] Intel controllers can end up in an unrecoverable state after a hibernate exit error unless a full reset and restore is done before anything else. Force that to happen. Link:

[PATCH AUTOSEL 5.10 07/17] scsi: ufs-pci: Enable UFSHCD_CAP_RPM_AUTOSUSPEND for Intel controllers

2021-01-04 Thread Sasha Levin
From: Adrian Hunter [ Upstream commit dd78bdb6f810bdcb173b42379af558c676c8e0aa ] Enable runtime PM auto-suspend by default for Intel host controllers. Link: https://lore.kernel.org/r/20201207083120.26732-5-adrian.hun...@intel.com Signed-off-by: Adrian Hunter Signed-off-by: Martin K. Petersen

[PATCH AUTOSEL 4.14 3/6] scsi: ide: Do not set the RQF_PREEMPT flag for sense requests

2021-01-04 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit 96d86e6a80a3ab9aff81d12f9f1f2a0da2917d38 ] RQF_PREEMPT is used for two different purposes in the legacy IDE code: 1. To mark power management requests. 2. To mark requests that should preempt another request. An (old) explanation of that feature

[PATCH AUTOSEL 4.14 2/6] scsi: ufs-pci: Ensure UFS device is in PowerDown mode for suspend-to-disk ->poweroff()

2021-01-04 Thread Sasha Levin
From: Adrian Hunter [ Upstream commit af423534d2de86cd0db729a5ac41f056ca8717de ] The expectation for suspend-to-disk is that devices will be powered-off, so the UFS device should be put in PowerDown mode. If spm_lvl is not 5, then that will not happen. Change the pm callbacks to force spm_lvl 5

[PATCH AUTOSEL 5.10 17/17] scsi: ufs: Clear UAC for FFU and RPMB LUNs

2021-01-04 Thread Sasha Levin
From: Jaegeuk Kim [ Upstream commit 4f3e900b628226011a5f71c19e53b175c014eb58 ] In order to conduct FFU or RPMB operations, UFS needs to clear UNIT ATTENTION condition. Clear it explicitly so that we get no failures during initialization. Link:

[PATCH AUTOSEL 5.4 1/8] workqueue: Kick a worker based on the actual activation of delayed works

2021-01-04 Thread Sasha Levin
From: Yunfeng Ye [ Upstream commit 01341fbd0d8d4e717fc1231cdffe00343088ce0b ] In realtime scenario, We do not want to have interference on the isolated cpu cores. but when invoking alloc_workqueue() for percpu wq on the housekeeping cpu, it kick a kworker on the isolated cpu. alloc_workqueue

[PATCH v9 06/16] dmaengine: dw-axi-dmac: Support device_prep_slave_sg

2021-01-04 Thread Sia Jee Heng
Add device_prep_slave_sg() callback function so that DMA_MEM_TO_DEV and DMA_DEV_TO_MEM operations in single mode can be supported. Existing AxiDMA driver only support data transfer between memory to memory. Data transfer between device to memory and memory to device in single mode would failed if

Re: [PATCH v2 11/16] rpmsg: char: check destination address is not null

2021-01-04 Thread Bjorn Andersson
On Tue 22 Dec 04:57 CST 2020, Arnaud Pouliquen wrote: > The name service announcement is not sent if no endpoint is created by > default. If the destination address is not precised by the > application when creating the device (thanks to the RPMsg CTRL interface), > it is not possible to have a

[PATCH AUTOSEL 4.14 4/6] kdev_t: always inline major/minor helper functions

2021-01-04 Thread Sasha Levin
From: Josh Poimboeuf [ Upstream commit aa8c7db494d0a83ecae583aa193f1134ef25d506 ] Silly GCC doesn't always inline these trivial functions. Fixes the following warning: arch/x86/kernel/sys_ia32.o: warning: objtool: cp_stat64()+0xd8: call to new_encode_dev() with UACCESS enabled Link:

[PATCH AUTOSEL 4.19 4/8] scsi: ide: Do not set the RQF_PREEMPT flag for sense requests

2021-01-04 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit 96d86e6a80a3ab9aff81d12f9f1f2a0da2917d38 ] RQF_PREEMPT is used for two different purposes in the legacy IDE code: 1. To mark power management requests. 2. To mark requests that should preempt another request. An (old) explanation of that feature

[PATCH AUTOSEL 5.4 5/8] scsi: scsi_transport_spi: Set RQF_PM for domain validation commands

2021-01-04 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit cfefd9f8240a7b9fdd96fcd54cb029870b6d8d88 ] Disable runtime power management during domain validation. Since a later patch removes RQF_PREEMPT, set RQF_PM for domain validation commands such that these are executed in the quiesced SCSI device state. Link:

[PATCH AUTOSEL 5.4 3/8] scsi: ufs-pci: Ensure UFS device is in PowerDown mode for suspend-to-disk ->poweroff()

2021-01-04 Thread Sasha Levin
From: Adrian Hunter [ Upstream commit af423534d2de86cd0db729a5ac41f056ca8717de ] The expectation for suspend-to-disk is that devices will be powered-off, so the UFS device should be put in PowerDown mode. If spm_lvl is not 5, then that will not happen. Change the pm callbacks to force spm_lvl 5

[PATCH AUTOSEL 4.19 5/8] scsi: scsi_transport_spi: Set RQF_PM for domain validation commands

2021-01-04 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit cfefd9f8240a7b9fdd96fcd54cb029870b6d8d88 ] Disable runtime power management during domain validation. Since a later patch removes RQF_PREEMPT, set RQF_PM for domain validation commands such that these are executed in the quiesced SCSI device state. Link:

[PATCH AUTOSEL 4.19 1/8] workqueue: Kick a worker based on the actual activation of delayed works

2021-01-04 Thread Sasha Levin
From: Yunfeng Ye [ Upstream commit 01341fbd0d8d4e717fc1231cdffe00343088ce0b ] In realtime scenario, We do not want to have interference on the isolated cpu cores. but when invoking alloc_workqueue() for percpu wq on the housekeeping cpu, it kick a kworker on the isolated cpu. alloc_workqueue

[PATCH AUTOSEL 4.14 1/6] workqueue: Kick a worker based on the actual activation of delayed works

2021-01-04 Thread Sasha Levin
From: Yunfeng Ye [ Upstream commit 01341fbd0d8d4e717fc1231cdffe00343088ce0b ] In realtime scenario, We do not want to have interference on the isolated cpu cores. but when invoking alloc_workqueue() for percpu wq on the housekeeping cpu, it kick a kworker on the isolated cpu. alloc_workqueue

[PATCH AUTOSEL 5.4 7/8] lib/genalloc: fix the overflow when size is too big

2021-01-04 Thread Sasha Levin
From: Huang Shijie [ Upstream commit 36845663843fc59c5d794e3dc0641472e3e572da ] Some graphic card has very big memory on chip, such as 32G bytes. In the following case, it will cause overflow: pool = gen_pool_create(PAGE_SHIFT, NUMA_NO_NODE); ret = gen_pool_add(pool, 0x100,

[PATCH v9 07/16] dmaegine: dw-axi-dmac: Support device_prep_dma_cyclic()

2021-01-04 Thread Sia Jee Heng
Add support for device_prep_dma_cyclic() callback function to benefit DMA cyclic client, for example ALSA. Existing AxiDMA driver only support data transfer between memory to memory. Data transfer between device to memory and memory to device in cyclic mode would failed if this interface is not

[PATCH AUTOSEL 4.4 2/3] lib/genalloc: fix the overflow when size is too big

2021-01-04 Thread Sasha Levin
From: Huang Shijie [ Upstream commit 36845663843fc59c5d794e3dc0641472e3e572da ] Some graphic card has very big memory on chip, such as 32G bytes. In the following case, it will cause overflow: pool = gen_pool_create(PAGE_SHIFT, NUMA_NO_NODE); ret = gen_pool_add(pool, 0x100,

[PATCH v9 14/16] dmaengine: dw-axi-dmac: Add Intel KeemBay AxiDMA BYTE and HALFWORD registers

2021-01-04 Thread Sia Jee Heng
Add support for Intel KeemBay AxiDMA BYTE and HALFWORD registers programming. Intel KeemBay AxiDMA supports data transfer between device to memory and memory to device operations. This code is needed by I2C, I3C, I2S, SPI and UART which uses FIFO size of 8bits and 16bits to perform memory to

[PATCH v9 16/16] dmaengine: dw-axi-dmac: Virtually split the linked-list

2021-01-04 Thread Sia Jee Heng
AxiDMA driver exposed the dma_set_max_seg_size() to the DMAENGINE. It shall helps the DMA clients to create size-optimized linked-list for the controller. However, there are certain situations where DMA client might not be abled to benefit from the dma_get_max_seg_size() if the segment size can't

[PATCH v9 15/16] dmaengine: dw-axi-dmac: Set constraint to the Max segment size

2021-01-04 Thread Sia Jee Heng
Add support for DMA Scatter-Gather (SG) constraint so that DMA clients can handle the AxiDMA limitation. Without supporting DMA constraint the default Max segment size reported by dmaengine is 64KB, which is not supported by Intel KeemBay AxiDMA. Reviewed-by: Andy Shevchenko Signed-off-by: Sia

[PATCH v9 13/16] dmaengine: dw-axi-dmac: Add Intel KeemBay AxiDMA handshake

2021-01-04 Thread Sia Jee Heng
Add support for Intel KeemBay AxiDMA device handshake programming. Device handshake number passed in to the AxiDMA shall be written to the Intel KeemBay AxiDMA hardware handshake registers before DMA operations are started. Reviewed-by: Andy Shevchenko Signed-off-by: Sia Jee Heng ---

[PATCH v9 12/16] dmaengine: dw-axi-dmac: Add Intel KeemBay AxiDMA support

2021-01-04 Thread Sia Jee Heng
Add support for Intel KeemBay AxiDMA to the .compatible field. The AxiDMA Apb region will be accessible if the compatible string matches the "intel,kmb-axi-dma". Reviewed-by: Andy Shevchenko Signed-off-by: Sia Jee Heng --- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 8 1 file

[PATCH v9 11/16] dmaengine: dw-axi-dmac: Add Intel KeemBay DMA register fields

2021-01-04 Thread Sia Jee Heng
Add support for Intel KeemBay DMA registers. These registers are required to run data transfer between device to memory and memory to device on Intel KeemBay SoC. Reviewed-by: Andy Shevchenko Signed-off-by: Sia Jee Heng --- drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 14 ++ 1 file

[PATCH v9 10/16] dt-binding: dma: dw-axi-dmac: Add support for Intel KeemBay AxiDMA

2021-01-04 Thread Sia Jee Heng
Add support for Intel KeemBay AxiDMA to the dw-axi-dmac Schemas DT binding. Signed-off-by: Sia Jee Heng Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v9 08/16] dmaengine: dw-axi-dmac: Support of_dma_controller_register()

2021-01-04 Thread Sia Jee Heng
Add support for of_dma_controller_register() so that DMA clients can pass in device handshake number to the AxiDMA driver. DMA clients shall code the device handshake number in the Device tree. When DMA activities are needed, DMA clients shall invoke OF helper function to pass in the device

[PATCH v9 09/16] dmaengine: dw-axi-dmac: Support burst residue granularity

2021-01-04 Thread Sia Jee Heng
Add support for DMA_RESIDUE_GRANULARITY_BURST so that AxiDMA can report DMA residue. Existing AxiDMA driver only support data transfer between memory to memory operation, therefore reporting DMA residue to the DMA clients is not supported. Reporting DMA residue to the DMA clients is important as

[PATCH AUTOSEL 4.4 3/3] depmod: handle the case of /sbin/depmod without /sbin in PATH

2021-01-04 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit cedd1862be7e666be87ec824dabc6a2b05618f36 ] Commit 436e980e2ed5 ("kbuild: don't hardcode depmod path") stopped hard-coding the path of depmod, but in the process caused trouble for distributions that had that /sbin location, but didn't have it in the PATH

[PATCH AUTOSEL 4.19 7/8] lib/genalloc: fix the overflow when size is too big

2021-01-04 Thread Sasha Levin
From: Huang Shijie [ Upstream commit 36845663843fc59c5d794e3dc0641472e3e572da ] Some graphic card has very big memory on chip, such as 32G bytes. In the following case, it will cause overflow: pool = gen_pool_create(PAGE_SHIFT, NUMA_NO_NODE); ret = gen_pool_add(pool, 0x100,

[PATCH AUTOSEL 4.4 1/3] workqueue: Kick a worker based on the actual activation of delayed works

2021-01-04 Thread Sasha Levin
From: Yunfeng Ye [ Upstream commit 01341fbd0d8d4e717fc1231cdffe00343088ce0b ] In realtime scenario, We do not want to have interference on the isolated cpu cores. but when invoking alloc_workqueue() for percpu wq on the housekeeping cpu, it kick a kworker on the isolated cpu. alloc_workqueue

[PATCH AUTOSEL 4.9 2/4] kdev_t: always inline major/minor helper functions

2021-01-04 Thread Sasha Levin
From: Josh Poimboeuf [ Upstream commit aa8c7db494d0a83ecae583aa193f1134ef25d506 ] Silly GCC doesn't always inline these trivial functions. Fixes the following warning: arch/x86/kernel/sys_ia32.o: warning: objtool: cp_stat64()+0xd8: call to new_encode_dev() with UACCESS enabled Link:

[PATCH AUTOSEL 4.9 3/4] lib/genalloc: fix the overflow when size is too big

2021-01-04 Thread Sasha Levin
From: Huang Shijie [ Upstream commit 36845663843fc59c5d794e3dc0641472e3e572da ] Some graphic card has very big memory on chip, such as 32G bytes. In the following case, it will cause overflow: pool = gen_pool_create(PAGE_SHIFT, NUMA_NO_NODE); ret = gen_pool_add(pool, 0x100,

[PATCH AUTOSEL 4.9 4/4] depmod: handle the case of /sbin/depmod without /sbin in PATH

2021-01-04 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit cedd1862be7e666be87ec824dabc6a2b05618f36 ] Commit 436e980e2ed5 ("kbuild: don't hardcode depmod path") stopped hard-coding the path of depmod, but in the process caused trouble for distributions that had that /sbin location, but didn't have it in the PATH

[PATCH v9 05/16] dmaengine: dw-axi-dmac: Add device_config operation

2021-01-04 Thread Sia Jee Heng
Add device_config() callback function so that the device address can be passed to the dma driver. DMA clients use this interface to pass in the device address to the AxiDMA. Without this interface, data transfer between device to memory and memory to device would failed. Reviewed-by: Andy

[PATCH AUTOSEL 4.9 1/4] workqueue: Kick a worker based on the actual activation of delayed works

2021-01-04 Thread Sasha Levin
From: Yunfeng Ye [ Upstream commit 01341fbd0d8d4e717fc1231cdffe00343088ce0b ] In realtime scenario, We do not want to have interference on the isolated cpu cores. but when invoking alloc_workqueue() for percpu wq on the housekeeping cpu, it kick a kworker on the isolated cpu. alloc_workqueue

[PATCH v9 04/16] dmaengine: dw-axi-dmac: Add device_synchronize() callback

2021-01-04 Thread Sia Jee Heng
Add support for device_synchronize() callback function to sync with dmaengine_terminate_sync(). Reviewed-by: Andy Shevchenko Signed-off-by: Sia Jee Heng --- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v9 03/16] dmaengine: dw-axi-dmac: move dma_pool_create() to alloc_chan_resources()

2021-01-04 Thread Sia Jee Heng
The DMA memory block is created at driver load time and exist for device lifetime. Move the dma_pool_create() to the ->chan_resource() callback function allowing the DMA memory blocks to be created as needed and destroyed when the channel is freed. Reviewed-by: Andy Shevchenko Signed-off-by: Sia

[PATCH AUTOSEL 4.19 3/8] scsi: ufs-pci: Ensure UFS device is in PowerDown mode for suspend-to-disk ->poweroff()

2021-01-04 Thread Sasha Levin
From: Adrian Hunter [ Upstream commit af423534d2de86cd0db729a5ac41f056ca8717de ] The expectation for suspend-to-disk is that devices will be powered-off, so the UFS device should be put in PowerDown mode. If spm_lvl is not 5, then that will not happen. Change the pm callbacks to force spm_lvl 5

[PATCH AUTOSEL 4.19 2/8] scsi: ufs: Fix wrong print message in dev_err()

2021-01-04 Thread Sasha Levin
From: Bean Huo [ Upstream commit 1fa0570002e3f66db9b58c32c60de4183b857a19 ] Change dev_err() print message from "dme-reset" to "dme_enable" in function ufshcd_dme_enable(). Link: https://lore.kernel.org/r/20201207190137.6858-3-huob...@gmail.com Acked-by: Alim Akhtar Acked-by: Avri Altman

[PATCH AUTOSEL 4.19 8/8] depmod: handle the case of /sbin/depmod without /sbin in PATH

2021-01-04 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit cedd1862be7e666be87ec824dabc6a2b05618f36 ] Commit 436e980e2ed5 ("kbuild: don't hardcode depmod path") stopped hard-coding the path of depmod, but in the process caused trouble for distributions that had that /sbin location, but didn't have it in the PATH

[PATCH AUTOSEL 5.10 15/17] lib/genalloc: fix the overflow when size is too big

2021-01-04 Thread Sasha Levin
From: Huang Shijie [ Upstream commit 36845663843fc59c5d794e3dc0641472e3e572da ] Some graphic card has very big memory on chip, such as 32G bytes. In the following case, it will cause overflow: pool = gen_pool_create(PAGE_SHIFT, NUMA_NO_NODE); ret = gen_pool_add(pool, 0x100,

[PATCH v9 00/16] dmaengine: dw-axi-dmac: support Intel KeemBay AxiDMA

2021-01-04 Thread Sia Jee Heng
The below patch series are to support AxiDMA running on Intel KeemBay SoC. The base driver is dw-axi-dmac. This driver only support DMA memory copy transfers. Code refactoring is needed so that additional features can be supported. The features added in this patch series are: - Replacing Linked

[PATCH AUTOSEL 5.10 11/17] scsi: scsi_transport_spi: Set RQF_PM for domain validation commands

2021-01-04 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit cfefd9f8240a7b9fdd96fcd54cb029870b6d8d88 ] Disable runtime power management during domain validation. Since a later patch removes RQF_PREEMPT, set RQF_PM for domain validation commands such that these are executed in the quiesced SCSI device state. Link:

Re: [PATCH v2 10/16] rpmsg: char: allow only one endpoint per device

2021-01-04 Thread Bjorn Andersson
On Tue 22 Dec 04:57 CST 2020, Arnaud Pouliquen wrote: > Only one endpoint can be created per device, prevent from multi open. > Having multiple invocations of rpmsg_create_ept() with the same chinfo sounds like a bad idea. I think in the SMD and GLINK case the underlying transport would

[PATCH AUTOSEL 5.10 13/17] local64.h: make mandatory

2021-01-04 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit 87dbc209ea04645fd2351981f09eff5d23f8e2e9 ] Make mandatory in include/asm-generic/Kbuild and remove all arch/*/include/asm/local64.h arch-specific files since they only #include . This fixes build errors on arch/c6x/ and arch/nios2/ for block/blk-iocost.c.

[PATCH AUTOSEL 5.10 08/17] scsi: block: Introduce BLK_MQ_REQ_PM

2021-01-04 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit 0854bcdcdec26aecdc92c303816f349ee1fba2bc ] Introduce the BLK_MQ_REQ_PM flag. This flag makes the request allocation functions set RQF_PM. This is the first step towards removing BLK_MQ_REQ_PREEMPT. Link:

Re: [PATCH v6 3/4] drm/panfrost: devfreq: Disable devfreq when num_supplies > 1

2021-01-04 Thread Nicolas Boichat
On Tue, Jan 5, 2021 at 8:34 AM Alyssa Rosenzweig wrote: > > > GPUs with more than a single regulator (e.g. G-57 on MT8183) will > > G72 Duh, sorry, yes. I will fix that in v7.

[PATCH AUTOSEL 5.10 03/17] scsi: ufs: Clear UAC for RPMB after ufshcd resets

2021-01-04 Thread Sasha Levin
From: Randall Huang [ Upstream commit 1918651f2d7e8d58c9b7c49755c61e41ed655009 ] If RPMB is not provisioned, we may see RPMB failure after UFS suspend/resume. Inject request_sense to clear uac in ufshcd reset flow. Link: https://lore.kernel.org/r/20201201041402.3860525-1-jaeg...@kernel.org

[PATCH AUTOSEL 5.10 04/17] scsi: ufs-pci: Fix restore from S4 for Intel controllers

2021-01-04 Thread Sasha Levin
From: Adrian Hunter [ Upstream commit c763729a10e538d997744317cf4a1c4f25266066 ] Currently, ufshcd-pci is the only UFS driver with support for suspend-to-disk PM callbacks (i.e. freeze/thaw/restore/poweroff). These callbacks are set by the macro SET_SYSTEM_SLEEP_PM_OPS to the same functions as

[PATCH AUTOSEL 5.10 02/17] scsi: ufs: Fix wrong print message in dev_err()

2021-01-04 Thread Sasha Levin
From: Bean Huo [ Upstream commit 1fa0570002e3f66db9b58c32c60de4183b857a19 ] Change dev_err() print message from "dme-reset" to "dme_enable" in function ufshcd_dme_enable(). Link: https://lore.kernel.org/r/20201207190137.6858-3-huob...@gmail.com Acked-by: Alim Akhtar Acked-by: Avri Altman

[PATCH AUTOSEL 5.10 05/17] scsi: ufs-pci: Ensure UFS device is in PowerDown mode for suspend-to-disk ->poweroff()

2021-01-04 Thread Sasha Levin
From: Adrian Hunter [ Upstream commit af423534d2de86cd0db729a5ac41f056ca8717de ] The expectation for suspend-to-disk is that devices will be powered-off, so the UFS device should be put in PowerDown mode. If spm_lvl is not 5, then that will not happen. Change the pm callbacks to force spm_lvl 5

[PATCH AUTOSEL 5.10 01/17] workqueue: Kick a worker based on the actual activation of delayed works

2021-01-04 Thread Sasha Levin
From: Yunfeng Ye [ Upstream commit 01341fbd0d8d4e717fc1231cdffe00343088ce0b ] In realtime scenario, We do not want to have interference on the isolated cpu cores. but when invoking alloc_workqueue() for percpu wq on the housekeeping cpu, it kick a kworker on the isolated cpu. alloc_workqueue

Re: in_compat_syscall() on x86

2021-01-04 Thread Al Viro
On Mon, Jan 04, 2021 at 06:47:38PM -0600, Eric W. Biederman wrote: > >> It is defined in the Ubuntu kernel configs I've got lurking: > >> Both 3.8.0-19_generic (Ubuntu 13.04) and 5.4.0-56_generic (probably 20.04). > >> Which is probably why it is in my test builds (I've just cut out > >> a lot of

mmotm 2021-01-04-16-56 uploaded

2021-01-04 Thread akpm
The mm-of-the-moment snapshot 2021-01-04-16-56 has been uploaded to https://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: https://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

Re: [PATCH] percpu: fix clang modpost warning in pcpu_build_alloc_info()

2021-01-04 Thread Dennis Zhou
On Mon, Jan 04, 2021 at 04:46:51PM -0700, Nathan Chancellor wrote: > On Thu, Dec 31, 2020 at 09:28:52PM +, Dennis Zhou wrote: > > This is an unusual situation so I thought it best to explain it in a > > separate patch. > > > > "percpu: reduce the number of cpu distance comparisons" introduces

Re: [PATCH v2 07/16] rpmsg: char: clean up rpmsg class

2021-01-04 Thread Bjorn Andersson
On Mon 04 Jan 18:47 CST 2021, Bjorn Andersson wrote: > On Tue 22 Dec 04:57 CST 2020, Arnaud Pouliquen wrote: > > This patch doesn't "clean up" the class, as described in $subject. It > just removes it. > > > Suppress the management of the rpmsg class as attribute. It is already > > handled in

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

2021-01-04 Thread Dan Williams
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 a mistake to put OF devices on > > > platform_bus. Those should have

Re: in_compat_syscall() on x86

2021-01-04 Thread Eric W. Biederman
Andy Lutomirski writes: >> On Jan 4, 2021, at 2:36 PM, David Laight wrote: >> >> From: Eric W. Biederman >>> Sent: 04 January 2021 20:41 >>> >>> Al Viro writes: >>> On Mon, Jan 04, 2021 at 12:16:56PM +, David Laight wrote: > On x86 in_compat_syscall() is defined as: >

Re: [PATCH v2 07/16] rpmsg: char: clean up rpmsg class

2021-01-04 Thread Bjorn Andersson
On Tue 22 Dec 04:57 CST 2020, Arnaud Pouliquen wrote: This patch doesn't "clean up" the class, as described in $subject. It just removes it. > Suppress the management of the rpmsg class as attribute. It is already > handled in /sys/bus rpmsg as specified in >

Re: [PATCH] PM / devfreq: spelling correction in a comment

2021-01-04 Thread Chanwoo Choi
Hi Lukasz, On Mon, Jan 4, 2021 at 11:01 PM Lukasz Luba wrote: > > The device attribute exposed in sysfs is called 'polling_interval'. Align > the comment. > > Signed-off-by: Lukasz Luba > --- > Hi Chanwoo, > > While grepping the devfreq polling_interval sources I've found > this trivial mistake

[PATCH v2] fs: amend SLAB_RECLAIM_ACCOUNT on gfs2 related slab cache

2021-01-04 Thread Huangzhaoyang
From: Zhaoyang Huang As gfs2_quotad_cachep and gfs2_glock_cachep have registered the shrinker, amending SLAB_RECLAIM_ACCOUNT when creating them, which make the slab acount to be presiced. Signed-off-by: Zhaoyang Huang --- v2: add gfs2_glock_cachep for same operation --- --- fs/gfs2/main.c | 4

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

2021-01-04 Thread Vincent Pelletier
Ping ? On Mon, 21 Dec 2020 14:47:07 +, Vincent Pelletier wrote: > 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 -next] kernel/audit: convert comma to semicolon

2021-01-04 Thread Paul Moore
On Mon, Dec 14, 2020 at 9:34 PM Paul Moore wrote: > On Fri, Dec 11, 2020 at 10:33 AM Richard Guy Briggs wrote: > > On 2020-12-11 16:42, Zheng Yongjun wrote: > > > Replace a comma between expression statements by a semicolon. > > > > > > Signed-off-by: Zheng Yongjun > > > --- > > >

Re: [PATCH v2 05/16] rpmsg: ns: initialize channel info override field

2021-01-04 Thread Bjorn Andersson
On Tue 22 Dec 04:57 CST 2020, Arnaud Pouliquen wrote: > By default driver_override should be 0 to avoid to force > the channel creation with a specified name.The local variable > is not initialized. > The same problem exists in qcom_glink_native, qcom_smd and rpmsg_char. Regards, Bjorn >

[PATCH v3] ovl: use a dedicated semaphore for dir upperfile caching

2021-01-04 Thread Icenowy Zheng
The function ovl_dir_real_file() currently uses the semaphore of the inode to synchronize write to the upperfile cache field. However, this function will get called by ovl_ioctl_set_flags(), which utilizes the inode semaphore too. In this case ovl_dir_real_file() will try to claim a lock that is

Re: [PATCH v6 4/4] drm/panfrost: Add mt8183-mali compatible string

2021-01-04 Thread Alyssa Rosenzweig
> Add support for MT8183's G-57 Bifrost. G72 signature.asc Description: PGP signature

Re: [PATCH v2 02/16] rpmsg: add RPMsg control API to register service

2021-01-04 Thread Bjorn Andersson
On Tue 22 Dec 04:57 CST 2020, Arnaud Pouliquen wrote: > Add API to register a RPMsg service to the control device. > The rpmsg_drv_ctrl_info structure links a service to its driver. > > Signed-off-by: Arnaud Pouliquen > --- > drivers/rpmsg/rpmsg_ctrl.c | 57

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