Re: [PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-10 Thread Arnaldo Carvalho de Melo
Em Mon, Jul 10, 2017 at 03:39:25PM -0700, Krister Johansen escreveu: > On Mon, Jul 10, 2017 at 08:17:00AM +0200, Thomas-Mich Richter wrote: > > On 07/07/2017 09:36 PM, Krister Johansen wrote: > > > On Thu, Jul 06, 2017 at 04:41:30PM -0300, Arnaldo Carvalho de Melo wrote: > > >> Em Wed, Jul 05, 2017

Re: [PATCH v2 0/4] scsi_dh_alua: fix stuck I/O after unavailable/standby states

2017-07-10 Thread Mauricio Faria de Oliveira
On 07/10/2017 07:47 PM, Mauricio Faria de Oliveira wrote: This patchset addresses that problem, and adds a few improvements to the logging of PG state changes. Here are some kernel log snippets with the patchset, if that helps. The 2 port groups temporarily gone into unavailable state, and rec

Re: [HMM 12/15] mm/migrate: new memory migration helper for use with device memory v4

2017-07-10 Thread Evgeny Baskakov
On 6/30/17 5:57 PM, Jerome Glisse wrote: ... Hi Jerome, I am seeing a strange crash in our code that uses the hmm_device_new() helper. After the driver is repeatedly loaded/unloaded, hmm_device_new() suddenly returns NULL. I have reproduced this with the dummy driver from the hmm-next branch

[PATCH v4 2/2] add w1_ds28e17 driver for the DS28E17 Onewire to I2C master bridge

2017-07-10 Thread Jan Kandziora
Changes in v4 against v3 in this subpatch: - adapted to linux-4.12.0 Changes in v3 against v2 in this subpatch: - fixed a bug in using the i2c_adapter_quirks structure Changes in v2 against v1 in this subpatch: - added error handling in w1_f19_error() - added struct i2c_adapter_quirks -

Re: [PATCH] autofs: Revert wait_queue_t => wait_queue_entry_t rename

2017-07-10 Thread Florian Fainelli
On 07/10/2017 11:47 AM, Linus Torvalds wrote: > On Mon, Jul 10, 2017 at 7:01 AM, Gabriel C wrote: >> >> You need revert a lot more .. that won't even compile. >> >> Looks like someone used some script to convert these :) >> >> Something like this : > > Gaah, I just committed my own scripted fixup

[PATCH v4 1/2] wire: export w1_touch_bit

2017-07-10 Thread Jan Kandziora
Changes in v4 against v3 in this subpatch: - adapted to linux-4.12.0 No changes in v3 against v2,v1 in this subpatch. The w1_ds28e17 driver from the next part of this patch needs to emit single-bit read timeslots to the DS28E17. The w1 subsystem already has this function but it is not exported

[PATCH 3/3] perf annotate: Fix broken arrow at row 0 connecting jmp instruction to its target

2017-07-10 Thread Arnaldo Carvalho de Melo
From: Jin Yao When the jump instruction is displayed at the row 0 in annotate view, the arrow is broken. An example: 16.86 │ ┌──je 82 0.01 │ movsd (%rsp),%xmm0 │ movsd 0x8(%rsp),%xmm4 │ movsd 0x8(%rsp),%xmm1 │ movsd (%rsp),%xmm3 │

[GIT PULL 0/3] perf/urgent fixes

2017-07-10 Thread Arnaldo Carvalho de Melo
s are at function entry (2017-07-08 11:05:35 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-urgent-for-mingo-4.13-20170710 for you to fetch changes up to 80f62589fa52f530cffc50e78c0b5a2ae572d61e: perf annotate: Fix b

[PATCH 2/3] perf evsel: State in the default event name if attr.exclude_kernel is set

2017-07-10 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When no event is specified perf will use the "cycles" hardware event with the highest precision available in the processor, and excluding kernel events for non-root users, so make that clear in the event name by setting the "u" event modifier, i.e. "cycles:upp". E.

[PATCH 1/3] perf evsel: Fix attr.exclude_kernel setting for default cycles:p

2017-07-10 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To allow probing the max attr.precise_ip setting for non-root users we unconditionally set attr.exclude_kernel, which makes the detection work but should be done only for !root, fix it. Cc: Adrian Hunter Cc: Andy Lutomirski Cc: David Ahern Cc: Jiri Olsa Cc: Nam

Re: [PATCH v2] btrfs: Correct assignment of pos

2017-07-10 Thread Liu Bo
On Tue, Jul 04, 2017 at 10:33:07PM -0500, Goldwyn Rodrigues wrote: > From: Goldwyn Rodrigues > > Assigning pos for usage early messes up in append mode, where > the pos is re-assigned in generic_write_checks(). Assign > pos later to get the correct position to write from iocb->ki_pos. > > Since

Re: [v3 2/6] mm, oom: cgroup-aware OOM killer

2017-07-10 Thread David Rientjes
On Wed, 21 Jun 2017, Roman Gushchin wrote: > Traditionally, the OOM killer is operating on a process level. > Under oom conditions, it finds a process with the highest oom score > and kills it. > > This behavior doesn't suit well the system with many running > containers. There are two main issue

mmotm 2017-07-10-16-06 uploaded

2017-07-10 Thread akpm
The mm-of-the-moment snapshot 2017-07-10-16-06 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: [PATCH V2] PCI: Do not enable extended tags on pre-dated (v1.x) systems

2017-07-10 Thread Bjorn Helgaas
On Fri, Jul 07, 2017 at 10:53:13AM -0400, Sinan Kaya wrote: > According to extended tags ECN document, all PCIe receivers are expected > to support extended tags support. It should be safe to enable extended > tags on endpoints without checking compatibility. > > This assumption seems to be workin

Re: [PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-10 Thread Krister Johansen
On Mon, Jul 10, 2017 at 07:52:49PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Jul 10, 2017 at 03:39:25PM -0700, Krister Johansen escreveu: > > On Mon, Jul 10, 2017 at 08:17:00AM +0200, Thomas-Mich Richter wrote: > > > On 07/07/2017 09:36 PM, Krister Johansen wrote: > > > > On Thu, Jul 06, 201

Re: [PATCH v6 1/4] firmware: scm: Add new SCM call API for switching memory ownership

2017-07-10 Thread Bjorn Andersson
On Fri 07 Jul 15:49 PDT 2017, Stephen Boyd wrote: > On 06/22, Avaneesh Kumar Dwivedi wrote: > > diff --git a/drivers/firmware/qcom_scm-64.c b/drivers/firmware/qcom_scm-64.c [..] > > +int qcom_scm_assign_mem(phys_addr_t mem_addr, size_t mem_sz, int srcvm, > > + struct qcom_scm_vmp

Re: [PATCH v1 1/1] gpio: gpio-crystalcove: Skip IRQ CTRL register update for virtual GPIOs

2017-07-10 Thread sathyanarayanan kuppuswamy
Hi Hans, Do you have any comments on this patch ? It kind of fixes your patch, so would prefer to get your comments. On 06/15/2017 02:45 PM, sathyanarayanan kuppuswamy wrote: Hi Andy, On 06/15/2017 02:19 AM, Andy Shevchenko wrote: On Thu, Jun 15, 2017 at 2:21 AM, wrote: From: Kuppuswamy

Re: [kernel-hardening] [PATCH 00/11] S.A.R.A. a new stacked LSM

2017-07-10 Thread Mickaël Salaün
On 10/07/2017 09:59, Salvatore Mesoraca wrote: > 2017-07-09 21:35 GMT+02:00 Mickaël Salaün : >> Hi, >> >> I think it make sense to merge the W^X features with the TPE/shebang LSM >> [1]. >> >> Regards, >> Mickaël >> >> [1] >> https://lkml.kernel.org/r/d9aca46b-97c6-4faf-b559-484feb4aa...@digikod.

Re: [PATCH v6 1/4] firmware: scm: Add new SCM call API for switching memory ownership

2017-07-10 Thread Bjorn Andersson
On Thu 22 Jun 05:08 PDT 2017, Avaneesh Kumar Dwivedi wrote: > Two different processors on a SOC need to switch memory ownership > during load/unload. To enable this, second level memory map table > need to be updated, which is done by secure layer. > This patch adds the interface for making secure

Re: [HMM 12/15] mm/migrate: new memory migration helper for use with device memory v4

2017-07-10 Thread Jerome Glisse
On Mon, Jul 10, 2017 at 03:59:37PM -0700, Evgeny Baskakov wrote: > On 6/30/17 5:57 PM, Jerome Glisse wrote: > ... > > Hi Jerome, > > I am seeing a strange crash in our code that uses the hmm_device_new() > helper. After the driver is repeatedly loaded/unloaded, hmm_device_new() > suddenly returns

Re: [HMM 12/15] mm/migrate: new memory migration helper for use with device memory v4

2017-07-10 Thread Evgeny Baskakov
On 6/30/17 5:57 PM, Jerome Glisse wrote: ... Hi Jerome, I am working on a sporadic data corruption seen in highly contented use cases. So far, I've been able to re-create a sporadic hang that happens when multiple threads compete to migrate the same page to and from device memory. The reprod

Re: [RFC PATCH] mm, oom: allow oom reaper to race with exit_mmap

2017-07-10 Thread David Rientjes
On Mon, 26 Jun 2017, Michal Hocko wrote: > diff --git a/mm/mmap.c b/mm/mmap.c > index 3bd5ecd20d4d..253808e716dc 100644 > --- a/mm/mmap.c > +++ b/mm/mmap.c > @@ -2962,6 +2962,11 @@ void exit_mmap(struct mm_struct *mm) > /* Use -1 here to ensure all VMAs in the mm are unmapped */ > unma

Re: [RFC PATCH] mm, oom: allow oom reaper to race with exit_mmap

2017-07-10 Thread David Rientjes
On Tue, 27 Jun 2017, Tetsuo Handa wrote: > I wonder why you prefer timeout based approach. Your patch will after all > set MMF_OOM_SKIP if operations between down_write() and up_write() took > more than one second. lock_anon_vma_root() from unlink_anon_vmas() from > free_pgtables() for example cal

Re: [PATCH v6 0/3] Add new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-07-10 Thread Casey Leedom
Hey Alexander, Okay, I understand your point regarding the "most likely scenario" being TLPs directed upstream to the Root Complex. But I'd still like to make sure that we have an agreed upon API/methodology for doing Peer-to-Peer with Relaxed Ordering and no Relaxed Ordering to the Root Compl

Re: block: hung task writing to device

2017-07-10 Thread Levin, Alexander (Sasha Levin)
On Sat, Jul 08, 2017 at 07:29:20PM -0600, Jens Axboe wrote: >On 07/08/2017 01:06 PM, Levin, Alexander (Sasha Levin) wrote: >> Hi all, >> >> syzkaller seems to be hitting a lockup with the reproducer below: > >Thanks for the reproducer, but this is missing a lot of detail that we >need to debug this

linux-next: manual merge of the mips tree with Linus' tree

2017-07-10 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the mips tree got a conflict in: drivers/clk/Kconfig between commit: b745c0794e2f ("clk: keystone: Add sci-clk driver support") from Linus' tree and commit: 5e2722808156 ("clk: boston: Add a driver for MIPS Boston board clocks") from the mips tree.

[PATCH] tty: Fix TIOCGPTPEER ioctl definition

2017-07-10 Thread Gleb Fotengauer-Malinovskiy
This ioctl does nothing to justify an _IOC_READ or _IOC_WRITE flag because it doesn't copy anything from/to userspace to access the argument. Fixes: 54ebbfb1 ("tty: add TIOCGPTPEER ioctl") Signed-off-by: Gleb Fotengauer-Malinovskiy --- arch/alpha/include/uapi/asm/ioctls.h | 2 +- arch/mips/inc

Re: [PATCH RFC 0/2] KVM: x86: Support using the VMX preemption timer for APIC Timer periodic/oneshot mode

2017-07-10 Thread Andy Lutomirski
On 10/11/2016 05:17 AM, Wanpeng Li wrote: Most windows guests which I have on hand currently still utilize APIC Timer periodic/oneshot mode instead of APIC Timer tsc-deadline mode: - windows 2008 server r2 - windows 2012 server r2 - windows 7 - windows 10 This patchset adds the support using the

Re: [HMM 12/15] mm/migrate: new memory migration helper for use with device memory v4

2017-07-10 Thread Evgeny Baskakov
On 7/10/17 4:43 PM, Jerome Glisse wrote: On Mon, Jul 10, 2017 at 03:59:37PM -0700, Evgeny Baskakov wrote: ... Horrible stupid bug in the code, most likely from cut and paste. Attached patch should fix it. I don't know how long it took for you to trigger it. Jérôme Thanks, this indeed fixes the

Re: [PATCH V2] PCI: Do not enable extended tags on pre-dated (v1.x) systems

2017-07-10 Thread Sinan Kaya
Hi Bjorn, On 7/10/2017 7:09 PM, Bjorn Helgaas wrote: > The PCI_EXP_DEVCTL_EXT_TAG bit controls the behavior of the function as a > Requester. As far as I can see, it has nothing to do with whether the > function supports 8-bit tags as a *Completer*, so the implicit assumption > of the spec is tha

Re: KASAN vs. boot-time switching between 4- and 5-level paging

2017-07-10 Thread Andy Lutomirski
On Mon, Jul 10, 2017 at 2:24 PM, Kirill A. Shutemov wrote: > On Mon, Jul 10, 2017 at 01:07:13PM -0700, Andy Lutomirski wrote: >> Can you give the disassembly of the backtrace lines? Blaming the >> .endr doesn't make much sense to me. > > I don't have backtrace. It's before printk() is functional.

RE: [PATCH v10] drm/i915/gvt: Dma-buf support for GVT-g

2017-07-10 Thread Zhang, Tina
Hi, This is the version 10 ABI interface. I took Gerd's advice to submit the interface only. If everything is fine, I can submit the whole patch set. So, how do you think about this ABI interface. Thanks. BR, Tina > -Original Message- > From: intel-gvt-dev [mailto:intel-gvt-dev-boun...

Re: [PATCH] drm/rockchip: fix NULL check on devm_kzalloc() return value

2017-07-10 Thread Mark yao
On 2017年07月11日 03:04, Sean Paul wrote: On Fri, Jul 07, 2017 at 08:56:28AM +0800, Mark yao wrote: On 2017年07月07日 05:58, Gustavo A. R. Silva wrote: The right variable to check here is port, not dp. This issue was detected using Coccinelle and the following semantic patch: @@ expression x; ident

Re: [PATCH 4.9 00/41] 4.9.37-stable review

2017-07-10 Thread Guenter Roeck
On 07/10/2017 10:10 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.37 release. There are 41 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be ma

Re: [PATCH 4.11 00/36] 4.11.10-stable review

2017-07-10 Thread Guenter Roeck
On 07/10/2017 10:10 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.11.10 release. There are 36 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be m

Re: [HMM 12/15] mm/migrate: new memory migration helper for use with device memory v4

2017-07-10 Thread Jerome Glisse
On Mon, Jul 10, 2017 at 05:17:23PM -0700, Evgeny Baskakov wrote: > On 7/10/17 4:43 PM, Jerome Glisse wrote: > > > On Mon, Jul 10, 2017 at 03:59:37PM -0700, Evgeny Baskakov wrote: > > ... > > Horrible stupid bug in the code, most likely from cut and paste. Attached > > patch should fix it. I don't

linux-next: build failure after merge of the vfs tree

2017-07-10 Thread Stephen Rothwell
Hi Al, After merging the vfs tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: arch/powerpc/platforms/cell/spufs/inode.c: In function 'spufs_show_options': arch/powerpc/platforms/cell/spufs/inode.c:619:20: error: suggest parentheses around comparison in operand of '&' [-

Re: [PATCH] dma: k3dma: Fix non-cyclic mode

2017-07-10 Thread zhangfei
On 2017年07月11日 04:53, John Stultz wrote: From: Antonio Borneo Commit 36387a2b1f62b5c087c5fe6f0f7b23b94f722ad7 ("k3dma: Fix memory handling in preparation for cyclic mode") broke the logic around ds_run/ds_done in case of non-cyclic DMA. This went unnoticed as the only user of k3dma was the i

Re: [PATCH 4.12 00/27] 4.12.1-stable review

2017-07-10 Thread Guenter Roeck
On 07/10/2017 10:09 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.12.1 release. There are 27 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be ma

Re: [PATCH V2 5/5] spmi: pmic-arb: use irq_chip callback to set spmi irq wakeup capability

2017-07-10 Thread Stephen Boyd
On 07/10, Kiran Gunda wrote: > Currently the driver sets the pmic arbiter core interrupt as wakeup capable > irrespective of the child irqs which causes the system to wakeup > unnecessarily. To fix this, set the core interrupt as wakeup capable > only if any of the child irqs request for it. Do thi

Re: [PATCH V2] PCI: Do not enable extended tags on pre-dated (v1.x) systems

2017-07-10 Thread Sinan Kaya
One more question: On 7/10/2017 8:20 PM, Sinan Kaya wrote: > Sure, I can change to blacklist. I'll not enable it unless the device is > blacklisted > via quirks. Since the quirk is at the completer, are you OK with walking the list and clearing the extended tags across the tree when at least on

[PATCH V3 0/4]: spmi: pmic-arb: support for V5 HW and bug fixes

2017-07-10 Thread Kiran Gunda
v3: * spmi: pmic-arb: add support for HW version 5 Modified #define INVALID(-1) to #define INVALID_EE 0xFF. v2: * spmi: pmic-arb: return __iomem pointer instead of offset Added Stephen's reviewed-by tag. * spmi: pmic-arb: fix a possible null

[PATCH V3 2/4] spmi: pmic-arb: fix a possible null pointer dereference

2017-07-10 Thread Kiran Gunda
If "core" memory resource is not specified, then the driver could end up dereferencing a null pointer. Fix this issue. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spmi/spmi-

[PATCH V3 1/4] spmi: pmic-arb: return __iomem pointer instead of offset

2017-07-10 Thread Kiran Gunda
Modify the pmic_arb version ops to return an __iomem pointer to the address instead of an offset. That way we do not need to care about the base address changes in the new HW version. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 87

[PATCH V3 4/4] spmi: pmic-arb: Remove checking opc value not less than 0

2017-07-10 Thread Kiran Gunda
From: Fenglin Wu The opc parameter in pmic_arb_write_cmd() function is defined with type u8 and it's always greater than or equal to 0. Checking that it's not less than 0 is redundant and it can cause a forbidden warning during compilation. Remove the check. Signed-off-by: Fenglin Wu Signed-off

[PATCH V3 3/4] spmi: pmic-arb: add support for HW version 5

2017-07-10 Thread Kiran Gunda
From: David Collins Add support for version 5 of the SPMI PMIC arbiter. It utilizes different offsets for registers than those found on version 3. Also, the procedure to determine if writing and IRQ access is allowed for a given PPID changes for version 5. Signed-off-by: David Collins Signed-o

[PATCH 17/17] RISC-V: Build Infastructure

2017-07-10 Thread Palmer Dabbelt
This patch contains all the build infastructure that actually enables the RISC-V port. This includes Makefiles, linker scripts, and Kconfig files. It also contains the only top-level change, which adds RISC-V to the list of architectures that need a sed run to produce the ARCH variable when build

[PATCH 10/17] RISC-V: Atomic and Locking Code

2017-07-10 Thread Palmer Dabbelt
This contains all the code that directly interfaces with the RISC-V memory model. While this code corforms to the current RISC-V ISA specifications (user 2.2 and priv 1.10), the memory model is somewhat underspecified in those documents. There is a working group that hopes to produce a formal mem

[PATCH 03/17] pci: Add a generic, weakly-linked pcibios_fixup_bus

2017-07-10 Thread Palmer Dabbelt
Multiple architectures define this as an empty function, and I'm adding another one as part of the RISC-V port. This adds a __weak version of pci_fixup_bios and deletes the now obselete ones in a handful of ports. The only functional change should be that microblaze used to export pcibios_fixup_b

[PATCH 01/17] lib: Add shared copies of some GCC library routines

2017-07-10 Thread Palmer Dabbelt
Many ports (m32r, microblaze, mips, parisc, score, and sparc) use functionally identical copies of various GCC library routine files, which came up as we were submitting the RISC-V port (which also uses some of these). This patch adds a new copy of these library routine files, which are functional

[PATCH 06/17] irqchip: RISC-V Local Interrupt Controller Driver

2017-07-10 Thread Palmer Dabbelt
This patch adds a driver that manages the local interrupts on each RISC-V hart, as specifiec by the RISC-V supervisor level ISA manual. The local interrupt controller manages software interrupts, timer interrupts, and hardware interrupts (which are routed via the platform level interrupt controller

[PATCH 07/17] irqchip: New RISC-V PLIC Driver

2017-07-10 Thread Palmer Dabbelt
This patch adds a driver for the Platform Level Interrupt Controller (PLIC) specified as part of the RISC-V supervisor level ISA manual. The PLIC connocts global interrupt sources to the local interrupt controller on each hart. A PLIC is present on all RISC-V systems. Signed-off-by: Palmer Dabbel

[PATCH 11/17] RISC-V: Generic library routines and assembly

2017-07-10 Thread Palmer Dabbelt
This patch contains code that is more specific to the RISC-V ISA than it is to Linux. It contains string and math operations, C wrappers for various assembly instructions, stack walking code, and uaccess. Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/asm.h| 76 + arc

[PATCH 16/17] RISC-V: User-facing API

2017-07-10 Thread Palmer Dabbelt
This patch contains code that is in some way visible to the user: including via system calls, the VDSO, module loading and signal handling. It also contains some generic code that is ABI visible. Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/mmu.h | 26 +++ arch/riscv/i

[PATCH 12/17] RISC-V: ELF and module implementation

2017-07-10 Thread Palmer Dabbelt
This patch contains the code that interfaces with ELF objects on RISC-V systems, the vast majority of which is present to load kernel modules. Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/compat.h | 29 ++ arch/riscv/include/asm/elf.h| 84 +

[PATCH 13/17] RISC-V: Task implementation

2017-07-10 Thread Palmer Dabbelt
This patch contains the implementation of tasks on RISC-V, most of which is involved in task switching. Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/asm-offsets.h | 1 + arch/riscv/include/asm/current.h | 45 arch/riscv/include/asm/kprobes.h | 22 ++ arch/riscv/inclu

[PATCH 15/17] RISC-V: Paging and MMU

2017-07-10 Thread Palmer Dabbelt
This patch contains code to manage the RISC-V MMU, including definitions of the page tables and the page walking code. Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/mmu_context.h | 69 ++ arch/riscv/include/asm/page.h | 134 +++ arch/riscv/include/asm/pgalloc.h

[PATCH 14/17] RISC-V: Device, timer, IRQs, and the SBI

2017-07-10 Thread Palmer Dabbelt
This patch contains code that interfaces with devices that are mandated by the RISC-V supervisor specification and that don't have explicit drivers anywhere else in the tree. This includes the staticly defined interrupts, the CSR-mapped timer, and virtualized SBI devices. Signed-off-by: Palmer Da

[PATCH 04/17] MAINTAINERS: Add RISC-V

2017-07-10 Thread Palmer Dabbelt
From: Jonathan Neuschäfer RISC-V needs a MAINTAINERS entry. Let's add one. Signed-off-by: Jonathan Neuschäfer Signed-off-by: Palmer Dabbelt --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d8eab9322ba2..3ead16565003 100644 --- a/MAINT

[PATCH 08/17] tty: New RISC-V SBI console driver

2017-07-10 Thread Palmer Dabbelt
The RISC-V ISA defines a simple console that is availiable via SBI calls on all systems. This patch adds a driver for this console interface that can act as both a target for early printk and as the system console. Signed-off-by: Palmer Dabbelt --- drivers/tty/hvc/Kconfig | 11 + drivers

[PATCH 02/17] pci: Add a generic, weakly-linked pcibios_align_resource

2017-07-10 Thread Palmer Dabbelt
Multiple architectures define this as trivial function, and I'm adding another one as part of the RISC-V port. This adds a __weak version of pcibios_align_resource and deletes the now obselete ones in a handful of ports. The only functional change should be that a handful of ports used to export

[PATCH 09/17] RISC-V: Init and Halt Code

2017-07-10 Thread Palmer Dabbelt
This contains the various __init C functions, the initial assembly kernel entry point, and the code to reset the system. When a file was init-related this patch contains the entire file. Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/bug.h | 88 +++ arch/riscv/include/a

RISC-V Linux Port v5

2017-07-10 Thread Palmer Dabbelt
Thanks to everyone who has participated in the review process so far. I've based this patch set on the current master. Things have really started to calmn down, so this is fairly similar to the v4 patch set. The most interesting changes include: * We've moved back to a single patch set. * SM

[PATCH 05/17] clocksource: New RISC-V SBI timer driver

2017-07-10 Thread Palmer Dabbelt
The RISC-V ISA defines a per-hart real-time clock and timer, which is present on all systems. The clock is accessed via the 'rdtime' pseudo-instruction (which reads a CSR), and the timer is set via an SBI call. This driver attempts to split out the RISC-V ISA specific mechanisms of accessing the

Re: [PATCH] arm64: dts: ls1046a: Add dis_rxdet_inp3_quirk property to USB3 node

2017-07-10 Thread Shawn Guo
On Wed, Jul 05, 2017 at 03:15:19AM +, Ran Wang wrote: > Hello Sir, > How is the review result of this patch. I am waiting for it be merged, > thanks. The patch has been merged into Linus' tree. Sorry for that I forgot to reply telling the patch was applied. Shawn

Re: [PATCH 01/17] lib: Add shared copies of some GCC library routines

2017-07-10 Thread Stephen Rothwell
Hi Palmer, On Mon, 10 Jul 2017 18:39:08 -0700 Palmer Dabbelt wrote: > > This patch adds a new copy of these library routine files, which are > functionally identical to the various other copies. These are > availiable via Kconfig as CONFIG_LIB_$ROUTINE, which currently isn't Umm, the patch actu

Re: [PATCH] perf/core: generate overflow signal when samples are dropped (WAS: Re: [REGRESSION] perf/core: PMU interrupts dropped if we entered the kernel in the "skid" region)

2017-07-10 Thread Kyle Huey
On Wed, Jul 5, 2017 at 10:07 PM, Robert O'Callahan wrote: > On Tue, Jul 4, 2017 at 3:21 AM, Mark Rutland wrote: >> Should any of those be moved into the "should be dropped" pile? > > Why not be conservative and clear every sample you're not sure about? > > We'd appreciate a fix sooner rather than

Re: [PATCH 01/17] lib: Add shared copies of some GCC library routines

2017-07-10 Thread Randy Dunlap
On 07/10/2017 07:02 PM, Stephen Rothwell wrote: > Hi Palmer, > > On Mon, 10 Jul 2017 18:39:08 -0700 Palmer Dabbelt wrote: >> >> This patch adds a new copy of these library routine files, which are >> functionally identical to the various other copies. These are >> availiable via Kconfig as CONFI

Re: [PATCH v4 1/3] ARM: dts: imx6ul-isiot: Move common nodes in imx6ul-isiot.dtsi

2017-07-10 Thread Shawn Guo
On Thu, Jun 15, 2017 at 05:33:37PM +0530, Jagan Teki wrote: > From: Jagan Teki > > Maintaining separate dtsi file with common nodes make unclear and > confusing since -isiot.dtsi is available for adding common nodes. > If the nodes are common between the dts files then mark status > as "okay" oth

Re: [PATCH 1/3] Protectable memory support

2017-07-10 Thread kbuild test robot
Hi Igor, [auto build test WARNING on linus/master] [also build test WARNING on v4.12 next-20170710] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Igor-Stoppa/mm-security-ro-protection-for

Re: [PATCH v2 2/8] exec: Move security_bprm_secureexec() earlier

2017-07-10 Thread Kees Cook
On Mon, Jul 10, 2017 at 10:18 AM, Eric W. Biederman wrote: > Kees Cook writes: > >> On Mon, Jul 10, 2017 at 1:57 AM, Eric W. Biederman >> wrote: >>> Kees Cook writes: >>> There are several places where exec needs to know if a privilege-gain has happened. These should be using the resu

Re: [PATCH] tty: Fix TIOCGPTPEER ioctl definition

2017-07-10 Thread Aleksa Sarai
This ioctl does nothing to justify an _IOC_READ or _IOC_WRITE flag because it doesn't copy anything from/to userspace to access the argument. Acked-by: Aleksa Sarai Oops, I misunderstood what _IOR means semantically. TIL -- thanks! -- Aleksa Sarai Software Engineer (Containers) SUSE Linux G

Re: [PATCH 01/17] lib: Add shared copies of some GCC library routines

2017-07-10 Thread Palmer Dabbelt
On Mon, 10 Jul 2017 19:02:19 PDT (-0700), s...@canb.auug.org.au wrote: > Hi Palmer, > > On Mon, 10 Jul 2017 18:39:08 -0700 Palmer Dabbelt wrote: >> >> This patch adds a new copy of these library routine files, which are >> functionally identical to the various other copies. These are >> availiabl

Re: [patches] Re: [PATCH 01/17] lib: Add shared copies of some GCC library routines

2017-07-10 Thread Palmer Dabbelt
On Mon, 10 Jul 2017 19:03:44 PDT (-0700), rdun...@infradead.org wrote: > On 07/10/2017 07:02 PM, Stephen Rothwell wrote: >> Hi Palmer, >> >> On Mon, 10 Jul 2017 18:39:08 -0700 Palmer Dabbelt wrote: >>> >>> This patch adds a new copy of these library routine files, which are >>> functionally identi

Re: [PATCH v4 1/4] ARM: dts: imx6ul-geam-kit: Remove re-enabled usdhc1

2017-07-10 Thread Shawn Guo
On Fri, Jun 16, 2017 at 12:34:37PM +0530, Jagan Teki wrote: > From: Jagan Teki > > usdhc1 is enabled and assigned pinctrl-0 on imx6ul-geam.dtsi > but same thing done on imx6ul-geam-kit.dts, so remove this > re-enabled node from the same. > > Signed-off-by: Jagan Teki Applied all, thanks.

Re: [PATCH v6 1/7] perf/core: Define the common branch type classification

2017-07-10 Thread Michael Ellerman
Segher Boessenkool writes: > Hi! > > On Mon, Jul 10, 2017 at 07:46:17PM +0800, Jin, Yao wrote: >> 1. We all agree these definitions: >> >> +PERF_BR_COND= 1,/* conditional */ >> +PERF_BR_UNCOND = 2,/* unconditional */ >> +PERF_BR_IND = 3,/*

Re: [patches] Re: [PATCH 01/17] lib: Add shared copies of some GCC library routines

2017-07-10 Thread Randy Dunlap
On 07/10/2017 07:09 PM, Palmer Dabbelt wrote: > On Mon, 10 Jul 2017 19:03:44 PDT (-0700), rdun...@infradead.org wrote: >> On 07/10/2017 07:02 PM, Stephen Rothwell wrote: >>> Hi Palmer, >>> >>> On Mon, 10 Jul 2017 18:39:08 -0700 Palmer Dabbelt >>> wrote: This patch adds a new copy of the

Re: [PATCH] mm/mremap: Document MREMAP_FIXED dependency on MREMAP_MAYMOVE

2017-07-10 Thread Anshuman Khandual
On 07/10/2017 11:01 PM, Mike Kravetz wrote: > On 07/10/2017 06:41 AM, Michal Hocko wrote: >> On Mon 10-07-17 17:02:11, Anshuman Khandual wrote: >>> In the header file, just specify the dependency of MREMAP_FIXED >>> on MREMAP_MAYMOVE and make it explicit for the user space. >> I really fail to see

Re: [PATCH v6 1/7] perf/core: Define the common branch type classification

2017-07-10 Thread Michael Ellerman
"Jin, Yao" writes: > On 7/10/2017 9:46 PM, Peter Zijlstra wrote: >> On Mon, Jul 10, 2017 at 08:10:50AM -0500, Segher Boessenkool wrote: >> PERF_BR_INT is triggered by instruction "int" . PERF_BR_IRQ is triggered by interrupts, traps, faults (the ring 0,3 transition). >>> So your "P

Re: [PATCH v2 1/3] of: overlay: add overlay unittest data for node names and symbols

2017-07-10 Thread Rob Herring
On Mon, Jul 10, 2017 at 2:05 PM, wrote: > From: Frank Rowand > > Add nodes and properties to overlay_base and overlay dts files to > test for >- incorrect existing node name detection when overlay node name > has a unit-address >- adding overlay __symbols__ properties to live tree w

[PATCH] clk: mediatek: fixed static checker warning in clk_cpumux_get_parent call

2017-07-10 Thread sean.wang
From: Sean Wang Fixed the signedness bug returning '(-22)' on the return type as u8 with moving the sanity checker into clk_cpumux_set_parent() to ensure always validity in clk_cpumux_get_parent() got called. Fixes: commit 1e17de9049da ("clk: mediatek: add missing cpu mux causing Mediatek cpufr

Re: [PATCH RFC 0/2] KVM: x86: Support using the VMX preemption timer for APIC Timer periodic/oneshot mode

2017-07-10 Thread Wanpeng Li
2017-07-11 8:13 GMT+08:00 Andy Lutomirski : > On 10/11/2016 05:17 AM, Wanpeng Li wrote: >> >> Most windows guests which I have on hand currently still utilize APIC >> Timer >> periodic/oneshot mode instead of APIC Timer tsc-deadline mode: >> - windows 2008 server r2 >> - windows 2012 server r2 >> -

Re: [PATCH v4 1/3] cpufreq: mediatek: Add support of cpufreq to MT2701/MT7623 SoC

2017-07-10 Thread Eddie Huang
Hi Sean, On Mon, 2017-07-10 at 22:23 +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > MT2701/MT7623 is a 32-bit ARMv7 based quad-core (4 * Cortex-A7) with > single cluster and this hardware is also compatible with the existing > driver through enabling CPU frequency feature with operat

Re: [PATCH v2 2/2] dt: Add bindings for IDT VersaClock 5P49V5925

2017-07-10 Thread Rob Herring
On Sun, Jul 09, 2017 at 08:40:05PM +0300, Vladimir Barinov wrote: > From: Vladimir Barinov > > IDT VersaClock 5 5P49V5925 has 5 clock outputs, 4 fractional dividers. > Input clock source can be taken only from external reference clock. > > Signed-off-by: Vladimir Barinov > --- > Changes in vers

Re: [PATCH v2 4/8] objtool: add undwarf debuginfo generation

2017-07-10 Thread Josh Poimboeuf
On Fri, Jul 07, 2017 at 11:44:37AM +0200, Ingo Molnar wrote: > > * Josh Poimboeuf wrote: > > > On Thu, Jun 29, 2017 at 10:06:52AM -0500, Josh Poimboeuf wrote: > > > On Thu, Jun 29, 2017 at 04:46:18PM +0200, Ingo Molnar wrote: > > > > > > > > * Josh Poimboeuf wrote: > > > > > > > > > > Plus, s

Re: [PATCH v6 1/7] perf/core: Define the common branch type classification

2017-07-10 Thread Jin, Yao
On 7/11/2017 10:28 AM, Michael Ellerman wrote: "Jin, Yao" writes: On 7/10/2017 9:46 PM, Peter Zijlstra wrote: On Mon, Jul 10, 2017 at 08:10:50AM -0500, Segher Boessenkool wrote: PERF_BR_INT is triggered by instruction "int" . PERF_BR_IRQ is triggered by interrupts, traps, faults (the ring

[PATCH v3] staging: greybus: arche: wrap over-length lines

2017-07-10 Thread Mitchell Tasman
Adjust formatting of several comments to keep line length within the 80 column limit preferred by the Linux kernel coding style. Signed-off-by: Mitchell Tasman --- Changes in v3: Narrow scope of patch per Viresh Kumar's feedback Changes in v2: Add back a missing space in a comment drivers/stagi

[GIT PULL] chrome-platform updates for v4.13

2017-07-10 Thread Benson Leung
Hi Linus, Please pull chrome-platform updates for Linux v4.13 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/bleung/chrome-platform.git tags/chrome-platform-for-linus-4.13 Sorry for the delay on getting this into the merge window. My first merge window as maintainer. Thanks,

Re: [greybus-dev] [PATCH v3] staging: greybus: arche: wrap over-length lines

2017-07-10 Thread Viresh Kumar
On 10-07-17, 23:14, Mitchell Tasman wrote: > Adjust formatting of several comments to keep line length within > the 80 column limit preferred by the Linux kernel coding style. > > Signed-off-by: Mitchell Tasman > --- > Changes in v3: Narrow scope of patch per Viresh Kumar's feedback > Changes in

I am Rv.Father paul Olo,

2017-07-10 Thread RV.FATHER PAUL
RE:ATTN:PAYMENT NOTIFICATION! 10/7/2017 GOOD DAY, I am Rv.Father paul Olo. This is to bring to your notice that, I have paid the DHL courier Service charges and the delivery of your ATM CARD.I paid it because the ATM CARD worth {USD$10.5M}has less Four weeks and four days to expire and when it

Re: [PATCH] input: serio: constify attribute_group structures.

2017-07-10 Thread Dmitry Torokhov
On Wed, Jul 05, 2017 at 03:12:53PM +0530, Arvind Yadav wrote: > attribute_groups are not supposed to change at runtime. All functions > working with attribute_groups provided by work with const > attribute_group. So mark the non-const structs as const. > > File size before: >text dat

[git pull] m68knommu changes for v4.13

2017-07-10 Thread Greg Ungerer
Hi Linus, Can you please pull the m68knommu git tree, for-next branch. Only a single change, to remove old Kconfig options from defconfigs. Regards Greg The following changes since commit c0bc126f97fb929b3ae02c1c62322645d70eb408: Linux 4.12-rc7 (2017-06-25 18:30:05 -0700) are available in

Re: [PATCH 1/5] mm/persistent-memory: match IORES_DESC name and enum memory_type one

2017-07-10 Thread Balbir Singh
On Wed, 5 Jul 2017 14:49:33 -0400 Jerome Glisse wrote: > On Wed, Jul 05, 2017 at 09:15:35AM -0700, Dan Williams wrote: > > On Wed, Jul 5, 2017 at 7:25 AM, Jerome Glisse wrote: > > > On Mon, Jul 03, 2017 at 04:49:18PM -0700, Dan Williams wrote: > > >> On Mon, Jul 3, 2017 at 2:14 PM, Jérôme Gl

[PATCH] staging: unisys: visorbus: fix function open braces

2017-07-10 Thread Mitchell Tasman
Resolve multiple checkpatch errors by relocating open braces following function definitions to the next line. Signed-off-by: Mitchell Tasman --- drivers/staging/unisys/visorbus/visorbus_main.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/drivers/staging

Re: [PATCH] printk: Modify operators of printed_len

2017-07-10 Thread pierre kuo
hi Petr > I just noticed that the same applies also to text_len > variable. Well, it was caused by another commit ddb9baa822265b55 > ("printk: report lost messages in printk safe/nmi contexts"). > Could you please send a patch for this as well? sure and it is my pleasure. > > This seems to be your

Re: [PATCH 2/5] mm/device-public-memory: device memory cache coherent with CPU v2

2017-07-10 Thread Balbir Singh
On Mon, 3 Jul 2017 17:14:12 -0400 Jérôme Glisse wrote: > Platform with advance system bus (like CAPI or CCIX) allow device > memory to be accessible from CPU in a cache coherent fashion. Add > a new type of ZONE_DEVICE to represent such memory. The use case > are the same as for the un-addressab

Re: [PATCH 3/3] Make LSM Writable Hooks a command line option

2017-07-10 Thread kbuild test robot
Hi Igor, [auto build test ERROR on linus/master] [cannot apply to v4.12] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Igor-Stoppa/mm-security-ro-protection-for-dynamic-data/20170711-084116 con

Re: [RFC v5 01/11] mm: Dont assume page-table invariance during faults

2017-07-10 Thread Balbir Singh
On Mon, 10 Jul 2017 19:48:43 +0200 Laurent Dufour wrote: > On 07/07/2017 09:07, Balbir Singh wrote: > > On Fri, 2017-06-16 at 19:52 +0200, Laurent Dufour wrote: > >> From: Peter Zijlstra > >> > >> One of the side effects of speculating on faults (without holding > >> mmap_sem) is that we can r

Re: [RFC] mm/mremap: Remove redundant checks inside vma_expandable()

2017-07-10 Thread Anshuman Khandual
On 07/10/2017 07:19 PM, Michal Hocko wrote: > On Mon 10-07-17 16:40:59, Anshuman Khandual wrote: >> As 'delta' is an unsigned long, 'end' (vma->vm_end + delta) cannot >> be less than 'vma->vm_end'. > > This just doesn't make any sense. This is exactly what the overflow > check is for. Maybe vm_end

Re: [RFC] mm/mremap: Remove redundant checks inside vma_expandable()

2017-07-10 Thread Anshuman Khandual
On 07/10/2017 07:19 PM, Michal Hocko wrote: > On Mon 10-07-17 16:40:59, Anshuman Khandual wrote: >> As 'delta' is an unsigned long, 'end' (vma->vm_end + delta) cannot >> be less than 'vma->vm_end'. > > This just doesn't make any sense. This is exactly what the overflow > check is for. Maybe vm_end

<    3   4   5   6   7   8   9   >