[PATCH 5.3 009/166] drm/amd/display: Clear FEC_READY shadow register if DPCD write fails

2019-10-06 Thread Greg Kroah-Hartman
From: Nikola Cornij [ Upstream commit d68a74541735e030dea56f72746cd26d19986f41 ] [why] As a fail-safe, in case 'set FEC_READY' DPCD write fails, a HW shadow register should be cleared and the internal FEC stat should be set to 'not ready'. This is to make sure HW settings will be consistent with

[PATCH 5.3 152/166] ptp_qoriq: Initialize the registers spinlock before calling ptp_qoriq_settime

2019-10-06 Thread Greg Kroah-Hartman
From: Vladimir Oltean [ Upstream commit db34a4714c013b644eec2de0ec81b1f0373b8b93 ] Because ptp_qoriq_settime is being called prior to spin_lock_init, the following stack trace can be seen at driver probe time: [2.269117] the code is fine but needs lockdep annotation. [2.274569] turning

[PATCH 5.3 005/166] drm/panel: simple: fix AUO g185han01 horizontal blanking

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 000/166] 5.3.5-stable review

2019-10-06 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.3.5 release. There are 166 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Tue 08 Oct 2019 05:07:10 PM UTC. Anything rece

[PATCH 5.3 037/166] clk: zx296718: Dont reference clk_init_data after registration

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 055/166] drm/amd/display: support spdif

2019-10-06 Thread Greg Kroah-Hartman
From: Charlene Liu [ Upstream commit b5a41620bb88efb9fb31a4fa5e652e3d5bead7d4 ] [Description] port spdif fix to staging: spdif hardwired to afmt inst 1. spdif func pointer spdif resource allocation (reserve last audio endpoint for spdif only) Signed-off-by: Charlene Liu Reviewed-by: Dmytro

[PATCH 5.3 039/166] powerpc/xmon: Check for HV mode when dumping XIVE info from OPAL

2019-10-06 Thread Greg Kroah-Hartman
From: Cédric Le Goater [ Upstream commit c3e0dbd7f780a58c4695f1cd8fc8afde80376737 ] Currently, the xmon 'dx' command calls OPAL to dump the XIVE state in the OPAL logs and also outputs some of the fields of the internal XIVE structures in Linux. The OPAL calls can only be done on baremetal (Powe

[PATCH 5.3 059/166] selftests/powerpc: Retry on host facility unavailable

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 051/166] drm/nouveau/volt: Fix for some cards having 0 maximum voltage

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 053/166] clk: renesas: mstp: Set GENPD_FLAG_ALWAYS_ON for clock domain

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 061/166] drm/amdgpu/si: fix ASIC tests

2019-10-06 Thread Greg Kroah-Hartman
From: Jean Delvare [ Upstream commit 77efe48a729588527afb4d5811b9e0acb29f5e51 ] Comparing adev->family with CHIP constants is not correct. adev->family can only be compared with AMDGPU_FAMILY constants and adev->asic_type is the struct member to compare with CHIP constants. They are separate ide

[PATCH 5.3 062/166] powerpc/64s/exception: machine check use correct cfar for late handler

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 066/166] powerpc/pseries: correctly track irq state in default idle

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 076/166] mbox: qcom: add APCS child device for QCS404

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 075/166] powerpc: dump kernel log before carrying out fadump or kdump

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 036/166] clk: sprd: Dont reference clk_init_data after registration

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 041/166] powerpc/ptdump: fix walk_pagetables() address mismatch

2019-10-06 Thread Greg Kroah-Hartman
From: Christophe Leroy [ Upstream commit e033829d2aaad85cb7cf46986c3be0bcc72f791e ] walk_pagetables() always walk the entire pgdir from address 0 but considers PAGE_OFFSET or KERN_VIRT_START as the starting address of the walk, resulting in a possible mismatch in the displayed addresses. Ex: on

[PATCH 5.3 044/166] powerpc/pseries/mobility: use cond_resched when updating device tree

2019-10-06 Thread Greg Kroah-Hartman
From: Nathan Lynch [ Upstream commit ccfb5bd71d3d1228090a8633800ae7cdf42a94ac ] After a partition migration, pseries_devicetree_update() processes changes to the device tree communicated from the platform to Linux. This is a relatively heavyweight operation, with multiple device tree searches, m

[PATCH 5.3 097/166] PCI: mobiveil: Fix the CPU base address setup in inbound window

2019-10-06 Thread Greg Kroah-Hartman
From: Hou Zhiqiang [ Upstream commit df901c85cc28b538c62f6bc20b16a8bd05fcb756 ] Current code erroneously sets-up the CPU base address through the parameter 'pci_addr', which is passed to initialize the CPU (AXI) base address of the inbound window where the controller maps the PCI address space i

[PATCH 5.3 102/166] selinux: fix residual uses of current_security() for the SELinux blob

2019-10-06 Thread Greg Kroah-Hartman
From: Stephen Smalley [ Upstream commit 169ce0c081cd85f78388bb6c1638c1ad7b81bde7 ] We need to use selinux_cred() to fetch the SELinux cred blob instead of directly using current->security or current_security(). There were a couple of lingering uses of current_security() in the SELinux code that

[PATCH 5.3 084/166] MIPS: tlbex: Explicitly cast _PAGE_NO_EXEC to a boolean

2019-10-06 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit c59ae0a1055127dd3828a88e111a0db59b254104 ] clang warns: arch/mips/mm/tlbex.c:634:19: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand] if (cpu_has_rixi && _PAGE_NO_EXEC) { ^ ~

[PATCH 5.3 105/166] PCI: rockchip: Propagate errors for optional regulators

2019-10-06 Thread Greg Kroah-Hartman
From: Thierry Reding [ Upstream commit 0e3ff0ac5f71bdb6be2a698de0ed0c7e6e738269 ] regulator_get_optional() can fail for a number of reasons besides probe deferral. It can for example return -ENOMEM if it runs out of memory as it tries to allocate data structures. Propagating only -EPROBE_DEFER i

[PATCH 5.3 112/166] ARM: 8903/1: ensure that usable memory in bank 0 starts from a PMD-aligned address

2019-10-06 Thread Greg Kroah-Hartman
From: Mike Rapoport [ Upstream commit 00d2ec1e6bd82c0538e6dd3e4a4040de93ba4fef ] The calculation of memblock_limit in adjust_lowmem_bounds() assumes that bank 0 starts from a PMD-aligned address. However, the beginning of the first bank may be NOMAP memory and the start of usable memory will be

[PATCH 5.3 115/166] fat: work around race with userspaces read via blockdev while mounting

2019-10-06 Thread Greg Kroah-Hartman
From: OGAWA Hirofumi [ Upstream commit 07bfa4415ab607e459b69bd86aa7e7602ce10b4f ] If userspace reads the buffer via blockdev while mounting, sb_getblk()+modify can race with buffer read via blockdev. For example, FS userspace bh = sb_getblk() m

[PATCH 5.3 108/166] PCI: exynos: Propagate errors for optional PHYs

2019-10-06 Thread Greg Kroah-Hartman
From: Thierry Reding [ Upstream commit ddd6960087d4b45759434146d681a94bbb1c54ad ] devm_of_phy_get() can fail for a number of reasons besides probe deferral. It can for example return -ENOMEM if it runs out of memory as it tries to allocate devres structures. Propagating only -EPROBE_DEFER is pro

[PATCH 5.3 096/166] soundwire: intel: fix channel number reported by hardware

2019-10-06 Thread Greg Kroah-Hartman
From: Pierre-Louis Bossart [ Upstream commit 18046335643de6d21327f5ae034c8fb8463f6715 ] On all released Intel controllers (CNL/CML/ICL), PDI2 reports an invalid count, force the correct hardware-supported value This may have to be revisited with platform-specific values if the hardware changes,

[PATCH 5.3 140/166] sch_cbq: validate TCA_CBQ_WRROPT to avoid crash

2019-10-06 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit e9789c7cc182484fc031fd88097eb14cb26c4596 ] syzbot reported a crash in cbq_normalize_quanta() caused by an out of range cl->priority. iproute2 enforces this check, but malicious users do not. kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by N

[PATCH 5.3 090/166] mips/atomic: Fix loongson_llsc_mb() wreckage

2019-10-06 Thread Greg Kroah-Hartman
From: Peter Zijlstra [ Upstream commit 1c6c1ca318585f1096d4d04bc722297c85e9fb8a ] The comment describing the loongson_llsc_mb() reorder case doesn't make any sense what so ever. Instruction re-ordering is not an SMP artifact, but rather a CPU local phenomenon. Clarify the comment by explaining t

[PATCH 5.3 092/166] PCI: layerscape: Add the bar_fixed_64bit property to the endpoint driver

2019-10-06 Thread Greg Kroah-Hartman
From: Xiaowei Bao [ Upstream commit fd5d16531a39322c3d7433d9f8a36203c9aaeddc ] The layerscape PCIe controller have 4 BARs. BAR0 and BAR1 are 32bit, BAR2 and BAR4 are 64bit and that's a fixed hardware configuration. Set the bar_fixed_64bit variable accordingly. Signed-off-by: Xiaowei Bao [lo

[PATCH 5.3 120/166] mm: add dummy can_do_mlock() helper

2019-10-06 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 710ec38b0f633ab3e2581f07a73442d809e28ab0 ] On kernels without CONFIG_MMU, we get a link error for the siw driver: drivers/infiniband/sw/siw/siw_mem.o: In function `siw_umem_get': siw_mem.c:(.text+0x4c8): undefined reference to `can_do_mlock' This is probab

[PATCH 5.3 119/166] crypto: hisilicon - Fix double free in sec_free_hw_sgl()

2019-10-06 Thread Greg Kroah-Hartman
From: Yunfeng Ye [ Upstream commit 24fbf7bad888767bed952f540ac963bc57e47e15 ] There are two problems in sec_free_hw_sgl(): First, when sgl_current->next is valid, @hw_sgl will be freed in the first loop, but it free again after the loop. Second, sgl_current and sgl_current->next_sgl is not mat

[PATCH 5.3 142/166] tipc: fix unlimited bundling of small messages

2019-10-06 Thread Greg Kroah-Hartman
From: Tuong Lien [ Upstream commit e95584a889e1902fdf1ded9712e2c3c3083baf96 ] We have identified a problem with the "oversubscription" policy in the link transmission code. When small messages are transmitted, and the sending link has reached the transmit window limit, those messages will be bu

[PATCH 5.3 143/166] udp: fix gso_segs calculations

2019-10-06 Thread Greg Kroah-Hartman
From: Josh Hunt [ Upstream commit 44b321e5020d782ad6e8ae8183f09b163be6e6e2 ] Commit dfec0ee22c0a ("udp: Record gso_segs when supporting UDP segmentation offload") added gso_segs calculation, but incorrectly got sizeof() the pointer and not the underlying data type. In addition let's fix the v6

[PATCH 5.3 116/166] pktcdvd: remove warning on attempting to register non-passthrough dev

2019-10-06 Thread Greg Kroah-Hartman
From: Jens Axboe [ Upstream commit eb09b3cc464d2c3bbde9a6648603c8d599ea8582 ] Anatoly reports that he gets the below warning when booting -git on a sparc64 box on debian unstable: ... [ 13.352975] aes_sparc64: Using sparc64 aes opcodes optimized AES implementation [ 13.428002] [

[PATCH 5.3 127/166] arm: use STACK_TOP when computing mmap base address

2019-10-06 Thread Greg Kroah-Hartman
From: Alexandre Ghiti [ Upstream commit 86e568e9c0525fc40e76d827212d5e9721cf7504 ] mmap base address must be computed wrt stack top address, using TASK_SIZE is wrong since STACK_TOP and TASK_SIZE are not equivalent. Link: http://lkml.kernel.org/r/20190730055113.23635-8-a...@ghiti.fr Signed-off-

[PATCH 5.3 138/166] qmi_wwan: add support for Cinterion CLS8 devices

2019-10-06 Thread Greg Kroah-Hartman
From: Reinhard Speyerer [ Upstream commit cf74ac6db25d4002089e85cc623ad149ecc25614 ] Add support for Cinterion CLS8 devices. Use QMI_QUIRK_SET_DTR as required for Qualcomm MDM9x07 chipsets. T: Bus=01 Lev=03 Prnt=05 Port=01 Cnt=02 Dev#= 25 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Pro

[PATCH 5.3 141/166] sch_dsmark: fix potential NULL deref in dsmark_init()

2019-10-06 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 474f0813a3002cb299bb73a5a93aa1f537a80ca8 ] Make sure TCA_DSMARK_INDICES was provided by the user. syzbot reported : kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] PRE

[PATCH 5.3 114/166] block, bfq: push up injection only after setting service time

2019-10-06 Thread Greg Kroah-Hartman
From: Paolo Valente [ Upstream commit 58494c980f40274c465ebfdece02d401def088bf ] If equal to 0, the injection limit for a bfq_queue is pushed to 1 after a first sample of the total service time of the I/O requests of the queue is computed (to allow injection to start). Yet, because of a mistake

[PATCH 5.3 091/166] PCI: pci-hyperv: Fix build errors on non-SYSFS config

2019-10-06 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit f58ba5e3f6863ea4486952698898848a6db726c2 ] Fix build errors when building almost-allmodconfig but with SYSFS not set (not enabled). Fixes these build errors: ERROR: "pci_destroy_slot" [drivers/pci/controller/pci-hyperv.ko] undefined! ERROR: "pci_create_slot"

[PATCH 5.3 089/166] rtc: bd70528: fix driver dependencies

2019-10-06 Thread Greg Kroah-Hartman
From: Matti Vaittinen [ Upstream commit 41a8e19f47dfe9154c56b35842700ad38a7c33e0 ] With CONFIG_BD70528_WATCHDOG=m, a built-in rtc driver cannot call into the low-level functions that are part of the watchdog module: drivers/rtc/rtc-bd70528.o: In function `bd70528_set_time': rtc-bd70528.c:(.text

[PATCH 5.3 083/166] MIPS: Dont use bc_false uninitialized in __mm_isBranchInstr

2019-10-06 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit c2869aafe7191d366d74c55cb8a93c6d0baba317 ] clang warns: arch/mips/kernel/branch.c:148:8: error: variable 'bc_false' is used uninitialized whenever switch case is taken [-Werror,-Wsometimes-uninitialized] case mm_bc2t_op:

[PATCH 5.3 088/166] HID: wacom: Fix several minor compiler warnings

2019-10-06 Thread Greg Kroah-Hartman
From: Jason Gerecke [ Upstream commit 073b50bccbbf99a3b79a1913604c656d0e1a56c9 ] Addresses a few issues that were noticed when compiling with non-default warnings enabled. The trimmed-down warnings in the order they are fixed below are: * declaration of 'size' shadows a parameter * '%s' direct

[PATCH 5.3 139/166] rxrpc: Fix rxrpc_recvmsg tracepoint

2019-10-06 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit db9b2e0af605e7c994784527abfd9276cabd718a ] Fix the rxrpc_recvmsg tracepoint to handle being called with a NULL call parameter. Fixes: a25e21f0bcd2 ("rxrpc, afs: Use debug_ids rather than pointers in traces") Signed-off-by: David Howells Signed-off-by: Davi

[PATCH 5.3 129/166] erspan: remove the incorrect mtu limit for erspan

2019-10-06 Thread Greg Kroah-Hartman
From: Haishuang Yan [ Upstream commit 0e141f757b2c78c983df893e9993313e2dc21e38 ] erspan driver calls ether_setup(), after commit 61e84623ace3 ("net: centralize net_device min/max MTU checking"), the range of mtu is [min_mtu, max_mtu], which is [68, 1500] by default. It causes the dev mtu of the

[PATCH 5.3 126/166] arm: properly account for stack randomization and stack guard gap

2019-10-06 Thread Greg Kroah-Hartman
From: Alexandre Ghiti [ Upstream commit af0f4297286f13a75edf93677b1fb2fc16c412a7 ] This commit takes care of stack randomization and stack guard gap when computing mmap base address and checks if the task asked for randomization. This fixes the problem uncovered and not fixed for arm here: http

[PATCH 5.3 087/166] PCI: tegra: Fix OF node reference leak

2019-10-06 Thread Greg Kroah-Hartman
From: Nishka Dasgupta [ Upstream commit 9e38e690ace3e7a22a81fc02652fc101efb340cf ] Each iteration of for_each_child_of_node() executes of_node_put() on the previous node, but in some return paths in the middle of the loop of_node_put() is missing thus causing a reference leak. Hence stash these

[PATCH 5.3 124/166] arm64: consider stack randomization for mmap base only when necessary

2019-10-06 Thread Greg Kroah-Hartman
From: Alexandre Ghiti [ Upstream commit e8d54b62c55ab6201de6d195fc2c276294c1f6ae ] Do not offset mmap base address because of stack randomization if current task does not want randomization. Note that x86 already implements this behaviour. Link: http://lkml.kernel.org/r/20190730055113.23635-4-

[PATCH 5.3 125/166] mips: properly account for stack randomization and stack guard gap

2019-10-06 Thread Greg Kroah-Hartman
From: Alexandre Ghiti [ Upstream commit b1f61b5bde3a1f50392c97b4c8513d1b8efb1cf2 ] This commit takes care of stack randomization and stack guard gap when computing mmap base address and checks if the task asked for randomization. This fixes the problem uncovered and not fixed for arm here: http

[PATCH 5.3 123/166] kmemleak: increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE default to 16K

2019-10-06 Thread Greg Kroah-Hartman
From: Nicolas Boichat [ Upstream commit b751c52bb587ae66f773b15204ef7a147467f4c7 ] The current default value (400) is too low on many systems (e.g. some ARM64 platform takes up 1000+ entries). syzbot uses 16000 as default value, and has proved to be enough on beefy configurations, so let's pic

[PATCH 5.3 121/166] kbuild: clean compressed initramfs image

2019-10-06 Thread Greg Kroah-Hartman
From: Greg Thelen [ Upstream commit 6279eb3dd7946c69346a3b98473ed13d3a44adb5 ] Since 9e3596b0c653 ("kbuild: initramfs cleanup, set target from Kconfig") "make clean" leaves behind compressed initramfs images. Example: $ make defconfig $ sed -i 's|CONFIG_INITRAMFS_SOURCE=""|CONFIG_INITRAMF

[PATCH 5.3 122/166] ocfs2: wait for recovering done after direct unlock request

2019-10-06 Thread Greg Kroah-Hartman
From: Changwei Ge [ Upstream commit 0a3775e4f883912944481cf2ef36eb6383a9cc74 ] There is a scenario causing ocfs2 umount hang when multiple hosts are rebooting at the same time. NODE1 NODE2 NODE3 send unlock requset to NODE2

[PATCH 5.3 117/166] hypfs: Fix error number left in struct pointer member

2019-10-06 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit b54c64f7adeb241423cd46598f458b5486b0375e ] In hypfs_fill_super(), if hypfs_create_update_file() fails, sbi->update_file is left holding an error number. This is passed to hypfs_kill_super() which doesn't check for this. Fix this by not setting sbi->update_

[PATCH 5.3 118/166] tools/power/x86/intel-speed-select: Fix high priority core mask over count

2019-10-06 Thread Greg Kroah-Hartman
From: Youquan Song [ Upstream commit 44460efe44e05eae2f21e57d06d542792e65 ] If the CPU package has the less logical CPU than topo_max_cpus, but un-present CPU's punit_cpu_core will be initiated to 0 and they will be count to core 0 Like below, there are only 10 high priority cores (20 logic

[PATCH 5.3 113/166] i2c: tegra: Move suspend handling to NOIRQ phase

2019-10-06 Thread Greg Kroah-Hartman
From: Jon Hunter [ Upstream commit 8ebf15e9c869e764b3aab4928938ee68c0e2bd6d ] Commit acc8abcb2a9c ("i2c: tegra: Add suspend-resume support") added suspend support for the Tegra I2C driver and following this change on Tegra30 the following WARNING is seen on entering suspend ... WARNING: CPU: 2

[PATCH 5.3 111/166] ARM: 8905/1: Emit __gnu_mcount_nc when using Clang 10.0.0 or newer

2019-10-06 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit b0fe66cf095016e0b238374c10ae366e1f087d11 ] Currently, multi_v7_defconfig + CONFIG_FUNCTION_TRACER fails to build with clang: arm-linux-gnueabi-ld: kernel/softirq.o: in function `_local_bh_enable': softirq.c:(.text+0x504): undefined reference to `mcount'

[PATCH 5.3 086/166] mfd: intel-lpss: Remove D3cold delay

2019-10-06 Thread Greg Kroah-Hartman
From: Kai-Heng Feng [ Upstream commit 76380a607ba0b28627c9b4b55cd47a079a59624b ] Goodix touchpad may drop its first couple input events when i2c-designware-platdrv and intel-lpss it connects to took too long to runtime resume from runtime suspended state. This issue happens becuase the touchpad

[PATCH 5.3 110/166] PCI: Use static const struct, not const static struct

2019-10-06 Thread Greg Kroah-Hartman
From: Krzysztof Wilczynski [ Upstream commit 8050f3f6645ae0f7e4c1304593f6f7eb2ee7d85c ] Move the static keyword to the front of declarations of pci_regs_behavior[] and pcie_cap_regs_behavior[], which resolves compiler warnings when building with "W=1": drivers/pci/pci-bridge-emul.c:41:1: warn

[PATCH 5.3 093/166] livepatch: Nullify obj->mod in klp_module_coming()s error path

2019-10-06 Thread Greg Kroah-Hartman
From: Miroslav Benes [ Upstream commit 4ff96fb52c6964ad42e0a878be8f86a2e8052ddd ] klp_module_coming() is called for every module appearing in the system. It sets obj->mod to a patched module for klp_object obj. Unfortunately it leaves it set even if an error happens later in the function and the

[PATCH 5.3 094/166] mips/atomic: Fix smp_mb__{before,after}_atomic()

2019-10-06 Thread Greg Kroah-Hartman
From: Peter Zijlstra [ Upstream commit 42344113ba7a1ed7b5654cd5270af0d5698d8521 ] Recent probing at the Linux Kernel Memory Model uncovered a 'surprise'. Strongly ordered architectures where the atomic RmW primitive implies full memory ordering and smp_mb__{before,after}_atomic() are a simple ba

[PATCH 5.3 085/166] i2c-cht-wc: Fix lockdep warning

2019-10-06 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit 232219b9a464c2479c98aa589acb1bd3383ae9d6 ] When the kernel is build with lockdep support and the i2c-cht-wc driver is used, the following warning is shown: [ 66.674334] == [ 66.674337] WARNING: possibl

[PATCH 5.3 101/166] power: supply: register HWMON devices with valid names

2019-10-06 Thread Greg Kroah-Hartman
From: Romain Izard [ Upstream commit f1b937cc86bedf94dbc3478c2c0dc79471081fff ] With the introduction of the HWMON compatibility layer to the power supply framework in Linux 5.3, all power supply devices' names can be used directly to create HWMON devices with the same names. But HWMON has rule

[PATCH 5.3 095/166] ARM: 8898/1: mm: Dont treat faults reported from cache maintenance as writes

2019-10-06 Thread Greg Kroah-Hartman
From: Will Deacon [ Upstream commit 834020366da9ab3fb87d1eb9a3160eb22dbed63a ] Translation faults arising from cache maintenance instructions are rather unhelpfully reported with an FSR value where the WnR field is set to 1, indicating that the faulting access was a write. Since cache maintenanc

[PATCH 5.3 098/166] ARM: 8875/1: Kconfig: default to AEABI w/ Clang

2019-10-06 Thread Greg Kroah-Hartman
From: Nick Desaulniers [ Upstream commit a05b9608456e0d4464c6f7ca8572324ace57a3f4 ] Clang produces references to __aeabi_uidivmod and __aeabi_idivmod for arm-linux-gnueabi and arm-linux-gnueabihf targets incorrectly when AEABI is not selected (such as when OABI_COMPAT is selected). While this m

[PATCH 5.3 103/166] PCI: Add pci_info_ratelimited() to ratelimit PCI separately

2019-10-06 Thread Greg Kroah-Hartman
From: Krzysztof Wilczynski [ Upstream commit 7f1c62c443a453deb6eb3515e3c05650ffe0dcf0 ] Do not use printk_ratelimit() in drivers/pci/pci.c as it shares the rate limiting state with all other callers to the printk_ratelimit(). Add pci_info_ratelimited() (similar to pci_notice_ratelimited() added

[PATCH 5.3 100/166] rtc: pcf85363/pcf85263: fix regmap error in set_time

2019-10-06 Thread Greg Kroah-Hartman
From: Biwen Li [ Upstream commit 7ef66122bdb3b839e9f51b76d7e600b6e21ef648 ] Issue: - # hwclock -w hwclock: RTC_SET_TIME: Invalid argument Why: - Relative commit: 8b9f9d4dc511 ("regmap: verify if register is writeable before writing operations"), this patch will always

[PATCH 5.3 104/166] HID: apple: Fix stuck function keys when using FN

2019-10-06 Thread Greg Kroah-Hartman
From: Joao Moreno [ Upstream commit aec256d0ecd561036f188dbc8fa7924c47a9edfd ] This fixes an issue in which key down events for function keys would be repeatedly emitted even after the user has raised the physical key. For example, the driver fails to emit the F5 key up event when going through

[PATCH 5.3 099/166] rtc: snvs: fix possible race condition

2019-10-06 Thread Greg Kroah-Hartman
From: Anson Huang [ Upstream commit 6fd4fe9b496d9ba3382992ff4fde3871d1b6f63d ] The RTC IRQ is requested before the struct rtc_device is allocated, this may lead to a NULL pointer dereference in IRQ handler. To fix this issue, allocating the rtc_device struct before requesting the RTC IRQ using

[PATCH 5.3 106/166] PCI: histb: Propagate errors for optional regulators

2019-10-06 Thread Greg Kroah-Hartman
From: Thierry Reding [ Upstream commit 8f9e1641ba445437095411d9fda2324121110d5d ] regulator_get_optional() can fail for a number of reasons besides probe deferral. It can for example return -ENOMEM if it runs out of memory as it tries to allocate data structures. Propagating only -EPROBE_DEFER i

[PATCH 5.3 107/166] PCI: imx6: Propagate errors for optional regulators

2019-10-06 Thread Greg Kroah-Hartman
From: Thierry Reding [ Upstream commit 2170a09fb4b0f66e06e5bcdcbc98c9ccbf353650 ] regulator_get_optional() can fail for a number of reasons besides probe deferral. It can for example return -ENOMEM if it runs out of memory as it tries to allocate data structures. Propagating only -EPROBE_DEFER i

[PATCH 5.3 109/166] security: smack: Fix possible null-pointer dereferences in smack_socket_sock_rcv_skb()

2019-10-06 Thread Greg Kroah-Hartman
From: Jia-Ju Bai [ Upstream commit 3f4287e7d98a2954f20bf96c567fdffcd2b63eb9 ] In smack_socket_sock_rcv_skb(), there is an if statement on line 3920 to check whether skb is NULL: if (skb && skb->secmark != 0) This check indicates skb can be NULL in some cases. But on lines 3931 and 3932, sk

[PATCH 5.3 080/166] f2fs: fix to drop meta/node pages during umount

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 074/166] clk: Make clk_bulk_get_all() return a valid "id"

2019-10-06 Thread Greg Kroah-Hartman
From: Bjorn Andersson [ Upstream commit 7f81c2426587b34bf73e643c1a6d080dfa14cf8a ] The adreno driver expects the "id" field of the returned clk_bulk_data to be filled in with strings from the clock-names property. But due to the use of kmalloc_array() in of_clk_bulk_get_all() it receives a list

[PATCH 5.3 040/166] powerpc/rtas: use device model APIs and serialization during LPM

2019-10-06 Thread Greg Kroah-Hartman
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

[PATCH 5.3 042/166] powerpc/futex: Fix warning: oldval may be used uninitialized in this function

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 043/166] powerpc/64s/radix: Fix memory hotplug section page table creation

2019-10-06 Thread Greg Kroah-Hartman
From: Nicholas Piggin [ Upstream commit 8f51e3929470942e6a8744061254fdeef646cd36 ] create_physical_mapping expects physical addresses, but creating and splitting these mappings after boot is supplying virtual (effective) addresses. This can be irritated by booting with mem= to limit memory then

[PATCH 5.3 079/166] dma-buf/sw_sync: Synchronize signal vs syncpt free

2019-10-06 Thread Greg Kroah-Hartman
From: Chris Wilson [ Upstream commit d3c6dd1fb30d3853c2012549affe75c930f4a2f9 ] During release of the syncpt, we remove it from the list of syncpt and the tree, but only if it is not already been removed. However, during signaling, we first remove the syncpt from the list. So, if we concurrently

[PATCH 5.3 071/166] clk: at91: select parent if main oscillator or bypass is enabled

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 072/166] clk: imx: pll14xx: avoid glitch when set rate

2019-10-06 Thread Greg Kroah-Hartman
From: Peng Fan [ Upstream commit dee1bc9c23cd41fe32549c0adbe6cb57cab02282 ] According to PLL1443XA and PLL1416X spec, "When BYPASS is 0 and RESETB is changed from 0 to 1, FOUT starts to output unstable clock until lock time passes. PLL1416X/PLL1443XA may generate a glitch at FOUT." So set BYPAS

[PATCH 5.3 070/166] arm64: fix unreachable code issue with cmpxchg

2019-10-06 Thread Greg Kroah-Hartman
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

[PATCH 5.3 078/166] scsi: core: Reduce memory required for SCSI logging

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 073/166] clk: imx: clk-pll14xx: unbypass PLL by default

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 045/166] powerpc/perf: fix imc allocation failure handling

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 077/166] clk: sprd: add missing kfree

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 081/166] ext4: fix potential use after free after remounting with noblock_validity

2019-10-06 Thread Greg Kroah-Hartman
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 with

[PATCH 5.3 023/166] pinctrl: stmfx: update pinconf settings

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 057/166] drm/amd/display: fix MPO HUBP underflow with Scatter Gather

2019-10-06 Thread Greg Kroah-Hartman
From: Zi Yu Liao [ Upstream commit 89cb5614736b9b5d3b833ca2237d10da6b4b0395 ] [why] With Scatter Gather enabled, HUBP underflows during MPO enabled video playback. hubp_init has a register write that fixes this problem, but the register is cleared when HUBP gets power gated. [how] Make a call t

[PATCH 5.3 050/166] drm/nouveau/kms/tu102-: disable input lut when input is already FP16

2019-10-06 Thread Greg Kroah-Hartman
From: Ben Skeggs [ Upstream commit 1e339ab2ac3c769c1b06b9fb7d532f8495ebc56d ] On Turing, an input LUT is required to transform inputs in fixed-point formats to FP16 for the internal display pipe. We provide an identity mapping whenever a window is enabled for this reason. HW has error checks t

[PATCH 5.3 049/166] drm/amdgpu/sdma5: fix number of sdma5 trap irq types for navi1x

2019-10-06 Thread Greg Kroah-Hartman
From: Xiaojie Yuan [ Upstream commit 9e48495017342c5d445b25eedd86d6fd884a6496 ] v2: set num_types based on num_instances navi1x has 2 sdma engines but commit "e7b58d03b678 drm/amdgpu: reorganize sdma v4 code to support more instances" changes the max number of sdma irq types (AMDGPU_SDMA_IRQ_LA

[PATCH 5.3 054/166] clk: renesas: cpg-mssr: Set GENPD_FLAG_ALWAYS_ON for clock domain

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 048/166] vfio_pci: Restore original state on release

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 065/166] clk: qcom: gcc-sdm845: Use floor ops for sdcc clks

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 063/166] pstore: fs superblock limits

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 064/166] powerpc/eeh: Clean up EEH PEs after recovery finishes

2019-10-06 Thread Greg Kroah-Hartman
From: Oliver O'Halloran [ Upstream commit 799abe283e5103d48e079149579b4f167c95ea0e ] When the last device in an eeh_pe is removed the eeh_pe structure itself (and any empty parents) are freed since they are no longer needed. This results in a crash when a hotplug driver is involved since the fol

[PATCH 5.3 058/166] drm/amd/display: fix trigger not generated for freesync

2019-10-06 Thread Greg Kroah-Hartman
From: Yogesh Mohan Marimuthu [ Upstream commit 1e7f100ce8c0640634b794604880d9204480c9f1 ] [Why] In newer hardware MANUAL_FLOW_CONTROL is not a trigger bit. Due to this front porch is fixed and in these hardware freesync does not work. [How] Change the programming to generate a pulse so that the

[PATCH 5.3 052/166] pinctrl: amd: disable spurious-firing GPIO IRQs

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 067/166] pinctrl: meson-gxbb: Fix wrong pinning definition for uart_c

2019-10-06 Thread Greg Kroah-Hartman
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 5.3 060/166] kbuild: Do not enable -Wimplicit-fallthrough for clang for now

2019-10-06 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit e2079e93f562c7f7a030eb7642017ee5eabaaa10 ] This functionally reverts commit bfd77145f35c ("Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang"). clang enabled support for -Wimplicit-fallthrough in C in r369414 [1], which

[PATCH 5.3 056/166] drm/amd/powerpaly: fix navi series custom peak level value error

2019-10-06 Thread Greg Kroah-Hartman
From: Kevin Wang [ Upstream commit 706feb26f890e1b8297b5d14975160de361edf4f ] fix other navi asic set peak performance level error. because the navi10_ppt.c will handle navi12 14 asic, it will use navi10 peak value to set other asic, it is not correct. after patch: only navi10 use custom peak v

[PATCH 5.3 069/166] ARM: dts: dir685: Drop spi-cpol from the display

2019-10-06 Thread Greg Kroah-Hartman
From: Linus Walleij [ Upstream commit 2a7326caab479ca257c4b9bd67db42d1d49079bf ] The D-Link DIR-685 had its clock polarity set as active low using the special SPI "spi-cpol" property. This is not correct: the datasheet clearly states: "Fix SCL to GND level when not in use" which is indicative t

[PATCH 5.3 068/166] mailbox: mediatek: cmdq: clear the event in cmdq initial flow

2019-10-06 Thread Greg Kroah-Hartman
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

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