Re: [PATCH v6 2/3] KVM: LAPIC: Keep timer running when switching between one-shot and periodic mode

2017-10-06 Thread Radim Krčmář
2017-10-06 15:17+0200, Radim Krčmář: > 2017-10-05 18:54-0700, Wanpeng Li: > > From: Wanpeng Li > > > > If we take TSC-deadline mode timer out of the picture, the Intel SDM > > does not say that the timer is disable when the timer mode is change, > > either from one-shot to periodic or vice versa.

[PATCH v2] mwifiex: Use put_unaligned_le32

2017-10-06 Thread Himanshu Jha
Use put_unaligned_le32 rather than using byte ordering function and memcpy which makes code clear. Also, add the header file where it is declared. Done using Coccinelle and semantic patch used is : @ rule1 @ identifier tmp; expression ptr,x; type T; @@ - tmp = cpu_to_le32(x); <+... when != tm

[PATCH v2] usb: wusbcore: Use put_unaligned_le32

2017-10-06 Thread Himanshu Jha
Use put_unaligned_le32 rather than using byte ordering function and memcpy which makes code clear. Also, add the header file where it is declared. Done using Coccinelle and semantic patch used is : @ rule1 @ identifier tmp; expression ptr,x; type T; @@ - tmp = cpu_to_le32(x); <+... when != tm

Re: [PATCH 0/4] RCU: introduce noref debug

2017-10-06 Thread Paolo Abeni
Hi, On Fri, 2017-10-06 at 06:34 -0700, Paul E. McKenney wrote: > On Fri, Oct 06, 2017 at 02:57:45PM +0200, Paolo Abeni wrote: > > The networking subsystem is currently using some kind of long-lived > > RCU-protected, references to avoid the overhead of full book-keeping. > > > > Such references -

[PATCH] mm/page-writeback.c: fix bug caused by disable periodic writeback

2017-10-06 Thread Yafang Shao
After disable periodic writeback by writing 0 to dirty_writeback_centisecs, the handler wb_workfn() will not be entered again until the dirty background limit reaches or sync syscall is executed or no enough free memory available or vmscan is triggered. So the periodic writeback can't be enabled by

[PATCH] kernel/module: Delete an error message for a failed memory allocation in add_module_usage()

2017-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 6 Oct 2017 16:27:26 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- kernel/module.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-

Re: [PATCH v2] livepatch: unpatch all klp_objects if klp_module_coming fails

2017-10-06 Thread Josh Poimboeuf
On Mon, Oct 02, 2017 at 11:56:48AM -0400, Joe Lawrence wrote: > When an incoming module is considered for livepatching by > klp_module_coming(), it iterates over multiple patches and multiple > kernel objects in this order: > > list_for_each_entry(patch, &klp_patches, list) { >

Re: [PATCH 4/4] tcp: avoid noref dst leak on input path

2017-10-06 Thread Paolo Abeni
Hi, On Fri, 2017-10-06 at 07:37 -0700, Eric Dumazet wrote: > On Fri, 2017-10-06 at 14:57 +0200, Paolo Abeni wrote: > > Enabling CONFIG_RCU_NOREF_DEBUG gives the following splat when > > processing tcp packets: > > > >to-be-untracked noref entity 942cb71ea300 not found in cache > >

[PATCH v4] irqchip/gicv3: Add support for Range Selector (RS) feature

2017-10-06 Thread Shanker Donthineni
A new feature Range Selector (RS) has been added to GIC specification in order to support more than 16 CPUs at affinity level 0. New fields are introduced in SGI system registers (ICC_SGI0R_EL1, ICC_SGI1R_EL1 and ICC_ASGI1R_EL1) to relax an artificial limit of 16 at level 0. - A new RSS field in I

Re: [PATCH v4 01/27] linkage: new macros for assembler symbols

2017-10-06 Thread Josh Poimboeuf
On Mon, Oct 02, 2017 at 11:12:20AM +0200, Jiri Slaby wrote: >SYM_CODE_INNER_LABEL -- only for labels in the middle of code >SYM_CODE_INNER_LABEL_NOALIGN -- only for labels in the middle of code Why are the inner labels aligned by default? Seems like unaligned would be the most common case

Re: [PATCH v10 05/10] mm: zero reserved and unavailable struct pages

2017-10-06 Thread Pasha Tatashin
Hi Michal, As I've said in other reply this should go in only if the scenario you describe is real. I am somehow suspicious to be honest. I simply do not see how those weird struct pages would be in a valid pfn range of any zone. There are examples of both when unavailable memory is not part

Re: [PATCH v2 05/10] KVM: arm/arm64: vgic-its: Check GITS_CBASER validity before processing commands

2017-10-06 Thread Auger Eric
Hi Andre, On 06/10/2017 16:38, Andre Przywara wrote: > Hi, > > On 27/09/17 14:28, Eric Auger wrote: >> At the moment vgic_its_process_commands() does not >> check the CBASER is valid before processing any command. >> Let's fix that. > > Good catch, but actually it goes a bit further: > > "When

Re: [PATCH v2 02/10] KVM: arm/arm64: vgic-its: Always allow clearing GITS_CREADR/CWRITER

2017-10-06 Thread Auger Eric
Hi, On 06/10/2017 16:37, Andre Przywara wrote: > Hi, > > On 27/09/17 14:28, Eric Auger wrote: >> If the GITS_CBASER Size field is 0, which can correspond to a >> reset value, the userspace fails to set the GITS_CREADR/CWRITER >> offsets to 0. This failure is not justified. >> >> Let's allow this

Re: [PATCH v2 06/10] KVM: arm/arm64: vgic-its: Always attempt to save/restore device and collection tables

2017-10-06 Thread Auger Eric
Hi Andre, On 06/10/2017 16:38, Andre Przywara wrote: > Hi, > > On 27/09/17 14:28, Eric Auger wrote: >> In case the device table save fails, we currently do not >> attempt to save the collection table. However it may >> happen that the device table fails because the structures >> in memory are inc

RE: [PATCH v3] irqchip/gicv3: Add support for Range Selector (RS) feature

2017-10-06 Thread Shanker Donthineni
I posted v4 patch https://patchwork.kernel.org/patch/9989667/ with parentheses around a macro parameter. -Original Message- From: Timur Tabi [mailto:ti...@codeaurora.org] Sent: Friday, October 6, 2017 9:26 AM To: Shanker Donthineni Cc: Marc Zyngier ; linux-kernel ; linux-arm-kernel ;

[GIT PULL] lkdtm updates for -next

2017-10-06 Thread Kees Cook
Hi, Please pull these couple lkdtm changes for -next. Thanks! -Kees The following changes since commit e19b205be43d11bff638cad4487008c48d21c103: Linux 4.14-rc2 (2017-09-24 16:38:56 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git

Re: [PATCH 11/13] x86/paravirt: Add paravirt alternatives infrastructure

2017-10-06 Thread Boris Ostrovsky
On 10/06/2017 10:32 AM, Josh Poimboeuf wrote: > On Thu, Oct 05, 2017 at 04:35:03PM -0400, Boris Ostrovsky wrote: >>> #ifdef CONFIG_PARAVIRT >>> +/* >>> + * Paravirt alternatives are applied much earlier than normal alternatives. >>> + * They are only applied when running on a hypervisor. They rep

Re: [PATCH 4/4] tcp: avoid noref dst leak on input path

2017-10-06 Thread Eric Dumazet
On Fri, Oct 6, 2017 at 8:21 AM, Paolo Abeni wrote: > Hi, > > On Fri, 2017-10-06 at 07:37 -0700, Eric Dumazet wrote: >> On Fri, 2017-10-06 at 14:57 +0200, Paolo Abeni wrote: >> > Enabling CONFIG_RCU_NOREF_DEBUG gives the following splat when >> > processing tcp packets: >> > >> >to-be-u

Re: [PATCH v2 01/10] KVM: arm/arm64: vgic-its: fix return value for restore

2017-10-06 Thread Auger Eric
Hi Andre, On 06/10/2017 16:37, Andre Przywara wrote: > Hi, > > On 27/09/17 14:28, Eric Auger wrote: >> From: wanghaibin >> >> This patch fix the migrate restore tables failure. >> >> The same scene, at the destination, the restore tables >> interface traversal guest memory, and check the dte/ite

[PATCH net-next,0/3] hv_netvsc: support changing TCP hash level

2017-10-06 Thread Haiyang Zhang
From: Haiyang Zhang The patch set simplifies the existing hash level switching code for UDP. It also adds the support for changing TCP hash level. So users can switch between L3 an L4 hash levels for TCP and UDP. Haiyang Zhang (3): hv_netvsc: Change the hash level variable to bit flags hv_ne

[PATCH net-next,2/3] hv_netvsc: Add ethtool handler to set and get TCP hash levels

2017-10-06 Thread Haiyang Zhang
From: Haiyang Zhang The patch supports the options to switch TCP hash level between L3 and L4 by ethtool command. TCP over IPv4 and v6 can be set differently. The default hash level is L4. We currently only allow switching TX hash level from within the guests. For example, for TCP over IPv4 on e

[PATCH net-next,3/3] hv_netvsc: Update netvsc Document for TCP hash level setting

2017-10-06 Thread Haiyang Zhang
From: Haiyang Zhang Update Documentation/networking/netvsc.txt for TCP hash level setting and related info. Signed-off-by: Haiyang Zhang --- Documentation/networking/netvsc.txt | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/networking/netvsc.txt b/Do

Re: [PATCH 1/2] arm64: Ensure the instruction emulation is ready for userspace

2017-10-06 Thread Catalin Marinas
On Fri, Oct 06, 2017 at 02:16:52PM +0100, Suzuki K. Poulose wrote: > We trap and emulate some instructions (e.g, mrs, deprecated instructions) > for the userspace. However the handlers for these are registered as > late_initcalls and the userspace could be up and running from the initramfs > by tha

[GIT PULL] Btrfs fixes for 4.14-rc4

2017-10-06 Thread David Sterba
Hi, we have two more fixes for bugs introduced in 4.13. The sector_t problem with 32bit architecture and !LBDAF config seems serious but the number of affected deployments is hopefully low. The clashing status bits could lead to a confusing in-memory state of the whole-filesystem operations if us

[PATCH net-next,1/3] hv_netvsc: Change the hash level variable to bit flags

2017-10-06 Thread Haiyang Zhang
From: Haiyang Zhang This simplifies the logic and make it easier to add more options. Signed-off-by: Haiyang Zhang --- drivers/net/hyperv/hyperv_net.h | 11 +-- drivers/net/hyperv/netvsc_drv.c | 73 - 2 files changed, 59 insertions(+), 25 deletions(-

Re: [RFC PATCH -tip 0/5] kprobes: Abolish jprobe APIs

2017-10-06 Thread Steven Rostedt
On Fri, 6 Oct 2017 13:49:59 +0900 Masami Hiramatsu wrote: > Steve, could you write a documentation how to use ftrace callback? > I think I should update the Documentation/kprobes.txt so that jprobe > user can easily migrate on that. I decided to do this now. Here's a first draft. What do you thi

Re: [PATCH v2 02/10] dt-bindings: Add documentation for Broadcom Hurricane 2 SoCs

2017-10-06 Thread Rob Herring
On Thu, Sep 28, 2017 at 04:14:54PM -0700, Florian Fainelli wrote: > Add binding documentation for the Broadcom Hurricane 2 SoCs used in > switching control planes. > > Acked-by: Jon Mason > Signed-off-by: Florian Fainelli > --- > Documentation/devicetree/bindings/arm/bcm/brcm,hr2.txt | 14 +

Re: [PATCH v2 04/10] dt-bindings: Document Broadcom Hurricane 2 clocks

2017-10-06 Thread Rob Herring
On Thu, Sep 28, 2017 at 04:14:56PM -0700, Florian Fainelli wrote: > Add a Device Tree binding document for the Broadcom Hurricane 2 SoC > which is an iProc based system. > > Acked-by: Jon Mason > Signed-off-by: Florian Fainelli > --- > .../devicetree/bindings/clock/brcm,iproc-clocks.txt

Re: [PATCH v2 08/10] dt-bindings: Add Ubiquiti Networks vendor prefix

2017-10-06 Thread Rob Herring
On Thu, Sep 28, 2017 at 04:15:00PM -0700, Florian Fainelli wrote: > Use the stock ticker: UBNT as the vendor prefix for Ubiquiti Networks. > > Acked-by: Jon Mason > Signed-off-by: Florian Fainelli > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insertion

[PATCH 00/14] VFS: Introduce filesystem context

2017-10-06 Thread David Howells
Here are a set of patches to create a filesystem context prior to setting up a new mount, populating it with the parsed options/binary data, creating the superblock and then effecting the mount. This is also used for remount since much of the parsing stuff is common in many filesystems. This all

[PATCH 01/14] VFS: Introduce the structs and doc for a filesystem context [ver #6]

2017-10-06 Thread David Howells
Introduce a filesystem context concept to be used during superblock creation for mount and superblock reconfiguration for remount. This is allocated at the beginning of the mount procedure and into it is placed: (1) Filesystem type. (2) Namespaces. (3) Device name. (4) Superblock flags (MS

[PATCH 00/14] VFS: Introduce filesystem context [ver #6]

2017-10-06 Thread David Howells
Here are a set of patches to create a filesystem context prior to setting up a new mount, populating it with the parsed options/binary data, creating the superblock and then effecting the mount. This is also used for remount since much of the parsing stuff is common in many filesystems. This all

[PATCH 02/14] VFS: Add LSM hooks for filesystem context [ver #6]

2017-10-06 Thread David Howells
Add LSM hooks for use by the filesystem context code. This includes: (1) Hooks to handle allocation, duplication and freeing of the security record attached to a filesystem context. (2) A hook to snoop a mount options in key[=val] form. If the LSM decides it wants to handle it, it c

[PATCH 05/14] VFS: Implement fsopen() to prepare for a mount [ver #6]

2017-10-06 Thread David Howells
Provide an fsopen() system call that starts the process of preparing to mount, using an fd as a context handle. fsopen() is given the name of the filesystem that will be used: int mfd = fsopen(const char *fsname, int open_flags, void *reserved3, void *reserved4,

[PATCH 09/14] proc: Add fs_context support to procfs [ver #6]

2017-10-06 Thread David Howells
Add fs_context support to procfs. Signed-off-by: David Howells --- fs/proc/inode.c|2 - fs/proc/internal.h |2 - fs/proc/root.c | 176 ++-- 3 files changed, 118 insertions(+), 62 deletions(-) diff --git a/fs/proc/inode.c b/fs/pro

[PATCH 08/14] procfs: Move proc_fill_super() to fs/proc/root.c [ver #6]

2017-10-06 Thread David Howells
Move proc_fill_super() to fs/proc/root.c as that's where the other superblock stuff is. Signed-off-by: David Howells --- fs/proc/inode.c| 48 +--- fs/proc/internal.h |4 +--- fs/proc/root.c | 48

[PATCH 06/14] VFS: Implement fsmount() to effect a pre-configured mount [ver #6]

2017-10-06 Thread David Howells
Provide a system call by which a filesystem opened with fsopen() and configured by a series of writes can be mounted: int ret = fsmount(int fsfd, int dfd, const char *path, unsigned int at_flags, unsigned int flags); where fsfd is the fd returned by fsopen(), dfd

[PATCH 03/14] VFS: Implement a filesystem superblock creation/configuration context [ver #6]

2017-10-06 Thread David Howells
Implement a filesystem context concept to be used during superblock creation for mount and superblock reconfiguration for remount. The mounting procedure then becomes: (1) Allocate new fs_context context. (2) Configure the context. (3) Create superblock. (4) Mount the superblock any number

[PATCH 04/14] VFS: Remove unused code after filesystem context changes [ver #6]

2017-10-06 Thread David Howells
Remove code that is now unused after the filesystem context changes. Signed-off-by: David Howells --- fs/internal.h |2 -- fs/super.c | 53 include/linux/lsm_hooks.h |2 -- include/linux/security.h |6 ---

[PATCH 07/14] VFS: Add a sample program for fsopen/fsmount [ver #6]

2017-10-06 Thread David Howells
Add a sample program for driving fsopen/fsmount. Signed-off-by: David Howells --- samples/fsmount/test-fsmount.c | 94 1 file changed, 94 insertions(+) create mode 100644 samples/fsmount/test-fsmount.c diff --git a/samples/fsmount/test-fsmount.c b/sa

[PATCH 11/14] cpuset: Use fs_context [ver #6]

2017-10-06 Thread David Howells
Make the cpuset filesystem use the filesystem context. This is potentially tricky as the cpuset fs is almost an alias for the cgroup filesystem, but with some special parameters. This can, however, be handled by setting up an appropriate cgroup filesystem and returning the root directory of that

[PATCH 10/14] ipc: Convert mqueue fs to fs_context [ver #6]

2017-10-06 Thread David Howells
Convert the mqueue filesystem to use the filesystem context stuff. Notes: (1) The relevant ipc namespace is selected in when the context is initialised (and it defaults to the current task's ipc namespace). The caller can override this before calling vfs_get_tree(). (2) Rather than s

[PATCH 12/14] kernfs, sysfs, cgroup, intel_rdt: Support fs_context [ver #6]

2017-10-06 Thread David Howells
Make kernfs support superblock creation/mount/remount with fs_context. This requires that sysfs, cgroup and intel_rdt, which are built on kernfs, be made to support fs_context also. Notes: (1) A kernfs_fs_context struct is created to wrap fs_context and the kernfs mount parameters are move

[PATCH 14/14] VFS: Remove kern_mount_data() [ver #6]

2017-10-06 Thread David Howells
The kern_mount_data() isn't used any more so remove it. Signed-off-by: David Howells --- fs/namespace.c |6 -- include/linux/fs.h |1 - 2 files changed, 7 deletions(-) diff --git a/fs/namespace.c b/fs/namespace.c index 8676658b6b2c..091a63a63fa5 100644 --- a/fs/namespace.c +++

[PATCH 13/14] hugetlbfs: Convert to fs_context [ver #6]

2017-10-06 Thread David Howells
Convert the hugetlbfs to use the fs_context during mount. Signed-off-by: David Howells --- fs/hugetlbfs/inode.c | 327 -- 1 file changed, 184 insertions(+), 143 deletions(-) diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 59073e9f

[PATCH] crypto: atmel-aes - properly set IV after {en,de}crypt

2017-10-06 Thread Romain Izard
Certain cipher modes like CTS expect the IV (req->info) of ablkcipher_request (or equivalently req->iv of skcipher_request) to contain the last ciphertext block when the {en,de}crypt operation is done. Fix this issue for the Atmel AES hardware engine. The tcrypt test case for cts(cbc(aes)) is now

[Patch v6 4/7] slimbus: Add support for 'clock-pause' feature

2017-10-06 Thread srinivas . kandagatla
From: Sagar Dharia Per slimbus specification, a reconfiguration sequence known as 'clock pause' needs to be broadcast over the bus while entering low- power mode. Clock-pause is initiated by the controller driver. To exit clock-pause, controller typically wakes up the framer device. Since wakeup

[Patch v6 0/7] Introduce framework for SLIMbus device drivers

2017-10-06 Thread srinivas . kandagatla
From: Srinivas Kandagatla It's been very long time since there was any activity on the slimbus patches, Am currently working on getting Qualcomm DSP based audio working on top of mainline. Slimbus is one of the major component for getting any analog audio on QCOM SoC's. So am taking intiative to

[Patch v6 3/7] slimbus: qcom: Add Qualcomm Slimbus controller driver

2017-10-06 Thread srinivas . kandagatla
From: Sagar Dharia This controller driver programs manager, interface, and framer devices for Qualcomm's slimbus HW block. Manager component currently implements logical address setting, and messaging interface. Interface device reports bus synchronization information, and framer device clocks th

[Patch v6 5/7] slimbus: qcom: Add runtime-pm support using clock-pause feature

2017-10-06 Thread srinivas . kandagatla
From: Sagar Dharia Slimbus HW mandates that clock-pause sequence has to be executed before disabling relevant interface and core clocks. Runtime-PM's autosuspend feature is used here to enter/exit low power mode for Qualcomm's Slimbus controller. Autosuspend feature enables driver to avoid changi

[Patch v6 6/7] regmap: add SLIMBUS support

2017-10-06 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds support to read/write slimbus value elements. Currently it only supports byte read/write. Adding this support in regmap would give codec drivers more flexibility when there are more than 2 control interfaces like slimbus, i2c. Without this patch each cod

[Patch v6 7/7] MAINTAINERS: Add SLIMbus maintainer

2017-10-06 Thread srinivas . kandagatla
From: Srinivas Kandagatla Add myself as maintainer for slimbus. Signed-off-by: Srinivas Kandagatla --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2281af4..014f74b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12320,6 +12320,14 @@ T:

[Patch v6 1/7] slimbus: Device management on SLIMbus

2017-10-06 Thread srinivas . kandagatla
From: Sagar Dharia SLIMbus (Serial Low Power Interchip Media Bus) is a specification developed by MIPI (Mobile Industry Processor Interface) alliance. SLIMbus is a 2-wire implementation, which is used to communicate with peripheral components like audio-codec. SLIMbus uses Time-Division-Multiplex

[Patch v6 2/7] slimbus: Add messaging APIs to slimbus framework

2017-10-06 Thread srinivas . kandagatla
From: Sagar Dharia Slimbus devices use value-element, and information elements to control device parameters (e.g. value element is used to represent gain for codec, information element is used to represent interrupt status for codec when codec interrupt fires). Messaging APIs are used to set/get

Re: [PATCH v3 03/22] dt-bindings: arm: scmi: add ARM MHU specific mailbox client bindings

2017-10-06 Thread Rob Herring
On Fri, Oct 6, 2017 at 6:01 AM, Jassi Brar wrote: > On Fri, Oct 6, 2017 at 4:50 AM, Rob Herring wrote: >> On Thu, Sep 28, 2017 at 02:11:27PM +0100, Sudeep Holla wrote: >>> This patch adds ARM MHU specific mailbox client bindings to support >>> SCMI. Since SCMI specification just requires doorbell

[PATCH] x86/hyperv: clear vcpu banks between calls to avoid flushing unneeded vCPUs

2017-10-06 Thread Vitaly Kuznetsov
hv_flush_pcpu_ex structures are not cleared between calls for performance reasons (they're variable size up to PAGE_SIZE each) but we must clear hv_vp_set.bank_contents part of it to avoid flushing unneeded vCPUs. The rest of the structure is formed correctly. To do the clearing in an efficient wa

[PATCH 01/14] VFS: Introduce the structs and doc for a filesystem context

2017-10-06 Thread David Howells
Introduce a filesystem context concept to be used during superblock creation for mount and superblock reconfiguration for remount. This is allocated at the beginning of the mount procedure and into it is placed: (1) Filesystem type. (2) Namespaces. (3) Device name. (4) Superblock flags (MS

[PATCH] arm64: dts: qcom: msm8916: Shrink mdp address length for msm8916

2017-10-06 Thread Craig Tatlor
This shrinks the address size down to 89000 from its previous 9 which was mistakenly pulled from downstream. Signed-off-by: Craig Tatlor --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch

Re: [PATCH] block: remove unnecessary NULL checks in bioset_integrity_free()

2017-10-06 Thread Kyle Fortin
Hi Tim, On Oct 5, 2017, at 2:09 PM, Tim Hansen wrote: > > mempool_destroy() already checks for a NULL value being passed in, this > eliminates duplicate checks. > > This was caught by running make coccicheck M=block/ on linus' tree on commit > 77ede3a014a32746002f7889211f0cecf4803163 (current

Re: [PATCH v6 3/3] PCI: iproc: Implement PCI hotplug support

2017-10-06 Thread Bjorn Helgaas
On Fri, Oct 06, 2017 at 08:03:52PM +0530, Oza Pawandeep wrote: > On Fri, Oct 6, 2017 at 5:07 PM, Bjorn Helgaas wrote: > > On Thu, Aug 31, 2017 at 10:20:29AM +0530, Oza Pawandeep wrote: > >> This patch implements PCI hotplug support for iproc family chipsets. > >> > >> iproc based SOC (e.g. Stingra

Re: [PATCH] Input: Convert timers to use timer_setup()

2017-10-06 Thread Pali Rohár
On Thursday 05 October 2017 02:53:29 Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list > pointer to all timer callbacks, switch to using the new > timer_setup() and from_timer() to pass the timer pointer explicitly. > Adds a pointer back to input device in byd driv

RE: [PATCH v5 0/5] cramfs refresh for embedded usage

2017-10-06 Thread Chris Brandt
On Friday, October 06, 2017, Christoph Hellwig wrote: > This is still missing a proper API for accessing the file system, > as said before specifying a physical address in the mount command > line is a an absolute non-no. > > Either work with the mtd folks to get the mtd core down to an absolute >

Re: [PATCH] iommu/vt-d: Fix scatterlist offset handling

2017-10-06 Thread Raj, Ashok
On Fri, Oct 06, 2017 at 04:43:09PM +0200, Joerg Roedel wrote: > On Tue, Oct 03, 2017 at 07:05:17PM +0100, Robin Murphy wrote: > > Now, there are indeed plenty of drivers and subsystems which do work on > > lists of explicitly single pages - anything doing some variant of > > "addr = kmap_atomic(sg_

Re: [PATCH 1/2] arm: dts: Add support for National Instruments Project Sulfur SDRs

2017-10-06 Thread Moritz Fischer
On Fri, Oct 06, 2017 at 01:49:44PM +0200, Michal Simek wrote: > On 26.9.2017 20:15, Philip Balister wrote: > > On 09/26/2017 02:06 PM, Michal Simek wrote: > >> On 26.9.2017 19:58, Philip Balister wrote: > >>> On 09/26/2017 01:50 PM, Moritz Fischer wrote: > Michal, > > On Tue, Sep 26,

Re: [PATCH v2 09/16] driver core: add iommu device fault reporting data

2017-10-06 Thread Jacob Pan
On Fri, 6 Oct 2017 10:39:31 +0200 Joerg Roedel wrote: > On Fri, Oct 06, 2017 at 12:11:45AM -0700, Christoph Hellwig wrote: > > This is the 3rd iommu field, in addition to 8 dma-specific fields > > that we carry around for each struct device. > > Agreed, consolidating the iommu-fields in 'struc

[PATCH] Update MIPS email addresses

2017-10-06 Thread Paul Burton
From: Paul Burton MIPS will soon not be a part of Imagination Technologies, and as such many @imgtec.com email addresses will no longer be valid. This patch updates the addresses for all those who: - Have 10 or more patches in mainline authored using an @imgtec.com email address, or any patc

[PATCH] ALSA: seq: resize buffer for overflow

2017-10-06 Thread Mark Salyzyn
Can not replicate, issue discovered in fuzzing. Stack trace below. No functional or performance testing done regarding the fix. Trap at (reformatted): snd_seq_oss_readq_puts(struct seq_oss_readq *q, int dev, unsigned char *data, int len) { union evrec rec; int resul

RE: [PATCH v5 0/5] cramfs refresh for embedded usage

2017-10-06 Thread Nicolas Pitre
On Fri, 6 Oct 2017, Chris Brandt wrote: > On Friday, October 06, 2017, Christoph Hellwig wrote: > > This is still missing a proper API for accessing the file system, > > as said before specifying a physical address in the mount command > > line is a an absolute non-no. > > > > Either work with th

Re: [PATCH 11/13] x86/paravirt: Add paravirt alternatives infrastructure

2017-10-06 Thread Josh Poimboeuf
On Fri, Oct 06, 2017 at 11:29:52AM -0400, Boris Ostrovsky wrote: > >>> + > >>> void __init_or_module apply_paravirt(struct paravirt_patch_site *start, > >>>struct paravirt_patch_site *end) > >>> { > >>> diff --git a/arch/x86/kernel/cpu/hypervisor.c > >>> b/arch/x8

Re: [PATCH v1 1/4] perf annotate: create a new hists to manage multiple events samples

2017-10-06 Thread Jin, Yao
On 10/5/2017 9:21 PM, Arnaldo Carvalho de Melo wrote: > Em Wed, Aug 16, 2017 at 06:18:33PM +0800, Jin Yao escreveu: >> An issue is found during using perf annotate. >> >> perf record -e cycles,branches ... >> perf annotate main --stdio >> >> The result only shows cycles. It should show both cycle

Re: [PATCH 0/4] RCU: introduce noref debug

2017-10-06 Thread Paul E. McKenney
On Fri, Oct 06, 2017 at 05:10:09PM +0200, Paolo Abeni wrote: > Hi, > > On Fri, 2017-10-06 at 06:34 -0700, Paul E. McKenney wrote: > > On Fri, Oct 06, 2017 at 02:57:45PM +0200, Paolo Abeni wrote: > > > The networking subsystem is currently using some kind of long-lived > > > RCU-protected, referenc

[PATCH] staging: comedi: dt282x: release irq on dt282x detach

2017-10-06 Thread Arvind Yadav
free_irq() should be called on driver 'dt282x' detach. Signed-off-by: Arvind Yadav --- drivers/staging/comedi/drivers/dt282x.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/staging/comedi/drivers/dt282x.c b/drivers/staging/comedi/drivers/dt282x.c index d5295bb..a132f60 100644

Re: [PATCH 3/3] mm: oom: show unreclaimable slab info when unreclaimable slabs > user memory

2017-10-06 Thread Yang Shi
On 10/6/17 2:37 AM, Michal Hocko wrote: On Thu 05-10-17 05:29:10, Yang Shi wrote: Kernel may panic when oom happens without killable process sometimes it is caused by huge unreclaimable slabs used by kernel. Although kdump could help debug such problem, however, kdump is not available on all

Re: [PATCH v8] KVM: LAPIC: Apply change to TDCR right away to the timer

2017-10-06 Thread Radim Krčmář
2017-10-06 07:38-0700, Wanpeng Li: > From: Wanpeng Li > > The description in the Intel SDM of how the divide configuration > register is used: "The APIC timer frequency will be the processor's bus > clock or core crystal clock frequency divided by the value specified in > the divide configuration

[PATCH v4 0/2] PCI: add support for firmware initialized DesignWare RCs

2017-10-06 Thread Ard Biesheuvel
UEFI based systems incorporating a Synopsys DesignWare PCIe controller in RC mode will typically configure it before entering the OS. If this configuration is fully static and ECAM compliant, there is no need to expose particulars of the device to the OS, and we can simply describe it as "pci-host-

[PATCH v4 1/2] PCI: pci-host-generic: add support for Synopsys DesignWare RC in ECAM mode

2017-10-06 Thread Ard Biesheuvel
Some implementations of the Synopsys DesignWare PCIe controller implement a so-called ECAM shift mode, which allows a static memory window to be configured that covers the configuration space of the entire bus range. Usually, when the firmware performs all the low level configuration that is requi

[PATCH v4 2/2] dt-bindings: designware: add binding for Designware PCIe in ECAM mode

2017-10-06 Thread Ard Biesheuvel
Describe the binding for firmware-configured instances of the Synopsys DesignWare PCIe controller in RC mode, that are almost but not quite ECAM compliant. Acked-by: Rob Herring Signed-off-by: Ard Biesheuvel --- Documentation/devicetree/bindings/pci/designware-pcie-ecam.txt | 42 ++

Re: [PATCH v4 11/14] platform/x86: dell-smbios-wmi: Add new WMI dispatcher driver

2017-10-06 Thread Darren Hart
On Thu, Oct 05, 2017 at 07:47:38PM +, mario.limoncie...@dell.com wrote: > > -Original Message- > > From: Darren Hart [mailto:dvh...@infradead.org] > > Sent: Thursday, October 5, 2017 12:58 PM > > To: Limonciello, Mario > > Cc: andy.shevche...@gmail.com; linux-kernel@vger.kernel.org; pl

RE: [PATCH v4 11/14] platform/x86: dell-smbios-wmi: Add new WMI dispatcher driver

2017-10-06 Thread Mario.Limonciello
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Friday, October 6, 2017 11:45 AM > To: Limonciello, Mario > Cc: andy.shevche...@gmail.com; linux-kernel@vger.kernel.org; platform- > driver-...@vger.kernel.org; l...@kernel.org; quasi...@google.com; > pali.ro...

Re: [PATCH] platform/x86: peaq-wmi: Add DMI check before binding to the WMI interface

2017-10-06 Thread Darren Hart
On Thu, Oct 05, 2017 at 09:19:23PM +0300, Andy Shevchenko wrote: > On Thu, Oct 5, 2017 at 9:04 PM, Hans de Goede wrote: > > It seems that the WMI GUID used by the PEAQ 2-in-1 WMI hotkeys is not > > as unique as a GUID should be and is used on some other devices too. > > > > This is causing spuriou

Re: [PATCH] net/ipv6: Convert icmpv6_push_pending_frames to void

2017-10-06 Thread David Miller
From: Joe Perches Date: Thu, 5 Oct 2017 23:46:14 -0700 > commit cc71b7b07119 ("net/ipv6: remove unused err variable on > icmpv6_push_pending_frames") exposed icmpv6_push_pending_frames > return value not being used. > > Remove now unnecessary int err declarations and uses. > > Miscellanea: >

[PATCH v3 1/5] sparc64: Define SPARC default fls function

2017-10-06 Thread Vijay Kumar
fls will now require a boot time patching on T4 and above. Redefining it under arch/sparc/lib. Signed-off-by: Vijay Kumar --- arch/sparc/include/asm/bitops_64.h |3 +- arch/sparc/lib/Makefile|1 + arch/sparc/lib/fls.S | 67

[PATCH v3 4/5] sparc64: SPARC optimised __fls function

2017-10-06 Thread Vijay Kumar
Defined SPARC optimised __fls using lzcnt opcode. Signed-off-by: Vijay Kumar --- arch/sparc/lib/NG4fls.S | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/sparc/lib/NG4fls.S b/arch/sparc/lib/NG4fls.S index 5ed7da9..34ad371 100644 --- a/arch/sparc/lib/NG4fls.

[PATCH v3 3/5] sparc64: SPARC optimised fls function

2017-10-06 Thread Vijay Kumar
Defined SPARC optimised fls using lzcnt opcode. Signed-off-by: Vijay Kumar --- arch/sparc/lib/Makefile |1 + arch/sparc/lib/NG4fls.S | 20 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/sparc/lib/Makefile b/arch/sparc/lib/Makefile index 5380c59..2

[PATCH v3 2/5] sparc64: Define SPARC default __fls function

2017-10-06 Thread Vijay Kumar
__fls will now require a boot time patching on T4 and above. Redefining it under arch/sparc/lib. Signed-off-by: Vijay Kumar --- arch/sparc/include/asm/bitops_64.h |2 +- arch/sparc/lib/Makefile|1 + arch/sparc/lib/fls64.S | 61 +++

[PATCH v3 0/5] sparc64: Optimize fls and __fls

2017-10-06 Thread Vijay Kumar
SPARC provides lzcnt instruction (with VIS3) which can be used to optimize fls, __fls and fls64 functions. For the systems that supports lzcnt instruction, we now do boot time patching to use sparc optimized fls, __fls and fls64 functions. v2->v3: - Using ENTRY(), ENDPROC() for assembler functi

[PATCH v3 5/5] sparc64: Use sparc optimised fls and __fls for T4 and above

2017-10-06 Thread Vijay Kumar
For T4 and above, patch fls and __fls functions at the boot time to use lzcnt instruction. Signed-off-by: Vijay Kumar --- arch/sparc/kernel/head_64.S |2 ++ arch/sparc/lib/NG4patch.S |9 + 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/sparc/kernel/head_64

[PATCH] time: use heuristic to test persistent_clock precision

2017-10-06 Thread Gabriel M. Beddingfield
In commit cb33217b1b25 ("time: Avoid accumulating time drift in suspend/resume") logic was added to timekeeping_suspend() to compensate for read_persistent_clock() having only single-second precision. However, if the implementation is capable of returning fractional seconds then it is better to dis

Re: [PATCH] bnx2x: Use pci_ari_enabled() instead of local copy

2017-10-06 Thread David Miller
From: Bjorn Helgaas Date: Fri, 06 Oct 2017 06:00:30 -0500 > From: Bjorn Helgaas > > Use pci_ari_enabled() from the PCI core instead of the identical local copy > bnx2x_ari_enabled(). No functional change intended. > > Signed-off-by: Bjorn Helgaas Applied to net-next.

[PATCH v2] ALSA: seq: resize buffer for overflow

2017-10-06 Thread Mark Salyzyn
Can not replicate, issue discovered in fuzzing. Stack trace below. No functional or performance testing done regarding the fix. Trap at (reformatted): snd_seq_oss_readq_puts(struct seq_oss_readq *q, int dev, unsigned char *data, int len) { union evrec rec; int resul

Re: [PATCH] i2c: piix4: Fix SMBus port selection for AMD Family 17h chips

2017-10-06 Thread Guenter Roeck
On Thu, Oct 05, 2017 at 08:34:01PM +0200, Rudolf Marek wrote: > Hi Guys, > > Even in "AMD Family 15h Models 60h-6Fh Processors" [1] > are ports3 and ports4 marked as "Reserved". Maybe we should limit "KERN" to 2 > ports? > Maybe, if we are sure that this applies to all CPU models supported by t

[PATCH] intel_idle: replace conditionals with static_cpu_has(X86_FEATURE_ARAT)

2017-10-06 Thread Jason Baron
If the 'arat' cpu flag is set, then the conditionals in intel_idle() that guard calling tick_broadcast_enter()/exit() will never be true. Use static_cpu_has(X86_FEATURE_ARAT) to create a fast path to replace the conditional. Signed-off-by: Jason Baron Cc: Jacob Pan Cc: Len Brown Cc: Rafael J. W

Re: [PATCH] staging: comedi: dt282x: release irq on dt282x detach

2017-10-06 Thread arvindY
Sorry for noise, ignore this patch. On Friday 06 October 2017 10:06 PM, Arvind Yadav wrote: free_irq() should be called on driver 'dt282x' detach. Signed-off-by: Arvind Yadav --- drivers/staging/comedi/drivers/dt282x.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/staging

Re: [RFC PATCH 1/4] dt-bindings: add bindings for USB physical connector

2017-10-06 Thread Rob Herring
On Fri, Oct 6, 2017 at 6:10 AM, Andrzej Hajda wrote: > Hi Rob, > > Thanks for review. > > On 06.10.2017 01:12, Rob Herring wrote: >> On Thu, Sep 28, 2017 at 03:07:27PM +0200, Andrzej Hajda wrote: >>> These bindings allows to describe most known standard USB connectors >>> and it should be possible

[PATCH] linux/types.h: Restore the ability to disable sparse endianness checks

2017-10-06 Thread Bart Van Assche
The purpose of patch "linux/types.h: enable endian checks for all sparse builds" was to encourage driver authors to annotate endianness correctly in their drivers. However, since that patch went upstream no endianness annotations in drivers have been fixed. I think that this shows that the followed

[PATCH 3/3] KVM: x86: thoroughly disarm LAPIC timer around TSC deadline switch

2017-10-06 Thread Radim Krčmář
Our routines look at tscdeadline and period when deciding state of a timer. The timer is disarmed when switching between TSC deadline and other modes, so we should set everything to disarmed state. Signed-off-by: Radim Krčmář --- arch/x86/kvm/lapic.c | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH] KVM: x86: remove X86_LOCAL_APIC #ifdefs

2017-10-06 Thread Radim Krčmář
f478e1219ea1 ("KVM: add X86_LOCAL_APIC dependency") made only the defined path possible. Signed-off-by: Radim Krčmář --- arch/x86/kvm/svm.c | 5 + arch/x86/kvm/vmx.c | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 0e68f0b3

Re: [PATCH 3.18 00/35] 3.18.74-stable review

2017-10-06 Thread Shuah Khan
On 10/06/2017 03:24 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.18.74 release. > There are 35 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses s

[PATCH 0/3] KVM: x86: fix restart_apic_timer

2017-10-06 Thread Radim Krčmář
Various bugs that incorrectly injected a timer interrupt. Going to work on kvm-unit-tests for this too. Radim Krčmář (3): KVM: x86: handle 0 write to TSC_DEADLINE MSR KVM: x86: really disarm lapic timer when clearing TMICT KVM: x86: thoroughly disarm LAPIC timer around TSC deadline switch

Re: [PATCH v7 2/2] tracing: Add support for preempt and irq enable/disable events

2017-10-06 Thread Joel Fernandes
Hi Steve, On Fri, Oct 6, 2017 at 6:38 AM, Steven Rostedt wrote: > On Fri, 6 Oct 2017 00:28:21 -0700 > Joel Fernandes wrote: > > >> Oh ok. So I traced this down to the original patch that added >> time_hardirqs_off to lockdep. I *think* it was added just to keep the >> irqsoff tracer working whil

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