Re: net/atm: warning in alloc_tx/__might_sleep

2017-01-11 Thread Michal Hocko
On Wed 11-01-17 20:45:25, Michal Hocko wrote: > On Wed 11-01-17 09:37:06, Chas Williams wrote: > > On Mon, 2017-01-09 at 18:20 +0100, Andrey Konovalov wrote: > > > Hi! > > > > > > I've got the following error report while running the syzkaller fuzzer. > > > > > > On commit a121103c922847ba5010819

Re: net/atm: warning in alloc_tx/__might_sleep

2017-01-11 Thread Michal Hocko
On Wed 11-01-17 09:37:06, Chas Williams wrote: > On Mon, 2017-01-09 at 18:20 +0100, Andrey Konovalov wrote: > > Hi! > > > > I've got the following error report while running the syzkaller fuzzer. > > > > On commit a121103c922847ba5010819a3f250f1f7fc84ab8 (4.10-rc3). > > > > A reproducer is attac

Re: [RFC PATCH] lib/bug: use stackdepot for WARN*ONCE to make it more useful

2017-01-11 Thread Michal Hocko
Has this just fallen through cracks or the silence means that people do not really care about the current WARN_*ONCE behavior? On Tue 03-01-17 14:44:24, Michal Hocko wrote: > From: Michal Hocko > > One of the main problem of WARN_*ONCE style of warnings is that they > might easily hide different

Re: [RFC, PATCHv2 29/29] mm, x86: introduce RLIMIT_VADDR

2017-01-11 Thread Linus Torvalds
On Wed, Jan 11, 2017 at 11:32 AM, Kirill A. Shutemov wrote: > > Running legacy binary with full address space is valuable option. I disagree. It's simply not valuable enough to worry about. Especially when there is a fairly trivial wrapper approach: just make a full-address-space wrapper than ac

Re: [PATCH] Add +~800M crashkernel explaination

2017-01-11 Thread Robert LeBlanc
On Wed, Dec 14, 2016 at 4:17 PM, Xunlei Pang wrote: > As I replied in another post, if you really want to detail the behaviour, > should mention > "crashkernel=size[KMG][@offset[KMG]]" with @offset[KMG] specified explicitly, > after > all, it's handled differently with no upper bound limitation,

Re: [RFC, PATCHv2 29/29] mm, x86: introduce RLIMIT_VADDR

2017-01-11 Thread Kirill A. Shutemov
On Wed, Jan 11, 2017 at 11:20:38AM -0800, Andy Lutomirski wrote: > On Wed, Jan 11, 2017 at 10:49 AM, Dave Hansen wrote: > > On 01/11/2017 10:37 AM, Kirill A. Shutemov wrote: > >>> How about preventing the max addr from being changed to too high a > >>> value while MPX is on instead of overriding t

Re: [RFC, PATCHv2 29/29] mm, x86: introduce RLIMIT_VADDR

2017-01-11 Thread Linus Torvalds
On Wed, Jan 11, 2017 at 11:20 AM, Andy Lutomirski wrote: > > Taking a step back, I think it would be fantastic if we could find a > way to make this work without any inheritable settings at all. > Perhaps we could have a per-mm value that is initialized to 2^47-1 on > execve() and can be raised by

Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol

2017-01-11 Thread Christopher Heiny
On Wed, 2017-01-11 at 18:48 +0100, Benjamin Tissoires wrote: > On Jan 11 2017 or thereabouts, Arnd Bergmann wrote: > > > > On Wednesday, January 11, 2017 5:28:28 PM CET Benjamin Tissoires > > wrote: > > > > > > Yep, it was initially written that way, and IIRC there was some > > > issues > > > dep

[PATCH RESEND] coredump: Ensure proper size of sparse core files

2017-01-11 Thread Dave Kleikamp
If the last section of a core file ends with an unmapped or zero page, the size of the file does not correspond with the last dump_skip() call. gdb complains that the file is truncated and can be confusing to users. After all of the vma sections are written, make sure that the file size is no smal

[PATCH v2] PCI: thunder-pem: Add support for cn81xx and cn83xx SoCs.

2017-01-11 Thread David Daney
From: David Daney The pci-thunder-pem driver was initially developed for cn88xx SoCs. The cn81xx and cn83xx members of the same family of SoCs has a slightly different configuration of interrupt resources in the PEM hardware, which prevents the INTA legacy interrupt source from functioning with t

Re: [RFC, PATCHv2 29/29] mm, x86: introduce RLIMIT_VADDR

2017-01-11 Thread Andy Lutomirski
On Wed, Jan 11, 2017 at 10:49 AM, Dave Hansen wrote: > On 01/11/2017 10:37 AM, Kirill A. Shutemov wrote: >>> How about preventing the max addr from being changed to too high a >>> value while MPX is on instead of overriding the set value? This would >>> have the added benefit that it would preven

Re: [PATCH] PCI: thunder-pem: Add support for cn81xx and cn83xx SoCs.

2017-01-11 Thread David Daney
On 01/11/2017 11:11 AM, David Daney wrote: From: David Daney The pci-thunder-pem driver was initially developed for cn88xx SoCs. The cn81xx and cn83xx members of the same family of SoCs has a slightly different configuration of interrupt resources in the PEM hardware, which prevents the INTA le

Re: [tpmdd-devel] [PATCH RFC 0/4] RFC: in-kernel resource manager

2017-01-11 Thread Jason Gunthorpe
On Wed, Jan 11, 2017 at 01:27:30PM -0500, Stefan Berger wrote: > On 01/11/2017 01:03 PM, Jason Gunthorpe wrote: > >On Wed, Jan 11, 2017 at 11:00:43AM +0100, Andreas Fuchs wrote: > > > >>could we please get an ioctl, that switches the "mode" of the fd entirely. > >>I'd like to see the write()/read()

Re: [PATCH v2] drivers: char: mem: Fix thinkos in kmem address checks

2017-01-11 Thread Jason A. Donenfeld
Tested-by: Jason A. Donenfeld My extract-keys [1] utility works again: $ sudo ./extract-keys wg0 0x08d3c7a3 IbbC5O9g2dTZBeLQoivmKZtdSGqufU+M2s2oaFzMfYA= 0xdf917af6 3cUm2mXNaZVzWDmJIZ9XlPpvJ63GH1uyUwKLN1g1Dhs= [1] https://git.zx2c4.com/WireGuard/tree/contrib/examples/extract-keys

Re: [PATCH] PCI/MSI: pci-xgene-msi: Fix CPU hotplug registration handling

2017-01-11 Thread Duc Dang
On Wed, Jan 11, 2017 at 2:26 AM, Marc Zyngier wrote: > The conversion to the new hotplug state machine introduced a regression > where a successful hotplug registration would be treated as an error, > effectively disabling the MSI driver forever. > > Fix it by doing the proper check on the return

Re: net/atm: warning in alloc_tx/__might_sleep

2017-01-11 Thread Eric Dumazet
On Tue, 2017-01-10 at 23:47 +0100, Francois Romieu wrote: > Eric Dumazet : > > On Tue, Jan 10, 2017 at 9:35 AM, Cong Wang wrote: > > > On Mon, Jan 9, 2017 at 9:20 AM, Andrey Konovalov > > > wrote: > > > > > > The fix should be straight-forward. Mind to try the attached patch? > > > > > > You

Re: [PATCH v4 0/4] Application Data Integrity feature introduced by SPARC M7

2017-01-11 Thread Dave Hansen
On 01/11/2017 10:50 AM, Khalid Aziz wrote: > On 01/11/2017 11:13 AM, Dave Hansen wrote: >> On 01/11/2017 08:56 AM, Khalid Aziz wrote: >> For memory shared by two different processes, do they have to agree on >> what the tags are, or can they differ? > > The two processes have to agree on the tag.

[PATCH] PCI: thunder-pem: Add support for cn81xx and cn83xx SoCs.

2017-01-11 Thread David Daney
From: David Daney The pci-thunder-pem driver was initially developed for cn88xx SoCs. The cn81xx and cn83xx members of the same family of SoCs has a slightly different configuration of interrupt resources in the PEM hardware, which prevents the INTA legacy interrupt source from functioning with t

Re: [RFC 00/10] kmod: stress test driver, few fixes and enhancements

2017-01-11 Thread Luis R. Rodriguez
On Thu, Dec 08, 2016 at 10:47:51AM -0800, Luis R. Rodriguez wrote: > Upon running into an old kmod v19 issue with mount (get_fs_type()) a few of us > hunted for the cause of the issue. Although the issue ended up being a > userspace issue, a stress test driver was written to help reproduce the issu

Re: [PATCH] pciehp: Fix race condition handling surprise link-down

2017-01-11 Thread Raj, Ashok
Hi Keith did you have a chance to look at this? Cheers, Ashok On Fri, Dec 09, 2016 at 01:06:04PM -0800, Ashok Raj wrote: > Changes from v1: > Address comments from Bjorn: > Added p_slot->lock mutex around changes to p_slot->state > Updated commit message to call

Re: [tpmdd-devel] [PATCH RFC 0/4] RFC: in-kernel resource manager

2017-01-11 Thread Jason Gunthorpe
On Wed, Jan 11, 2017 at 10:25:57AM -0800, James Bottomley wrote: > Right, but we're going around in circles. I'm currently researching > what it would take to be daemonless, so an ioctl which requires an > access broker daemon would obviously be something I'd object to. Well, when we figure out

kvm: deadlock in kvm_vgic_map_resources

2017-01-11 Thread Dmitry Vyukov
Hello, While running syzkaller fuzzer I've got the following deadlock. On commit 9c763584b7c8911106bb77af7e648bef09af9d80. = [ INFO: possible recursive locking detected ] 4.9.0-rc6-xc2-00056-g08372dd4b91d-dirty #50 Not tainted -

Re: [PATCH] ASoC: rt5651: use msleep for large delays

2017-01-11 Thread Nicholas Mc Guire
On Wed, Jan 11, 2017 at 06:06:58PM +, Mark Brown wrote: > On Wed, Jan 11, 2017 at 03:06:45PM +, Nicholas Mc Guire wrote: > > On Wed, Jan 11, 2017 at 02:59:26PM +, Mark Brown wrote: > > > > If you're doing conversions like this I'd expect us to be picking the > > > lower number rather t

[PATCH resend] swiotlb: ensure that page-sized mappings are page-aligned

2017-01-11 Thread Nikita Yushchenko
Some drivers do depend on page mappings to be page aligned. Swiotlb already enforces such alignment for mappings greater than page, extend that to page-sized mappings as well. Without this fix, nvme hits BUG() in nvme_setup_prps(), because that routine assumes page-aligned mappings. Signed-off-b

Re: Support Intel uncore event lists v4

2017-01-11 Thread Jiri Olsa
On Mon, Jan 09, 2017 at 05:33:26PM -0800, Andi Kleen wrote: > This adds uncore support on top of the recently merged JSON event list > infrastructure for core events. Uncore is everything outside the core, > including memory controllers, PCI, interconnect etc. > > Uncore is more complicated to han

Re: [PATCH v4 0/4] Application Data Integrity feature introduced by SPARC M7

2017-01-11 Thread Khalid Aziz
On 01/11/2017 11:13 AM, Dave Hansen wrote: On 01/11/2017 08:56 AM, Khalid Aziz wrote: On 01/11/2017 09:33 AM, Dave Hansen wrote: On 01/11/2017 08:12 AM, Khalid Aziz wrote: A userspace task enables ADI through mprotect(). This patch series adds a page protection bit PROT_ADI and a corresponding

Re: [PATCH 4/5] firmware: add SmPL report for custom fallback mechanism

2017-01-11 Thread Luis R. Rodriguez
On Fri, Dec 16, 2016 at 10:29:52AM +0100, Luis R. Rodriguez wrote: > On Wed, Dec 14, 2016 at 10:48:37AM +0900, Milo Kim wrote: > > Hi Jacek, > > > > On 12/13/2016 06:44 PM, Jacek Anaszewski wrote: > > > > > > Could you please verify if leds-lp55xx-common.c driver > > > really needs a custom firmw

Re: [PATCH v3 2/5] arm64: Work around Falkor erratum 1003

2017-01-11 Thread Marc Zyngier
[finally, some proper bikeshedding] On 11/01/17 18:40, Timur Tabi wrote: > On 01/11/2017 12:37 PM, Mark Rutland wrote: >> The name, as it is, is perfectly descriptive. >> >> Let's not sacrifice legibility over a non-issue. > > I don't want to kick a dead horse or anything, but changing it to > Q

Re: [RFC, PATCHv2 29/29] mm, x86: introduce RLIMIT_VADDR

2017-01-11 Thread Dave Hansen
On 01/11/2017 10:37 AM, Kirill A. Shutemov wrote: >> How about preventing the max addr from being changed to too high a >> value while MPX is on instead of overriding the set value? This would >> have the added benefit that it would prevent silent failures where you >> think you've enabled large a

Re: [PATCH 1/4] PCI: exynos: replace to one register accessor from each accessors

2017-01-11 Thread Bjorn Helgaas
Hi Jaehoon, On Mon, Dec 19, 2016 at 05:16:11PM +0900, Jaehoon Chung wrote: > There is no reason to maintain *_blk/phy/elbi_* as register accessors. > It can be replaced to one register accessor. > > Signed-off-by: Jaehoon Chung > --- > drivers/pci/host/pci-exynos.c | 214 > +++-

Re: [PATCH] fbcon: Fix vc attr at deinit

2017-01-11 Thread Takashi Iwai
On Wed, 11 Jan 2017 15:50:43 +0100, Bartlomiej Zolnierkiewicz wrote: > > > Hi, > > On Tuesday, January 10, 2017 05:09:43 PM Bartlomiej Zolnierkiewicz wrote: > > > > Hi, > > > > On Tuesday, January 10, 2017 04:47:30 PM Takashi Iwai wrote: > > > On Thu, 05 Jan 2017 13:26:07 +0100, > > > Tomi Val

Re: [PATCH 1/2] capability: export has_capability

2017-01-11 Thread Alex Williamson
On Thu, 22 Dec 2016 00:10:15 +0800 Jike Song wrote: > has_capability() is sometimes needed by modules to test capability > for specified task other than current, so export it. > > Cc: Alex Williamson > Cc: Kirti Wankhede > Signed-off-by: Jike Song > --- > kernel/capability.c | 1 + > 1 file

Re: [PATCH v3 2/5] arm64: Work around Falkor erratum 1003

2017-01-11 Thread Mark Rutland
On Wed, Jan 11, 2017 at 12:40:42PM -0600, Timur Tabi wrote: > On 01/11/2017 12:37 PM, Mark Rutland wrote: > >The name, as it is, is perfectly descriptive. > > > >Let's not sacrifice legibility over a non-issue. > > I don't want to kick a dead horse or anything, but changing it to > QCOM_FLKR_ERRAT

Re: [PATCH] drm: Fix broken VT switch with video=1366x768 option

2017-01-11 Thread Takashi Iwai
On Wed, 11 Jan 2017 18:05:12 +0100, Ville Syrjälä wrote: > > On Tue, Jan 10, 2017 at 01:41:42PM +0100, Daniel Vetter wrote: > > On Tue, Jan 10, 2017 at 12:36:50PM +0100, Takashi Iwai wrote: > > > On Tue, 10 Jan 2017 12:28:36 +0100, > > > Ville Syrjälä wrote: > > > > > > > > On Mon, Jan 09, 2017 a

Re: [Xen-devel] [PATCH] xen: do not re-use pirq number cached in pci device msi msg data

2017-01-11 Thread Stefano Stabellini
On Wed, 11 Jan 2017, Dan Streetman wrote: > On Tue, Jan 10, 2017 at 8:25 PM, Stefano Stabellini > wrote: > > On Tue, 10 Jan 2017, Dan Streetman wrote: > >> On Tue, Jan 10, 2017 at 2:03 PM, Stefano Stabellini > >> wrote: > >> > On Tue, 10 Jan 2017, Dan Streetman wrote: > >> >> On Tue, Jan 10, 2017

Re: [PATCH 33/62] watchdog: meson_wdt: Convert to use device managed functions and other improvements

2017-01-11 Thread Kevin Hilman
Guenter Roeck writes: > Use device managed functions to simplify error handling, reduce > source code size, improve readability, and reduce the likelyhood of bugs. > Other improvements as listed below. > > The conversion was done automatically with coccinelle using the > following semantic patche

Re: [PATCH 32/62] watchdog: meson_gxbb_wdt: Convert to use device managed functions and other improvements

2017-01-11 Thread Kevin Hilman
Guenter Roeck writes: > Use device managed functions to simplify error handling, reduce > source code size, improve readability, and reduce the likelyhood of bugs. > Other improvements as listed below. > > The conversion was done automatically with coccinelle using the > following semantic patche

Re: [PATCH v3 2/5] arm64: Work around Falkor erratum 1003

2017-01-11 Thread Mark Rutland
On Wed, Jan 11, 2017 at 06:22:08PM +, Marc Zyngier wrote: > On 11/01/17 18:06, Catalin Marinas wrote: > > On Wed, Jan 11, 2017 at 09:41:15AM -0500, Christopher Covington wrote: > >> diff --git a/arch/arm64/mm/proc.S b/arch/arm64/mm/proc.S > >> index 32682be..9ee46df 100644 > >> --- a/arch/arm64

Re: [PATCH 2/5] perf, tools: Add one liner warning for disabled features

2017-01-11 Thread Jiri Olsa
On Mon, Jan 09, 2017 at 05:02:22PM -0800, Andi Kleen wrote: > From: Andi Kleen > > Add a one liner warning for perf features that need to be enabled > explicitly by the user, so that they know they are missing something. > Currently enabled for XED and BABELTRACE. > > Signed-off-by: Andi Kleen

Re: [PATCH 2/3] cpu: expose pm_qos_resume_latency for each cpu

2017-01-11 Thread Rafael J. Wysocki
On Wed, Jan 11, 2017 at 3:33 PM, Alex Shi wrote: > >>> > #include "base.h" >>> > >>> > @@ -376,6 +377,9 @@ int register_cpu(struct cpu *cpu, int num) >>> > >>> >per_cpu(cpu_sys_devices, num) = &cpu->dev; >>> >register_cpu_under_node(num, cpu_to_node(num)); >>> > +#ifdef CONFIG_CPU_IDLE_GO

[PATCH] drivers: block: Remove unnecessary cast

2017-01-11 Thread Gustavo A. R. Silva
This issue was detected using Coccinelle and the following semantic patch: @@ expression * e; expression arg1, arg2; type T; @@ - e = (T *) + e = kmalloc(arg1, arg2); Signed-off-by: Gustavo A. R. Silva --- drivers/block/cciss_scsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

Re: [PATCH v3 2/5] arm64: Work around Falkor erratum 1003

2017-01-11 Thread Timur Tabi
On 01/11/2017 12:37 PM, Mark Rutland wrote: The name, as it is, is perfectly descriptive. Let's not sacrifice legibility over a non-issue. I don't want to kick a dead horse or anything, but changing it to QCOM_FLKR_ERRATUM_1003 would eliminate all the spacing problems without sacrificing any

Re: [PATCH v3 2/5] arm64: Work around Falkor erratum 1003

2017-01-11 Thread Mark Rutland
On Wed, Jan 11, 2017 at 12:35:55PM -0600, Timur Tabi wrote: > On 01/11/2017 12:33 PM, Mark Rutland wrote: > >It'll need to affect all lines since the kconfig column needs to expand > >by at least one character to fit QCOM_FALKOR_ERRATUM_1003. > > Or we can make the macro shorter. The name, as it

Re: [RFC, PATCHv2 29/29] mm, x86: introduce RLIMIT_VADDR

2017-01-11 Thread Kirill A. Shutemov
On Wed, Jan 11, 2017 at 10:09:17AM -0800, Andy Lutomirski wrote: > On Wed, Jan 11, 2017 at 6:29 AM, Kirill A. Shutemov > wrote: > > On Thu, Jan 05, 2017 at 12:49:44PM -0800, Dave Hansen wrote: > >> On 01/05/2017 12:14 PM, Andy Lutomirski wrote: > >> >> I'm not sure I'm comfortable with this. Do o

Re: [PATCH 1/5] perf, tools: Add probing for xed

2017-01-11 Thread Jiri Olsa
On Mon, Jan 09, 2017 at 05:02:21PM -0800, Andi Kleen wrote: > From: Andi Kleen > > Add autoprobing for the xed disassembler library. > > Can be downloaded from https://github.com/intelxed/xed > > v2: Hide. Require XED=1 to enable. Add XED_DIR > Signed-off-by: Andi Kleen > --- > tools/build/Ma

Re: [PATCH v2] PCI: pciehp: Optimize PCIe root resume time

2017-01-11 Thread Bjorn Helgaas
Hi Vaibhav, On Mon, Dec 12, 2016 at 04:32:25PM -0800, Vaibhav Shankar wrote: > On Apollolake platforms, PCIe rootport takes a long time to resume > from S3. With 100ms delay before read pci conf, rootport takes > ~200ms during resume. > > commit 2f5d8e4ff947 ("PCI: pciehp: replace unconditional s

Re: [PATCH 1/5] perf, tools: Add probing for xed

2017-01-11 Thread Jiri Olsa
On Tue, Jan 10, 2017 at 07:11:50AM +0100, Willy Tarreau wrote: > Hi Andi, > > just a very minor cosmetic detail, but your editor seems to use tabs while > there were 8 spaces around, causing visual alignment defects below : > > On Mon, Jan 09, 2017 at 05:02:21PM -0800, Andi Kleen wrote: > > diff

Re: [PATCH v3 2/5] arm64: Work around Falkor erratum 1003

2017-01-11 Thread Timur Tabi
On 01/11/2017 12:33 PM, Mark Rutland wrote: It'll need to affect all lines since the kconfig column needs to expand by at least one character to fit QCOM_FALKOR_ERRATUM_1003. Or we can make the macro shorter. -- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, I

Re: [PATCH v3 2/5] arm64: Work around Falkor erratum 1003

2017-01-11 Thread Mark Rutland
On Wed, Jan 11, 2017 at 06:06:27PM +, Catalin Marinas wrote: > On Wed, Jan 11, 2017 at 09:41:15AM -0500, Christopher Covington wrote: > > -| Implementor| Component | Erratum ID | Kconfig > > | > > +| Implementor | Component | Erratum ID | Kconfig

[PATCH 1/2] dma-mapping: let arch know origin of dma range passed to arch_setup_dma_ops()

2017-01-11 Thread Nikita Yushchenko
There are cases when device is capable of wide DMA mask (and driver issues corresponding dma_set_mask() call), but bus device sits on can't support wide address. Example: NVMe device behind PCIe controller sitting on 32-bit SoC bus. To support such case, architecture needs information about such l

[PATCH 0/2] arm64: fix handling of DMA masks wider than bus supports

2017-01-11 Thread Nikita Yushchenko
> I reckon the easiest way forward would be to pass in some flag to > arch_setup_dma_ops to indicate whether it's an explicitly-configured > range or not - then simply initialising parent_dma_mask to ~0 for the > default case *should* keep things working as before. Tried to do that. --- Nikita Y

[PATCH 2/2] arm64: avoid increasing DMA masks above what hardware supports

2017-01-11 Thread Nikita Yushchenko
There are cases when device supports wide DMA addresses wider than device's connection supports. In this case driver sets DMA mask based on knowledge of device capabilities. That must succeed to allow drivers to initialize. However, swiotlb or iommu still need knowledge about actual device capabi

Re: [PATCH 1/5] pinctrl: core: Use delayed work for hogs

2017-01-11 Thread Tony Lindgren
* Tony Lindgren [170111 08:29]: > * Linus Walleij [170111 07:34]: > > On Tue, Jan 10, 2017 at 8:19 PM, Tony Lindgren wrote: > > > > > Below is an experimental fix to intorduce pinctrl_start() that I've > > > tested with pinctrl-single. Then we should probably make all pin > > > controller > >

Re: [PATCH] PCI: mvebu: Handle changes to the bridge windows while enabled

2017-01-11 Thread Bjorn Helgaas
On Mon, Dec 12, 2016 at 11:30:20AM -0700, Jason Gunthorpe wrote: > The PCI core will write to the bridge window config multiple times > while they are enabled. This can lead to mbus failures like: > > mvebu_mbus: cannot add window '4:e8', conflicts with another window > mvebu-pcie mbus:pex@e

Re: [PATCH v2] arm64: do not set dma masks that device connection can't handle

2017-01-11 Thread Robin Murphy
On 11/01/17 12:37, Nikita Yushchenko wrote: >> I actually have a third variation of this problem involving a PCI root >> complex which *could* drive full-width (40-bit) addresses, but won't, >> due to the way its PCI<->AXI interface is programmed. That would require >> even more complicated dma-ran

Re: [PATCH 1/5] perf, tools: Add probing for xed

2017-01-11 Thread Jiri Olsa
On Mon, Jan 09, 2017 at 05:02:21PM -0800, Andi Kleen wrote: SNIP > $(OUTPUT)test-all.bin: > - $(BUILD) -fstack-protector-all -O2 -D_FORTIFY_SOURCE=2 -ldw -lelf > -lnuma -lelf -laudit -I/usr/include/slang -lslang $(shell $(PKG_CONFIG) > --libs --cflags gtk+-2.0 2>/dev/null) $(FLAGS_PERL_EMB

Re: [tpmdd-devel] [PATCH RFC 0/4] RFC: in-kernel resource manager

2017-01-11 Thread Stefan Berger
On 01/11/2017 01:03 PM, Jason Gunthorpe wrote: On Wed, Jan 11, 2017 at 11:00:43AM +0100, Andreas Fuchs wrote: could we please get an ioctl, that switches the "mode" of the fd entirely. I'd like to see the write()/read() support still intact. All my current code uses main-loop based poll on the

Re: [RFC 09/10] kmod: add helpers for getting kmod count and limit

2017-01-11 Thread Luis R. Rodriguez
On Fri, Dec 16, 2016 at 08:57:26AM +0100, Luis R. Rodriguez wrote: > On Thu, Dec 15, 2016 at 05:56:19PM +0100, Petr Mladek wrote: > > On Thu 2016-12-08 11:49:20, Luis R. Rodriguez wrote: > > > This adds helpers for getting access to the kmod count and limit from > > > userspace. While at it, this a

Re: [tpmdd-devel] [PATCH RFC 0/4] RFC: in-kernel resource manager

2017-01-11 Thread James Bottomley
On Wed, 2017-01-11 at 10:56 -0700, Jason Gunthorpe wrote: > On Wed, Jan 11, 2017 at 07:39:53AM -0800, James Bottomley wrote: > > > RAW access means the ability to DoS the TPM simply by exhausting > > handles. Therefore, I think most applications only get RM access. > > Re-read what Jarkko is pro

Re: [RFC, PATCHv2 29/29] mm, x86: introduce RLIMIT_VADDR

2017-01-11 Thread Dave Hansen
On 01/11/2017 06:29 AM, Kirill A. Shutemov wrote: > +#define mmap_max_addr() \ > +({ \ > + unsigned long max_addr = min(TASK_SIZE, rlimit(RLIMIT_VADDR)); \ > + /* At the moment, MPX cannot handle addresses above 47-bits */

Re: [PATCH v3 2/5] arm64: Work around Falkor erratum 1003

2017-01-11 Thread Marc Zyngier
On 11/01/17 18:06, Catalin Marinas wrote: > Some minor comments below, nothing fundamental (as long as you say the > new sequence doesn't have the speculative TLB load problem I mentioned > on a previous version). > > On Wed, Jan 11, 2017 at 09:41:15AM -0500, Christopher Covington wrote: >> diff -

Re: x86-64: Maintain 16-byte stack alignment

2017-01-11 Thread Andy Lutomirski
On Wed, Jan 11, 2017 at 12:09 AM, Herbert Xu wrote: > On Wed, Jan 11, 2017 at 08:06:54AM +, Ard Biesheuvel wrote: >> >> Couldn't we update the __aligned(x) macro to emit 32 if arch == x86 >> and x == 16? All other cases should work just fine afaict > > Not everyone uses that macro. You'd also

[PATCH 1/2] x86/mm: don't mmap() over 4GB with compat syscall

2017-01-11 Thread Dmitry Safonov
During fixing CRIU bugs on ZDTM tests for 32-bit C/R, I found that compatible ia32/x32 syscalls mmap() and mmap2() can return address over 4Gb in x86_64 applications, which results in returning lower 4 bytes of address while dropping the higher bytes. It happens because mmap() upper limit doesn't d

[PATCH 0/2] Fix compatible mmap() return pointer over 4Gb

2017-01-11 Thread Dmitry Safonov
A fix for bug in mmap() that I referenced in [1]. Also selftest for it. I would like to mark the fix as for stable v4.9 kernel if it'll be accepted, as I try to support compatible 32-bit C/R after v4.9 and working compatible mmap() is really wanted there. [1]: https://marc.info/?l=linux-kernel&m=

[PATCH 2/2] selftests/x86: add test to check compat mmap() return addr

2017-01-11 Thread Dmitry Safonov
We can't just add segfault handler and use addr, returned by compat mmap() syscall, because the lower 4 bytes can be the same as already existed VMA. So, the test parses /proc/self/maps file, founds new VMAs those appeared after compatible sys_mmap() and checks if mmaped VMA is in that list. On fa

Re: [PATCH v2 7/8] net: Rename TCA*BPF_DIGEST to ..._SHA256

2017-01-11 Thread Andy Lutomirski
On Wed, Jan 11, 2017 at 1:09 AM, Daniel Borkmann wrote: > Hi Andy, > > On 01/11/2017 04:11 AM, Andy Lutomirski wrote: >> >> On Tue, Jan 10, 2017 at 4:50 PM, Daniel Borkmann >> wrote: >>> >>> On 01/11/2017 12:24 AM, Andy Lutomirski wrote: This makes it easier to add another digest a

Re: [Linux-c6x-dev] [PATCH v2 7/7] uapi: export all headers under uapi directories

2017-01-11 Thread Mark Salter
On Fri, 2017-01-06 at 10:43 +0100, Nicolas Dichtel wrote: > Regularly, when a new header is created in include/uapi/, the developer > forgets to add it in the corresponding Kbuild file. This error is usually > detected after the release is out. > > In fact, all headers under uapi directories shoul

[GIT PULL] MD update for 4.10-rc3

2017-01-11 Thread Shaohua Li
Hi, Please pull MD update for 4.10-rc3. Basically one fix for raid5 cache which is merged in this cycle, others are trival fixes. Thanks, Shaohua The following changes since commit 0c744ea4f77d72b3dcebb7a8f2684633ec79be88: Linux 4.10-rc2 (2017-01-01 14:31:53 -0800) are available in the git r

Re: [PATCH v4 0/4] Application Data Integrity feature introduced by SPARC M7

2017-01-11 Thread Dave Hansen
On 01/11/2017 08:56 AM, Khalid Aziz wrote: > On 01/11/2017 09:33 AM, Dave Hansen wrote: >> On 01/11/2017 08:12 AM, Khalid Aziz wrote: >>> A userspace task enables ADI through mprotect(). This patch series adds >>> a page protection bit PROT_ADI and a corresponding VMA flag >>> VM_SPARC_ADI. VM_SPAR

[PATCH linux v2 3/6] hwmon: occ: Add I2C transport implementation for SCOM operations

2017-01-11 Thread eajames . ibm
From: "Edward A. James" Add functions to send SCOM operations over I2C bus. The BMC can communicate with the Power8 host processor over I2C, but needs to use SCOM operations in order to access the OCC register space. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- drivers/hwm

[PATCH linux v2 4/6] hwmon: occ: Add callbacks for parsing P8 OCC datastructures

2017-01-11 Thread eajames . ibm
From: "Edward A. James" Add functions to parse the data structures that are specific to the OCC on the POWER8 processor. These are the sensor data structures, including temperature, frequency, power, and "caps." Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/hw

Re: [PATCH v2 8/8] crypto/testmgr: Allocate only the required output size for hash tests

2017-01-11 Thread Andy Lutomirski
On Wed, Jan 11, 2017 at 7:13 AM, David Laight wrote: > From: Andy Lutomirski >> Sent: 10 January 2017 23:25 >> There are some hashes (e.g. sha224) that have some internal trickery >> to make sure that only the correct number of output bytes are >> generated. If something goes wrong, they could po

[PATCH linux v2 1/6] hwmon: Add core On-Chip Controller support for POWER CPUs

2017-01-11 Thread eajames . ibm
From: "Edward A. James" Add core support for polling the OCC for it's sensor data and parsing that data into sensor-specific information. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/hwmon/occ| 40 drivers/hwmon/Kconfig | 2 + drivers/hwmon/M

[PATCH linux v2 5/6] hwmon: occ: Add hwmon implementation for the P8 OCC

2017-01-11 Thread eajames . ibm
From: "Edward A. James" Add code to tie the hwmon sysfs code and the POWER8 OCC code together, as well as probe the entire driver from the I2C bus. I2C is the communication method between the BMC and the P8 OCC. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/de

[PATCH linux v2 6/6] hwmon: occ: Add callbacks for parsing P9 OCC datastructures

2017-01-11 Thread eajames . ibm
From: "Edward A. James" Add functions to parse the data structures that are specific to the OCC on the POWER9 processor. These are the sensor data structures, including temperature, frequency, power, and "caps." Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/hw

[PATCH linux v2 2/6] hwmon: occ: Add sysfs interface

2017-01-11 Thread eajames . ibm
From: "Edward A. James" Add a generic mechanism to expose the sensors provided by the OCC in sysfs. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/hwmon/occ | 62 ++ drivers/hwmon/occ/Makefile| 2 +- drivers/hwmon/occ/occ_sysfs.c | 274

[PATCH linux v2 0/6] drivers: hwmon: Add On-Chip Controller driver

2017-01-11 Thread eajames . ibm
From: "Edward A. James" This patchset adds a hwmon driver to support the OCC (On-Chip Controller) on the IBM POWER8 and POWER9 processors, from a BMC (Baseboard Management Controller). The OCC is an embedded processor that provides real time power and thermal monitoring. The driver provides an i

Re: [RFC, PATCHv2 29/29] mm, x86: introduce RLIMIT_VADDR

2017-01-11 Thread Andy Lutomirski
On Wed, Jan 11, 2017 at 6:29 AM, Kirill A. Shutemov wrote: > On Thu, Jan 05, 2017 at 12:49:44PM -0800, Dave Hansen wrote: >> On 01/05/2017 12:14 PM, Andy Lutomirski wrote: >> >> I'm not sure I'm comfortable with this. Do other rlimit changes cause >> >> silent data corruption? I'm pretty sure do

Re: [PATCH] ASoC: rt5651: use msleep for large delays

2017-01-11 Thread Mark Brown
On Wed, Jan 11, 2017 at 03:06:45PM +, Nicholas Mc Guire wrote: > On Wed, Jan 11, 2017 at 02:59:26PM +, Mark Brown wrote: > > If you're doing conversions like this I'd expect us to be picking the > > lower number rather than the higher number - people are saying "wait for > > at least X and

Re: [PATCH v3 2/5] arm64: Work around Falkor erratum 1003

2017-01-11 Thread Catalin Marinas
Some minor comments below, nothing fundamental (as long as you say the new sequence doesn't have the speculative TLB load problem I mentioned on a previous version). On Wed, Jan 11, 2017 at 09:41:15AM -0500, Christopher Covington wrote: > diff --git a/Documentation/arm64/silicon-errata.txt > b/Do

Re: [tpmdd-devel] [PATCH RFC 0/4] RFC: in-kernel resource manager

2017-01-11 Thread Jason Gunthorpe
On Wed, Jan 11, 2017 at 11:00:43AM +0100, Andreas Fuchs wrote: > could we please get an ioctl, that switches the "mode" of the fd entirely. > I'd like to see the write()/read() support still intact. > All my current code uses main-loop based poll on the fd and I don't want > to be force to start u

Re: [PATCH/RESEND v2 5/5] z3fold: add kref refcounting

2017-01-11 Thread Dan Streetman
On Wed, Jan 11, 2017 at 12:51 PM, Vitaly Wool wrote: > On Wed, Jan 11, 2017 at 6:39 PM, Dan Streetman wrote: >> On Wed, Jan 11, 2017 at 12:27 PM, Vitaly Wool wrote: >>> On Wed, Jan 11, 2017 at 6:08 PM, Dan Streetman wrote: On Wed, Jan 11, 2017 at 10:06 AM, Vitaly Wool wrote: > With bo

[PATCH v5 3/9] mm/swap: Split swap cache into 64MB trunks

2017-01-11 Thread Tim Chen
From: "Huang, Ying" The patch is to improve the scalability of the swap out/in via using fine grained locks for the swap cache. In current kernel, one address space will be used for each swap device. And in the common configuration, the number of the swap device is very small (one is typical).

Re: [PATCH] PCI: designware: fix asynchronous external abort in keystone PCIe h/w

2017-01-11 Thread Murali Karicheri
On 01/10/2017 06:06 PM, Bjorn Helgaas wrote: > On Tue, Jan 10, 2017 at 12:18:29PM -0500, Murali Karicheri wrote: >> On 01/10/2017 10:12 AM, Bjorn Helgaas wrote: >>> Hi Murali, >>> >>> On Wed, Jan 04, 2017 at 02:32:30PM -0500, Murali Karicheri wrote: Recent fixes for iATU unroll support introdu

[PATCH v5 1/9] mm/swap: Fix kernel message in swap_info_get()

2017-01-11 Thread Tim Chen
From: "Huang, Ying" swap_info_get() is used not only in swap free code path but also in page_swapcount(), etc. So the original kernel message in swap_info_get() is not correct now. Fix it via replacing "swap_free" to "swap_info_get" in the message. Signed-off-by: "Huang, Ying" Signed-off-by:

Re: [PATCH v6] x86: fix kaslr and memmap collision

2017-01-11 Thread Dave Jiang
On 01/11/2017 05:00 AM, Thomas Gleixner wrote: > On Tue, 10 Jan 2017, Dave Jiang wrote: >> +unsigned long simple_strtoul(const char *cp, char **endp, unsigned int >> base); >> +long simple_strtol(const char *cp, char **endp, unsigned int base); > > What are those functions for? They are not use

Re: [tpmdd-devel] [PATCH RFC 0/4] RFC: in-kernel resource manager

2017-01-11 Thread Jason Gunthorpe
On Wed, Jan 11, 2017 at 07:39:53AM -0800, James Bottomley wrote: > RAW access means the ability to DoS the TPM simply by exhausting > handles. Therefore, I think most applications only get RM access. Re-read what Jarkko is proposing. He is not making a complete safe & secure RM in the kernel. H

[PATCH v5 6/9] mm/swap: Free swap slots in batch

2017-01-11 Thread Tim Chen
Add new functions that free unused swap slots in batches without the need to reacquire swap info lock. This improves scalability and reduce lock contention. Signed-off-by: Tim Chen Co-developed-by: "Huang, Ying" --- include/linux/swap.h | 1 + mm/swapfile.c| 155 +

[PATCH v5 5/9] mm/swap: Allocate swap slots in batches

2017-01-11 Thread Tim Chen
Currently, the swap slots are allocated one page at a time, causing contention to the swap_info lock protecting the swap partition on every page being swapped. This patch adds new functions get_swap_pages and scan_swap_map_slots to request multiple swap slots at once. This will reduces the lock co

Re: [PATCH 2/3] gpio: davinci: Redesign driver to accommodate ngpios in one gpio chip

2017-01-11 Thread Grygorii Strashko
On 01/10/2017 11:00 PM, Keerthy wrote: > The Davinci GPIO driver is implemented to work with one monolithic > Davinci GPIO platform device which may have up to Y(144) gpios. > The Davinci GPIO driver instantiates number of GPIO chips with > max 32 gpio pins per each during initialization and one

[PATCH v5 2/9] mm/swap: Add cluster lock

2017-01-11 Thread Tim Chen
From: "Huang, Ying" This patch is to reduce the lock contention of swap_info_struct->lock via using a more fine grained lock in swap_cluster_info for some swap operations. swap_info_struct->lock is heavily contended if multiple processes reclaim pages simultaneously. Because there is only one l

Re: [GIT] Networking

2017-01-11 Thread Linus Torvalds
Thanks. Pulled, going through my usual allmodconfig test-build before being pushed out, Linus On Wed, Jan 11, 2017 at 7:22 AM, David Miller wrote: > > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git

[PATCH 2/3] iio: adc: ti-ads7950: Drop "ti-" prefix from module name

2017-01-11 Thread David Lechner
This drops the "ti-" prefix from the module name. It makes the module name consistent with other iio ti-ads* drivers and it makes the driver work with device tree (the spi subsystem drops the "ti," prefix when matching compatible strings from device tree). Tested working on LEGO MINDSTORMS EV3 wit

[PATCH v5 9/9] mm/swap: Skip readahead only when swap slot cache is enabled

2017-01-11 Thread Tim Chen
From: Huang Ying Because during swap off, a swap entry may have swap_map[] == SWAP_HAS_CACHE (for example, just allocated). If we return NULL in __read_swap_cache_async(), the swap off will abort. So when swap slot cache is disabled, (for swap off), we will wait for page to be put into swap cac

[PATCH v5 0/9] mm/swap: Regular page swap optimizations

2017-01-11 Thread Tim Chen
Change Log: v5: 1. Rebase patch series on 4.10-rc3 kernel. Update patch series to remove usage of obsoleted hot plug functions: cpu_notifier_register_begin(), cpu_notifier_register_done(), and __register_hotcpu_notifier() 2. Fix a bug returning uninitialized swap slot when we run out of swap slots

[PATCH v5 4/9] mm/swap: skip read ahead for unreferenced swap slots

2017-01-11 Thread Tim Chen
We can avoid needlessly allocating page for swap slots that are not used by anyone. No pages have to be read in for these slots. Signed-off-by: Tim Chen Co-developed-by: "Huang, Ying" --- include/linux/swap.h | 6 ++ mm/swap_state.c | 4 mm/swapfile.c| 47 +++

[PATCH v5 7/9] mm/swap: Add cache for swap slots allocation

2017-01-11 Thread Tim Chen
We add per cpu caches for swap slots that can be allocated and freed quickly without the need to touch the swap info lock. Two separate caches are maintained for swap slots allocated and swap slots returned. This is to allow the swap slots to be returned to the global pool in a batch so they will

[PATCH v5 8/9] mm/swap: Enable swap slots cache usage

2017-01-11 Thread Tim Chen
Initialize swap slots cache and enable it on swap on. Drain all swap slots on swap off. Signed-off-by: Tim Chen --- mm/swapfile.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/mm/swapfile.c b/mm/swapfile.c index e6c30ed..14d9ea2 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -218

[PATCH 3/3] iio: adc: ti-ads7950: Change regulator matching string to "vref"

2017-01-11 Thread David Lechner
This changes the reference voltage regulator matching string from "refin" to "vref". This is to be consistent with other A/DC chips that also use "vref-supply" in their device tree bindings. Signed-off-by: David Lechner --- drivers/iio/adc/ti-ads7950.c | 6 +++--- 1 file changed, 3 insertions(+)

[PATCH 0/3] ti,ads7950 device tree bindings

2017-01-11 Thread David Lechner
This series adds device tree bindings for the TI ADS7950 family of A/DC chips. The series includes the bindings documentation and some fixes to the iio driver to make it work with the device tree bindings. FYI, the ads7950 driver has not made it into mainline yet, so no worries about breaking anyo

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