[PATCH AUTOSEL 4.19 07/11] drm/msm/a6xx: fix gmu start on newer firmware

2020-08-31 Thread Sasha Levin
From: Dmitry Baryshkov [ Upstream commit f5749d6181fa7df5ae741788e5d96f593d3a60b6 ] New Qualcomm firmware has changed a way it reports back the 'started' event. Support new register values. Signed-off-by: Dmitry Baryshkov Signed-off-by: Rob Clark Signed-off-by: Sasha Levin --- drivers/gpu/d

[PATCH AUTOSEL 4.14 4/9] hwmon: (applesmc) check status earlier.

2020-08-31 Thread Sasha Levin
From: Tom Rix [ Upstream commit cecf7560f00a8419396a2ed0f6e5d245ccb4feac ] clang static analysis reports this representative problem applesmc.c:758:10: warning: 1st function call argument is an uninitialized value left = be16_to_cpu(*(__be16 *)(buffer + 6)) >> 2; ^~

[PATCH AUTOSEL 4.14 5/9] nvmet: Disable keep-alive timer when kato is cleared to 0h

2020-08-31 Thread Sasha Levin
From: Amit Engel [ Upstream commit 0d3b6a8d213a30387b5104b2fb25376d18636f23 ] Based on nvme spec, when keep alive timeout is set to zero the keep-alive timer should be disabled. Signed-off-by: Amit Engel Signed-off-by: Sagi Grimberg Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 4.19 10/11] s390: don't trace preemption in percpu macros

2020-08-31 Thread Sasha Levin
From: Sven Schnelle [ Upstream commit 1196f12a2c960951d02262af25af0bb1775ebcc2 ] Since commit a21ee6055c30 ("lockdep: Change hardirq{s_enabled,_context} to per-cpu variables") the lockdep code itself uses percpu variables. This leads to recursions because the percpu macros are calling preempt_en

[PATCH AUTOSEL 4.19 02/11] speakup: Fix wait_for_xmitr for ttyio case

2020-08-31 Thread Sasha Levin
From: Samuel Thibault [ Upstream commit 2b86d9b8ec6efb86fc5ea44f2d49b1df17f699a1 ] This was missed while introducing the tty-based serial access. The only remaining use of wait_for_xmitr with tty-based access is in spk_synth_is_alive_restart to check whether the synth can be restarted. With tty

[PATCH] infiniband: remove unnecessary fallthrough usage

2020-08-31 Thread Cengiz Can
Since /* fallthrough */ comments are deprecated[1], they are being replaced by new 'fallthrough' pseudo-keyword. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?\ highlight=fallthrough#implicit-switch-case-fall-through This sometimes leads to unreachable code warnings by

[PATCH AUTOSEL 5.4 15/23] cpuidle: Fixup IRQ state

2020-08-31 Thread Sasha Levin
From: Peter Zijlstra [ Upstream commit 49d9c5936314e44d314c605c39cce0fd947f9c3a ] Match the pattern elsewhere in this file. Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Steven Rostedt (VMware) Reviewed-by: Thomas Gleixner Acked-by: Rafael J. Wysocki Tested-by: Marco Elver Link: https

[PATCH AUTOSEL 5.8 32/42] s390: don't trace preemption in percpu macros

2020-08-31 Thread Sasha Levin
From: Sven Schnelle [ Upstream commit 1196f12a2c960951d02262af25af0bb1775ebcc2 ] Since commit a21ee6055c30 ("lockdep: Change hardirq{s_enabled,_context} to per-cpu variables") the lockdep code itself uses percpu variables. This leads to recursions because the percpu macros are calling preempt_en

[PATCH AUTOSEL 5.4 16/23] nbd: restore default timeout when setting it to zero

2020-08-31 Thread Sasha Levin
From: Hou Pu [ Upstream commit acb19e17c5134dd78668c429ecba5b481f038e6a ] If we configured io timeout of nbd0 to 100s. Later after we finished using it, we configured nbd0 again and set the io timeout to 0. We expect it would timeout after 30 seconds and keep retry. But in fact we could not chan

[PATCH AUTOSEL 5.4 12/23] drm/msm/a6xx: fix gmu start on newer firmware

2020-08-31 Thread Sasha Levin
From: Dmitry Baryshkov [ Upstream commit f5749d6181fa7df5ae741788e5d96f593d3a60b6 ] New Qualcomm firmware has changed a way it reports back the 'started' event. Support new register values. Signed-off-by: Dmitry Baryshkov Signed-off-by: Rob Clark Signed-off-by: Sasha Levin --- drivers/gpu/d

[PATCH AUTOSEL 5.4 17/23] s390: don't trace preemption in percpu macros

2020-08-31 Thread Sasha Levin
From: Sven Schnelle [ Upstream commit 1196f12a2c960951d02262af25af0bb1775ebcc2 ] Since commit a21ee6055c30 ("lockdep: Change hardirq{s_enabled,_context} to per-cpu variables") the lockdep code itself uses percpu variables. This leads to recursions because the percpu macros are calling preempt_en

[PATCH AUTOSEL 5.8 34/42] drm/amd/display: Reject overlay plane configurations in multi-display scenarios

2020-08-31 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit 168f09cdadbd547c2b202246ef9a8183da725f13 ] [Why] These aren't stable on some platform configurations when driving multiple displays, especially on higher resolution. In particular the delay in asserting p-state and validating from x86 outweights any p

[PATCH AUTOSEL 5.4 05/23] tty: serial: qcom_geni_serial: Drop __init from qcom_geni_console_setup

2020-08-31 Thread Sasha Levin
From: John Stultz [ Upstream commit 975efc66d4e654207c17f939eb737ac591ac38fe ] When booting with heavily modularized config, the serial console may not be able to load until after init when modules that satisfy needed dependencies have time to load. Unfortunately, as qcom_geni_console_setup is

[PATCH AUTOSEL 5.4 03/23] drm/msm/dpu: Fix scale params in plane validation

2020-08-31 Thread Sasha Levin
From: Kalyan Thota [ Upstream commit 4c978caf08aa155bdeadd9e2d4b026d4ce97ebd0 ] Plane validation uses an API drm_calc_scale which will return src/dst value as a scale ratio. when viewing the range on a scale the values should fall in as Upscale ratio < Unity scale < Downscale ratio for src/dst

[PATCH AUTOSEL 5.8 41/42] xen/xenbus: Fix granting of vmalloc'd memory

2020-08-31 Thread Sasha Levin
From: Simon Leiner [ Upstream commit d742db70033c745e410523e00522ee0cfe2aa416 ] On some architectures (like ARM), virt_to_gfn cannot be used for vmalloc'd memory because of its reliance on virt_to_phys. This patch introduces a check for vmalloc'd addresses and obtains the PFN using vmalloc_to_pf

[PATCH AUTOSEL 5.4 09/23] drm/msm: enable vblank during atomic commits

2020-08-31 Thread Sasha Levin
From: Rob Clark [ Upstream commit 43906812eaab06423f56af5cca9a9fcdbb4ac454 ] This has roughly the same effect as drm_atomic_helper_wait_for_vblanks(), basically just ensuring that vblank accounting is enabled so that we get valid timestamp/seqn on pageflip events. Signed-off-by: Rob Clark Test

[PATCH AUTOSEL 5.8 35/42] drivers: gpu: amd: Initialize amdgpu_dm_backlight_caps object to 0 in amdgpu_dm_update_backlight_caps

2020-08-31 Thread Sasha Levin
From: Furquan Shaikh [ Upstream commit 5896585512e5156482335e902f7c7393b940da51 ] In `amdgpu_dm_update_backlight_caps()`, there is a local `amdgpu_dm_backlight_caps` object that is filled in by `amdgpu_acpi_get_backlight_caps()`. However, this object is uninitialized before the call and hence th

[PATCH AUTOSEL 5.4 10/23] habanalabs: validate FW file size

2020-08-31 Thread Sasha Levin
From: Ofir Bitton [ Upstream commit bce382a8bb080ed5f2f3a06754526dc58b91cca2 ] We must validate FW size in order not to corrupt memory in case a malicious FW file will be present in system. Signed-off-by: Ofir Bitton Signed-off-by: Oded Gabbay Signed-off-by: Sasha Levin --- drivers/misc/hab

[PATCH AUTOSEL 5.4 04/23] speakup: Fix wait_for_xmitr for ttyio case

2020-08-31 Thread Sasha Levin
From: Samuel Thibault [ Upstream commit 2b86d9b8ec6efb86fc5ea44f2d49b1df17f699a1 ] This was missed while introducing the tty-based serial access. The only remaining use of wait_for_xmitr with tty-based access is in spk_synth_is_alive_restart to check whether the synth can be restarted. With tty

[PATCH AUTOSEL 5.8 03/42] HID: hiddev: Fix slab-out-of-bounds write in hiddev_ioctl_usage()

2020-08-31 Thread Sasha Levin
From: Peilin Ye [ Upstream commit 25a097f5204675550afb879ee18238ca917cba7a ] `uref->usage_index` is not always being properly checked, causing hiddev_ioctl_usage() to go out of bounds under some cases. Fix it. Reported-by: syzbot+34ee1b45d88571c2f...@syzkaller.appspotmail.com Link: https://syz

[PATCH AUTOSEL 5.8 01/42] hwmon: (pmbus/isl68137) remove READ_TEMPERATURE_1 telemetry for RAA228228

2020-08-31 Thread Sasha Levin
From: Grant Peltier [ Upstream commit 51fb91ed5a6fa855a74731610cd5435d83d6e17f ] Per the RAA228228 datasheet, READ_TEMPERATURE_1 is not a supported PMBus command. Signed-off-by: Grant Peltier Signed-off-by: Guenter Roeck Signed-off-by: Sasha Levin --- drivers/hwmon/pmbus/isl68137.c | 7

[PATCH AUTOSEL 5.8 31/42] nbd: restore default timeout when setting it to zero

2020-08-31 Thread Sasha Levin
From: Hou Pu [ Upstream commit acb19e17c5134dd78668c429ecba5b481f038e6a ] If we configured io timeout of nbd0 to 100s. Later after we finished using it, we configured nbd0 again and set the io timeout to 0. We expect it would timeout after 30 seconds and keep retry. But in fact we could not chan

[PATCH AUTOSEL 5.8 05/42] drm/msm/dpu: Fix scale params in plane validation

2020-08-31 Thread Sasha Levin
From: Kalyan Thota [ Upstream commit 4c978caf08aa155bdeadd9e2d4b026d4ce97ebd0 ] Plane validation uses an API drm_calc_scale which will return src/dst value as a scale ratio. when viewing the range on a scale the values should fall in as Upscale ratio < Unity scale < Downscale ratio for src/dst

[PATCH AUTOSEL 5.8 07/42] speakup: Fix wait_for_xmitr for ttyio case

2020-08-31 Thread Sasha Levin
From: Samuel Thibault [ Upstream commit 2b86d9b8ec6efb86fc5ea44f2d49b1df17f699a1 ] This was missed while introducing the tty-based serial access. The only remaining use of wait_for_xmitr with tty-based access is in spk_synth_is_alive_restart to check whether the synth can be restarted. With tty

[PATCH AUTOSEL 5.8 02/42] HID: quirks: Always poll three more Lenovo PixArt mice

2020-08-31 Thread Sasha Levin
From: Sebastian Parschauer [ Upstream commit 627a49975bdc3220f360a8237603a6344ee6a588 ] The PixArt OEM mice are known for disconnecting every minute in runlevel 1 or 3 if they are not always polled. One Lenovo PixArt mouse is already fixed. Got two references for 17ef:602e and three references f

[PATCH AUTOSEL 5.8 30/42] cpuidle: Fixup IRQ state

2020-08-31 Thread Sasha Levin
From: Peter Zijlstra [ Upstream commit 49d9c5936314e44d314c605c39cce0fd947f9c3a ] Match the pattern elsewhere in this file. Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Steven Rostedt (VMware) Reviewed-by: Thomas Gleixner Acked-by: Rafael J. Wysocki Tested-by: Marco Elver Link: https

[PATCH AUTOSEL 5.8 04/42] drm/msm/dpu: Fix reservation failures in modeset

2020-08-31 Thread Sasha Levin
From: Kalyan Thota [ Upstream commit ccc862b957c6413b008fbe458034372847992d7f ] In TEST_ONLY commit, rm global_state will duplicate the object and request for new reservations, once they pass then the new state will be swapped with the old and will be available for the Atomic Commit. This patch

[PATCH AUTOSEL 5.8 29/42] irqchip/ingenic: Leave parent IRQ unmasked on suspend

2020-08-31 Thread Sasha Levin
From: Paul Cercueil [ Upstream commit 821fc9e261f3af235752f46e59084467cfd440c4 ] All the wakeup sources we possibly want will go through the interrupt controller, so the parent IRQ must not be masked during suspend, or there won't be any way to wake up the system. Signed-off-by: Paul Cercueil

[PATCH AUTOSEL 5.8 09/42] drm/msm: add shutdown support for display platform_driver

2020-08-31 Thread Sasha Levin
From: Krishna Manikandan [ Upstream commit 9d5cbf5fe46e350715389d89d0c350d83289a102 ] Define shutdown callback for display drm driver, so as to disable all the CRTCS when shutdown notification is received by the driver. This change will turn off the timing engine so that no display transactions

[PATCH AUTOSEL 5.8 15/42] habanalabs: validate packet id during CB parse

2020-08-31 Thread Sasha Levin
From: Ofir Bitton [ Upstream commit bc75be24fa88ef10eecaff2b2a9ada8189e5ab5d ] During command buffer parsing, driver extracts packet id from user buffer. Driver must validate this packet id, since it is being used in order to extract information from internal structures. Signed-off-by: Ofir Bit

Re: [PATCH] gss_krb5: Fix memleak in krb5_make_rc4_seq_num

2020-08-31 Thread Ard Biesheuvel
On Sat, 29 Aug 2020 at 18:43, J. Bruce Fields wrote: > > This code is rarely if ever used, and there are pending patches to > remove it completely, so I don't think it's worth trying to fix a rare > memory leak at this point. > > --b. > FYI I just submitted v3 of my series removing this code to t

[PATCH] drivers: optee: fix i2c build issue

2020-08-31 Thread Jorge Ramirez-Ortiz
When the optee driver is compiled into the kernel while the i2c core is configured as a module, the i2c symbols are not available. This commit addresses the situation by disabling the i2c support for this use case while allowing it in all other scenarios: i2c=y, optee=y i2c=m, optee=m i2c=y, o

Re: [PATCH] arm64: Enable PCI write-combine resources under sysfs

2020-08-31 Thread Clint Sbisa
On Fri, Aug 21, 2020 at 03:51:54PM +, Clint Sbisa wrote: > Using write-combine is crucial for performance of PCI devices where > significant amounts of transactions go over PCI BARs. > > arm64 supports write-combine PCI mappings, so the appropriate define > has been added which will expose wri

Re: [PATCH] fat: Avoid oops when bdi->io_pages==0

2020-08-31 Thread Jens Axboe
On Sat, Aug 29, 2020 at 7:08 PM OGAWA Hirofumi wrote: > > On one system, there was bdi->io_pages==0. This seems to be the bug of > a driver somewhere, and should fix it though. Anyway, it is better to > avoid the divide-by-zero Oops. > > So this check it. > > Signed-off-by: OGAWA Hirofumi > Cc:

Re: [PATCH][next] ath10k: wmi: Use struct_size() helper in ath10k_wmi_alloc_skb()

2020-08-31 Thread Kalle Valo
"Gustavo A. R. Silva" wrote: > Make use of the struct_size() helper instead of an open-coded version > in order to avoid any potential type mistakes. Also, remove unnecessary > variable _len_. > > This code was detected with the help of Coccinelle and, audited and > fixed manually. > > Signed-o

Re: [PATCH v2 08/30] net: wireless: ath: carl9170: Convert 'ar9170_qmap' to inline function

2020-08-31 Thread Kalle Valo
Lee Jones wrote: > 'ar9170_qmap' is used in some source files which include carl9170.h, > but not all of them. A 'defined but not used' warning is thrown when > compiling the ones which do not use it. > > Fixes the following W=1 kernel build warning(s) > > from drivers/net/wireless/ath/carl91

Re: [PATCH v2 25/32] wireless: ath: wil6210: wmi: Fix formatting and demote non-conforming function headers

2020-08-31 Thread Kalle Valo
Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/net/wireless/ath/wil6210/wmi.c:52: warning: Incorrect use of > kernel-doc format: * Addressing - theory of operations > drivers/net/wireless/ath/wil6210/wmi.c:70: warning: Incorrect use of > kernel-doc format:

Re: [PATCH 1/2] i2c: i801: Fix runtime PM

2020-08-31 Thread Vaibhav Gupta
On Fri, Aug 28, 2020 at 11:26:40AM -0500, Bjorn Helgaas wrote: > [+cc Vaibhav] > > On Wed, Jun 27, 2018 at 04:23:40PM -0500, Bjorn Helgaas wrote: > > [+cc Rafael, linux-pm, linux-kernel] > > > > On Wed, Jun 27, 2018 at 10:15:50PM +0200, Jean Delvare wrote: > > > Hi Jarkko, > > > > > > On Tue, 26

Re: [PATCH][next] ath11k: fix spelling mistake "moniter" -> "monitor"

2020-08-31 Thread Kalle Valo
Colin King wrote: > There is a spelling mistake in an ath11k_warn warning message. Fix it. > > Signed-off-by: Colin Ian King > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. bd5dd7aaa4c0 ath11k: fix spelling mistake "moniter" -> "monitor" -- https://patchwor

Re: [PATCH][next] ath11k: fix missing error check on call to ath11k_pci_get_user_msi_assignment

2020-08-31 Thread Kalle Valo
Colin King wrote: > The return error check on the call to ath11k_pci_get_user_msi_assignment is > missing. If an error does occur, num_vectors is still set to zero and > later on a division by zero can occur when variable vector is being > calculated. Fix this by adding an error check after the

Re: [PATCH 09/11] soundwire: intel: add dynamic debug trace for clock-stop invalid configs

2020-08-31 Thread Pierre-Louis Bossart
Detect cases where the clock is assumed to be stopped but the IP is not in the relevant state, and add a dynamic debug trace. you meant a debug print..and it looks like error print below (also in title). I don't understand the comment. Is the 'trace' confusing and are you asking to e.g. cha

Re: [PATCH 04/16] wireless: ath11k: convert tasklets to use new tasklet_setup() API

2020-08-31 Thread Kalle Valo
Allen Pais wrote: > In preparation for unconditionally passing the > struct tasklet_struct pointer to all tasklet > callbacks, switch to using the new tasklet_setup() > and from_tasklet() to pass the tasklet pointer explicitly. > > Signed-off-by: Allen Pais > Signed-off-by: Kalle Valo Patch a

[BUGFIX PATCH] kprobes: Fix to check probe enabled before disarm_kprobe_ftrace()

2020-08-31 Thread Masami Hiramatsu
Commit 0cb2f1372baa ("kprobes: Fix NULL pointer dereference at kprobe_ftrace_handler") fixed one bug but not completely fixed yet. If we run a kprobe_module.tc of ftracetest, kernel showed a warning as below. # ./ftracetest test.d/kprobe/kprobe_module.tc === Ftrace unit tests === [1] Kprobe dynam

Re: [PATCH v5 3/6] genirq/PM: Introduce IRQCHIP_ENABLE_WAKEUP_ON_SUSPEND flag

2020-08-31 Thread Doug Anderson
Hi, On Wed, Aug 26, 2020 at 3:15 AM Thomas Gleixner wrote: > > On Wed, Aug 26 2020 at 15:22, Maulik Shah wrote: > > On 8/26/2020 3:08 AM, Thomas Gleixner wrote: > >>> Where is the corresponding change to resume_irq()? Don't we need to > >>> disable an irq if it was disabled on suspend and forcib

[RESEND PATCH v5 2/5] irqchip/irq-pruss-intc: Add a PRUSS irqchip driver for PRUSS interrupts

2020-08-31 Thread Grzegorz Jaszczyk
The Programmable Real-Time Unit Subsystem (PRUSS) contains a local interrupt controller (INTC) that can handle various system input events and post interrupts back to the device-level initiators. The INTC can support upto 64 input events with individual control configuration and hardware prioritiza

Re: [PATCH v3 0/3] ASoC: soundwire: fix port_ready[] dynamic allocation

2020-08-31 Thread Pierre-Louis Bossart
On 8/30/20 8:27 AM, Bard Liao wrote: The existing code allocates memory for the total number of ports. This only works if the ports are contiguous, but will break if e.g. a Devices uses port0, 1, and 14. The port_ready[] array would contain 3 elements, which would lead to an out-of-bounds acce

[RESEND PATCH v5 3/5] irqchip/irq-pruss-intc: Add logic for handling reserved interrupts

2020-08-31 Thread Grzegorz Jaszczyk
From: Suman Anna The PRUSS INTC has a fixed number of output interrupt lines that are connected to a number of processors or other PRUSS instances or other devices (like DMA) on the SoC. The output interrupt lines 2 through 9 are usually connected to the main Arm host processor and are referred t

[RESEND PATCH v5 4/5] irqchip/irq-pruss-intc: Implement irq_{get,set}_irqchip_state ops

2020-08-31 Thread Grzegorz Jaszczyk
From: David Lechner This implements the irq_get_irqchip_state and irq_set_irqchip_state callbacks for the TI PRUSS INTC driver. The set callback can be used by drivers to "kick" a PRU by injecting a PRU system event. Example: irq_set_irqchip_state(irq, IRQCHIP_STATE_PENDING, true); Signed-

[RESEND PATCH v5 5/5] irqchip/irq-pruss-intc: Add support for ICSSG INTC on K3 SoCs

2020-08-31 Thread Grzegorz Jaszczyk
From: Suman Anna The K3 AM65x and J721E SoCs have the next generation of the PRU-ICSS IP, commonly called ICSSG. The PRUSS INTC present within the ICSSG supports more System Events (160 vs 64), more Interrupt Channels and Host Interrupts (20 vs 10) compared to the previous generation PRUSS INTC i

[RESEND PATCH v5 1/5] dt-bindings: irqchip: Add PRU-ICSS interrupt controller bindings

2020-08-31 Thread Grzegorz Jaszczyk
From: Suman Anna The Programmable Real-Time Unit and Industrial Communication Subsystem (PRU-ICSS or simply PRUSS) contains an interrupt controller (INTC) that can handle various system input events and post interrupts back to the device-level initiators. The INTC can support up to 64 input event

[RESEND PATCH v5 0/5] Add TI PRUSS Local Interrupt Controller IRQChip driver

2020-08-31 Thread Grzegorz Jaszczyk
Hi All, The following is a v4 version of the series [1-4] that adds an IRQChip driver for the local interrupt controller present within a Programmable Real-Time Unit and Industrial Communication Subsystem (PRU-ICSS) present on a number of TI SoCs including OMAP architecture based AM335x, AM437x, A

Re: Broadcom WiFi SDIO performance regression after commit "mmc: sdhci: Remove finish_tasklet"

2020-08-31 Thread Adrian Hunter
On 27/08/20 12:36 pm, Dmitry Osipenko wrote: > 27.08.2020 09:45, Adrian Hunter пишет: >> On 27/08/20 9:07 am, Dmitry Osipenko wrote: >>> Hello! >>> >>> I was debugging WiFi performance problems on Acer A500 tablet device >>> that has BCM4329 WiFi chip which is connected to NVIDIA Terga20 SoC via >>

Re: [PATCH 2/3] ia64: remove unneeded header includes from

2020-08-31 Thread Ard Biesheuvel
On Sat, 29 Aug 2020 at 08:16, Masahiro Yamada wrote: > > includes too many unneeded headers. > > This commit cuts off a lot of header includes. > > What we need to include are: > > - for DECLARE_PER_CPU(u64, ia64_mca_pal_base) > - for NR_CPUS > - for u8, u64, size_t, etc. > - for KERNEL_S

[PATCH] log2: add missing () around n in roundup_pow_of_two()

2020-08-31 Thread Jason Gunthorpe
Otherwise gcc generates warnings if the expression is complicated. Fixes: 312a0c170945 ("[PATCH] LOG2: Alter roundup_pow_of_two() so that it can use a ilog2() on a constant") Signed-off-by: Jason Gunthorpe --- include/linux/log2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Hi Andrew

Re: [PATCH] SELinux: Measure state and hash of policy using IMA

2020-08-31 Thread Stephen Smalley
On Wed, Aug 26, 2020 at 8:51 AM Stephen Smalley wrote: > > On Tue, Aug 25, 2020 at 4:49 PM Lakshmi Ramasubramanian > wrote: > > > > On 8/24/20 3:18 PM, Paul Moore wrote: > > > > Hi Paul, > > > > > Is Ondrej's re-try approach I need to use to workaround policy reload > > > issue? > >

Re: [PATCH 5/5] mlock: fix unevictable_pgs event counts on THP

2020-08-31 Thread Shakeel Butt
On Sun, Aug 30, 2020 at 2:09 PM Hugh Dickins wrote: > > 5.8 commit 5d91f31faf8e ("mm: swap: fix vmstats for huge page") has > established that vm_events should count every subpage of a THP, > including unevictable_pgs_culled and unevictable_pgs_rescued; but > lru_cache_add_inactive_or_unevictable(

Re: [patch V2 46/46] irqchip: Add IMS (Interrupt Message Storm) driver - NOT FOR MERGING

2020-08-31 Thread Jason Gunthorpe
On Wed, Aug 26, 2020 at 01:17:14PM +0200, Thomas Gleixner wrote: > + * ims_queue_info - Information to create an IMS queue domain > + * @queue_lock: Callback which informs the device driver that > + * an interrupt management operation starts. > + * @queue_sync_unlock:

Re: [PATCH 4/5] mm: fix check_move_unevictable_pages() on THP

2020-08-31 Thread Shakeel Butt
On Sun, Aug 30, 2020 at 2:08 PM Hugh Dickins wrote: > > check_move_unevictable_pages() is used in making unevictable shmem pages > evictable: by shmem_unlock_mapping(), drm_gem_check_release_pagevec() and > i915/gem check_release_pagevec(). Those may pass down subpages of a huge > page, when /sys

Re: [PATCH 3/5] shmem: shmem_writepage() split unlikely i915 THP

2020-08-31 Thread Shakeel Butt
On Sun, Aug 30, 2020 at 2:04 PM Hugh Dickins wrote: > > drivers/gpu/drm/i915/gem/i915_gem_shmem.c contains a shmem_writeback() > which calls shmem_writepage() from a shrinker: that usually works well > enough; but if /sys/kernel/mm/transparent_hugepage/shmem_enabled has > been set to "force" (docu

Re: [PATCH 2/5] mm: migration of hugetlbfs page skip memcg

2020-08-31 Thread Shakeel Butt
On Sun, Aug 30, 2020 at 2:01 PM Hugh Dickins wrote: > > hugetlbfs pages do not participate in memcg: so although they do find > most of migrate_page_states() useful, it would be better if they did > not call into mem_cgroup_migrate() - where Qian Cai reported that LTP's > move_pages12 triggers the

Re: [patch V2 24/46] PCI: vmd: Mark VMD irqdomain with DOMAIN_BUS_VMD_MSI

2020-08-31 Thread Jason Gunthorpe
On Wed, Aug 26, 2020 at 01:16:52PM +0200, Thomas Gleixner wrote: > From: Thomas Gleixner > > Devices on the VMD bus use their own MSI irq domain, but it is not > distinguishable from regular PCI/MSI irq domains. This is required > to exclude VMD devices from getting the irq domain pointer set by

Re: [PATCH 1/5] ksm: reinstate memcg charge on copied pages

2020-08-31 Thread Shakeel Butt
On Sun, Aug 30, 2020 at 1:59 PM Hugh Dickins wrote: > > In 5.8 some instances of memcg charging in do_swap_page() and unuse_pte() > were removed, on the understanding that swap cache is now already charged > at those points; but a case was missed, when ksm_might_need_to_copy() has > decided it mus

[PATCH] arm: dts: mt7623: add lima related regulator

2020-08-31 Thread Frank Wunderlich
From: Alex Ryabchenko GPU needs additional regulator, add it to devicetree of bpi-r2 Signed-off-by: Alex Ryabchenko Signed-off-by: Frank Wunderlich --- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot

[PATCH net] net: ethernet: mlx4: Fix memory allocation in mlx4_buddy_init()

2020-08-31 Thread Shung-Hsi Yu
On machines with much memory (> 2 TByte) and log_mtts_per_seg == 0, a max_order of 31 will be passed to mlx_buddy_init(), which results in s = BITS_TO_LONGS(1 << 31) becoming a negative value, leading to kvmalloc_array() failure when it is converted to size_t. mlx4_core :b1:00.0: Failed to i

Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend().

2020-08-31 Thread Brian Foster
On Mon, Aug 31, 2020 at 12:01:07PM +0800, Ming Lei wrote: > On Tue, Aug 25, 2020 at 10:49:17AM -0400, Brian Foster wrote: > > cc Ming > > > > On Tue, Aug 25, 2020 at 10:42:03AM +1000, Dave Chinner wrote: > > > On Mon, Aug 24, 2020 at 11:48:41AM -0400, Brian Foster wrote: > > > > On Mon, Aug 24, 20

Re: [PATCH] staging: atomisp: Fix fallthrough keyword warning

2020-08-31 Thread Mauro Carvalho Chehab
Em Mon, 31 Aug 2020 16:30:12 +0300 Cengiz Can escreveu: > commit df561f6688fe ("treewide: Use fallthrough pseudo-keyword") from > Gustavo A. R. Silva replaced and standardized /* fallthrough */ comments > with 'fallthrough' pseudo-keyword. > > However, in one of the switch-case statements, Cover

Re: [PATCH v2 0/3] add fault injection to user memory access

2020-08-31 Thread Akinobu Mita
2020年8月28日(金) 23:14 : > > From: Albert van der Linde > > The goal of this series is to improve testing of fault-tolerance in > usages of user memory access functions, by adding support for fault > injection. > > The first patch adds failure injection capability for usercopy > functions. The second

Re: [PATCH 3/3] KVM: nSVM: more strict SMM checks when returning to nested guest

2020-08-31 Thread Maxim Levitsky
On Mon, 2020-08-31 at 15:01 +0300, Dan Carpenter wrote: > Hi Maxim, > > url: > https://github.com/0day-ci/linux/commits/Maxim-Levitsky/Few-nSVM-bugfixes/20200828-003025 > base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next > config: x86_64-randconfig-m001-20200827 (attached as .

RE: [PATCH] fsldma: fsl_ioread64*() do not need lower_32_bits()

2020-08-31 Thread Leo Li
> -Original Message- > From: Linus Torvalds > Sent: Saturday, August 29, 2020 4:20 PM > To: Guenter Roeck > Cc: Luc Van Oostenryck ; Herbert Xu > ; Andrew Morton foundation.org>; Joerg Roedel ; Leo Li > ; Zhang Wei ; Dan Williams > ; Vinod Koul ; linuxppc-dev > ; dma ; Linux > Kernel M

Re: [RFC PATCH] selinux: Add denied trace with permssion filter

2020-08-31 Thread Paul Moore
On Mon, Aug 31, 2020 at 10:19 AM Robert Judy wrote: > > I would like to unsubscribe from this group. I have sent "unsubscribe" > requests to selinux-ow...@vger.kernel.org as subject and in the body of the > e-mail but that has not worked. Please advise me how to unsubscribe. > > Thank you and re

Re: [RFC PATCH v7 08/23] sched: Add core wide task selection and scheduling.

2020-08-31 Thread Joel Fernandes
Hi Peter, On Sat, Aug 29, 2020 at 09:47:19AM +0200, pet...@infradead.org wrote: > On Fri, Aug 28, 2020 at 06:02:25PM -0400, Vineeth Pillai wrote: > > On 8/28/20 4:51 PM, Peter Zijlstra wrote: > > > > So where do things go side-ways? > > > During hotplug stress test, we have noticed that while a

Re: [PATCH v2] staging: atomisp: Remove unnecessary 'fallthrough'

2020-08-31 Thread Gustavo A. R. Silva
On Mon, Aug 31, 2020 at 04:51:04PM +0300, Cengiz Can wrote: > commit df561f6688fe ("treewide: Use fallthrough pseudo-keyword") from > Gustavo A. R. Silva replaced and standardized /* fallthrough */ comments > with 'fallthrough' pseudo-keyword. > > However, in one of the switch-case statements, Cov

[PATCH v5] dt-binding: phy: convert ti,omap-usb2 to YAML

2020-08-31 Thread Roger Quadros
Move ti,omap-usb2 to its own YAML schema. Signed-off-by: Roger Quadros Reviewed-by: Rob Herring --- Changelog: v5 - Added "ti,am437x-usb2" compatible. v4 - fix example to fix dt_binding_check warnings - '#phy-cells' -> "#phy-cells" - Add 'oneOf' to compatible logic to allow just "ti,omap-usb2"

Re: [PATCH] clk: renesas: cpg-mssr: Add clk entry for VSPR

2020-08-31 Thread Lad, Prabhakar
Hi Geert, Thank you for your review. On Mon, Aug 31, 2020 at 1:38 PM Geert Uytterhoeven wrote: > > Hi Prabhakar, > > Thanks for your patch! > > On Tue, Aug 25, 2020 at 3:48 PM Lad Prabhakar > wrote: > > Add clock entry 130 for VSPR module, so that this module can be used > > VSPR ("VSP for Resi

Re: [RFC PATCH] selinux: Add denied trace with permssion filter

2020-08-31 Thread Paul Moore
On Thu, Aug 27, 2020 at 10:04 AM peter enderborg wrote: > > On 8/27/20 3:30 PM, Paul Moore wrote: > > On Wed, Aug 26, 2020 at 11:06 AM peter enderborg > > wrote: > >> On 8/26/20 4:45 PM, Paul Moore wrote: > >>> On Wed, Aug 26, 2020 at 10:34 AM peter enderborg > >>> wrote: > On 8/26/20 3:42

Re: [PATCH v2 10/23] microblaze: use asm-generic/mmu_context.h for no-op implementations

2020-08-31 Thread Michal Simek
On 26. 08. 20 16:52, Nicholas Piggin wrote: > Cc: Michal Simek > Signed-off-by: Nicholas Piggin > --- > arch/microblaze/include/asm/mmu_context_mm.h | 8 > arch/microblaze/include/asm/processor.h | 3 --- > 2 files changed, 4 insertions(+), 7 deletions(-) > > diff --git a/arch/

Re: [PATCH] mmc: sdhci-msm: Add retries when all tuning phases are found valid

2020-08-31 Thread Adrian Hunter
On 27/08/20 5:58 pm, Douglas Anderson wrote: > As the comments in this patch say, if we tune and find all phases are > valid it's _almost_ as bad as no phases being found valid. Probably > all phases are not really reliable but we didn't detect where the > unreliable place is. That means we'll es

Re: [PATCH] regmap: soundwire: remove unsed header mod_devicetable.h

2020-08-31 Thread Pierre-Louis Bossart
typo in commit message? On 8/29/20 5:39 AM, Vinod Koul wrote: mod_devicetable.h does not seem to be required for this file, so remove it. Signed-off-by: Vinod Koul --- drivers/base/regmap/regmap-sdw.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/base/regmap/regmap-sdw.c b/driv

Re: [PATCH] microblaze: fix min_low_pfn/max_low_pfn build errors

2020-08-31 Thread Michal Simek
Hi, On 29. 08. 20 2:01, Randy Dunlap wrote: > Fix min_low_pfn/max_low_pfn build errors for arch/microblaze/: (e.g.) > > ERROR: "min_low_pfn" [drivers/rpmsg/virtio_rpmsg_bus.ko] undefined! > ERROR: "min_low_pfn" [drivers/hwtracing/intel_th/intel_th_msu_sink.ko] > undefined! > ERROR: "min_lo

Re: [PATCH] microblaze: fix kbuild redundant file warning

2020-08-31 Thread Michal Simek
Hi, On 28. 08. 20 20:35, Randy Dunlap wrote: > From: Randy Dunlap > > Fix build warning since this file is already listed in > include/asm-generic/Kbuild. > > ../scripts/Makefile.asm-generic:25: redundant generic-y found in > arch/microblaze/include/asm/Kbuild: hw_irq.h > > Fixes: 7e8f54cd4e2

Re: [PATCH 23/33] ARM: dts: exynos: Remove empty camera pinctrl configuration in Odroid X/U3

2020-08-31 Thread Krzysztof Kozlowski
On Mon, 31 Aug 2020 at 15:57, Sylwester Nawrocki wrote: > > On 31.08.2020 12:42, Krzysztof Kozlowski wrote: > > On Mon, 31 Aug 2020 at 12:35, Sylwester Nawrocki > > wrote: > >> On 8/31/20 10:38, Krzysztof Kozlowski wrote: > >>> On Mon, 31 Aug 2020 at 10:31, Marek Szyprowski > >>> wrote: >

Re: [PATCH 23/33] ARM: dts: exynos: Remove empty camera pinctrl configuration in Odroid X/U3

2020-08-31 Thread Sylwester Nawrocki
On 31.08.2020 12:42, Krzysztof Kozlowski wrote: > On Mon, 31 Aug 2020 at 12:35, Sylwester Nawrocki wrote: >> On 8/31/20 10:38, Krzysztof Kozlowski wrote: >>> On Mon, 31 Aug 2020 at 10:31, Marek Szyprowski >>> wrote: On 30.08.2020 15:51, Krzysztof Kozlowski wrote: > The camera's pinctrl

Re: [PATCH AUTOSEL 4.19 08/38] media: pci: ttpci: av7110: fix possible buffer overflow caused by bad DMA value in debiirq()

2020-08-31 Thread Laurent Pinchart
Hi Jia-Ju, On Mon, Aug 31, 2020 at 09:45:14PM +0800, Jia-Ju Bai wrote: > On 2020/8/31 6:25, Laurent Pinchart wrote: > > On Sun, Aug 30, 2020 at 03:33:11PM +0800, Jia-Ju Bai wrote: > >> On 2020/8/30 1:16, Laurent Pinchart wrote: > >>> On Sat, Aug 29, 2020 at 02:10:20PM +0200, Pavel Machek wrote: >

Re: [PATCH v4 1/7] perf util: Create streams

2020-08-31 Thread Jiri Olsa
On Tue, Aug 25, 2020 at 07:35:07AM +0800, Jin Yao wrote: SNIP > + int nr_streams_max, > + enum stream_type type) > +{ > + struct evsel_streams *es; > + int nr_evsel = evlist->core.nr_entries, ret =

Re: [PATCH v2 08/30] net: wireless: ath: carl9170: Convert 'ar9170_qmap' to inline function

2020-08-31 Thread Kalle Valo
Christian Lamparter writes: > On Thursday, 27 August 2020 11:33:51 CEST Lee Jones wrote: >> 'ar9170_qmap' is used in some source files which include carl9170.h, >> but not all of them. A 'defined but not used' warning is thrown when >> compiling the ones which do not use it. >> >> Fixes the fol

[PATCH v2 1/1] USB: PHY: JZ4770: Use the generic PHY framework.

2020-08-31 Thread Zhou Yanjie
Used the generic PHY framework API to create the PHY, and move the driver to driver/phy/ingenic. Tested-by: 周正 (Zhou Zheng) Co-developed-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: Fix bug, ".of_match_table = of_match_ptr(

Re: possible deadlock in proc_pid_syscall (2)

2020-08-31 Thread Eric W. Biederman
pet...@infradead.org writes: > On Sun, Aug 30, 2020 at 07:31:39AM -0500, Eric W. Biederman wrote: > >> I am thinking that for cases where we want to do significant work it >> might be better to ask the process to pause at someplace safe (probably >> get_signal) and then do all of the work when we

[PATCH v2] staging: atomisp: Remove unnecessary 'fallthrough'

2020-08-31 Thread Cengiz Can
commit df561f6688fe ("treewide: Use fallthrough pseudo-keyword") from Gustavo A. R. Silva replaced and standardized /* fallthrough */ comments with 'fallthrough' pseudo-keyword. However, in one of the switch-case statements, Coverity Static Analyzer throws a warning that 'fallthrough' is unreachab

Re: [PATCH 4/4] arm64: dts: exynos: Use newer S3FWRN5 GPIO properties in Exynos5433 TM2

2020-08-31 Thread Krzysztof Kozlowski
On Mon, 31 Aug 2020 at 15:16, Marek Szyprowski wrote: > > > On 29.08.2020 16:29, Krzysztof Kozlowski wrote: > > Since "s3fwrn5" is not a valid vendor prefix, use new GPIO properties > > instead of the deprecated. > > > > Signed-off-by: Krzysztof Kozlowski > Tested-by: Marek Szyprowski Thanks fo

[PATCH v2 0/1] Use the generic PHY framework for Ingenic USB PHY.

2020-08-31 Thread Zhou Yanjie
v1->v2: Fix bug, ".of_match_table = of_match_ptr(ingenic_usb_phy_of_matches)" is wrong and should be replaced with ".of_match_table = ingenic_usb_phy_of_matches". 周琰杰 (Zhou Yanjie) (1): USB: PHY: JZ4770: Use the generic PHY framework. drivers/phy/Kconfig| 1 +

Re: [RFT 10/10] arm64: dts: exynos: Enable Arizona interrupt controller in Exynos5433 TM2

2020-08-31 Thread Krzysztof Kozlowski
On Mon, 31 Aug 2020 at 15:12, Marek Szyprowski wrote: > > > On 29.08.2020 16:25, Krzysztof Kozlowski wrote: > > The Wolfson Arizona codec is interrupt controller which is required by > > bindings. This fixes dtbs_check warnings like: > > > >arch/arm64/boot/dts/exynos/exynos5433-tm2e.dt.yaml:

[PATCH 2/4] exit: support non-blocking pidfds

2020-08-31 Thread Christian Brauner
Passing a non-blocking pidfd to waitid() currently has no effect, i.e. is not supported. There are users which would like to use waitid() on pidfds that are O_NONBLOCK and mix it with pidfds that are blocking and both pass them to waitid(). The expected behavior is to have waitid() return -EAGAIN f

Re: [PATCH] drm/vkms: add support for gamma_set interface

2020-08-31 Thread Ville Syrjälä
On Mon, Aug 31, 2020 at 01:38:58PM +, Sidong Yang wrote: > On Mon, Aug 31, 2020 at 11:39:10AM +, Simon Ser wrote: > > On Saturday, August 29, 2020 4:06 PM, Sidong Yang > > wrote: > > > > > Currently vkms module doesn't support gamma function for userspace. so igt > > > subtests in kms_pl

Re: [PATCH] staging: atomisp: Fix fallthrough keyword warning

2020-08-31 Thread Dan Carpenter
Really I think this function is pretty buggy. It shouldn't be falling through at all... I reported it a couple days back so it's possible that someone is working on a fix already. regards, dan carpenter

[PATCH 3/4] tests: port pidfd_wait to kselftest harness

2020-08-31 Thread Christian Brauner
All of the new pidfd selftests already use the new kselftest harness infrastructure. It makes for clearer output, makes the code easier to understand, and makes adding new tests way simpler. Cc: Shuah Khan Cc: linux-kselft...@vger.kernel.org Signed-off-by: Christian Brauner --- tools/testing/se

[PATCH 4/4] tests: add waitid() tests for non-blocking pidfds

2020-08-31 Thread Christian Brauner
Verify that the PIDFD_NONBLOCK flag works with pidfd_open() and that waitid() with a non-blocking pidfd returns EAGAIN: TAP version 13 1..3 # Starting 3 tests from 1 test cases. # RUN global.wait_simple ... #OK global.wait_simple

[PATCH 0/4] Support non-blocking pidfds

2020-08-31 Thread Christian Brauner
Hi, Passing a non-blocking pidfd to waitid() currently has no effect, i.e. is not supported. There are users which would like to use waitid() on pidfds that are O_NONBLOCK and mix it with pidfds that are blocking and both pass them to waitid(). The expected behavior is to have waitid() return -EAG

[PATCH 1/4] pidfd: support PIDFD_NONBLOCK in pidfd_open()

2020-08-31 Thread Christian Brauner
Introduce PIDFD_NONBLOCK to support non-blocking pidfd file descriptors. Ever since the introduction of pidfds and more advanced async io various programming languages such as Rust have grown support for async event libraries. These libraries are created to help build epoll-based event loops aroun

Re: [PATCH AUTOSEL 4.19 08/38] media: pci: ttpci: av7110: fix possible buffer overflow caused by bad DMA value in debiirq()

2020-08-31 Thread Jia-Ju Bai
On 2020/8/31 6:25, Laurent Pinchart wrote: Hi Jia-Ju, On Sun, Aug 30, 2020 at 03:33:11PM +0800, Jia-Ju Bai wrote: On 2020/8/30 1:16, Laurent Pinchart wrote: On Sat, Aug 29, 2020 at 02:10:20PM +0200, Pavel Machek wrote: Hi! The value av7110->debi_virt is stored in DMA memory, and it is as

Re: [PATCH] mmc: mmc_spi: Don't use dma mappings unless CONFIG_HAS_DMA is set

2020-08-31 Thread Rich Felker
On Mon, Aug 31, 2020 at 03:16:36PM +0200, Ulf Hansson wrote: > The commit cd57d07b1e4e ("sh: don't allow non-coherent DMA for NOMMU") made > CONFIG_NO_DMA to be set for some platforms, for good reasons. > Consequentially, CONFIG_HAS_DMA doesn't get set, which makes the DMA > mapping interface to be

<    4   5   6   7   8   9   10   11   12   13   >