Re: [PATCH v5 08/11] scsi: host template attribute groups

2018-02-06 Thread Bart Van Assche
On Tue, 2018-02-06 at 18:06 +0200, Stanislav Nijnikov wrote: > + if (sdev->host->hostt->sdev_groups) { > + error = sysfs_create_groups(&sdev->sdev_gendev.kobj, > + sdev->host->hostt->sdev_groups); > + if (error) > +

Re: [PATCH 06/17] tools lib symbol: Skip non-address kallsyms line

2018-02-06 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 06, 2018 at 07:18:02PM +0100, Jiri Olsa escreveu: > Adding check on failed attempt to parse the address > and skip the line parsing early in that case. How did you stumble on that? Can you provide an example of a line or situation where this would happen? - Arnaldo > Link: http://lk

Re: [PATCH 06/17] tools lib symbol: Skip non-address kallsyms line

2018-02-06 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 06, 2018 at 04:06:49PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Feb 06, 2018 at 07:18:02PM +0100, Jiri Olsa escreveu: > > Adding check on failed attempt to parse the address > > and skip the line parsing early in that case. > > How did you stumble on that? Can you provide an

Re: [PATCH 01/17] perf report: Ask ordered events for --tasks option

2018-02-06 Thread Jiri Olsa
On Tue, Feb 06, 2018 at 03:48:20PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Feb 06, 2018 at 07:17:57PM +0100, Jiri Olsa escreveu: > > If we have the time in, keep the events in time order. > > Try to be more verbose, what actual effect this will have in this particular > case? > > So, I h

Re: [PATCH 05/17] tools lib api fs: Add sysfs__read_xll function

2018-02-06 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 06, 2018 at 07:18:01PM +0100, Jiri Olsa escreveu: > Adding sysfs__read_xll function to be able to read sysfs > files with hex numbers in, which do not have 0x prefix. Applied 2-5 in this series, continuing... - Arnaldo > Link: http://lkml.kernel.org/n/tip-j5ullvrcli5ga3hn6692t...@gi

Re: [PATCH v4 1/3] sched/fair: add util_est on top of PELT

2018-02-06 Thread Peter Zijlstra
On Tue, Feb 06, 2018 at 06:33:15PM +, Patrick Bellasi wrote: > Good point, I was actually expecting this question and I should have > added it to the cover letter, sorry. > > The reasoning was: the task's estimated utilization is defined as the > max between PELT and the "estimation". Where "

Re: [PATCH 07/17] perf tools: Free root_dir in machine__init error path

2018-02-06 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 06, 2018 at 07:18:03PM +0100, Jiri Olsa escreveu: > Freeing root_dir in machine__init error path. > > Link: http://lkml.kernel.org/n/tip-ng92slsanexqw7h1d6sad...@git.kernel.org > Signed-off-by: Jiri Olsa > --- > tools/perf/util/machine.c | 8 +++- > 1 file changed, 7 insertions(+

[PATCHv2 1/1] ext4: don't put symlink in pagecache into highmem

2018-02-06 Thread Jin Qian
From: Jin Qian partial backport from 21fc61c73c3903c4c312d0802da01ec2b323d174 upstream to v4.4 to prevent virt_to_page on highmem. ext4_encrypted_follow_link uses kmap() for cpage caddr = kmap(cpage); _ext4_fname_disk_to_usr calls virt_to_page on the kmapped address. _ext4_fname_disk_to_usr

Re: [PATCH 08/17] perf tools: Move kernel mmap name into struct machine

2018-02-06 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 06, 2018 at 07:18:04PM +0100, Jiri Olsa escreveu: > It simplifies and centralizes the code. The kernel mmap > name is set for machine type, which we know from the > beginning, so there's no reason to generate it every time > we need it. > > Link: http://lkml.kernel.org/n/tip-2fx7kxxdc5

Re: [PATCH] usb: musb: fix enumeration after resume

2018-02-06 Thread Andreas Kemnade
Hi, On Tue, 6 Feb 2018 10:47:25 -0800 Tony Lindgren wrote: > * Andreas Kemnade [180127 08:34]: > > On dm3730 there are enumeration problems after resume. > > Investigation led to the cause that the MUSB_POWER_SOFTCONN > > bit is not set. If it was set before suspend (because it > > was enabled

Re: [PATCH 20/20] x86/PCI: VMD: Fix malformed default

2018-02-06 Thread Bjorn Helgaas
> x86/PCI: VMD: Fix malformed default In the title, please include a clue about what default you're talking about, e.g., mention Kconfig somehow. On Mon, Feb 05, 2018 at 02:21:32AM +0100, Ulf Magnusson wrote: > 'default N' should be 'default n', though they happen to have the same > effect here,

Re: [BUG] x86 : i486 reporting to be vulnerable to Meltdown/Spectre_V1/Spectre_V2

2018-02-06 Thread David Woodhouse
On Tue, 2018-02-06 at 11:02 -0800, Greg Kroah-Hartman wrote: > . > >  > > David > >   I believe I got the patch(es) you mention in in the stable 4.15.1 kernel: > >  > > Pull x86/pti updates from Thomas Gleixner: "Another set of melted > > spectrum related changes" > > (commit 6304672b7f0a5c010002

Re: [BUG] x86 : i486 reporting to be vulnerable to Meltdown/Spectre_V1/Spectre_V2

2018-02-06 Thread Guenter Roeck
On Tue, Feb 06, 2018 at 07:10:27PM +, David Woodhouse wrote: > > > On Tue, 2018-02-06 at 11:02 -0800, Greg Kroah-Hartman wrote: > > . > > >  > > > David > > >   I believe I got the patch(es) you mention in in the stable 4.15.1 > > >kernel: > > >  > > > Pull x86/pti updates from Thomas Gleixn

[PATCH v4] Documentation/ABI: update cpuidle sysfs documentation

2018-02-06 Thread Aishwarya Pant
Update cpuidle documentation using git logs and existing documentation in Documentation/cpuidle/sysfs.txt. This might be useful for scripting and tracking changes in the ABI. Signed-off-by: Aishwarya Pant --- Changes in v4: - Fix patch formatting v3: - Fix subject line v2: - Merge cpuidle_sysfs_s

Re: [PATCH 01/17] perf report: Ask ordered events for --tasks option

2018-02-06 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 06, 2018 at 07:59:51PM +0100, Jiri Olsa escreveu: > On Tue, Feb 06, 2018 at 03:48:20PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Tue, Feb 06, 2018 at 07:17:57PM +0100, Jiri Olsa escreveu: > > > If we have the time in, keep the events in time order. > > > > Try to be more verbose, w

Re: WARNING: bad usercopy in put_cmsg

2018-02-06 Thread Kees Cook
On Wed, Feb 7, 2018 at 4:33 AM, Dmitry Vyukov wrote: > On Tue, Feb 6, 2018 at 6:31 PM, syzbot > wrote: >> Hello, >> >> syzbot hit the following crash on upstream commit >> e237f98a9c134c3d600353f21e07db915516875b (Mon Feb 5 21:35:56 2018 +) >> Merge tag 'xfs-4.16-merge-5' of >> git://git.kern

[PATCH v2 3/3] sched: update blocked load when newly idle

2018-02-06 Thread Vincent Guittot
When NEWLY_IDLE load balance is not triggered, we might need to update the blocked load anyway. We can kick an ilb so an idle CPU will take care of updating blocked load or we can try to update them locally before entering idle. In the latter case, we reuse part of the nohz_idle_balance. Signed-of

[PATCH v2 1/3] sched: Stop nohz stats when decayed

2018-02-06 Thread Vincent Guittot
Stopped the periodic update of blocked load when all idle CPUs have fully decayed. We introduce a new nohz.has_blocked that reflect if some idle CPUs has blocked load that have to be periodiccally updated. nohz.has_blocked is set everytime that a Idle CPU can have blocked load and it is then clear

[PATCH v2 0/3] Update blocked load

2018-02-06 Thread Vincent Guittot
This patchset applies on top of Peter's sched/esting branch minus the last 2 commit: 56eb46798b33 ("sched: Clean up nohz enter/exit") v2: - minor naming updates Vincent Guittot (3): sched: Stop nohz stats when decayed sched: reduce the periodic update duration sched: update blocked load wh

[PATCH v2 2/3] sched: reduce the periodic update duration

2018-02-06 Thread Vincent Guittot
Instead of using the cfs_rq_is_decayed() which monitors all *_avg and *_sum, we create a cfs_rq_has_blocked() which only takes care of util_avg and load_avg. We are only interested by these 2 values which are decaying faster than the *_sum so we can stop the periodic update earlier. Signed-off-by:

[v3] ARM: dts: imx: Add support for Advantech DMS-BA16

2018-02-06 Thread Ken Lin
Add support for Advantech DMS-BA16 board, which uses the Advantech BA-16 module. Signed-off-by: Ken Lin --- Changes in v3: - Fix the SPDX lines issue - Fix the eeprom setting issue arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6q-dms-ba16.dts | 140 +

Re: [BUG] x86 : i486 reporting to be vulnerable to Meltdown/Spectre_V1/Spectre_V2

2018-02-06 Thread tedheadster
On Tue, Feb 6, 2018 at 2:17 PM, David Woodhouse wrote: > On Tue, 2018-02-06 at 11:13 -0800, Guenter Roeck wrote: >> On Tue, Feb 06, 2018 at 07:10:27PM +, David Woodhouse wrote: >> > >> > >> > >> > On Tue, 2018-02-06 at 11:02 -0800, Greg Kroah-Hartman wrote: >> > > >> > > . >> > > > >> > > > >>

Re: [PATCH 17/17] perf tools: Fix comment for sort__* compare functions

2018-02-06 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 06, 2018 at 07:18:13PM +0100, Jiri Olsa escreveu: > In commit 2f15bd8c6c6e ("perf tools: Fix "Command" sort_entry's cmp and > collapse function") > we switched from pointer to string comparison. > > But failed to remove related comments. Removing them and adding > another one to warn

Re: [PATCH 16/17] perf tests: Fix dwarf unwind for stripped binaries

2018-02-06 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 06, 2018 at 07:18:12PM +0100, Jiri Olsa escreveu: > When we strip the perf binary, dwarf unwind test stop > to work. The reason is that strip will remove static > function symbols, which we need to check for unwind. > > This change will keep this test working in cases where > the globa

Re: It's back! (Re: [REGRESSION] NFS is creating a hidden port (left over from xs_bind() ))

2018-02-06 Thread Trond Myklebust
On Tue, 2018-02-06 at 10:20 +0100, Daniel Reichelt wrote: > On 02/06/2018 01:24 AM, Trond Myklebust wrote: > > Does the following fix the issue? > > > > 8<--- > > From 9b30889c548a4d45bfe6226e58de32504c1d682f Mon Sep 17 00:00:00 > > 2001 > > From: Trond

Re: [PATCH v4 07/10] x86: narrow out of bounds syscalls to sys_read under speculation

2018-02-06 Thread Luis Henriques
On Thu, Jan 18, 2018 at 04:02:21PM -0800, Dan Williams wrote: > The syscall table base is a user controlled function pointer in kernel > space. Like, 'get_user, use 'MASK_NOSPEC' to prevent any out of bounds > speculation. While retpoline prevents speculating into the user > controlled target it do

[PATCH] HID: apple: Delete an error message for a failed memory allocation in apple_probe()

2018-02-06 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 6 Feb 2018 20:06:53 +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/hid/hid-apple.c | 4 +--- 1 file changed, 1 insertion(+), 3 del

Re: [PATCH v2 3/3] arm64: dts: sdm845: Add serial console support

2018-02-06 Thread Doug Anderson
Hi, On Wed, Jan 31, 2018 at 8:19 AM, Rajendra Nayak wrote: > Add the qup uart node and geni se instance needed to > support the serial console on the MTP. > > Signed-off-by: Rajendra Nayak > --- > arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 42 > + > arch/arm64/bo

Re: [PATCH 3/3] PCI: designware-ep: Return an error when requesting a too large BAR size

2018-02-06 Thread Andy Shevchenko
On Mon, Feb 5, 2018 at 6:25 PM, Niklas Cassel wrote: > On Thu, Feb 01, 2018 at 02:00:40PM -0500, Jingoo Han wrote: >> On Thursday, February 1, 2018 1:58 PM, Andy Shevchenko wrote: >> > >> > On Thu, Feb 1, 2018 at 6:11 PM, Niklas Cassel >> > wrote: >> > >> > include/linux/sizes.h: >> > >> > +SZ_4G

[PATCH v2] Documentation/ABI: add sysfs interface for s6e63m0 lcd driver

2018-02-06 Thread Aishwarya Pant
Document sysfs attributes of s6e63m0 lcd panel driver by looking through git logs and reading code. Signed-off-by: Aishwarya Pant --- Changes in v2: - Update contact information Documentation/ABI/testing/sysfs-class-lcd-s6e63m0 | 27 +++ 1 file changed, 27 insertions(+) cre

Re: [PATCH v12 7/9] ACPI: Translate the I/O range of non-MMIO devices before scanning

2018-02-06 Thread Andy Shevchenko
On Mon, Feb 5, 2018 at 4:25 PM, John Garry wrote: > On 05/02/2018 13:16, Andy Shevchenko wrote: >> On Thu, Feb 1, 2018 at 1:32 PM, John Garry wrote: >> resource_size_t is dynamic width type, you will see a compiler >> warning. For this we have >> %pap specifier. >> >> Moreover, in some cases it'

Re: [PATCH 2/2] x86/speculation: Simplify indirect_branch_prediction_barrier()

2018-02-06 Thread David Woodhouse
On Fri, 2018-01-26 at 21:08 +0100, Borislav Petkov wrote: > Make it all a function which does the WRMSR instead of having a hairy > inline asm. ... > + alternative_input("", > +  "call __ibp_barrier", > +  X86_FEATURE_IBPB, > +  ASM_

Re: [BUG] x86 : i486 reporting to be vulnerable to Meltdown/Spectre_V1/Spectre_V2

2018-02-06 Thread David Woodhouse
On Tue, 2018-02-06 at 11:13 -0800, Guenter Roeck wrote: > On Tue, Feb 06, 2018 at 07:10:27PM +, David Woodhouse wrote: > > > > > > > > On Tue, 2018-02-06 at 11:02 -0800, Greg Kroah-Hartman wrote: > > > > > > . > > > > > > > >   > > > > David > > > >    I believe I got the patch(es) you men

Re: [PATCH v2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2018-02-06 Thread Andy Shevchenko
On Sun, Feb 4, 2018 at 7:58 PM, Steven Presser wrote: > I had a chance to sit back down with the machine. I didn't take it all the > way apart - there are pieces that I'm afraid of breaking without directions > on how to properly disassemble them. No need I think to go so-o deep. > However, I

[PATCH] igb: Fix a test with HWTSTAMP_TX_ON

2018-02-06 Thread Christophe JAILLET
'HWTSTAMP_TX_ON' should be handled as a value, not as a bit mask. The modified code should behave the same, because HWTSTAMP_TX_ON is 1 and no other possible values of 'tx_type' would match the test. However, this is more future-proof, should other values be allowed one day. See 'struct hwtstamp_c

Re: [PATCH v4 07/10] x86: narrow out of bounds syscalls to sys_read under speculation

2018-02-06 Thread Dan Williams
On Tue, Feb 6, 2018 at 11:29 AM, Luis Henriques wrote: > On Thu, Jan 18, 2018 at 04:02:21PM -0800, Dan Williams wrote: >> The syscall table base is a user controlled function pointer in kernel >> space. Like, 'get_user, use 'MASK_NOSPEC' to prevent any out of bounds >> speculation. While retpoline

Re: [PATCH 2/2] arm64: dts: sdm845: Add serial console support

2018-02-06 Thread Doug Anderson
Hi, On Tue, Feb 6, 2018 at 11:06 AM, Bjorn Andersson wrote: > On Tue 06 Feb 10:37 PST 2018, Doug Anderson wrote: > >> Hi, >> >> On Fri, Jan 26, 2018 at 2:18 PM, Stephen Boyd wrote: >> > On 01/25, Rajendra Nayak wrote: >> >> diff --git a/arch/arm64/boot/dts/qcom/sdm845-pins.dtsi >> >> b/arch/arm

RE: dell-smbios makes wireless card unusable on Dell XPS 13 9360

2018-02-06 Thread Mario.Limonciello
> -Original Message- > From: platform-driver-x86-ow...@vger.kernel.org [mailto:platform-driver-x86- > ow...@vger.kernel.org] On Behalf Of Paul Menzel > Sent: Tuesday, February 6, 2018 10:08 AM > To: Limonciello, Mario > Cc: Pali Rohár ; it+platform-driver-...@molgen.mpg.de; > platform-driv

[PATCH] hid-a4tech: Delete an error message for a failed memory allocation in a4_probe()

2018-02-06 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 6 Feb 2018 20:48:04 +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/hid/hid-a4tech.c | 4 +--- 1 file changed, 1 insertion(+), 3 de

[GIT PULL] platform-drivers-x86 for 4.16-1

2018-02-06 Thread Darren Hart
Hi Linus, The following changes since commit 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323: Linux 4.15-rc1 (2017-11-26 16:01:47 -0800) are available in the git repository at: git://git.infradead.org/linux-platform-drivers-x86.git tags/platform-drivers-x86-v4.16-1 for you to fetch changes up to

Re: [PATCH 1/2] dt-bindings: Documentation for qcom,llcc

2018-02-06 Thread Channa
On 2018-02-02 03:05, Mark Rutland wrote: On Thu, Feb 01, 2018 at 12:39:09PM -0800, Channa wrote: On 2018-02-01 02:44, Mark Rutland wrote: > On Thu, Jan 25, 2018 at 03:55:12PM -0800, Channagoud Kadabi wrote: > > Documentation for last level cache controller device tree bindings, > > client bindin

Re: [PATCH 2/2] block, char_dev: Use correct format specifier for unsigned ints

2018-02-06 Thread Srivatsa S. Bhat
On 2/6/18 2:24 AM, Greg KH wrote: > On Mon, Feb 05, 2018 at 06:25:27PM -0800, Srivatsa S. Bhat wrote: >> From: Srivatsa S. Bhat >> >> register_blkdev() and __register_chrdev_region() treat the major >> number as an unsigned int. So print it the same way to avoid >> absurd error statements such as:

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

2018-02-06 Thread Jarkko Sakkinen
On Sun, Jan 28, 2018 at 09:17:53PM +, Winkler, Tomas wrote: > > > > > On Sun, Jan 28, 2018 at 09:51:00AM +0200, Tomas Winkler wrote: > > > > > diff --git a/include/linux/tpm.h b/include/linux/tpm.h index > > > bcdd3790e94d..06639fb6ab85 100644 > > > +++ b/include/linux/tpm.h > > > @@ -44,7 +

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

2018-02-06 Thread Jarkko Sakkinen
On Sun, Jan 28, 2018 at 09:51:01AM +0200, Tomas Winkler wrote: > 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 fe

Re: [PATCH 2/2] arm64: dts: sdm845: Add serial console support

2018-02-06 Thread Bjorn Andersson
On Tue 06 Feb 11:49 PST 2018, Doug Anderson wrote: > Hi, > > On Tue, Feb 6, 2018 at 11:06 AM, Bjorn Andersson > wrote: > > On Tue 06 Feb 10:37 PST 2018, Doug Anderson wrote: > > > >> Hi, > >> > >> On Fri, Jan 26, 2018 at 2:18 PM, Stephen Boyd wrote: > >> > On 01/25, Rajendra Nayak wrote: > >> >

Re: [PATCH v2] tpm: add longer timeouts for creation commands.

2018-02-06 Thread Jarkko Sakkinen
On Sun, Jan 28, 2018 at 10:17:39AM +0200, Tomas Winkler wrote: > TPM2_CC_Create(0x153) and TPM2_CC_CreatePrimary (0x131) involve generation > of crypto keys which can be a computationally intensive task. > The timeout is set to 3min. > > Signed-off-by: Tomas Winkler This is still NAK because we

Re: [PATCH v4 1/3] sched/fair: add util_est on top of PELT

2018-02-06 Thread Peter Zijlstra
On Tue, Feb 06, 2018 at 08:09:00PM +0100, Peter Zijlstra wrote: > On Tue, Feb 06, 2018 at 06:33:15PM +, Patrick Bellasi wrote: > > > Good point, I was actually expecting this question and I should have > > added it to the cover letter, sorry. > > > > The reasoning was: the task's estimated ut

[GIT] Networking

2018-02-06 Thread David Miller
1) Fix error path in netdevsim, from Jakub Kicinski. 2) Default values listed in tcp_wmem and tcp_rmem documentation were inaccurate, from Tonghao Zhang. 3) Fix route leaks in SCTP, both for ipv4 and ipv6. From Alexey Kodanev and Tommi Rantala. 4) Fix "MASK < Y" meant to be "MASK << Y" i

Re: [PATCH] kasan: remove redundant initialization of variable 'real_size'

2018-02-06 Thread Andrey Ryabinin
On 02/06/2018 05:49 PM, Colin King wrote: > From: Colin Ian King > > Variable real_size is initialized with a value that is never read, > it is re-assigned a new value later on, hence the initialization is > redundant and can be removed. > > Cleans up clang warning: > lib/test_kasan.c:422:21:

[PATCH] cxgb4: Fix error handling path in 'init_one()'

2018-02-06 Thread Christophe JAILLET
Commit baf5086840ab1 ("cxgb4: restructure VF mgmt code") has reordered some code but an error handling label has not been updated accordingly. So fix it and free 'adapter' if 't4_wait_dev_ready()' fails. Fixes: baf5086840ab1 ("cxgb4: restructure VF mgmt code") Signed-off-by: Christophe JAILLET --

[GIT PULL] locking updates

2018-02-06 Thread Ingo Molnar
Linus, Please pull the latest locking-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-urgent-for-linus # HEAD: ca66e797120fb09b8138623fb4b563e952586ef5 locking/qrwlock: include asm/byteorder.h as needed An endianness fix and a jump label

Re: [PATCH v4 07/10] x86: narrow out of bounds syscalls to sys_read under speculation

2018-02-06 Thread Linus Torvalds
On Tue, Feb 6, 2018 at 11:48 AM, Dan Williams wrote: > > Just to clarify, when you say "this patch" you mean: > > 2fbd7af5af86 x86/syscall: Sanitize syscall table de-references > under speculation > > ...not this early MASK_NOSPEC version of the patch, right? I suspect not. If that patch is

Re: [PATCH 1/2] arm64: dts: sdm845: Add minimal dts/dtsi files for sdm845 SoC and MTP

2018-02-06 Thread Rob Herring
On Fri, Jan 26, 2018 at 4:15 PM, Stephen Boyd wrote: > On 01/25, Rajendra Nayak wrote: >> create mode 100644 arch/arm64/boot/dts/qcom/sdm845-mtp.dts >> create mode 100644 arch/arm64/boot/dts/qcom/sdm845-mtp.dtsi > > Do we really need two files? Maybe collapse the two? > >> create mode 100644 ar

[PATCH v8 3/7] MAINTAINERS: add entry for NXP TDA1997x driver

2018-02-06 Thread Tim Harvey
Signed-off-by: Tim Harvey --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 845fc25..439b500 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13262,6 +13262,14 @@ T: git git://linuxtv.org/mkrufky/tuners.git S: Maintained F: dri

[PATCH v8 1/7] v4l2-dv-timings: add v4l2_hdmi_colorimetry()

2018-02-06 Thread Tim Harvey
From: Hans Verkuil Add the v4l2_hdmi_colorimetry() function so we have a single function that determines the colorspace, YCbCr encoding, quantization range and transfer function from the InfoFrame data. Signed-off-by: Hans Verkuil Signed-off-by: Tim Harvey --- drivers/media/v4l2-core/v4l2-dv-

[PATCH v8 6/7] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW54xx

2018-02-06 Thread Tim Harvey
The GW54xx has a front-panel microHDMI connector routed to a TDA19971 which is connected the the IPU CSI when using IMX6Q. Signed-off-by: Tim Harvey --- v5: - remove leading 0 from unit address - add newline between property list and child node v4: no changes v3: no changes v2: - add HDMI au

[PATCH v8 7/7] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW551x

2018-02-06 Thread Tim Harvey
Signed-off-by: Tim Harvey --- v5: - add missing audmux config --- arch/arm/boot/dts/imx6qdl-gw551x.dtsi | 138 ++ 1 file changed, 138 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-gw551x.dtsi b/arch/arm/boot/dts/imx6qdl-gw551x.dtsi index 30d4662..749548a

[PATCH v8 5/7] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-06 Thread Tim Harvey
Add support for the TDA1997x HDMI receivers. Cc: Hans Verkuil Signed-off-by: Tim Harvey --- v8: - fix available formats for tda19971 bt656 bus width >12 - support full range of input modes based on timings_cap - fix set_format (compliance) - fixed get/set edid (compliance) - add init_cfg to

Re: [PATCH v7 04/24] mm: Dont assume page-table invariance during faults

2018-02-06 Thread Matthew Wilcox
On Tue, Feb 06, 2018 at 05:49:50PM +0100, Laurent Dufour wrote: > From: Peter Zijlstra > > One of the side effects of speculating on faults (without holding > mmap_sem) is that we can race with free_pgtables() and therefore we > cannot assume the page-tables will stick around. > > Remove the rel

[PATCH v8 4/7] media: dt-bindings: Add bindings for TDA1997X

2018-02-06 Thread Tim Harvey
Acked-by: Rob Herring Acked-by: Sakari Ailus Signed-off-by: Tim Harvey --- v6: - replace copyright with SPDX tag - added Rob's ack v5: - added Sakari's ack v4: - move include/dt-bindings/media/tda1997x.h to bindings patch - clarify port node details v3: - fix typo v2: - add vendor pre

[PATCH v8 0/7] TDA1997x HDMI video reciver

2018-02-06 Thread Tim Harvey
This is a v4l2 subdev driver supporting the TDA1997x HDMI video receiver. I've tested this on a Gateworks GW54xx/GW551x with an IMX6Q/IMX6DL which uses the TDA19971 with 16bits connected to the IMX6 CSI and single-lane I2S audio providing 2-channel audio. For this configuration I've tested both 1

[PATCH v8 2/7] media: v4l-ioctl: fix pad for VIDIOC_DV_TIMIGNS_CAP

2018-02-06 Thread Tim Harvey
Signed-off-by: Tim Harvey --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index 7961499..5f3670d 100644 --- a/drivers/media/v4l2-core/v4l2-ioctl.c +++ b/driver

Re: [PATCH 1/2] arm64: dts: sdm845: Add minimal dts/dtsi files for sdm845 SoC and MTP

2018-02-06 Thread Rob Herring
On Thu, Jan 25, 2018 at 10:32 AM, Rajendra Nayak wrote: > Add a skeletal sdm845 SoC dtsi and MTP board dts/dtsi files > > Signed-off-by: Rajendra Nayak > --- > arch/arm64/boot/dts/qcom/Makefile| 1 + > arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 13 ++ > arch/arm64/boot/dts/qcom/sdm845

Re: [RFC] x86/retpoline: Add clang support for 64-bit builds

2018-02-06 Thread Guenter Roeck
On Fri, Feb 02, 2018 at 03:30:40PM -0800, Guenter Roeck wrote: > clang has its own set of compiler options for retpoline support. > Also, the thunks required by C code have their own function names. > > For 64-bit builds, there is only a single thunk, which is easy > to support. Support for 32-bit

[PATCH 3/3] fs : ext2: super: fixed '==' instead '=' braces,whitespace coding style issue.

2018-02-06 Thread devesh . pradhan1
From: devesh pradhan fixed coding style issue. Signed-off-by: devesh pradhan --- fs/ext2/super.c | 59 ++--- 1 file changed, 27 insertions(+), 32 deletions(-) diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 554c98b8a93a..cb80bcb693a9 10

RE: [RFC, PATCH v1] platform/x86: intel-vbtn: Convert to pure ACPI driver

2018-02-06 Thread Mario.Limonciello
> -Original Message- > From: platform-driver-x86-ow...@vger.kernel.org [mailto:platform-driver-x86- > ow...@vger.kernel.org] On Behalf Of Andy Shevchenko > Sent: Monday, February 5, 2018 10:18 AM > To: Darren Hart > Cc: platform-driver-...@vger.kernel.org; AceLan Kao > ; linux-kernel@vger.

Re: [PATCH v3 1/2] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-06 Thread Marc Zyngier
On Tue, 06 Feb 2018 18:09:04 +, Lina Iyer wrote: > > From : Archana Sathyakumar > > The Power Domain Controller (PDC) on QTI SoCs like SDM845 houses an > interrupt controller along with other domain control functions to handle > interrupt related functions like handle falling edge or active

Re: [PATCH 2/2] arm64: dts: sdm845: Add serial console support

2018-02-06 Thread Rob Herring
On Fri, Jan 26, 2018 at 4:18 PM, Stephen Boyd wrote: > On 01/25, Rajendra Nayak wrote: >> diff --git a/arch/arm64/boot/dts/qcom/sdm845-pins.dtsi >> b/arch/arm64/boot/dts/qcom/sdm845-pins.dtsi >> new file mode 100644 >> index ..b97f99e6f4b4 >> --- /dev/null >> +++ b/arch/arm64/boot/dts

Re: [PATCH v4 07/10] x86: narrow out of bounds syscalls to sys_read under speculation

2018-02-06 Thread Dan Williams
On Tue, Feb 6, 2018 at 12:26 PM, Linus Torvalds wrote: > On Tue, Feb 6, 2018 at 11:48 AM, Dan Williams > wrote: >> >> Just to clarify, when you say "this patch" you mean: >> >> 2fbd7af5af86 x86/syscall: Sanitize syscall table de-references >> under speculation >> >> ...not this early MASK_N

[PATCH v2] IB/cxgb3: remove cxio_dbg.c

2018-02-06 Thread Corentin Labbe
cxio_dbg.c is uncompiled since commit 2b540355cd2f ("RDMA/cxgb3: cleanups") 10 years after, we could remove it. Signed-off-by: Corentin Labbe Acked-by: Steve Wise --- Changes since v1: - Remove also all DEBUG code as suggested by Joe Perches drivers/infiniband/hw/cxgb3/Kconfig| 9 -- dr

Re: [PATCH v8 5/7] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-06 Thread Hans Verkuil
On 02/06/2018 09:27 PM, Tim Harvey wrote: > Add support for the TDA1997x HDMI receivers. > > Cc: Hans Verkuil > Signed-off-by: Tim Harvey > --- > +static int tda1997x_get_dv_timings_cap(struct v4l2_subdev *sd, > +struct v4l2_dv_timings_cap *cap) > +{ > +

Re: [PATCHv2 1/1] ext4: don't put symlink in pagecache into highmem

2018-02-06 Thread Greg KH
On Tue, Feb 06, 2018 at 11:09:37AM -0800, Jin Qian wrote: > From: Jin Qian > > partial backport from 21fc61c73c3903c4c312d0802da01ec2b323d174 upstream > to v4.4 to prevent virt_to_page on highmem. > > ext4_encrypted_follow_link uses kmap() for cpage > caddr = kmap(cpage); > > _ext4_fname_disk

[PATCH] Documentation: networking: Update ixgb kconfig select documentation

2018-02-06 Thread Corentin Labbe
Update documentation on how to enable ixgb and ixgb DCB. Simply remove NETDEV_1 and replace it with the new used kconfig names. Signed-off-by: Corentin Labbe --- Documentation/networking/ixgb.txt | 3 ++- Documentation/networking/ixgbe.txt | 7 --- 2 files changed, 6 insertions(+), 4 de

Re: [PATCH v4 07/10] x86: narrow out of bounds syscalls to sys_read under speculation

2018-02-06 Thread Linus Torvalds
On Tue, Feb 6, 2018 at 12:37 PM, Dan Williams wrote: > > Are there any compilers that would miscompile: > > mask = 0 - (index < size); > > That might be a way to improve the assembly. Sadly, that is *very* easy to miscompile. In fact, I'd be very surprised indeed if any compiler worth its nam

Re: [PATCH v4 07/10] x86: narrow out of bounds syscalls to sys_read under speculation

2018-02-06 Thread Linus Torvalds
On Tue, Feb 6, 2018 at 12:42 PM, Linus Torvalds wrote: > > Sadly, that is *very* easy to miscompile. Side note: don't read email, go watch the falcon heavy takeoff. Linus

Re: [PATCH 3/3] fs : ext2: super: fixed '==' instead '=' braces,whitespace coding style issue.

2018-02-06 Thread Randy Dunlap
On 02/06/2018 12:33 PM, devesh.pradh...@gmail.com wrote: > From: devesh pradhan > > fixed coding style issue. I think there is more here than coding style fixes. Also, did you do any testing after making these changes? > Signed-off-by: devesh pradhan > --- > fs/ext2/super.c | 59 >

Re: [BUG] x86 : i486 reporting to be vulnerable to Meltdown/Spectre_V1/Spectre_V2

2018-02-06 Thread tedheadster
On Tue, Feb 6, 2018 at 2:24 PM, tedheadster wrote: > On Tue, Feb 6, 2018 at 2:17 PM, David Woodhouse wrote: >> On Tue, 2018-02-06 at 11:13 -0800, Guenter Roeck wrote: >>> On Tue, Feb 06, 2018 at 07:10:27PM +, David Woodhouse wrote: >>> > >>> > >>> > >>> > On Tue, 2018-02-06 at 11:02 -0800, Gr

Re: [PATCH AUTOSEL for 4.14 065/110] led: core: Fix brightness setting when setting delay_off=0

2018-02-06 Thread Jacek Anaszewski
On 02/06/2018 03:02 AM, Sasha Levin wrote: > On Sun, Feb 04, 2018 at 06:17:36PM +0100, Pavel Machek wrote: >> >>> *** if brightness=0, led off >>> *** else apply brightness if next timer <--- timer is stop, and will >>> never apply new setting >>> ** otherwise set led_set_brightnes

Re: [PATCH v4 07/10] x86: narrow out of bounds syscalls to sys_read under speculation

2018-02-06 Thread Andy Lutomirski
On Tue, Feb 6, 2018 at 8:42 PM, Linus Torvalds wrote: > On Tue, Feb 6, 2018 at 12:37 PM, Dan Williams > wrote: >> >> Are there any compilers that would miscompile: >> >> mask = 0 - (index < size); >> >> That might be a way to improve the assembly. > > Sadly, that is *very* easy to miscompile

RE: [PATCH v2] tpm: add longer timeouts for creation commands.

2018-02-06 Thread Winkler, Tomas
> > On Sun, Jan 28, 2018 at 10:17:39AM +0200, Tomas Winkler wrote: > > TPM2_CC_Create(0x153) and TPM2_CC_CreatePrimary (0x131) involve > > generation of crypto keys which can be a computationally intensive task. > > The timeout is set to 3min. > > > > Signed-off-by: Tomas Winkler > > This is sti

Re: [RFC] x86/retpoline: Add clang support for 64-bit builds

2018-02-06 Thread David Woodhouse
On Tue, 2018-02-06 at 12:32 -0800, Guenter Roeck wrote: > > >  > Feedback, anyone ? > > I understand that there is no love for the ABI differences between clang > and gcc, but that doesn't help me. Even if the patch is unacceptable > as-is, I would like to have some feedback to get an idea if I a

Re: [BUG] x86 : i486 reporting to be vulnerable to Meltdown/Spectre_V1/Spectre_V2

2018-02-06 Thread David Woodhouse
On Tue, 2018-02-06 at 15:45 -0500, tedheadster wrote: > > If that is correct (and I might be wrong), then I am up to date and I > am still getting the following in /proc/cpuinfo on my Pentium 4M i686: > > bugs  : cpu_meltdown spectre_v1 spectre_v2 That's expected for now. The CPUs we exempt are

Re: [PATCH v4 07/10] x86: narrow out of bounds syscalls to sys_read under speculation

2018-02-06 Thread Linus Torvalds
On Tue, Feb 6, 2018 at 12:49 PM, Andy Lutomirski wrote: > > Can you use @cc to make an asm statement that outputs both the masked > array index and the "if" condition? I can never remember the syntax, > but something like: Yes. Although I'd actually suggest just using an "asm goto" if we really

Re: [Intel-wired-lan] [PATCH] Documentation: networking: Update ixgb kconfig select documentation

2018-02-06 Thread Alexander Duyck
On Tue, Feb 6, 2018 at 12:42 PM, Corentin Labbe wrote: > Update documentation on how to enable ixgb and ixgb DCB. > Simply remove NETDEV_1 and replace it with the new used kconfig names. Minor typo in the patch description. I assume you mean "ixgb and ixgbe DCB". Also you might want to mentio

Re: [RFC] x86/retpoline: Add clang support for 64-bit builds

2018-02-06 Thread Andy Lutomirski
On Tue, Feb 6, 2018 at 8:52 PM, David Woodhouse wrote: > On Tue, 2018-02-06 at 12:32 -0800, Guenter Roeck wrote: >> >> > >> Feedback, anyone ? >> >> I understand that there is no love for the ABI differences between clang >> and gcc, but that doesn't help me. Even if the patch is unacceptable >> a

Re: [PATCH v8 5/7] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-06 Thread Tim Harvey
On Tue, Feb 6, 2018 at 12:38 PM, Hans Verkuil wrote: > On 02/06/2018 09:27 PM, Tim Harvey wrote: >> Add support for the TDA1997x HDMI receivers. >> >> Cc: Hans Verkuil >> Signed-off-by: Tim Harvey >> --- > > > >> +static int tda1997x_get_dv_timings_cap(struct v4l2_subdev *sd, >> +

RE: [PATCH v2] arc: dts: use 'atmel' as manufacturer for at24 in axs10x_mb

2018-02-06 Thread Alexey Brodkin
Hi Bartosz, > -Original Message- > From: Bartosz Golaszewski [mailto:b...@bgdev.pl] > Sent: Tuesday, February 6, 2018 7:02 PM > To: Alexey Brodkin > Cc: linux-kernel@vger.kernel.org; mark.rutl...@arm.com; > vineet.gup...@synopsys.com; robh...@kernel.org; > devicet...@vger.kernel.org; lin

Re: [PATCH] igb: Fix a test with HWTSTAMP_TX_ON

2018-02-06 Thread Richard Cochran
On Tue, Feb 06, 2018 at 08:47:59PM +0100, Christophe JAILLET wrote: > 'HWTSTAMP_TX_ON' should be handled as a value, not as a bit mask. > The modified code should behave the same, because HWTSTAMP_TX_ON is 1 > and no other possible values of 'tx_type' would match the test. > However, this is more f

Re: [Intel-wired-lan] [PATCH] Documentation: networking: Update ixgb kconfig select documentation

2018-02-06 Thread Jeff Kirsher
On Tue, 2018-02-06 at 13:01 -0800, Alexander Duyck wrote: > On Tue, Feb 6, 2018 at 12:42 PM, Corentin Labbe > wrote: > > Update documentation on how to enable ixgb and ixgb DCB. > > Simply remove NETDEV_1 and replace it with the new used kconfig > > names. > > Minor typo in the patch descript

Re: [PATCH v8 5/7] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-06 Thread Hans Verkuil
On 02/06/2018 10:03 PM, Tim Harvey wrote: > On Tue, Feb 6, 2018 at 12:38 PM, Hans Verkuil wrote: >> On 02/06/2018 09:27 PM, Tim Harvey wrote: >>> Add support for the TDA1997x HDMI receivers. >>> >>> Cc: Hans Verkuil >>> Signed-off-by: Tim Harvey >>> --- >> >> >> >>> +static int tda1997x_get_dv_

Re: [STABLE 4.9.y PATCH 0/9] Backport of KVM Speculation Control support

2018-02-06 Thread Woodhouse, David
On Tue, 2018-02-06 at 19:01 +0100, Paolo Bonzini wrote: > On 06/02/2018 18:29, David Woodhouse wrote: > > I've put together a linux-4.9.y branch at  > > http://git.infradead.org/retpoline-stable.git/shortlog/refs/heads/linux-4.9.y > >  > > Most of it is fairly straightforward, apart from the IBPB

[PATCH 1/1] KEYS: encrypted: fix buffer overread in valid_master_desc()

2018-02-06 Thread Jin Qian
From: Eric Biggers commit 794b4bc292f5d31739d89c0202c54e7dc9bc3add upstream With the 'encrypted' key type it was possible for userspace to provide a data blob ending with a master key description shorter than expected, e.g. 'keyctl add encrypted desc "new x" @s'. When validating such a master k

[PATCH 0/2] sun4i_ss_prng fixes

2018-02-06 Thread Artem Savkov
IPSec hasn't been working on my a10 board since 4.14 and it turned out to be caused by sun4i_ss_rng driver. Artem Savkov (2): sun4i_ss_prng: fix return value of sun4i_ss_prng_generate sun4i_ss_prng: convert lock to _bh in sun4i_ss_prng_generate drivers/crypto/sunxi-ss/sun4i-ss-prng.c | 6 +++

[PATCH 2/2] sun4i_ss_prng: convert lock to _bh in sun4i_ss_prng_generate

2018-02-06 Thread Artem Savkov
Lockdep detects a possible deadlock in sun4i_ss_prng_generate() and throws an "inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage" warning. Disabling softirqs to fix this. Fixes: b8ae5c7387ad ("crypto: sun4i-ss - support the Security System PRNG") Signed-off-by: Artem Savkov --- drivers/crypto/

[PATCH 1/2] sun4i_ss_prng: fix return value of sun4i_ss_prng_generate

2018-02-06 Thread Artem Savkov
According to crypto/rng.h generate function should return 0 on success and < 0 on error. Fixes: b8ae5c7387ad ("crypto: sun4i-ss - support the Security System PRNG") Signed-off-by: Artem Savkov --- drivers/crypto/sunxi-ss/sun4i-ss-prng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH v8 0/7] TDA1997x HDMI video reciver

2018-02-06 Thread Hans Verkuil
On 02/06/2018 09:27 PM, Tim Harvey wrote: > v4l2-compliance test results: > - with the following kernel patches: >v4l2-subdev: clear reserved fields > . v4l2-subdev: without controls return -ENOTTY > > v4l2-compliance SHA : b2f8f9049056eb6f9e028927dacb2c715a062df8 > Media Driver Info: >

[PATCH 0/2] GPU-DRM-TILCDC: Adjustments for seven function implementations

2018-02-06 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 6 Feb 2018 22:17: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 in seven functions Use common error handling code in of_get_panel_info() dri

[PATCH 1/1] KEYS: encrypted: fix buffer overread in valid_master_desc()

2018-02-06 Thread Jin Qian
From: Eric Biggers commit 794b4bc292f5d31739d89c0202c54e7dc9bc3add upstream With the 'encrypted' key type it was possible for userspace to provide a data blob ending with a master key description shorter than expected, e.g. 'keyctl add encrypted desc "new x" @s'. When validating such a master k

[PATCH 1/2] drm/tilcdc: Delete an error message for a failed memory allocation in seven functions

2018-02-06 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 6 Feb 2018 21:51:15 +0100 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 4 +--- drivers/gpu/drm/tilc

[PATCH] Update rf_type_definition

2018-02-06 Thread l4stpr0gr4m
From: Kangmin Park enum RT_RF_TYPE_DEFINITION on rtl8723bs/include/rtw_rf.h is different from enum tag_HAL_RF_Type_Definition on rtl8723bs/include/HalVerDef.h So, update them to be the same reference from enum rf_type on rtlwifi/wifi.h which recent version. As a result, ODM_RF_TYPE_E needs to b

<    2   3   4   5   6   7   8   9   10   >