Re: [PATCH v6 13/13] spi: atmel-quadspi: add support for sam9x60 qspi controller

2019-02-05 Thread Boris Brezillon
On Tue, 5 Feb 2019 17:33:38 + wrote: > From: Tudor Ambarus > > The sam9x60 qspi controller uses 2 clocks, one for the peripheral register > access, the other for the qspi core and phy. Both are mandatory. It uses > different transfer type bits in IFR register. It has dedicated registers > t

Re: [PATCH 2/4] pwm: stm32-lp: Add power management support

2019-02-05 Thread Thierry Reding
On Tue, Feb 05, 2019 at 09:47:32PM +0100, Uwe Kleine-König wrote: > Hello, > > On Tue, Feb 05, 2019 at 01:40:27PM +0100, Fabrice Gasnier wrote: > > Add suspend/resume PM sleep ops. When going to low power, disable > > active PWM channel. Active PWM channel is resumed, by calling > > pwm_apply_stat

Re: [PATCH] dma-direct: Export dma_direct_alloc() and dma_direct_free()

2019-02-05 Thread Thierry Reding
On Tue, Feb 05, 2019 at 07:02:18PM +0100, Christoph Hellwig wrote: > On Tue, Feb 05, 2019 at 06:56:11PM +0100, Thierry Reding wrote: > > Sure, here you go: > > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/host1x/cdma.c#n106 > > Yes, I think we

RE: [PATCH] cfi: fix deadloop in cfi_cmdset_0002.c do_write_buffer

2019-02-05 Thread Sobon, Przemyslaw
> From: Boris Brezillon > Sent: Sunday, February 3, 2019 12:35 AM > > +Przemyslaw > > > > On Fri, 1 Feb 2019 07:30:39 +0800 > > Liu Jian wrote: > > > > > In function do_write_buffer(), in the for loop, there is a case > > > chip_ready() returns 1 while chip_good() returns 0, so it never > > >

Re: [PATCH v1 1/4] clk: qcom: smd: Add XO clock for MSM8998

2019-02-05 Thread Stephen Boyd
Quoting Jeffrey Hugo (2019-02-05 14:15:16) > On 2/5/2019 3:01 PM, Stephen Boyd wrote: > > Quoting Jeffrey Hugo (2019-01-30 08:35:44) > >> The XO clock generally feeds into other clock controllers as the parent > >> for a lot of clock generators. > >> > >> Fixes: 6131dc81211c (clk: qcom: smd: Add su

[PATCH] PHY: Variable "val" in function pistachio_usb_phy_power_on() could be uninitialized

2019-02-05 Thread Yizhuo
In function pistachio_usb_phy_power_on(), local variable "val" could be uninitialized if function regmap_read() returns -EINVAL. However, it will be used directly in the if statement, which is potentially unsafe. Signed-off-by: Yizhuo --- drivers/phy/phy-pistachio-usb.c | 8 ++-- 1 file chan

Re: [PATCH] mlx4_ib: Increase the timeout for CM cache

2019-02-05 Thread Jason Gunthorpe
On Thu, Jan 31, 2019 at 06:09:51PM +0100, Håkon Bugge wrote: > Using CX-3 virtual functions, either from a bare-metal machine or > pass-through from a VM, MAD packets are proxied through the PF driver. > > Since the VMs have separate name spaces for MAD Transaction Ids > (TIDs), the PF driver has

Re: [PATCH v1 2/4] dt-bindings: clock: Add support for the MSM8998 mmcc

2019-02-05 Thread Jeffrey Hugo
On 2/5/2019 3:16 PM, Stephen Boyd wrote: Quoting Jeffrey Hugo (2019-02-05 14:08:43) On 2/5/2019 3:02 PM, Stephen Boyd wrote: Quoting Jeffrey Hugo (2019-01-30 08:35:59) Document the multimedia clock controller found on MSM8998 Signed-off-by: Jeffrey Hugo --- Documentation/devicetree/bindin

Re: [PATCH v1 1/4] clk: qcom: smd: Add XO clock for MSM8998

2019-02-05 Thread Jeffrey Hugo
On 2/5/2019 3:32 PM, Stephen Boyd wrote: Quoting Jeffrey Hugo (2019-02-05 14:15:16) On 2/5/2019 3:01 PM, Stephen Boyd wrote: Quoting Jeffrey Hugo (2019-01-30 08:35:44) The XO clock generally feeds into other clock controllers as the parent for a lot of clock generators. Fixes: 6131dc81211c (c

Lieber Freund (Assalamu Alaikum),

2019-02-05 Thread AISHS GADDAFI
-- Lieber Freund (Assalamu Alaikum), Ich bin auf Ihre E-Mail-Adresse vor einer privaten Suche gestoßen, obwohl Sie sie benötigen Ihre Hilfe. Mein Name ist Aisha Al-Gaddafi, eine alleinerziehende Mutter und Witwe mit drei Kindern. Ich bin die einzige leibliche Tochter des späten Libyen Präsi

[PATCH v14 04/15] tracing: Generalize hist trigger onmax and save action

2019-02-05 Thread Tom Zanussi
From: Tom Zanussi The action refactor code allowed actions and handlers to be separated, but the existing onmax handler and save action code is still not flexible enough to handle arbitrary coupling. This change generalizes them and in the process makes additional handlers and actions easier to

[PATCH v14 14/15] tracing: Add alternative synthetic event trace action test case

2019-02-05 Thread Tom Zanussi
From: Tom Zanussi Add a test case for the alternative trace( --- .../inter-event/trigger-trace-action-hist.tc | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-trace-action-hist.tc diff --gi

[PATCH v14 12/15] tracing: Add hist trigger snapshot() action test case

2019-02-05 Thread Tom Zanussi
From: Tom Zanussi Add a test case verifying the basic functionality of the hist:snapshot() action. Signed-off-by: Tom Zanussi Acked-by: Masami Hiramatsu --- .../inter-event/trigger-snapshot-action-hist.tc| 43 ++ 1 file changed, 43 insertions(+) create mode 100644 to

[PATCH v14 00/15] tracing: Hist trigger snapshot and onchange additions

2019-02-05 Thread Tom Zanussi
From: Tom Zanussi Hi, This is v14 of the hist trigger snapshot and onchange additions patchset. This version fixes compile errors flagged by the kbuild test robot when CONFIG_TRACER_SNAPSHOT isn't defined, along with a couple minor cleanups. Everything else remains the same. Thanks, Tom v1

[PATCH v14 02/15] tracing: Make hist trigger Documentation better reflect actions/handlers

2019-02-05 Thread Tom Zanussi
From: Tom Zanussi The action/handler code refactoring didn't change the action/handler syntax, but did generalize it - the Documentation should reflect that. Signed-off-by: Tom Zanussi --- Documentation/trace/histogram.rst | 56 ++- 1 file changed, 43 insert

[PATCH v14 09/15] tracing: Add hist trigger onchange() handler Documentation

2019-02-05 Thread Tom Zanussi
From: Tom Zanussi Add Documentation for the hist:onchange($var) handler. Signed-off-by: Tom Zanussi --- Documentation/trace/histogram.rst | 98 +++ 1 file changed, 98 insertions(+) diff --git a/Documentation/trace/histogram.rst b/Documentation/trace/histog

[PATCH v14 15/15] tracing: Add hist trigger action 'expected fail' test case

2019-02-05 Thread Tom Zanussi
From: Tom Zanussi Add a test case verifying that basic action combinations fail as expected. Signed-off-by: Tom Zanussi --- .../inter-event/trigger-action-hist-xfail.tc | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 tools/testing/selftests/ftrace/test.

[PATCH v14 13/15] tracing: Add hist trigger onchange() handler test case

2019-02-05 Thread Tom Zanussi
From: Tom Zanussi Add a test case verifying the basic functionality of the hist:onchange($var) handler. Signed-off-by: Tom Zanussi Acked-by: Masami Hiramatsu --- .../inter-event/trigger-onchange-action-hist.tc| 28 ++ 1 file changed, 28 insertions(+) create mode 10064

Re: linux-next: Fixes tag needs some work in the origin tree

2019-02-05 Thread Stephen Rothwell
Hi Palmer, On Tue, 05 Feb 2019 10:47:43 -0800 (PST) Palmer Dabbelt wrote: > > Thanks. Is there a script I should be running to pre-check these? I run the attached script on each set of new commits that turn up. -- Cheers, Stephen Rothwell check_fixes Description: application/shellscript

[PATCH v14 11/15] tracing: Add SPDX license GPL-2.0 license identifier to inter-event testcases

2019-02-05 Thread Tom Zanussi
From: Tom Zanussi Apparently this directory was missed in the license cleanup process - add the missing identifiers to the trigger/inter-event test cases. Signed-off-by: Tom Zanussi --- .../ftrace/test.d/trigger/inter-event/trigger-extended-error-support.tc | 1 + .../ftrace/test.d/trigger/in

[PATCH v14 10/15] tracing: Add alternative synthetic event trace action syntax

2019-02-05 Thread Tom Zanussi
From: Tom Zanussi Add a 'trace(synthetic_event_name, params)' alternative to synthetic_event_name(params). Currently, the syntax used for generating synthetic events is to invoke synthetic_event_name(params) i.e. use the synthetic event name as a function call. Users requested a new form that m

[PATCH v14 08/15] tracing: Add hist trigger onchange() handler

2019-02-05 Thread Tom Zanussi
From: Tom Zanussi Add support for a hist:onchange($var) handler, similar to the onmax() handler but triggering whenever there's any change in $var, not just a max. Signed-off-by: Tom Zanussi --- kernel/trace/trace.c | 3 ++- kernel/trace/trace_events_hist.c | 58 ++

[PATCH v14 06/15] tracing: Add hist trigger snapshot() action

2019-02-05 Thread Tom Zanussi
From: Tom Zanussi Add support for hist:handlerXXX($var).snapshot(), which will take a snapshot of the current trace buffer whenever handlerXXX is hit. As a first user, this also adds snapshot() action support for the onmax() handler i.e. hist:onmax($var).snapshot(). Also, the hist trigger key p

[PATCH v14 07/15] tracing: Add hist trigger snapshot() action Documentation

2019-02-05 Thread Tom Zanussi
From: Tom Zanussi Add Documentation for the hist:handlerXXX($var).snapshot() action. Signed-off-by: Tom Zanussi --- Documentation/trace/histogram.rst | 110 ++ 1 file changed, 110 insertions(+) diff --git a/Documentation/trace/histogram.rst b/Documentation

[PATCH v14 03/15] tracing: Split up onmatch action data

2019-02-05 Thread Tom Zanussi
From: Tom Zanussi Currently, the onmatch action data binds the onmatch action to data related to synthetic event generation. Since we want to allow the onmatch handler to potentially invoke a different action, and because we expect other handlers to generate synthetic events, we need to separate

[PATCH v14 05/15] tracing: Add conditional snapshot

2019-02-05 Thread Tom Zanussi
From: Tom Zanussi Currently, tracing snapshots are context-free - they capture the ring buffer contents at the time the tracing_snapshot() function was invoked, and nothing else. Additionally, they're always taken unconditionally - the calling code can decide whether or not to take a snapshot, b

[PATCH v14 01/15] tracing: Refactor hist trigger action code

2019-02-05 Thread Tom Zanussi
From: Tom Zanussi The hist trigger action code currently implements two essentially hard-coded pairs of 'actions' - onmax(), which tracks a variable and saves some event fields when a max is hit, and onmatch(), which is hard-coded to generate a synthetic event. These hardcoded pairs (track max/s

[PATCH V12 2/5] i2c: tegra: add bus clear Master Support

2019-02-05 Thread Sowjanya Komatineni
Bus clear feature of Tegra I2C controller helps to recover from bus hang when I2C master loses the bus arbitration due to the slave device holding SDA LOW continuously for some unknown reasons. Per I2C specification, the device that held the bus LOW should release it within 9 clock pulses. During

[PATCH V12 5/5] i2c: tegra: add i2c interface timing support

2019-02-05 Thread Sowjanya Komatineni
This patch adds I2C interface timing registers support for proper bus rate configuration along with meeting the i2c spec setup and hold times based on the tuning performed on Tegra210, Tegra186 and Tegra194 platforms. I2C_INTERFACE_TIMING_0 register contains TLOW and THIGH field and Tegra I2C cont

[PATCH] Input: stmfts - acknowledge that setting brightness is a blocking call

2019-02-05 Thread Dmitry Torokhov
We need to turn regulators on and off when switching brightness, and that may block, therefore we have to set stmfts_brightness_set() as LED's brightness_set_blocking() method. Fixes: 78bcac7b2ae1 ("Input: add support for the STMicroelectronics FingerTip touchscreen") Signed-off-by: Dmitry Torokh

[PATCH V12 3/5] i2c: tegra: Add DMA support

2019-02-05 Thread Sowjanya Komatineni
This patch adds DMA support for Tegra I2C. Tegra I2C TX and RX FIFO depth is 8 words. PIO mode is used for transfer size of the max FIFO depth and DMA mode is used for transfer size higher than max FIFO depth to save CPU overhead. PIO mode needs full intervention of CPU to fill or empty FIFO's an

Re: [PATCH v5 01/13] taint: Introduce a new taint flag (insecure)

2019-02-05 Thread Randy Dunlap
On 2/5/19 1:21 PM, Andrew Morton wrote: > On Fri, 1 Feb 2019 18:42:29 -0800 Andy Lutomirski wrote: > >> On Fri, Feb 1, 2019 at 12:54 PM Chang S. Bae >> wrote: >>> >>> For testing (or root-only) purposes, the new flag will serve to tag the >>> kernel taint accurately. >>> >>> When adding a new f

[PATCH V12 4/5] i2c: tegra: update transfer timeout

2019-02-05 Thread Sowjanya Komatineni
Tegra194 allows max of 64K bytes and Tegra186 and prior allows max of 4K bytes of transfer per packet. one sec timeout is not enough for transfers more than 10K bytes at STD bus rate. This patch updates I2C transfer timeout based on the transfer size and I2C bus rate to allow enough time during m

[PATCH] ARM: dts: aspeed: cmm: enable iio-hwmon-adc

2019-02-05 Thread Tao Ren
Bind aspeed ADC channels 0-7 to "iio-hwmon" driver so the data of these voltage sensing channels can be accessed by "lm_sensors". Channels 8-15 are not used on CMM BMC. Signed-off-by: Tao Ren --- arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts | 6 ++ 1 file changed, 6 insertions(+) diff --gi

[PATCH V12 1/5] i2c: tegra: sort all the include headers alphabetically

2019-02-05 Thread Sowjanya Komatineni
This patch sorts all the include headers alphabetically for the I2C Tegra driver. Acked-by: Thierry Reding Reviewed-by: Dmitry Osipenko Signed-off-by: Sowjanya Komatineni --- [V9/V10/V11/V12] : Rebased to 5.0-rc4 [V3/V4/V5/V7/V8] : Removed unsued headers in tegra I2C [V2] : Added

[PATCH v11 01/16] tpm: use tpm_buf in tpm_transmit_cmd() as the IO parameter

2019-02-05 Thread Jarkko Sakkinen
Since we pass an initialized struct tpm_buf instance in every call site now, it is cleaner to pass that directly to the tpm_transmit_cmd() as the TPM command/response buffer. Fine-tune a little bit tpm_transmit() and tpm_transmit_cmd() comments while doing this. Signed-off-by: Jarkko Sakkinen Re

[PATCH v11 03/16] tpm: return 0 from pcrs_show() when tpm1_pcr_read() fails

2019-02-05 Thread Jarkko Sakkinen
Do not print partial list of PCRs when tpm1_pcr_read() fails but instead return 0 from pcrs_show(). This is consistent behavior with other sysfs functions. Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger Tested-by: Stefan Berger Reviewed-by: Jerry Snitselaar Reviewed-by: James Bottom

[PATCH v11 02/16] tpm: fix invalid return value in pubek_show()

2019-02-05 Thread Jarkko Sakkinen
Return zero when tpm_buf_init() fails as we do for other functions in tpm-sysfs.c. Fixes: da379f3c1db0c ("tpm: migrate pubek_show to struct tpm_buf") Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger Tested-by: Stefan Berger Reviewed-by: Jerry Snitselaar Reviewed-by: James Bottomley -

[PATCH v11 00/16] Remove nested TPM operations

2019-02-05 Thread Jarkko Sakkinen
Make the changes necessary to detach TPM space code and TPM activation code out of the tpm_transmit() flow because of both of these can cause nested tpm_transmit() calls. The nesteds calls make the whole flow hard to maintain, and thus, it is better to just fix things now before this turns into a b

[PATCH v11 04/16] tpm: print tpm2_commit_space() error inside tpm2_commit_space()

2019-02-05 Thread Jarkko Sakkinen
The error logging for tpm2_commit_space() is in a wrong place. This commit moves it inside that function. Cc: James Bottomley Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger Tested-by: Stefan Berger Reviewed-by: Jerry Snitselaar Reviewed-by: James Bottomley --- drivers/char/tpm/tp

[PATCH v11 07/16] tpm: encapsulate tpm_dev_transmit()

2019-02-05 Thread Jarkko Sakkinen
Encapsulate tpm_transmit() call pattern to tpm_dev_transmit() because it is identically used from two places. Use unlocked version of tpm_transmit() so that we are able to move the calls to tpm2_prepare_space() and tpm2_commit_space() later on to this new function. Signed-off-by: Jarkko Sakkinen

[PATCH v11 05/16] tpm: declare struct tpm_header

2019-02-05 Thread Jarkko Sakkinen
Declare struct tpm_header that replaces struct tpm_input_header and struct tpm_output_header. Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger Tested-by: Stefan Berger Reviewed-by: Jerry Snitselaar Reviewed-by: James Bottomley --- drivers/char/tpm/tpm-interface.c | 21 -

[PATCH v11 10/16] tpm: move TPM space code out of tpm_transmit()

2019-02-05 Thread Jarkko Sakkinen
Prepare and commit TPM space before and after calling tpm_transmit() instead of doing that inside tpm_transmit(). After this change we can remove TPM_TRANSMIT_NESTED flag from tpm2_prepare_space() and tpm2_commit_space() and replace it with TPM_TRANSMIT_UNLOCKED. Cc: James Bottomley Signed-off-by

[PATCH v11 11/16] tpm: remove @space from tpm_transmit()

2019-02-05 Thread Jarkko Sakkinen
Remove @space from tpm_transmit() API` in order to completely remove the bound between low-level transmission functionality and TPM spaces. The only real dependency existing is the amount of data saved before trying to send a command to the TPM. It doesn't really matter if we save always a bit mor

[PATCH v11 09/16] tpm: move tpm_validate_commmand() to tpm2-space.c

2019-02-05 Thread Jarkko Sakkinen
Move tpm_validate_command() to tpm2-space.c and make it part of the tpm2_prepare_space() flow. Make cc resolution as part of the TPM space functionality in order to detach it from rest of the tpm_transmit() flow. Cc: James Bottomley Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger Test

[PATCH v11 08/16] tpm: clean up tpm_try_transmit() error handling flow

2019-02-05 Thread Jarkko Sakkinen
Move locking, locality handling and power management to tpm_transmit() in order to simplify the flow. Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger Tested-by: Stefan Berger Reviewed-by: Jerry Snitselaar Reviewed-by: James Bottomley --- drivers/char/tpm/tpm-interface.c | 94 ++

[PATCH v11 06/16] tpm: access command header through struct in tpm_try_transmit()

2019-02-05 Thread Jarkko Sakkinen
Instead of accessing fields of the command header through offsets to the raw buffer, it is a better idea to use the header struct pointer that is already used elsewhere in the function. Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger Tested-by: Stefan Berger Reviewed-by: Jerry Snitsel

[PATCH v11 12/16] tpm: use tpm_try_get_ops() in tpm-sysfs.c.

2019-02-05 Thread Jarkko Sakkinen
Use tpm_try_get_ops() in tpm-sysfs.c so that we can consider moving other decorations (locking, localities, power management for example) inside it. This direction can be of course taken only after other call sites for tpm_transmit() have been treated in the same way. Signed-off-by: Jarkko Sakkine

[PATCH v11 13/16] tpm: remove TPM_TRANSMIT_UNLOCKED flag

2019-02-05 Thread Jarkko Sakkinen
Added locking as part of tpm_try_get_ops() and tpm_put_ops() as they are anyway used in most of the call sites except in tpmrm_release() where we take the locks manually. Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger Tested-by: Stefan Berger Reviewed-by: Jerry Snitselaar Reviewed-b

Re: [PATCH v8 1/6] pwm: extend PWM framework with PWM modes

2019-02-05 Thread Thierry Reding
On Sat, Jan 05, 2019 at 10:05:22PM +0100, Uwe Kleine-König wrote: > Hello, > > On Thu, Jan 03, 2019 at 01:29:44PM +, claudiu.bez...@microchip.com wrote: > > From: Claudiu Beznea > > > > Add basic PWM modes: normal and complementary. These modes should > > differentiate the single output PWM

[PATCH v11 14/16] tpm: introduce tpm_chip_start() and tpm_chip_stop()

2019-02-05 Thread Jarkko Sakkinen
Encapsulate power gating and locality functionality to tpm_chip_start() and tpm_chip_stop() in order to clean up the branching mess in tpm_transmit(). Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger Tested-by: Stefan Berger Reviewed-by: Jerry Snitselaar Reviewed-by: James Bottomley

[PATCH v11 16/16] tpm: remove @flags from tpm_transmit()

2019-02-05 Thread Jarkko Sakkinen
Remove @flags from tpm_transmit() API. It is no longer used for anything. Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger Tested-by: Stefan Berger Reviewed-by: Jerry Snitselaar Reviewed-by: James Bottomley --- drivers/char/tpm/tpm-chip.c | 32 ++--- drivers/ch

[PATCH v11 15/16] tpm: take TPM chip power gating out of tpm_transmit()

2019-02-05 Thread Jarkko Sakkinen
Call tpm_chip_start() and tpm_chip_stop() in * tpm_try_get_ops() and tpm_put_ops() * tpm_chip_register() * tpm2_del_space() And remove these calls from tpm_transmit(). The core reason for this change is that in tpm_vtpm_proxy a locality change requires a virtual TPM command (a command made up jus

Re: [PATCH v2] KVM: x86: Fix single-step debugging

2019-02-05 Thread Jim Mattson
On Fri, Jan 25, 2019 at 9:52 AM Paolo Bonzini wrote: > > On 21/01/19 13:48, Alexander Popov wrote: > > The single-step debugging of KVM guests on x86 is broken: if we run > > gdb 'stepi' command at the breakpoint when the guest interrupts are > > enabled, RIP always jumps to native_apic_mem_write(

Re: [PATCH v8 1/6] pwm: extend PWM framework with PWM modes

2019-02-05 Thread Thierry Reding
On Mon, Jan 07, 2019 at 11:10:40PM +0100, Uwe Kleine-König wrote: > Hello Claudiu, > > On Mon, Jan 07, 2019 at 09:30:55AM +, claudiu.bez...@microchip.com wrote: > > On 05.01.2019 23:05, Uwe Kleine-König wrote: > > > On Thu, Jan 03, 2019 at 01:29:44PM +, claudiu.bez...@microchip.com > > >

Re: linux-next: Fixes tag needs some work in the userns tree

2019-02-05 Thread Stephen Rothwell
Hi Eric, On Tue, 05 Feb 2019 15:29:04 -0600 ebied...@xmission.com (Eric W. Biederman) wrote: > > The SHA1 tag does exist and I have another tag: > History Tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git > That lists the tree it actually came from. Ah, tricky. > That is th

Re: [PATCH v2] dma-direct: do not allocate a single page from CMA area

2019-02-05 Thread Nicolin Chen
Hi Christoph On Mon, Feb 04, 2019 at 09:23:07AM +0100, Christoph Hellwig wrote: > On Tue, Jan 15, 2019 at 01:51:40PM -0800, Nicolin Chen wrote: > > The addresses within a single page are always contiguous, so it's > > not so necessary to allocate one single page from CMA area. Since > > the CMA ar

Re: [PATCH v5 01/13] taint: Introduce a new taint flag (insecure)

2019-02-05 Thread hpa
On February 5, 2019 2:46:11 PM PST, Randy Dunlap wrote: >On 2/5/19 1:21 PM, Andrew Morton wrote: >> On Fri, 1 Feb 2019 18:42:29 -0800 Andy Lutomirski >wrote: >> >>> On Fri, Feb 1, 2019 at 12:54 PM Chang S. Bae > wrote: For testing (or root-only) purposes, the new flag will serve to tag

Re: [PATCH v10 1/3] mm: Shuffle initial free memory to improve memory-side-cache utilization

2019-02-05 Thread Kees Cook
On Tue, Feb 5, 2019 at 10:04 PM Andrew Morton wrote: > > On Thu, 31 Jan 2019 21:15:17 -0800 Dan Williams > wrote: > > > +config SHUFFLE_PAGE_ALLOCATOR > > + bool "Page allocator randomization" > > + default SLAB_FREELIST_RANDOM && ACPI_NUMA > > + help > > SLAB_FREELIST_RANDOM is defa

Re: [PATCH] x86/ima: require signed kernel modules

2019-02-05 Thread Mimi Zohar
On Tue, 2019-02-05 at 13:13 -0800, Luis Chamberlain wrote: > Also, do we have selftests implemented to ensure we don't regress with > your changes? We're working on a regression test.  "modprobe" currently first attempts to use finit_module, and then falls back to using init_module.  Before writin

Re: [PATCH v6 06/20] iommu/io-pgtable-arm-v7s: Extend MediaTek 4GB Mode

2019-02-05 Thread Evan Green
On Fri, Feb 1, 2019 at 1:42 AM Yong Wu wrote: > > On Thu, 2019-01-31 at 11:23 -0800, Evan Green wrote: > > On Wed, Jan 30, 2019 at 10:59 PM Yong Wu wrote: > > > > > > On Wed, 2019-01-30 at 10:28 -0800, Evan Green wrote: > > > > On Mon, Dec 31, 2018 at 7:57 PM Yong Wu wrote: > > > > > > > > > > M

Re: [PATCH 0/2] Fix espressobin ethernet support on mainline u-boot

2019-02-05 Thread Gregory CLEMENT
Hi Remi, On lun., janv. 28 2019, Remi Pommarel wrote: > This patchset fixes ethernet and mv88e6341 switch support on espressobin > board when bootloader does not initialize needed registers. > > This patchset should be applied along with pinctrl fixes from [1] which > have been merged in next

[PATCH 0/6] coresight: next v5.0-rc5

2019-02-05 Thread Mathieu Poirier
Hi Greg, Here is what I collected for inclusion in the 5.1 cycle, please have a look when you have a minute. Applies cleanly on the char-misc-next branch (9f23379c67fa). Thanks, Mathieu Leo Yan (1): coresight: cpu-debug: Support for CA73 CPUs Mathieu Poirier (3): perf/aux: Make perf_event

[PATCH 1/6] coresight: cpu-debug: Support for CA73 CPUs

2019-02-05 Thread Mathieu Poirier
From: Leo Yan This patch is to add the AMBA device ID for CA73 CPU, so that CPU debug module can be initialized successfully when a SoC contain CA73 CPUs. This patch has been verified on 96boards Hikey960. Signed-off-by: Leo Yan Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/

[PATCH 5/6] coresight: perf: Add "sinks" group to PMU directory

2019-02-05 Thread Mathieu Poirier
Add a "sinks" directory entry so that users can see all the sinks available in the system in a single place. Individual sink are added as they are registered with the coresight bus. Signed-off-by: Mathieu Poirier Acked-by: Peter Zijlstra (Intel) Reviewed-by: Suzuki K Poulose --- .../hwtracing

[PATCH 6/6] coresight: Use event attributes for sink selection

2019-02-05 Thread Mathieu Poirier
This patch uses the information conveyed by perf_event::attr::config2 to select a sink to use for the session. That way a sink can easily be selected to be used by more than one source, something that isn't currently possible with the sysfs implementation. Signed-off-by: Mathieu Poirier Acked-by

[PATCH 3/6] coresight: Use of_node_name_eq for node name comparisons

2019-02-05 Thread Mathieu Poirier
From: Rob Herring Convert string compares of DT node names to use of_node_name_eq helper instead. This removes direct access to the node name pointer. Cc: Mathieu Poirier Cc: Alexander Shishkin Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Rob Herring Signed-off-by: Mathieu Poirier

[PATCH 4/6] perf/aux: Make perf_event accessible to setup_aux()

2019-02-05 Thread Mathieu Poirier
When pmu::setup_aux() is called the coresight PMU needs to know which sink to use for the session by looking up the information in the event's attr::config2 field. As such simply replace the cpu information by the complete perf_event structure and change all affected customers. Signed-off-by: Mat

[PATCH 2/6] coresight: stm: Remove set but not used variable 'res_size'

2019-02-05 Thread Mathieu Poirier
From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: drivers/hwtracing/coresight/coresight-stm.c: In function 'stm_probe': drivers/hwtracing/coresight/coresight-stm.c:796:9: warning: variable 'res_size' set but not used [-Wunused-but-set-variable] It never used since introduction in

Re: [PATCH V5 2/4] thermal: imx_sc: add i.MX system controller thermal support

2019-02-05 Thread Eduardo Valentin
On Tue, Jan 22, 2019 at 06:54:30AM +, Anson Huang wrote: > Hi, Eduardo > > Best Regards! > Anson Huang Taking a look > > > -Original Message- > > From: Anson Huang > > Sent: 2019年1月10日 17:28 > > To: 'Eduardo Valentin' > > Cc: 'robh...@kernel.org' ; 'mark.rutl...@arm.com' > > ; 'cat

Re: [PATCH 10/10] acpi: bgrt: parse BGRT to obtain BMP address before it gets clobbered

2019-02-05 Thread Ard Biesheuvel
On Tue, 5 Feb 2019 at 19:07, Ghannam, Yazen wrote: > > > -Original Message- > > From: linux-kernel-ow...@vger.kernel.org > ow...@vger.kernel.org> On Behalf Of Ard Biesheuvel > > Sent: Saturday, February 2, 2019 3:41 AM > > To: linux-...@vger.kernel.org; Ingo Molnar ; Thomas > > Gleixner

Re: [PATCH v10 1/3] mm: Shuffle initial free memory to improve memory-side-cache utilization

2019-02-05 Thread Matthew Wilcox
On Tue, Feb 05, 2019 at 11:11:06PM +, Kees Cook wrote: > FWIW, distros have enabled it by default for a while. Here's Ubuntu, > for example: > > and Fedora too: Also Debian: $ grep SLAB_FREELIST /boot/config-4.19.0-1-amd64 CONFIG_SLAB_FREELIST_RANDOM=y CONFIG_SLAB_FREELIST_HARDENED=y linux

Re: [PATCH RESEND] PCI: Check for USB xHCI class for HAPS platform

2019-02-05 Thread Bjorn Helgaas
[+cc Richard, Lucas] On Tue, Feb 05, 2019 at 01:04:28PM -0800, Thinh Nguyen wrote: > The Synopsys HAPS USB controller has a VID PID (16c3,abcd) that matches > to an existing PCIe controller. This quirk is intended for USB HAPS > devices only. To fix this, check for the PCI class USB xHCI to preven

BUSINESS SOLUTION INVESTMENT FUNDING

2019-02-05 Thread Abdul Aziz,
Hello, I want to create a relationship with you. I represent the leading provider of alternative funding solutions for a busines investment project. Visit us at Site: http://saharapcc.com I'd like to provide capital to you. If you have a project that differs from these and current budget is o

Re: linux-next: manual merge of the mips tree with the mips-fixes tree

2019-02-05 Thread Paul Burton
Hi Stephen, On Wed, Feb 06, 2019 at 09:17:36AM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the mips tree got conflicts in: > > arch/mips/include/asm/barrier.h > arch/mips/include/asm/pgtable.h > > between commit: > > e02e07e3127d ("MIPS: Loongson: Introduce a

Re: [PATCH V5 2/4] thermal: imx_sc: add i.MX system controller thermal support

2019-02-05 Thread Eduardo Valentin
On Tue, Jan 22, 2019 at 06:54:30AM +, Anson Huang wrote: > Hi, Eduardo > > Best Regards! > Anson Huang > > > -Original Message- > > From: Anson Huang > > Sent: 2019年1月10日 17:28 > > To: 'Eduardo Valentin' > > Cc: 'robh...@kernel.org' ; 'mark.rutl...@arm.com' > > ; 'catalin.mari...@arm

Re: linux-next: manual merge of the mips tree with the mips-fixes tree

2019-02-05 Thread Stephen Rothwell
Hi Paul, On Tue, 5 Feb 2019 23:35:31 + Paul Burton wrote: > > cmpxchg() doesn't need the added loongson_llsc_mb() barrier that > set_pte() has in mips-fixes because for the affected Loongson 3 > configurations the smp_mb__before_llsc() that cmpxchg() already contains > is equivalent (both wil

Re: [PATCH v1 0/2] thermal: trivial fixes to error messages

2019-02-05 Thread Eduardo Valentin
On Mon, Jan 21, 2019 at 03:12:21PM +0530, Amit Kucheria wrote: > Fix up a couple of error messages > > Amit Kucheria (2): > thermal: of-thermal: Print name of device node with error > thermal: cpu_cooling: Clarify error message > > drivers/thermal/cpu_cooling.c | 2 +- > drivers/thermal/of-t

linux-next: manual merge of the opp tree with the pm tree

2019-02-05 Thread Stephen Rothwell
Hi Viresh, Today's linux-next merge of the opp tree got a conflict in: drivers/cpufreq/scmi-cpufreq.c between commit: 5da7af9a94a7 ("cpufreq: scmi: Use auto-registration of thermal cooling device") from the pm tree and commit: d7194c939ea3 ("cpufreq: scmi: Register an Energy Model") f

[PATCH net-next v3 02/12] bnxt: Implement ndo_get_port_parent_id()

2019-02-05 Thread Florian Fainelli
BNXT only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it a great candidate to be converted to use the ndo_get_port_parent_id() NDO instead of implementing switchdev_port_attr_get(). The conversion is straight forward here since the PF and VF code use the same getter. Since bnxt makes us

[PATCH net-next v3 07/12] nfp: Implement ndo_get_port_parent_id()

2019-02-05 Thread Florian Fainelli
NFP only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it a great candidate to be converted to use the ndo_get_port_parent_id() NDO instead of implementing switchdev_port_attr_get(). Since NFP uses switchdev_port_same_parent_id() convert it to use netdev_port_same_parent_id(). Signed-off

[PATCH net-next v3 00/12] net: Introduce ndo_get_port_parent_id()

2019-02-05 Thread Florian Fainelli
Hi all, Based on discussion with Ido and feedback from Jakub there are clearly two classes of users that implement SWITCHDEV_ATTR_ID_PORT_PARENT_ID: - PF/VF drivers which typically only implement return the port's parent ID, yet have to implement switchdev_port_attr_get() just for that - Ether

[PATCH net-next v3 09/12] netdevsim: Implement ndo_get_port_parent_id()

2019-02-05 Thread Florian Fainelli
netdevsim only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it a great candidate to be converted to use the ndo_get_port_parent_id() NDO instead of implementing switchdev_port_attr_get(). Signed-off-by: Florian Fainelli --- drivers/net/netdevsim/netdev.c | 23 ++- 1

[PATCH net-next v3 10/12] staging: fsl-dpaa2: ethsw: Implement ndo_get_port_parent_id()

2019-02-05 Thread Florian Fainelli
ethsw implements SWITCHDEV_ATTR_ID_PORT_PARENT_ID and we want to get rid of switchdev_ops eventually, ease that migration by implementing a ndo_get_port_parent_id() function which returns what switchdev_port_attr_get() would do. Signed-off-by: Florian Fainelli --- drivers/staging/fsl-dpaa2/ethsw

[PATCH net-next v3 12/12] net: Get rid of SWITCHDEV_ATTR_ID_PORT_PARENT_ID

2019-02-05 Thread Florian Fainelli
Now that we have a dedicated NDO for getting a port's parent ID, get rid of SWITCHDEV_ATTR_ID_PORT_PARENT_ID and convert all callers to use the NDO exclusively. This is a preliminary change to getting rid of switchdev_ops eventually. Signed-off-by: Florian Fainelli --- include/net/switchdev.h

[PATCH net-next v3 11/12] net: dsa: Implement ndo_get_port_parent_id()

2019-02-05 Thread Florian Fainelli
DSA implements SWITCHDEV_ATTR_ID_PORT_PARENT_ID and we want to get rid of switchdev_ops eventually, ease that migration by implementing a ndo_get_port_parent_id() function which returns what switchdev_port_attr_get() would do. Signed-off-by: Florian Fainelli --- net/dsa/slave.c | 18

[PATCH net-next v3 08/12] rocker: Implement ndo_get_port_parent_id()

2019-02-05 Thread Florian Fainelli
mlxsw implements SWITCHDEV_ATTR_ID_PORT_PARENT_ID and we want to get rid of switchdev_ops eventually, ease that migration by implementing a ndo_get_port_parent_id() function which returns what switchdev_port_attr_get() would do. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/rocker/roc

[PATCH net-next v3 04/12] net/mlx5e: Implement ndo_get_port_parent_id()

2019-02-05 Thread Florian Fainelli
mlx5e only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it a great candidate to be converted to use the ndo_get_port_parent_id() NDO instead of implementing switchdev_port_attr_get(). Since mlx5e makes use of switchdev_port_parent_id() convert it to use netdev_port_same_parent_id(). Sig

Re: [PATCH 1/9] iommu/vt-d: Allow interrupts from the entire bus for aliased devices

2019-02-05 Thread Jacob Pan
On Tue, 5 Feb 2019 13:40:36 -0700 Logan Gunthorpe wrote: > On 2019-02-05 12:19 p.m., Jacob Pan wrote: > > On Fri, 1 Feb 2019 10:27:29 -0700 > > Logan Gunthorpe wrote: > > > >> On 2019-02-01 9:44 a.m., Joerg Roedel wrote: > >>> On Thu, Jan 31, 2019 at 11:56:48AM -0700, Logan Gunthorpe > >>>

[PATCH net-next v3 05/12] mlxsw: Implement ndo_get_port_parent_id()

2019-02-05 Thread Florian Fainelli
mlxsw implements SWITCHDEV_ATTR_ID_PORT_PARENT_ID and we want to get rid of switchdev_ops eventually, ease that migration by implementing a ndo_get_port_parent_id() function which returns what switchdev_port_attr_get() would do. Signed-off-by: Florian Fainelli --- .../net/ethernet/mellanox/mlxsw

[PATCH net-next v3 06/12] mscc: ocelot: Implement ndo_get_port_parent_id()

2019-02-05 Thread Florian Fainelli
Ocelot only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID as a valid switchdev attribute getter, convert it to use ndo_get_port_parent_id() and get rid of the switchdev_ops::switchdev_port_attr_get altogether. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/mscc/ocelot.c | 33 --

[PATCH net-next v3 01/12] net: Introduce ndo_get_port_parent_id()

2019-02-05 Thread Florian Fainelli
In preparation for getting rid of switchdev_ops, create a dedicated NDO operation for getting the port's parent identifier. There are essentially two classes of drivers that need to implement getting the port's parent ID which are VF/PF drivers with a built-in switch, and pure switchdev drivers suc

[PATCH net-next v3 03/12] liquidio: Implement ndo_get_port_parent_id()

2019-02-05 Thread Florian Fainelli
Liquidio only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it a great candidate to be converted to use the ndo_get_port_parent_id() NDO instead of implementing switchdev_port_attr_get(). Signed-off-by: Florian Fainelli --- .../net/ethernet/cavium/liquidio/lio_main.c | 22

Re: [PATCH v6 0/3] Stingray thermal driver support

2019-02-05 Thread Eduardo Valentin
Hello, On Mon, Feb 04, 2019 at 04:16:19PM -0800, Ray Jui wrote: > Hi Zhang/Eduardo, > > Can this patch series be merged? It looks like Srinath has addressed all > review comments? I will take a look. Side note, thermal patches are reviewed on linux...@vger.kernel.org. Copying that list it does h

Re: [PATCH 2/9] clk: Introduce get_parent_hw clk op

2019-02-05 Thread Stephen Boyd
Quoting Jerome Brunet (2019-01-31 10:40:07) > On Wed, 2019-01-30 at 13:30 -0800, Stephen Boyd wrote: > > > With this quirk, CCF is making an assumption that might be wrong. > > > > > > The quirk is very easy put in the get_parent() callback of the said > > > driver, or > > > even better, don't pro

Re: [PATCH v3 1/1] arm64: dts: sdm845: wireup the thermal trip points to cpufreq

2019-02-05 Thread Eduardo Valentin
On Mon, Jan 21, 2019 at 11:38:34PM +0530, Amit Kucheria wrote: > Since all cpus in the big and little clusters, respectively, are in the > same frequency domain, use all of them for mitigation in the > cooling-map. We end up with two cooling devices - one each for the big > and little clusters. >

[PATCH 04/32] timens: Introduce CLOCK_BOOTTIME offset

2019-02-05 Thread Dmitry Safonov
From: Andrei Vagin Adds boottime virtualisation for time namespace. Introduce timespec for boottime clock into timens offsets and wire clock_gettime() syscall. Signed-off-by: Andrei Vagin Co-developed-by: Dmitry Safonov Signed-off-by: Dmitry Safonov --- include/linux/timens_offsets.h | 1 +

[PATCH 11/32] x86/vdso/Makefile: Add vobjs32

2019-02-05 Thread Dmitry Safonov
As for 64-bit vdso objects, handle ia32/i386 objects in array. This is a preparation ground to avoid code duplication on introduction of timens vdso. Signed-off-by: Dmitry Safonov --- arch/x86/entry/vdso/Makefile | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git

[PATCH 00/32] kernel: Introduce Time Namespace

2019-02-05 Thread Dmitry Safonov
Discussions around time namespace are there for a long time. The first attempt to implement it was in 2006 by Jeff Dike. From that time, the topic appears on and off in various discussions. There are two main use cases for time namespaces: 1. change date and time inside a container; 2. adjust cloc

[PATCH 24/32] selftest/timens: Add Time Namespace test for supported clocks

2019-02-05 Thread Dmitry Safonov
A test to check that all supported clocks work on host and inside a new time namespace. Use both ways to get time: through VDSO and by entering the kernel with implicit syscall. Introduce a new timens directory in selftests framework for the next timens tests. Co-developed-by: Andrei Vagin Signe

<    3   4   5   6   7   8   9   10   >