Re: PROBLEM: Power9: kernel oops on memory hotunplug from ppc64le guest

2019-05-20 Thread Nicholas Piggin
Bharata B Rao's on May 20, 2019 3:56 pm: > On Mon, May 20, 2019 at 02:48:35PM +1000, Nicholas Piggin wrote: >> >> > git bisect points to >> >> > >> >> > commit 4231aba000f5a4583dd9f67057aadb68c3eca99d >> >> > Author: Nicholas Piggin >> >> > Date: Fri Jul 27 21:48:17 2018 +1000 >> >> > >> >> >

Re: NULL pointer dereference during memory hotremove

2019-05-20 Thread Michal Hocko
On Fri 17-05-19 13:33:25, Pavel Tatashin wrote: > On Fri, May 17, 2019 at 1:24 PM Pavel Tatashin > wrote: > > > > On Fri, May 17, 2019 at 1:22 PM Pavel Tatashin > > wrote: > > > > > > On Fri, May 17, 2019 at 10:38 AM Michal Hocko wrote: > > > > > > > > On Fri 17-05-19 10:20:38, Pavel Tatashin wr

[PATCH 2/4] w1: ds2413: add retry support to state_read()

2019-05-20 Thread Mariusz Bialonczyk
The state_read() was calling PIO_ACCESS_READ once and bail out if it failed for this first time. This commit is improving this to trying more times before it give up, similarly as the write call is currently doing. Signed-off-by: Mariusz Bialonczyk --- drivers/w1/slaves/w1_ds2413.c | 37

[PATCH 4/4] w1: ds2805: rename w1_family struct, fixing c-p typo

2019-05-20 Thread Mariusz Bialonczyk
Signed-off-by: Mariusz Bialonczyk --- drivers/w1/slaves/w1_ds2805.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/w1/slaves/w1_ds2805.c b/drivers/w1/slaves/w1_ds2805.c index 29348d283a65..ab349604531a 100644 --- a/drivers/w1/slaves/w1_ds2805.c +++ b/drivers/w1/

Re: [PATCH v4 3/3] net: ethernet: add ag71xx driver

2019-05-20 Thread Oleksij Rempel
On 20.05.19 02:33, Andrew Lunn wrote: Hi Oleksij +static int ag71xx_mdio_mii_read(struct mii_bus *bus, int addr, int reg) +{ + struct ag71xx *ag = bus->priv; + struct net_device *ndev = ag->ndev; + int err; + int ret; + + err = ag71xx_mdio_wait_busy(ag); +

[PATCH 3/4] w1: ds2413: when the slave is not responding during read, select it again

2019-05-20 Thread Mariusz Bialonczyk
The protocol is not allowing to obtain a byte of 0xff for PIO_ACCESS_READ call. It is very likely that the slave was not addressed properly and it is just not respoding (leaving the bus in logic high state) during the read of sampled PIO value. We cannot just call w1_reset_resume_command() because

[PATCH 1/4] w1: ds2413: output_write() cosmetic fixes / simplify

2019-05-20 Thread Mariusz Bialonczyk
Make the output_write simpler. Based on Jean-Francois Dagenais code from: 49695ac46861 ("w1: ds2408: reset on output_write retry with readback") Signed-off-by: Mariusz Bialonczyk --- drivers/w1/slaves/w1_ds2413.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --

Re: [v2 1/5] drm/mediatek: move mipi_dsi_host_register to probe

2019-05-20 Thread CK Hu
On Sun, 2019-05-19 at 17:36 +0800, Jitao Shi wrote: > On Tue, 2019-05-07 at 17:52 +0800, CK Hu wrote: > > Hi, Jitao: > > > > On Tue, 2019-04-16 at 14:04 +0800, Jitao Shi wrote: > > > DSI panel driver need attach function which is inculde in > > > mipi_dsi_host_ops. > > > > > > If mipi_dsi_host_re

[PATCH v5 3/3] net: ethernet: add ag71xx driver

2019-05-20 Thread Oleksij Rempel
Add support for Atheros/QCA AR7XXX/AR9XXX/QCA95XX built-in ethernet mac support Signed-off-by: Oleksij Rempel --- drivers/net/ethernet/atheros/Kconfig | 10 +- drivers/net/ethernet/atheros/Makefile |1 + drivers/net/ethernet/atheros/ag71xx.c | 1882 + 3 files chang

[PATCH v5 0/3] MIPS: ath79: add ag71xx support

2019-05-20 Thread Oleksij Rempel
2019.05.20 v5: - ag71xx: remove MII_CMD_WRITE, the name is confusing. It is actually disables MII_CMD_READ. - ag71xx: rework ag71xx_mdio_mii_read/write - ag71xx: set proper mask for the addr in ag71xx_mdio_mii_read/write - Kconfig: remove MDIO_BITBANG - ag71xx: ./scripts/checkpatch.pl it. 2019.0

[PATCH v5 1/3] dt-bindings: net: add qca,ar71xx.txt documentation

2019-05-20 Thread Oleksij Rempel
Add binding documentation for Atheros/QCA networking IP core used in many routers. Signed-off-by: Oleksij Rempel --- .../devicetree/bindings/net/qca,ar71xx.txt| 45 +++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/qca,ar71xx.txt

[PATCH v5 2/3] MIPS: ath79: ar9331: add Ethernet nodes

2019-05-20 Thread Oleksij Rempel
Add ethernet nodes supported by ag71xx driver. Signed-off-by: Oleksij Rempel --- arch/mips/boot/dts/qca/ar9331.dtsi | 26 arch/mips/boot/dts/qca/ar9331_dpt_module.dts | 8 ++ 2 files changed, 34 insertions(+) diff --git a/arch/mips/boot/dts/qca/ar9331.dtsi b

Re: [RESEND] dt-bindings: cpufreq: Document allwinner,sun50i-h6-operating-points

2019-05-20 Thread Viresh Kumar
On 18-04-19, 08:55, Yangtao Li wrote: > Allwinner Process Voltage Scaling Tables defines the voltage and > frequency value based on the speedbin blown in the efuse combination. > The sunxi-cpufreq-nvmem driver reads the efuse value from the SoC to > provide the OPP framework with required informati

[PATCH v2 0/2] at24: use devm_i2c_new_dummy_device()

2019-05-20 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Now that we have a resource managed version of i2c_new_dummy_device(), use it in at24. v1 -> v2: - i2c_new_dummy_device() returns ERR_PTR(), not NULL so check the value correctly - remove the no longer needed i2c_unregister_device() in error path Bartosz Golaszewski

[PATCH v2 1/2] eeprom: at24: use devm_i2c_new_dummy_device()

2019-05-20 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Now that it's upstream, use the resource managed version of i2c_new_dummy_device(). Signed-off-by: Bartosz Golaszewski --- drivers/misc/eeprom/at24.c | 38 +- 1 file changed, 9 insertions(+), 29 deletions(-) diff --git a/drivers/mi

[PATCH v2 2/2] eeprom: at24: drop unnecessary label

2019-05-20 Thread Bartosz Golaszewski
From: Bartosz Golaszewski If we move the nvmem registration above the pm enable calls and the test read, we can drop the error label and make the code more readable as there's now only a single place where we must call pm_runtime_disable() in error path. Signed-off-by: Bartosz Golaszewski ---

Re: [RFC PATCH 1/4] KVM: selftests: Guard struct kvm_vcpu_events with __KVM_HAVE_VCPU_EVENTS

2019-05-20 Thread Christian Borntraeger
On 16.05.19 13:12, Thomas Huth wrote: > The struct kvm_vcpu_events code is only available on certain architectures > (arm, arm64 and x86). To be able to compile kvm_util.c also for other > architectures, we've got to fence the code with __KVM_HAVE_VCPU_EVENTS. > > Signed-off-by: Thomas Huth Ack

Re: [PATCH v12 3/3] dt-bindings: mfd: Document Renesas R-Car Gen3 RPC-IF MFD bindings

2019-05-20 Thread masonccyang
Hi Sergei, > >>> --> > >>> > >>> Renesas R-Car Gen3 RPC-IF controller Device Tree Bindings > >>> - > >>> > >>> RPC-IF supports both SPI NOR and HyperFlash (CFI-compliant flash)

Re: [PATCH] ARM: dts: sun8i-h3: Fix wifi in Beelink X2 DT

2019-05-20 Thread Maxime Ripard
On Sat, May 18, 2019 at 05:07:11PM +0200, Jernej Škrabec wrote: > Dne petek, 17. maj 2019 ob 09:30:48 CEST je Maxime Ripard napisal(a): > > Hi, > > > > On Thu, May 16, 2019 at 06:10:39PM +0200, Jernej Skrabec wrote: > > > mmc1 node where wifi module is connected doesn't have properly defined > > >

Re: [PATCH v3 3/3] soc: fsl: add RCPM driver

2019-05-20 Thread Pavel Machek
Hi! > The NXP's QorIQ Processors based on ARM Core have RCPM module > (Run Control and Power Management), which performs all device-level > tasks associated with power management such as wakeup source control. > > This driver depends on PM wakeup source framework which help to > collect wake info

Re: fs/pstore question

2019-05-20 Thread Ronny Meeus
Op do 9 mei 2019 10:05 schreef Ronny Meeus : > > Hello > > I'm using the pstore feature to log kernel crashes. > > What I observe is that after reboot, always 2 entries are present in the > pstore: > > ls -l /mnt/pstore > total 0 > -r--r--r--1 root root 16372 Jan 1 00:00 dmesg-ram

Re: [PATCH v3 1/4] dt-bindings: watchdog: add Allwinner H6 watchdog

2019-05-20 Thread Maxime Ripard
On Sat, May 18, 2019 at 05:23:52PM +0200, Clément Péron wrote: > Allwinner H6 has a similar watchdog as the A64 which is already > a compatible of the A31. > > This commit sort the lines and add the H6 compatible. > > Signed-off-by: Clément Péron > --- > .../devicetree/bindings/watchdog/sunxi-wdt

Re: [PATCH v3 2/4] arm64: dts: allwinner: h6: add watchdog node

2019-05-20 Thread Maxime Ripard
On Sat, May 18, 2019 at 05:23:53PM +0200, Clément Péron wrote: > Allwinner H6 has a watchog node which seems broken > on some boards. > > Test has been performed on several boards. > > Chen-Yu Tsai boards: > Pine H64 - H6448BA 7782 => OK > OrangePi Lite 2 - H8068BA 61C2 => KO > > Martin Ayotte boar

Re: [PATCH 2/6] Revert "arm64: dts: renesas: r8a7796: Enable DMA for SCIF2"

2019-05-20 Thread Geert Uytterhoeven
Hi Shimoda-san, Thanks for your analysis! On Mon, May 20, 2019 at 4:18 AM Yoshihiro Shimoda wrote: > > From: Eugeniu Rosca, Sent: Tuesday, May 7, 2019 4:43 AM > > > > > [0] v5.0-rc6 commit 97f26702bc95b5 ("arm64: dts: renesas: r8a7796: > > > > Enable DMA for SCIF2") > > > > [1] v4.14.106 commi

RE: [PATCH v3 3/3] soc: fsl: add RCPM driver

2019-05-20 Thread Ran Wang
Hi Pavel, On Monday, May 20, 2019 15:27: Pavel Machek wrote: > > Hi! > > > The NXP's QorIQ Processors based on ARM Core have RCPM module (Run > > Control and Power Management), which performs all device-level tasks > > associated with power management such as wakeup source control. > > > > This

Dolgozói juttatások

2019-05-20 Thread Kapolcs Mátyás
Üdvözlöm! 2019 januártól változik a nem bér jellegű juttatások rendje. Egy kiváló lehetőséggel élehet, amennyiben a mi kártyánkat választja! Ez a kártya: Korlátlanul felhasználható: készpénzfelvétel élelmiszer vásárlás egészségügyi ellátás elektronikai termékek vásárlása oktatás szállás

Re: [PATCH 0/3] arm64: allwinner: Enable AXP803's USB power supply

2019-05-20 Thread Maxime Ripard
On Fri, Apr 19, 2019 at 12:18:01AM +0800, Chen-Yu Tsai wrote: > From: Chen-Yu Tsai > > Hi everyone, > > This series follows up on the A83T USB OTG series. The USB power supply > portion of the AXP803, the PMIC used with the A64, is identical to the > part in the AXP813/AXP818, used with the A83T.

Re: [PATCH v12 3/3] dt-bindings: mfd: Document Renesas R-Car Gen3 RPC-IF MFD bindings

2019-05-20 Thread Geert Uytterhoeven
Hi Mason, On Mon, May 20, 2019 at 9:24 AM wrote: > > >>> - clocks: should contain 1 entries for the module's clock > > >>> - clock-names: should contain "rpc" > > >> > > >>I suspect we'd need the RPC/RPCD2 clocks mentioned as well (not > sure > > > yet)... > > > > > > Need it ? > > > >

Re: [PATCH v2] ARM: dts: sun8i-h3: Fix wifi in Beelink X2 DT

2019-05-20 Thread Maxime Ripard
On Sat, May 18, 2019 at 05:40:14PM +0200, Jernej Skrabec wrote: > mmc1 node where wifi module is connected doesn't have properly defined > power supplies so wifi module is never powered up. Fix that by > specifying additional power supplies. > > Additionally, this STB may have either Realtek or Bro

[PATCH] pinctrl: stmfx: Fix compile issue when CONFIG_OF_GPIO is not defined

2019-05-20 Thread Amelie Delaunay
When CONFIG_GPIO_OF is not defined, struct gpio_chip 'of_node' member does not exist: drivers/pinctrl/pinctrl-stmfx.c: In function 'stmfx_pinctrl_probe': drivers/pinctrl/pinctrl-stmfx.c:652:17: error: 'struct gpio_chip' has no member named 'of_node' pctl->gpio_chip.of_node = np; Fixes: 1490d

Re: [PATCH] libnvdimm/pmem: Bypass CONFIG_HARDENED_USERCOPY overhead

2019-05-20 Thread Jan Kara
On Sat 18-05-19 21:46:03, Dan Williams wrote: > On Fri, May 17, 2019 at 12:25 PM Kees Cook wrote: > > On Fri, May 17, 2019 at 10:28:48AM -0700, Dan Williams wrote: > > > It seems dax_iomap_actor() is not a path where we'd be worried about > > > needing hardened user copy checks. > > > > I would ag

Re: [v5 0/3] "Hotremove" persistent memory

2019-05-20 Thread David Hildenbrand
On 17.05.19 16:09, Pavel Tatashin wrote: >> >> I would think that ACPI hotplug would have a similar problem, but it does >> this: >> >> acpi_unbind_memory_blocks(info); >> __remove_memory(nid, info->start_addr, info->length); > > ACPI does have exactly the same pro

[PATCH 06/25] clk: fixed-factor: Add CLK_FIXED_FACTOR_HWS which takes list of struct clk_hw *

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code, clk_init_data was expanded to include .parent_hws, for clk drivers to directly reference parents by clk_hw. Add a new macro, CLK_FIXED_FACTOR_HWS, that can take an array of pointers to struct clk_hw, instead of a string, as its parent. Taking a

[PATCH 01/25] clk: Fix debugfs clk_possible_parents for clks without parent string names

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai Following the commit fc0c209c147f ("clk: Allow parents to be specified without string names"), the parent name string is not always populated. Instead, fetch the parents clk_core struct using the appropriate helper, and read its name directly. Fixes: fc0c209c147f ("clk: Allow

[PATCH 02/25] clk: Add CLK_HW_INIT_* macros using .parent_hws

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code, struct clk_init_data was expanded to include .parent_hws, for clk drivers to directly list parents by pointing to their respective struct clk_hw's. Add macros that can take either one single struct clk_hw *, or an array of them, for drivers to

RE: [PATCH v5 4/6] usb: roles: add API to get usb_role_switch by node

2019-05-20 Thread Biju Das
Hi Heikki, > -Original Message- > From: Heikki Krogerus > Sent: Monday, May 20, 2019 9:04 AM > To: Chunfeng Yun > Cc: Rob Herring ; Greg Kroah-Hartman > ; Mark Rutland ; > Matthias Brugger ; Adam Thomson > ; Li Jun ; > Badhri Jagan Sridharan ; Hans de Goede > ; Andy Shevchenko > ; Min Gu

[PATCH 17/25] clk: sunxi-ng: v3s: Use local parent references for CLK_FIXED_FACTOR

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH 00/25] clk: sunxi-ng: clk parent rewrite part 1

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai Hi everyone, This is series is the first part of a large series (I haven't done the rest) of patches to rewrite the clk parent relationship handling within the sunxi-ng clk driver. This is based on Stephen's recent work allowing clk drivers to specify clk parents using struct

[PATCH 23/25] clk: sunxi-ng: gate: Add macros for referencing local clock parents

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code, clk_init_data was expanded to include .parent_hws, for clk drivers to directly reference parents by clk_hw, and .parent_data, for clk drivers to specify parents using a combination of device tree clock-names, pointers to struct clk_hw, device tr

[PATCH 20/25] clk: sunxi-ng: a64: Use local parent references for CLK_FIXED_FACTOR

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH 07/25] clk: fixed-factor: Add CLK_FIXED_FACTOR_FW_NAME for DT clock-names parent

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code, clk_init_data was expanded to include .parent_data, for clk drivers to specify parents using a combination of device tree clock-names, pointers to struct clk_hw, device tree clocks, and/or fallback global clock names. Add a new macro, CLK_FIXED

[PATCH 22/25] clk: sunxi-ng: h6-r: Use local parent references for CLK_FIXED_FACTOR

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

Re: [PATCH] media: cedrus: Allow different mod clock rates

2019-05-20 Thread Maxime Ripard
On Sat, May 18, 2019 at 07:44:15PM +0200, Jernej Skrabec wrote: > Some VPU variants may run at higher clock speeds. They actually need > extra speed to be capable of decoding more complex codecs like HEVC or > bigger image sizes (4K). > > Expand variant structure with mod_rate information. > > Sign

[PATCH 09/25] clk: sunxi-ng: sun8i-r: Use local parent references for CLK_HW_INIT_*

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_HW_INIT_* macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_HW_INIT_* definitions to describe parents using either struct clk_hw pointers or clock-names from the device tree bi

Re: [PATCH] RISC-V: defconfig: Enable NO_HZ_IDLE and HIGH_RES_TIMERS

2019-05-20 Thread Anup Patel
On Wed, May 15, 2019 at 12:00 PM Anup Patel wrote: > > This patch enables NO_HZ_IDLE (idle dynamic ticks) and HIGH_RES_TIMERS > (hrtimers) in RV32 and RV64 defconfigs. > > Both of the above options are enabled by default for architectures > such as x86, ARM, and ARM64. > > The idle dynamic ticks h

[PATCH 08/25] clk: sunxi-ng: switch to of_clk_hw_register() for registering clks

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai Commit 89a5ddcc799d ("clk: Add of_clk_hw_register() API for early clk drivers") introduces a new API for registering clks, which allows the user to directly specify a device node, even if there is no struct device attached to it. The device node is used for local DT clock-names

[PATCH 03/25] clk: Add CLK_HW_INIT_FW_NAME macro using .fw_name in .parent_data

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code, clk_init_data was expanded to include .parent_data, for clk drivers that have parents referenced using a combination of device tree clock-names, clock indices, and/or clk_hw pointers. Add a CLK_HW_INIT macro for specifying a single parent from

[PATCH 21/25] clk: sunxi-ng: h6: Use local parent references for CLK_FIXED_FACTOR

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH 14/25] clk: sunxi-ng: a33: Use local parent references for CLK_FIXED_FACTOR

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH 15/25] clk: sunxi-ng: h3: Use local parent references for CLK_FIXED_FACTOR

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH 16/25] clk: sunxi-ng: r40: Use local parent references for CLK_FIXED_FACTOR

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

Re: [PATCH v5 4/6] usb: roles: add API to get usb_role_switch by node

2019-05-20 Thread Heikki Krogerus
On Mon, May 20, 2019 at 10:39:11AM +0800, Chunfeng Yun wrote: > Hi, > On Fri, 2019-05-17 at 16:05 +0300, Heikki Krogerus wrote: > > Hi, > > > > On Fri, May 17, 2019 at 01:37:36PM +0300, Heikki Krogerus wrote: > > > On Tue, May 14, 2019 at 04:47:21PM +0800, Chunfeng Yun wrote: > > > > Add fwnode_us

[PATCH 25/25] clk: sunxi-ng: sun8i-r: Use local parent references for SUNXI_CCU_GATE

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and SUNXI_CCU_GATE macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing SUNXI_CCU_GATE definitions to SUNXI_CCU_GATE_HWS as the parent clock is internal to this clock unit. To avoid duplicat

[PATCH 04/25] clk: Add CLK_HW_INIT_PARENT_DATA macro using .parent_data

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code, struct clk_init_data was expanded to include .parent_data, for clk drivers that have parents referenced using a combination of device tree clock-names, clock indices, and/or struct clk_hw pointers. Add a new macro that can take a list of struct

[PATCH 12/25] clk: sunxi-ng: a31: Use local parent references for CLK_FIXED_FACTOR

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH 11/25] clk: sunxi-ng: sun5i: Use local parent references for CLK_FIXED_FACTOR

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

Re: [PATCH v2] drm/bridge: Remove duplicate header

2019-05-20 Thread Andrzej Hajda
On 16.05.2019 17:25, Sabyasachi Gupta wrote: > Remove duplicate header which is included twice > > Signed-off-by: Sabyasachi Gupta Queued to drm-misc-next. Regards Andrzej > --- > v2: rebased the code against drm -next and arranged the headers alphabetically > > drivers/gpu/drm/bridge/pane

[PATCH 19/25] clk: sunxi-ng: f1c100s: Use local parent references for CLK_FIXED_FACTOR

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH 18/25] clk: sunxi-ng: sun8i-r: Use local parent references for CLK_FIXED_FACTOR

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH 10/25] clk: sunxi-ng: a10: Use local parent references for CLK_FIXED_FACTOR

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH 05/25] clk: fixed-factor: Add CLK_FIXED_FACTOR_HW which takes clk_hw pointer as parent

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code, clk_init_data was expanded to include .parent_hws, for clk drivers to directly reference parents by clk_hw. Add a new macro, CLK_FIXED_FACTOR_HW, that can take a struct clk_hw pointer, instead of a string, as its parent. Signed-off-by: Chen-Yu

[PATCH 24/25] clk: sunxi-ng: a80-usb: Use local parent references for SUNXI_CCU_GATE

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and SUNXI_CCU_GATE macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing SUNXI_CCU_GATE definitions to SUNXI_CCU_GATE_DATA to specify the parent clock. Signed-off-by: Chen-Yu Tsai --- drive

[PATCH 13/25] clk: sunxi-ng: a23: Use local parent references for CLK_FIXED_FACTOR

2019-05-20 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

Re: [PATCH] x86: Hide the int3_emulate_call/jmp functions from UML

2019-05-20 Thread Anton Ivanov
On 11/05/2019 13:39, Steven Rostedt wrote: From: "Steven Rostedt (VMware)" User Mode Linux does not have access to the ip or sp fields of the pt_regs, and accessing them causes UML to fail to build. Hide the int3_emulate_jmp() and int3_emulate_call() instructions from UML, as it doesn't nee

Re: [RFC PATCH 1/4] KVM: selftests: Guard struct kvm_vcpu_events with __KVM_HAVE_VCPU_EVENTS

2019-05-20 Thread Thomas Huth
On 20/05/2019 09.12, Christian Borntraeger wrote: > > On 16.05.19 13:12, Thomas Huth wrote: >> The struct kvm_vcpu_events code is only available on certain architectures >> (arm, arm64 and x86). To be able to compile kvm_util.c also for other >> architectures, we've got to fence the code with __KV

Re: [PATCH 1/3] brcmfmac: re-enable command decode in sdio_aos for BRCM 4354

2019-05-20 Thread Arend Van Spriel
On 5/18/2019 12:54 AM, Douglas Anderson wrote: In commit 29f6589140a1 ("brcmfmac: disable command decode in sdio_aos") we disabled something called "command decode in sdio_aos" for a whole bunch of Broadcom SDIO WiFi parts. After that patch landed I find that my kernel log on rk3288-veyron-mi

Re: [PATCH] phy: rockchip-dp: Avoid power leak by leaving the PHY power on

2019-05-20 Thread Caesar Wang
Hi Doug, For now,  nobody of rockchip is responsible for this driver. Cc: Nickey, Zain, Hjc On 5/8/19 7:48 AM, Douglas Anderson wrote: While testing a newer kernel on rk3288-based Chromebooks I found that the power draw in suspend was higher on newer kernels compared to the downstream Chrome O

RE: [EXT] Re: [PATCH 2/3] arm64: dts: ls1028a: Add PCIe controller DT nodes

2019-05-20 Thread Xiaowei Bao
Hi Arndt, -Original Message- From: Arnd Bergmann Sent: 2019年5月17日 16:59 To: Xiaowei Bao Cc: Bjorn Helgaas ; Rob Herring ; Mark Rutland ; Shawn Guo ; Leo Li ; Kishon ; Lorenzo Pieralisi ; gregkh ; M.h. Lian ; Mingkai Hu ; Roy Zang ; Kate Stewart ; Philippe Ombredanne ; Shawn Lin ;

Re: [RFC PATCH 1/4] KVM: selftests: Guard struct kvm_vcpu_events with __KVM_HAVE_VCPU_EVENTS

2019-05-20 Thread Christian Borntraeger
On 20.05.19 10:08, Thomas Huth wrote: > On 20/05/2019 09.12, Christian Borntraeger wrote: >> >> On 16.05.19 13:12, Thomas Huth wrote: >>> The struct kvm_vcpu_events code is only available on certain architectures >>> (arm, arm64 and x86). To be able to compile kvm_util.c also for other >>> archi

Re: [PATCH v3 1/4] dt-bindings: watchdog: add Allwinner H6 watchdog

2019-05-20 Thread Clément Péron
Hi Maxime, On Mon, 20 May 2019 at 09:35, Maxime Ripard wrote: > > On Sat, May 18, 2019 at 05:23:52PM +0200, Clément Péron wrote: > > Allwinner H6 has a similar watchdog as the A64 which is already > > a compatible of the A31. > > > > This commit sort the lines and add the H6 compatible. > > > > S

Re: [PATCH] clk: qcom: gdsc: WARN when failing to toggle

2019-05-20 Thread Marc Gonzalez
On 04/05/2019 02:17, Bjorn Andersson wrote: > Failing to toggle a GDSC as the driver core is attaching the > power-domain to a device will cause a silent probe deferral. Provide an > explicit warning to the developer, in order to reduce the amount of time > it take to debug this. "it takes" > Si

Re: [RFC 1/7] mm: introduce MADV_COOL

2019-05-20 Thread Michal Hocko
[CC linux-api] On Mon 20-05-19 12:52:48, Minchan Kim wrote: > When a process expects no accesses to a certain memory range > it could hint kernel that the pages can be reclaimed > when memory pressure happens but data should be preserved > for future use. This could reduce workingset eviction so

Re: [PATCH v3 2/2] initramfs: introduce do_readxattrs()

2019-05-20 Thread Roberto Sassu
On 5/17/2019 11:10 PM, Arvind Sankar wrote: On Fri, May 17, 2019 at 05:02:20PM -0400, Arvind Sankar wrote: On Fri, May 17, 2019 at 01:18:11PM -0700, h...@zytor.com wrote: Ok... I just realized this does not work for a modular initramfs, composed at load time from multiple files, which is a ve

[PATCH v4 3/5] KVM: LAPIC: Expose per-vCPU timer_advance_ns to userspace

2019-05-20 Thread Wanpeng Li
From: Wanpeng Li Expose per-vCPU timer_advance_ns to userspace, so it is able to query the auto-adjusted value. Cc: Paolo Bonzini Cc: Radim Krčmář Cc: Sean Christopherson Cc: Liran Alon Signed-off-by: Wanpeng Li --- arch/x86/kvm/debugfs.c | 18 ++ 1 file changed, 18 insert

[PATCH v4 4/5] KVM: LAPIC: Delay trace advance expire delta

2019-05-20 Thread Wanpeng Li
From: Wanpeng Li wait_lapic_expire() call was moved above guest_enter_irqoff() because of its tracepoint, which violated the RCU extended quiescent state invoked by guest_enter_irqoff()[1][2]. This patch simply moves the tracepoint below guest_exit_irqoff() in vcpu_enter_guest(). Snapshot the

[PATCH v4 0/5] KVM: LAPIC: Optimize timer latency further

2019-05-20 Thread Wanpeng Li
Advance lapic timer tries to hidden the hypervisor overhead between the host emulated timer fires and the guest awares the timer is fired. However, it just hidden the time between apic_timer_fn/handle_preemption_timer -> wait_lapic_expire, instead of the real position of vmentry which is mentio

[PATCH v4 2/5] KVM: LAPIC: Fix lapic_timer_advance_ns parameter overflow

2019-05-20 Thread Wanpeng Li
From: Wanpeng Li After commit c3941d9e0 (KVM: lapic: Allow user to disable adaptive tuning of timer advancement), '-1' enables adaptive tuning starting from default advancment of 1000ns. However, we should expose an int instead of an overflow uint module parameter. Before patch: /sys/module/kvm

[PATCH v4 1/5] KVM: LAPIC: Extract adaptive tune timer advancement logic

2019-05-20 Thread Wanpeng Li
From: Wanpeng Li Extract adaptive tune timer advancement logic to a single function. Cc: Paolo Bonzini Cc: Radim Krčmář Cc: Sean Christopherson Cc: Liran Alon Signed-off-by: Wanpeng Li --- arch/x86/kvm/lapic.c | 57 ++-- 1 file changed, 33 in

[PATCH v4 5/5] KVM: LAPIC: Optimize timer latency further

2019-05-20 Thread Wanpeng Li
From: Wanpeng Li Advance lapic timer tries to hidden the hypervisor overhead between the host emulated timer fires and the guest awares the timer is fired. However, it just hidden the time between apic_timer_fn/handle_preemption_timer -> wait_lapic_expire, instead of the real position of vment

Re: [RFC 1/7] mm: introduce MADV_COOL

2019-05-20 Thread Michal Hocko
On Mon 20-05-19 10:16:21, Michal Hocko wrote: > [CC linux-api] > > On Mon 20-05-19 12:52:48, Minchan Kim wrote: > > When a process expects no accesses to a certain memory range > > it could hint kernel that the pages can be reclaimed > > when memory pressure happens but data should be preserved >

Re: [PATCH v3 5/5] KVM: LAPIC: Optimize timer latency further

2019-05-20 Thread Wanpeng Li
On Sat, 18 May 2019 at 03:50, Sean Christopherson wrote: > > On Thu, May 16, 2019 at 11:06:20AM +0800, Wanpeng Li wrote: > > From: Wanpeng Li > > > > Advance lapic timer tries to hidden the hypervisor overhead between the > > host emulated timer fires and the guest awares the timer is fired. Howe

Re: PROBLEM: Power9: kernel oops on memory hotunplug from ppc64le guest

2019-05-20 Thread Bharata B Rao
On Mon, May 20, 2019 at 05:00:21PM +1000, Nicholas Piggin wrote: > Bharata B Rao's on May 20, 2019 3:56 pm: > > On Mon, May 20, 2019 at 02:48:35PM +1000, Nicholas Piggin wrote: > >> >> > git bisect points to > >> >> > > >> >> > commit 4231aba000f5a4583dd9f67057aadb68c3eca99d > >> >> > Author: Nicho

Re: [PATCH v3 2/4] arm64: dts: allwinner: h6: add watchdog node

2019-05-20 Thread Clément Péron
Hi, On Mon, 20 May 2019 at 09:36, Maxime Ripard wrote: > > On Sat, May 18, 2019 at 05:23:53PM +0200, Clément Péron wrote: > > Allwinner H6 has a watchog node which seems broken > > on some boards. > > > > Test has been performed on several boards. > > > > Chen-Yu Tsai boards: > > Pine H64 - H6448

Re: [PATCH] ext4: Variable to signed to check return code

2019-05-20 Thread Lee Jones
On Sat, 18 May 2019, Theodore Ts'o wrote: > On Sat, May 18, 2019 at 07:38:34AM +0100, Lee Jones wrote: > > "- Acked-by: indicates an agreement by another developer (often a > > maintainer of the relevant code) that the patch is appropriate for > > inclusion into the kernel." > > > > A

Re: [RFC 3/7] mm: introduce MADV_COLD

2019-05-20 Thread Michal Hocko
[Cc linux-api] On Mon 20-05-19 12:52:50, Minchan Kim wrote: > When a process expects no accesses to a certain memory range > for a long time, it could hint kernel that the pages can be > reclaimed instantly but data should be preserved for future use. > This could reduce workingset eviction so it

Re: [PATCH 0/5] Updates to staging driver: kpc_i2c

2019-05-20 Thread Greg Kroah-Hartman
On Sat, May 18, 2019 at 02:29:55AM +, Geordan Neukum wrote: > Attached are an assortment of updates to the kpc_i2c driver in the > staging subtree. All now queued up. I'll rebase my patches that move this file on top of yours, as kbuild found some problems with mine, and I'll resend them to t

Re: [PATCH v5 5/6] usb: roles: add USB Type-B GPIO connector driver

2019-05-20 Thread Heikki Krogerus
On Tue, May 14, 2019 at 04:47:22PM +0800, Chunfeng Yun wrote: > +static int usb_conn_probe(struct platform_device *pdev) > +{ > + struct device *dev = &pdev->dev; > + struct device_node *node = dev->of_node; > + struct device_node *remote_node; > + struct usb_conn_info *info; > +

[PATCH 4/5] dt-bindings: pinctrl: Document pinconf bindings for BM1880 SoC

2019-05-20 Thread Manivannan Sadhasivam
Document pinconf bindings for Bitmain BM1880 SoC. Signed-off-by: Manivannan Sadhasivam --- .../pinctrl/bitmain,bm1880-pinctrl.txt| 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/bitmain,bm1880-pinctrl.txt

[PATCH 0/5] Add pinconf support for BM1880 SoC

2019-05-20 Thread Manivannan Sadhasivam
Hi Linus, This patchset adds pinconf support for Bitmain BM1880 SoC. In the previous patchset adding pinctrl support, I declared that the SoC doesn't support pinconf settings but further interaction with Bitmain engineers revealed that the SoC does support it and hence this patchset. Currently, t

[PATCH 2/5] arm64: dts: bitmain: Modify pin controller memory map

2019-05-20 Thread Manivannan Sadhasivam
Earlier, the PWM registers were included as part of the pinctrl memory map, but this turned to be useless as the muxing is being handled by the SoC pin controller itself. Hence, this commit removes the pwm register mapping from the pinctrl node to make it more clean. Fixes: af2ff87de413 ("arm64: d

[PATCH 1/5] dt-bindings: pinctrl: Modify pinctrl memory map

2019-05-20 Thread Manivannan Sadhasivam
Earlier, the PWM registers were included as part of the pinctrl memory map, but this turned to be useless as the muxing is being handled by the SoC pin controller itself. So, lets modify the pinctrl memory map to reflect the same. Fixes: 07b734fbdea2 ("dt-bindings: pinctrl: Add BM1880 pinctrl bind

[PATCH 3/5] pinctrl: Rework the pinmux handling for BM1880 SoC

2019-05-20 Thread Manivannan Sadhasivam
Rework the BM1880 SoC pinmux handling by removing the BM1880_PINMUX_FUNCTION_MUX define and merging it with the BM1880_PINMUX_FUNCTION definition. Since the PWM muxing is handled by generic pin controller in the SoC itself, there is no need to have a dedicated code to do the muxing in PWM registers

[PATCH 5/5] pinctrl: Add pinconf support for BM1880 SoC

2019-05-20 Thread Manivannan Sadhasivam
Add pinconf support for Bitmain BM1880 SoC. Pinconf support includes pin bias, slew rate and schmitt trigger. Drive strength support will be added later. Signed-off-by: Manivannan Sadhasivam --- drivers/pinctrl/pinctrl-bm1880.c | 134 +++ 1 file changed, 134 insertion

Re: [PATCH] dt-bindings: iio: adc: add adi,ad7780.yaml binding

2019-05-20 Thread Ardelean, Alexandru
On Sun, 2019-05-19 at 12:32 +0100, Jonathan Cameron wrote: > [External] > > > On Sat, 18 May 2019 19:41:12 -0300 > Renato Lui Geh wrote: > > > This patch adds a YAML binding for the Analog Devices AD7780/1 and > > AD7170/1 analog-to-digital converters. > > > > Signed-off-by: Renato Lui Geh >

Re: [PATCH v5 4/6] usb: roles: add API to get usb_role_switch by node

2019-05-20 Thread Heikki Krogerus
On Mon, May 20, 2019 at 08:06:41AM +, Biju Das wrote: > Hi Heikki, > > > -Original Message- > > From: Heikki Krogerus > > Sent: Monday, May 20, 2019 9:04 AM > > To: Chunfeng Yun > > Cc: Rob Herring ; Greg Kroah-Hartman > > ; Mark Rutland ; > > Matthias Brugger ; Adam Thomson > > ; Li

Re: [PATCH] ASoC: Intel: bytcr_5640.c:Refactored if statement and removed buffer

2019-05-20 Thread Hans de Goede
Hi all, On 19-05-19 19:57, nariman wrote: From: Nariman Etemadi in function snd_byt_rt5640_mc_probe and removed buffer yt_rt5640_codec_aif_name & byt_rt5640_cpu_dai_name Signed-off-by: Nariman Etemadi Series (all 4 patches) look good to me: Reviewed-by: Hans de Goede Regards, Hans

Re: [PATCH v3 3/5] KVM: LAPIC: Expose per-vCPU timer_advance_ns to userspace

2019-05-20 Thread Wanpeng Li
On Sat, 18 May 2019 at 04:05, Sean Christopherson wrote: > > On Thu, May 16, 2019 at 11:06:18AM +0800, Wanpeng Li wrote: > > From: Wanpeng Li > > > > Expose per-vCPU timer_advance_ns to userspace, so it is able to > > query the auto-adjusted value. > > > > Cc: Paolo Bonzini > > Cc: Radim Krčmář

Re: [PATCH v3 2/2] initramfs: introduce do_readxattrs()

2019-05-20 Thread Roberto Sassu
On 5/17/2019 10:18 PM, h...@zytor.com wrote: On May 17, 2019 9:55:19 AM PDT, Roberto Sassu wrote: This patch adds support for an alternative method to add xattrs to files in the rootfs filesystem. Instead of extracting them directly from the ram disk image, they are extracted from a regular fil

Re: [PATCH 2/3] mmc: core: API for temporarily disabling auto-retuning due to errors

2019-05-20 Thread Arend Van Spriel
On 5/19/2019 11:06 AM, Wolfram Sang wrote: Let's add an API that the SDIO card drivers can call that will temporarily disable the auto-tuning functionality. Then we can add a call to this in the Broadcom WiFi driver and any other driver that might have similar needs. Can't you fix the WiFi d

Re: [PATCH v4 0/2] Two-stagged initial page table setup

2019-05-20 Thread Anup Patel
On Thu, May 2, 2019 at 10:32 AM Anup Patel wrote: > > This patchset implements two-stagged initial page table setup using fixmap > to avoid mapping non-existent RAM and also reduce high_memory consumed by > initial page tables. > > The patchset is based on Linux-5.1-rc7 and tested on SiFive Unleas

  1   2   3   4   5   6   7   8   9   10   >