Re: [PATCH v1 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-05-02 Thread Ryder Lee
On Fri, 2017-04-28 at 16:09 -0500, Rob Herring wrote: > On Fri, Apr 28, 2017 at 05:10:34PM +0800, Ryder Lee wrote: > > Add binding document for Mediatek PCIe Gen2 v1 host controller driver. > > > > Signed-off-by: Ryder Lee > > --- > > .../bindings/pci/mediatek,gen2v1-pcie.txt | 174 > >

Re: [PATCH 2/2] dt-bindings: phy: Add documentation for Mediatek PCIe PHY

2017-05-02 Thread Ryder Lee
On Fri, 2017-04-28 at 12:52 -0500, Rob Herring wrote: > On Sun, Apr 23, 2017 at 04:17:33PM +0800, Ryder Lee wrote: > > Add documentation for PCIe PHY available in MT7623 series SoCs. > > > > Signed-off-by: Ryder Lee > > --- > > .../devicetree/bindings/phy/phy-mt7623-pcie.txt| 67 > > +++

Re: FW: [PATCH 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-05-02 Thread Ryder Lee
Hi Arnd, > 2017-04-28 19:41 GMT+08:00 Arnd Bergmann : > > On Fri, Apr 28, 2017 at 4:46 AM, Ryder Lee > wrote: > > On Thu, 2017-04-27 at 21:06 +0200, Arnd Bergmann wrote: > >> On Wed, Apr 26, 2017 at 10:10 AM, Ryder Lee > wrote: > >> > On Tue, 201

[GIT PULL] s390 patches for 4.12 merge window

2017-05-02 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive the following updates: The majority of the s390 patches for the 4.12 merge window: * Included are three merges for KVM/s390 with changes for vfio-ccw a

[PATCH 3/3] irqchip/mbigen: Fix the clear register offset

2017-05-02 Thread Hanjun Guo
From: MaJun Don't minus reserved interrupts (64) when get the clear register offset, because the clear register space includes the space of these 64 interrupts. This bug wasn't discovered until we running the driver on a new platform with an updated firmware. It turns out that there is a timeout

Re: [PATCH 2/2] efi/efi_test: drop useless kfree

2017-05-02 Thread ivanhu
On 04/29/2017 09:42 AM, Geliang Tang wrote: Drop useless kfree when memdup_user() failed, since we have already called kfree in memdup_user(). Signed-off-by: Geliang Tang --- drivers/firmware/efi/test/efi_test.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers

[PATCH 1/3] irqchip/mbigen: Fix memory mapping code

2017-05-02 Thread Hanjun Guo
From: Hanjun Guo Some mbigens share memory regions, and devm_ioremap_resource does not allow to share resources which will break the probe of mbigen, in opposition to devm_ioremap. This patch restores back usage of devm_ioremap function, but with proper error handling and logging. Fixes: 216646

[PATCH 2/3] irqchip/mbigen: Fix potential NULL dereferencing

2017-05-02 Thread Hanjun Guo
From: Hanjun Guo platform_get_resource() may return NULL, add proper check to avoid potential NULL dereferencing. Signed-off-by: Hanjun Guo --- drivers/irqchip/irq-mbigen.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/irqchip/irq-mbigen.c index

Re: [PATCH] x86/mm: Fix incorrect for loop count calculation in sync_global_pgds

2017-05-02 Thread Baoquan He
On 05/01/17 at 03:37pm, Yinghai Lu wrote: > On Mon, May 1, 2017 at 4:41 AM, Baoquan He wrote: > > arch/x86/mm/init_64.c | 6 -- > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c > > index 15173d3..dbf4f00 100644 > > --- a/ar

Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg

2017-05-02 Thread Vincent Guittot
On 28 April 2017 at 22:33, Tejun Heo wrote: > Hello, Vincent. > > On Thu, Apr 27, 2017 at 10:29:10AM +0200, Vincent Guittot wrote: >> On 27 April 2017 at 00:52, Tejun Heo wrote: >> > Hello, >> > >> > On Wed, Apr 26, 2017 at 08:12:09PM +0200, Vincent Guittot wrote: >> >> On 24 April 2017 at 22:14,

Re: [PATCH v2 3/3] fs: ubifs: set s_uuid in super block

2017-05-02 Thread Amir Goldstein
On Fri, Apr 28, 2017 at 1:03 AM, Richard Weinberger wrote: > Am 24.04.2017 um 17:47 schrieb Richard Weinberger: >>> So, if some flag should be implemented, who should do it? :) >> >> I'll not do it for you. ;) > > Please also see http://marc.info/?l=linux-fsdevel&m=149327990608749&w=2 > Richard,

Re: [PATCH 1/2] sched/fair: Fix how load gets propagated from cfs_rq to its sched_entity

2017-05-02 Thread Vincent Guittot
On 28 April 2017 at 19:46, Tejun Heo wrote: > Hello, Vincent. > > On Thu, Apr 27, 2017 at 10:59:12AM +0200, Vincent Guittot wrote: >> > But the only difference there is that we lose accuracy in calculation; >> > otherwise, the end results are the same, no? >> >> Yes the end result is the same, it

Re: [PATCH v2 3/3] fs: ubifs: set s_uuid in super block

2017-05-02 Thread Artem Bityutskiy
On Tue, 2017-04-11 at 22:43 +0200, Richard Weinberger wrote: > Makes sense. > > Artem, do you remember why UBIFS didn't set s_uuid in first place? Just did not notice it I think.

[git pull] m68k updates for 4.12

2017-05-02 Thread Geert Uytterhoeven
Hi Linus, The following changes since commit c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201: Linux 4.11-rc1 (2017-03-05 12:59:56 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git tags/m68k-for-v4.12-tag1 for you to fetch ch

Re: [PATCH] x86/mm: Fix incorrect for loop count calculation in sync_global_pgds

2017-05-02 Thread Ingo Molnar
* Baoquan He wrote: > On 05/01/17 at 03:37pm, Yinghai Lu wrote: > > On Mon, May 1, 2017 at 4:41 AM, Baoquan He wrote: > > > arch/x86/mm/init_64.c | 6 -- > > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > > > diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c > > > index

Build regressions/improvements in v4.11

2017-05-02 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.11[1] compared to v4.10[2]. Summarized: - build errors: +3/-1 - build warnings: +1102/-838 JFYI, when comparing v4.11[1] to v4.11-rc8[3], the summaries are: - build errors: +3/-1 - build warnings: +608/-638 Note that

[PATCH v3 0/4] make some special clk as critical_clocks

2017-05-02 Thread Elaine Zhang
change in V3: reword the commit message,explain why the specific clocks are need to be critical. change in v2: fix up some clks which have their own driver, not need to set as critical clocks Elaine Zhang (4): clk: rockchip: rk3036: make pclk_ddrupctl as critical_clock clk: rockchip: rk3228:

[PATCH v3 4/4] clk: rockchip: rk3368: make some special clk as critical_clocks

2017-05-02 Thread Elaine Zhang
The jtag clk no driver to handle them. But this clk need enable,so make it as critical. The ddrphy\ddrupctl clks no driver to handle them, Chip design requirements for these clock to always on, The new document will update the description of these clock. The pmu_hclk_otg0 is Chip design defect, m

[PATCH v3 1/4] clk: rockchip: rk3036: make pclk_ddrupctl as critical_clock

2017-05-02 Thread Elaine Zhang
No driver to handle this clk, Chip design requirements for this clock to always on, The new document will update the description of this clock. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rk3036.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk-rk3036.c

Re: 4.11.0-rc8+/x86_64 desktop lockup until applications closed

2017-05-02 Thread Michal Hocko
On Sun 30-04-17 15:33:50, Arthur Marsh wrote: > > > Michal Hocko wrote on 27/04/17 18:56: > >On Thu 27-04-17 18:36:38, Arthur Marsh wrote: > >[...] > >>[55363.482931] QXcbEventReader: page allocation stalls for 10048ms, order:0, > >>mode:0x14200ca(GFP_HIGHUSER_MOVABLE), nodemask=(null) > > > >Are

[PATCH v3 3/4] clk: rockchip: rk3288: make noc and some special clk as critical_clocks

2017-05-02 Thread Elaine Zhang
The atclk\dbg\jtag\xin12m\pclk_core clks no driver to handle them. But this clks need enable,so make it as critical. The ddrupctl0\ddrupctl1\publ0\publ1 clks no driver to handle them, Chip design requirements for these clock to always on, The new document will update the description of these clock

Re: [PATCH 0/9] block: T10/DIF Fixes and cleanups v3

2017-05-02 Thread Christoph Hellwig
Hi Dmitry, can you resend this series? I really think we should get this into 4.12 at least.

[PATCH v3 2/4] clk: rockchip: rk3228: make noc and some special clk as critical_clocks

2017-05-02 Thread Elaine Zhang
The jtag\bus\peri\initmem\rom\stimer\phy clks no driver to handle them. But this clks need enable,so make it as critical. The ddrupctl\ddrmon\ddrphy clks no driver to handle them, Chip design requirements for these clock to always on, The new document will update the description of these clock. T

Re: [PATCH v2 3/3] fs: ubifs: set s_uuid in super block

2017-05-02 Thread Richard Weinberger
Amir, Am 02.05.2017 um 09:19 schrieb Amir Goldstein: > On Fri, Apr 28, 2017 at 1:03 AM, Richard Weinberger wrote: >> Am 24.04.2017 um 17:47 schrieb Richard Weinberger: So, if some flag should be implemented, who should do it? :) >>> >>> I'll not do it for you. ;) >> >> Please also see http:/

RE: [Intel-gfx] [RFC PATCH 5/6] drm/i915/gvt: dmabuf support for GVT-g

2017-05-02 Thread Chen, Xiaoguang
>-Original Message- >From: Chris Wilson [mailto:ch...@chris-wilson.co.uk] >Sent: Friday, April 28, 2017 6:09 PM >To: Chen, Xiaoguang >Cc: kra...@redhat.com; alex.william...@redhat.com; intel- >g...@lists.freedesktop.org; intel-gvt-...@lists.freedesktop.org; Wang, Zhi A >; zhen...@linux.i

Re: [PATCH] x86/mm: Fix incorrect for loop count calculation in sync_global_pgds

2017-05-02 Thread Baoquan He
On 05/02/17 at 09:24am, Ingo Molnar wrote: > > * Baoquan He wrote: > > > On 05/01/17 at 03:37pm, Yinghai Lu wrote: > > > On Mon, May 1, 2017 at 4:41 AM, Baoquan He wrote: > > > > arch/x86/mm/init_64.c | 6 -- > > > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > > > > > diff --gi

Re: [PATCH v3 1/2] sched/deadline: Remove unnecessary condition in push_dl_task()

2017-05-02 Thread Byungchul Park
On Thu, Feb 16, 2017 at 11:34:16AM +0900, Byungchul Park wrote: > pick_next_pushable_dl_task(rq) has BUG_ON(rq->cpu != task_cpu(task)) > when it returns a task other than NULL, which means that task_cpu(task) > must be rq->cpu. So if task == next_task, then task_cpu(next_task) must > be rq->cpu as

Re: 4.8.8 kernel trigger OOM killer repeatedly when I have lots of RAM that should be free

2017-05-02 Thread Michal Hocko
On Mon 01-05-17 21:12:35, Marc MERLIN wrote: > Howdy, > > Well, sadly, the problem is more or less back is 4.11.0. The system doesn't > really > crash but it goes into an infinite loop with > [34776.826800] BUG: workqueue lockup - pool cpus=6 node=0 flags=0x0 nice=0 > stuck for 33s! > More logs

[PATCH v4 0/2] drivers: serial: Aspeed VUART driver

2017-05-02 Thread Joel Stanley
This is v4 of a driver for the Aspeed VUART. This version addresses feedback from Andy and Greg, and includes Rob's ack for the bindings change. The VUART is a serial device on the BMC side of the LPC bus that connects a BMC to it's host processor. We add a flag to the serial core to allow the dr

[PATCH v4 1/2] serial: 8250: Add flag so drivers can avoid THRE probe

2017-05-02 Thread Joel Stanley
The probing of THRE irq behaviour assumes the other end will be reading bytes out of the buffer in order to probe the port at driver init. In some cases the other end cannot be relied upon to read these bytes, so provide a flag for them to skip this step. Bit 19 was chosen as the flags are a int a

Re: [PATCH v3 2/2] drivers/serial: Add driver for Aspeed virtual UART

2017-05-02 Thread Joel Stanley
On Tue, Apr 11, 2017 at 9:45 PM, Andy Shevchenko wrote: > On Mon, Apr 10, 2017 at 7:04 AM, Joel Stanley wrote: >> From: Jeremy Kerr >> >> This change adds a driver for the 16550-based Aspeed virtual UART >> device. We use a similar process to the of_serial driver for device >> probe, but expose

[PATCH v4 2/2] drivers/serial: Add driver for Aspeed virtual UART

2017-05-02 Thread Joel Stanley
From: Jeremy Kerr This change adds a driver for the 16550-based Aspeed virtual UART device. We use a similar process to the of_serial driver for device probe, but expose some VUART-specific functions through sysfs too. The VUART is two UART 'front ends' connected by their FIFO (no actual serial

Re: [RFC] remove support for AVR32 architecture

2017-05-02 Thread Andy Shevchenko
On Tue, May 2, 2017 at 8:52 AM, Hans-Christian Noren Egtvedt wrote: > Around Mon 27 Mar 2017 15:35:56 +0200 or thereabout, Hans-Christian Noren > Egtvedt wrote: >> Around Mon 27 Mar 2017 15:26:04 +0200 or thereabout, Boris Brezillon wrote: >>> On Wed, 1 Mar 2017 21:44:26 +0100 Hans-Christian Nore

Re: [PATCH v3 1/2] ASoC: stm32: add bindings for SAI

2017-05-02 Thread Olivier MOYSAN
Hello Rob, On 04/28/2017 10:53 PM, Rob Herring wrote: > On Mon, Apr 10, 2017 at 05:19:55PM +0200, olivier moysan wrote: >> This patch adds documentation of device tree bindings for the >> STM32 SAI ASoC driver. >> >> Signed-off-by: olivier moysan >> --- >> .../devicetree/bindings/sound/st,stm32-

Re: Build regressions/improvements in v4.11

2017-05-02 Thread Geert Uytterhoeven
On Tue, May 2, 2017 at 9:28 AM, Geert Uytterhoeven wrote: > JFYI, when comparing v4.11[1] to v4.11-rc8[3], the summaries are: > - build errors: +3/-1 Nothing new to report. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@li

Re: [PATCH v4 2/2] drivers/serial: Add driver for Aspeed virtual UART

2017-05-02 Thread Andy Shevchenko
On Tue, May 2, 2017 at 10:45 AM, Joel Stanley wrote: > From: Jeremy Kerr > > This change adds a driver for the 16550-based Aspeed virtual UART > device. We use a similar process to the of_serial driver for device > probe, but expose some VUART-specific functions through sysfs too. > > The VUART i

[PATCH] tcmu: Recalculate the tcmu_cmd size to save cmd area memories

2017-05-02 Thread lixiubo
From: Xiubo Li For the "struct tcmu_cmd_entry" in cmd area, the minimum size will be sizeof(struct tcmu_cmd_entry) == 112 Bytes. And it could fill about (sizeof(struct rsp) - sizeof(struct req)) / sizeof(struct iovec) == 68 / 16 ~= 4 data regions(iov[4]) by default. For most tcmu_cmds, the data

Re: [PATCH] vmscan: scan pages until it founds eligible pages

2017-05-02 Thread Michal Hocko
On Tue 02-05-17 14:14:52, Minchan Kim wrote: > Oops, forgot to add lkml and linux-mm. > Sorry for that. > Send it again. > > >From 8ddf1c8aa15baf085bc6e8c62ce705459d57ea4c Mon Sep 17 00:00:00 2001 > From: Minchan Kim > Date: Tue, 2 May 2017 12:34:05 +0900 > Subject: [PATCH] vmscan: scan pages unt

[PATCH, RFC] MAINTAINERS: update OSD entries

2017-05-02 Thread Christoph Hellwig
The open-osd domain doesn't exist anymore, and mails to the list lead to really annoying bounced that repeat every day. Also the primarydata address for Benny bounces, and while I have a new one for him he doesn't seem to be maintaining the OSD code any more. Which beggs the question: should we

[PATCH v2] stmmac: Add support for SIMATIC IOT2000 platform

2017-05-02 Thread Jan Kiszka
The IOT2000 is industrial controller platform, derived from the Intel Galileo Gen2 board. The variant IOT2020 comes with one LAN port, the IOT2040 has two of them. They can be told apart based on the board asset tag in the DMI table. Based on patch by Sascha Weisenberger. Signed-off-by: Jan Kiszk

Re: [GIT PULL] RCU changes for v4.12

2017-05-02 Thread Ingo Molnar
* Paul E. McKenney wrote: > On Mon, May 01, 2017 at 06:19:44PM -0700, Linus Torvalds wrote: > > On Mon, May 1, 2017 at 2:59 AM, Ingo Molnar wrote: > > > Linus, > > > > > > Please pull the latest core-rcu-for-linus git tree from: > > > > > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/t

Re: [PATCH v4 2/2] drivers/serial: Add driver for Aspeed virtual UART

2017-05-02 Thread Benjamin Herrenschmidt
On Tue, 2017-05-02 at 17:15 +0930, Joel Stanley wrote: > From: Jeremy Kerr > > This change adds a driver for the 16550-based Aspeed virtual UART > device. We use a similar process to the of_serial driver for device > probe, but expose some VUART-specific functions through sysfs too. > > The VUAR

[RFC] dev/mem: "memtester -p 0x6c80000000000 10G" cause crash

2017-05-02 Thread Xishi Qiu
Hi, I use "memtester -p 0x6c800 10G" to test physical address 0x6c800 Because this physical address is invalid, and valid_mmap_phys_addr_range() always return 1, so it causes crash. My question is that should the user assure the physical address is valid? ... [ 169.147578] ? pani

Re: [PATCH v2] stmmac: Add support for SIMATIC IOT2000 platform

2017-05-02 Thread Andy Shevchenko
On Tue, May 2, 2017 at 10:58 AM, Jan Kiszka wrote: > The IOT2000 is industrial controller platform, derived from the Intel > Galileo Gen2 board. The variant IOT2020 comes with one LAN port, the > IOT2040 has two of them. They can be told apart based on the board asset > tag in the DMI table. > > B

[PATCH] ARM: dts: omap4-droid4: Add isl29030 ALS/proximity sensor

2017-05-02 Thread Sebastian Reichel
The Droid 4 has a isl29030 to measure ambient light (e.g. for automatically adapting display brightness) and proximity. Signed-off-by: Sebastian Reichel --- Hi, The (trivial) driver changes have already been queued to iio-testing: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/co

Re: [patch v2] mm, vmscan: avoid thrashing anon lru when free + file is low

2017-05-02 Thread Michal Hocko
On Mon 01-05-17 14:34:21, David Rientjes wrote: [...] > @@ -2204,8 +2204,17 @@ static void get_scan_count(struct lruvec *lruvec, > struct mem_cgroup *memcg, > } > > if (unlikely(pgdatfile + pgdatfree <= total_high_wmark)) { > - scan_balance = SCAN_

Re: [PATCH v3 0/9] Don't reinvent the wheel but use existing llist API

2017-05-02 Thread Byungchul Park
On Tue, Feb 14, 2017 at 04:26:21PM +0900, Byungchul Park wrote: Hello, I did what you suggested. Is there anything I shoud do more? If so, please let know. Thank you, Byungchul > Change from v2 > - replace for_each(wake_list) with the safe version in scheduler. > - fix a trivial comment in llis

Re: [PATCH v7 0/7] Introduce ZONE_CMA

2017-05-02 Thread Vlastimil Babka
On 04/27/2017 05:06 PM, Michal Hocko wrote: > On Tue 25-04-17 12:42:57, Joonsoo Kim wrote: >> On Mon, Apr 24, 2017 at 03:09:36PM +0200, Michal Hocko wrote: >>> On Mon 17-04-17 11:02:12, Joonsoo Kim wrote: On Thu, Apr 13, 2017 at 01:56:15PM +0200, Michal Hocko wrote: > On Wed 12-04-17 10:35

Re: [PATCH 02/13] blk: replace bioset_create_nobvec() with a flags arg to bioset_create()

2017-05-02 Thread Christoph Hellwig
> diff --git a/include/linux/bio.h b/include/linux/bio.h > index d1b04b0e99cf..0975da6bebd9 100644 > --- a/include/linux/bio.h > +++ b/include/linux/bio.h > @@ -373,8 +373,10 @@ static inline struct bio *bio_next_split(struct bio > *bio, int sectors, > return bio_split(bio, sectors, gfp, bs)

[PATCH] bcache: explicitly destory mutex while exiting

2017-05-02 Thread Liang Chen
mutex_destroy does nothing most of time, but it's better to call it to make the code future proof and it also has some meaning for like mutex debug. Signed-off-by: Liang Chen --- drivers/md/bcache/super.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/md/bcache/super.c b/drivers/m

Re: [PATCH] MAINTAINERS: Update MAX77802 PMIC entry

2017-05-02 Thread Lee Jones
On Sun, 30 Apr 2017, Mark Brown wrote: > On Fri, Apr 28, 2017 at 12:56:21AM -0400, Javier Martinez Canillas wrote: > > The Samsung email address will stop working soon, so use my personal > > email address instead. > > Acked-by: Mark Brown I think this is now yours to take. -- Lee Jones Linar

Re: [RFC] remove support for AVR32 architecture

2017-05-02 Thread Hans-Christian Noren Egtvedt
Around Tue 02 May 2017 10:46:58 +0300 or thereabout, Andy Shevchenko wrote: > On Tue, May 2, 2017 at 8:52 AM, Hans-Christian Noren Egtvedt > wrote: >> Around Mon 27 Mar 2017 15:35:56 +0200 or thereabout, Hans-Christian Noren >> Egtvedt wrote: >>> Around Mon 27 Mar 2017 15:26:04 +0200 or thereabou

Re: [PATCH 05/13] block: Improvements to bounce-buffer handling

2017-05-02 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig although I think we really should kill off the block level bouncing rather sooner than later.

Re: [PATCH 03/13] blk: make the bioset rescue_workqueue optional.

2017-05-02 Thread Christoph Hellwig
On Tue, May 02, 2017 at 01:42:24PM +1000, NeilBrown wrote: > This patch converts bioset_create() and > bioset_create_nobvec() to not create a workqueue so > alloctions will never trigger punt_bios_to_rescuer(). It > also introduces bioset_create_rescued() and > bioset_create_nobvec_rescued() which

Re: [PATCH 09/13] lightnvm/pblk-read: use bio_clone_fast()

2017-05-02 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

Re: [PATCH 10/13] xen-blkfront: remove bio splitting.

2017-05-02 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

Re: [PATCH 13/13] block: don't check for BIO_MAX_PAGES in blk_bio_segment_split()

2017-05-02 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

[PATCH] coresight: use const for device_node structures

2017-05-02 Thread Leo Yan
Almost low level functions from open firmware have used const to qualify device_node structures, so add const for device_node parameters in of_coresight related functions. Reviewed-by: Stephen Boyd Signed-off-by: Leo Yan --- drivers/hwtracing/coresight/of_coresight.c | 4 ++-- include/linux/cor

Re: [PATCH 2/3] drm/vc4: Don't try to initialize FBDEV if we're only bound to V3D.

2017-05-02 Thread Daniel Vetter
On Mon, Apr 24, 2017 at 10:26:45AM -0400, Alex Deucher wrote: > On Fri, Apr 21, 2017 at 6:53 PM, Eric Anholt wrote: > > Daniel Vetter writes: > > > >> On Wed, Apr 19, 2017 at 7:55 PM, Eric Anholt wrote: > >>> Daniel Vetter writes: > On Tue, Apr 18, 2017 at 9:11 PM, Eric Anholt wrote: > >>

Re: [PATCH 1/2] sched/fair: Fix how load gets propagated from cfs_rq to its sched_entity

2017-05-02 Thread Peter Zijlstra
On Mon, May 01, 2017 at 05:56:04PM -0400, Tejun Heo wrote: > I still wonder what gcfs_rq se->load_avg.avg is good for tho? It's > nice to keep the value in line but is it actually used anywhere? Its used to manage its parent's cfs_rq sums boundary conditions. When we enqueue the group se to the

Re: linux-next: build failure after merge of the drm-misc tree

2017-05-02 Thread Daniel Vetter
On Mon, Apr 24, 2017 at 11:25:12AM +1000, Stephen Rothwell wrote: > Hi all, > > On Fri, 21 Apr 2017 12:10:14 +1000 Stephen Rothwell > wrote: > > > > After merging the drm-misc tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > > > > drivers/tee/tee_shm.c:87:2: error: u

Re: [PATCH] arm64: Fix multiple 'asm-operand-widths' warnings

2017-05-02 Thread Marc Zyngier
On 01/05/17 22:26, Matthias Kaehlcke wrote: > clang raises 'asm-operand-widths' warnings in inline assembly code when > the size of an operand is < 64 bits and the operand width is unspecified. > Most warnings are raised in macros, i.e. the datatype of the operand may > vary. Forcing the use of an

Re: [PATCH v2 4/4] perf vendor events arm64: Add implementation defined pmu core events of ThunderX2

2017-05-02 Thread Ganapatrao Kulkarni
On Fri, Apr 28, 2017 at 10:50 PM, Will Deacon wrote: > On Fri, Apr 28, 2017 at 10:23:47AM +0530, Ganapatrao Kulkarni wrote: >> This is not a full event list, but a short list of useful events. >> >> Signed-off-by: Ganapatrao Kulkarni >> --- >> tools/perf/pmu-events/arch/arm64/mapfile.csv |

Re: [PATCH 1/2] sched/fair: Fix how load gets propagated from cfs_rq to its sched_entity

2017-05-02 Thread Peter Zijlstra
On Tue, May 02, 2017 at 10:19:05AM +0200, Peter Zijlstra wrote: > Can you have a play with something like the below? I suspect > 'shares_runnable' might work for you here. > --- > kernel/sched/fair.c | 62 > + > 1 file changed, 44 insertions(+)

[PATCH v7 0/7] coresight: enable debug module

2017-05-02 Thread Leo Yan
ARMv8 architecture reference manual (ARM DDI 0487A.k) Chapter H7 "The Sample-based Profiling Extension" has description for sampling registers, we can utilize these registers to check program counter value with combined CPU exception level, secure state, etc. So this is helpful for CPU lockup bugs,

[PATCH v7 1/7] coresight: bindings for CPU debug module

2017-05-02 Thread Leo Yan
According to ARMv8 architecture reference manual (ARM DDI 0487A.k) Chapter 'Part H: External debug', the CPU can integrate debug module and it can support self-hosted debug and external debug. Especially for supporting self-hosted debug, this means the program can access the debug module from mmio

[PATCH] srcu: Debloat the header

2017-05-02 Thread Ingo Molnar
* Ingo Molnar wrote: > > I will get rid of the unused rcu_segcblist_extract_all() function and > > create a > > kernel/rcu/segcblist.c for the functions that are either non-trivial or > > performance-insensitive. > > > > Does that cover it, or am I missing something? > > I'd also suggest mo

[PATCH v7 2/7] doc: Add documentation for Coresight CPU debug

2017-05-02 Thread Leo Yan
Update kernel-parameters.txt to add new parameter: coresight_cpu_debug.enable is a knob to enable debugging at boot time. Add detailed documentation, which contains the implementation, Mike Leach excellent summary for "clock and power domain". At the end some examples on how to enable the debuggin

[PATCH v7 3/7] coresight: of_get_coresight_platform_data: Add missing of_node_put

2017-05-02 Thread Leo Yan
From: Suzuki K Poulose The of_get_coresight_platform_data iterates over the possible CPU nodes to find a given cpu phandle. However it does not drop the reference to the node pointer returned by the of_get_coresight_platform_data. This patch also introduces another minor fix is to use of_cpu_dev

[PATCH v2 4/6] firmware: add sanity check on shutdown/suspend

2017-05-02 Thread Luis R. Rodriguez
The firmware API should not be used after we go to suspend and after we reboot/halt. The suspend/resume case is a bit complex, so this documents that so things are clearer. We want to know about users of the API in incorrect places so that their callers are corrected, so this also adds a warn for

[PATCH v7 5/7] coresight: add support for CPU debug module

2017-05-02 Thread Leo Yan
Coresight includes debug module and usually the module connects with CPU debug logic. ARMv8 architecture reference manual (ARM DDI 0487A.k) has description for related info in "Part H: External Debug". Chapter H7 "The Sample-based Profiling Extension" introduces several sampling registers, e.g. we

[PATCH v7 6/7] arm64: dts: hi6220: register debug module

2017-05-02 Thread Leo Yan
Bind debug module driver for Hi6220. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 64 +++ 1 file changed, 64 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 470461d..467

[PATCH v2 5/6] firmware: move assign_firmware_buf() further up

2017-05-02 Thread Luis R. Rodriguez
This will make subsequent changes easier to read. Signed-off-by: Luis R. Rodriguez --- drivers/base/firmware_class.c | 77 +-- 1 file changed, 38 insertions(+), 39 deletions(-) diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c ind

[PATCH v7 7/7] arm64: dts: qcom: msm8916: Add debug unit

2017-05-02 Thread Leo Yan
Add debug unit on Qualcomm msm8916 based platforms, including the DragonBoard 410c board. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boo

Re: [PATCH v4 0/7] ARM: Fix dma_alloc_coherent() and friends for NOMMU

2017-05-02 Thread Vladimir Murzin
Gentle ping! On 24/04/17 11:16, Vladimir Murzin wrote: > It seem that addition of cache support for M-class CPUs uncovered > latent bug in DMA usage. NOMMU memory model has been treated as being > always consistent; however, for R/M CPU classes memory can be covered > by MPU which in turn might co

[PATCH v2 2/6] firmware: share fw fallback killing on reboot/suspend

2017-05-02 Thread Luis R. Rodriguez
We kill pending fallback requests on suspend and reboot, the only difference is that on suspend we only kill custom fallback requests. Provide a wrapper that lets us customize the request with a flag. This also lets us simplify the #ifdef'ery over the calls. Signed-off-by: Luis R. Rodriguez ---

[PATCH v2 6/6] firmware: move umh try locks into the umh code

2017-05-02 Thread Luis R. Rodriguez
This moves the usermode helper locks into only code paths that use the usermode helper API from the kernel. The usermode helper locks were originally added to prevent stalling suspend, later the firmware cache was added to help with this, and further later direct filesystem lookup was added by Linu

Re: [RFC] remove support for AVR32 architecture

2017-05-02 Thread Andy Shevchenko
On Tue, May 2, 2017 at 11:12 AM, Hans-Christian Noren Egtvedt wrote: > Around Tue 02 May 2017 10:46:58 +0300 or thereabout, Andy Shevchenko wrote: >> On Tue, May 2, 2017 at 8:52 AM, Hans-Christian Noren Egtvedt >> wrote: >>> Around Mon 27 Mar 2017 15:35:56 +0200 or thereabout, Hans-Christian Nore

[PATCH v7 4/7] coresight: refactor with function of_coresight_get_cpu

2017-05-02 Thread Leo Yan
This is refactor to add function of_coresight_get_cpu(), so it's used to retrieve CPU id for coresight component. Finally can use it as a common function for multiple places. Suggested-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose Signed-off-by: Leo Yan --- drivers/hwtracing/coresight/of_c

[PATCH v2 3/6] firmware: always enable the reboot notifier

2017-05-02 Thread Luis R. Rodriguez
Now that we've have proper wrappers for the fallback mechanism we can easily share the reboot notifier for the firmware_class at all times. This change will make subsequent modifications to the reboot notifier easier to review. Signed-off-by: Luis R. Rodriguez --- drivers/base/firmware_class.c

[PATCH v2 1/6] firmware: move kill_requests_without_uevent() up above

2017-05-02 Thread Luis R. Rodriguez
This routine will used in functions declared earlier next. This code shift has no functional changes, it will make subsequent changes easier to read. Signed-off-by: Luis R. Rodriguez --- drivers/base/firmware_class.c | 32 1 file changed, 16 insertions(+), 16 del

[PATCH v2 0/6] firmware: move UMH locks onto fallback code

2017-05-02 Thread Luis R. Rodriguez
Greg, This v2 follows the last iteration submitted [0] and addresses one build failure case which for some reason was not caught by 0-day, and it also adjusts some documentation to make 'make htmldocs' happy. This and the next series are available in git form on my linux-next 20170501-driver-data-

Re: linux-next: build failure after merge of the drm-misc tree

2017-05-02 Thread Stephen Rothwell
Hi Daniel, On Tue, 2 May 2017 10:25:18 +0200 Daniel Vetter wrote: > > Since this is an all-new driver it might be best to stagger the pull > requests and merge the new tee subsystem (or whatever it is) after drm? > > Not sure what to best do here ... This will merge via Dave, so Dave just needs

Re: [RFC] dev/mem: "memtester -p 0x6c80000000000 10G" cause crash

2017-05-02 Thread Michal Hocko
On Tue 02-05-17 15:59:23, Xishi Qiu wrote: > Hi, I use "memtester -p 0x6c800 10G" to test physical address > 0x6c800 > Because this physical address is invalid, and valid_mmap_phys_addr_range() > always return 1, so it causes crash. > > My question is that should the user assure t

Re: [PATCH v2] tty/serial: atmel: use offset_in_page() macro

2017-05-02 Thread Richard Genoud
On 29/04/2017 03:39, Geliang Tang wrote: > Use offset_in_page() macro instead of open-coding. > > Signed-off-by: Geliang Tang Acked-by: Richard Genoud > --- > Changes in v2: > - include mm.h > --- > drivers/tty/serial/atmel_serial.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-)

Re: [PATCH 1/2] drm: Introduce crtc->mode_valid() callback

2017-05-02 Thread Daniel Vetter
On Wed, Apr 26, 2017 at 11:48:34AM +0100, Jose Abreu wrote: > Some crtc's may have restrictions in the mode they can display. In > this patch a new callback (crtc->mode_valid()) is introduced that > is called at the same stage of connector->mode_valid() callback. > > This shall be implemented if t

[PATCH v7 0/5] firmware: add driver data API

2017-05-02 Thread Luis R. Rodriguez
Greg, On the v6 series [0] I got good amount of feedback from Luca and from AKASHI Takahiro, who is picking up on the firmware signing work. In this respin I've addressed their feedback, mostly to do away with redundant checks while we can just proactively prevent certain situations, added a int t

[PATCH v7 2/5] firmware: add extensible driver data API

2017-05-02 Thread Luis R. Rodriguez
The firmware API does not scale well: when new features are added we either add a new exported symbol or extend the arguments of existing routines. For the later case this means we need to traverse the kernel with a slew of collateral evolutions to adjust old driver users. The firmware API is also

[PATCH v7 3/5] test: add new driver_data load tester

2017-05-02 Thread Luis R. Rodriguez
This adds a load tester driver test_driver_data a for the new extensible driver_data loader API, part of firmware_class. This test driver enables you to build your tests in userspace by exposing knobs of the exported API to userspace and enables a trigger action to mimic a one time use of the kerne

[PATCH v7 1/5] firmware: add extensible driver data params

2017-05-02 Thread Luis R. Rodriguez
As the firmware API evolves we keep extending functions with more arguments. Stop this nonsense by proving an extensible data structure which can be used to represent both user parameters and private internal parameters. We introduce 3 data structures: o struct driver_data_req_params - used fo

[PATCH v7 5/5] iwlwifi: convert to use driver data API

2017-05-02 Thread Luis R. Rodriguez
The driver data API provides support for looking for firmware from a specific set of API ranges, so just use that. Since we free the firmware on the callback immediately after consuming it, this also takes avantage of that feature. Signed-off-by: Luis R. Rodriguez --- drivers/net/wireless/intel/

[PATCH v7 4/5] firmware: document the extensible driver data API

2017-05-02 Thread Luis R. Rodriguez
This documents the driver data API. Signed-off-by: Luis R. Rodriguez --- Documentation/driver-api/firmware/driver_data.rst | 167 + Documentation/driver-api/firmware/index.rst| 1 + Documentation/driver-api/firmware/introduction.rst | 16 ++ .../driver-api/firmwar

Benfit

2017-05-02 Thread Mrs Julie Leach
You are a recipient to Mrs Julie Leach Donation of $3 million USD. Contact(julieleac...@gmail.com) for claims.

[PATCH] rtc: rtc-efi: Add an enable parameter and make it false for X86 by default

2017-05-02 Thread Ocean HY1 He
The commit 7efe665903d0 ("rtc: Disable EFI rtc for x86") turns off rtc-efi option completely for x86 in rtc/Kconfig, to avoid possible crash caused by buggy implementations of the time-related EFI runtime services. In fact, there are more and more UEFI firmware has time-related EFI runtime service

Re: [PATCH v8 05/10] media: venus: adding core part and helper functions

2017-05-02 Thread Stanimir Varbanov
Hei Sakari, On 04/30/2017 01:21 AM, Sakari Ailus wrote: > Hi, Stan!! > > On Fri, Apr 28, 2017 at 12:13:52PM +0300, Stanimir Varbanov wrote: > ... >> +int helper_get_bufreq(struct venus_inst *inst, u32 type, >> + struct hfi_buffer_requirements *req) >> +{ >> +u32 ptype = HFI_P

Re: [RFC] dev/mem: "memtester -p 0x6c80000000000 10G" cause crash

2017-05-02 Thread Xishi Qiu
On 2017/5/2 16:43, Michal Hocko wrote: > On Tue 02-05-17 15:59:23, Xishi Qiu wrote: >> Hi, I use "memtester -p 0x6c800 10G" to test physical address >> 0x6c800 >> Because this physical address is invalid, and valid_mmap_phys_addr_range() >> always return 1, so it causes crash. >>

Re: linux-next: build failure after merge of the drm-misc tree

2017-05-02 Thread Arnd Bergmann
On Tue, May 2, 2017 at 10:41 AM, Stephen Rothwell wrote: > Hi Daniel, > > On Tue, 2 May 2017 10:25:18 +0200 Daniel Vetter wrote: >> >> Since this is an all-new driver it might be best to stagger the pull >> requests and merge the new tee subsystem (or whatever it is) after drm? >> >> Not sure wha

Re: [PATCH] mtd: nand: gpio: make nCE GPIO optional

2017-05-02 Thread Boris Brezillon
On Tue, 2 May 2017 07:47:40 +0200 Christophe LEROY wrote: > Le 01/05/2017 à 23:46, Brian Norris a écrit : > > On Fri, Feb 10, 2017 at 03:01:10PM +0100, Christophe Leroy wrote: > >> On some hardware, the nCE signal is wired to the ChipSelect associated > >> to bus address of the NAND, so it is a

Re: [PATCH] serdev: Restore serdev_device_write_buf for atomic context

2017-05-02 Thread Johan Hovold
On Fri, Apr 28, 2017 at 01:47:21PM +0200, Stefan Wahren wrote: > Starting with commit 6fe729c4bdae ("serdev: Add serdev_device_write > subroutine") the function serdev_device_write_buf cannot be used in > atomic context anymore (mutex_lock is sleeping). So restore the old > behavior. Yeah, prevent

Re: [PATCH v4 05/15] mtd: nand: add manufacturer specific initialization/detection steps

2017-05-02 Thread Boris Brezillon
On Mon, 1 May 2017 14:02:46 -0700 Brian Norris wrote: > Hi, > > On Tue, Jan 03, 2017 at 02:01:25PM +0100, Boris Brezillon wrote: > > A lot of NANDs are implementing generic features in a non-generic way, > > or are providing advanced auto-detection logic where the NAND ID bytes > > meaning chang

  1   2   3   4   5   6   7   >