[PATCH v2 0/1] scsi: libiscsi: fix NOP race condition

2020-09-25 Thread lduncan
From: Lee Duncan A customer that uses iSCSI NOPs extensively found a race condition caused in part by the two-lock system used in iscsi (a forward and a back lock), since sending an iSCSI NOP uses the forward lock, and receiving one uses the back lock. Because of this, processing of the "send"

[PATCH v2 1/1] scsi: libiscsi: fix NOP race condition

2020-09-25 Thread lduncan
From: Lee Duncan iSCSI NOPs are sometimes "lost", mistakenly sent to the user-land iscsid daemon instead of handled in the kernel, as they should be, resulting in a message from the daemon like: > iscsid: Got nop in, but kernel supports nop handling. This can occur because of the forward- and

RE: [PATCH v3 3/4] of_net: add mac-address-increment support

2020-09-25 Thread ansuelsmth
> -Original Message- > From: Rob Herring > Sent: Friday, September 25, 2020 8:24 PM > To: Ansuel Smith > Cc: Miquel Raynal ; Richard Weinberger > ; Vignesh Raghavendra ; David S. > Miller ; Jakub Kicinski ; > Andrew Lunn ; Heiner Kallweit > ; Russell King ; Frank > Rowand ; Boris

[PATCH] mm,kmemleak-test.c: move kmemleak-test.c to samples dir

2020-09-25 Thread Hui Su
kmemleak-test.c is just a kmemleak test module, which also can not be used as a built-in kernel module. Thus, i think it may should not be in mm dir, and move the kmemleak-test.c to samples/kmemleak/kmemleak-test.c. Fix the spelling of built-in by the way. Signed-off-by: Hui Su ---

RE: [PATCH v4] Introduce support for Systems Management Driver over WMI for Dell Systems

2020-09-25 Thread Limonciello, Mario
> > I really prefer min_value and max_value here, those have 2 advantages: > > 1. min/max is used almost everywhere in the kernel/sysfs for things like this, > upper-/lower-bound feels a bit like archaic Enlish to me. > > 2. The _value postfix makes it immediately clear that they are the

Re: [PATCH 2/2] PM/hibernate: remove the bogus call to get_gendisk in software_resume

2020-09-25 Thread Pavel Machek
Hi! > get_gendisk grabs a reference on the disk and file operation, so this > code will leak both of them while having absolutely no use for the > gendisk itself. > > This effectively reverts commit 2df83fa4bce421f > ("PM / Hibernate: Use get_gendisk to verify partition if resume_file is >

[PATCH RFT/RFC v2 46/47] staging: media: zoran: convert to vb2

2020-09-25 Thread Corentin Labbe
This is it! the ultimate last step, the vb2 conversion. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/Kconfig|2 +- drivers/staging/media/zoran/zoran.h| 83 +- drivers/staging/media/zoran/zoran_card.c | 45 +- drivers/staging/media/zoran/zoran_device.c

Re: [PATCH RFT/RFC v2 11/47] staging: media: zoran: zoran_device.c: convert pr_x to pci_x

2020-09-25 Thread Joe Perches
On Fri, 2020-09-25 at 18:30 +, Corentin Labbe wrote: > Signed-off-by: Corentin Labbe [] > diff --git a/drivers/staging/media/zoran/zoran_device.c > b/drivers/staging/media/zoran/zoran_device.c [] > @@ -198,15 +198,14 @@ void detect_guest_activity(struct zoran *zr) [] > for (i = 0; i <

[PATCH RFT/RFC v2 45/47] staging: media: zoran: remove deprecated .vidioc_g_jpegcomp

2020-09-25 Thread Corentin Labbe
This patchs removed the deprecated .vidioc_g_jpegcomp and replace it with corresponding v4l2_ctrl_ops code. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 22 ++ drivers/staging/media/zoran/zoran_driver.c | 49 -- 2 files changed, 22

[PATCH RFT/RFC v2 47/47] staging: media: zoran: update TODO

2020-09-25 Thread Corentin Labbe
Update the TODO of the zoran driver Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/TODO | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/zoran/TODO b/drivers/staging/media/zoran/TODO index

[PATCH RFT/RFC v2 44/47] staging: media: zoran: fix some compliance test

2020-09-25 Thread Corentin Labbe
Add TODO for "TRY_FMT cannot handle an invalid pixelformat" We need to set pixelformat in some case. We should also handle some minimum requirement. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-)

[PATCH RFT/RFC v2 38/47] staging: media: zoran: device support only 32bit DMA address

2020-09-25 Thread Corentin Labbe
The zoran device only supports 32bit DMA address. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran/zoran_card.c index

[PATCH RFT/RFC v2 42/47] staging: media: zoran: remove test_interrupts

2020-09-25 Thread Corentin Labbe
The test_interrupts function is useless, remove it. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 3 --- drivers/staging/media/zoran/zoran_card.c | 27 -- drivers/staging/media/zoran/zoran_device.c | 16 - 3 files changed, 46

[PATCH RFT/RFC v2 37/47] staging: media: zoran: disable output

2020-09-25 Thread Corentin Labbe
Zoran is picky about jpeg data it accepts. At least it seems to not support COM and APPn. So until a way to filter data will be done, disable output. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 2 ++ drivers/staging/media/zoran/zoran_driver.c | 20

[PATCH RFT/RFC v2 41/47] staging: media: zoran: add vidioc_g_parm

2020-09-25 Thread Corentin Labbe
Adding vidioc_g_parm made v4l compliance happy. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/staging/media/zoran/zoran_driver.c b/drivers/staging/media/zoran/zoran_driver.c index

[PATCH RFT/RFC v2 39/47] staging: media: zoran: enable makefile

2020-09-25 Thread Corentin Labbe
This patch enables compilation of the zoran driver. Signed-off-by: Corentin Labbe --- drivers/staging/media/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/Makefile b/drivers/staging/media/Makefile index 25910221b100..965a8b0e6cf2 100644 ---

[PATCH RFT/RFC v2 35/47] staging: media: zoran: Add more check for compliance

2020-09-25 Thread Corentin Labbe
The zoran driver miss some sanity checks, and this made v4l compliance happy. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/staging/media/zoran/zoran_driver.c

[PATCH RFT/RFC v2 34/47] staging: media: zoran: constify codec_name

2020-09-25 Thread Corentin Labbe
The codec_name could be const. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran/zoran_card.c index

[PATCH RFT/RFC v2 36/47] staging: media: zoran: Add vb_queue

2020-09-25 Thread Corentin Labbe
This patchs adds a vb_queue without using it. This reduce the final VB2 conversion patch. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/Kconfig| 1 + drivers/staging/media/zoran/zoran.h| 30 +++ drivers/staging/media/zoran/zoran_card.c | 7 +

[PATCH RFT/RFC v2 40/47] staging: media: zoran: remove framebuffer support

2020-09-25 Thread Corentin Labbe
The framebuffer support is obsolete, so let's reduce code size. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 4 - drivers/staging/media/zoran/zoran_card.c | 6 -- drivers/staging/media/zoran/zoran_driver.c | 85 -- 3 files changed, 95

[PATCH RFT/RFC v2 43/47] staging: media: zoran: fix use of buffer_size and sizeimage

2020-09-25 Thread Corentin Labbe
buffer_size was not set when it should be. Furthermore, use it instead of recalculate it. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 2 ++ drivers/staging/media/zoran/zoran_driver.c | 9 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git

[PATCH RFT/RFC v2 28/47] staging: media: zoran: convert mdelay to udelay

2020-09-25 Thread Corentin Labbe
As asked by checkpath, let's use udelay. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_device.c b/drivers/staging/media/zoran/zoran_device.c index

[PATCH RFT/RFC v2 26/47] staging: media: zoran: convert irq to pci irq

2020-09-25 Thread Corentin Labbe
This patch convert zoran to pci_irq functions. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran/zoran_card.c index

[PATCH RFT/RFC v2 33/47] staging: media: zoran: constify struct tvnorm

2020-09-25 Thread Corentin Labbe
The structure tvnorm could be consified. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/videocodec.h | 2 +- drivers/staging/media/zoran/zoran.h| 4 ++-- drivers/staging/media/zoran/zoran_card.c | 24 +++--- drivers/staging/media/zoran/zoran_device.c

[PATCH RFT/RFC v2 30/47] staging: media: zoran: use pci_request_regions

2020-09-25 Thread Corentin Labbe
Use pci_request_regions so now we can see zoran in /proc/iomem. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/staging/media/zoran/zoran_card.c

[PATCH RFT/RFC v2 27/47] staging: media: zoran: convert zoran alloc to devm

2020-09-25 Thread Corentin Labbe
Allocate the zoran structure with devm_ functions permit to simplify code. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_card.c

[PATCH RFT/RFC v2 31/47] staging: media: zoran: use devm_ioremap

2020-09-25 Thread Corentin Labbe
Using devm_ioremap simplify code. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran/zoran_card.c index

[PATCH RFT/RFC v2 29/47] staging: media: zoran: use devm for videocodec_master alloc

2020-09-25 Thread Corentin Labbe
Let's use devm allocations for videocodec, this simplify code. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 22 +- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_card.c

[PATCH RFT/RFC v2 32/47] staging: media: zoran: add stat_com buffer

2020-09-25 Thread Corentin Labbe
This patch adds the allocation of the stat_com buffer which be used later. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h | 2 ++ drivers/staging/media/zoran/zoran_card.c | 13 - 2 files changed, 14 insertions(+), 1 deletion(-) diff --git

[PATCH RFT/RFC v2 24/47] staging: media: zoran: use ZR_NORM

2020-09-25 Thread Corentin Labbe
Instead of using hardcoded numbers, let's use some define for ZR NORM. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 4 drivers/staging/media/zoran/zoran_card.c | 8 drivers/staging/media/zoran/zoran_driver.c | 6 +++--- 3 files changed, 11

[PATCH RFT/RFC v2 25/47] staging: media: zoran: zoran does not support STD_ALL

2020-09-25 Thread Corentin Labbe
In fact, zoran does not support V4L2_STD_ALL, so let's enumerate what we support. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/zoran/zoran_driver.c

Re: [PATCH 5.8 00/56] 5.8.12-rc1 review

2020-09-25 Thread Naresh Kamboju
On Fri, 25 Sep 2020 at 18:18, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.8.12 release. > There are 56 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

[PATCH RFT/RFC v2 18/47] staging: media: zoran: move jpg_settings out of zoran_fh

2020-09-25 Thread Corentin Labbe
We need to get rid of zoran_fh, so move the jpg_settings directly in the zoran structure. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 2 - drivers/staging/media/zoran/zoran_driver.c | 103 ++--- 2 files changed, 47 insertions(+), 58

[PATCH RFT/RFC v2 17/47] staging: media: zoran: move v4l_settings out of zoran_fh

2020-09-25 Thread Corentin Labbe
We need to get rid of zoran_fh, so move the v4l_settings directly in the zoran structure. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 1 - drivers/staging/media/zoran/zoran_driver.c | 38 ++ 2 files changed, 17 insertions(+), 22

Re: [PATCH] ath10k: qmi: Skip host capability request for Xiaomi Poco F1

2020-09-25 Thread Amit Pundir
On Fri, 25 Sep 2020 at 20:57, Bjorn Andersson wrote: > > On Thu 24 Sep 11:31 CDT 2020, Kalle Valo wrote: > > > Amit Pundir writes: > > > > > Workaround to get WiFi working on Xiaomi Poco F1 (sdm845) > > > phone. We get a non-fatal QMI_ERR_MALFORMED_MSG_V01 error > > > message in

[PATCH RFT/RFC v2 15/47] staging: media: zoran: do not print random guest 0

2020-09-25 Thread Corentin Labbe
The slot 0 of guest is never initialized and so we print later random data. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_device.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/staging/media/zoran/zoran_device.c

[PATCH RFT/RFC v2 19/47] staging: media: zoran: move overlay_settings out of zoran_fh

2020-09-25 Thread Corentin Labbe
We need to get rid of zoran_fh, so move the overlay_settings directly in the zoran structure. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 1 - drivers/staging/media/zoran/zoran_device.c | 8 ++--- drivers/staging/media/zoran/zoran_driver.c | 40

[PATCH RFT/RFC v2 20/47] staging: media: zoran: Use video_drvdata to get struct zoran

2020-09-25 Thread Corentin Labbe
Using video_drvdata() is proper and shorter than using directly fh pointers. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 40 -- 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_driver.c

[PATCH RFT/RFC v2 22/47] staging: media: zoran: remove overlay

2020-09-25 Thread Corentin Labbe
Supporting overlay is not necessary today, so let's reduce the code size by removing it. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 16 - drivers/staging/media/zoran/zoran_card.c | 6 - drivers/staging/media/zoran/zoran_device.c | 143 +

[PATCH RFT/RFC v2 16/47] staging: media: zoran: move buffer_size out of zoran_fh

2020-09-25 Thread Corentin Labbe
We need to get rid of zoran_fh, so move the buffer_size directly in the zoran structure. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 3 +- drivers/staging/media/zoran/zoran_device.c | 3 +- drivers/staging/media/zoran/zoran_driver.c | 62

[PATCH RFT/RFC v2 23/47] staging: media: zoran: Use DMA coherent for stat_com

2020-09-25 Thread Corentin Labbe
Instead of using a fragile virt_to_bus, let's use proper DMA coherent for the stat_com entry. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 2 ++ drivers/staging/media/zoran/zoran_card.c | 22 +++--- drivers/staging/media/zoran/zoran_device.c

[PATCH RFT/RFC v2 21/47] staging: media: zoran: Change zoran_v4l_set_format parameter from zoran_fh to zoran

2020-09-25 Thread Corentin Labbe
We need to get rid of zoran_fh, so let's change function arguments. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_driver.c

[PATCH RFT/RFC v2 14/47] staging: media: zoran: use v4l2_buffer_set_timestamp

2020-09-25 Thread Corentin Labbe
The ns_to_timeval function is removed, so replace it with v4l2_buffer_set_timestamp(). Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_driver.c

Re: [PATCH V3 6/8] mm: and drivers core: Convert hugetlb_report_node_meminfo to sysfs_emit

2020-09-25 Thread Joe Perches
On Sat, 2020-09-19 at 08:22 +0200, Greg Kroah-Hartman wrote: > I'll take a look at it on Monday... Thoughts?

[PATCH RFT/RFC v2 13/47] staging: media: zoran: use VFL_TYPE_VIDEO

2020-09-25 Thread Corentin Labbe
The VFL_TYPE_GRABBER type was removed, so let's use the new type. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran/zoran_card.c

[PATCH RFT/RFC v2 10/47] staging: media: zoran: convert dprintk debug

2020-09-25 Thread Corentin Labbe
This patch convert dprintk(debug) to pci_dbg. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 30 -- drivers/staging/media/zoran/zoran_card.h | 6 - drivers/staging/media/zoran/zoran_device.c | 2 +-

[PATCH RFT/RFC v2 06/47] staging: media: zoran: do not forward declare zr36057_init_vfe

2020-09-25 Thread Corentin Labbe
move function for avoiding forward declaration Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_device.c | 44 +++--- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_device.c

[PATCH RFT/RFC v2 11/47] staging: media: zoran: zoran_device.c: convert pr_x to pci_x

2020-09-25 Thread Corentin Labbe
Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_device.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_device.c b/drivers/staging/media/zoran/zoran_device.c index 61b4cfccc168..e50153218f72 100644 ---

[PATCH RFT/RFC v2 08/47] staging: media: zoran: convert dprintk warn

2020-09-25 Thread Corentin Labbe
This patch convert dprintk(warn) to pci_warn. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 18 -- drivers/staging/media/zoran/zoran_device.c | 13 +++--- drivers/staging/media/zoran/zoran_driver.c | 29 +- 3 files changed, 14

[PATCH RFT/RFC v2 12/47] staging: media: zoran: remove proc_fs

2020-09-25 Thread Corentin Labbe
The zoran driver give some debug information in procfs, but this is not the right place. So let's remove them, we will use debugfs later. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/Makefile | 2 +- drivers/staging/media/zoran/zoran.h| 5 -

[PATCH RFT/RFC v2 04/47] staging: media: zoran: Documentation: fix typo

2020-09-25 Thread Corentin Labbe
Fix some typo in doc. Signed-off-by: Corentin Labbe --- Documentation/media/v4l-drivers/zoran.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/media/v4l-drivers/zoran.rst b/Documentation/media/v4l-drivers/zoran.rst index a0586514cd8a..2b82b9a47a71

[PATCH RFT/RFC v2 09/47] staging: media: zoran: convert dprintk info to pci_info

2020-09-25 Thread Corentin Labbe
This patch convert dprintk(info) to pci_info (or pci_dbg if the message is not important). Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 46 +++--- drivers/staging/media/zoran/zoran_device.c | 27 -

[PATCH RFT/RFC v2 07/47] staging: media: zoran: convert all error dprintk to pci_err/pr_err

2020-09-25 Thread Corentin Labbe
This patch converts all errors dprintk to pci_err/pr_err. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/videocodec.c | 39 +-- drivers/staging/media/zoran/zoran_card.c | 96 ++ drivers/staging/media/zoran/zoran_device.c | 28 +-

[PATCH RFT/RFC v2 02/47] MAINTAINERS: change maintainer of the zoran driver

2020-09-25 Thread Corentin Labbe
Add myself as maintainer. Signed-off-by: Corentin Labbe --- Documentation/media/v4l-drivers/zoran.rst | 22 +++--- MAINTAINERS| 10 ++ drivers/staging/media/zoran/zoran_card.c | 5 - drivers/staging/media/zoran/zoran_card.h | 5

[PATCH RFT/RFC v2 03/47] staging: media: zoran: datasheet is no longer available from zoran.com

2020-09-25 Thread Corentin Labbe
Simply remove this broken reference Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_device.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_device.c b/drivers/staging/media/zoran/zoran_device.c index 04162be80420..79da964c678b 100644

[PATCH RFT/RFC v2 00/47] staging: media: bring back zoran driver

2020-09-25 Thread Corentin Labbe
Hello The zoran driver was removed in 5.3 The main reason of the removing was lack of motivation to convert it to VB2 Since I need it, I worked on bringing it back. So the plan to achieve it was: - clean up the coding style. - convert old usage/API - clean unused code - convert to VB2 I have

Re: [PATCH v38 21/24] x86/vdso: Implement a vDSO for Intel SGX enclave call

2020-09-25 Thread Andrew Cooper
On 15/09/2020 12:28, Jarkko Sakkinen wrote: > diff --git a/arch/x86/entry/vdso/vsgx_enter_enclave.S > b/arch/x86/entry/vdso/vsgx_enter_enclave.S > new file mode 100644 > index ..adbd59d41517 > --- /dev/null > +++ b/arch/x86/entry/vdso/vsgx_enter_enclave.S > @@ -0,0 +1,157 @@ >

Re: [PATCH v3 1/1] PCI/ERR: Fix reset logic in pcie_do_recovery() call

2020-09-25 Thread Sinan Kaya
On 9/25/2020 2:16 PM, Kuppuswamy, Sathyanarayanan wrote: >> >> If this is a too involved change, DPC driver should restore state >> when hotplug is not supported. > Yes. we can add a condition for hotplug capability check. >> >> DPC driver should be self-sufficient by itself. >> Sounds good. >>>

[PATCH] ath10k: Introduce a devicetree quirk to skip host cap QMI requests

2020-09-25 Thread Amit Pundir
There are firmware versions which do not support host capability QMI request. We suspect either the host cap is not implemented or there may be firmware specific issues, but apparently there seem to be a generation of firmware that has this particular behavior. For example, firmware build on

[PATCH v3 4/4] PCI: Limit pci_alloc_irq_vectors() to housekeeping CPUs

2020-09-25 Thread Nitesh Narayan Lal
If we have isolated CPUs dedicated for use by real-time tasks, we try to move IRQs to housekeeping CPUs from the userspace to reduce latency overhead on the isolated CPUs. If we allocate too many IRQ vectors, moving them all to housekeeping CPUs may exceed per-CPU vector limits. When we have

[PATCH v3 1/4] sched/isolation: API to get number of housekeeping CPUs

2020-09-25 Thread Nitesh Narayan Lal
Introduce a new API housekeeping_num_online_cpus(), that can be used to retrieve the number of online housekeeping CPUs based on the housekeeping flag passed by the caller. Some of the consumers for this API are the device drivers that were previously relying only on num_online_cpus() to

[PATCH v3 0/4] isolation: limit msix vectors to housekeeping CPUs

2020-09-25 Thread Nitesh Narayan Lal
This is a follow-up posting for "[PATCH v2 0/4] isolation: limit msix vectors based on housekeeping CPUs". Issue = With the current implementation device drivers while creating their MSIX         vectors only take num_online_cpus() into consideration which works quite well   for a non-RT

[PATCH v3 3/4] i40e: Limit msix vectors to housekeeping CPUs

2020-09-25 Thread Nitesh Narayan Lal
If we have isolated CPUs designated to perform real-time tasks, to keep the latency overhead to a minimum for real-time CPUs IRQ vectors are moved to housekeeping CPUs from the userspace. Creating MSIX vectors only based on the online CPUs could lead to exhaustion of housekeeping CPU IRQ vectors

[PATCH v3 2/4] sched/isolation: Extend nohz_full to isolate managed IRQs

2020-09-25 Thread Nitesh Narayan Lal
Extend nohz_full feature set to include isolation from managed IRQS. This is required specifically for setups that only uses nohz_full and still requires isolation for maintaining lower latency for the listed CPUs. Suggested-by: Frederic Weisbecker Signed-off-by: Nitesh Narayan Lal ---

[tip: ras/core] RAS/CEC: Convert to DEFINE_SHOW_ATTRIBUTE()

2020-09-25 Thread tip-bot2 for Qinglang Miao
The following commit has been merged into the ras/core branch of tip: Commit-ID: 4bd442e9a8388e8ec4ba7cf23a4774989d93b78e Gitweb: https://git.kernel.org/tip/4bd442e9a8388e8ec4ba7cf23a4774989d93b78e Author:Qinglang Miao AuthorDate:Sat, 19 Sep 2020 09:22:52 +08:00

Re: [PATCH v3 3/4] of_net: add mac-address-increment support

2020-09-25 Thread Rob Herring
On Sun, Sep 20, 2020 at 3:57 AM Ansuel Smith wrote: > > Lots of embedded devices use the mac-address of other interface > extracted from nvmem cells and increments it by one or two. Add two > bindings to integrate this and directly use the right mac-address for > the interface. Some example are

Re: [PATCH 1/2] mips: Add strong UC ordering config

2020-09-25 Thread Serge Semin
On Fri, Sep 25, 2020 at 11:54:20AM +0800, Jiaxun Yang wrote: > > > 在 2020/9/20 19:00, Serge Semin 写道: > > In accordance with [1, 2] memory transactions using CCA=2 (Uncached > > Cacheability and Coherency Attribute) are always strongly ordered. This > > means the younger memory accesses using

Re: [PATCH 0/9] sched: Migrate disable support

2020-09-25 Thread Sebastian Andrzej Siewior
On 2020-09-21 18:35:57 [+0200], Peter Zijlstra wrote: > Hi, Hi, > Here's my take on migrate_disable(). It avoids growing a second means of I have here: |005: numa_remove_cpu cpu 5 node 0: mask now 0,3-4,6-7 |007: smpboot: CPU 5 is now offline |006: [ cut here ] |006:

[PATCH v13 19/26] mm: Re-introduce do_mmap_pgoff()

2020-09-25 Thread Yu-cheng Yu
There was no more caller passing vm_flags to do_mmap(), and vm_flags was removed from the function's input by: commit 45e55300f114 ("mm: remove unnecessary wrapper function do_mmap_pgoff()"). There is a new user now. Shadow stack allocation passes VM_SHSTK to do_mmap(). Re-introduce the

Re: [PATCH v3 1/1] PCI/ERR: Fix reset logic in pcie_do_recovery() call

2020-09-25 Thread Kuppuswamy, Sathyanarayanan
On 9/25/20 10:47 AM, Sinan Kaya wrote: On 9/25/2020 1:11 PM, Kuppuswamy, Sathyanarayanan wrote: Why? Isn't DPC slot reset enough? It will do the reset at hardware level. But driver state is not cleaned up. So doing bus reset will restore both driver and hardware states. I really don't

Re: [PATCH v4] Introduce support for Systems Management Driver over WMI for Dell Systems

2020-09-25 Thread Hans de Goede
Hi, On 9/25/20 5:32 PM, Limonciello, Mario wrote: So I do want to preface this response by mentioning that Dell's implementation is based off the PLDM specification from the DMTF. https://www.dmtf.org/sites/default/files/standards/documents/DSP0247_1.0.0.pdf A lot of the nomenclature that has

[RFC PATCH 2/2] selftests/rseq: Adapt x86-64 rseq selftest to rseq KTLS prototype

2020-09-25 Thread Mathieu Desnoyers
The rseq KTLS ABI only requires a single SET_KTLS_OFFSET system call at library init for the entire thread group. There is no more need for per-thread registration. The only architecture-specific part of this patch is rseq_get_thread_pointer, which is only implemented for x86-64 so far. Other

[RFC PATCH 1/2] rseq: Implement KTLS prototype for x86-64

2020-09-25 Thread Mathieu Desnoyers
Upstreaming efforts aiming to integrate rseq support into glibc led to interesting discussions, where we identified a clear need to extend the size of the per-thread structure shared between kernel and user-space (struct rseq). This is something that is not possible with the current rseq ABI.

Re: WARNING: at kernel/workqueue.c:1473 __queue_work+0x3b8/0x3d0

2020-09-25 Thread Corentin Labbe
On Tue, Mar 03, 2020 at 04:31:11PM -0500, Daniel Jordan wrote: > On Tue, Mar 03, 2020 at 08:48:19AM +0100, Corentin Labbe wrote: > > The patch fix the issue. Thanks! > > Thanks for trying it! > > > So you could add: > > Reported-by: Corentin Labbe > > Tested-by: Corentin Labbe > > Tested-on:

[PATCH v13 14/26] x86/mm: Update maybe_mkwrite() for shadow stack

2020-09-25 Thread Yu-cheng Yu
Shadow stack memory is writable, but its VMA has VM_SHSTK instead of VM_WRITE. Update maybe_mkwrite() to include the shadow stack. Signed-off-by: Yu-cheng Yu --- arch/x86/Kconfig| 4 arch/x86/mm/pgtable.c | 18 ++ include/linux/mm.h | 2 ++

Re: [PATCH v1 3/4] mm: introduce page memcg flags

2020-09-25 Thread Johannes Weiner
On Thu, Sep 24, 2020 at 01:39:05PM -0700, Roman Gushchin wrote: > On Thu, Sep 24, 2020 at 04:01:22PM -0400, Johannes Weiner wrote: > > On Tue, Sep 22, 2020 at 01:36:59PM -0700, Roman Gushchin wrote: > > > The lowest bit in page->memcg_data is used to distinguish between > > > struct memory_cgroup

[PATCH v3] KVM: Check the allocation of pv cpu mask

2020-09-25 Thread lihaiwei . kernel
From: Haiwei Li check the allocation of per-cpu __pv_cpu_mask. Suggested-by: Vitaly Kuznetsov Signed-off-by: Haiwei Li --- v1 -> v2: * add CONFIG_SMP for kvm_send_ipi_mask_allbutself to prevent build error v2 -> v3: * always check the allocation of __pv_cpu_mask in kvm_flush_tlb_others

[PATCH v13 06/26] x86/mm: Change _PAGE_DIRTY to _PAGE_DIRTY_HW

2020-09-25 Thread Yu-cheng Yu
Before introducing _PAGE_COW for non-hardware memory management purposes in the next patch, rename _PAGE_DIRTY to _PAGE_DIRTY_HW and _PAGE_BIT_DIRTY to _PAGE_BIT_DIRTY_HW to make meanings more clear. There are no functional changes from this patch. Signed-off-by: Yu-cheng Yu Reviewed-by: Kees

Re: [PATCH v2 1/2] perf vendor events: Update CascadelakeX events to v1.08

2020-09-25 Thread Arnaldo Carvalho de Melo
Em Wed, Sep 23, 2020 at 09:25:06AM +0800, Jin, Yao escreveu: > On 9/23/2020 3:42 AM, Arnaldo Carvalho de Melo wrote: > > Em Tue, Sep 22, 2020 at 11:19:17AM +0800, Jin Yao escreveu: > > > - Update CascadelakeX events to v1.08. > > > - Update CascadelakeX JSON metrics from TMAM 4.0. > > > Other

Re: [PATCH] bus: mhi: core: debugfs: Use correct format specifiers for addresses

2020-09-25 Thread Jeffrey Hugo
On 9/25/2020 11:16 AM, Manivannan Sadhasivam wrote: For exposing the addresses of read/write pointers and doorbell register, let's use the correct format specifiers. This fixes the following issues generated using W=1 build in ARM32 and reported by Kbuild bot: All warnings (new ones prefixed by

Re: [Linux-kernel-mentees] [PATCH] Fix uninit-value in hci_chan_lookup_handle

2020-09-25 Thread Anant Thazhemadam
On 05/09/20 7:34 am, Anant Thazhemadam wrote: > When the amount of data stored in the location corresponding to > iov_iter *from is less then 4, some data seems to go uninitialized. > > Updating this condition accordingly, makes sense both intuitively and > logically as well, since the other

Re: [stable 5.8] rcu: INFO: rcu_sched self-detected stall on CPU - RIP: 0010:trace_graph_return

2020-09-25 Thread Paul E. McKenney
On Fri, Sep 25, 2020 at 12:40:43PM +0530, Naresh Kamboju wrote: > While running LTP trace test case on qemu_x86_64, qemu_i386 and i386 > the following kernel rcu: INFO reported. > > Easily reproducible on qemu_x86_64, qemu_i386 and i386 devices. > > steps to reproduce: > # Boot qemu_x86_64

Re: REGRESSION: 37f4a24c2469: blk-mq: centralise related handling into blk_mq_get_driver_tag

2020-09-25 Thread Shakeel Butt
On Fri, Sep 25, 2020 at 10:48 AM Roman Gushchin wrote: > > On Fri, Sep 25, 2020 at 10:35:03AM -0700, Shakeel Butt wrote: > > On Fri, Sep 25, 2020 at 10:22 AM Shakeel Butt wrote: > > > > > > On Fri, Sep 25, 2020 at 10:17 AM Linus Torvalds > > > wrote: > > > > > > > > On Fri, Sep 25, 2020 at 9:19

Re: [RFC-PATCH 2/4] mm: Add __rcu_alloc_page_lockless() func.

2020-09-25 Thread Uladzislau Rezki
On Fri, Sep 25, 2020 at 05:17:12PM +0100, Mel Gorman wrote: > On Fri, Sep 25, 2020 at 05:31:29PM +0200, Uladzislau Rezki wrote: > > > > > > > > > > > > All good points! > > > > > > > > > > > > On the other hand, duplicating a portion of the allocator > > > > > > functionality > > > > > > within

Re: [PATCH v12 07/29] media: v4l2-mem2mem: add v4l2_m2m_suspend, v4l2_m2m_resume

2020-09-25 Thread Tomasz Figa
On Fri, Sep 25, 2020 at 08:53:09PM +0300, Adrian Ratiu wrote: > Hi, > > I'm having a problem with this patch which landed in linux-next. > > On Fri, 14 Aug 2020, Xia Jiang wrote: > > From: Pi-Hsun Shih > > > > Add two functions that can be used to stop new jobs from being queued / > >

Re: [PATCH v12 07/29] media: v4l2-mem2mem: add v4l2_m2m_suspend, v4l2_m2m_resume

2020-09-25 Thread Adrian Ratiu
Hi, I'm having a problem with this patch which landed in linux-next. On Fri, 14 Aug 2020, Xia Jiang wrote: From: Pi-Hsun Shih Add two functions that can be used to stop new jobs from being queued / continue running queued job. This can be used while a driver using m2m helper is going to

Re: [PATCH] ARM: dts: cros-ec-keyboard: Add alternate keymap for KEY_LEFTMETA

2020-09-25 Thread Doug Anderson
Hi, On Fri, Sep 25, 2020 at 9:26 AM Stephen Boyd wrote: > > On newer keyboards this key is in a different place. Add both options to > the keymap so that both new and old keyboards work. > > Cc: Douglas Anderson > Signed-off-by: Stephen Boyd > --- > arch/arm/boot/dts/cros-ec-keyboard.dtsi | 1

Re: [PATCH 0/9] sched: Migrate disable support

2020-09-25 Thread Valentin Schneider
On 25/09/20 13:19, Valentin Schneider wrote: > On 25/09/20 12:58, Dietmar Eggemann wrote: >> With Valentin's print_rq() inspired test snippet I always see one of the >> RT user tasks as the second guy? BTW, it has to be RT tasks, never >> triggered with CFS tasks. >> >> [ 57.849268] CPU2

Re: [git pull] drm fixes for 5.9-rc7

2020-09-25 Thread pr-tracker-bot
The pull request you sent on Fri, 25 Sep 2020 11:45:04 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-09-25 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/574ec42e1a9c4bfb8b2eef8d801a77e92bcea76a Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] Power management fixes for v5.9-rc7

2020-09-25 Thread pr-tracker-bot
The pull request you sent on Fri, 25 Sep 2020 18:53:13 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git pm-5.9-rc7 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/15083aa02561f6f208a253132c9d3b72af8c2b40 Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] Please pull RDMA subsystem changes

2020-09-25 Thread pr-tracker-bot
The pull request you sent on Fri, 25 Sep 2020 09:57:29 -0300: > git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/33d04c66f5799befa7c0c618be387541d0c311a3 Thank you! -- Deet-doot-dot, I am a

Re: [PATCH v3 1/1] PCI/ERR: Fix reset logic in pcie_do_recovery() call

2020-09-25 Thread Sinan Kaya
On 9/25/2020 1:11 PM, Kuppuswamy, Sathyanarayanan wrote: >> Why? Isn't DPC slot reset enough? > It will do the reset at hardware level. But driver state is not > cleaned up. So doing bus reset will restore both driver and > hardware states. I really don't like this. If hotplug driver is restoring

Re: REGRESSION: 37f4a24c2469: blk-mq: centralise related handling into blk_mq_get_driver_tag

2020-09-25 Thread Roman Gushchin
On Fri, Sep 25, 2020 at 10:35:03AM -0700, Shakeel Butt wrote: > On Fri, Sep 25, 2020 at 10:22 AM Shakeel Butt wrote: > > > > On Fri, Sep 25, 2020 at 10:17 AM Linus Torvalds > > wrote: > > > > > > On Fri, Sep 25, 2020 at 9:19 AM Ming Lei wrote: > > > > > > > > git bisect shows the first bad

Re: [PATCH v2] : Add nitems() and snitems() macros

2020-09-25 Thread Alejandro Colomar
On 2020-09-25 19:39, Jonathan Wakely wrote: > Yes, I'm aware of all the rationale. I already said that it makes > sense in C++ where you have generic code. I am not convinced that it's > necessary to add to when all it does is a cast from > size_t to ptrdiff_t. > While I would prefer a

Re: [PATCH v2] : Add nitems() and snitems() macros

2020-09-25 Thread Jonathan Wakely
On 25/09/20 18:30 +0200, Alejandro Colomar via Libstdc++ wrote: I have a similar number of ARRAY_SIZE() and ARRAY_SSIZE(). I could have '#define snitems(arr) ((ptrdiff_t)nitems(arr))' in my projects, but is it really necessary? The barrier for adding something to glibc headers should be a LOT

Re: [PATCH v1 1/4] mm: memcontrol: use helpers to access page's memcg data

2020-09-25 Thread Johannes Weiner
On Thu, Sep 24, 2020 at 01:27:00PM -0700, Roman Gushchin wrote: > On Thu, Sep 24, 2020 at 03:45:08PM -0400, Johannes Weiner wrote: > > On Tue, Sep 22, 2020 at 01:36:57PM -0700, Roman Gushchin wrote: > > > Currently there are many open-coded reads and writes of the > > > page->mem_cgroup pointer,

Re: [PATCH 4.19 00/37] 4.19.148-rc1 review

2020-09-25 Thread Pavel Machek
Hi! > This is the start of the stable review cycle for the 4.19.148 release. > There are 37 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. CIP testing did not detect any problems.

Re: [PATCH v2] : Add nitems() and snitems() macros

2020-09-25 Thread Jonathan Wakely
On 25/09/20 18:30 +0200, Alejandro Colomar via Libstdc++ wrote: Hello Jonathan, On 2020-09-25 16:48, Jonathan Wakely wrote: Do you really need to provide snitems? Users can use (ptrdiff_t)nitems if needed, can't they? They can, but that adds casts in the code, which makes longer lines that

Re: [PATCH v6 bpf-next 4/6] selftests/bpf: add bpf_snprintf_btf helper tests

2020-09-25 Thread Andrii Nakryiko
On Thu, Sep 24, 2020 at 5:51 PM Alexei Starovoitov wrote: > > On Wed, Sep 23, 2020 at 06:46:26PM +0100, Alan Maguire wrote: > > +static int __strncmp(const void *m1, const void *m2, size_t len) > > +{ > > + const unsigned char *s1 = m1; > > + const unsigned char *s2 = m2; > > + int i,

Re: [PATCH v5 4/4] Bluetooth: Add toggle to switch off interleave scan

2020-09-25 Thread Marcel Holtmann
Hi Howard, > This patch add a configurable parameter to switch off the interleave > scan feature. > > Signed-off-by: Howard Chung > Reviewed-by: Alain Michaud > --- > > (no changes since v4) > > Changes in v4: > - Set EnableAdvMonInterleaveScan default to Disable > - Fix 80 chars limit in

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