[RFC PATCH v2 2/4] x86/fault: Attempt to fixup unhandled #PF in vDSO before signaling

2018-12-06 Thread Sean Christopherson
Call fixup_vdso_exception() in the SIGSEGV and SIGBUS paths of the page fault handler immediately prior to signaling. If the fault is fixed, return cleanly and do not generate a signal. The goal of vDSO fixup is not to fixup all faults, nor is it to avoid all signals, but rather to report faults

Re: [PATCH] aio: Convert ioctx_table to XArray

2018-12-06 Thread Jeff Moyer
Matthew Wilcox writes: > This custom resizing array was vulnerable to a Spectre attack (speculating > off the end of an array to a user-controlled offset). The XArray is > not vulnerable to Spectre as it always masks its lookups to be within > the bounds of the array. I'm not a big fan of compl

Re: [PATCH v4] signal: add taskfd_send_signal() syscall

2018-12-06 Thread Eric W. Biederman
Daniel Colascione writes: > On Thu, Dec 6, 2018 at 12:29 PM Eric W. Biederman > wrote: >> Christian Brauner writes: >> >> > [1]: You cannot replicate certain aspects of kill *yet*. We have >> > established this before. If we want process group support later we do >> > have the flags argument t

[PATCH] regulator: core: Clean enabling always-on regulators + their supplies

2018-12-06 Thread Douglas Anderson
At the end of regulator_resolve_supply() we have historically turned on our supply in some cases. This could be for one of two reasons: 1. If resolving supplies was happening before the call to set_machine_constraints() we needed to predict if set_machine_constraints() was going to turn the

[PATCH] scripts: add a tool to produce a compile_commands.json file

2018-12-06 Thread Tom Roeder
The LLVM/Clang project provides many tools for analyzing C source code. Many of these tools are based on LibTooling (https://clang.llvm.org/docs/LibTooling.html), which depends on a database of compiler flags. The standard container for this database is compile_commands.json, which consists of a li

Re: [PATCH 0/4][V4] drop the mmap_sem when doing IO in the fault path

2018-12-06 Thread Dave Chinner
On Tue, Dec 04, 2018 at 02:49:31PM -0800, Andrew Morton wrote: > On Fri, 30 Nov 2018 14:58:08 -0500 Josef Bacik wrote: > > > Now that we have proper isolation in place with cgroups2 we have started > > going > > through and fixing the various priority inversions. Most are all gone now, > > but

Re: [PATCH] aio: Convert ioctx_table to XArray

2018-12-06 Thread Jeff Moyer
Jeff Moyer writes: > Matthew Wilcox writes: > >> This custom resizing array was vulnerable to a Spectre attack (speculating >> off the end of an array to a user-controlled offset). The XArray is >> not vulnerable to Spectre as it always masks its lookups to be within >> the bounds of the array.

[PATCH v2] ASoC: max9867: Remove useless assignment

2018-12-06 Thread Ladislav Michl
ret is assigned later, no need to initialize it. Signed-off-by: Ladislav Michl --- CHANGES: -v2: add missing Signed-off-by (I'm sorry for that...) sound/soc/codecs/max9867.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/max9867.c b/sound/soc/codec

Re: [PATCH v4] signal: add taskfd_send_signal() syscall

2018-12-06 Thread Serge E. Hallyn
On Thu, Dec 06, 2018 at 10:30:40AM -0800, Kees Cook wrote: > On Thu, Dec 6, 2018 at 9:41 AM Christian Brauner wrote: > > I feel changing the name around by a single persons preferences is not > > really a nice thing to do community-wise. So I'd like to hear other > > people chime in first before I

Re: [RFC PATCH 00/14] Heterogeneous Memory System (HMS) and hbind()

2018-12-06 Thread Jerome Glisse
On Thu, Dec 06, 2018 at 02:04:46PM -0800, Dave Hansen wrote: > On 12/6/18 12:11 PM, Logan Gunthorpe wrote: > >> My concern with having folks do per-program parsing, *and* having a huge > >> amount of data to parse makes it unusable. The largest systems will > >> literally have hundreds of thousand

Re: [PATCH v4] signal: add taskfd_send_signal() syscall

2018-12-06 Thread Christian Brauner
On Thu, Dec 06, 2018 at 03:46:53PM -0600, Eric W. Biederman wrote: > Christian Brauner writes: > > >> Your intention is to add the thread case to support pthreads once the > >> process case is sorted out. So this is something that needs to be made > >> clear. Did I miss how you plan to handle t

Re: siginfo pid not populated from ptrace?

2018-12-06 Thread Eric W. Biederman
Kees Cook writes: > On Thu, Dec 6, 2018 at 1:11 PM Eric W. Biederman > wrote: >> >> Tycho Andersen writes: >> >> > On Thu, Dec 06, 2018 at 10:48:39AM -0800, Linus Torvalds wrote: >> >> On Thu, Dec 6, 2018 at 6:40 AM Eric W. Biederman >> >> wrote: >> >> > >> >> > We have in the past had ptrac

Re: [PATCH v4] signal: add taskfd_send_signal() syscall

2018-12-06 Thread Daniel Colascione
On Thu, Dec 6, 2018 at 2:22 PM Eric W. Biederman wrote: > > Daniel Colascione writes: > > > On Thu, Dec 6, 2018 at 12:29 PM Eric W. Biederman > > wrote: > >> Christian Brauner writes: > >> > >> > [1]: You cannot replicate certain aspects of kill *yet*. We have > >> > established this before. I

linux-next: Signed-off-by missing for commit in the device-mapper tree

2018-12-06 Thread Stephen Rothwell
Hi all, Commit d569b5efedfd ("dm flakey: Properly corrupt multi-page bios.") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell pgpwh3Rpn5zR_.pgp Description: OpenPGP digital signature

Re: [RFC PATCH v2 4/4] x86/vdso: Add __vdso_sgx_enter_enclave() to wrap SGX enclave transitions

2018-12-06 Thread Andy Lutomirski
On Thu, Dec 6, 2018 at 2:19 PM Sean Christopherson wrote: > + > + /* > +* Invoke the caller's exit handler if one was provided. The return > +* value tells us whether to re-enter the enclave (EENTER or ERESUME) > +* or to return (EEXIT). > +*/ > + if (

Re: [PATCH] perf script: Fix LBR skid dump problems in brstackinsn

2018-12-06 Thread Andi Kleen
On Thu, Dec 06, 2018 at 06:29:20PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Dec 06, 2018 at 12:51:48PM -0800, Andi Kleen escreveu: > > On Thu, Dec 06, 2018 at 02:01:40PM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Mon, Nov 19, 2018 at 09:06:17PM -0800, Andi Kleen escreveu: > > > > From:

Re: [PATCH] Input: restore EV_ABS ABS_RESERVED

2018-12-06 Thread Peter Hutterer
On Thu, Dec 06, 2018 at 10:24:11AM +0100, Benjamin Tissoires wrote: > On Thu, Dec 6, 2018 at 9:36 AM Martin Kepplinger > wrote: > > > > On 06.12.18 00:03, Peter Hutterer wrote: > > > ABS_RESERVED was added in d9ca1c990a7 and accidentally removed as part of > > > ffe0e7cf290f5c9 when the high-resol

Re: [PATCH] Input: restore EV_ABS ABS_RESERVED

2018-12-06 Thread Dmitry Torokhov
On Fri, Dec 07, 2018 at 08:46:05AM +1000, Peter Hutterer wrote: > On Thu, Dec 06, 2018 at 10:24:11AM +0100, Benjamin Tissoires wrote: > > On Thu, Dec 6, 2018 at 9:36 AM Martin Kepplinger > > wrote: > > > > > > On 06.12.18 00:03, Peter Hutterer wrote: > > > > ABS_RESERVED was added in d9ca1c990a7 a

Re: siginfo pid not populated from ptrace?

2018-12-06 Thread Kees Cook
On Thu, Dec 6, 2018 at 2:43 PM Eric W. Biederman wrote: > > Kees Cook writes: > > What should we do for v4.20? I need to have the selftests actually > > passing. :) > > For v4.20 we need to do one of two things. > 1) Present a plausible case that someone will could care about, >we document it

Re: [PATCH v3 1/8] Input: add `REL_WHEEL_HI_RES` and `REL_HWHEEL_HI_RES`

2018-12-06 Thread Dmitry Torokhov
On Wed, Dec 05, 2018 at 10:42:21AM +1000, Peter Hutterer wrote: > This event code represents scroll reports from high-resolution wheels and > is modelled after the approach Windows uses. The value 120 is one detent > (wheel click) of movement. Mice with higher-resolution scrolling can send > fracti

linux-next: manual merge of the risc-v tree with the dma-mapping tree

2018-12-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the risc-v tree got a conflict in: Documentation/features/io/sg-chain/arch-support.txt between commit: 7c703e54cc71 ("arch: switch the default on ARCH_HAS_SG_CHAIN") from the dma-mapping tree and commits: 1df4d3866118 ("doc: features-refresh.sh for cs

[PATCH] perf/x86/intel: Fix inaccurate period in context switch for auto-reload

2018-12-06 Thread kan . liang
From: Kan Liang When a task, which is sampled by a PEBS event with a fixed period, is sched_in, the fixed period will always be used as new period for counter. It's inaccurate, because the left period from last sched_out isn't taken into account. The auto-reload feature is implicitly enabled for

Re: linux-next: bad merge in the y2038 tree

2018-12-06 Thread Stephen Rothwell
Hi Arnd, On Thu, 6 Dec 2018 23:09:01 +0100 Arnd Bergmann wrote: > > On Thu, Dec 6, 2018 at 9:12 PM Stephen Rothwell wrote: > > > > The y2038 tree contains a merge of next-20181206. I cannot use a tree > > that includes a version of linux-next. I assume that this was j

RE: [PATCH 0/9] dt-bindings: Firmware node binding for ZynqMP core

2018-12-06 Thread Jolly Shah
Hi Rob, > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Wednesday, December 05, 2018 2:21 PM > To: Jolly Shah > Cc: mark.rutl...@arm.com; devicet...@vger.kernel.org; Nava kishore Manne > ; linux-kernel@vger.kernel.org; Rajan Vaja > ; Michal Simek ; linux-arm- > k

Re: [RFC PATCH 00/14] Heterogeneous Memory System (HMS) and hbind()

2018-12-06 Thread Dave Hansen
On 12/6/18 2:39 PM, Jerome Glisse wrote: > No if the 4 sockets are connect in a ring fashion ie: > Socket0 - Socket1 >| | > Socket3 - Socket2 > > Then you have 4 links: > link0: socket0 socket1 > link1: socket1 socket2 > link3: socket2 socket3 > link4: socket3 s

RE: [PATCH] usb: dwc2: Revert "usb: dwc2: Disable all EP's on disconnect"

2018-12-06 Thread Maynard CABIENTE
Hi Minas, I tried your new patch on top of the other 2 patches for a couple of days now and I do not see the issue that Marek encountered. Of course, I did not see it also on the original two patches you created. I also do not see the original FIFO map warning issue that I have with all 3 patch

How are you today?

2018-12-06 Thread Ms.Amelia Halona
Good Day Dear, I'm Ms Amelia and am new here looking for a serious relationship with someone i can spend the rest of my life with, someone who is loving, caring, honest and faithful to spend the rest of my life with, i came across your profile and its very interesting to me and i would like

Re: [PATCH v2 2/5] genirq: Export irq_chip_set_wake_parent()

2018-12-06 Thread Thomas Gleixner
On Thu, 6 Dec 2018, Marc Zyngier wrote: > On 05/12/2018 21:31, Linus Walleij wrote: > > On Thu, Nov 29, 2018 at 6:03 PM Thierry Reding > > wrote: > > > >> From: Thierry Reding > >> > >> Interrupt controllers in a hierarchy want to use this function to > >> propogate ->irq_set_wake() operations

Re: [PATCH] auxdisplay: charlcd: fix x/y command parsing

2018-12-06 Thread Robert Abel
Hi Miguel, On 05 Dec 2018 17:47, Miguel Ojeda wrote:> Hi Mans, > > [CC'ing a few people involved previously on this] Thanks for CC'ing me! On 06 Dec 2018 11:06, Miguel Ojeda wrote [to Mans Rullgard]: > Are you able to test this? It's unfortunate that my original comment got ignored back when th

Re: [PATCH v4] signal: add taskfd_send_signal() syscall

2018-12-06 Thread Christian Brauner
On Thu, Dec 06, 2018 at 11:39:48PM +0100, Christian Brauner wrote: > On Thu, Dec 06, 2018 at 03:46:53PM -0600, Eric W. Biederman wrote: > > Christian Brauner writes: > > > > >> Your intention is to add the thread case to support pthreads once the > > >> process case is sorted out. So this is som

Re: [PATCH] auxdisplay: charlcd: fix x/y command parsing

2018-12-06 Thread Miguel Ojeda
Hi Robert, On Fri, Dec 7, 2018 at 12:13 AM Robert Abel wrote: > > Hi Miguel, > > On 05 Dec 2018 17:47, Miguel Ojeda wrote:> Hi Mans, > > > > [CC'ing a few people involved previously on this] > > Thanks for CC'ing me! > > On 06 Dec 2018 11:06, Miguel Ojeda wrote [to Mans Rullgard]: > > Are you abl

Re: [RFC PATCH 00/14] Heterogeneous Memory System (HMS) and hbind()

2018-12-06 Thread Logan Gunthorpe
On 2018-12-06 4:09 p.m., Dave Hansen wrote: > This looks great. But, we don't _have_ this kind of information for any > system that I know about or any system available in the near future. > > We basically have two different world views: > 1. The system is described point-to-point. A connects

[PATCH v6 0/5] arm64: dts: qcom: sdm845: Add UFS DT nodes

2018-12-06 Thread Evan Green
Update the device tree bindings for the QMP PHY to properly specify the registers for dual-lane PHYs. Update the driver to use those new registers. Add the DT nodes for UFS on SDM845 and MTP. Finally, fix up the USB3 PHY on SDM845, which also has a dual-lane phy Andy/Kishon, Just a heads up that t

[PATCH v6 2/5] phy: qcom-qmp: Utilize fully-specified DT registers

2018-12-06 Thread Evan Green
Utilize the newly fixed up DT bindings to get the tx2 and rx2 register regions for the second lane of dual-lane PHYs. Before this change, the driver was simply using lane one's register region and adding 0x400, which reached well beyond the DT-specified register allocation. This would have been a c

[PATCH v6 1/5] dt-bindings: phy-qcom-qmp: Fix register underspecification

2018-12-06 Thread Evan Green
Add register regions for the second lane of dual-lane nodes. This additional specification is needed so that the driver can stop reaching beyond the tx and rx register allocations to get at the second lane registers in a dual-lane PHY. While in there, document #clock-cells as optional for PHYs tha

[PATCH v6 5/5] arm64: dts: qcom: sdm845: Add USB PHY lane two

2018-12-06 Thread Evan Green
Add the second lane registers for the USB PHY, now that the QMP phy bindings have been updated. This way the driver can stop reaching beyond its register region to get at the second lane. Signed-off-by: Evan Green Reviewed-by: Douglas Anderson Reviewed-by: Bjorn Andersson --- Changes in v6: No

[PATCH v6 4/5] arm64: dts: qcom: sdm845: Add UFS nodes for sdm845-mtp

2018-12-06 Thread Evan Green
From: Can Guo Enable the UFS host controller and PHY on sdm845-mtp. Signed-off-by: Can Guo Signed-off-by: Evan Green Reviewed-by: Vivek Gautam Reviewed-by: Douglas Anderson --- Changes in v6: - Fix renamed nodes in MTP (Bjorn) Changes in v5: None Changes in v4: None Changes in v3: None Ch

[PATCH v6 3/5] arm64: dts: qcom: sdm845: add UFS controller

2018-12-06 Thread Evan Green
Add the UFS controller and PHY to SDM845. Signed-off-by: Evan Green Signed-off-by: Douglas Anderson Reviewed-by: Bjorn Andersson --- As Doug mentioned in v2, this should land after (or with) the driver fix in this series. Changes in v6: - Removed resets and reset-names (Bjorn) - Renamed nodes

Re: [PATCH v2 1/3] dt-bindings: mmc: sdhci-msm: Clarify register requirements

2018-12-06 Thread Doug Anderson
Hi, On Thu, Dec 6, 2018 at 10:45 AM Evan Green wrote: > > In sdhci-msm-v5 and beyond, the MCI registers are removed, so there is only > one register region required. > > Signed-off-by: Evan Green > --- > > Changes in v2: None > > Documentation/devicetree/bindings/mmc/sdhci-msm.txt | 2 +- > 1 fi

Re: [RFC PATCH 00/14] Heterogeneous Memory System (HMS) and hbind()

2018-12-06 Thread Dave Hansen
On 12/6/18 3:28 PM, Logan Gunthorpe wrote: > These patches are really tied to world view #1. But, the HMAT is really > tied to world view #1. Whoops, should have been "the HMAT is really tied to world view #2"

Re: [RFC PATCH 00/14] Heterogeneous Memory System (HMS) and hbind()

2018-12-06 Thread Dave Hansen
On 12/6/18 3:28 PM, Logan Gunthorpe wrote: > I didn't think this was meant to describe actual real world performance > between all of the links. If that's the case all of this seems like a > pipe dream to me. The HMAT discussions (that I was a part of at least) settled on just trying to describe w

Re: [PATCH v2 1/3] dt-bindings: mmc: sdhci-msm: Clarify register requirements

2018-12-06 Thread Evan Green
On Thu, Dec 6, 2018 at 3:34 PM Doug Anderson wrote: > > Hi, > On Thu, Dec 6, 2018 at 10:45 AM Evan Green wrote: > > > > In sdhci-msm-v5 and beyond, the MCI registers are removed, so there is only > > one register region required. > > > > Signed-off-by: Evan Green > > --- > > > > Changes in v2: N

Re: Linux 4.20-rc5: Lab setup broken by build-related x86 change

2018-12-06 Thread Rafael J. Wysocki
On Wednesday, December 5, 2018 3:33:03 PM CET Borislav Petkov wrote: > On Wed, Dec 05, 2018 at 01:15:10PM +0100, Rafael J. Wysocki wrote: > > After commit > > > > commit 4cd24de3a0980bf3100c9dcb08ef65ca7c31af48 > > Author: Zhenzhong Duan > > Date: Fri Nov 2 01:45:41 2018 -0700 > > > > x86/

Re: [LKP] [mm] ac5b2c1891: vm-scalability.throughput -61.3% regression

2018-12-06 Thread David Rientjes
On Wed, 5 Dec 2018, Linus Torvalds wrote: > > Ok, I've applied David's latest patch. > > > > I'm not at all objecting to tweaking this further, I just didn't want > > to have this regression stand. > > Hmm. Can somebody (David?) also perhaps try to state what the > different latency impacts end u

[PATCH 0/6] add system vulnerability sysfs entries

2018-12-06 Thread Jeremy Linton
Part of this series was originally by Mian Yousaf Kaukab. Arm64 machines should be displaying a human readable vulnerability status to speculative execution attacks in /sys/devices/system/cpu/vulnerabilities This series enables that behavior by providing the expected functions. Those functions e

[PATCH 6/6] arm64: enable generic CPU vulnerabilites support

2018-12-06 Thread Jeremy Linton
From: Mian Yousaf Kaukab Enable CPU vulnerabilty show functions for spectre_v1, spectre_v2, meltdown and store-bypass. Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Jeremy Linton --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kcon

[PATCH 2/6] arm64: add sysfs vulnerability show for meltdown

2018-12-06 Thread Jeremy Linton
Add a simple state machine which will track whether all the online cores in a machine are vulnerable. Once that is done we have a fairly authoritative view of the machine vulnerability, which allows us to make a judgment about machine safety if it hasn't been mitigated. Signed-off-by: Jeremy Lint

[PATCH 3/6] arm64: add sysfs vulnerability show for spectre v1

2018-12-06 Thread Jeremy Linton
From: Mian Yousaf Kaukab spectre v1, has been mitigated, and the mitigation is always active. Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Jeremy Linton --- arch/arm64/kernel/cpu_errata.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch

[PATCH 4/6] arm64: add sysfs vulnerability show for spectre v2

2018-12-06 Thread Jeremy Linton
Add code to track whether all the cores in the machine are vulnerable, and whether all the vulnerable cores have been mitigated. Once we have that information we can add the sysfs stub and provide an accurate view of what is known about the machine. Signed-off-by: Jeremy Linton --- arch/arm64/k

Re: [PATCH v2 3/3] arm64: dts: qcom: sdm845: Add SD nodes for sdm845-mtp

2018-12-06 Thread Doug Anderson
Hi, On Thu, Dec 6, 2018 at 10:46 AM Evan Green wrote: > > Enable support for one of the micro SD slots on the MTP. > > Signed-off-by: Evan Green > --- > > Changes in v2: > - Fixed alphabetization of node placement in sdm845-mtp.dtsi (Doug) > - Fixed card detect name to match schematics (Doug).

[PATCH 5/6] arm64: add sysfs vulnerability show for speculative store bypass

2018-12-06 Thread Jeremy Linton
From: Mian Yousaf Kaukab Return status based no ssbd_state and the arm64 SSBS feature. Return string "Unknown" in case CONFIG_ARM64_SSBD is disabled or arch workaround2 is not available in the firmware. Signed-off-by: Mian Yousaf Kaukab [Added SSBS logic] Signed-off-by: Jeremy Linton --- arch

[PATCH 1/6] arm64: kpti: move check for non-vulnerable CPUs to a function

2018-12-06 Thread Jeremy Linton
From: Mian Yousaf Kaukab Add is_meltdown_safe() which is a whitelist of known safe cores. Signed-off-by: Mian Yousaf Kaukab [Moved location of function] Signed-off-by: Jeremy Linton --- arch/arm64/kernel/cpufeature.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) dif

Re: MADV_HUGEPAGE vs. NUMA semantic (was: Re: [LKP] [mm] ac5b2c1891: vm-scalability.throughput -61.3% regression)

2018-12-06 Thread David Rientjes
On Thu, 6 Dec 2018, Michal Hocko wrote: > MADV_HUGEPAGE changes the picture because the caller expressed a need > for THP and is willing to go extra mile to get it. That involves > allocation latency and as of now also a potential remote access. We do > not have complete agreement on the later but

Re: [RFC PATCH 00/14] Heterogeneous Memory System (HMS) and hbind()

2018-12-06 Thread Logan Gunthorpe
On 2018-12-06 4:38 p.m., Dave Hansen wrote: > On 12/6/18 3:28 PM, Logan Gunthorpe wrote: >> I didn't think this was meant to describe actual real world performance >> between all of the links. If that's the case all of this seems like a >> pipe dream to me. > > The HMAT discussions (that I was

[PATCH] scsi: qla2xxx: deadlock by configfs_depend_item

2018-12-06 Thread Anatoliy Glagolev
The intent of invoking configfs_depend_item in commit 7474f52a82d51 ("tcm_qla2xxx: Perform configfs depend/undepend for base_tpg") was to prevent a physical Fibre Channel port removal when virtual (NPIV) ports announced through that physical port are active. The change does not work as expected: it

[PATCH] selftests/seccomp: Remove SIGSTOP si_pid check

2018-12-06 Thread Kees Cook
Commit f149b3155744 ("signal: Never allocate siginfo for SIGKILL or SIGSTOP") means that the seccomp selftest cannot check si_pid under SIGSTOP anymore. Since it's believed[1] there are no other userspace things depending on the old behavior, this removes the behavioral check in the selftest, since

Re: [PATCH v2 2/3] arm64: dts: qcom: sdm845: Add SD node

2018-12-06 Thread Bjorn Andersson
On Thu 06 Dec 10:45 PST 2018, Evan Green wrote: > Add one of the two SD controllers to SDM845. > > Signed-off-by: Evan Green > Reviewed-by: Douglas Anderson Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > > Changes in v2: > - Reworded commit message to note that there are multiple SD

Re: [PATCH v2 3/3] arm64: dts: qcom: sdm845: Add SD nodes for sdm845-mtp

2018-12-06 Thread Bjorn Andersson
On Thu 06 Dec 10:45 PST 2018, Evan Green wrote: > Enable support for one of the micro SD slots on the MTP. > > Signed-off-by: Evan Green Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > > Changes in v2: > - Fixed alphabetization of node placement in sdm845-mtp.dtsi (Doug) > - Fixed car

Re: [PATCH] dt-bindings: sifive: describe sifive-blocks versioning

2018-12-06 Thread Rob Herring
On Wed, Nov 21, 2018 at 05:06:56PM -0800, Paul Walmsley wrote: > > For IP blocks that are generated from the public, open-source > sifive-blocks repository, describe the version numbering policy > that its maintainers intend to use, upon request from Rob > Herring . > > Cc: Rob Herring > Cc: Pal

Re: [PATCH] arm64: dts: sdm845: Add lpasscc node

2018-12-06 Thread Doug Anderson
Hi, On Wed, Dec 5, 2018 at 12:00 AM Taniya Das wrote: > > This adds the low pass audio clock controller node to sdm845 based on > the example in the bindings. > > Signed-off-by: Taniya Das > --- > arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 4 +++- > arch/arm64/boot/dts/qcom/sdm845.dtsi| 8 ++

Re: [RFC PATCH 00/14] Heterogeneous Memory System (HMS) and hbind()

2018-12-06 Thread Jerome Glisse
On Thu, Dec 06, 2018 at 03:09:21PM -0800, Dave Hansen wrote: > On 12/6/18 2:39 PM, Jerome Glisse wrote: > > No if the 4 sockets are connect in a ring fashion ie: > > Socket0 - Socket1 > >| | > > Socket3 - Socket2 > > > > Then you have 4 links: > > link0: socket0

Re: [PATCH v2] mwifiex: debugfs: correct histogram spacing, formatting

2018-12-06 Thread Brian Norris
On Tue, Dec 04, 2018 at 08:37:30AM +0200, Kalle Valo wrote: > Brian Norris writes: > > > Here's a v2 that combines both sets of strings in that way. I'm not > > resending the other patches, since they were only related in concept > > (since I was referring to debugfs for implementing the nl80211

Re: [PATCH] nvme-rdma: complete requests from ->timeout

2018-12-06 Thread Jaesoo Lee
Could you please take a look at this bug and code review? We are seeing more instances of this bug and found that reconnect_work could hang as well, as can be seen from below stacktrace. Workqueue: nvme-wq nvme_rdma_reconnect_ctrl_work [nvme_rdma] Call Trace: __schedule+0x2ab/0x880 schedule+0

Re: [RFC PATCH 00/14] Heterogeneous Memory System (HMS) and hbind()

2018-12-06 Thread Jerome Glisse
On Thu, Dec 06, 2018 at 04:48:57PM -0700, Logan Gunthorpe wrote: > > > On 2018-12-06 4:38 p.m., Dave Hansen wrote: > > On 12/6/18 3:28 PM, Logan Gunthorpe wrote: > >> I didn't think this was meant to describe actual real world performance > >> between all of the links. If that's the case all of t

Re: [PATCH] mfd: tps65218: Use devm_regmap_add_irq_chip and clean up error path in probe

2018-12-06 Thread J, KEERTHY
On 12/7/2018 2:21 AM, Sebastian Reichel wrote: Hi, On Thu, Dec 06, 2018 at 11:07:44PM +0530, Keerthy wrote: Use devm_regmap_add_irq_chip and clean up error path in probe. Reported-by: Christian Hohnstaedt Signed-off-by: Keerthy --- Boot tested on am437x-gp-evm. This is missing cleanup

Re: [PATCH v4] signal: add taskfd_send_signal() syscall

2018-12-06 Thread Serge E. Hallyn
On Fri, Dec 07, 2018 at 12:17:45AM +0100, Christian Brauner wrote: > On Thu, Dec 06, 2018 at 11:39:48PM +0100, Christian Brauner wrote: > > On Thu, Dec 06, 2018 at 03:46:53PM -0600, Eric W. Biederman wrote: > > > Christian Brauner writes: > > > > > > >> Your intention is to add the thread case to

Re: [PATCH v4] signal: add taskfd_send_signal() syscall

2018-12-06 Thread Daniel Colascione
On Thu, Dec 6, 2018 at 4:31 PM Serge E. Hallyn wrote: > > On Fri, Dec 07, 2018 at 12:17:45AM +0100, Christian Brauner wrote: > > On Thu, Dec 06, 2018 at 11:39:48PM +0100, Christian Brauner wrote: > > > On Thu, Dec 06, 2018 at 03:46:53PM -0600, Eric W. Biederman wrote: > > > > Christian Brauner wr

Re: [PATCH] dt-bindings: sifive: describe sifive-blocks versioning

2018-12-06 Thread Paul Walmsley
On Thu, 6 Dec 2018, Rob Herring wrote: > On Wed, Nov 21, 2018 at 05:06:56PM -0800, Paul Walmsley wrote: > > > > For IP blocks that are generated from the public, open-source > > sifive-blocks repository, describe the version numbering policy > > that its maintainers intend to use, upon request

[PATCH v2] tps65218: Use devm_regmap_add_irq_chip and clean up error path in probe

2018-12-06 Thread Keerthy
Use devm_regmap_add_irq_chip and clean up error path in probe. Hence clean up the probe error path and the remove function. Reported-by: Christian Hohnstaedt Signed-off-by: Keerthy --- Changes in v2: * Cleaned up remove function as well. drivers/mfd/tps65218.c | 18 +++--- 1 fi

[PATCH v5 0/2] Add new UniPhier PCIe host driver

2018-12-06 Thread Kunihiko Hayashi
This series adds PCIe host controller driver for Socionext UniPhier SoCs. This controller is based on the DesignWare PCIe core. This driver supports LD20 and PXs3 SoCs. v4: https://www.spinics.net/lists/linux-pci/msg78278.html About legacy IRQ, it might be necessary to share common view from keys

[PATCH v5 1/2] dt-bindings: PCI: Add UniPhier PCIe host controller description

2018-12-06 Thread Kunihiko Hayashi
Add DT bindings for PCIe controller implemented in UniPhier SoCs when configured in Root Complex (host) mode. This controller is based on the DesignWare PCIe core. Signed-off-by: Kunihiko Hayashi Reviewed-by: Rob Herring --- .../devicetree/bindings/pci/uniphier-pcie.txt | 81 ++

[PATCH v5 2/2] PCI: uniphier: Add UniPhier PCIe host controller support

2018-12-06 Thread Kunihiko Hayashi
This introduces specific glue layer for UniPhier platform to support PCIe host controller that is based on the DesignWare PCIe core, and this driver supports Root Complex (host) mode. Signed-off-by: Kunihiko Hayashi --- MAINTAINERS| 7 + drivers/pci/controller/d

linux-next: manual merge of the jc_docs tree with the fscrypt tree

2018-12-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the jc_docs tree got a conflict in: Documentation/filesystems/index.rst between commit: 1b71a6809f96 ("fs-verity: add a documentation file") from the fscrypt tree and commit: 7bbfd9ad8eb2 ("Documentation: convert path-lookup from markdown to resturct

Re: [PATCH v4] signal: add taskfd_send_signal() syscall

2018-12-06 Thread Serge E. Hallyn
On Thu, Dec 06, 2018 at 04:34:54PM -0800, Daniel Colascione wrote: > On Thu, Dec 6, 2018 at 4:31 PM Serge E. Hallyn wrote: > > > > On Fri, Dec 07, 2018 at 12:17:45AM +0100, Christian Brauner wrote: > > > On Thu, Dec 06, 2018 at 11:39:48PM +0100, Christian Brauner wrote: > > > > On Thu, Dec 06, 201

[PATCH] thermal: uniphier: Convert to SPDX identifier

2018-12-06 Thread Kunihiko Hayashi
This converts license boilerplate to SPDX identifier, and removes unnecessary lines. Signed-off-by: Kunihiko Hayashi --- drivers/thermal/uniphier_thermal.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/thermal/uniphier_thermal.c b/drivers/thermal/unip

Re: [PATCH] riscv: remove unused variable in ftrace

2018-12-06 Thread Steven Rostedt
On Thu, 6 Dec 2018 11:20:31 -0800 Olof Johansson wrote: > On Thu, Dec 6, 2018 at 2:26 AM David Abdurachmanov > wrote: > > > > Noticed while building kernel-4.20.0-0.rc5.git2.1.fc30 for > > Fedora 30/RISCV. > > > > [..] > > BUILDSTDERR: arch/riscv/kernel/ftrace.c: In function > > 'prepare_ftrace

[PATCH v3 21/24] locking/lockdep: Verify whether lock objects are small enough to be used as class keys

2018-12-06 Thread Bart Van Assche
Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 9 + 1 file changed, 9 insertions(+) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index 8c69516b1283..a47357d3dca7 100644 --- a/kernel/locking/lockdep

[PATCH v3 22/24] locking/lockdep: Add support for dynamic keys

2018-12-06 Thread Bart Van Assche
A shortcoming of the current lockdep implementation is that it requires lock keys to be allocated statically. That forces certain lock objects to share lock keys. Since lock dependency analysis groups lock objects per key sharing lock keys can cause false positive lockdep reports. Make it possible

[PATCH v3 10/24] locking/lockdep: Introduce lock_class_cache_is_registered()

2018-12-06 Thread Bart Van Assche
This patch does not change any functionality but makes the lockdep_reset_lock() function easier to read. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 50 1 file changed, 30 insertion

[PATCH v3 14/24] locking/lockdep: Make zap_class() remove all matching lock order entries

2018-12-06 Thread Bart Van Assche
Make sure that all lock order entries that refer to a class are removed from the list_entries[] array when a kernel module is unloaded. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- include/linux/lockdep.h | 1 + kernel/locking/lockdep.c | 17 ++

[PATCH v3 04/24] lockdep tests: Run lockdep tests a second time under Valgrind

2018-12-06 Thread Bart Van Assche
This improves test coverage. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- tools/lib/lockdep/run_tests.sh | 14 ++ 1 file changed, 14 insertions(+) diff --git a/tools/lib/lockdep/run_tests.sh b/tools/lib/lockdep/run_tests.sh index bc36178

[PATCH v3 01/24] lockdep tests: Display compiler warning and error messages

2018-12-06 Thread Bart Van Assche
If compilation of liblockdep fails, display an error message and exit immediately. Display compiler warning and error messages that are generated while building a test. Only run a test if compilation of it succeeded. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van A

[PATCH v3 08/24] locking/lockdep: Declare local symbols static

2018-12-06 Thread Bart Van Assche
This patch avoids that sparse complains about a missing declaration for the lock_classes array when building with CONFIG_DEBUG_LOCKDEP=n. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 3 +++ 1 file changed, 3 insertions(+)

[PATCH v3 07/24] lockdep tests: Test the lockdep_reset_lock() implementation

2018-12-06 Thread Bart Van Assche
This patch makes sure that the lockdep_reset_lock() function gets tested. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- tools/lib/lockdep/include/liblockdep/common.h | 1 + tools/lib/lockdep/include/liblockdep/mutex.h | 1 + tools/lib/lockdep/tests/A

[PATCH v3 16/24] locking/lockdep: Retain the class key and name while freeing a lock class

2018-12-06 Thread Bart Van Assche
The next patch in this series uses the class name in code that detects calls to lock_acquire() while a class key is being freed. Hence retain the class name for lock classes that are being freed. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/lo

[PATCH v3 05/24] liblockdep: Rename "trywlock" into "trywrlock"

2018-12-06 Thread Bart Van Assche
This patch avoids that the following compiler warning is reported while compiling the lockdep unit tests: include/liblockdep/rwlock.h: In function 'liblockdep_pthread_rwlock_trywlock': include/liblockdep/rwlock.h:66:9: warning: implicit declaration of function 'pthread_rwlock_trywlock'; did you m

[PATCH v3 17/24] locking/lockdep: Free lock classes that are no longer in use

2018-12-06 Thread Bart Van Assche
Instead of leaving lock classes that are no longer in use in the lock_classes array, reuse entries from that array that are no longer in use. Maintain a linked list of free lock classes with list head 'free_lock_class'. Initialize that list from inside register_lock_class() instead of from inside l

[PATCH v3 03/24] lockdep tests: Improve testing accuracy

2018-12-06 Thread Bart Van Assche
Instead of checking whether the tests produced any output, check the output itself. This patch avoids that e.g. debug output causes the message "PASSED!" to be reported for failed tests. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- tools/lib/lockdep/

[PATCH v3 24/24] lockdep tests: Test dynamic key registration

2018-12-06 Thread Bart Van Assche
Make sure that the lockdep_register_key() and lockdep_unregister_key() code is tested when running the lockdep tests. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- tools/lib/lockdep/include/liblockdep/common.h | 2 ++ tools/lib/lockdep/include/libloc

[PATCH v3 20/24] locking/lockdep: Introduce __lockdep_free_key_range()

2018-12-06 Thread Bart Van Assche
This patch does not change any functionality but makes the next patch in this series easier to read. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 37 ++--- 1 file changed, 22 insertions(+), 1

[PATCH v3 19/24] locking/lockdep: Check data structure consistency

2018-12-06 Thread Bart Van Assche
Debugging lockdep data structure inconsistencies is challenging. Add disabled code that verifies data structure consistency at runtime. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 146 ++

Re: [PATCH v2] clocksource/drivers/fttmr010: fix invalid interrupt register access

2018-12-06 Thread Tao Ren
On 11/5/18, 11:00 AM, "Tao Ren" wrote: > On 11/5/18, 10:51 AM, "Daniel Lezcano" wrote: >> Oh right, sorry. Should it go to stable also ? Is there a Fixes tag it can >> apply ? >> > Personally I don't think it needs to go to stable, because I don't see any > functional failures caused by this i

[PATCH v3 23/24] kernel/workqueue: Use dynamic lockdep keys for workqueues

2018-12-06 Thread Bart Van Assche
Commit 87915adc3f0a ("workqueue: re-add lockdep dependencies for flushing") improved deadlock checking in the workqueue implementation. Unfortunately that patch also introduced a few false positive lockdep complaints. This patch suppresses these false positives by allocating the workqueue mutex loc

[PATCH v3 18/24] locking/lockdep: Reuse list entries that are no longer in use

2018-12-06 Thread Bart Van Assche
Instead of abandoning elements of list_entries[] that are no longer in use, make alloc_list_entry() reuse array elements that have been freed. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 27 --- 1 f

[PATCH v3 15/24] locking/lockdep: Reorder struct lock_class members

2018-12-06 Thread Bart Van Assche
This patch does not change any functionality but makes the patch that frees lock classes that are no longer in use easier to read. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- include/linux/lockdep.h | 14 +++--- 1 file changed, 7 insertions(

[PATCH v3 13/24] locking/lockdep: Stop using RCU primitives to access all_lock_classes

2018-12-06 Thread Bart Van Assche
Due to the previous patch all code that accesses the 'all_lock_classes' list holds the graph lock. Hence use regular list primitives instead of their RCU variants to access this list. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockde

[PATCH v3 12/24] locking/lockdep: Make concurrent lockdep_reset_lock() calls safe

2018-12-06 Thread Bart Van Assche
Since zap_class() removes items from the all_lock_classes list and the classhash_table, protect all zap_class() calls against concurrent data structure modifications with the graph lock. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/loc

[PATCH v3 06/24] liblockdep: Add dummy print_irqtrace_events() implementation

2018-12-06 Thread Bart Van Assche
This patch avoids that linking against liblockdep fails due to no print_irqtrace_events() definition being available. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- tools/lib/lockdep/lockdep.c | 5 + 1 file changed, 5 insertions(+) diff --git a/to

[PATCH v3 00/24] locking/lockdep: Add support for dynamic keys

2018-12-06 Thread Bart Van Assche
Hi Ingo and Peter, A known shortcoming of the current lockdep implementation is that it requires lock keys to be allocated statically. This forces certain unrelated synchronization objects to share keys and this key sharing can cause false positive deadlock reports. This patch series adds support

[PATCH v3 02/24] lockdep tests: Fix shellcheck warnings

2018-12-06 Thread Bart Van Assche
Use find instead of ls to avoid splitting filenames that contain spaces. Use rm -f instead of if ... then rm ...; fi. This patch addresses all shellcheck complaints about the run_tests.sh shell script. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- too

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