dma_declare_coherent spring cleaning

2019-02-11 Thread Christoph Hellwig
Hi all, this series removes various bits of dead code and refactors the remaining functionality around dma_declare_coherent to be a somewhat more coherent code base.

[PATCH 03/12] of: mark early_init_dt_alloc_reserved_memory_arch static

2019-02-11 Thread Christoph Hellwig
This function is only used in of_reserved_mem.c, and never overridden despite the __weak marker. Signed-off-by: Christoph Hellwig --- drivers/of/of_reserved_mem.c| 2 +- include/linux/of_reserved_mem.h | 7 --- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git

[PATCH 01/12] mfd/sm501: depend on HAS_DMA

2019-02-11 Thread Christoph Hellwig
Currently the sm501 mfd driver can be compiled without any dependencies, but through the use of dma_declare_coherent it really depends on having DMA and iomem support. Normally we don't explicitly require DMA support as we have stubs for it if on UML, but in this case the driver selects support

[PATCH 07/12] dma-mapping: move CONFIG_DMA_CMA to kernel/dma/Kconfig

2019-02-11 Thread Christoph Hellwig
This is where all the related code already lives. Signed-off-by: Christoph Hellwig --- drivers/base/Kconfig | 77 kernel/dma/Kconfig | 77 2 files changed, 77 insertions(+), 77 deletions(-) diff --git

[PATCH 10/12] dma-mapping: simplify allocations from per-device coherent memory

2019-02-11 Thread Christoph Hellwig
All users of per-device coherent memory are exclusive, that is if we can't allocate from the per-device pool we can't use the system memory either. Unfold the current dma_{alloc,free}_from_dev_coherent implementation and always use the per-device pool if it exists. Signed-off-by: Christoph

[PATCH 09/12] dma-mapping: remove the DMA_MEMORY_EXCLUSIVE flag

2019-02-11 Thread Christoph Hellwig
All users of dma_declare_coherent want their allocations to be exclusive, so default to exclusive allocations. Signed-off-by: Christoph Hellwig --- Documentation/DMA-API.txt | 9 +-- arch/arm/mach-imx/mach-imx27_visstrim_m10.c | 12 +++--

[PATCH 12/12] dma-mapping: remove dma_assign_coherent_memory

2019-02-11 Thread Christoph Hellwig
The only useful bit in this function was the already assigned check. Once that is moved to dma_init_coherent_memory thee rest can easily be handled in the two callers. Signed-off-by: Christoph Hellwig --- kernel/dma/coherent.c | 47 +-- 1 file changed, 14

[PATCH v5 2/2] scsi: ufs: Remove unused device quirks

2019-02-11 Thread Marc Gonzalez
The UFSHC driver defines a few quirks that are not used anywhere: UFS_DEVICE_QUIRK_BROKEN_LCC UFS_DEVICE_NO_VCCQ UFS_DEVICE_QUIRK_NO_LINK_OFF UFS_DEVICE_NO_FASTAUTO Let's remove them. Signed-off-by: Marc Gonzalez --- drivers/scsi/ufs/ufs_quirks.h | 29 -

[PATCH 11/12] dma-mapping: handle per-device coherent memory mmap in common code

2019-02-11 Thread Christoph Hellwig
We handle allocation and freeing in common code, so we should handle mmap the same way. Also all users of per-device coherent memory are exclusive, that is if we can't allocate from the per-device pool we can't use the system memory either. Unfold the current dma_mmap_from_dev_coherent

[PATCH 05/12] dma-mapping: remove an incorrect __iommem annotation

2019-02-11 Thread Christoph Hellwig
memmap return a regular void pointer, not and __iomem one. Signed-off-by: Christoph Hellwig --- kernel/dma/coherent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/dma/coherent.c b/kernel/dma/coherent.c index 66f0fb7e9a3a..4b76aba574c2 100644 ---

[PATCH 08/12] dma-mapping: remove dma_mark_declared_memory_occupied

2019-02-11 Thread Christoph Hellwig
This API is not used anywhere, so remove it. Signed-off-by: Christoph Hellwig --- Documentation/DMA-API.txt | 17 - include/linux/dma-mapping.h | 9 - kernel/dma/coherent.c | 23 --- 3 files changed, 49 deletions(-) diff --git

[PATCH 06/12] dma-mapping: improve selection of dma_declare_coherent availability

2019-02-11 Thread Christoph Hellwig
This API is primarily used through DT entries, but two architectures and two drivers call it directly. So instead of selecting the config symbol for random architectures pull it in implicitly for the actual users. Also rename the Kconfig option to describe the feature better. Signed-off-by:

Re: [PATCH] gpio: zynq: properly support runtime PM for GPIO used as interrupts

2019-02-11 Thread Shubhrajyoti Datta
Hi Thomas, Thanks for the patch. On Fri, Feb 8, 2019 at 4:13 PM Thomas Petazzoni wrote: > > The Zynq GPIO driver currently implements runtime PM by: > > - Enabling runtime PM support in ->probe() and letting the runtime PM >reference counter drop to zero at the end of ->probe(). > > -

[PATCH 04/12] of: select OF_RESERVED_MEM automatically

2019-02-11 Thread Christoph Hellwig
The OF_RESERVED_MEM can be used if we have either CMA or the generic declare coherent code built and we support the early flattened DT. So don't bother making it a user visible options that is selected by most configs that fit the above category, but just select it when the requirements are met.

[PATCH 02/12] device.h: dma_mem is only needed for HAVE_GENERIC_DMA_COHERENT

2019-02-11 Thread Christoph Hellwig
No need to carry an unused field around. Signed-off-by: Christoph Hellwig --- include/linux/device.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/device.h b/include/linux/device.h index 6cb4640b6160..be544400acdd 100644 --- a/include/linux/device.h +++

Re: [PATCH 04/22] ASoC: samsung: i2s: Fix prescaler setting for the secondary DAI

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:01, Sylwester Nawrocki wrote: > > Make sure i2s->rclk_srcrate is properly initialized also during > playback through the secondary DAI. > > Signed-off-by: Sylwester Nawrocki > --- > sound/soc/samsung/i2s.c | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) >

Re: [PATCH 05/22] ASoC: samsung: i2s: Convert to single component with multiple DAIs

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:01, Sylwester Nawrocki wrote: > > This patch includes minimal changes as a prerequisite for adding support > for the Exynos secondary I2S interface as second DAI of the I2S component. > Doing it that way allows to avoid problems as indicated in commmit > 6b01e0365b1689

Re: [PATCH] libertas_tf: don't set URB_ZERO_PACKET on IN USB transfer

2019-02-11 Thread Steve deRosier
On Sun, Feb 10, 2019 at 11:48 AM Lubomir Rintel wrote: > > It doesn't make sense and the USB core warns on each submit of such > URB, easily flooding the message buffer with tracebacks. > > Analogous issue was fixed in regular libertas driver in commit 6528d8804780 > ("libertas: don't set

Re: [PATCH] libertas_tf: move the banner to a more appropriate place

2019-02-11 Thread Steve deRosier
On Sun, Feb 10, 2019 at 11:48 AM Lubomir Rintel wrote: > > Also, turn it to a dev_info() to make checkpatch.pl happy. > > Signed-off-by: Lubomir Rintel > --- > drivers/net/wireless/marvell/libertas_tf/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH] libertas_tf: fix signal reporting

2019-02-11 Thread Steve deRosier
On Sun, Feb 10, 2019 at 11:48 AM Lubomir Rintel wrote: > > Instead of exposing the signal-to-noise ration, calculate the actual signal > level taking the noise floor into account. > > Also, flip the SIGNAL_DBM bit on, so that mac80211 exposes the signal > level along with the station info in scan

Re: 4.14 "uio: Prevent device destruction while fds are open"

2019-02-11 Thread g...@kroah.com
On Wed, Feb 06, 2019 at 11:27:27AM +, Rantala, Tommi T. (Nokia - FI/Espoo) wrote: > Hi, > > I hit use-after-free issues in UIO in 4.14.x, and discovered that it's > already fixed in later kernel versions: > > commit a93e7b331568227500186a465fee3c2cb5dffd1f > Author: Hamish Martin > Date:

Re: [PATCH 06/22] ASoC: samsung: i2s: Restore support for the secondary PCM

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:01, Sylwester Nawrocki wrote: > > This patch introduces again registration of additional platform device as > we still need it for registering the secondary dmaengine PCM component. > > This patch in most part is a revert of changes done in commit > be2c92eb64023e ("ASoC:

Re: [PATCH 07/22] ASoC: samsung: i2s: Move clk supplier data to common driver data structure

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:01, Sylwester Nawrocki wrote: > > Having the clocks provider data in struct samsung_i2s_priv, i.e. per the I2S > controller instance, rather than per CPU DAI better models the hardware and > simplifies the code a little. The clock provider is common for both DAIs. > >

Re: [PATCH 08/22] ASoC: samsung: i2s: Add widgets and routes for DPCM support

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:01, Sylwester Nawrocki wrote: > > This patch adds DAPM widgets required to model the internal mixer > of the I2S controller merging audio streams from the primary and > from the secondary PCM interface. > > Signed-off-by: Sylwester Nawrocki > --- >

Re: [PATCH][next] RDMA/bnxt_re: fix or'ing of data into an uninitialized struct member

2019-02-11 Thread Devesh Sharma
On Mon, Feb 11, 2019 at 7:04 PM Colin King wrote: > > From: Colin Ian King > > The struct member comp_mask has not been initialized however a bit > pattern is being bitwise or'd into the member and hence other bit > fields in comp_mask may contain any garbage from the stack. Fix this > by making

[PATCH v3 1/4] perf-security: document perf_events/Perf resource control

2019-02-11 Thread Alexey Budankov
Extend perf-security.rst file with perf_events/Perf resource control section describing RLIMIT_NOFILE and perf_event_mlock_kb settings for performance monitoring user processes. Signed-off-by: Alexey Budankov --- Changes in v3: - added two more paragraphs on open fds and memory allocation -

[PATCH] Documentation/DMA-ISA-LPC: fix an incorrect reference

2019-02-11 Thread Christoph Hellwig
AFAIK we never had a isa_virt_to_phys, it always was isa_virt_to_bus. Signed-off-by: Christoph Hellwig --- Documentation/DMA-ISA-LPC.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/DMA-ISA-LPC.txt b/Documentation/DMA-ISA-LPC.txt index

[PATCH v3 2/4] perf-security: document collected perf_events/Perf data categories

2019-02-11 Thread Alexey Budankov
Document and categorize system and performance data into groups that can be captured by perf_events/Perf and explicitly indicate the group that can contain process sensitive data. Signed-off-by: Alexey Budankov --- Documentation/admin-guide/perf-security.rst | 32 +++-- 1 file

Re: [PATCH 10/22] ASoC: samsung: i2s: Move opclk data to common driver data structure

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:01, Sylwester Nawrocki wrote: > > The clock for generating I2S signals is also common for both CPU DAIs > so move it to the driver's common data structure. > > Signed-off-by: Sylwester Nawrocki > --- > sound/soc/samsung/i2s.c | 70

Re: [PATCH 09/22] ASoC: samsung: i2s: Move core clk to the driver common data structure

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:01, Sylwester Nawrocki wrote: > > The core clock is also common for both CPU DAIs so move it to > the driver's private data structure. > > Signed-off-by: Sylwester Nawrocki > --- > sound/soc/samsung/i2s.c | 27 ++- > 1 file changed, 14

Re: [PATCH 11/22] ASoC: samsung: i2s: Move registers cache to common driver data structure

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:01, Sylwester Nawrocki wrote: > > There is no need to keep the PM suspend/resume register cache separate > for each DAI as those registers are common, move related i2s_dai data > structure to the driver's common data structure. This will allow us > to simplify the code a

[PATCH v3 3/4] perf-security: elaborate on perf_events/Perf privileged users

2019-02-11 Thread Alexey Budankov
Elaborate on possible perf_event/Perf privileged users groups and document steps about creating such groups. Signed-off-by: Alexey Budankov --- Documentation/admin-guide/perf-security.rst | 43 + 1 file changed, 43 insertions(+) diff --git

Re: [PATCH v3 3/4] uaccess: Check no rescheduling function is called in unsafe region

2019-02-11 Thread Ingo Molnar
* Julien Thierry wrote: > While running a user_access regions, it is not supported to reschedule. > Add an overridable primitive to indicate whether a user_access region is > active and check that this is not the case when calling rescheduling > functions. > > These checks are only performed

Re: [PATCH 12/22] ASoC: samsung: i2s: Move SFR pointer to common driver data structure

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:01, Sylwester Nawrocki wrote: > > The SFR region is common for both DAIs so move related data structure > field from struct i2s_dai to the common driver data structure. > > Signed-off-by: Sylwester Nawrocki > --- > sound/soc/samsung/i2s.c | 105

Re: [RFC 1/2] page-flags: Make page lock operation atomic

2019-02-11 Thread Peter Zijlstra
On Mon, Feb 11, 2019 at 12:53:53PM +, Chintan Pandya wrote: > Currently, page lock operation is non-atomic. This is opening > some scope for race condition. For ex, if 2 threads are accessing > same page flags, it may happen that our desired thread's page > lock bit (PG_locked) might get

[PATCH] iscsi_ibft: use virt_to_phys instead of isa_virt_to_bus

2019-02-11 Thread Christoph Hellwig
As far as I can tell IBFT is a firmware table and has nothing to do with the good old ISA bus. And even if it the two would be the same on x86 anyway. So remove the isa_virt_to_bus call in preparation of eventually removing that API entirely. Signed-off-by: Christoph Hellwig ---

Re: [PATCH v4 3/5] i2c:ocores: add polling interface

2019-02-11 Thread Federico Vaga
On Monday, February 11, 2019 2:35:15 PM CET Peter Rosin wrote: > >>> @@ -294,7 +427,7 @@ static int ocores_init(struct device *dev, struct > >>> ocores_i2c *i2c) > >> > >> > >> > >>> > >>> > >>> > >>> /* Init the device */ > >>> oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_IACK); > >>> > >>> >

Re: [PATCH 13/22] ASoC: samsung: i2s: Drop spinlock pointer from i2s_dai data structure

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:01, Sylwester Nawrocki wrote: > > As we now have the 'priv' pointer in most of the places we can use > priv->lock directly, dropping extra indirection in the SFR region > spinlock access. > > Signed-off-by: Sylwester Nawrocki > --- > sound/soc/samsung/i2s.c | 51

Re: [RFC 2/2] page-flags: Catch the double setter of page flags

2019-02-11 Thread Peter Zijlstra
On Mon, Feb 11, 2019 at 12:53:55PM +, Chintan Pandya wrote: > Some of the page flags, like PG_locked is not supposed to > be set twice. Currently, there is no protection around this > and many callers directly tries to set this bit. Others > follow trylock_page() which is much safer version of

Re: [PATCH v4 3/5] i2c:ocores: add polling interface

2019-02-11 Thread Federico Vaga
On Monday, February 11, 2019 11:25:26 AM CET Wolfram Sang wrote: > On Mon, Feb 11, 2019 at 09:31:20AM +0100, Federico Vaga wrote: > > This driver assumes that an interrupt line is always available for > > the I2C master. This is not always the case and this patch adds support > > for a polling

Re: [PATCH 1/3] libertas_tf: move hardware callbacks to a separate structure

2019-02-11 Thread Steve deRosier
On Sun, Feb 10, 2019 at 11:52 AM Lubomir Rintel wrote: > > We'll need to talk to the firmware to get a hardware address before > device is registered with ieee80211 subsystem at the end of > lbtf_add_card(). Hooking the callbacks after that is too late. > > Signed-off-by: Lubomir Rintel > --- >

Re: [PATCH 14/22] ASoC: samsung: i2s: Move IP variant data to common driver data structure

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:01, Sylwester Nawrocki wrote: > > The IP variant data is another thing common for both DAIs, move it > to the driver's common data structure. > > Signed-off-by: Sylwester Nawrocki > --- > sound/soc/samsung/i2s.c | 42 - > 1 file

Re: [RFC PATCH] x86, numa: always initialize all possible nodes

2019-02-11 Thread Ingo Molnar
* Michal Hocko wrote: > On Thu 24-01-19 11:10:50, Dave Hansen wrote: > > On 1/24/19 6:17 AM, Michal Hocko wrote: > > > and nr_cpus set to 4. The underlying reason is tha the device is bound > > > to node 2 which doesn't have any memory and init_cpu_to_node only > > > initializes memory-less

[PATCH] tools: ffs-aio-example: fix uninitialized boolean variable 'ready'

2019-02-11 Thread Colin King
From: Colin Ian King The boolean variable is uninitialized and is only set if file descriptor ep0 is ready. Fix this by ensuring the variable is initialized by setting it to false. Fixes: b34e08d5c706 ("tools: usb: aio example applications") Signed-off-by: Colin Ian King ---

Re: [PATCH 15/22] ASoC: samsung: i2s: Move quirks data to common driver data structure

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:01, Sylwester Nawrocki wrote: > > The quirk flags are common for the primary and the secondary DAI > so move respective field from struct i2s_dai to common driver data > structure. > > Signed-off-by: Sylwester Nawrocki > --- > sound/soc/samsung/i2s.c | 36

Re: [PATCH v2 0/9] kprobes: Fix and improve blacklist symbols

2019-02-11 Thread Ingo Molnar
* Masami Hiramatsu wrote: > Hi Ingo, > > Can I ask you to pick this series and Andrea's patch? > Or would I better update this series on the latest tip/master? Yeah, an updated series with Andrea's patch included, against latest -tip, would be nice. Thanks! Ingo

Re: [PATCH 16/22] ASoC: samsung: i2s: Get rid of a static spinlock

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:01, Sylwester Nawrocki wrote: > > This patch makes the spinlock serializing access to the primary/secondary > PCM a per I2S controller lock, rather than a global one. There is no need > to have a global lock across multiple I2S controllers in the SoC. > > Signed-off-by:

Re: [PATCH v3 3/4] uaccess: Check no rescheduling function is called in unsafe region

2019-02-11 Thread Peter Zijlstra
On Mon, Feb 11, 2019 at 02:45:27PM +0100, Ingo Molnar wrote: > > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > > index a674c7db..b1bb7e9 100644 > > --- a/kernel/sched/core.c > > +++ b/kernel/sched/core.c > > @@ -3289,6 +3289,14 @@ static inline void schedule_debug(struct task_struct >

Re: [PATCH v2 0/4] perf: enable compression of record mode trace to save storage space

2019-02-11 Thread Jiri Olsa
On Mon, Jan 28, 2019 at 10:02:49AM +0300, Alexey Budankov wrote: > > The patch set implements runtime trace compression for record mode and > trace file decompression for report mode. Zstandard API [1] is used for > compression/decompression of data that come from perf_events kernel > data

[PATCH] clk: clk-gpio: add support for sleeping GPIOs in gpio-gate-clk

2019-02-11 Thread Thomas Petazzoni
The current implementation of gpio-gate-clk enables/disables the clock using the GPIO in the ->enable() and ->disable() clock callbacks. This requires the GPIO to be configurable in atomic contexts. While it is the case for most memory-mapped GPIO controllers, it is not the case for GPIO expanders

Re: [PATCH 17/22] ASoC: samsung: odroid: Add support for secondary CPU DAI

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:01, Sylwester Nawrocki wrote: > > This patch adds DPCM links in order to support the secondary I2S interface. > For the secondary PCM interface to be actually available one more entry > should be added to the sound-dai property in sound/cpu node in DT. > The changes in

Re: [PATCH v4 1/2] tpm: Unify the send callback behaviour

2019-02-11 Thread Jarkko Sakkinen
On Sat, Feb 09, 2019 at 11:20:22AM -0700, Jerry Snitselaar wrote: > Does st33zp24_i2c_send need an update as well? It does 'return > write8_reg()'. After these commits the only situation when st33zp24_i2c_send() return value is returned back to the user space, when called from st33zp24_send(), is

Re: [PATCH 18/22] ASoC: samsung: Specify DMA channel names through custom DMA config

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:01, Sylwester Nawrocki wrote: > > This is a part of conversion of Samsung platforms to use the custom DMA > config for specifying DMA channel names, in addition to passing custom > DMA device for the secondary CPU DAI's "PCM" component for some variants > of the I2S

[PATCH v5 0/6] clk: renesas: r8a77990, r8a774c0: Add Z2 clock

2019-02-11 Thread Simon Horman
Hi, this series adds the Z2 clock as a clock with both a fixed and variable divisor with a parent of PLL0 to the CPG-MSSR drivers for the R-Car E3 (r8a77990) and RZ/G2E (r8a774c0) SoCs. In order to do so this series: 1. Parameterise Z and Z2 clock fixed divisor in shared Gen-3 CPG driver

[PATCH v5 3/6] math64: New DIV64_U64_ROUND_CLOSEST helper

2019-02-11 Thread Simon Horman
Provide DIV64_U64_ROUND_CLOSEST helper which performs division rounded to the closes integer using an unsigned 64bit dividend and divisor. This will be used in a follow-up patch to allow calculation of clock divisors with high frequency parents in the R-Car Gen3 CPG MSSR driver where ovefolow

[PATCH v5 2/6] clk: renesas: rcar-gen3: Parameterise Z and Z2 clock offset

2019-02-11 Thread Simon Horman
Parameterise the offset of control bits within the FRQCRC register for Z and Z2 clocks. This is in preparation for supporting the Z2 clock on the R-Car E3 (r8a77990) SoC which uses a different offset for control bits to other, already, supported SoCs. This mechanism should be extendable to other

Re: [PATCH v2 0/4] perf: enable compression of record mode trace to save storage space

2019-02-11 Thread Alexey Budankov
On 11.02.2019 16:52, Jiri Olsa wrote: > On Mon, Jan 28, 2019 at 10:02:49AM +0300, Alexey Budankov wrote: >> >> The patch set is for Arnaldo's perf/core repository. > > hi, > got here late and can't apply this anymore.. which revision > (commit id) is this based on? perf/core is moving real

[PATCH v5 6/6] clk: renesas: r8a774c0: Add Z2 clock

2019-02-11 Thread Simon Horman
Adds support for R-Car RZ/G2E (r8a774c0) Z2 clock. Signed-off-by: Simon Horman Tested-by: Fabrizio Castro Reviewed-by: Fabrizio Castro Reviewed-by: Geert Uytterhoeven --- v3: New patch --- drivers/clk/renesas/r8a774c0-cpg-mssr.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v5 4/6] clk: renesas: rcar-gen3: Support Z and Z2 clocks with high frequency parents

2019-02-11 Thread Simon Horman
Support Z and Z2 clocks with parent frequencies greater than UINT32_MAX Hz (~4.29GHz). The DIV_ROUND_CLOSEST_ULL() macro accepts a 64bit dividend and 32bit divisor. This leads to truncation of the divisor, which is the Z or Z2 parent clock frequency in HZ, on platforms where frequency of that

Re: [RFC 1/2] page-flags: Make page lock operation atomic

2019-02-11 Thread Linux Upstream
On 11/02/19 7:16 PM, Peter Zijlstra wrote: > On Mon, Feb 11, 2019 at 12:53:53PM +, Chintan Pandya wrote: >> Currently, page lock operation is non-atomic. This is opening >> some scope for race condition. For ex, if 2 threads are accessing >> same page flags, it may happen that our desired

Re: [PATCH] ARM: tegra: enforce PM requirement

2019-02-11 Thread Sameer Pujar
On 2/5/2019 4:46 PM, Sameer Pujar wrote: Drivers need to handle !PM case with work arounds for managing clocks and power explicitly, which is not really necessary when PM support on tegra is in good shape. In fact ARM 64-bit tegra platforms enforce PM support and there is no reason why this

[PATCH v5 5/6] clk: renesas: r8a77990: Add Z2 clock

2019-02-11 Thread Simon Horman
From: Takeshi Kihara Adds support for R-Car E3 (r8a77990) Z2 clock. Signed-off-by: Takeshi Kihara [simon: reworked changelog; rebased] Signed-off-by: Simon Horman Reviewed-by: Geert Uytterhoeven --- v3: [Simon Horman] - Pass new offset parameter v2: [Simon Horman] - Initialise as

[PATCH v5 1/6] clk: renesas: rcar-gen3: Parameterise Z and Z2 clock fixed divisor

2019-02-11 Thread Simon Horman
From: Takeshi Kihara Parameterise Z and Z2 clock fixed divisor to allow clocks with a fixed divisor other than 2, the value used by all such clocks supported to date. This is in preparation for supporting the Z2 clock on the R-Car E3 (r8a77990) SoC which has a fixed divisor of 4.

Re: add config symbols for arch_{setup,teardown}_dma_ops

2019-02-11 Thread Catalin Marinas
On Mon, Feb 11, 2019 at 02:21:56PM +0100, Christoph Hellwig wrote: > Any chance to get a quick review on this small series? For arm64: Acked-by: Catalin Marinas

Re: [PATCH] arm: use memblocks_present

2019-02-11 Thread Michal Hocko
On Mon 11-02-19 13:04:59, Peng Fan wrote: > arm_memory_present is doing same thing as memblocks_present, so > let's use common code memblocks_present instead of platform > specific arm_memory_present. > > Signed-off-by: Peng Fan Acked-by: Michal Hocko > --- > arch/arm/mm/init.c | 17

Re: [PATCH v4 1/5] i2c:ocores: stop transfer on timeout

2019-02-11 Thread Andrew Lunn
> Applied to for-next, thanks! Hi Wolfram Could you drop these patches and wait for a new version? I don't think you have pushed it out yet? So it won't be a visible rebase. Thanks Andrew

Re: [RFC 2/2] page-flags: Catch the double setter of page flags

2019-02-11 Thread Linux Upstream
On 11/02/19 7:17 PM, Peter Zijlstra wrote: > On Mon, Feb 11, 2019 at 12:53:55PM +, Chintan Pandya wrote: >> Some of the page flags, like PG_locked is not supposed to >> be set twice. Currently, there is no protection around this >> and many callers directly tries to set this bit. Others >>

Re: [PATCH v4 0/2] tpm: Unify send() callbacks

2019-02-11 Thread Jarkko Sakkinen
On Sat, Feb 09, 2019 at 01:08:38PM -0700, Jerry Snitselaar wrote: > Reviewed-by: Jerry Snitselaar Thank you. /Jarkko

Re: [PATCH 19/22] ASoC: samsung: Drop DAI DMA data chan_name assignments

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:01, Sylwester Nawrocki wrote: > > There is now no need to pass DMA channel names through the DAI DMA data, > custom DMA config of the PCM is now used for this purpose. > > Signed-off-by: Sylwester Nawrocki > --- > sound/soc/samsung/i2s.c | 4 >

Re: [PATCH 20/22] ASoC: dmaengine: Remove unused SND_DMAENGINE_PCM_FLAG_CUSTOM_CHANNEL_NAME flag

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:01, Sylwester Nawrocki wrote: > > There is now no users of this flag so remove it together with related > data structure field. > > Signed-off-by: Sylwester Nawrocki > --- > include/sound/dmaengine_pcm.h | 6 -- > sound/soc/soc-generic-dmaengine-pcm.c | 21

Re: [PATCH v3 2/4] dt-bindings: gnss: add mediatek binding

2019-02-11 Thread Loys Ollivier
On Mon 11 Feb 2019 at 09:22, Johan Hovold wrote: > On Wed, Jan 30, 2019 at 09:50:16AM -0600, Rob Herring wrote: >> On Mon, Jan 28, 2019 at 05:37:59PM +0100, Loys Ollivier wrote: >> > Add binding for Mediatek-based GNSS receivers. >> > >> > Signed-off-by: Loys Ollivier >> > --- >> > >> > v3:

Re: [PATCH v6 11/22] clk: sunxi-ng: a64: Add minimum rate for PLL_MIPI

2019-02-11 Thread Jagan Teki
Hi Maxime, On Fri, Feb 1, 2019 at 8:01 PM Maxime Ripard wrote: > > On Tue, Jan 29, 2019 at 11:01:31PM +0530, Jagan Teki wrote: > > On Tue, Jan 29, 2019 at 8:43 PM Maxime Ripard > > wrote: > > > > > > On Mon, Jan 28, 2019 at 03:06:10PM +0530, Jagan Teki wrote: > > > > On Sat, Jan 26, 2019 at

Re: [tip:x86/boot] x86/boot: Early parse RSDP and save it in boot_params

2019-02-11 Thread Guenter Roeck
On 2/11/19 2:08 AM, Borislav Petkov wrote: On Mon, Feb 11, 2019 at 05:30:33PM +0800, Chao Fan wrote: Yes, I download your ovmf file in linux-build-test/rootfs/firmware/ from your link. There are two files, efi32 and efi64. Then I try to run: You need both OVMF-pure-efi-32.fd and

Re: [PATCH] livepatch: Enforce reliable stack trace as config dependency

2019-02-11 Thread Josh Poimboeuf
On Sat, Feb 09, 2019 at 02:47:28PM +0530, Kamalesh Babulal wrote: > While the consistency model was introduced, architectures without the > reliable stack trace implementation could use the immediate flag for > livepatching but with its own limitations. > > After removal of the immediate flag by

Re: [PATCH 21/22] ARM: dts: exynos5422-odroidxu3: Add support for secondary DAI

2019-02-11 Thread Krzysztof Kozlowski
On Thu, 7 Feb 2019 at 18:02, Sylwester Nawrocki wrote: > > This patch extends DAPM routing and adds secondary CPU DAI entry > to support the secondary audio PCM interface on Odroid XU3. > > Signed-off-by: Sylwester Nawrocki > --- > arch/arm/boot/dts/exynos5422-odroidxu3-audio.dtsi | 6 -- >

Re: [PATCH 0/2] cpufreq/opp: rework regulator initialization

2019-02-11 Thread Sudeep Holla
On Mon, Feb 11, 2019 at 02:17:14PM +0530, Viresh Kumar wrote: > On 08-02-19, 17:41, Sudeep Holla wrote: > > Based on Rafael's suggestion, I cooked up something. See if this helps ? > > The policy to cpu dance can be removed and we can just run through the > > online cpumask I think. > > > >

Re: [PATCH] MAINTAINERS: rectify two issues in KEYS-TRUSTED entry

2019-02-11 Thread Jarkko Sakkinen
On Sun, Feb 10, 2019 at 07:57:55PM +0100, Lukas Bulwahn wrote: > Mimi Zohar used spaces instead of a tab when adding Jarkko Sakkinen as > further maintainer to the KEYS-TRUSTED section entry. Paul McKenney also > introduced a typo in Mimi Zohar's email address in the KEYS-TRUSTED section > entry.

Re: [PATCH 2/3] libertas_tf: don't defer firmware loading until start()

2019-02-11 Thread Steve deRosier
On Sun, Feb 10, 2019 at 11:52 AM Lubomir Rintel wrote: > > In order to be able to get a MAC address before we register the device > with ieee80211 we'll need to load the firmware way earlier. > > There seems to be one problem with this: the device seems to start > with radio enabled and starts

Re: [PATCH v2 12/15] pinctrl: milbeaut: Add Milbeaut M10V pinctrl

2019-02-11 Thread Masahiro Yamada
Hi Linus, On Fri, Feb 8, 2019 at 10:27 PM Linus Walleij wrote: > > Hi Sugaya, > > thank you for the patch! > > Since Masahiro has previously added the Uniphier pin control driver > I would like him to provide a review of this patch, if possible. I also > want to make sure that the hardware is

Re: [PATCH 3/3] libertas_tf: get the MAC address before registering the device

2019-02-11 Thread Steve deRosier
On Sun, Feb 10, 2019 at 11:52 AM Lubomir Rintel wrote: > > The start() callback is too late for this: NetworkManager would already > have seen the hardware, thinking 00:00:00:00:00:00 is its permanent > address. > > Signed-off-by: Lubomir Rintel > --- >

Re: [PATCH 1/2] signal: Always notice exiting tasks

2019-02-11 Thread Oleg Nesterov
sorry again for delay... On 02/07, Eric W. Biederman wrote: > > --- a/kernel/signal.c > +++ b/kernel/signal.c > @@ -2393,6 +2393,11 @@ bool get_signal(struct ksignal *ksig) > goto relock; > } > > + /* Has this task already been marked for death? */ > +

Re: [PATCH v2 1/4] perf-security: document perf_events/Perf resource control

2019-02-11 Thread Thomas Gleixner
On Mon, 11 Feb 2019, Alexey Budankov wrote: > On 11.02.2019 1:34, Thomas Gleixner wrote: > > On Thu, 7 Feb 2019, Alexey Budankov wrote: > > > > General note: Please stay in the 80 char limit for all of the text. > > Yes, sure. [PATCH v2 4/4] implements wrapping at 72 columns. So you provide

Re: [PATCH v2 2/4] dt-bindings: gnss: add mediatek binding

2019-02-11 Thread Loys Ollivier
On Mon 11 Feb 2019 at 08:33, Johan Hovold wrote: > On Mon, Jan 28, 2019 at 04:46:53PM +0100, Loys Ollivier wrote: >> >> On Fri 25 Jan 2019 at 09:07, Johan Hovold wrote: >> >> > On Thu, Jan 17, 2019 at 05:54:32PM +0100, Loys Ollivier wrote: >> >> Add binding for Mediatek-based GNSS receivers.

Re: [RFC PATCH 4/4] mm: Add merge page notifier

2019-02-11 Thread Michael S. Tsirkin
On Mon, Feb 11, 2019 at 08:30:03AM -0500, Nitesh Narayan Lal wrote: > > On 2/9/19 7:57 PM, Michael S. Tsirkin wrote: > > On Mon, Feb 04, 2019 at 10:15:58AM -0800, Alexander Duyck wrote: > >> From: Alexander Duyck > >> > >> Because the implementation was limiting itself to only providing hints on

tmpfs inode leakage when opening file with O_TMP_FILE

2019-02-11 Thread Matej Kupljen
Hi, it seems that when opening file on file system that is mounted on tmpfs with the O_TMPFILE flag and using linkat call after that, it uses 2 inodes instead of 1. This is simple test case: #include #include #include #include #include #include #include #include #include #define

[PATCH V4 0/3] x86/Hyper-V/IOMMU: Add Hyper-V IOMMU driver to support x2apic mode

2019-02-11 Thread lantianyu1986
From: Lan Tianyu On the bare metal, enabling X2APIC mode requires interrupt remapping function which helps to deliver irq to cpu with 32-bit APIC ID. Hyper-V doesn't provide interrupt remapping function so far and Hyper-V MSI protocol already supports to deliver interrupt to the CPU whose

[PATCH V4 2/3] HYPERV/IOMMU: Add Hyper-V stub IOMMU driver

2019-02-11 Thread lantianyu1986
From: Lan Tianyu On the bare metal, enabling X2APIC mode requires interrupt remapping function which helps to deliver irq to cpu with 32-bit APIC ID. Hyper-V doesn't provide interrupt remapping function so far and Hyper-V MSI protocol already supports to deliver interrupt to the CPU whose

[PATCH 4.20 001/352] drm/bufs: Fix Spectre v1 vulnerability

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit a37805098900a6e73a55b3a43b7d3bcd987bb3f4 ] idx can be indirectly controlled by user-space, hence leading to a potential exploitation of the Spectre variant 1 vulnerability. This

[PATCH 4.20 010/352] ath10k: fixup extended per sta tx statistics

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 539b44e70c5b4ad82d2c0c97a4dfb37523d891f6 ] I had a couple concerns with this code. First, we definitely need to set the error code if the kzalloc() fails. Secondly, I was worried

[PATCH 4.20 005/352] pinctrl: bcm2835: Use raw spinlock for RT compatibility

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 3c7b30f704b6f5e53eed6bf89cf2c8d1b38b02c0 ] The BCM2835 pinctrl driver acquires a spinlock in its ->irq_enable, ->irq_disable and ->irq_set_type callbacks. Spinlocks become sleeping

[PATCH V4 1/3] x86/Hyper-V: Set x2apic destination mode to physical when x2apic is available

2019-02-11 Thread lantianyu1986
From: Lan Tianyu Hyper-V doesn't provide irq remapping for IO-APIC. To enable x2apic, set x2apic destination mode to physcial mode when x2apic is available and Hyper-V IOMMU driver makes sure cpus assigned with IO-APIC irqs have 8-bit APIC id. Reviewed-by: Thomas Gleixner Signed-off-by: Lan

[PATCH 4.20 006/352] clk: sunxi-ng: h6: Set video PLLs limits

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit ed4433419d45bf8b58aef34c4450a27e1c8699e8 ] Video PLL factors can be set in a way that final PLL rate is outside stable range. H6 user manual specifically says that N factor should

[PATCH 4.20 007/352] ASoC: Intel: mrfld: fix uninitialized variable access

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 1539c7f23f256120f89f8b9ec53160790bce9ed2 ] Randconfig testing revealed a very old bug, with gcc-8: sound/soc/intel/atom/sst/sst_loader.c: In function 'sst_load_fw':

[PATCH 4.20 004/352] drm/vgem: Fix vgem_init to get drm device available.

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit d5c04dff24870ef07ce6453a3f4e1ffd9cf88d27 ] Modify vgem_init to take platform dev as parent in drm_dev_init. This will make drm device available at "/sys/devices/platform/vgem" in

[PATCH 4.20 022/352] ARM: 8808/1: kexec:offline panic_smp_self_stop CPU

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 82c08c3e7f171aa7f579b231d0abbc1d62e91974 ] In case panic() and panic() called at the same time on different CPUS. For example: CPU 0: panic() __crash_kexec

[PATCH 4.20 008/352] gpiolib: Fix possible use after free on label

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 18534df419041e6c1f4b41af56ee7d41f757815c ] gpiod_request_commit() copies the pointer to the label passed as an argument only to be used later. But there's a chance the caller could

[PATCH 4.20 000/352] 4.20.8-stable review

2019-02-11 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.20.8 release. There are 352 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed Feb 13 14:17:03 UTC 2019. Anything

[PATCH 4.20 012/352] gpu: ipu-v3: image-convert: Prevent race between run and unprepare

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 819bec35c8c9706185498c9222bd244e0781ad35 ] Prevent possible race by parallel threads between ipu_image_convert_run() and ipu_image_convert_unprepare(). This involves setting

[PATCH 4.20 025/352] x86/PCI: Fix Broadcom CNB20LE unintended sign extension (redux)

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 53bb565fc5439f2c8c57a786feea5946804aa3e9 ] In the expression "word1 << 16", word1 starts as u16, but is promoted to a signed int, then sign-extended to resource_size_t, which is

[PATCH 4.20 026/352] powerpc/pseries: add of_node_put() in dlpar_detach_node()

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 5b3f5c408d8cc59b87e47f1ab9803dbd006e4a91 ] The previous commit, "of: overlay: add missing of_node_get() in __of_attach_node_sysfs" added a missing of_node_get() to

<    1   2   3   4   5   6   7   8   9   10   >