Re: [PATCH] iwlwifi: pcie: fix SPLC structure parsing

2016-10-13 Thread Luca Coelho
On Thu, 2016-10-13 at 08:56 -0500, Chris Rorvick wrote: > Hi Luca, > > > On Thu, 2016-10-13 at 13:21 +0300, Luca Coelho wrote: > > Could you please give this a spin? I have tested it with some handmade > > ACPI tables in QEMU and it seems to work fine now. > > > Tested-by: Chris Rorvick

Re: [PATCH] drm: atomic: Clarify documentation around drm_atomic_crtc_needs_modeset

2016-10-13 Thread Alex Deucher
On Thu, Oct 13, 2016 at 5:47 AM, Brian Starkey wrote: > Add some additional comments to more explicitly describe the meaning and > usage of the three CRTC modeset detection booleans: mode_changed, > connectors_changed and active_changed. > > Suggested-by: Daniel Vetter

Re: [PATCH (net.git) 1/2] stmmac: fix ptp init for gmac4

2016-10-13 Thread David Miller
From: Giuseppe Cavallaro Date: Wed, 12 Oct 2016 15:42:03 +0200 > The gmac 4.x version has not extended descriptors > (that are available on 3.x instead of). > While initializing the PTP module, the advanced PTP was > enabled in case of extended descriptors. This cannot be

[PATCH 0/3] Add clockevet for timer-nps driver to NPS400 SoC

2016-10-13 Thread Noam Camus
From: Noam Camus In first version of this driver we supported clocksource for the NPS400. The support for clockevent was taken from Synopsys ARC timer driver. This was good for working with our simulator of NPS400. However in NPS400 ASIC the timers behave differently than

Re: [PATCH v4 3/3] net: phy: leds: add support for led triggers on phy link state change

2016-10-13 Thread David Miller
From: Zach Brown Date: Thu, 13 Oct 2016 10:42:46 -0500 > Do you have suggestions on how to better handle the choice of the array size > and the speeds? All of the speed values are simply the rate in bits per second. There is therefore no reason you can't just print the raw

RE: [PATCH 2/2] MIPS: DTS: img: add device tree for Marduk board

2016-10-13 Thread James Hartley
Hi Rahul, > -Original Message- > From: linux-mips-bou...@linux-mips.org [mailto:linux-mips-bounce@linux- > mips.org] On Behalf Of James Hartley > Sent: 13 October 2016 09:50 > To: Rahul Bedarkar; Rob Herring > Cc: Ralf Baechle; Mark Rutland; linux-m...@linux-mips.org; >

Re: [PATCH] qed: fix old-style function definition

2016-10-13 Thread David Miller
From: "Mintz, Yuval" Date: Thu, 13 Oct 2016 14:15:51 + >> > The definition of qed_get_rdma_ops() is not a prototype unless we add >> > 'void' here, as indicated by this W=1 warning: >> > >> > drivers/net/ethernet/qlogic/qed/qed_roce.c: In function ‘qed_get_rdma_ops’:

[PATCH next-next] Documentation/networking: update git urls to use https over http

2016-10-13 Thread Alexander Alemayhu
This fixes the following errors when trying to clone the urls: Cloning into 'net'... fatal: repository 'http://git.kernel.org/cgit/linux/kernel/git/davem/net.git/' not found Cloning into 'net-next'... fatal: repository 'http://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/' not found

Re: [PATCH next-next] Documentation/networking: update git urls to use https over http

2016-10-13 Thread Alexander Alemayhu
On Thu, Oct 13, 2016 at 04:50:54PM +0200, Alexander Alemayhu wrote: > This fixes the following errors when trying to clone the urls: Sorry, looks like I messed up my subject and forgot to add netdev. Will try again. -- Mit freundlichen Grüßen Alexander Alemayhu

[PATCH net-next] Documentation/networking: update git urls to use https over http

2016-10-13 Thread Alexander Alemayhu
This fixes the following errors when trying to clone the urls: Cloning into 'net'... fatal: repository 'http://git.kernel.org/cgit/linux/kernel/git/davem/net.git/' not found Cloning into 'net-next'... fatal: repository 'http://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/' not found

Re: [PATCH lttng-modules] Fix: bump stable kernel version ranges for clock work-around

2016-10-13 Thread Greg Kroah-Hartman
On Thu, Oct 13, 2016 at 03:56:55PM +0200, Mathieu Desnoyers wrote: > Linux commit 27727df240c7 ("Avoid taking lock in NMI path with > CONFIG_DEBUG_TIMEKEEPING"), changed the logic to open-code > the timekeeping_get_ns() function, but forgot to include > the unit conversion from cycles to

Re: [PATCH lttng-modules] Fix: bump stable kernel version ranges for clock work-around

2016-10-13 Thread Mathieu Desnoyers
- On Oct 13, 2016, at 5:00 PM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: > On Thu, Oct 13, 2016 at 03:56:55PM +0200, Mathieu Desnoyers wrote: >> Linux commit 27727df240c7 ("Avoid taking lock in NMI path with >> CONFIG_DEBUG_TIMEKEEPING"), changed the logic to open-code >> the

[RELEASE] LTTng modules 2.7.7, 2.8.3, 2.9.0-rc2 (Linux kernel tracer)

2016-10-13 Thread Mathieu Desnoyers
Hi, These releases simply bump the stable kernel version range checks to include 4.8.1, 4.7.7, 4.4.24, and 4.1.34 for the kernel tracer clock source train-wreck work-around. Greg, if you see this message, please make sure to cherry-pick Linus' master commit commit 58bfea9532 "timekeeping: Fix

Re: [PATCH] Documentation: MIPS supports HAVE_REGS_AND_STACK_ACCESS_API

2016-10-13 Thread Jonathan Corbet
On Thu, 13 Oct 2016 17:09:36 +0200 Ralf Baechle wrote: > Jonathan, you can funnel this through the MIPS tree if you're ok with that? > Just lemme know -- Ralf Through the MIPS tree is fine with me. Thanks, jon

Re: [PATCH -v4 6/8] locking/mutex: Restructure wait loop

2016-10-13 Thread Will Deacon
Hi Peter, I'm struggling to get my head around the handoff code after this change... On Fri, Oct 07, 2016 at 04:52:49PM +0200, Peter Zijlstra wrote: > --- a/kernel/locking/mutex.c > +++ b/kernel/locking/mutex.c > @@ -631,13 +631,21 @@ __mutex_lock_common(struct mutex *lock, > >

Re: [PATCH v2 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-13 Thread Steffen Maier
I'm puzzled. $ git bisect start fc_bsg master Bisecting: 8 revisions left to test after this (roughly 3 steps) [005d51510eee6102636d5dbb06310531c5d46151] scsi: fc: implement kref backed reference counting $ git bisect bad Bisecting: 3 revisions left to test after this (roughly 2 steps)

[PATCH] ceph: Fix uninitialized dentry pointer in ceph_real_mount()

2016-10-13 Thread Geert Uytterhoeven
fs/ceph/super.c: In function ‘ceph_real_mount’: fs/ceph/super.c:818: warning: ‘root’ may be used uninitialized in this function If s_root is already valid, dentry pointer root is never initialized, and returned by ceph_real_mount(). This will cause a crash later when the caller

Re: [PATCH 3/4] remoteproc: Add a sysfs interface for firmware and state

2016-10-13 Thread Matt Redfearn
Hi Loic On 13/10/16 15:39, loic pallardy wrote: On 10/13/2016 04:25 PM, Matt Redfearn wrote: Hi Loic, On 13/10/16 14:56, loic pallardy wrote: On 10/11/2016 03:39 PM, Matt Redfearn wrote: This patch adds a sysfs interface to rproc allowing the firmware name and processor state to be

Re: [PATCH -v4 5/8] locking/mutex: Add lock handoff to avoid starvation

2016-10-13 Thread Will Deacon
Hi Peter, Just one comment below. On Fri, Oct 07, 2016 at 04:52:48PM +0200, Peter Zijlstra wrote: > --- a/kernel/locking/mutex.c > +++ b/kernel/locking/mutex.c > @@ -54,8 +54,10 @@ EXPORT_SYMBOL(__mutex_init); > * bits to store extra state. > * > * Bit0 indicates a non-empty waiter list;

Re: [PATCH] xen-netback: fix type mismatch warning

2016-10-13 Thread David Miller
From: Arnd Bergmann Date: Wed, 12 Oct 2016 16:54:01 +0200 > Wiht the latest rework of the xen-netback driver, we get a warning > on ARM about the types passed into min(): > > drivers/net/xen-netback/rx.c: In function 'xenvif_rx_next_chunk': > include/linux/kernel.h:739:16: error:

Re: [bug/regression] libhugetlbfs testsuite failures and OOMs eventually kill my system

2016-10-13 Thread Mike Kravetz
On 10/13/2016 05:19 AM, Jan Stancek wrote: > Hi, > > I'm running into ENOMEM failures with libhugetlbfs testsuite [1] on > a power8 lpar system running 4.8 or latest git [2]. Repeated runs of > this suite trigger multiple OOMs, that eventually kill entire system, > it usually takes 3-5 runs: > >

Re: [Xen-devel] [RFC KERNEL PATCH 0/2] Add Dom0 NVDIMM support for Xen

2016-10-13 Thread Andrew Cooper
On 13/10/16 16:40, Dan Williams wrote: > On Thu, Oct 13, 2016 at 2:08 AM, Jan Beulich wrote: > [..] >>> I think we can do the similar for Xen, like to lay another pseudo >>> device on /dev/pmem and do the reservation, like 2. in my previous >>> reply. >> Well, my opinion

[PATCH v3 0/4] Enabling Ring 3 MONITOR/MWAIT feature for Knights Landing

2016-10-13 Thread Grzegorz Andrejczuk
These patches enable Intel Xeon Phi x200 feature to use MONITOR/MWAIT instruction in ring 3 (userspace) Patches set MSR 0x140 for all logical CPUs. Then expose it as CPU feature and introduces elf HWCAP capability for x86. Reference (the solution is temporary MSR definition will be in next SDM

[PATCH v3 2/4] Add enabling of the R3 MWAIT during boot for KNL

2016-10-13 Thread Grzegorz Andrejczuk
If processor is Intel Xeon Phi we enable user-level mwait feature. Enabling this feature suppreses invalid-opcode error, when MONITOR/MWAIT is called from ring 3. Signed-off-by: Grzegorz Andrejczuk --- arch/x86/kernel/cpu/intel.c | 31

Re: [PATCH (net.git) 2/2] stmmac: fix error check when init ptp

2016-10-13 Thread David Miller
From: Giuseppe Cavallaro Date: Wed, 12 Oct 2016 15:42:04 +0200 > This patch fixes a problem when propagated the > failure of ptp_clock_register to open function. > > Signed-off-by: Giuseppe Cavallaro Applied.

Re: [mac80211] BUG_ON with current -git (4.8.0-11417-g24532f7)

2016-10-13 Thread Sergey Senozhatsky
SMP kernel: Modules linked in: nls_iso8859_1 nls_cp437 vfat fat mousedev psmouse serio_raw atkbd libps2 i915 coretemp i2c_algo_bit hwmon crc32c_intel mxm_wmi drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect iwlmvm sysimgblt fb_sys_fops i2c_i801 cfbcopyarea ie31200_edac drm iwlwifi i2c

Re: [PATCH -v4 2/8] locking/mutex: Rework mutex::owner

2016-10-13 Thread Will Deacon
On Fri, Oct 07, 2016 at 04:52:45PM +0200, Peter Zijlstra wrote: > The current mutex implementation has an atomic lock word and a > non-atomic owner field. > > This disparity leads to a number of issues with the current mutex code > as it means that we can have a locked mutex without an explicit

Re: [mac80211] BUG_ON with current -git (4.8.0-11417-g24532f7)

2016-10-13 Thread Sergey Senozhatsky
On (10/14/16 00:00), Sergey Senozhatsky wrote: > kernel: [] ieee80211_crypto_ccmp_decrypt+0x204/0x298 > kernel: [] ieee80211_rx_handlers+0x7df/0x1c1d > kernel: [] ieee80211_prepare_and_rx_handle+0xdc2/0xe79 > kernel: [] ? ieee80211_rx_napi+0x168/0x7b6 > kernel: []

[RESEND PATCH 00/11] Add Knights Mill CPU ID

2016-10-13 Thread Piotr Luc
Resending patches related to KNM CPU ID in one patchset for more convenient pick up. This series of patches enables support for Knights Mill (KNM). First two patches improve code style by replacing raw numbers of CPUID with descriptive macros of processor names. The third one introduces KNM CPU

[RESEND PATCH 11/11] tools/power turbostat: enable turbostat to support Knights Mill (KNM)

2016-10-13 Thread Piotr Luc
Add Knights Mill (KNM) to the list of CPUIDs supported by turbostat. Signed-off-by: Piotr Luc Reviewed-by: Dave Hansen Cc: linux-kernel@vger.kernel.org --- This patch depends on [PATCH 03/11] x86/cpu/intel: Add Knights Mill to Intel family

Re: [PATCH v2 2/4] Add enabling of the R3 MWAIT during boot for KNL

2016-10-13 Thread Thomas Gleixner
On Wed, 12 Oct 2016, Dave Hansen wrote: > On 10/12/2016 06:34 AM, Thomas Gleixner wrote: > >> > +if (c->x86 == 6 && > >> > +c->x86_model == INTEL_FAM6_XEON_PHI_KNL && > >> > +phir3mwait) { > >> > +u64 prev; > >> > + > >> > +

[PATCH] Staging:ks7010:eap_packet: fixed 80 character line limit coding style issue

2016-10-13 Thread Nadim Almas
Fixed coding style issue Signed-off-by: Nadim Almas --- drivers/staging/ks7010/eap_packet.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ks7010/eap_packet.h b/drivers/staging/ks7010/eap_packet.h index df7f760..90432ff 100644 ---

Re: [PATCH 1/4] remoteproc: Use fixed length field for firmware name

2016-10-13 Thread Matt Redfearn
Hi Loic, On 13/10/16 14:22, loic pallardy wrote: On 10/11/2016 03:39 PM, Matt Redfearn wrote: Storage of the firmware name was inconsistent, either storing a pointer to a name stored with unknown ownership, or a variable length tacked onto the end of the struct proc allocated in

Re: [PATCH v3 3/4] Add hwcap2 for x86

2016-10-13 Thread Thomas Gleixner
On Thu, 13 Oct 2016, Grzegorz Andrejczuk wrote: > Add hwcap2 attribute for x86. Great value in repeating the subject line. And the subject line is crap because this patch does way more than adding hwcap2 > Reserve 1st bit of HWCAP2 for exposing Xeon Phi ring 3 monitor/mwait. > With this

[PATCH v3 4/4] Add R3MWAIT to CPU features

2016-10-13 Thread Grzegorz Andrejczuk
Add cpu feature for ring 3 monitor/mwait. Signed-off-by: Grzegorz Andrejczuk --- arch/x86/include/asm/cpufeatures.h | 2 ++ arch/x86/kernel/cpu/common.c | 3 +++ arch/x86/kernel/cpu/intel.c| 1 + 3 files changed, 6 insertions(+) diff --git

Re: Re: [PATCH] staging:vt6656:baseband.h: fix function definition argument without identifier name issue

2016-10-13 Thread Mikhail Golubev
On Thu, Oct 13, 2016 at 02:06:02PM +0200, Greg KH wrote: > On Thu, Oct 13, 2016 at 02:50:18PM +0300, Mikhail Golubev wrote: > > Function definitions arguments should also have an identifier name as > > reported by checkpatch.pl. > > Please wrap your changelog comments at 72 columns. > > > > >

[PATCH v3 15/16] scsi: fc: move FC transport's bsg code to bsg-lib

2016-10-13 Thread Johannes Thumshirn
Now that all conversions are done, move the FibreChannel bsg code over to the bsg library. This patch is derived from work done by Mike Christie in 2011 [1] but only the iscsi parts got merged back then. [1] http://marc.info/?l=linux-scsi=131149780921009=2 Signed-off-by: Johannes Thumshirn

[PATCH v3 16/16] block: unexport bsg_softirq_done() again

2016-10-13 Thread Johannes Thumshirn
Unexport bsg_softirq_done() again, we don't need it outside of bsg-lib.c anymore now that scsi_transport_fc is a pure bsg-lib client. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- block/bsg-lib.c | 3 +-- include/linux/bsg-lib.h |

[PATCH v3 07/16] scsi: libfc: don't set FC_RQST_STATE_DONE before calling fc_bsg_jobdone()

2016-10-13 Thread Johannes Thumshirn
Don't set FC_RQST_STATE_DONE before calling fc_bsg_jobdone() as fc_bsg_jobdone() calls blk_complete_requeust() which raises a soft-IRQ that ends up in fc_bsg_sofirq_done() and fc_bsg_softirq_done() sets the FC_RQST_STATE_DONE flag. Signed-off-by: Johannes Thumshirn

[PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-13 Thread Johannes Thumshirn
Don't use fc_bsg_job::request and fc_bsg_job::reply directly, but use helper variables bsg_request and bsg_reply. This will be helpfull when transitioning to bsg-lib. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke ---

[PATCH v3 00/16] Convert FibreChannel bsg code to use bsg-lib

2016-10-13 Thread Johannes Thumshirn
This series converts the current bsg usage in the FibreChannel drivers over to use bsg-lib. SAS will follow once FC is in a good enough shape. I did take some inspiration from a similar patchset from Mike Christie dating back to 2011 but it's not a 1:1 copy. Patch 15/16 is heavily based on his

[PATCH v3 01/16] scsi: Get rid of struct fc_bsg_buffer

2016-10-13 Thread Johannes Thumshirn
struct fc_bsg_buffer is just a clone of struct bsg_buffer from bsg-lib, so use this one instead. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- drivers/scsi/lpfc/lpfc_bsg.c | 3 ++- drivers/scsi/scsi_transport_fc.c | 2 +-

[PATCH v3 04/16] scsi: Unify interfaces of fc_bsg_jobdone and bsg_job_done

2016-10-13 Thread Johannes Thumshirn
Unify the interfaces of fc_bsg_jobdone and bsg_job_done. This will reduce the diff when moving from 'struct fc_bsg_job' to a plain 'struct bsg_job' later on. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- drivers/s390/scsi/zfcp_fc.c |

Re: [PATCH v6 14/17] dax: move put_(un)locked_mapping_entry() in dax.c

2016-10-13 Thread Jan Kara
On Wed 12-10-16 16:50:19, Ross Zwisler wrote: > No functional change. > > The static functions put_locked_mapping_entry() and > put_unlocked_mapping_entry() will soon be used in error cases in > grab_mapping_entry(), so move their definitions above this function. > > Signed-off-by: Ross Zwisler

[PATCH v3 03/16] scsi: fc: Export fc_bsg_jobdone and use it in FC drivers

2016-10-13 Thread Johannes Thumshirn
Export fc_bsg_jobdone so drivers can use it directly instead of doing the round-trip via struct fc_bsg_job::job_done() and use it in the LLDDs. As we've converted all LLDDs over to use fc_bsg_jobdone() directly, we can remove the function pointer from struct fc_bsg_job as well. Signed-off-by:

Re: [PATCH] staging: sm750fb: Fix printk() style warning

2016-10-13 Thread Mike Rapoport
On Mon, Oct 10, 2016 at 07:31:46AM -0700, Edward Lipinsky wrote: > > Thanks, that makes sense. I tried deleting the if statement and printk() > from ddk750_help.c, and adding the following in lynxfb_pci_probe() after > calling hw_sm750_map() and checking for errors: > > if (sm750_dev->revid ==

Re: [PATCH] pmem: report error on clear poison failure

2016-10-13 Thread Dan Williams
On Thu, Oct 13, 2016 at 8:54 AM, Toshi Kani wrote: > ACPI Clear Uncorrectable Error DSM function may fail or may be > unsupported on a platform. pmem_clear_poison() returns without > clearing badblocks in such cases, which leads to a silent data > corruption. > > Change

Re: [PATCH v3 1/4] Add R3MWAIT register and bit to msr-info.h

2016-10-13 Thread Thomas Gleixner
On Thu, 13 Oct 2016, Grzegorz Andrejczuk wrote: > Subject: [PATCH v3 1/4] Add R3MWAIT register and bit to msr-info.h Did you ever notice that all patches have a subsystem related prefix before the sentence decribing the change? See Documentation/SubmittingPatches. Also git log some/file might

Re: [PATCH] UBI: Fix crash in try_recover_peb()

2016-10-13 Thread Boris Brezillon
Hi Geert, On Thu, 13 Oct 2016 16:05:36 +0200 Geert Uytterhoeven wrote: > drivers/mtd/ubi/eba.c: In function ‘try_recover_peb’: > drivers/mtd/ubi/eba.c:744: warning: ‘vid_hdr’ is used uninitialized in > this function > > The pointer vid_hdr is indeed not

Re: [PATCH 3/4] remoteproc: Add a sysfs interface for firmware and state

2016-10-13 Thread Matt Redfearn
Hi Loic, On 13/10/16 14:56, loic pallardy wrote: On 10/11/2016 03:39 PM, Matt Redfearn wrote: This patch adds a sysfs interface to rproc allowing the firmware name and processor state to be changed dynamically. State was previously available in debugfs, and is replicated here. The firmware

Re: [PATCH v4 3/3] net: phy: leds: add support for led triggers on phy link state change

2016-10-13 Thread David Miller
From: Zach Brown Date: Tue, 11 Oct 2016 15:26:20 -0500 > From: Josh Cartwright > > Create an option CONFIG_LED_TRIGGER_PHY (default n), which will > create a set of led triggers for each instantiated PHY device. There is > one LED trigger per

[GIT PULL] overlayfs update for 4.9

2016-10-13 Thread Miklos Szeredi
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-linus I tried to submit this though Al because of the VFS changes, but failed unfortunately. The VFS changes are small and should only affect overlayfs, so here it is. This update contains

[PATCH v3 06/16] scsi: fc: provide fc_bsg_to_rport() helper

2016-10-13 Thread Johannes Thumshirn
Provide fc_bsg_to_rport() helper that will become handy when we're moving from struct fc_bsg_job to a plain struct bsg_job. Also move all LLDDs to use the new helper. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke ---

[PATCH] pmem: report error on clear poison failure

2016-10-13 Thread Toshi Kani
ACPI Clear Uncorrectable Error DSM function may fail or may be unsupported on a platform. pmem_clear_poison() returns without clearing badblocks in such cases, which leads to a silent data corruption. Change pmem_do_bvec() and pmem_clear_poison() to return -EIO so that filesystem can log an

[PATCH] UBI: Fix crash in try_recover_peb()

2016-10-13 Thread Geert Uytterhoeven
drivers/mtd/ubi/eba.c: In function ‘try_recover_peb’: drivers/mtd/ubi/eba.c:744: warning: ‘vid_hdr’ is used uninitialized in this function The pointer vid_hdr is indeed not initialized, leading to a crash when it is dereferenced. Fix this by obtaining the pointer from the VID buffer,

[PATCH v3 3/4] Add hwcap2 for x86

2016-10-13 Thread Grzegorz Andrejczuk
Add hwcap2 attribute for x86. Reserve 1st bit of HWCAP2 for exposing Xeon Phi ring 3 monitor/mwait. With this userspace apps can detect Ring 3 MONITOR/MWAIT instructions. Signed-off-by: Grzegorz Andrejczuk --- arch/x86/include/asm/elf.h| 9 +

[PATCH v3 12/16] scsi: fc: use bsg_softirq_done

2016-10-13 Thread Johannes Thumshirn
bsg_softirq_done() and fc_bsg_softirq_done() are copies of each other, so ditch the fc specific one. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- block/bsg-lib.c | 3 ++- drivers/scsi/scsi_transport_fc.c | 15

[PATCH v3 11/16] scsi: fc: Use bsg_destroy_job

2016-10-13 Thread Johannes Thumshirn
fc_destroy_bsgjob() and bsg_destroy_job() are now 1:1 copies, so use the later. As bsg_destroy_job() comes from bsg-lib we need to select it in Kconfig once CONFOG_SCSI_FC_ATTRS is active. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke ---

[PATCH] Documentation: MIPS supports HAVE_REGS_AND_STACK_ACCESS_API

2016-10-13 Thread Ralf Baechle
This should have been part of 40e084a506eb ('MIPS: Add uprobes support.'). Signed-off-by: Ralf Baechle Fixes: 40e084a506eb ("MIPS: Add uprobes support.") Cc: Jonathan Corbet Cc: linux-m...@linux-mips.org Cc: linux-...@vger.kernel.org Cc:

Re: [PATCH -v4 8/8] locking/mutex: Enable optimistic spinning of woken waiter

2016-10-13 Thread Will Deacon
On Fri, Oct 07, 2016 at 04:52:51PM +0200, Peter Zijlstra wrote: > From: Waiman Long > > This patch makes the waiter that sets the HANDOFF flag start spinning > instead of sleeping until the handoff is complete or the owner > sleeps. Otherwise, the handoff will cause the

[PATCH 2/3] ARC: [plat-eznps] remove macros for timer0 TSI

2016-10-13 Thread Noam Camus
From: Noam Camus Now it is defined at include/soc/nps/mtm.h It will be used by module from driver/clocksource/ Signed-off-by: Noam Camus --- arch/arc/plat-eznps/include/plat/ctop.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff

[RESEND PATCH 03/11] x86/cpu/intel: Add Knights Mill to Intel family

2016-10-13 Thread Piotr Luc
Add CPUID of Knights Mill (KNM) processor to Intel family list. Signed-off-by: Piotr Luc Reviewed-by: Dave Hansen Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc:

[PATCH v2 02/11] tools/power turbostat: Use Intel family processor macros

2016-10-13 Thread Piotr Luc
Use macros of Intel processor families instead of raw numbers. Signed-off-by: Piotr Luc Reviewed-by: Dave Hansen Cc: linux-kernel@vger.kernel.org --- v2: Include Intel family header. tools/power/x86/turbostat/Makefile| 3 +-

[RESEND PATCH 01/11] EDAC, sb_edac: Use Intel family processor macros

2016-10-13 Thread Piotr Luc
Use macros of Intel processor families instead of raw numbers. Signed-off-by: Piotr Luc Reviewed-by: Dave Hansen Cc: Mauro Carvalho Chehab Cc: Doug Thompson Cc: Borislav Petkov Cc:

[RESEND PATCH 09/11] perf/x86/intel/uncore: Add Knights Mill CPUID

2016-10-13 Thread Piotr Luc
Add Knights Mill (KNM) to the list of CPUIDs supported by PMU. Signed-off-by: Piotr Luc Reviewed-by: Dave Hansen Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc:

[PATCH v2] sc16is7xx: Drop bogus use of IRQF_ONESHOT

2016-10-13 Thread Julia Cartwright
From: Josh Cartwright The use of IRQF_ONESHOT when registering an interrupt handler with request_irq() is non-sensical. Not only that, it also prevents the handler from being threaded when it otherwise should be w/ IRQ_FORCED_THREADING is enabled. This causes the following

[PATCH] kvm: memset whole irq_eoi

2016-10-13 Thread Jiri Slaby
gcc 7 warns: arch/x86/kvm/ioapic.c: In function 'kvm_ioapic_reset': arch/x86/kvm/ioapic.c:597:2: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] And it is right. Memset whole array using sizeof operator. Signed-off-by:

Re: [PATCH] kvm: memset whole irq_eoi

2016-10-13 Thread Paolo Bonzini
On 13/10/2016 17:45, Jiri Slaby wrote: > gcc 7 warns: > arch/x86/kvm/ioapic.c: In function 'kvm_ioapic_reset': > arch/x86/kvm/ioapic.c:597:2: warning: 'memset' used with length equal to > number of elements without multiplication by element size [-Wmemset-elt-size] > > And it is right. Memset

Re: [Xen-devel] [RFC KERNEL PATCH 0/2] Add Dom0 NVDIMM support for Xen

2016-10-13 Thread Haozhong Zhang
On 10/13/16 03:08 -0600, Jan Beulich wrote: On 13.10.16 at 10:53, wrote: On 10/13/16 02:34 -0600, Jan Beulich wrote: On 12.10.16 at 18:19, wrote: On Wed, Oct 12, 2016 at 9:01 AM, Jan Beulich wrote: On 12.10.16 at

Re: Re: [PATCH] staging:vt6656:baseband.h: fix function definition argument without identifier name issue

2016-10-13 Thread Greg KH
On Thu, Oct 13, 2016 at 05:23:45PM +0300, Mikhail Golubev wrote: > On Thu, Oct 13, 2016 at 02:06:02PM +0200, Greg KH wrote: > > On Thu, Oct 13, 2016 at 02:50:18PM +0300, Mikhail Golubev wrote: > > > Function definitions arguments should also have an identifier name as > > > reported by

[PATCH v3 03/18] Input: synaptics-rmi4 - Handle incomplete input data

2016-10-13 Thread Benjamin Tissoires
From: Andrew Duggan Commit 5b65c2a02966 ("HID: rmi: check sanity of the incoming report") added support for handling incomplete HID reports do to the input data being corrupted in transit. This patch reimplements this functionality in the function drivers so they can

[PATCH v3 01/18] Input: synaptics-rmi4 - Move IRQ handling to rmi_driver

2016-10-13 Thread Benjamin Tissoires
From: Bjorn Andersson The attn IRQ is related to the chip, rather than the transport, so move all handling of interrupts to the core driver. This also makes sure that there are no races between interrupts and availability of the resources used by the core driver.

Re: [v4.8-rc1 Regression] sched/fair: Apply more PELT fixes

2016-10-13 Thread Joseph Salisbury
On 10/13/2016 06:58 AM, Vincent Guittot wrote: > Hi, > > On 12 October 2016 at 18:21, Joseph Salisbury > wrote: >> On 10/12/2016 08:20 AM, Vincent Guittot wrote: >>> On 8 October 2016 at 13:49, Mike Galbraith wrote: On Sat, 2016-10-08 at 13:37

[PATCH] irqchip: acknowledge to NPS_IPI before handler

2016-10-13 Thread Noam Camus
From: Noam Camus IPI_IRQ (also TIMER0_IRQ) should ack before the action->handler is called in handle_percpu_devid_irq. The IPI irq is edge sensitive and we might miss an IPI interrupt if it was triggered during handling the interrupt itself. Signed-off-by: Noam Camus

[PATCH v3 11/18] Input: synaptics-rmi4 - f03: grab data passed by transport device

2016-10-13 Thread Benjamin Tissoires
From: Dennis Wassenberg First check if there are data available passed by the transport device. If data available use these data. If there are no data available try to read the rmi block if dsata are passed this way. This is the way the other rmi function handlers

[PATCH v3 14/18] Input: synaptics - allocate a Synaptics Intertouch device

2016-10-13 Thread Benjamin Tissoires
Most of the Synaptics devices are connected through PS/2 and a different bus (SMBus or HID over I2C). The secondary bus capability is indicated by the InterTouch bit in extended capability 0x0C. When we encounter such a device, we can create a platform device with the information gathered through

[PATCH v3 02/18] Input: synaptics-rmi4 - factor out functions from probe

2016-10-13 Thread Benjamin Tissoires
From: Nick Dyer Signed-off-by: Nick Dyer Signed-off-by: Benjamin Tissoires --- new in v3 --- drivers/input/rmi4/rmi_driver.c | 139 +--- 1 file changed, 86 insertions(+), 53

[PATCH v3 09/18] Input: synaptics-rmi4 - have only one struct platform data

2016-10-13 Thread Benjamin Tissoires
If struct rmi_device_platform_data contains pointers to other struct, it gets difficult to allocate a fixed size struct and copy it over between drivers. Change the pointers into a struct and change the code in rmi4 accordingly. Reviewed-by: Andrew Duggan Signed-off-by:

[PATCH v3 00/18] Synaptics RMI4 and SMBus implementation

2016-10-13 Thread Benjamin Tissoires
Hi guys, This is the third submission of this series, with some addition of RMI4 patches currently waiting on the list. I integrated Bjorn's patch because in the end, it seems to be the right thing to do. We can create an irqchip in hid-rmi and also provide an IRQ there. Worse case, if this

[PATCH v3 18/18] Input: synaptics-rmi4 - fix documentation of rmi_2d_sensor_platform_data

2016-10-13 Thread Benjamin Tissoires
Typos... Signed-off-by: Benjamin Tissoires --- no changes in v3 new in v2 --- include/linux/rmi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rmi.h b/include/linux/rmi.h index 6b22948..2fdb4fb 100644 ---

[PATCH v3 17/18] Input: synaptics-rmi4 - smbus: on resume, try 3 times if init fails

2016-10-13 Thread Benjamin Tissoires
In some rare cases, we can't retrieve the SMBus version and so we fail binding the touchpad back. Instead of leaving a touchpad dead, try again to reinitialize it. Signed-off-by: Benjamin Tissoires --- no changes in v3 no changes in v2 ---

[PATCH v3 05/18] Input: synaptics-rmi4 - Add support for controlling dribble packets in F12

2016-10-13 Thread Benjamin Tissoires
From: Andrew Duggan Implements reading and setting the dribble bit in F12's control registers. Signed-off-by: Andrew Duggan Acked-by: Benjamin Tissoires Signed-off-by: Benjamin Tissoires

Re: [patch] tipc: info leak in __tipc_nl_add_udp_addr()

2016-10-13 Thread David Miller
From: Dan Carpenter Date: Thu, 13 Oct 2016 11:06:06 +0300 > We should clear out the padding and unused struct members so that we > don't expose stack information to userspace. > > Fixes: fdb3accc2c15 ('tipc: add the ability to get UDP options via netlink') >

Re: [PATCH 3/4] arm64: Allow hw watchpoint of length 3,5,6 and 7

2016-10-13 Thread Pavel Labath
On 13 October 2016 at 11:22, Pratyush Anand wrote: > > > On Wednesday 12 October 2016 04:46 PM, Yao Qi wrote: >> >> On Wed, Oct 12, 2016 at 6:58 AM, Pratyush Anand wrote: >>> >>> Since, arm64 can support all offset within a double word limit. >>> Therefore,

Re: [PATCH 3/4] remoteproc: Add a sysfs interface for firmware and state

2016-10-13 Thread loic pallardy
On 10/13/2016 04:25 PM, Matt Redfearn wrote: Hi Loic, On 13/10/16 14:56, loic pallardy wrote: On 10/11/2016 03:39 PM, Matt Redfearn wrote: This patch adds a sysfs interface to rproc allowing the firmware name and processor state to be changed dynamically. State was previously available

Re: [PATCH v2 08/16] scsi: fc: implement kref backed reference counting

2016-10-13 Thread Johannes Thumshirn
On Thu, Oct 13, 2016 at 01:42:06PM +0200, Hannes Reinecke wrote: > On 10/12/2016 03:06 PM, Johannes Thumshirn wrote: > > Implement kref backed reference counting instead of rolling our own. This > > elimnates the need of the following fields in 'struct fc_bsg_job': > > * ref_cnt > > * state_flags

[PATCH] [media] s5p-cec: mark PM functions as __maybe_unused again

2016-10-13 Thread Arnd Bergmann
A bugfix removed the two callers of s5p_cec_runtime_suspend and s5p_cec_runtime_resume, leading to the return of a harmless warning that I had previously fixed in commit aee8937089b1 ("[media] s5p_cec: mark suspend/resume as __maybe_unused"): staging/media/s5p-cec/s5p_cec.c:234:12: error:

Re: [PATCH] cpufreq: intel_pstate: Add Knights Mill CPUID

2016-10-13 Thread Luc, Piotr
On Wed, 2016-10-12 at 21:39 +0200, Rafael J. Wysocki wrote: > On Wednesday, October 12, 2016 08:25:50 PM Piotr Luc wrote: > > > > --- > > Depends-on: x86/cpu/intel: Add Knights Mill to Intel family > > https://lkml.kernel.org/r/20161012180520.30976-1-piotr.luc () intel > > ! com > > First,

Re: [PATCH v6 17/17] dax: remove "depends on BROKEN" from FS_DAX_PMD

2016-10-13 Thread Jan Kara
On Wed 12-10-16 16:50:22, Ross Zwisler wrote: > Now that DAX PMD faults are once again working and are now participating in > DAX's radix tree locking scheme, allow their config option to be enabled. > > Signed-off-by: Ross Zwisler Looks good. You can add:

Re: [PATCH v3 4/4] Add R3MWAIT to CPU features

2016-10-13 Thread Thomas Gleixner
On Thu, 13 Oct 2016, Grzegorz Andrejczuk wrote: > --- a/arch/x86/kernel/cpu/common.c > +++ b/arch/x86/kernel/cpu/common.c > @@ -1108,6 +1108,9 @@ static void identify_cpu(struct cpuinfo_x86 *c) > #endif > /* The boot/hotplug time assigment got cleared, restore it */ >

Re: [PATCH v6] net: ip, diag -- Add diag interface for raw sockets

2016-10-13 Thread David Ahern
On 10/13/16 1:16 AM, Cyrill Gorcunov wrote: > On Wed, Oct 12, 2016 at 07:55:04PM -0400, David Miller wrote: >> From: Cyrill Gorcunov >> Date: Wed, 12 Oct 2016 09:53:29 +0300 >> >>> I can't rename the field, neither a can use union. >> >> Remind me again what is wrong with

[PATCH v3 16/18] Input: synaptics-rmi4 - smbus: call psmouse_deactivate before binding/resume

2016-10-13 Thread Benjamin Tissoires
The SMBus Synaptics devices enumerated as PS/2 devices have the problem of being deaf to I2C if the touchpad has been fully initialized over PS/2 (psmouse_activate being called). A simple PS/2 deactivate command is enough to make it back alive. To make sure the pass-through device does not

[PATCH v3 13/18] Input: synaptics-rmi4 - f30/f03: Forward mechanical buttons on buttonpads to PS/2 guest

2016-10-13 Thread Benjamin Tissoires
On the latest series of ThinkPads, the button events for the TrackPoint are reported through the touchpad itself as opposed to the TrackPoint device. In order to report these buttons properly, we need to forward them to the TrackPoint device and send the button presses/releases through there

Re: [PATCH v6 15/17] dax: add struct iomap based DAX PMD support

2016-10-13 Thread Jan Kara
On Wed 12-10-16 16:50:20, Ross Zwisler wrote: > DAX PMDs have been disabled since Jan Kara introduced DAX radix tree based > locking. This patch allows DAX PMDs to participate in the DAX radix tree > based locking scheme so that they can be re-enabled using the new struct > iomap based fault

[PATCH v3 10/18] Input: synaptics-rmi4 - add support for F03

2016-10-13 Thread Benjamin Tissoires
From: Lyude Paul This adds basic functionality for PS/2 passthrough on Synaptics Touchpads using RMI4 through smbus. Reviewed-by: Andrew Duggan Signed-off-by: Lyude Paul Signed-off-by: Benjamin Tissoires

[PATCH v3 07/18] Input: synaptics-rmi4 - add SMBus support

2016-10-13 Thread Benjamin Tissoires
Code obtained from https://raw.githubusercontent.com/mightybigcar/synaptics-rmi4/jf/drivers/input/rmi4/rmi_smbus.c and updated to match upstream. And fixed to make it work. Signed-off-by: Benjamin Tissoires Signed-off-by: Andrew Duggan ---

[PATCH v3 15/18] Input: synaptics-rmi4 - add rmi_platform

2016-10-13 Thread Benjamin Tissoires
This driver is a glue between PS/2 devices that enumerate the RMI4 device and the RMI4 SMBus driver. We mostly use an intermediate platform device to not add a dependency between psmouse and I2C. It also handles the subtleties of going around the serio mutex lock by deferring the i2c

[PATCH v3 06/18] Input: synaptics-rmi4 - Set the ABS_MT_TOOL_TYPE bit to report tool type

2016-10-13 Thread Benjamin Tissoires
From: Andrew Duggan The rmi4 2D sensor functions report the tool type via input_mt_report_slot_state(), but the abs parameter bit has not been set so the tool type is not reported to userspace. This patch set the ABS_MT_TOOL_TYPE bit. Signed-off-by: Andrew Duggan

[PATCH v3 08/18] Input: serio - store the pt_buttons in the struct serio directly

2016-10-13 Thread Benjamin Tissoires
With RMI4 over SMBus, the pass-through device can be instantiated in a SMBus driver. However, compared to the psmouse-synaptics driver, this pass-through PS/2 driver has no clue whether the current serio_interrupt() is the beginning of the frame or not. Instead of adding a protocol analysis in

[PATCH v3 12/18] Input: synaptics-rmi4 - Add rmi_find_function()

2016-10-13 Thread Benjamin Tissoires
If a function needs to communicate with an other, it's better to have a way to retrieve this other. Reviewed-by: Andrew Duggan Signed-off-by: Benjamin Tissoires --- no changes in v3 no changes in v2 --- drivers/input/rmi4/rmi_driver.c |

  1   2   3   4   5   6   7   8   >