[PATCH] sparc64: Make SLUB the default allocator

2016-10-26 Thread Nitin Gupta
SLUB has better debugging support. Signed-off-by: Nitin Gupta --- arch/sparc/configs/sparc64_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/sparc/configs/sparc64_defconfig b/arch/sparc/configs/sparc64_defconfig index 3583d67..0a615b0 100644 --- a/arch/spar

Re: [PATCH V4 3/3] ARM64 LPC: LPC driver implementation on Hip06

2016-10-26 Thread Rob Herring
On Thu, Oct 20, 2016 at 05:15:40PM +0800, zhichang.yuan wrote: > On Hip06, the accesses to LPC peripherals work in an indirect way. A > corresponding LPC driver configure some registers in LPC master at first, then > the real accesses on LPC slave devices are finished by the LPC master, which > is

Re: [PATCH] lib/genalloc.c: Start search from start of chunk

2016-10-26 Thread Daniel Mentz
On Wed, Oct 26, 2016 at 12:39 PM, Andrew Morton wrote: > On Wed, 26 Oct 2016 19:09:51 +0100 Will Deacon wrote: > >> On Tue, Oct 25, 2016 at 11:36:44AM -0700, Daniel Mentz wrote: >> > gen_pool_alloc_algo() iterates over the chunks of a pool trying to find >> > a contiguous block of memory that sat

Re: [PATCH 1/2] of, numa: Add function to disable of_node_to_nid().

2016-10-26 Thread Robert Richter
There has been some significant rework around __alloc_pages_nodemask(), adding Mel and linux-mm. -Robert On 26.10.16 10:00:02, David Daney wrote: > On 10/26/2016 06:43 AM, Robert Richter wrote: > >On 25.10.16 14:31:00, David Daney wrote: > >>From: David Daney > >> > >>On arm64 NUMA kernels we ca

Re: [GIT PULL] libata fixes for v4.9-rc2

2016-10-26 Thread David Howells
> The AHCI MSI handling change in rc1 was a bit broken and caused disk > probing failures on some machines. These three patches should fix the > issues. My test machine fell foul of this using a PCIe M.2-attached SSD card. The patches fix it for me. Tested-by: David Howells

Re: [PATCH v2 1/8] drm/bridge: rgb-to-vga: Support an enable GPIO

2016-10-26 Thread Maxime Ripard
Hi Rob, On Wed, Oct 26, 2016 at 05:13:46PM -0500, Rob Herring wrote: > On Thu, Oct 20, 2016 at 11:43:37AM +0800, Chen-Yu Tsai wrote: > > Some rgb-to-vga bridges have an enable GPIO, either directly tied to > > an enable pin on the bridge IC, or indirectly controlling a power > > switch. > > > > A

Re: [PATCH 1/3] phy: sun4i: check PHY id when poking unknown bit of pmu

2016-10-26 Thread Maxime Ripard
Hi, On Tue, Oct 25, 2016 at 11:32:44AM +0800, Icenowy Zheng wrote: > > > > On Mon, Oct 24, 2016 at 11:59:30AM +0800, Icenowy Zheng wrote: > > > >> Allwinner SoC's PHY 0, when used as OTG controller, have no pmu part. > >> The code that poke some unknown bit of PMU for H3/A64 didn't check > >> t

Re: [PATCH v2 1/8] drm/bridge: rgb-to-vga: Support an enable GPIO

2016-10-26 Thread Rob Herring
On Thu, Oct 20, 2016 at 11:43:37AM +0800, Chen-Yu Tsai wrote: > Some rgb-to-vga bridges have an enable GPIO, either directly tied to > an enable pin on the bridge IC, or indirectly controlling a power > switch. > > Add support for it. > > Signed-off-by: Chen-Yu Tsai > --- > .../bindings/display

Re: [PATCH v3 3/6] dt-bindings: pinctrl: Deprecate sunxi pinctrl bindings

2016-10-26 Thread Maxime Ripard
Hi Linus, On Tue, Oct 25, 2016 at 02:07:27PM +0200, Linus Walleij wrote: > On Mon, Oct 24, 2016 at 9:49 PM, Maxime Ripard > wrote: > > > However, it looks like the first patch from this serie is missing from > > your tree, is there a reason for that? > > No can you point it out? Sure: http://l

Re: [PATCH 5/8] ARM: gr8: Add missing pwm channel 1 pin

2016-10-26 Thread Maxime Ripard
On Tue, Oct 25, 2016 at 12:10:26PM +0800, Chen-Yu Tsai wrote: > On Fri, Oct 21, 2016 at 1:07 AM, Maxime Ripard > wrote: > > On Thu, Oct 20, 2016 at 10:10:03PM +0800, Chen-Yu Tsai wrote: > >> On Thu, Oct 20, 2016 at 4:12 PM, Maxime Ripard > >> wrote: > >> > The PWM controller has two different cha

Re: [PATCH] nvmem: sunxi-sid: SID content is not a valid source of randomness

2016-10-26 Thread Maxime Ripard
On Tue, Oct 25, 2016 at 07:38:55AM +0200, LABBE Corentin wrote: > On Mon, Oct 24, 2016 at 10:10:20PM +0200, Maxime Ripard wrote: > > On Sat, Oct 22, 2016 at 03:53:28PM +0200, Corentin Labbe wrote: > > > Since SID's content is constant over reboot, > > > > That's not true, at least not across all t

Re: [PATCH] dt-binding: soc: qcom: smd: Add label property

2016-10-26 Thread Rob Herring
On Wed, Oct 19, 2016 at 07:38:10PM -0700, Bjorn Andersson wrote: > The label property can be used to specify a name of the edge, for > consistent naming purposes. > > Signed-off-by: Bjorn Andersson > --- > Documentation/devicetree/bindings/soc/qcom/qcom,smd.txt | 7 +++ > 1 file changed, 7 i

Re: [PATCH v7] spi: sun4i: Allow transfers larger than FIFO size

2016-10-26 Thread Maxime Ripard
On Wed, Oct 26, 2016 at 12:00:30AM -0700, Alexandru Gagniuc wrote: > This is the seventh attempt to get this patch in. I was prompted to look > into this again as someone recently remarked: > > " cool, to bad spi does not work properly on allwinner..." > > Two and a half years ago, we were told

Re: [PATCH RESEND 1/2] dt: bindings: add allwinner,otg-routed property for phy-sun4i-usb

2016-10-26 Thread Maxime Ripard
Hi, On Tue, Oct 25, 2016 at 12:11:38PM +0800, Icenowy Zheng wrote: > On some newer Allwinner SoCs (H3 or A64), the PHY0 can be either routed to > the MUSB controller (which is an OTG controller) or the OHCI/EHCI pair > (which is a Host-only controller, but more stable and easy to implement). > >

Re: linux-next: bad commit in the sunxi tree

2016-10-26 Thread Maxime Ripard
Hi Stephen, On Tue, Oct 25, 2016 at 09:22:55AM +1100, Stephen Rothwell wrote: > Hi Maxime, > > In today's sunxi tree > (git://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux.git#sunxi/for-next) > I noticed that commit > > 3861b711f8b5 ("ARM: sun5i: chip: add a node for the w1 gpio contro

Re: linux-next: build failure after merge of the sunxi tree

2016-10-26 Thread Maxime Ripard
On Tue, Oct 25, 2016 at 11:26:28AM +1100, Stephen Rothwell wrote: > Hi Maxime, > > After merging the sunxi tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > ERROR (phandle_references): Reference to non-existent node or label > "pwm1_pins_a" > ERROR: Input tree has e

Re: bio linked list corruption.

2016-10-26 Thread Linus Torvalds
On Wed, Oct 26, 2016 at 1:00 PM, Chris Mason wrote: > > Today I turned off every CONFIG_DEBUG_* except for list debugging, and > ran dbench 2048: > > [ 2759.118711] WARNING: CPU: 2 PID: 31039 at lib/list_debug.c:33 > __list_add+0xbe/0xd0 > [ 2759.119652] list_add corruption. prev->next should be

Re: CONFIG_VMAP_STACK, on-stack struct, and wake_up_bit

2016-10-26 Thread Mel Gorman
On Wed, Oct 26, 2016 at 02:26:57PM -0700, Linus Torvalds wrote: > On Wed, Oct 26, 2016 at 1:31 PM, Mel Gorman > wrote: > > > > IO wait activity is not all that matters. We hit the lock/unlock paths > > during a lot of operations like reclaim. > > I doubt we do. > > Yes, we hit the lock/unlock i

Re: [RESEND PATCH v4] clk: x86: Add Atom PMC platform clocks

2016-10-26 Thread Darren Hart
On Wed, Oct 26, 2016 at 11:43:24PM +0200, Thomas Gleixner wrote: > On Wed, 26 Oct 2016, Darren Hart wrote: > > On Mon, Oct 24, 2016 at 01:38:54PM +, Tirdea, Irina wrote: > > > intel_pmc_* drivers or is it enough to move it as a standalone driver for > > > now? > > > > If the functionality is

Re: [PATCH v2 2/4] dt-bindings: Add TI SCI PM Domains

2016-10-26 Thread Rob Herring
On Mon, Oct 24, 2016 at 12:00 PM, Kevin Hilman wrote: > Dave Gerlach writes: > >> Hi, >> On 10/21/2016 01:48 PM, Kevin Hilman wrote: >>> Dave Gerlach writes: >>> Add a generic power domain implementation, TI SCI PM Domains, that will hook into the genpd framework and allow the TI SCI p

Re: Merge problem: Re: Applied "spi: fsl-espi: avoid processing uninitalized data on error" to the spi tree

2016-10-26 Thread Mark Brown
On Wed, Oct 26, 2016 at 08:11:28PM +0200, Heiner Kallweit wrote: > Instead it should be: > > if (rx_nr_bytes && mspi->rx) { > *(u32 *)mspi->rx = rx_data; > mspi->rx += 4; > } Please send a patch. signature.asc Description: PGP signature

Re: [PATCH v5 00/18] Intel Cache Allocation Technology

2016-10-26 Thread Fenghua Yu
On Wed, Oct 26, 2016 at 11:39:47PM +0200, Thomas Gleixner wrote: > On Sat, 22 Oct 2016, Fenghua Yu wrote: > > This version should cover all comments from Thomas. > > Emphasis on should :) > > But this series is a major step forward and I decided to merge the first > lot: > > > 0001-Documentatio

Re: [PATCH V6 01/10] Documentation: DT: qcom_hidma: update binding for MSI

2016-10-26 Thread Sinan Kaya
On 10/26/2016 5:45 PM, Rob Herring wrote: > On Wed, Oct 19, 2016 at 01:51:43PM -0400, Sinan Kaya wrote: >> Adding a new binding for qcom,hidma-1.1 to distinguish HW supporting >> MSI interrupts from the older revision. >> >> Signed-off-by: Sinan Kaya >> --- >> Documentation/devicetree/bindings/dm

Re: bio linked list corruption.

2016-10-26 Thread Chris Mason
On 10/26/2016 04:00 PM, Chris Mason wrote: > > > On 10/26/2016 03:06 PM, Linus Torvalds wrote: >> On Wed, Oct 26, 2016 at 11:42 AM, Dave Jones wrote: >>> >>> The stacks show nearly all of them are stuck in sync_inodes_sb >> >> That's just wb_wait_for_completion(), and it means that some IO isn

Re: [PATCH 0/5] KVM: x86: cleanup and minimal speedup for APICv

2016-10-26 Thread Michael S. Tsirkin
On Fri, Oct 14, 2016 at 08:21:26PM +0200, Paolo Bonzini wrote: > On some benchmarks (e.g. netperf with ioeventfd disabled), APICv > posted interrupts turn out to be slower than interrupt injection via > KVM_REQ_EVENT. > > These patches save 40 cycles on kvm-unit-tests "inl" tests (1-2%), but I > s

Re: [PATCH 1/5] KVM: x86: avoid atomic operations on APICv vmentry

2016-10-26 Thread Michael S. Tsirkin
On Wed, Oct 19, 2016 at 04:45:48AM -0700, Paul E. McKenney wrote: > On Sun, Oct 16, 2016 at 05:29:24AM +0300, Michael S. Tsirkin wrote: > > On Sat, Oct 15, 2016 at 03:47:45AM -0400, Paolo Bonzini wrote: > > > > > > > > On Oct 14, 2016, at 11:56 AM, Paolo Bonzini > > > > > wrote: > > > > >>> > >

Re: [PATCH 4/5] net: ethernet: bgmac: add NS2 support

2016-10-26 Thread Florian Fainelli
On 10/26/2016 12:36 PM, Jon Mason wrote: > Add support for the variant of amac hardware present in the Broadcom > Northstar2 based SoCs. Northstar2 requires an additional register to be > configured with the port speed/duplexity (NICPM). This can be added to > the link callback to hide it from th

Re: 4.3-rc3 BAR allocation problems on multiple machines

2016-10-26 Thread Bjorn Helgaas
Hi Meelis, On Wed, Oct 07, 2015 at 12:25:19PM +0300, Meelis Roos wrote: > First I noticed that on Sun Netra t1-150 (sparc64 CPU), PCI allocation > was failing for qla1280 scsi driver. Reading dmesg uncovered "can't > claim BAR" errors. Looking for this in my other test machines I see more > of

Re: [PATCH 4.8 000/140] 4.8.5-stable review

2016-10-26 Thread Guenter Roeck
On Wed, Oct 26, 2016 at 02:21:00PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.8.5 release. > There are 140 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.

Re: [PATCH 4.4 000/112] 4.4.28-stable review

2016-10-26 Thread Guenter Roeck
On Wed, Oct 26, 2016 at 02:21:43PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.28 release. > There are 112 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

Re: [RESEND PATCH v4] clk: x86: Add Atom PMC platform clocks

2016-10-26 Thread Thomas Gleixner
On Wed, 26 Oct 2016, Darren Hart wrote: > On Mon, Oct 24, 2016 at 01:38:54PM +, Tirdea, Irina wrote: > > intel_pmc_* drivers or is it enough to move it as a standalone driver for > > now? > > If the functionality is substantially different, then I don't see a > compelling, and certainly not a

Re: [PATCH V6 01/10] Documentation: DT: qcom_hidma: update binding for MSI

2016-10-26 Thread Rob Herring
On Wed, Oct 19, 2016 at 01:51:43PM -0400, Sinan Kaya wrote: > Adding a new binding for qcom,hidma-1.1 to distinguish HW supporting > MSI interrupts from the older revision. > > Signed-off-by: Sinan Kaya > --- > Documentation/devicetree/bindings/dma/qcom_hidma_mgmt.txt | 8 +++- > 1 file chan

Re: [RFC PATCH v2 7/9] drm: atomic: factor out common out-fence operations

2016-10-26 Thread Gustavo Padovan
2016-10-26 Brian Starkey : > Some parts of setting up the CRTC out-fence can be re-used for > writeback out-fences. Factor this out into a separate function. > > Signed-off-by: Brian Starkey > --- > drivers/gpu/drm/drm_atomic.c | 64 > +++--- > 1 file chan

Re: [RFC PATCH v2 9/9] drm: mali-dp: Add writeback out-fence support

2016-10-26 Thread Gustavo Padovan
2016-10-26 Brian Starkey : > If userspace has asked for an out-fence for the writeback, we add a > fence to malidp_mw_job, to be signaled when the writeback job has > completed. > > Signed-off-by: Brian Starkey > --- > drivers/gpu/drm/arm/malidp_hw.c |5 - > drivers/gpu/drm/arm/malidp_m

Re: [PATCH 1/5] KVM: x86: avoid atomic operations on APICv vmentry

2016-10-26 Thread Michael S. Tsirkin
On Wed, Oct 26, 2016 at 09:53:45PM +0200, Radim Krčmář wrote: > 2016-10-14 20:21+0200, Paolo Bonzini: > > On some benchmarks (e.g. netperf with ioeventfd disabled), APICv > > posted interrupts turn out to be slower than interrupt injection via > > KVM_REQ_EVENT. > > > > This patch optimizes a bit

Re: [PATCH v5 00/18] Intel Cache Allocation Technology

2016-10-26 Thread Thomas Gleixner
On Sat, 22 Oct 2016, Fenghua Yu wrote: > This version should cover all comments from Thomas. Emphasis on should :) But this series is a major step forward and I decided to merge the first lot: > 0001-Documentation-ABI-Add-a-document-entry-for-cache-id.patch > 0002-cacheinfo-Introduce-cache-id.p

Re: [PATCH v2 2/9] dt-bindings: interrupt-controller: add DT binding for meson GPIO interrupt controller

2016-10-26 Thread Rob Herring
On Wed, Oct 19, 2016 at 05:21:13PM +0200, Jerome Brunet wrote: > > This commit adds the device tree bindings description for Amlogic's GPIO > interrupt controller available on the meson8, meson8b and gxbb SoC families > > Signed-off-by: Jerome Brunet > --- > Rob, I did not include the Ack you ga

Re: [PATCH 0/2] KVM: x86: emulate fxsave and fxrstor

2016-10-26 Thread Laszlo Ersek
On 10/26/16 22:50, Radim Krčmář wrote: > [1/2] adds the emulation (and could be split into two patches if you'd like), > [2/2] just refactors the code. > > This should fix an issue that users are hitting. Laszlo found several > reports: > - https://bugs.launchpad.net/qemu/+bug/1623276 > - http

Re: [RFC PATCH v2 8/9] drm: writeback: Add out-fences for writeback connectors

2016-10-26 Thread Gustavo Padovan
2016-10-26 Brian Starkey : > Add the OUT_FENCE_PTR property to writeback connectors, to enable > userspace to get a fence which will signal once the writeback is > complete. > > A timeline is added to drm_connector for use by the writeback > out-fences. It is up to drivers to check for a fence in

[PATCH v10 02/19] vfio: VFIO based driver for Mediated devices

2016-10-26 Thread Kirti Wankhede
vfio_mdev driver registers with mdev core driver. mdev core driver creates mediated device and calls probe routine of vfio_mdev driver for each device. Probe routine of vfio_mdev driver adds mediated device to VFIO core module This driver forms a shim layer that pass through VFIO devices operation

[PATCH v10 03/19] vfio: Rearrange functions to get vfio_group from dev

2016-10-26 Thread Kirti Wankhede
This patch rearranges functions to get vfio_group from device Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I1f93262bdbab75094bc24b087b29da35ba70c4c6 --- drivers/vfio/vfio.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/drivers/vf

[PATCH v10 06/19] vfio iommu type1: Update arguments of vfio_lock_acct

2016-10-26 Thread Kirti Wankhede
Updated arguments of vfio_lock_acct to take task as input argument Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I5d3673cc9d3786bb436b395d5f74537f1a36da80 --- drivers/vfio/vfio_iommu_type1.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --g

[PATCH v10 10/19] vfio iommu: Add blocking notifier to notify DMA_UNMAP

2016-10-26 Thread Kirti Wankhede
Added blocking notifier to IOMMU TYPE1 driver to notify vendor drivers about DMA_UNMAP. Exported two APIs vfio_register_notifier() and vfio_unregister_notifier(). Vendor driver should register notifer using these APIs. Vendor driver should use VFIO_IOMMU_NOTIFY_DMA_UNMAP action to invalidate mappin

[PATCH v10 12/19] vfio_pci: Update vfio_pci to use vfio_info_add_capability()

2016-10-26 Thread Kirti Wankhede
Update msix_sparse_mmap_cap() to use vfio_info_add_capability() Update region type capability to use vfio_info_add_capability() Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I52bb28c7875a6da5a79ddad1843e6088aff58a45 --- drivers/vfio/pci/vfio_pci.c | 49 ++--

[tip:x86/cache] x86/intel_rdt: Pick up L3/L2 RDT parameters from CPUID

2016-10-26 Thread tip-bot for Fenghua Yu
Commit-ID: c1c7c3f9d6bb6999a45f66ea4c6bfbcab87ff34b Gitweb: http://git.kernel.org/tip/c1c7c3f9d6bb6999a45f66ea4c6bfbcab87ff34b Author: Fenghua Yu AuthorDate: Sat, 22 Oct 2016 06:19:55 -0700 Committer: Thomas Gleixner CommitDate: Wed, 26 Oct 2016 23:12:39 +0200 x86/intel_rdt: Pick up L3

[PATCH v10 15/19] vfio_platform: Updated to use vfio_set_irqs_validate_and_prepare()

2016-10-26 Thread Kirti Wankhede
Updated vfio_platform_common.c file to use vfio_set_irqs_validate_and_prepare() Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: Id87cd6b78ae901610b39bf957974baa6f40cd7b0 --- drivers/vfio/platform/vfio_platform_common.c | 31 +++- 1 file changed, 8 inserti

Re: [RESEND PATCH v4] clk: x86: Add Atom PMC platform clocks

2016-10-26 Thread Darren Hart
On Mon, Oct 24, 2016 at 01:38:54PM +, Tirdea, Irina wrote: > > On Thu, Oct 20, 2016 at 11:52:38PM +0200, Thomas Gleixner wrote: > > > On Mon, 17 Oct 2016, Irina Tirdea wrote: > > > > The patch has already been reviewed by Stephen Boyd [1]. > > > > The only remaining question is the one pointed

[PATCH v10 11/19] vfio: Introduce common function to add capabilities

2016-10-26 Thread Kirti Wankhede
Vendor driver using mediated device framework should use vfio_info_add_capability() to add capabilities. Introduced this function to reduce code duplication in vendor drivers. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I6fca329fa2291f37a2c859d0bc97574d9e2ce1a6 --- drivers/v

Re: [PATCH net-next 2/2] firewire: net: set initial MTU = 1500 unconditionally, fix IPv6 on some CardBus cards

2016-10-26 Thread David Miller
From: Stefan Richter Date: Sun, 23 Oct 2016 16:30:56 +0200 > firewire-net, like the older eth1394 driver, reduced the initial MTU to > less than 1500 octets if the local link layer controller's asynchronous > packet reception limit was lower. > > This is bogus, since this reception limit does no

[tip:x86/cache] x86/cqm: Share PQR_ASSOC related data between CQM and CAT

2016-10-26 Thread tip-bot for Fenghua Yu
Commit-ID: 6b281569df649ed76145c527028fbbe8a32493aa Gitweb: http://git.kernel.org/tip/6b281569df649ed76145c527028fbbe8a32493aa Author: Fenghua Yu AuthorDate: Sat, 22 Oct 2016 06:19:56 -0700 Committer: Thomas Gleixner CommitDate: Wed, 26 Oct 2016 23:12:39 +0200 x86/cqm: Share PQR_ASSOC

[PATCH v10 16/19] vfio: Define device_api strings

2016-10-26 Thread Kirti Wankhede
Defined device API strings. Vendor driver using mediated device framework should use corresponding string for device_api attribute. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I42d29f475f02a7132ce13297fbf2b48f1da10995 --- include/uapi/linux/vfio.h | 10 ++ 1 file cha

[PATCH v10 17/19] docs: Add Documentation for Mediated devices

2016-10-26 Thread Kirti Wankhede
Add file Documentation/vfio-mediated-device.txt that include details of mediated device framework. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I137dd646442936090d92008b115908b7b2c7bc5d --- Documentation/vfio-mdev/vfio-mediated-device.txt | 297 +++ 1 file

Re: [PATCH 1/2] of, numa: Add function to disable of_node_to_nid().

2016-10-26 Thread David Daney
On 10/26/2016 06:43 AM, Robert Richter wrote: On 25.10.16 14:31:00, David Daney wrote: From: David Daney On arm64 NUMA kernels we can pass "numa=off" on the command line to disable NUMA. A side effect of this is that kmalloc_node() calls to non-zero nodes will crash the system with an OOPS:

[PATCH v10 14/19] vfio_pci: Updated to use vfio_set_irqs_validate_and_prepare()

2016-10-26 Thread Kirti Wankhede
Updated vfio_pci.c file to use vfio_set_irqs_validate_and_prepare() Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I9f3daba89d8dba5cb5b01a8cff420412f30686c7 --- drivers/vfio/pci/vfio_pci.c | 29 + 1 file changed, 9 insertions(+), 20 deletions(-) dif

[PATCH v10 09/19] vfio iommu type1: Add support for mediated devices

2016-10-26 Thread Kirti Wankhede
VFIO IOMMU drivers are designed for the devices which are IOMMU capable. Mediated device only uses IOMMU APIs, the underlying hardware can be managed by an IOMMU domain. Aim of this change is: - To use most of the code of TYPE1 IOMMU driver for mediated devices - To support direct assigned device

[PATCH v10 05/19] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-10-26 Thread Kirti Wankhede
Added two new callback functions to struct vfio_iommu_driver_ops. Backend IOMMU module that supports pining and unpinning pages for mdev devices should provide these functions. Added APIs for pining and unpining pages to VFIO module. These calls back into backend iommu module to actually pin and un

Re: [PATCH net-next 1/2] firewire: net: fix maximum possible MTU

2016-10-26 Thread David Miller
From: Stefan Richter Date: Sun, 23 Oct 2016 16:29:03 +0200 > Commit b3e3893e1253 ("net: use core MTU range checking in misc drivers") > mistakenly introduced an upper limit for firewire-net's MTU based on the > local link layer controller's reception capability. Revert this. Neither > RFC 2734

Re: [RFC PATCH v2 7/9] drm: atomic: factor out common out-fence operations

2016-10-26 Thread Gustavo Padovan
2016-10-26 Brian Starkey : > Some parts of setting up the CRTC out-fence can be re-used for > writeback out-fences. Factor this out into a separate function. > > Signed-off-by: Brian Starkey > --- > drivers/gpu/drm/drm_atomic.c | 64 > +++--- > 1 file chan

[PATCH v10 13/19] vfio: Introduce vfio_set_irqs_validate_and_prepare()

2016-10-26 Thread Kirti Wankhede
Vendor driver using mediated device framework would use same mechnism to validate and prepare IRQs. Introducing this function to reduce code replication in multiple drivers. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: Ie201f269dda0713ca18a07dc4852500bd8b48309 --- drivers/vfi

[PATCH v10 19/19] docs: Sample driver to demonstrate how to use Mediated device framework.

2016-10-26 Thread Kirti Wankhede
The Sample driver creates mdev device that simulates serial port over PCI card. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I857f8f12f8b275f2498dfe8c628a5cdc7193b1b2 --- Documentation/vfio-mdev/Makefile | 13 + Documentation/vfio-mdev/mtty.c

[PATCH v10 18/19] docs: Sysfs ABI for mediated device framework

2016-10-26 Thread Kirti Wankhede
Added details of sysfs ABI for mediated device framework Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: Icb0fd4ed58a2fa793fbcb1c3d5009a4403c1f3ac --- Documentation/ABI/testing/sysfs-bus-vfio-mdev | 111 ++ 1 file changed, 111 insertions(+) create mode 1

Re: CONFIG_VMAP_STACK, on-stack struct, and wake_up_bit

2016-10-26 Thread Linus Torvalds
On Wed, Oct 26, 2016 at 2:01 PM, Bob Peterson wrote: > > Hm. It didn't even boot, at least on my amd box in the lab. > I've made no attempt to debug this. Hmm. Looks like a completely independent issue from the patch. Did you try booting that machine without the patch? > [2.378877] kernel BU

[PATCH v10 07/19] vfio iommu type1: Update argument of vaddr_get_pfn()

2016-10-26 Thread Kirti Wankhede
Update arguments of vaddr_get_pfn() to take struct mm_struct *mm as input argument. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I885fd4cd4a9f66f4ee2c1caf58267464ec239f52 --- drivers/vfio/vfio_iommu_type1.c | 25 ++--- 1 file changed, 18 insertions(+), 7 d

[tip:x86/cache] x86/intel_rdt: Add CONFIG, Makefile, and basic initialization

2016-10-26 Thread tip-bot for Fenghua Yu
Commit-ID: 78e99b4a2b9afb1c304259fcd4a1c71ca97e3acd Gitweb: http://git.kernel.org/tip/78e99b4a2b9afb1c304259fcd4a1c71ca97e3acd Author: Fenghua Yu AuthorDate: Sat, 22 Oct 2016 06:19:53 -0700 Committer: Thomas Gleixner CommitDate: Wed, 26 Oct 2016 23:12:38 +0200 x86/intel_rdt: Add CONFIG

[PATCH v10 08/19] vfio iommu type1: Add find_iommu_group() function

2016-10-26 Thread Kirti Wankhede
Add find_iommu_group() Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I9d372f1ebe9eb01a5a21374b8a2b03f7df73601f --- drivers/vfio/vfio_iommu_type1.c | 58 - 1 file changed, 34 insertions(+), 24 deletions(-) diff --git a/drivers/vfio/vfio_

[PATCH v10 04/19] vfio: Common function to increment container_users

2016-10-26 Thread Kirti Wankhede
This change rearrange functions to have common function to increment container_users Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I8bdeb352bc8439b107ffd519480fd4dc238677f2 --- drivers/vfio/vfio.c | 34 +- 1 file changed, 21 insertions(+), 13 de

[PATCH v10 01/19] vfio: Mediated device Core driver

2016-10-26 Thread Kirti Wankhede
Design for Mediated Device Driver: Main purpose of this driver is to provide a common interface for mediated device management that can be used by different drivers of different devices. This module provides a generic interface to create the device, add it to mediated bus, add device to IOMMU grou

[PATCH v10 00/19] Add Mediated device support

2016-10-26 Thread Kirti Wankhede
This series adds Mediated device support to Linux host kernel. Purpose of this series is to provide a common interface for mediated device management that can be used by different devices. This series introduces Mdev core module that creates and manages mediated devices, VFIO based driver for media

[tip:x86/cache] x86/intel_rdt: Add Haswell feature discovery

2016-10-26 Thread tip-bot for Fenghua Yu
Commit-ID: 113c60970cf41723891e3a1b303517eaf8510bb5 Gitweb: http://git.kernel.org/tip/113c60970cf41723891e3a1b303517eaf8510bb5 Author: Fenghua Yu AuthorDate: Sat, 22 Oct 2016 06:19:54 -0700 Committer: Thomas Gleixner CommitDate: Wed, 26 Oct 2016 23:12:38 +0200 x86/intel_rdt: Add Haswel

[tip:x86/cache] x86/cpufeature: Add RDT CPUID feature bits

2016-10-26 Thread tip-bot for Fenghua Yu
Commit-ID: 4ab1586488cb56ed8728e54c4157cc38646874d9 Gitweb: http://git.kernel.org/tip/4ab1586488cb56ed8728e54c4157cc38646874d9 Author: Fenghua Yu AuthorDate: Sat, 22 Oct 2016 06:19:51 -0700 Committer: Thomas Gleixner CommitDate: Wed, 26 Oct 2016 23:12:38 +0200 x86/cpufeature: Add RDT C

[tip:x86/cache] x86/intel_cacheinfo: Enable cache id in cache info

2016-10-26 Thread tip-bot for Fenghua Yu
Commit-ID: d57e3ab7e34c51a8badeea1b500bfb738d0af66e Gitweb: http://git.kernel.org/tip/d57e3ab7e34c51a8badeea1b500bfb738d0af66e Author: Fenghua Yu AuthorDate: Sat, 22 Oct 2016 06:19:50 -0700 Committer: Thomas Gleixner CommitDate: Wed, 26 Oct 2016 23:12:37 +0200 x86/intel_cacheinfo: Enab

Re: CONFIG_VMAP_STACK, on-stack struct, and wake_up_bit

2016-10-26 Thread Linus Torvalds
On Wed, Oct 26, 2016 at 1:31 PM, Mel Gorman wrote: > > IO wait activity is not all that matters. We hit the lock/unlock paths > during a lot of operations like reclaim. I doubt we do. Yes, we hit the lock/unlock itself, but do we hit the *contention*? The current code is nasty, and always ends

[tip:x86/cache] Documentation, ABI: Document the new sysfs files for cpu cache ids

2016-10-26 Thread tip-bot for Tony Luck
Commit-ID: 1d78dc59f5ab6f467e49882518453adc7e4caa44 Gitweb: http://git.kernel.org/tip/1d78dc59f5ab6f467e49882518453adc7e4caa44 Author: Tony Luck AuthorDate: Sat, 22 Oct 2016 06:19:48 -0700 Committer: Thomas Gleixner CommitDate: Wed, 26 Oct 2016 23:12:37 +0200 Documentation, ABI: Docume

[tip:x86/cache] cacheinfo: Introduce cache id

2016-10-26 Thread tip-bot for Fenghua Yu
Commit-ID: e9a2ea5a1ba09c35258f3663842fb8d8cf2e00c2 Gitweb: http://git.kernel.org/tip/e9a2ea5a1ba09c35258f3663842fb8d8cf2e00c2 Author: Fenghua Yu AuthorDate: Sat, 22 Oct 2016 06:19:49 -0700 Committer: Thomas Gleixner CommitDate: Wed, 26 Oct 2016 23:12:37 +0200 cacheinfo: Introduce cach

Re: [PATCH v5 10/18] x86/intel_rdt: Build structures for each resource based on cache topology

2016-10-26 Thread Thomas Gleixner
On Wed, 26 Oct 2016, Fenghua Yu wrote: > On Wed, Oct 26, 2016 at 03:02:56PM +0200, Thomas Gleixner wrote: > > > + list_for_each(l, &r->domains) { > > > + d = list_entry(l, struct rdt_domain, list); > > > > So above you converted to list_for_each_entry(). Is there a sensible > > reason, asi

Re: [PATCH] batman-adv: Revert "use core MTU range checking in misc drivers"

2016-10-26 Thread David Miller
From: Sven Eckelmann Date: Sat, 22 Oct 2016 09:46:24 +0200 > The maximum MTU is defined via the slave devices of an batman-adv > interface. Thus it is not possible to calculate the max_mtu during the > creation of the batman-adv device when no slave devices are attached. Doing > so would for exam

Re: [PATCH 2/2] phy: qcom-qmp: new qmp phy driver for qcom-chipsets

2016-10-26 Thread Rob Herring
On Wed, Oct 19, 2016 at 04:13:47PM +0530, Vivek Gautam wrote: > Qualcomm SOCs have QMP phy controller that provides support > to a number of controller, viz. PCIe, UFS, and USB. > Add a new driver, based on generic phy framework, for this > phy controller. > > USB3-phy changes: Based on phy-msm-ss

Re: [PATCH 0/2] Broadcom BCM54612E support

2016-10-26 Thread David Miller
From: Xo Wang Date: Fri, 21 Oct 2016 10:20:11 -0700 > This series is based on tip of torvalds/master. > > The first patch adds register definitions from Broadcom docs. > > The second patch adds the BCM54612E PHY ID, flags, and device-specific > RGMII internal delay initialization. > > I tested

Re: [PATCH 1/2] phy: qcom-qusb2: New driver for QUSB2 PHY on Qcom chips

2016-10-26 Thread Rob Herring
On Wed, Oct 19, 2016 at 04:13:46PM +0530, Vivek Gautam wrote: > PHY transceiver driver for QUSB2 phy controller that provides > HighSpeed functionality for DWC3 controller present on > Qualcomm chipsets. > > This driver is based on phy-msm-qusb driver available in > msm-4.4 kernel @codeaurora[1] >

Re: [PATCH v5 10/18] x86/intel_rdt: Build structures for each resource based on cache topology

2016-10-26 Thread Fenghua Yu
On Wed, Oct 26, 2016 at 03:02:56PM +0200, Thomas Gleixner wrote: > On Sat, 22 Oct 2016, Fenghua Yu wrote: > > +void rdt_cbm_update(void *arg) > > +{ > > + struct msr_param *m = (struct msr_param *)arg; > > + struct rdt_resource *r = m->res; > > + int i, cpu = smp_processor_id(); > > + struc

Re: [PATCH 2/2] hwmon: (mcp3021) add devicetree bindings documentation

2016-10-26 Thread Rob Herring
On Wed, Oct 19, 2016 at 11:40:56AM +0200, Clemens Gruber wrote: > Documents the devicetree bindings for the Microchip MCP3021/3221. > > Signed-off-by: Clemens Gruber > --- > Documentation/devicetree/bindings/hwmon/mcp3021.txt | 21 > + > 1 file changed, 21 insertions(+) > c

Re: [PATCH] net: bonding: use new api ethtool_{get|set}_link_ksettings

2016-10-26 Thread Philippe Reynes
Hi Jay, On Wed, Oct 26, 2016 at 8:00 PM, Jay Vosburgh wrote: > Philippe Reynes wrote: > >>The ethtool api {get|set}_settings is deprecated. >>We move this driver to new api {get|set}_link_ksettings. > > This is just an API change, i.e., no change to functionality? Yes, it's juste an API

Geschäftsvorschlag!!!

2016-10-26 Thread Louis ISAKI
-- Geschäftsvorschlag!!! Ich vermute das diese E-Mail eine Überraschung für Sie sein wird, aber es ist wahr.Ich bin bei einer routinen Überprüfung in meiner Bank (First National Bank von Süd Afrika) wo ich arbeite, auf einem Konto gestoßen, was nicht in anspruch genommen worden ist, wo derz

[PATCH] USB: OHCI: make ohci-da8xx a separate driver

2016-10-26 Thread ahaslam
From: Manjunath Goudar Separate the Davinci OHCI host controller driver from ohci-hcd host code so that it can be built as a separate driver module. This work is part of enabling multi-platform kernels on ARM Signed-off-by: Manjunath Goudar [Axel: adapted and rebased, fixed minor comments] Sign

Re: [PATCH] mcp3021: rework for DT support of reference-voltage

2016-10-26 Thread Rob Herring
On Wed, Oct 19, 2016 at 12:44:44AM +0200, Clemens Gruber wrote: > Support setting the reference voltage in the device tree. > Rework of driver structure, put chip specific data in a separate > structure and assign it depending on device id from platform data or > DT match. > Extend the device docum

Re: [RFC 1/2] mmc: sdhci: dt: Add device tree property sdhci-cap-speed-modes-broken

2016-10-26 Thread Rob Herring
On Tue, Oct 18, 2016 at 04:05:35PM -0500, Zach Brown wrote: > On some systems the sdhci capabilty registers are incorrect for one > reason or another. > > The sdhci-cap-speed-modes-broken property will let the driver know that > the sdhci capability registers should not be relied on for speed mode

Re: CONFIG_VMAP_STACK, on-stack struct, and wake_up_bit

2016-10-26 Thread Bob Peterson
- Original Message - | On Wed, Oct 26, 2016 at 11:04 AM, Bob Peterson wrote: | > | > I can test it for you, if you give me about an hour. | | I can definitely wait an hour, it would be lovely to see more testing. | Especially if you have a NUMA machine and an interesting workload. | | An

Re: [PATCH 4/5] misc: sgi-gru: print a hex number after a 0x prefix

2016-10-26 Thread Dimitri Sivanich
On Wed, Oct 26, 2016 at 02:56:57PM +0200, Uwe Kleine-König wrote: > It makes the result hard to interpret correctly if a base 10 number is > prefixed by 0x. So change to a hex number. > Would like to have this be a decimal number. Signed-off-by: Dimitri Sivanich --- drivers/misc/sgi-gru/grumain

[PATCH v3] Input: synaptics-rmi4 - stop scanning PDT after two empty pages

2016-10-26 Thread Nick Dyer
We have encountered some RMI4 firmwares where there are blank pages in between PDT pages which contain functions. This change makes them correctly enumerate all functions on the device. Tested on S7817 (has empty page 2). Signed-off-by: Nick Dyer [Tested successfully on S7817 and S7300 Synaptics

Re: Device or HBA level QD throttling creates randomness in sequetial workload

2016-10-26 Thread Omar Sandoval
On Tue, Oct 25, 2016 at 12:24:24AM +0530, Kashyap Desai wrote: > > -Original Message- > > From: Omar Sandoval [mailto:osan...@osandov.com] > > Sent: Monday, October 24, 2016 9:11 PM > > To: Kashyap Desai > > Cc: linux-s...@vger.kernel.org; linux-kernel@vger.kernel.org; linux- > > bl...@vger

Getting interrupt every million cache misses

2016-10-26 Thread Pavel Machek
Hi! I'd like to get an interrupt every million cache misses... to do a printk() or something like that. As far as I can tell, modern hardware should allow me to do that. AFAICT performance events subsystem can do something like that, but I can't figure out where the code is / what I should call.

[PATCH 4/8] writeback: track if we're sleeping on progress in balance_dirty_pages()

2016-10-26 Thread Jens Axboe
Note in the bdi_writeback structure whenever a task ends up sleeping waiting for progress. We can use that information in the lower layers to increase the priority of writes. Signed-off-by: Jens Axboe --- include/linux/backing-dev-defs.h | 2 ++ mm/backing-dev.c | 1 + mm/page-wr

[PATCH 2/8] writeback: add wbc_to_write_flags()

2016-10-26 Thread Jens Axboe
Add wbc_to_write_flags(), which returns the write modifier flags to use, based on a struct writeback_control. No functional changes in this patch, but it prepares us for factoring other wbc fields for write type. Signed-off-by: Jens Axboe Reviewed-by: Jan Kara --- fs/buffer.c | 2

[PATCH 3/8] writeback: use WRITE_BG for kupdate and background writeback

2016-10-26 Thread Jens Axboe
If we're doing background type writes, then use the appropriate write command for that. Signed-off-by: Jens Axboe --- include/linux/writeback.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 78b87c517b5f..f12f0b34daca 100644 ---

[PATCH 5/8] block: add code to track actual device queue depth

2016-10-26 Thread Jens Axboe
For blk-mq, ->nr_requests does track queue depth, at least at init time. But for the older queue paths, it's simply a soft setting. On top of that, it's generally larger than the hardware setting on purpose, to allow backup of requests for merging. Fill a hole in struct request with a 'queue_depth

[PATCH 6/8] block: add scalable completion tracking of requests

2016-10-26 Thread Jens Axboe
For legacy block, we simply track them in the request queue. For blk-mq, we track them on a per-sw queue basis, which we can then sum up through the hardware queues and finally to a per device state. The stats are tracked in, roughly, 0.1s interval windows. Add sysfs files to display the stats.

[PATCH 8/8] block: hook up writeback throttling

2016-10-26 Thread Jens Axboe
Enable throttling of buffered writeback to make it a lot more smooth, and has way less impact on other system activity. Background writeback should be, by definition, background activity. The fact that we flush huge bundles of it at the time means that it potentially has heavy impacts on foreground

[PATCH 1/8] block: add WRITE_BG

2016-10-26 Thread Jens Axboe
This adds a new request flag, REQ_BG, that callers can use to tell the block layer that this is background (non-urgent) IO. Signed-off-by: Jens Axboe --- include/linux/blk_types.h | 4 +++- include/linux/fs.h| 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/l

[PATCH 7/8] blk-wbt: add general throttling mechanism

2016-10-26 Thread Jens Axboe
We can hook this up to the block layer, to help throttle buffered writes. wbt registers a few trace points that can be used to track what is happening in the system: wbt_lat: 259:0: latency 2446318 wbt_stat: 259:0: rmean=2446318, rmin=2446318, rmax=2446318, rsamples=1, wmean=518866

[PATCHSET] block: buffered writeback throttling

2016-10-26 Thread Jens Axboe
Since the dawn of time, our background buffered writeback has sucked. When we do background buffered writeback, it should have little impact on foreground activity. That's the definition of background activity... But for as long as I can remember, heavy buffered writers have not behaved like that.

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