Re: 5.1.0-rc4: Oops in __rpc_execute() when trying to boot from NFS

2019-04-11 Thread Daniel Mack
Hi Trond, On 11/4/2019 9:50 PM, Trond Myklebust wrote: > On Tue, 2019-04-09 at 19:54 +0200, Daniel Mack wrote: >> On 9/4/2019 6:55 PM, Trond Myklebust wrote: >>> On Tue, 2019-04-09 at 18:25 +0200, Daniel Mack wrote: On 8/4/2019 8:51 PM, Trond Myklebust wrote: > On Mon, 2019-04-08 at

Re: 4f4fd7c579: mdadm-selftests.10ddf-fail-two-spares.fail

2019-04-11 Thread Song Liu
> On Apr 11, 2019, at 7:38 PM, kernel test robot wrote: > > FYI, we noticed the following commit (built with gcc-7): > > commit: 4f4fd7c5798bbdd5a03a60f6269cf1177fbd11ef ("Don't jump to > compute_result state from check_result state") >

Re: [PATCH 1/6] arch: riscv: add support for building DTB files from DT source data

2019-04-11 Thread Christoph Hellwig
On Thu, Apr 11, 2019 at 05:08:11PM -0700, Paul Walmsley wrote: > However: the vast majority of users -- even embedded users -- will not use > a kernel with a bundled DTB. This is because it irrevocably ties that > kernel binary to one specific board type. I hope it is obvious why this > would

Re: [PATCH] locking/lockdep: Make lockdep_register_key() ignore 'debug_locks'

2019-04-11 Thread Ingo Molnar
* Bart Van Assche wrote: > If lockdep_register_key() and lockdep_unregister_key() are called with > debug_locks == false then the following warning is reported: > > WARNING: CPU: 2 PID: 15145 at kernel/locking/lockdep.c:4920 > lockdep_unregister_key+0x1ad/0x240 > > That warning is reported

RE: [PATCH] x86/entry/64: randomize kernel stack offset upon syscall

2019-04-11 Thread Reshetova, Elena
> On Wed, Apr 10, 2019 at 3:24 AM Reshetova, Elena > wrote: > > > > > > > > > On Mon, Apr 08, 2019 at 09:13:58AM +0300, Elena Reshetova wrote: > > > > > > diff --git a/arch/x86/entry/common.c b/arch/x86/entry/common.c > > > > > > index 7bc105f47d21..38ddc213a5e9 100644 > > > > > > ---

Re: [PATCH v2] ARM: sun8i: h3: bluetooth for Banana Pi M2 Zero board

2019-04-11 Thread Andreas Kemnade
Hi, On Mon, 8 Apr 2019 10:14:04 +0200 Maxime Ripard wrote: > On Sun, Apr 07, 2019 at 10:23:21PM +0200, Andreas Kemnade wrote: > > ping > > > > On Fri, 1 Mar 2019 19:52:12 +0100 > > Andreas Kemnade wrote: > > > > > The Banana Pi M2 Zero board has an AP6212 BT+Wifi combo chip > > > with

Re: disabling secondary CPU hangs / system fails to suspend with kernel 4.19+

2019-04-11 Thread Thomas Müller
Hi, good news: starting with 5.0.6 suspend is working again. Best regards Thomas Am 29.03.19 um 10:22 schrieb Thomas Müller: > Hi, > > Am 18.03.19 um 12:57 schrieb Peter Zijlstra: >> On Fri, Mar 15, 2019 at 09:21:02PM +0100, Thomas Müller wrote: >>> I've just re-tested with runlevel 3. >>> Not

[PATCH 1/3] dt-bindings: spi: Add spi-mux-gpio

2019-04-11 Thread Chris Packham
Add binding documentation for spi-mux-gpio which is a slightly more complicated hardware implementation of using gpios to steer SPI chip selects. Signed-off-by: Chris Packham --- .../devicetree/bindings/spi/spi-mux-gpio.txt | 45 +++ 1 file changed, 45 insertions(+) create

[PATCH 2/3] spi: Make of_find_spi_controller_by_node visible

2019-04-11 Thread Chris Packham
Drop the static and add of_find_spi_controller_by_node() to spi.h. Also move it outside of the CONFIG_OF_DYNAMIC so it is available with just CONFIG_OF. Signed-off-by: Chris Packham --- drivers/spi/spi.c | 7 --- include/linux/spi/spi.h | 7 +++ 2 files changed, 11 insertions(+),

[PATCH 0/3] spi: SPI bus multiplexer

2019-04-11 Thread Chris Packham
Hi All, I have a hardware design where a single SPI chip select is steered by a GPIO being asserted or de-asserted. On older kernels I was able to (ab)use a gpio-hog and cs-gpios to deal with this. Unfortunately recent changes have stopped my hacks from working. I've tried adapting cs-gpios to

[PATCH 3/3] spi: Add SPI bus gpio multiplexer

2019-04-11 Thread Chris Packham
This add support for a gpio based multiplexer for SPI buses. This can be used in situations where the cs-gpios property does not work with the hardware design. In particular this support situations where a single gpio is used to select between two possible devices. Signed-off-by: Chris Packham

Re: [PATCH] clocksource/drivers/timer-ti-dm: Remove omap_dm_timer_set_load_start

2019-04-11 Thread Nathan Chancellor
On Thu, Apr 11, 2019 at 01:56:57PM -0700, Tony Lindgren wrote: > Hi, > > * Daniel Lezcano [190411 19:21]: > > On 10/04/2019 22:07, Tony Lindgren wrote: > > > Hi, > > > > > > * Daniel Lezcano [190410 17:02]: > > >> can you ask for an acked-by before pulling a patch in your tree? > > > > > > I

[PATCH v3] ARM: sun8i: h3: bluetooth for Banana Pi M2 Zero board

2019-04-11 Thread Andreas Kemnade
The Banana Pi M2 Zero board has an AP6212 BT+Wifi combo chip with Broadcom internals attached to UART1 and some gpios. This addition is in line with similar boards. Signed-off-by: Andreas Kemnade --- changes in v3: spelling fixes changes in v2: remove pinctrl things

linux-next: manual merge of the staging tree with the imx-mxs tree

2019-04-11 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the staging tree got a conflict in: Documentation/devicetree/bindings/vendor-prefixes.txt between commit: 189733b0a7e4 ("dt-bindings: Add vendor prefix for Rakuten Kobo, Inc.") from the imx-mxs tree and commit: 2e5cee6c7622 ("dt-bindings: Add vendor

Re: [PATCH 1/3] clocksource/drivers/timer-milbeaut: Fix to enable one-shot timer

2019-04-11 Thread Sugaya, Taichi
Hi, Thank you for your comment. On 2019/04/12 5:08, Daniel Lezcano wrote: On 25/03/2019 04:05, Sugaya Taichi wrote: Fix mlb_set_oneshot_state() to enable one-shot timer. The function should stop and start a timer, but "start" statement was dropped. Kick the register to start one-shot timer.

[PATCH] kernel/sched: run nohz idle load balancer on HK_FLAG_MISC CPUs

2019-04-11 Thread Nicholas Piggin
The nohz idle balancer runs on the lowest idle CPU. This can interfere with isolated CPUs, so confine it to HK_FLAG_MISC housekeeping CPUs. HK_FLAG_SCHED is not used for this because it is not set anywhere at the moment. This could be folded into HK_FLAG_SCHED once that option is fixed. The

Re: [PATCH v6 06/12] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-04-11 Thread Lokesh Vutla
On 11/04/19 8:30 PM, Tony Lindgren wrote: > Hi, > > * Lokesh Vutla [190410 04:15]: >> +Example: >> + >> +The following example demonstrates both interrupt router node and the >> consumer >> +node(main gpio) on the AM654 SoC: >> + >> +main_intr: interrupt-controller0 { >> +

[no subject]

2019-04-11 Thread Системный администратор .
ВНИМАНИЕ; В вашем почтовом ящике превышен лимит хранилища, который составляет 5 ГБ, как определено администратором, который в настоящее время работает на 10,9 ГБ. Возможно, вы не сможете отправлять или получать новую почту, пока вы не подтвердите свою почту. Чтобы подтвердить свой почтовый

Re: [PATCH v6 04/12] firmware: ti_sci: Add RM mapping table for am654

2019-04-11 Thread Lokesh Vutla
On 11/04/19 8:24 PM, Tony Lindgren wrote: > Hi, > > * Lokesh Vutla [190410 04:15]: >> From: Peter Ujfalusi >> diff --git a/Documentation/devicetree/bindings/arm/keystone/ti,sci.txt >> b/Documentation/devicetree/bindings/arm/keystone/ti,sci.txt >> index b56a02c10ae6..6f0cd31c1520 100644 >>

Re: [PATCH v4 0/5] init: Do not select DEBUG_KERNEL by default

2019-04-11 Thread Sinan Kaya
On 4/12/2019 12:05 AM, Josh Triplett wrote: Can you point to the typo? I did, in my response to the patch itself: s/Miscellaneous/miscellaneous/ in the new option's description, since it isn't at the start of a sentence. Thanks, your emails arrived out of order. I got them now.

Re: [PATCH v4 0/5] init: Do not select DEBUG_KERNEL by default

2019-04-11 Thread Josh Triplett
On Thu, Apr 11, 2019 at 11:13:42PM -0400, Sinan Kaya wrote: > On 4/11/2019 11:02 PM, Josh Triplett wrote: > > I noticed one minor typo in patch 1/5, with that fixed, for the whole > > series: > > Can you point to the typo? I did, in my response to the patch itself: s/Miscellaneous/miscellaneous/

[PATCH v1] clk: mediatek: fix clk-gate flag setting

2019-04-11 Thread Weiyi Lu
CLK_SET_RATE_PARENT would be dropped. Merge two flag setting together to correct the error. Fixes: 5a1cc4c27ad2 ("clk: mediatek: Add flags to mtk_gate") Cc: Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/clk-gate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

Re: [PATCH] x86/tsc: mark tsc reliable on CoffeeLake

2019-04-11 Thread You-Sheng Yang
On 2019/4/8 8:03 PM, Thomas Gleixner wrote: > On Mon, 8 Apr 2019, You-Sheng Yang wrote: >> +/* >> + * On Intel CoffeeLake, tsc may be marked unstable unexpectedly after >> + * entering PC10. >> + */ >> +if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL && >> +

Re: your mail

2019-04-11 Thread Nicholas Piggin
Peter Zijlstra's on April 11, 2019 8:53 pm: > Was this supposed to be patch 6/5 of your previous series? Dang, I screwed up the headers? Thanks for the ping, I will resend. It is standalone. It seems more suited to the scheduler tree than the timers one, but your call. It is generally of more

[locking/rwsem] f03c360396: WARNING:at_init/main.c:#start_kernel

2019-04-11 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: f03c36039664fc53ebf6d8322c46aaf8e373f70c ("locking/rwsem: Merge owner into count on x86-64") https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git WIP.locking/core in testcase: trinity with following parameters:

[PATCH v2] fpga: dfl: Add lockdep classes for pdata->lock

2019-04-11 Thread Scott Wood
struct dfl_feature_platform_data (and it's mutex) is used by both fme and port devices, and when lockdep is enabled it complains about nesting between these locks. Tell lockdep about the difference so it can track each class separately. Here's the lockdep complaint: [ 409.680668] WARNING:

Re: [PATCH 0/4] Allow CPU0 to be nohz full

2019-04-11 Thread Nicholas Piggin
Paul E. McKenney's on April 12, 2019 1:42 am: > On Tue, Apr 09, 2019 at 07:21:54PM +1000, Nicholas Piggin wrote: >> Thomas Gleixner's on April 6, 2019 3:54 am: >> > On Fri, 5 Apr 2019, Nicholas Piggin wrote: >> >> Thomas Gleixner's on April 5, 2019 12:36 am: >> >> > On Thu, 4 Apr 2019, Nicholas

[PATCH 1/1] pinctrl: Add alternative way for specifying register bases

2019-04-11 Thread Light Hsieh
The orginal PINCTRL_MTK_PARIS/PINCTRL_MTK_MOORE need more effort for specifying register bases when porting platform driver: 1. Write mt_pinctrl_register_base_name[] array in pinctrl-mt.c to specify names of register bases, for exmaple: static const char * const

[PATCH v4 2/3] iommu/dma: Reserve IOVA for PCIe inaccessible DMA address

2019-04-11 Thread Srinath Mannam
dma_ranges field of PCI host bridge structure has resource entries in sorted order of address range given through dma-ranges DT property. This list is the accessible DMA address range. So that this resource list will be processed and reserve IOVA address to the inaccessible address holes in the

Re: [PATCH v4 0/5] init: Do not select DEBUG_KERNEL by default

2019-04-11 Thread Sinan Kaya
On 4/11/2019 11:02 PM, Josh Triplett wrote: I noticed one minor typo in patch 1/5, with that fixed, for the whole series: Can you point to the typo?

[PATCH v4 0/3] PCIe Host request to reserve IOVA

2019-04-11 Thread Srinath Mannam
Few SOCs have limitation that their PCIe host can't allow few inbound address ranges. Allowed inbound address ranges are listed in dma-ranges DT property and this address ranges are required to do IOVA mapping. Remaining address ranges have to be reserved in IOVA mapping. PCIe Host driver of

[PATCH] memory: ti-emif-sram: move driver-specific asm-offset.h to drivers/memory/

2019-04-11 Thread Masahiro Yamada
is only generated and included by drivers/memory/, so it does not need to reside in the globally visible include/generated/. Signed-off-by: Masahiro Yamada --- I will apply this to linux-kbuild since this depends on another patch there. drivers/memory/.gitignore| 1 +

Re: [PATCH 4/6] x86, mm: make split_mem_range() more easy to read

2019-04-11 Thread Wei Yang
On Sun, Mar 24, 2019 at 03:29:04PM +0100, Thomas Gleixner wrote: >Find a mostly untested patch which implements this below. I just booted it >in a 64bit guest and it did not explode. > >It removes 55 lines of code instead of adding 35 and reduces the binary >size by 408 bytes on 64bit and 128

Re: [PATCH 15/17] fpga: dfl: fme: add power management support

2019-04-11 Thread Wu Hao
On Thu, Apr 11, 2019 at 03:07:35PM -0500, Alan Tull wrote: > On Sun, Mar 24, 2019 at 10:24 PM Wu Hao wrote: > > Hi Hao, > > > > > This patch adds support for power management private feature under > > FPGA Management Engine (FME), sysfs interfaces are introduced for > > different power

Re: [PATCH v4 0/5] init: Do not select DEBUG_KERNEL by default

2019-04-11 Thread Josh Triplett
On Fri, Apr 12, 2019 at 01:43:50AM +, Sinan Kaya wrote: > CONFIG_DEBUG_KERNEL has been designed to just enable Kconfig options. > Kernel code generatoin should not depend on CONFIG_DEBUG_KERNEL. > > Proposed alternative plan: let's add a new symbol, something like > DEBUG_MISC ("Miscellaneous

Re: [PATCH v4 1/5] init: Introduce DEBUG_MISC option

2019-04-11 Thread Josh Triplett
On Fri, Apr 12, 2019 at 01:43:51AM +, Sinan Kaya wrote: > Introduce DEBUG_MISC ("Miscellaneous debug code that should be under a more > specific debug option but isn't"), make it depend on DEBUG_KERNEL and be > "default DEBUG_KERNEL" but allow itself to be turned off, and then > mechanically

Re: [PATCH v5 6/9] clk: mediatek: Add flags support for mtk_gate data

2019-04-11 Thread Weiyi Lu
On Thu, 2019-04-11 at 13:19 -0700, Stephen Boyd wrote: > Quoting Weiyi Lu (2019-03-04 21:05:43) > > On some Mediatek platforms, there are critical clocks of > > clock gate type. > > To register clock gate with flags CLK_IS_CRITICAL, > > we need to add the flags field in mtk_gate data and register

Re: [PATCH] module: Make srcu_struct ptr array as read-only

2019-04-11 Thread Paul E. McKenney
On Thu, Apr 11, 2019 at 10:14:22PM -0400, Joel Fernandes wrote: > On Thu, Apr 11, 2019 at 02:31:55PM -0700, Paul E. McKenney wrote: > > On Thu, Apr 11, 2019 at 04:24:21PM -0400, Joel Fernandes (Google) wrote: > > > Since commit title ("srcu: Allocate per-CPU data for DEFINE_SRCU() in > > >

RE: [EXT] Re: [PATCH V7 2/4] firmware: imx: enable imx scu general irq function

2019-04-11 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Aisheng Dong > Sent: 2019年4月12日 10:26 > To: Anson Huang ; Shawn Guo > ; alexandre.bell...@bootlin.com > Cc: robh...@kernel.org; mark.rutl...@arm.com; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com;

RE: [EXT] Re: [PATCH V7 2/4] firmware: imx: enable imx scu general irq function

2019-04-11 Thread Aisheng Dong
> From: Anson Huang > Sent: Friday, April 12, 2019 9:06 AM > > Hello, Alexandre > As i.MX SCU general irq function is picked up by Shawn, could you please > also pick up below i.MX SC RTC alarm support patch ? > https://patchwork.kernel.org/patch/10890525/ > No, it can't go through

Re: [PATCH] module: Make srcu_struct ptr array as read-only

2019-04-11 Thread Joel Fernandes
On Thu, Apr 11, 2019 at 02:31:55PM -0700, Paul E. McKenney wrote: > On Thu, Apr 11, 2019 at 04:24:21PM -0400, Joel Fernandes (Google) wrote: > > Since commit title ("srcu: Allocate per-CPU data for DEFINE_SRCU() in > > modules"), modules that call DEFINE_{STATIC,}SRCU will have a new array > > of

Re: [PATCH v2 01/21] docs/memory-barriers.txt: Rewrite "KERNEL I/O BARRIER EFFECTS" section

2019-04-11 Thread Benjamin Herrenschmidt
On Thu, 2019-04-11 at 15:34 -0700, Linus Torvalds wrote: > On Thu, Apr 11, 2019 at 3:13 PM Benjamin Herrenschmidt > wrote: > > > > Minor nit... I would have said "All readX() and writeX() accesses > > _from > > the same CPU_ to the same peripheral... and then s/the CPU/this > > CPU. > > Maybe

Re: [PATCH] pinctrl: Add kernel config PINCTRL_MTK_V2

2019-04-11 Thread Light Hsieh
Dear reviewer, The points of Sean are right. Please forget this patch proposal. On Thu, 2019-04-11 at 15:04 -0700, Sean Wang wrote: > Hi, Light > > On Thu, Apr 11, 2019 at 2:32 AM Light Hsieh wrote: > > > > Since no single Mediatek chip use code for PINCTRL_MTK and code for > >

Re: [PATCH] xfs: use struct_size() helper

2019-04-11 Thread Gustavo A. R. Silva
On 4/11/19 7:19 PM, Darrick J. Wong wrote: > [fixing linux-xfs cc] > Thanks for this. > On Thu, Apr 11, 2019 at 06:37:58PM -0500, Gustavo A. R. Silva wrote: >> Make use of the struct_size() helper instead of an open-coded version >> in order to avoid any potential type mistakes, in

Re: [PATCH 1/5] clk: rockchip: Turn on "aclk_dmac1" for suspend

2019-04-11 Thread elaine.zhang
hi, 在 2019/4/12 上午7:21, Douglas Anderson 写道: Experimentally it can be seen that going into deep sleep (specifically setting PMU_CLR_DMA and PMU_CLR_BUS in RK3288_PMU_PWRMODE_CON1) appears to fail unless "aclk_dmac1" is on. The failure is that the system never signals that it made it into

Re: [PATCH 5/5] ARM: dts: rockchip: vdd_gpu off in suspend for rk3288-veyron

2019-04-11 Thread elaine.zhang
hi, 在 2019/4/12 上午7:21, Douglas Anderson 写道: At some point long long ago the downstream GPU driver would crash if we turned the GPU off during suspend. For some context you can see: https://chromium-review.googlesource.com/#/c/215780/5..6/arch/arm/boot/dts/rk3288-pinky-rev2.dts At some point

[PATCH 2/3] regulator: db8500-prcmu: Convert to use simplified DT parsing

2019-04-11 Thread Axel Lin
Use regulator core's simplified DT parsing code to simplify the driver implementation. Signed-off-by: Axel Lin --- drivers/regulator/db8500-prcmu.c | 139 ++- 1 file changed, 42 insertions(+), 97 deletions(-) diff --git a/drivers/regulator/db8500-prcmu.c

[PATCH 3/3] regulator: dbx500-prcmu: Remove unused fields from struct dbx500_regulator_info

2019-04-11 Thread Axel Lin
The *dev is assigned but not used, remove it. Current driver is using devm_regulator_register(), so no neeed to save *rdev for clean up. Use a local variable instead. Signed-off-by: Axel Lin --- drivers/regulator/db8500-prcmu.c | 10 +- drivers/regulator/dbx500-prcmu.h | 4 2

Re: [PATCH 4/5] ARM: dts: rockchip: vcc33_ccd off in suspend for rk3288-veyron-chromebook

2019-04-11 Thread elaine.zhang
hi, 在 2019/4/12 上午7:21, Douglas Anderson 写道: As per my comments when the device tree for rk3288-veyron-chromebook first landed: Technically I think vcc33_ccd can be off since we have 'needs-reset-on-resume' down in the EHCI port (this regulator is for the USB webcam that's connected to the

[PATCH 1/3] regulator: db8500-prcmu: Constify regulator_ops

2019-04-11 Thread Axel Lin
These regulator_ops variables never need to be modified, make them const so compiler can put them to .rodata. Signed-off-by: Axel Lin --- drivers/regulator/db8500-prcmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/db8500-prcmu.c

Re: [PATCH] modpost: make KBUILD_MODPOST_WARN also configurable for external modules

2019-04-11 Thread Masahiro Yamada
On Tue, Apr 9, 2019 at 7:31 PM Jonas Gorski wrote: > > Hi, > > 本当に申し訳ありません, I got sidetracked and completely forgot about it. I > actually still have my old tree with the suggested changes for v2. > > On Tue, 9 Apr 2019 at 11:01, Masahiro Yamada > wrote: > > > > Hi. > > > > On Mon, Apr 8, 2019

[PATCH v4 4/5] xtensa: Replace CONFIG_DEBUG_KERNEL with CONFIG_DEBUG_MISC

2019-04-11 Thread Sinan Kaya
CONFIG_DEBUG_KERNEL should not impact code generation. Use the newly defined CONFIG_DEBUG_MISC instead to keep the current code. Signed-off-by: Sinan Kaya --- arch/xtensa/include/asm/irqflags.h | 2 +- arch/xtensa/kernel/smp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)

[PATCH v4 3/5] mips: Replace CONFIG_DEBUG_KERNEL with CONFIG_DEBUG_MISC

2019-04-11 Thread Sinan Kaya
CONFIG_DEBUG_KERNEL should not impact code generation. Use the newly defined CONFIG_DEBUG_MISC instead to keep the current code. Signed-off-by: Sinan Kaya --- arch/mips/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/kernel/setup.c

[PATCH v4 1/5] init: Introduce DEBUG_MISC option

2019-04-11 Thread Sinan Kaya
Introduce DEBUG_MISC ("Miscellaneous debug code that should be under a more specific debug option but isn't"), make it depend on DEBUG_KERNEL and be "default DEBUG_KERNEL" but allow itself to be turned off, and then mechanically change the small handful of "#ifdef CONFIG_DEBUG_KERNEL" to "#ifdef

[PATCH v4 0/5] init: Do not select DEBUG_KERNEL by default

2019-04-11 Thread Sinan Kaya
CONFIG_DEBUG_KERNEL has been designed to just enable Kconfig options. Kernel code generatoin should not depend on CONFIG_DEBUG_KERNEL. Proposed alternative plan: let's add a new symbol, something like DEBUG_MISC ("Miscellaneous debug code that should be under a more specific debug option but

Re: [PATCH 1/3] Revert "clk: rockchip: mark noc and some special clk as critical on rk3288"

2019-04-11 Thread elaine.zhang
hi, 在 2019/4/12 上午6:05, Heiko Stübner 写道: Hi, Am Donnerstag, 11. April 2019, 17:26:41 CEST schrieb Doug Anderson: On Wed, Apr 10, 2019 at 8:27 PM elaine.zhang wrote: 在 2019/4/10 下午11:34, Doug Anderson 写道: On Tue, Apr 9, 2019 at 11:23 PM elaine.zhang wrote: 在 2019/4/10 上午4:47, Douglas

Re: [PATCH v2 1/3] security: Create "kernel hardening" config area

2019-04-11 Thread Masahiro Yamada
On Fri, Apr 12, 2019 at 3:01 AM Kees Cook wrote: > > Right now kernel hardening options are scattered around various Kconfig > files. This can be a central place to collect these kinds of options > going forward. This is initially populated with the memory initialization > options from the

Re: [PATCH v3] platform/chrome: cros_ec_spi: Transfer messages at high priority

2019-04-11 Thread Brian Norris
On Wed, Apr 3, 2019 at 1:32 PM Douglas Anderson wrote: > +static int cros_ec_xfer_high_pri(struct cros_ec_device *ec_dev, > +struct cros_ec_command *ec_msg, > +cros_ec_xfer_fn_t fn) > +{ > + struct cros_ec_xfer_work_params

Re: [PATCH] arm64: vdso: use $(LD) instead of $(CC) to link VDSO

2019-04-11 Thread Masahiro Yamada
Hi Nick, On Fri, Apr 12, 2019 at 3:20 AM Nick Desaulniers wrote: > > On Thu, Apr 11, 2019 at 2:30 AM Masahiro Yamada > wrote: > > > > We use $(LD) to link vmlinux, modules, decompressors, etc. > > > > VDSO is the only exceptional case where $(CC) is used as the linker > > driver, but I do not

[PATCH] selftests: livepatch use TEST_PROGS for test shell scripts

2019-04-11 Thread Shuah Khan
TEST_PROGS variable is for test shell scripts and common clean target in lib.mk doesn't touch them. TEST_GEN_PROGS are removed by it. Fix it to use TEST_PROGS for test shell scripts and TEST_PROGS_EXTENDED for common functions.sh. Signed-off-by: Shuah Khan ---

RE: [EXT] Re: [PATCH V7 2/4] firmware: imx: enable imx scu general irq function

2019-04-11 Thread Anson Huang
Hello, Alexandre As i.MX SCU general irq function is picked up by Shawn, could you please also pick up below i.MX SC RTC alarm support patch ? https://patchwork.kernel.org/patch/10890525/ Best Regards! Anson Huang > -Original Message- > From: Shawn Guo

Re: [RFC PATCH v3 3/4] x86: Use HYPERVISOR_CALLBACK_VECTOR for acrn_guest upcall vector

2019-04-11 Thread Zhao, Yakui
On 2019年04月11日 21:55, Borislav Petkov wrote: On Wed, Apr 10, 2019 at 03:57:08PM +0800, Zhao, Yakui wrote: It is used to avoid that one function declaration has no definition when asm/acrnhyper.h is included and ACRN_GUEST is not enabled. And that is a problem because...? This is not a

Re: [PATCH v14 1/3] /proc/pid/status: Add support for architecture specific output

2019-04-11 Thread Li, Aubrey
On 2019/4/11 9:02, Li, Aubrey wrote: > On 2019/4/10 22:54, Andy Lutomirski wrote: >> On Tue, Apr 9, 2019 at 8:40 PM Li, Aubrey wrote: >>> >>> On 2019/4/10 10:36, Li, Aubrey wrote: On 2019/4/10 10:25, Andy Lutomirski wrote: > On Tue, Apr 9, 2019 at 7:20 PM Li, Aubrey > wrote: >>

Re: [PATCH v2] extcon: axp288: Add a depends on ACPI to the Kconfig entry

2019-04-11 Thread Chanwoo Choi
Dear all, + sta...@vger.kernel.org It should be posted to sta...@vger.kernel.org in order to merge it to stable tree. Regards, Chanwoo Choi On 19. 4. 12. 오전 8:30, Chanwoo Choi wrote: > On 19. 4. 4. 오후 11:17, Yue Haibing wrote: >> From: YueHaibing >> >> As Hans de Goede pointed, using

perf tools:Is there any tools to found out the max latency by irq or cpu idle

2019-04-11 Thread Linhaifeng
Hi, I have a single thread application like this: While (1) {     start = rdtsc();     sqrt (1024);    end = rdtsc();   cycles = end – start;   printf("cycles: %d-%02d-%02d %02d:%02d:%02d: %lu\n",   1900+timeinfo->tm_year, 1+timeinfo->tm_mon, timeinfo->tm_mday, timeinfo->tm_hour,

Re: [RFC PATCH v3 2/4] x86: Add the support of ACRN guest

2019-04-11 Thread Zhao, Yakui
On 2019年04月11日 21:49, Borislav Petkov wrote: On Wed, Apr 10, 2019 at 05:15:48PM +0800, Zhao, Yakui wrote: Currently the x2apic is not enabled in the first step. Next step it needs to check the cpu info reported by ACRN hypervisor to determine whether the x2apic should be supported. What

Re: [PATCH] extcon: arizona: Disable mic detect if running when driver is removed

2019-04-11 Thread Chanwoo Choi
Hi Charles, On 19. 4. 5. 오전 1:33, Charles Keepax wrote: > Microphone detection provides the button detection features on the > Arizona CODECs as such it will be running if the jack is currently > inserted. If the driver is unbound whilst the jack is still inserted > this will cause warnings from

Re: [PATCH] xfs: use struct_size() helper

2019-04-11 Thread Darrick J. Wong
[fixing linux-xfs cc] On Thu, Apr 11, 2019 at 06:37:58PM -0500, Gustavo A. R. Silva wrote: > Make use of the struct_size() helper instead of an open-coded version > in order to avoid any potential type mistakes, in particular in the > context in which this code is being used. > > So, replace

[PATCH v3 2/2] power_supply: platform/chrome: wilco_ec: Add charging config driver

2019-04-11 Thread Nick Crews
Add control of the charging algorithm used on Wilco devices. See Documentation/ABI/testing/sysfs-class-power-wilco for the userspace interface and other info. v3 changes: -Add this changelog -Fix commit message tags v2 changes: -Update Documentation to say KernelVersion 5.2 -Update Documentation

[PATCH v3 1/2] power_supply: Add more charge types and CHARGE_CONTROL_* properties

2019-04-11 Thread Nick Crews
Add "Standard", "Adaptive", and "Custom" modes to the charge_type property, to expand the existing "Trickle" and "Fast" modes. In addition, add POWER_SUPPLY_PROP_CHARGE_CONTROL_START_THRESHOLD and POWER_SUPPLY_PROP_CHARGE_CONTROL_END_THRESHOLD properties, to expand the existing CHARGE_CONTROL_*

Re: [PATCH] clk: rockchip: rk3288: Limit use of USB PHY clock to USB

2019-04-11 Thread Matthias Kaehlcke
Hi Heiko, On Thu, Apr 11, 2019 at 09:03:07PM +0200, Heiko Stübner wrote: > Hi Matthias, > > Am Donnerstag, 11. April 2019, 19:59:17 CEST schrieb Matthias Kaehlcke: > > The USB PHY clock can be configured as (grand) parent of uart0_sclk and > > sclk_gpu. It has been observed that UART0 doesn't

[PATCH] selftests/harness: Add 30 second timeout per test

2019-04-11 Thread Kees Cook
In order to keep tests from hanging forever, this adds an alarm signal to each test run. This assumes an individual test doesn't take longer than 30 seconds. Signed-off-by: Kees Cook --- tools/testing/selftests/kselftest_harness.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH 1/6] arch: riscv: add support for building DTB files from DT source data

2019-04-11 Thread Paul Walmsley
On Thu, 11 Apr 2019, Atish Patra wrote: > On 4/11/19 2:12 PM, Paul Walmsley wrote: > > On Thu, 11 Apr 2019, Christoph Hellwig wrote: > > > > > On Thu, Apr 11, 2019 at 01:42:59AM -0700, Paul Walmsley wrote: > > > > Similar to ARM64, add support for building DTB files from DT source > > > > data

[PATCH] ARM: dts: rockchip: Add dynamic-power-coefficient for rk3288

2019-04-11 Thread Matthias Kaehlcke
The value was determined with the following method: - take CPUs 1-3 offline - for each OPP - set cpufreq min and max freq to OPP freq - start dhrystone benchmark - measure CPU power consumption during 10s - calculate Cx for OPPx - Cx = (Px - P1) / (Vx²fx - V1²f1) [1]

[PATCH v2 1/2] power_supply: Add more charge types and CHARGE_CONTROL_* properties

2019-04-11 Thread Nick Crews
Add "Standard", "Adaptive", and "Custom" modes to the charge_type property, to expand the existing "Trickle" and "Fast" modes. In addition, add POWER_SUPPLY_PROP_CHARGE_CONTROL_START_THRESHOLD and POWER_SUPPLY_PROP_CHARGE_CONTROL_END_THRESHOLD properties, to expand the existing CHARGE_CONTROL_*

[PATCH] selftests/seccomp: Handle namespace failures gracefully

2019-04-11 Thread Kees Cook
When running without USERNS or PIDNS the seccomp test would hang since it was waiting forever for the child to trigger the user notification since it seems the glibc() abort handler makes a call to getpid(), which would trap again. This changes the getpid filter to getppid, and makes sure ASSERTs

[PATCH v2 2/2] power_supply: wilco_ec: Add charging config driver for Wilco EC

2019-04-11 Thread Nick Crews
Add control of the charging algorithm used on Wilco devices. See Documentation/ABI/testing/sysfs-class-power-wilco for the userspace interface and other info. Signed-off-by: Nick Crews --- .../ABI/testing/sysfs-class-power-wilco | 30 +++ drivers/platform/chrome/wilco_ec/Kconfig |

Re: [PATCH v4 0/4] Add device links to clocks

2019-04-11 Thread Stephen Boyd
Quoting Miquel Raynal (2019-01-08 08:19:36) > Hello, > > While working on suspend to RAM feature, I ran into troubles multiple > times when clocks where not suspending/resuming at the desired time. I > had a look at the core and I think the same logic as in the > regulator's core may be applied

Re: [PATCH v2] extcon: axp288: Add a depends on ACPI to the Kconfig entry

2019-04-11 Thread Chanwoo Choi
On 19. 4. 4. 오후 11:17, Yue Haibing wrote: > From: YueHaibing > > As Hans de Goede pointed, using this driver without ACPI > makes little sense, so add ACPI dependency to Kconfig entry > to fix a build error while CONFIG_ACPI is not set. > > drivers/extcon/extcon-axp288.c: In function

[PATCH 5/5] ARM: dts: rockchip: vdd_gpu off in suspend for rk3288-veyron

2019-04-11 Thread Douglas Anderson
At some point long long ago the downstream GPU driver would crash if we turned the GPU off during suspend. For some context you can see: https://chromium-review.googlesource.com/#/c/215780/5..6/arch/arm/boot/dts/rk3288-pinky-rev2.dts At some point in time not too long after that got fixed.

[PATCH 3/5] ARM: dts: rockchip: Add DDR retention/poweroff to rk3288-veyron hogs

2019-04-11 Thread Douglas Anderson
Even though upstream Linux doesn't yet go into deep enough suspend to get DDR into self refresh, there is no harm in setting these pins up. They'll only actually do something if we go into a deeper suspend but leaving them configed always is fine. Signed-off-by: Douglas Anderson ---

[PATCH 2/5] ARM: rockchip: pm: Mark init functions __init

2019-04-11 Thread Douglas Anderson
The functions rk3288_config_bootdata() and rk3288_suspend_init() are only called in the context of rockchip_suspend_init() which is already marked __init. We can mark them __init too. Signed-off-by: Douglas Anderson --- arch/arm/mach-rockchip/pm.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 4/5] ARM: dts: rockchip: vcc33_ccd off in suspend for rk3288-veyron-chromebook

2019-04-11 Thread Douglas Anderson
As per my comments when the device tree for rk3288-veyron-chromebook first landed: > Technically I think vcc33_ccd can be off since we have > 'needs-reset-on-resume' down in the EHCI port (this regulator is for > the USB webcam that's connected to the EHCI port). > > ...but leaving it on for now

[PATCH 1/5] clk: rockchip: Turn on "aclk_dmac1" for suspend

2019-04-11 Thread Douglas Anderson
Experimentally it can be seen that going into deep sleep (specifically setting PMU_CLR_DMA and PMU_CLR_BUS in RK3288_PMU_PWRMODE_CON1) appears to fail unless "aclk_dmac1" is on. The failure is that the system never signals that it made it into suspend on the GLOBAL_PWROFF pin and it just hangs.

Re: [PATCH v2] gpio: merrifield: Fix build err without CONFIG_ACPI

2019-04-11 Thread Rafael J. Wysocki
On Friday, April 5, 2019 4:50:09 PM CEST Andy Shevchenko wrote: > On Fri, Apr 05, 2019 at 10:21:12PM +0800, Yue Haibing wrote: > > From: YueHaibing > > > > When building CONFIG_ACPI is not set > > gcc warn this: > > > > drivers/gpio/gpio-merrifield.c: In function > >

[PATCH v1 0/3] memory: Introduce NVIDIA Tegra30 EMC driver

2019-04-11 Thread Dmitry Osipenko
Hello, This patchset adds driver for the External Memory Controller of NVIDIA Tegra30 SoC's. It performs memory hardware configuration that is required for changing DRAM frequency, thus providing facility for the memory frequency scaling on Tegra30. The memory scaling was tested using the Tegra's

[PATCH v1 2/3] memory: tegra: Introduce Tegra30 EMC driver

2019-04-11 Thread Dmitry Osipenko
Introduce driver for the External Memory Controller (EMC) found on Tegra30 chips, it controls the external DRAM on the board. The purpose of this driver is to program memory timing for external memory on the EMC clock rate change. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/Kconfig

[PATCH v1 1/3] dt-bindings: memory: Add binding for NVIDIA Tegra30 External Memory Controller

2019-04-11 Thread Dmitry Osipenko
Add device-tree binding for NVIDIA Tegra30 External Memory Controller. The binding is based on the Tegra124 EMC binding since hardware is similar, although there are couple significant differences. Signed-off-by: Dmitry Osipenko --- .../memory-controllers/nvidia,tegra30-emc.txt | 257

[PATCH v1 3/3] ARM: dts: tegra30: Add External Memory Controller node

2019-04-11 Thread Dmitry Osipenko
Add Add External Memory Controller node to the device-tree. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra30.dtsi | 11 +++ drivers/memory/tegra/tegra30-emc.c | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra30.dtsi

[PATCH v1] clk: tegra20/30: Add custom EMC clock implementation

2019-04-11 Thread Dmitry Osipenko
A proper External Memory Controller clock rounding and parent selection functionality is required by the EMC drivers. It is not available using the generic clock implementation, hence add a custom one. The clock rate rounding shall be done by the EMC drivers because they have information about

Re: [PATCH v2 01/21] docs/memory-barriers.txt: Rewrite "KERNEL I/O BARRIER EFFECTS" section

2019-04-11 Thread Linus Torvalds
On Thu, Apr 11, 2019 at 3:13 PM Benjamin Herrenschmidt wrote: > > Minor nit... I would have said "All readX() and writeX() accesses _from > the same CPU_ to the same peripheral... and then s/the CPU/this CPU. Maybe talk about "same thread" rather than "same cpu", with the understanding that

Re: [PATCH v1 1/4] trace_events: Add trace_print_register to print register fields

2019-04-11 Thread Steven Rostedt
On Thu, 11 Apr 2019 16:08:19 -0600 Raul E Rangel wrote: > This is a hybrid method that combines the functionality of > trace_print_flags_seq and trace_print_symbols_seq. It supports printing > bit fields, enum fields, and numeric fields. > > Given the following register definition: > * 0 -

I have an important discussion with you.

2019-04-11 Thread From Dr Ivan Robert

[PATCH v1] PM / devfreq: Introduce driver for NVIDIA Tegra20

2019-04-11 Thread Dmitry Osipenko
Add devfreq driver for NVIDIA Tegra20 SoC's. The driver periodically reads out Memory Controller counters and adjusts memory frequency based on the memory clients activity. Signed-off-by: Dmitry Osipenko --- MAINTAINERS | 8 ++ drivers/devfreq/Kconfig | 10 ++

Inquiry 11/Apr/2019

2019-04-11 Thread Daniel Murray
Hi,friend, This is Daniel Murray and i am from Sinara Group Co.,LTD in Russia. We are glad to know about your company from the web and we are interested in your products. Could you kindly send us your Latest catalog and price list for our trial order. Thanks and Best Regards, Daniel Murray

Re: [PATCH v2] init: Do not select DEBUG_KERNEL by default

2019-04-11 Thread Josh Triplett
On Thu, Apr 11, 2019 at 06:27:04PM -0400, Sinan Kaya wrote: > On 4/11/2019 6:21 PM, Kees Cook wrote: > > > Proposed alternative plan: let's add a new symbol, something like > > > DEBUG_MISC ("Miscellaneous debug code that should be under a more > > > specific debug option but isn't"), make it

Re: [PATCH v3] platform/chrome: wilco_ec: Add h1_gpio status to debugfs

2019-04-11 Thread Nick Crews
Thanks for the comments Enric! I'll resend in a day or two. On Thu, Apr 11, 2019 at 3:43 PM Enric Balletbo Serra wrote: > > Hi Nick, > > Some comments below ... > > Missatge de Nick Crews del dia dj., 11 d’abr. > 2019 a les 0:09: > > > > As part of Chrome OS's FAFT (Fully Automated Firmware

[PATCH v1 2/8] PM / devfreq: tegra: Replace readl-writel with relaxed versions

2019-04-11 Thread Dmitry Osipenko
There is no need to insert memory barrier on each readl/writel invocation, hence use the relaxed versions. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/devfreq/tegra-devfreq.c

[PATCH v1 5/8] PM / devfreq: tegra: Don't set EMC clock rate to maximum on probe

2019-04-11 Thread Dmitry Osipenko
There is no real benefit from doing so, hence let's drop that rate setting for consistency. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/devfreq/tegra-devfreq.c b/drivers/devfreq/tegra-devfreq.c index

[PATCH v1] ARM: dts: tegra30: Add ACTMON node

2019-04-11 Thread Dmitry Osipenko
Add ACTMON node to the Tegra30's device-tree. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra30.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/tegra30.dtsi b/arch/arm/boot/dts/tegra30.dtsi index d2b553f76719..e074258d4518 100644 ---

  1   2   3   4   5   6   7   >