[PATCH 17/26] IB/ocrdma: Use kmalloc_array() in ocrdma_create_srq()

2017-03-08 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 8 Mar 2017 08:45:31 +0100 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kmalloc_array". This issue was detected by using the Coccinelle so

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

2017-03-08 Thread Yuval Shaia
On Wed, Mar 08, 2017 at 01:55:59PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 7 Mar 2017 20:07:25 +0100 > > Replace the specification of a data structure by a pointer dereference > as the parameter for the operator "sizeof" to make the corresponding size > determination a

[PATCH v2] HID: remove initial reading of reports at connect

2017-03-08 Thread Benjamin Tissoires
It looks like a bunch of devices do not like to be polled for their reports at init time. When you look into the details, it seems that for those that are requiring the quirk HID_QUIRK_NO_INIT_REPORTS, the driver fails to retrieve part of the features/inputs while others (more generic) work. IMO,

Re: [PATCH 1/4] s390: get rid of superfluous __GFP_REPEAT

2017-03-08 Thread Michal Hocko
On Wed 08-03-17 09:23:40, Heiko Carstens wrote: > On Tue, Mar 07, 2017 at 04:48:40PM +0100, Michal Hocko wrote: > > From: Michal Hocko > > > > __GFP_REPEAT has a rather weak semantic but since it has been introduced > > around 2.6.12 it has been ignored for low order allocations. > > > > page_ta

Re: [PATCH] ideapad-laptop: Add Lenovo ideapad 310-15IKB to no_hw_rfkill dmi list

2017-03-08 Thread Andy Shevchenko
On Tue, Feb 21, 2017 at 9:53 PM, Sven Rebhan wrote: > Like other Lenovo models the Lenovo ideapad 310-15IKB does not have a > hw rfkill switch. This results in hard-blocked radios after boot, > resulting in always blocked radios rendering them unusable. > > The attached patch adds the ideapad 310-

out of range LBA using sg_raw

2017-03-08 Thread Kashyap Desai
Hi - Need help to understand if below is something we should consider to be fixed in megaraid_sas driver or call as unreal exposure. I have created slice VD of size 10GB (raid 1) using 2 drives. Each Physical Drive size is 256GB. Last LBA of the VD and actual Physical disk associated with tha

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

2017-03-08 Thread Yuval Shaia
On Wed, Mar 08, 2017 at 02:00:56PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 7 Mar 2017 20:20:45 +0100 > > Replace the specification of a data structure by a pointer dereference > as the parameter for the operator "sizeof" to make the corresponding size > determination a

Re: [PATCH 08/26] IB/ocrdma: Improve size determinations in ocrdma_mbx_rdma_stats()

2017-03-08 Thread Yuval Shaia
On Wed, Mar 08, 2017 at 01:58:49PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 7 Mar 2017 20:16:16 +0100 > > Replace the specification of two data structures by pointer dereferences > as the parameter for the operator "sizeof" to make the corresponding size > determination

Re: [PATCH] PCI: Add pci reset quirk for Cavium VNIC

2017-03-08 Thread rad
On 07.03.2017 17:16, Robin Murphy wrote: On 07/03/17 15:04, Radoslaw Biernacki wrote: From: Radoslaw Biernacki PCI reset quirk is needed for Cavium Function NIC since it does not handle a function level reset. This cause problems when VNIC is used from userspace by vfio. If application (or VM)

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

2017-03-08 Thread Stas Sergeev
08.03.2017 03:32, Ricardo Neri пишет: These are the instructions covered by UMIP: * SGDT - Store Global Descriptor Table * SIDT - Store Interrupt Descriptor Table * SLDT - Store Local Descriptor Table * SMSW - Store Machine Status Word * STR - Store Task Register This patchset initially treated

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

2017-03-08 Thread Yuval Shaia
On Wed, Mar 08, 2017 at 02:10:33PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 7 Mar 2017 22:12:36 +0100 > > Replace the specification of a data structure by a pointer dereference > as the parameter for the operator "sizeof" to make the corresponding size > determination a

[PATCH 1/2] usb: gadget: f_uvc: Fix SuperSpeed companion descriptor's wBytesPerInterval

2017-03-08 Thread Roger Quadros
The streaming_maxburst module parameter is 0 offset (0..15) so we must add 1 while using it for wBytesPerInterval calculation for the SuperSpeed companion descriptor. Without this host uvcvideo driver will always see the wrong wBytesPerInterval for SuperSpeed uvc gadget and may not find a suitable

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

2017-03-08 Thread Yuval Shaia
On Wed, Mar 08, 2017 at 02:07:01PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 7 Mar 2017 21:32:22 +0100 > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > The script “checkpatch.pl“ pointed information out like the followin

Re: [PATCH 6/7] xen/9pfs: receive responses

2017-03-08 Thread Boris Ostrovsky
> >>> + >>> + if (xen_9pfs_queued(prod, cons, XEN_9PFS_RING_SIZE) < >>> sizeof(h)) { >>> + notify_remote_via_irq(ring->irq); >>> + return; >>> + } >>> + >>> + masked_prod = xen_9pfs_mask(prod, XEN_9PFS_RING_SIZE); >>> + m

[PATCH 4/5] fs, xfs: convert xfs_cui_log_item.cui_refcount from atomic_t to refcount_t

2017-03-08 Thread Elena Reshetova
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 use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

Re: problem with block: Move bdi_unregister() to del_gendisk() commit 165a5e22fafb127ecb5914e12e8c32a1f0d3f820

2017-03-08 Thread Jan Kara
On Wed 08-03-17 20:37:54, Arthur Marsh wrote: > > On one of my pc's I have 2 PATA disks (one, WDC below is used for booting, > the other SAMSUNG is not mounted), plus an IBM SCSI disk using a DPT 2044W > controller with eata driver and sometimes a Verbatim Storengo USB stick. > > On recent 4.10.0

Re: [PATCH 10/10] Bluetooth: add nokia driver

2017-03-08 Thread Rob Herring
On Tue, Mar 7, 2017 at 3:08 PM, Sebastian Reichel wrote: > Hi Rob, > > On Tue, Mar 07, 2017 at 10:30:51AM -0600, Rob Herring wrote: >> On Sat, Mar 4, 2017 at 5:58 AM, Sebastian Reichel wrote: >> > This adds a driver for the Nokia H4+ protocol, which is used >> > at least on the Nokia N9, N900 & N

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

2017-03-08 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 08, 2017 at 07:54:12PM +0530, Naveen N. Rao escreveu: > 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 Mavinakayan

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

2017-03-08 Thread Paul Gortmaker
[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: > > > > drivers/mux/Kconfig:menuconfig MULTIPLEXER > > drivers/mux/Kconfig:bool

Re: [PATCH] platform/x86: dell-laptop: Handle return error form dell_get_intensity.

2017-03-08 Thread Pali Rohár
Hi! On Wednesday 08 March 2017 17:52:27 Arvind Yadav wrote: > Here, dell_get_intensity can return an error. Right. That is truth and we should check for errors. > So we can assgine props.brightness as max_brightness. But why to max_brightness? Seems that this is incorrect handling of error too.

Re: [PATCH v17 2/3] usb: USB Type-C connector class

2017-03-08 Thread Guenter Roeck
On 03/07/2017 10:50 PM, Peter Chen wrote: You mean type-C trigger an ACPI event, and this ACPI event can notify related USB controller driver doing role switch? No (firmware programs the dual-role hw/registers), but never mind. That could be the case. If it is correct, there is a notifier b

Re: counting file descriptors with a cgroup controller

2017-03-08 Thread Tejun Heo
Hello, On Tue, Mar 07, 2017 at 09:06:49PM +0100, Krzysztof Opasiak wrote: > Personally, I don't want to use rlimit for this as it ends up returning > error code from for example open() when we hit the limit. This may lead to > some unpredictable crashes in services (esp. those poor proprietary bi

Re: [PATCH v3 3/3] printk: fix double printing with earlycon

2017-03-08 Thread Aleksey Makarov
On 03/08/2017 06:33 AM, Sergey Senozhatsky wrote: Hello, sorry for the delay. On (03/07/17 15:54), Aleksey Makarov wrote: On 03/06/2017 03:59 PM, Sergey Senozhatsky wrote: On (03/03/17 18:49), Aleksey Makarov wrote: [..] +static enum { CONSOLE_MATCH, CONSOLE_MATCH_RETURN, CONSOLE_MATCH_NEX

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

2017-03-08 Thread Devesh Sharma
Acked-by: Devesh Sharma On Wed, Mar 8, 2017 at 7:52 PM, Yuval Shaia wrote: > On Wed, Mar 08, 2017 at 02:02:46PM +0100, SF Markus Elfring wrote: >> From: Markus Elfring >> Date: Tue, 7 Mar 2017 20:33:29 +0100 >> >> Replace the specification of a data structure by a pointer dereference >> as the

Re: [PATCH] zswap: Zero-filled pages handling

2017-03-08 Thread Dan Streetman
On Wed, Mar 8, 2017 at 6:47 AM, Srividya Desireddy wrote: > > On Sat, Mar 4, 2017 at 02:55 AM, Dan Streetman wrote: >> On Sat, Feb 25, 2017 at 12:18 PM, Sarbojit Ganguly >> wrote: >>> On 25 February 2017 at 20:12, Srividya Desireddy >>> wrote: From: Srividya Desireddy Date: Thu, 23 F

Re: [PATCH 11/26] IB/ocrdma: Delete unnecessary braces

2017-03-08 Thread Yuval Shaia
On Wed, Mar 08, 2017 at 02:04:56PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 7 Mar 2017 21:12:56 +0100 > > Do not use curly brackets at some source code places > where a single statement should be sufficient. > > Signed-off-by: Markus Elfring > --- > drivers/infiniban

Re: [PATCH v2 0/2] patches for Innomedia INNEX GENESIS/ATARI adapter

2017-03-08 Thread Jiri Kosina
On Tue, 7 Mar 2017, Tomasz Kramkowski wrote: > I'll post it on here as a patch. I'm not sure if that would be a v3 or a > new patch. As the baseline patch is already merged and I am not rebasing hid.git, please send anything else as a followup fix. Thanks, -- Jiri Kosina SUSE Labs

Re: [patch v2] mm, vmstat: print non-populated zones in zoneinfo

2017-03-08 Thread Michal Hocko
On Fri 03-03-17 14:53:07, David Rientjes wrote: > Initscripts can use the information (protection levels) from > /proc/zoneinfo to configure vm.lowmem_reserve_ratio at boot. > > vm.lowmem_reserve_ratio is an array of ratios for each configured zone on > the system. If a zone is not populated on a

Re: [PATCH 1/2] mm: use is_migrate_highatomic() to simplify the code

2017-03-08 Thread Michal Hocko
On Mon 06-03-17 12:43:18, Andrew Morton wrote: > On Mon, 6 Mar 2017 14:38:33 +0100 Michal Hocko wrote: > > > On Fri 03-03-17 15:06:19, Andrew Morton wrote: > > > On Fri, 3 Mar 2017 14:18:08 +0100 Michal Hocko wrote: > > > > > > > On Fri 03-03-17 19:10:13, Xishi Qiu wrote: > > > > > Introduce tw

Re: [PATCH 03/26] IB/ocrdma: Improve size determinations in ocrdma_mbx_get_dcbx_config()

2017-03-08 Thread Devesh Sharma
Acked-By: Devesh Sharma On Wed, Mar 8, 2017 at 7:24 PM, Yuval Shaia wrote: > On Wed, Mar 08, 2017 at 01:45:43PM +0100, SF Markus Elfring wrote: >> From: Markus Elfring >> Date: Tue, 7 Mar 2017 19:09:20 +0100 >> >> Replace the specification of data structures by references for variables >> as th

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

2017-03-08 Thread Jiri Pirko
Wed, Mar 08, 2017 at 01:03:42PM CET, ji...@kernel.org wrote: >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:

Re: Kernel without RTC

2017-03-08 Thread Thomas Gleixner
On Wed, 8 Mar 2017, Alexandre Belloni wrote: > On 08/03/2017 at 13:33:33 +, Hadimani, Jagadish wrote: > > Hello Alexandre, > > > > I guess the Linux kernel uses HPET timer... > > But can we can force Linux kernel to use Tsc or per core timer... > > > > That is probably the case but your are

Re: [PATCH 17/26] IB/ocrdma: Use kmalloc_array() in ocrdma_create_srq()

2017-03-08 Thread Devesh Sharma
On Wed, Mar 8, 2017 at 6:47 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 8 Mar 2017 08:45:31 +0100 > > * A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function "

Re: [PATCH v2 02/21] x86/xen: globalize have_vcpu_info_placement

2017-03-08 Thread Juergen Gross
On 02/03/17 18:53, Vitaly Kuznetsov wrote: > have_vcpu_info_placement applies to both PV and HVM and as we're going > to split the code we need to make it global. > > Rename to xen_have_vcpu_info_placement. > > Signed-off-by: Vitaly Kuznetsov Reviewed-by: Juergen Gross Juergen

Re: [RFC PATCH 3/4] xfs: map KM_MAYFAIL to __GFP_RETRY_MAYFAIL

2017-03-08 Thread Christoph Hellwig
On Tue, Mar 07, 2017 at 04:48:42PM +0100, Michal Hocko wrote: > From: Michal Hocko > > KM_MAYFAIL didn't have any suitable GFP_FOO counterpart until recently > so it relied on the default page allocator behavior for the given set > of flags. This means that small allocations actually never failed

Re: [PATCH v2 01/21] x86/xen: separate PV and HVM hypervisors

2017-03-08 Thread Juergen Gross
On 02/03/17 18:53, Vitaly Kuznetsov wrote: > As a preparation to splitting the code we need to untangle it: > > x86_hyper_xen -> x86_hyper_xen_hvm and x86_hyper_xen_pv > xen_platform() -> xen_platform_hvm() and xen_platform_pv() > xen_cpu_up_prepare() -> xen_cpu_up_prepare_pv() and xen_cpu_up_prep

Re: rtlwifi: fix spelling mistake: "conuntry" -> "country"

2017-03-08 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > trivial fix to spelling mistake in RT_TRACE message > > Signed-off-by: Colin Ian King Patch applied to wireless-drivers-next.git, thanks. 3e062eb21df8 rtlwifi: fix spelling mistake: "conuntry" -> "country" -- https://patchwork.kernel.org/pat

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

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

Re: Kernel without RTC

2017-03-08 Thread Hadimani, Jagadish
Hello Alexandre, I guess the Linux kernel uses HPET timer... But can we can force Linux kernel to use Tsc or per core timer... Sent from my iPhone > On 8 Mar 2017, at 6:47 PM, Alexandre Belloni > wrote: > > Hi, > >> On 07/03/2017 at 00:48:18 +0530, Shah, Nehal-bakulchandra wrote: >> Hi, >>

Re: [PATCH 11/26] IB/ocrdma: Delete unnecessary braces

2017-03-08 Thread Devesh Sharma
On Wed, Mar 8, 2017 at 6:34 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 7 Mar 2017 21:12:56 +0100 > > Do not use curly brackets at some source code places > where a single statement should be sufficient. > > Signed-off-by: Markus Elfring > --- > drivers/infiniband/hw/ocrdma

Re: [RESEND PATCH] arm: assabet_defconfig: disable IDE subsystem

2017-03-08 Thread Sekhar Nori
On Tuesday 07 March 2017 11:21 PM, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On Monday, December 12, 2016 07:24:47 PM Sekhar Nori wrote: >> Hi Bartlomiej, >> >> On Monday 12 December 2016 06:15 PM, Bartlomiej Zolnierkiewicz wrote: >>> >>> Hi, >>> >>> On Monday, July 18, 2016 08:15:08 PM Sekhar

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

2017-03-08 Thread SF Markus Elfring
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 like the following. Comparison to NULL could be written !… Thus fix affected source code places.

Re: [PATCH v2 03/21] x86/xen: add CONFIG_XEN_PV to Kconfig

2017-03-08 Thread Juergen Gross
On 02/03/17 18:53, Vitaly Kuznetsov wrote: > All code to supprot Xen PV will get under this new option. For the s/supprot/support/ > beginning, check for it in the common code. > > Signed-off-by: Vitaly Kuznetsov > --- > arch/x86/kernel/cpu/hypervisor.c | 4 +++- > arch/x86/kernel/process_64.

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 af

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 and

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 fd850

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, miss

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: > http://events.linuxfoundation.org/sites/events/files/slides/LCJ

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 s

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 assignment

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 mimic

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 use-af

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 != &noop_qdisc) > + qdis

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 > --- > drivers/infiniband/

[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. Reported-by

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 Armstrong

[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 bri

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 b

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") https://git.kern

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: lustre-de...@list

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 abo

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 deferring

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 > dete

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 sent

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 the

[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 (dummy)

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! Oop

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 Pint

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 pro

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. > > Signed

[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 --- drivers/infiniband/hw/ocrdma/ocrdm

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 != &noop_qdisc) > > + qdisc_hash_

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: > http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Str

[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 22

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 l

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 1

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 > | do_futex+0x289/0xbf0

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 c

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 ARM_SMMU_MATC

[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: > https://github.com/0day

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 vulnerabilit

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 EFI_VA_

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: > https://github.com/

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 > e

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 c

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 that

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 th

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. > > > > Signed-off-

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 instru

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 SuperSp

<    1   2   3   4   5   6   7   8   9   >