Re: Linux messages full of `random: get_random_u32 called from`

2018-05-17 Thread Theodore Y. Ts'o
On Fri, May 18, 2018 at 01:27:03AM +, Trent Piepho wrote: > > I've hit this on an embedded system. mke2fs hangs trying to format a > persistent writable filesystem, which is where the random seed to > initialize the kernel entropy pool would be stored, because it wants 16 > bytes of non-crypt

[PATCH 4/5] pinctrl: actions: Add gpio support for Actions S900 SoC

2018-05-17 Thread Manivannan Sadhasivam
Add gpio support to pinctrl driver for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- drivers/pinctrl/actions/Kconfig| 1 + drivers/pinctrl/actions/pinctrl-owl.c | 206 + drivers/pinctrl/actions/pinctrl-owl.h | 20 drivers/pinctr

[PATCH 3/5] arm64: dts: actions: Add gpio line names to Bubblegum-96 board

2018-05-17 Thread Manivannan Sadhasivam
Add gpio line names to Actions Semi S900 based Bubblegum-96 board. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900-bubblegum-96.dts | 175 ++ 1 file changed, 175 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts b/arch/ar

[PATCH 0/5] Add gpio support for Action Semi S900 SoC

2018-05-17 Thread Manivannan Sadhasivam
This patchset adds gpio support for Actions Semi S900 SoC by extending the pinctrl driver. There were previous patches submitted for adding a standalone gpio driver based on gpiolib. But later on it has been realised that the gpio functionality is closely tied with pinctrl subsystem for this OWL fa

[PATCH 2/5] arm64: dts: actions: Add gpio properties to pinctrl node for S900

2018-05-17 Thread Manivannan Sadhasivam
Add gpio properties to pinctrl node for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s900.dtsi b/arch/arm64/boot/dts/actions/s900.dtsi index 0156483f0f4d..0

[PATCH 1/5] dt-bindings: pinctrl: Add gpio bindings for Actions S900 SoC

2018-05-17 Thread Manivannan Sadhasivam
Add gpio bindings for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/pinctrl/actions,s900-pinctrl.txt| 13 + 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/actions,s900-pinctrl.txt b/Documentation

[no subject]

2018-05-17 Thread Sherri Gallagher
Please reply me back

Re: [PATCH] PM / devfreq: Add support for QCOM devfreq FW

2018-05-17 Thread Chanwoo Choi
Hi, On 2018년 05월 17일 15:02, Saravana Kannan wrote: > The firmware present in some QCOM chipsets offloads the steps necessary for > changing the frequency of some devices (Eg: L3). This driver implements the > devfreq interface for this firmware so that various governors could be used > to scale th

Re: [RFC PATCH 00/09] Implement direct user I/O interfaces for RDMA

2018-05-17 Thread Tom Talpey
On 5/17/2018 8:22 PM, Long Li wrote: From: Long Li This patchset implements direct user I/O through RDMA. In normal code path (even with cache=none), CIFS copies I/O data from user-space to kernel-space for security reasons. With this patchset, a new mounting option is introduced to have CIFS

Re: [PATCH v1 11/11] ARM: tegra: Create platform device for tegra20-cpufreq driver

2018-05-17 Thread Viresh Kumar
On 17-05-18, 21:00, Dmitry Osipenko wrote: > Tegra20-cpufreq driver require a platform device in order to be loaded, > instantiate a simple platform device for the driver during of the machines > late initialization. > > Signed-off-by: Dmitry Osipenko > --- > arch/arm/mach-tegra/tegra.c | 4

Re: [PATCH v1 10/11] cpufreq: tegra20: Wrap cpufreq into platform driver

2018-05-17 Thread Viresh Kumar
On 17-05-18, 21:00, Dmitry Osipenko wrote: > -static int __init tegra_cpufreq_init(void) > +static int tegra20_cpufreq_probe(struct platform_device *pdev) > { > + struct tegra20_cpufreq_data *data; > int err; > > - if (!of_machine_is_compatible("nvidia,tegra20")) > - re

Re: [PATCH] printk/nmi: Prevent deadlock when serializing NMI backtraces

2018-05-17 Thread Sergey Senozhatsky
On (05/17/18 16:39), Petr Mladek wrote: > > CPU0 CPU1CPU2 > > printk() > vprintk_emit() > spin_lock(&logbuf_lock) > > trigger_all_cpu_backtrace() > raise() >

[PATCH] audit: use existing session info function

2018-05-17 Thread Richard Guy Briggs
Use the existing audit_log_session_info() function rather than hardcoding its functionality. Signed-off-by: Richard Guy Briggs --- kernel/auditfilter.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c index d7a807e..9e87377 100644

[PATCH] fs.h: fix outdated comment about file flags

2018-05-17 Thread Li Qiang
The __dentry_open function was removed in commit <2a027e7a18738>("fold __dentry_open() into its sole caller"). Signed-off-by: Li Qiang --- include/linux/fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index 760d8da1b6c7..7f07977bdf

Re: [PATCH v1 09/11] cpufreq: tegra20: Allow cpufreq driver to be built as loadable module

2018-05-17 Thread Viresh Kumar
On 17-05-18, 21:00, Dmitry Osipenko wrote: > Nothing prevents Tegra20 CPUFreq module to be unloaded, hence allow it to > be built as a non-builtin kernel module. > > Signed-off-by: Dmitry Osipenko > --- > drivers/cpufreq/Kconfig.arm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > di

[PATCH 2/2] kselftests: ftrace: Add tests for the preemptoff and irqsoff tracers

2018-05-17 Thread Joel Fernandes
From: "Joel Fernandes (Google)" Here we add unit tests for the preemptoff and irqsoff tracer by using a kernel module introduced previously to trigger atomic sections in the kernel. Cc: Steven Rostedt Cc: Peter Zilstra Cc: Ingo Molnar Cc: Mathieu Desnoyers Cc: Tom Zanussi Cc: Namhyung Kim

Re: [PATCH v1 08/11] cpufreq: tegra20: Remove unneeded variable initialization

2018-05-17 Thread Viresh Kumar
On 17-05-18, 21:00, Dmitry Osipenko wrote: > Remove unneeded variable initialization solely for consistency. > > Signed-off-by: Dmitry Osipenko > --- > drivers/cpufreq/tegra20-cpufreq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/cpufreq/tegra20-cpufreq.c >

Re: [PATCH v1 07/11] cpufreq: tegra20: Check if this is Tegra20 machine

2018-05-17 Thread Viresh Kumar
On 17-05-18, 21:00, Dmitry Osipenko wrote: > Don't even try to request the clocks during of module initialization on > non-Tegra20 machines (this is the case for a multi-platform kernel) for > consistency. > > Signed-off-by: Dmitry Osipenko > --- > drivers/cpufreq/tegra20-cpufreq.c | 4 > 1

[PATCH RFC 0/2] Tests for preemptoff and irqsoff tracers

2018-05-17 Thread Joel Fernandes
From: "Joel Fernandes (Google)" Hi, Here is test code and kselftest for testing the preemptoff and irqsoff tracers. I am posting it separately just for early feedback since its the first time I'm writing a kselftest. I am planning to include these tests in the next series posting of "Centralize

Re: [PATCH v1 06/11] cpufreq: tegra20: Remove unneeded check in tegra_cpu_init

2018-05-17 Thread Viresh Kumar
On 17-05-18, 21:00, Dmitry Osipenko wrote: > Remove checking of the CPU number for consistency as it won't ever fail > unless there is a severe bug in the cpufreq core. > > Signed-off-by: Dmitry Osipenko > --- > drivers/cpufreq/tegra20-cpufreq.c | 5 - > 1 file changed, 5 deletions(-) > > d

[PATCH 1/2] lib: Add module to simulate atomic sections for testing {preempt,irqs}off tracers

2018-05-17 Thread Joel Fernandes
From: "Joel Fernandes (Google)" In this patch we introduce a test module for simulating a long atomic section in the kernel which the preemptoff or irqsoff tracers can detect. This module is to be used only for test purposes and is default disabled. Following is the expected output (only briefly

Re: [PATCH v1 05/11] cpufreq: tegra20: Clean up included headers

2018-05-17 Thread Viresh Kumar
On 17-05-18, 21:00, Dmitry Osipenko wrote: > Remove unused/unneeded headers and sort them in the alphabet order. > > Signed-off-by: Dmitry Osipenko > --- > drivers/cpufreq/tegra20-cpufreq.c | 11 ++- > 1 file changed, 2 insertions(+), 9 deletions(-) > > diff --git a/drivers/cpufreq/tegr

Re: [PATCH v1 04/11] cpufreq: tegra20: Release clocks properly

2018-05-17 Thread Viresh Kumar
On 17-05-18, 21:00, Dmitry Osipenko wrote: > Properly put requested clocks in the module init/exit code. > > Signed-off-by: Dmitry Osipenko > --- > drivers/cpufreq/tegra20-cpufreq.c | 31 ++- > 1 file changed, 26 insertions(+), 5 deletions(-) > > diff --git a/drivers

Re: [PATCH v1 03/11] cpufreq: tegra20: Remove EMC clock usage

2018-05-17 Thread Viresh Kumar
On 17-05-18, 21:00, Dmitry Osipenko wrote: > The EMC driver has been gone 4 years ago, since the commit a7cbe92cef27 > ("ARM: tegra: remove tegra EMC scaling driver"). Remove the EMC clock > usage as it does nothing. We may consider re-implementing the EMC scaling > later, probably using PM Memory

[PATCH 2/2] kselftests: ftrace: Add tests for the preemptoff and irqsoff tracers

2018-05-17 Thread Joel Fernandes (Google)
Here we add unit tests for the preemptoff and irqsoff tracer by using a kernel module introduced previously to trigger atomic sections in the kernel. Cc: Steven Rostedt Cc: Peter Zilstra Cc: Ingo Molnar Cc: Mathieu Desnoyers Cc: Tom Zanussi Cc: Namhyung Kim Cc: Thomas Glexiner Cc: Boqun Fen

Re: [PATCH v1 01/11] cpufreq: tegra20: Change module description

2018-05-17 Thread Viresh Kumar
On 17-05-18, 21:00, Dmitry Osipenko wrote: > Change module description to be in line with the other Tegra drivers, just > for consistency. > > Signed-off-by: Dmitry Osipenko > --- > drivers/cpufreq/tegra20-cpufreq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/driver

Re: [PATCH v1 02/11] cpufreq: tegra20: Clean up whitespaces in the code

2018-05-17 Thread Viresh Kumar
On 17-05-18, 21:00, Dmitry Osipenko wrote: > Remove unneeded blank line and replace whitespaces with a tab in the code > for consistency. > > Signed-off-by: Dmitry Osipenko > --- > drivers/cpufreq/tegra20-cpufreq.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drive

Re: [PATCH] KVM: arm/arm64: add WARN_ON if size is not PAGE_SIZE aligned in unmap_stage2_range

2018-05-17 Thread Jia He
Hi Suzuki On 5/17/2018 11:03 PM, Suzuki K Poulose Wrote: > On 17/05/18 13:46, Jia He wrote: >> Hi Suzuki >> >> On 5/17/2018 4:17 PM, Suzuki K Poulose Wrote: >>> >>> Hi Jia, >>> >>> On 17/05/18 07:11, Jia He wrote: I ever met a panic under memory pressure tests(start 20 guests and run mem

Re: [PATCH v4] f2fs: fix to avoid race during access gc_thread pointer

2018-05-17 Thread Chao Yu
On 2018/5/8 5:36, Jaegeuk Kim wrote: > On 05/07, Chao Yu wrote: >> Thread A Thread BThread C >> - f2fs_remount >> - stop_gc_thread >> - f2fs_sbi_store >> - issue_discard_thread >>

Re: [PATCH v8 10/15] cpufreq: Add Kryo CPU scaling driver

2018-05-17 Thread Viresh Kumar
On 17-05-18, 14:19, Ilia Lin wrote: > +static int __init qcom_cpufreq_kryo_driver_init(void) > +{ > + size_t len; > + int ret = 0; > + u32 versions; > + enum _msm8996_version msm8996_version; > + u8 *speedbin; > + struct device *cpu_dev_silver, *cpu_dev_gold; > + struct

Re: [PATCH v5 4/4] drm/rockchip: support dp training outside dp firmware

2018-05-17 Thread Brian Norris
On Thu, May 17, 2018 at 6:41 PM, hl wrote: > On Thursday, May 17, 2018 09:51 PM, Sean Paul wrote: >> On Thu, May 17, 2018 at 05:18:00PM +0800, Lin Huang wrote: >>> DP firmware uses fixed phy config values to do training, but some >>> boards need to adjust these values to fit for their unique hardw

htmldocs: kernel/sched/fair.c:3704: warning: Function parameter or member 'flags' not described in 'attach_entity_load_avg'

2018-05-17 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3acf4e395260e3bd30a6fa29ba7eada4bf7566ca commit: ea14b57e8a181ac0561eba7a787e088f8c89f822 sched/cpufreq: Provide migration hint date: 2 months ago reproduce: make htmldocs All warnings (new ones prefixed

Re: [PATCH v5 4/4] drm/rockchip: support dp training outside dp firmware

2018-05-17 Thread hl
+ Kishon On Thursday, May 17, 2018 09:51 PM, Sean Paul wrote: On Thu, May 17, 2018 at 05:18:00PM +0800, Lin Huang wrote: DP firmware uses fixed phy config values to do training, but some boards need to adjust these values to fit for their unique hardware design. So get phy config values from d

Re: [PATCH v9 04/11] arm64: kexec_file: allocate memory walking through memblock list

2018-05-17 Thread Baoquan He
On 05/17/18 at 07:04pm, James Morse wrote: > Hi Baoquan, > > On 17/05/18 03:15, Baoquan He wrote: > > On 05/17/18 at 10:10am, Baoquan He wrote: > >> On 05/07/18 at 02:59pm, AKASHI Takahiro wrote: > >>> On Tue, May 01, 2018 at 06:46:09PM +0100, James Morse wrote: > On 25/04/18 07:26, AKASHI Ta

Re: [PATCH 1/3] f2fs: fix to wait page writeback during revoking atomic write

2018-05-17 Thread Chao Yu
Hi Jaegeuk, Could you recheck this patch? On 2018/4/23 10:36, Chao Yu wrote: > After revoking atomic write, related LBA can be reused by others, so we > need to wait page writeback before reusing the LBA, in order to avoid > interference between old atomic written in-flight IO and new IO. > > Si

Re: Linux messages full of `random: get_random_u32 called from`

2018-05-17 Thread Trent Piepho
Since I wasn't on this thread from the start, I can only find a way to reply to message in mbox format on patchwork, and this seemed the best. On Fri, 2018-04-27 at 16:10 -0400, Theodore Tso wrote: > > > This is why ultimately, we do need to attack this problem from both > ends, which means teac

[PATCH 1/6] coresight: remove CORESIGHT_LINKS_AND_SINKS dependencies and selections

2018-05-17 Thread Kim Phillips
A coresight topology doesn't need to include links, i.e., a source can be directly connected to a sink. As such, selecting and/or depending on LINKS_AND_SINKS is no longer needed. Suggested-by: Mathieu Poirier Cc: Alexander Shishkin Signed-off-by: Kim Phillips --- drivers/hwtracing/coresight/

[PATCH 4/6] coresight: move shared barrier_pkt[] to coresight_priv.h

2018-05-17 Thread Kim Phillips
barrier_pkt[] is used in various coresight components. Change barrier_pkt[] to a static definition in the coresight private header. Needed prior to allowing coresight to be built as modules. Suggested-by: Mathieu Poirier Signed-off-by: Kim Phillips --- drivers/hwtracing/coresight/coresight-pri

[PATCH 6/6] coresight: allow to build as modules

2018-05-17 Thread Kim Phillips
Allow to build coresight as modules. This greatly enhances developer efficiency by allowing the development to take place exclusively on the target, and without needing to reboot in between changes. - Kconfig bools become tristates, to allow =m - use -objs to denote merge object directives in Ma

[PATCH 3/6] coresight: use IS_ENABLED for CONFIGs that may be modules

2018-05-17 Thread Kim Phillips
Checking for CONFIG_x fails if CONFIG_x=m, use IS_ENABLED that is true for built-ins and modules instead. Required when building various coresight components as modules. Signed-off-by: Kim Phillips --- drivers/hwtracing/coresight/coresight-etm-perf.h | 2 +- drivers/hwtracing/coresight/coresigh

RE: [PATCH net-next v3 2/3] net: ethernet: freescale: Allow FEC with COMPILE_TEST

2018-05-17 Thread Andy Duan
From: Florian Fainelli Sent: 2018年5月18日 4:08 > The Freescale FEC driver builds fine with COMPILE_TEST, so make that > possible. > > Signed-off-by: Florian Fainelli Acked-by: Fugang Duan > --- > drivers/net/ethernet/freescale/Kconfig| 2 +- > drivers/net/ethernet/freescale/fec.h | 2

[PATCH 2/6] coresight: fix CORESIGHT_STM -- STM dependency

2018-05-17 Thread Kim Phillips
coresight-stm unconditionally calls stm_register_device. This patch makes it therefore depend on STM instead of just selecting STM. Signed-off-by: Kim Phillips --- drivers/hwtracing/coresight/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/hwtracing/coresig

[PATCH 5/6] coresight: populate MODULE_AUTHOR, DESCRIPTION, and LICENSEs

2018-05-17 Thread Kim Phillips
Necessary prior to enabling to be built as modules. Signed-off-by: Kim Phillips --- drivers/hwtracing/coresight/coresight-dynamic-replicator.c | 4 drivers/hwtracing/coresight/coresight-etb10.c | 5 + drivers/hwtracing/coresight/coresight-etm-cp14.c | 4 driv

[PATCH RESEND] powerpc/lib: Fix "integer constant is too large" build failure

2018-05-17 Thread Finn Thain
My powerpc-linux-gnu-gcc v4.4.5 compiler can't build a 32-bit kernel any more: arch/powerpc/lib/sstep.c: In function 'do_popcnt': arch/powerpc/lib/sstep.c:1068: error: integer constant is too large for 'long' type arch/powerpc/lib/sstep.c:1069: error: integer constant is too large for 'long' typ

Re: [PATCH net-next ] net: mscc: Add SPDX identifier

2018-05-17 Thread Joe Perches
On Thu, 2018-05-17 at 21:39 +0200, Alexandre Belloni wrote: > On 17/05/2018 12:28:59-0700, Joe Perches wrote: > > On Thu, 2018-05-17 at 21:23 +0200, Alexandre Belloni wrote: > > > ocelot_qsys.h is missing the SPDX identfier, fix that. > > > > > > Signed-off-by: Alexandre Belloni > > > > Only the

RE: [PATCH 1/2] clk: imx7d: correct enet clock CCGR register offset

2018-05-17 Thread Anson Huang
Hi, Stefan Anson Huang Best Regards! > -Original Message- > From: Stefan Agner [mailto:ste...@agner.ch] > Sent: Thursday, May 17, 2018 7:22 PM > To: Anson Huang > Cc: shawn...@kernel.org; ker...@pengutronix.de; Fabio Estevam > ; robh...@kernel.org; mark.rutl...@arm.com; > mturque...@bay

[PATCH V2 3/3] ARM: dts: imx7: correct enet ipg clock

2018-05-17 Thread Anson Huang
ENET "ipg" clock should be IMX7D_ENETx_IPG_ROOT_CLK rather than IMX7D_ENET_AXI_ROOT_CLK which is for ENET bus clock. Based on Andy Duan's patch from the NXP kernel tree. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx7d.dtsi | 2 +- arch/arm/boot/dts/imx7s.dtsi | 2 +- 2 files changed, 2 i

Re: [PATCH v2] f2fs: Fix deadlock in shutdown ioctl

2018-05-17 Thread Jaegeuk Kim
On 05/17, Chao Yu wrote: > On 2018/5/17 16:03, Sahitya Tummala wrote: > > f2fs_ioc_shutdown() ioctl gets stuck in the below path > > when issued with F2FS_GOING_DOWN_FULLSYNC option. > > > > __switch_to+0x90/0xc4 > > percpu_down_write+0x8c/0xc0 > > freeze_super+0xec/0x1e4 > > freeze_bdev+0xc4/0xcc

Re: [PATCH] lib/stackdepot.c: use a non-instrumented version of memcpy()

2018-05-17 Thread kbuild test robot
Hi Alexander, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.17-rc5 next-20180517] [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/linux

[PATCH V2 1/3] clk: imx7d: correct enet phy ref clock gates

2018-05-17 Thread Anson Huang
IMX7D_ENET_PHY_REF_ROOT_DIV supplies clock for PHY directly, there is no clock gate after it, rename it to IMX7D_ENET_PHY_REF_ROOT_CLK to avoid device tree change. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx7d.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dri

[PATCH V2 2/3] clk: imx7d: correct enet clock CCGR registers

2018-05-17 Thread Anson Huang
Correct enet clock gates as below: CCGR6: IMX7D_ENET_AXI_ROOT_CLK (enet1 and enet2 bus clocks) CCGR112: IMX7D_ENET1_TIME_ROOT_CLK, IMX7D_ENET1_IPG_ROOT_CLK CCGR113: IMX7D_ENET2_TIME_ROOT_CLK, IMX7D_ENET2_IPG_ROOT_CLK Just rename unused IMX7D_ENETx_REF_ROOT_CLK for IMX7D_ENETx_IPG_ROOT_CLK instead

Re: [PATCH v3 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-05-17 Thread Doug Anderson
Hi, On Thu, May 17, 2018 at 5:16 PM, David Collins wrote: > On 05/17/2018 02:22 PM, Doug Anderson wrote: >> On Fri, May 11, 2018 at 7:28 PM, David Collins >> wrote: >>> +- qcom,regulator-initial-microvolt >>> + Usage: optional; VRM regulators only >>> + Value type: >>> +

Re: [PATCH 4/4] media: venus: add PIL support

2018-05-17 Thread Trilok Soni
Hi Vikash, On 5/17/2018 4:32 AM, Vikash Garodia wrote: This adds support to load the video firmware and bring ARM9 out of reset. This is useful for platforms which does not have trustzone to reset the ARM9. ARM9 = video core here? May be commit text needs little bit more detail. +static in

Re: [PATCH ghak81 V3a] fixup! audit: collect audit task parameters

2018-05-17 Thread Paul Moore
On Thu, May 17, 2018 at 1:20 PM, Richard Guy Briggs wrote: > Enable fork.c compilation with audit disabled. > > Signed-off-by: Richard Guy Briggs > --- > Hi Paul, this one got caught by the 0-day kbuildbot. Can you squash it > down if you haven't merged it yet? See my comment in the original pa

Re: [PATCH] perf annotate: Support multiple events without group

2018-05-17 Thread Jin, Yao
On 5/18/2018 4:27 AM, Jiri Olsa wrote: On Thu, May 17, 2018 at 01:27:50PM -0300, Arnaldo Carvalho de Melo wrote: Em Thu, May 10, 2018 at 09:59:22PM +0800, Jin Yao escreveu: See example, perf record -e cycles,branches ./div perf annotate main --stdio or perf annotate main --stdio2 or perf ann

[RFC PATCH 09/09] Introduce cache=rdma moutning option

2018-05-17 Thread Long Li
From: Long Li When cache=rdma is enabled on mount options, CIFS do not allocate internal data buffer pages for I/O, data is read/writen directly to user memory via RDMA. Signed-off-by: Long Li --- fs/cifs/cifs_fs_sb.h | 2 ++ fs/cifs/cifsglob.h | 1 + fs/cifs/connect.c| 9 + fs/c

Re: [PATCH v2 3/9] security: define security_kernel_read_blob() wrapper

2018-05-17 Thread Casey Schaufler
On 5/17/2018 7:48 AM, Mimi Zohar wrote: > In order for LSMs and IMA-appraisal to differentiate between the original > and new syscalls (eg. kexec, kernel modules, firmware), both the original > and new syscalls must call an LSM hook. > > Commit 2e72d51b4ac3 ("security: introduce kernel_module_from_

[RFC PATCH 05/09] Change RDMA send to regonize page offset in the 1st page

2018-05-17 Thread Long Li
From: Long Li When doing RDMA send, the offset needs to be checked as data may start in an offset in the 1st page. Signed-off-by: Long Li --- fs/cifs/smb2pdu.c | 3 ++- fs/cifs/smbdirect.c | 25 +++-- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/fs/ci

[RFC PATCH 00/09] Implement direct user I/O interfaces for RDMA

2018-05-17 Thread Long Li
From: Long Li This patchset implements direct user I/O through RDMA. In normal code path (even with cache=none), CIFS copies I/O data from user-space to kernel-space for security reasons. With this patchset, a new mounting option is introduced to have CIFS pin the user-space buffer into memory

[RFC PATCH 02/09] Change wdata alloc to support direct pages

2018-05-17 Thread Long Li
From: Long Li When using direct pages from user space, there is no need to allocate pages. Just ping those user pages for RDMA. Signed-off-by: Long Li --- fs/cifs/cifsproto.h | 2 +- fs/cifs/cifssmb.c | 10 +++--- fs/cifs/file.c | 4 ++-- 3 files changed, 10 insertions(+), 6 dele

[RFC PATCH 03/09] Change rdata alloc to support direct pages

2018-05-17 Thread Long Li
From: Long Li There is no need to allocate pages when using pages directly from user buffer Signed-off-by: Long Li --- fs/cifs/file.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/fs/cifs/file.c b/fs/cifs/file.c index a6ec896..ed25e04 100644 --- a/fs/cifs/fi

[RFC PATCH 04/09] Change function to support offset when reading pages

2018-05-17 Thread Long Li
From: Long Li It's possible that we may want to read data into an offset to the 1st page, change the functions to pass the offset to transport. Signed-off-by: Long Li --- fs/cifs/cifsproto.h | 2 +- fs/cifs/connect.c | 4 ++-- fs/cifs/file.c | 4 ++-- fs/cifs/smb2ops.c | 2 +- 4 file

Re: mmotm 2018-05-17-16-26 uploaded (autofs)

2018-05-17 Thread Randy Dunlap
On 05/17/2018 04:26 PM, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2018-05-17-16-26 has been uploaded to > >http://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > http://www.ozlabs.org/~akpm/mmotm/ > > This is a snapshot of m

[RFC PATCH 01/09] Introduce offset for the 1st page in data transfer structures

2018-05-17 Thread Long Li
From: Long Li Currently CIFS allocates its own pages for data transfer, they don't need offset since it's always 0 in the 1st page. Direct data transfer needs to define an offset because user-data may not start on the page boundary Signed-off-by: Long Li --- fs/cifs/cifsglob.h | 5 + 1 fi

[RFC PATCH 06/09] Change RDMA recv to support offset in the 1st page

2018-05-17 Thread Long Li
From: Long Li The actaul data buffer may start with an offset in the 1st page, modify RDMA recv function to read the data to the correct buffer. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/fs/cifs/smbdirect.c

[RFC PATCH 07/09] Support page offset in memory regsitrations

2018-05-17 Thread Long Li
From: Long Li Now momory registration needs to recognize offset in page when direct transfer is used. Signed-off-by: Long Li --- fs/cifs/smb2pdu.c | 19 +- fs/cifs/smbdirect.c | 74 +++-- fs/cifs/smbdirect.h | 2 +- 3 files change

[RFC PATCH 08/09] Implement direct file I/O interfaces

2018-05-17 Thread Long Li
From: Long Li Implement the main filesystem interface for doing read and write. These functions don't copy the user data into a kenrel buffer for data transfer. Pages are directly pinned and passed to the RDMA transport. Signed-off-by: Long Li --- fs/cifs/cifsfs.c | 19 fs/cifs/cifsfs.

Re: [PATCH v3 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-05-17 Thread David Collins
On 05/17/2018 02:22 PM, Doug Anderson wrote: > On Fri, May 11, 2018 at 7:28 PM, David Collins > wrote: >> +- qcom,regulator-initial-microvolt >> + Usage: optional; VRM regulators only >> + Value type: >> + Definition: Specifies the initial voltage in microvolts to request

Re: [PATCH v3 2/2] regulator: add QCOM RPMh regulator driver

2018-05-17 Thread David Collins
On 05/17/2018 02:23 PM, Doug Anderson wrote: > On Fri, May 11, 2018 at 7:28 PM, David Collins > wrote: >> + /* >> +* Default the voltage selector to an error value in >> the >> +* case that qcom,regulator-initial-microvolt is

Re: [PATCH v1 2/2] perf annotate: Create hotkey 'c' to show max/min cycles

2018-05-17 Thread Jin, Yao
On 5/18/2018 4:06 AM, Arnaldo Carvalho de Melo wrote: Em Thu, May 17, 2018 at 10:58:38PM +0800, Jin Yao escreveu: In perf annotate view, a new hotkey 'c' is created for showing the max/min cycles. I just changed everything from "max/min" to "min/max", as it looked strange print the max first

[PATCH net v2] net: dsa: Do not register devlink for unused ports

2018-05-17 Thread Florian Fainelli
Even if commit 1d27732f411d ("net: dsa: setup and teardown ports") indicated that registering a devlink instance for unused ports is not a problem, and this is true, this can be confusing nonetheless, so let's not do it. Fixes: 1d27732f411d ("net: dsa: setup and teardown ports") Reported-by: Jiri

Re: [PATCH 07/14] powerpc: Add support for restartable sequences

2018-05-17 Thread Boqun Feng
On Thu, May 17, 2018, at 11:28 PM, Mathieu Desnoyers wrote: > - On May 16, 2018, at 9:19 PM, Boqun Feng boqun.f...@gmail.com wrote: > > > On Wed, May 16, 2018 at 04:13:16PM -0400, Mathieu Desnoyers wrote: > >> - On May 16, 2018, at 12:18 PM, Peter Zijlstra pet...@infradead.org > >> wrot

Re: [PATCH] x86/mm: Drop TS_COMPAT on 64-bit exec() syscall

2018-05-17 Thread Dmitry Safonov
On Fri, 2018-05-18 at 00:35 +0100, Dmitry Safonov wrote: > The x86 mmap() code selects the mmap base for an allocation depending > on > the bitness of the syscall. For 64bit sycalls it select mm->mmap_base > and > for 32bit mm->mmap_compat_base. > > exec() calls mmap() which in turn uses in_compa

Re: [PATCH 1/1] scsi: storvsc: Avoid allocating memory for temp cpumasks

2018-05-17 Thread Stephen Hemminger
On Thu, 17 May 2018 14:07:40 -0700 Michael Kelley wrote: > Current code allocates 240 Kbytes (in typical configs) for > each synthetic SCSI controller to use as temp cpumask variables. > Recode to avoid needing the temp cpumask variables and remove the > memory allocation. > > Signed-off-by: Mic

[PATCH] x86/mm: Drop TS_COMPAT on 64-bit exec() syscall

2018-05-17 Thread Dmitry Safonov
The x86 mmap() code selects the mmap base for an allocation depending on the bitness of the syscall. For 64bit sycalls it select mm->mmap_base and for 32bit mm->mmap_compat_base. exec() calls mmap() which in turn uses in_compat_syscall() to check whether the mapping is for a 32bit or a 64bit task.

[PATCH 0/6] Macrofying inline assembly for better compilation

2018-05-17 Thread Nadav Amit
This patch-set deals with an interesting yet stupid problem: kernel code that does not get inlined despite its simplicity. There are several causes for this behavior: "cold" attribute on __init, different function optimization levels; conditional constant computations based on __builtin_constant_p(

[PATCH 5/6] x86: refcount: prevent gcc distortions

2018-05-17 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform inc

Re: [PATCH] PM / devfreq: Fix handling of min/max_freq == 0

2018-05-17 Thread Chanwoo Choi
Hi, Please resend the patch with related other patches. It is hard to check the dependency/sequence of your patches. On 2018년 05월 18일 07:32, Matthias Kaehlcke wrote: > Commit ab8f58ad72c4 ("PM / devfreq: Set min/max_freq when adding the > devfreq device") initializes df->min/max_freq with the min

Re: [RFC PATCH] PM / devfreq: Add policy notifier

2018-05-17 Thread Chanwoo Choi
Hi, On 2018년 05월 18일 08:07, Matthias Kaehlcke wrote: > Hi, > > On Thu, May 17, 2018 at 11:01:34AM +0900, Chanwoo Choi wrote: >> Hi, >> >> Could you give some use-case of DEVFREQ_POLICY_NOTIFIER >> or send use-case patch with this patch? > > This is a WIP patch that makes use of the DEVFREQ_POLIC

[PATCH 1/6] x86: objtool: use asm macro for better compiler decisions

2018-05-17 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform inc

Re: [PATCH] ath10k: transmit queued frames after waking queues

2018-05-17 Thread Adrian Chadd
On Thu, 17 May 2018 at 16:16, Niklas Cassel wrote: > diff --git a/drivers/net/wireless/ath/ath10k/txrx.c b/drivers/net/wireless/ath/ath10k/txrx.c > index cda164f6e9f6..1d3b2d2c3fee 100644 > --- a/drivers/net/wireless/ath/ath10k/txrx.c > +++ b/drivers/net/wireless/ath/ath10k/txrx.c > @@ -95,6 +95,

[PATCH 3/6] x86: alternative: macrofy locks for better inlining

2018-05-17 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform inc

[PATCH 4/6] x86: prevent inline distortion by paravirt ops

2018-05-17 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform inc

[PATCH 6/6] x86: removing unneeded new-lines

2018-05-17 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform inc

[PATCH 2/6] x86: bug: prevent gcc distortions

2018-05-17 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform inc

mmotm 2018-05-17-16-26 uploaded

2018-05-17 Thread akpm
The mm-of-the-moment snapshot 2018-05-17-16-26 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

RE: [PATCH v5 13/23] iommu: introduce device fault report API

2018-05-17 Thread Liu, Yi L
> From: Jacob Pan [mailto:jacob.jun@linux.intel.com] > Sent: Thursday, May 17, 2018 11:59 PM > On Thu, 17 May 2018 11:41:56 + > "Liu, Yi L" wrote: > > > > +int iommu_report_device_fault(struct device *dev, struct > > > +iommu_fault_event *evt) { > > > + int ret = 0; > > > + struct iommu_f

Re: [PATCH] PM / devfreq: Init user limits from OPP limits, not viceversa

2018-05-17 Thread Chanwoo Choi
Hi, On 2018년 05월 18일 01:35, Matthias Kaehlcke wrote: > On Thu, May 17, 2018 at 10:07:56AM +0900, Chanwoo Choi wrote: >> Hi, >> >> On 2018년 05월 17일 07:57, Matthias Kaehlcke wrote: >>> Commit ab8f58ad72c4 ("PM / devfreq: Set min/max_freq when adding >>> the devfreq device") introduced the initializa

Re: [PATCH] PM / devfreq: Remove redundant frequency adjustment from governors

2018-05-17 Thread Chanwoo Choi
On 2018년 05월 18일 07:41, Matthias Kaehlcke wrote: > On Wed, May 16, 2018 at 02:10:51PM -0700, Matthias Kaehlcke wrote: >> The performance, powersave, simpleondemand and userspace governors >> determine a target frequency and then adjust it according to the >> df->min/max_freq limits that might have

[PATCH] ath10k: transmit queued frames after waking queues

2018-05-17 Thread Niklas Cassel
The following problem was observed when running iperf: [ 3] 0.0- 1.0 sec 2.00 MBytes 16.8 Mbits/sec [ 3] 1.0- 2.0 sec 3.12 MBytes 26.2 Mbits/sec [ 3] 2.0- 3.0 sec 3.25 MBytes 27.3 Mbits/sec [ 3] 3.0- 4.0 sec 655 KBytes 5.36 Mbits/sec [ 3] 4.0- 5.0 sec 0.00 Bytes 0.00 bits/sec

Re: [PATCH] PM / devfreq: Remove redundant frequency adjustment from governors

2018-05-17 Thread Chanwoo Choi
Hi, On 2018년 05월 18일 00:47, Matthias Kaehlcke wrote: > Hi, > > On Thu, May 17, 2018 at 10:44:08AM +0900, Chanwoo Choi wrote: >> Hi, >> >> On 2018년 05월 17일 06:10, Matthias Kaehlcke wrote: >>> The performance, powersave, simpleondemand and userspace governors >>> determine a target frequency and th

Re: [RFC PATCH] PM / devfreq: Add policy notifier

2018-05-17 Thread Matthias Kaehlcke
Hi, On Thu, May 17, 2018 at 11:01:34AM +0900, Chanwoo Choi wrote: > Hi, > > Could you give some use-case of DEVFREQ_POLICY_NOTIFIER > or send use-case patch with this patch? This is a WIP patch that makes use of the DEVFREQ_POLICY_NOTIFIER: https://chromium-review.googlesource.com/c/chromiumos/

Re: [PATCH ghak81 V3 3/3] audit: collect audit task parameters

2018-05-17 Thread Paul Moore
On Wed, May 16, 2018 at 7:55 AM, Richard Guy Briggs wrote: > The audit-related parameters in struct task_struct should ideally be > collected together and accessed through a standard audit API. > > Collect the existing loginuid, sessionid and audit_context together in a > new struct audit_task_inf

Re: [PATCH ghak81 V3 1/3] audit: use new audit_context access funciton for seccomp_actions_logged

2018-05-17 Thread Paul Moore
On Wed, May 16, 2018 at 7:55 AM, Richard Guy Briggs wrote: > On the rebase of the following commit on the new seccomp actions_logged > function, one audit_context access was missed. > > commit cdfb6b341f0f2409aba24b84f3b4b2bba50be5c5 > ("audit: use inline function to get audit context") > > Signed

Re: [PATCH ghak81 V3 2/3] audit: normalize loginuid read access

2018-05-17 Thread Paul Moore
On Wed, May 16, 2018 at 7:55 AM, Richard Guy Briggs wrote: > Recognizing that the loginuid is an internal audit value, use an access > function to retrieve the audit loginuid value for the task rather than > reaching directly into the task struct to get it. > > Signed-off-by: Richard Guy Briggs >

Re: [PATCH 01/11] perf tests parse-events: Add intel_pt parse test

2018-05-17 Thread Kim Phillips
On Thu, 17 May 2018 22:58:11 +0200 Jiri Olsa wrote: > On Thu, May 17, 2018 at 05:15:53PM -0300, Arnaldo Carvalho de Melo wrote: > > So parse_state->error == NULL, Jiri, ideas? > > yep, we don't use it in tests.. and when trying intel_pt on > system without that pmu, the parse_events_add_pmu fail

Re: [PATCH 1/3] x86: verify_cpu: use 32-bit arithmetic

2018-05-17 Thread hpa
On May 17, 2018 2:30:01 PM PDT, Alexey Dobriyan wrote: >32-bit instructions are 1 byte shorter than 16-bit instructions. > >Signed-off-by: Alexey Dobriyan >--- > > arch/x86/kernel/verify_cpu.S |8 > 1 file changed, 4 insertions(+), 4 deletions(-) > >--- a/arch/x86/kernel/verify_cpu.S

Re: [PATCH] PM / devfreq: Remove redundant frequency adjustment from governors

2018-05-17 Thread Matthias Kaehlcke
On Wed, May 16, 2018 at 02:10:51PM -0700, Matthias Kaehlcke wrote: > The performance, powersave, simpleondemand and userspace governors > determine a target frequency and then adjust it according to the > df->min/max_freq limits that might have been set by user space. This > adjustment is redundant

[PATCHv7] gpio: Remove VLA from gpiolib

2018-05-17 Thread Laura Abbott
The new challenge is to remove VLAs from the kernel (see https://lkml.org/lkml/2018/3/7/621) to eventually turn on -Wvla. Using a kmalloc array is the easy way to fix this but kmalloc is still more expensive than stack allocation. Introduce a fast path with a fixed size stack array to cover most c

Re: [PATCH v7 2/2] drivers: soc: Add LLCC driver

2018-05-17 Thread Evan Green
On Wed, May 16, 2018 at 10:44 AM Rishabh Bhatnagar wrote: > LLCC (Last Level Cache Controller) provides additional cache memory > in the system. LLCC is partitioned into multiple slices and each > slice gets its own priority, size, ID and other config parameters. > LLCC driver programs these para

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