[RESEND PATCH] intel_th: msu: Fix unused variable warning on arm64 platform

2019-05-20 Thread Shaokun Zhang
drivers/hwtracing/intel_th/msu.c: In function ‘msc_buffer_win_alloc’: drivers/hwtracing/intel_th/msu.c:783:21: warning: unused variable ‘i’ [-Wunused-variable] int ret = -ENOMEM, i; ^ drivers/hwtracing/intel_th/msu.c: In function ‘msc_buffer_win_free’:

Re: [PATCH RESEND 1/2] clk: imx: Add common API for masking MMDC handshake

2019-05-20 Thread Shawn Guo
On Sun, May 12, 2019 at 10:24:12AM +, Anson Huang wrote: > All i.MX6 SoCs need to mask unused MMDC channel's handshake > for low power modes, this patch provides common API for masking > the MMDC channel passed from caller. > > Signed-off-by: Anson Huang > Reviewed-by: Dong Aisheng Applied

Re: [PATCH RESEND] clk: imx7ulp: update nic1_bus_clk parent info

2019-05-20 Thread Shawn Guo
On Sun, May 12, 2019 at 10:30:41AM +, Anson Huang wrote: > Since i.MX7ULP B0 chip, nic1_bus_clk's parent is changed to > from nic0_clk directly, update it accordingly. > > Signed-off-by: Anson Huang Applied, thanks.

Re: [RFC 0/7] introduce memory hinting API for external process

2019-05-20 Thread Anshuman Khandual
On 05/20/2019 09:22 AM, Minchan Kim wrote: > - Problem > > Naturally, cached apps were dominant consumers of memory on the system. > However, they were not significant consumers of swap even though they are > good candidate for swap. Under investigation, swapping out only begins > once the low

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

2019-05-20 Thread Wanpeng Li
On Sat, 18 May 2019 at 03:44, Sean Christopherson wrote: > > On Thu, May 16, 2019 at 11:06:19AM +0800, Wanpeng Li wrote: > > From: Wanpeng Li > > > > wait_lapic_expire() call was moved above guest_enter_irqoff() because of > > its tracepoint, which violated the RCU extended quiescent state

[PATCH v4] tipc: fix modprobe tipc failed after switch order of device registration

2019-05-20 Thread hujunwei
From: Junwei Hu Error message printed: modprobe: ERROR: could not insert 'tipc': Address family not supported by protocol. when modprobe tipc after the following patch: switch order of device registration, commit 7e27e8d6130c ("tipc: switch order of device registration to fix a crash") Because

Re: [PATCH 1/4] dt-bindings: iio: adc: mediatek: Add document for mt6765

2019-05-20 Thread Chun-Hung Wu
Hi Jonathan, On Sat, 2019-05-18 at 11:33 +0100, Jonathan Cameron wrote: > On Thu, 16 May 2019 16:10:44 +0800 > Chun-Hung Wu wrote: > > > Add compatible node for mt6765 auxadc > > > > Signed-off-by: Chun-Hung Wu > Applied, but in numeric order. There was also another clashing patch > that

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

2019-05-20 Thread Ran Wang
Hi Pavel, On Monday, May 20, 2019 05:39, Pavel Machek wrote: > > Hi! > > > > + > > +struct rcpm { > > + unsigned int wakeup_cells; > > + void __iomem *ippdexpcr_base; > > + boollittle_endian; > > +}; > > Inconsistent whitespace OK, will make them aligned. > > > +static int

[PATCH] pstore: Set tfm to NULL on free_buf_for_compression.

2019-05-20 Thread Pi-Hsun Shih
Set tfm to NULL on free_buf_for_compression after crypto_free_comp. This avoid a use-after-free when allocate_buf_for_compression and free_buf_for_compression are called twice. Although free_buf_for_compression freed the tfm, allocate_buf_for_compression won't reinitialize the tfm since the tfm

sound/soc//intel/boards/bxt_da7219_max98357a.c:19:10: fatal error: asm/cpu_device_id.h: No such file or directory

2019-05-20 Thread kbuild test robot
Hi Mark, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: a188339ca5a396acc588e5851ed7e19f66b0ebd9 commit: 164a263bf8d003e4cbb197d52b74d26df72604d7 ASoC: Intel: Make boards more available for compile test date: 3

[PATCH v3 1/3] PM: wakeup: Add routine to help fetch wakeup source object.

2019-05-20 Thread Ran Wang
Some user might want to go through all registered wakeup sources and doing things accordingly. For example, SoC PM driver might need to do HW programming to prevent powering down specific IP which wakeup source depending on. And is user's responsibility to identify if this wakeup source he is

[PATCH v3 2/3] Documentation: dt: binding: fsl: Add 'little-endian' and update Chassis define

2019-05-20 Thread Ran Wang
By default, QorIQ SoC's RCPM register block is Big Endian. But there are some exceptions, such as LS1088A and LS2088A, are Little Endian. So add this optional property to help identify them. Actually LS2021A and other Layerscapes won't totally follow Chassis 2.1, so separate them from powerpc

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

2019-05-20 Thread Ran Wang
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 information.

[PATCH] ACPI/IORT: Fix build without CONFIG_IOMMU_API

2019-05-20 Thread Christoph Hellwig
IOMMU_FWSPEC_PCI_RC_ATS is only defined if CONFIG_IOMMU_API is enabled. Fixes: 5702ee24182f ("ACPI/IORT: Check ATS capability in root complex nodes") Signed-off-by: Christoph Hellwig --- drivers/acpi/arm64/iort.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [Patch] perf stat: always separate stalled cycles per insn

2019-05-20 Thread Jiri Olsa
On Fri, May 17, 2019 at 03:10:39PM -0700, Cong Wang wrote: > The "stalled cycles per insn" is appended to "instructions" when > the CPU has this hardware counter directly. We should always make it > a separate line, which also aligns to the output when we hit the > "if (total && avg)" branch. > >

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

[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 +++

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

[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

[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.

[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

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

[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

[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

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

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

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 > --- >

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

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

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

[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:

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

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

[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

[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:

[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

[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

[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,

[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. > >

[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

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

[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

[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

[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

[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

[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 > >

[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:

[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 ---

[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

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

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

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

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 >>>

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. > > > >

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" >

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

[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

[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

[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:

[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

[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

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.

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:

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 -

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." > > > >

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

  1   2   3   4   5   6   7   8   9   10   >