Re: [PATCHv2 08/11] atomics: switch to generated fallbacks

2018-07-04 Thread Mark Rutland
On Wed, Jul 04, 2018 at 04:28:47PM +0100, Will Deacon wrote: > On Mon, Jun 25, 2018 at 11:59:49AM +0100, Mark Rutland wrote: > > As a step to ensuring the atomic* APIs are consistent, switch to fallbacks > > generated by gen-atomic-fallback.sh. > > > > These are checked in rather than generated wi

[PATCHv2 1/2] firmware: add request_firmware_nowait_nowarn function

2018-07-04 Thread Sebastian Reichel
So far we got only one function for loading firmware asynchronously: request_firmware_nowait. This adds another method for loading async firmware without generating a warning when the firmware file is missing. This is useful for devices, which also work without a firmware (i.e. by using ROM firmwar

[PATCHv2 2/2] dmaengine: imx-sdma: request firmware with FW_OPT_NO_WARN

2018-07-04 Thread Sebastian Reichel
Request firmware with FW_OPT_NO_WARN. The driver works without the firmware by using the one supplied in ROM. There is already an info message, that informs about this. Signed-off-by: Sebastian Reichel --- drivers/dma/imx-sdma.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) d

[PATCHv2 0/2] Avoid firmware warning in imx-sdma

2018-07-04 Thread Sebastian Reichel
Hi, I grabbed the first patch from patchwork from an 2017 patch series. As far as I could see, their usecase vanished due to switching to sync FW API (that already supports NOWARN). This series fixes a kernel warning in imx-sdma driver, which works fine with ROM firmware (and already prints an inf

Re: [PATCH 1/1] X86/Hyper-V:: Fix the circular dependency in IPI enlightenment.

2018-07-04 Thread Ingo Molnar
* k...@linuxonhyperv.com wrote: > From: "K. Y. Srinivasan" > > The IPI hypercalls depend on being able to map the Linux notion of CPU ID > to the hypervisor's notion of the CPU ID. The array hv_vp_index[] provides > this mapping. Code for populating this array depends on the IPI functionality

Re: [PATCH v3 1/2] IIO: st_accel_i2c.c: Simplify access to driver data

2018-07-04 Thread Andy Shevchenko
On Tue, Jul 3, 2018 at 8:41 AM, Nikolaus Voss wrote: > Use device_get_match_data API to simplify access to driver data. > Let acpi_device_id table entries point to the same driver data as > of_device_id table entries and uniquify access to driver data by using > device_get_match_data API. Remove u

Re: [PATCH v2 3/3] serial: 8250_dw: add fractional divisor support

2018-07-04 Thread Andy Shevchenko
On Wed, 2018-07-04 at 17:03 +0800, Jisheng Zhang wrote: Thanks for an update, my comments below. > For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a > valid divisor latch fraction register. The fractional divisor width is > 4bits ~ 6bits. I have read 4.00a spec a bit and didn't

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Andy Shevchenko
On Wed, Jul 4, 2018 at 4:44 PM, Javier Martinez Canillas wrote: > On 07/04/2018 03:24 PM, Nikolaus Voss wrote: >> I hope you're still not annoyed... > Don't worry for that, it's very hard to get my annoyed :) Javier, thanks for your patience and nice explanation! -- With Best Regards, Andy She

Re: [PATCH 1/2] Revert "mfd: cros_ec: Remove unused __remove function"

2018-07-04 Thread Lee Jones
On Wed, 04 Jul 2018, Dmitry Torokhov wrote: > On Wed, Jul 04, 2018 at 07:48:11AM +0100, Lee Jones wrote: > > On Wed, 20 Jun 2018, Dmitry Torokhov wrote: > > > > > This reverts commit 556c242045f0c1613aac2e64dc5b2ff0e4bc89e1. > > > > > > The patch that this change is purported to fix is broken and

[PATCH] checkpatch: handle token pasting better

2018-07-04 Thread Paolo Bonzini
The mechanism to find possible type tokens can sometimes be confused and go into an infinite loop. This happens for example in QEMU for a line that looks like uint## BITS ##_t S = _S, T = _T;\ uint## BITS ##_t as, at, xs, xt, xd;

Re: [PATCH v3 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Andy Shevchenko
On Tue, Jul 3, 2018 at 9:06 AM, Nikolaus Voss wrote: > struct i2c_device_id argument of probe() is not used, so use probe_new() > instead. > Reviewed-by: Andy Shevchenko After Javier's explanations it's more clear now why we leave i2c ID table. > Signed-off-by: Nikolaus Voss > --- > drivers/

[tip:x86/cpu] x86/numa_emulation: Fix uniform size build failure

2018-07-04 Thread tip-bot for Dan Williams
Commit-ID: 94cc60b72f99006f6f2b9b5b7317805d6e5abddb Gitweb: https://git.kernel.org/tip/94cc60b72f99006f6f2b9b5b7317805d6e5abddb Author: Dan Williams AuthorDate: Tue, 3 Jul 2018 14:00:57 -0700 Committer: Ingo Molnar CommitDate: Wed, 4 Jul 2018 18:12:20 +0200 x86/numa_emulation: Fix unif

Re: [PATCH v2] KVM: Expose the split lock detection feature to guest VM

2018-07-04 Thread Paolo Bonzini
On 04/07/2018 16:51, Thomas Gleixner wrote: > There is no rush for this to be in KVM/QEMU now because all what exists for > this new split lock thing is 'silicon' running on an emulator. And w/o > support in the kernel proper this is completely useless. That's good. I assumed it was IceLake, in w

Re: [lkp-robot] [x86/entry/64/compat] 8bb2610bc4: kernel_selftests.x86.test_syscall_vdso_32.fail

2018-07-04 Thread Linus Torvalds
On Tue, Jul 3, 2018 at 11:58 PM kernel test robot wrote: > > FYI, we noticed the following commit (built with gcc-7): > > commit: 8bb2610bc4967f19672444a7b0407367f1540028 ("x86/entry/64/compat: > Preserve r8-r11 in int $0x80") > [...] > caused below changes (please refer to attached dmesg/kmsg fo

Re: [PATCH v2] leds: ledtrig-morse: send out morse code

2018-07-04 Thread Andy Shevchenko
On Wed, Jul 4, 2018 at 5:41 AM, Willy Tarreau wrote: > On Tue, Jul 03, 2018 at 09:43:06PM +0300, Andy Shevchenko wrote: > Well, in this case it's even possible to go further and avoid storing > 36 strings. Indeed, no representation is longer than 5 symbols, so you > can use 5 bits for the encodin

KASAN: stack-out-of-bounds Read in timerqueue_add

2018-07-04 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:fc36def997cf mm: teach dump_page() to correctly output poi.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=167e3b9240 kernel config: https://syzkaller.appspot.com/x/.config?x=f62553dc846b0692 da

Re: [PATCH 01/14] dmaengine: dma-jz4780: Avoid hardcoding number of channels

2018-07-04 Thread PrasannaKumar Muralidharan
Hi Paul, On 3 July 2018 at 18:02, Paul Cercueil wrote: > As part of the work to support various other Ingenic JZ47xx SoC versions, > which don't feature the same number of DMA channels per core, we now > deduce the number of DMA channels available from the devicetree > compatible string. > > Sign

Re: [PATCH 2/3] arm64: add endianness option to LDFLAGS instead of LD

2018-07-04 Thread Will Deacon
On Tue, Jul 03, 2018 at 10:22:00AM +0900, Masahiro Yamada wrote: > With the recent syntax extension, Kconfig is now able to evaluate the > compiler / toolchain capability. > > However, accumulating flags to 'LD' is not compatible with the way > it works; 'LD' must be passed to Kconfig to call $(ld

Re: [PATCH v6 21/21] s390: doc: detailed specifications for AP virtualization

2018-07-04 Thread Boris Fiuczynski
On 07/03/2018 06:36 PM, Tony Krowiak wrote: On 07/02/2018 07:10 PM, Halil Pasic wrote: On 06/29/2018 11:11 PM, Tony Krowiak wrote: This patch provides documentation describing the AP architecture and design concepts behind the virtualization of AP devices. It also includes an example of how t

Re: [PATCH 1/2] reset: imx7: Fix always writing bits as 0

2018-07-04 Thread Lorenzo Pieralisi
On Tue, May 29, 2018 at 10:39:16PM +0300, Leonard Crestez wrote: > Right now the only user of reset-imx7 is pci-imx6 and the > reset_control_assert and deassert calls on pciephy_reset don't toggle > the PCIEPHY_BTN and PCIEPHY_G_RST bits as expected. Fix this by writing > 1 or 0 respectively. > >

Re: [PATCH 2/2] PCI: imx: Initial imx7d pm support

2018-07-04 Thread Lorenzo Pieralisi
On Tue, Jul 03, 2018 at 10:42:08AM +0200, Lucas Stach wrote: > Am Montag, den 02.07.2018, 17:18 + schrieb Leonard Crestez: > > On Fri, 2018-06-08 at 16:33 +0200, Lucas Stach wrote: > > > Am Dienstag, den 29.05.2018, 22:39 +0300 schrieb Leonard Crestez: > > > > On imx7d the phy is turned off in

Re: [PATCH 02/14] dmaengine: dma-jz4780: Separate chan/ctrl registers

2018-07-04 Thread PrasannaKumar Muralidharan
Paul, On 3 July 2018 at 18:02, Paul Cercueil wrote: > The register area of the JZ4780 DMA core can be split into different > sections for different purposes: > > * one set of registers is used to perform actions at the DMA core level, > that will generally affect all channels; > > * one set of re

Re: [PATCHv2 11/11] arm64: use instrumented atomics

2018-07-04 Thread Mark Rutland
On Wed, Jul 04, 2018 at 04:24:22PM +0100, Will Deacon wrote: > On Mon, Jun 25, 2018 at 11:59:52AM +0100, Mark Rutland wrote: > > Now that the generic atomic headers provide instrumented wrappers of all > > the atomics implemented by arm64, let's migrate arm64 over to these. > > > > The additional

Re: [PATCH 03/14] dmaengine: dma-jz4780: Use 4-word descriptors

2018-07-04 Thread PrasannaKumar Muralidharan
Hi Paul, On 3 July 2018 at 18:02, Paul Cercueil wrote: > The only information we use in the 8-word version of the hardware DMA > descriptor that is not present in the 4-word version is the transfer > type, aka. the ID of the source or recipient device. > > Since the transfer type will never chang

Re: [PATCH v7] add param that allows bootline control of hardened usercopy

2018-07-04 Thread Kees Cook
On Wed, Jul 4, 2018 at 6:43 AM, Vlastimil Babka wrote: > On 07/03/2018 09:43 PM, Chris von Recklinghausen wrote: > > Subject: [PATCH v7] add param that allows bootline control of hardened > usercopy > > s/bootline/boot time/ ? > >> v1->v2: >> remove CONFIG_HUC_DEFAULT_OFF >> default is

Re: [PATCH 05/14] dmaengine: dma-jz4780: Add support for the JZ4740 SoC

2018-07-04 Thread PrasannaKumar Muralidharan
On 3 July 2018 at 18:02, Paul Cercueil wrote: > The JZ4740 SoC has a single DMA core starring six DMA channels. > > Signed-off-by: Paul Cercueil > --- > Documentation/devicetree/bindings/dma/jz4780-dma.txt | 1 + > drivers/dma/Kconfig | 2 +- > drivers/dma/dma-jz

Re: [PATCH 06/14] dmaengine: dma-jz4780: Add support for the JZ4725B SoC

2018-07-04 Thread PrasannaKumar Muralidharan
On 3 July 2018 at 18:02, Paul Cercueil wrote: > The JZ4725B has one DMA core starring six DMA channels. > As for the JZ4770, each DMA channel's clock can be enabled with > a register write, the difference here being that once started, it > is not possible to turn it off. > > Signed-off-by: Paul Ce

[PATCH 0/3] clk: meson: add gen_clk

2018-07-04 Thread Jerome Brunet
This patch adds GEN_CLK, which a very useful clock for debugging. It allows to output most of the SoC plls through one of the SoC pad. In the future, we could even use clk_measure with it to access the vast majority of the SoC clocks. Jerome Brunet (3): clk: meson: gxbb: remove HHI_GEN_CLK_CTNL

[PATCH 3/3] clk: meson: add gen_clk

2018-07-04 Thread Jerome Brunet
GEN_CLK is able to route several internal clocks to one of the SoC pads. In the future, even more clocks could be made accessible using cts_msr_clk - the clock measure block. Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg.c | 64 +- drivers/cl

[PATCH 1/3] clk: meson: gxbb: remove HHI_GEN_CLK_CTNL duplicate definition

2018-07-04 Thread Jerome Brunet
HHI_GEN_CLK_CTNL is defined twice, just remove the duplicate definition Fixes: 738f66d3211d ("clk: gxbb: add AmLogic GXBB clk controller driver") Signed-off-by: Jerome Brunet --- drivers/clk/meson/gxbb.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/meson/gxbb.h b/drivers/clk/me

Re: [PATCH v2 0/4] Assigning NULL to gfn of dax_direct_access if useless

2018-07-04 Thread Huaisheng Ye
On Thu, 05 Jul 2018 00:48:40 +0800 Dan Williams wrote > On Wed, Jul 4, 2018 at 9:38 AM, Huaisheng Ye wrote: > > From: Huaisheng Ye > > > > Changes since v1 [1]: > > * Collect Jan's reviewed-by. > > * According to Dan's suggestion, update the unit test infrastructure

[PATCH 2/3] clk: meson: expose GEN_CLK clkid

2018-07-04 Thread Jerome Brunet
Expose GEN_CLK clock id Signed-off-by: Jerome Brunet --- include/dt-bindings/clock/axg-clkc.h | 1 + include/dt-bindings/clock/gxbb-clkc.h | 1 + 2 files changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/axg-clkc.h b/include/dt-bindings/clock/axg-clkc.h index 70371228b7e0..fd1f9

[PATCH] pinctrl: meson: add gen_clk pins

2018-07-04 Thread Jerome Brunet
Add the pinctrl configuration for gen_clk on gxbb and axg. gen_clk allows to output and devide several internal clocks of SoC, including most of the plls. Signed-off-by: Jerome Brunet --- drivers/pinctrl/meson/pinctrl-meson-axg.c | 9 + drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 8 +++

Re: [PATCH v7 1/4] mfd: bd71837: mfd driver for ROHM BD71837 PMIC

2018-07-04 Thread Enric Balletbo Serra
Missatge de Dmitry Torokhov del dia dc., 4 de jul. 2018 a les 17:10: > > Hi Enric, > > On Tue, Jun 26, 2018 at 11:06:33AM +0200, Enric Balletbo Serra wrote: > > Hi Matti, > > > > Thanks for the patch, a few comments below, some are feedback I > > received when I sent some patches to this subsystem

[nfsd] page allocation failure -> kernel oops, even local fs hangs.

2018-07-04 Thread Ian Kumlien
Hi, I just had this happen a little while ago, got different weird deadlocks but this one actually generated a oops.. This is basic operation, a machine with 16 gb memory mainly doing NFS traffic. I'm currently playing with RDMA for this, which is why mlx4 is included. When the crash occurs, th

Re: [PATCH] Fix platform data in leds-pca955x.c

2018-07-04 Thread Andy Shevchenko
On Wed, Jul 4, 2018 at 3:46 AM, Rob Landley wrote: > I have some questions about recent changes to leds-pca955x.c since 4.13: > > How is non-of platform data supposed to work now? Commit ed1f4b9676a8 switched > struct led_platform_data *pdata in the _probe() function to a locally defined > structu

Re: [PATCH 07/14] dmaengine: dma-jz4780: Enable Fast DMA to the AIC

2018-07-04 Thread PrasannaKumar Muralidharan
On 3 July 2018 at 18:02, Paul Cercueil wrote: > With the fast DMA bit set, the DMA will transfer twice as much data > per clock period to the AIC, so there is little point not to set it. > > Signed-off-by: Paul Cercueil > --- > drivers/dma/dma-jz4780.c | 5 +++-- > 1 file changed, 3 insertions(+

Re: [PATCH v6 2/4] resource: Use list_head to link sibling resource

2018-07-04 Thread kbuild test robot
Hi Baoquan, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.18-rc3 next-20180704] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH] Fix platform data in leds-pca955x.c

2018-07-04 Thread Andy Shevchenko
On Wed, Jul 4, 2018 at 8:00 PM, Andy Shevchenko wrote: > On Wed, Jul 4, 2018 at 3:46 AM, Rob Landley wrote: > For now, you can switch to unified device properties API (basically > un-ifdef pca955x_pdata_of_init() and replacing of_* by device_* or > fwnode_* compatible calls) and providing a stat

[PATCH] ARM64: dts: meson-axg: add spdif output pins

2018-07-04 Thread Jerome Brunet
Add the different pin configurations for the spdif output Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 42 ++ 1 file changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meso

[RFC V1] perf: qcom: add DDR bandwidth PMU support

2018-07-04 Thread Rahul Ramasubramanian
Measuring DDR bandwidth allows for an accurate measurement of memory throughput achieved for a given workload. It also breaks down the traffic measurement on a per DDR channel basis. Signed-off-by: Rahul Ramasubramanian Signed-off-by: Agustin Vega-Frias --- drivers/perf/Kconfig

Re: [PATCH V2 18/19] clocksource: add C-SKY clocksource drivers

2018-07-04 Thread Daniel Lezcano
Hi Guo, as you are introducing a new drivers, add a detailed changelog describing in details the timers. On 01/07/2018 19:34, Guo Ren wrote: > Signed-off-by: Guo Ren > --- > drivers/clocksource/Makefile | 1 + > drivers/clocksource/timer-csky-v1.c | 169 > +

droid 4: connection refused from voltage_now

2018-07-04 Thread Pavel Machek
Hi! I started to use droid 4 as my primary phone... so I have battery monitor running for hours... Once every few days it dies with "connection refused" error reading battery's "voltage_now". I restart it and it continues working... That was with v4.17; in v4.18, I'm getting "red screen" a lot.

Re: [PATCH] tpm: Fix NULL pointer dereference in tpm_transmit()

2018-07-04 Thread Jarkko Sakkinen
On Wed, Jul 04, 2018 at 02:33:40PM +0530, Shirish S wrote: > During system shutdown, > tpm_class_shutdown() when called with TPM_CHIP_FLAG_TPM2 > flag set, makes chip->ops NULL. > > However tpm_chip_unregister() called later in shutdown > sequence tries to access chip->ops in tpm_try_transmit() >

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-04 Thread Joe Perches
On Wed, 2018-07-04 at 10:03 +0300, Mike Rapoport wrote: > On Tue, Jul 03, 2018 at 01:24:07PM -0700, Joe Perches wrote: > > On Tue, 2018-07-03 at 12:57 -0700, Andrew Morton wrote: > > > Did you see all this checkpatch noise? > > > > > > : WARNING: Deprecated vsprintf pointer extension '%pF' - use %

Re: [PATCH v18 6/7] crypto: caam: cleanup CONFIG_64BIT ifdefs when using io{read|write}64

2018-07-04 Thread Logan Gunthorpe
On 7/4/2018 11:16 AM, Andy Shevchenko wrote: > On Wed, Jul 4, 2018 at 8:13 PM, Logan Gunthorpe wrote: >> On 7/4/2018 11:10 AM, Andy Shevchenko wrote: >>> We have an iDMA 32-bit hardware (see drivers/dma/dw/) which has an >>> extension 64-bit registers where only one of them has a specific bit >>>

Re: [PATCH v12 01/13] x86/sgx: updated MAINTAINERS

2018-07-04 Thread Jarkko Sakkinen
On Tue, Jul 03, 2018 at 08:41:25PM +0200, Thomas Gleixner wrote: > On Tue, 3 Jul 2018, Jarkko Sakkinen wrote: > > > Updated the MAINTAINERS file to point to the Intel SGX subsystem tree. > > Update not Updated. Documentation says: > > Describe your changes in imperative mood, e.g. "make xyzzy

Re: [v7,03/10] docs: Add Generic Counter interface documentation

2018-07-04 Thread Linus Walleij
On Tue, Jul 3, 2018 at 4:16 PM William Breathitt Gray wrote: > On Mon, Jul 02, 2018 at 02:37:53PM -0500, David Lechner wrote: > >On 06/21/2018 04:07 PM, William Breathitt Gray wrote: > >> +Userspace Interface > >> +=== > >> + > >> +Several sysfs attributes are generated by the Gene

Re: [PATCH 2/2] bitmap: sync tools with new bitmap allocation API

2018-07-04 Thread Jiri Olsa
On Wed, Jul 04, 2018 at 03:36:17PM +, Dmitry Torokhov wrote: SNIP > > > > diff --git a/tools/include/linux/bitmap.h b/tools/include/linux/bitmap.h > > > > index 48c208437bbd..b9b85b94c937 100644 > > > > --- a/tools/include/linux/bitmap.h > > > > +++ b/tools/include/linux/bitmap.h > > > > @@ -

Re: [PATCH v12 02/13] x86/sgx: add SGX definitions to cpufeature

2018-07-04 Thread Jarkko Sakkinen
On Tue, Jul 03, 2018 at 08:48:54PM +0200, Thomas Gleixner wrote: > On Tue, 3 Jul 2018, Jarkko Sakkinen wrote: > > Subject: x86/sgx: add SGX definitions to cpufeature > > The prefix is bogus. Not everything you touch is SGX just because. > > The proper prefix is 'x86/cpufeatures:' > The followin

Re: [PATCH v12 03/13] x86/sgx: add SGX definitions to msr-index.h

2018-07-04 Thread Jarkko Sakkinen
On Tue, Jul 03, 2018 at 08:51:23PM +0200, Thomas Gleixner wrote: > On Tue, 3 Jul 2018, Jarkko Sakkinen wrote: > > x86/msr: Add > > > From: Sean Christopherson > > > > ENCLS and ENCLU are usable if and only if SGX_ENABLE is set and After > > SGX is activated the IA32_SGXLEPUBKEYHASHn MSRs a

Re: [PATCH v12 03/13] x86/sgx: add SGX definitions to msr-index.h

2018-07-04 Thread Jarkko Sakkinen
On Tue, Jul 03, 2018 at 11:31:59AM -0700, Dave Hansen wrote: > On 07/03/2018 11:19 AM, Jarkko Sakkinen wrote: > > --- a/arch/x86/include/asm/msr-index.h > > +++ b/arch/x86/include/asm/msr-index.h > > @@ -479,6 +479,8 @@ > > #define FEATURE_CONTROL_LOCKED (1<<0) > > #de

Re: [PATCH v4 4/6] thermal: tsens: Add support for SDM845

2018-07-04 Thread Amit Kucheria
On Tue, Jul 3, 2018 at 9:56 PM, Rob Herring wrote: > On Mon, Jul 02, 2018 at 06:14:07PM +0530, Amit Kucheria wrote: >> SDM845 uses v2.4.0 of the TSENS IP block but the get_temp() function >> appears to be identical across v2.x.y in code seen so far. We use the >> generic get_temp() function. >> >>

[PATCH] bus: ti-sysc: Use 2-factor allocator calls

2018-07-04 Thread Kees Cook
As done treewide already, switch from open-coded multiplication to the 2-factor allocation helpers. Signed-off-by: Kees Cook --- drivers/bus/ti-sysc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c index 1cc29629d238..80d

Re: [PATCH v12 04/13] x86/cpufeatures: add Intel-defined SGX leaf CPUID_12_EAX

2018-07-04 Thread Jarkko Sakkinen
On Tue, Jul 03, 2018 at 08:54:56PM +0200, Thomas Gleixner wrote: > On Tue, 3 Jul 2018, Jarkko Sakkinen wrote: > > > From: Sean Christopherson > > > > CPUID_12_EAX is an Intel-defined feature bits leaf dedicated for SGX. > > There are currently four documented feature bits, with more expected in

[PATCH] drm/amd/display: Use 2-factor allocator calls

2018-07-04 Thread Kees Cook
As already done treewide, switch from open-coded multiplication to 2-factor allocation helper. Signed-off-by: Kees Cook --- drivers/gpu/drm/amd/display/modules/color/color_gamma.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/modules/colo

[PATCH] mtd: spinand: Use 2-factor allocator calls

2018-07-04 Thread Kees Cook
As already done treewide, switch from open-coded multiplication to using 2-factor allocator helpers. Signed-off-by: Kees Cook --- drivers/mtd/nand/spi/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 17

[PATCH v2] fuse: +max_pages

2018-07-04 Thread Constantine Shulyupin
Replace FUSE_MAX_PAGES_PER_REQ with the configurable mount parameter max_pages to improve performance. Old RFC with detailed description of the problem and many fixes by Mitsuo Hayasaka (mitsuo.hayasaka...@hitachi.com): - https://lkml.org/lkml/2012/7/5/136 Changes in v2: - add limitation by pipe

Re: [PATCH v12 06/13] x86/sgx: detect Intel SGX

2018-07-04 Thread Jarkko Sakkinen
On Tue, Jul 03, 2018 at 09:09:52PM +0200, Thomas Gleixner wrote: > On Tue, 3 Jul 2018, Jarkko Sakkinen wrote: > > @@ -0,0 +1,54 @@ > > +// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) > > +// Copyright(c) 2016-17 Intel Corporation. > > + > > +#include > > +#include > > +#include > > +#incl

[PATCH] net/mlx5: Use 2-factor allocator calls

2018-07-04 Thread Kees Cook
This restores the use of 2-factor allocation helpers that were already fixed treewide. Please do not use open-coded multiplication; prefer, instead, using 2-factor allocation helpers. Signed-off-by: Kees Cook --- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 14 +- 1 file chang

[PATCH] platform/mellanox: Use 2-factor allocator calls

2018-07-04 Thread Kees Cook
As already done treewide, switch from open-coded multiplication to using 2-factor allocation helpers. Signed-off-by: Kees Cook --- drivers/platform/mellanox/mlxreg-io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/mellanox/mlxreg-io.c b/drivers/platfo

Re: [PATCH 2/2] bitmap: sync tools with new bitmap allocation API

2018-07-04 Thread Jiri Olsa
On Sat, Jun 23, 2018 at 10:35:02AM +0300, Yury Norov wrote: > On top of next-20180622 and Andy Shevchenko series: > https://lkml.org/lkml/2018/6/18/841 > > The series mentioned above introduces helpers for bitmap allocation. > tools/ has its own bitmap_alloc() which differs from bitmap_alloc() > p

[PATCH] drivers/staging/gasket: Use 2-factor allocator calls

2018-07-04 Thread Kees Cook
As already done treewide, switch from open-coded multiplication to using 2-factor allocator helpers. Signed-off-by: Kees Cook --- drivers/staging/gasket/gasket_core.c | 6 +++--- drivers/staging/gasket/gasket_interrupt.c | 15 +-- drivers/staging/gasket/gasket_page_table.c |

[PATCH] resource: Use 2-factor allocator calls

2018-07-04 Thread Kees Cook
As already done treewide, switch from open-coded multiplication to using 2-factor allocation helpers. Signed-off-by: Kees Cook --- kernel/resource.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/resource.c b/kernel/resource.c index d717acd12bf4..16debbf2d24c 10

Re: [PATCH v12 08/13] x86/sgx: wrappers for ENCLS opcode leaf functions

2018-07-04 Thread Jarkko Sakkinen
On Tue, Jul 03, 2018 at 10:16:12PM +0200, Thomas Gleixner wrote: > On Tue, 3 Jul 2018, Jarkko Sakkinen wrote: > > > This commit adds wrappers for Intel(R) SGX ENCLS opcode leaf functions > > Add... > > > except for ENCLS(EINIT). The ENCLS instruction invokes the privileged > > functions for mana

Re: [PATCH v12 07/13] x86/sgx: data structures for tracking available EPC pages

2018-07-04 Thread Jarkko Sakkinen
On Tue, Jul 03, 2018 at 12:03:48PM -0700, Dave Hansen wrote: > On 07/03/2018 11:19 AM, Jarkko Sakkinen wrote: > > This commit adds a database of EPC banks for kernel to easily access the > > available EPC pages. On UMA architectures there is a singe bank of EPC > > pages. On NUMA architectures ther

Re: [PATCH v4 2/3] ioremap: Update pgtable free interfaces with addr

2018-07-04 Thread Will Deacon
On Tue, Jul 03, 2018 at 11:02:15PM +0200, Thomas Gleixner wrote: > On Fri, 29 Jun 2018, Kani, Toshi wrote: > > On Fri, 2018-06-29 at 13:23 +0100, Will Deacon wrote: > > > On Wed, Jun 27, 2018 at 04:13:22PM +, Kani, Toshi wrote: > > > > On Wed, 2018-06-27 at 16:56 +0100, Will Deacon wrote: > > >

Re: [PATCH 1/3] clk: meson: gxbb: remove HHI_GEN_CLK_CTNL duplicate definition

2018-07-04 Thread Martin Blumenstingl
On Wed, Jul 4, 2018 at 6:55 PM Jerome Brunet wrote: > > HHI_GEN_CLK_CTNL is defined twice, just remove the duplicate definition > > Fixes: 738f66d3211d ("clk: gxbb: add AmLogic GXBB clk controller driver") > Signed-off-by: Jerome Brunet Acked-by: Martin Blumenstingl good catch Jerome!

Re: [PATCHv5 4/4] arm64: Add build salt to the vDSO

2018-07-04 Thread Will Deacon
On Tue, Jul 03, 2018 at 04:34:30PM -0700, Laura Abbott wrote: > > The vDSO needs to have a unique build id in a similar manner > to the kernel and modules. Use the build salt macro. > > Signed-off-by: Laura Abbott > --- > v5: I was previously focused on x86 only but since powerpc gave a patch, >

[PATCH RT] sample fix for splat in futex_[un]lock_pi for !rt

2018-07-04 Thread joe . korty
Balance atomic/!atomic migrate_enable calls in futex_[un]lock_pi. The clever use of migrate_disable/enable in rt patch "futex: workaround migrate_disable/enable in different" has balanced atomic/!atomic context only for the rt kernel. This workaround makes it balanced for both rt and !rt. The

Re: [PATCH v12 07/13] x86/sgx: data structures for tracking available EPC pages

2018-07-04 Thread Jarkko Sakkinen
On Tue, Jul 03, 2018 at 01:26:11PM -0700, Randy Dunlap wrote: > On 07/03/18 12:46, Thomas Gleixner wrote: > > On Tue, 3 Jul 2018, Jarkko Sakkinen wrote: > > > >> SGX has a set of data structures to maintain information about the enclaves > >> and their security properties. BIOS reserves a fixed si

Re: [v2 PATCH 2/2] powerpc: Enable CPU_FTR_ASYM_SMT for interleaved big-cores

2018-07-04 Thread Murilo Opsfelder Araujo
On Wed, Jul 04, 2018 at 01:45:05PM +0530, Gautham R Shenoy wrote: > Hi Murilo, > > Thanks for the review. > > On Tue, Jul 03, 2018 at 02:53:46PM -0300, Murilo Opsfelder Araujo wrote: > [..snip..] > > > > -/* Initialize CPU <=> thread mapping/ > > > + if (has_interleaved_big_core) { > > >

Re: [PATCH v18 6/7] crypto: caam: cleanup CONFIG_64BIT ifdefs when using io{read|write}64

2018-07-04 Thread Logan Gunthorpe
On 7/4/2018 11:32 AM, Andy Shevchenko wrote: > It means it would be invariant to LE BE accessors, right? > > lo-hi: LE (0x0 0x4) BE (0x4 0x0) > hi-lo: LE (0x4 0x0) BE (0x0 0x4) Ok, well, given that this is what I implemented originally and the argument seems a little bike-sheddy. I vote we just

Re: [PATCHv2 11/11] arm64: use instrumented atomics

2018-07-04 Thread Will Deacon
On Wed, Jul 04, 2018 at 05:37:23PM +0100, Mark Rutland wrote: > On Wed, Jul 04, 2018 at 04:24:22PM +0100, Will Deacon wrote: > > This is mostly straightforward, but the cmpxchg/cmpxchg_double cases grow > > an 'arch' prefix which suggests that they're part of the API with the core > > atomics and a

Re: [PATCHv2 08/11] atomics: switch to generated fallbacks

2018-07-04 Thread Will Deacon
On Wed, Jul 04, 2018 at 05:01:46PM +0100, Mark Rutland wrote: > On Wed, Jul 04, 2018 at 04:28:47PM +0100, Will Deacon wrote: > > On Mon, Jun 25, 2018 at 11:59:49AM +0100, Mark Rutland wrote: > > > As a step to ensuring the atomic* APIs are consistent, switch to fallbacks > > > generated by gen-atom

Re: [PATCHv2 06/11] atomics/treewide: rework ordering barriers

2018-07-04 Thread Will Deacon
On Wed, Jul 04, 2018 at 04:56:19PM +0100, Mark Rutland wrote: > On Wed, Jul 04, 2018 at 04:06:46PM +0100, Will Deacon wrote: > > On Mon, Jun 25, 2018 at 11:59:47AM +0100, Mark Rutland wrote: > > > Currently architectures can override __atomic_op_*() to define the > > > barriers > > > used before/a

Re: [PATCH v7] add param that allows bootline control of hardened usercopy

2018-07-04 Thread Vlastimil Babka
On 07/04/2018 06:52 PM, Kees Cook wrote: > On Wed, Jul 4, 2018 at 6:43 AM, Vlastimil Babka wrote: >> On 07/03/2018 09:43 PM, Chris von Recklinghausen wrote: >> >> Subject: [PATCH v7] add param that allows bootline control of hardened >> usercopy >> >> s/bootline/boot time/ ? >> >>> v1->v2: >>>

Re: [PATCH] Fix platform data in leds-pca955x.c

2018-07-04 Thread Rob Landley
On 07/04/2018 12:00 PM, Andy Shevchenko wrote: > On Wed, Jul 4, 2018 at 3:46 AM, Rob Landley wrote: >> I have some questions about recent changes to leds-pca955x.c since 4.13: >> >> How is non-of platform data supposed to work now? Commit ed1f4b9676a8 >> switched >> struct led_platform_data *p

Re: [PATCH v12 05/13] x86/sgx: architectural structures

2018-07-04 Thread Jarkko Sakkinen
On Tue, Jul 03, 2018 at 12:02:31PM -0700, Dave Hansen wrote: > On 07/03/2018 11:19 AM, Jarkko Sakkinen wrote: > > This commit adds arch/x86/include/asm/sgx_arch.h that contains definitions > > for data structures used by the SGX. > > > > Signed-off-by: Jarkko Sakkinen > > Co-developed-by: Suresh

Re: [PATCH v12 05/13] x86/sgx: architectural structures

2018-07-04 Thread Jarkko Sakkinen
On Tue, Jul 03, 2018 at 09:04:01PM +0200, Thomas Gleixner wrote: > On Tue, 3 Jul 2018, Jarkko Sakkinen wrote: > > > This commit adds arch/x86/include/asm/sgx_arch.h that contains definitions > > This is not a commit. Simply: Add . > > > for data structures used by the SGX. > > > > Signed-of

Re: [PATCH v12 05/13] x86/sgx: architectural structures

2018-07-04 Thread Jarkko Sakkinen
On Tue, Jul 03, 2018 at 02:22:52PM -0700, Dave Hansen wrote: > On 07/03/2018 11:19 AM, Jarkko Sakkinen wrote: > > +enum sgx_cpuid { > > + SGX_CPUID_CAPABILITIES = 0, > > + SGX_CPUID_ATTRIBUTES= 1, > > + SGX_CPUID_EPC_BANKS = 2, > > +}; > > I made a review comment about these last ti

Re: [PATCH] Fix platform data in leds-pca955x.c

2018-07-04 Thread Rob Landley
On 07/04/2018 12:04 PM, Andy Shevchenko wrote: > On Wed, Jul 4, 2018 at 8:00 PM, Andy Shevchenko > wrote: >> On Wed, Jul 4, 2018 at 3:46 AM, Rob Landley wrote: > >> For now, you can switch to unified device properties API (basically >> un-ifdef pca955x_pdata_of_init() and replacing of_* by devic

Re: [PATCH v2] leds: ledtrig-morse: send out morse code

2018-07-04 Thread Pavel Machek
Hi! > On Wed, Jul 04, 2018 at 08:53:05AM +0200, Pavel Machek wrote: > > As I stated before, I don't think morse encoder belongs in kernel. > > On the opposite, I think that the kernel needs to be a bit more autonomous > when it comes to reporting its own issues. Being able to report a panic > whe

[PATCH] checkpatch: Add warnings for use of mdelay()

2018-07-04 Thread Prakruthi Deepak Heragu
mdelay() is not a preferred API to be used to insert delay in the kernel code unless the context is atomic. Instead, msleep() API can be used. This patch introduces this warning. Signed-off-by: Israel Schlesinger Signed-off-by: Stepan Moskovchenko Signed-off-by: Prakruthi Deepak Heragu --- scr

[PATCH v3 0/2] Add Broadcom Stingray PCIe PHY support

2018-07-04 Thread Ray Jui
This patch series adds PCIe PHY support for both PAXB and PAXC root complex in Broadcom Stingray SOC This patch series is based off v4.18-rc3 and is available on GIHUB: repo: https://github.com/Broadcom/arm64-linux.git branch: sr-pcie-phy-v3 Changes since v2: - Add 'reg' property to the driver s

[PATCH v3 1/2] dt-bindings: phy: Add binding doc for Stingray PCIe PHY

2018-07-04 Thread Ray Jui
Add binding document for Stingray PCIe PHYs for both PAXB and PAXC based root complex Signed-off-by: Ray Jui --- .../devicetree/bindings/phy/brcm,sr-pcie-phy.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/brcm,sr-pcie

[PATCH v3 2/2] phy: bcm-sr-pcie: Add Stingray PCIe PHY driver

2018-07-04 Thread Ray Jui
Add Stingray PCIe PHY driver for both PAXB and PAXC root complex Signed-off-by: Ray Jui --- drivers/phy/broadcom/Kconfig | 10 + drivers/phy/broadcom/Makefile | 2 + drivers/phy/broadcom/phy-bcm-sr-pcie.c | 327 + 3 files changed, 339 inserti

Re: [PATCH v12 09/13] x86/sgx: EPC page allocation routines

2018-07-04 Thread Jarkko Sakkinen
On Tue, Jul 03, 2018 at 10:41:14PM +0200, Thomas Gleixner wrote: > On Tue, 3 Jul 2018, Jarkko Sakkinen wrote: > > > > +#define SGX_NR_TO_SCAN 16 > > +#define SGX_NR_LOW_PAGES 32 > > +#define SGX_NR_HIGH_PAGES 64 > > + > > bool sgx_enabled __ro_after_init; > > EXPORT_SYMBOL(sgx_enabled); > >

Re: [PATCH] checkpatch: Add warnings for use of mdelay()

2018-07-04 Thread Joe Perches
On Wed, 2018-07-04 at 11:18 -0700, Prakruthi Deepak Heragu wrote: > mdelay() is not a preferred API to be used to insert delay in the kernel > code unless the context is atomic. Instead, msleep() API can be used. > This patch introduces this warning. [] > Signed-off-by: Israel Schlesinger > Sign

Re: [PATCH v2] KVM: Expose the split lock detection feature to guest VM

2018-07-04 Thread Thomas Gleixner
On Wed, 4 Jul 2018, Paolo Bonzini wrote: > On 04/07/2018 16:51, Thomas Gleixner wrote: > > There is no rush for this to be in KVM/QEMU now because all what exists for > > this new split lock thing is 'silicon' running on an emulator. And w/o > > support in the kernel proper this is completely usele

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Javier Martinez Canillas
Hi Andy, On 07/04/2018 06:11 PM, Andy Shevchenko wrote: > On Wed, Jul 4, 2018 at 4:44 PM, Javier Martinez Canillas > wrote: >> On 07/04/2018 03:24 PM, Nikolaus Voss wrote: > >>> I hope you're still not annoyed... >> Don't worry for that, it's very hard to get my annoyed :) > > Javier, thanks fo

Re: [PATCH] arm: dts: qcom: Fix 'interrupts = <>' property to use proper macros

2018-07-04 Thread Bjorn Andersson
On Wed 20 Jun 02:23 PDT 2018, Sricharan R wrote: > Fix all nodes to use proper GIC_* macros for the interrupt type and the > interrupt trigger settings to avoid the boot warnings. > > Signed-off-by: Sricharan R Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > arch/arm/boot/dts/qcom-ipq80

Re: [PATCH] gpiolib: Defer on non-DT find_chip_by_name() failure

2018-07-04 Thread Janusz Krzysztofik
On Tuesday, July 3, 2018 7:31:41 PM CEST Boris Brezillon wrote: > Hi Janusz, > > On Tue, 3 Jul 2018 19:26:35 +0200 > > Janusz Krzysztofik wrote: > > Avoid replication of error code conversion in non-DT GPIO consumers' > > code by returning -EPROBE_DEFER from gpiod_find() in case a chip > > iden

Re: [PATCH] soc: qcom: llc-slice: Add missing MODULE_LICENSE()

2018-07-04 Thread Bjorn Andersson
On Fri 29 Jun 08:44 PDT 2018, Niklas Cassel wrote: > Add missing MODULE_LICENSE(). > According to the SPDX-License-Identifier, the license is GPL v2. > > Fixes the following warning: > WARNING: modpost: missing MODULE_LICENSE() in drivers/soc/qcom/llcc-slice.o > > Fixes: c5c7385f89bf ("drivers:

Re: general protection fault in vmx_vcpu_run

2018-07-04 Thread Raslan, KarimAllah
Dmitry, Can you share the host kernel version? I can not reproduce any of these crash signatures and I think it's  really a nested virtualization bug. So I will need the exact host  kernel version as well. I am currently getting all sorts of: "KVM: entry failed, hardware error 0x7" ... instead

RE: [PATCH] platform/mellanox: Use 2-factor allocator calls

2018-07-04 Thread Vadim Pasternak
> -Original Message- > From: Kees Cook [mailto:keesc...@chromium.org] > Sent: Wednesday, July 04, 2018 8:29 PM > To: Darren Hart > Cc: Vadim Pasternak ; Andy Shevchenko > ; platform-driver-...@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: [PATCH] platform/mellanox: Use 2-f

[tip:x86/mm] x86/mm: Disable ioremap free page handling on x86-PAE

2018-07-04 Thread tip-bot for Toshi Kani
Commit-ID: f967db0b9ed44ec3057a28f3b28efc51df51b835 Gitweb: https://git.kernel.org/tip/f967db0b9ed44ec3057a28f3b28efc51df51b835 Author: Toshi Kani AuthorDate: Wed, 27 Jun 2018 08:13:46 -0600 Committer: Thomas Gleixner CommitDate: Wed, 4 Jul 2018 21:37:08 +0200 x86/mm: Disable ioremap f

Re: [PATCH v4 2/3] ioremap: Update pgtable free interfaces with addr

2018-07-04 Thread Thomas Gleixner
On Wed, 4 Jul 2018, Will Deacon wrote: > On Tue, Jul 03, 2018 at 11:02:15PM +0200, Thomas Gleixner wrote: > > > I just pick it up and provide Will a branch to pull that lot from. > > Thanks, Thomas. Please let me know once you've pushed something out. Just pushed it out into tip x86/mm branch. I

[tip:x86/mm] ioremap: Update pgtable free interfaces with addr

2018-07-04 Thread tip-bot for Chintan Pandya
Commit-ID: 785a19f9d1dd8a4ab2d0633be4656653bd3de1fc Gitweb: https://git.kernel.org/tip/785a19f9d1dd8a4ab2d0633be4656653bd3de1fc Author: Chintan Pandya AuthorDate: Wed, 27 Jun 2018 08:13:47 -0600 Committer: Thomas Gleixner CommitDate: Wed, 4 Jul 2018 21:37:08 +0200 ioremap: Update pgtab

[tip:x86/mm] x86/mm: Add TLB purge to free pmd/pte page interfaces

2018-07-04 Thread tip-bot for Toshi Kani
Commit-ID: 5e0fb5df2ee871b841f96f9cb6a7f2784e96aa4e Gitweb: https://git.kernel.org/tip/5e0fb5df2ee871b841f96f9cb6a7f2784e96aa4e Author: Toshi Kani AuthorDate: Wed, 27 Jun 2018 08:13:48 -0600 Committer: Thomas Gleixner CommitDate: Wed, 4 Jul 2018 21:37:09 +0200 x86/mm: Add TLB purge to

<    1   2   3   4   5   6   7   >