[PATCH v5 01/13] dt-bindings: mfd: Add 'nxp,imx8mq-vpu-ctrl' to syscon list

2021-03-17 Thread Benjamin Gaignard
Add 'nxp,imx8mq-vpu-ctrl' in the list of possible syscon. It will used to access to the VPU control registers. Signed-off-by: Benjamin Gaignard --- Documentation/devicetree/bindings/mfd/syscon.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v5 00/13] Add HANTRO G2/HEVC decoder support for IMX8MQ

2021-03-17 Thread Benjamin Gaignard
The IMX8MQ got two VPUs but until now only G1 has been enabled. This series aim to add the second VPU (aka G2) and provide basic HEVC decoding support. To be able to decode HEVC it is needed to add/update some of the structures in the uapi. In addition of them one HANTRO dedicated control is

Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism

2021-03-17 Thread Alex Williamson
On Wed, 17 Mar 2021 15:58:40 +0200 Leon Romanovsky wrote: > On Wed, Mar 17, 2021 at 06:47:18PM +0530, Amey Narkhede wrote: > > On 21/03/17 01:47PM, Leon Romanovsky wrote: > > > On Wed, Mar 17, 2021 at 04:53:09PM +0530, Amey Narkhede wrote: > > > > On 21/03/17 01:02PM, Leon Romanovsky wrote:

Re: [PATCH v4 15/25] mm/filemap: Convert lock_page_async to lock_folio_async

2021-03-17 Thread Christoph Hellwig
On Fri, Mar 05, 2021 at 04:18:51AM +, Matthew Wilcox (Oracle) wrote: > There aren't any actual callers of lock_page_async(), but convert > filemap_update_page() to call __lock_folio_async(). So please just kill lock_page_async first and mark __lock_page_async static. Then only update

Re: [PATCH] devicetree: bindings: clock: Minor typo fix in the file armada3700-tbg-clock.txt

2021-03-17 Thread Randy Dunlap
On 3/17/21 3:08 AM, Bhaskar Chowdhury wrote: > > s/provde/provide/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > .../devicetree/bindings/clock/armada3700-tbg-clock.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH] hpsa: fix boot on ia64 (atomic_t alignment)

2021-03-17 Thread John Paul Adrian Glaubitz
Hi Sergei! On 3/12/21 11:27 PM, Sergei Trofimovich wrote: > The failure initially observed as boot failure on rx3600 ia64 machine > with RAID bus controller: Hewlett-Packard Company Smart Array P600: > > kernel unaligned access to 0xe00105dd8b95, ip=0xa00100b87551 > kernel

Re: [PATCH] dt-bindings: Clean-up undocumented compatible strings

2021-03-17 Thread Jonathan Cameron
On Tue, 16 Mar 2021 13:49:18 -0600 Rob Herring wrote: > Adding checks for undocumented compatible strings reveals a bunch of > warnings in the DT binding examples. Fix the cases which are typos, just > a mismatch between the schema and the example, or aren't documented at all. > In a couple of

Re: [PATCH] message: fusion: Fix a typo in the file mptbase.h

2021-03-17 Thread Randy Dunlap
On 3/17/21 3:12 AM, Bhaskar Chowdhury wrote: > > s/contets/contents/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > drivers/message/fusion/mptbase.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/message/fusion/mptbase.h >

Re: [PATCH V2] kernel: debug: Ordinary typo fixes in the file gdbstub.c

2021-03-17 Thread Randy Dunlap
On 3/17/21 3:46 AM, Bhaskar Chowdhury wrote: > s/overwitten/overwritten/ > s/procesing/processing/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > Changes from V1: > As Daniel pointed out, I was misdoing a check,so corrected > > kernel/debug/gdbstub.c | 4 ++-- > 1 file

Re: [PATCH v4 10/25] mm/util: Add folio_mapping and folio_file_mapping

2021-03-17 Thread Christoph Hellwig
> +struct address_space *page_mapping(struct page *); > +struct address_space *folio_mapping(struct folio *); > +struct address_space *__folio_file_mapping(struct folio *); > + > +static inline struct address_space *folio_file_mapping(struct folio *folio) > +{ > + if

Re: [PATCH] platform: x86: Typo fix in the file classmate-laptop.c

2021-03-17 Thread Randy Dunlap
On 3/17/21 1:43 AM, Bhaskar Chowdhury wrote: > > s/derefence/dereference/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > drivers/platform/x86/classmate-laptop.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH][RESEND] Revert "PM: ACPI: reboot: Use S5 for reboot"

2021-03-17 Thread Josef Bacik
On 3/17/21 12:14 PM, Kai-Heng Feng wrote: On Wed, Mar 17, 2021 at 11:19 PM Josef Bacik wrote: On 3/16/21 10:50 PM, Kai-Heng Feng wrote: Hi, On Wed, Mar 17, 2021 at 10:17 AM Josef Bacik wrote: This reverts commit d60cd06331a3566d3305b3c7b566e79edf4e2095. This patch causes a panic when

Re: [PATCH 2/4] KVM: nVMX: Handle dynamic MSR intercept toggling

2021-03-17 Thread Sean Christopherson
On Wed, Mar 17, 2021, Paolo Bonzini wrote: > On 17/03/21 17:50, Sean Christopherson wrote: > > > Feel free to squash patch 3 in this one or reorder it before; it makes > > > sense > > > to make them macros when you go from 4 to 6 functions. > > I put them in a separate patch so that backporting

Re: [PATCH V2] parisc: math-emu: Few spelling fixes in the file fpu.h

2021-03-17 Thread Randy Dunlap
On 3/17/21 4:00 AM, Bhaskar Chowdhury wrote: > s/synopis/synopsis/ > s/differeniate/differentiate/ > s/differeniation/differentiation/ > > Signed-off-by: Bhaskar Chowdhury > --- > Changes from V1: > As pointed out by jer, the sentence construction change inducted. > >

Re: [PATCH v4 09/25] mm: Add folio_index, folio_page and folio_contains

2021-03-17 Thread Christoph Hellwig
On Sat, Mar 13, 2021 at 12:37:16PM -0800, Andrew Morton wrote: > On Fri, 5 Mar 2021 04:18:45 + "Matthew Wilcox (Oracle)" > wrote: > > > folio_index() is the equivalent of page_index() for folios. folio_page() > > finds the page in a folio for a page cache index. folio_contains() > >

Re: [PATCH 2/4] KVM: nVMX: Handle dynamic MSR intercept toggling

2021-03-17 Thread Paolo Bonzini
On 17/03/21 17:50, Sean Christopherson wrote: Feel free to squash patch 3 in this one or reorder it before; it makes sense to make them macros when you go from 4 to 6 functions. I put them in a separate patch so that backporting the fix for the older FS/GS nVMX bug was at least feasible. Not

Re: [PATCH v4 08/25] mm: Handle per-folio private data

2021-03-17 Thread Christoph Hellwig
> +static inline void attach_page_private(struct page *page, void *data) > +{ > + attach_folio_private((struct folio *)page, data); > +} > + > +static inline void *detach_page_private(struct page *page) > +{ > + return detach_folio_private((struct folio *)page); > +} I hate these open

Re: [PATCH] parisc: math-emu: Fix a typo in the file float.h

2021-03-17 Thread Randy Dunlap
On 3/17/21 3:39 AM, Bhaskar Chowdhury wrote: > > s/synopis/synopsis/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > arch/parisc/math-emu/float.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/parisc/math-emu/float.h

Re: [PATCH v5 0/3] Add support for secure regions in NAND

2021-03-17 Thread Miquel Raynal
Hi Manivannan, Manivannan Sadhasivam wrote on Wed, 17 Mar 2021 17:55:10 +0530: > On a typical end product, a vendor may choose to secure some regions in > the NAND memory which are supposed to stay intact between FW upgrades. > The access to those regions will be blocked by a secure element

Re: [PATCH v5 00/17] Fix reset controls and RPM of NVIDIA Tegra ASoC drivers

2021-03-17 Thread Dmitry Osipenko
14.03.2021 18:44, Dmitry Osipenko пишет: > Hi, > > This series adds missing hardware reset controls to I2S and AC97 drivers, > corrects runtime PM usage and drivers probe/remove order. Currently drivers > happen to work properly because reset is implicitly deasserted by tegra-clk > driver, but

Re: [PATCH 0/7 v4] Introduce a bulk order-0 page allocator with two in-tree users

2021-03-17 Thread Jesper Dangaard Brouer
On Wed, 17 Mar 2021 16:52:32 + Alexander Lobakin wrote: > From: Jesper Dangaard Brouer > Date: Wed, 17 Mar 2021 17:38:44 +0100 > > > On Wed, 17 Mar 2021 16:31:07 + > > Alexander Lobakin wrote: > > > > > From: Mel Gorman > > > Date: Fri, 12 Mar 2021 15:43:24 + > > > > > > Hi

Re: [PATCH v2 1/1] PCI: pciehp: Skip DLLSC handling if DPC is triggered

2021-03-17 Thread Sathyanarayanan Kuppuswamy Natarajan
Hi, On Wed, Mar 17, 2021 at 9:31 AM Dan Williams wrote: > > On Tue, Mar 16, 2021 at 10:31 PM Lukas Wunner wrote: > > > > On Tue, Mar 16, 2021 at 10:08:31PM -0700, Dan Williams wrote: > > > On Tue, Mar 16, 2021 at 9:14 PM Lukas Wunner wrote: > > > > > > > > On Fri, Mar 12, 2021 at 07:32:08PM

Linux 5.11.7

2021-03-17 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.11.7 kernel. All users of the 5.11 kernel series must upgrade. The updated 5.11.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.11.y and can be browsed at the normal kernel.org git web browser:

Linux 5.4.106

2021-03-17 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.4.106 kernel. All users of the 5.4 kernel series must upgrade. The updated 5.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y and can be browsed at the normal kernel.org git web browser:

Linux 5.10.24

2021-03-17 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.10.24 kernel. All users of the 5.10 kernel series must upgrade. The updated 5.10.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.10.y and can be browsed at the normal kernel.org git web

Re: Linux 4.19.181

2021-03-17 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index 48cdfe5ce992..29930269b486 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 19 -SUBLEVEL = 180 +SUBLEVEL = 181 EXTRAVERSION = NAME = "People's Front" diff --git

Linux 4.19.181

2021-03-17 Thread Greg Kroah-Hartman
I'm announcing the release of the 4.19.181 kernel. All users of the 4.19 kernel series must upgrade. The updated 4.19.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y and can be browsed at the normal kernel.org git web

Re: [PATCH v2] smp: kernel/panic.c - silence warnings

2021-03-17 Thread Christophe Leroy
Le 17/03/2021 à 13:23, Peter Zijlstra a écrit : On Wed, Mar 17, 2021 at 12:00:29PM +0100, Christophe Leroy wrote: What do you mean ? 'extern' prototype is pointless for function prototypes and deprecated, no new function prototypes should be added with the 'extern' keyword. checkpatch.pl

Re: Linux 4.14.226

2021-03-17 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index 6941aa5bd186..0e546913f1c4 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 225 +SUBLEVEL = 226 EXTRAVERSION = NAME = Petit Gorille diff --git

Linux 4.14.226

2021-03-17 Thread Greg Kroah-Hartman
I'm announcing the release of the 4.14.226 kernel. All users of the 4.14 kernel series must upgrade. The updated 4.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y and can be browsed at the normal kernel.org git web

Re: [PATCH] net/rds: correct socket tunable error in rds_tcp_tune()

2021-03-17 Thread Santosh Shilimkar
(Previous reply bounced due to format so re-sending to the list for archives) On Mar 17, 2021, at 7:52 AM, William Kucharski wrote: > > Correct an error where setting /proc/sys/net/rds/tcp/rds_tcp_rcvbuf would > instead modify the socket's sk_sndbuf and would leave sk_rcvbuf untouched. > >

Re: [PATCH v4 03/25] mm/vmstat: Add functions to account folio statistics

2021-03-17 Thread Christoph Hellwig
> +static inline > +void __inc_zone_folio_stat(struct folio *folio, enum zone_stat_item item) This prototype style is weird and doesn't follow either of the preffered styles.. > static inline void __mod_zone_freepage_state(struct zone *zone, int nr_pages, >

Re: [PATCH v4 01/25] mm: Introduce struct folio

2021-03-17 Thread Christoph Hellwig
On Fri, Mar 05, 2021 at 04:18:37AM +, Matthew Wilcox (Oracle) wrote: > +/* > + * A struct folio is either a base (order-0) page or the head page of > + * a compound page. > + */ Hmm. While that comment seems to be true I'm not sure it is the essence. Maybe it should be more framed in terms

Re: Linux 4.9.262

2021-03-17 Thread gregkh
From: Greg Kroah-Hartman diff --git a/Makefile b/Makefile index 7a233c641906..be5eac0a12d3 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 261 +SUBLEVEL = 262 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/alpha/include/asm/uaccess.h

Linux 4.9.262

2021-03-17 Thread gregkh
From: Greg Kroah-Hartman I'm announcing the release of the 4.9.262 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal

Re: Linux 4.4.262

2021-03-17 Thread gregkh
From: Greg Kroah-Hartman diff --git a/Makefile b/Makefile index 607f1b19555f..11acd6dd024a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 261 +SUBLEVEL = 262 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/alpha/include/asm/Kbuild

Linux 4.4.262

2021-03-17 Thread gregkh
From: Greg Kroah-Hartman I'm announcing the release of the 4.4.262 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal

Re: [PATCH] scsi: libsas: Reset num_scatter if libata mark qc as NODATA

2021-03-17 Thread Jolly Shah
Hi Jason, Thanks for the review. On Tue, Mar 16, 2021 at 6:50 PM Jason Yan wrote: > > > 在 2021/3/17 3:39, Jolly Shah 写道: > > When the cache_type for the scsi device is changed, the scsi layer > > issues a MODE_SELECT command. The caching mode details are communicated > > via a request buffer

Re: [PATCH][next] ixgbe: Fix out-of-bounds warning in ixgbe_host_interface_command()

2021-03-17 Thread Jann Horn
On Wed, Mar 17, 2021 at 8:43 AM Gustavo A. R. Silva wrote: > Fix the following out-of-bounds warning by replacing the one-element > array in an anonymous union with a pointer: > > CC [M] drivers/net/ethernet/intel/ixgbe/ixgbe_common.o > drivers/net/ethernet/intel/ixgbe/ixgbe_common.c: In

Re: [PATCH v4 09/19] coresight: etm4x: Move ETM to prohibited region for disable

2021-03-17 Thread Mathieu Poirier
On Wed, Mar 17, 2021 at 10:44:51AM +, Suzuki K Poulose wrote: > Hi Mathieu > > On 3/16/21 7:30 PM, Mathieu Poirier wrote: > > On Thu, Feb 25, 2021 at 07:35:33PM +, Suzuki K Poulose wrote: > > > If the CPU implements Arm v8.4 Trace filter controls (FEAT_TRF), > > > move the ETM to trace

Re: [PATCH 0/6] usbip fixes to crashes found by syzbot

2021-03-17 Thread Shuah Khan
On 3/17/21 9:38 AM, Tetsuo Handa wrote: On 2021/03/18 0:06, Shuah Khan wrote: Yes. I haven't sent the patch for that reason. I am trying to test a solution. I haven't come up with a solution yet. Holding event_lock isn't the right solution. I am not going to accept that. This is a window that

Re: [PATCH v2] btrfs: Use immediate assignment when referencing cc-option

2021-03-17 Thread David Sterba
On Wed, Mar 17, 2021 at 09:08:48AM -0700, Victor Erminpour wrote: > Calling cc-option will use KBUILD_CFLAGS, which when lazy setting > subdir-ccflags-y produces the following build error: > > scripts/Makefile.lib:10: *** Recursive variable `KBUILD_CFLAGS' \ > references itself

Re: [PATCH][next] RDMA/mlx5: Fix missing assignment of rc when calling mlx5_ib_dereg_mr

2021-03-17 Thread Leon Romanovsky
On Tue, Mar 16, 2021 at 09:51:17AM +, Colin King wrote: > From: Colin Ian King > > The assignment of the return code to rc when calling mlx5_ib_dereg_mr is > missing and there is an error check on an uninitialized rc. Fix this by > adding in the assignment. > > Addresses-Coverity:

Re: [PATCH 4/8] scsi: FlashPoint: Remove unused variable 'TID' from 'FlashPoint_AbortCCB()'

2021-03-17 Thread Khalid Aziz
On 3/17/21 3:11 AM, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/scsi/FlashPoint.c: In function ‘FlashPoint_AbortCCB’: > drivers/scsi/FlashPoint.c:1618:16: warning: variable ‘TID’ set but not used > [-Wunused-but-set-variable] > > Cc: Khalid Aziz > Cc:

Re: [PATCHv2 18/38] dt-bindings: power: supply: n900-battery: Convert to DT schema format

2021-03-17 Thread Pali Rohár
On Wednesday 17 March 2021 14:48:44 Sebastian Reichel wrote: > Convert the binding to DT schema format. > > Cc: Pali Rohár Rejected-by: Pali Rohár > Signed-off-by: Sebastian Reichel Hello Sebastian! I'm really really sorry, I have nothing against you, but personally I cannot ack change

Re: [PATCH 1/8] scsi: BusLogic: Supply __printf(x, y) formatting for blogic_msg()

2021-03-17 Thread Khalid Aziz
On 3/17/21 3:11 AM, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > In file included from drivers/scsi/BusLogic.c:51: > drivers/scsi/BusLogic.c: In function ‘blogic_msg’: > drivers/scsi/BusLogic.c:3591:2: warning: function ‘blogic_msg’ might be a > candidate for

Re: [PATCH] net: ethernet: intel: Fix a typo in the file ixgbe_dcb_nl.c

2021-03-17 Thread Jesse Brandeburg
Bhaskar Chowdhury wrote: > > s/Reprogam/Reprogram/ > > Signed-off-by: Bhaskar Chowdhury Reviewed-by: Jesse Brandeburg

Re: [PATCH 0/7 v4] Introduce a bulk order-0 page allocator with two in-tree users

2021-03-17 Thread Alexander Lobakin
From: Jesper Dangaard Brouer Date: Wed, 17 Mar 2021 17:38:44 +0100 > On Wed, 17 Mar 2021 16:31:07 + > Alexander Lobakin wrote: > > > From: Mel Gorman > > Date: Fri, 12 Mar 2021 15:43:24 + > > > > Hi there, > > > > > This series is based on top of Matthew Wilcox's series "Rationalise >

Re: [PATCH 2/4] KVM: nVMX: Handle dynamic MSR intercept toggling

2021-03-17 Thread Sean Christopherson
On Wed, Mar 17, 2021, Paolo Bonzini wrote: > On 16/03/21 19:44, Sean Christopherson wrote: > > Always check vmcs01's MSR bitmap when merging L0 and L1 bitmaps for L2, > > and always update the relevant bits in vmcs02. This fixes two distinct, > > but intertwined bugs related to dynamic MSR bitmap

[PATCH] ACPI: scan: Turn off unused power resources during initialization

2021-03-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki It is reported that on certain platforms unused ACPI power resources that have not been explicitly turned off prevent the platform from reaching the lowest power state in suspend-to-idle which leads to excessive power draw. For this reason, turn all of the unused ACPI

Re: [tip: locking/urgent] locking/ww_mutex: Treat ww_mutex_lock() like a trylock

2021-03-17 Thread Peter Zijlstra
On Wed, Mar 17, 2021 at 11:35:12AM -0400, Waiman Long wrote: > From reading the source code, nest_lock check is done in check_deadlock() so > that it won't complain. However, nest_lock isn't considered in > check_noncircular() which causes the splat to come out. Maybe we should add > a check for

[PATCH v6 17/17] uvc: use vb2 ioctl and fop helpers

2021-03-17 Thread Ricardo Ribalda
From: Hans Verkuil When uvc was written the vb2 ioctl and file operation helpers didn't exist. This patch switches uvc over to those helpers, which removes a lot of boilerplate code and simplifies VIDIOC_G/S_PRIORITY handling and allows us to drop the 'privileges' scheme, since that's now

[PATCH v6 16/17] media: uvcvideo: Return -EACCES to inactive controls

2021-03-17 Thread Ricardo Ribalda
If a control is inactive return -EACCES to let the userspace know that the value will not be applied automatically when the control is active again. Signed-off-by: Ricardo Ribalda Suggested-by: Hans Verkuil --- drivers/media/usb/uvc/uvc_ctrl.c | 73 +---

[PATCH v6 14/17] media: uvcvideo: Use control names from framework

2021-03-17 Thread Ricardo Ribalda
The framework already contains a map of IDs to names, lets use it when possible. Signed-off-by: Ricardo Ribalda Reviewed-by: Hans Verkuil Suggested-by: Hans Verkuil --- drivers/media/usb/uvc/uvc_ctrl.c | 57 drivers/media/usb/uvc/uvc_v4l2.c | 8 -

[PATCH v6 15/17] media: uvcvideo: Check controls flags before accessing them

2021-03-17 Thread Ricardo Ribalda
We can figure out if reading/writing a set of controls can fail without accessing them by checking their flags. This way we can honor the API closer: If an error is found when validating the list of controls passed with VIDIOC_G_EXT_CTRLS, then error_idx shall be set to ctrls->count to indicate

[PATCH v6 12/17] media: uvcvideo: Set unique vdev name based in type

2021-03-17 Thread Ricardo Ribalda
All the entities must have a unique name. We can have a descriptive and unique name by appending the function and the entity->id. This is even resilent to multi chain devices. Fixes v4l2-compliance: Media Controller ioctls: fail: v4l2-test-media.cpp(205):

[PATCH v6 11/17] media: uvcvideo: Use dev->name for querycap()

2021-03-17 Thread Ricardo Ribalda
Use the device name for the card name instead of vdev->name. Suggested-by: Laurent Pinchart Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_v4l2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/usb/uvc/uvc_v4l2.c

[PATCH v6 09/17] media: uvcvideo: refactor __uvc_ctrl_add_mapping

2021-03-17 Thread Ricardo Ribalda
Pass the chain instead of the device. We want to keed the reference to the chain that controls belong to. We need to delay the initialization of the controls after the chains have been initialized. This is a cleanup needed for the next patches. Reviewed-by: Laurent Pinchart Signed-off-by:

[PATCH v6 13/17] media: uvcvideo: Increase the size of UVC_METADATA_BUF_SIZE

2021-03-17 Thread Ricardo Ribalda
Hans has discovered that in his test device, for the H264 format bytesused goes up to about 570, for YUYV it will actually go up to a bit over 5000 bytes, and for MJPG up to about 2706 bytes. We should also, according to V4L2_META_FMT_UVC docs, drop headers when the buffer is full. Credit-to:

[PATCH v6 03/17] media: v4l2-ioctl: check_ext_ctrls: Return the right error_idx

2021-03-17 Thread Ricardo Ribalda
Drivers that do not use the ctrl-framework use this function instead. - Return the right error_idx If an error is found when validating the list of controls passed with VIDIOC_G_EXT_CTRLS, then error_idx shall be set to ctrls->count to indicate to userspace that no actual hardware was touched.

[PATCH v6 10/17] media: uvcvideo: Add support for V4L2_CTRL_TYPE_CTRL_CLASS

2021-03-17 Thread Ricardo Ribalda
Create all the class controls for the device defined controls. Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(216): missing control class for class 0098 fail: v4l2-test-controls.cpp(216): missing control tclass for class

[PATCH v6 07/17] media: uvcvideo: Set capability in s_param

2021-03-17 Thread Ricardo Ribalda
Fixes v4l2-compliance: Format ioctls (Input 0): warn: v4l2-test-formats.cpp(1339): S_PARM is supported but doesn't report V4L2_CAP_TIMEPERFRAME fail: v4l2-test-formats.cpp(1241): node->has_frmintervals && !cap->capability Reviewed-by: Laurent Pinchart

[PATCH v6 05/17] media: pvrusb2: Do not check for V4L2_CTRL_WHICH_DEF_VAL

2021-03-17 Thread Ricardo Ribalda
The framework already checks for us if V4L2_CTRL_WHICH_DEF_VAL is written. Cc: Mike Isely Signed-off-by: Ricardo Ribalda --- drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c

[PATCH v6 06/17] media: uvcvideo: Do not check for V4L2_CTRL_WHICH_DEF_VAL

2021-03-17 Thread Ricardo Ribalda
The framework already checks for us if V4L2_CTRL_WHICH_DEF_VAL is written. Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_v4l2.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/media/usb/uvc/uvc_v4l2.c b/drivers/media/usb/uvc/uvc_v4l2.c index

[PATCH v6 08/17] media: uvcvideo: Return -EIO for control errors

2021-03-17 Thread Ricardo Ribalda
The device is doing something unspected with the control. Either because the protocol is not properly implemented or there has been a HW error. Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(448): s_ctrl returned an error (22) test

[PATCH v6 00/17] uvcvideo: Fix v4l2-compliance errors

2021-03-17 Thread Ricardo Ribalda
v4l2-compliance -m /dev/media0 -a -f Total for uvcvideo device /dev/media0: 8, Succeeded: 6, Failed: 2, Warnings: 0 Total for uvcvideo device /dev/video0: 54, Succeeded: 50, Failed: 4, Warnings: 2 Total for uvcvideo device /dev/video1: 46, Succeeded: 46, Failed: 0, Warnings: 0 Grand Total for

[PATCH v6 02/17] media: v4l2-ioctl: check_ext_ctrls: Return -EINVAL on V4L2_CTRL_WHICH_REQUEST_VAL

2021-03-17 Thread Ricardo Ribalda
Drivers that do not use the ctrl-framework use this function instead. - Return -EINVAL for request_api calls Fixes v4l2-compliance: Buffer ioctls (Input 0): fail: v4l2-test-buffers.cpp(1994): ret != EINVAL && ret != EBADR && ret != ENOTTY test Requests: FAIL Cc:

[PATCH v6 04/17] media: v4l2-ioctl: check_ext_ctrls: Fix V4L2_CTRL_WHICH_DEF_VAL

2021-03-17 Thread Ricardo Ribalda
Drivers that do not use the ctrl-framework use this function instead. Default value cannot be changed, return EINVAL as soon as possible. Cc: sta...@vger.kernel.org Fixes: 6fa6f831f095 ("media: v4l2-ctrls: add core request support") Signed-off-by: Ricardo Ribalda ---

[PATCH v6 01/17] media: v4l2-ioctl: check_ext_ctrls: Fix multiclass V4L2_CTRL_WHICH_DEF_VAL

2021-03-17 Thread Ricardo Ribalda
Drivers that do not use the ctrl-framework use this function instead. - Do not check for multiple classes when getting the DEF_VAL. Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(813): doioctl(node, VIDIOC_G_EXT_CTRLS, ) test

Re: [PATCH v1] usb: typec: tcpci: Added few missing TCPCI register definitions

2021-03-17 Thread Greg Kroah-Hartman
On Tue, Mar 16, 2021 at 03:52:58PM -0700, Guenter Roeck wrote: > On 3/16/21 3:13 PM, Badhri Jagan Sridharan wrote: > > This change adds some of the register bit definitions from the TCPCI spec: > > https://www.usb.org/sites/default/files/documents/ > >

Re: [PATCH] sched: swait: use wake_up_process() instead of wake_up_state()

2021-03-17 Thread Thomas Gleixner
On Wed, Mar 17 2021 at 11:41, Mike Galbraith wrote: > On Wed, 2021-03-17 at 10:46 +0100, Ingo Molnar wrote: >> * Mike Galbraith wrote: >> >> > On Tue, 2021-03-16 at 19:20 +0800, Wang Qing wrote: >> > > Why not just use wake_up_process(). >> > >> > IMO this is not an improvement. There are other

Re: [PATCH v4 RESEND net-next] net: socket: use BIT() for MSG_*

2021-03-17 Thread David Miller
From: Menglong Dong Date: Wed, 17 Mar 2021 16:21:14 +0800 > Hello, > > On Wed, Mar 17, 2021 at 9:38 AM Guenter Roeck wrote: >> >> On Wed, Mar 17, 2021 at 01:02:51AM +0200, Andy Shevchenko wrote: >> > On Wednesday, March 17, 2021, Guenter Roeck wrote: >> > > ... >> >> The problem is in

Re: [PATCH 0/7 v4] Introduce a bulk order-0 page allocator with two in-tree users

2021-03-17 Thread Jesper Dangaard Brouer
On Wed, 17 Mar 2021 16:31:07 + Alexander Lobakin wrote: > From: Mel Gorman > Date: Fri, 12 Mar 2021 15:43:24 + > > Hi there, > > > This series is based on top of Matthew Wilcox's series "Rationalise > > __alloc_pages wrapper" and does not apply to 5.12-rc2. If you want to > > test and

[PATCH] drm/msm: Ratelimit invalid-fence message

2021-03-17 Thread Rob Clark
From: Rob Clark We have seen a couple cases where low memory situations cause something bad to happen, followed by a flood of these messages obscuring the root cause. Lets ratelimit the dmesg spam so that next time it happens we don't loose the kernel traces leading up to this. Signed-off-by:

Re: [PATCH 3/4] KVM: VMX: Macrofy the MSR bitmap getters and setters

2021-03-17 Thread Sean Christopherson
On Wed, Mar 17, 2021, Paolo Bonzini wrote: > On 16/03/21 19:44, Sean Christopherson wrote: > > + return (ret)true; \ > > I'm not sure if (void)true is amazing or disgusting, but anyway... Definitely both. > >

Re: [PATCH] misc/sgi-xp: use NULL instead of using plain integer as pointer

2021-03-17 Thread Steve Wahl
Reviewed-by: Steve Wahl On Tue, Mar 16, 2021 at 04:57:21PM +0800, Yang Li wrote: > This fixes the following sparse warnings: > drivers/misc/sgi-xp/xpc_main.c:210:23: warning: Using plain integer as > NULL pointer > > Reported-by: Abaci Robot > Signed-off-by: Yang Li > --- >

Re: [PATCH v4 2/2] mm: huge_memory: debugfs for file-backed THP split.

2021-03-17 Thread Yang Shi
On Wed, Mar 17, 2021 at 8:00 AM Zi Yan wrote: > > On 16 Mar 2021, at 19:18, Yang Shi wrote: > > > On Mon, Mar 15, 2021 at 1:34 PM Zi Yan wrote: > >> > >> From: Zi Yan > >> > >> Further extend /split_huge_pages to accept > >> ",," for file-backed THP split tests since > >> tmpfs may have file

Re: [PATCH v3 0/2] AM64: Add USB support

2021-03-17 Thread Kishon Vijay Abraham I
Aswath and Nishanth, On 17/03/21 10:00 am, Aswath Govindraju wrote: > The following series of patches, add USB support for AM642 evm. > > USB test logs, > https://pastebin.ubuntu.com/p/YSQRBWGmzd/ Vinod has provided stable tag [1] git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git

Re: [PATCH v2 1/1] PCI: pciehp: Skip DLLSC handling if DPC is triggered

2021-03-17 Thread Dan Williams
On Tue, Mar 16, 2021 at 10:31 PM Lukas Wunner wrote: > > On Tue, Mar 16, 2021 at 10:08:31PM -0700, Dan Williams wrote: > > On Tue, Mar 16, 2021 at 9:14 PM Lukas Wunner wrote: > > > > > > On Fri, Mar 12, 2021 at 07:32:08PM -0800, > > > sathyanarayanan.kuppusw...@linux.intel.com wrote: > > > > +

Re: [PATCH v13 7/8] soc: mediatek: add mtk mutex support for MT8183

2021-03-17 Thread Matthias Brugger
On 29/01/2021 10:22, Hsin-Yi Wang wrote: > From: Yongqiang Niu > > Add mtk mutex support for MT8183 SoC. > > Signed-off-by: Yongqiang Niu > Signed-off-by: Hsin-Yi Wang > Reviewed-by: CK Hu > --- > drivers/soc/mediatek/mtk-mutex.c | 50 > 1 file changed,

Re: [PATCH 0/7 v4] Introduce a bulk order-0 page allocator with two in-tree users

2021-03-17 Thread Alexander Lobakin
From: Mel Gorman Date: Fri, 12 Mar 2021 15:43:24 + Hi there, > This series is based on top of Matthew Wilcox's series "Rationalise > __alloc_pages wrapper" and does not apply to 5.12-rc2. If you want to > test and are not using Andrew's tree as a baseline, I suggest using the > following

Re: [mm] 8fd8d23ab1: WARNING:at_fs/buffer.c:#__brelse

2021-03-17 Thread Minchan Kim
On Wed, Mar 17, 2021 at 10:37:57AM +0800, kernel test robot wrote: > > > Greeting, > > FYI, we noticed the following commit (built with gcc-9): > > commit: 8fd8d23ab10cc2fceeac25ea7b0e2eaf98e78d64 ("[PATCH v3 3/3] mm: fs: > Invalidate BH LRU during page migration") > url: >

[PATCH] KVM: nSVM: Additions to optimizing L12 to L2 vmcb.save copies

2021-03-17 Thread Cathy Avery
Extend using the vmcb12 control clean field to determine which vmcb12.save registers were marked dirty in order to minimize register copies by including the CR bit. This patch also fixes the init of last_vmcb12_gpa by using an invalid physical address instead of 0. Tested: kvm-unit-tests kvm

Re: [PATCH v26 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2021-03-17 Thread Mathieu Poirier
On Mon, Mar 15, 2021 at 09:32:40PM +, Ben Levinsky wrote: > > > -Original Message- > From: Mathieu Poirier > Date: Monday, March 15, 2021 at 10:37 AM > To: Ben Levinsky > Cc: "devicet...@vger.kernel.org" , > "linux-remotep...@vger.kernel.org" , > "linux-kernel@vger.kernel.org" ,

Re: [PATCH -tip 0/3] x86/kprobes: Remoev single-step trap from x86 kprobes

2021-03-17 Thread Peter Zijlstra
On Wed, Mar 17, 2021 at 11:55:22PM +0900, Masami Hiramatsu wrote: > Hi Andy, > > Would you think you still need this series to remove iret to kernel? They're an improvement anyway, let me queue them so that they don't get lost. I'll line them up for tip/x86/core unless anybody else thinks of a

Re: macb broken on HiFive Unleashed

2021-03-17 Thread Andreas Schwab
It turned out to be a broken clock driver. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

Re: [PATCH 2/3] drivers/perf: convert sysfs scnprintf family to sysfs_emit_at

2021-03-17 Thread Joe Perches
On Wed, 2021-03-17 at 17:41 +0800, Qi Liu wrote: > Use the generic sysfs_emit_at() function take place of scnprintf() [] > diff --git a/drivers/perf/arm-ccn.c b/drivers/perf/arm-ccn.c [] > @@ -328,41 +328,37 @@ static ssize_t arm_ccn_pmu_event_show(struct device > *dev, >  

[PATCH] net: ipv4: Fixed some styling issues.

2021-03-17 Thread Anish Udupa
Ran checkpatch and found these warnings. Fixed some of them in this patch. a) Added a space before '='. b) Removed the space before the tab. Signed-off-by: Anish Udupa H --- net/ipv4/route.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/ipv4/route.c

Re: [PATCH][RESEND] Revert "PM: ACPI: reboot: Use S5 for reboot"

2021-03-17 Thread Josef Bacik
On 3/16/21 10:50 PM, Kai-Heng Feng wrote: Hi, On Wed, Mar 17, 2021 at 10:17 AM Josef Bacik wrote: This reverts commit d60cd06331a3566d3305b3c7b566e79edf4e2095. This patch causes a panic when rebooting my Dell Poweredge r440. I do not have the full panic log as it's lost at that stage of

Re: [patch 1/1] genirq: Disable interrupts for force threaded handlers

2021-03-17 Thread Johan Hovold
On Wed, Mar 17, 2021 at 03:48:06PM +0100, Sebastian Andrzej Siewior wrote: > On 2021-03-17 15:38:52 [+0100], Thomas Gleixner wrote: > > With interrupt force threading all device interrupt handlers are invoked > > from kernel threads. Contrary to hard interrupt context the invocation only > >

Re: [PATCH v26 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2021-03-17 Thread Mathieu Poirier
[...] > > > +/* > > > + * zynqmp_r5_remoteproc_probe > > > + * > > > + * @pdev: domain platform device for R5 cluster > > > + * > > > + * called when driver is probed, for each R5 core specified in > DT, > > > + * setup as needed to do

Re: linux-next: build failure after merge of the tip tree

2021-03-17 Thread Ian Rogers
On Wed, Mar 17, 2021 at 3:54 AM Borislav Petkov wrote: > > + Ian. > > On Wed, Mar 17, 2021 at 03:08:58PM +1100, Stephen Rothwell wrote: > > Hi all, > > > > After merging the tip tree, today's linux-next build (native perf) > > failed like this: > > > > In file included from

[PATCH v3] hwmon: corsair-psu: add support for critical values

2021-03-17 Thread Wilken Gottwalt
Adds support for reading the critical values of the temperature sensors and the rail sensors (voltage and current) once and caches them. Updates the naming of the constants following a more clear scheme. Also updates the documentation and fixes some typos. Updates is_visible and ops_read functions

Re: [PATCH] [RFC] arm64: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION

2021-03-17 Thread Catalin Marinas
On Wed, Mar 17, 2021 at 02:37:57PM +, Catalin Marinas wrote: > On Thu, Feb 25, 2021 at 12:20:56PM +0100, Arnd Bergmann wrote: > > diff --git a/arch/arm64/kernel/vmlinux.lds.S > > b/arch/arm64/kernel/vmlinux.lds.S > > index bad2b9eaab22..926cdb597a45 100644 > > ---

Re: [PATCH v7 2/3] block: add bdev_interposer

2021-03-17 Thread Mike Snitzer
On Tue, Mar 16 2021 at 11:03pm -0400, Ming Lei wrote: > On Tue, Mar 16, 2021 at 07:35:44PM +0300, Sergei Shtepa wrote: > > The 03/16/2021 11:09, Ming Lei wrote: > > > On Fri, Mar 12, 2021 at 06:44:54PM +0300, Sergei Shtepa wrote: > > > > bdev_interposer allows to redirect bio requests to another

Re: [PATCH v4 RESEND net-next] net: socket: use BIT() for MSG_*

2021-03-17 Thread Guenter Roeck
On Wed, Mar 17, 2021 at 09:53:23PM +0800, Menglong Dong wrote: > On Wed, Mar 17, 2021 at 5:36 PM Andy Shevchenko > wrote: > > > ... > > > > The problematic code is negation of the flags when it's done in > > operations like &. > > It maybe fixed by swapping positions of the arguments, i.e. ~(FOO

Re: AHCI SATA Runtime PM

2021-03-17 Thread Hans de Goede
Hi, On 3/4/21 4:34 PM, Alexander Monakov wrote: > Hello, Hans, Linux PM folks, > > I'm looking for clarification regarding this patch discussion: > > https://patchwork.kernel.org/project/linux-pm/patch/20180420101834.15783-2-0v3rdr...@gmail.com/ > > Hans said, > >> Ah, so the AHCI code has

Re: [tip: sched/core] sched/wait_bit, mm/filemap: Increase page and bit waitqueue hash size

2021-03-17 Thread Thomas Gleixner
On Wed, Mar 17 2021 at 12:38, tip-bot wrote: > The following commit has been merged into the sched/core branch of tip: > > Commit-ID: 873d7c4c6a920d43ff82e44121e54053d4edba93 > Gitweb: > https://git.kernel.org/tip/873d7c4c6a920d43ff82e44121e54053d4edba93 > Author:Nicholas

[tip: sched/core] rseq, ptrace: Add PTRACE_GET_RSEQ_CONFIGURATION request

2021-03-17 Thread tip-bot2 for Piotr Figiel
The following commit has been merged into the sched/core branch of tip: Commit-ID: 90f093fa8ea48e5d991332cee160b761423d55c1 Gitweb: https://git.kernel.org/tip/90f093fa8ea48e5d991332cee160b761423d55c1 Author:Piotr Figiel AuthorDate:Fri, 26 Feb 2021 14:51:56 +01:00

Re: [PATCH 6/9] objtool: Add elf_create_undef_symbol()

2021-03-17 Thread Sami Tolvanen
On Wed, Mar 17, 2021 at 7:40 AM Miroslav Benes wrote: > > On Wed, 17 Mar 2021, Peter Zijlstra wrote: > > > On Wed, Mar 17, 2021 at 02:52:23PM +0100, Miroslav Benes wrote: > > > > > > + if (!elf_symbol_add(elf, sym, SHN_XINDEX)) { > > > > + WARN("elf_symbol_add"); > > > > + return

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