Re: [PATCH v3 00/16] mmc: tmio: another batch of TMIO MMC fixes and cleanups

2018-02-14 Thread Wolfram Sang
> You need to check again. :-) Seems like it. Sorry for the noise. > I am eager to apply those patches you already have reviewed (to > patch14), as those mostly seemed rather trivial and should be nice > cleanups. > > Do you mind me going ahead, then you can continue and review/test the rest?

Re: VMs freezing when host is running 4.14

2018-02-14 Thread Paolo Bonzini
On 14/02/2018 03:04, Josh Poimboeuf wrote: > On Sun, Feb 11, 2018 at 02:39:41PM +0100, Marc Haber wrote: >> Hi, >> >> after in total nine weeks of bisecting, broken filesystems, service >> outages (thankfully on unportant systems), 4.15 seems to have fixed the >> issue. After going to 4.15, the cra

Re: plan9 semantics on Linux - mount namespaces

2018-02-14 Thread Aleksa Sarai
On 2018-02-14, Enrico Weigelt wrote: > On 14.02.2018 04:54, Aleksa Sarai wrote: > > > It depends how old your kernel is and what distro you use. Arch Linux > > > disables user namespaces entirely, Debian requires that you set a > sysctl> to enable unprivileged user namespaces, and RHEL requires y

Re: [PATCH 12/18] thunderbolt: Add tb_xdomain_find_by_route()

2018-02-14 Thread Mika Westerberg
On Tue, Feb 13, 2018 at 07:51:21PM +0200, Andy Shevchenko wrote: > On Tue, Feb 13, 2018 at 7:00 PM, Mika Westerberg > wrote: > > From: Radion Mirchevsky > > > > This is needed by the new ICM interface to find xdomains by route string > > instead of link and depth. > > > + xd = switch_find_

Re: v4.13 on nokia n900: oops during tethering

2018-02-14 Thread Pavel Machek
Hi! > > During tethering, I got oops in ssi_stop_tx(), followed by failure of > > GPRS. I used GPRS tethering a lot with some older kernel, and it was > > stable for hours. > > > > It seems v4.12 has the same problem. In v4.15 usb networking does not > > work at all, so I can't test... v4.10 seem

Re: [patch 1/2] mm, page_alloc: extend kernelcore and movablecore for percent

2018-02-14 Thread David Rientjes
On Wed, 14 Feb 2018, Michal Hocko wrote: > I do not have any objections regarding the extension. What I am more > interested in is _why_ people are still using this command line > parameter at all these days. Why would anybody want to introduce lowmem > issues from 32b days. I can see the CMA/Hotp

[PATCH]sched: completion: use bool in try_wait_for_completion

2018-02-14 Thread gaurav jindal
Use bool in place of int in the function try_wait_for_completion. Signed-off-by: Gaurav Jindal --- diff --git a/kernel/sched/completion.c b/kernel/sched/completion.c index 0926aef..3e15e8d 100644 --- a/kernel/sched/completion.c +++ b/kernel/sched/completion.c @@ -283,7 +283,7 @@ int __sched wait

[PATCH][scsi-next] scsi: myrs: Fix spelling mistake: "Cashe"-> "Cache"

2018-02-14 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in info message text. Signed-off-by: Colin Ian King --- drivers/scsi/myrs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/myrs.c b/drivers/scsi/myrs.c index 3b87c6942a8e..16498e1b0dd4 100644 --- a/drivers/s

[PATCH] x86/asm: Use PAGE_SIZE instead of 4096 where appropriate

2018-02-14 Thread Kirill A. Shutemov
Cyrill pointed that it makes sense to replace 4096 to PAGE_SIZE in head_64.S. This patch replaces 4096 with PAGE_SIZE everywhere in assembly code where it fits semantically. Suggested-by: Cyrill Gorcunov Signed-off-by: Kirill A. Shutemov --- arch/x86/boot/compressed/head_64.S| 4 ++--

Re: [PATCH v7 6/6] drm/msm: iommu: Replace runtime calls with runtime suppliers

2018-02-14 Thread Vivek Gautam
On Wed, Feb 14, 2018 at 2:46 PM, Tomasz Figa wrote: Adding Jordan to this thread as well. > On Wed, Feb 14, 2018 at 6:13 PM, Vivek Gautam > wrote: >> Hi Tomasz, >> >> On Wed, Feb 14, 2018 at 11:08 AM, Tomasz Figa wrote: >>> On Wed, Feb 14, 2018 at 1:17 PM, Vivek Gautam >>> wrote: Hi Toma

Re: clang asm-goto support (Was Re: [PATCH v2] x86/retpoline: Add clang support)

2018-02-14 Thread Peter Zijlstra
On Wed, Feb 14, 2018 at 09:52:59AM +, Yatsina, Marina wrote: > Hi Peter, > > When I started the original thread last year I was in favor of adding > "asm goto" and didn't understand why it wasn't done by that time. The > feedback I got is that this feature (optimizing tracepoints) is very > u

Re: [PATCH 01/15] Documentation: devicetree: R-Car M3-N SoC DT bindings

2018-02-14 Thread Geert Uytterhoeven
On Tue, Feb 13, 2018 at 10:45 AM, Jacopo Mondi wrote: > Add device tree bindings documentation for Renesas R-Car M3-N (r8a77965) > SoC. > > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Li

Re: [PATCH 2/2] MIPS: Remove a warning when PHYS_OFFSET is 0x0

2018-02-14 Thread Mathieu Malaterre
On Tue, Jan 2, 2018 at 7:55 PM, Mathieu Malaterre wrote: > Hi James, > > On Tue, Jan 2, 2018 at 10:31 AM, James Hogan wrote: >> On Tue, Dec 26, 2017 at 12:37:14PM +0100, Mathieu Malaterre wrote: >>> Rewrite the comparison in `else if` statement, case where `min_low_pfn > >>> ARCH_PFN_OFFSET` has

Re: [PATCH V3 04/10] sched/core: Prevent race condition between cpuset and __sched_setscheduler()

2018-02-14 Thread Juri Lelli
Hi Mathieu, On 13/02/18 13:32, Mathieu Poirier wrote: > No synchronisation mechanism exist between the cpuset subsystem and calls > to function __sched_setscheduler(). As such it is possible that new root > domains are created on the cpuset side while a deadline acceptance test > is carried out i

Re: [PATCH v2 00/16] mmc: sdhci-omap: Add UHS/HS200 mode support

2018-02-14 Thread Ulf Hansson
On 5 February 2018 at 13:50, Kishon Vijay Abraham I wrote: > Add UHS/HS200 mode support in sdhci-omap. The programming sequence > for voltage switching, tuning is followed from AM572x TRM > http://www.ti.com/lit/ug/spruhz6i/spruhz6i.pdf > (Similar to all AM57x/DRA7x SoCs). The patch series also im

Re: [PATCH v2] mmc: core: optimize mmc_calc_max_discard

2018-02-14 Thread Ulf Hansson
On 8 February 2018 at 18:41, Sergio Valverde wrote: > If the max_discard value is zero, the conditional branch that checks the > trim capabilities will never update this value with max_trim. > > Change the condition statement to also check the max_discard value in order > to avoid an unnecessary c

Re: [PATCH] Revert "mmc: meson-gx: include tx phase in the tuning process"

2018-02-14 Thread Ulf Hansson
On 12 February 2018 at 14:13, Jerome Brunet wrote: > This reverts commit 0a44697627d17a66d7dc98f17aeca07ca79c5c20. > > This commit was initially intended to fix problems with hs200 and hs400 > on some boards, mainly the odroid-c2. The OC2 (Rev 0.2) I have performs > well in this modes, so I could

Re: [PATCH] watchdog: hpwdt: Remove spinlock acquire and BIOS calls from NMI context

2018-02-14 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Wed, Feb 14, 2018 at 10:31:59AM +0100, Ingo Molnar wrote: > > Because in this particular case it does not appear to be so: the reason for > > the > > BIOS/firmware call appears to be to determine how we nmi_panic() after > > receiving > > an NMI that no other NMI

Re: [PATCH v3 00/16] mmc: tmio: another batch of TMIO MMC fixes and cleanups

2018-02-14 Thread Ulf Hansson
On 14 February 2018 at 11:23, Wolfram Sang wrote: > >> You need to check again. :-) > > Seems like it. Sorry for the noise. > >> I am eager to apply those patches you already have reviewed (to >> patch14), as those mostly seemed rather trivial and should be nice >> cleanups. >> >> Do you mind me g

Re: [PATCH,RESEND2] regulator: fixed, gpio: dt: regulator-name is required property

2018-02-14 Thread Mark Brown
On Wed, Feb 14, 2018 at 11:00:12AM +0100, Harald Geyer wrote: > Mark Brown writes: > > No, a content free ping is when you just send a reply saying something > > to the effect of "hey, what's going on with this?". > Well, I did quote the entire patch and gave a summary of the status > as far as I

Re: [PATCH 00/31 v2] PTI support for x86_32

2018-02-14 Thread Pavel Machek
On Sun 2018-02-11 11:42:47, Andy Lutomirski wrote: > > > On Feb 11, 2018, at 9:40 AM, Mark D Rustad wrote: > > >> On Feb 11, 2018, at 2:59 AM, Adam Borowski wrote: > >> > >>> Does Debian make it easy to upgrade to a 64-bit kernel if you have a > >>> 32-bit install? > >> > >> Quite easy, yeah

Re: clang asm-goto support (Was Re: [PATCH v2] x86/retpoline: Add clang support)

2018-02-14 Thread Thomas Gleixner
On Wed, 14 Feb 2018, Peter Zijlstra wrote: > On Wed, Feb 14, 2018 at 08:41:43AM +, Chandler Carruth wrote: > > Marina, Kees: > > > > I think the combination of LKML and the LLVM developer's list is probably > > too large a set of folks to have a (somewhat) lengthy exploration of > > options an

Re: [PATCH V3 04/10] sched/core: Prevent race condition between cpuset and __sched_setscheduler()

2018-02-14 Thread Juri Lelli
On 14/02/18 11:36, Juri Lelli wrote: > Hi Mathieu, > > On 13/02/18 13:32, Mathieu Poirier wrote: > > No synchronisation mechanism exist between the cpuset subsystem and calls > > to function __sched_setscheduler(). As such it is possible that new root > > domains are created on the cpuset side wh

Re: [PATCH v5] Documentation/ABI: update cpuidle sysfs documentation

2018-02-14 Thread Rafael J. Wysocki
On Wednesday, February 7, 2018 2:34:36 PM CET Aishwarya Pant wrote: > Update cpuidle documentation using git logs and existing documentation > in Documentation/cpuidle/sysfs.txt. This might be useful for scripting > and tracking changes in the ABI. > > Signed-off-by: Aishwarya Pant > --- > Change

Re: [PATCH] PM / wakeirq: Fix unbalanced irq enable for wakeirq

2018-02-14 Thread Rafael J. Wysocki
On Friday, February 9, 2018 5:11:26 PM CET Tony Lindgren wrote: > If a device is runtime PM suspended when we enter suspend and has > a dedicated wake irq, we can get the following warning: > > WARNING: CPU: 0 PID: 108 at kernel/irq/manage.c:526 enable_irq+0x40/0x94 > [ 102.087860] Unbalanced ena

Re: [PATCH] PM / wakeirq: Add wakeup name to dedicated wake irqs

2018-02-14 Thread Rafael J. Wysocki
On Friday, February 9, 2018 5:14:56 PM CET Tony Lindgren wrote: > This makes it easy to grep :wakeup /proc/interrupts. > > Cc: Brian Norris > Cc: Grygorii Strashko > Cc: Ulf Hansson > Suggested-by: Jeffy Chen > Signed-off-by: Tony Lindgren > --- > drivers/base/power/power.h | 1 + > drive

Re: [PATCH] PM / runtime: Update links_count also if !CONFIG_SRCU

2018-02-14 Thread Rafael J. Wysocki
On Saturday, February 10, 2018 7:13:58 PM CET Lukas Wunner wrote: > Commit baa8809f6097 ("PM / runtime: Optimize the use of device links") > added an invocation of pm_runtime_drop_link() to __device_link_del(). > However there are two variants of that function, one for CONFIG_SRCU and > another for

Re: [PATCH] staging: typec: handle vendor defined part and modify drp toggling flow

2018-02-14 Thread Heikki Krogerus
On Wed, Feb 14, 2018 at 05:24:04PM +0800, ShuFanLee wrote: > From: ShuFanLee > > Handle vendor defined behavior in tcpci_init and tcpci_irq. > More operations can be extended in tcpci_vendor_data if needed. > According to TCPCI specification, 4.4.5.2 ROLE_CONTROL, > TCPC shall not start DRP toggl

Re: [PATCH] x86/asm: Use PAGE_SIZE instead of 4096 where appropriate

2018-02-14 Thread Cyrill Gorcunov
On Wed, Feb 14, 2018 at 01:32:53PM +0300, Kirill A. Shutemov wrote: > Cyrill pointed that it makes sense to replace 4096 to PAGE_SIZE in > head_64.S. > > This patch replaces 4096 with PAGE_SIZE everywhere in assembly code > where it fits semantically. > > Suggested-by: Cyrill Gorcunov > Signed-o

Re: [RFC PATCH] driver core: Count repeated addition of same device link

2018-02-14 Thread Rafael J. Wysocki
On Saturday, February 10, 2018 7:27:12 PM CET Lukas Wunner wrote: > If device_link_add() is invoked multiple times with the same supplier > and consumer combo, it will create the link on first addition and > return a pointer to the already existing link on all subsequent > additions. > > The seman

[PATCH] ubifs: Fix synced_i_size calculation for xattr inodes

2018-02-14 Thread Richard Weinberger
In ubifs_jnl_update() we sync parent and child inodes to the flash, in case of xattrs, the parent inode (AKA host inode) has a non-zero data_len. Therefore we need to adjust synced_i_size too. This issue was reported by ubifs self tests unter a xattr related work load. UBIFS error (ubi0:0 pid 1896

Re: [PATCH 02/15] clk: renesas: cpg-msr: Add support for R-Car M3-N

2018-02-14 Thread Geert Uytterhoeven
Hi Jacopo, On Tue, Feb 13, 2018 at 10:45 AM, Jacopo Mondi wrote: > Initial support for R-Car M3-N (r8a77965), including core and module > clocks. > > Signed-off-by: Jacopo Mondi Thanks for your patch! Please refer to Table 8.2d of R-Car Series, 3rd Generation User's Manual: Hardware (Rev. 0.80

[tip:locking/core] Documentation/locking/lockdep: Update info about states

2018-02-14 Thread tip-bot for Juri Lelli
Commit-ID: e5684bbfc3f03480d6ba2150f133630fb510d3eb Gitweb: https://git.kernel.org/tip/e5684bbfc3f03480d6ba2150f133630fb510d3eb Author: Juri Lelli AuthorDate: Tue, 13 Feb 2018 19:55:18 +0100 Committer: Ingo Molnar CommitDate: Wed, 14 Feb 2018 12:01:22 +0100 Documentation/locking/lockde

[tip:locking/core] Documentation/locking/lockdep: Add section about available annotations

2018-02-14 Thread tip-bot for Juri Lelli
Commit-ID: a1ea544fe0911492b9f8d101bcbf46cc8c47fbc5 Gitweb: https://git.kernel.org/tip/a1ea544fe0911492b9f8d101bcbf46cc8c47fbc5 Author: Juri Lelli AuthorDate: Tue, 13 Feb 2018 19:55:19 +0100 Committer: Ingo Molnar CommitDate: Wed, 14 Feb 2018 12:01:22 +0100 Documentation/locking/lockde

Re: [PATCH v5 0/7] ARM: stm32: add initial STM32MPU support

2018-02-14 Thread Alexandre Torgue
Hi Arnd, On 01/16/2018 03:56 PM, Ludovic Barre wrote: From: Ludovic Barre This patch series extends the existing STM32 microcontrollers (MCUs) family to microprocessors (MPUs). The MPU platform (based on Arm Cortex-A) is a continuation of the MCU one (based on Arm Cortex-M) in that it shares a

Re: [PATCH v2 3/3] arm64: dts: rockchip: enable DP for gru.

2018-02-14 Thread Heiko Stübner
Am Dienstag, 13. Februar 2018, 15:35:49 CET schrieb Enric Balletbo i Serra: > From: Chris Zhong > > Enable cdn_dp and create a cdn-dp-sound for the DP audio. Delete the > endpoints between dp and vopL for gru, since we want the DP only use > VOP big, which can support 4K mode. > > Signed-off-by:

Re: [PATCH v2 1/2] memory: tegra: Squash tegra20-mc into common tegra-mc driver

2018-02-14 Thread Peter De Schrijver
On Tue, Feb 13, 2018 at 11:30:39AM +0100, Thierry Reding wrote: > > } > > It's odd that we don't have an MC clock on Tegra2. I wonder if perhaps > we just never implemented one, or it uses one which is always on by > default. Cc Peter to see if he knows. We do, it has DT ID TEGRA20_CLK_MC. Ho

[PATCH 8/9] x86/mm: Make __VIRTUAL_MASK_SHIFT dynamic

2018-02-14 Thread Kirill A. Shutemov
For boot-time switching between paging modes, we need to be able to adjust virtual mask shifts. The change doesn't affect the kernel image size much: textdata bss dec hex filename 8628892 4734340 1368064 14731296 e0c820 vmlinux.before 8628966 4734340 1368064 14731370

[PATCH 9/9] x86/mm: Adjust virtual address space layout in early boot

2018-02-14 Thread Kirill A. Shutemov
We need to adjust virtual address space to support switching between paging modes. The adjustment happens in __startup_64(). We also have to change KASLR code that doesn't expect variable VMALLOC_SIZE_TB. Signed-off-by: Kirill A. Shutemov --- arch/x86/boot/compressed/kaslr.c| 14 ++

Re: [patch] kvm: suppress KVM_SET_GSI_ROUTING allocation failure

2018-02-14 Thread Christian Borntraeger
On 02/14/2018 11:10 AM, Paolo Bonzini wrote: > On 14/02/2018 02:03, David Rientjes wrote: >> On Tue, 13 Feb 2018, Paolo Bonzini wrote: >> > The KVM_SET_GSI_ROUTING ioctl does a vmalloc() of > sizeof(struct kvm_irq_routing_entry) multiplied by a user-supplied value. > This can be up to

[PATCH 2/9] mm/zsmalloc: Prepare to variable MAX_PHYSMEM_BITS

2018-02-14 Thread Kirill A. Shutemov
With boot-time switching between paging mode we will have variable MAX_PHYSMEM_BITS. Let's use the maximum variable possible for CONFIG_X86_5LEVEL=y configuration to define zsmalloc data structures. The patch introduces MAX_POSSIBLE_PHYSMEM_BITS to cover such case. It also suits well to handle PA

[PATCH 6/9] x86/mm: Make PGDIR_SHIFT and PTRS_PER_P4D variable

2018-02-14 Thread Kirill A. Shutemov
For boot-time switching between 4- and 5-level paging we need to be able to fold p4d page table level at runtime. It requires variable PGDIR_SHIFT and PTRS_PER_P4D. The change doesn't affect the kernel image size much: textdata bss dec hex filename 8628091 4734304 1368064 14730

[PATCH 4/9] x86: Introduce pgtable_l5_enabled

2018-02-14 Thread Kirill A. Shutemov
The new flag would indicate what paging mode we are in. Signed-off-by: Kirill A. Shutemov --- arch/x86/boot/compressed/kaslr.c| 4 arch/x86/include/asm/pgtable_32_types.h | 2 ++ arch/x86/include/asm/pgtable_64_types.h | 6 ++ arch/x86/kernel/head64.c| 5 + 4

[PATCH 5/9] x86/mm: Make LDT_BASE_ADDR dynamic

2018-02-14 Thread Kirill A. Shutemov
LDT_BASE_ADDR has different value in 4- and 5-level paging configurations. We need to make it dynamic in preparation for boot-time switching between paging modes. Signed-off-by: Kirill A. Shutemov --- arch/x86/include/asm/pgtable_64_types.h | 9 + arch/x86/mm/dump_pagetables.c

[PATCH 3/9] x86/mm: Make virtual memory layout movable for CONFIG_X86_5LEVEL

2018-02-14 Thread Kirill A. Shutemov
We need to be able to adjust virtual memory layout at runtime to be able to switch between 4- and 5-level paging at boot-time. KASLR already has movable __VMALLOC_BASE, __VMEMMAP_BASE and __PAGE_OFFSET. Let's re-use it. Signed-off-by: Kirill A. Shutemov --- arch/x86/Kconfig

[PATCH 7/9] x86/mm: Make MAX_PHYSADDR_BITS and MAX_PHYSMEM_BITS dynamic

2018-02-14 Thread Kirill A. Shutemov
For boot-time switching between paging modes, we need to be able to adjust size of physical address space at runtime. As part of making physical address space size variable, we have to make X86_5LEVEL dependent on SPARSEMEM_VMEMMAP. !SPARSEMEM_VMEMMAP configuration doesn't build with variable MAX_

[PATCH 1/9] x86/mm/64: Make __PHYSICAL_MASK_SHIFT always 52

2018-02-14 Thread Kirill A. Shutemov
__PHYSICAL_MASK_SHIFT is used to define the mask that helps to extract physical address from a page table entry. Although, real physical address space available may differ between machines, it's safe to use 52 as __PHYSICAL_MASK_SHIFT. Unused bits above log2(MAXPHYADDR) up to bit 51 are reserved a

[PATCH 0/9] x86/mm: Dynamic memory layout

2018-02-14 Thread Kirill A. Shutemov
This is the next batch of patches required to bring boot-time switching between 4- and 5-level paging. Please review and consider applying. Patches in this patchset makes memory layout dynamic enough to be able to switch between paging modes at boot-time. Ingo, it worth noticing that we discussed

Re: [PATCH] PM / wakeirq: Add wakeup name to dedicated wake irqs

2018-02-14 Thread Andy Shevchenko
On Fri, Feb 9, 2018 at 6:14 PM, Tony Lindgren wrote: > This makes it easy to grep :wakeup /proc/interrupts. I used to have another patch (not published) to provide this information via /sys/kernel/irq. OK, here we are: > + namelen = strlen(dev_name(dev)) + strlen(postfix) + 1; > +

[PATCH v2 2/3] perf inject: Emit instruction records on ETM trace discontinuity

2018-02-14 Thread Robert Walker
There may be discontinuities in the ETM trace stream due to overflows or ETM configuration for selective trace. This patch emits an instruction sample with the pending branch stack when a TRACE ON packet occurs indicating a discontinuity in the trace data. A new packet type CS_ETM_TRACE_ON is add

[PATCH v2 0/3] Perf inject for ETM trace

2018-02-14 Thread Robert Walker
Hi, These patches add support for using perf inject to generate branch events, instruction events and branch stacks from CoreSight ETM traces. They apply to linus's tree with the memory cleanup fix from https://lkml.org/lkml/2018/1/25/432 Changes since v1: * Split documentation update into sepa

[PATCH v2 1/3] perf tools: inject capabilitity for CoreSight traces

2018-02-14 Thread Robert Walker
Added user space perf functionality to translate CoreSight traces into instruction events with branch stack. To invoke the new functionality, use the perf inject tool with --itrace=il. For example, to translate the ETM trace from perf.data into last branch records in a new inj.data file: $ pe

[PATCH v2 3/3] coresight: Update documentation for perf usage

2018-02-14 Thread Robert Walker
Add notes on using perf to collect and analyze CoreSight trace Signed-off-by: Robert Walker --- Documentation/trace/coresight.txt | 51 +++ 1 file changed, 51 insertions(+) diff --git a/Documentation/trace/coresight.txt b/Documentation/trace/coresight.txt in

Re: [PATCH V3 04/10] sched/core: Prevent race condition between cpuset and __sched_setscheduler()

2018-02-14 Thread Juri Lelli
On 14/02/18 11:49, Juri Lelli wrote: > On 14/02/18 11:36, Juri Lelli wrote: > > Hi Mathieu, > > > > On 13/02/18 13:32, Mathieu Poirier wrote: > > > No synchronisation mechanism exist between the cpuset subsystem and calls > > > to function __sched_setscheduler(). As such it is possible that new r

Re: [PATCH v5 08/13] iommu/rockchip: Control clocks needed to access the IOMMU

2018-02-14 Thread Tomasz Figa
On Wed, Feb 14, 2018 at 7:03 PM, Vivek Gautam wrote: > > > On 1/24/2018 7:19 PM, Robin Murphy wrote: >> >> On 24/01/18 10:35, Jeffy Chen wrote: >>> >>> From: Tomasz Figa >>> >>> Current code relies on master driver enabling necessary clocks before >>> IOMMU is accessed, however there are cases wh

Re: plan9 semantics on Linux - mount namespaces

2018-02-14 Thread Enrico Weigelt
On 14.02.2018 11:24, Aleksa Sarai wrote: What distribution are you using and which release? On a self-compiled system. Forgot to enable namespaces in the kernel. Now it seems to work as root, but not as an unprivileged user: daemon@alphabox:~ unshare -r -U unshare: can't open '/proc/self/se

Re: [PATCH] PCI: Add quirk for Cavium Thunder-X2 PCIe erratum #173

2018-02-14 Thread George Cherian
Hi Bjorn, Thanks for the review. On 02/13/2018 08:39 PM, Bjorn Helgaas wrote: [+cc Lorenzo] On Fri, Feb 02, 2018 at 07:00:46AM +, George Cherian wrote: The PCIe Controller on Cavium ThunderX2 processors does not respond to downstream CFG/ECFG cycles when root port is in power management D

Re: [PATCH] irqchip: mips-gic: Avoid spuriously handling masked interrupts

2018-02-14 Thread Matt Redfearn
On 07/02/18 10:41, Marc Zyngier wrote: On 07/02/18 09:44, Matt Redfearn wrote: Hi Marc, On 07/02/18 09:41, Marc Zyngier wrote: On 05/02/18 16:45, Matt Redfearn wrote: Commit 7778c4b27cbe ("irqchip: mips-gic: Use pcpu_masks to avoid reading GIC_SH_MASK*") removed the read of the hardware mas

Re: plan9 semantics on Linux - mount namespaces

2018-02-14 Thread Richard Weinberger
On Wed, Feb 14, 2018 at 12:27 PM, Enrico Weigelt wrote: > On 14.02.2018 11:24, Aleksa Sarai wrote: > >> What distribution are you using and which release? > > > On a self-compiled system. > > Forgot to enable namespaces in the kernel. Now it seems to work > as root, but not as an unprivileged user

Re: why scripts/link-vmlinux.sh has a final build of init/

2018-02-14 Thread Masahiro Yamada
2018-02-13 16:08 GMT+09:00 Cao jin : > BTW, I still have 2 questions. > > 1. In final build, why need > >GCC_PLUGINS_CFLAGS="${GCC_PLUGINS_CFLAGS}" > > Doesn't GCC_PLUGINS_CFLAGS already exist in the environment? > > I also tested the Randomizing Structure Layout plugin with this patch, > the

Re: [patch] kvm: suppress KVM_SET_GSI_ROUTING allocation failure

2018-02-14 Thread Paolo Bonzini
On 14/02/2018 12:14, Christian Borntraeger wrote: > > > On 02/14/2018 11:10 AM, Paolo Bonzini wrote: >> On 14/02/2018 02:03, David Rientjes wrote: >>> On Tue, 13 Feb 2018, Paolo Bonzini wrote: >>> >> The KVM_SET_GSI_ROUTING ioctl does a vmalloc() of >> sizeof(struct kvm_irq_routing_entry)

Re: [PATCH v2] reset: add support for non-DT systems

2018-02-14 Thread Andy Shevchenko
On Wed, Feb 14, 2018 at 10:59 AM, Bartosz Golaszewski wrote: > 2018-02-13 20:17 GMT+01:00 Andy Shevchenko : >> On Tue, Feb 13, 2018 at 8:39 PM, Bartosz Golaszewski wrote: >>> + for (index = 0; lookup->dev; index++, lookup++) { >>> + if (strcmp(dev_id, lookup->

Re: [PATCH v2 6/7] arm64: tegra: Add Tegra194 chip device tree

2018-02-14 Thread Mikko Perttunen
On 07.02.2018 12:21, Marc Zyngier wrote: Hi Mikko, On 06/02/18 07:22, Mikko Perttunen wrote: Add the chip-level device tree, including binding headers, for the NVIDIA Tegra194 "Xavier" system-on-chip. Only a small subset of devices are initially available, enough to boot to UART console. Signe

Re: [PATCH v12 6/9] LPC: Support the LPC host on Hip06/Hip07 with DT bindings

2018-02-14 Thread John Garry
Hi Dann, + */ +static int +hisilpc_target_in(struct hisilpc_dev *lpcdev, struct lpc_cycle_para *para, + unsigned long ptaddr, unsigned char *buf, + unsigned long opcnt) +{ + unsigned long cnt_per_trans; + unsigned int cmd_word; + unsigned int wai

Re: [PATCH] x86/apic: Move pending intr check code into it's own function

2018-02-14 Thread Andy Shevchenko
On Wed, Feb 14, 2018 at 8:24 AM, Dou Liyang wrote: Yes, I see you just moved the old code, but it might make sense to update later the following. > + for (j = 31; j >= 0; j--) { > + if (value & (1< + ack_AP

Re: [PATCH] x86/microcode/intel: Use 64-bit arithmetic instead of 32-bit

2018-02-14 Thread Thomas Gleixner
On Tue, 13 Feb 2018, Alan Cox wrote: > > if (c->x86_cache_size >= 0) > > seq_printf(m, "cache size\t: %d KB\n", c->x86_cache_size); > > > > which is silly, because that really can be done with: > > > > if (c->x86_cache_size) > > > > as there is no point in printing 'cache siz

Re: [PATCH] irqchip: mips-gic: Avoid spuriously handling masked interrupts

2018-02-14 Thread Marc Zyngier
On 14/02/18 11:22, Matt Redfearn wrote: > > > On 07/02/18 10:41, Marc Zyngier wrote: >> On 07/02/18 09:44, Matt Redfearn wrote: >>> Hi Marc, >>> >>> On 07/02/18 09:41, Marc Zyngier wrote: On 05/02/18 16:45, Matt Redfearn wrote: > Commit 7778c4b27cbe ("irqchip: mips-gic: Use pcpu_masks to

Re: [PATCH] powerpc/xmon: Dont register sysrq key when kernel param xmon=off

2018-02-14 Thread Michael Ellerman
Vaibhav Jain writes: > Thanks for reviewing this patch Balbir > > Balbir Singh writes: > >> Any specific issue you've run into without this patch? > Without this patch since xmon is still accessible via sysrq and there is > no indication/warning on the xmon console mentioning that its is not >

Re: WARNING in kvmalloc_node

2018-02-14 Thread Jason Wang
On 2018年02月14日 17:28, Daniel Borkmann wrote: [ +Jason, +Jesper ] On 02/14/2018 09:43 AM, Michal Hocko wrote: On Tue 13-02-18 18:55:33, Matthew Wilcox wrote: On Tue, Feb 13, 2018 at 03:59:01PM -0800, syzbot wrote: [...] kvmalloc include/linux/mm.h:541 [inline] kvmalloc_array include/lin

Re: [PATCH] esp4: remove redundant initialization of pointer esph

2018-02-14 Thread Steffen Klassert
On Fri, Feb 02, 2018 at 08:37:50AM +0100, Steffen Klassert wrote: > On Tue, Jan 30, 2018 at 02:53:48PM +, Colin King wrote: > > From: Colin Ian King > > > > Pointer esph is being assigned a value that is never read, esph is > > re-assigned and only read inside an if statement, hence the > > i

Re: [PATCH] Build: Scripts/Makefile: Remove Repeated Lines

2018-02-14 Thread Stephen Rothwell
Hi Progyan, On Wed, 14 Feb 2018 14:55:58 +0530 Progyan Bhattacharya wrote: > > Last two lines of code was repreated and was causing build error. > > Signed-off-by: Progyan Bhattacharya > Cc: Arnd Bergmann > Cc: Daniel Golle > Cc: Joe Perches > Cc: Neil Armstrong > Cc: Andrew Morton > Cc:

Re: [PATCH] iommu/amd - Use dev_err to send events to the system log

2018-02-14 Thread Joerg Roedel
On Tue, Feb 13, 2018 at 02:24:56PM -0500, Hook, Gary wrote: > Without actually running a driver and getting some debug info, I'll just > say that my example compiled, the amd_iommu structure points to a pci_dev > which contains a device, and the two possibilities are likely equivalent. > > I'll ve

Re: WARNING in kvmalloc_node

2018-02-14 Thread Michal Hocko
On Wed 14-02-18 19:47:30, Jason Wang wrote: > > > On 2018年02月14日 17:28, Daniel Borkmann wrote: > > [ +Jason, +Jesper ] > > > > On 02/14/2018 09:43 AM, Michal Hocko wrote: > > > On Tue 13-02-18 18:55:33, Matthew Wilcox wrote: > > > > On Tue, Feb 13, 2018 at 03:59:01PM -0800, syzbot wrote: > > > [

[PATCH] platform/x86: wmi: fix off-by-one write in wmi_dev_probe()

2018-02-14 Thread Andrey Ryabinin
wmi_dev_probe() allocates one byte less than necessary, thus subsequent sprintf() call writes trailing zero past the end of the 'buf': BUG: KASAN: slab-out-of-bounds in vsnprintf+0xda4/0x1240 Write of size 1 at addr 880423529caf by task kworker/1:1/32 Call Trace: dump_stack+0

Re: [PATCH v2 6/7] arm64: tegra: Add Tegra194 chip device tree

2018-02-14 Thread Mikko Perttunen
On 10.02.2018 00:54, Rob Herring wrote: On Tue, Feb 06, 2018 at 09:22:36AM +0200, Mikko Perttunen wrote: ... index ..dcc6eea52684 --- /dev/null +++ b/include/dt-bindings/clock/tegra194-clock.h @@ -0,0 +1,664 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2018, NVIDI

[PATCH] video: fbdev: s3c-fb: remove dead platform code for Exynos and S5PV210 platforms

2018-02-14 Thread Bartlomiej Zolnierkiewicz
Exynos5, Exynos4 and S5PV210 platforms have been converted to use Device Tree and Exynos DRM driver long time ago. Remove dead platform code for these platforms and update Kconfig s3c-fb entry accordingly. Cc: Jingoo Han Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/video/fbdev/Kconfig

Re: WARNING in kvmalloc_node

2018-02-14 Thread Jason Wang
On 2018年02月14日 19:51, Michal Hocko wrote: On Wed 14-02-18 19:47:30, Jason Wang wrote: On 2018年02月14日 17:28, Daniel Borkmann wrote: [ +Jason, +Jesper ] On 02/14/2018 09:43 AM, Michal Hocko wrote: On Tue 13-02-18 18:55:33, Matthew Wilcox wrote: On Tue, Feb 13, 2018 at 03:59:01PM -0800, syzb

arm64/v4.16-rc1: KASAN: use-after-free Read in finish_task_switch

2018-02-14 Thread Mark Rutland
g at [1]. If I hit this again, I'll upload new info there. Thanks, Mark. [1] https://www.kernel.org/pub/linux/kernel/people/mark/bugs/20180214-finish_task_switch-stale-mm/ == BUG: KASAN: use-after-free in __read_once_size inclu

Re: clang asm-goto support (Was Re: [PATCH v2] x86/retpoline: Add clang support)

2018-02-14 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Wed, Feb 14, 2018 at 09:52:59AM +, Yatsina, Marina wrote: > > Hi Peter, > > > > When I started the original thread last year I was in favor of adding > > "asm goto" and didn't understand why it wasn't done by that time. The > > feedback I got is that this featu

[char-misc 4.16] mei: set device client to the disconnected state upon suspend.

2018-02-14 Thread Tomas Winkler
This fixes regression introduced by commit 8d52af6795c0 ("mei: speed up the power down flow") In mei_cldev_disable during device power down flow, such as suspend or system power off, it jumps over disconnecting function to speed up the power down process, however, because the client is unlinked fr

Re: [PATCH] irqchip/gic-v3: Support MSIs via aliases and distributor

2018-02-14 Thread Srinivas Kandagatla
On 27/11/17 10:24, Stephen Boyd wrote: Some GIC configurations don't have an accessible ITS, but they want to support MSIs through the distributor's SETSPI registers or through the IMPLEMENTATION DEFINED message-based interrupt request register region. This mode of operation is similar to the v2

[PATCH v2] PCI: qcom: add missing supplies required for msm8996

2018-02-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds supplies that are required for msm8996. vdda is analog supply that go in to controller, and vddpe_3v3 is supply to PCIe endpoint. Without these supplies PCIe endpoints which require power supplies are not enumerated at all, as there is no one to power it

Re: linux acpi (thunderbolt? bug)

2018-02-14 Thread Thomas Gleixner
On Wed, 14 Feb 2018, Yuriy Vostrikov wrote: > after boot > name: VECTOR > size: 0 > mapped: 64 > flags: 0x0041 > Online bitmaps:2 > Global available:368 > Global reserved: 26 > Total allocated: 38 > System: 41: 0-19,32,50,128,238-255 > | CPU | avl | man | act | ve

Re: [PATCH 9/9] x86/mm: Adjust virtual address space layout in early boot

2018-02-14 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > We need to adjust virtual address space to support switching between > paging modes. > > The adjustment happens in __startup_64(). > > We also have to change KASLR code that doesn't expect variable > VMALLOC_SIZE_TB. > > Signed-off-by: Kirill A. Shutemov > --- >

Re: [linux-sunxi] [PATCH v2] rtc: ac100: Fix ac100 determine rate bug

2018-02-14 Thread Maxime Ripard
On Tue, Feb 13, 2018 at 04:23:00PM +0100, Philipp Rossak wrote: > > > On 13.02.2018 14:44, Chen-Yu Tsai wrote: > > On Tue, Feb 13, 2018 at 9:32 PM, Maxime Ripard > > wrote: > > > On Tue, Feb 13, 2018 at 01:14:14PM +0100, Philipp Rossak wrote: > > > > This patch fixes a bug, that prevents the All

Re: WARNING in kvmalloc_node

2018-02-14 Thread Daniel Borkmann
On 02/14/2018 01:02 PM, Jason Wang wrote: > On 2018年02月14日 19:51, Michal Hocko wrote: >> On Wed 14-02-18 19:47:30, Jason Wang wrote: >>> On 2018年02月14日 17:28, Daniel Borkmann wrote: [ +Jason, +Jesper ] On 02/14/2018 09:43 AM, Michal Hocko wrote: > On Tue 13-02-18 18:55:33, Matthe

[PATCH] powerpc: add empty update_numa_cpu_lookup_table for !CONFIG_NUMA

2018-02-14 Thread Corentin Labbe
When CONFIG_NUMA is not set, build fail with: arch/powerpc/platforms/pseries/hotplug-cpu.c:335:4: error: déclaration implicite de la fonction « update_numa_cpu_lookup_table » [-Werror=implicit-function-declaration] So we have to add update_numa_cpu_lookup_table as an empty function when CONFIG_

[PATCH] ia64: convert unwcheck.py to python3

2018-02-14 Thread Corentin Labbe
Since my system use python3 as default, arch/ia64/scripts/unwcheck.py no longer run. This patch convert it to the python3 syntax. I have ran it with python2/python3 while printing values of start/end/rlen_sum which could be impacted by this change and I see no difference. Fixes: 94a47083522e ("s

Re: [PATCH 9/9] x86/mm: Adjust virtual address space layout in early boot

2018-02-14 Thread Kirill A. Shutemov
On Wed, Feb 14, 2018 at 12:10:49PM +, Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > We need to adjust virtual address space to support switching between > > paging modes. > > > > The adjustment happens in __startup_64(). > > > > We also have to change KASLR code that doesn't exp

[PATCH v2 1/2] net: phy: dp83867: Add binding for the CLK_OUT pin muxing option

2018-02-14 Thread Daniel Schultz
From: Wadim Egorov The DP83867 has a muxing option for the CLK_OUT pin. It is possible to set CLK_OUT for different channels. Create a binding to select a specific clock for CLK_OUT pin. Signed-off-by: Wadim Egorov Signed-off-by: Daniel Schultz --- Changes: Added check if clk_output_se

[PATCH v2 2/2] net: phy: dp83867: Add documentation for CLK_OUT pin muxing

2018-02-14 Thread Daniel Schultz
From: Wadim Egorov Add documentation of ti,clk-output-sel which can be used to select a specific clock for CLK_OUT. Signed-off-by: Wadim Egorov Signed-off-by: Daniel Schultz --- Documentation/devicetree/bindings/net/ti,dp83867.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Document

[PATCH] PCI: qcom: use regulator bluk api for apq8064 supplies

2018-02-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch converts existing regulators to use regulator bulk apis, to make it consistent with msm8996 changes also cut down some redundant code. Signed-off-by: Srinivas Kandagatla --- drivers/pci/dwc/pcie-qcom.c | 52 + 1 f

Re: [PATCH 9/9] x86/mm: Adjust virtual address space layout in early boot

2018-02-14 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > On Wed, Feb 14, 2018 at 12:10:49PM +, Ingo Molnar wrote: > > > > * Kirill A. Shutemov wrote: > > > > > We need to adjust virtual address space to support switching between > > > paging modes. > > > > > > The adjustment happens in __startup_64(). > > > > > >

Re: [PATCH 07/11] fs: Allow CAP_SYS_ADMIN in s_user_ns to freeze and thaw filesystems

2018-02-14 Thread Miklos Szeredi
On Fri, Dec 22, 2017 at 3:32 PM, Dongsu Park wrote: > From: Seth Forshee > > The user in control of a super block should be allowed to freeze > and thaw it. Relax the restrictions on the FIFREEZE and FITHAW > ioctls to require CAP_SYS_ADMIN in s_user_ns. Why is this required for unprivileged fus

[PATCH v2 02/13] drm/amd/include: remove unused asic_reg/bif headers

2018-02-14 Thread Corentin Labbe
All thoses headers are not used by any source files. Lets just remove them. Signed-off-by: Corentin Labbe --- .../drm/amd/include/asic_reg/bif/bif_5_0_enum.h| 1198 .../drm/amd/include/asic_reg/bif/bif_5_1_enum.h| 1068 - 2 files changed, 2266 deletio

[PATCH v2 00/13] gpu: drm: amd: remove unused headers

2018-02-14 Thread Corentin Labbe
Hello This patchset remove several headers which are not used by any source file. Regards Changes since v1: - splited in multiple patchs Corentin Labbe (13): drm/amd/include: remove unused asic_reg/oss headers drm/amd/include: remove unused asic_reg/bif headers drm/amd/include: remove unu

[PATCH v2 10/13] drm/amd/include: remove unused asic_reg/sdma headers

2018-02-14 Thread Corentin Labbe
All thoses headers are not used by any source files. Lets just remove them. Signed-off-by: Corentin Labbe --- .../amd/include/asic_reg/sdma0/sdma0_4_0_default.h | 286 - .../amd/include/asic_reg/sdma1/sdma1_4_0_default.h | 282 2 files changed, 568 deleti

[PATCH v2 07/13] drm/amd/include: remove unused asic_reg/umc headers

2018-02-14 Thread Corentin Labbe
All thoses headers are not used by any source files. Lets just remove them. Signed-off-by: Corentin Labbe --- .../drm/amd/include/asic_reg/umc/umc_6_0_default.h | 31 - .../drm/amd/include/asic_reg/umc/umc_6_0_offset.h | 52 -- 2 files changed, 83 deletions(-) d

Re: WARNING in kvmalloc_node

2018-02-14 Thread Jesper Dangaard Brouer
On Wed, 14 Feb 2018 13:17:18 +0100 Daniel Borkmann wrote: > On 02/14/2018 01:02 PM, Jason Wang wrote: > > On 2018年02月14日 19:51, Michal Hocko wrote: > >> On Wed 14-02-18 19:47:30, Jason Wang wrote: > >>> On 2018年02月14日 17:28, Daniel Borkmann wrote: > [ +Jason, +Jesper ] > > On

[PATCH v2 12/13] drm/amd/include: remove unused displayobject.h header

2018-02-14 Thread Corentin Labbe
displayobject.h is not used by any source files. Lets just remove them. Signed-off-by: Corentin Labbe --- drivers/gpu/drm/amd/include/displayobject.h | 249 1 file changed, 249 deletions(-) delete mode 100644 drivers/gpu/drm/amd/include/displayobject.h diff --git a

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