[PATCH AUTOSEL 4.9 06/19] clk: qoriq: Fix -Wunused-const-variable

2019-09-24 Thread Sasha Levin
From: Nathan Huckleberry [ Upstream commit a95fb581b144b5e73da382eaedb2e32027610597 ] drivers/clk/clk-qoriq.c:138:38: warning: unused variable 'p5020_cmux_grp1' [-Wunused-const-variable] static const struct clockgen_muxinfo p5020_cmux_grp1 drivers/clk/clk-qoriq.c:146:38: warning: unused variabl

[PATCH AUTOSEL 4.19 42/50] pinctrl: meson-gxbb: Fix wrong pinning definition for uart_c

2019-09-24 Thread Sasha Levin
From: Otto Meier [ Upstream commit cb0438e4436085d89706b5ccfce4d5da531253de ] Hi i tried to use the uart_C of the the odroid-c2. I enabled it in the dts file. During boot it crashed when the the sdcard slot is addressed. After long search in the net i found this: https://forum.odroid.com/view

[PATCH AUTOSEL 4.14 05/28] drm/stm: attach gem fence to atomic state

2019-09-24 Thread Sasha Levin
From: Ahmad Fatoum [ Upstream commit 8fabc9c3109a71b3577959a05408153ae69ccd8d ] To properly synchronize with other devices the fence from the GEM object backing the framebuffer needs to be attached to the atomic state, so the commit work can wait on fence signaling. Signed-off-by: Ahmad Fatoum

[PATCH AUTOSEL 4.14 10/28] clk: sunxi-ng: v3s: add missing clock slices for MMC2 module clocks

2019-09-24 Thread Sasha Levin
From: Icenowy Zheng [ Upstream commit 720099603d1f62e37b789366d7e89824b009ca28 ] The MMC2 clock slices are currently not defined in V3s CCU driver, which makes MMC2 not working. Fix this issue. Fixes: d0f11d14b0bc ("clk: sunxi-ng: add support for V3s CCU") Signed-off-by: Icenowy Zheng Signed-

[PATCH AUTOSEL 4.14 11/28] drm/amd/powerplay/smu7: enforce minimal VBITimeout (v2)

2019-09-24 Thread Sasha Levin
From: Ahzo [ Upstream commit f659bb6dae58c113805f92822e4c16ddd3156b79 ] This fixes screen corruption/flickering on 75 Hz displays. v2: make print statement debug only (Alex) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102646 Reviewed-by: Evan Quan Signed-off-by: Ahzo Signed-off-by

[PATCH AUTOSEL 4.9 03/19] drm/radeon: Fix EEH during kexec

2019-09-24 Thread Sasha Levin
From: KyleMahlkuch [ Upstream commit 6f7fe9a93e6c09bf988c5059403f5f88e17e21e6 ] During kexec some adapters hit an EEH since they are not properly shut down in the radeon_pci_shutdown() function. Adding radeon_suspend_kms() fixes this issue. Signed-off-by: KyleMahlkuch Signed-off-by: Alex Deuch

[PATCH AUTOSEL 4.14 02/28] drm/kms: Catch mode_object lifetime errors

2019-09-24 Thread Sasha Levin
From: Daniel Vetter [ Upstream commit 4f5368b5541a902f6596558b05f5c21a9770dd32 ] Only dynamic mode objects, i.e. those which are refcounted and have a free callback, can be added while the overall drm_device is visible to userspace. All others must be added before drm_dev_register and removed af

[PATCH AUTOSEL 4.9 02/19] video: ssd1307fb: Start page range at page_offset

2019-09-24 Thread Sasha Levin
From: Marko Kohtala [ Upstream commit dd9782834dd9dde3624ff1acea8859f3d3e792d4 ] The page_offset was only applied to the end of the page range. This caused the display updates to cause a scrolling effect on the display because the amount of data written to the display did not match the range dis

[PATCH AUTOSEL 4.14 01/28] drm/bridge: tc358767: Increase AUX transfer length limit

2019-09-24 Thread Sasha Levin
From: Andrey Smirnov [ Upstream commit e0655feaec62d5139b6b13a7b1bbb1ab8f1c2d83 ] According to the datasheet tc358767 can transfer up to 16 bytes via its AUX channel, so the artificial limit of 8 appears to be too low. However only up to 15-bytes seem to be actually supported and trying to use 1

[PATCH AUTOSEL 4.14 03/28] drm/panel: simple: fix AUO g185han01 horizontal blanking

2019-09-24 Thread Sasha Levin
From: Lucas Stach [ Upstream commit f8c6bfc612b56f02e1b8fae699dff12738aaf889 ] The horizontal blanking periods are too short, as the values are specified for a single LVDS channel. Since this panel is dual LVDS they need to be doubled. With this change the panel reaches its nominal vrefresh rate

[PATCH AUTOSEL 4.14 08/28] ipmi_si: Only schedule continuously in the thread in maintenance mode

2019-09-24 Thread Sasha Levin
From: Corey Minyard [ Upstream commit 340ff31ab00bca5c15915e70ad9ada3030c98cf8 ] ipmi_thread() uses back-to-back schedule() to poll for command completion which, on some machines, can push up CPU consumption and heavily tax the scheduler locks leading to noticeable overall performance degradatio

[PATCH AUTOSEL 4.19 43/50] arm64: fix unreachable code issue with cmpxchg

2019-09-24 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 920fdab7b3ce98c14c840261e364f490f3679a62 ] On arm64 build with clang, sometimes the __cmpxchg_mb is not inlined when CONFIG_OPTIMIZE_INLINING is set. Clang then fails a compile-time assertion, because it cannot tell at compile time what the size of the argum

Re: [PATCH 4/6] PCI: mobiveil: Add workaround for unsupported request error

2019-09-24 Thread Russell King - ARM Linux admin
On Mon, Sep 16, 2019 at 10:17:40AM +0800, Xiaowei Bao wrote: > Errata: unsupported request error on inbound posted write > transaction, PCIe controller reports advisory error instead > of uncorrectable error message to RC. > > Signed-off-by: Xiaowei Bao > --- > drivers/pci/controller/mobiveil/pc

[PATCH AUTOSEL 4.19 33/50] clk: renesas: mstp: Set GENPD_FLAG_ALWAYS_ON for clock domain

2019-09-24 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit a459a184c978ca9ad538aab93aafdde873953f30 ] The CPG/MSTP Clock Domain driver does not implement the generic_pm_domain.power_{on,off}() callbacks, as the domain itself cannot be powered down. Hence the domain should be marked as always-on by setting the

[PATCH AUTOSEL 4.19 38/50] pstore: fs superblock limits

2019-09-24 Thread Sasha Levin
From: Deepa Dinamani [ Upstream commit 83b8a3fbe3aa82ac3c253b698ae6a9be2dbdd5e0 ] Leaving granularity at 1ns because it is dependent on the specific attached backing pstore module. ramoops has microsecond resolution. Fix the readback of ramoops fractional timestamp microseconds, which has incor

[PATCH AUTOSEL 4.19 31/50] drm/nouveau/volt: Fix for some cards having 0 maximum voltage

2019-09-24 Thread Sasha Levin
From: Mark Menzynski [ Upstream commit a1af2afbd244089560794c260b2d4326a86e39b6 ] Some, mostly Fermi, vbioses appear to have zero max voltage. That causes Nouveau to not parse voltage entries, thus users not being able to set higher clocks. When changing this value Nvidia driver still appeare

[PATCH AUTOSEL 4.19 46/50] mbox: qcom: add APCS child device for QCS404

2019-09-24 Thread Sasha Levin
From: Jorge Ramirez-Ortiz [ Upstream commit 78c86458a440ff356073c21b568cb58ddb67b82b ] There is clock controller functionality in the APCS hardware block of qcs404 devices similar to msm8916. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Revie

[PATCH AUTOSEL 4.19 37/50] powerpc/64s/exception: machine check use correct cfar for late handler

2019-09-24 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 0b66370c61fcf5fcc1d6901013e110284da6e2bb ] Bare metal machine checks run an "early" handler in real mode before running the main handler which reports the event. The main handler runs exactly as a normal interrupt handler, after the "windup" which sets re

[PATCH AUTOSEL 4.19 45/50] powerpc: dump kernel log before carrying out fadump or kdump

2019-09-24 Thread Sasha Levin
From: Ganesh Goudar [ Upstream commit e7ca44ed3ba77fc26cf32650bb71584896662474 ] Since commit 4388c9b3a6ee ("powerpc: Do not send system reset request through the oops path"), pstore dmesg file is not updated when dump is triggered from HMC. This commit modified system reset (sreset) handler to

[PATCH AUTOSEL 4.19 32/50] pinctrl: amd: disable spurious-firing GPIO IRQs

2019-09-24 Thread Sasha Levin
From: Daniel Drake [ Upstream commit d21b8adbd475dba19ac2086d3306327b4a297418 ] When cold-booting Asus X434DA, GPIO 7 is found to be already configured as an interrupt, and the GPIO level is found to be in a state that causes the interrupt to fire. As soon as pinctrl-amd probes, this interrupt

[PATCH AUTOSEL 4.19 19/50] clk: actions: Don't reference clk_init_data after registration

2019-09-24 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit cf9ec1fc6d7cceb73e7f1efd079d2eae173fdf57 ] A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer excepti

[PATCH AUTOSEL 4.19 17/50] powerpc/powernv/ioda2: Allocate TCE table levels on demand for default DMA window

2019-09-24 Thread Sasha Levin
From: Alexey Kardashevskiy [ Upstream commit c37c792dec0929dbb6360a609fb00fa20bb16fc2 ] We allocate only the first level of multilevel TCE tables for KVM already (alloc_userspace_copy==true), and the rest is allocated on demand. This is not enabled though for bare metal. This removes the KVM li

[PATCH AUTOSEL 4.19 18/50] drm/amd/powerplay/smu7: enforce minimal VBITimeout (v2)

2019-09-24 Thread Sasha Levin
From: Ahzo [ Upstream commit f659bb6dae58c113805f92822e4c16ddd3156b79 ] This fixes screen corruption/flickering on 75 Hz displays. v2: make print statement debug only (Alex) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102646 Reviewed-by: Evan Quan Signed-off-by: Ahzo Signed-off-by

[PATCH AUTOSEL 4.19 14/50] clk: sunxi-ng: v3s: add missing clock slices for MMC2 module clocks

2019-09-24 Thread Sasha Levin
From: Icenowy Zheng [ Upstream commit 720099603d1f62e37b789366d7e89824b009ca28 ] The MMC2 clock slices are currently not defined in V3s CCU driver, which makes MMC2 not working. Fix this issue. Fixes: d0f11d14b0bc ("clk: sunxi-ng: add support for V3s CCU") Signed-off-by: Icenowy Zheng Signed-

Re: [PATCH] tracing/probe: Fix same probe event argument matching

2019-09-24 Thread Masami Hiramatsu
Hi Srikar, On Tue, 24 Sep 2019 17:19:06 +0530 Srikar Dronamraju wrote: > Commit fe60b0ce8e73 ("tracing/probe: Reject exactly same probe event") > tries to reject a event which matches an already existing probe. > > However it currently continues to match arguments and rejects adding a > probe e

[PATCH AUTOSEL 5.2 70/70] ext4: fix potential use after free after remounting with noblock_validity

2019-09-24 Thread Sasha Levin
From: "zhangyi (F)" [ Upstream commit 7727ae52975d4f4ef7ff69ed8e6e25f6a4168158 ] Remount process will release system zone which was allocated before if "noblock_validity" is specified. If we mount an ext4 file system to two mountpoints with default mount options, and then remount one of them wit

[PATCH AUTOSEL 5.2 59/70] clk: at91: select parent if main oscillator or bypass is enabled

2019-09-24 Thread Sasha Levin
From: Eugen Hristev [ Upstream commit 69a6bcde7fd3fe6f3268ce26f31d9d9378384c98 ] Selecting the right parent for the main clock is done using only main oscillator enabled bit. In case we have this oscillator bypassed by an external signal (no driving on the XOUT line), we still use external clock

[PATCH AUTOSEL 4.19 02/50] drm/bridge: adv7511: Attach to DSI host at probe time

2019-09-24 Thread Sasha Levin
From: Matt Redfearn [ Upstream commit 83f35bc3a852f1c3892c7474998c5cec707c7ba3 ] In contrast to all of the DSI panel drivers in drivers/gpu/drm/panel which attach to the DSI host via mipi_dsi_attach() at probe time, the ADV7533 bridge device does not. Instead it defers this to the point that the

[PATCH AUTOSEL 5.2 65/70] clk: sprd: add missing kfree

2019-09-24 Thread Sasha Levin
From: Chunyan Zhang [ Upstream commit 5e75ea9c67433a065b0e8595ad3c91c7c0ca0d2d ] The number of config registers for different pll clocks probably are not same, so we have to use malloc, and should free the memory before return. Fixes: 3e37b005580b ("clk: sprd: add adjustable pll support") Signe

[PATCH AUTOSEL 4.19 09/50] drm/radeon: Fix EEH during kexec

2019-09-24 Thread Sasha Levin
From: KyleMahlkuch [ Upstream commit 6f7fe9a93e6c09bf988c5059403f5f88e17e21e6 ] During kexec some adapters hit an EEH since they are not properly shut down in the radeon_pci_shutdown() function. Adding radeon_suspend_kms() fixes this issue. Signed-off-by: KyleMahlkuch Signed-off-by: Alex Deuch

[PATCH AUTOSEL 5.2 57/70] mailbox: mediatek: cmdq: clear the event in cmdq initial flow

2019-09-24 Thread Sasha Levin
From: Bibby Hsieh [ Upstream commit 6058f11870b8e6d4f5cc7b591097c00bf69a000d ] GCE hardware stored event information in own internal sysram, if the initial value in those sysram is not zero value it will cause a situation that gce can wait the event immediately after client ask gce to wait event

[PATCH AUTOSEL 5.2 54/70] clk: qcom: gcc-sdm845: Use floor ops for sdcc clks

2019-09-24 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit 5e4b7e82d497580bc430576c4c9bce157dd72512 ] Some MMC cards fail to enumerate properly when inserted into an MMC slot on sdm845 devices. This is because the clk ops for qcom clks round the frequency up to the nearest rate instead of down to the nearest rate. Fo

[PATCH AUTOSEL 5.2 53/70] powerpc/imc: Dont create debugfs files for cpu-less nodes

2019-09-24 Thread Sasha Levin
From: Madhavan Srinivasan [ Upstream commit 41ba17f20ea835c489e77bd54e2da73184e22060 ] Commit <684d984038aa> ('powerpc/powernv: Add debugfs interface for imc-mode and imc') added debugfs interface for the nest imc pmu devices to support changing of different ucode modes. Primarily adding this ca

[PATCH AUTOSEL 5.2 61/70] clk: imx: clk-pll14xx: unbypass PLL by default

2019-09-24 Thread Sasha Levin
From: Peng Fan [ Upstream commit a9aa8306074d9519dd6e5fdf07240b01bac72e04 ] When registering the PLL, unbypass the PLL. The PLL has two bypass control bit, BYPASS and EXT_BYPASS. we will expose EXT_BYPASS to clk driver for mux usage, and keep BYPASS inside pll14xx usage. The PLL has a restrictio

[PATCH AUTOSEL 4.19 25/50] powerpc/futex: Fix warning: 'oldval' may be used uninitialized in this function

2019-09-24 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 38a0d0cdb46d3f91534e5b9839ec2d67be14c59d ] We see warnings such as: kernel/futex.c: In function 'do_futex': kernel/futex.c:1676:17: warning: 'oldval' may be used uninitialized in this function [-Wmaybe-uninitialized] return oldval == cmparg;

[PATCH AUTOSEL 4.19 30/50] vfio_pci: Restore original state on release

2019-09-24 Thread Sasha Levin
From: hexin [ Upstream commit 92c8026854c25093946e0d7fe536fd9eac440f06 ] vfio_pci_enable() saves the device's initial configuration information with the intent that it is restored in vfio_pci_disable(). However, the commit referenced in Fixes: below replaced the call to __pci_reset_function_loc

[PATCH AUTOSEL 5.2 15/70] gpu: drm: radeon: Fix a possible null-pointer dereference in radeon_connector_set_property()

2019-09-24 Thread Sasha Levin
From: Jia-Ju Bai [ Upstream commit f3eb9b8f67bc28783eddc142ad805ebdc53d6339 ] In radeon_connector_set_property(), there is an if statement on line 743 to check whether connector->encoder is NULL: if (connector->encoder) When connector->encoder is NULL, it is used on line 755: if (connec

[PATCH AUTOSEL 4.19 26/50] powerpc/64s/radix: Remove redundant pfn_pte bitop, add VM_BUG_ON

2019-09-24 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 6bb25170d7a44ef0ed9677814600f0785e7421d1 ] pfn_pte is never given a pte above the addressable physical memory limit, so the masking is redundant. In case of a software bug, it is not obviously better to silently truncate the pfn than to corrupt the pte (ei

[PATCH AUTOSEL 5.2 51/70] pstore: fs superblock limits

2019-09-24 Thread Sasha Levin
From: Deepa Dinamani [ Upstream commit 83b8a3fbe3aa82ac3c253b698ae6a9be2dbdd5e0 ] Leaving granularity at 1ns because it is dependent on the specific attached backing pstore module. ramoops has microsecond resolution. Fix the readback of ramoops fractional timestamp microseconds, which has incor

Re: [PATCH] kbuild: remove ar-option and KBUILD_ARFLAGS

2019-09-24 Thread Nick Desaulniers
On Tue, Sep 24, 2019 at 9:38 AM Masahiro Yamada wrote: > > Commit 40df759e2b9e ("kbuild: Fix build with binutils <= 2.19") > introduced ar-option and KBUILD_ARFLAGS to cope with old binutils. > > According to Documentation/process/changes.rst, the current minimal > supported version of binutils is

[PATCH AUTOSEL 5.2 46/70] clk: renesas: cpg-mssr: Set GENPD_FLAG_ALWAYS_ON for clock domain

2019-09-24 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit f787216f33ce5b5a2567766398f44ab62157114c ] The CPG/MSSR Clock Domain driver does not implement the generic_pm_domain.power_{on,off}() callbacks, as the domain itself cannot be powered down. Hence the domain should be marked as always-on by setting the

[PATCH AUTOSEL 5.2 43/70] drm/nouveau/volt: Fix for some cards having 0 maximum voltage

2019-09-24 Thread Sasha Levin
From: Mark Menzynski [ Upstream commit a1af2afbd244089560794c260b2d4326a86e39b6 ] Some, mostly Fermi, vbioses appear to have zero max voltage. That causes Nouveau to not parse voltage entries, thus users not being able to set higher clocks. When changing this value Nvidia driver still appeare

[PATCH AUTOSEL 5.2 33/70] powerpc/rtas: use device model APIs and serialization during LPM

2019-09-24 Thread Sasha Levin
From: Nathan Lynch [ Upstream commit a6717c01ddc259f6f73364779df058e2c67309f8 ] The LPAR migration implementation and userspace-initiated cpu hotplug can interleave their executions like so: 1. Set cpu 7 offline via sysfs. 2. Begin a partition migration, whose implementation requires the OS

Re: [PATCH 2/4] irqchip: Add Aspeed SCU interrupt controller

2019-09-24 Thread Marc Zyngier
Eddie, On 24/09/2019 17:14, Eddie James wrote: > The Aspeed SOCs provide some interrupts through the System Control > Unit registers. Add an interrupt controller that provides these > interrupts to the system. > > Signed-off-by: Eddie James > --- > MAINTAINERS | 1 + >

[PATCH AUTOSEL 5.2 34/70] powerpc/futex: Fix warning: 'oldval' may be used uninitialized in this function

2019-09-24 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 38a0d0cdb46d3f91534e5b9839ec2d67be14c59d ] We see warnings such as: kernel/futex.c: In function 'do_futex': kernel/futex.c:1676:17: warning: 'oldval' may be used uninitialized in this function [-Wmaybe-uninitialized] return oldval == cmparg;

[PATCH AUTOSEL 5.2 38/70] powerpc/perf: fix imc allocation failure handling

2019-09-24 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 10c4bd7cd28e77aeb8cfa65b23cb3c632ede2a49 ] The alloc_pages_node return value should be tested for failure before being passed to page_address. Tested-by: Anju T Sudhakar Signed-off-by: Nicholas Piggin Reviewed-by: Aneesh Kumar K.V Signed-off-by: Michae

[PATCH AUTOSEL 5.2 30/70] clk: sprd: Don't reference clk_init_data after registration

2019-09-24 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit f6c90df8e7e33c3dc33d4d7471bc42c232b0510e ] A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer excepti

[PATCH AUTOSEL 5.2 27/70] clk: actions: Don't reference clk_init_data after registration

2019-09-24 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit cf9ec1fc6d7cceb73e7f1efd079d2eae173fdf57 ] A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer excepti

[PATCH AUTOSEL 5.2 29/70] clk: meson: axg-audio: Don't reference clk_init_data after registration

2019-09-24 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit 1610dd79d0f6202c5c1a91122255fa598679c13a ] A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer excepti

[PATCH AUTOSEL 5.2 25/70] powerpc/powernv/ioda2: Allocate TCE table levels on demand for default DMA window

2019-09-24 Thread Sasha Levin
From: Alexey Kardashevskiy [ Upstream commit c37c792dec0929dbb6360a609fb00fa20bb16fc2 ] We allocate only the first level of multilevel TCE tables for KVM already (alloc_userspace_copy==true), and the rest is allocated on demand. This is not enabled though for bare metal. This removes the KVM li

[PATCH AUTOSEL 5.2 17/70] PCI: rpaphp: Avoid a sometimes-uninitialized warning

2019-09-24 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit 0df3e42167caaf9f8c7b64de3da40a459979afe8 ] When building with -Wsometimes-uninitialized, clang warns: drivers/pci/hotplug/rpaphp_core.c:243:14: warning: variable 'fndit' is used uninitialized whenever 'for' loop exits because its condition is false [-Ws

[PATCH AUTOSEL 5.2 21/70] clk: sunxi-ng: v3s: add missing clock slices for MMC2 module clocks

2019-09-24 Thread Sasha Levin
From: Icenowy Zheng [ Upstream commit 720099603d1f62e37b789366d7e89824b009ca28 ] The MMC2 clock slices are currently not defined in V3s CCU driver, which makes MMC2 not working. Fix this issue. Fixes: d0f11d14b0bc ("clk: sunxi-ng: add support for V3s CCU") Signed-off-by: Icenowy Zheng Signed-

[PATCH AUTOSEL 5.2 20/70] clk: qoriq: Fix -Wunused-const-variable

2019-09-24 Thread Sasha Levin
From: Nathan Huckleberry [ Upstream commit a95fb581b144b5e73da382eaedb2e32027610597 ] drivers/clk/clk-qoriq.c:138:38: warning: unused variable 'p5020_cmux_grp1' [-Wunused-const-variable] static const struct clockgen_muxinfo p5020_cmux_grp1 drivers/clk/clk-qoriq.c:146:38: warning: unused variabl

[PATCH AUTOSEL 5.2 18/70] pinctrl: stmfx: update pinconf settings

2019-09-24 Thread Sasha Levin
From: Alexandre Torgue [ Upstream commit a502b343ebd0eab38f3cb33fbb84011847cf5aac ] According to the following tab (coming from STMFX datasheet), updates have to done in stmfx_pinconf_set function: -"type" has to be set when "bias" is configured as "pull-up or pull-down" -PIN_CONFIG_DRIVE_PUSH_

[PATCH AUTOSEL 5.2 16/70] clk: imx8mq: Mark AHB clock as critical

2019-09-24 Thread Sasha Levin
From: Abel Vesa [ Upstream commit 9b9c60bed562c3718ae324a86f3f30a4ff983cf8 ] Initially, the TMU_ROOT clock was marked as critical, which automatically made the AHB clock to stay always on. Since the TMU_ROOT clock is not marked as critical anymore, following commit: "clk: imx8mq: Remove CLK_IS_

[PATCH AUTOSEL 5.2 12/70] drm/rockchip: Check for fast link training before enabling psr

2019-09-24 Thread Sasha Levin
From: Sean Paul [ Upstream commit ad309284a52be47c8b3126c9376358bf381861bc ] Once we start shutting off the link during PSR, we're going to want fast training to work. If the display doesn't support fast training, don't enable psr. Changes in v2: - None Changes in v3: - None Changes in v4: - No

[PATCH AUTOSEL 5.3 83/87] scsi: core: Reduce memory required for SCSI logging

2019-09-24 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit dccc96abfb21dc19d69e707c38c8ba439bba7160 ] The data structure used for log messages is so large that it can cause a boot failure. Since allocations from that data structure can fail anyway, use kmalloc() / kfree() instead of that data structure. See also

[PATCH AUTOSEL 5.3 86/87] f2fs: fix to drop meta/node pages during umount

2019-09-24 Thread Sasha Levin
From: Chao Yu [ Upstream commit a8933b6b68f775b5774e7b075447fae13f4d01fe ] As reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=204193 A null pointer dereference bug is triggered in f2fs under kernel-5.1.3. kasan_report.cold+0x5/0x32 f2fs_write_end_io+0x215/0x650 bio_endio+

[PATCH AUTOSEL 5.2 04/70] drm/kms: Catch mode_object lifetime errors

2019-09-24 Thread Sasha Levin
From: Daniel Vetter [ Upstream commit 4f5368b5541a902f6596558b05f5c21a9770dd32 ] Only dynamic mode objects, i.e. those which are refcounted and have a free callback, can be added while the overall drm_device is visible to userspace. All others must be added before drm_dev_register and removed af

[PATCH AUTOSEL 5.3 71/87] powerpc/pseries: correctly track irq state in default idle

2019-09-24 Thread Sasha Levin
From: Nathan Lynch [ Upstream commit 92c94dfb69e350471473fd3075c74bc68150879e ] prep_irq_for_idle() is intended to be called before entering H_CEDE (and it is used by the pseries cpuidle driver). However the default pseries idle routine does not call it, leading to mismanaged lazy irq state when

[PATCH AUTOSEL 5.3 78/87] clk: imx: clk-pll14xx: unbypass PLL by default

2019-09-24 Thread Sasha Levin
From: Peng Fan [ Upstream commit a9aa8306074d9519dd6e5fdf07240b01bac72e04 ] When registering the PLL, unbypass the PLL. The PLL has two bypass control bit, BYPASS and EXT_BYPASS. we will expose EXT_BYPASS to clk driver for mux usage, and keep BYPASS inside pll14xx usage. The PLL has a restrictio

[PATCH AUTOSEL 5.3 70/87] clk: qcom: gcc-sdm845: Use floor ops for sdcc clks

2019-09-24 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit 5e4b7e82d497580bc430576c4c9bce157dd72512 ] Some MMC cards fail to enumerate properly when inserted into an MMC slot on sdm845 devices. This is because the clk ops for qcom clks round the frequency up to the nearest rate instead of down to the nearest rate. Fo

[PATCH AUTOSEL 5.3 63/87] selftests/powerpc: Retry on host facility unavailable

2019-09-24 Thread Sasha Levin
From: Gustavo Romero [ Upstream commit 6652bf6408895b09d31fd4128a1589a1a0672823 ] TM test tm-unavailable must take into account aborts due to host aborting a transactin because of a facility unavailable exception, just like it already does for aborts on reschedules (TM_CAUSE_KVM_RESCHED). Repor

[PATCH AUTOSEL 5.3 67/87] pstore: fs superblock limits

2019-09-24 Thread Sasha Levin
From: Deepa Dinamani [ Upstream commit 83b8a3fbe3aa82ac3c253b698ae6a9be2dbdd5e0 ] Leaving granularity at 1ns because it is dependent on the specific attached backing pstore module. ramoops has microsecond resolution. Fix the readback of ramoops fractional timestamp microseconds, which has incor

[PATCH AUTOSEL 5.3 66/87] powerpc/64s/exception: machine check use correct cfar for late handler

2019-09-24 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 0b66370c61fcf5fcc1d6901013e110284da6e2bb ] Bare metal machine checks run an "early" handler in real mode before running the main handler which reports the event. The main handler runs exactly as a normal interrupt handler, after the "windup" which sets re

[PATCH AUTOSEL 5.3 57/87] clk: renesas: mstp: Set GENPD_FLAG_ALWAYS_ON for clock domain

2019-09-24 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit a459a184c978ca9ad538aab93aafdde873953f30 ] The CPG/MSTP Clock Domain driver does not implement the generic_pm_domain.power_{on,off}() callbacks, as the domain itself cannot be powered down. Hence the domain should be marked as always-on by setting the

[PATCH AUTOSEL 5.3 36/87] clk: actions: Don't reference clk_init_data after registration

2019-09-24 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit cf9ec1fc6d7cceb73e7f1efd079d2eae173fdf57 ] A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer excepti

[PATCH AUTOSEL 5.3 38/87] clk: meson: axg-audio: Don't reference clk_init_data after registration

2019-09-24 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit 1610dd79d0f6202c5c1a91122255fa598679c13a ] A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer excepti

Re: [WTF?] aafs_create_symlink() weirdness

2019-09-24 Thread John Johansen
On 9/23/19 7:03 PM, Al Viro wrote: WTF indeed > > static struct dentry *aafs_create_symlink(const char *name, > struct dentry *parent, > const char *target, > void *priva

[PATCH AUTOSEL 5.3 30/87] drm/amd/display: fix issue where 252-255 values are clipped

2019-09-24 Thread Sasha Levin
From: Anthony Koo [ Upstream commit 1cbcfc975164f397b449efb17f59d81a703090db ] [Why] When endpoint is at the boundary of a region, such as at 2^0=1 we find that the last segment has a sharp slope and some points are clipped at the top. [How] If end point is 1, which is exactly at the 2^0 region

Re: ntp audit spew.

2019-09-24 Thread Paul Moore
On Tue, Sep 24, 2019 at 9:19 AM Steve Grubb wrote: > On Monday, September 23, 2019 12:14:14 PM EDT Paul Moore wrote: > > On Mon, Sep 23, 2019 at 11:50 AM Dave Jones > wrote: > > > I have some hosts that are constantly spewing audit messages like so: > > > > > > [46897.591182] audit: type=1333 aud

[PATCH AUTOSEL 5.3 23/87] clk: imx8mq: Mark AHB clock as critical

2019-09-24 Thread Sasha Levin
From: Abel Vesa [ Upstream commit 9b9c60bed562c3718ae324a86f3f30a4ff983cf8 ] Initially, the TMU_ROOT clock was marked as critical, which automatically made the AHB clock to stay always on. Since the TMU_ROOT clock is not marked as critical anymore, following commit: "clk: imx8mq: Remove CLK_IS_

[PATCH AUTOSEL 5.3 26/87] ipmi_si: Only schedule continuously in the thread in maintenance mode

2019-09-24 Thread Sasha Levin
From: Corey Minyard [ Upstream commit 340ff31ab00bca5c15915e70ad9ada3030c98cf8 ] ipmi_thread() uses back-to-back schedule() to poll for command completion which, on some machines, can push up CPU consumption and heavily tax the scheduler locks leading to noticeable overall performance degradatio

[PATCH AUTOSEL 5.3 50/87] pinctrl: tegra: Fix write barrier placement in pmx_writel

2019-09-24 Thread Sasha Levin
From: Sowjanya Komatineni [ Upstream commit c2cf351eba2ff6002ce8eb178452219d2521e38e ] pmx_writel uses writel which inserts write barrier before the register write. This patch has fix to replace writel with writel_relaxed followed by a readback and memory barrier to ensure write operation is co

[PATCH AUTOSEL 5.3 24/87] PCI: rpaphp: Avoid a sometimes-uninitialized warning

2019-09-24 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit 0df3e42167caaf9f8c7b64de3da40a459979afe8 ] When building with -Wsometimes-uninitialized, clang warns: drivers/pci/hotplug/rpaphp_core.c:243:14: warning: variable 'fndit' is used uninitialized whenever 'for' loop exits because its condition is false [-Ws

[GIT PULL] iomap: (far less) new code for 5.4

2019-09-24 Thread Darrick J. Wong
Hi Linus, Please pull this series containing all the new iomap code for 5.4. After last week's failed pull request attempt, I scuttled everything in the branch except for the directio endio api changes, which were trivial. Everything else will simply have to wait for the next cycle. The branch m

[PATCH AUTOSEL 5.3 41/87] clk: sunxi: Don't call clk_hw_get_name() on a hw that isn't registered

2019-09-24 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit a7b85ad25a97cf897b4819a121655c483d86156f ] The implementation of clk_hw_get_name() relies on the clk_core associated with the clk_hw pointer existing. If of_clk_hw_register() fails, there isn't a clk_core created yet, so calling clk_hw_get_name() here fails.

[PATCH AUTOSEL 5.3 40/87] clk: zx296718: Don't reference clk_init_data after registration

2019-09-24 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit 1a4549c150e27dbc3aea762e879a88209df6d1a5 ] A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer excepti

[PATCH AUTOSEL 5.3 25/87] pinctrl: stmfx: update pinconf settings

2019-09-24 Thread Sasha Levin
From: Alexandre Torgue [ Upstream commit a502b343ebd0eab38f3cb33fbb84011847cf5aac ] According to the following tab (coming from STMFX datasheet), updates have to done in stmfx_pinconf_set function: -"type" has to be set when "bias" is configured as "pull-up or pull-down" -PIN_CONFIG_DRIVE_PUSH_

[PATCH AUTOSEL 5.3 29/87] clk: sunxi-ng: v3s: add missing clock slices for MMC2 module clocks

2019-09-24 Thread Sasha Levin
From: Icenowy Zheng [ Upstream commit 720099603d1f62e37b789366d7e89824b009ca28 ] The MMC2 clock slices are currently not defined in V3s CCU driver, which makes MMC2 not working. Fix this issue. Fixes: d0f11d14b0bc ("clk: sunxi-ng: add support for V3s CCU") Signed-off-by: Icenowy Zheng Signed-

[PATCH AUTOSEL 5.3 20/87] drm/amd/display: Use proper enum conversion functions

2019-09-24 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit d196bbbc28fab82624f7686f8b0da8e8644b6e6a ] clang warns: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:336:8: warning: implicit conversion from enumeration type 'enum smu_clk_type' to different enumeration type 'enum amd_pp_clock_typ

[Patch v3 3/8] media: i2c: ov2659: Cleanup include file list

2019-09-24 Thread Benoit Parrot
Several of include files listed are not explicitly needed. If they are need then they are implicitly included. Reduce the list of includes to an easier to manage list. Signed-off-by: Benoit Parrot --- drivers/media/i2c/ov2659.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/

Re: [PATCH v2] ipv6: do not free rt if FIB_LOOKUP_NOREF is set on suppress rule

2019-09-24 Thread Wei Wang
On Tue, Sep 24, 2019 at 7:01 AM Jason A. Donenfeld wrote: > > Commit 7d9e5f422150 removed references from certain dsts, but accounting > for this never translated down into the fib6 suppression code. This bug > was triggered by WireGuard users who use wg-quick(8), which uses the > "suppress-prefix

[PATCH AUTOSEL 5.3 13/87] video: ssd1307fb: Start page range at page_offset

2019-09-24 Thread Sasha Levin
From: Marko Kohtala [ Upstream commit dd9782834dd9dde3624ff1acea8859f3d3e792d4 ] The page_offset was only applied to the end of the page range. This caused the display updates to cause a scrolling effect on the display because the amount of data written to the display did not match the range dis

[Patch v3 8/8] media: i2c: ov2659: Switch to SPDX Licensing

2019-09-24 Thread Benoit Parrot
Switch to SPDX licensing and drop the redundant GPL text. Signed-off-by: Benoit Parrot --- drivers/media/i2c/ov2659.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/media/i2c/ov2659.c b/drivers/media/i2c/ov2659.c index 23f161fd69bb..6b5fb2cf7f71 100644

[Patch v3 6/8] media: i2c: ov2659: Add powerdown/reset gpio handling

2019-09-24 Thread Benoit Parrot
On some board it is possible that the sensor 'powerdown' and or 'reset' pin might be controlled by gpio instead of being tied. To implement we add pm_runtime support which will handle the power up/down sequence when it is available otherwise the sensor will be powered on at module insertion/probe

[PATCH AUTOSEL 5.3 21/87] drm/radeon: Fix EEH during kexec

2019-09-24 Thread Sasha Levin
From: KyleMahlkuch [ Upstream commit 6f7fe9a93e6c09bf988c5059403f5f88e17e21e6 ] During kexec some adapters hit an EEH since they are not properly shut down in the radeon_pci_shutdown() function. Adding radeon_suspend_kms() fixes this issue. Signed-off-by: KyleMahlkuch Signed-off-by: Alex Deuch

[PATCH AUTOSEL 5.3 14/87] drm/tinydrm/Kconfig: drivers: Select BACKLIGHT_CLASS_DEVICE

2019-09-24 Thread Sasha Levin
From: Noralf Trønnes [ Upstream commit 3389669ac5ea598562673c04971d7bb0fab0e9f1 ] The mipi_dbi helper is missing a dependency on DRM_KMS_HELPER and putting that in revealed this problem: drivers/video/fbdev/Kconfig:12:error: recursive dependency detected! drivers/video/fbdev/Kconfig:12: symbol

[Patch v3 1/8] media: i2c: ov2659: Fix for image wrap-around in lower resolution

2019-09-24 Thread Benoit Parrot
Based on recently found sensor configuration examples, it was discovered that when scaling and binning are used for the lower resolutions (i.e. 640x480, 320x240) the read offset has to be increased otherwise the image appears to be wrapped around. Signed-off-by: Benoit Parrot Signed-off-by: Jyri

Re: [PATCH v10 0/6] mm / virtio: Provide support for unused page reporting

2019-09-24 Thread Alexander Duyck
On Tue, Sep 24, 2019 at 8:32 AM David Hildenbrand wrote: > > On 24.09.19 16:23, Michal Hocko wrote: > > On Wed 18-09-19 10:52:25, Alexander Duyck wrote: > > [...] > >> In order to try and keep the time needed to find a non-reported page to > >> a minimum we maintain a "reported_boundary" pointer.

Re: [PATCH 0/5] Add and use sizeof_member macro to bring uniformity

2019-09-24 Thread Kees Cook
On Tue, Sep 24, 2019 at 09:28:13AM -0700, Kees Cook wrote: > Hi Linus, > > Is a cleanup like this something you'd be willing to include before you > cut -rc1, or should this wait for a later time? (This is likely very > close to the final version -- I had some minor feedback, but I wanted > to fig

Re: [PATCH v1] seccomp: simplify secure_computing()

2019-09-24 Thread Andy Lutomirski
On Mon, Sep 23, 2019 at 11:44 PM Christian Brauner wrote: > > Afaict, the struct seccomp_data argument to secure_computing() is unused > by all current callers. So let's remove it. > The argument was added in [1]. It was added because having the arch > supply the syscall arguments used to be faste

Re: [PATCH V1 1/1] tick: broadcast-hrtimer: Fix a race in bc_set_next

2019-09-24 Thread Eugeniu Rosca
On Mon, Sep 23, 2019 at 09:51:54PM +0200, Thomas Gleixner wrote: > On Wed, 18 Sep 2019, Balasubramani Vivekanandan wrote: > > > > When there are no more cpus subscribed to broadcast, the timer callback > > might not set the expiry time for hrtimer. Therefore the callback timer > > function is modi

[PATCH] mm: drop mmap_sem before calling balance_dirty_pages() in write fault

2019-09-24 Thread Johannes Weiner
From: Johannes Weiner One of our services is observing hanging ps/top/etc under heavy write IO, and the task states show this is an mmap_sem priority inversion: A write fault is holding the mmap_sem in read-mode and waiting for (heavily cgroup-limited) IO in balance_dirty_pages(): [<0>] balance

Re: [PATCH v2] arm64: use generic free_initrd_mem()

2019-09-24 Thread kbuild test robot
pecify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Mike-Rapoport/arm64-use-generic-free_initrd_mem/20190924-220328 base: https://kernel.googlesource.com/pub/scm/linux/kernel/git/arm64/linux.git for-next/c

Re: [PATCH v22 00/24] Intel SGX foundations

2019-09-24 Thread Andy Lutomirski
> On Sep 15, 2019, at 10:24 PM, Jarkko Sakkinen > wrote: > > On Sat, Sep 14, 2019 at 08:32:38AM -0700, Dave Hansen wrote: On 9/14/19 6:41 AM, Jarkko Sakkinen wrote: The proposed LSM hooks give the granularity to make yes/no decision based on the * The origin of the source of

Re: [PATCH v1 1/1] i2c: iproc: Add i2c repeated start capability

2019-09-24 Thread Ray Jui
Hi Wolfram, On 9/4/19 2:37 PM, Wolfram Sang wrote: I think you are right that the controller does not seem to support additional I2C features in addition to SMBUS. However, my concern of switching to the smbus_xfer API is: 1) Some customers might have used I2C_RDWR based API from i2cdev. Cha

Re: [RFC] mm: memcg: add priority for soft limit reclaiming

2019-09-24 Thread Roman Gushchin
On Tue, Sep 24, 2019 at 03:30:16PM +0200, Michal Hocko wrote: > On Tue 24-09-19 15:36:42, Hillf Danton wrote: > > > > On Mon, 23 Sep 2019 21:28:34 Michal Hocko wrote: > > > > > > On Mon 23-09-19 21:04:59, Hillf Danton wrote: > > > > > > > > On Thu, 19 Sep 2019 21:32:31 +0800 Michal Hocko wrote: >

Re: [PATCH v2] ftgmac100: Disable HW checksum generation on AST2500

2019-09-24 Thread Vijay Khemka
Florian/Joel, Can you please look into below patch and let me know who can apply this. Regards -Vijay On 9/17/19, 12:34 PM, "Vijay Khemka" wrote: Please review below patch and provide your valuable feedback. Regards -Vijay On 9/11/19, 1:05 PM, "Vijay Khemka" wrote:

Re: [PATCH v10 0/6] mm / virtio: Provide support for unused page reporting

2019-09-24 Thread David Hildenbrand
On 24.09.19 19:07, Alexander Duyck wrote: > On Tue, Sep 24, 2019 at 8:32 AM David Hildenbrand wrote: >> >> On 24.09.19 16:23, Michal Hocko wrote: >>> On Wed 18-09-19 10:52:25, Alexander Duyck wrote: >>> [...] In order to try and keep the time needed to find a non-reported page to a minim

<    1   2   3   4   5   6   7   8   9   >