Re: [PATCH 2/2] can: m_can: add deep Suspend/Resume support

2017-05-03 Thread Marc Kleine-Budde
On 05/03/2017 02:28 PM, Quentin Schulz wrote: > Hi Marc, > > On 03/05/2017 14:16, Marc Kleine-Budde wrote: >> On 05/03/2017 02:11 PM, Quentin Schulz wrote: >>> This adds Power Management deep Suspend/Resume support for Bosch M_CAN >>> chip. >>> >>> When the chip resumes from deep sleep, the RAM

Re: [tpmdd-devel] [PATCH 2/3] tpm: move ordinals definition to include/linux/tpm_command.h

2017-05-03 Thread Jarkko Sakkinen
On Tue, May 02, 2017 at 02:31:50PM +0200, Roberto Sassu wrote: > Move definition from tpm-interface.c to tpm_command.h, so that there is > no duplication. Also convert the ordinals in the tpm_input_header > declarations. > > With the previous and this patch it will now be possible to convert TPM

Re: linux-next: build warning after merge of the devicetree tree

2017-05-03 Thread Stephen Rothwell
Hi Rob, On Wed, 3 May 2017 07:12:27 -0500 Rob Herring wrote: > > Sorry, forgot to push out the fix. Now done. Thanks. -- Cheers, Stephen Rothwell

Re: [PATCH 0/3] GPU-DRM-Radeon: Fine-tuning for three function implementations

2017-05-03 Thread Christian König
Am 02.05.2017 um 22:04 schrieb SF Markus Elfring: From: Markus Elfring Date: Tue, 2 May 2017 22:00:02 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Use seq_putc() in radeon_sa_bo_dump_debug_info() Use seq_puts() in

Re: [PATCH] netfilter: conntrack: Force inlining of build check to prevent build failure

2017-05-03 Thread Geert Uytterhoeven
Hi Arnd, On Wed, May 3, 2017 at 2:32 PM, Arnd Bergmann wrote: > On Wed, May 3, 2017 at 2:18 PM, Geert Uytterhoeven > wrote: >> If gcc (e.g. 4.1.2) decides not to inline total_extension_size(), the >> build will fail with: >> >> net/built-in.o: In function `nf_conntrack_init_start': >>

Re: [tpmdd-devel] [PATCH 2/3] tpm: move ordinals definition to include/linux/tpm_command.h

2017-05-03 Thread Jarkko Sakkinen
On Tue, May 02, 2017 at 02:31:50PM +0200, Roberto Sassu wrote: > Move definition from tpm-interface.c to tpm_command.h, so that there is > no duplication. Also convert the ordinals in the tpm_input_header > declarations. > > With the previous and this patch it will now be possible to convert TPM

Re: [PATCH 3/3] tpm: move TPM 1.2 code of tpm_pcr_extend() to tpm1_pcr_extend()

2017-05-03 Thread Jarkko Sakkinen
On Tue, May 02, 2017 at 02:31:51PM +0200, Roberto Sassu wrote: > In preparation of the modifications to tpm_pcr_extend(), which will > allow callers to supply a digest for each PCR bank of a TPM 2.0, > the TPM 1.2 specific code has been moved to tpm1_pcr_extend(). > > tpm1_pcr_extend() uses

Re: [PATCH 1/3] arm64: hugetlb: Fix huge_pte_offset to return poisoned page table entries

2017-05-03 Thread Catalin Marinas
On Wed, Apr 12, 2017 at 03:04:57PM +0100, Punit Agrawal wrote: > When memory failure is enabled, a poisoned hugepage pte is marked as a > swap entry. huge_pte_offset() does not return the poisoned page table > entries when it encounters PUD/PMD hugepages. > > This behaviour of huge_pte_offset()

Re: [v10, 2/2] Documentation/ABI: Add ABI information for QCOM socinfo driver

2017-05-03 Thread Imran Khan
On 5/2/2017 4:17 AM, Bjorn Andersson wrote: > On Mon 01 May 06:07 PDT 2017, Imran Khan wrote: > >> On 4/26/2017 4:38 AM, Bjorn Andersson wrote: >>> On Tue 25 Apr 10:13 PDT 2017, Rob Herring wrote: >>> On Mon, Apr 24, 2017 at 6:05 PM, Bjorn Andersson wrote: > On Mon 24 Apr 09:27 PDT

Re: [PATCH v2 1/20] clk: divider: Make divider_round_rate take the parent clock

2017-05-03 Thread Chen-Yu Tsai
On Wed, May 3, 2017 at 7:59 PM, Maxime Ripard wrote: > So far, divider_round_rate only considers the parent clock returned by > clk_hw_get_parent. > > This works fine on clocks that have a single parents, this doesn't work on > muxes, since we will only consider the first parent, while other

Re: [PATCH] netfilter: conntrack: Force inlining of build check to prevent build failure

2017-05-03 Thread Arnd Bergmann
On Wed, May 3, 2017 at 2:47 PM, Geert Uytterhoeven wrote: > Hi Arnd, > > On Wed, May 3, 2017 at 2:32 PM, Arnd Bergmann wrote: >> On Wed, May 3, 2017 at 2:18 PM, Geert Uytterhoeven >> wrote: >>> If gcc (e.g. 4.1.2) decides not to inline total_extension_size(), the >>> build will fail with: >>>

[PATCH] brd: fix uninitialized use of brd->dax_dev

2017-05-03 Thread Gerald Schaefer
commit 1647b9b9 "brd: add dax_operations support" introduced the allocation and freeing of a dax_device, but the allocated dax_device is not stored into the brd_device, so brd_del_one() will eventually operate on an uninitialized brd->dax_dev. Fix this by storing the allocated dax_device to

Re: x86: warning: kernel stack regs has bad 'bp' value

2017-05-03 Thread Andrey Konovalov
On Wed, May 3, 2017 at 2:48 PM, Andrey Konovalov wrote: > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > On commit 89c9fea3c8034cdb2fd745f551cde0b507fd6893 (4.11.0+). > > A reproducer and .config are attached. > > The reproducer open SCTP sockets and

Re: [RFC v3 03/17] mm: Introduce pte_spinlock

2017-05-03 Thread Laurent Dufour
On 30/04/2017 06:47, Matthew Wilcox wrote: > On Thu, Apr 27, 2017 at 05:52:42PM +0200, Laurent Dufour wrote: >> +++ b/mm/memory.c >> @@ -2100,6 +2100,13 @@ static inline void wp_page_reuse(struct vm_fault *vmf) >> pte_unmap_unlock(vmf->pte, vmf->ptl); >> } >> >> +static bool

Re: [PATCH] mm, vmalloc: properly track vmalloc users

2017-05-03 Thread Michal Hocko
s applied to the wrong git tree, please drop us a note to > > help improve the system] > > > > url: > > https://github.com/0day-ci/linux/commits/Michal-Hocko/mm-vmalloc-properly-track-vmalloc-users/20170503-065022 > > base: git://git.cmpxchg.org/linux-mmot

Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg

2017-05-03 Thread Peter Zijlstra
On Wed, May 03, 2017 at 12:37:37PM +0200, Vincent Guittot wrote: > On 3 May 2017 at 11:37, Peter Zijlstra wrote: > > Of course, it could be I overlooked something, in which case, please > > tell :-) > > That's mainly based on the regression i see on my platform. I haven't > find the root cause

Re: [PATCH 1/2] kvm: Fix mmu_notifier release race

2017-05-03 Thread Suzuki K Poulose
On 28/04/17 18:20, Suzuki K Poulose wrote: On 26/04/17 17:03, Suzuki K Poulose wrote: On 25/04/17 19:49, Radim Krčmář wrote: 2017-04-24 11:10+0100, Suzuki K Poulose: The KVM uses mmu_notifier (wherever available) to keep track of the changes to the mm of the guest. The guest shadow page

Re: [PATCH] iommu/arm-smmu-v3: Poll for CMDQ drain completion more effectively

2017-05-03 Thread Sunil Kovvuri
On Thu, Apr 27, 2017 at 4:43 PM, wrote: > From: Sunil Goutham > > Modified polling on CMDQ consumer similar to how polling is done for TLB SYNC > completion in SMMUv2 driver. Code changes are done with reference to > > 8513c8930069 iommu/arm-smmu: Poll for TLB sync completion more effectively >

Re: [PATCH v2 0/5] mtd: nand: gpmi: add i.MX 7 support

2017-05-03 Thread Shawn Guo
On Fri, Apr 21, 2017 at 06:23:33PM -0700, Stefan Agner wrote: > This patchset adds support for i.MX 7 SoC for the GPMI NAND controller. > There have been similar patchsets already: > https://lkml.org/lkml/2016/2/23/912 > > However, this patchset does not make use of any of the new features. > The

Re: [RFC] Increase Minimal GNU Make version for Linux Kernel from 3.80 to 3.81

2017-05-03 Thread Michal Marek
On 2017-05-03 08:46, Masahiro Yamada wrote: > Hello Linus and Kbuild developers. > > > Documentation/process/changes.rst says the minimal version > of GNU Make is 3.80, but actually building the kernel > with this version has been broken for a long time. > > Specifically, it got broken by

Re: x86: warning: kernel stack regs has bad 'bp' value

2017-05-03 Thread Josh Poimboeuf
On Wed, May 03, 2017 at 02:48:28PM +0200, Andrey Konovalov wrote: > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > On commit 89c9fea3c8034cdb2fd745f551cde0b507fd6893 (4.11.0+). > > A reproducer and .config are attached. > > The reproducer open SCTP

[PATCH] sched/cpufreq_schedutil: use now as reference when aggregating shared policy requests

2017-05-03 Thread Juri Lelli
Currently, sugov_next_freq_shared() uses last_freq_update_time as a reference to decide when to start considering CPU contributions as stale. However, since last_freq_update_time is set by the last CPU that issued a frequency transition, this might cause problems in certain cases. In practice,

Re: [RFC] Increase Minimal GNU Make version for Linux Kernel from 3.80 to 3.81

2017-05-03 Thread Jan Beulich
>>> On 03.05.17 at 15:29, wrote: > On 2017-05-03 08:46, Masahiro Yamada wrote: >> Hello Linus and Kbuild developers. >> >> >> Documentation/process/changes.rst says the minimal version >> of GNU Make is 3.80, but actually building the kernel >> with this version has been broken for a long time.

Re: [PATCH V5 7/7] ARM: ZTE: Use - instead of @ for DT OPP entries

2017-05-03 Thread Shawn Guo
On Thu, Apr 20, 2017 at 04:25:11PM +0530, Viresh Kumar wrote: > Compiling the DT file with W=1, DTC warns like follows: > > Warning (unit_address_vs_reg): Node /opp_table0/opp@10 has a > unit name, but no reg property > > Fix this by replacing '@' with '-' as the OPP nodes will never

[PATCH] media: dvb-frontends: drx39xyj: remove obsolete sign extend macros

2017-05-03 Thread Martin Kepplinger
DRX_S9TOS16 and DRX_S24TODRXFREQ are simply not used. Furthermore, sign_extend32() should be used for sign extension. (Also, the comment describing DRX_S24TODRXFREQ was wrong). So remove these macros. Signed-off-by: Martin Kepplinger --- drivers/media/dvb-frontends/drx39xyj/drx_driver.h | 13

Re: [RFC PATCH 0/4] PM / Domains: Add support for explicit control of PM domains

2017-05-03 Thread Ulf Hansson
On 3 May 2017 at 10:32, Jon Hunter wrote: > > On 03/05/17 09:12, Ulf Hansson wrote: >> Rafael, Jon, >> >> On 2 May 2017 at 23:51, Rafael J. Wysocki wrote: >>> On Tuesday, May 02, 2017 11:10:29 AM Jon Hunter wrote: On 25/04/17 22:17, Rafael J. Wysocki wrote: > On Tue, Apr 25, 2017

Re: [PATCH v8 05/10] media: venus: adding core part and helper functions

2017-05-03 Thread Jordan Crouse
On Tue, May 02, 2017 at 12:17:20PM +0300, Stanimir Varbanov wrote: > Hi, > > On 04/29/2017 11:22 PM, Bjorn Andersson wrote: > > On Fri 28 Apr 15:02 PDT 2017, Jordan Crouse wrote: > > > >> On Fri, Apr 28, 2017 at 12:13:52PM +0300, Stanimir Varbanov wrote: > >>> +int venus_boot(struct device

[PATCH] net/sched: remove redundant null check on head

2017-05-03 Thread Colin King
From: Colin Ian King head is previously null checked and so the 2nd null check on head is redundant and therefore can be removed. Detected by CoverityScan, CID#1399505 ("Logically dead code") Signed-off-by: Colin Ian King --- net/sched/cls_matchall.c | 3 +-- 1 file changed, 1 insertion(+),

[PATCH] ASoC: da7218: Fix incorrect usage of bitwise '&' operator for SRM check

2017-05-03 Thread Adam Thomson
In the SRM lock check section of code the '&' bitwise operator is used as part of checking lock status. Functionally the code works as intended, but the conditional statement is a boolean comparison so should really use '&&' logical operator instead. This commit rectifies this discrepancy.

Re: [PATCH 1/1] ARM: dts: dra7: Reduce cpu thermal shutdown temperature

2017-05-03 Thread Ravikumar
Hi, On Wednesday 12 April 2017 11:54 AM, Kattekola, Ravikumar wrote: On dra7, as per TRM, the HW shutdown (TSHUT) temperature is hardcoded to 123C and cannot be modified by SW. This means when the temperature reaches 123C HW asserts TSHUT output which signals a warm reset. This reset is held

Re: [PATCH] netfilter: conntrack: Force inlining of build check to prevent build failure

2017-05-03 Thread David Miller
From: Geert Uytterhoeven Date: Wed, 3 May 2017 14:18:43 +0200 > If gcc (e.g. 4.1.2) decides not to inline total_extension_size(), the > build will fail with: > > net/built-in.o: In function `nf_conntrack_init_start': > (.text+0x9baf6): undefined reference to `__compiletime_assert_1893'

Re: [PATCH] test_bpf: Use ULL suffix for 64-bit constants

2017-05-03 Thread David Miller
From: Geert Uytterhoeven Date: Wed, 3 May 2017 13:31:04 +0200 > On 32-bit: > > lib/test_bpf.c:4772: warning: integer constant is too large for ‘unsigned > long’ type > lib/test_bpf.c:4772: warning: integer constant is too large for ‘unsigned > long’ type > lib/test_bpf.c:4773:

[PATCH 0/2] ASoC: sunxi: Add ADC support for A33

2017-05-03 Thread Mylène Josserand
Hello everyone, This is a first version of a serie to add ADC support for Sun8i-A33. Based on asoc/for-next branch, last commit: 20d5c84bef067b7e804a163e2abca16c47125bad. The first patch adds the support of ADC and microphones in the digital part (driver sun8i-codec). The second one adds the

[PATCH 2/2] ARM: dts: sun8i: Add ADC routing

2017-05-03 Thread Mylène Josserand
Add the ADC route between the analog and the digital parts of sun8i A33. Configure the MIC1 to use MBIAS and MIC2 to use HBIAS. Signed-off-by: Mylène Josserand --- arch/arm/boot/dts/sun8i-a33.dtsi | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git

[PATCH 1/2] ASoC: sun8i-codec: Add ADC support for a33

2017-05-03 Thread Mylène Josserand
Add ADC support for the sun8i-codec driver. This driver uses all the microphones widgets and routes provided by the analog part (sun8i-codec-analog). Some digital configurations are needed by creating new ADC widgets and routes. Signed-off-by: Mylène Josserand --- sound/soc/sunxi/sun8i-codec.c

Re: [PATCH] ARM: dts: imx6sx-sdb: Remove cpufreq OPP override

2017-05-03 Thread Shawn Guo
On Tue, Apr 25, 2017 at 07:28:06PM +0200, Marek Vasut wrote: > On 04/25/2017 07:23 PM, Leonard Crestez wrote: > > Anyway, that version also sets the supply for reg_arm and reg_soc. It > > is not necessary for fixing the crash I'm seeing but is good because it > > will result in the minimum voltage

[PATCH 05/10] perf ui gtk: Move gtk .so name to the only place where it is used

2017-05-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo No need to pollute util.h with this. Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/n/tip-kec0chbdtgrd71o3oi2kz...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/ui/setup.c | 3 +++ tools/perf/util/util.h | 2 -- 2 files

[PATCH 10/10] perf config: Refactor a duplicated code for obtaining config file name

2017-05-03 Thread Arnaldo Carvalho de Melo
From: Taeung Song We were doing the same sequence to figure out what is the config pathname to use, fix it by doing it before those two uses. Signed-off-by: Taeung Song Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/r/1493209268-5543-2-git-send-email-treeze.tae...@gmail.com

[PATCH 08/10] perf symbols: Accept symbols starting at address 0

2017-05-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo That is the case of _text on s390, and we have some functions that return an address, using address zero to report problems, oops. This would lead the symbol loading routines to not use "_text" as the reference relocation symbol, or the first symbol for the

[PATCH 07/10] tools lib string: Adopt prefixcmp() from perf and subcmd

2017-05-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Both had copies originating from git.git, move those to tools/lib/string.c, getting both tools/lib/subcmd/ and tools/perf/ to use it. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Josh Poimboeuf Cc: Namhyung Kim Cc: Wang Nan Link:

[PATCH 03/10] perf memswap: Split the byteswap memory range wrappers from util.[ch]

2017-05-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Just one more step into splitting util.[ch] to reduce the includes hell. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-navarr9mijkgwgbzu464d...@git.kernel.org Signed-off-by: Arnaldo Carvalho

[PATCH 04/10] perf tools: Move HAS_BOOL define to where perl headers are used

2017-05-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo This is a perl specific hack, so move it from util.h to where perl headers are used. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-4igctbinuom2sr6g4b03j...@git.kernel.org Signed-off-by:

[PATCH 06/10] perf units: Move parse_tag_value() to units.[ch]

2017-05-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Its basically to do units handling, so move to a more appropriately named object. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-90ob9vfepui24l8l2makh...@git.kernel.org Signed-off-by: Arnaldo

Re: [PATCH] tracing: Resolve stack corruption due to string copy

2017-05-03 Thread Steven Rostedt
On Wed, 3 May 2017 15:41:14 +0530 Amit Pundir wrote: > From: Amey Telawane > > Strcpy has no limit on string being copied which causes > stack corruption leading to kernel panic. Use strlcpy to > resolve the issue by providing length of string to be copied. > > Cc: sta...@vger.kernel.org >

[PATCH 01/10] perf buildid: Move prototypes from util.h to build-id.h

2017-05-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Where they belong. Link: http://lkml.kernel.org/n/tip-94m3dziejxgo7k0488q3m...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/sdt.c | 1 - tools/perf/util/build-id.h | 4 tools/perf/util/util.h | 3 --- 3 files changed,

[PATCH 02/10] perf tools: Move event prototypes from util.h to event.h

2017-05-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo More needs to be done to have the actual functions and variables in a smaller .c file that can then be included in the python binding, avoiding dragging more stuff into it. Link: http://lkml.kernel.org/n/tip-uecxz7cqkssouj7tlxrkq...@git.kernel.org Signed-off-by:

[GIT PULL 00/10] perf/core improvements and fixes

2017-05-03 Thread Arnaldo Carvalho de Melo
into perf/core (2017-04-24 23:31:35 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-4.12-20170503 for you to fetch changes up to 4341ec6b3db4c3e903d6c44958722918baec1e59: perf config: Refactor a duplicated

[PATCH 09/10] perf symbols: Allow user probes on versioned symbols

2017-05-03 Thread Arnaldo Carvalho de Melo
From: Paul Clarke Symbol versioning, as in glibc, results in symbols being defined as: @[@] (Note that "@@" identifies a default symbol, if the symbol name is repeated.) perf is currently unable to deal with this, and is unable to create user probes at such symbols: -- $ nm

Hello My name is Casperina Litaay. I suffer from throat cancer, I am childless. I plan to make a donation of my property because I am sick and my doctor told me that I would not survive the next two m

2017-05-03 Thread Casperina Litaay

Re: [PATCH 0/2] ASoC: sunxi: Add ADC support for A33

2017-05-03 Thread Mylene Josserand
Hello, On 03/05/2017 15:56, Mylène Josserand wrote: Hello everyone, This is a first version of a serie to add ADC support for Sun8i-A33. Based on asoc/for-next branch, last commit: 20d5c84bef067b7e804a163e2abca16c47125bad. The first patch adds the support of ADC and microphones in the digital

[PATCH] tracing: Use strlcpy() instead of strcpy() in __trace_find_cmdline() (Was: Re: [PATCH] tracing: Resolve stack corruption due to string copy)

2017-05-03 Thread Steven Rostedt
[ Here's the new patch ] From: Amey Telawane Strcpy is inherently not safe, and strlcpy() should be used instead. __trace_find_cmdline() uses strcpy() because the comms saved must have a terminating nul character, but it doesn't hurt to add the extra protection of using strlcpy() instead of

Re: [PATCH] ASoC: da7218: Fix incorrect usage of bitwise '&' operator for SRM check

2017-05-03 Thread Takashi Sakamoto
On May 3 2017 22:54, Adam Thomson wrote: > In the SRM lock check section of code the '&' bitwise operator is > used as part of checking lock status. Functionally the code works > as intended, but the conditional statement is a boolean comparison > so should really use '&&' logical operator

Re: [PATCH] netfilter: conntrack: Force inlining of build check to prevent build failure

2017-05-03 Thread Pablo Neira Ayuso
On Wed, May 03, 2017 at 09:55:16AM -0400, David Miller wrote: > From: Geert Uytterhoeven > Date: Wed, 3 May 2017 14:18:43 +0200 > > > If gcc (e.g. 4.1.2) decides not to inline total_extension_size(), the > > build will fail with: > > > > net/built-in.o: In function

Re: [PATCH] arm64: Do not leave an invalid area->pages pointer in dma_common_contiguous_remap()

2017-05-03 Thread Catalin Marinas
On Wed, May 03, 2017 at 01:10:26PM +0100, Robin Murphy wrote: > On 25/04/17 19:22, Catalin Marinas wrote: > > The dma_common_pages_remap() function allocates a vm_struct object and > > initialises the pages pointer to value passed as argument. However, when > > this function is called

Re: [PATCH] ARM: imx_v6_v7_defconfig: Enable cpufreq governors

2017-05-03 Thread Shawn Guo
On Tue, May 02, 2017 at 05:46:00PM +0300, Leonard Crestez wrote: > Enable more common cpufreq governors in imx defconfig because this is > very useful for testing. In particular you can't use cpufreq-set -f > $FREQ without explicitly defining CONFIG_CPU_FREQ_GOV_USERSPACE=y. > > Signed-off-by:

Re: [PATCH] net/sched: remove redundant null check on head

2017-05-03 Thread Jiri Pirko
Wed, May 03, 2017 at 03:50:40PM CEST, colin.k...@canonical.com wrote: >From: Colin Ian King > >head is previously null checked and so the 2nd null check on head >is redundant and therefore can be removed. > >Detected by CoverityScan, CID#1399505 ("Logically dead code") > >Signed-off-by: Colin Ian

Re: [PATCH 1/2] drm: Introduce crtc->mode_valid() callback

2017-05-03 Thread Jose Abreu
Hi Daniel, On 03-05-2017 07:19, Daniel Vetter wrote: > On Tue, May 2, 2017 at 11:29 AM, Jose Abreu wrote: >> On 02-05-2017 09:48, Daniel Vetter wrote: >>> On Wed, Apr 26, 2017 at 11:48:34AM +0100, Jose Abreu wrote: Some crtc's may have restrictions in the mode they can display. In

[RFC PATCH v2 0/9] debugfs: per-file removal protection

2017-05-03 Thread Nicolai Stange
Hello Greg, this is the second attempt to implement debugfs file removal protection at file granularity. The first one can be found at [1]. Note that I left out the IB/hfi1 people from the get_maintainer list and thus, sent this in RFC mode only because the following still needs to get sorted

[RFC PATCH v2 3/9] debugfs: debugfs_real_fops(): drop __must_hold sparse annotation

2017-05-03 Thread Nicolai Stange
Currently, debugfs_real_fops() is annotated with a __must_hold(_srcu) sparse annotation. With the conversion of the SRCU based protection of users against concurrent file removals to a per-file refcount based scheme, this becomes wrong. Drop this annotation. Signed-off-by: Nicolai Stange ---

[RFC PATCH v2 6/9] debugfs: purge obsolete SRCU based removal protection

2017-05-03 Thread Nicolai Stange
Purge the SRCU based file removal race protection in favour of the new, refcount based debugfs_file_get()/debugfs_file_put() API. Fixes: 49d200deaa68 ("debugfs: prevent access to removed files' private data") Signed-off-by: Nicolai Stange --- fs/debugfs/file.c | 48

[RFC PATCH v2 5/9] IB/hfi1: convert to debugfs_file_get() and -put()

2017-05-03 Thread Nicolai Stange
Convert all calls to the now obsolete debugfs_use_file_start() and debugfs_use_file_finish() to the new debugfs_file_get() and debugfs_file_put() API. Fixes: 49d200deaa68 ("debugfs: prevent access to removed files' private data") Signed-off-by: Nicolai Stange ---

[RFC PATCH v2 4/9] debugfs: convert to debugfs_file_get() and -put()

2017-05-03 Thread Nicolai Stange
Convert all calls to the now obsolete debugfs_use_file_start() and debugfs_use_file_finish() from the debugfs core itself to the new debugfs_file_get() and debugfs_file_put() API. Fixes: 49d200deaa68 ("debugfs: prevent access to removed files' private data") Signed-off-by:

[RFC PATCH v2 2/9] debugfs: implement per-file removal protection

2017-05-03 Thread Nicolai Stange
Since commit 49d200deaa68 ("debugfs: prevent access to removed files' private data"), accesses to a file's private data are protected from concurrent removal by covering all file_operations with a SRCU read section and sychronizing with those before returning from debugfs_remove() by means of

[PATCHv2 0/2] kvm: arm/arm64: Fixes for race conditions

2017-05-03 Thread Suzuki K Poulose
These two patches fixes race conditions in the stage2 page table handling of the KVM on arm/arm64. Applies on next-20170503. Changes since v1: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-April/502867.html - Dropped patch for fixing mmu_notifier race condition, which couldn't

[RFC PATCH v2 9/9] debugfs: free debugfs_fsdata instances

2017-05-03 Thread Nicolai Stange
Currently, a dentry's debugfs_fsdata instance is allocated from debugfs_file_get() at first usage, i.e. at first file opening. It won't ever get freed though. Ideally, these instances would get freed after the last open file handle gets closed again, that is from the fops' ->release().

[RFC PATCH v2 8/9] debugfs: defer debugfs_fsdata allocation to first usage

2017-05-03 Thread Nicolai Stange
Currently, __debugfs_create_file allocates one struct debugfs_fsdata instance for every file created. However, there are potentially many debugfs file around, most of which are never touched by userspace. Thus, defer the allocations to the first usage, i.e. to the first debugfs_file_get(). A

[GIT PULL] Audit patches for v4.12

2017-05-03 Thread Paul Moore
Hi Linus, Fourteen audit patches for v4.12 that span the full range of fixes, new features, and internal cleanups. We have a patches to move to 64-bit timestamps, convert refcounts from atomic_t to refcount_t, track PIDs using the pid struct instead of pid_t, convert our own private audit buffer

[PATCH 1/2] kvm: arm/arm64: Fix race in resetting stage2 PGD

2017-05-03 Thread Suzuki K Poulose
In kvm_free_stage2_pgd() we check the stage2 PGD before holding the lock and proceed to take the lock if it is valid. And we unmap the page tables, followed by releasing the lock. We reset the PGD only after dropping this lock, which could cause a race condition where another thread waiting on or

[RFC PATCH v2 7/9] debugfs: call debugfs_real_fops() only after debugfs_file_get()

2017-05-03 Thread Nicolai Stange
The current implementation of debugfs_real_fops() relies on a debugfs_fsdata instance to be installed at ->d_fsdata. With future patches introducing lazy allocation of these, this requirement will be guaranteed to be fullfilled only inbetween a debugfs_file_get()/debugfs_file_put() pair. The

[PATCH 2/2] kvm: arm/arm64: Fix use after free of stage2 page table

2017-05-03 Thread Suzuki K Poulose
We yield the kvm->mmu_lock occassionaly while performing an operation (e.g, unmap or permission changes) on a large area of stage2 mappings. However this could possibly cause another thread to clear and free up the stage2 page tables while we were waiting for regaining the lock and thus the

RE: [PATCH] ASoC: da7218: Fix incorrect usage of bitwise '&' operator for SRM check

2017-05-03 Thread Adam Thomson
On 03 May 2017 15:10, Takashi Sakamoto wrote: > On May 3 2017 22:54, Adam Thomson wrote: > > In the SRM lock check section of code the '&' bitwise operator is > > used as part of checking lock status. Functionally the code works > > as intended, but the conditional statement is a boolean

Re: [PATCH v4] fpga manager: Add Altera CvP driver

2017-05-03 Thread Alan Tull
On Tue, May 2, 2017 at 7:14 PM, Anatolij Gustschin wrote: > On Wed, 3 May 2017 00:28:17 +0300 > Andy Shevchenko andy.shevche...@gmail.com wrote: > ... Is 0xff a mask here? (Btw, you missed spaces around <<) >>> >>> yes, it is. Will add spaces (checkpatch didn't warn here). >> >>Then it makes

[RFC PATCH v2 1/9] debugfs: add support for more elaborate ->d_fsdata

2017-05-03 Thread Nicolai Stange
Currently, the user provided fops, "real_fops", are stored directly into ->d_fsdata. In order to be able to store more per-file state and thus prepare for more granular file removal protection, wrap the real_fops into a dynamically allocated container struct, debugfs_fsdata. A struct

[PATCHv2 0/4] Motorola Droid 4: Add WL1285C support

2017-05-03 Thread Sebastian Reichel
Hi, Motorola Droid 4 uses a WL1285C, as visible on iFixit [0]. This fixes the DT file to use correct compatible for the wifi node and adds the bluetooth node. [0] https://www.ifixit.com/Teardown/Motorola+Droid+4+Teardown/7759#s31961 Changes to PATCHv1: - use proper compatible value for

[PATCHv2 4/4] ARM: dts: omap4-droid4: Add bluetooth

2017-05-03 Thread Sebastian Reichel
Droid 4 has WL 1285C connected to the OMAP's UART4 port, which is used for Bluetooth and most likely can also be used for controlling the FM radio and GPS receivers. Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/omap4-droid4-xt894.dts | 20 1 file changed, 20

[PATCHv2 2/4] ARM: dts: omap4-droid4: Use wl1285 for wifi compatible

2017-05-03 Thread Sebastian Reichel
The Motorola Droid 4 uses a WL 1285C, so let's use correct compatible value instead of relying on WL 1283 being very similar. Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/omap4-droid4-xt894.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCHv2 3/4] Bluetooth: hci_ll: Add compatible values for more WL chips

2017-05-03 Thread Sebastian Reichel
Add compatible values for WiLink chips from 128x and 180x series. Also the DT binding already contained compatible values for the 127x series, but the driver did not. This brings the list on par with the list from wlcore (the wifi driver). Signed-off-by: Sebastian Reichel ---

Re: [linux-sunxi] Designware UART bug

2017-05-03 Thread Tim Kryger
On Wed, May 3, 2017 at 4:26 AM, Olliver Schinagl wrote: > Hey Chen-Yu > > On 03-05-17 12:40, Chen-Yu Tsai wrote: >> >> On Wed, May 3, 2017 at 6:17 PM, Olliver Schinagl >> wrote: >>> >>> Hey Jamie, >>> >>> Several years ago you wrote the glue-code [0] for the DW 8250 IP. Over >>> the >>> years

[PATCHv2 1/4] wlcore: add wl1285 compatible

2017-05-03 Thread Sebastian Reichel
Motorola Droid 4 uses a WL 1285C. With differences between chips not being public let's add explicit binding for wl1285 instead of relying on wl1283 being very similar. Signed-off-by: Sebastian Reichel --- Documentation/devicetree/bindings/net/wireless/ti,wlcore.txt | 1 +

Re: [PATCH] ARM: dts: imx6sx-sdb: Remove cpufreq OPP override

2017-05-03 Thread Marek Vasut
On 05/03/2017 03:57 PM, Shawn Guo wrote: > On Tue, Apr 25, 2017 at 07:28:06PM +0200, Marek Vasut wrote: >> On 04/25/2017 07:23 PM, Leonard Crestez wrote: >>> Anyway, that version also sets the supply for reg_arm and reg_soc. It >>> is not necessary for fixing the crash I'm seeing but is good

Re: [tpmdd-devel] [PATCH 2/3] tpm: move ordinals definition to include/linux/tpm_command.h

2017-05-03 Thread Roberto Sassu
On 5/3/2017 2:48 PM, Jarkko Sakkinen wrote: ORD ought not be used outside of drivers/char/tpm. TPM 1.2 trusted keys does use this header but it should be eventually moved to drivers/char/tpm (not done because of other stuff at this point). Ok. Then, I just move the ordinal conversion to the

Re: [PATCH 1/2] drm/bridge: Refactor out the panel wrapper from the lvds-encoder bridge.

2017-05-03 Thread Daniel Vetter
On Wed, May 03, 2017 at 12:36:06PM +0300, Laurent Pinchart wrote: > Hi Daniel, > > On Wednesday 03 May 2017 11:32:17 Daniel Vetter wrote: > > On Wed, May 03, 2017 at 02:53:00PM +0530, Archit Taneja wrote: > > > +panel/bridge reviewers. > > > > > > This does make things much cleaner, but it seems

Re: [PATCH] ARM: dts: imx6sx-sdb: Remove cpufreq OPP override

2017-05-03 Thread Marek Vasut
On 05/03/2017 04:26 PM, Marek Vasut wrote: > On 05/03/2017 03:57 PM, Shawn Guo wrote: >> On Tue, Apr 25, 2017 at 07:28:06PM +0200, Marek Vasut wrote: >>> On 04/25/2017 07:23 PM, Leonard Crestez wrote: Anyway, that version also sets the supply for reg_arm and reg_soc. It is not necessary

Re: [v2 3/5] mm: add "zero" argument to vmemmap allocators

2017-05-03 Thread David Miller
From: Pavel Tatashin Date: Fri, 24 Mar 2017 15:19:50 -0400 > Allow clients to request non-zeroed memory from vmemmap allocator. > The following two public function have a new boolean argument called zero: > > __vmemmap_alloc_block_buf() > vmemmap_alloc_block() > > When zero is true, memory

Re: I'd like to donate a MacBook Pro

2017-05-03 Thread Alex Henrie
2017-05-03 5:58 GMT-06:00 Greg KH : > On Tue, May 02, 2017 at 10:55:09PM -0600, Alex Henrie wrote: >> Today I ran a regression test to determine which commit made the >> keyboard stop working entirely. The last commit that worked for me was >> c09e22d5370739e16463c113525df51b5980b1d5. After that,

Re: [PATCH v4] platform/x86: ideapad-laptop: Add sysfs interface for touchpad state

2017-05-03 Thread Ritesh Raj Sarraf
Resending again, as Google servers are behaving weird lately. On Sun, 2017-04-30 at 15:54 +0300, Andy Shevchenko wrote: > > > the main issue that driver doesn't > > > send SW_TABLET_MODE event through input device. > > > > Well. Yes. That is one part. If SW_TABLET_MODE is done in the driver,

Re: [PATCHv3 2/3] drm/prime: Introduce drm_gem_prime_import_platform

2017-05-03 Thread Laura Abbott
On 05/03/2017 12:39 AM, Daniel Vetter wrote: > On Tue, May 02, 2017 at 09:22:13PM +0100, Chris Wilson wrote: >> On Tue, May 02, 2017 at 10:02:07AM -0700, Laura Abbott wrote: >>> /** >>> + * drm_gem_prime_import_platform - alternate implementation of the import >>> callback >>> + * @dev:

[PULL REQUEST] i2c for 4.12

2017-05-03 Thread Wolfram Sang
Linus, I2C has the following updates for you: * an immutable cross-subsystem branch fixing PMIC access on Intel Baytrail * bigger driver updates to the designware, meson, exynos5 drivers * new i2c_acpi_new_device() function to create devices from ACPI * struct i2c_driver has now a flag

Re: [PATCH] ARM: dts: imx6sx-sdb: Remove cpufreq OPP override

2017-05-03 Thread Shawn Guo
On Wed, May 03, 2017 at 04:32:06PM +0200, Marek Vasut wrote: > On 05/03/2017 04:26 PM, Marek Vasut wrote: > > On 05/03/2017 03:57 PM, Shawn Guo wrote: > >> On Tue, Apr 25, 2017 at 07:28:06PM +0200, Marek Vasut wrote: > >>> On 04/25/2017 07:23 PM, Leonard Crestez wrote: > Anyway, that version

Re: [PATCH v4] platform/x86: ideapad-laptop: Add sysfs interface for touchpad state

2017-05-03 Thread Andy Shevchenko
On Wed, May 3, 2017 at 5:36 PM, Ritesh Raj Sarraf wrote: > Resending again, as Google servers are behaving weird lately. > > On Sun, 2017-04-30 at 15:54 +0300, Andy Shevchenko wrote: >> > > the main issue that driver doesn't >> > > send SW_TABLET_MODE event through input device. >> > >> > Well.

Re: [PATCH 1/2] drm/bridge: Refactor out the panel wrapper from the lvds-encoder bridge.

2017-05-03 Thread Laurent Pinchart
Hi Daniel, On Wednesday 03 May 2017 16:28:56 Daniel Vetter wrote: > On Wed, May 03, 2017 at 12:36:06PM +0300, Laurent Pinchart wrote: > > On Wednesday 03 May 2017 11:32:17 Daniel Vetter wrote: > >> On Wed, May 03, 2017 at 02:53:00PM +0530, Archit Taneja wrote: > >>> +panel/bridge reviewers. > >>>

Re: linux-next: manual merge of the drivers-x86 tree with the watchdog tree

2017-05-03 Thread Andy Shevchenko
On Wed, May 3, 2017 at 5:24 PM, Wim Van Sebroeck wrote: >> On Tue, May 02, 2017 at 02:58:22PM -0700, Guenter Roeck wrote: >> > On Tue, May 02, 2017 at 02:30:46PM -0700, Darren Hart wrote: >> > On a side note, it appears that I tagged "watchdog: iTCO_wdt: cleanup >> > set/unset no_reboot_bit

Re: [PATCHv2 0/4] Motorola Droid 4: Add WL1285C support

2017-05-03 Thread Rob Herring
On Wed, May 3, 2017 at 9:22 AM, Sebastian Reichel wrote: > Hi, > > Motorola Droid 4 uses a WL1285C, as visible on iFixit [0]. This > fixes the DT file to use correct compatible for the wifi node > and adds the bluetooth node. > > [0]

Re: [PATCH 0/7] KVM: MMU: fast write protect

2017-05-03 Thread Xiao Guangrong
On 05/03/2017 08:28 PM, Paolo Bonzini wrote: So if I understand correctly this relies on userspace doing: 1) KVM_GET_DIRTY_LOG without write protect 2) KVM_WRITE_PROTECT_ALL_MEM Writes may happen between 1 and 2; they are not represented in the live dirty bitmap but

Re: [PATCH] ARM: dts: imx6sx-sdb: Remove cpufreq OPP override

2017-05-03 Thread Marek Vasut
On 05/03/2017 04:41 PM, Shawn Guo wrote: > On Wed, May 03, 2017 at 04:32:06PM +0200, Marek Vasut wrote: >> On 05/03/2017 04:26 PM, Marek Vasut wrote: >>> On 05/03/2017 03:57 PM, Shawn Guo wrote: On Tue, Apr 25, 2017 at 07:28:06PM +0200, Marek Vasut wrote: > On 04/25/2017 07:23 PM, Leonard

[PATCH 0/3] arm64: queued spinlocks and rw-locks

2017-05-03 Thread Yury Norov
The patch 3 adds implementation for queued-based locking on ARM64, and the option in kernel config to enable it. Patches 1 and 2 fix some mess in header files to apply patch 3 smoothly. Tested on QDF2400 with huge improvements with these patches on the torture tests, by Adam Wallis. Tested on

[PATCH 1/3] kernel/locking: #include in qrwlock.c

2017-05-03 Thread Yury Norov
qrwlock.c calls arch_spin_lock() and arch_spin_unlock() but doesn't include the asm/spinlock.h, where those functions are defined. It may produce "implicit declaration of function" errors. This patch fixes it. Signed-off-by: Yury Norov --- kernel/locking/qrwlock.c | 1 + 1 file changed, 1

Re: linux-next: manual merge of the drivers-x86 tree with the watchdog tree

2017-05-03 Thread Wim Van Sebroeck
Hi All, > On Tue, May 02, 2017 at 02:58:22PM -0700, Guenter Roeck wrote: > > On Tue, May 02, 2017 at 02:30:46PM -0700, Darren Hart wrote: > > > On Tue, May 02, 2017 at 11:57:18PM +0300, Andy Shevchenko wrote: > > > > On Tue, May 2, 2017 at 11:21 PM, Darren Hart > > > > wrote: > > > > > On Tue,

[PATCH 2/3] asm-generic: don't #include in qspinlock_types.h

2017-05-03 Thread Yury Norov
The "qspinlock_types.h" doesn't need linux/atomic.h directly. So because of this, and because including of it requires the protection against recursive inclusion, it looks reasonable to move the inclusion exactly where it is needed. This change affects the x86_64 arch, as the only user of

[PATCH 3/3] arm64/locking: qspinlocks and qrwlocks support

2017-05-03 Thread Yury Norov
From: Jan Glauber Ported from x86_64 with paravirtualization support removed. Signed-off-by: Jan Glauber Note. This patch removes protection from direct inclusion of arch/arm64/include/asm/spinlock_types.h. It's done because kernel/locking/qrwlock.c file does it thru the header

<    5   6   7   8   9   10   11   12   13   14   >