[mm PATCH v3 10/23] arch/microblaze: Add option to skip DMA sync as a part of map and unmap

2016-11-10 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Michal Simek Signed-off-by: Alexander Duyck --- arch/microblaze/kernel/dma.c | 10 -- 1 file

Re: Proposal: HAVE_SEPARATE_IRQ_STACK?

2016-11-10 Thread Jason A. Donenfeld
Hi Matt, On Thu, Nov 10, 2016 at 5:36 PM, Matt Redfearn wrote: > > I don't see a reason not to do this - I'm taking a look into it. Great thanks! This is good to hear. If you go into the arch/ directory and simply grep for "irq_stack", you can pretty easily base your implementation on a variety

[mm PATCH v3 09/23] arch/metag: Add option to skip DMA sync as a part of map and unmap

2016-11-10 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: James Hogan Cc: linux-me...@vger.kernel.org Signed-off-by: Alexander Duyck --- arch/metag/kernel/dma.c

[mm PATCH v3 12/23] arch/nios2: Add option to skip DMA sync as a part of map and unmap

2016-11-10 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Ley Foon Tan Signed-off-by: Alexander Duyck --- arch/nios2/mm/dma-mapping.c | 26 ++-

[mm PATCH v3 22/23] igb: Update driver to make use of DMA_ATTR_SKIP_CPU_SYNC

2016-11-10 Thread Alexander Duyck
The ARM architecture provides a mechanism for deferring cache line invalidation in the case of map/unmap. This patch makes use of this mechanism to avoid unnecessary synchronization. A secondary effect of this change is that the portion of the page that has been synchronized for use by the CPU sh

Re: Long delays creating a netns after deleting one (possibly RCU related)

2016-11-10 Thread Cong Wang
(Cc'ing Paul) On Wed, Nov 9, 2016 at 7:42 AM, Rolf Neugebauer wrote: > Hi > > We noticed some long delays starting docker containers on some newer > kernels (starting with 4.5.x and still present in 4.9-rc4, 4.4.x is > fine). We narrowed this down to the creation of a network namespace > being de

[mm PATCH v3 11/23] arch/mips: Add option to skip DMA sync as a part of map and unmap

2016-11-10 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Ralf Baechle Cc: Keguang Zhang Cc: linux-m...@linux-mips.org Signed-off-by: Alexander Duyck --- arch/

[mm PATCH v3 17/23] arch/sparc: Add option to skip DMA sync as a part of map and unmap

2016-11-10 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org Signed-off-by: Alexander Duyck --- arch/sparc/kernel/

x86/mcheck: convert to hotplug state engine, take #2

2016-11-10 Thread Sebastian Andrzej Siewior
The fixed up version of patch 1-4 was already posted and are here just for completeness. Patches 5-7 are new and address Boris's concern not to init the MCE feature too late on the boot CPU during the boot process. Sebastian

Re: [PATCH] shmem: avoid huge pages for small files

2016-11-10 Thread kbuild test robot
Hi Kirill, [auto build test WARNING on linus/master] [also build test WARNING on v4.9-rc4 next-20161110] [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/Kirill-A-Shutemov/shmem-avoid-huge-pages

[mm PATCH v3 13/23] arch/openrisc: Add option to skip DMA sync as a part of mapping

2016-11-10 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Jonas Bonn Signed-off-by: Alexander Duyck --- arch/openrisc/kernel/dma.c |3 +++ 1 file changed, 3

[PATCH 24/35] staging: lustre: osc: osc_extent should hold refcount to osc_object

2016-11-10 Thread James Simmons
From: Jinshan Xiong To avoid a race that osc_extent and osc_object destroy happens on the same time, which causes kernel crash. Signed-off-by: Jinshan Xiong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7164 Reviewed-on: http://review.whamcloud.com/16433 Reviewed-by: John L. Hammond Revi

[mm PATCH v3 05/23] arch/c6x: Add option to skip sync on DMA map and unmap

2016-11-10 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it later via a sync_for_cpu or sync_for_device call. Acked-by: Mark Salter Signed-off-by: Alexander Duyck --- arch/c6x/kernel/dma.c | 14 ++

[PATCH 18/35] staging: lustre: osc: fix max_dirty_mb tunable setting limit

2016-11-10 Thread James Simmons
From: Gregoire Pichon The OSC tunable max_dirty_mb must be set to a value strictly lower than 2048, as it is assumed by OSS in ofd_grant_alloc() routine. Signed-off-by: Gregoire Pichon Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7218 Reviewed-on: http://review.whamcloud.com/16652 Review

[mm PATCH v3 02/23] arch/arm: Add option to skip sync on DMA map and unmap

2016-11-10 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Cc: Russell King Signed-off-by: Alexander Duyck --- arch/arm/common/dmabounce.c | 16 ++-- 1 file chang

[PATCH 17/35] staging: lustre: obd: Remove dead code in precleanup

2016-11-10 Thread James Simmons
From: Henri Doreau There used to be several pre-cleanup phases, but only OBD_CLEANUP_EXPORTS is actually used. Thus remove the whole notion of precleanup phases. Signed-off-by: Henri Doreau Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7034 Reviewed-on: http://review.whamcloud.com/16061

[PATCH 05/35] staging: lustre: llog: fix wrong offset in llog_process_thread()

2016-11-10 Thread James Simmons
From: Mikhail Pershin - llh_cat_idx may become bigger than llog bitmap size in llog_cat_set_first_idx() function - it is wrong to use previous cur_offset as new buffer offset, new offset should be calculated from value returned by llog_next_block(). - optimize llog_skip_over() to find llog

[mm PATCH v3 16/23] arch/sh: Add option to skip DMA sync as a part of mapping

2016-11-10 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Yoshinori Sato Cc: Rich Felker Cc: linux...@vger.kernel.org Signed-off-by: Alexander Duyck --- arch/s

Re: Proposal: HAVE_SEPARATE_IRQ_STACK?

2016-11-10 Thread Jason A. Donenfeld
Hi Thomas, On Thu, Nov 10, 2016 at 2:00 PM, Thomas Gleixner wrote: > Do not even think about going there. That's going to be a major > mess. Lol! Okay. Thank you for reigning in my clearly reckless propensities... Sometimes playing in traffic is awfully tempting. > > As a short time workaround

[PATCH 03/35] staging: lustre: ptlrpc: mbits is sent within ptlrpc_body

2016-11-10 Thread James Simmons
From: Liang Zhen ptlrpc is using rq_xid as matchbits of bulk data, which means it has to change rq_xid for bulk resend to avoid several bulk data landing into the same buffer from different resends. This patch uses one of reserved __u64 of ptlrpc_body to transfer mbits to peer, matchbits is now

[mm PATCH v3 04/23] arch/blackfin: Add option to skip sync on DMA map

2016-11-10 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Cc: Steven Miao Signed-off-by: Alexander Duyck --- arch/blackfin/kernel/dma-mapping.c |8 +++- 1 file changed

[PATCH 13/35] staging: lustre: llite: lookup master inode by ilookup5_nowait

2016-11-10 Thread James Simmons
From: wang di Do not lookup master inode by ilookup5, instead it should use ilookup5_nowait, otherwise it will cause dead lock, 1. Client1 send chmod req to the MDT0, then on MDT0, it enqueues master and all of its slaves lock, (mdt_attr_set() ->mdt_lock_slaves()), after gets master and st

[PATCH 1/7] x86/mcheck: Move threshold_create_device()

2016-11-10 Thread Sebastian Andrzej Siewior
Move the threshold_create_device() so it can use threshold_remove_device() without a forward declaration. Cc: Tony Luck Cc: Borislav Petkov Cc: linux-e...@vger.kernel.org Cc: x...@kernel.org Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/mcheck

Re: [PATCH v2 2/6] mfd: dt: Add bindings for the Aspeed SoC Display Controller (GFX)

2016-11-10 Thread Rob Herring
On Wed, Nov 9, 2016 at 9:19 PM, Joel Stanley wrote: > On Thu, Nov 10, 2016 at 4:56 AM, Rob Herring wrote: >> On Thu, Nov 03, 2016 at 01:07:57AM +1030, Andrew Jeffery wrote: >>> The Aspeed SoC Display Controller is presented as a syscon device to >>> arbitrate access by display and pinmux drivers.

RE: [PATCH 6/9] bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2

2016-11-10 Thread Stuart Yoder
> -Original Message- > From: Ruxandra Ioana Radulescu > Sent: Thursday, November 10, 2016 9:04 AM > To: Stuart Yoder ; gre...@linuxfoundation.org > Cc: German Rivera ; de...@driverdev.osuosl.org; > linux-kernel@vger.kernel.org; > ag...@suse.de; a...@arndb.de; Leo Li ; Roy Pledge > ; Hai

Re: [PATCHv2] PCI: QDF2432 32 bit config space accessors

2016-11-10 Thread Bjorn Helgaas
On Thu, Nov 10, 2016 at 06:25:16PM +0800, Ard Biesheuvel wrote: > On 10 November 2016 at 06:49, Bjorn Helgaas wrote: > > On Wed, Nov 09, 2016 at 08:29:23PM +, Ard Biesheuvel wrote: > >> Hi Bjorn, > >> > >> On 9 November 2016 at 20:06, Bjorn Helgaas wrote: > >> > On Wed, Nov 09, 2016 at 02:25:

[PATCH 23/35] staging: lustre: ldlm: improve lock timeout messages

2016-11-10 Thread James Simmons
From: John L. Hammond In ldlm_expired_completion_wait() remove the useless LCONSOLE_WARN() message and upgrade the LDLM_DEBUG() statement to LDLM_ERROR(). Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7296 Reviewed-on: http://review.whamcloud.com/16824 Revie

[PATCH 16/35] staging: lustre: llite: support SELinux context labelling

2016-11-10 Thread James Simmons
From: Andrew Wellington SELinux contexts are applied by the kernel if mount options are not binary. As we don't use any binary mount options in Lustre, remove the binary mount option flag. Signed-off-by: Andrew Wellington Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com

[PATCH 7/7] x86/mcheck: Move CPU_DEAD to hotplug state machine

2016-11-10 Thread Sebastian Andrzej Siewior
This moves the last piece of the old hotplug notifier code in MCE to the new hotplug state machine. Cc: Tony Luck Cc: Borislav Petkov Cc: linux-e...@vger.kernel.org Cc: x...@kernel.org Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/kernel/cpu/mcheck/mce.c | 42 ++

[mm PATCH v3 00/23] Add support for DMA writable pages being writable by the network stack

2016-11-10 Thread Alexander Duyck
The first 19 patches in the set add support for the DMA attribute DMA_ATTR_SKIP_CPU_SYNC on multiple platforms/architectures. This is needed so that we can flag the calls to dma_map/unmap_page so that we do not invalidate cache lines that do not currently belong to the device. Instead we have to

[PATCH 4/7] x86/mcheck: Split threshold_cpu_callback into two callbacks

2016-11-10 Thread Sebastian Andrzej Siewior
The threshold_cpu_callback callbacks looks like one of the notifier and its arguments are almost the same. Split this out and have one ONLINE and one DEAD callback. This will come handy later once the main code gets changed to use the callback mechanism. Also, handle threshold_cpu_callback_online()

[PATCH 14/35] staging: lustre: nrs: serialize executions of nrs_policy_stop

2016-11-10 Thread James Simmons
From: Henri Doreau Do not release nrs_lock in nrs_policy_stop0 to prevent op_policy_stop() from being executed concurrently. Signed-off-by: Henri Doreau Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7096 Reviewed-on: http://review.whamcloud.com/16214 Reviewed-by: Lai Siyao Reviewed-by: E

[PATCH 11/35] staging: lustre: ptlrpc: race at req processing

2016-11-10 Thread James Simmons
From: Alexander Boyko Fix: 5c689e689baa ("staging/lustre/ptlrpc: race at req processing") decreased the race window, but does not remove it. Disable rq_resend right after MSG_REPLAY flag set. Import lock protects two threads from race between set/clear MSG_REPLAY and rq_resend flags. Signed-off-

[PATCH 5/7] x86/mcheck: reorganize the hotplug callbacks

2016-11-10 Thread Sebastian Andrzej Siewior
Initially I wanted to remove mcheck_cpu_init() from identify_cpu() and let it become an independent early hotplug callback. The main problem here was that the init on the boot CPU may happen too late (device_initcall_sync(mcheck_init_device)) and nobody wanted to risk receiving and MCE event at boo

Re: [lustre-devel] [PATCH] staging: lustre: ldlm: pl_recalc time handling is wrong

2016-11-10 Thread James Simmons
> On Thursday, November 10, 2016 1:21:08 PM CET Greg Kroah-Hartman wrote: > > > > > > the intention here is simply to have the console log keep the > > > same numbers as "date +%s" for absolute values. The patch that > > > James suggested converting everything to ktime_get_seconds() > > > would r

[PATCH 6/7] x86/mcheck: Move CPU_ONLINE and CPU_DOWN_PREPARE to hotplug state machine

2016-11-10 Thread Sebastian Andrzej Siewior
The CPU_ONLINE and CPU_DOWN_PREPARE look fully symmetrical and could be move to the hotplug state machine. On a failure during registration we have the tear down callback invoked (mce_cpu_pre_down()) so there should be no timer around and so no need to need keep notifier installed (this was the rea

[PATCH 02/35] staging: lustre: obd: rename obd_unpackmd() to md_unpackmd()

2016-11-10 Thread James Simmons
From: John L. Hammond obd_unpackmd() is only implemented by LMV so move it from OBD operations to OBD MD operations and update the prototype to reflex the actual usage. Remove the unused function obd_free_memmd(). Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/L

[PATCH 2/7] x86/mcheck: Explicit cleanup on failure in mce_amd

2016-11-10 Thread Sebastian Andrzej Siewior
If the ONLINE callback fails, the driver does not any clean up right away instead it waits to get to the DEAD stage to do it. Yes, it waits. Since we don't pass the error code back to the caller, no one knows. Do the clean up right away so it does not look like a leak. Cc: Tony Luck Cc: Borislav

[PATCH 09/35] staging: lustre: mgc: IR log failure should not stop mount

2016-11-10 Thread James Simmons
From: wang di If clients or other targets can not get IR config lock or lock, the mount should continue, instead of failing. Because timeout mechanism will handle the recovery anyway. Signed-off-by: wang di Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6906 Reviewed-on: http://review.wham

[PATCH 08/35] staging: lustre: lmv: lock necessary part of lmv_add_target

2016-11-10 Thread James Simmons
From: wang di Release lmv_init_mutex once the new target is added into lmv_tgt_desc, so lmv_obd_connect will not be serialized. New target should be allowed to added to fld client lists, so FLD can always choose new added target to do the FLD lookup request, and also remove some noise error mess

[PATCH 3/7] x86/mcheck: Be prepared for a rollback back to the ONLINE state

2016-11-10 Thread Sebastian Andrzej Siewior
If we try a CPU down and fail in the middle then we roll back to the online state. This means we would perform CPU_ONLINE / mce_device_create() without invoking CPU_DEAD / mce_device_remove() for the cleanup of what was allocated in CPU_ONLINE. Be prepared for this and don't allocate the struct if

Re: net/l2tp: use-after-free write in l2tp_ip6_close

2016-11-10 Thread Guillaume Nault
On Mon, Nov 07, 2016 at 11:35:26PM +0100, Andrey Konovalov wrote: > Hi, > > I've got the following error report while running the syzkaller fuzzer: > > == > BUG: KASAN: use-after-free in l2tp_ip6_close+0x239/0x2a0 at addr > 88006

Re: [PATCH] shmem: avoid huge pages for small files

2016-11-10 Thread Kirill A. Shutemov
On Fri, Nov 11, 2016 at 01:42:47AM +0800, kbuild test robot wrote: > Hi Kirill, > > [auto build test WARNING on linus/master] > [also build test WARNING on v4.9-rc4 next-20161110] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve th

Re: [Xen-devel] [PATCH RESEND] xen/gntdev: Grant maps should not be subject to NUMA balancing

2016-11-10 Thread Olaf Hering
On Thu, Nov 10, Boris Ostrovsky wrote: > Are you sure it's this patch that causes the failure? > > I commented out '| VM_IO' and still unable to boot with this option. Yes, this works for me, sles12sp2 dom0+domU, which is linux-4.4 based: +++ b/drivers/xen/gntdev.c @@ -804,7 +804,7 @@ static in

[PATCH 07/35] staging: lustre: lov: avoid infinite loop in lsm_alloc_plain()

2016-11-10 Thread James Simmons
From: John L. Hammond In lsm_alloc_plain() use a signed loop index to avoid an infinite loop in the error path. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6872 Reviewed-on: http://review.whamcloud.com/15644 Reviewed-by: Dmitry Eremin Reviewed-by: Oleg Dr

Re: [Xen-devel] [PATCH RESEND] xen/gntdev: Grant maps should not be subject to NUMA balancing

2016-11-10 Thread David Vrabel
On 10/11/16 17:47, Olaf Hering wrote: > On Thu, Nov 10, Boris Ostrovsky wrote: > >> Are you sure it's this patch that causes the failure? >> >> I commented out '| VM_IO' and still unable to boot with this option. > > Yes, this works for me, sles12sp2 dom0+domU, which is linux-4.4 based: > > +++

[PATCH 06/35] staging: lustre: osc: Performance tune for LRU

2016-11-10 Thread James Simmons
From: Jinshan Xiong Early launch page LRU work in osc_io_rw_iter_init(); Change the page LRU shrinking policy by OSC attributes; Delete the contented lock osc_object::oo_seatbelt Signed-off-by: Jinshan Xiong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5108 Reviewed-on: http://review.wha

[PATCH 04/35] staging: lustre: lov: init LOV stripe type beforehand

2016-11-10 Thread James Simmons
From: Bobi Jam When lu_object_alloc() reaches to LOV object init, we need initialize its stripe type beforehand, so that if something wrong in the conf buffer, the object chain need to be traversed to free what has been allocated, with LOV object type be set as LLT_EMPTY, and when the LOV part is

Re: Summary of LPC guest MSI discussion in Santa Fe

2016-11-10 Thread Alex Williamson
On Thu, 10 Nov 2016 12:14:40 +0100 Auger Eric wrote: > Hi Will, Alex, > > On 10/11/2016 03:01, Will Deacon wrote: > > On Wed, Nov 09, 2016 at 05:55:17PM -0700, Alex Williamson wrote: > >> On Thu, 10 Nov 2016 01:14:42 +0100 > >> Auger Eric wrote: > >>> On 10/11/2016 00:59, Alex Williamson wr

Re: PM regression with LED changes in next-20161109

2016-11-10 Thread Tony Lindgren
* Pavel Machek [161110 09:29]: > Hi! > > > >>>Looks like commit 883d32ce3385 ("leds: core: Add support for poll()ing > > >>>the sysfs brightness attr for changes.") breaks runtime PM for me. > > >>> > > >>>On my omap dm3730 based test system, idle power consumption is over 70 > > >>>times higher

Re: [PATCH V6 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2016-11-10 Thread Lorenzo Pieralisi
On Thu, Nov 10, 2016 at 10:02:35AM -0500, agust...@codeaurora.org wrote: > Hey Hanjun, > > On 2016-11-09 21:36, Hanjun Guo wrote: > >Hi Marc, Rafael, Lorenzo, > > > >Since we agreed to add a probe deferral if we failed to get irq > >resources which mirroring the DT does (patch 1 in this patch set)

Re: [tip:ras/core] x86/RAS: Simplify SMCA HWID descriptor struct

2016-11-10 Thread Borislav Petkov
On Thu, Nov 10, 2016 at 12:50:04PM -0500, Yazen Ghannam wrote: > Adding extra parentheses in HWID_MCATYPE() gives the same assembly as the > original code and fixes the behavior. > > > + hwid_mcatype = HWID_MCATYPE((high & MCI_IPID_HWID)), > > + ((high & MCI_IPID_MC

Re: [RFC v2 8/8] iommu/arm-smmu: implement add_reserved_regions callback

2016-11-10 Thread Auger Eric
Hi Joerg, On 10/11/2016 17:13, Joerg Roedel wrote: > On Thu, Nov 10, 2016 at 04:57:51PM +0100, Auger Eric wrote: >> It does not only serve the purpose to register the MSI IOVA region. We >> also need to allocate an iova_domain where MSI IOVAs will be allocated >> upon the request of the relevant M

Re: [PATCH] x86/cpuid: Deal with broken firmware once more

2016-11-10 Thread Boris Ostrovsky
On 11/10/2016 12:13 PM, Thomas Gleixner wrote: > On Thu, 10 Nov 2016, Boris Ostrovsky wrote: >> On 11/10/2016 10:12 AM, Thomas Gleixner wrote: >>> On Thu, 10 Nov 2016, Boris Ostrovsky wrote: By firmware you mean ACPI? It is most likely not available to PV guests. >>> You either have to provide

Re: [RESEND PATCH] regulator: pwm: fix syntax errors in the examples

2016-11-10 Thread Mark Brown
On Thu, Nov 10, 2016 at 06:05:59PM +0100, Peter Rosin wrote: > On 2016-11-10 17:18, Mark Brown wrote: > > On Thu, Nov 10, 2016 at 11:25:27AM +0100, Peter Rosin wrote: > >> While at it, clean up some other things as well. > > This isn't a useful changelog, it's just saying that there's some > > ra

[swiotlb PATCH] swiotlb: Minor fix-ups for DMA_ATTR_SKIP_CPU_SYNC support

2016-11-10 Thread Alexander Duyck
I am updating the paths so that instead of trying to pass "attr | DMA_ATTR_SKIP_CPU_SYNC" we instead just OR the value into attr and then pass it since attr will not be used after we make the unmap call. I realized there was one spot I had missed when I was applying the DMA attribute to the DMA ma

[PATCH] PM / wakeirq: report wakeup events in dedicated wake-IRQs

2016-11-10 Thread Brian Norris
It's important that user space can figure out what device woke the system from suspend -- e.g., for debugging, or for implementing conditional wake behavior. Dedicated wakeup IRQs don't currently do that. Let's report the event (pm_wakeup_event()) and also allow drivers to synchronize with these e

Re: [Xen-devel] [PATCH RESEND] xen/gntdev: Grant maps should not be subject to NUMA balancing

2016-11-10 Thread Boris Ostrovsky
On 11/10/2016 12:49 PM, David Vrabel wrote: > On 10/11/16 17:47, Olaf Hering wrote: >> On Thu, Nov 10, Boris Ostrovsky wrote: >> >>> Are you sure it's this patch that causes the failure? >>> >>> I commented out '| VM_IO' and still unable to boot with this option. >> Yes, this works for me, sles12sp

Re: [PATCH V3 1/9] PM / OPP: Reword binding supporting multiple regulators per device

2016-11-10 Thread Viresh Kumar
On 10-11-16, 16:36, Mark Brown wrote: > On Thu, Nov 10, 2016 at 09:34:40AM +0530, Viresh Kumar wrote: > > On 09-11-16, 14:58, Mark Brown wrote: > > > On Wed, Oct 26, 2016 at 12:02:56PM +0530, Viresh Kumar wrote: > > > > > + Entries for multiple regulators shall be provided in the same field > >

Re: [PATCH 1/2] arm64: perf: Move ARMv8 PMU perf event definitions to asm/perf_event.h

2016-11-10 Thread Wei Huang
On 11/10/2016 11:17 AM, Will Deacon wrote: > On Thu, Nov 10, 2016 at 03:32:12PM +, Marc Zyngier wrote: >> On 10/11/16 15:12, Wei Huang wrote: >>> >>> >>> On 11/10/2016 03:10 AM, Marc Zyngier wrote: Hi Wei, On 09/11/16 19:57, Wei Huang wrote: > This patch moves ARMv8-related

Re: [PATCHv2 0/2] THREAD_INFO_IN_TASK prep work for arm64+s390

2016-11-10 Thread Mark Rutland
Hi Heiko, On Wed, Nov 02, 2016 at 03:56:26PM +, Mark Rutland wrote: > On Wed, Oct 26, 2016 at 06:43:05PM +0100, Mark Rutland wrote: > > Heiko and I have been working on THREAD_INFO_IN_TASK for s390 and arm64 > > respectively, and we're both targetting v4.10. > > > > These are the common core

Re: [PATCH] PM / wakeirq: report wakeup events in dedicated wake-IRQs

2016-11-10 Thread Dmitry Torokhov
On Thu, Nov 10, 2016 at 10:07 AM, Brian Norris wrote: > It's important that user space can figure out what device woke the > system from suspend -- e.g., for debugging, or for implementing > conditional wake behavior. Dedicated wakeup IRQs don't currently do > that. > > Let's report the event (pm_

[PATCH 2/4] staging: wlan-ng: use GENMASK macro in different defines of p80211hdr.h

2016-11-10 Thread Sergio Paracuellos
This patch replace actual mask stuff using BIT macros with or operators to make use of GENMASK macro which simplifies code clearity and readibility. It applies for defines included in p80211hdr.h header file. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/p80211hdr.h | 5 ++---

[PATCH 3/4] staging: wlan-ng: use GENMASK macro in define of p80211netdev.h

2016-11-10 Thread Sergio Paracuellos
This patch replace actual mask stuff using BIT macros with or operators to make use of GENMASK macro which simplifies code clearity and readibility. It applies for defines included in p80211netdev.h header file. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/p80211netdev.h | 2

[PATCH 0/4] staging: wlan-ng: make use of GENMASK macro

2016-11-10 Thread Sergio Paracuellos
This patchset replaces mask stuff manipulation which is being used using BIT macro with or operators with the use of GENMASK macro. Sergio Paracuellos (4): staging: wlan-ng: use GENMASK macro in different defines of hfa384x.h staging: wlan-ng: use GENMASK macro in different defines of p802

Re: [PATCH v10 1/7] x86/arch_prctl/64: Use SYSCALL_DEFINE2 to define sys_arch_prctl

2016-11-10 Thread Kyle Huey
On Wed, Nov 9, 2016 at 1:47 AM, Borislav Petkov wrote: > On Tue, Nov 08, 2016 at 10:39:50AM -0800, Kyle Huey wrote: > > <--- Add commit message here. > >> Signed-off-by: Kyle Huey >> --- >> arch/x86/kernel/process_64.c | 3 ++- >> arch/x86/um/syscalls_64.c| 3 ++- >> 2 files changed, 4 inser

[PATCH 1/4] staging: wlan-ng: use GENMASK macro in different defines of hfa384x.h

2016-11-10 Thread Sergio Paracuellos
This patch replace actual mask stuff using BIT macros with or operators to make use of GENMASK macro which simplifies code clearity and readibility. It applies for defines included in hfa384x.h header file. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/hfa384x.h | 29 -

[PATCH 4/4] staging: wlan-ng: use GENMASK macro in two bitwise operations in prism2sta.c

2016-11-10 Thread Sergio Paracuellos
This patch replace actual mask stuff using BIT macros with or operators to make use of GENMASK macro which simplifies code clearity and readibility. It applies for two bitwise operations included in prism2sta.c source file. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/prism2s

[PATCH v2 1/3] dt/binding: ti-tsc-adc: deprecate ti,charge-delay and add binding doc for ti,charge-delay-ns

2016-11-10 Thread Mugunthan V N
ti,charge-delay represents the duration that ADC should wait before sampling the ADC line to detect the touch location and pen up/downs. Currently the ADC clock is set at 3MHz. The device-tree entry for ti,charge-delay is based on assumption of ADC clock at 3MHz, but it can be operated up to 24MHz

[PATCH 6/8] coresight: tmc: Get rid of mode parameter for helper routines

2016-11-10 Thread Mathieu Poirier
From: "Suzuki K. Poulose" Get rid of the superfluous mode parameter and the check for the mode in tmc_etX_enable_sink_{perf/sysfs}. While at it, also remove the unnecessary WARN_ON() checks. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtrac

Re: [PATCH v2] drivers: cpuidle: assign enter_freeze to same as enter callback function

2016-11-10 Thread Andy Gross
On 10 November 2016 at 08:24, Sudeep Holla wrote: > enter_freeze() callback is expected atleast to do the same as enter() > but it has to guarantee that interrupts aren't enabled at any point > in its execution, as the tick is frozen. > > CPUs execute ->enter_freeze with the local tick or entire t

[PATCH 7/8] coresight: tmc: Remove duplicate memset

2016-11-10 Thread Mathieu Poirier
From: "Suzuki K. Poulose" The tmc_etr_enable_hw() fills the buffer with 0's before enabling the hardware. So, we don't need an explicit memset() in tmc_enable_etr_sink_sysfs() before calling the tmc_etr_enable_hw(). This patch removes the explicit memset from tmc_enable_etr_sink_sysfs. Signed-of

[PATCH 4/8] coresight: reset "enable_sink" flag when need be

2016-11-10 Thread Mathieu Poirier
When using coresight from the perf interface sinks are specified as part of the perf command line. As such the sink needs to be disabled once it has been acknowledged by the coresight framework. Otherwise the sink stays enabled, which may interfere with other sessions. This patch removes the sink

[PATCH 1/8] coresight: stm: return error code instead of zero in .packet()

2016-11-10 Thread Mathieu Poirier
From: Chunyan Zhang In STM framework driver, the trace data writing loop would keep running until it received a negative return value or the whole trace packet has been written to STM device. So if the .packet() of STM device always returns zero since the device is not enabled or the parameter i

[PATCH 8/8] coresight: Add support for ARM Coresight STM-500

2016-11-10 Thread Mathieu Poirier
From: Suzuki K Poulose Add the PIDs for STM-500 to the known STM devices list. Cc: Mathieu Poirier Cc: Chunyan Zhang Signed-off-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-stm.c | 5 + 1 file changed, 5 insertions(+) diff --git a/driver

[PATCH 2/8] coresight: etm3x: indentation fix (extra space removed)

2016-11-10 Thread Mathieu Poirier
From: Muhammad Abdul WAHAB An extra space is removed. Signed-off-by: Muhammad Abdul Wahab Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm3x-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-etm3x-sysf

[PATCH 5/8] coresight: tmc: Cleanup operation mode handling

2016-11-10 Thread Mathieu Poirier
From: "Suzuki K. Poulose" The mode of operation of the TMC tracked in drvdata->mode is defined as a local_t type. This is always checked and modified under the drvdata->spinlock and hence we don't need local_t for it and the unnecessary synchronisation instructions that comes with it. This change

Re: [PATCH v2 2/3] irqchip: mtk-cirq: Add mediatek mtk-cirq implement

2016-11-10 Thread Marc Zyngier
On 08/11/16 02:57, Youlin Pei wrote: > On Fri, 2016-11-04 at 22:21 +, Marc Zyngier wrote: >> On Fri, Nov 04 2016 at 04:42:57 AM, Youlin Pei >> wrote: >>> On Tue, 2016-11-01 at 20:49 +, Marc Zyngier wrote: On Tue, Nov 01 2016 at 11:52:01 AM, Youlin Pei wrote: > In Mediatek

Re: [PATCH][RFC v7] timekeeping: Ignore the bogus sleep time if pm_trace is enabled

2016-11-10 Thread John Stultz
On Wed, Nov 9, 2016 at 8:55 PM, Chen Yu wrote: > Previously we encountered some memory overflow issues due to > the bogus sleep time brought by inconsistent rtc, which is > triggered when pm_trace is enabled, and we have fixed it > in recent kernel. However it's improper in the first place > to ca

Re: [PATCH v2 1/3] ARM: dts: imx6qdl-apalis: Do not rely on DDC I2C bus bitbang for HDMI

2016-11-10 Thread Vladimir Zapolskiy
Hi Stefan, Philipp, On 11/09/2016 02:50 AM, Stefan Agner wrote: On 2016-11-08 09:33, maitysancha...@gmail.com wrote: Hello Shawn, On 16-10-22 15:43:04, Vladimir Zapolskiy wrote: Hi Shawn, On 10/22/2016 06:25 AM, Shawn Guo wrote: On Mon, Sep 19, 2016 at 10:41:51AM +0530, Sanchayan Maity wrot

[PATCH 0/8] coresight: next v4.9-rc4

2016-11-10 Thread Mathieu Poirier
Good morning Greg, Please consider the following set for inclusion in the 4.10 cycle. It applies cleanly on today 'char-misc-next' branch (3372592a140d). Regards, Mathieu Chunyan Zhang (1): coresight: stm: return error code instead of zero in .packet() Mathieu Poirier (1): coresight: reset

[PATCH 3/8] coresight: etm3x: Adding missing features of Coresight PTM components

2016-11-10 Thread Mathieu Poirier
From: Muhammad Abdul WAHAB In the current driver for Coresight components, two features of PTM components are missing: 1. Branch Broadcasting (present also in ETM but called Branch Output) 2. Return Stack (only present in PTM v1.0 and PTMv1.1) These features can be added simply to the code usin

Re: [PATCH] PCI: enable extended tags support for PCIe endpoints

2016-11-10 Thread Sinan Kaya
On 9/24/2016 10:10 PM, Sinan Kaya wrote: > Each PCIe device can issue up to 32 transactions at a time by default. > Each transaction is tracked by a tag number on the bus. 32 outstanding > transactions is not enough for some performance critical applications > especially when a lot of small sized

RE: [PATCH 6/9] bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2

2016-11-10 Thread Ruxandra Ioana Radulescu
> -Original Message- > From: Stuart Yoder [mailto:stuart.yo...@nxp.com] > Sent: Friday, October 21, 2016 9:02 AM > To: gre...@linuxfoundation.org > Cc: German Rivera ; de...@driverdev.osuosl.org; > linux-kernel@vger.kernel.org; ag...@suse.de; a...@arndb.de; Leo Li > ; Roy Pledge ; Roy Ple

Re: [PATCH V2 5/5] PCI: handle CRS returned by device after FLR

2016-11-10 Thread Sinan Kaya
On 9/16/2016 4:06 PM, Sinan Kaya wrote: > An endpoint is allowed to issue CRS following an FLR request to indicate > that it is not ready to accept new requests. Changing the polling mechanism > in FLR wait function to go read the vendor ID instead of the command/status > register. A CRS indication

Re: [PATCH V3 1/2] PCI: add CRS support to error handling path

2016-11-10 Thread Sinan Kaya
On 10/3/2016 1:36 AM, Sinan Kaya wrote: > The PCIE spec allows an endpoint device to extend the initialization time > beyond 1 second by issuing Configuration Request Retry Status (CRS) for a > vendor ID read request. > > This basically means "I'm busy now, please call me back later". > > There a

Re: [mm PATCH v3 07/23] arch/hexagon: Add option to skip DMA sync as a part of mapping

2016-11-10 Thread Richard Kuo
On Thu, Nov 10, 2016 at 06:34:52AM -0500, Alexander Duyck wrote: > This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to > avoid invoking cache line invalidation if the driver will just handle it > later via a sync_for_cpu or sync_for_device call. > > Cc: Richard Kuo > Cc: linux

Re: bnx2: broken firware loading

2016-11-10 Thread Jay Rouman
Did this get pushed upstream? I see a new patch for 4.8.7 but the BNX2 regression doesn't seem to be fixed. Or am I missing something? -- Jay Rouman (j...@edzone.net) Gratiot/Isabella RESD, Ithaca, MI > Yes, Paul has reported this. Sorry about this! > > Will work on it right away. > > Thanks

Re: [PATCH 13/13] Documentation: synopsys-dw-mshc: remove the unused properties

2016-11-10 Thread Rob Herring
On Thu, Nov 03, 2016 at 03:21:35PM +0900, Jaehoon Chung wrote: > "support-highspeed" was the obsoleted property. > And "broken-cd" is not synopsys specific property. > It can be referred to mmc.txt binding Documentation. > > Signed-off-by: Jaehoon Chung > --- > Documentation/devicetree/bindings/

[Regression w/ patch] Restore network resistance to weird ICMP messages

2016-11-10 Thread Vicente Jiménez
Handle weird ICMP fragmentation needed messages with next hop MTU equal to (or exceeding) dropped packet size Fixes: 46517008e116 ("ipv4: Kill ip_rt_frag_needed().") In a large corporate network, we spotted this weird ICMP message after a long troubleshooting. See attached capture file. Those ICM

Linux 3.12.67

2016-11-10 Thread Jiri Slaby
I'm announcing the release of the 3.12.67 kernel. All users of the 3.12 kernel series must upgrade. The updated 3.12.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.12.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH] PM / wakeirq: report wakeup events in dedicated wake-IRQs

2016-11-10 Thread Brian Norris
On Thu, Nov 10, 2016 at 10:13:55AM -0800, Dmitry Torokhov wrote: > On Thu, Nov 10, 2016 at 10:07 AM, Brian Norris > wrote: > > It's important that user space can figure out what device woke the > > system from suspend -- e.g., for debugging, or for implementing > > conditional wake behavior. Dedi

Re: [PATCH 3.12 00/72] 3.12.67-stable review

2016-11-10 Thread Jiri Slaby
On 11/07/2016, 07:34 PM, Shuah Khan wrote: > Compiled and booted on my test system. No dmesg regressions. Thanks for testing! -- js suse labs

Re: [PATCH] firmware: fix async/manual firmware loading

2016-11-10 Thread Bjorn Andersson
On Thu 10 Nov 08:07 PST 2016, Luis R. Rodriguez wrote: > On Thu, Nov 10, 2016 at 7:55 AM, Greg Kroah-Hartman > wrote: > > On Wed, Nov 09, 2016 at 09:39:21PM +0100, Luis R. Rodriguez wrote: > >> On Sun, Oct 30, 2016 at 03:50:48PM +0100, Yves-Alexis Perez wrote: > >> > From: Yves-Alexis Perez > >>

Re: [PATCH 1/6] dt-bindings: rockchip-dw-mshc: add RK1108 dw-mshc description

2016-11-10 Thread Rob Herring
On Thu, Nov 03, 2016 at 08:30:50PM +0800, Andy Yan wrote: > From: Shawn Lin > > Add "rockchip,rk1108-dw-mshc", "rockchip,rk3288-dw-mshc" for > dwmmc on rk1108 platform. > > Signed-off-by: Shawn Lin > > Signed-off-by: Andy Yan > --- > > Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.

Re: [PATCH 3.12 00/72] 3.12.67-stable review

2016-11-10 Thread Jiri Slaby
On 11/09/2016, 05:14 AM, Guenter Roeck wrote: > On 11/08/2016 07:40 AM, Jiri Slaby wrote: >> On 11/07/2016, 06:16 PM, Guenter Roeck wrote: >>> On 11/07/2016 05:04 AM, Jiri Slaby wrote: This is the start of the stable review cycle for the 3.12.67 release. There are 72 patches in this serie

Re: [PATCH 6/6] ARM: dts: rockchip: add rockchip RK1108 Evaluation board

2016-11-10 Thread Rob Herring
On Thu, Nov 03, 2016 at 08:43:59PM +0800, Andy Yan wrote: > RK1108EVB is designed by Rockchip for CVR field. > This patch add basic support for it, which can boot with > initramfs into shell. > > Signed-off-by: Andy Yan > --- > > Documentation/devicetree/bindings/arm/rockchip.txt | 3 + > arch

Re: [PATCH v2] staging: lustre: ldlm: pl_recalc time handling is wrong

2016-11-10 Thread James Simmons
> James Simmons reports: > > The ldlm_pool field pl_recalc_time is set to the current > > monotonic clock value but the interval period is calculated > > with the wall clock. This means the interval period will > > always be far larger than the pl_recalc_period, which is > > just a small interval

Re: [PATCH v5 6/8] Documentation: bindings: add compatible specific to legacy SCPI protocol

2016-11-10 Thread Olof Johansson
On Thu, Nov 10, 2016 at 6:34 AM, Sudeep Holla wrote: > > > On 10/11/16 14:12, Rob Herring wrote: >> >> On Thu, Nov 10, 2016 at 4:26 AM, Sudeep Holla >> wrote: >>> >>> >>> >>> On 10/11/16 01:22, Rob Herring wrote: On Wed, Nov 02, 2016 at 10:52:09PM -0600, Sudeep Holla wrote: > >

Re: [Regression w/ patch] Restore network resistance to weird ICMP messages

2016-11-10 Thread David Miller
This is still not formed properly. Your Subject line should be of the form: Subject: $Subsystem: $Description Something like "icmp: Restore resistence to abnormal messages." Also, your patch must be inline, right after the commit message, rather than included as an attachment. Finally

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