[PATCH bpf-next] selftests/bpf: Simplify the calculation of variables

2021-02-09 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./tools/testing/selftests/bpf/xdpxceiver.c:954:28-30: WARNING !A || A && B is equivalent to !A || B. ./tools/testing/selftests/bpf/xdpxceiver.c:932:28-30: WARNING !A || A && B is equivalent to !A || B. ./tools/testing/selftests/bpf/xdpxceiver.c:909:28-30: W

Re: [PATCH v17 07/10] mm: introduce memfd_secret system call to create "secret" memory areas

2021-02-09 Thread Michal Hocko
On Mon 08-02-21 23:26:05, Mike Rapoport wrote: > On Mon, Feb 08, 2021 at 11:49:22AM +0100, Michal Hocko wrote: > > On Mon 08-02-21 10:49:17, Mike Rapoport wrote: [...] > > > The file descriptor based memory has several advantages over the > > > "traditional" mm interfaces, such as mlock(), mprotect

[PATCH v11 net-next 13/15] net: mvpp2: add PPv23 RX FIFO flow control

2021-02-09 Thread stefanc
From: Stefan Chulski New FIFO flow control feature was added in PPv23. PPv2 FIFO polled by HW and trigger pause frame if FIFO fill level is below threshold. FIFO HW flow control enabled with CM3 RXQ&BM flow control with ethtool. Current FIFO thresholds is: 9KB for port with maximum speed 10Gb/s

[PATCH v11 net-next 14/15] net: mvpp2: set 802.3x GoP Flow Control mode

2021-02-09 Thread stefanc
From: Stefan Chulski This patch fix GMAC TX flow control autoneg. Flow control autoneg wrongly were disabled with enabled TX flow control. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

Re: [Industrypack-devel] [PATCH v1 1/2] ipack: Fail earlier for drivers without probe function

2021-02-09 Thread Greg Kroah-Hartman
On Tue, Feb 09, 2021 at 09:40:12AM +0100, Samuel Iglesias Gonsálvez wrote: > Hi Uwe, > > Thanks for the patches! > > Patch series is, > > Acked-by: Samuel Iglesias Gonsalvez > > Greg, Would you mind picking this patch series through your char-misc > tree? Will be glad to, thanks! greg k-h

[PATCH v11 net-next 15/15] net: mvpp2: add TX FC firmware check

2021-02-09 Thread stefanc
From: Stefan Chulski Patch check that TX FC firmware is running in CM3. If not, global TX FC would be disabled. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 1 + drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 42 2 files changed,

[PATCH] kswapd: no need reclaim cma pages triggered by unmovable allocation

2021-02-09 Thread zhou
From: zhou xianrong For purpose of better migration cma pages are allocated after failure movalbe allocations and are used normally for file pages or anonymous pages. In reclaim path so many cma pages if configurated are reclaimed from lru lists in kswapd mainly or direct reclaim triggered by un

Re: [PATCH 1/2] quota: Add mountpath based quota support

2021-02-09 Thread Christoph Hellwig
On Thu, Feb 04, 2021 at 01:53:50PM +0100, Jan Kara wrote: > Now quota data stored in a normal file is a setup we try to deprecate > anyway so another option is to just leave quotactl_path() only for those > setups where quota metadata is managed by the filesystem so we don't need > to pass quota fi

[PATCH net v2] vsock: fix locking in vsock_shutdown()

2021-02-09 Thread Stefano Garzarella
In vsock_shutdown() we touched some socket fields without holding the socket lock, such as 'state' and 'sk_flags'. Also, after the introduction of multi-transport, we are accessing 'vsk->transport' in vsock_send_shutdown() without holding the lock and this call can be made while the connection is

Re: Linux 4.9.256

2021-02-09 Thread Avi Kivity
On 2/8/21 8:57 PM, Sasha Levin wrote: On Mon, Feb 08, 2021 at 05:50:21PM +0200, Avi Kivity wrote: On 05/02/2021 16.26, Greg Kroah-Hartman wrote: I'm announcing the release of the 4.9.256 kernel. This, and the 4.4.256 release are a little bit "different" than normal. This contains only 1 patch

Re: [PATCH v2] KVM: x86/MMU: Do not check unsync status for root SP.

2021-02-09 Thread Yu Zhang
On Tue, Feb 09, 2021 at 08:46:42AM +0100, Paolo Bonzini wrote: > On 09/02/21 04:33, Yu Zhang wrote: > > On Mon, Feb 08, 2021 at 05:47:22PM +0100, Paolo Bonzini wrote: > > > On 08/02/21 14:49, Yu Zhang wrote: > > > > On Mon, Feb 08, 2021 at 12:36:57PM +0100, Paolo Bonzini wrote: > > > > > On 07/02/2

[PATCH] ARM: fix panic when kasan and kprobe are enabled

2021-02-09 Thread Shaobo Huang
From: huangshaobo arm32 uses software to simulate the instruction replaced by kprobe. some instructions may be simulated by constructing assembly functions. therefore, before executing instruction simulation, it is necessary to construct assembly function execution environment in C language throu

Re: [PATCH 8/8] sched/fair: Relax task_hot() for misfit tasks

2021-02-09 Thread Vincent Guittot
On Mon, 8 Feb 2021 at 19:24, Valentin Schneider wrote: > > On 08/02/21 17:21, Vincent Guittot wrote: > > On Thu, 28 Jan 2021 at 19:32, Valentin Schneider > > wrote: > >> > >> Misfit tasks can and will be preempted by the stopper to migrate them over > >> to a higher-capacity CPU. However, when ru

Re: [kbuild-all] Re: [patch 06/12] x86/entry: Convert system vectors to irq stack macro

2021-02-09 Thread Rong Chen
On 2/8/21 10:19 PM, Borislav Petkov wrote: On Sun, Feb 07, 2021 at 04:15:11PM +0800, Rong Chen wrote: Thanks for the advice, we'll add the check to our cluster, and sorry for the inconvenience. When it comes to the tip tree, I'd say you guys are much better off not scraping any patches from

Re: [PATCH] misc: fastrpc: fix incorrect usage of dma_map_sgtable

2021-02-09 Thread Marek Szyprowski
Hi On 08.02.2021 21:04, Jonathan Marek wrote: > dma_map_sgtable() returns 0 on success, which is the opposite of what this > code was doing. > > Fixes: 7cd7edb89437 ("misc: fastrpc: fix common struct sg_table related > issues") > Signed-off-by: Jonathan Marek Right, I'm really sorry for this re

Re: [PATCH] vdpa/mlx5: fix param validation in mlx5_vdpa_get_config()

2021-02-09 Thread Stefano Garzarella
On Tue, Feb 09, 2021 at 11:24:03AM +0800, Jason Wang wrote: On 2021/2/9 上午2:38, Michael S. Tsirkin wrote: On Mon, Feb 08, 2021 at 05:17:41PM +0100, Stefano Garzarella wrote: It's legal to have 'offset + len' equal to sizeof(struct virtio_net_config), since 'ndev->config' is a 'struct virtio_ne

Re: [PATCH v17 00/10] mm: introduce memfd_secret system call to create "secret" memory areas

2021-02-09 Thread Michal Hocko
On Mon 08-02-21 22:38:03, David Hildenbrand wrote: > > > Am 08.02.2021 um 22:13 schrieb Mike Rapoport : > > > > On Mon, Feb 08, 2021 at 10:27:18AM +0100, David Hildenbrand wrote: > >> On 08.02.21 09:49, Mike Rapoport wrote: > >> > >> Some questions (and request to document the answers) as we no

[PATCH] [PATCH 5.12/scsi-staging] scsi: ufs: convert sysfs sprintf/snprintf family to sysfs_emit

2021-02-09 Thread Jiapeng Chong
Fix the following coccicheck warning: ./drivers/scsi/ufs/ufshcd.c:1838:8-16: WARNING: use scnprintf or sprintf. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/scsi/ufs/ufshcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/dri

Re: [PATCH 7/8] sched/fair: Attempt misfit active balance when migration_type != migrate_misfit

2021-02-09 Thread Vincent Guittot
On Thu, 28 Jan 2021 at 19:32, Valentin Schneider wrote: > > Consider a 4-CPU big.LITTLE system with CPUs 0-1 as LITTLEs and CPUs 2-3 as > bigs. The resulting sched_domain hierarchy is: > > DIE [ ] > MC [][] >0 1 2 3 > > When running a multithreaded CPU-bound worklo

[PATCH] dmaengine: ti: k3-udma: Fix NULL pointer dereference error

2021-02-09 Thread Kishon Vijay Abraham I
bcdma_get_*() and udma_get_*() checks if bchan/rchan/tchan/rflow is already allocated by checking if it has a NON NULL value. For the error cases, bchan/rchan/tchan/rflow will have error value and bcdma_get_*() and udma_get_*() considers this as already allocated (PASS) since the error values are N

Re: [PATCH] vdpa/mlx5: fix param validation in mlx5_vdpa_get_config()

2021-02-09 Thread Stefano Garzarella
On Tue, Feb 09, 2021 at 07:43:02AM +0200, Eli Cohen wrote: On Mon, Feb 08, 2021 at 05:17:41PM +0100, Stefano Garzarella wrote: It's legal to have 'offset + len' equal to sizeof(struct virtio_net_config), since 'ndev->config' is a 'struct virtio_net_config', so we can safely copy its content unde

Re: [PATCH] auxdisplay: Remove in_interrupt() usage.

2021-02-09 Thread Sebastian Andrzej Siewior
On 2021-02-08 23:26:57 [+0100], Miguel Ojeda wrote: > Thanks -- can you please add a Link: tag to a lore URL or the docs or > similar where more information can be found regarding the > proposal/discussion for removing `in_interrurt()` etc.? It is useful > to track why these things are happening ar

Re: [RFC PATCH v3 1/2] mempinfd: Add new syscall to provide memory pin

2021-02-09 Thread Zhou Wang
On 2021/2/8 5:34, Matthew Wilcox wrote: > On Sun, Feb 07, 2021 at 04:18:03PM +0800, Zhou Wang wrote: >> SVA(share virtual address) offers a way for device to share process virtual >> address space safely, which makes more convenient for user space device >> driver coding. However, IO page faults ma

Re: [PATCH v6 3/3] drm/fourcc: Switch to %p4cc format modifier

2021-02-09 Thread Sakari Ailus
Hi Daniel, Thanks for the comments. On Tue, Feb 09, 2021 at 08:27:10AM +0100, Daniel Vetter wrote: > On Mon, Feb 8, 2021 at 9:20 PM Sakari Ailus > wrote: > > > > Instead of constructing the FourCC code manually, use the %p4cc printk > > modifier to print it. Also leave a message to avoid using t

We are a registered Private Loan Investment Company in the United Kingdom, we also registered with the Turkish British Chamber of Commerce and Industry (TBCCI) we have operations in Europe and Asia.

2021-02-09 Thread januskad
We are seeking for beneficiaries who source for fund to expand/relocating their business interest abroad. We are ready to fund projects outside Turkey and United Kingdom in the form of Soft Loan. We grant loans to both corporate and private entities at a low interest rate of 2% R.O.I per annul.

Re: [PATCH v17 07/10] mm: introduce memfd_secret system call to create "secret" memory areas

2021-02-09 Thread Mike Rapoport
On Tue, Feb 09, 2021 at 09:47:08AM +0100, Michal Hocko wrote: > On Mon 08-02-21 23:26:05, Mike Rapoport wrote: > > On Mon, Feb 08, 2021 at 11:49:22AM +0100, Michal Hocko wrote: > > > On Mon 08-02-21 10:49:17, Mike Rapoport wrote: > [...] > > > > The file descriptor based memory has several advantag

[PATCH 1/2] arm64: defconfig: Allow mt8173-based boards to boot from usb

2021-02-09 Thread Enric Balletbo i Serra
Enable the option necessary to boot mt8173-based boards to boot from usb devices, like its phy and the regulators needed to have proper support. Signed-off-by: Enric Balletbo i Serra --- arch/arm64/configs/defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/configs/d

[PATCH 2/2] arm64: defconfig: Enable options to support panel display for Mediatek Chromebooks

2021-02-09 Thread Enric Balletbo i Serra
There are some Mediatek based Chromebooks supported in the kernel. Enable the required config options to have the panel display working on both devices. This was tested on the ACER Chromebook R13 (MT8173) and the Lenovo Ideapad Duet (MT8183), but should also enable display support for similar devic

Re: [PATCH] clk: at91: sama5d2: Mark device OF_POPULATED after setup

2021-02-09 Thread Saravana Kannan
On Mon, Feb 8, 2021 at 11:55 PM Stephen Boyd wrote: > > Quoting Saravana Kannan (2021-01-28 09:01:41) > > On Thu, Jan 28, 2021 at 2:45 AM Tudor Ambarus > > wrote: > > > > > > The sama5d2 requires the clock provider initialized before timers. > > > We can't use a platform driver for the sama5d2-pm

RE: DMA direct mapping fix for 5.4 and earlier stable branches

2021-02-09 Thread obayashi.yoshimasa
> > As the drivers are currently under development and Socionext has > > chosen 5.4 stable kernel for their development. So I will let > > Obayashi-san answer this if it's possible for them to migrate to 5.10 > > instead? We have started this development project from last August, so we have sel

Re: [PATCH v17 00/10] mm: introduce memfd_secret system call to create "secret" memory areas

2021-02-09 Thread David Hildenbrand
On 09.02.21 09:59, Michal Hocko wrote: On Mon 08-02-21 22:38:03, David Hildenbrand wrote: Am 08.02.2021 um 22:13 schrieb Mike Rapoport : On Mon, Feb 08, 2021 at 10:27:18AM +0100, David Hildenbrand wrote: On 08.02.21 09:49, Mike Rapoport wrote: Some questions (and request to document the an

Re: [PATCH v2 2/7] ASoC: fsl_rpmsg: Add CPU DAI driver for audio base on rpmsg

2021-02-09 Thread Shengjiu Wang
On Mon, Feb 8, 2021 at 7:53 PM Mark Brown wrote: > > On Sun, Feb 07, 2021 at 06:23:50PM +0800, Shengjiu Wang wrote: > > > +static int fsl_rpmsg_hw_params(struct snd_pcm_substream *substream, > > +struct snd_pcm_hw_params *params, > > +struct

Re: [PATCH 1/3] bus: fsl-mc: Fix test for end of loop

2021-02-09 Thread Ioana Ciornei
On Mon, Feb 08, 2021 at 09:58:10PM +0300, Dan Carpenter wrote: > On Mon, Feb 08, 2021 at 07:09:47PM +0200, Ioana Ciornei wrote: > > From: Dan Carpenter > > > > The "desc" pointer can't possibly be NULL here. If we can't find the > > correct "desc" then tt points to the last element of the > > fs

Re: [RFC PATCH v3 1/2] mempinfd: Add new syscall to provide memory pin

2021-02-09 Thread Zhou Wang
On 2021/2/8 6:02, Andy Lutomirski wrote: > > >> On Feb 7, 2021, at 12:31 AM, Zhou Wang wrote: >> >> SVA(share virtual address) offers a way for device to share process virtual >> address space safely, which makes more convenient for user space device >> driver coding. However, IO page faults ma

Re: [PATCH 5/7] fsdax: Dedup file range to use a compare function

2021-02-09 Thread Ruan Shiyang
On 2021/2/8 下午11:19, Christoph Hellwig wrote: On Mon, Feb 08, 2021 at 01:09:22AM +0800, Shiyang Ruan wrote: With dax we cannot deal with readpage() etc. So, we create a funciton callback to perform the file data comparison and pass s/funciton/function/g +#define MIN(a, b) (((a) < (b)) ? (

Re: [Industrypack-devel] [PATCH v1 1/2] ipack: Fail earlier for drivers without probe function

2021-02-09 Thread Samuel Iglesias Gonsálvez
Hi Uwe, Thanks for the patches! Patch series is, Acked-by: Samuel Iglesias Gonsalvez Greg, Would you mind picking this patch series through your char-misc tree? Thanks! Sam On Sun, 2021-02-07 at 22:55 +0100, Uwe Kleine-König wrote: > A driver without a probe function isn't useful as it can

[PATCH] mm: backing-dev: Remove duplicated macro definition

2021-02-09 Thread Baolin Wang
Move the K() macro a little forward to remove the same macro definition. Signed-off-by: Baolin Wang --- mm/backing-dev.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 71a2bf4..576220a 100644 --- a/mm/backing-dev.c +++ b/mm/bac

Re: [PATCH v2] printk: fix deadlock when kernel panic

2021-02-09 Thread Petr Mladek
On Sat 2021-02-06 13:41:24, Muchun Song wrote: > We found a deadlock bug on our server when the kernel panic. It can be > described in the following diagram. > > CPU0: CPU1: > panic rcu_dump_cpu_stacks > kdump_nmi_sh

Re: [PATCH][next] iommu/mediatek: Fix unsigned domid comparison with less than zero

2021-02-09 Thread Dan Carpenter
On Thu, Feb 04, 2021 at 09:25:58AM +, Will Deacon wrote: > On Wed, Feb 03, 2021 at 01:59:36PM +, Colin King wrote: > > From: Colin Ian King > > > > Currently the check for domid < 0 is always false because domid > > is unsigned. Fix this by making it signed. > > > > Addresses-CoverityL

Re: [PATCH 1/2] mm: provide a sane PTE walking API for modules

2021-02-09 Thread Paolo Bonzini
On 09/02/21 09:14, Christoph Hellwig wrote: On Mon, Feb 08, 2021 at 07:18:56PM +0100, Paolo Bonzini wrote: Fair enough. I would expect that pretty much everyone using follow_pfn will at least want to switch to this one (as it's less bad and not impossible to use correctly), but I'll squash this

Re: [RESEND PATCH v18 0/3] userspace MHI client interface driver

2021-02-09 Thread Aleksander Morgado
Hey Jakub On Wed, Feb 3, 2021 at 7:41 PM Jakub Kicinski wrote: > > On Wed, 3 Feb 2021 19:28:28 +0100 Loic Poulain wrote: > > On Wed, 3 Feb 2021 at 19:05, Jakub Kicinski wrote: > > > On Wed, 03 Feb 2021 09:45:06 +0530 Manivannan Sadhasivam wrote: > > > > The current patchset only supports QMI cha

[PATCH v3] KVM: x86/MMU: Do not check unsync status for root SP.

2021-02-09 Thread Yu Zhang
In shadow page table, only leaf SPs may be marked as unsync; instead, for non-leaf SPs, we store the number of unsynced children in unsync_children. Therefore, in kvm_mmu_sync_root(), sp->unsync shall always be zero for the root SP and there is no need to check it. Remove the check, and add a warni

Re: [PATCH v6 1/3] lib/vsprintf: Add support for printing V4L2 and DRM fourccs

2021-02-09 Thread Sakari Ailus
Hi Andy, On Mon, Feb 08, 2021 at 10:43:30PM +0200, Andy Shevchenko wrote: > On Mon, Feb 8, 2021 at 10:11 PM Sakari Ailus > wrote: > > > > Add a printk modifier %p4cc (for pixel format) for printing V4L2 and DRM > > pixel formats denoted by fourccs. The fourcc encoding is the same for both > > so

Re: [PATCH] KVM: Use kvm_pfn_t for local PFN variable in hva_to_pfn_remapped()

2021-02-09 Thread Paolo Bonzini
On 08/02/21 21:19, Sean Christopherson wrote: Use kvm_pfn_t, a.k.a. u64, for the local 'pfn' variable when retrieving a so called "remapped" hva/pfn pair. In theory, the hva could resolve to a pfn in high memory on a 32-bit kernel. This bug was inadvertantly exposed by commit bd2fae8da794 ("KVM

Re: [PATCH] KVM: x86/xen: Use hva_t for holding hypercall page address

2021-02-09 Thread Paolo Bonzini
On 08/02/21 21:15, Sean Christopherson wrote: Use hva_t, a.k.a. unsigned long, for the local variable that holds the hypercall page address. On 32-bit KVM, gcc complains about using a u64 due to the implicit cast from a 64-bit value to a 32-bit pointer. arch/x86/kvm/xen.c: In function ‘kvm_x

Re: DMA direct mapping fix for 5.4 and earlier stable branches

2021-02-09 Thread Greg KH
On Tue, Feb 09, 2021 at 09:05:40AM +, obayashi.yoshim...@socionext.com wrote: > > > As the drivers are currently under development and Socionext has > > > chosen 5.4 stable kernel for their development. So I will let > > > Obayashi-san answer this if it's possible for them to migrate to 5.10 >

Re: [Linuxarm] [PATCH for next v1 0/2] gpio: few clean up patches to replace spin_lock_irqsave with spin_lock

2021-02-09 Thread luojiaxing
On 2021/2/8 21:28, Andy Shevchenko wrote: On Mon, Feb 8, 2021 at 11:11 AM luojiaxing wrote: Sorry, my operation error causes a patch missing from this patch set. I re-send the patch set. Please check the new one. What is the new one?! You have to give proper versioning and change log for you

Re: md_raid: mdX_raid6 looping after sync_action "check" to "idle" transition

2021-02-09 Thread Donald Buczek
On 09.02.21 01:46, Guoqing Jiang wrote: Great. I will send a formal patch with your reported-by and tested-by. Yes, that's fine. Thanks a lot for your help! Donald Thanks, Guoqing

Re: [RFC PATCH v3 1/2] mempinfd: Add new syscall to provide memory pin

2021-02-09 Thread Zhou Wang
On 2021/2/8 5:51, Arnd Bergmann wrote: > On Sun, Feb 7, 2021 at 9:18 AM Zhou Wang wrote: > >> diff --git a/arch/arm64/include/asm/unistd32.h >> b/arch/arm64/include/asm/unistd32.h >> index cccfbbe..3f49529 100644 >> --- a/arch/arm64/include/asm/unistd32.h >> +++ b/arch/arm64/include/asm/unistd32

Re: [PATCH] drivers: mmc: host: Retire MMC_GOLDFISH

2021-02-09 Thread Ulf Hansson
On Tue, 9 Feb 2021 at 01:23, wrote: > > From: Roman Kiryanov > > Android Studio Emulator no longer uses > this driver. > > Signed-off-by: Roman Kiryanov Roman, thanks for your patch. I personally think this makes sense and I haven't heard anybody using this driver for a while. However, please

Re: [PATCH V3 16/19] virtio-pci: introduce modern device module

2021-02-09 Thread Michael S. Tsirkin
On Tue, Feb 09, 2021 at 11:29:46AM +0800, Jason Wang wrote: > > On 2021/2/8 下午8:04, Michael S. Tsirkin wrote: > > On Mon, Feb 08, 2021 at 01:42:27PM +0800, Jason Wang wrote: > > > On 2021/2/5 下午11:34, Michael S. Tsirkin wrote: > > > > On Mon, Jan 04, 2021 at 02:55:00PM +0800, Jason Wang wrote: > >

Re: [PATCH] kswapd: no need reclaim cma pages triggered by unmovable allocation

2021-02-09 Thread Michal Hocko
On Tue 09-02-21 16:23:13, zhou wrote: > From: zhou xianrong > > For purpose of better migration cma pages are allocated after > failure movalbe allocations and are used normally for file pages > or anonymous pages. > > In reclaim path so many cma pages if configurated are reclaimed > from lru li

Re: [PATCH] HID: intel-ish-hid: ipc: Add Tiger Lake H PCI device ID

2021-02-09 Thread Jiri Kosina
On Mon, 8 Feb 2021, Srinivas Pandruvada wrote: > > Added Tiger Lake H PCI device ID to the supported device list. > > > > Signed-off-by: You-Sheng Yang > Acked-by: Srinivas Pandruvada Applied, thanks. -- Jiri Kosina SUSE Labs

[PATCH v2] drivers/misc/vmw_vmci: restrict too big queue size in

2021-02-09 Thread Sabyrzhan Tasbolatov
syzbot found WARNING in qp_broker_alloc[1] in qp_host_alloc_queue() when num_pages is 0x11, giving queue_size + queue_page_size bigger than KMALLOC_MAX_SIZE for kzalloc(), resulting order >= MAX_ORDER condition. queue_size + queue_page_size=0x8000d8, where KMALLOC_MAX_SIZE=0x40. Reported-

Re: [PATCH] vdpa/mlx5: fix param validation in mlx5_vdpa_get_config()

2021-02-09 Thread Michael S. Tsirkin
On Tue, Feb 09, 2021 at 11:24:03AM +0800, Jason Wang wrote: > > On 2021/2/9 上午2:38, Michael S. Tsirkin wrote: > > On Mon, Feb 08, 2021 at 05:17:41PM +0100, Stefano Garzarella wrote: > > > It's legal to have 'offset + len' equal to > > > sizeof(struct virtio_net_config), since 'ndev->config' is a >

[PATCH 0/6] Add basic support for Loongson-2K1000

2021-02-09 Thread Qing Zhang
These patches support single-core DTS boot to the serial port login interface, which can be operated using conventional commands. I have successfully tested it on the Loongson 2K1000 machine. pmon: http://cgit.loongnix.org/cgit/pmon-loongson3/ Qing Zhang (6): MIPS: Loongson64: DeviceTree for 2K

[PATCH 2/6] MIPS: Loongson64: Distinguish firmware dependencies DTB/LEFI.

2021-02-09 Thread Qing Zhang
Add DTB boot support, only support LS2K1000 processor for now, determine whether to use the built-in DTB or the DTB from the firmware by checking the range of CKSEG0 and XKPHYS. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off-by: Xingxing Su --- .../include/asm/mach-loongson64/

[PATCH 1/6] MIPS: Loongson64: DeviceTree for 2K1000

2021-02-09 Thread Qing Zhang
Add DeviceTree files for Loongson 2K1000 processor,currently only supports single-core boot. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off-by: Xingxing Su --- arch/mips/boot/dts/loongson/Makefile | 1 + .../boot/dts/loongson/loongson64-2k1000.dtsi | 243 ++

[PATCH 3/6] MIPS: Loongson64: Add support for the 2K1000 to get cpu_clock_freq

2021-02-09 Thread Qing Zhang
Get the fixed-clock from the CPU0 node of the device tree. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off-by: Xingxing Su --- arch/mips/loongson64/time.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/mips/loongson64/time.c b/arch/mips/loongson64/time

[PATCH 6/6] MIPS: Loongson64: Add a Loongson-2k default config file

2021-02-09 Thread Qing Zhang
Add default config for 2K1000. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off-by: Xingxing Su --- arch/mips/configs/loongson2k_defconfig | 353 + 1 file changed, 353 insertions(+) create mode 100644 arch/mips/configs/loongson2k_defconfig diff --git a/

[PATCH 4/6] MIPS: Loongson64: Add 2K1000 early_printk_port

2021-02-09 Thread Qing Zhang
Distinguish between 3A series CPU and 2K1000 CPU UART0. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off-by: Xingxing Su --- arch/mips/loongson64/init.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/mips/loongson64/init.c b/arch/mips/loongson64/ini

[PATCH 5/6] irqchip/loongson-liointc: irqchip add 2.0 version.

2021-02-09 Thread Qing Zhang
Add IO interrupt controller support for Loongson 2k1000, different from the 3a series is that 2K1000 has 64 interrupt sources, 0-31 correspond to the device tree liointc0 device node, and the other correspond to liointc1 node. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off-by: X

Re: [PATCH 1/2] clk: provide new devm helpers for prepared and enabled clocks

2021-02-09 Thread Uwe Kleine-König
Hello, On Mon, Dec 21, 2020 at 10:29:18AM +0100, Uwe Kleine-König wrote: > On Tue, Nov 10, 2020 at 09:25:37PM +0100, Uwe Kleine-König wrote: > > On Tue, Oct 13, 2020 at 10:21:31AM +0200, Uwe Kleine-König wrote: > > > When a driver keeps a clock prepared (or enabled) during the whole > > > lifetime

Re: [PATCH v2] drivers/misc/vmw_vmci: restrict too big queue size in

2021-02-09 Thread Alex Dewar
On 09/02/2021 09:31, Sabyrzhan Tasbolatov wrote: syzbot found WARNING in qp_broker_alloc[1] in qp_host_alloc_queue() when num_pages is 0x11, giving queue_size + queue_page_size bigger than KMALLOC_MAX_SIZE for kzalloc(), resulting order >= MAX_ORDER condition. queue_size + queue_page_size=0x

Re: [PATCH 5/7] fsdax: Dedup file range to use a compare function

2021-02-09 Thread Christoph Hellwig
On Tue, Feb 09, 2021 at 05:15:13PM +0800, Ruan Shiyang wrote: > The dax dedupe comparison need the iomap_ops pointer as argument, so my > understanding is that we don't modify the argument list of > generic_remap_file_range_prep(), but move its code into > __generic_remap_file_range_prep() whose

[PATCH v2 3/3] objtool: Support stack-swizzle

2021-02-09 Thread Peter Zijlstra
Natively support the stack swizzle pattern: mov %rsp, (%[tos]) mov %[tos], %rsp ... pop %rsp It uses the vals[] array to link the first two stack-ops, and detect the SP to SP_INDIRECT swizzle. Signed-off-by: Peter Zijlstra (Intel) --- tools/objtool/check.c | 4

[PATCH v2 0/3] objtool: Support the stack swizzle

2021-02-09 Thread Peter Zijlstra
Hi! Implement objtool support for the x86_64 stack swizzle pattern. This means we can use the minial stack swizzle: mov %rsp, (%[tos]) mov %[tos], %rsp ... pop %rsp from inline asm, with arbitrary stack setup. The ORC data for the Top-of-Stack will use the SP_INDIRECT CFA base. In order

[PATCH v2 2/3] objtool,x86: Additionally decode: mov %rsp, (%reg)

2021-02-09 Thread Peter Zijlstra
Where we already decode: mov %rsp, %reg, also decode mov %rsp, (%reg). Nothing should match for this new stack-op. Signed-off-by: Peter Zijlstra (Intel) --- tools/objtool/arch/x86/decode.c | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) --- a/tools/objtool/arch

Re: [PATCH] HID: logitech-dj: add support for the new lightspeed connection iteration

2021-02-09 Thread Jiri Kosina
On Sat, 23 Jan 2021, Filipe Laíns wrote: > From: Filipe Laíns > > This new connection type is the new iteration of the Lightspeed > connection and will probably be used in some of the newer gaming > devices. It is currently use in the G Pro X Superlight. > > This patch should be backported to o

Re: DMA direct mapping fix for 5.4 and earlier stable branches

2021-02-09 Thread Christoph Hellwig
On Tue, Feb 09, 2021 at 10:23:12AM +0100, Greg KH wrote: > > From the view point of ZeroCopy using DMABUF, is 5.4 not > > mature enough, and is 5.10 enough mature ? > > This is the most important point for judging migration. > > How do you judge "mature"? > > And again, if a feature isn't pr

[PATCH v2 1/3] x86/unwind/orc: Change REG_SP_INDIRECT

2021-02-09 Thread Peter Zijlstra
Currently REG_SP_INDIRECT is unused but means (%rsp + offset), change it to mean (%rsp) + offset. The reason is that we're going to swizzle stack in the middle of a C function with non-trivial stack footprint. This means that when the unwinder finds the ToS, it needs to dereference it (%rsp) and t

Re: [RFC PATCH v3 1/2] mempinfd: Add new syscall to provide memory pin

2021-02-09 Thread Greg KH
On Tue, Feb 09, 2021 at 05:17:46PM +0800, Zhou Wang wrote: > On 2021/2/8 6:02, Andy Lutomirski wrote: > > > > > >> On Feb 7, 2021, at 12:31 AM, Zhou Wang wrote: > >> > >> SVA(share virtual address) offers a way for device to share process > >> virtual > >> address space safely, which makes mor

Re: [PATCH v2 0/3] Add quirks to AMD Sensor Fusion Hub driver

2021-02-09 Thread Jiri Kosina
On Wed, 27 Jan 2021, m...@richard-neumann.de wrote: > From: Richard Neumann > > This patch adds quirks to the upstream (v8) version of the > AMD Sensor Fusion Hub driver. > The quirks provide a function to detect the sensor mask for systems > that do not have it stored in the AMD_P2C_MSG3 regist

[PATCH] bus: mvebu-mbus: Convert to use DEFINE_SHOW_ATTRIBUTE macro

2021-02-09 Thread Liao Pingfang
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Liao Pingfang --- drivers/bus/mvebu-mbus.c | 24 ++-- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c index 2519cee..4439612 100644 --- a/dr

Re: [Linuxarm] [PATCH for next v1 0/2] gpio: few clean up patches to replace spin_lock_irqsave with spin_lock

2021-02-09 Thread Andy Shevchenko
On Tue, Feb 9, 2021 at 11:24 AM luojiaxing wrote: > On 2021/2/8 21:28, Andy Shevchenko wrote: > > On Mon, Feb 8, 2021 at 11:11 AM luojiaxing wrote: > >> Sorry, my operation error causes a patch missing from this patch set. I > >> re-send the patch set. Please check the new one. > > What is the ne

Re: [PATCH v2] Use devicetree to determine present cpus (v2)

2021-02-09 Thread Jan Henrik Weinstock
Hi Stafford, thanks for cleaning up the patch and for your feedback! I will surely take it into account in the future. Gruss Jan On 08/02/2021 22:08, Stafford Horne wrote: Thanks Jan, I was able to take these 2 mails and merge them together to a single patch. I will send the result for rev

Re: [PATCH] clk: at91: sama5d2: Mark device OF_POPULATED after setup

2021-02-09 Thread Tudor.Ambarus
Hi, Stephen, On 2/9/21 9:55 AM, Stephen Boyd wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Quoting Saravana Kannan (2021-01-28 09:01:41) >> On Thu, Jan 28, 2021 at 2:45 AM Tudor Ambarus >> wrote: >>> >>> The sama5d2 requires the clock

Re: [RFC PATCH 2/2] KVM: selftests: Add a test for kvm page table code

2021-02-09 Thread wangyanan (Y)
On 2021/2/9 4:29, Ben Gardon wrote: On Mon, Feb 8, 2021 at 1:08 AM Yanan Wang wrote: This test serves as a performance tester and a bug reproducer for kvm page table code (GPA->HPA mappings), so it gives guidance for people trying to make some improvement for kvm. The function guest_code() i

[GIT PULL] memblock: remove return value of memblock_free_all()

2021-02-09 Thread Mike Rapoport
Hi Linus, This a small cleanup in memblock for 5.12 merge window. The following changes since commit 7c53f6b671f4aba70ff15e1b05148b10d58c2837: Linux 5.11-rc3 (2021-01-10 14:34:50 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock t

[PATCH] drivers/perf: Replace spin_lock_irqsave to spin_lock

2021-02-09 Thread Qi Liu
There is no need to do spin_lock_irqsave in context of hard IRQ, so replace them with spin_lock. Signed-off-by: Qi Liu --- drivers/perf/arm-cci.c | 5 ++--- drivers/perf/xgene_pmu.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/perf/arm-cci.c b/drivers/perf/

[PATCH v3] drivers/misc/vmw_vmci: restrict too big queue size in

2021-02-09 Thread Sabyrzhan Tasbolatov
> syzbot found WARNING in qp_broker_alloc[1] in qp_host_alloc_queue() > when num_pages is 0x11, giving queue_size + queue_page_size > bigger than KMALLOC_MAX_SIZE for kzalloc(), resulting order >= MAX_ORDER > condition. > > queue_size + queue_page_size=0x8000d8, where KMALLOC_MAX_SIZE=0x40.

[PATCH 2/2] venus: vdec: Add support for conceal control

2021-02-09 Thread Stanimir Varbanov
Adds support for decoder conceal color control. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/core.h | 1 + drivers/media/platform/qcom/venus/hfi_cmds.c | 18 -- drivers/media/platform/qcom/venus/hfi_helper.h | 10 ++ drivers/media/platfo

[PATCH 1/2] v4l2-ctrl: Add decoder conceal color control

2021-02-09 Thread Stanimir Varbanov
Add decoder v4l2 control to set conceal color. Signed-off-by: Stanimir Varbanov --- .../media/v4l/ext-ctrls-codec.rst | 20 +++ drivers/media/v4l2-core/v4l2-ctrls.c | 9 + include/uapi/linux/v4l2-controls.h| 1 + 3 files changed, 30 inse

[PATCH 0/2] Add decoder conceal color ctrl

2021-02-09 Thread Stanimir Varbanov
Hello, The first patch is adding a new control for conceal error color and the second adds support for it in the Venus decoder driver. Comments are welcome! regards, Stan Stanimir Varbanov (2): v4l2-ctrl: Add decoder conceal color control venus: vdec: Add support for conceal control .../m

Re: [PATCH v3] sched/topology: fix the issue groups don't span domain->span for NUMA diameter > 2

2021-02-09 Thread Vincent Guittot
On Tue, 9 Feb 2021 at 09:27, Barry Song wrote: > > As long as NUMA diameter > 2, building sched_domain by sibling's child > domain will definitely create a sched_domain with sched_group which will > span out of the sched_domain: > >+--+ +--++---+ +

Re: [PATCH] HID: Ignore battery for Elan touchscreen on HP Spectre X360 15-df0xxx

2021-02-09 Thread Jiri Kosina
On Fri, 22 Jan 2021, Elia Devito wrote: > Battery status is reported for the HP Spectre X360 Convertible 15-df0xxx > even if it does not have a battery. Prevent it to always report the > battery as low. > > Signed-off-by: Elia Devito Applied, thanks. -- Jiri Kosina SUSE Labs

Re: [PATCH v2 14/15] ARM: dts: bcm2711: Add the BSC interrupt controller

2021-02-09 Thread Dave Stevenson
Hi Maxime On Mon, 11 Jan 2021 at 14:23, Maxime Ripard wrote: > > The BSC controllers used for the HDMI DDC have an interrupt controller > shared between both instances. Let's add it to avoid polling. This seems to have unintended side effects. GIC interrupt 117 is shared between the standard I2C

Re: [PATCH v2] drivers/misc/vmw_vmci: restrict too big queue size in

2021-02-09 Thread Greg KH
On Tue, Feb 09, 2021 at 03:31:01PM +0600, Sabyrzhan Tasbolatov wrote: > syzbot found WARNING in qp_broker_alloc[1] in qp_host_alloc_queue() > when num_pages is 0x11, giving queue_size + queue_page_size > bigger than KMALLOC_MAX_SIZE for kzalloc(), resulting order >= MAX_ORDER > condition. > >

[PATCH v3 3/6] ARM: dts: imx6dl-prtvt7: Add display and panel nodes

2021-02-09 Thread Oleksij Rempel
Add Innolux G070Y2-T02 panel to the Protonic VT7 board. Signed-off-by: Robin van der Gracht Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/imx6dl-prtvt7.dts | 47 + 1 file changed, 47 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl-prtvt7.dts b/arch/arm/bo

[PATCH v3 0/6] devicetree fixes for Protonic and Plymovent boards

2021-02-09 Thread Oleksij Rempel
changes v3: - remove patch: ARM: dts: imx6dl-prtvt7: fix PWM cell count for the backlight node. This is done by Uwe in a separate patch - add Acked-by: Rob Herring... changes v2: - imx6dl-prtvt7: remove touchscreen-inverted-* Oleksij Rempel (6): dt-bindings: display: simple: add Innolux G07

[PATCH v3 2/6] drm: panel-simple: Add support for the Innolux G070Y2-T02 panel

2021-02-09 Thread Oleksij Rempel
Add compatible and timings for the Innolux G070Y2-T02 panel. It is 7" WVGA (800x480) TFT LCD panel with TTL interface and a backlight unit. Co-Developed-by: Robin van der Gracht Signed-off-by: Robin van der Gracht Signed-off-by: Oleksij Rempel --- drivers/gpu/drm/panel/panel-simple.c | 16

[PATCH v3 5/6] ARM: dts: imx6dl-prtvt7: Remove backlight enable gpio

2021-02-09 Thread Oleksij Rempel
The backlight power is controlled through the reg_bl_12v0 regulator. Co-Developed-by: Robin van der Gracht Signed-off-by: Robin van der Gracht Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/imx6dl-prtvt7.dts | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/boot/dts/imx

[PATCH v3 4/6] ARM: dts: imx6dl-prtvt7: add TSC2046 touchscreen node

2021-02-09 Thread Oleksij Rempel
Add touchscreen support to the Protonic VT7 board. Co-Developed-by: Robin van der Gracht Signed-off-by: Robin van der Gracht Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/imx6dl-prtvt7.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl-prtvt

[PATCH v3 6/6] ARM: dts: imx6dl-plym2m: remove touchscreen-size-* properties

2021-02-09 Thread Oleksij Rempel
Remove touchscreen-size-* properties. This values are not correct, event if it works with ts_test tool, it fails to work properly with weston. And the real range of values reported by the driver (or measured by the controller) is close to max values and may change with time on resistive panels. So

Re: [PATCH 5/7] fsdax: Dedup file range to use a compare function

2021-02-09 Thread Ruan Shiyang
On 2021/2/9 下午5:34, Christoph Hellwig wrote: On Tue, Feb 09, 2021 at 05:15:13PM +0800, Ruan Shiyang wrote: The dax dedupe comparison need the iomap_ops pointer as argument, so my understanding is that we don't modify the argument list of generic_remap_file_range_prep(), but move its code into

[PATCH v3 1/6] dt-bindings: display: simple: add Innolux G070Y2-T02 panel

2021-02-09 Thread Oleksij Rempel
Add binding for the Innolux G070Y2-T02 panel. It is 7" WVGA (800x480) TFT LCD panel with TTL interface and a backlight unit. Signed-off-by: Oleksij Rempel Acked-by: Rob Herring --- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --gi

Re: [PATCH v17 00/10] mm: introduce memfd_secret system call to create "secret" memory areas

2021-02-09 Thread Michal Hocko
On Tue 09-02-21 10:15:17, David Hildenbrand wrote: > On 09.02.21 09:59, Michal Hocko wrote: > > On Mon 08-02-21 22:38:03, David Hildenbrand wrote: > > > > > > > Am 08.02.2021 um 22:13 schrieb Mike Rapoport : > > > > > > > > On Mon, Feb 08, 2021 at 10:27:18AM +0100, David Hildenbrand wrote: > > >

[PATCH 0/2] usb: misc: Add support for Microchip USB5744

2021-02-09 Thread Michal Simek
Hi, the series is adding basic support for this USB hub. The key part is running reset over GPIO line and when i2c is connected it is necessary to send command to boot the hub. This chip is available on Xilinx zcu100/Ultra96 v1 board. Thanks, Michal Piyush Mehta (2): dt-bindings: usb: misc: A

[PATCH 2/2] usb: misc: usb5744: Add support for USB hub controller

2021-02-09 Thread Michal Simek
From: Piyush Mehta This patch adds a USB GPIO based hub reset for USB5744 hub. This usb5744 driver trigger hub reset signal after soft reset or core Reset. The HUB needs to be resetted after completion of phy initialization. After the toggling of gpio, hub configure using i2c usb attached command

[PATCH 1/2] dt-bindings: usb: misc: Add binding for Microchip usb5744 hub

2021-02-09 Thread Michal Simek
From: Piyush Mehta Added dt binding for usb5744 driver. Signed-off-by: Piyush Mehta Signed-off-by: Michal Simek --- .../bindings/usb/microchip,usb5744.yaml | 56 +++ MAINTAINERS | 1 + 2 files changed, 57 insertions(+) create mode 100

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