Re: [PATCH] x86: Mark hpa as a "Designated Reviewer" for the time being

2018-01-27 Thread Ingo Molnar
* Thomas Gleixner wrote: > Peter! > > On Thu, 25 Jan 2018, H. Peter Anvin wrote: > > > Due to some unfortunate events, I have not been directly involved in > > the x86 kernel patch flow for a while now. I have also not been able > > to ramp back up by now like I had hoped to, and after review

[PATCH 1/2 v2] tpm: cmd_ready command can be issued only after granting locality

2018-01-27 Thread Tomas Winkler
The correct sequence is to first request locality and only after that perform cmd_ready handshake, otherwise the hardware will drop the subsequent message as from the device point of view the cmd_ready handshake wasn't performed. Symmetrically locality has to be relinquished only after going idle

[PATCH 2/2 v2] tpm: separate cmd_ready/go_idle from runtime_pm

2018-01-27 Thread Tomas Winkler
We cannot use go_idle cmd_ready commands via runtime_pm handles as with the introduction of localities this is no longer an optional feature, while runtime pm can be not enabled. Though cmd_ready/go_idle provides power saving feature, it's also part of TPM2 protocol and should be called explicitly.

[PATCH 0/2] tpm: fix locality and power saving handling

2018-01-27 Thread Tomas Winkler
Devices that support locality has failed to transmit due to reserved order of locality request and cmdReady/goIdle handshake. The cmdReady/goIdle should be performed on the requested locality. The first patch corrects the locality and power-save order, adds required polling for completion of goIdl

[PATCH] scsi: aic7xxx: remove really aiclib.c

2018-01-27 Thread Corentin Labbe
aiclib.c is unused (and contain no code) since commit 1ff927306e08 ("[SCSI] aic7xxx: remove aiclib.c") 13 years later, finish the cleaning by remove it from tree. Signed-off-by: Corentin Labbe --- drivers/scsi/aic7xxx/aiclib.c | 34 -- 1 file changed, 34 deletion

Re: [4.15-rc9] fs_reclaim lockdep trace

2018-01-27 Thread Tetsuo Handa
Dave, would you try below patch? >From cae2cbf389ae3cdef1b492622722b4aeb07eb284 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Sun, 28 Jan 2018 14:17:14 +0900 Subject: [PATCH] lockdep: Fix fs_reclaim warning. Dave Jones reported fs_reclaim lockdep warnings. ==

[RFC PATCH] perf cgroup: simplify arguments if track multiple events for a cgroup

2018-01-27 Thread weiping zhang
if use -G with one cgroup and -e with multiple events, only the first event has correct cgroup setting, all events from the second will track system-wide events. if user want track multiple events for a specific cgroup, user must give parameters like follow: $ perf stat -e e1 -e e2 -e e3 -G test,t

[PATCH] staging: lustre: lnet: return of an error code should be negative

2018-01-27 Thread Sumit Pundir
Return value of error codes should typically be negative. Issue reported by checkpatch.pl Signed-off-by: Sumit Pundir --- drivers/staging/lustre/lnet/selftest/framework.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lnet/selftest/framework.c b/drive

Re: [PATCH v3 3/4] soc: qcom: mdt-loader: Return relocation base

2018-01-27 Thread Andy Gross
On Fri, Jan 05, 2018 at 04:04:19PM -0800, Bjorn Andersson wrote: > In order to implement support for grabbing core dumps in remoteproc it's > necessary to know the relocated base of the image, as the offsets from > the virtual memory base might not be based on the physical address. > > Return the

Re: Dell Vostro 3360 multimedia keys

2018-01-27 Thread Dmitry Torokhov
On Sat, Jan 27, 2018 at 6:05 AM, Pali Rohár wrote: > On Tuesday 21 November 2017 19:58:24 Oleksandr Natalenko wrote: >> >> Just to note what I did. Here is my custom /etc/udev/hwdb.d/90-dell- >> vostro-3360.hwdb: >> >> === >> evdev:atkbd:dmi:bvnDellInc.:bvrA18:bd09/25/2013:svnDellInc.:pnVostro3360

Re: [PATCH v1 1/2] platform/x86: intel_pmc_ipc: Use MFD framework to create dependent devices

2018-01-27 Thread sathya
Hi Andy, Thanks for the review. On 01/26/2018 08:17 AM, Andy Shevchenko wrote: On Fri, Jan 26, 2018 at 12:53 AM, wrote: From: Kuppuswamy Sathyanarayanan Currently, we have lot of repetitive code in dependent device resource allocation and device creation handling code. This logic can be imp

Re: [4.15-rc9] fs_reclaim lockdep trace

2018-01-27 Thread Tetsuo Handa
On 2018/01/28 10:16, Tetsuo Handa wrote: > Linus Torvalds wrote: >> On Sat, Jan 27, 2018 at 2:24 PM, Dave Jones wrote: >>> On Tue, Jan 23, 2018 at 08:36:51PM -0500, Dave Jones wrote: >>> > Just triggered this on a server I was rsync'ing to. >>> >>> Actually, I can trigger this really easily, even

[PATCH] Documentation/admin-guide: fixes for thunderbolt.rst

2018-01-27 Thread Randy Dunlap
From: Randy Dunlap Edits for grammar, punctuation, and a doubled-up word. Signed-off-by: Randy Dunlap Cc: Andreas Noever Cc: Michael Jamet Cc: Mika Westerberg Cc: Yehezkel Bernat --- Documentation/admin-guide/thunderbolt.rst | 66 ++-- 1 file changed, 33 insertions(+), 33

Re: [PATCH v6 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-27 Thread Yong
Hi, On Sat, 27 Jan 2018 17:14:26 +0100 Linus Walleij wrote: > On Tue, Jan 23, 2018 at 9:18 AM, Yong Deng wrote: > > > Allwinner V3s SoC features two CSI module. CSI0 is used for MIPI CSI-2 > > interface and CSI1 is used for parallel interface. This is not > > documented in datasheet but by tes

Re: arch/x86/kernel/ftrace_64.o: warning: objtool: .entry.text+0x0: unreachable instruction

2018-01-27 Thread Josh Poimboeuf
On Sat, Jan 27, 2018 at 05:13:04PM +0100, Borislav Petkov wrote: > Hey, > > seen this already? > > This is Linus' tree from now + tip/master also from now. Yeah, Steven reported it a few days ago but I was in backport lala land. It's a simple fix: From: Josh Poimboeuf Subject: [PATCH] x86/ftra

Re: [linux-sunxi] Re: [PATCH v6 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-27 Thread Yong
Hi Maxime, On Fri, 26 Jan 2018 09:10:00 +0100 Maxime Ripard wrote: > On Fri, Jan 26, 2018 at 11:00:41AM +0800, Yong wrote: > > Hi Maxime, > > > > On Fri, 26 Jan 2018 09:46:58 +0800 > > Yong wrote: > > > > > Hi Maxime, > > > > > > Do you have any experience in solving this problem? > > > It s

Re: [PATCH] block: aoenet: Replace GFP_ATOMIC with GFP_KERNEL in aoenet_rcv

2018-01-27 Thread Jia-Ju Bai
On 2018/1/28 1:48, Ed Cashin wrote: If the tool cannot tell whether the protected state is manipulated by *another* piece of code called in atomic context, then it's insufficient. On Jan 26, 2018, at 4:37 AM, Jia-Ju Bai wrote: After checking all possible call chains to aoenet_rcv(), my too

Re: [PATCH] kbuild: fix W= option checks for extra DTC warnings

2018-01-27 Thread Masahiro Yamada
2018-01-18 12:31 GMT+09:00 Masahiro Yamada : > Kbuild supports 3 levels of extra warnings, and multiple levels can > be combined, like W=12, W=123. It was added by commit a6de553da01c > ("kbuild: Allow to combine multiple W= levels"). > > From the log of commit 8654cb8d0371 ("dtc: update warning s

Re: [PATCH v3] Remove silentoldconfig from help and docs; fix kconfig/conf's help

2018-01-27 Thread Masahiro Yamada
2018-01-27 7:59 GMT+09:00 Marc Herbert : > As explained by Michal Marek at https://lkml.org/lkml/2011/8/31/189 > silentoldconfig has become a misnomer. It has become an internal interface > so remove it from "make help" and Documentation/ to stop confusing people > using it as seen for instance at

Re: [PATCH] Remove silentoldconfig from "make help"; fix kconfig/conf's help

2018-01-27 Thread Masahiro Yamada
2018-01-27 8:00 GMT+09:00 Marc Herbert : > Masahiro, > > On 17/01/2018 20:31, Masahiro Yamada wrote: > >> Sorry for my late reply. > > I think we're even now :-) > >>> I'd like to keep that sentence because it's there to explain the legacy and >>> confusing "--silentoldconfig" name which unfortunat

Re: [PATCH] kconfig: announce removal of oldnoconfig if used

2018-01-27 Thread Masahiro Yamada
2018-01-18 20:56 GMT+09:00 Ulf Magnusson : > On Thu, Jan 18, 2018 at 5:13 AM, Masahiro Yamada > wrote: >> The 'oldnoconfig' is really confusing due to its counter-intuitive name. >> It was renamed by commit fb16d8912db5 ("kconfig: replace 'oldnoconfig' >> with 'olddefconfig', and keep the old name

Re: [4.15-rc9] fs_reclaim lockdep trace

2018-01-27 Thread Tetsuo Handa
Linus Torvalds wrote: > On Sat, Jan 27, 2018 at 2:24 PM, Dave Jones wrote: >> On Tue, Jan 23, 2018 at 08:36:51PM -0500, Dave Jones wrote: >> > Just triggered this on a server I was rsync'ing to. >> >> Actually, I can trigger this really easily, even with an rsync from one >> disk to another. Tho

Re: [PATCH] hrtimer: Reset hrtimer cpu base proper on CPU hotplug

2018-01-27 Thread Paul E. McKenney
On Fri, Jan 26, 2018 at 02:09:17PM -0800, Paul E. McKenney wrote: > On Fri, Jan 26, 2018 at 02:54:32PM +0100, Thomas Gleixner wrote: > > The hrtimer interrupt code contains a hang detection and mitigation > > mechanism, which prevents that a long delayed hrtimer interrupt causes a > > continous ret

Re: [PATCH v2 00/43] DRM Rockchip rk3399 (Kevin)

2018-01-27 Thread Emil Renner Berthing
On 26 January 2018 at 14:16, Thierry Escande wrote: > Hi, > > This patchset includes cleanups, improvements, and bug fixes for > Rockchip DRM driver and PSR support. > > this patchset depends and needs to be applied on top of Rockchip rk3399 > eDP support [1]. > > [1] https://lkml.org/lkml/2018/1/

[PATCH] Documentation/cdrom: fix German sharp s in LaTex

2018-01-27 Thread Randy Dunlap
From: Randy Dunlap Apparently the LaTex abbreviation for the German "sharp s" (ß) (Unicode U+00DF) has changed from {\sz} to {\ss}. With {\sz}, I get this error at line 1016 (line number after another patch): ! Undefined control sequence. l.1016 ...nel~2.0. Further thanks to Heiko Ei{\sz

[PATCH] macintosh/via-pmu68k: Initialize PMU driver with setup_arch and arch_initcall

2018-01-27 Thread Finn Thain
The PMU watchdog will power down the system if the kernel is slow to start up, e.g. due to unpacking a large initrd. The powerpc version of this driver (via-pmu.c) has a solution for the same problem. It uses this call sequence: setup_arch find_via_pmu init_pmu ... arch_ini

[PATCH] m68k/mac: Fix apparent race condition in Baboon interrupt dispatch

2018-01-27 Thread Finn Thain
The algorithm used in baboon_irq() appears to be subject to a race condition: an IRQ flag could be lost if asserted between the MOV instructions from and to the interrupt flag register. However, testing shows that the write to the flag register has no effect. Rewrite this loop to remove the apparen

[PATCH] m68k/mac: Enable PDMA support for PowerBook 190

2018-01-27 Thread Finn Thain
Stan's tests showed that PDMA improves sequential read performance by a factor of 5 on a PowerBook 190. Last time I tried this on a PowerBook 520 it didn't work, so let's not enable it there until it can be tested with the present mac_scsi driver. Tested-by: Stan Johnson Signed-off-by: Finn Thain

Re: [PATCH RFC 00/16] A new RCU implementation based on a fast consensus protocol

2018-01-27 Thread Paul E. McKenney
On Sat, Jan 27, 2018 at 09:57:03AM +, Lihao Liang wrote: > On Sat, Jan 27, 2018 at 7:57 AM, Paul E. McKenney > wrote: > > On Sat, Jan 27, 2018 at 07:22:27AM +, Lihao Liang wrote: > >> On Thu, Jan 25, 2018 at 5:53 AM, Paul E. McKenney > >> wrote: > >> > On Tue, Jan 23, 2018 at 03:59:25PM +

Re: [PATCH RFC 00/16] A new RCU implementation based on a fast consensus protocol

2018-01-27 Thread Paul E. McKenney
On Fri, Jan 26, 2018 at 11:57:44PM -0800, Paul E. McKenney wrote: > On Sat, Jan 27, 2018 at 07:22:27AM +, Lihao Liang wrote: > > On Thu, Jan 25, 2018 at 5:53 AM, Paul E. McKenney > > wrote: > > > On Tue, Jan 23, 2018 at 03:59:25PM +0800, liangli...@huawei.com wrote: > > >> From: Lihao Liang >

Re: [PATCH resend 0/6] Fix cdrom autoclose

2018-01-27 Thread Michal Suchánek
On Fri, 26 Jan 2018 12:04:56 -0800 James Bottomley wrote: > On Fri, 2018-01-26 at 17:58 +0100, Michal Suchanek wrote: > > First time I did not get any feedback for the patches. > > This is likely because no-one who might inspect the code saw the > patches ... what list are they going to?  I'm

Re: [RFP] iio: Support of gesture sensor as a standard IIO sensor

2018-01-27 Thread Pandruvada, Srinivas
On Sat, 2018-01-27 at 23:09 +0100, Pavel Machek wrote: > On Sat 2018-01-20 20:31:23, Pandruvada, Srinivas wrote: > > > > On Sat, 2018-01-20 at 15:19 +, Jonathan Cameron wrote: > > > > > > On Thu, 18 Jan 2018 23:40:26 +0100 > > > Pavel Machek wrote: > > > > > > > > > > > > > > > Hi! > > >

Re: [4.15-rc9] fs_reclaim lockdep trace

2018-01-27 Thread Linus Torvalds
On Sat, Jan 27, 2018 at 2:24 PM, Dave Jones wrote: > On Tue, Jan 23, 2018 at 08:36:51PM -0500, Dave Jones wrote: > > Just triggered this on a server I was rsync'ing to. > > Actually, I can trigger this really easily, even with an rsync from one > disk to another. Though that also smells a little

Re: Mutli-directory module Makefiles

2018-01-27 Thread Masahiro Yamada
2018-01-26 4:47 GMT+09:00 Jakub Kicinski : > On Thu, 25 Jan 2018 22:08:34 +0900, Masahiro Yamada wrote: >> 2018-01-23 6:46 GMT+09:00 Jakub Kicinski : >> > Hi! >> > >> > in drivers/net/ethernet/netronome/nfp there is a module which is built >> > from C sources in 4 directories. What is the best way

Re: [4.15-rc9] fs_reclaim lockdep trace

2018-01-27 Thread Dave Jones
On Tue, Jan 23, 2018 at 08:36:51PM -0500, Dave Jones wrote: > Just triggered this on a server I was rsync'ing to. Actually, I can trigger this really easily, even with an rsync from one disk to another. Though that also smells a little like networking in the traces. Maybe netdev has ideas. Th

Re: [RFP] iio: Support of gesture sensor as a standard IIO sensor

2018-01-27 Thread Pavel Machek
On Sat 2018-01-20 20:31:23, Pandruvada, Srinivas wrote: > On Sat, 2018-01-20 at 15:19 +, Jonathan Cameron wrote: > > On Thu, 18 Jan 2018 23:40:26 +0100 > > Pavel Machek wrote: > > > > > > > > Hi! > > > > > > > > > > > From an IIO sensor point of view A Gesture sensor: > > > > Outputs > > >

Re: [PATCH 2/2] drm/sun4i: Handle DRM_MODE_FLAG_**SYNC_POSITIVE correctly

2018-01-27 Thread Giulio Benetti
Il 26/01/2018 16:55, Giulio Benetti ha scritto: Hi, Il 26/01/2018 15:56, Maxime Ripard ha scritto: On Thu, Jan 25, 2018 at 05:50:18PM +0100, Giulio Benetti wrote: On Sat, Jan 20, 2018 at 07:50:21PM +0100, Giulio Benetti wrote: On previous handling, if specified DRM_MODE_FLAG_N*SYNC, it was ig

[PATCH] staging: lustre: llite: replace variable length array

2018-01-27 Thread Sven Dziadek
The functionality of the removed variable length array is already implemented by the function xattr_full_name in fs/xattr.c This fixes the sparse warning: warning: Variable length array is used. Signed-off-by: Sven Dziadek --- drivers/staging/lustre/lustre/llite/xattr.c | 12 1 fil

[PATCH 3/3] RDMA/iwpm: Improve a size determination in two functions

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 22:05:54 +0100 Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was detec

[PATCH 2/3] RDMA/iwpm: Adjust a variable initialisation in iwpm_create_nlmsg()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 21:56:54 +0100 The local variable "skb" will be reassigned by a following statement. Thus adjust the initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/infiniband/core/iwpm_util.c | 3 +-- 1 file changed, 1 insertion(+), 2 del

[PATCH 1/3] RDMA/iwpm: Delete an error message for a failed memory allocation in iwpm_create_nlmsg()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 21:48:01 +0100 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 --- drivers/infiniband/core/iwpm_util.c | 5 ++--- 1 file changed, 2 inser

[PATCH 0/3] RDMA/iwpm: Adjustments for three function implementations

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 22:12:34 +0100 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation in iwpm_create_nlmsg() Adjust a variable initialisation in iwpm_create_nlms

Re: [PATCH] ARM: dts: imx25-pinfunc: Always set SION for SD CMD

2018-01-27 Thread Uwe Kleine-König
On Sat, Jan 27, 2018 at 09:37:11PM +0100, Benoît Thébaudeau wrote: > On Sat, Jan 27, 2018 at 4:37 PM, Uwe Kleine-König > wrote: > > On Sat, Jan 27, 2018 at 01:07:52AM +0100, Benoît Thébaudeau wrote: > >> The eSDHC does not work properly if the SION bit is not set for the > >> bidirectional CMD sig

Re: [PATCH] ARM: dts: imx25-pinfunc: Always set SION for SD CMD

2018-01-27 Thread Benoît Thébaudeau
On Sat, Jan 27, 2018 at 4:37 PM, Uwe Kleine-König wrote: > On Sat, Jan 27, 2018 at 01:07:52AM +0100, Benoît Thébaudeau wrote: >> The eSDHC does not work properly if the SION bit is not set for the >> bidirectional CMD signal, whatever the eSDHC instance and the selected >> pad. Therefore, setting

[PATCH 2/2] RDMA/bnxt_re: Use common error handling code in bnxt_qplib_alloc_dpi_tbl()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 20:56:56 +0100 Add a jump target so that a bit of exception handling can be better reused at the end of this function. Signed-off-by: Markus Elfring --- drivers/infiniband/hw/bnxt_re/qplib_res.c | 13 +++-- 1 file changed, 7 insertions(+), 6

[PATCH 1/2] RDMA/bnxt_re: Delete two error messages for a failed memory allocation in bnxt_qplib_alloc_dpi_tbl()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 20:40:11 +0100 Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/infiniband/hw/bnxt_re/qplib_res.c | 5 - 1 file changed, 5 d

[PATCH 0/2] RDMA/bnxt_re: Adjustments for bnxt_qplib_alloc_dpi_tbl()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 21:10:12 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete two error messages for a failed memory allocation Use common error handling code drivers/infiniband/hw/bnxt_re/qplib_res.c

[PATCH stable] cifs: empty TargetInfo leads to crash on recovery

2018-01-27 Thread Dan Aloni
commit cabfb3680f78 upstream. [ resend from Oct 20, 2014, see [1] ] A trivially patched Samba server (see [2] [3]) can cause a remote kernel crash (see [4]) in a client's CIFS kernel module upon session recovery, under kernels prior to v4.11. The server patch can made by a single source line mod

Re: [RFC v3 1/4] drm/nouveau: Add support for basic clockgating on Kepler1

2018-01-27 Thread Martin Peres
On 26/01/18 22:59, Lyude Paul wrote: > This adds support for enabling automatic clockgating on nvidia GPUs for > Kepler1. While this is not technically a clockgating level, it does > enable clockgating using the clockgating values initially set by the > vbios (which should be safe to use). > > Thi

Re: [RFC v3 2/4] drm/nouveau: Add support for BLCG on Kepler1

2018-01-27 Thread Martin Peres
On 26/01/18 22:59, Lyude Paul wrote: > This enables BLCG optimization for kepler1. When using clockgating, > nvidia's firmware has a set of registers which are initially programmed > by the vbios with various engine delays and other mysterious settings > that are safe enough to bring up the GPU. Ho

Re: [PATCH v2 1/2] x86/acpi: add retrieval function for rsdp address

2018-01-27 Thread Juergen Gross
On 26/01/18 19:08, Andy Shevchenko wrote: > On Thu, Jan 25, 2018 at 4:36 PM, Juergen Gross wrote: >> Add a function to get the address of the RSDP table. Per default use a >> __weak annotated function being a nop. > > The problem with weak functions that we can't have more than one > implementati

Re: [PATCH v5 00/12] spectre variant1 mitigations for tip/x86/pti

2018-01-27 Thread Dan Williams
[ adding lkml ] I had inadvertently dropped lkml when sending this to Thomas. Archive here: https://marc.info/?l=linux-wireless&m=151704026325010&w=2 https://marc.info/?l=linux-arch&m=151704027225013&w=2 https://marc.info/?l=linux-arch&m=151704027225014&w=2 https://marc.info/?l=linux-arch&m=15170

[PATCH] IB/usnic: Delete an error message for a failed memory allocation in usnic_transport_init()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 20:06:59 +0100 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 --- drivers/infiniband/hw/usnic/usnic_transport.c | 4 +--- 1 file changed

[PATCH resend 5/6] Documentetion: cdrom: introduce CDS_DRIVE_ERROR

2018-01-27 Thread Michal Suchanek
CDS_DRIVE_NOT_READY is used for the state in which CDROM is 'becoming ready' (typically analyzing the disc) but also as the fallback when nothing else applies. Introduce CDS_DRIVE_ERROR for the fallback case. Signed-off-by: Michal Suchanek --- Documentation/cdrom/cdrom-standard.tex | 8 +++-

[PATCH] Coccinelle: memdup: drop spurious line

2018-01-27 Thread Julia Lawall
The kmemdup line in the non-patch case was left over from the added kmemdup line in the patch case. Signed-off-by: Julia Lawall --- scripts/coccinelle/api/memdup.cocci |1 - 1 file changed, 1 deletion(-) diff --git a/scripts/coccinelle/api/memdup.cocci b/scripts/coccinelle/api/memdup.cocc

[tip:x86/pti] x86/cpufeatures: Clean up Spectre v2 related CPUID flags

2018-01-27 Thread tip-bot for David Woodhouse
Commit-ID: 2961298efe1ea1b6fc0d7ee8b76018fa6c0bcef2 Gitweb: https://git.kernel.org/tip/2961298efe1ea1b6fc0d7ee8b76018fa6c0bcef2 Author: David Woodhouse AuthorDate: Sat, 27 Jan 2018 16:24:32 + Committer: Thomas Gleixner CommitDate: Sat, 27 Jan 2018 19:10:44 +0100 x86/cpufeatures: Cl

[tip:x86/pti] x86/retpoline: Simplify vmexit_fill_RSB()

2018-01-27 Thread tip-bot for Borislav Petkov
Commit-ID: 1dde7415e99933bb7293d6b2843752cbdb43ec11 Gitweb: https://git.kernel.org/tip/1dde7415e99933bb7293d6b2843752cbdb43ec11 Author: Borislav Petkov AuthorDate: Sat, 27 Jan 2018 16:24:33 + Committer: Thomas Gleixner CommitDate: Sat, 27 Jan 2018 19:10:45 +0100 x86/retpoline: Simp

[tip:x86/pti] x86/speculation: Simplify indirect_branch_prediction_barrier()

2018-01-27 Thread tip-bot for Borislav Petkov
Commit-ID: 64e16720ea0879f8ab4547e3b9758936d483909b Gitweb: https://git.kernel.org/tip/64e16720ea0879f8ab4547e3b9758936d483909b Author: Borislav Petkov AuthorDate: Sat, 27 Jan 2018 16:24:34 + Committer: Thomas Gleixner CommitDate: Sat, 27 Jan 2018 19:10:45 +0100 x86/speculation: Si

[PATCH 3/3] IB/iser: Combine substrings for three messages

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 18:25:37 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: quoted string split across lines Thus fix the affected source code places. Signed-off-by: Markus Elfring --- drivers/infiniband/ulp/iser/iser_initiator.c

[PATCH 2/3] IB/iser: Delete an unnecessary variable initialisation in iser_send_data_out()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 17:55:13 +0100 The variable "tx_desc" will be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/infiniband/ulp/iser/iser_initiator.c | 2 +- 1 file changed, 1

[PATCH 1/3] IB/iser: Delete an error message for a failed memory allocation in iser_send_data_out()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 17:48:47 +0100 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 --- drivers/infiniband/ulp/iser/iser_initiator.c | 4 +--- 1 file changed,

[PATCH 0/3] IB-iSER: Adjustments for three function implementations

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 19:02:34 +0100 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation in iser_send_data_out() Delete an unnecessary variable initialisation in is

Re: [PATCH] block: aoenet: Replace GFP_ATOMIC with GFP_KERNEL in aoenet_rcv

2018-01-27 Thread Ed Cashin
If the tool cannot tell whether the protected state is manipulated by *another* piece of code called in atomic context, then it's insufficient. > On Jan 26, 2018, at 4:37 AM, Jia-Ju Bai wrote: > > After checking all possible call chains to aoenet_rcv(), > my tool finds that aoenet_rcv() is neve

Re: [4/4] hwmon: (dell-smm) Measure time duration of SMM call around inlined asm

2018-01-27 Thread Guenter Roeck
On Sat, Jan 27, 2018 at 05:23:51PM +0100, Pali Rohár wrote: > Measure only inlined asm code, not other functions to have as precise as > possible measured time. > > Signed-off-by: Pali Rohár > --- > drivers/hwmon/dell-smm-hwmon.c | 14 ++ > 1 file changed, 10 insertions(+), 4 deletio

Re: [RFC] apparent bogosity in unregister_ftrace_function_probe_func()

2018-01-27 Thread Al Viro
On Sat, Jan 27, 2018 at 01:59:56PM +, Dmitry Safonov wrote: > > > Incidentally, shouldn't filter_parse_regex("*[ab]", 5, &s, ¬) > > end up with s = "*[ab]"? We are returning MATCH_GLOB, after all, > > so we want the entire pattern there... I would've assumed that > > this is what the code in

[PATCH resend 1/6] delay: add poll_event_interruptible

2018-01-27 Thread Michal Suchanek
Add convenience macro for polling an event that does not have a waitqueue. Signed-off-by: Michal Suchanek --- include/linux/delay.h | 12 1 file changed, 12 insertions(+) diff --git a/include/linux/delay.h b/include/linux/delay.h index b78bab4395d8..3ae9fa395628 100644 --- a/includ

[PATCH v7] Support intel-vbtn based tablet mode switch

2018-01-27 Thread Marco Martin
Some laptops such as Dell Inspiron 7000 series have the tablet mode switch implemented in Intel ACPI, the events to enter and exit the tablet mode are 0xCC and 0xCD CC: platform-driver-...@vger.kernel.org CC: Matthew Garrett CC: "Pali Rohár" CC: Darren Hart CC: Mario Limonciello CC: Andy Shevc

Re: [PATCH 0/4] hwmon: (dell-smm) Disable fan support on Inspiron 7720 and Vostro 3360

2018-01-27 Thread Oleksandr Natalenko
Hi. On sobota 27. ledna 2018 17:22:00 CET Pali Rohár wrote: > This patch series disable fan support on two machines on which is BIOS > broken. And it changes measurement of SMM calls duration. > > Oleksandr Natalenko (1): > hwmon: (dell-smm) Disable fan support for Dell Vostro 3360 > > Pali Ro

[PATCH 2/4] hwmon: (dell-smm) Disable fan support for Dell Inspiron 7720

2018-01-27 Thread Pali Rohár
Calling fan related SMM functions implemented by Dell BIOS firmware on Dell Inspiron 7720 freeze kernel for about 500ms. Until Dell fixes it we need to disable fan support for Dell Inspiron 7720 as it makes system unusable. Via "force" module param fan support can be enabled. Reported-by: vova7..

[PATCH 1/3] x86/cpufeatures: Clean up Spectre v2 related CPUID flags

2018-01-27 Thread David Woodhouse
We want to expose the hardware features simply in /proc/cpuinfo as "ibrs", "ibpb" and "stibp". Since AMD gives us separate CPUID bits for those, use them as the user-visible bits. When the Intel SPEC_CTRL bit is set which indicates both IBRS and IBPB capability, set those (AMD) bits accordingly. L

[PATCH 3/3] x86/speculation: Simplify indirect_branch_prediction_barrier()

2018-01-27 Thread David Woodhouse
From: Borislav Petkov Make it all a function which does the WRMSR instead of having a hairy inline asm. [dwmw2: export it, fix CONFIG_RETPOLINE issues] Signed-off-by: Borislav Petkov Signed-off-by: David Woodhouse --- arch/x86/include/asm/nospec-branch.h | 13 - arch/x86/include/a

[PATCH 2/3] x86/retpoline: Simplify vmexit_fill_RSB()

2018-01-27 Thread David Woodhouse
From: Borislav Petkov Simplify it to call an asm-function instead of pasting 41 insn bytes at every call site. Also, add alignment to the macro as suggested here: https://support.google.com/faqs/answer/7625886 [dwmw2: Clean up comments, let it clobber %ebx and just tell the compiler] Signed-o

[PATCH 0/3] Speculation CPU feature cleanups

2018-01-27 Thread David Woodhouse
Fix up the cpufeatures so that only the hardware features are visible in /proc/cpuinfo. as "ibpb", "ibrs" and "stibp". The virtual features, and software flags which are only in X86_FEATURE_* because that's the only way to use alternatives, get masked away. We don't *want* to show that stuff to all

[PATCH 4/4] hwmon: (dell-smm) Measure time duration of SMM call around inlined asm

2018-01-27 Thread Pali Rohár
Measure only inlined asm code, not other functions to have as precise as possible measured time. Signed-off-by: Pali Rohár --- drivers/hwmon/dell-smm-hwmon.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-sm

[PATCH 3/4] hwmon: (dell-smm) Disable fan support for Dell Vostro 3360

2018-01-27 Thread Pali Rohár
From: Oleksandr Natalenko Calling fan related SMM functions implemented by Dell BIOS firmware on Dell Vostro 3360 freeze kernel for about 500ms. Unfortunately, it is unlikely for Dell to fix this since the machine is pretty old, so this commit just disables fan support to make the system usable

[PATCH 1/4] hwmon: (dell-smm) Enable broken functionality via "force" module param

2018-01-27 Thread Pali Rohár
Some Dell machines are broken and some functionality is disabled. Show warning into dmesg about this fact and allow user via "force" module param to override brokenness and enable broken functionality. Signed-off-by: Pali Rohár --- drivers/hwmon/dell-smm-hwmon.c | 7 +-- 1 file changed, 5 in

[PATCH 0/4] hwmon: (dell-smm) Disable fan support on Inspiron 7720 and Vostro 3360

2018-01-27 Thread Pali Rohár
This patch series disable fan support on two machines on which is BIOS broken. And it changes measurement of SMM calls duration. Oleksandr Natalenko (1): hwmon: (dell-smm) Disable fan support for Dell Vostro 3360 Pali Rohár (3): hwmon: (dell-smm) Enable broken functionality via "force" module

[PATCH 2/2] Input: gamecon: Improve a size determination in gc_attach()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 16:30:58 +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 bit safer according to the Linux coding style convention. This issue was det

[PATCH 1/2] Input: gamecon: Delete an error message for a failed memory allocation in gc_attach()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 16:27:11 +0100 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 --- drivers/input/joystick/gamecon.c | 4 +--- 1 file changed, 1 insertion

Re: [PATCH v6 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-27 Thread Linus Walleij
On Tue, Jan 23, 2018 at 9:18 AM, Yong Deng wrote: > Allwinner V3s SoC features two CSI module. CSI0 is used for MIPI CSI-2 > interface and CSI1 is used for parallel interface. This is not > documented in datasheet but by test and guess. > > This patch implement a v4l2 framework driver for it. > >

[PATCH 0/2] input/joystick/gamecon: Adjustments for gc_attach()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 17:07:27 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation Improve a size determination drivers/input/joystick/gamecon.c | 6 ++ 1

Re: i8k_smm_func() takes enormous of time to execute

2018-01-27 Thread Guenter Roeck
On 01/27/2018 06:09 AM, Pali Rohár wrote: On Monday 04 December 2017 13:18:29 Pali Rohár wrote: Your last patch in bugzilla looks ok, you add my Reviewed-by: Pali Rohár Could you please advice on how to proceed further? I can submit all 3 patches (incl. yours two), to a ML. Now it is up to

Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation

2018-01-27 Thread Dave Hansen
On 01/27/2018 05:42 AM, Konrad Rzeszutek Wilk wrote: > On Fri, Jan 26, 2018 at 07:11:47PM +, Hansen, Dave wrote: >> The need for RSB stuffing in all the various scenarios and what the heck it >> actually mitigates is freakishly complicated. I've tried to write it all >> down in one place: ht

Re: [PATCH v6 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-27 Thread kbuild test robot
Hi Yong, I love your patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.15-rc9 next-20180126] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/c

Re: [RESEND PATCH 3/6] ARM: dts: imx7s: add CAAM device node

2018-01-27 Thread kbuild test robot
://github.com/0day-ci/linux/commits/Bryan-O-Donoghue/Enable-CAAM-on-i-MX7s-fix-TrustZone-issues/20180127-185422 base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git master config: arm-u8500_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11

[PATCH resend 3/6] cdrom: wait for tray to close

2018-01-27 Thread Michal Suchanek
The scsi command to close tray only starts the motor and does not wait for the tray to close. Wait until the state chages from TRAY_OPEN so users do not race with the tray closing. This looks like inifinte wait but unless the drive is broken it either closes the tray within a few seconds or report

Re: [lkp-robot] [tools/bpf] 8c417dc15f: BUG:sleeping_function_called_from_invalid_context_at_mm/slab.h

2018-01-27 Thread Yonghong Song
Thanks for reporting. This issue has been fixed by the below commit in bpf-next repo, which is waiting to be pulled into net-next. = commit 2310035fa03f651dd5b03f19a26a97512aa8842c Author: Yonghong Song Date: Mon Jan 22 22:53:51 2018 -0800 bpf: fix incorrect kmalloc usage in lpm_tr

Re: [PATCH] ARM: dts: imx25-pinfunc: Always set SION for SD CMD

2018-01-27 Thread Uwe Kleine-König
On Sat, Jan 27, 2018 at 01:07:52AM +0100, Benoît Thébaudeau wrote: > The eSDHC does not work properly if the SION bit is not set for the > bidirectional CMD signal, whatever the eSDHC instance and the selected > pad. Therefore, setting SION is mandatory for all eSDHC CMD ports. Do > this for MX25_P

Re: [PATCH] x86: Mark hpa as a "Designated Reviewer" for the time being

2018-01-27 Thread Thomas Gleixner
Peter! On Thu, 25 Jan 2018, H. Peter Anvin wrote: > Due to some unfortunate events, I have not been directly involved in > the x86 kernel patch flow for a while now. I have also not been able > to ramp back up by now like I had hoped to, and after reviewing what I > will need to work on both int

[tip:x86/urgent] x86: Mark hpa as a "Designated Reviewer" for the time being

2018-01-27 Thread tip-bot for H. Peter Anvin
Commit-ID: 8a95b74d50825067fb6c8af7f9db03e711b1cb9d Gitweb: https://git.kernel.org/tip/8a95b74d50825067fb6c8af7f9db03e711b1cb9d Author: H. Peter Anvin AuthorDate: Thu, 25 Jan 2018 11:59:34 -0800 Committer: Ingo Molnar CommitDate: Sat, 27 Jan 2018 10:11:00 +0100 x86: Mark hpa as a "Desi

Re: [PATCH] firmware: tegra: adjust tested variable

2018-01-27 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen On 01/27/2018 04:28 PM, Julia Lawall wrote: Check the variable that was most recently initialized. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression x, y, f, g, e, m; statement S1,S2,S3,S4; @@ x = f(...); if

[PATCH 2/2] Input: turbografx: Improve a size determination in tgfx_attach()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 15:46:24 +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 bit safer according to the Linux coding style convention. This issue was det

[PATCH 1/2] Input: turbografx: Delete an error message for a failed memory allocation in tgfx_attach()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 15:43:38 +0100 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 --- drivers/input/joystick/turbografx.c | 4 +--- 1 file changed, 1 insert

[PATCH 0/2] Input-TurboGraFX: Adjustments for tgfx_attach()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 15:55:44 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation Improve a size determination drivers/input/joystick/turbografx.c | 6 ++

[PATCH] firmware: tegra: adjust tested variable

2018-01-27 Thread Julia Lawall
Check the variable that was most recently initialized. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression x, y, f, g, e, m; statement S1,S2,S3,S4; @@ x = f(...); if (\(<+...x...+>\&e\)) S1 else S2 ( x = g(...); | m = g(...,&x,...); | y = g(..

[PATCH] drm/radeon: adjust tested variable

2018-01-27 Thread Julia Lawall
Check the variable that was most recently initialized. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression x, y, f, g, e, m; statement S1,S2,S3,S4; @@ x = f(...); if (\(<+...x...+>\&e\)) S1 else S2 ( x = g(...); | m = g(...,&x,...); | y = g(..

Re: [PATCH 0/4] PCI: Add SPDX tags

2018-01-27 Thread Greg Kroah-Hartman
On Fri, Jan 26, 2018 at 03:32:17PM -0600, Bjorn Helgaas wrote: > b24413180f56 ("License cleanup: add SPDX GPL-2.0 license identifier to > files with no license") added SPDX GPL-2.0 tags to several PCI files. > > These patches add SPDX tags to almost all remaining PCI files. For ease of > reviewin

Re: [PATCH v10 12/15] platform/x86: dell-smbios: Add filtering support

2018-01-27 Thread Pali Rohár
On Friday 05 January 2018 14:48:39 mario.limoncie...@dell.com wrote: > > > > -Original Message- > > From: platform-driver-x86-ow...@vger.kernel.org [mailto:platform-driver-x86- > > ow...@vger.kernel.org] On Behalf Of Pali Rohár > > Sent: Friday, January 5, 2018 8:44 AM > > To: Limonciello

Re: [PATCH v12 10/16] platform/x86: dell-smbios: Introduce dispatcher for SMM calls

2018-01-27 Thread Pali Rohár
Hi! On Wednesday 01 November 2017 14:25:31 Mario Limonciello wrote: > This splits up the dell-smbios driver into two drivers: > * dell-smbios > * dell-smbios-smm > > dell-smbios can operate with multiple different dispatcher drivers to > perform SMBIOS operations. > > Also modify the interface t

[PATCH v2 5/5] ALSA: emu10k1: add a IOMMU workaround

2018-01-27 Thread Maciej S. Szmigiero
The Audigy 2 CA0102 chip (but most likely others from the emu10k1 family, too) has a problem that from time to time it likes to do few DMA reads a bit beyond its normal allocation and gets very confused if these reads get blocked by a IOMMU. For the first (reserved) page this happens multiple time

  1   2   >