Re: [PATCH 16/26] IB/ocrdma: Adjust a null pointer check in ocrdma_alloc_resources()

2017-03-08 Thread Devesh Sharma
Acked-By: Devesh Sharma On Wed, Mar 8, 2017 at 6:45 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 7 Mar 2017 22:34:33 +0100 > > The script "checkpatch.pl" pointed information out like the following. > > Comparison to NULL could be written "!dev->stag_arr". > > Thus fix the

Re: [PATCH 0/7] 5-level paging: prepare generic code

2017-03-08 Thread Michal Hocko
Btw. my build test machinery has reported this: microblaze/allnoconfig In file included from ./arch/microblaze/include/asm/pgtable.h:550:0, from ./include/linux/mm.h:68, from ./arch/microblaze/include/asm/io.h:17, from ./include/linux/io.h:25,

Re: cfq-iosched: two questions about the hrtimer version of CFQ

2017-03-08 Thread Jan Kara
Hi, On Tue 07-03-17 08:11:44, Hou Tao wrote: > When testing the hrtimer version of CFQ, we found a performance degradation > problem which seems to be caused by commit 0b31c10 ("cfq-iosched: Charge at > least 1 jiffie instead of 1 ns"). > > The following is the test process: > > * filesystem

Re: [PATCH v2 04/21] x86/xen: split off enlighten_pvh.c

2017-03-08 Thread Juergen Gross
On 02/03/17 18:53, Vitaly Kuznetsov wrote: > Create enlighten_pvh.c by splitting off PVH related code from enlighten.c, > put it under CONFIG_XEN_PVH. > > Signed-off-by: Vitaly Kuznetsov Reviewed-by: Juergen Gross Juergen

Re: [PATCH 08/10] serdev: add serdev_device_get_cts

2017-03-08 Thread Rob Herring
On Tue, Mar 7, 2017 at 3:12 PM, Sebastian Reichel wrote: > Hi Rob, > > On Tue, Mar 07, 2017 at 10:03:37AM -0600, Rob Herring wrote: >> On Sat, Mar 4, 2017 at 5:58 AM, Sebastian Reichel wrote: >> > Add method to get current CTS line state. >> > >> > Signed-off-by: Sebastian Reichel >> > --- >> >

Re: [PATCH 0/7] 5-level paging: prepare generic code

2017-03-08 Thread Kirill A. Shutemov
On Wed, Mar 08, 2017 at 03:25:01PM +0100, Michal Hocko wrote: > Btw. my build test machinery has reported this: > microblaze/allnoconfig Thanks. Fixup is below. I guess it should be folded into 4/7. diff --git a/arch/microblaze/include/asm/page.h b/arch/microblaze/include/asm/page.h index

Re: [RFC PATCH v4 28/28] x86: Add support to make use of Secure Memory Encryption

2017-03-08 Thread Borislav Petkov
On Tue, Mar 07, 2017 at 10:05:00AM -0600, Tom Lendacky wrote: > > And then you need to correct the function signature in the > > !CONFIG_AMD_MEM_ENCRYPT case, at the end of this file, too: > > > > unsigned long __init sme_enable(struct boot_params *bp) { > > return 0; } > > Yup,

Re: [PATCH v2 06/21] x86/xen: split off enlighten_pv.c

2017-03-08 Thread Juergen Gross
On 02/03/17 18:53, Vitaly Kuznetsov wrote: > Basically, enlighten.c is renamed to enlighten_pv.c and some code moved > out to common enlighten.c. > > Signed-off-by: Vitaly Kuznetsov Reviewed-by: Juergen Gross Juergen

Re: [PATCH 24/26] IB/ocrdma: One jump label less in ocrdma_alloc_ucontext_pd()

2017-03-08 Thread Devesh Sharma
Acked-By: Devesh Sharma On Wed, Mar 8, 2017 at 7:00 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 8 Mar 2017 11:11:35 +0100 > > This issue was detected by using the Coccinelle software. > > 1. Return directly if a call of the function "_ocrdma_alloc_pd" failed. > > 2. Reduce

Re: [PATCH 15/26] IB/ocrdma: Delete an error message for a failed memory allocation in ocrdma_add()

2017-03-08 Thread Devesh Sharma
Acked-By: Devesh sharma On Wed, Mar 8, 2017 at 6:43 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 7 Mar 2017 22:23:17 +0100 > > Omit an extra message for a memory allocation failure in this function. > > Link: >

RE: [PATCH V2] x86, perf: Add Top Down events to Intel Goldmont

2017-03-08 Thread Liang, Kan
Ping. Any comments for this patch? Thanks, Kan > > From: Kan Liang > > Goldmont supports full Top Down level 1 metrics (FrontendBound, > Retiring, Backend Bound and Bad Speculation). > It has 3 wide pipeline. > > Signed-off-by: Kan Liang > --- > > Changes since V1: > - Change event list

Re: [PATCH 23/26] IB/ocrdma: Delete an unnecessary variable in ocrdma_dealloc_pd()

2017-03-08 Thread Devesh Sharma
Acked-By: Devesh Sharma On Wed, Mar 8, 2017 at 6:58 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 8 Mar 2017 10:58:34 +0100 > > 1. Return zero in one case directly. > > 2. Return the value from a call of the function "_ocrdma_dealloc_pd" >without using an extra

Re: [PATCH 1/2] x86/platform: Add a low priority low frequency NMI call chain

2017-03-08 Thread Mike Travis
On 3/8/2017 2:28 AM, Ingo Molnar wrote: > > * Mike Travis wrote: > >> >> >> On 3/6/2017 11:42 PM, Ingo Molnar wrote: >>> >>> * Mike Travis wrote: >>> Add a new NMI call chain that is called last after all other NMI handlers have been checked and did not "handle" the NMI. This

Re: [PATCH 21/29] drivers, s390: convert fc_fcp_pkt.ref_cnt from atomic_t to refcount_t

2017-03-08 Thread Johannes Thumshirn
On 03/08/2017 02:48 PM, Reshetova, Elena wrote: On 03/06/2017 03:21 PM, Elena Reshetova wrote: refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to

Re: [PATCH v2 1/2] net: sched: make default fifo qdiscs appear in the dump

2017-03-08 Thread Eric Dumazet
On Wed, 2017-03-08 at 13:03 +0100, Jiri Kosina wrote: > +++ b/net/sched/sch_qfq.c > @@ -494,6 +494,8 @@ static int qfq_change_class(struct Qdisc *sch, u32 > classid, u32 parentid, > goto destroy_class; > } > > + if (cl->qdisc != _qdisc) > +

Re: [PATCH 22/26] IB/ocrdma: Returning only value constants in ocrdma_resize_cq()

2017-03-08 Thread Devesh Sharma
Acked-By:Devesh Sharma On Wed, Mar 8, 2017 at 6:56 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 8 Mar 2017 10:48:24 +0100 > > Return constant integer values without storing them in the local > variable "status". > > Signed-off-by: Markus Elfring > --- >

[PATCH] fat: Fix using uninitialized fields of fat_inode/fsinfo_inode

2017-03-08 Thread OGAWA Hirofumi
Recently fallocate patch was merged and it uses MSDOS_I(inode)->mmu_private at fat_evict_inode(). However, fat_inode/fsinfo_inode that was introduced in past didn't initialize MSDOS_I(inode) properly. With those combinations, it became the cause of accessing random entry in FAT area.

Re: [PATCH v3 4/6] drm: bridge: dw-hdmi: Switch to V4L bus format and encodings

2017-03-08 Thread Neil Armstrong
On 03/07/2017 06:35 PM, Jose Abreu wrote: > Hi Neil, > > > On 07-03-2017 16:42, Neil Armstrong wrote: >> Some display pipelines can only provide non-RBG input pixels to the HDMI TX >> Controller, this patch takes the pixel format from the plat_data if provided. >> >> Signed-off-by: Neil

[PATCH v3 1/2] net: sched: make default fifo qdiscs appear in the dump

2017-03-08 Thread Jiri Kosina
From: Jiri Kosina The original reason [1] for having hidden qdiscs (potential scalability issues in qdisc_match_from_root() with single linked list in case of large amount of qdiscs) has been invalidated by 59cc1f61f0 ("net: sched: convert qdisc linked list to hashtable"). This allows us for

Re: [PATCH 6/7] mm: convert generic code to 5-level paging

2017-03-08 Thread Kirill A. Shutemov
On Wed, Mar 08, 2017 at 02:57:35PM +0100, Michal Hocko wrote: > On Mon 06-03-17 23:45:13, Kirill A. Shutemov wrote: > > Convert all non-architecture-specific code to 5-level paging. > > > > It's mostly mechanical adding handling one more page table level in > > places where we deal with pud_t. >

[PATCH v3 0/3] Bind RMI4 over SMBus from PS/2

2017-03-08 Thread Benjamin Tissoires
Hi Dmitry, This is mostly a resend of the PS/2-SMBus binding (last 3 patches of now 3 years of trial and errors). I integrated both warnings raised by Coccinelle, and squashed 4/3 into 3/3. I really would like your opinion on this solution. If we could have a full cycle in linux-next that would

Re: [lkp-robot] [locking/ww_mutex] 857811a371: INFO:task_blocked_for_more_than#seconds

2017-03-08 Thread Fengguang Wu
On Wed, Mar 08, 2017 at 12:13:12PM +, Chris Wilson wrote: On Wed, Mar 08, 2017 at 09:08:54AM +0800, kernel test robot wrote: FYI, we noticed the following commit: commit: 857811a37129f5d2ba162d7be3986eff44724014 ("locking/ww_mutex: Adjust the lock number for stress test")

Re: [RFC PATCH v2 02/32] x86: Secure Encrypted Virtualization (SEV) support

2017-03-08 Thread Borislav Petkov
On Thu, Mar 02, 2017 at 10:12:20AM -0500, Brijesh Singh wrote: > From: Tom Lendacky > > Provide support for Secure Encyrpted Virtualization (SEV). This initial > support defines a flag that is used by the kernel to determine if it is > running with SEV active. > > Signed-off-by: Tom Lendacky >

Re: [PATCH 5/5] staging/lustre: Use generic range rwlock

2017-03-08 Thread Davidlohr Bueso
On Tue, 07 Mar 2017, Oleg Drokin wrote: On Mar 7, 2017, at 12:03 AM, Davidlohr Bueso wrote: This replaces the in-house version, which is also derived from Jan's interval tree implementation. Cc: oleg.dro...@intel.com Cc: andreas.dil...@intel.com Cc: jsimm...@infradead.org Cc:

Re: [PATCH] x86, kasan: add KASAN checks to atomic operations

2017-03-08 Thread Dmitry Vyukov
On Wed, Mar 8, 2017 at 4:20 PM, Mark Rutland wrote: > Hi, > > On Wed, Mar 08, 2017 at 02:42:10PM +0100, Dmitry Vyukov wrote: >> I think if we scope compiler atomic builtins to KASAN/KTSAN/KMSAN (and >> consequently x86/arm64) initially, it becomes more realistic. For the >> tools we don't care

Re: [PATCH] x86, kasan: add KASAN checks to atomic operations

2017-03-08 Thread Mark Rutland
Hi, On Wed, Mar 08, 2017 at 02:42:10PM +0100, Dmitry Vyukov wrote: > I think if we scope compiler atomic builtins to KASAN/KTSAN/KMSAN (and > consequently x86/arm64) initially, it becomes more realistic. For the > tools we don't care about absolute efficiency and this gets rid of > Will's points

Re: [PATCH] f2fs: allocate a bio for discarding when actually issuing it

2017-03-08 Thread Christoph Hellwig
On Tue, Mar 07, 2017 at 06:33:33PM -0800, Jaegeuk Kim wrote: > Let's allocate a bio when issuing discard commands later. Does this solve the issue with your queue stalls? > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/f2fs.h| 4 +- > fs/f2fs/segment.c | 113 >

[PATCH v3 3/3] Input: add a PS/2 to SMBus platform module

2017-03-08 Thread Benjamin Tissoires
This driver is a glue between PS/2 devices that enumerate the RMI4 devices and Elan touchpads to the RMI4 (or Elan) SMBus driver. We 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

Re: [PATCH 21/26] IB/ocrdma: Improve another size determination in ocrdma_create_srq()

2017-03-08 Thread Devesh Sharma
Acked-By: Devesh Sharma On Wed, Mar 8, 2017 at 6:54 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 8 Mar 2017 10:10:50 +0100 > > Replace the specification of a data type by a pointer dereference > as the parameter for the operator "sizeof" to make the corresponding size >

Applied "ASoC: fsl: Remove unneeded init of static variable" to the asoc tree

2017-03-08 Thread Mark Brown
The patch ASoC: fsl: Remove unneeded init of static variable has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Re: [PATCH 0/2] ARM: dts: socfpga: Add support for PMU on Arria5/Cyclone5

2017-03-08 Thread Dinh Nguyen
On 02/28/2017 09:52 AM, Florian Vaussard wrote: > Hi, > > These patches add suport for ARM Performance Monitor Units on Arria5 and > Cyclone5 SoCFPGA. This was tested on a Cyclone 5 SoC DK board. > > Side note: the same change can be probably applied to Arria10 as well, > but we do not have

[PATCH v3 1/3] input: serio - allow others to specify a driver for a serio device

2017-03-08 Thread Benjamin Tissoires
The Lenovo Thinkpads use RMI4 over SMBus in addition to PS/2 for their trackpad. The problem is that the device doesn't enumerate itself besides some registers in PS/2. Once the initial PS/2 initialization has been made, we need a way to unbind psmouse from the touchpad and use a different

RFC: SysRq nice-all-RT-tasks is broken

2017-03-08 Thread Laurent Dufour
Hi, It appears that triggering the SysRq nice-all-RT-tasks from the console while a real task is active is leading to panic the system like this : sysrq: SysRq : Nice All RT Tasks [ cut here ] kernel BUG at /build/linux-twbIHf/linux-4.10.0/kernel/sched/core.c:4089!

Re: [PATCH v2 08/22] PCI: dwc: designware: Add EP mode support

2017-03-08 Thread Joao Pinto
Às 3:32 PM de 3/8/2017, Joao Pinto escreveu: > Às 1:31 PM de 3/8/2017, Kishon Vijay Abraham I escreveu: >> Hi, >> >> On Wednesday 08 March 2017 05:07 PM, Joao Pinto wrote: >>> Às 11:35 AM de 3/8/2017, Kishon Vijay Abraham I escreveu: Hi, On Wednesday 08 March 2017 05:02 PM, Joao

Re: [PATCH v2 08/22] PCI: dwc: designware: Add EP mode support

2017-03-08 Thread Joao Pinto
Às 1:31 PM de 3/8/2017, Kishon Vijay Abraham I escreveu: > Hi, > > On Wednesday 08 March 2017 05:07 PM, Joao Pinto wrote: >> Às 11:35 AM de 3/8/2017, Kishon Vijay Abraham I escreveu: >>> Hi, >>> >>> On Wednesday 08 March 2017 05:02 PM, Joao Pinto wrote: Hi Kishon, >> Can you

Re: [PATCH v2 05/21] x86/xen: split off enlighten_hvm.c

2017-03-08 Thread Juergen Gross
On 02/03/17 18:53, Vitaly Kuznetsov wrote: > Move PVHVM related code to enlighten_hvm.c. Three functions: > xen_cpuhp_setup(), xen_reboot(), xen_emergency_restart() are shared, drop > static qualifier from them. These functions will go to common code once > it is split from enlighten.c. > >

[PATCH 16/26] IB/ocrdma: Adjust a null pointer check in ocrdma_alloc_resources()

2017-03-08 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 7 Mar 2017 22:34:33 +0100 The script "checkpatch.pl" pointed information out like the following. Comparison to NULL could be written "!dev->stag_arr". Thus fix the affected source code place. Signed-off-by: Markus Elfring ---

Re: [PATCH v2 1/2] net: sched: make default fifo qdiscs appear in the dump

2017-03-08 Thread Jiri Kosina
On Wed, 8 Mar 2017, Eric Dumazet wrote: > > +++ b/net/sched/sch_qfq.c > > @@ -494,6 +494,8 @@ static int qfq_change_class(struct Qdisc *sch, u32 > > classid, u32 parentid, > > goto destroy_class; > > } > > > > + if (cl->qdisc != _qdisc) > > +

Re: [PATCH 15/26] IB/ocrdma: Delete an error message for a failed memory allocation in ocrdma_add()

2017-03-08 Thread Yuval Shaia
On Wed, Mar 08, 2017 at 02:13:11PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 7 Mar 2017 22:23:17 +0100 > > Omit an extra message for a memory allocation failure in this function. > > Link: >

[PATCH] futex: move debug_rt_mutex_free_waiter() further down

2017-03-08 Thread Sebastian Andrzej Siewior
Without this, futex_requeue_pi_signal_restart will trigger |kernel BUG at locking/rtmutex_common.h:55! |Call Trace: | rt_mutex_cleanup_proxy_lock+0x54/0x90 | futex_wait_requeue_pi.constprop.21+0x387/0x4d0 | do_futex+0x289/0xbf0 |RIP: remove_waiter+0x157/0x170 RSP: c9e0fbe0 with BUG

Re: [PATCH 26/26] IB/ocrdma: Adjust further ten checks for null pointers

2017-03-08 Thread Devesh Sharma
Acked-By: Devesh Sharma On Wed, Mar 8, 2017 at 7:04 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 8 Mar 2017 12:50:14 +0100 > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > The script “checkpatch.pl“ pointed information out

Re: [RFC,v2 3/3] sched: ignore task_h_load for CPU_NEWLY_IDLE

2017-03-08 Thread Uladzislau Rezki
Hello. Let's decide how to proceed with https://lkml.org/lkml/2017/2/14/334 patch. Despite it is not a big change, i think it is important and ready to be submited, unless there are still any comments. -- Uladzislau Rezki On Thu, Feb 16, 2017 at 12:20 PM, Uladzislau Rezki wrote: > On Wed, Feb

Re: [PATCH] futex: move debug_rt_mutex_free_waiter() further down

2017-03-08 Thread Sebastian Andrzej Siewior
On 2017-03-08 16:29:02 [+0100], To Peter Zijlstra wrote: > Without this, futex_requeue_pi_signal_restart will trigger > > |kernel BUG at locking/rtmutex_common.h:55! > |Call Trace: > | rt_mutex_cleanup_proxy_lock+0x54/0x90 > | futex_wait_requeue_pi.constprop.21+0x387/0x4d0 > |

Re: [PATCH 18/26] IB/ocrdma: Use kcalloc() in three functions

2017-03-08 Thread Devesh Sharma
Acked-By:Devesh Sharma On Wed, Mar 8, 2017 at 6:49 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 8 Mar 2017 09:19:47 +0100 > > * Multiplications for the size determination of memory allocations > indicated that array data structures should be processed. > Thus reuse the

Re: [PATCH] iommu/arm-smmu: Report smmu type in dmesg

2017-03-08 Thread Aleksey Makarov
On 03/06/2017 02:58 PM, Robert Richter wrote: The ARM SMMU detection especially depends from system firmware. For better diagnostic, log the detected type in dmesg. The smmu type's name is now stored in struct arm_smmu_type and ACPI code is modified to use that struct too. Rename

[PATCH v3 2/3] Input: synaptics - allocate a Synaptics Intertouch device

2017-03-08 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

Re: [PATCH 6/6] sysctl: Add global tunable mt_page_copy

2017-03-08 Thread Anshuman Khandual
On 02/17/2017 09:00 PM, kbuild test robot wrote: > Hi Zi, > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.10-rc8 next-20170217] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: >

Re: [f2fs-dev] [PATCH] f2fs: don't allow rename unencrypted file to encrypted directory

2017-03-08 Thread Kinglong Mee
On 3/8/2017 20:08, Chao Yu wrote: > In commit d9cdc9033181 ("ext4 crypto: enforce context consistency") we > declared that: > > 2) All files or directories in a directory must be protected using the > same key as their containing directory. > > But in f2fs_cross_rename there is a

Re: [PATCH 2/2] x86/mm/KASLR: Correct the upper boundary of KALSR mm regions if adjacent to EFI

2017-03-08 Thread Thomas Garnier
Thanks for the change. Acked-by: Thomas Garnier On Wed, Mar 8, 2017 at 12:35 AM, Bhupesh Sharma wrote: > On Wed, Mar 8, 2017 at 1:48 PM, Dave Young wrote: >> On 03/08/17 at 03:47pm, Baoquan He wrote: >>> EFI allocates runtime services regions top-down, starting from EFI_VA_START >>> to

Re: [PATCH 3/6] mm/migrate: Add copy_pages_mthread function

2017-03-08 Thread Anshuman Khandual
On 02/17/2017 05:57 PM, kbuild test robot wrote: > Hi Zi, > > [auto build test WARNING on linus/master] > [also build test WARNING on v4.10-rc8 next-20170216] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: >

Re: [PATCH 20/26] IB/ocrdma: Delete an unnecessary variable assignment in ocrdma_alloc_mr()

2017-03-08 Thread Devesh Sharma
Acked-By: Devesh Sharma On Wed, Mar 8, 2017 at 6:52 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 8 Mar 2017 10:00:41 +0100 > > Delete an assignment for the local variable "status" in an if branch > because the desired failure indication is already specified by a constant >

Re: [PATCH v2 2/2] Staging: comedi: comedi_fops: Fix "out of minor numbers for board device files"

2017-03-08 Thread Ian Abbott
On 07/03/17 18:13, Cheah Kok Cheong wrote: If comedi module is loaded with the following max allowed parameter [comedi_num_legacy_minors=48], subsequent loading of an auto-configured device will fail at auto-configuration. If there's no fall back in place then module loading will fail. In this

Re: [PATCH] x86, kasan: add KASAN checks to atomic operations

2017-03-08 Thread Mark Rutland
On Wed, Mar 08, 2017 at 04:27:11PM +0100, Dmitry Vyukov wrote: > On Wed, Mar 8, 2017 at 4:20 PM, Mark Rutland wrote: > > As in my other reply, I'd prefer that we wrapped the (arch-specific) > > atomic implementations such that we can instrument them explicitly in a > > core header. That means

Re: [PATCH 1/2] reset: add reset-simple to unify socfpga, stm32, and sunxi

2017-03-08 Thread Andre Przywara
Hi, On 08/03/17 12:20, Philipp Zabel wrote: > On Wed, 2017-03-08 at 12:05 +0100, Alexandre Torgue wrote: >> Hi Philipp, >> >> On 03/08/2017 11:19 AM, Andre Przywara wrote: >>> Hi, >>> >>> On 08/03/17 09:54, Philipp Zabel wrote: Reset operations for simple reset controllers with reset lines

Re: [PATCH v2 1/2] doc: bindings: Add bindings documentation for mtd nvmem

2017-03-08 Thread Alban
On Tue, 7 Mar 2017 22:01:07 +0100 Boris Brezillon wrote: > On Tue, 7 Mar 2017 09:26:03 +0100 > Alban wrote: > > > Config data for drivers, like MAC addresses, is often stored in MTD. > > Add a binding that define how such data storage can be represented in > > device tree. > > > >

Re: [PATCH] x86, kasan: add KASAN checks to atomic operations

2017-03-08 Thread Dmitry Vyukov
On Wed, Mar 8, 2017 at 4:43 PM, Mark Rutland wrote: > On Wed, Mar 08, 2017 at 04:27:11PM +0100, Dmitry Vyukov wrote: >> On Wed, Mar 8, 2017 at 4:20 PM, Mark Rutland wrote: >> > As in my other reply, I'd prefer that we wrapped the (arch-specific) >> > atomic implementations such that we can

Re: [PATCH 0/2] usb: gadget: f_uvc: SuperSpeed fixes

2017-03-08 Thread Laurent Pinchart
Hi Roger, Thank you for the patches. On Wednesday 08 Mar 2017 16:05:42 Roger Quadros wrote: > Hi Laurent & Felipe, > > These are some fixes for SuperSpeed case. For both patches, Reviewed-by: Laurent Pinchart > -- > cheers, > -roger > > Roger Quadros (2): > usb: gadget: f_uvc: Fix

Re: [PATCH] x86, kasan: add KASAN checks to atomic operations

2017-03-08 Thread Mark Rutland
On Wed, Mar 08, 2017 at 04:45:58PM +0100, Dmitry Vyukov wrote: > On Wed, Mar 8, 2017 at 4:43 PM, Mark Rutland wrote: > > On Wed, Mar 08, 2017 at 04:27:11PM +0100, Dmitry Vyukov wrote: > >> On Wed, Mar 8, 2017 at 4:20 PM, Mark Rutland wrote: > >> > As in my other reply, I'd prefer that we wrapped

Re: [PATCH] mux-core: make it explicitly non-modular

2017-03-08 Thread Peter Rosin
On 2017-03-08 15:38, Paul Gortmaker wrote: > [Re: [PATCH] mux-core: make it explicitly non-modular] On 08/03/2017 (Wed > 10:38) Peter Rosin wrote: > >> On 2017-03-07 23:41, Paul Gortmaker wrote: >>> The Kconfig currently controlling compilation of this code is: >>> >>>

Re: [PATCH 3/5] fs, xfs: convert xlog_ticket.t_ref from atomic_t to refcount_t

2017-03-08 Thread Christoph Hellwig
> - ASSERT(atomic_read(>t_ref) > 0); > - atomic_inc(>t_ref); > + ASSERT(refcount_read(>t_ref) > 0); > + refcount_inc(>t_ref); With strict refcount semantics refcount_inc should check that the count is larger than 0, otherwise we'd need to use recount_inc_not_zero or whatever

[PATCH] tun: remove copyright printing

2017-03-08 Thread Corentin Labbe
Printing copyright does not give any useful information on the boot process. Furthermore, the email address printed is obsolete since commit ba57b6f20429 ("MAINTAINERS: fix bouncing tun/tap entries") Signed-off-by: Corentin Labbe --- drivers/net/tun.c | 1 - 1 file changed, 1 deletion(-) diff

Re: [PATCH 0/7] 5-level paging: prepare generic code

2017-03-08 Thread Michal Hocko
On Wed 08-03-17 18:07:42, Kirill A. Shutemov wrote: > On Wed, Mar 08, 2017 at 03:25:01PM +0100, Michal Hocko wrote: > > Btw. my build test machinery has reported this: > > microblaze/allnoconfig > > Thanks. > > Fixup is below. I guess it should be folded into 4/7. yes, this has passed the

Re: [v6 PATCH 19/21] x86/traps: Fixup general protection faults caused by UMIP

2017-03-08 Thread Andy Lutomirski
On Tue, Mar 7, 2017 at 4:32 PM, Ricardo Neri wrote: > If the User-Mode Instruction Prevention CPU feature is available and > enabled, a general protection fault will be issued if the instructions > sgdt, sldt, sidt, str or smsw are executed from user-mode context > (CPL > 0). If the fault was

[GIT PULL][PATCH 2/2] ktest: Make sure wait_for_input does honor the timeout

2017-03-08 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function wait_for_input takes in a timeout, and even has a default timeout. But if for some reason the STDIN descriptor keeps sending in data, the function will never time out. The timout is to wait for the data from the passed in file descriptor, not for

[GIT PULL][PATCH 1/2] ktest: Fix while loop in wait_for_input

2017-03-08 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The run_command function was changed to use the wait_for_input function to allow having a timeout if the command to run takes too much time. There was a bug in the wait_for_input where it could end up going into an infinite loop. There's two issues here. One is

[GIT PULL][PATCH 0/2] ktest: Fixes for 4.11

2017-03-08 Thread Steven Rostedt
Linus, Greg Kroah-Hartman reported to me that the ktest of v4.10 locked up in an infinite loop while doing the make mrproper. Looking into the cause I noticed that a recent update to the function run_command (used for running all shell commands, including "make mrproper") changed the internal

RE: out of range LBA using sg_raw

2017-03-08 Thread Kashyap Desai
> -Original Message- > From: Christoph Hellwig [mailto:h...@infradead.org] > Sent: Wednesday, March 08, 2017 8:41 PM > To: Kashyap Desai > Cc: linux-kernel@vger.kernel.org; linux-s...@vger.kernel.org > Subject: Re: out of range LBA using sg_raw > > Hi Kashyap, > > for SG_IO passthrough

Re: [PATCH v5 2/5] powerpc: kretprobes: override default function entry offset

2017-03-08 Thread Naveen N. Rao
Hi Michael, On 2017/03/08 09:43PM, Michael Ellerman wrote: > "Naveen N. Rao" writes: > > > With ABIv2, we offset 8 bytes into a function to get at the local entry > > point. > > > > Acked-by: Ananth N Mavinakayanahalli > > Acked-by: Michael Ellerman > > Signed-off-by: Naveen N. Rao > > --- >

Re: [PATCH resent] uapi libc compat: allow non-glibc to opt out of uapi definitions

2017-03-08 Thread Carlos O'Donell
On 11/11/2016 07:08 AM, Felix Janda wrote: > Currently, libc-compat.h detects inclusion of specific glibc headers, > and defines corresponding _UAPI_DEF_* macros, which in turn are used in > uapi headers to prevent definition of conflicting structures/constants. > There is no such detection for

Re: out of range LBA using sg_raw

2017-03-08 Thread Christoph Hellwig
Hi Kashyap, for SG_IO passthrough requests we can't validate command validity for commands as the block layer treats them as opaque. The SCSI device implementation needs to handle incorrect parameter to be robust. For your fast path bypass the megaraid driver assumes part of the SCSI device

Re: [PATCH v2 08/22] PCI: dwc: designware: Add EP mode support

2017-03-08 Thread Kishon Vijay Abraham I
Hi, On Wednesday 08 March 2017 05:07 PM, Joao Pinto wrote: > Às 11:35 AM de 3/8/2017, Kishon Vijay Abraham I escreveu: >> Hi, >> >> On Wednesday 08 March 2017 05:02 PM, Joao Pinto wrote: >>> >>> Hi Kishon, >>> > Can you provide PCIE_GET_ATU_INB_UNR_REG_OFFSET (similar to >

Re: [RFT PATCH] mips: workpad_defconfig: convert to use libata PATA drivers

2017-03-08 Thread Bartlomiej Zolnierkiewicz
Hi Ralf, When patches converting MIPS defconfigs to libata PATA were applied this one got lost somehow. Please consider merging (it applies fine to v4.11-rc1). Best regards, -- Bartlomiej Zolnierkiewicz Samsung R Institute Poland Samsung Electronics On Monday, September 14, 2015 05:51:58 PM

Re: out of range LBA using sg_raw

2017-03-08 Thread Bart Van Assche
On Wed, 2017-03-08 at 21:29 +0530, Kashyap Desai wrote: > Also one more fault I can generate using below sg_raw command - > > "sg_raw -r 32k /dev/sdx 28 00 01 4f ff ff 00 00 08 00" > > Provide more scsi data length compare to actual SG buffer. Do you suggest > such SG_IO interface vulnerability

Re: [RFC PATCH v2 10/32] x86: DMA support for SEV memory encryption

2017-03-08 Thread Borislav Petkov
On Thu, Mar 02, 2017 at 10:14:25AM -0500, Brijesh Singh wrote: > From: Tom Lendacky > > DMA access to memory mapped as encrypted while SEV is active can not be > encrypted during device write or decrypted during device read. In order > for DMA to properly work when SEV is active, the swiotlb

Re: [v6 PATCH 00/21] x86: Enable User-Mode Instruction Prevention

2017-03-08 Thread Andy Lutomirski
On Tue, Mar 7, 2017 at 4:32 PM, Ricardo Neri wrote: > This is v6 of this series. The five previous submissions can be found > here [1], here [2], here[3], here[4], and here[5]. This version addresses > the comments received in v4 plus improvements of the handling of emulation > in 64-bit builds.

Re: [v6 PATCH 15/21] x86/mm: Relocate page fault error codes to traps.h

2017-03-08 Thread Andy Lutomirski
On Tue, Mar 7, 2017 at 4:32 PM, Ricardo Neri wrote: > Up to this point, only fault.c used the definitions of the page fault error > codes. Thus, it made sense to keep them within such file. Other portions of > code might be interested in those definitions too. For instance, the User- > Mode

Re: [PATCH V12 10/10] arm/arm64: KVM: add guest SEA support

2017-03-08 Thread James Morse
On 07/03/17 17:58, Baicar, Tyler wrote: > On 3/7/2017 4:48 AM, James Morse wrote: >> On 06/03/17 20:45, Tyler Baicar wrote: >>> Currently external aborts are unsupported by the guest abort >>> handling. Add handling for SEAs so that the host kernel reports >>> SEAs which occur in the guest kernel.

RE: out of range LBA using sg_raw

2017-03-08 Thread Kashyap Desai
> -Original Message- > From: Bart Van Assche [mailto:bart.vanass...@sandisk.com] > Sent: Wednesday, March 08, 2017 9:35 PM > To: h...@infradead.org; kashyap.de...@broadcom.com > Cc: linux-s...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: out of range LBA using sg_raw > > On

Re: [PATCH] mm, vmscan: do not loop on too_many_isolated for ever

2017-03-08 Thread Rik van Riel
On Wed, 2017-03-08 at 10:21 +0100, Michal Hocko wrote: > > Could that create problems if we have many concurrent > > reclaimers? > > As the changelog mentions it might cause a premature oom killer > invocation theoretically. We could easily see that from the oom > report > by checking isolated

Re: [PATCH] refcount: restore kref_get and kref_put to non-GPL status

2017-03-08 Thread Christoph Hellwig
Hi John, all Linux kernel code is licenced under the GPLv2.0, and maybe only be used by derived works if that work is available under a GPL-compatible license. the _GPL export are just a very strong hint that it's almost impossible not to be derived work - using non-trivial inline functions

Re: [GIT PULL][PATCH 0/2] ktest: Fixes for 4.11

2017-03-08 Thread Steven Rostedt
On Wed, 08 Mar 2017 10:55:21 -0500 Steven Rostedt wrote: > Linus, > > Greg Kroah-Hartman reported to me that the ktest of v4.10 locked up in an That should have been v4.11-rc1. -- Steve

[PATCH v5 15/19] usb: gadget: amd5536udc: Replace PCI pool old API

2017-03-08 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Acked-by: Peter Senna Tschudin Tested-by: Peter Senna Tschudin --- drivers/usb/gadget/udc/amd5536udc.c | 8

[PATCH v5 19/19] PCI: Remove PCI pool macro functions

2017-03-08 Thread Romain Perier
Now that all the drivers use dma pool API, we can remove the macro functions for PCI pool. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin --- include/linux/pci.h | 9 - 1 file changed, 9 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index

[PATCH v5 17/19] usb: gadget: pch_udc: Replace PCI pool old API

2017-03-08 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin Acked-by: Felipe Balbi --- drivers/usb/gadget/udc/pch_udc.c | 31 +++ 1 file

[PATCH v5 18/19] usb: host: Remove remaining pci_pool in comments

2017-03-08 Thread Romain Perier
This replaces remaining occurences of pci_pool by dma_pool, as this is the new API that could be used for that purpose. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin --- drivers/usb/host/ehci-hcd.c | 2 +- drivers/usb/host/fotg210-hcd.c | 2 +-

Re: v4.11-rc1 boot time regression

2017-03-08 Thread Andy Shevchenko
On Wed, Mar 8, 2017 at 10:26 AM, Thomas Gleixner wrote: > On Tue, 7 Mar 2017, Andy Shevchenko wrote: >> On Tue, Mar 7, 2017 at 9:21 PM, Linus Torvalds >> wrote: >> > On Tue, Mar 7, 2017 at 11:02 AM, Andy Shevchenko >> > wrote: >> >> >> >> 60 seconds of wait for what exactly? I have no clue

[PATCH v5 16/19] usb: gadget: net2280: Replace PCI pool old API

2017-03-08 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Acked-by: Peter Senna Tschudin Tested-by: Peter Senna Tschudin --- drivers/usb/gadget/udc/net2280.c | 12 ++--

[PATCH v5 11/19] scsi: megaraid: Replace PCI pool old API

2017-03-08 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin Acked-by: Sumit Saxena --- drivers/scsi/megaraid/megaraid_mbox.c | 33 +++

[PATCH v5 14/19] scsi: pmcraid: Replace PCI pool old API

2017-03-08 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Acked-by: Peter Senna Tschudin Tested-by: Peter Senna Tschudin --- drivers/scsi/pmcraid.c | 10 +- drivers/scsi/pmcraid.h | 2 +-

[PATCH v5 13/19] scsi: mvsas: Replace PCI pool old API

2017-03-08 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin --- drivers/scsi/mvsas/mv_init.c | 6 +++--- drivers/scsi/mvsas/mv_sas.c | 6 +++--- 2 files changed, 6

[PATCH v5 12/19] scsi: mpt3sas: Replace PCI pool old API

2017-03-08 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin --- drivers/scsi/mpt3sas/mpt3sas_base.c | 73 + 1 file changed, 34

[PATCH v5 10/19] scsi: lpfc: Replace PCI pool old API

2017-03-08 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. It also updates some comments, accordingly. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin --- drivers/scsi/lpfc/lpfc.h | 14 +++---

[PATCH v5 08/19] scsi: be2iscsi: Replace PCI pool old API

2017-03-08 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Acked-by: Peter Senna Tschudin Tested-by: Peter Senna Tschudin --- drivers/scsi/be2iscsi/be_iscsi.c | 6 +++---

[PATCH v5 09/19] scsi: csiostor: Replace PCI pool old API

2017-03-08 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. It also updates the name of some variables and the content of comments, accordingly. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin ---

[PATCH v5 07/19] wireless: ipw2200: Replace PCI pool old API

2017-03-08 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin --- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 13 +++-- 1 file changed, 7 insertions(+), 6

[PATCH v5 06/19] mlx5: Replace PCI pool old API

2017-03-08 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin --- drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 11 ++- include/linux/mlx5/driver.h

[PATCH 1/3] usb: orion-echi: Add support for the Armada 3700

2017-03-08 Thread Gregory CLEMENT
From: jinghua - Add a new compatoble string for the Armada 3700 SoCs - add sbuscfg support for orion usb controller driver. For the SoCs without hlock, need to program BAWR/BARD/AHBBRST fields in the sbuscfg register to guarantee the AHB master's burst would not overrun or underrun the

Re: [v6 PATCH 21/21] selftests/x86: Add tests for User-Mode Instruction Prevention

2017-03-08 Thread Andy Lutomirski
On Tue, Mar 7, 2017 at 4:32 PM, Ricardo Neri wrote: > Certain user space programs that run on virtual-8086 mode may utilize > instructions protected by the User-Mode Instruction Prevention (UMIP) > security feature present in new Intel processors: SGDT, SIDT and SMSW. In > such a case, a general

[PATCH 3/3] ARM64: dts: marvell: armada-37xx: Add USB2 node

2017-03-08 Thread Gregory CLEMENT
Armada 37xx SoC embedded an EHCI controller. This patch adds the device tree node enabling its support. Signed-off-by: Gregory CLEMENT --- arch/arm64/boot/dts/marvell/armada-3720-db.dts | 6 ++ arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 7 +++ 2 files changed, 13 insertions(+)

Re: [PATCH] x86, kasan: add KASAN checks to atomic operations

2017-03-08 Thread Dmitry Vyukov
On Mon, Mar 6, 2017 at 9:35 PM, Peter Zijlstra wrote: > On Mon, Mar 06, 2017 at 04:20:18PM +, Mark Rutland wrote: >> > >> So the problem is doing load/stores from asm bits, and GCC >> > >> (traditionally) doesn't try and interpret APP asm bits. >> > >> >> > >> However, could we not write a

<    8   9   10   11   12   13   14   15   16   17   >