[PATCH v3] arm64: dts: ls1028a: Add Audio DT nodes

2019-02-28 Thread Alison Wang
This patch adds Audio DT nodes for LS1028ARDB and LS1028AQDS boards. Signed-off-by: Alison Wang --- Changes in v3: - Sort EDMA node in unit-address. Changes in v2: - Modify some nodes' names. - Use GIC_SPI and IRQ_TYPE_LEVEL_HIGH. arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 62

Re: [PATCH v4 4/7] vfio: ap: register IOMMU VFIO notifier

2019-02-28 Thread Christian Borntraeger
On 28.02.2019 17:55, Halil Pasic wrote: > On Thu, 28 Feb 2019 09:48:39 +0100 > Pierre Morel wrote: > >> On 28/02/2019 09:23, Christian Borntraeger wrote: >>> On 22.02.2019 16:29, Pierre Morel wrote: To be able to use the VFIO interface to facilitate the mediated device memory

Re: [PATCH 4/4] soc/fsl/qe: qe.c: support fsl,qe-snums property

2019-02-28 Thread Rasmus Villemoes
On 01/03/2019 04.36, Qiang Zhao wrote: > On 2019年2月28日 18:31,Rasmus Villemoes wrote: > >> -Original Message- >> From: Rasmus Villemoes >> Sent: 2019年2月28日 18:31 >> To: Qiang Zhao ; Leo Li >> Cc: Scott Wood ; linux-kernel@vger.kernel.org; Timur Tabi >> ; Rasmus Villemoes >> Subject:

Re: [PATCH] mm: hwpoison: fix thp split handing in soft_offline_in_use_page()

2019-02-28 Thread zhong jiang
On 2019/3/1 15:29, Naoya Horiguchi wrote: > On Tue, Feb 26, 2019 at 10:34:32PM +0800, zhong jiang wrote: >> On 2019/2/26 21:51, Kirill A. Shutemov wrote: >>> On Tue, Feb 26, 2019 at 07:18:00PM +0800, zhong jiang wrote: From: zhongjiang When soft_offline_in_use_page() runs on a thp

Re: [PATCH v4 1/9] staging: iio: ad7780: add gain & filter gpio support

2019-02-28 Thread Dan Carpenter
On Fri, Mar 01, 2019 at 06:56:14AM +, Ardelean, Alexandru wrote: > On Thu, 2019-02-28 at 11:23 -0300, Renato Lui Geh wrote: > > > > > > Previously, the AD7780 driver only supported gpio for the 'powerdown' > > pin. This commit adds suppport for the 'gain' and 'filter' pin. > > > >

Re: [PATCH v4 5/9] staging: iio: ad7780: move regulator to after GPIO init

2019-02-28 Thread Ardelean, Alexandru
On Thu, 2019-02-28 at 11:25 -0300, Renato Lui Geh wrote: > > > To maintain consistency between ad7780_probe and ad7780_remove orders, > regulator initialization has been moved to after GPIO initializations. > > Signed-off-by: Renato Lui Geh > --- > drivers/staging/iio/adc/ad7780.c | 26

[PATCH] mm: vmscan: show zone type in kswapd tracepoints

2019-02-28 Thread Yafang Shao
If we want to know the zone type, we have to check whether CONFIG_ZONE_DMA, CONFIG_ZONE_DMA32 and CONFIG_HIGHMEM are set or not, that's not so convenient. We'd better show the zone type directly. Signed-off-by: Yafang Shao --- include/trace/events/vmscan.h | 9 ++--- 1 file changed, 6

[PATCH] f2fs: fix to do sanity check with inode.i_inline_xattr_size

2019-02-28 Thread Chao Yu
As Paul Bandha reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=202709 When I run the poc on the mounted f2fs img I get a buffer overflow in read_inline_xattr due to there being no sanity check on the value of i_inline_xattr_size. I created the img by just modifying the value

RE: [PATCH v2] arm64: dts: ls1028a: Add Audio DT nodes

2019-02-28 Thread Alison Wang
> On Wed, Feb 20, 2019 at 04:44:57PM +0800, Alison Wang wrote: > > This patch adds Audio DT nodes for LS1028ARDB and LS1028AQDS boards. > > > > Signed-off-by: Alison Wang > > --- > > Changes in v2: > > - Modify some nodes' names. > > - Use GIC_SPI and IRQ_TYPE_LEVEL_HIGH. > > > >

Re: [PATCH v2] dts: arm64: add CoreSight trace support for hi3660

2019-02-28 Thread Leo Yan
Hi Wanglai, On Thu, Feb 28, 2019 at 02:33:23PM +0800, Wanglai Shi wrote: > This patch adds devicetree entries for the CoreSight trace > components on hi3660. > > Signed-off-by: Wanglai Shi > --- > .../arm64/boot/dts/hisilicon/hi3660-coresight.dtsi | 429 > + >

Re: [PATCH] mm: hwpoison: fix thp split handing in soft_offline_in_use_page()

2019-02-28 Thread Naoya Horiguchi
On Tue, Feb 26, 2019 at 10:34:32PM +0800, zhong jiang wrote: > On 2019/2/26 21:51, Kirill A. Shutemov wrote: > > On Tue, Feb 26, 2019 at 07:18:00PM +0800, zhong jiang wrote: > >> From: zhongjiang > >> > >> When soft_offline_in_use_page() runs on a thp tail page after pmd is plit, > >

Re: [PATCH 10/14] nios2: define syscall_get_arch()

2019-02-28 Thread Ley Foon Tan
On Wed, 2019-02-27 at 18:31 +0300, Dmitry V. Levin wrote: > syscall_get_arch() is required to be implemented on all architectures > in addition to already implemented syscall_get_nr(), > syscall_get_arguments(), syscall_get_error(), and > syscall_get_return_value() functions in order to extend the

Re: [PATCH v2] mfd: cros_ec: instantiate properly CrOS ISH MCU device

2019-02-28 Thread Andy Shevchenko
On Fri, Mar 01, 2019 at 09:36:11AM +0530, Rushikesh S Kadam wrote: > Integrated Sensor Hub (ISH) is also a MCU running EC > having feature bit EC_FEATURE_ISH. Instantiate it as > a special CrOS EC device with device name 'cros_ish'. > v2 > - Addressed review comments to term the CrOS EC device as

[PATCH v2] ARM: dts: imx6dl-yapp4: Use rgmii-id phy mode on the cpu port

2019-02-28 Thread Michal Vokáč
Use rgmii-id phy mode for the CPU port (MAC0) of the QCA8334 switch to add delays to both Tx and Rx clock. It worked with the rgmii mode before because the qca8k driver (incorrectly) enabled delays in that mode and rgmii-id was not implemented at all. Commit 5ecdd77c61c8 ("net: dsa: qca8k:

Re: [PATCH 2/2] mmc: sdhci-omap: Don't finish_mrq() on a command error during tuning

2019-02-28 Thread kbuild test robot
Hi Faiz, Thank you for the patch! Yet something to improve: [auto build test ERROR on ulf.hansson-mmc/next] [also build test ERROR on v5.0-rc8 next-20190228] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [RFC net-next 8/8] net/mlx5: Add subdev driver to bind to subdev devices

2019-02-28 Thread Greg KH
On Thu, Feb 28, 2019 at 11:37:52PM -0600, Parav Pandit wrote: > Add a subdev driver to probe the subdev devices and create fake > netdevice for it. So I'm guessing here is the "meat" of the whole goal here? You just want multiple netdevices per PCI device? Why can't you do that today in your

Re: [PATCH v4 4/9] staging:iio:ad7780: add chip ID values and mask

2019-02-28 Thread Ardelean, Alexandru
On Thu, 2019-02-28 at 11:24 -0300, Renato Lui Geh wrote: > > > The ad7780 supports both the ad778x and ad717x families. Each chip has > a corresponding ID. This patch provides a mask for extracting ID values > from the status bits and also macros for the correct values for the > ad7170, ad7171,

Re: [RFC net-next 7/8] net/mlx5: Add devlink subdev life cycle command support

2019-02-28 Thread Greg KH
On Thu, Feb 28, 2019 at 11:37:51PM -0600, Parav Pandit wrote: > --- /dev/null > +++ b/drivers/net/ethernet/mellanox/mlx5/core/subdev.c > @@ -0,0 +1,55 @@ > +// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB For new stuff, just use GPL-2.0, no need to keep the mistake of the Linux-OpenIB license

Re: [PATCH v4 3/9] staging: iio: ad7780: set pattern values and masks directly

2019-02-28 Thread Ardelean, Alexandru
On Thu, 2019-02-28 at 11:24 -0300, Renato Lui Geh wrote: > > > The AD7780 driver contains status pattern bits designed for checking > whether serial transfers have been correctly performed. Pattern macros > were previously generated through bit fields. This patch sets good > pattern values

Re: [RFC net-next 1/8] subdev: Introducing subdev bus

2019-02-28 Thread Greg KH
On Thu, Feb 28, 2019 at 11:37:45PM -0600, Parav Pandit wrote: > Introduce a new subdev bus which holds sub devices created from a > primary device. These devices are named as 'subdev'. > A subdev is identified similarly to pci device using 16-bit vendor id > and device id. > Unlike PCI devices,

RE: [PATCH] kbuild: [bin]deb-pkg: add DPKG_FLAGS variable

2019-02-28 Thread yamada.masahiro
> -Original Message- > From: Kacper Kołodziej [mailto:kac...@kolodziej.it] > Sent: Tuesday, February 05, 2019 9:38 PM > To: Yamada, Masahiro/山田 真弘 ; > michal.l...@markovi.net > Cc: linux-kbu...@vger.kernel.org; linux-kernel@vger.kernel.org; > kac...@kolodziej.it > Subject: [PATCH]

[PATCH 3/3] kbuild: clean up scripts/gcc-version.sh

2019-02-28 Thread Masahiro Yamada
Now that the Kconfig is the only user of this script, we can drop unneeded code. Remove the -p option, and stop prepending the output with zero, so that Kconfig can directly use the output from this script. Signed-off-by: Masahiro Yamada --- init/Kconfig| 2 +-

Re: [PATCH v5 03/10] arm64: add sysfs vulnerability show for meltdown

2019-02-28 Thread Andre Przywara
Hi, On 2/26/19 7:05 PM, Jeremy Linton wrote: Display the mitigation status if active, otherwise assume the cpu is safe unless it doesn't have CSV3 and isn't in our whitelist. Signed-off-by: Jeremy Linton --- arch/arm64/kernel/cpufeature.c | 47 ++ 1 file

[PATCH 2/3] kbuild: remove cc-version macro

2019-02-28 Thread Masahiro Yamada
There is no more direct user of this macro; it is only used by cc-ifversion. Calling this macro is not efficient since it invokes the compiler to get the compiler version. CONFIG_GCC_VERSION is already calculated in the Kconfig stage, so Makefile can reuse it. Here is a note about the slight

[PATCH 1/3] kbuild: update comment block of scripts/clang-version.sh

2019-02-28 Thread Masahiro Yamada
Commit 469cb7376c06 ("kconfig: add CC_IS_CLANG and CLANG_VERSION") changed the code, but missed to update the comment block. The -p option was gone, and the output is 5-digit (or 6-digit when Clang 10 is released). Update the comment now. Signed-off-by: Masahiro Yamada ---

Re: [PATCH] perf c2c: Fix c2c report for empty numa node

2019-02-28 Thread Ravi Bangoria
On 2/28/19 9:52 PM, Jiri Olsa wrote: > how about attached change (untested)? LGTM. Would you mind sending a patch. > > but I wonder there are some other hidden > bugs wrt empty node > > jirka > > > --- > diff --git a/tools/perf/builtin-c2c.c b/tools/perf/builtin-c2c.c > index

Re: [PATCH] mfd: twl-core: disable irq while suspended

2019-02-28 Thread Andreas Kemnade
Hi, On Sat, 23 Feb 2019 10:23:23 -0800 Tony Lindgren wrote: > * Andreas Kemnade [190223 11:48]: > > Since commit > > 6e2bd956936 ("i2c: omap: Use noirq system sleep pm ops to idle device for > > suspend") > > on gta04 we have handle_twl4030_pih() called in situations where > >

[PATCH v5 3/3] PCI: hv: Refactor hv_irq_unmask() to use cpumask_to_vpset()

2019-02-28 Thread Maya Nakamura
Remove the duplicate implementation of cpumask_to_vpset() and use the shared implementation. Export hv_max_vp_index, which is required by cpumask_to_vpset(). Signed-off-by: Maya Nakamura Reviewed-by: Michael Kelley Reviewed-by: Vitaly Kuznetsov Tested-by: Vitaly Kuznetsov --- Changes in v5:

Re: [PATCH v3 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-02-28 Thread Masami Hiramatsu
Hi Joel, On Thu, 28 Feb 2019 22:26:11 -0500 Joel Fernandes wrote: > On Fri, Mar 01, 2019 at 11:28:26AM +0900, Masami Hiramatsu wrote: > > Hi Joel, > > Hi Masami, > > > On Thu, 28 Feb 2019 10:00:54 -0500 > > Joel Fernandes wrote: > > > > > > Hmm, isn't it easier to add kernel-headers package

Re: [PATCH v5 10/10] arm64: enable generic CPU vulnerabilites support

2019-02-28 Thread Andre Przywara
Hi, On 2/26/19 7:05 PM, Jeremy Linton wrote: From: Mian Yousaf Kaukab Enable CPU vulnerabilty show functions for spectre_v1, spectre_v2, meltdown and store-bypass. Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Jeremy Linton Reviewed-by: Andre Przywara Thanks, Andre. ---

Re: [PATCH v5 09/10] arm64: add sysfs vulnerability show for speculative store bypass

2019-02-28 Thread Andre Przywara
Hi, On 2/26/19 7:05 PM, Jeremy Linton wrote: Return status based on ssbd_state and the arm64 SSBS feature. If the mitigation is disabled, or the firmware isn't responding then return the expected machine state based on a new blacklist of known vulnerable cores. Signed-off-by: Jeremy Linton

Re: [PATCH v5 08/10] arm64: Always enable ssb vulnerability detection

2019-02-28 Thread Andre Przywara
Hi, On 2/26/19 7:05 PM, Jeremy Linton wrote: The ssb detection logic is necessary regardless of whether the vulnerability mitigation code is built into the kernel. Break it out so that the CONFIG option only controls the mitigation logic and not the vulnerability detection. Signed-off-by:

Re: [PATCH v4 2/9] staging: iio: ad7780: add filter reading to ad778x

2019-02-28 Thread Ardelean, Alexandru
On Thu, 2019-02-28 at 11:24 -0300, Renato Lui Geh wrote: > > > This patch adds the new feature of reading the filter odr value for > ad778x chips. This value is stored in the chip's state struct whenever a > read or write call is performed on the chip's driver. > > This feature requires sharing

[PATCH v5 2/3] PCI: hv: Replace hv_vp_set with hv_vpset

2019-02-28 Thread Maya Nakamura
Remove a duplicate definition of VP set (hv_vp_set) and use the common definition (hv_vpset) that is used in other places. Change the order of the members in struct hv_pcibus_device so that the declaration of retarget_msi_interrupt_params is the last member. Struct hv_vpset, which contains a

[PATCH] usb: introduce usb_ep_type_string() function

2019-02-28 Thread Chunfeng Yun
In some places, the code prints a human-readable USB endpoint transfer type (e.g. "bulk"). This involves a switch statement sometimes wrapped around in ({ ... }) block leading to code repetition. To make this scenario easier, here introduces usb_ep_type_string() function, which returns a

Re: [PATCH v5 07/10] arm64: add sysfs vulnerability show for spectre v2

2019-02-28 Thread Andre Przywara
Hi, On 2/26/19 7:05 PM, Jeremy Linton wrote: Add code to track whether all the cores in the machine are vulnerable, and whether all the vulnerable cores have been mitigated. Once we have that information we can add the sysfs stub and provide an accurate view of what is known about the machine.

Re: [PATCH v5 06/10] arm64: Always enable spectrev2 vulnerability detection

2019-02-28 Thread Andre Przywara
Hi, On 2/26/19 7:05 PM, Jeremy Linton wrote: The sysfs patches need to display machine vulnerability status regardless of kernel config. Prepare for that by breaking out the vulnerability/mitigation detection code from the logic which implements the mitigation. Signed-off-by: Jeremy Linton

Re: [PATCH v5 05/10] arm64: Use firmware to detect CPUs that are not affected by Spectre-v2

2019-02-28 Thread Andre Przywara
Hi, On 2/26/19 7:05 PM, Jeremy Linton wrote: From: Marc Zyngier The SMCCC ARCH_WORKAROUND_1 service can indicate that although the firmware knows about the Spectre-v2 mitigation, this particular CPU is not vulnerable, and it is thus not necessary to call the firmware on this CPU. Let's use

Re: [PATCH v5 04/10] arm64: Advertise mitigation of Spectre-v2, or lack thereof

2019-02-28 Thread Andre Przywara
Hi, On 2/26/19 7:05 PM, Jeremy Linton wrote: From: Marc Zyngier We currently have a list of CPUs affected by Spectre-v2, for which we check that the firmware implements ARCH_WORKAROUND_1. It turns out that not all firmwares do implement the required mitigation, and that we fail to let the

Re: + include-linux-typesh-use-unsigned-int-instead-of-unsigned.patch added to -mm tree

2019-02-28 Thread Alexey Dobriyan
On Fri, Mar 01, 2019 at 09:13:27AM +0900, Masahiro Yamada wrote: > On Fri, Mar 1, 2019 at 7:08 AM Alexey Dobriyan wrote: > > > > On Thu, Feb 28, 2019 at 09:41:09AM -0800, a...@linux-foundation.org wrote: > > > --- > > >

[PATCH v5 1/3] PCI: hv: Add __aligned(8) to struct retarget_msi_interrupt

2019-02-28 Thread Maya Nakamura
Because Hyper-V requires that hypercall arguments be aligned on an 8 byte boundary, add __aligned(8) to struct retarget_msi_interrupt. Link: https://lore.kernel.org/lkml/87k1hlqlby@vitty.brq.redhat.com/ Signed-off-by: Maya Nakamura --- drivers/pci/controller/pci-hyperv.c | 2 +- 1 file

Re: [PATCH v4 1/9] staging: iio: ad7780: add gain & filter gpio support

2019-02-28 Thread Ardelean, Alexandru
On Thu, 2019-02-28 at 11:23 -0300, Renato Lui Geh wrote: > > > Previously, the AD7780 driver only supported gpio for the 'powerdown' > pin. This commit adds suppport for the 'gain' and 'filter' pin. > > Signed-off-by: Renato Lui Geh > Signed-off-by: Giuliano Belinassi > Co-developed-by:

Re: [PATCH v5 02/10] arm64: add sysfs vulnerability show for spectre v1

2019-02-28 Thread Andre Przywara
Hi, On 2/26/19 7:05 PM, Jeremy Linton wrote: From: Mian Yousaf Kaukab spectre v1, has been mitigated, and the mitigation is always active. Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Jeremy Linton --- arch/arm64/kernel/cpu_errata.c | 6 ++ 1 file changed, 6 insertions(+) diff

[PATCH v5 0/3] PCI: hv: Refactor hv_irq_unmask() to use hv_vpset and cpumask_to_vpset()

2019-02-28 Thread Maya Nakamura
This patchset removes a duplicate definition of VP set (hv_vp_set) and uses the common definition (hv_vpset) that is used in other places. It changes the order of the members in struct hv_pcibus_device due to flexible array in hv_vpset. It also removes the duplicate implementation of

Re: [PATCH v5 01/10] arm64: Provide a command line to disable spectre_v2 mitigation

2019-02-28 Thread Andre Przywara
Hi, On 2/26/19 7:05 PM, Jeremy Linton wrote: There are various reasons, including bencmarking, to disable spectrev2 mitigation on a machine. Provide a command-line to do so. Signed-off-by: Jeremy Linton Reviewed-by: Andre Przywara Cheers, Andre. Cc: Jonathan Corbet Cc:

Re: [PATCH v4 01/10] feature: implement libzstd check, LIBZSTD_DIR and NO_LIBZSTD defines

2019-02-28 Thread Alexey Budankov
On 28.02.2019 23:11, Alexey Budankov wrote: > > On 28.02.2019 21:46, Arnaldo Carvalho de Melo wrote: >> Em Thu, Feb 28, 2019 at 11:59:01AM +0300, Alexey Budankov escreveu: >>> +++ b/tools/build/Makefile.feature >>> @@ -66,7 +66,8 @@ FEATURE_TESTS_BASIC := \ >>>

[PATCH V5 1/2] watchdog: imx_sc: Add i.MX system controller watchdog support

2019-02-28 Thread Anson Huang
i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller inside, the system controller is in charge of controlling power, clock and watchdog etc.. This patch adds i.MX system controller watchdog driver support, watchdog operation needs to be done in secure EL3 mode via

[PATCH V5 2/2] arm64: defconfig: add support for i.MX system controller watchdog

2019-02-28 Thread Anson Huang
Enable CONFIG_IMX_SC_WDT as module to support i.MX system controller watchdog. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 2d9c390..690f4ba

Re: [PATCH v5 3/6] uaccess: Add non-pagefault user-space read functions

2019-02-28 Thread Yonghong Song
On 2/28/19 6:29 PM, Masami Hiramatsu wrote: > Hi Yonghong, > > On Thu, 28 Feb 2019 22:49:43 + > Yonghong Song wrote: > >> >> >> On 2/28/19 8:03 AM, Masami Hiramatsu wrote: >>> Add probe_user_read(), strncpy_from_unsafe_user() and >>> strnlen_unsafe_user() which allows caller to access

Re: [PATCH] ARM: dts: imx6dl-yapp4: Use rgmii-id phy mode on the cpu port

2019-02-28 Thread Michal Vokáč
On 01. 03. 19 3:13, Shawn Guo wrote: On Tue, Feb 19, 2019 at 02:37:00PM +0100, Michal Vokáč wrote: The PHY must add delays to both Tx and Rx clock on the cpu port to work propperly. It worked with the rgmii mode before beacause the qca8k driver (incorrecly) enabled delays in that mode.

Zdravstvujte Vas interesuet parsing kontaktov?

2019-02-28 Thread xrulov . vv
Zdravstvujte Vas interesuet parsing kontaktov?

Re: [PATCH v3 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-02-28 Thread Masahiro Yamada
On Fri, Mar 1, 2019 at 12:06 AM Joel Fernandes wrote: > > On Thu, Feb 28, 2019 at 11:17:51AM +0900, Masahiro Yamada wrote: > > Hi Joel, > > > > > > On Thu, Feb 28, 2019 at 4:40 AM Joel Fernandes (Google) > > wrote: > > > > > > Introduce in-kernel headers and other artifacts which are made

[PATCH v2] powernv: powercap: Add hard minimum powercap

2019-02-28 Thread Shilpasri G Bhat
In POWER9, OCC(On-Chip-Controller) provides for hard and soft system powercapping range. The hard powercap range is guaranteed while soft powercap may or may not be enforced by OCC due to various power-thermal reasons based on system configuration and workloads. This patch adds a sysfs file to

[PATCH] regulator: lp87565: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/lp87565-regulator.c | 47 --- 1 file changed, 7 insertions(+), 40 deletions(-) diff --git a/drivers/regulator/lp87565-regulator.c

[PATCH v2] mm: vmscan: add tracepoints for node reclaim

2019-02-28 Thread Yafang Shao
In the page alloc fast path, it may do node reclaim, which may cause latency spike. We should add tracepoint for this event, and also measure the latency it causes. So bellow two tracepoints are introduced, mm_vmscan_node_reclaim_begin mm_vmscan_node_reclaim_end Signed-off-by:

[PATCH] mm: vmscan: drop may_writepage and classzone_idx from direct reclaim begin template

2019-02-28 Thread Yafang Shao
There are three tracepoints using this template, which are mm_vmscan_direct_reclaim_begin, mm_vmscan_memcg_reclaim_begin, mm_vmscan_memcg_softlimit_reclaim_begin. Regarding mm_vmscan_direct_reclaim_begin, sc.may_writepage is !laptop_mode, that's a static setting, and reclaim_idx is derived from

Re: [PATCH v6 3/6] arm64/kvm: context-switch ptrauth registers

2019-02-28 Thread Amit Daniel Kachhap
On 2/21/19 9:21 PM, Dave Martin wrote: On Thu, Feb 21, 2019 at 12:29:42PM +, Mark Rutland wrote: On Tue, Feb 19, 2019 at 02:54:28PM +0530, Amit Daniel Kachhap wrote: From: Mark Rutland When pointer authentication is supported, a guest may wish to use it. This patch adds the necessary

[PATCH RFT] regulator: lp87565: Fix missing register for LP87565_BUCK_0

2019-02-28 Thread Axel Lin
LP87565_BUCK_0 is missed, fix it. Fixes: f0168a9bf ("regulator: lp87565: Add support for lp87565 PMIC regulators") Signed-off-by: Axel Lin --- Hi J Keerthy, While reading the code, it seems strange that LP87565_BUCK_0 is never used. So current code only register 3 BUCKs for lp87565-regulator.

Re: [PATCH net-next] net: dsa: Do not configure VLAN ID 0

2019-02-28 Thread Heiner Kallweit
On 01.03.2019 00:49, Florian Fainelli wrote: > Because we skip the prepare phase, we would not get a chance to have the > port_vlan_prepare() callback return -EOPNOTSUPP and tell us about that. > This causes problems with mv88e6xxx which specifically checks for VLAN > ID = 0. Turns out we do not

Re: [PATCH v6 2/6] arm64/kvm: preserve host MDCR_EL2 value

2019-02-28 Thread Amit Daniel Kachhap
Hi, On 2/21/19 9:21 PM, Dave Martin wrote: On Tue, Feb 19, 2019 at 02:54:27PM +0530, Amit Daniel Kachhap wrote: Save host MDCR_EL2 value during kvm HYP initialisation and restore after every switch from host to guest. There should not be any change in functionality due to this. The value of

A quesiton about commit 3a63f70bf4c3

2019-02-28 Thread Baoquan He
Hi Chao, I am back porting this commit to our distrols from tip. 3a63f70bf4c3 x86/boot: Early parse RSDP and save it in boot_params Findind out those SRAT handling related declarations are out of BOOT_COMPRESSED_MISC_H ifdeffery. Is this made on purpose? Saw "misc.h" is included in several

linux-next: manual merge of the nvdimm tree with the xen-tip tree

2019-02-28 Thread Stephen Rothwell
Hi all, [Thanks, Dan for the heads up and resolution.] Today's linux-next merge of the nvdimm tree got a conflict in: mm/memory_hotplug.c between commit: 357b4da50a62 ("x86: respect memory size limiting via mem= parameter") from the xen-tip tree and commit: 2794129e902d

[PATCH] netfilter: nf_ct_helper: Fix possible panic when nf_conntrack_helper_unregister is used in an unloadable module

2019-02-28 Thread Su Yanjun
From: Su Yanjun Because nf_conntrack_helper_unregister maybe used in an unloadable module, it uses 'synchronize_rcu' which may cause kernel panic. According to the artical: RCU and Unloadable Modules https://lwn.net/Articles/217484/ When we have a heavy rcu callback load, then some of the

Re: [PATCH v6 1/6] arm64/kvm: preserve host HCR_EL2 value

2019-02-28 Thread Amit Daniel Kachhap
Hi, On 2/21/19 9:19 PM, Dave Martin wrote: On Tue, Feb 19, 2019 at 02:54:26PM +0530, Amit Daniel Kachhap wrote: From: Mark Rutland When restoring HCR_EL2 for the host, KVM uses HCR_HOST_VHE_FLAGS, which is a constant value. This works today, as the host HCR_EL2 value is always the same, but

Re: [linux-sunxi] [PATCH v2 00/10] Allwinner sunxi message box support

2019-02-28 Thread Corentin Labbe
On Thu, Feb 28, 2019 at 11:29:37PM -0600, Samuel Holland wrote: > This series adds support for the "hardware message box" in sun8i, sun9i, > and sun50i SoCs, used for communication with the ARISC management > processor (the platform's equivalent of the ARM SCP). The end goal is to > use the

Re: [PATCH] drm/virtio: Allow userspace to mmap() framebuffer

2019-02-28 Thread Gerd Hoffmann
On Thu, Feb 28, 2019 at 10:47:41AM -0600, Joshua Watt wrote: > Reports the size of the virtgpu framebuffer to userspace and installs > the deferred I/O handlers so that userspace can mmap() and write to it. Fixed already, as side effect of switching virtio to the generic fbdev emulation. Patches

[git pull] drm fixes for 5.0 final

2019-02-28 Thread Dave Airlie
Hi Linus, Three final fixes, one for a feature that is new in this kernel, one bochs fix for qemu riscv and one atomic modesetting fix. I've left a few of the other late fixes until next as I didn't want to throw in anything that wasn't really necessary. Dave. drm-fixes-2019-03-01: drm amdgfx,

Re: [PATCH] jbd2: jbd2_get_transaction does not need to return a value

2019-02-28 Thread Theodore Y. Ts'o
On Tue, Feb 26, 2019 at 05:35:04PM +0100, Jan Kara wrote: > On Wed 27-02-19 00:07:27, Liu Song wrote: > > In jbd2_get_transaction, a new transaction is initialized, > > and set to the j_running_transaction. No need for a return > > value, so remove it. > > Also, adjust some comments to match the

RE: [PATCH net-next 0/8] Introducing subdev bus and devlink extension

2019-02-28 Thread Parav Pandit
> -Original Message- > From: Parav Pandit > Sent: Thursday, February 28, 2019 11:36 PM > To: net...@vger.kernel.org; linux-kernel@vger.kernel.org; > michal.l...@markovi.net; da...@davemloft.net; > gre...@linuxfoundation.org; Jiri Pirko > Cc: Parav Pandit > Subject: [PATCH net-next

[RFC net-next 2/8] subdev: Introduce pm callbacks

2019-02-28 Thread Parav Pandit
Keep power management callbacks in place to optionally notify drivers who register them. Signed-off-by: Parav Pandit --- drivers/subdev/subdev_main.c | 59 1 file changed, 59 insertions(+) diff --git a/drivers/subdev/subdev_main.c

[RFC net-next 3/8] modpost: Add support for subdev device id table

2019-02-28 Thread Parav Pandit
Add support to parse subdev module device id table. Signed-off-by: Parav Pandit --- scripts/mod/devicetable-offsets.c | 4 scripts/mod/file2alias.c | 15 +++ 2 files changed, 19 insertions(+) diff --git a/scripts/mod/devicetable-offsets.c

[RFC net-next 5/8] devlink: Add variant of devlink_register/unregister

2019-02-28 Thread Parav Pandit
Add variants of devlink_register and devlink_unregister which doesn't explicitly acquire/release devlink_mutex lock, but requires that caller hold the devlink_mutex lock. This is required to create child devlink devices while working on parent devlink device. Change-Id:

[RFC net-next 1/8] subdev: Introducing subdev bus

2019-02-28 Thread Parav Pandit
Introduce a new subdev bus which holds sub devices created from a primary device. These devices are named as 'subdev'. A subdev is identified similarly to pci device using 16-bit vendor id and device id. Unlike PCI devices, scope of subdev is limited to Linux kernel. A central entry that assigns

[RFC net-next 6/8] devlink: Add support for devlink subdev lifecycle

2019-02-28 Thread Parav Pandit
Add support for creating and deleting devlink subdevices. For every subdev created on subdev bus, has corresponding devlink device. This devlink device serves the control point for any internal device configuration which is usually required before setting up the protocol specific devices such as

[RFC net-next 7/8] net/mlx5: Add devlink subdev life cycle command support

2019-02-28 Thread Parav Pandit
Implement devlink device add/del command which cretes dummy subdev devices that actual driver can bind to using standard device driver model. Signed-off-by: Parav Pandit --- drivers/net/ethernet/mellanox/mlx5/core/Makefile | 1 + drivers/net/ethernet/mellanox/mlx5/core/main.c | 4 ++

[RFC net-next 8/8] net/mlx5: Add subdev driver to bind to subdev devices

2019-02-28 Thread Parav Pandit
Add a subdev driver to probe the subdev devices and create fake netdevice for it. Signed-off-by: Parav Pandit --- drivers/net/ethernet/mellanox/mlx5/core/Makefile | 2 +- drivers/net/ethernet/mellanox/mlx5/core/main.c | 8 +- .../net/ethernet/mellanox/mlx5/core/mlx5_core.h| 3 +

[RFC net-next 4/8] devlink: Introduce and use devlink_init/cleanup() in alloc/free

2019-02-28 Thread Parav Pandit
There is usecase to allocate devlink instance along with other structure instance. This is case when struct devlink and struct device are desired to be part of single structure instance whose life cycle is driven by the life cycle of the core device. To support it, have more grandular init/cleanup

[RFC net-next 0/8] Introducing subdev bus and devlink extension

2019-02-28 Thread Parav Pandit
Use case: - A user wants to create/delete hardware linked sub devices without using SR-IOV. These devices for a pci device can be netdev (optional rdma device) or other devices. Such sub devices share some of the PCI device resources and also have their own dedicated resources. Few

[PATCH net-next 0/8] Introducing subdev bus and devlink extension

2019-02-28 Thread Parav Pandit
Use case: - A user wants to create/delete hardware linked sub devices without using SR-IOV. These devices for a pci device can be netdev (optional rdma device) or other devices. Such sub devices share some of the PCI device resources and also have their own dedicated resources. Few

[PATCH v2 04/10] dt-bindings: mailbox: Add a sunxi message box binding

2019-02-28 Thread Samuel Holland
This mailbox hardware is present in Allwinner sun8i, sun9i, and sun50i SoCs. Add a device tree binding for it. Signed-off-by: Samuel Holland --- .../bindings/mailbox/sunxi-msgbox.txt | 44 +++ 1 file changed, 44 insertions(+) create mode 100644

[PATCH v2 01/10] clk: sunxi-ng: sun8i: Mark the msgbox clock as critical

2019-02-28 Thread Samuel Holland
The msgbox clock is critical because the hardware is shared between Linux and system firmware. The message box may be used by the EL3 secure monitor's PSCI implementation. On 64-bit sunxi SoCs, this is provided by ARM TF-A; 32-bit SoCs use a different implementation. The secure monitor uses the

[PATCH v2 02/10] clk: sunxi-ng: sun9i: Mark the msgbox clock as critical

2019-02-28 Thread Samuel Holland
The msgbox clock is critical because the hardware is shared between Linux and system firmware. The message box may be used by the EL3 secure monitor's PSCI implementation. On 64-bit sunxi SoCs, this is provided by ARM TF-A; 32-bit SoCs use a different implementation. The secure monitor uses the

[PATCH v2 10/10] arm64: dts: allwinner: h6: Add msgbox node

2019-02-28 Thread Samuel Holland
The H6 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file

[PATCH v2 03/10] clk: sunxi-ng: sun50i: Mark the msgbox clock as critical

2019-02-28 Thread Samuel Holland
The msgbox clock is critical because the hardware is shared between Linux and system firmware. The message box may be used by the EL3 secure monitor's PSCI implementation. On 64-bit sunxi SoCs, this is provided by ARM TF-A; 32-bit SoCs use a different implementation. The secure monitor uses the

[PATCH v2 09/10] arm64: dts: allwinner: a64: Add msgbox node

2019-02-28 Thread Samuel Holland
The A64 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 10 ++ 1 file

[PATCH v2 00/10] Allwinner sunxi message box support

2019-02-28 Thread Samuel Holland
This series adds support for the "hardware message box" in sun8i, sun9i, and sun50i SoCs, used for communication with the ARISC management processor (the platform's equivalent of the ARM SCP). The end goal is to use the arm_scpi driver as a client, communicating with firmware running on the ARISC

[PATCH v2 07/10] ARM: dts: sunxi: a83t: Add msgbox node

2019-02-28 Thread Samuel Holland
The A83T SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10 ++ 1 file changed, 10

[PATCH v2 05/10] mailbox: sunxi-msgbox: Add a new mailbox driver

2019-02-28 Thread Samuel Holland
Allwinner sun8i, sun9i, and sun50i SoCs contain a hardware message box used for communication between the ARM CPUs and the ARISC management coprocessor. The hardware contains 8 unidirectional 4-message FIFOs. Add a driver for it, so it can be used for SCPI or other communication protocols.

[PATCH v2 06/10] ARM: dts: sunxi: a80: Add msgbox node

2019-02-28 Thread Samuel Holland
The A80 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun9i-a80.dtsi | 10 ++ 1 file changed, 10

[PATCH v2 08/10] ARM: dts: sunxi: h3/h5: Add msgbox node

2019-02-28 Thread Samuel Holland
The H3 and H5 SoCs contain a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 10 ++ 1 file

[PATCH v2 5/5] PCI: dwc: Save root bus for driver remove

2019-02-28 Thread Jisheng Zhang
Currently dwc host doesn't support the remove, but nothing prevent us from supporting it. Save the root bus for clean up work in driver remove code path. After this patch, the dwc host users could implement its remove as: static int foo_pcie_remove(struct platform_device *pdev) { ...

[PATCH v2 4/5] PCI: dwc: Use devm_pci_alloc_host_bridge() to simplify the code

2019-02-28 Thread Jisheng Zhang
Use devm_pci_alloc_host_bridge() to simplify the error code path. Signed-off-by: Jisheng Zhang --- .../pci/controller/dwc/pcie-designware-host.c | 21 +++ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c

[PATCH v2 3/5] PCI: dwc: Free MSI in the error code path of dw_pcie_host_init()

2019-02-28 Thread Jisheng Zhang
If we ever did some msi related initializations, we need to call dw_pcie_free_msi() in the error code path. Signed-off-by: Jisheng Zhang --- drivers/pci/controller/dwc/pcie-designware-host.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[PATCH v2 2/5] PCI: dwc: Free the page for MSI IRQ in dw_pcie_free_msi()

2019-02-28 Thread Jisheng Zhang
To avoid memory leak, we need to free the page for MSI in dw_pcie_free_msi(). Signed-off-by: Jisheng Zhang --- drivers/pci/controller/dwc/pcie-designware-host.c | 3 +++ drivers/pci/controller/dwc/pcie-designware.h | 1 + 2 files changed, 4 insertions(+) diff --git

[PATCH v2 1/5] PCI: dwc: Fix dw_pcie_free_msi() if msi_irq is invalid

2019-02-28 Thread Jisheng Zhang
We should check msi_irq before calling irq_set_chained_handler() and irq_set_handler_data(). Signed-off-by: Jisheng Zhang --- drivers/pci/controller/dwc/pcie-designware-host.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH v2 0/5] PCI: dwc: Support remove

2019-02-28 Thread Jisheng Zhang
Currently, the PCI dwc host users don't support the remove, but nothing prevent us from supporting it. To achieve this goal, we need to ensure we can do necessary clean up work. Changes since v1: - address Bjorn's comments, I.E Capitalize, s/irq/IRQ/, s/msi/MSI/ Jisheng Zhang (5): PCI: dwc:

[PATCH v4 2/2] PCI: iproc: Add outbound configuration for 32-bit I/O region

2019-02-28 Thread Srinath Mannam
In the present driver outbound window configuration is done to map above 32-bit address I/O regions with corresponding PCI memory range given in ranges DT property. This patch add outbound window configuration to map below 32-bit I/O range with corresponding PCI memory, which helps to access I/O

[PATCH v4 0/2] Add IPROC PCIe new features

2019-02-28 Thread Srinath Mannam
This patch set extends support of new IPROC PCIe host controller features - Add CRS check using controller register status flags - Add outbound window mapping configuration for 32-bit I/O region This patch set is based on Linux-5.0-rc2. Changes from v3: - Addressed Lorenzo Pieralisi

[PATCH v4 1/2] PCI: iproc: Add CRS check in config read

2019-02-28 Thread Srinath Mannam
In the current implementation, config read output data 0x0001 is assumed as CRS completion. But sometimes 0x0001 can be a valid data. IPROC PCIe host controller PAXB v2 has a register to show config read status flags like SC, UR, CRS and CA. So that extra check is added to confirm the CRS

RE: [PATCH V4 1/2] watchdog: imx_sc: Add i.MX system controller watchdog support

2019-02-28 Thread Anson Huang
Hi, Guenter Best Regards! Anson Huang > -Original Message- > From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter > Roeck > Sent: 2019年3月1日 12:21 > To: Anson Huang ; catalin.mari...@arm.com; > will.dea...@arm.com; w...@linux-watchdog.org; shawn...@kernel.org; >

  1   2   3   4   5   6   7   8   9   10   >