Re: [PATCH 15/15] power: supply: olpc_battery: Add OLPC XO 1.75 support

2018-11-04 Thread Pavel Machek
On Wed 2018-10-10 19:23:00, Lubomir Rintel wrote: > The battery and the protocol are essentially the same as OLPC XO 1.5, > but the responses from the EC are LSB first. > > Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesky,

Re: [PATCH 0/8] Detach TPM space code out of the tpm_transmit() flow

2018-11-04 Thread Jarkko Sakkinen
On Sun, Nov 04, 2018 at 07:46:43AM +, Winkler, Tomas wrote: > > Subject: [PATCH 0/8] Detach TPM space code out of the tpm_transmit() flow > > You forgot to version your posts this should be V2 in the subject, right? > Thanks > Tomas Correct. Please hold with the review. I'll send soon v3.

Re: [alsa-devel] [PATCH] ASoC: skl: always select SND_SOC_HDAC_HDA

2018-11-04 Thread Pierre-Louis Bossart
On 11/2/18 5:03 PM, Arnd Bergmann wrote: On 11/2/18, Pierre-Louis Bossart wrote: On 11/2/18 6:24 AM, Arnd Bergmann wrote: The skylake sound support is written to work both with or without CONFIG_SND_SOC_HDAC_HDA, and uses an #ifdef to decide whether it should link against that. However,

Call Trace: ...event ... with 4.18.17

2018-11-04 Thread Toralf Förster
At a stable hardened Gentoo Linxu I observed with 4.18.17 at a headless server: Nov 4 18:13:27 mr-fox kernel: sd 1:0:0:0: [sdb] Attached SCSI disk Nov 4 18:13:27 mr-fox kernel: EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null) Nov 4 18:13:27 mr-fox kernel: VFS: Mounted

[PATCH AUTOSEL 4.14 08/30] powerpc/eeh: Fix possible null deref in eeh_dump_dev_log()

2018-11-04 Thread Sasha Levin
From: Sam Bobroff [ Upstream commit f9bc28aedfb5bbd572d2d365f3095c1becd7209b ] If an error occurs during an unplug operation, it's possible for eeh_dump_dev_log() to be called when edev->pdn is null, which currently leads to dereferencing a null pointer. Handle this by skipping the error log

[PATCH AUTOSEL 4.14 02/30] userfaultfd: allow get_mempolicy(MPOL_F_NODE|MPOL_F_ADDR) to trigger userfaults

2018-11-04 Thread Sasha Levin
From: Andrea Arcangeli [ Upstream commit 3b9aadf7278d16d7bed4d5d808501065f70898d8 ] get_mempolicy(MPOL_F_NODE|MPOL_F_ADDR) called a get_user_pages that would not be waiting for userfaults before failing and it would hit on a SIGBUS instead. Using get_user_pages_locked/unlocked instead will

[PATCH AUTOSEL 4.14 07/30] powerpc/mm: Fix page table dump to work on Radix

2018-11-04 Thread Sasha Levin
From: Michael Ellerman [ Upstream commit 0d923962ab69c27cca664a2d535e90ef655110ca ] When we're running on Book3S with the Radix MMU enabled the page table dump currently prints the wrong addresses because it uses the wrong start address. Fix it to use PAGE_OFFSET rather than KERN_VIRT_START.

[PATCH AUTOSEL 4.14 05/30] powerpc/traps: restore recoverability of machine_check interrupts

2018-11-04 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit daf00ae71dad8aa05965713c62558aeebf2df48e ] commit b96672dd840f ("powerpc: Machine check interrupt is a non- maskable interrupt") added a call to nmi_enter() at the beginning of machine check restart exception handler. Due to that, in_interrupt() always

[PATCH AUTOSEL 4.14 03/30] mm: don't miss the last page because of round-off error

2018-11-04 Thread Sasha Levin
From: Roman Gushchin [ Upstream commit 68600f623d69da428c6163275f97ca126e1a8ec5 ] I've noticed, that dying memory cgroups are often pinned in memory by a single pagecache page. Even under moderate memory pressure they sometimes stayed in such state for a long time. That looked strange. My

[PATCH AUTOSEL 4.14 17/30] drm/hisilicon: hibmc: Do not carry error code in HiBMC framebuffer pointer

2018-11-04 Thread Sasha Levin
From: John Garry [ Upstream commit 331d880b35a76b5de0eec8cbcecbf615d758a5f9 ] In hibmc_drm_fb_create(), when the call to hibmc_framebuffer_init() fails with error, do not store the error code in the HiBMC device frame-buffer pointer, as this will be later checked for non-zero value in

[PATCH AUTOSEL 4.14 13/30] watchdog: lantiq: update register names to better match spec

2018-11-04 Thread Sasha Levin
From: Hauke Mehrtens [ Upstream commit 1f59f8aff98f200af7a6882184add7b85f5da741 ] Some of the names of the bits were confusing to me. Now the bits share the same prefix as the register they are set on. The LTQ_WDT_CR_PWL register (bits 26:25) is the pre warning limit and it does not turn

[PATCH AUTOSEL 4.14 15/30] iio: adc: at91: fix wrong channel number in triggered buffer mode

2018-11-04 Thread Sasha Levin
From: Eugen Hristev [ Upstream commit aea835f2dc8a682942b859179c49ad1841a6c8b9 ] When channels are registered, the hardware channel number is not the actual iio channel number. This is because the driver is probed with a certain number of accessible channels. Some pins are routed and some not,

[PATCH AUTOSEL 4.14 18/30] media: pci: cx23885: handle adding to list failure

2018-11-04 Thread Sasha Levin
From: Nicholas Mc Guire [ Upstream commit c5d59528e24ad22500347b199d52b9368e686a42 ] altera_hw_filt_init() which calls append_internal() assumes that the node was successfully linked in while in fact it can silently fail. So the call-site needs to set return to -ENOMEM on append_internal()

[PATCH AUTOSEL 4.14 21/30] MIPS: kexec: Mark CPU offline before disabling local IRQ

2018-11-04 Thread Sasha Levin
From: Dengcheng Zhu [ Upstream commit dc57aaf95a516f70e2d527d8287a0332c481a226 ] After changing CPU online status, it will not be sent any IPIs such as in __flush_cache_all() on software coherency systems. Do this before disabling local IRQ. Signed-off-by: Dengcheng Zhu Signed-off-by: Paul

[PATCH AUTOSEL 4.14 16/30] iio: adc: at91: fix acking DRDY irq on simple conversions

2018-11-04 Thread Sasha Levin
From: Eugen Hristev [ Upstream commit bc1b45326223e7e890053cf6266357adfa61942d ] When doing simple conversions, the driver did not acknowledge the DRDY irq. If this irq status is not acked, it will be left pending, and as soon as a trigger is enabled, the irq handler will be called, it doesn't

[PATCH AUTOSEL 4.14 12/30] powerpc/mm: Don't report hugepage tables as memory leaks when using kmemleak

2018-11-04 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 803d690e68f0c5230183f1a42c7d50a41d16e380 ] When a process allocates a hugepage, the following leak is reported by kmemleak. This is a false positive which is due to the pointer to the table being stored in the PGD as physical memory address and not

[PATCH AUTOSEL 4.14 10/30] ARM: imx_v6_v7_defconfig: Select CONFIG_TMPFS_POSIX_ACL

2018-11-04 Thread Sasha Levin
From: Fabio Estevam [ Upstream commit 35d3cbe84544da74e39e1cec01374092467e3119 ] Andreas Müller reports: "Fixes: | Sep 04 09:05:10 imx6qdl-variscite-som systemd-udevd[220]: Failed to apply ACL on /dev/v4l-subdev0: Operation not supported | Sep 04 09:05:10 imx6qdl-variscite-som

[PATCH AUTOSEL 4.14 19/30] media: coda: don't overwrite h.264 profile_idc on decoder instance

2018-11-04 Thread Sasha Levin
From: Lucas Stach [ Upstream commit 1f32061e843205f6fe8404d5100d5adcec334e75 ] On a decoder instance, after the profile has been parsed from the stream __v4l2_ctrl_s_ctrl() is called to notify userspace about changes in the read-only profile control. This ends up calling back into the CODA

[PATCH AUTOSEL 4.19 06/57] userfaultfd: allow get_mempolicy(MPOL_F_NODE|MPOL_F_ADDR) to trigger userfaults

2018-11-04 Thread Sasha Levin
From: Andrea Arcangeli [ Upstream commit 3b9aadf7278d16d7bed4d5d808501065f70898d8 ] get_mempolicy(MPOL_F_NODE|MPOL_F_ADDR) called a get_user_pages that would not be waiting for userfaults before failing and it would hit on a SIGBUS instead. Using get_user_pages_locked/unlocked instead will

[PATCH AUTOSEL 4.19 07/57] mm: don't miss the last page because of round-off error

2018-11-04 Thread Sasha Levin
From: Roman Gushchin [ Upstream commit 68600f623d69da428c6163275f97ca126e1a8ec5 ] I've noticed, that dying memory cgroups are often pinned in memory by a single pagecache page. Even under moderate memory pressure they sometimes stayed in such state for a long time. That looked strange. My

[PATCH AUTOSEL 4.19 08/57] mm: don't warn about large allocations for slab

2018-11-04 Thread Sasha Levin
From: Dmitry Vyukov [ Upstream commit 61448479a9f2c954cde0cfe778cb6bec5d0a748d ] Slub does not call kmalloc_slab() for sizes > KMALLOC_MAX_CACHE_SIZE, instead it falls back to kmalloc_large(). For slab KMALLOC_MAX_CACHE_SIZE == KMALLOC_MAX_SIZE and it calls kmalloc_slab() for all allocations

[PATCH AUTOSEL 4.19 11/57] powerpc/64/module: REL32 relocation range check

2018-11-04 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit b851ba02a6f3075f0f99c60c4bc30a4af80cf428 ] The recent module relocation overflow crash demonstrated that we have no range checking on REL32 relative relocations. This patch implements a basic check, the same kernel that previously oopsed and rebooted now

[PATCH AUTOSEL 4.19 14/57] drm/amd/display: fix bug of accessing invalid memory

2018-11-04 Thread Sasha Levin
From: Su Sung Chung [ Upstream commit 43c3ff27a47d83d153c4adc088243ba594582bf5 ] [Why] A loop inside of build_evenly_distributed_points function that traverse through the array of points become an infinite loop when m_GammaUpdates does not get assigned to any value. [How] In DMColor, clear

[PATCH AUTOSEL 4.19 04/57] mm: don't raise MEMCG_OOM event due to failed high-order allocation

2018-11-04 Thread Sasha Levin
From: Roman Gushchin [ Upstream commit 7a1adfddaf0d11a39fdcaf6e82a88e9c0586e08b ] It was reported that on some of our machines containers were restarted with OOM symptoms without an obvious reason. Despite there were almost no memory pressure and plenty of page cache, MEMCG_OOM event was

Re: [PATCH] ARM: dts: i.MX25: add the clocks for the EPIT blocks

2018-11-04 Thread Shawn Guo
On Thu, Nov 01, 2018 at 06:32:47PM +0100, Martin Kaiser wrote: > The i.MX25 contains two EPIT (Enhanced Periodic Interrupt Timer) > function blocks. Add their ipg and per clocks to the device tree. > > Signed-off-by: Martin Kaiser Are these EPIT devices actually used in upstream kernel, or just

Re: [GIT PULL] NTB patches for v4.20

2018-11-04 Thread Linus Torvalds
On Sat, Nov 3, 2018 at 9:00 PM Jon Mason wrote: > > Here are a few NTB patches for v4.20. Fairly minor changes and bug > fixes. Pulled, Linus

Re: [GIT PULL] Please pull NFS client bugfix for 4.20

2018-11-04 Thread Linus Torvalds
On Sun, Nov 4, 2018 at 5:56 AM Trond Myklebust wrote: > > NFS client bugfixes for Linux 4.20 Pulled, Linus

Re: [PATCH v3 1/6] staging:iio:ad2s90: Make read_raw return spi_read's error code

2018-11-04 Thread Jonathan Cameron
On Sat, 3 Nov 2018 19:49:43 -0300 Matheus Tavares wrote: > Previously, when spi_read returned an error code inside ad2s90_read_raw, > the code was ignored and IIO_VAL_INT was returned. This patch makes the > function return the error code returned by spi_read when it fails. > > Signed-off-by:

Re: [PATCH v3 2/6] staging:iio:ad2s90: Make probe handle spi_setup failure

2018-11-04 Thread Jonathan Cameron
On Sat, 3 Nov 2018 19:49:44 -0300 Matheus Tavares wrote: > Previously, ad2s90_probe ignored the return code from spi_setup, not > handling its possible failure. This patch makes ad2s90_probe check if > the code is an error code and, if so, do the following: > > - Call dev_err with an

Re: [PATCH v3 3/6] staging:iio:ad2s90: Remove always overwritten assignment

2018-11-04 Thread Jonathan Cameron
On Sat, 3 Nov 2018 19:49:45 -0300 Matheus Tavares wrote: > This patch removes an initial assignment to the variable ret at probe, > that was always overwritten. > > Signed-off-by: Matheus Tavares Applied to the togreg branch of iio.git and pushed out as testing to see if we are both wrong and

Linux Foundation Technical Advisory Board Elections -- Call for nominations

2018-11-04 Thread Chris Mason
Hello everyone, Friendly reminder that the TAB elections are coming soon. The Linux Foundation Technical Advisory Board (TAB) serves as the interface between the kernel development community and the Linux Foundation. The TAB advises the Foundation on kernel-related matters, helps member

[PATCH V6 8/8] KVM: Log ROE violations in system log

2018-11-04 Thread Ahmed Abd El Mawgood
Signed-off-by: Ahmed Abd El Mawgood --- virt/kvm/kvm_main.c| 7 +++ virt/kvm/roe.c | 14 ++ virt/kvm/roe_generic.h | 2 ++ 3 files changed, 23 insertions(+) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 48c5d9d9474e..d625db7f5350 100644 ---

[PATCH V6 7/8] KVM: X86: Port ROE_MPROTECT_CHUNK to x86

2018-11-04 Thread Ahmed Abd El Mawgood
Apply d->memslot->partial_roe_bitmap to shadow page table entries too. Signed-off-by: Ahmed Abd El Mawgood --- arch/x86/kvm/roe.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/roe.c b/arch/x86/kvm/roe.c index cd3e6944c15f..b2b50fbcd598 100644 ---

[PATCH V6 2/8] KVM: X86: Add arbitrary data pointer in kvm memslot iterator functions

2018-11-04 Thread Ahmed Abd El Mawgood
This will help sharing data into the slot_level_handler callback. In my case I need to a share a counter for the pages traversed to use it in some bitmap. Being able to send arbitrary memory pointer into the slot_level_handler callback made it easy. Signed-off-by: Ahmed Abd El Mawgood ---

[PATCH V6 3/8] KVM: Document Memory ROE

2018-11-04 Thread Ahmed Abd El Mawgood
ROE version documented here is implemented in the next 2 patches Signed-off-by: Ahmed Abd El Mawgood --- Documentation/virtual/kvm/hypercalls.txt | 31 1 file changed, 31 insertions(+) diff --git a/Documentation/virtual/kvm/hypercalls.txt

[PATCH] ext4: missing !bh check in ext4_xattr_inode_write()

2018-11-04 Thread Vasily Averin
ext4_getblk() called with map_flags=0 can return NULL, it can lead to oops on bh dereferemce Fixes e50e5129f384 ("ext4: xattr-in-inode support") Cc: sta...@kernel.org # 4.13 Signed-off-by: Vasily Averin --- fs/ext4/xattr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/ext4/xattr.c

[PATCH AUTOSEL 4.18 29/45] media: coda: don't overwrite h.264 profile_idc on decoder instance

2018-11-04 Thread Sasha Levin
From: Lucas Stach [ Upstream commit 1f32061e843205f6fe8404d5100d5adcec334e75 ] On a decoder instance, after the profile has been parsed from the stream __v4l2_ctrl_s_ctrl() is called to notify userspace about changes in the read-only profile control. This ends up calling back into the CODA

[PATCH AUTOSEL 4.14 11/30] powerpc/nohash: fix undefined behaviour when testing page size support

2018-11-04 Thread Sasha Levin
From: Daniel Axtens [ Upstream commit f5e284803a7206d43e26f9ffcae5de9626d95e37 ] When enumerating page size definitions to check hardware support, we construct a constant which is (1U << (def->shift - 10)). However, the array of page size definitions is only initalised for various MMU_PAGE_*

[PATCH AUTOSEL 4.18 30/45] iio: adc: imx25-gcq: Fix leak of device_node in mx25_gcq_setup_cfgs()

2018-11-04 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit d3fa21c73c391975488818b085b894c2980ea052 ] Leaving for_each_child_of_node loop we should release child device node, if it is not stored for future use. Found by Linux Driver Verification project (linuxtesting.org). JC: I'm not sending this as a quick

[PATCH AUTOSEL 4.14 24/30] MIPS/PCI: Call pcie_bus_configure_settings() to set MPS/MRRS

2018-11-04 Thread Sasha Levin
From: Huacai Chen [ Upstream commit 2794f688b2c336e0da85e9f91fed33febbd9f54a ] Call pcie_bus_configure_settings() on MIPS, like for other platforms. The function pcie_bus_configure_settings() makes sure the MPS (Max Payload Size) across the bus is uniform and provides the ability to tune the

[PATCH AUTOSEL 4.18 43/45] udf: Prevent write-unsupported filesystem to be remounted read-write

2018-11-04 Thread Sasha Levin
From: Jan Kara [ Upstream commit a9ad01bc759df79b0012f43ee52164391e31cd96 ] There are certain filesystem features which we support for reading but not for writing. We properly refuse to mount such filesystems read-write however for some features (such as read-only partitions), we don't check

[PATCH AUTOSEL 4.18 41/45] staging: most: video: fix registration of an empty comp core_component

2018-11-04 Thread Sasha Levin
From: Colin Ian King [ Upstream commit 1f447e51c0b9e8beeec0917ea5f51930f55e17c9 ] Currently we have structrues comp (which is empty) and comp_info being used to register and deregister the component. This mismatch in naming occurred from a previous commit that renamed aim_info to comp. Fix

[PATCH AUTOSEL 4.14 01/30] mm/vmstat.c: assert that vmstat_text is in sync with stat_items_size

2018-11-04 Thread Sasha Levin
From: Jann Horn [ Upstream commit f0ecf25a093fc0589f0a6bc4c1ea068bbb67d220 ] Having two gigantic arrays that must manually be kept in sync, including ifdefs, isn't exactly robust. To make it easier to catch such issues in the future, add a BUILD_BUG_ON(). Link:

[PATCH AUTOSEL 4.14 09/30] tty: check name length in tty_find_polling_driver()

2018-11-04 Thread Sasha Levin
From: Miles Chen [ Upstream commit 33a1a7be198657c8ca26ad406c4d2a89b7162bcc ] The issue is found by a fuzzing test. If tty_find_polling_driver() recevies an incorrect input such as ',,' or '0b', the len becomes 0 and strncmp() always return 0. In this case, a null p->ops->poll_init() is called

[PATCH AUTOSEL 4.14 14/30] drm/omap: fix memory barrier bug in DMM driver

2018-11-04 Thread Sasha Levin
From: Tomi Valkeinen [ Upstream commit 538f66ba204944470a653a45f8befdf97c22 ] A DMM timeout "timed out waiting for done" has been observed on DRA7 devices. The timeout happens rarely, and only when the system is under heavy load. Debugging showed that the timeout can be made to happen much

[PATCH AUTOSEL 4.14 06/30] powerpc/64/module: REL32 relocation range check

2018-11-04 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit b851ba02a6f3075f0f99c60c4bc30a4af80cf428 ] The recent module relocation overflow crash demonstrated that we have no range checking on REL32 relative relocations. This patch implements a basic check, the same kernel that previously oopsed and rebooted now

[PATCH AUTOSEL 4.14 04/30] mm: don't warn about large allocations for slab

2018-11-04 Thread Sasha Levin
From: Dmitry Vyukov [ Upstream commit 61448479a9f2c954cde0cfe778cb6bec5d0a748d ] Slub does not call kmalloc_slab() for sizes > KMALLOC_MAX_CACHE_SIZE, instead it falls back to kmalloc_large(). For slab KMALLOC_MAX_CACHE_SIZE == KMALLOC_MAX_SIZE and it calls kmalloc_slab() for all allocations

[PATCH AUTOSEL 4.18 02/45] mm: thp: fix mmu_notifier in migrate_misplaced_transhuge_page()

2018-11-04 Thread Sasha Levin
From: Andrea Arcangeli [ Upstream commit 7066f0f933a1fd707bb38781866657769cff7efc ] change_huge_pmd() after arming the numa/protnone pmd doesn't flush the TLB right away. do_huge_pmd_numa_page() flushes the TLB before calling migrate_misplaced_transhuge_page(). By the time

[PATCH AUTOSEL 4.18 14/45] powerpc/Makefile: Fix PPC_BOOK3S_64 ASFLAGS

2018-11-04 Thread Sasha Levin
From: Joel Stanley [ Upstream commit 960e30029863db95ec79a71009272d4661db5991 ] Ever since commit 15a3204d24a3 ("powerpc/64s: Set assembler machine type to POWER4") we force -mpower4 to be passed to the assembler irrespective of the CFLAGS used (for Book3s 64). When building a powerpc64 kernel

[PATCH AUTOSEL 4.18 18/45] drm/amdgpu/powerplay: fix missing break in switch statements

2018-11-04 Thread Sasha Levin
From: Colin Ian King [ Upstream commit 14b284832e7dea6f54f0adfd7bed105548b94e57 ] There are several switch statements that are missing break statements. Add missing breaks to handle any fall-throughs corner cases. Detected by CoverityScan, CID#1457175 ("Missing break in switch") Fixes:

[PATCH AUTOSEL 4.18 24/45] iio: adc: at91: fix wrong channel number in triggered buffer mode

2018-11-04 Thread Sasha Levin
From: Eugen Hristev [ Upstream commit aea835f2dc8a682942b859179c49ad1841a6c8b9 ] When channels are registered, the hardware channel number is not the actual iio channel number. This is because the driver is probed with a certain number of accessible channels. Some pins are routed and some not,

[PATCH AUTOSEL 4.18 06/45] mm: don't miss the last page because of round-off error

2018-11-04 Thread Sasha Levin
From: Roman Gushchin [ Upstream commit 68600f623d69da428c6163275f97ca126e1a8ec5 ] I've noticed, that dying memory cgroups are often pinned in memory by a single pagecache page. Even under moderate memory pressure they sometimes stayed in such state for a long time. That looked strange. My

[PATCH AUTOSEL 4.19 38/57] MIPS: kexec: Mark CPU offline before disabling local IRQ

2018-11-04 Thread Sasha Levin
From: Dengcheng Zhu [ Upstream commit dc57aaf95a516f70e2d527d8287a0332c481a226 ] After changing CPU online status, it will not be sent any IPIs such as in __flush_cache_all() on software coherency systems. Do this before disabling local IRQ. Signed-off-by: Dengcheng Zhu Signed-off-by: Paul

[PATCH AUTOSEL 4.19 48/57] drm: rcar-du: Update Gen3 output limitations

2018-11-04 Thread Sasha Levin
From: Kieran Bingham [ Upstream commit 2a3181d9cfd6d5aa48f8527708d0c32072072cef ] The R-Car Gen3 DU utilises the VSP1 hardware for memory access. The limits on the RPF and WPF in this pipeline are 8190x8190. Update the supported maximum sizes accordingly. Signed-off-by: Kieran Bingham

[PATCH AUTOSEL 4.19 36/57] media: coda: don't overwrite h.264 profile_idc on decoder instance

2018-11-04 Thread Sasha Levin
From: Lucas Stach [ Upstream commit 1f32061e843205f6fe8404d5100d5adcec334e75 ] On a decoder instance, after the profile has been parsed from the stream __v4l2_ctrl_s_ctrl() is called to notify userspace about changes in the read-only profile control. This ends up calling back into the CODA

[PATCH AUTOSEL 4.19 32/57] drm/amd/display: Raise dispclk value for dce120 by 15%

2018-11-04 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit 481f576c6c21bf0446eaa23623ef0262e9a5387c ] [Why] The DISPCLK value was previously requested to be 15% higher for all ASICs that went through the dce110 bandwidth code path. As part of a refactoring of dce_clocks and the dce110 set bandwidth codepath

[PATCH AUTOSEL 4.19 25/57] drm/msm/disp/dpu: Use proper define for drm_encoder_init() 'encoder_type'

2018-11-04 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit 2c043eeffea4813b8f569e84b46035a08de5eb47 ] We got a bug report that this function oopses when trying to do a kasprintf(). PC is at string+0x2c/0x60 LR is at vsnprintf+0x28c/0x4ec pc : [] lr : [] pstate: a0c00049 sp : ff80095fb540 x29: ff80095fb540

[PATCH AUTOSEL 4.19 27/57] powerpc/mm: Don't report hugepage tables as memory leaks when using kmemleak

2018-11-04 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 803d690e68f0c5230183f1a42c7d50a41d16e380 ] When a process allocates a hugepage, the following leak is reported by kmemleak. This is a false positive which is due to the pointer to the table being stored in the PGD as physical memory address and not

[PATCH AUTOSEL 4.19 29/57] drm/omap: fix memory barrier bug in DMM driver

2018-11-04 Thread Sasha Levin
From: Tomi Valkeinen [ Upstream commit 538f66ba204944470a653a45f8befdf97c22 ] A DMM timeout "timed out waiting for done" has been observed on DRA7 devices. The timeout happens rarely, and only when the system is under heavy load. Debugging showed that the timeout can be made to happen much

[PATCH AUTOSEL 4.18 03/45] mm: calculate deferred pages after skipping mirrored memory

2018-11-04 Thread Sasha Levin
From: Pavel Tatashin [ Upstream commit d3035be4ce2345d98633a45f93a74e526e94b802 ] update_defer_init() should be called only when struct page is about to be initialized. Because it counts number of initialized struct pages, but there we may skip struct pages if there is some mirrored memory. So

[PATCH AUTOSEL 4.18 19/45] ARM: imx_v6_v7_defconfig: Select CONFIG_TMPFS_POSIX_ACL

2018-11-04 Thread Sasha Levin
From: Fabio Estevam [ Upstream commit 35d3cbe84544da74e39e1cec01374092467e3119 ] Andreas Müller reports: "Fixes: | Sep 04 09:05:10 imx6qdl-variscite-som systemd-udevd[220]: Failed to apply ACL on /dev/v4l-subdev0: Operation not supported | Sep 04 09:05:10 imx6qdl-variscite-som

[PATCH AUTOSEL 4.18 11/45] powerpc/mm: fix always true/false warning in slice.c

2018-11-04 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 37e9c674e7e6f445e12cb1151017bd4bacdd1e2d ] This patch fixes the following warnings (obtained with make W=1). arch/powerpc/mm/slice.c: In function 'slice_range_to_mask': arch/powerpc/mm/slice.c:73:12: error: comparison is always true due to limited

[PATCH AUTOSEL 4.18 04/45] mm/vmstat.c: assert that vmstat_text is in sync with stat_items_size

2018-11-04 Thread Sasha Levin
From: Jann Horn [ Upstream commit f0ecf25a093fc0589f0a6bc4c1ea068bbb67d220 ] Having two gigantic arrays that must manually be kept in sync, including ifdefs, isn't exactly robust. To make it easier to catch such issues in the future, add a BUILD_BUG_ON(). Link:

[PATCH AUTOSEL 4.14 20/30] iio: adc: imx25-gcq: Fix leak of device_node in mx25_gcq_setup_cfgs()

2018-11-04 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit d3fa21c73c391975488818b085b894c2980ea052 ] Leaving for_each_child_of_node loop we should release child device node, if it is not stored for future use. Found by Linux Driver Verification project (linuxtesting.org). JC: I'm not sending this as a quick

[PATCH AUTOSEL 4.19 57/57] media: ov5640: fix restore of last mode set

2018-11-04 Thread Sasha Levin
From: Hugues Fruchet [ Upstream commit 985cdcb08a0488558d1005139596b64d73bee267 ] Mode setting depends on last mode set, in particular because of exposure calculation when downscale mode change between subsampling and scaling. At stream on the last mode was wrongly set to current mode, so no

[PATCH AUTOSEL 4.19 30/57] iio: adc: at91: fix wrong channel number in triggered buffer mode

2018-11-04 Thread Sasha Levin
From: Eugen Hristev [ Upstream commit aea835f2dc8a682942b859179c49ad1841a6c8b9 ] When channels are registered, the hardware channel number is not the actual iio channel number. This is because the driver is probed with a certain number of accessible channels. Some pins are routed and some not,

[PATCH AUTOSEL 4.18 15/45] powerpc/eeh: Fix possible null deref in eeh_dump_dev_log()

2018-11-04 Thread Sasha Levin
From: Sam Bobroff [ Upstream commit f9bc28aedfb5bbd572d2d365f3095c1becd7209b ] If an error occurs during an unplug operation, it's possible for eeh_dump_dev_log() to be called when edev->pdn is null, which currently leads to dereferencing a null pointer. Handle this by skipping the error log

[PATCH AUTOSEL 4.18 08/45] powerpc/traps: restore recoverability of machine_check interrupts

2018-11-04 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit daf00ae71dad8aa05965713c62558aeebf2df48e ] commit b96672dd840f ("powerpc: Machine check interrupt is a non- maskable interrupt") added a call to nmi_enter() at the beginning of machine check restart exception handler. Due to that, in_interrupt() always

[PATCH AUTOSEL 4.18 07/45] mm: don't warn about large allocations for slab

2018-11-04 Thread Sasha Levin
From: Dmitry Vyukov [ Upstream commit 61448479a9f2c954cde0cfe778cb6bec5d0a748d ] Slub does not call kmalloc_slab() for sizes > KMALLOC_MAX_CACHE_SIZE, instead it falls back to kmalloc_large(). For slab KMALLOC_MAX_CACHE_SIZE == KMALLOC_MAX_SIZE and it calls kmalloc_slab() for all allocations

[PATCH AUTOSEL 4.18 10/45] powerpc/mm: Fix page table dump to work on Radix

2018-11-04 Thread Sasha Levin
From: Michael Ellerman [ Upstream commit 0d923962ab69c27cca664a2d535e90ef655110ca ] When we're running on Book3S with the Radix MMU enabled the page table dump currently prints the wrong addresses because it uses the wrong start address. Fix it to use PAGE_OFFSET rather than KERN_VIRT_START.

[PATCH AUTOSEL 4.18 13/45] Input: wm97xx-ts - fix exit path

2018-11-04 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit a3f7c3fcf60868c1e90671df5d0cf9be5900a09b ] Loading then unloading wm97xx-ts.ko when CONFIG_AC97_BUS=m causes a WARNING: from drivers/base/driver.c: Unexpected driver unregister! WARNING: CPU: 0 PID: 1709 at ../drivers/base/driver.c:193

[PATCH AUTOSEL 4.18 16/45] tty: check name length in tty_find_polling_driver()

2018-11-04 Thread Sasha Levin
From: Miles Chen [ Upstream commit 33a1a7be198657c8ca26ad406c4d2a89b7162bcc ] The issue is found by a fuzzing test. If tty_find_polling_driver() recevies an incorrect input such as ',,' or '0b', the len becomes 0 and strncmp() always return 0. In this case, a null p->ops->poll_init() is called

[PATCH AUTOSEL 4.18 17/45] tracing/kprobes: Check the probe on unloaded module correctly

2018-11-04 Thread Sasha Levin
From: Masami Hiramatsu [ Upstream commit 59158ec4aef7d44be51a6f3e7e17fc64c32604eb ] Current kprobe event doesn't checks correctly whether the given event is on unloaded module or not. It just checks the event has ":" in the name. That is not enough because if we define a probe on non-exist

[PATCH AUTOSEL 4.18 12/45] drm/amd/display: fix bug of accessing invalid memory

2018-11-04 Thread Sasha Levin
From: Su Sung Chung [ Upstream commit 43c3ff27a47d83d153c4adc088243ba594582bf5 ] [Why] A loop inside of build_evenly_distributed_points function that traverse through the array of points become an infinite loop when m_GammaUpdates does not get assigned to any value. [How] In DMColor, clear

[PATCH AUTOSEL 4.19 45/57] media: tvp5150: fix width alignment during set_selection()

2018-11-04 Thread Sasha Levin
From: Marco Felsch [ Upstream commit bd24db04101f45a9c1d874fe21b0c7eab7bcadec ] The driver ignored the width alignment which exists due to the UYVY colorspace format. Fix the width alignment and make use of the the provided v4l2 helper function to set the width, height and all alignments in

[PATCH AUTOSEL 4.19 49/57] drm/amdgpu: Fix SDMA TO after GPU reset v3

2018-11-04 Thread Sasha Levin
From: Andrey Grodzovsky [ Upstream commit d8de8260a45aae8f74af77eae9a162bdc0ed48d2 ] After GPU reset amdgpu_vm_clear_bo triggers VM flush but job->vm_pd_addr is not set causing SDMA TO. v2: Per advise by Christian König avoid flushing VM for jobs where job->vm_pd_addr wasn't explicitly set.

[PATCH AUTOSEL 4.19 46/57] powerpc/selftests: Wait all threads to join

2018-11-04 Thread Sasha Levin
From: Breno Leitao [ Upstream commit 693b31b2fc1636f0aa7af53136d3b49f6ad9ff39 ] Test tm-tmspr might exit before all threads stop executing, because it just waits for the very last thread to join before proceeding/exiting. This patch makes sure that all threads that were created will join

[PATCH AUTOSEL 4.19 44/57] sc16is7xx: Fix for multi-channel stall

2018-11-04 Thread Sasha Levin
From: Phil Elwell [ Upstream commit 8344498721059754e09d30fe255a12dab8fb03ef ] The SC16IS752 is a dual-channel device. The two channels are largely independent, but the IRQ signals are wired together as an open-drain, active low signal which will be driven low while either of the channels

[PATCH AUTOSEL 4.19 43/57] serial: 8250_of: Fix for lack of interrupt support

2018-11-04 Thread Sasha Levin
From: John Garry [ Upstream commit a27d938251ef40c43db81af16fc26b2cec181d4d ] In commit c58caaab3bf8 ("serial: 8250: of: Defer probe on missing IRQ"), a check was added for the UART driver being probed prior to the parent IRQ controller. Unfortunately this breaks certain boards which have no

[PATCH AUTOSEL 4.19 47/57] staging:iio:ad7606: fix voltage scales

2018-11-04 Thread Sasha Levin
From: Alexandru Ardelean [ Upstream commit 4ee033301c898dd0835d035d0e0eb768a3d35da1 ] Fixes commit 17be2a2905a6ec9aa27cd59521495e2f490d2af0 ("staging: iio: ad7606: replace range/range_available with corresponding scale"). The AD7606 devices don't have a 2.5V voltage range, they have 5V & 10V

[PATCH AUTOSEL 4.19 55/57] 9p: clear dangling pointers in p9stat_free

2018-11-04 Thread Sasha Levin
From: Dominique Martinet [ Upstream commit 62e3941776fea8678bb8120607039410b1b61a65 ] p9stat_free is more of a cleanup function than a 'free' function as it only frees the content of the struct; there are chances of use-after-free if it is improperly used (e.g. p9stat_free called twice as it

[PATCH AUTOSEL 4.19 56/57] drm/amdgpu: fix integer overflow test in amdgpu_bo_list_create()

2018-11-04 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit ff30e9e8509cb877dc7cbc776b36c70f5bdd290f ] We accidentally left out the size of the amdgpu_bo_list struct. It could lead to memory corruption on 32 bit systems. You'd have to pick the absolute maximum and set "num_entries == 59652323" then size would wrap

[PATCH AUTOSEL 4.19 54/57] media: ov5640: fix mode change regression

2018-11-04 Thread Sasha Levin
From: Hugues Fruchet [ Upstream commit fb98e29ff1ea5a8118265d11f0e03bc8608a49cb ] fixes: 6949d864776e ("media: ov5640: do not change mode if format or frame interval is unchanged"). Symptom was fuzzy image because of JPEG default format not being changed according to new format selected, fix

[PATCH AUTOSEL 4.19 52/57] udf: Prevent write-unsupported filesystem to be remounted read-write

2018-11-04 Thread Sasha Levin
From: Jan Kara [ Upstream commit a9ad01bc759df79b0012f43ee52164391e31cd96 ] There are certain filesystem features which we support for reading but not for writing. We properly refuse to mount such filesystems read-write however for some features (such as read-only partitions), we don't check

[PATCH AUTOSEL 4.18 01/45] mm: thp: fix MADV_DONTNEED vs migrate_misplaced_transhuge_page race condition

2018-11-04 Thread Sasha Levin
From: Andrea Arcangeli [ Upstream commit d7c3393413fe7e7dc54498ea200ea94742d61e18 ] Patch series "migrate_misplaced_transhuge_page race conditions". Aaron found a new instance of the THP MADV_DONTNEED race against pmdp_clear_flush* variants, that was apparently left unfixed. While looking

[PATCH AUTOSEL 4.19 53/57] ARM: dts: imx6ull: keep IMX6UL_ prefix for signals on both i.MX6UL and i.MX6ULL

2018-11-04 Thread Sasha Levin
From: Sébastien Szymanski [ Upstream commit 31edaa6e7fd8143085a6a60c564447c07e76ed9f ] Signals available on both i.MX6UL and i.MX6ULL should have the same name because it is the case of all others common signals, it avoids to make mistakes (use the wrong ones) and it makes writing device tree

[PATCH AUTOSEL 4.19 51/57] 9p locks: fix glock.client_id leak in do_lock

2018-11-04 Thread Sasha Levin
From: Dominique Martinet [ Upstream commit b4dc44b3cac9e8327e0655f530ed0c46f2e6214c ] the 9p client code overwrites our glock.client_id pointing to a static buffer by an allocated string holding the network provided value which we do not care about; free and reset the value as appropriate.

[PATCH AUTOSEL 4.19 50/57] staging: most: video: fix registration of an empty comp core_component

2018-11-04 Thread Sasha Levin
From: Colin Ian King [ Upstream commit 1f447e51c0b9e8beeec0917ea5f51930f55e17c9 ] Currently we have structrues comp (which is empty) and comp_info being used to register and deregister the component. This mismatch in naming occurred from a previous commit that renamed aim_info to comp. Fix

[PATCH AUTOSEL 4.18 09/45] powerpc/64/module: REL32 relocation range check

2018-11-04 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit b851ba02a6f3075f0f99c60c4bc30a4af80cf428 ] The recent module relocation overflow crash demonstrated that we have no range checking on REL32 relative relocations. This patch implements a basic check, the same kernel that previously oopsed and rebooted now

[PATCH AUTOSEL 4.18 05/45] userfaultfd: allow get_mempolicy(MPOL_F_NODE|MPOL_F_ADDR) to trigger userfaults

2018-11-04 Thread Sasha Levin
From: Andrea Arcangeli [ Upstream commit 3b9aadf7278d16d7bed4d5d808501065f70898d8 ] get_mempolicy(MPOL_F_NODE|MPOL_F_ADDR) called a get_user_pages that would not be waiting for userfaults before failing and it would hit on a SIGBUS instead. Using get_user_pages_locked/unlocked instead will

Re: [alsa-devel] [PATCH] ASoC: Intel: mrfld: fix uninitialized variable access

2018-11-04 Thread Pierre-Louis Bossart
On 11/3/18 4:21 PM, Arnd Bergmann wrote: Randconfig testing revealed a very old bug, with gcc-8: sound/soc/intel/atom/sst/sst_loader.c: In function 'sst_load_fw': sound/soc/intel/atom/sst/sst_loader.c:357:5: error: 'fw' may be used uninitialized in this function [-Werror=maybe-uninitialized]

[PATCH V2 4/4] perf scripts python: exported-sql-viewer.py: Fix table find when table re-ordered

2018-11-04 Thread Adrian Hunter
Table rows can be re-ordered by selecting a column to sort by. After re-ordering, the "find" operation was highlighting the wrong row, fix it. Signed-off-by: Adrian Hunter --- tools/perf/scripts/python/exported-sql-viewer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH V2 0/4] perf scripts python: exported-sql-viewer.py

2018-11-04 Thread Adrian Hunter
Hi Here is the libxed fix, the last 2 patches from last submission and another fix. Changes in V2: perf scripts python: call-graph-from-sql.py: Use SPDX license identifier perf scripts python: call-graph-from-sql.py: Provide better default column sizes perf scripts python:

h94l8l8WeO0m8fU

2018-11-04 Thread Tsplhg
202.53.8.97

Re: [PATCH v7 4/5] clocksource: add driver for i.MX EPIT timer

2018-11-04 Thread Clément Péron
Hi Daniel, Thanks for the review and sorry for the delay. On Tue, 10 Jul 2018 at 18:20, Daniel Lezcano wrote: > > On 11/06/2018 17:50, Clément Péron wrote: > > From: Colin Didier > > > > Add driver for NXP's EPIT timer used in i.MX SoC. > > Give a description on how works this timer. Ok, > >

Re: [PATCH v3 5/6] staging:iio:ad2s90: Add IIO_CHAN_INFO_SCALE to channel spec and read_raw

2018-11-04 Thread Jonathan Cameron
On Sat, 3 Nov 2018 19:49:47 -0300 Matheus Tavares wrote: > This patch adds the IIO_CHAN_INFO_SCALE mask to ad2s90_chan and > implements the relative read behavior at ad2s90_read_raw. > > Signed-off-by: Victor Colombo > Signed-off-by: Matheus Tavares Hi Matheus, Somewhere in the process, the

Re: perf script doesn't dump a normal call trace

2018-11-04 Thread Jiri Olsa
On Sat, Nov 03, 2018 at 06:36:21PM +0900, Xin Long wrote: > On Fri, Nov 2, 2018 at 7:26 PM Jiri Olsa wrote: > > > > On Fri, Nov 02, 2018 at 03:36:13PM +0900, Xin Long wrote: > > > On upstream kernel(4.19) or RHEL-8 kernel(4.18.0): > > > > > > # perf record -e 'skb:consume_skb' -ag > > > ^C[ perf

Re: [PATCH RFC] hist lookups

2018-11-04 Thread Jiri Olsa
On Fri, Nov 02, 2018 at 11:30:03PM -0700, David Miller wrote: > From: David Miller > Date: Wed, 31 Oct 2018 09:08:16 -0700 (PDT) > > > From: Jiri Olsa > > Date: Wed, 31 Oct 2018 16:39:07 +0100 > > > >> it'd be great to make hist processing faster, but is your main target here > >> to get the

Re: [PATCH] perf: replace automatic const char[] variables by statics

2018-11-04 Thread Jiri Olsa
On Sat, Nov 03, 2018 at 12:06:23AM +0100, Rasmus Villemoes wrote: > An automatic const char[] variable gets initialized at runtime, just > like any other automatic variable. For long strings, that uses a lot of > stack and wastes time building the string; e.g. for the "No %s > allocation

Re: KASAN: use-after-free Read in delayed_uprobe_remove

2018-11-04 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:71e56028173b Merge branch 'sched-urgent-for-linus' of git:.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14c5cfe540 kernel config:

<    1   2   3   4   5   6   7   8   9   >