Re: [PATCH] vdpa/mlx5: Fix pointer math in mlx5_vdpa_get_config()

2020-08-10 Thread Michael S. Tsirkin
On Mon, Aug 10, 2020 at 01:31:47PM +0300, Dan Carpenter wrote: > On Sun, Aug 09, 2020 at 06:34:04AM +, Eli Cohen wrote: > > Acked-by: Eli Cohen > > > > BTW, vdpa_sim has the same bug. > > > > I sent a patch for that on April 6. > > [PATCH 2/2] vdpa: Fix pointer math bug in

Re: [PATCH] ASoC: intel: Fix memleak in sst_media_open

2020-08-10 Thread Pierre-Louis Bossart
On 8/9/20 3:56 AM, Dinghao Liu wrote: When power_up_sst() fails, stream needs to be freed just like when try_module_get() fails. However, current code is returning directly and ends up leaking memory. Fixes: 0121327c1a68b ("ASoC: Intel: mfld-pcm: add control for powering up/down dsp")

Re: [PATCH 19/22] crypto: inside-secure - add check for xts input length equal to zero

2020-08-10 Thread Horia Geantă
On 8/10/2020 4:45 PM, Herbert Xu wrote: > On Mon, Aug 10, 2020 at 10:20:20AM +, Van Leeuwen, Pascal wrote: >> >> With all due respect, but this makes no sense. > > I agree. This is a lot of churn for no gain. > I would say the gain is that all skcipher algorithms would behave the same when

drivers/firmware/meson/meson_sm.c:170:17: sparse: sparse: incorrect type in argument 2 (different address spaces)

2020-08-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fc80c51fd4b23ec007e88d4c688f2cac1b8648e7 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 8 weeks ago config: arm64-randconfig-s032-20200810

Re: [PATCH 0/5] kasan: add workqueue and timer stack for generic KASAN

2020-08-10 Thread Walter Wu
On Mon, 2020-08-10 at 08:44 -0400, Qian Cai wrote: > On Mon, Aug 10, 2020 at 07:50:57PM +0800, Walter Wu wrote: > > On Mon, 2020-08-10 at 07:19 -0400, Qian Cai wrote: > > > > > > > On Aug 10, 2020, at 3:21 AM, Walter Wu > > > > wrote: > > > > > > > > Syzbot reports many UAF issues for

[PATCH] HID: i2c-hid: Add 60ms delay after SET_POWER ON

2020-08-10 Thread Kai-Heng Feng
Goodix touchpad fails to operate in I2C mode after system suspend. According to the vendor, Windows is more forgiving and there's a 60ms delay after SET_POWER ON command. So let's do the same here, to workaround for the touchpads that depend on the delay. Signed-off-by: Kai-Heng Feng ---

Re: [PATCH] x86/mm/64: Do not dereference non-present PGD entries

2020-08-10 Thread Dave Hansen
... adding Kirill On 8/7/20 1:40 AM, Joerg Roedel wrote: > + lvl = "p4d"; > + p4d = p4d_alloc(_mm, pgd, addr); > + if (!p4d) > + goto failed; > > + /* > + * With 5-level paging the P4D level is not folded. So the

Re: [PATCH] USB: storage: isd200: fix spelling mistake "removeable" -> "removable"

2020-08-10 Thread Alan Stern
On Mon, Aug 10, 2020 at 09:32:11AM +0100, Colin King wrote: > From: Colin Ian King > > There is a spelling mistake in a usb_stor_dbg debug message. Fix it. > > Signed-off-by: Colin Ian King > --- > drivers/usb/storage/isd200.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

Re: [PATCH] recordmcount: Fix build failure on non arm64

2020-08-10 Thread Catalin Marinas
On Mon, 10 Aug 2020 08:48:22 + (UTC), Christophe Leroy wrote: > Commit ea0eada45632 leads to the following build failure on powerpc: > > HOSTCC scripts/recordmcount > scripts/recordmcount.c: In function 'arm64_is_fake_mcount': > scripts/recordmcount.c:440: error: 'R_AARCH64_CALL26'

[PATCH v5 0/6] Support running driver's probe for a device powered off

2020-08-10 Thread Sakari Ailus
Hi all, These patches enable calling (and finishing) a driver's probe function without powering on the respective device on busses where the practice is to power on the device for probe. While it generally is a driver's job to check the that the device is there, there are cases where it might be

[PATCH v5 4/6] media: i2c: imx319: Support probe while the device is off

2020-08-10 Thread Sakari Ailus
From: Rajmohan Mani Tell ACPI device PM code that the driver supports the device being powered off when the driver's probe function is entered. Signed-off-by: Rajmohan Mani Signed-off-by: Sakari Ailus --- drivers/media/i2c/imx319.c | 23 ++- 1 file changed, 14

[PATCH v5 6/6] Documentation: ACPI: Document allow-low-power-probe _DSD property

2020-08-10 Thread Sakari Ailus
Document the probe-low-power _DSD property and how it is used with I²C drivers. Signed-off-by: Sakari Ailus --- .../acpi/dsd/allow-low-power-probe.rst| 28 +++ Documentation/firmware-guide/acpi/index.rst | 1 + 2 files changed, 29 insertions(+) create mode 100644

[PATCH v5 1/6] i2c: Allow driver to manage the device's power state during probe

2020-08-10 Thread Sakari Ailus
Enable drivers to tell ACPI that there's no need to power on a device for probe. Drivers should still perform this by themselves if there's a need to. In some cases powering on the device during probe is undesirable, and this change enables a driver to choose what fits best for it. Add a field

[PATCH v5 5/6] at24: Support probing while off

2020-08-10 Thread Sakari Ailus
In certain use cases (where the chip is part of a camera module, and the camera module is wired together with a camera privacy LED), powering on the device during probe is undesirable. Add support for the at24 to execute probe while being powered off. For this to happen, a hint in form of a device

[PATCH v5 2/6] ACPI: Add a convenience function to tell a device is in low power state

2020-08-10 Thread Sakari Ailus
Add a convenience function to tell whether a device is in low power state, primarily for use in drivers' probe or remove functions on busses where the custom is to power on the device for the duration of both. Returns false on non-ACPI systems. Suggested-by: Mika Westerberg Signed-off-by:

Re: [PATCH v2] documentation: coccinelle: Improve command example for make C={1, 2}

2020-08-10 Thread Julia Lawall
On Mon, 10 Aug 2020, Jonathan Corbet wrote: > On Mon, 10 Aug 2020 09:30:18 +0200 > Markus Elfring wrote: > > > > Modify coccinelle documentation to further clarify > > > the usage of the makefile C variable flag by coccicheck. > > > > How do you think about a wording variant like the following

[PATCH v5 3/6] ov5670: Support probe whilst the device is in a low power state

2020-08-10 Thread Sakari Ailus
Tell ACPI device PM code that the driver supports the device being in a low power state when the driver's probe function is entered. Signed-off-by: Sakari Ailus --- drivers/media/i2c/ov5670.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git

Re: WARNING in slab_pre_alloc_hook

2020-08-10 Thread Alan Stern
On Mon, Aug 10, 2020 at 04:36:25AM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:449dc8c9 Merge tag 'for-v5.9' of git://git.kernel.org/pub/.. > git tree: > https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing > console

Re: [PATCH v2] documentation: coccinelle: Improve command example for make C={1, 2}

2020-08-10 Thread Jonathan Corbet
On Mon, 10 Aug 2020 09:30:18 +0200 Markus Elfring wrote: > > Modify coccinelle documentation to further clarify > > the usage of the makefile C variable flag by coccicheck. > > How do you think about a wording variant like the following > for the change description? > >Clarify the usage

Re: [REGRESSION] [BISECTED] kswapd high CPU usage

2020-08-10 Thread Alexey Vlasov
I have found a workaround preventing these hangs. Primarily, disable THP: echo never > /sys/kernel/mm/transparent_hugepage/enabled echo never > /sys/kernel/mm/transparent_hugepage/defrag and next, we should increase vm.min_free_kbytes, in my case 16Gb is enough vm.min_free_kbytes = 16777216 On

Re: KMSAN: kernel-infoleak in raw_ioctl

2020-08-10 Thread Dmitry Vyukov
On Mon, Aug 10, 2020 at 4:07 PM 'Andrey Konovalov' via syzkaller-bugs wrote: > > > On Mon, Aug 10, 2020 at 11:15:38AM +0200, Greg KH wrote: > > > > On Mon, Aug 10, 2020 at 11:08:33AM +0200, Greg KH wrote: > > > > > On Mon, Aug 10, 2020 at 11:00:07AM +0200, Dmitry Vyukov wrote: > > > > > > On Mon,

RE: [PATCH 2/3] regulator: remove locking around regulator_notifier_call_chain()

2020-08-10 Thread Adam Thomson
On 10 August 2020 05:34, Michał Mirosław wrote: > regulator_notifier_call_chain() doesn't need rdev lock and rdev's > existence is assumed in the code anyway. Remove the locks from drivers. > > Signed-off-by: Michał Mirosław For da9*-regulator.c, pv88*-regulator.c and slg51000-regulator.c:

Re: [PATCH V5 0/3] Intel Platform Monitoring Technology

2020-08-10 Thread David E. Box
Friendly ping. On Wed, 2020-07-29 at 14:37 -0700, David E. Box wrote: > Intel Platform Monitoring Technology (PMT) is an architecture for > enumerating and accessing hardware monitoring capabilities on a > device. > With customers increasingly asking for hardware telemetry, engineers > not > only

Re: [RFT PATCH v5] serial: samsung: Removes the IRQ not found warning

2020-08-10 Thread Krzysztof Kozlowski
On Mon, Aug 10, 2020 at 08:30:21AM +0530, Tamseel Shams wrote: > In few older Samsung SoCs like s3c2410, s3c2412 > and s3c2440, UART IP is having 2 interrupt lines. > However, in other SoCs like s3c6400, s5pv210, > exynos5433, and exynos4210 UART is having only 1 > interrupt line. Due to this,

Re: [PATCH] scsi: sd: add runtime pm to open / release

2020-08-10 Thread Alan Stern
On Mon, Aug 10, 2020 at 02:03:17PM +0200, Martin Kepplinger wrote: > On 09.08.20 17:26, Alan Stern wrote: > > This is a somewhat fragile approach. You don't know for certain that > > scsi_noretry_cmd will be called. Also, scsi_noretry_cmd can be called > > from other places. > > > > It would

[PATCH] scsi: ufs-pci: Add quirk for broken auto-hibernate for Intel EHL

2020-08-10 Thread Adrian Hunter
Intel EHL UFS host controller advertises auto-hibernate capability but it does not work correctly. Add a quirk for that. Signed-off-by: Adrian Hunter Fixes: 8c09d75276971 ("scsi: ufshdc-pci: Add Intel PCI IDs for EHL") --- drivers/scsi/ufs/ufshcd-pci.c | 16 ++--

Re: [PATCH] Revert "seqlock: lockdep assert non-preemptibility on seqcount_t write"

2020-08-10 Thread Guenter Roeck
On 8/10/20 3:05 AM, Greg KH wrote: > On Mon, Aug 10, 2020 at 11:54:28AM +0200, Ahmed S. Darwish wrote: >> This reverts commit 859247d39fb008ea812e8f0c398a58a20c12899e. >> >> Current implementation of lockdep_assert_preemption_disabled() uses >> per-CPU variables, which was done to untangle the

[PATCH] xhci: Do warm-reset when both CAS and XDEV_RESUME are set

2020-08-10 Thread Kai-Heng Feng
Sometimes re-plugging a USB device during system sleep renders the device useless: [ 173.418345] xhci_hcd :00:14.0: Get port status 2-4 read: 0x14203e2, return 0x10262 ... [ 176.496485] usb 2-4: Waited 2000ms for CONNECT [ 176.496781] usb usb2-port4: status .0262 after resume, -19 [

Re: KMSAN: kernel-infoleak in raw_ioctl

2020-08-10 Thread Andrey Konovalov
On Mon, Aug 10, 2020 at 12:22 PM Dmitry Vyukov wrote: > > On Mon, Aug 10, 2020 at 11:57 AM Greg KH wrote: > > > > On Mon, Aug 10, 2020 at 11:15:38AM +0200, Greg KH wrote: > > > On Mon, Aug 10, 2020 at 11:08:33AM +0200, Greg KH wrote: > > > > On Mon, Aug 10, 2020 at 11:00:07AM +0200, Dmitry

Re: [PATCH] kcsan: Treat runtime as NMI-like with interrupt tracing

2020-08-10 Thread peterz
On Mon, Aug 10, 2020 at 10:07:44AM +0200, Marco Elver wrote: > On Fri, 7 Aug 2020 at 19:06, Paul E. McKenney wrote: > > On Fri, Aug 07, 2020 at 11:00:31AM +0200, Marco Elver wrote: > > > Since KCSAN instrumentation is everywhere, we need to treat the hooks > > > NMI-like for interrupt tracing. In

Re: [PATCH v2 03/20] virtio: Add get_shm_region method

2020-08-10 Thread Michael S. Tsirkin
On Fri, Aug 07, 2020 at 03:55:09PM -0400, Vivek Goyal wrote: > From: Sebastien Boeuf > > Virtio defines 'shared memory regions' that provide a continuously > shared region between the host and guest. > > Provide a method to find a particular region on a device. > > Signed-off-by: Sebastien

Re: [PATCH v2 5/6] include: fpga: adi-axi-common.h: add definitions for supported FPGAs

2020-08-10 Thread Tom Rix
On 8/10/20 6:42 AM, Alexandru Ardelean wrote: > From: Mircea Caprioru > > All (newer) FPGA IP cores supported by Analog Devices, store information in > the synthesized designs. This information describes various parameters, > including the family of boards on which this is deployed,

[PATCH] of/address: check for invalid range.cpu_addr

2020-08-10 Thread Colin King
From: Colin Ian King Currently invalid CPU addresses are not being sanity checked resulting in SATA setup failure on a SynQuacer SC2A11 development machine. The original check was removed by and earlier commit, so add a sanity check back in to avoid this regression. Fixes: 7a8b64d17e35

Re: [PATCH] mballoc: Replace seq_printf with seq_puts

2020-08-10 Thread Ritesh Harjani
On 8/10/20 7:51 AM, Xu Wang wrote: seq_puts is a lot cheaper than seq_printf, so use that to print literal strings. Signed-off-by: Xu Wang Looks good to me. Reviewed-by: Ritesh Harjani

Re: [PATCH] sched/fair: Fix wrong negative conversion in find_energy_efficient_cpu()

2020-08-10 Thread peterz
On Mon, Aug 10, 2020 at 12:18:25PM +0100, Valentin Schneider wrote: > > On 10/08/20 09:30, Lukasz Luba wrote: > > In find_energy_efficient_cpu() 'cpu_cap' could be less that 'util'. > > It might be because of RT, DL (so higher sched class than CFS), irq or > > thermal pressure signal, which

Re: [PATCH v2 04/20] virtio: Implement get_shm_region for PCI transport

2020-08-10 Thread Michael S. Tsirkin
On Fri, Aug 07, 2020 at 03:55:10PM -0400, Vivek Goyal wrote: > From: Sebastien Boeuf > > On PCI the shm regions are found using capability entries; > find a region by searching for the capability. > > Signed-off-by: Sebastien Boeuf > Signed-off-by: Dr. David Alan Gilbert > Signed-off-by:

Re: [PATCH v2 05/20] virtio: Implement get_shm_region for MMIO transport

2020-08-10 Thread Michael S. Tsirkin
On Fri, Aug 07, 2020 at 03:55:11PM -0400, Vivek Goyal wrote: > From: Sebastien Boeuf > > On MMIO a new set of registers is defined for finding SHM > regions. Add their definitions and use them to find the region. > > Signed-off-by: Sebastien Boeuf > Cc: k...@vger.kernel.org > Cc: "Michael S.

Re: [PATCH] ALSA: usb-audio: Disable Lenovo P620 Rear line-in volume control

2020-08-10 Thread Takashi Iwai
On Mon, 10 Aug 2020 15:31:06 +0200, Kai-Heng Feng wrote: > > The USB device (0x17aa:0x1046) that support Lenovo P620 rear panel > line-in claim to support volume control, but it doens't seem to have an > AMP, so when line-in volume lowers below 80, nothing gets recorded > anymore. > > Disable

Re: [PATCH v2 1/2] i2c: eg20t: Drop PCI wakeup calls from .suspend/.resume

2020-08-10 Thread Wolfram Sang
On Thu, Aug 06, 2020 at 01:06:15AM +0530, Vaibhav Gupta wrote: > The driver calls pci_enable_wake(, false) in pch_i2c_suspend() as well > as pch_i2c_resume(). Either it should enable-wake the device in .suspend() > or should not invoke pci_enable_wake() at all. > > Concluding that this driver

Re: [PATCH v2 03/20] virtio: Add get_shm_region method

2020-08-10 Thread Michael S. Tsirkin
On Fri, Aug 07, 2020 at 03:55:09PM -0400, Vivek Goyal wrote: > From: Sebastien Boeuf > > Virtio defines 'shared memory regions' that provide a continuously > shared region between the host and guest. > > Provide a method to find a particular region on a device. > > Signed-off-by: Sebastien

Re: [PATCH v2 2/2] i2c: eg20t: use generic power management

2020-08-10 Thread Wolfram Sang
On Thu, Aug 06, 2020 at 01:06:16AM +0530, Vaibhav Gupta wrote: > Drivers using legacy power management .suspen()/.resume() callbacks > have to manage PCI states and device's PM states themselves. They also > need to take care of standard configuration registers. > > Switch to generic power

Re: [PATCH] usb: gadget: tegra-xudc: Avoid GFP_ATOMIC where it is not needed

2020-08-10 Thread Thierry Reding
On Sun, Aug 09, 2020 at 09:29:48AM +0200, Christophe JAILLET wrote: > There is no need to use GFP_ATOMIC here. It is a probe function, no > spinlock is taken. > > Signed-off-by: Christophe JAILLET > --- > drivers/usb/gadget/udc/tegra-xudc.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH v11 0/6] KASAN-KUnit Integration

2020-08-10 Thread Andrey Konovalov
On Sat, Aug 8, 2020 at 5:27 AM David Gow wrote: > > On Fri, Aug 7, 2020 at 9:15 PM 'Andrey Konovalov' via kasan-dev > wrote: > > > > On Wed, Aug 5, 2020 at 6:29 AM David Gow wrote: > > > > > > This patchset contains everything needed to integrate KASAN and KUnit. > > > > > > KUnit will be able

Re: [PATCH 1/2] perf: Add closing sibling events' file descriptors

2020-08-10 Thread Alexander Shishkin
Andi Kleen writes: >> > This adds an opt-in flag to the perf_event_open() syscall to retain >> > sibling events after their file descriptors are closed. In this case, the >> > actual events will be closed with the group leader. >> >> So having the 1:1 relation with filedesc imposes a resource

Re: [PATCH] net: eliminate meaningless memcpy to data in pskb_carve_inside_nonlinear()

2020-08-10 Thread Florian Westphal
Miaohe Lin wrote: > The skb_shared_info part of the data is assigned in the following loop. Where?

Re: [Linux-kernel-mentees] [PATCHv2 net-next] dropwatch: Support monitoring of dropped frames

2020-08-10 Thread Greg KH
On Mon, Aug 10, 2020 at 03:39:40PM +0200, Izabela Bakollari wrote: > I have worked on this feature as part of the Linux Kernel Mentorship > Program. Your review would really help me in this learning process. You sent this just a bit less than 1 week ago, and it's the middle of the kernel merge

[PATCH 2/2] scsi: ufs: Improve interrupt handling for shared interrupts

2020-08-10 Thread Adrian Hunter
For shared interrupts, the interrupt status might be zero, so check that first. Signed-off-by: Adrian Hunter --- drivers/scsi/ufs/ufshcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index

[PATCH 1/2] scsi: ufs: Fix interrupt error message for shared interrupts

2020-08-10 Thread Adrian Hunter
The interrupt might be shared, in which case it is not an error for the interrupt handler to be called when the interrupt status is zero, so remove the message print and register dump. Signed-off-by: Adrian Hunter Fixes: 9333d77573485 ("scsi: ufs: Fix irq return code") ---

Re: [PATCH v2 03/20] virtio: Add get_shm_region method

2020-08-10 Thread Vivek Goyal
On Mon, Aug 10, 2020 at 09:47:15AM -0400, Michael S. Tsirkin wrote: > On Fri, Aug 07, 2020 at 03:55:09PM -0400, Vivek Goyal wrote: > > From: Sebastien Boeuf > > > > Virtio defines 'shared memory regions' that provide a continuously > > shared region between the host and guest. > > > > Provide a

Re: [GIT PULL] sound updates for 5.9

2020-08-10 Thread Takashi Iwai
On Mon, 10 Aug 2020 14:22:54 +0200, Mark Brown wrote: > > On Sat, Aug 08, 2020 at 10:07:36AM +0200, Takashi Iwai wrote: > > Takashi Iwai wrote: > > > > Does the patch below fix the bug? If so, it's rather a bug in the > > > commit cf6e26c71bfd ("ASoC: soc-component: merge > > >

Re: [RFC][PATCH 2/3] locking,entry: #PF vs TRACE_IRQFLAGS

2020-08-10 Thread peterz
On Fri, Aug 07, 2020 at 09:23:38PM +0200, Peter Zijlstra wrote: > Much of the complexity in irqenter_{enter,exit}() is due to #PF being > the sole exception that can schedule from kernel context. > > One additional wrinkle with #PF is that it is non-maskable, it can > happen _anywhere_. Due to

Re: [PATCH v2 03/20] virtio: Add get_shm_region method

2020-08-10 Thread Michael S. Tsirkin
On Fri, Aug 07, 2020 at 03:55:09PM -0400, Vivek Goyal wrote: > From: Sebastien Boeuf > > Virtio defines 'shared memory regions' that provide a continuously > shared region between the host and guest. > > Provide a method to find a particular region on a device. > > Signed-off-by: Sebastien

Re: [PATCH 19/22] crypto: inside-secure - add check for xts input length equal to zero

2020-08-10 Thread Herbert Xu
On Mon, Aug 10, 2020 at 10:20:20AM +, Van Leeuwen, Pascal wrote: > > With all due respect, but this makes no sense. I agree. This is a lot of churn for no gain. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key:

[PATCH v2 3/6] clk: axi-clkgen: add support for ZynqMP (UltraScale)

2020-08-10 Thread Alexandru Ardelean
From: Dragos Bogdan This IP core also works and is supported on the Xilinx ZynqMP (UltraScale) FPGA boards. This patch enables the driver to be available on these platforms as well. Signed-off-by: Dragos Bogdan Signed-off-by: Alexandru Ardelean --- drivers/clk/Kconfig | 2 +- 1 file changed,

[PATCH v2 6/6] clk: axi-clkgen: Add support for FPGA info

2020-08-10 Thread Alexandru Ardelean
From: Mircea Caprioru This patch adds support for vco maximum and minimum ranges in accordance with fpga speed grade, voltage, device package, technology and family. This new information is extracted from two new registers implemented in the ip core: ADI_REG_FPGA_INFO and ADI_REG_FPGA_VOLTAGE,

[PATCH v2 4/6] clk: axi-clkgen: Respect ZYNQMP PFD/VCO frequency limits

2020-08-10 Thread Alexandru Ardelean
From: Mathias Tausen Since axi-clkgen is now supported on ZYNQMP, make sure the max/min frequencies of the PFD and VCO are respected. Signed-off-by: Mathias Tausen Signed-off-by: Alexandru Ardelean --- drivers/clk/clk-axi-clkgen.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v2 5/6] include: fpga: adi-axi-common.h: add definitions for supported FPGAs

2020-08-10 Thread Alexandru Ardelean
From: Mircea Caprioru All (newer) FPGA IP cores supported by Analog Devices, store information in the synthesized designs. This information describes various parameters, including the family of boards on which this is deployed, speed-grade, and so on. Currently, some of these definitions are

[PATCH v2 1/6] clk: axi-clkgen: Add support for fractional dividers

2020-08-10 Thread Alexandru Ardelean
From: Lars-Peter Clausen The axi-clkgen has (optional) fractional dividers on the output clock divider and feedback clock divider path. Utilizing the fractional dividers allows for a better resolution of the output clock, being able to synthesize more frequencies. Rework the driver support to

[PATCH v2 2/6] clk: axi-clkgen: Set power bits for fractional mode

2020-08-10 Thread Alexandru Ardelean
From: Lars-Peter Clausen Using the fractional dividers requires some additional power bits to be set. The fractional power bits are not documented and the current heuristic for setting them seems be insufficient for some cases. Just always set all the fractional power bits when in fractional

[PATCH v2 6/6] clk: axi-clkgen: Add support for FPGA info

2020-08-10 Thread Alexandru Ardelean
From: Mircea Caprioru This patch adds support for vco maximum and minimum ranges in accordance with fpga speed grade, voltage, device package, technology and family. This new information is extracted from two new registers implemented in the ip core: ADI_REG_FPGA_INFO and ADI_REG_FPGA_VOLTAGE,

[PATCH v2 5/6] include: fpga: adi-axi-common.h: add definitions for supported FPGAs

2020-08-10 Thread Alexandru Ardelean
From: Mircea Caprioru All (newer) FPGA IP cores supported by Analog Devices, store information in the synthesized designs. This information describes various parameters, including the family of boards on which this is deployed, speed-grade, and so on. Currently, some of these definitions are

[PATCH v2 4/6] clk: axi-clkgen: Respect ZYNQMP PFD/VCO frequency limits

2020-08-10 Thread Alexandru Ardelean
From: Mathias Tausen Since axi-clkgen is now supported on ZYNQMP, make sure the max/min frequencies of the PFD and VCO are respected. Signed-off-by: Mathias Tausen Signed-off-by: Alexandru Ardelean --- drivers/clk/clk-axi-clkgen.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v2 1/6] clk: axi-clkgen: Add support for fractional dividers

2020-08-10 Thread Alexandru Ardelean
From: Lars-Peter Clausen The axi-clkgen has (optional) fractional dividers on the output clock divider and feedback clock divider path. Utilizing the fractional dividers allows for a better resolution of the output clock, being able to synthesize more frequencies. Rework the driver support to

[PATCH v2 0/6] clk: axi-clk-gen: misc updates to the driver

2020-08-10 Thread Alexandru Ardelean
These patches synchronize the driver with the current state in the Analog Devices Linux tree: https://github.com/analogdevicesinc/linux/ They have been in the tree for about 2-3, so they did receive some testing. Highlights are: * Add support for fractional dividers (Lars-Peter Clausen) *

[PATCH v2 2/6] clk: axi-clkgen: Set power bits for fractional mode

2020-08-10 Thread Alexandru Ardelean
From: Lars-Peter Clausen Using the fractional dividers requires some additional power bits to be set. The fractional power bits are not documented and the current heuristic for setting them seems be insufficient for some cases. Just always set all the fractional power bits when in fractional

[PATCH v2 3/6] clk: axi-clkgen: add support for ZynqMP (UltraScale)

2020-08-10 Thread Alexandru Ardelean
From: Dragos Bogdan This IP core also works and is supported on the Xilinx ZynqMP (UltraScale) FPGA boards. This patch enables the driver to be available on these platforms as well. Signed-off-by: Dragos Bogdan Signed-off-by: Alexandru Ardelean --- drivers/clk/Kconfig | 2 +- 1 file changed,

[PATCH v2 0/6] clk: axi-clk-gen: misc updates to the driver

2020-08-10 Thread Alexandru Ardelean
These patches synchronize the driver with the current state in the Analog Devices Linux tree: https://github.com/analogdevicesinc/linux/ They have been in the tree for about 2-3, so they did receive some testing. Highlights are: * Add support for fractional dividers (Lars-Peter Clausen) *

Re: [PATCHv2 net-next] dropwatch: Support monitoring of dropped frames

2020-08-10 Thread Izabela Bakollari
I have worked on this feature as part of the Linux Kernel Mentorship Program. Your review would really help me in this learning process. Thanks, Izabela On Tue, Aug 4, 2020 at 6:09 PM wrote: > > From: Izabela Bakollari > > Dropwatch is a utility that monitors dropped frames by having userspace

[PATCH 2/2] dt-bindings: msm/dp: add bindings of DP/DP-PLL driver for Snapdragon

2020-08-10 Thread Krishna Manikandan
From: Chandan Uddaraju Add bindings for Snapdragon DisplayPort controller driver. Changes in V2: Provide details about sel-gpio Changes in V4: Provide details about max dp lanes Change the commit text Changes in V5: moved dp.txt to yaml file Changes in v6: - Squash all AUX LUT properties

[PATCH 1/2] dt-bindings: msm: disp: add yaml schemas for DPU and DSI bindings

2020-08-10 Thread Krishna Manikandan
MSM Mobile Display Subsytem (MDSS) encapsulates sub-blocks like DPU display controller, DSI etc. Add YAML schema for the device tree bindings for the same. Signed-off-by: Krishna Manikandan Changes in v2: - Changed dpu to DPU (Sam Ravnborg) - Fixed indentation issues (Sam Ravnborg)

Re: drivers/usb/core/devio.c:1155 do_proc_control() error: copy_from_user() 'tbuf' too small (4096 vs 8192)

2020-08-10 Thread Dan Carpenter
On Mon, Aug 10, 2020 at 02:14:33PM +0200, Christoph Hellwig wrote: > On Mon, Aug 10, 2020 at 02:12:23PM +0200, Christoph Hellwig wrote: > > As far as I can tell the warning is valid as we copy a user controlled > > amount into a fixed sized buffer. But this an old condition not actually > >

[PATCH] perf bench mem: Always memset source before memcpy

2020-08-10 Thread Vincent Whitchurch
For memcpy, the source pages are memset to zero only when --cycles is used. This leads to wildly different results with or without --cycles, since all sources pages are likely to be mapped to the same zero page without explicit writes. Before this fix: $ export cmd="./perf stat -e LLC-loads --

Re: [PATCH] gpio: siox: indicate exclusive support of threaded IRQs

2020-08-10 Thread Uwe Kleine-König
On Thu, Aug 06, 2020 at 11:07:09PM +0200, Uwe Kleine-König wrote: > Hello Thomas, > > On Thu, Aug 06, 2020 at 10:33:06PM +0200, Thomas Gleixner wrote: > > Uwe Kleine-König writes: > > > On Thu, Aug 06, 2020 at 08:50:45PM +0200, Thomas Gleixner wrote: > > >> handle_nested_irq() does not care. It

Re: [PATCH] drm/vkms: add missing platform_device_unregister() in vkms_init()

2020-08-10 Thread Daniel Vetter
On Mon, Aug 10, 2020 at 09:00:11PM +0800, Qinglang Miao wrote: > When vkms_init() get into out_put, the unregister call of > vkms_device->platform is missing. So add it before return. > > Fixes: c27f0cc4d43a "drm/vkms: enable cursor by default" This is the wrong commit, I fixed that up while

[PATCH] ALSA: usb-audio: Disable Lenovo P620 Rear line-in volume control

2020-08-10 Thread Kai-Heng Feng
The USB device (0x17aa:0x1046) that support Lenovo P620 rear panel line-in claim to support volume control, but it doens't seem to have an AMP, so when line-in volume lowers below 80, nothing gets recorded anymore. Disable the volume control to workaround the issue. Signed-off-by: Kai-Heng Feng

Re: [ANNOUNCE] v4.4.231-rt202

2020-08-10 Thread Steven Rostedt
On Sat, 8 Aug 2020 10:06:38 -0400 Joe Korty wrote: > Ping? Yes yes, we even discussed this in our last meeting. I'm just trying to get time to work on it, as the merge window is open and Plumber's is just around the corner, it's taking a bit longer than expected. -- Steve

Re: [PATCH] recordmcount: Fix build failure on non arm64

2020-08-10 Thread Steven Rostedt
On Mon, 10 Aug 2020 13:18:55 +0100 Catalin Marinas wrote: > > Oops, thanks for fixing this. > > > > Acked-by: Gregory Herrero > > Thanks. I'll queue it via the arm64 tree (as I did with the previous > fix) but I'll wait a bit for Steve to ack it. Acked-by: Steven Rostedt (VMware) --

Re: [PATCH] iio: documentation: light: Add as73211 sysfs documentation

2020-08-10 Thread Christian Eggers
Hi Pavel, On Monday, 10 August 2020, 14:35:40 CEST, Pavel Machek wrote: > On Mon 2020-08-10 11:57:46, Christian Eggers wrote: > > On Monday, 10 August 2020, 11:00:54 CEST, Pavel Machek wrote: > > > Hi! > > > > > > > The driver for the as73211 light sensor provides the following not yet > > > >

Re: [PATCH] sched/fair: reduce preemption with IDLE tasks runable(Internet mail)

2020-08-10 Thread Dietmar Eggemann
On 06/08/2020 17:52, benbjiang(蒋彪) wrote: > Hi, > >> On Aug 6, 2020, at 9:29 PM, Dietmar Eggemann >> wrote: >> >> On 03/08/2020 13:26, benbjiang(蒋彪) wrote: >>> >>> On Aug 3, 2020, at 4:16 PM, Dietmar Eggemann wrote: On 01/08/2020 04:32, Jiang Biao wrote: > From: Jiang

[PATCH] bpf: Add bpf_skb_get_sock_comm() helper

2020-08-10 Thread Jiang Yu
skb distinguished by uid can only recorded to user who consume them. in many case, skb should been recorded more specific to process who consume them. E.g, the unexpected large data traffic of illegal process in metered network. this helper is used in tracing task comm of the sock to which a skb

[PATCH] vdpa/mlx5: fix up endian-ness for mtu

2020-08-10 Thread Michael S. Tsirkin
VDPA mlx5 accesses config space as native endian - this is wrong since it's a modern device and actually uses LE. It only supports modern guests so we could punt and just force LE, but let's use the full virtio APIs since people tend to copy/paste code, and this is not data path anyway.

Hello my good friend,

2020-08-10 Thread Asita Hussain
Hello, >From Mr. Asita Hussain This message might meet you in utmost surprise. I am a banker by profession in Burkina-Faso, West Africa and currently holding the post of manager in account and auditing department in our bank. I have the opportunity of transferring the left over funds ($ 25.5

Re: [PATCH] drm/v3d: convert to use module_platform_driver

2020-08-10 Thread Daniel Vetter
On Mon, Aug 10, 2020 at 08:59:31PM +0800, Qinglang Miao wrote: > Get rid of boilerplate code by using module_platform_driver macro > for v3d_drm. > > Signed-off-by: Qinglang Miao lgtm, merged to drm-misc-next for 5.10 -Daniel > --- > drivers/gpu/drm/v3d/v3d_drv.c | 13 + > 1 file

Re: [PATCH] drm/vgem: add missing platform_device_unregister() in vgem_init()

2020-08-10 Thread Daniel Vetter
On Mon, Aug 10, 2020 at 08:59:42PM +0800, Qinglang Miao wrote: > When vgem_init() get into out_put, the unregister call of > vgem_device->platform is missing. So add it before return. > > Fixes: 363de9e7d4f6 "drm/vgem: Use drmm_add_final_kfree" > Signed-off-by: Qinglang Miao Uh right I still

Re: [PATCH 04/20] media: uvc: uvc_v4l2.c: add temp variable for list iteration

2020-08-10 Thread Daniel W. S. Almeida
Hi Laurent, thanks for reviewing! > If no entity is found by this loop the next line will dereference a NULL > pointer. There's a similar issue below. You mean this line, right? > pin = iterm->id; In which case, yes I missed it! > I think the issues reported by coccinelle are

Re: [PATCH v17 14/21] mm/compaction: do page isolation first in compaction

2020-08-10 Thread Alex Shi
在 2020/8/7 下午10:51, Alexander Duyck 写道: > I wonder if this entire section shouldn't be restructured. This is the > only spot I can see where we are resetting the LRU flag instead of > pulling the page from the LRU list with the lock held. Looking over > the code it seems like something like

Re: [PATCH v2 00/20] virtiofs: Add DAX support

2020-08-10 Thread Vivek Goyal
On Mon, Aug 10, 2020 at 09:29:47AM +0200, Miklos Szeredi wrote: > On Fri, Aug 7, 2020 at 9:55 PM Vivek Goyal wrote: > > > > > Most of the changes are limited to fuse/virtiofs. There are couple > > of changes needed in generic dax infrastructure and couple of changes > > in virtio to be able to

Re: [PATCH] dma-buf.rst: repair length of title underline

2020-08-10 Thread Daniel Vetter
On Mon, Aug 10, 2020 at 01:25:40PM +0200, Christian König wrote: > Am 09.08.20 um 08:17 schrieb Lukas Bulwahn: > > With commit 72b6ede73623 ("dma-buf.rst: Document why indefinite fences are > > a bad idea"), document generation warns: > > > >Documentation/driver-api/dma-buf.rst:182: \ > >

Re: [PATCH v11 12/12] dmaengine: imx-sdma: add uart rom script

2020-08-10 Thread Robert Schwebel
On Mon, Aug 10, 2020 at 10:57:42AM +, Robin Gong wrote: > diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c > index 5900e32..4db55b9 100644 > --- a/drivers/dma/imx-sdma.c > +++ b/drivers/dma/imx-sdma.c > @@ -1754,6 +1754,19 @@ static void sdma_add_scripts(struct sdma_engine *sdma, >

Re: KCSAN: data-race in __xa_clear_mark / xas_find_marked

2020-08-10 Thread Marco Elver
[+Cc XArray maintainer] Hi Matthew, On Mon, Aug 10, 2020 at 05:41AM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:fc80c51f Merge tag 'kbuild-v5.9' of git://git.kernel.org/p.. > git tree: upstream > console output:

[PATCH] vdpa_sim: fix pointer math in get_config

2020-08-10 Thread Michael S. Tsirkin
There is a pointer math bug here: the variable cast is a struct so the offset is in units of struct size. If "offset" is non-zero this will copy memory from beyond the end of the array. fixes: 2c53d0f64c06 ("vdpasim: vDPA device simulator") Reported-by: Dan Carpenter Signed-off-by: Michael S.

[PATCH] drm/vkms: add missing platform_device_unregister() in vkms_init()

2020-08-10 Thread Qinglang Miao
When vkms_init() get into out_put, the unregister call of vkms_device->platform is missing. So add it before return. Fixes: c27f0cc4d43a "drm/vkms: enable cursor by default" Signed-off-by: Qinglang Miao --- drivers/gpu/drm/vkms/vkms_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] tools/objtool: Fix unnecessary jumps

2020-08-10 Thread Kamalesh Babulal
On 10/08/20 9:36 am, Youling Tang wrote: > There is no need to jump to the "out" tag when "ret < 0", just return > directly to "ret". > > Signed-off-by: Youling Tang > --- > tools/objtool/check.c | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git

Re: [PATCH v2 03/14] media: uapi: h264: Split prediction weight parameters

2020-08-10 Thread Ezequiel Garcia
On Sun, 2020-08-09 at 23:11 +0200, Jernej Škrabec wrote: > Dne nedelja, 09. avgust 2020 ob 15:55:50 CEST je Ezequiel Garcia napisal(a): > > On Sat, 8 Aug 2020 at 18:01, Jonas Karlman wrote: > > > On 2020-08-06 17:12, Ezequiel Garcia wrote: > > > > The prediction weight parameters are only

[PATCH] drm/vgem: add missing platform_device_unregister() in vgem_init()

2020-08-10 Thread Qinglang Miao
When vgem_init() get into out_put, the unregister call of vgem_device->platform is missing. So add it before return. Fixes: 363de9e7d4f6 "drm/vgem: Use drmm_add_final_kfree" Signed-off-by: Qinglang Miao --- drivers/gpu/drm/vgem/vgem_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] drm/v3d: convert to use module_platform_driver

2020-08-10 Thread Qinglang Miao
Get rid of boilerplate code by using module_platform_driver macro for v3d_drm. Signed-off-by: Qinglang Miao --- drivers/gpu/drm/v3d/v3d_drv.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpu/drm/v3d/v3d_drv.c b/drivers/gpu/drm/v3d/v3d_drv.c index

Re: [PATCH 03/20] media: usb: uvc_ctrl.c: add temp variable for list iteration

2020-08-10 Thread Daniel W. S. Almeida
Hi Laurent! > I'f you're OK with these changes there's no need to resubmit, I can > update when applying. Please let me know how you'd like to proceed. That's OK with me! Thanks for reviewing. - Daniel

[PATCH] drm/amd/display: convert to use le16_add_cpu()

2020-08-10 Thread Qinglang Miao
Convert cpu_to_le16(le16_to_cpu(E1) + E2) to use le16_add_cpu(). Signed-off-by: Qinglang Miao --- drivers/gpu/drm/amd/display/dc/bios/command_table.c | 4 +--- drivers/gpu/drm/amd/display/dc/bios/command_table2.c | 5 + 2 files changed, 2 insertions(+), 7 deletions(-) diff --git

Re: [PATCH v2 09/41] usb: gadget: s3c-hsudc: remove platform header dependency

2020-08-10 Thread Felipe Balbi
Arnd Bergmann writes: > On Fri, Aug 7, 2020 at 3:59 PM Felipe Balbi wrote: >> Krzysztof Kozlowski writes: > >> > +#include >> > + >> > #define S3C2443_CLKREG(x)((x) + S3C24XX_VA_CLKPWR) >> > >> > #define S3C2443_PLLCON_MDIVSHIFT 16 >> > @@ -184,5 +186,52 @@

Re: [PATCH v3] drm/vkms: guarantee vblank when capturing crc

2020-08-10 Thread Daniel Vetter
On Sat, Aug 08, 2020 at 09:09:00AM -0300, Melissa Wen wrote: > VKMS needs vblank interrupts enabled to capture CRC. When vblank is > disabled, tests like kms_cursor_crc and kms_pipe_crc_basic getting stuck > waiting for a capture that will not occur until vkms wakes up. This patch > adds a helper

<    7   8   9   10   11   12   13   14   15   >