[PATCH v4 4/9] proc/kcore: fix memory hotplug vs multiple opens race

2018-07-25 Thread Omar Sandoval
From: Omar Sandoval There's a theoretical race condition that will cause /proc/kcore to miss a memory hotplug event: CPU0 CPU1 // hotplug event 1 kcore_need_update = 1 open_kcore() open_kcore() kcore_update_ram()kcore_update_

Re: [PATCH v1 3/3] thermal: tsens: Fix negative temperature reporting

2018-07-25 Thread Matthias Kaehlcke
On Wed, Jul 18, 2018 at 12:55:03PM +0530, Amit Kucheria wrote: > The current code will always return 0x in case of negative > temperatures due to a bug in how the binary sign extension is being done. > > Use sign_extend32() instead. > > Signed-off-by: Amit Kucheria > --- > drivers/therm

Re: [PATCH 1/3] clk: s2mps11: Fix matching when built as module and DT node contains compatible

2018-07-25 Thread Stephen Boyd
Quoting Krzysztof Kozlowski (2018-07-25 08:55:15) > When driver is built as module and DT node contains clocks compatible > (e.g. "samsung,s2mps11-clk"), the module will not be autoloaded because > module aliases won't match. > > The modalias from uevent: of:NclocksTCsamsung,s2mps11-clk > The moda

Re: [PATCH] fsi: master-ast-cf: Fix memory leak

2018-07-25 Thread Benjamin Herrenschmidt
On Wed, 2018-07-25 at 08:38 -0500, Gustavo A. R. Silva wrote: > In case memory resources for *fw* were allocated, release them > before return. > > Addresses-Coverity-ID: 1472044 ("Resource leak") > Fixes: 6a794a27daca ("fsi: master-ast-cf: Add new FSI master using Aspeed > ColdFire") > Signed-of

Re: [PATCH] reset: hisilicon: fix potential NULL pointer dereference

2018-07-25 Thread Stephen Boyd
Quoting Gustavo A. R. Silva (2018-07-18 18:58:45) > There is a potential execution path in which function > platform_get_resource() returns NULL. If this happens, > we will end up having a NULL pointer dereference. > > Fix this by adding asanity check in order to avoid a > NULL pointer dereference

Re: [PATCH 15/15] clk: pistachio: Fix wrong SDHost card speed

2018-07-25 Thread Stephen Boyd
Quoting Andreas Färber (2018-07-22 14:20:10) > From: Govindraj Raja > > The SDHost currently clocks the card 4x slower than it > should do, because there is a fixed divide by 4 in the > sdhost wrapper that is not present in the clock tree. > To model this, add a fixed divide by 4 clock node in >

Re: [PATCH] clk: tegra: probe deferral error reporting

2018-07-25 Thread Peter Geis
On 7/25/2018 7:24 PM, Stephen Boyd wrote: Quoting Marcel Ziswiler (2018-07-20 00:54:22) From: Marcel Ziswiler Actually report the error code from devm_regulator_get() which may as well just be a probe deferral. Signed-off-by: Marcel Ziswiler --- drivers/clk/tegra/clk-dfll.c | 5 +++-- 1

Re: [PATCH v7 3/5] clk: actions: Add S700 SoC clock support

2018-07-25 Thread Stephen Boyd
Quoting Saravanan Sekar (2018-07-19 02:06:47) > Add Actions Semi S700 SoC clock support > > Signed-off-by: Parthiban Nallathambi > Signed-off-by: Saravanan Sekar > Reviewed-by: Manivannan Sadhasivam > --- Applied to clk-next

Re: [PATCH v7 1/5] clk: actions: Add missing REGMAP_MMIO dependency

2018-07-25 Thread Stephen Boyd
Quoting Saravanan Sekar (2018-07-19 02:06:45) > Add REGMAP_MMIO as dependency to avoid undefined > reference to regmap symbols. > > Fixes: d85d20053e19 ("clk: actions: Add S900 SoC clock support") > Signed-off-by: Saravanan Sekar > Reviewed-by: Andreas Färber > Reviewed-by: Manivannan Sadhasivam

Re: [PATCH v7 2/5] dt-bindings: clock: Add S700 support for Actions Semi Soc's

2018-07-25 Thread Stephen Boyd
Quoting Saravanan Sekar (2018-07-19 02:06:46) > Add clock bindings constants for action S700 > Maintain common clock dt-bindings for Actions Semi SoC's > S700 and S900. > > Signed-off-by: Parthiban Nallathambi > Signed-off-by: Saravanan Sekar > Reviewed-by: Rob Herring > --- Applied to clk-nex

Re: [PATCH] input: pxrc - do not store USB device in private struct

2018-07-25 Thread Dmitry Torokhov
On Tue, Jul 24, 2018 at 08:09:59PM +0200, Marcus Folkesson wrote: > Hello Dmitry, > > On Tue, Jul 24, 2018 at 02:38:04AM +, Dmitry Torokhov wrote: > > Hi Marcus, > > > > On Mon, Jul 16, 2018 at 04:40:14PM +0200, Marcus Folkesson wrote: > > > The USB device is only needed during setup, so put

Re: linux-next: Signed-off-by missing for commit in the xarray tree

2018-07-25 Thread Matthew Wilcox
On Thu, Jul 26, 2018 at 07:28:14AM +1000, Stephen Rothwell wrote: > Hi Matthew, > > Commits > > 890e537e2b42 ("filesystem-dax: Introduce dax_lock_mapping_entry()") > aaf149902c79 ("filesystem-dax: Set page->index") > > are missing a Signed-off-by from their committers. Oh, hah. I assume th

[PATCH] mm/vmscan: fix page_freeze_refs in comment.

2018-07-25 Thread Jiang Biao
page_freeze_refs has already been relplaced by page_ref_freeze, but it is not modified in the comment. Signed-off-by: Jiang Biao --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 03822f8..d29e207 100644 --- a/mm/vmscan.c +++ b/mm/

Re: [PATCH v3 5/8] proc/kcore: hold lock during read

2018-07-25 Thread Omar Sandoval
On Wed, Jul 25, 2018 at 12:11:26AM +0900, Tetsuo Handa wrote: > On 2018/07/19 7:58, Omar Sandoval wrote: > > From: Omar Sandoval > > > > Now that we're using an rwsem, we can hold it during the entirety of > > read_kcore() and have a common return path. This is preparation for the > > next change

Re: [PATCH] x86/bugs: protect against userspace-userspace spectreRSB

2018-07-25 Thread Josh Poimboeuf
On Thu, Jul 26, 2018 at 01:11:01AM +0200, Jiri Kosina wrote: > On Wed, 25 Jul 2018, Linus Torvalds wrote: > > > > Mitigate userspace-userspace attacks by always unconditionally filling > > > RSB on > > > context switch when generic spectrev2 mitigation has been enabled. > > > > Shouldn't this al

Re: [PATCH] clk: uniphier: add clock frequency support for SPI

2018-07-25 Thread Stephen Boyd
Quoting Keiji Hayashibara (2018-07-18 22:23:48) > From: Kunihiko Hayashi > > Add clock control for SPI controller on UniPhier SoCs. > > Signed-off-by: Kunihiko Hayashi > Signed-off-by: Masahiro Yamada > --- Signed-off-by chain is a little weird, but I'll go with it. Applied to clk-next

Re: [PATCH] thermal: qcom-spmi: Delete unused field 'prev_stage'

2018-07-25 Thread Doug Anderson
Hi, On Tue, Jul 24, 2018 at 4:56 PM, Matthias Kaehlcke wrote: > The field 'prev_stage' in struct qpnp_tm_chip is not used, remove it. > > Signed-off-by: Matthias Kaehlcke > --- > drivers/thermal/qcom-spmi-temp-alarm.c | 1 - > 1 file changed, 1 deletion(-) Reviewed-by: Douglas Anderson

Re: [PATCH] clk: tegra: probe deferral error reporting

2018-07-25 Thread Stephen Boyd
Quoting Marcel Ziswiler (2018-07-20 00:54:22) > From: Marcel Ziswiler > > Actually report the error code from devm_regulator_get() which may as > well just be a probe deferral. > > Signed-off-by: Marcel Ziswiler > > --- > > drivers/clk/tegra/clk-dfll.c | 5 +++-- > 1 file changed, 3 insertio

Re: [PATCH] dt-bindings: thermal: qcom-spmi-temp-alarm: Improve thermal zone in example

2018-07-25 Thread Doug Anderson
Hi, On Tue, Jul 24, 2018 at 4:50 PM, Matthias Kaehlcke wrote: > The current example for a thermal zone isn't very useful as reference > since it would result in a hardware shutdown at 145°C, instead of > allowing the system to try to shutdown gracefully. Without an ADC > channel a maximum of two

Re: [PATCHv3 2/2] mtd: m25p80: restore the status of SPI flash when exiting

2018-07-25 Thread Brian Norris
Hi, On Wed, Jul 25, 2018 at 07:48:21AM +1000, NeilBrown wrote: > On Tue, Jul 24 2018, Brian Norris wrote: > > On Tue, Jul 24, 2018 at 11:51:49AM +1000, NeilBrown wrote: > >> On Tue, Jul 24 2018, Boris Brezillon wrote: > >> > On Tue, 24 Jul 2018 08:46:33 +1000 > >> > NeilBrown wrote: > >> >> One p

Re: [PATCH 1/2] clk: uniphier: add NAND 200MHz clock

2018-07-25 Thread Stephen Boyd
Quoting Masahiro Yamada (2018-07-20 01:37:35) > The Denali NAND controller IP needs three clocks: > > - clk: controller core clock > > - clk_x: bus interface clock > > - ecc_clk: clock at which ECC circuitry is run > > Currently, only the first one (50MHz) is provided. The rest of the > two

Re: [PATCH 2/2] clk: uniphier: add more USB3 PHY clocks

2018-07-25 Thread Stephen Boyd
Quoting Masahiro Yamada (2018-07-20 01:37:36) > Add USB3 PHY clocks where missing. Use fixed-factor clocks for those > without gating. > > For clarification, prefix clock names with 'ss' or 'hs'. > > Signed-off-by: Masahiro Yamada > --- Applied to clk-next

Re: [PATCH] dt-bindings: thermal: qcom-spmi-temp-alarm: Fix documentation of 'reg'

2018-07-25 Thread Doug Anderson
Hi, On Tue, Jul 24, 2018 at 4:51 PM, Matthias Kaehlcke wrote: > The documentation claims that the 'reg' property consists of two values, > the SPMI address and the length of the controller's registers. However > the SPMI bus to which it is added specifies "#size-cells = <0>;". Remove > the contro

Re: [PATCH v5 3/3] arm64: dts: qcom: pm8998: Add pm8998 thermal zone

2018-07-25 Thread Doug Anderson
Hi, On Tue, Jul 24, 2018 at 4:46 PM, Matthias Kaehlcke wrote: > The thermal zone uses spmi-temp-alarm as sensor, the trip points > correspond to the PMIC thermal stages 1 and 2. The critical trip > point at 125°C disables the partial PMIC shutdown at stage 2. > > Without an IIO input the sensor o

Re: [PATCH v1 09/10] Input: atmel_mxt_ts - tool type is ignored when slot is closed

2018-07-25 Thread Dmitry Torokhov
On Wed, Jul 25, 2018 at 03:26:41PM +1000, Peter Hutterer wrote: > On Tue, Jul 24, 2018 at 10:23:27AM +0200, Benjamin Tissoires wrote: > > On Tue, Jul 24, 2018 at 12:34 AM Dmitry Torokhov > > wrote: > > > > > > On Fri, Jul 20, 2018 at 10:51:21PM +0100, Nick Dyer wrote: > > > > From: Nick Dyer > >

Re: [PATCH v5 1/3] thermal: qcom-spmi: Use PMIC thermal stage 2 for critical trip points

2018-07-25 Thread Doug Anderson
Hi, On Tue, Jul 24, 2018 at 4:46 PM, Matthias Kaehlcke wrote: > +static int qpnp_tm_update_critical_trip_temp(struct qpnp_tm_chip *chip, > +int temp) > +{ > + u8 reg; > + bool disable_s2_shutdown = false; > + int ret; > + > + WAR

Re: linux-next: build failure after merge of the akpm-current tree

2018-07-25 Thread Omar Sandoval
On Mon, Jul 23, 2018 at 07:42:31PM +1000, Stephen Rothwell wrote: > Hi Andrew, > > After merging the akpm tree, today's linux-next build (sparc (32 bit) > defconfig) failed like this: > > In file included from kernel/crash_core.c:9:0: > kernel/crash_core.c: In function 'crash_save_vmcoreinfo_init

[PATCH v1] checkpatch: check for #if 0/#if 1

2018-07-25 Thread Prakruthi Deepak Heragu
The #if 0 or #if 1 is used to toggle features. Warn if #if 0 or #if 1 is present and suggest that they can be removed. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Prakruthi Deepak Heragu --- Changes in v1: - Rephrase the warning message to fit in a single line without 80 column limit

Re: [PATCH] x86/bugs: protect against userspace-userspace spectreRSB

2018-07-25 Thread Jiri Kosina
On Wed, 25 Jul 2018, Linus Torvalds wrote: > > Mitigate userspace-userspace attacks by always unconditionally filling RSB > > on > > context switch when generic spectrev2 mitigation has been enabled. > > Shouldn't this also do something like > > x86_spec_ctrl_base |= x86_spec_ctrl_mask & S

[PATCH] PCI: Equalize hotplug memory for non/occupied slots

2018-07-25 Thread Jon Derrick
Currently, a hotplug bridge will be given hpmemsize additional memory if available, in order to satisfy any future hotplug allocation requirements. These calculations don't consider the current memory size of the hotplug bridge/slot, so hotplug bridges/slots which have downstream devices will get

Re: [PATCH v1 2/3] thermal: tsens: switch from of_iomap() to devm_ioremap_resource()

2018-07-25 Thread Matthias Kaehlcke
On Wed, Jul 18, 2018 at 12:55:02PM +0530, Amit Kucheria wrote: > devm_ioremap_resources() automatically requests resources (so that the I/O > region shows up in /proc/iomem) and devm_ wrappers do better error handling > and unmapping of the I/O region when needed. > > Signed-off-by: Amit Kucheria

Re: [PATCH] tracing: Fix double free of event_trigger_data

2018-07-25 Thread Masami Hiramatsu
On Wed, 25 Jul 2018 15:53:21 -0400 Steven Rostedt wrote: > On Wed, 25 Jul 2018 15:29:04 -0400 > Steven Rostedt wrote: > > > Nope, this doesn't work. It's a little more complex than the other one. > > I'll just leave it, and fix the reg code for 4.19. > > I take this back. Looks like it just ne

Re: [PATCH v1 1/3] thermal: tsens: Rename variable

2018-07-25 Thread Matthias Kaehlcke
On Wed, Jul 18, 2018 at 12:55:01PM +0530, Amit Kucheria wrote: > We're actually reading the temperature from the status register. Fix the > variable name to reflect that. > > Signed-off-by: Amit Kucheria > --- > drivers/thermal/qcom/tsens-common.c | 6 +++--- > drivers/thermal/qcom/tsens-v2.c

Re: [PATCH 1/1] rpmsg: virtio_rpmsg_bus: Fix rpmsg_create_channel memory leak

2018-07-25 Thread Suman Anna
Hi Loic, On 07/25/2018 04:08 PM, Loic Pallardy wrote: > In case of rpmsg_register_device() failure, vch previously > allocated must be free. > Isn't this already handled through the virtio_rpmsg_release_device() callback as part of the put_device() in rpmsg_register_device() failure. regards Su

RE: [PATCH] clk: Add functions to get optional clocks

2018-07-25 Thread Stephen Boyd
Quoting Phil Edworthy (2018-07-18 06:56:26) > Hi Russell, > > On 18 July 2018 14:19, Geert Uytterhoeven wrote: > > On Wed, Jul 18, 2018 at 3:02 PM Russell King - ARM Linux wrote: > > > On Wed, Jul 18, 2018 at 01:57:38PM +0100, Phil Edworthy wrote: > > > > Behaves the same as (devm_)clk_get except

Re: [PATCH 1/1] rpmsg: virtio_rpmsg_bus: Fix rpmsg_remove() release order

2018-07-25 Thread Suman Anna
Hi Loic, On 07/25/2018 04:07 PM, Loic Pallardy wrote: > In rpmsg_remove() procedure, children are removed then Name > Service announcement endpoint is destroyed and device released. > > Issue with current implementation is if a NS announcement > creation request is ongoing (received before virtio

[PATCH v2 3/3] pinctrl: msm: Configure interrupts as input and gpio mode

2018-07-25 Thread Stephen Boyd
When requesting a gpio as an interrupt, we should make sure to mux the pin as the GPIO function and configure it to be an input so that various functions or output signals don't affect the interrupt state of the pin. So far, we've relied on pinmux configurations in DT to handle this, but let's expl

[PATCH v2 1/3] pinctrl: msm: Really mask level interrupts to prevent latching

2018-07-25 Thread Stephen Boyd
The interrupt controller hardware in this pin controller has two status enable bits. The first "normal" status enable bit enables or disables the summary interrupt line being raised when a gpio interrupt triggers and the "raw" status enable bit allows or prevents the hardware from latching an inter

[PATCH v2 2/3] pinctrl: msm: Mux out gpio function with gpio_request()

2018-07-25 Thread Stephen Boyd
We rely on devices to use pinmuxing configurations in DT to select the GPIO function (function 0) if they're going to use the gpio in GPIO mode. Let's simplify things for driver authors by implementing gpio_request_enable() for this pinctrl driver to mux out the GPIO function when the gpio is use f

[PATCH v2 0/3] pinctrl: msm interrupt and muxing fixes

2018-07-25 Thread Stephen Boyd
Here's a collection of pinctrl fixes for the qcom driver that make things a little smoother for DT writers while also fixing a problem seen with level triggered interrupts. The first patch fixes an issue where we always see one extra level triggered interrupt when the interrupt triggers. The secon

Re: [PATCH 5/7] x86/vdso: Add vDSO functions for direct store instructions

2018-07-25 Thread Fenghua Yu
On Mon, Jul 23, 2018 at 10:27:34PM -0700, Andy Lutomirski wrote: > On Mon, Jul 23, 2018 at 8:42 PM, Fenghua Yu wrote: > > On Mon, Jul 23, 2018 at 06:48:00PM -0700, Andy Lutomirski wrote: > >> On 07/23/2018 05:55 AM, Fenghua Yu wrote: > >> >The instructions can be implemented in intrinsic functions

[PATCH 03/10] staging:rtl8192u: Rename bit definition ISR_TxBcnOk - Style

2018-07-25 Thread John Whitmore
Rename the bit definition ISR_TxBcnOk to ISR_TX_BCN_OK. This change clears the checkpatch issue with CamelCase naming. The change is a coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/r819xU_cmdpkt.c | 2 +- drivers/sta

[PATCH 05/10] staging:rtl8192u: Rename ISR_TxBcnErr bit definition - Style

2018-07-25 Thread John Whitmore
Rename the bit definition ISR_TxBcnErr to ISR_TX_BCN_ERR. This change clears the checkpatch issue with CamelCase naming. The change is purely a coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/r819xU_cmdpkt.c | 2 +- dr

OOM in secondary cgroup leading to networking lose

2018-07-25 Thread Àbéjídé Àyodélé
Hi friends, We observed a sequence of events starting from an OOM in a secondary cgroup which ends up in the bond interface being down for a period of up to 12 seconds. Below is some piece of dmesg about when the bond interface went down: [Wed Jul 25 19:20:45 2018] Call Trace: [Wed Jul 25 19:20:4

[PATCH 07/10] staging:rtl8192u: Remove multiple blank lines - Style

2018-07-25 Thread John Whitmore
Remove multiple blank lines, raise a checkpatch issue. This is purely a coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/r819xU_cmdpkt.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/rtl8192u/r81

[PATCH 08/10] staging:rtl8192u: Correct spelling in comments - style

2018-07-25 Thread John Whitmore
Correct the spelling of a number of comments, which caused a checkpatch issue. This is purely a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/r819xU_cmdpkt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deleti

[PATCH 06/10] staging:rtl8192u: Rename ISR_BcnTimerIntr - Style

2018-07-25 Thread John Whitmore
Rename the bit definition ISR_BcnTimerIntr to ISR_BCN_TIMER_INTR. This change clears the checkpatch issue with CamelCase naming. The change is purely a style change and should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/r819xU_cmdpkt.c | 2 +- dri

[PATCH 00/10] staging:rtl8192u: Coding style - r819xU_cmdpkt.h

2018-07-25 Thread John Whitmore
This series of patches contain purely simple coding style changes. I considered renaming the struct cmpk_set_cfg_t as it is never actually used. Following its definition however it is used in a #define: #define cmpk_query_cfg_tcmpk_set_cfg_t So whilst the struct cmpk_set_cfg_t is

[PATCH 09/10] staging:rtl8192u: Remove typedef of struct cmpk_intr_sta_t - Style

2018-07-25 Thread John Whitmore
Remove the typedef of struct cmpk_intr_sta_t. This clears the checkpatch issue with creating new types in code. The change is purely a coding style change and should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/r819xU_cmdpkt.c | 6 +++--- dr

[PATCH 04/10] staging:rtl8192u: Removed unused CMPK_RX_DBG_MSG_SIZE - Style

2018-07-25 Thread John Whitmore
Remove the unused macro definition CMPK_RX_DBG_MSG_SIZE. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/r819xU_cmdpkt.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r819

[PATCH 10/10] staging:rtl8192u: Remove typedef from struct cmpk_set_cfg_t - Style

2018-07-25 Thread John Whitmore
Remove the typedef from struct cmpk_set_cfg_t. This change clears the checkpatch issue with defining new types. The change is purely a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/r819xU_cmdpkt.c | 2 +- driv

[PATCH 01/10] staging:rtl8192u: Remove typedef of struct cmpk_txfb_t - Style

2018-07-25 Thread John Whitmore
Remove the typedef of the structure cmpk_txfb_t. This clears the checkpatch issue with defining new types. This change is purely a coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/r819xU_cmdpkt.c | 8 drivers/s

[PATCH 02/10] staging:rtl8192u: Remove unused CMPK_TX_SET_CONFIG_SIZE - Style

2018-07-25 Thread John Whitmore
Remove the unused macro CMPK_TX_SET_CONFIG_SIZE. This is a coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/r819xU_cmdpkt.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r819xU_cmdpkt.h b/

Re: [PATCH v2 1/1] remoteproc: correct rproc_free_vring() to avoid invalid kernel paging

2018-07-25 Thread Suman Anna
Hi Loic, On 07/06/2018 02:46 AM, Loic Pallardy wrote: > If rproc_start() failed, rproc_resource_cleanup() is called to clean > debugfs entries, then associated iommu mappings, carveouts and vdev. > Issue occurs when rproc_free_vring() is trying to reset vring resource > table entry. > At this time

Re: [PATCH 10/14] arm64: dts: meson-axg: add linein codec

2018-07-25 Thread jbrunet
On Wed, 2018-07-25 at 21:18 +0200, Martin Blumenstingl wrote: > Hi Jerome, > > On Tue, Jul 24, 2018 at 3:09 PM Jerome Brunet wrote: > > > > Add the es7241 analog to digital converter which is fed by the > > lienin jack of the s400 > > > > Signed-off-by: Jerome Brunet > > --- > > arch/arm64/bo

Re: [PATCHv3 0/2] Stackleak for arm64

2018-07-25 Thread Laura Abbott
On 07/25/2018 04:49 AM, Will Deacon wrote: Hi Laura, On Tue, Jul 24, 2018 at 05:38:07PM +0100, Will Deacon wrote: On Fri, Jul 20, 2018 at 02:41:52PM -0700, Laura Abbott wrote: This is the version of stackleak for arm64, hopefully ready for queueing Thanks. I'll push these into linux-next tom

[PATCH v3 2/5] mm: access zone->node via zone_to_nid() and zone_set_nid()

2018-07-25 Thread osalvador
From: Pavel Tatashin zone->node is configured only when CONFIG_NUMA=y, so it is a good idea to have inline functions to access this field in order to avoid ifdef's in c files. Signed-off-by: Pavel Tatashin Signed-off-by: Oscar Salvador Reviewed-by: Oscar Salvador --- include/linux/mm.h |

[PATCH v3 5/5] mm/page_alloc: Introduce memhotplug version of free_area_init_core

2018-07-25 Thread osalvador
From: Oscar Salvador Currently, we call free_area_init_node() from the memhotplug path. In there, we set some pgdat's fields, and call calculate_node_totalpages(). calculate_node_totalpages() calculates the # of pages the node has. Since the node is either new, or we are re-using it, the zones b

[PATCH v3 1/5] mm/page_alloc: Move ifdefery out of free_area_init_core

2018-07-25 Thread osalvador
From: Oscar Salvador Moving the #ifdefs out of the function makes it easier to follow. Signed-off-by: Oscar Salvador Acked-by: Michal Hocko Reviewed-by: Pavel Tatashin --- mm/page_alloc.c | 50 +- 1 file changed, 37 insertions(+), 13 deletions(

[PATCH v3 0/5] Refactor free_area_init_core and add free_area_init_core_hotplug

2018-07-25 Thread osalvador
From: Oscar Salvador This patchset does three things: 1) Clean ups/refactor free_area_init_core/free_area_init_node by moving the ifdefery out of the functions. 2) Move the pgdat/zone initialization in free_area_init_core to its own function. 3) Introduce free_area_init_core_hotplug,

[PATCH v3 4/5] mm/page_alloc: Move initialization of node and zones to an own function

2018-07-25 Thread osalvador
From: Oscar Salvador Currently, whenever a new node is created/re-used from the memhotplug path, we call free_area_init_node()->free_area_init_core(). But there is some code that we do not really need to run when we are coming from such path. free_area_init_core() performs the following actions:

Re: [PATCH] serial: core: stop passing NULL in uart_resume_port

2018-07-25 Thread Andy Shevchenko
On Wed, Jul 25, 2018 at 1:04 PM, Chen Hu wrote: > We found the baud rate is changed after S3 on some Intel Broxton > platforms. The baud rate should be restored during resume. However, some > set_termios() callback such as dw8250_set_termios() for DesignWare 8250 > will skip setting if old termios

[PATCH v3 3/5] mm/page_alloc: Inline function to handle CONFIG_DEFERRED_STRUCT_PAGE_INIT

2018-07-25 Thread osalvador
From: Oscar Salvador Let us move the code between CONFIG_DEFERRED_STRUCT_PAGE_INIT to an inline function. Not having an ifdef in the function makes the code more readable. Signed-off-by: Oscar Salvador Acked-by: Michal Hocko --- mm/page_alloc.c | 25 - 1 file changed,

Re: [PATCH v1 1/4] igb: Remove unnecessary include of

2018-07-25 Thread Jeff Kirsher
On Wed, 2018-07-25 at 14:52 -0500, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > The igb driver doesn't need anything provided by pci-aspm.h, so > remove > the unnecessary include of it. > > Signed-off-by: Bjorn Helgaas Acked-by: Jeff Kirsher I am fine with you picking up this change. > --

Re: [PATCH 1/6] RISC-V: simplify software interrupt / IPI code

2018-07-25 Thread Palmer Dabbelt
On Wed, 25 Jul 2018 02:36:44 PDT (-0700), Christoph Hellwig wrote: Rename handle_ipi to riscv_software_interrupt, drop the unused return value and provide a stub for the !SMP build. This allows simplifying the upcoming interrupt controller driver by not providing a wrapper for it. Signed-off-by

Re: [PATCH 2/6] RISC-V: remove INTERRUPT_CAUSE_* defines from asm/irq.h

2018-07-25 Thread Palmer Dabbelt
On Wed, 25 Jul 2018 02:36:45 PDT (-0700), Christoph Hellwig wrote: These are only of use to the local irq controller driver, so add them in that driver implementation instead, which will be submitted soon. Signed-off-by: Christoph Hellwig --- arch/riscv/include/asm/irq.h | 4 1 file chang

Re: [PATCH v2 0/6] kaddr and pfn can be NULL to ->direct_access()

2018-07-25 Thread Dave Jiang
Pretty straight forward series. Huaisheng, I can apply the whole series to libnvdimm if we can get ack's from maintainer of dcssblk and dm-writecache for the respective bits. On 07/25/2018 09:28 AM, Huaisheng Ye wrote: > From: Huaisheng Ye > > Changes since v1 [1]: > * Involve the previous patch

Re: [PATCH -next] fs/epoll: simply CONFIG_NET_RX_BUSY_POLL ifdefery

2018-07-25 Thread Andrew Morton
On Wed, 25 Jul 2018 13:06:33 -0700 Davidlohr Bueso wrote: > >> +#else > >> +#define ep_busy_loop(ep, nonblock)do { } while (0) > >> +#define ep_reset_busy_poll_napi_id(ep)do { } while (0) > >> +#define ep_set_busy_poll_napi_id(epi) do { } while (0) > >> + >

Re: [PATCH 2/3] mm: calculate deferred pages after skipping mirrored memory

2018-07-25 Thread Andrew Morton
On Tue, 24 Jul 2018 21:46:25 -0400 Pavel Tatashin wrote: > > > +static inline bool defer_init(int nid, unsigned long pfn, unsigned long > > > end_pfn) > > > { > > > + static unsigned long prev_end_pfn, nr_initialised; > > > > So answer me quick, what happens with a static variable in an in

Re: Droid 4: suspend to RAM?

2018-07-25 Thread Pavel Machek
HI! > > > > I have two big problems with droid 4. #1 is that it lost 2 SMS.. and I > > have no idea why. Second is power consumption -- it seems to be rather > > Depend how do you set the SMS buffering using CNMI if I remember. Modem > has 1024bytes of memory most of the time that can buffer more

Re: [PATCH v6 4/4] clk: tegra: make sdmmc2 and sdmmc4 as sdmmc clocks

2018-07-25 Thread Stephen Boyd
Quoting Aapo Vienamo (2018-07-12 04:53:02) > From: Peter De-Schrijver > > These clocks have low jitter paths to certain parents. To model these > correctly, use the sdmmc mux divider clock type. > > Signed-off-by: Peter De-Schrijver > Signed-off-by: Aapo Vienamo > Acked-by: Peter De Schrijver

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

2018-07-25 Thread Stephen Rothwell
Hi Matthew, Commits 890e537e2b42 ("filesystem-dax: Introduce dax_lock_mapping_entry()") aaf149902c79 ("filesystem-dax: Set page->index") are missing a Signed-off-by from their committers. -- Cheers, Stephen Rothwell pgpa_I_pOTy3F.pgp Description: OpenPGP digital signature

Re: [PATCH v6 3/4] clk: tegra: Add sdmmc mux divider clock

2018-07-25 Thread Stephen Boyd
Quoting Aapo Vienamo (2018-07-12 04:53:01) > From: Peter De-Schrijver > > Add a clock type to model the sdmmc switch divider clocks which have paths > to source clocks bypassing the divider (Low Jitter paths). These > are handled by selecting the lj path when the divider is 1 (ie the > rate is th

Re: [PATCH 00/14] arm64: dts: meson-axg: add audio support

2018-07-25 Thread Martin Blumenstingl
Hi Jerome, On Wed, Jul 25, 2018 at 11:19 PM wrote: > > On Wed, 2018-07-25 at 21:11 +0200, Martin Blumenstingl wrote: > > nit-pick: one patch uses "arm64: dts: meson-axg: s400" in the subject > > while other patches that are touching the s400 board aren't > > if you have to re-send this series: ca

Re: RISC-V irqchip drivers

2018-07-25 Thread Palmer Dabbelt
On Wed, 25 Jul 2018 02:36:43 PDT (-0700), Christoph Hellwig wrote: The RISC-V ISA mandantes the presence of a simple, per-hart (hardware thread) interrupt controller availiable to supervisor mode. In addition the RISC-V specification contains the definition of a programmable interrupt controller

Re: [PATCH v4 1/3] lib: add crc64 calculation routines

2018-07-25 Thread Andrew Morton
On Wed, 25 Jul 2018 10:37:23 +0800 Coly Li wrote: > > IIUC this series in Andrew's quilt. So, it's still possible to replace > > it with better one, I suppose. Ask Andrew (at least I remember recent > > case where he just replaced series by fixed one). > > Hi Andrew, > > It seems there should b

Re: 4.17.x won't boot due to "x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G"

2018-07-25 Thread Kirill A. Shutemov
On Wed, Jul 25, 2018 at 05:26:02PM +, Dmitry Malkin wrote: > there may be some other reasons which may cause undefined behavior (reboot > for example): > > in arch/x86/boot/compressed/pgtable_64.c in function paging_prepare(): > > 1. structure "paging_config" allocated on stack without settin

Re: [PATCH 00/14] arm64: dts: meson-axg: add audio support

2018-07-25 Thread jbrunet
On Wed, 2018-07-25 at 21:11 +0200, Martin Blumenstingl wrote: > nit-pick: one patch uses "arm64: dts: meson-axg: s400" in the subject > while other patches that are touching the s400 board aren't > if you have to re-send this series: can you please use the "arm64: > dts: meson-axg: s400:" prefix fo

Re: [PATCH] [PATCH] mm: disable preemption before swapcache_free

2018-07-25 Thread Andrew Morton
On Wed, 25 Jul 2018 14:37:58 +0800 "zhaowu...@wingtech.com" wrote: > From: zhaowuyun > > issue is that there are two processes A and B, A is kworker/u16:8 > normal priority, B is AudioTrack, RT priority, they are on the > same CPU 3. > > The task A preempted by task B in the moment > after

Re: [PATCH] tracing: do not leak kernel addresses

2018-07-25 Thread Nick Desaulniers
On Wed, Jul 25, 2018 at 1:23 PM Mark Salyzyn wrote: > > From: Nick Desaulniers > Signed-off-by: Mark Salyzyn > Thanks for sending. You should take credit/authorship, and add my Reviewed-by: Nick Desaulniers -- Thanks, ~Nick Desaulniers

Re: [Intel-wired-lan] [PATCH v1 1/4] igb: Remove unnecessary include of

2018-07-25 Thread Alexander Duyck
On Wed, Jul 25, 2018 at 12:52 PM, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > The igb driver doesn't need anything provided by pci-aspm.h, so remove > the unnecessary include of it. > > Signed-off-by: Bjorn Helgaas Looks good to me. Acked-by: Alexander Duyck > --- > drivers/net/ethernet/

Re: [PATCH 14/15] ASoC: meson: add axg sound card DT binding documentation

2018-07-25 Thread jbrunet
On Wed, 2018-07-25 at 13:06 -0600, Rob Herring wrote: > On Tue, Jul 17, 2018 at 05:36:41PM +0200, Jerome Brunet wrote: > > Add the DT binding documentation for axg sound card > > I see Mark already applied, but... It's very recent, no DT using it yet. I can easily have your 3 comments fixed if i

Re: [PATCH v14 00/74] Convert page cache to XArray

2018-07-25 Thread Ross Zwisler
On Wed, Jul 25, 2018 at 02:03:23PM -0700, Matthew Wilcox wrote: > On Wed, Jun 27, 2018 at 01:44:38PM -0600, Ross Zwisler wrote: > > On Wed, Jun 27, 2018 at 04:05:29AM -0700, Matthew Wilcox wrote: > > > On Tue, Jun 19, 2018 at 10:16:38AM -0700, Matthew Wilcox wrote: > > > > I think I see a bug. No

[PATCH v2 bpf-next] samples/bpf: xdpsock: order memory on AArch64

2018-07-25 Thread Brian Brooks
Define u_smp_rmb() and u_smp_wmb() to respective barrier instructions. This ensures the processor will order accesses to queue indices against accesses to queue ring entries. Signed-off-by: Brian Brooks --- samples/bpf/xdpsock_user.c | 5 + 1 file changed, 5 insertions(+) diff --git a/sampl

[PATCH 1/1] rpmsg: virtio_rpmsg_bus: Fix rpmsg_create_channel memory leak

2018-07-25 Thread Loic Pallardy
In case of rpmsg_register_device() failure, vch previously allocated must be free. fixes: 6eed598a0491 ("rpmsg: Split off generic tail of create_channel()") Signed-off-by: Loic Pallardy --- drivers/rpmsg/virtio_rpmsg_bus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/d

[PATCH 1/1] rpmsg: virtio_rpmsg_bus: Fix rpmsg_remove() release order

2018-07-25 Thread Loic Pallardy
In rpmsg_remove() procedure, children are removed then Name Service announcement endpoint is destroyed and device released. Issue with current implementation is if a NS announcement creation request is ongoing (received before virtio reset), child device could be created after children removing. I

Re: [PATCH v14 00/74] Convert page cache to XArray

2018-07-25 Thread Matthew Wilcox
On Wed, Jun 27, 2018 at 01:44:38PM -0600, Ross Zwisler wrote: > On Wed, Jun 27, 2018 at 04:05:29AM -0700, Matthew Wilcox wrote: > > On Tue, Jun 19, 2018 at 10:16:38AM -0700, Matthew Wilcox wrote: > > > I think I see a bug. No idea if it's the one you're hitting ;-) > > > > > > I had been intendin

Re: [PATCH] hinic: Link the logical network device to the pci device in sysfs

2018-07-25 Thread David Miller
From: dann frazier Date: Mon, 23 Jul 2018 16:55:40 -0600 > Otherwise interfaces get exposed under /sys/devices/virtual, which > doesn't give udev the context it needs for PCI-based predictable > interface names. > > Signed-off-by: dann frazier Applied, thank you.

Re: [PATCH v1 0/4] PCI: Remove unnecessary includes of

2018-07-25 Thread Bjorn Helgaas
On Wed, Jul 25, 2018 at 01:33:23PM -0700, Sinan Kaya wrote: > On 7/25/2018 12:52 PM, Bjorn Helgaas wrote: > > emove includes of from files that don't need > > it. I'll apply all these via the PCI tree unless there's objection. > > > > --- > > > > Bjorn Helgaas (4): > >igb: Remove unnece

Re: [PATCH v1 3/4] iwlwifi: Remove unnecessary include of

2018-07-25 Thread Luciano Coelho
On Wed, 2018-07-25 at 14:52 -0500, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > This part of the iwlwifi driver doesn't need anything provided by > pci-aspm.h, so remove the unnecessary include of it. > > Signed-off-by: Bjorn Helgaas > --- Acked-by: Luca Coelho Thanks! -- Cheers, Luca.

[tip:perf/core] perf stat: Get rid of extra clock display function

2018-07-25 Thread tip-bot for Jiri Olsa
Commit-ID: 0aa802a79469a86ebe143019144cd4df8ae852e4 Gitweb: https://git.kernel.org/tip/0aa802a79469a86ebe143019144cd4df8ae852e4 Author: Jiri Olsa AuthorDate: Fri, 20 Jul 2018 13:00:34 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Jul 2018 14:54:58 -0300 perf stat: Get r

[tip:perf/core] perf test: Fix subtest number when showing results

2018-07-25 Thread tip-bot for Thomas Richter
Commit-ID: 9ef0112442bdddef5fb55adf20b3a5464b33de75 Gitweb: https://git.kernel.org/tip/9ef0112442bdddef5fb55adf20b3a5464b33de75 Author: Thomas Richter AuthorDate: Tue, 24 Jul 2018 15:48:58 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Jul 2018 14:55:51 -0300 perf test:

[tip:perf/core] perf tools: Fix struct comm_str removal crash

2018-07-25 Thread tip-bot for Jiri Olsa
Commit-ID: 46b3722cc7765582354488da633aafffcb138458 Gitweb: https://git.kernel.org/tip/46b3722cc7765582354488da633aafffcb138458 Author: Jiri Olsa AuthorDate: Fri, 20 Jul 2018 12:17:40 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Jul 2018 14:54:03 -0300 perf tools: Fix

[tip:perf/core] perf machine: Add threads__set_last_match function

2018-07-25 Thread tip-bot for Jiri Olsa
Commit-ID: 67fda0f32cd9428cb9a3166796162097d7fcbcbf Gitweb: https://git.kernel.org/tip/67fda0f32cd9428cb9a3166796162097d7fcbcbf Author: Jiri Olsa AuthorDate: Thu, 19 Jul 2018 16:33:43 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Jul 2018 14:53:42 -0300 perf machine: Ad

[tip:perf/core] perf tools: Use perf_evsel__match instead of open coded equivalent

2018-07-25 Thread tip-bot for Jiri Olsa
Commit-ID: 2d6cae13f10d5d8b370038dbfdf60317c22b9f52 Gitweb: https://git.kernel.org/tip/2d6cae13f10d5d8b370038dbfdf60317c22b9f52 Author: Jiri Olsa AuthorDate: Fri, 20 Jul 2018 13:00:33 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Jul 2018 14:54:13 -0300 perf tools: Use

Re: [PATCH] vxge: Remove unnecessary include of

2018-07-25 Thread David Miller
From: Bjorn Helgaas Date: Mon, 23 Jul 2018 15:59:46 -0500 > From: Bjorn Helgaas > > The vxge driver doesn't need anything provided by pci_hotplug.h, so remove > the unnecessary include of it. > > Signed-off-by: Bjorn Helgaas Applied to net-next, thanks.

Re: [PATCH 07/12] i2c: stu300: use core to detect 'no zero length' quirk

2018-07-25 Thread Linus Walleij
On Mon, Jul 23, 2018 at 10:26 PM Wolfram Sang wrote: > And don't reimplement in the driver. > > Signed-off-by: Wolfram Sang Reviewed-by: Linus Walleij Yours, Linus Walleij

[tip:perf/core] perf machine: Use last_match threads cache only in single thread mode

2018-07-25 Thread tip-bot for Jiri Olsa
Commit-ID: b57334b9453949bf81281321d14d86d60aee6fde Gitweb: https://git.kernel.org/tip/b57334b9453949bf81281321d14d86d60aee6fde Author: Jiri Olsa AuthorDate: Thu, 19 Jul 2018 16:33:44 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Jul 2018 14:53:52 -0300 perf machine: Us

Re: [PATCH 7/7] powerpc/traps: Show instructions on exceptions

2018-07-25 Thread Murilo Opsfelder Araujo
Hi, Christophe. On Wed, Jul 25, 2018 at 06:01:34PM +0200, LEROY Christophe wrote: > Murilo Opsfelder Araujo a écrit : > > > Move show_instructions() declaration to > > arch/powerpc/include/asm/stacktrace.h > > and include asm/stracktrace.h in arch/powerpc/kernel/process.c, which > > contains >

[tip:perf/core] perf machine: Add threads__get_last_match function

2018-07-25 Thread tip-bot for Jiri Olsa
Commit-ID: f8b2ebb532e0553b60ae5ad1b84d1d4f0c285752 Gitweb: https://git.kernel.org/tip/f8b2ebb532e0553b60ae5ad1b84d1d4f0c285752 Author: Jiri Olsa AuthorDate: Thu, 19 Jul 2018 16:33:42 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Jul 2018 14:53:31 -0300 perf machine: Ad

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