[GIT PULL] siginfo fix for v4.16-rc3

2018-02-22 Thread Eric W. Biederman
Linus, Please pull the siginfo-linus branch from the git tree: git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git siginfo-linus HEAD: 9026e820cbd2ea39a06a129ecdddf2739bd3602b fs/signalfd: fix build error for BUS_MCEERR_AR This change fixes a build error that shou

[tip:x86/urgent 3/3] arch/x86//kernel/apic/vector.c:151:11: error: 'struct apic' has no member named 'vector'

2018-02-22 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/urgent head: f60606c4ce402963dc552c62910ffa7080b4a628 commit: f60606c4ce402963dc552c62910ffa7080b4a628 [3/3] x86/apic/vector: Handle vector release on CPU unplug correctly config: x86_64-randconfig-x017-201807 (attached as .

Re: [PATCH] EDAC, layerscape: allow building for LS1021A

2018-02-22 Thread York Sun
Then you are good to go. York Sent from my iPhone > On Feb 22, 2018, at 22:40, Rasmus Villemoes > wrote: > >> On 2018-02-20 22:01, York Sun wrote: >> Sorry for top posting. I am on vacation and replying from my phone. >> >> The controller is compatible and the driver should work. Please doub

[PATCH] platform/chrome: cros_ec_lpc: wake up from s2idle on Chrome EC

2018-02-22 Thread Wenkai Du
Chrome platform installed a Chrome EC notify handler which prevents default EC GPE handler getting called. Add pm_system_wakeup to the Chrome EC notify handler so wake up from s2idle can happen. Suggested-by: Rafael J. Wysocki Signed-off-by: Wenkai Du --- drivers/platform/chrome/cros_ec_lpc.c |

Re: [PATCH v3] kconfig.h: Include compiler types to avoid missed struct attributes

2018-02-22 Thread Kees Cook
On Thu, Feb 22, 2018 at 1:07 PM, Rasmus Villemoes wrote: > On 2018-02-22 19:04, Linus Torvalds wrote: >> >> Lookie here (in a fully built tree): >> >> find . -name '*.o.cmd' | >> xargs grep -L linux/compiler_types.h | >> xargs grep -l linux/kconfig.h | >> while read i;

Re: [PATCH v3] kconfig.h: Include compiler types to avoid missed struct attributes

2018-02-22 Thread Linus Torvalds
On Thu, Feb 22, 2018 at 1:07 PM, Rasmus Villemoes wrote: > > It does, both per the documentation and testing it. But fixdep > explicitly removes include/linux/kconfig.h along with > include/generated/autoconf.h and a few others. So when you rebuilt after > adding the #include to kconfig.h, I think

[PATCH v2] [media] Delete unnecessary variable initialisations in seven functions

2018-02-22 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 22 Feb 2018 21:45:47 +0100 Some local variables will be set to an appropriate value before usage. Thus omit explicit initialisations at the beginning of these functions. Signed-off-by: Markus Elfring --- v2: Hans Verkuil insisted on patch squashing. Thus some ch

Re: [PATCH v2 1/3] mm/sparse: Add a static variable nr_present_sections

2018-02-22 Thread Andrew Morton
On Thu, 22 Feb 2018 17:11:28 +0800 Baoquan He wrote: > It's used to record how many memory sections are marked as present > during system boot up, and will be used in the later patch. > > --- a/mm/sparse.c > +++ b/mm/sparse.c > @@ -202,6 +202,7 @@ static inline int next_present_section_nr(int se

Re: [RFC][PATCH 04/10] x86/espfix: use kernel-default PTE mask

2018-02-22 Thread Nadav Amit
Dave Hansen wrote: > > From: Dave Hansen > > In creating its page tables, the espfix code masks its PGTABLE_PROT > value with the supported mask: __supported_pte_mask. This ensures > that unsupported bits are not set in the final PTE. But, it also > sets _PAGE_GLOBAL which we do not want for

[tip:x86/urgent 3/3] arch/x86/kernel/apic/vector.c:151:2: note: in expansion of macro 'if'

2018-02-22 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/urgent head: f60606c4ce402963dc552c62910ffa7080b4a628 commit: f60606c4ce402963dc552c62910ffa7080b4a628 [3/3] x86/apic/vector: Handle vector release on CPU unplug correctly config: i386-randconfig-x079-201807 (attached as .co

Re: [RFC][PATCH 04/10] x86/espfix: use kernel-default PTE mask

2018-02-22 Thread Dave Hansen
On 02/22/2018 01:27 PM, Nadav Amit wrote: > Dave Hansen wrote: >> From: Dave Hansen >> In creating its page tables, the espfix code masks its PGTABLE_PROT >> value with the supported mask: __supported_pte_mask. This ensures >> that unsupported bits are not set in the final PTE. But, it also >>

[tip:x86/urgent] x86/apic/vector: Handle vector release on CPU unplug correctly

2018-02-22 Thread tip-bot for Thomas Gleixner
Commit-ID: c16721c5cece64bfe12cdc302a0228026d8089d7 Gitweb: https://git.kernel.org/tip/c16721c5cece64bfe12cdc302a0228026d8089d7 Author: Thomas Gleixner AuthorDate: Thu, 22 Feb 2018 12:08:06 +0100 Committer: Thomas Gleixner CommitDate: Thu, 22 Feb 2018 22:25:50 +0100 x86/apic/vector: Ha

[PATCH] Revert "mfd: cros_ec: Add ACPI GPE handler for LID0 devices"

2018-02-22 Thread Wenkai Du
This reverts commit e04653a9dcf4d98defe2149c885382e5cc72082f. It is no longer needed to install Chrome EC GPE handler to have GPE enabled in suspend to idle path. It is found that with this handler installed, EC wake up doesn't work because default EC event handler that can wake up system is not g

Re: [PATCH v3] kconfig.h: Include compiler types to avoid missed struct attributes

2018-02-22 Thread Rasmus Villemoes
On 2018-02-22 22:07, Rasmus Villemoes wrote: > > The whole point of fixdep and the include/config hierarchy is to be able > to remove the dependency on autoconf.h, but I'm not sure I understand > why kconfig.h itself is also forcibly removed. Ah, 6a5be57f "fixdep: fix extraneous dependencies",

Re: [PATCH v2] ARM: tegra: fix ulpi regression on tegra20

2018-02-22 Thread Marcel Ziswiler
On February 22, 2018 9:08:44 PM GMT+01:00, Dmitry Osipenko wrote: >On 22.02.2018 17:38, Marcel Ziswiler wrote: >> From: Marcel Ziswiler >> >> Since commit f8f8f1d04494 ("clk: Don't touch hardware when >reparenting >> during registration") ULPI has been broken on Tegra20 leading to the >> foll

Re: WARNING and PANIC in irq_matrix_free

2018-02-22 Thread Thomas Gleixner
On Wed, 21 Feb 2018, Tariq Toukan wrote: > On 20/02/2018 8:18 PM, Thomas Gleixner wrote: > > On Tue, 20 Feb 2018, Thomas Gleixner wrote: > > > On Tue, 20 Feb 2018, Tariq Toukan wrote: > > > > > > Is there CPU hotplugging in play? > > No. Ok. > > > > > > I'll come back to you tomorrow with a pl

[PATCH] phy: lpc18xx-usb-otg: error handling in lpc18xx_usb_otg_phy_power_on()

2018-02-22 Thread Alexey Khoroshilov
If regmap_update_bits() fails in lpc18xx_usb_otg_phy_power_on(), lpc->clk is left enabled. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/phy/phy-lpc18xx-usb-otg.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --

Re: [PATCHv1] Add Intel Stratix10 service layer driver

2018-02-22 Thread Alan Tull
On Tue, Jan 30, 2018 at 1:41 AM, Greg KH wrote: > On Mon, Jan 29, 2018 at 08:08:11PM -0600, Richard Gong wrote: >> Hi Greg, >> >> Many thanks for your reviews. >> >> >> On 01/25/2018 10:53 AM, Greg KH wrote: >> > On Thu, Jan 25, 2018 at 10:39:03AM -0600, richard.g...@linux.intel.com >> > wrote: >

Re: [PATCH 1/2] locking/xchg/alpha: Use smp_mb() in place of __ASM__MB

2018-02-22 Thread Paul E. McKenney
On Thu, Feb 22, 2018 at 10:24:29AM +0100, Andrea Parri wrote: > Replace each occurrence of __ASM__MB with a (trailing) smp_mb() in > xchg(), cmpxchg(), and remove the now unused __ASM__MB definitions; > this improves readability, with no additional synchronization cost. > > Suggested-by: Will Deac

Re: [RFC][PATCH 05/10] x86/mm: do not auto-massage page protections

2018-02-22 Thread Nadav Amit
Dave Hansen wrote: > > From: Dave Hansen > > > +static inline pgprotval_t check_pgprot(pgprot_t pgprot) > +{ > + pgprotval_t massaged_val = massage_pgprot(pgprot); > + > + WARN_ONCE(pgprot_val(pgprot) != massaged_val, > + "attempted to set unsupported pgprot: %016lx " >

Re: [PATCH 2/2] locking/xchg/alpha: Add leading smp_mb() to xchg(), cmpxchg()

2018-02-22 Thread Paul E. McKenney
On Thu, Feb 22, 2018 at 10:24:48AM +0100, Andrea Parri wrote: > Successful RMW operations are supposed to be fully ordered, but > Alpha's xchg() and cmpxchg() do not align to this requirement. > > Will reported that: > > > So MP using xchg: > > > > WRITE_ONCE(x, 1) > > xchg(y, 1) > > > > smp_load

Re: [PATCH] PCMCIA / PM: Avoid noirq suspend aborts during suspend-to-idle

2018-02-22 Thread Rafael J. Wysocki
On Thu, Feb 22, 2018 at 6:32 PM, Rafael J. Wysocki wrote: > On Thu, Feb 22, 2018 at 5:45 PM, Dominik Brodowski > wrote: >> On Wed, Feb 21, 2018 at 01:24:16PM +0100, Rafael J. Wysocki wrote: >>> Avoid that by using a new socket state flag, SOCKET_IN_RESUME, >>> to indicate that socket_early_resume

Re: [RFC][PATCH 00/10] Use global pages with PTI

2018-02-22 Thread Linus Torvalds
Side note - and this may be crazy talk - I wonder if it might make sense to have a mode where we allow executable read-only kernel pages to be marked global too (but only in the kernel mapping). Yes, yes, that potentially means that you can run meltdown on recently run kernel code that is still in

linux-next: Signed-off-by missing for commit in the staging tree

2018-02-22 Thread Stephen Rothwell
Hi Greg, Commit cc738c1a69da ("staging: lustre: opencode cfs_cap_{raise, lower, raised}") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell pgpD6UJGgBkad.pgp Description: OpenPGP digital signature

Re: [RFC][PATCH 05/10] x86/mm: do not auto-massage page protections

2018-02-22 Thread Dave Hansen
On 02/22/2018 01:46 PM, Nadav Amit wrote: >> >> +static inline pgprotval_t check_pgprot(pgprot_t pgprot) >> +{ >> +pgprotval_t massaged_val = massage_pgprot(pgprot); >> + >> +WARN_ONCE(pgprot_val(pgprot) != massaged_val, >> + "attempted to set unsupported pgprot: %016lx " >> +

Re: [PATCH v3] kconfig.h: Include compiler types to avoid missed struct attributes

2018-02-22 Thread Linus Torvalds
On Thu, Feb 22, 2018 at 1:23 PM, Linus Torvalds wrote: > > Hah. So it was the lack of kconfig.h dependency that bit my testing ;) Confirmed. Rasmus was right, doing a full build after cleaning everything up did fix this. So it's really just itself that is missing from dependencies.

Re: [PATCH v3] kconfig.h: Include compiler types to avoid missed struct attributes

2018-02-22 Thread Linus Torvalds
On Thu, Feb 22, 2018 at 1:34 PM, Rasmus Villemoes wrote: > > Hm, we should probably make sure that kconfig.h is always on the > dependency list in .o.cmd, but just exclude it from being processed for > the CONFIG_ pattern. That sounds sensible to me. Not that this likely has ever bit anybody out

Re: [RFC][PATCH 04/10] x86/espfix: use kernel-default PTE mask

2018-02-22 Thread Andy Lutomirski
On Thu, Feb 22, 2018 at 9:30 PM, Dave Hansen wrote: > On 02/22/2018 01:27 PM, Nadav Amit wrote: >> Dave Hansen wrote: >>> From: Dave Hansen >>> In creating its page tables, the espfix code masks its PGTABLE_PROT >>> value with the supported mask: __supported_pte_mask. This ensures >>> that unsu

Re: [RFC][PATCH 04/10] x86/espfix: use kernel-default PTE mask

2018-02-22 Thread Dave Hansen
On 02/22/2018 01:59 PM, Andy Lutomirski wrote: >> I think it's good practice to just expose only the *minimal* amount of >> data necessary. It's easier to audit and less likely to expose things >> accidentall. > But espfix64 is geniunely global. I'm confused. I'm the confused one. In my *first*

Re: [RFC PATCH V2] virtio_pci: Add SR-IOV support

2018-02-22 Thread Rustad, Mark D
> On Feb 22, 2018, at 10:26 AM, Christoph Hellwig wrote: > > Can we move this into common code as a a generic_sriov_configure > helper? Nothing is really virtio specific, and it seems like > some other drivers could also use it, e.g. ena or nvme. That seems like a good idea to me, especially if

[PATCH 1/3] staging: lustre: lov: use correct env in lov_io_data_version_end()

2018-02-22 Thread NeilBrown
lov - the logical object volume manager - is responsible for striping data across multiple volumes. So when it is given a request, it creates one or more sub-requests, one for each target volume. Each sub_io request has a sub_env environment which it operates in. When lov_io_data_version_end() c

[PATCH 0/3] Three lustre bugfixes

2018-02-22 Thread NeilBrown
First two patches fix bugs that have been prevented the test suite from finished for me - now it completes with about 10% of tests failing. Third patch fixes a tiny bug I noticed while reviewing another recent patch to the same file. Thanks, NeilBrown --- NeilBrown (3): staging: lustre: l

[PATCH 3/3] staging: lustre: lnet/selftest: don't ignore status from lstcon_test_add

2018-02-22 Thread NeilBrown
If lstcon_test_add sets 'ret' (passed by reference) to 1, then lst_test_add_ioctl() ignores the return value. This isn't justified - the return value must be zero for 'ret' to be meaningful. Signed-off-by: NeilBrown --- drivers/staging/lustre/lnet/selftest/conctl.c |2 +- 1 file changed, 1 i

[PATCH 2/3] staging: lustre: lmv: correctly iput lmo_root

2018-02-22 Thread NeilBrown
Commit 8f18c8a48b73 ("staging: lustre: lmv: separate master object with master stripe") changed how lmo_root inodes were managed, particularly when LMV_HASH_FLAG_MIGRATION is not set. Previously lsm_md_oinfo[0].lmo_root was always a borrowed inode reference and didn't need to by iput(). Since the c

Re: [RFC][PATCH 03/10] x86/mm: introduce "default" kernel PTE mask

2018-02-22 Thread Nadav Amit
Dave Hansen wrote: > > From: Dave Hansen > > The __PAGE_KERNEL_* page permissions are "raw". They contain bits > that may or may not be supported on the current processor. They > need to be filtered by a mask (currently __supported_pte_mask) to > turn them into a value that we can actually s

Re: [PATCH 1/9] drm/xen-front: Introduce Xen para-virtualized frontend driver

2018-02-22 Thread Boris Ostrovsky
On 02/21/2018 03:03 AM, Oleksandr Andrushchenko wrote: > +static struct xenbus_driver xen_driver = { > + .ids = xen_drv_ids, > + .probe = xen_drv_probe, > + .remove = xen_drv_remove, > + .otherend_changed = backend_on_changed, What does "_on_" stand for? -boris

Re: [PATCH v2 3/3] mm/sparse: Optimize memmap allocation during sparse_init()

2018-02-22 Thread Dave Hansen
First of all, this is a much-improved changelog. Thanks for that! On 02/22/2018 01:11 AM, Baoquan He wrote: > In sparse_init(), two temporary pointer arrays, usemap_map and map_map > are allocated with the size of NR_MEM_SECTIONS. They are used to store > each memory section's usemap and mem map

Re: [RFC][PATCH 03/10] x86/mm: introduce "default" kernel PTE mask

2018-02-22 Thread Dave Hansen
On 02/22/2018 02:21 PM, Nadav Amit wrote: > Dave Hansen wrote: >> From: Dave Hansen >> The __PAGE_KERNEL_* page permissions are "raw". They contain bits >> that may or may not be supported on the current processor. They >> need to be filtered by a mask (currently __supported_pte_mask) to >> tur

Re: [PATCH] cpufreq: scpi: invoke frequency-invariance setter function

2018-02-22 Thread Rafael J. Wysocki
On Tue, Feb 20, 2018 at 12:10 PM, Dietmar Eggemann wrote: > Commit 343a8d17fa8d ("cpufreq: scpi: remove arm_big_little dependency") > changed the cpufreq driver on juno from arm_big_little to scpi. > > The scpi set_target function does not call the frequency-invariance > setter function arch_set_f

Re: [PATCH] netlink: put module reference if dump start fails

2018-02-22 Thread Jason A. Donenfeld
Thanks! Jason

[v2] ARM: dts: BCM5301X: Add support for Linksys EA9500

2018-02-22 Thread Vivek Unune
Hardware Info - Processor - Broadcom BCM4709C0KFEBG dual-core @ 1.4 GHz Switch - BCM53012 in BCM4709C0KFEBG & external BCM53125 DDR3 RAM- 256 MB Flash - 128 MB (Toshiba TC58BVG0S3HTA00) 2.4GHz - BCM4366 4×4 2.4/5G single chip 802.11ac SoC Power

Re: Removing architectures without upstream gcc support

2018-02-22 Thread Arnd Bergmann
On Thu, Feb 22, 2018 at 8:17 PM, Richard Kuo wrote: > On Thu, Feb 22, 2018 at 04:45:06PM +0100, Arnd Bergmann wrote: >> * Hexagon is Qualcomm's DSP architecture. It is being actively used >> in all Snapdragon ARM SoCs, but the kernel code appears to be >> the result of a failed research projec

Re: linux-next: Signed-off-by missing for commit in the staging tree

2018-02-22 Thread NeilBrown
On Fri, Feb 23 2018, Stephen Rothwell wrote: > Hi Greg, > > Commit > > cc738c1a69da ("staging: lustre: opencode cfs_cap_{raise, lower, raised}") > > is missing a Signed-off-by from its author. > Eek - sorry 'bout that. Please add Signed-off-by: NeilBrown Thanks, NeilBrown signature.asc D

Re: [PATCH v6 4/5] fuse: Ensure posix acls are translated outside of init_user_ns

2018-02-22 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > Miklos Szeredi writes: > >> On Wed, Feb 21, 2018 at 9:29 PM, Eric W. Biederman >> wrote: >>> Ensure the translation happens by failing to read or write >>> posix acls when the filesystem has not indicated it supports >>> posix acls. >> >> For t

Re: [PATCH v2 1/3] HID: add driver for Valve Steam Controller

2018-02-22 Thread Rodrigo Rivas Costa
On Tue, Feb 20, 2018 at 09:32:08PM -0800, Cameron Gutman wrote: > On 02/20/2018 11:33 AM, Rodrigo Rivas Costa wrote: > > +static void steam_work_connect_cb(struct work_struct *work) > > +{ > > + struct steam_device *steam = container_of(work, struct steam_device, > > +

Re: [PATCH v4 5/6] vfio/type1: Add IOVA range capability support

2018-02-22 Thread Alex Williamson
On Wed, 21 Feb 2018 12:22:08 + Shameer Kolothum wrote: > This allows the user-space to retrieve the supported IOVA > range(s), excluding any reserved regions. The implementation > is based on capability chains, added to VFIO_IOMMU_GET_INFO ioctl. > > Signed-off-by: Shameer Kolothum > --- >

Re: [PATCH] drm/p[111: add CONFIG_OF dependency

2018-02-22 Thread Arnd Bergmann
On Thu, Feb 22, 2018 at 9:08 PM, Eric Anholt wrote: > Arnd Bergmann writes: > >> We cannot select a symbol without meeting its other dependencies: >> >> warning: (DRM_PL111) selects DRM_DUMB_VGA_DAC which has unmet direct >> dependencies (HAS_IOMEM && DRM && DRM_BRIDGE && OF) >> drivers/gpu/drm/

Bad PTEs in page tables

2018-02-22 Thread Matthew Wilcox
We've got a few reports now [1] from users who are seeing a NULL pointer dereference in the radix tree code. I've tracked it down to bad PTEs. I don't think it's been seen on 64-bit x86, but it's definitely been seen on 32-bit x86 running under Xen. Feb 9 14:31:27 cs01 kernel: Bad swp_entry: 20

Re: [PATCH v5] vfio/type1: Adopt fast IOTLB flush interface when unmap IOVAs

2018-02-22 Thread Alex Williamson
On Thu, 1 Feb 2018 01:27:38 -0500 Suravee Suthikulpanit wrote: > VFIO IOMMU type1 currently upmaps IOVA pages synchronously, which requires > IOTLB flushing for every unmapping. This results in large IOTLB flushing > overhead when handling pass-through devices has a large number of mapped > IOVA

Re: [PATCH v2 20/20] x86/PCI: VMD: Fix malformed Kconfig default

2018-02-22 Thread Bjorn Helgaas
On Tue, Feb 06, 2018 at 11:11:06PM +0100, Ulf Magnusson wrote: > 'default N' should be 'default n', though they happen to have the same > effect here, due to undefined symbols (N in this case) evaluating to n > in a tristate sense. > > Remove the default instead of changing it. bool and tristate s

Re: [PATCH] lib/dma-debug.c: fix memory leakage

2018-02-22 Thread Christoph Hellwig
Thanks, applied to the dma mapping tree for 4.16, including the Fixes tag.

[PATCH] clk: tegra: fix pllu rate configuration

2018-02-22 Thread Marcel Ziswiler
Turns out latest upstream U-Boot does not configure/enable pllu which leaves it at some default rate of 500 kHz: root@apalis-t30:~# cat /sys/kernel/debug/clk/clk_summary | grep pll_u pll_u 330 50 0 Of course this won't quite work leading t

[PATCH v8 2/4] MIPS: Octeon: Automatically provision CVMSEG space.

2018-02-22 Thread David Daney
Remove CONFIG_CAVIUM_OCTEON_CVMSEG_SIZE and automatically calculate the amount of CVMSEG space needed. 1st 128-bytes: Use by IOBDMA 2nd 128-bytes: Reserved by kernel for scratch/TLS emulation. 3rd 128-bytes: OCTEON-III LMTLINE New config variable CONFIG_CAVIUM_OCTEON_EXTRA_CVMSEG provisions addit

[PATCH v8 4/4] MIPS: Octeon: Add a global resource manager.

2018-02-22 Thread David Daney
From: Carlos Munoz Add a global resource manager to manage tagged pointers within bootmem allocated memory. This is used by various functional blocks in the Octeon core like the FPA, Ethernet nexus, etc. Signed-off-by: Carlos Munoz Signed-off-by: Steven J. Hill Signed-off-by: David Daney ---

[PATCH v8 0/4] Prerequisites for Cavium OCTEON-III network driver.

2018-02-22 Thread David Daney
We want to add the Cavium OCTEON-III network driver. But since interacting with the input and output queues is done via special CPU local memory, we also need to add support to the MIPS/Octeon architecture code. Aren't SoCs nice in this way? These are the prerequisite patches that are needed bef

[PATCH v8 1/4] MIPS: Octeon: Enable LMTDMA/LMTST operations.

2018-02-22 Thread David Daney
From: Carlos Munoz LMTDMA/LMTST operations move data between cores and I/O devices: * LMTST operations can send an address and a variable length (up to 128 bytes) of data to an I/O device. * LMTDMA operations can send an address and a variable length (up to 128) of data to the I/O device and

[PATCH v8 3/4] staging: octeon: Remove USE_ASYNC_IOBDMA macro.

2018-02-22 Thread David Daney
Previous patch sets USE_ASYNC_IOBDMA to 1 unconditionally. Remove USE_ASYNC_IOBDMA from all if statements. Remove dead code caused by the change. Acked-by: Greg Kroah-Hartman Signed-off-by: David Daney --- drivers/staging/octeon/ethernet-defines.h | 6 --- drivers/staging/octeon/ethernet-rx.

Re: [RFC][PATCH 03/10] x86/mm: introduce "default" kernel PTE mask

2018-02-22 Thread Tom Lendacky
On 2/22/2018 4:26 PM, Dave Hansen wrote: > On 02/22/2018 02:21 PM, Nadav Amit wrote: >> Dave Hansen wrote: >>> From: Dave Hansen >>> The __PAGE_KERNEL_* page permissions are "raw". They contain bits >>> that may or may not be supported on the current processor. They >>> need to be filtered by a

Re: [PATCH RFC] riscv/barrier: Define __smp_{mb,rmb,wmb}

2018-02-22 Thread Palmer Dabbelt
On Tue, 20 Feb 2018 02:17:28 PST (-0800), parri.and...@gmail.com wrote: Introduce __smp_{mb,rmb,wmb}, and rely on the generic definitions for smp_{mb,rmb,wmb}. A first consequence is that smp_{mb,rmb,wmb} map to a compiler barrier on !SMP (while their definition remains unchanged on SMP). As a fu

Re: [07/18] thunderbolt: Handle rejected Thunderbolt devices

2018-02-22 Thread Jeremy McNicoll
On Tue, Feb 13, 2018 at 08:00:07PM +0300, Mika Westerberg wrote: > The ICM firmware may reject devices for different reasons, even if we > have asked it to accept anything. If we notice a device is rejected, we > just log the event and bail out. > > Signed-off-by: Mika Westerberg > --- > drivers

Re: [PATCH 3/9] drm/xen-front: Read driver configuration from Xen store

2018-02-22 Thread Boris Ostrovsky
On 02/21/2018 03:03 AM, Oleksandr Andrushchenko wrote: > + > +static int cfg_connector(struct xen_drm_front_info *front_info, > + struct xen_drm_front_cfg_connector *connector, > + const char *path, int index) > +{ > + char *connector_path; > + > + connector_path = d

[PATCH v3 1/2] dt-bindings: power: reset: gpio-poweroff: Add 'timeout-ms' property

2018-02-22 Thread Moritz Fischer
Add 'timeout-ms' property to support boards where the 3s timeout that the current driver defaults to is too short. Signed-off-by: Moritz Fischer --- Changes from v2: - Addressed Rob's feedback (timeout_ms -> timeout-ms) Changes from v1: - Addressed Rob's feedback (timeout -> timeout_ms) - Added

[PATCH v3 2/2] power: reset: gpio-poweroff: Support for timeout from device property

2018-02-22 Thread Moritz Fischer
Add support for reading a timeout value from device property. Fall back to previous default of 3s if nothing is specified. Signed-off-by: Moritz Fischer --- Changes from v2: - use device_property_read_{bool,u32} instead of of equivalent Changes from v1: - of_property_read_u32() overwrites the ou

Re: [PATCH] ARM: multi_v7_defconfig: Enable serial console on RPi 3

2018-02-22 Thread Eric Anholt
Eric Anholt writes: > [ Unknown signature status ] > Tuomas Tynkkynen writes: > >> The Raspberry Pi 3 uses the 8250-based auxilary UART of the BCM2837 SoC >> as the primary serial console of the board, so enable it in the >> multiplatform defconfig. >> >> Signed-off-by: Tuomas Tynkkynen > > Rev

[PATCH v8 0/3] netdev: octeon-ethernet: Add Cavium Octeon III support.

2018-02-22 Thread David Daney
We are adding the Cavium OCTEON-III network driver. Since interacting with the input and output queues is done via special CPU local memory, we also need to add support to the MIPS/Octeon architecture code. The four patch set to add this prerequisite code has been split out to a seperate patch se

[PATCH v8 1/3] dt-bindings: Add Cavium Octeon Common Ethernet Interface.

2018-02-22 Thread David Daney
From: Carlos Munoz Add bindings for Common Ethernet Interface (BGX) block. Acked-by: Rob Herring Signed-off-by: Carlos Munoz Signed-off-by: Steven J. Hill Signed-off-by: David Daney --- .../devicetree/bindings/net/cavium-bgx.txt | 61 ++ 1 file changed, 61 insert

[PATCH v8 3/3] MAINTAINERS: Add entry for drivers/net/ethernet/cavium/octeon/octeon3-*

2018-02-22 Thread David Daney
Signed-off-by: David Daney --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9a7f76eadae9..b36371ae590f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3259,6 +3259,12 @@ W: http://www.cavium.com S: Supported F: drivers/mmc/ho

Re: [PATCH v2 20/20] x86/PCI: VMD: Fix malformed Kconfig default

2018-02-22 Thread Ulf Magnusson
On Fri, Feb 23, 2018 at 12:00 AM, Bjorn Helgaas wrote: > On Tue, Feb 06, 2018 at 11:11:06PM +0100, Ulf Magnusson wrote: >> 'default N' should be 'default n', though they happen to have the same >> effect here, due to undefined symbols (N in this case) evaluating to n >> in a tristate sense. >> >>

Re: [PATCH 6/6] KEYS: Use individual pages in big_key for crypto buffers

2018-02-22 Thread David Howells
David Howells wrote: > + l = min(len, PAGE_SIZE); Sigh. This needs to be a min_t(). David

Re: [PATCH v2 07/10] drivers: qcom: rpmh: cache sleep/wake state requests

2018-02-22 Thread Evan Green
Hi Lina, On Thu, Feb 22, 2018 at 8:58 AM, Lina Iyer wrote: > On Wed, Feb 21 2018 at 22:07 +, Evan Green wrote: >> >> Hi Lina, >> >> On Thu, Feb 15, 2018 at 9:35 AM, Lina Iyer wrote: > > [...] > >>> +static struct cache_req *cache_rpm_request(struct rpmh_client *rc, >>> +

Re: [RFC][PATCH 0/6] KEYS: Fixes

2018-02-22 Thread David Howells
I've posted an update that converts the min() to a min_t() and tagged it: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/tag/?h=keys-fixes-20180222-2 Do you want me to repost the patches? David

Re: [PATCH v2 09/10] drivers: qcom: rpmh: add support for batch RPMH request

2018-02-22 Thread Evan Green
Hi Lina, On Thu, Feb 22, 2018 at 9:04 AM, Lina Iyer wrote: > On Wed, Feb 21 2018 at 23:25 +, Evan Green wrote: >> >> Hello Lina, >> >> On Thu, Feb 15, 2018 at 9:35 AM, Lina Iyer wrote: >>> >>> Platform drivers need make a lot of resource state requests at the same >>> time, say, at the start

Re: [PATCH] clk: tegra: fix pllu rate configuration

2018-02-22 Thread Stephen Warren
On 02/22/2018 04:04 PM, Marcel Ziswiler wrote: Turns out latest upstream U-Boot does not configure/enable pllu which leaves it at some default rate of 500 kHz: I assume this is only because U-Boot just happened not to access any USB devices. In other words, if you break into the U-Boot boot fl

Re: Removing architectures without upstream gcc support

2018-02-22 Thread Guenter Roeck
On Thu, Feb 22, 2018 at 04:45:06PM +0100, Arnd Bergmann wrote: > While building the cross-toolchains, I noticed that overall, we can build > almost > all linux target architectures with upstream binutils and gcc these days, > however there are still some exceptions, and I'd like to find out if any

Re: [PATCH V2] PCI: Add ACS quirk for Ampere root ports

2018-02-22 Thread Bjorn Helgaas
On Tue, Feb 20, 2018 at 07:19:27PM -0800, Feng Kan wrote: > The Ampere Computing PCIe root port does not support ACS at this point. > However, the hardware provides isolation and source validation through the > SMMU. The stream ID generated by the PCIe ports contain both the > bus/device/function n

Re: [PATCH 4/9] drm/xen-front: Implement Xen event channel handling

2018-02-22 Thread Boris Ostrovsky
On 02/21/2018 03:03 AM, Oleksandr Andrushchenko wrote: > + > +static irqreturn_t evtchnl_interrupt_ctrl(int irq, void *dev_id) > +{ > + struct xen_drm_front_evtchnl *evtchnl = dev_id; > + struct xen_drm_front_info *front_info = evtchnl->front_info; > + struct xendispl_resp *resp; > +

[PATCH v2 4/6] fs/dcache: Avoid the try_lock loops in dentry_kill()

2018-02-22 Thread John Ogness
dentry_kill() holds dentry->d_lock and needs to acquire both dentry->d_inode->i_lock and dentry->d_parent->d_lock. This cannot be done with spin_lock() operations because it's the reverse of the regular lock order. To avoid ABBA deadlocks it is done with two trylock loops. Trylock loops are proble

[PATCH v2 6/6] fs/dcache: Avoid remaining try_lock loop in shrink_dentry_list()

2018-02-22 Thread John Ogness
shrink_dentry_list() holds dentry->d_lock and needs to acquire dentry->d_inode->i_lock. This cannot be done with a spin_lock() operation because it's the reverse of the regular lock order. To avoid ABBA deadlocks it is done with a trylock loop. Trylock loops are problematic in two scenarios: 1)

[PATCH v2 2/6] fs/dcache: Move dentry_kill() below lock_parent()

2018-02-22 Thread John Ogness
A subsequent patch will modify dentry_kill() to call lock_parent(). Move the dentry_kill() implementation "as is" below lock_parent() first. This will help simplify the review of the subsequent patch with dentry_kill() changes. Signed-off-by: John Ogness --- fs/dcache.c | 62

[PATCH v2 0/6] fs/dcache: avoid trylock loops

2018-02-22 Thread John Ogness
Thank you Al Viro, Linus Torvalds, Peter Zijlstra, Amir Goldstein for the detailed feedback. Changes in v2: . dentry_lock_inode() - added quick out on trylock success - added comments to rcu section - expanded rcu coverage to all inode usage - if inode changes during d_lock window, res

[PATCH v2 3/6] fs/dcache: Avoid the try_lock loop in d_delete()

2018-02-22 Thread John Ogness
d_delete() holds dentry->d_lock and needs to acquire dentry->d_inode->i_lock. This cannot be done with a spin_lock() operation because it's the reverse of the regular lock order. To avoid the ABBA deadlock it is done with a trylock loop. Trylock loops are problematic in two scenarios: 1) PREEMP

Re: [PATCH v7 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2018-02-22 Thread Jordan Crouse
On Wed, Feb 07, 2018 at 04:01:19PM +0530, Vivek Gautam wrote: > From: Sricharan R > > The smmu device probe/remove and add/remove master device callbacks > gets called when the smmu is not linked to its master, that is without > the context of the master device. So calling runtime apis in those p

[PATCH v2 1/6] fs/dcache: Remove stale comment from dentry_kill()

2018-02-22 Thread John Ogness
Commit 0d98439ea3c6 ("vfs: use lockred "dead" flag to mark unrecoverably dead dentries") removed the `ref' parameter in dentry_kill() but its documentation remained. Remove it. Signed-off-by: John Ogness --- fs/dcache.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/dcache.c b/fs/dcache.c

[PATCH v2 5/6] fs/dcache: Avoid a try_lock loop in shrink_dentry_list()

2018-02-22 Thread John Ogness
shrink_dentry_list() holds dentry->d_lock and needs to acquire dentry->d_inode->i_lock. This cannot be done with a spin_lock() operation because it's the reverse of the regular lock order. To avoid ABBA deadlocks it is done with a trylock loop. Trylock loops are problematic in two scenarios: 1)

Re: [PATCH] doc: process: Add "Root-caused-by" and "Suggested-by"

2018-02-22 Thread Joe Perches
On Thu, 2018-02-22 at 10:40 -0700, Jonathan Corbet wrote: > That said, we can add this one; I'll take the patch if I get an ack from > Joe. Meh-ed-by: Joe Perches

Re: [PATCH 0/2] rcu: Transform kfree_rcu() into kvfree_rcu()

2018-02-22 Thread Paul E. McKenney
On Wed, Feb 07, 2018 at 10:10:55AM -0800, Matthew Wilcox wrote: > On Wed, Feb 07, 2018 at 05:45:13PM +0100, Jesper Dangaard Brouer wrote: > > On Wed, 7 Feb 2018 08:57:00 -0500 > > Steven Rostedt wrote: > > > To me kvfree() is a special case and should not be used by RCU as a > > > generic function

Re: [PATCH v2 1/3] mm/sparse: Add a static variable nr_present_sections

2018-02-22 Thread Baoquan He
On 02/22/18 at 01:24pm, Andrew Morton wrote: > On Thu, 22 Feb 2018 17:11:28 +0800 Baoquan He wrote: > > > It's used to record how many memory sections are marked as present > > during system boot up, and will be used in the later patch. > > > > --- a/mm/sparse.c > > +++ b/mm/sparse.c > > @@ -202

[PATCH 0/7] drm/virtio: Checkpatch cleanup for virtio

2018-02-22 Thread Rodrigo Siqueira
This patchset fixes warnings and errors found by checkpatch.pl in the drm/virtio: * Removes return from void function; * Adds */ in block comments to separate line; * Adds blank line after variable declarations; * Adds tabs at the start of a line; * Replaces 'unsigned' for 'unsigned int'; * Remove

[PATCH 1/7] drm/virtio: Add tabs at the start of a line

2018-02-22 Thread Rodrigo Siqueira
This patch fixes the checkpatch.pl errors: drivers/gpu/drm/virtio/virtgpu_drv.h:371: ERROR: code indent should use tabs where possible ... Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/virtio/virtgpu_display.c | 2 +- drivers/gpu/drm/virtio/virtgpu_drv.h | 6 +++--- 2 files changed, 4

[PATCH 3/7] drm/virtio: Add */ in block comments to separate line

2018-02-22 Thread Rodrigo Siqueira
This patch fixes the checkpatch.pl warning: virtgpu_ioctl.c:551: WARNING: Block comments use a trailing */ on a separate line ... Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 3 ++- drivers/gpu/drm/virtio/virtgpu_prime.c | 3 ++- drivers/gpu/drm/virtio/virtgpu_vq

[PATCH 2/7] drm/virtio: Add blank line after variable declarations

2018-02-22 Thread Rodrigo Siqueira
This patch fixes the checkpatch.pl warnings: virtgpu_drv.c:57: WARNING: Missing a blank line after declarations virtgpu_display.c:99: WARNING: Missing a blank line after declarations ... Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/virtio/virtgpu_display.c | 1 + drivers/gpu/drm/virtio/v

[PATCH 4/7] drm/virtio: Remove return from void function

2018-02-22 Thread Rodrigo Siqueira
This patch fixes the checkpatch.pl warning: virtgpu_ttm.c:181: WARNING: void function return statements are not generally useful ... Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/virtio/virtgpu_ttm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_ttm.c

[PATCH 5/7] drm/virtio: Replace 'unsigned' for 'unsigned int'

2018-02-22 Thread Rodrigo Siqueira
This patch fixes the checkpatch.pl warning: drivers/gpu/drm/virtio/virtgpu_display.c:64: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' ... Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/virtio/virtgpu_display.c | 4 ++-- drivers/gpu/drm/virtio/virtgpu_drv.h | 2 +- drivers/g

[PATCH 7/7] drm/virtio: Add spaces around operators

2018-02-22 Thread Rodrigo Siqueira
This patch fixes the checkpatch.pl check: virtgpu_ioctl.c:535: CHECK: spaces preferred around that '|' (ctx:VxV) virtgpu_vq.c:277: CHECK: spaces preferred around that '+' (ctx:VxV) ... Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 18 +- drivers/gp

[PATCH 6/7] drm/virtio: Remove multiple blank lines

2018-02-22 Thread Rodrigo Siqueira
This patch fixes the checkpatch.pl check: virtgpu_drv.c:116: CHECK: Please don't use multiple blank lines virtgpu_vq.c:599: CHECK: Please don't use multiple blank lines virtgpu_prime.c:42: CHECK: Please don't use multiple blank lines Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/virtio/vi

Re: [PATCH v2] kconfig.h: Include compiler types to avoid missed struct attributes

2018-02-22 Thread Kees Cook
On Thu, Feb 22, 2018 at 2:26 PM, kbuild test robot wrote: > Hi Kees, > > I love your patch! Yet something to improve: > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.16-rc2 next-20180222] > [if your patch is applied to the wrong git tree, ple

Re: [PATCH] MAINTAINERS: Update ASPEED entry with details

2018-02-22 Thread Andrew Jeffery
Hi Haiyue, On Thu, 22 Feb 2018, at 19:20, Wang, Haiyue wrote: > Dear Andrew & Joel, > > Since you are ASPEED BMC experts, any time and interest in eSPI code > review ? I've sent > > it before, but no more response. Intel recommends eSPI bus than LPC as I > know. I just kept > > the minimal eS

Re: [BUGFIX PATCH v2.1] tracing: probeevent: Fix to support minus offset from symbol

2018-02-22 Thread Namhyung Kim
Hi Masami, On Thu, Feb 22, 2018 at 04:45:01PM +0900, Masami Hiramatsu wrote: > In Documentation/trace/kprobetrace.txt, it says > > @SYM[+|-offs] : Fetch memory at SYM +|- offs (SYM should be a data symbol) > > However, the parser doesn't parse minus offset correctly, since > commit 2fba0c8867af

Re: [PATCH 04/11] signal/parisc: Document a conflict with SI_USER with SIGFPE

2018-02-22 Thread Eric W. Biederman
Helge Deller writes: > * Eric W. Biederman : >> Setting si_code to 0 results in a userspace seeing an si_code of 0. >> This is the same si_code as SI_USER. Posix and common sense requires >> that SI_USER not be a signal specific si_code. As such this use of 0 >> for the si_code is a pretty horr

Re: [PATCH v2] kconfig.h: Include compiler types to avoid missed struct attributes

2018-02-22 Thread Kees Cook
On Thu, Feb 22, 2018 at 4:03 PM, Kees Cook wrote: > On Thu, Feb 22, 2018 at 2:26 PM, kbuild test robot wrote: >> Hi Kees, >> >> I love your patch! Yet something to improve: >> >> [auto build test ERROR on linus/master] >> [also build test ERROR on v4.16-

<    3   4   5   6   7   8   9   10   >