[PATCH AUTOSEL 5.7 102/274] e1000: Distribute switch variables for initialization

2020-06-08 Thread Sasha Levin
From: Kees Cook [ Upstream commit a34c7f5156654ebaf7eaace102938be7ff7036cb ] Variables declared in a switch statement before any case statements cannot be automatically initialized with compiler instrumentation (as they are not part of any execution flow). With GCC's proposed automatic stack

[PATCH AUTOSEL 5.7 101/274] tools api fs: Make xxx__mountpoint() more scalable

2020-06-08 Thread Sasha Levin
From: Stephane Eranian [ Upstream commit c6fddb28bad26e5472cb7acf7b04cd5126f1a4ab ] The xxx_mountpoint() interface provided by fs.c finds mount points for common pseudo filesystems. The first time xxx_mountpoint() is invoked, it scans the mount table (/proc/mounts) looking for a match. If

[PATCH AUTOSEL 5.7 088/274] ubsan: entirely disable alignment checks under UBSAN_TRAP

2020-06-08 Thread Sasha Levin
From: Kees Cook [ Upstream commit 9380ce246a052a1e00121cd480028b6907aeae38 ] Commit 8d58f222e85f ("ubsan: disable UBSAN_ALIGNMENT under COMPILE_TEST") tried to fix the pathological results of UBSAN_ALIGNMENT with UBSAN_TRAP (which objtool would rightly scream about), but it made an assumption

[PATCH AUTOSEL 5.7 082/274] x86/kvm/hyper-v: Explicitly align hcall param for kvm_hyperv_exit

2020-06-08 Thread Sasha Levin
From: Jon Doron [ Upstream commit f7d31e65368aeef973fab788aa22c4f1d5a6af66 ] The problem the patch is trying to address is the fact that 'struct kvm_hyperv_exit' has different layout on when compiling in 32 and 64 bit modes. In 64-bit mode the default alignment boundary is 64 bits thus forcing

[PATCH AUTOSEL 5.7 053/274] media: i2c: imx219: Fix a bug in imx219_enum_frame_size

2020-06-08 Thread Sasha Levin
From: Dafna Hirschfeld [ Upstream commit b2bbf1aac61186ef904fd28079e847d3feadb89e ] When enumerating the frame sizes, the value sent to imx219_get_format_code should be fse->code (the code from the ioctl) and not imx219->fmt.code which is the code set currently in the driver. Fixes:

[PATCH AUTOSEL 5.7 076/274] mmc: mmci_sdmmc: fix power on issue due to pwr_reg initialization

2020-06-08 Thread Sasha Levin
From: Ludovic Barre [ Upstream commit 33ba6fec0012e47f4e72bfab922b99327373f210 ] This patch fix a power-on issue, and avoid to retry the power sequence. In power off sequence: sdmmc must set pwr_reg in "power-cycle" state (value 0x2), to prevent the card from being supplied through the signal

[PATCH v6 09/19] mm: memcg/slab: charge individual slab objects instead of pages

2020-06-08 Thread Roman Gushchin
Switch to per-object accounting of non-root slab objects. Charging is performed using obj_cgroup API in the pre_alloc hook. Obj_cgroup is charged with the size of the object and the size of metadata: as now it's the size of an obj_cgroup pointer. If the amount of memory has been charged

[PATCH AUTOSEL 5.7 070/274] ARM: 8978/1: mm: make act_mm() respect THREAD_SIZE

2020-06-08 Thread Sasha Levin
From: Linus Walleij [ Upstream commit e1de94380af588bdf6ad6f0cc1f75004c35bc096 ] Recent work with KASan exposed the folling hard-coded bitmask in arch/arm/mm/proc-macros.S: bic rd, sp, #8128 bic rd, rd, #63 This forms the bitmask 0x1FFF that is coinciding with (PAGE_SIZE <<

[PATCH AUTOSEL 5.7 060/274] drm/dp: Lenovo X13 Yoga OLED panel brightness fix

2020-06-08 Thread Sasha Levin
From: Mark Pearson [ Upstream commit 0df3ff451287d71c620384eb7bb2cd3a8106412c ] Add another panel that needs the edid quirk to the list so that brightness control works correctly. Fixes issue seen on Lenovo X13 Yoga with OLED panel Co-developed-by: jendr...@lenovo.com Signed-off-by: Mark

[PATCH AUTOSEL 5.7 079/274] Bluetooth: hci_qca: Fix suspend/resume functionality failure

2020-06-08 Thread Sasha Levin
From: Zijun Hu [ Upstream commit feac90d756c03b03b83fabe83571bd88ecc96b78 ] @dev parameter of qca_suspend()/qca_resume() represents serdev_device, but it is mistook for hci_dev and causes succedent unexpected memory access. Fix by taking @dev as serdev_device. Fixes: 41d5b25fed0 ("Bluetooth:

[PATCH AUTOSEL 5.7 077/274] mmc: meson-mx-sdio: trigger a soft reset after a timeout or CRC error

2020-06-08 Thread Sasha Levin
From: Martin Blumenstingl [ Upstream commit 91995b904ec2e44b5c159ac6a5d3f154345a4de7 ] The vendor driver (from the 3.10 kernel) triggers a soft reset every time before starting a new command. While this fixes a problem where SDIO cards are not detected at all (because all commands simply timed

[PATCH AUTOSEL 5.7 065/274] clocksource: dw_apb_timer_of: Fix missing clockevent timers

2020-06-08 Thread Sasha Levin
From: Serge Semin [ Upstream commit 6d2e16a3181bafb77b535095c39ad1c8b9558c8c ] Commit 100214889973 ("clocksource: dw_apb_timer_of: use clocksource_of_init") replaced a publicly available driver initialization method with one called by the timer_probe() method available after CLKSRC_OF. In

[PATCH AUTOSEL 5.7 066/274] media: dvbdev: Fix tuner->demod media controller link

2020-06-08 Thread Sasha Levin
From: Brad Love [ Upstream commit 9f984cacf4f4d53fd8a3f44d7f13528b81c1f6a8 ] Fixes bug exposed by: [a3fbc2e6bb0: media: mc-entity.c: use WARN_ON, validate link pads] The dvbdev incorrectly requests a tuner sink pad to connect to a demux sink pad. The media controller failure percolates back

[PATCH AUTOSEL 5.7 062/274] spi: dw: Enable interrupts in accordance with DMA xfer mode

2020-06-08 Thread Sasha Levin
From: Serge Semin [ Upstream commit 43dba9f3f98c2b184a19f856f06fe22817bfd9e0 ] It's pointless to track the Tx overrun interrupts if Rx-only SPI transfer is issued. Similarly there is no need in handling the Rx overrun/underrun interrupts if Tx-only SPI transfer is executed. So lets unmask the

[PATCH AUTOSEL 5.7 052/274] io_uring: cleanup io_poll_remove_one() logic

2020-06-08 Thread Sasha Levin
From: Jens Axboe [ Upstream commit 3bfa5bcb26f0b52d7ae8416aa0618fff21aceaaf ] We only need apoll in the one section, do the juggling with the work restoration there. This removes a special case further down as well. No functional changes in this patch. Signed-off-by: Jens Axboe

[PATCH AUTOSEL 5.7 050/274] cpuidle: psci: Fixup execution order when entering a domain idle state

2020-06-08 Thread Sasha Levin
From: Ulf Hansson [ Upstream commit 8b7ce5e49049ca78c238f03d70569a73da049f32 ] Moving forward, platforms are going to need to execute specific "last-man" operations before a domain idle state can be entered. In one way or the other, these operations needs to be triggered while walking the

[PATCH v6 02/19] mm: memcg: prepare for byte-sized vmstat items

2020-06-08 Thread Roman Gushchin
To implement per-object slab memory accounting, we need to convert slab vmstat counters to bytes. Actually, out of 4 levels of counters: global, per-node, per-memcg and per-lruvec only two last levels will require byte-sized counters. It's because global and per-node counters will be counting the

[PATCH v6 01/19] mm: memcg: factor out memcg- and lruvec-level changes out of __mod_lruvec_state()

2020-06-08 Thread Roman Gushchin
To convert memcg and lruvec slab counters to bytes there must be a way to change these counters without touching node counters. Factor out __mod_memcg_lruvec_state() out of __mod_lruvec_state(). Signed-off-by: Roman Gushchin Acked-by: Johannes Weiner Reviewed-by: Vlastimil Babka ---

Re: [PATCH v2 08/11] swiotlb-xen: introduce phys_to_dma/dma_to_phys translations

2020-06-08 Thread Stefano Stabellini
On Mon, 8 Jun 2020, Christoph Hellwig wrote: > On Wed, Jun 03, 2020 at 03:22:44PM -0700, Stefano Stabellini wrote: > > From: Stefano Stabellini > > > > With some devices physical addresses are different than dma addresses. > > To be able to deal with these cases, we need to call phys_to_dma on >

[PATCH AUTOSEL 5.7 027/274] sched/fair: Refill bandwidth before scaling

2020-06-08 Thread Sasha Levin
From: Huaixin Chang [ Upstream commit 5a6d6a6ccb5f48ca8cf7c6d64ff83fd9c7999390 ] In order to prevent possible hardlockup of sched_cfs_period_timer() loop, loop count is introduced to denote whether to scale quota and period or not. However, scale is done between forwarding period timer and

[PATCH AUTOSEL 5.7 042/274] tools/power/x86/intel-speed-select: Fix CLX-N package information output

2020-06-08 Thread Sasha Levin
From: Prarit Bhargava [ Upstream commit 28c59ae6965ca0626e3150e2f2863e0f0c810ed7 ] On CLX-N the perf-profile output is missing the package, die, and cpu output. On CLX-N the pkg_dev struct will never be evaluated by the core code so pkg_dev.processed is always 0 and the package, die, and cpu

[PATCH AUTOSEL 5.7 030/274] efi/libstub/x86: Work around LLVM ELF quirk build regression

2020-06-08 Thread Sasha Levin
From: Ard Biesheuvel [ Upstream commit f77767ed5f4d398b29119563155e4ece2dfeee13 ] When building the x86 EFI stub with Clang, the libstub Makefile rules that manipulate the ELF object files may throw an error like: STUBCPY drivers/firmware/efi/libstub/efi-stub-helper.stub.o strip:

[PATCH AUTOSEL 5.7 020/274] drm/bridge: panel: Return always an error pointer in drm_panel_bridge_add()

2020-06-08 Thread Sasha Levin
From: Enric Balletbo i Serra [ Upstream commit 30be3031087139061de4421bf52015931eaab569 ] Since commit 89958b7cd955 ("drm/bridge: panel: Infer connector type from panel by default"), drm_panel_bridge_add() and their variants can return NULL and an error pointer. This is fine but none of the

[PATCH AUTOSEL 5.7 017/274] drm/amd/display: fix virtual signal dsc setup

2020-06-08 Thread Sasha Levin
From: Dmytro Laktyushkin [ Upstream commit d5bef51f084fccafa984b114ff74a01a64a0e2e3 ] This prevents dpcd access on virtual links. Signed-off-by: Dmytro Laktyushkin Reviewed-by: Eric Bernstein Acked-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.7 019/274] drm/amdgpu: Init data to avoid oops while reading pp_num_states.

2020-06-08 Thread Sasha Levin
From: limingyu [ Upstream commit 6f81b2d047c59eb77cd04795a44245d6a52cdaec ] For chip like CHIP_OLAND with si enabled(amdgpu.si_support=1), the amdgpu will expose pp_num_states to the /sys directory. In this moment, read the pp_num_states file will excute the amdgpu_get_pp_num_states func. In

[PATCH AUTOSEL 5.7 018/274] spi: spi-mem: Fix Dual/Quad modes on Octal-capable devices

2020-06-08 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit 80300a7d5f2d7178335652f41d2e55ba898b4ec1 ] Currently buswidths 2 and 4 are rejected for a device that advertises Octal capabilities. Allow these buswidths, just like is done for buswidth 2 and Quad-capable devices. Fixes: b12a084c8729ef42 ("spi:

[PATCH AUTOSEL 5.7 002/274] ath10k: Fix the race condition in firmware dump work queue

2020-06-08 Thread Sasha Levin
From: Maharaja Kennadyrajan [ Upstream commit 3d1c60460fb2823a19ead9e6ec8f184dd7271aa7 ] There is a race condition, when the user writes 'hw-restart' and 'hard' in the simulate_fw_crash debugfs file without any delay. In the above scenario, the firmware dump work queue(scheduled by 'hard')

[PATCH AUTOSEL 5.7 010/274] igc: Fix default MAC address filter override

2020-06-08 Thread Sasha Levin
From: Andre Guedes [ Upstream commit ac9156b27564a089ec52f526bfcb59f61c34e7c6 ] This patch fixes a bug when the user adds the first MAC address filter via ethtool NFC mechanism. When the first MAC address filter is added, it overwrites the default MAC address filter configured at RAL[0] and

[PATCH AUTOSEL 5.7 016/274] drm/amd/display: Force watermark value propagation

2020-06-08 Thread Sasha Levin
From: Joshua Aberback [ Upstream commit 868149c9a072cbdc22a73ce25a487f9fbfa171ef ] [Why] The HUBBUB watermark registers are in an area that cannot be power gated, but the HUBP copies of the watermark values are in areas that can be power gated. When we power on a pipe, it will not automatically

[PATCH AUTOSEL 5.7 011/274] scripts: sphinx-pre-install: address some issues with Gentoo

2020-06-08 Thread Sasha Levin
From: Mauro Carvalho Chehab [ Upstream commit e45a631742fadd7c9feb5a0049382102e5d43fe7 ] There are some small misdetections with Gentoo. While they don't cause too much trouble, it keeps recomending to install things that are already there. Signed-off-by: Mauro Carvalho Chehab Link:

[PATCH AUTOSEL 5.7 001/274] drm/amdgpu: fix and cleanup amdgpu_gem_object_close v4

2020-06-08 Thread Sasha Levin
From: Christian König [ Upstream commit 82c416b13cb7d22b96ec0888b296a48dff8a09eb ] The problem is that we can't add the clear fence to the BO when there is an exclusive fence on it since we can't guarantee the the clear fence will complete after the exclusive one. To fix this refactor the

Re: [PATCH v3 104/105] dt-bindings: display: vc4: hdmi: Add BCM2711 HDMI controllers bindings

2020-06-08 Thread Rob Herring
On Tue, Jun 2, 2020 at 9:08 AM Maxime Ripard wrote: > > Hi Rob, > > On Fri, May 29, 2020 at 12:18:33PM -0600, Rob Herring wrote: > > On Wed, May 27, 2020 at 05:49:14PM +0200, Maxime Ripard wrote: > > > The HDMI controllers found in the BCM2711 SoC need some adjustments to the > > > bindings,

Re: [PATCH v2 03/11] swiotlb-xen: add struct device* parameter to xen_phys_to_bus

2020-06-08 Thread Stefano Stabellini
On Mon, 8 Jun 2020, Christoph Hellwig wrote: > On Wed, Jun 03, 2020 at 03:22:39PM -0700, Stefano Stabellini wrote: > > From: Stefano Stabellini > > > > The parameter is unused in this patch. > > No functional changes. > > This looks weird. I'm pretty sure you are going to use it later, but >

Re: [PATCH v2 01/11] swiotlb-xen: use vmalloc_to_page on vmalloc virt addresses

2020-06-08 Thread Stefano Stabellini
Hi Christoph, Thanks you for the review. On Mon, 8 Jun 2020, Christoph Hellwig wrote: > Well, this isn't just RPi4, but basically any ARM or ARM64 system > with non-coherent DMA (which is most of them). Well... yes :-) > > + struct page *pg; > > Please spell out page. OK > > > >

Re: [PATCH 1/2] drm/msm/dpu: add support for color processing blocks in dpu driver

2020-06-08 Thread Rob Clark
On Mon, Jun 8, 2020 at 3:37 PM John Stultz wrote: > > On Mon, Jun 8, 2020 at 3:25 PM John Stultz wrote: > > > > On Wed, Mar 25, 2020 at 1:17 AM Kalyan Thota > > wrote: > > > > > > This change adds support to configure dspp blocks in > > > the dpu driver. > > > > > > Macro description of the

Re: [PATCH 2/3] platform/x86: dell-wmi: add new keymap type 0x0012

2020-06-08 Thread Y Paritcher
On 6/8/20 6:00 PM, mario.limoncie...@dell.com wrote: >> >> this is the WMI event from pressing the Fn lock key. >> this indicates which mode it is switching to. >> >> this changes if the default for pressing the F[1-12] should be Function or >> media. >> the scancodes of the Fn keys are properly

Re: [PATCH v6 2/3] rpmsg: core: Add support to retrieve name extension

2020-06-08 Thread Suman Anna
Hi Mathieu, On 5/15/20 3:56 PM, Mathieu Poirier wrote: After adding support for rpmsg device name extension, this patch provides a function that returns the extension portion of an rpmsg device name. That way users of the name extension functionality don't have to write the same boiler plate

Re: [PATCH v7 3/5] remoteproc: Add support for runtime PM

2020-06-08 Thread Paul Cercueil
Hi Suman, On 5/15/20 5:43 AM, Paul Cercueil wrote: Call pm_runtime_get_sync() before the firmware is loaded, and pm_runtime_put() after the remote processor has been stopped. Even though the remoteproc device has no PM callbacks, this allows the parent device's PM callbacks to be properly

[PATCH v3] x86/umip: Add emulation/spoofing for SLDT and STR instructions

2020-06-08 Thread Brendan Shanks
Add emulation/spoofing of SLDT and STR for both 32- and 64-bit processes. Wine users have found a small number of Windows apps using SLDT that were crashing when run on UMIP-enabled systems. Reported-by: Andreas Rammhold Originally-by: Ricardo Neri Signed-off-by: Brendan Shanks --- v3: Use

Re: [PATCH 1/2] drm/msm/dpu: add support for color processing blocks in dpu driver

2020-06-08 Thread John Stultz
On Mon, Jun 8, 2020 at 3:25 PM John Stultz wrote: > > On Wed, Mar 25, 2020 at 1:17 AM Kalyan Thota wrote: > > > > This change adds support to configure dspp blocks in > > the dpu driver. > > > > Macro description of the changes coming in this patch. > > 1) Add dspp definitions in the hw catalog.

Re: [PATCH v2] x86/umip: Add emulation/spoofing for SLDT and STR instructions

2020-06-08 Thread Brendan Shanks
> On Jun 8, 2020, at 2:53 PM, Ricardo Neri > wrote: > > On Mon, Jun 08, 2020 at 11:14:54AM -0700, Brendan Shanks wrote: >> Add emulation/spoofing of SLDT and STR for both 32- and 64-bit >> processes. >> >> Wine users have found a small number of Windows apps using SLDT that >> were crashing

Re: [PATCH] overflow.h: Add flex_array_size() helper

2020-06-08 Thread Joe Perches
On Mon, 2020-06-08 at 17:17 -0500, Gustavo A. R. Silva wrote: > Add flex_array_size() helper for the calculation of the size, in bytes, > of a flexible array member contained within an enclosing structure. > > Example of usage: > foo > struct something { > size_t count; > struct foo

Re: [PATCH v6 0/3] rpmsg: core: Add support for name extension

2020-06-08 Thread Suman Anna
On 5/20/20 9:49 AM, Arnaud POULIQUEN wrote: Hi Bjorn, On 5/15/20 11:09 PM, Bjorn Andersson wrote: On Fri 15 May 13:56 PDT 2020, Mathieu Poirier wrote: This patchset adds the capability to supplement the base definition published by an rpmsg_driver with a postfix description so that it is

Re: [Patch v2] lib: test get_count_order/long in test_bitops.c

2020-06-08 Thread Wei Yang
On Fri, Jun 05, 2020 at 05:16:29PM -0700, Andrew Morton wrote: >On Fri, 5 Jun 2020 23:06:10 + Wei Yang wrote: > >> On Thu, Jun 04, 2020 at 02:51:40PM +0200, Geert Uytterhoeven wrote: >> >Hi Wei, >> > >> >On Thu, Jun 4, 2020 at 2:28 PM Wei Yang wrote: >> [...] >> >> >> >> You mean >> >> >> >>

Re: [PATCH v7 1/8] fs: introduce kernel_pread_file* support

2020-06-08 Thread Scott Branden
Hi Matthew, I am requesting the experts in the filesystem subsystem to come to a consensus here. This is not my area of expertise at all but every time I have addressed all of the outstanding concerns someone else comes along and raises another one. Please see me comments below. On

Re: [PATCH 1/2] drm/msm/dpu: add support for color processing blocks in dpu driver

2020-06-08 Thread John Stultz
On Wed, Mar 25, 2020 at 1:17 AM Kalyan Thota wrote: > > This change adds support to configure dspp blocks in > the dpu driver. > > Macro description of the changes coming in this patch. > 1) Add dspp definitions in the hw catalog. > 2) Add capability to reserve dspp blocks in the display data

[GIT PULL] Kunit update for Linux 5.8-rc1

2020-06-08 Thread Shuah Khan
Hi Linus, Please pull the Kunit update for Linux 5.8-rc1. This Kunit update for Linux 5.8-rc1 consists of: - Several config fragment fixes from Anders Roxell to improve test coverage. - Improvements to kunit run script to use defconfig as default and restructure the code for

Re: [RFC PATCH 2/2] PM: hibernate: introduce opportunistic memory reclaim

2020-06-08 Thread Luigi Semenzato
Hi Andrea, 1. This mechanism is quite general. It is possible that, although hibernation may be an important use, there will be other uses for it. I suggest leaving the hibernation example and performance analysis, but not mentioning PM or hibernation in the patch subject. 2. It may be useful

Re: [patch V9 10/39] x86/entry: Provide helpers for execute on irqstack

2020-06-08 Thread Thomas Gleixner
Qian, can you please ensure that people who got cc'ed because the problem affects their subsystem are included on your replies even if you are replying to a different subthread? I explicitely did: Cc:+ Alexander at the very beginning of my reply:

[PATCH v3 2/2] bits: Add tests of GENMASK

2020-06-08 Thread Rikard Falkeborn
Add tests of GENMASK and GENMASK_ULL. A few test cases that should fail compilation are provided under #ifdef TEST_GENMASK_FAILURES Suggested-by: Andy Shevchenko Signed-off-by: Rikard Falkeborn --- I did not move it to test_bitops.c, because I think it makes more sense that test_bitops.c tests

[PATCH v3 1/2] linux/bits.h: fix unsigned less than zero warnings

2020-06-08 Thread Rikard Falkeborn
When calling the GENMASK and GENMASK_ULL macros with zero lower bit and an unsigned unknown high bit, some gcc versions warn due to the comparisons of the high and low bit in GENMASK_INPUT_CHECK. To silence the warnings, only perform the check if both inputs are known. This does not trigger any

[PATCH] overflow.h: Add flex_array_size() helper

2020-06-08 Thread Gustavo A. R. Silva
Add flex_array_size() helper for the calculation of the size, in bytes, of a flexible array member contained within an enclosing structure. Example of usage: struct something { size_t count; struct foo items[]; }; struct something *instance; instance =

Re: [GIT PULL] s390 patches for the 5.8 merge window

2020-06-08 Thread Vasily Gorbik
On Mon, Jun 08, 2020 at 12:12:57PM -0700, Linus Torvalds wrote: > On Mon, Jun 8, 2020 at 12:09 PM Linus Torvalds > wrote: > > > > On Mon, Jun 8, 2020 at 8:35 AM Vasily Gorbik wrote: > > > > > > Please note 2 minor merge conflict resolutions below: > > > > There was a third because of the iommu

Re: [PATCH v7 3/5] remoteproc: Add support for runtime PM

2020-06-08 Thread Suman Anna
Hi Paul, On 5/22/20 12:11 PM, Paul Cercueil wrote: Hi Suman, Le ven. 22 mai 2020 à 11:47, Suman Anna a écrit : Hi Paul, On 5/15/20 5:43 AM, Paul Cercueil wrote: Call pm_runtime_get_sync() before the firmware is loaded, and pm_runtime_put() after the remote processor has been stopped. Even

RE: [PATCH 2/3] platform/x86: dell-wmi: add new keymap type 0x0012

2020-06-08 Thread Mario.Limonciello
> > this is the WMI event from pressing the Fn lock key. > this indicates which mode it is switching to. > > this changes if the default for pressing the F[1-12] should be Function or > media. > the scancodes of the Fn keys are properly transmitted, this just inverts > which > ones are sent by

Re: [PATCH] irqchip/gic-v3-its: Don't try to move a disabled irq

2020-06-08 Thread Benjamin Herrenschmidt
On Mon, 2020-06-08 at 15:48 +0200, Thomas Gleixner wrote: > "Herrenschmidt, Benjamin" writes: > > On Wed, 2020-06-03 at 16:16 +0100, Marc Zyngier wrote: > > > > My original patch should certain check activated and not disabled. > > > > With that do you still have reservations Marc? > > > > > >

[PATCH] soc: qcom: smp2p: Safely acquire spinlock without IRQs

2020-06-08 Thread Evan Green
smp2p_update_bits() should disable interrupts when it acquires its spinlock. This is important because without the _irqsave, a priority inversion can occur. This function is called both with interrupts enabled in qcom_q6v5_request_stop(), and with interrupts disabled in

KASAN: use-after-free Read in smk_write_relabel_self

2020-06-08 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:acf25aa6 Merge tag 'Smack-for-5.8' of git://github.com/csc.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11cd3ea610 kernel config: https://syzkaller.appspot.com/x/.config?x=3d66e6915128ae67

[GIT PULL] Kselftest update for Linux 5.8-rc1

2020-06-08 Thread Shuah Khan
Hi Linus, Please pull the following Kselftest update for Linux 5.8-rc1. This Kselftest update for Linux 5.8-rc1 consists of: - Several fixes from Masami Hiramatsu to improve coverage for lib and sysctl tests. - Clean up to vdso test and a new test for getcpu() from Mark Brown. - Add new

[PATCH v3] IMA: Add audit log for failure conditions

2020-06-08 Thread Lakshmi Ramasubramanian
The final log statement in process_buffer_measurement() for failure condition is at debug level. This does not log the message unless the system log level is raised which would significantly increase the messages in the system log. Change this log message to an audit message for better triaging

Re: [PATCH v2] x86/umip: Add emulation/spoofing for SLDT and STR instructions

2020-06-08 Thread Ricardo Neri
On Mon, Jun 08, 2020 at 11:14:54AM -0700, Brendan Shanks wrote: > Add emulation/spoofing of SLDT and STR for both 32- and 64-bit > processes. > > Wine users have found a small number of Windows apps using SLDT that > were crashing when run on UMIP-enabled systems. > > Reported-by: Andreas

Re: [PATCH 4/5] soundwire: qcom: avoid dependency on CONFIG_SLIMBUS

2020-06-08 Thread Jonathan Marek
On 6/8/20 5:20 PM, Pierre-Louis Bossart wrote: On 6/8/20 3:43 PM, Jonathan Marek wrote: The driver may be used without slimbus, so don't depend on slimbus. Signed-off-by: Jonathan Marek ---   drivers/soundwire/Kconfig | 1 -   drivers/soundwire/qcom.c  | 5 +   2 files changed, 5

Re: [PATCH v2] IMA: Add audit log for failure conditions

2020-06-08 Thread Paul Moore
On Mon, Jun 8, 2020 at 7:52 AM Mimi Zohar wrote: > Hi Lakshmi, > > On Sun, 2020-06-07 at 15:14 -0700, Lakshmi Ramasubramanian wrote: > > The final log statement in process_buffer_measurement() for failure > > condition is at debug level. This does not log the message unless > > the system log

Re: [PATCH 2/5] soundwire: qcom: add support for mmio soundwire devices

2020-06-08 Thread Pierre-Louis Bossart
On 6/8/20 3:43 PM, Jonathan Marek wrote: Adds support for qcom soundwire devices with memory mapped IO registers. 'device' is an ambiguous term for SoundWire. Seems to me this is a SoundWire Master device directly accessed with mmio registers instead of over a SLIMbus link?

Re: [PATCH 4/5] soundwire: qcom: avoid dependency on CONFIG_SLIMBUS

2020-06-08 Thread Pierre-Louis Bossart
On 6/8/20 3:43 PM, Jonathan Marek wrote: The driver may be used without slimbus, so don't depend on slimbus. Signed-off-by: Jonathan Marek --- drivers/soundwire/Kconfig | 1 - drivers/soundwire/qcom.c | 5 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git

Re: blk-softirq vs smp_call_function_single_async()

2020-06-08 Thread Jens Axboe
On 6/8/20 10:40 AM, Peter Zijlstra wrote: > On Mon, Jun 08, 2020 at 09:33:42AM -0700, Christoph Hellwig wrote: >> On Mon, Jun 08, 2020 at 05:58:33PM +0200, Peter Zijlstra wrote: A request can only be completed once. >>> >>> Sure, but that doesn't help. >>> >>> CPU0

Re: [PATCH 2/2] nvme-pci: remove empty line following nvme_should_reset()

2020-06-08 Thread Chaitanya Kulkarni
On 6/8/20 9:29 AM, Dongli Zhang wrote: > Just cleanup by removing the empty line. > > Signed-off-by: Dongli Zhang > --- Reviewed-by: Chaitanya Kulkarni

Re: [PATCH 1/2] nvmet-loop: remove unused 'target_ctrl' in nvme_loop_ctrl

2020-06-08 Thread Chaitanya Kulkarni
On 6/8/20 9:29 AM, Dongli Zhang wrote: > This field is never used since the introduction of nvme loopback by > commit 3a85a5de29ea ("nvme-loop: add a NVMe loopback host driver"). > > Signed-off-by: Dongli Zhang Reviewed-by: Chaitanya Kulkarni

[PATCH v3] docs: deprecated.rst: Add zero-length and one-element arrays

2020-06-08 Thread Gustavo A. R. Silva
Add zero-length and one-element arrays to the list. While I continue replacing zero-length and one-element arrays with flexible-array members, I need a reference to point people to, so they don't introduce more instances of such arrays. And while here, add a note to the "open-coded arithmetic in

Re: [PATCH] [v2] media: vsp1: Fix runtime PM imbalance on error

2020-06-08 Thread Kieran Bingham
Hi Dinghao, On 08/06/2020 06:29, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > when it returns an error code. Thus a pairing decrement is needed on > the error handling path to keep the counter balanced. > Looks good to me: Reviewed-by: Kieran

[PATCH] padata: upgrade smp_mb__after_atomic to smp_mb in padata_do_serial

2020-06-08 Thread Daniel Jordan
A 5.7 kernel hangs during a tcrypt test of padata that waits for an AEAD request to finish. This is only seen on large machines running many concurrent requests. The issue is that padata never serializes the request. The removal of the reorder_objects atomic missed that the memory barrier in

[PATCH v12 2/6] seq_buf: Export seq_buf_printf

2020-06-08 Thread Vaibhav Jain
'seq_buf' provides a very useful abstraction for writing to a string buffer without needing to worry about it over-flowing. However even though the API has been stable for couple of years now its still not exported to kernel loadable modules limiting its usage. Hence this patch proposes update to

[PATCH v12 1/6] powerpc: Document details on H_SCM_HEALTH hcall

2020-06-08 Thread Vaibhav Jain
Add documentation to 'papr_hcalls.rst' describing the bitmap flags that are returned from H_SCM_HEALTH hcall as per the PAPR-SCM specification. Cc: "Aneesh Kumar K . V" Cc: Dan Williams Cc: Michael Ellerman Cc: Ira Weiny Acked-by: Ira Weiny Signed-off-by: Vaibhav Jain --- Changelog:

[PATCH v12 0/6] powerpc/papr_scm: Add support for reporting nvdimm health

2020-06-08 Thread Vaibhav Jain
Changes since v11 [1]: * Minor update to 'papr_pdsm.h' fixing a misleading comment about 'possible' padding being added by GCC which doesn't apply in case structs are marked as __packed. * Fix the order of initialization of 'struct nd_papr_pdsm_health' in papr_pdsm_health(). * Added acks

[PATCH v12 6/6] powerpc/papr_scm: Implement support for PAPR_PDSM_HEALTH

2020-06-08 Thread Vaibhav Jain
This patch implements support for PDSM request 'PAPR_PDSM_HEALTH' that returns a newly introduced 'struct nd_papr_pdsm_health' instance containing dimm health information back to user space in response to ND_CMD_CALL. This functionality is implemented in newly introduced papr_pdsm_health() that

[PATCH v12 4/6] powerpc/papr_scm: Improve error logging and handling papr_scm_ndctl()

2020-06-08 Thread Vaibhav Jain
Since papr_scm_ndctl() can be called from outside papr_scm, its exposed to the possibility of receiving NULL as value of 'cmd_rc' argument. This patch updates papr_scm_ndctl() to protect against such possibility by assigning it pointer to a local variable in case cmd_rc == NULL. Finally the patch

Re: [PATCH] x86: math-emu: fix up 'cmp' insn for clang ias

2020-06-08 Thread Nick Desaulniers
On Wed, May 27, 2020 at 6:53 AM Arnd Bergmann wrote: > > The clang integrated assembler requires the 'cmp' instruction to > have a length prefix here: > > arch/x86/math-emu/wm_sqrt.S:212:2: error: ambiguous instructions require an > explicit suffix (could be 'cmpb', 'cmpw', or 'cmpl') > cmp

[PATCH v12 3/6] powerpc/papr_scm: Fetch nvdimm health information from PHYP

2020-06-08 Thread Vaibhav Jain
Implement support for fetching nvdimm health information via H_SCM_HEALTH hcall as documented in Ref[1]. The hcall returns a pair of 64-bit bitmap, bitwise-and of which is then stored in 'struct papr_scm_priv' and subsequently partially exposed to user-space via newly introduced dimm specific

[PATCH v12 5/6] ndctl/papr_scm,uapi: Add support for PAPR nvdimm specific methods

2020-06-08 Thread Vaibhav Jain
Introduce support for PAPR NVDIMM Specific Methods (PDSM) in papr_scm module and add the command family NVDIMM_FAMILY_PAPR to the white list of NVDIMM command sets. Also advertise support for ND_CMD_CALL for the nvdimm command mask and implement necessary scaffolding in the module to handle

Re: [PATCH v6 1/3] rpmsg: core: Add wildcard match for name service

2020-06-08 Thread Suman Anna
On 5/15/20 3:56 PM, Mathieu Poirier wrote: Adding the capability to supplement the base definition published by an rpmsg_driver with a postfix description so that it is possible for several entity to use the same service. Signed-off-by: Mathieu Poirier Acked-by: Arnaud Pouliquen Going back

Re: [PATCH] virtio_net: Unregister and re-register xdp_rxq across freeze/restore

2020-06-08 Thread Sean Christopherson
On Sun, Jun 07, 2020 at 09:23:03AM -0400, Michael S. Tsirkin wrote: > On Fri, Jun 05, 2020 at 02:46:24PM -0700, Sean Christopherson wrote: > > @@ -1480,17 +1495,10 @@ static int virtnet_open(struct net_device *dev) > > if (!try_fill_recv(vi, >rq[i], GFP_KERNEL)) > >

Re: [PATCH v4 02/11] mfd: Add support for Kontron sl28cpld management controller

2020-06-08 Thread Michael Walle
Am 2020-06-08 20:56, schrieb Lee Jones: On Mon, 08 Jun 2020, Michael Walle wrote: Am 2020-06-08 12:02, schrieb Andy Shevchenko: > +Cc: some Intel people WRT our internal discussion about similar > problem and solutions. > > On Mon, Jun 8, 2020 at 11:30 AM Lee Jones wrote: > > On Sat, 06 Jun

Re: [PATCH v2] dma-pool: Fix too large DMA pools on medium systems

2020-06-08 Thread David Rientjes
On Mon, 8 Jun 2020, Geert Uytterhoeven wrote: > On systems with at least 32 MiB, but less than 32 GiB of RAM, the DMA > memory pools are much larger than intended (e.g. 2 MiB instead of 128 > KiB on a 256 MiB system). > > Fix this by correcting the calculation of the number of GiBs of RAM in >

Re: [PATCH 2/3] platform/x86: dell-wmi: add new keymap type 0x0012

2020-06-08 Thread Y Paritcher
On 6/8/20 4:36 PM, mario.limoncie...@dell.com wrote: >> -Original Message- >> From: Y Paritcher >> Sent: Monday, June 8, 2020 3:13 PM >> To: Limonciello, Mario >> Cc: linux-kernel@vger.kernel.org; platform-driver-...@vger.kernel.org; >> mj...@srcf.ucam.org; p...@kernel.org >> Subject: Re:

[PATCH net-next 1/4] xfrm: bail early on slave pass over skb

2020-06-08 Thread Jarod Wilson
This is prep work for initial support of bonding hardware encryption pass-through support. The bonding driver will fill in the slave_dev pointer, and we use that to know not to skb_push() again on a given skb that was already processed on the bond device. CC: Jay Vosburgh CC: Veaceslav Falico

[PATCH net-next 2/4] ixgbe_ipsec: become aware of when running as a bonding slave

2020-06-08 Thread Jarod Wilson
Slave devices in a bond doing hardware encryption also need to be aware that they're slaves, so we operate on the slave instead of the bonding master to do the actual hardware encryption offload bits. CC: Jay Vosburgh CC: Veaceslav Falico CC: Andy Gospodarek CC: "David S. Miller" CC: Jeff

[PATCH net-next 4/4] mlx5: become aware of when running as a bonding slave

2020-06-08 Thread Jarod Wilson
I've been unable to get my hands on suitable supported hardware to date, but I believe this ought to be all that is needed to enable the mlx5 driver to also work with bonding active-backup crypto offload passthru. CC: Boris Pismenny CC: Saeed Mahameed CC: Leon Romanovsky CC: Jay Vosburgh CC:

[PATCH net-next 3/4] bonding: support hardware encryption offload to slaves

2020-06-08 Thread Jarod Wilson
Currently, this support is limited to active-backup mode, as I'm not sure about the feasilibity of mapping an xfrm_state's offload handle to multiple hardware devices simultaneously, and we rely on being able to pass some hints to both the xfrm and NIC driver about whether or not they're operating

[PATCH net-next 0/4] bonding: initial support for hardware crypto offload

2020-06-08 Thread Jarod Wilson
This is an initial functional implementation for doing pass-through of hardware encryption from bonding device to capable slaves, in active-backup bond setups. This was developed and tested using ixgbe-driven Intel x520 interfaces with libreswan and a transport mode connection, primarily using

RE: [PATCH 3/3] platform/x86: dell-wmi: add keys to bios_to_linux_keycode

2020-06-08 Thread Mario.Limonciello
> -Original Message- > From: platform-driver-x86-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Pali Rohár > Sent: Monday, June 8, 2020 3:48 PM > To: Limonciello, Mario > Cc: y.li...@paritcher.com; linux-kernel@vger.kernel.org; platform-driver- > x...@vger.kernel.org;

Re: [PATCH 4/5] soundwire: qcom: avoid dependency on CONFIG_SLIMBUS

2020-06-08 Thread Jonathan Marek
On 6/8/20 4:43 PM, Jonathan Marek wrote: The driver may be used without slimbus, so don't depend on slimbus. Signed-off-by: Jonathan Marek --- drivers/soundwire/Kconfig | 1 - drivers/soundwire/qcom.c | 5 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git

[PATCH v2] arm64: vdso32: add CONFIG_THUMB2_COMPAT_VDSO

2020-06-08 Thread Nick Desaulniers
Allow the compat vdso (32b) to be compiled as either THUMB2 (default) or ARM. For THUMB2, the register r7 is reserved for the frame pointer, but code in arch/arm64/include/asm/vdso/compat_gettimeofday.h uses r7. Explicitly set -fomit-frame-pointer, since unwinding through interworked THUMB2 and

Re: [PATCH 3/3] platform/x86: dell-wmi: add keys to bios_to_linux_keycode

2020-06-08 Thread Pali Rohár
On Monday 08 June 2020 15:46:44 mario.limoncie...@dell.com wrote: > I would actually question if there is value to lines in dell-wmi.c like this: > > pr_info("Unknown WMI event type 0x%x\n", (int)buffer_entry[1]); > > and > > pr_info("Unknown key with type 0x%04x and code 0x%04x pressed\n",

[PATCH v3 10/13] iio: imu: inv_icm42600: add buffer support in iio devices

2020-06-08 Thread Jean-Baptiste Maneyrol
Add all FIFO parsing and reading functions. Add accel and gyro kfifo buffer and FIFO data parsing. Use device interrupt for reading data FIFO and launching accel and gyro parsing. Support hwfifo watermark by multiplexing gyro and accel settings. Support hwfifo flush. Signed-off-by: Jean-Baptiste

[PATCH v3 02/13] iio: imu: inv_icm42600: add I2C driver for inv_icm42600 driver

2020-06-08 Thread Jean-Baptiste Maneyrol
Add I2C driver for InvenSense ICM-426xxx devices. Configure bus signal slew rates as indicated in the datasheet. Signed-off-by: Jean-Baptiste Maneyrol --- .../iio/imu/inv_icm42600/inv_icm42600_i2c.c | 100 ++ 1 file changed, 100 insertions(+) create mode 100644

[PATCH v3 12/13] dt-bindings: iio: imu: Add inv_icm42600 documentation

2020-06-08 Thread Jean-Baptiste Maneyrol
Document the ICM-426xxx devices devicetree bindings. Signed-off-by: Jean-Baptiste Maneyrol --- .../bindings/iio/imu/invensense,icm42600.yaml | 90 +++ 1 file changed, 90 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/imu/invensense,icm42600.yaml diff

[PATCH v3 04/13] iio: imu: inv_icm42600: add gyroscope IIO device

2020-06-08 Thread Jean-Baptiste Maneyrol
Add IIO device for gyroscope sensor with data polling interface. Attributes: raw, scale, sampling_frequency, calibbias. Gyroscope in low noise mode. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 6 + .../iio/imu/inv_icm42600/inv_icm42600_core.c |

[PATCH v3 03/13] iio: imu: inv_icm42600: add SPI driver for inv_icm42600 driver

2020-06-08 Thread Jean-Baptiste Maneyrol
Add SPI driver for InvenSense ICM-426xxx devices. Configure bus signal slew rates as indicated in the datasheet. Signed-off-by: Jean-Baptiste Maneyrol --- .../iio/imu/inv_icm42600/inv_icm42600_spi.c | 99 +++ 1 file changed, 99 insertions(+) create mode 100644

[PATCH v3 00/13] iio: imu: new inv_icm42600 driver

2020-06-08 Thread Jean-Baptiste Maneyrol
Changelog v1 -initial patch submission v2 - formatting reworks, missing headers, code cleanup ... - delete all debug traces - add commentaries for better explanation of suspend/resume, timestamp, ... - delete i2c/spi table ids keeping only of, and use I2C probe_new function - switch

[PATCH v3 09/13] iio: imu: inv_icm42600: add device interrupt

2020-06-08 Thread Jean-Baptiste Maneyrol
Add INT1 interrupt support. Support interrupt edge and level, active high or low. Push-pull or open-drain configurations. Interrupt will be used to read data from the FIFO. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 2 +-

<    8   9   10   11   12   13   14   15   16   17   >