[PATCH v4] ARM: dts: tpc: Device tree description of the iMX6Q TPC board

2018-04-10 Thread Lukasz Majewski
This commit adds device tree description of Kieback & Peter GmbH iMX6Q TPC board. Signed-off-by: Lukasz Majewski Reviewed-by: Fabio Estevam --- Changes for v4: - Remove not needed bus-format-override = "rgb565"; property Changes for v3: - Provide proper compatible for RTC DTS node - Remove w

Re: [PATCH v2 2/9] PCI: dwc: Add support for endpoint mode

2018-04-10 Thread Gustavo Pimentel
Hi Kishon, On 10/04/2018 06:12, Kishon Vijay Abraham I wrote: > Hi, > > On Monday 09 April 2018 03:11 PM, Gustavo Pimentel wrote: >> The PCIe controller dual mode is capable of operating in host mode as well >> as endpoint mode by configuration, therefore this patch aims to add >> endpoint mode s

[GIT PULL] sound fixes for 4.17-rc1

2018-04-10 Thread Takashi Iwai
Linus, please pull sound fixes for v4.17-rc1 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-fix-4.17-rc1 The topmost commit is e1a3a981e320a6916b30ff53571ba144274def0e sound fixes for 4.17-rc1

Re: [v3 PATCH] mm: introduce arg_lock to protect arg_start|end and env_start|end in mm_struct

2018-04-10 Thread Michal Hocko
On Tue 10-04-18 12:40:47, Cyrill Gorcunov wrote: > On Tue, Apr 10, 2018 at 11:09:17AM +0200, Michal Hocko wrote: > > On Tue 10-04-18 05:52:54, Yang Shi wrote: > > [...] > > > So, introduce a new spinlock in mm_struct to protect the concurrent > > > access to arg_start|end, env_start|end and others

Re: [PATCH] cpufreq/schedutil: Cleanup and document iowait boost

2018-04-10 Thread Patrick Bellasi
Hi Vincent, On 05-Apr 15:28, Viresh Kumar wrote: > On 28-03-18, 10:07, Patrick Bellasi wrote: > > diff --git a/kernel/sched/cpufreq_schedutil.c > > b/kernel/sched/cpufreq_schedutil.c > > index 2b124811947d..c840b0626735 100644 > > --- a/kernel/sched/cpufreq_schedutil.c > > +++ b/kernel/sched/cpuf

Re: [Xen-devel] [RFC, v2, 1/9] hyper_dmabuf: initial upload of hyper_dmabuf drv core framework

2018-04-10 Thread Julien Grall
Hi, On 04/10/2018 09:53 AM, Oleksandr Andrushchenko wrote: On 02/14/2018 03:50 AM, Dongwon Kim wrote: diff --git a/drivers/dma-buf/hyper_dmabuf/hyper_dmabuf_id.h [...] +#ifndef __HYPER_DMABUF_ID_H__ +#define __HYPER_DMABUF_ID_H__ + +#define HYPER_DMABUF_ID_CREATE(domid, cnt) \ +    domi

Re: [PATCH 4/4] vfio: ccw: add traceponits for interesting error paths

2018-04-10 Thread Halil Pasic
On 04/10/2018 10:55 AM, Cornelia Huck wrote: > On Tue, 10 Apr 2018 10:16:39 +0800 > Dong Jia Shi wrote: > >> Does the following effect make sense? >> >> # tracer: nop >> # >> # _-=> irqs-off >> # / _=> need-resched >> #

Re: [PATCH v1] ringbuffer: Don't choose the process with adj equal OOM_SCORE_ADJ_MIN

2018-04-10 Thread Michal Hocko
On Tue 10-04-18 17:32:44, Zhaoyang Huang wrote: > On Tue, Apr 10, 2018 at 5:01 PM, Michal Hocko wrote: > > On Tue 10-04-18 16:38:32, Zhaoyang Huang wrote: > >> On Tue, Apr 10, 2018 at 4:12 PM, Michal Hocko wrote: > >> > On Tue 10-04-18 16:04:40, Zhaoyang Huang wrote: > >> >> On Tue, Apr 10, 2018

[PATCH v8 1/2] dt-bindings: display: bridge: Document THC63LVD1024 LVDS decoder

2018-04-10 Thread Jacopo Mondi
Document Thine THC63LVD1024 LVDS decoder device tree bindings. Signed-off-by: Jacopo Mondi Reviewed-by: Andrzej Hajda Reviewed-by: Niklas Söderlund Reviewed-by: Laurent Pinchart --- .../bindings/display/bridge/thine,thc63lvd1024.txt | 60 ++ 1 file changed, 60 insertions(+

[PATCH v8 2/2] drm: bridge: Add thc63lvd1024 LVDS decoder driver

2018-04-10 Thread Jacopo Mondi
Add DRM bridge driver for Thine THC63LVD1024 LVDS to digital parallel output converter. Signed-off-by: Jacopo Mondi Reviewed-by: Andrzej Hajda Reviewed-by: Niklas Söderlund --- drivers/gpu/drm/bridge/Kconfig| 6 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/

[PATCH v8 0/2] drm: Add Thine THC63LVD1024 LVDS decoder bridge

2018-04-10 Thread Jacopo Mondi
Hello, new version with last bits hopefully fixed. The vcc supply is now mandatory, as suggested by Mark Brown, and the driver requires it to be described in device tree. The "OE" GPIO is now described by 'oe' again, as I wrongly interpreted Rob's suggestions on v6. A few minor grammar fixes i

Re: [PATCH][RFC] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-10 Thread Artem Bityutskiy
On Tue, 2018-04-10 at 12:22 +0200, Rafael J. Wysocki wrote: > On Tue, Apr 10, 2018 at 12:18 PM, Yu Chen > wrote: > > From: Chen Yu > > > > There's a use case during test to only print specific round of > > loops > > if --interval is specified, for example, with this patch applied: > > > > turbo

Re: [PATCH v8 07/14] ARM: dts: rockchip: add clocks in iommu nodes

2018-04-10 Thread Heiko Stuebner
Am Montag, 9. April 2018, 23:49:58 CEST schrieb Heiko Stübner: > Am Montag, 9. April 2018, 17:55:40 CEST schrieb Heiko Stübner: > > Am Montag, 9. April 2018, 17:53:01 CEST schrieb Robin Murphy: > > > On 09/04/18 16:44, Heiko Stübner wrote: > > > > Hi Tomeu, > > > > > > > > Am Montag, 9. April 2018

Re: [PATCH] tools: restore READ_ONCE() C++ compatibility

2018-04-10 Thread Mark Rutland
On Mon, Apr 09, 2018 at 04:40:32PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Apr 09, 2018 at 06:10:41PM +0100, Mark Rutland escreveu: > > Hi Arnaldo, > > > > As Sandipan gave a Tested-by for this, are you happy to pick it up as a > > fix for v4.17? > > > > Or would you prefer that I resend

Re: INFO: task hung in __blkdev_get

2018-04-10 Thread Tetsuo Handa
Hello. Since syzbot is reporting so many hung up bug which involves /dev/loopX , is it possible to "temporarily" apply below patch for testing under syzbot ( after "block/loop: fix deadlock after loop_set_status" and "loop: fix LOOP_GET_STATUS lock imbalance" in linux-block.git#for-linus are merge

[GIT PULL] fbdev changes for v4.17

2018-04-10 Thread Bartlomiej Zolnierkiewicz
Hi Linus, Please pull fbdev changes for v4.17. There is nothing really major here, just a couple of small bugfixes, improvements and cleanups (please see the signed tag description for details). Test merge revealed a small merge conflict, the resolution is trivial: diff --cc drivers/video/conso

[PATCH v2 1/4] arm64: dts: renesas: r8a77970: add VSPD support

2018-04-10 Thread Jacopo Mondi
From: Sergei Shtylyov Describe VSPD0 in the R8A77970 device tree; it will be used by DU in the next patch... Based on the original (and large) patch by Daisuke Matsushita . Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pin

[PATCH v2 4/4] arm64: dts: renesas: eagle: Enable HDMI output

2018-04-10 Thread Jacopo Mondi
Enable HDMI output on Renesas R-Car V3M Eagle board. The HDMI output is enabled connecting the DU LVDS output to the transparent LVDS converter THC63LVD1024, and successively routing its RGB output to the ADV7511W HDMI encoder. Signed-off-by: Niklas Söderlund Signed-off-by: Jacopo Mondi Reviewe

[PATCH v2 0/4] V3M-Eagle HDMI output enablement

2018-04-10 Thread Jacopo Mondi
Hello, this series enables HDMI display on V3M Eagle board. The v2 of this series is based on Linus' master, as it already contains the pull request for arm64 DT is merged already, and it includes enablement of R8A77970 basic components such as PFC, GPIOs and I2c. Compared to to v1 I have not

Re: [PATCH 4/8] livepatch: Add an extra flag to distinguish registered patches

2018-04-10 Thread Petr Mladek
On Mon 2018-04-09 16:02:15, Miroslav Benes wrote: > On Fri, 23 Mar 2018, Petr Mladek wrote: > > > The initial implementation of the atomic replace feature keeps the replaced > > patches on the stack. But people would like to remove the replaced patches > > from different reasons that will be descr

[PATCH v2 3/4] arm64: dts: renesas: r8a77970: add LVDS support

2018-04-10 Thread Jacopo Mondi
From: Niklas Söderlund Add the LVDS device to r8a77970.dtsi in a disabled state. Also connect the it to the LVDS output of the DU. Signed-off-by: Niklas Söderlund Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart --- v1 -> v2: - Rebased on the modified endpoint name and changed patch

[PATCH v2 2/4] arm64: dts: renesas: r8a77970: add DU support

2018-04-10 Thread Jacopo Mondi
From: Sergei Shtylyov Define the generic R8A77970 part of the DU device node. Based on the original (and large) patch by Daisuke Matsushita . Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart --- v1 -> v2: - Rename

Re: [PATCH v2] isofs compress: Remove VLA usage

2018-04-10 Thread Jan Kara
On Thu 05-04-18 11:17:20, Kyle Spiers wrote: > As part of the effort to remove VLAs from the kernel[1], this changes > the allocation of the bhs and pages arrays from being on the stack to being > kcalloc()ed. This also allows for the removal of the explicit zeroing > of bhs. > > https://lkml.org/

Re: [PATCH] cpufreq/schedutil: Cleanup and document iowait boost

2018-04-10 Thread Viresh Kumar
On 10-04-18, 11:43, Patrick Bellasi wrote: > On 05-Apr 15:28, Viresh Kumar wrote: > What about this new version for the two functions, > just compile tested: > > ---8<--- > > static void sugov_set_iowait_boost(struct sugov_cpu *sg_cpu, u64 time, > unsigned int fla

Re: [PATCH] ieee802154: mcr20a: Fix memory leak in mcr20a_probe

2018-04-10 Thread Stefan Schmidt
Hello. On 04/05/2018 06:20 PM, Gustavo A. R. Silva wrote: > Free allocated memory for pdata before return. > > Addresses-Coverity-ID: 1466096 ("Resource leak") > Fixes: 8c6ad9cc5157 ("ieee802154: Add NXP MCR20A IEEE 802.15.4 transceiver > driver") > Signed-off-by: Gustavo A. R. Silva > --- > d

Re: simultaneous voice/data works (was Re: call/normal switch was Re: omap4-droid4: voice call support was)

2018-04-10 Thread Pavel Machek
On Mon 2018-04-09 07:08:47, Tony Lindgren wrote: > * Dan Williams [180408 02:46]: > > On Sat, 2018-04-07 at 14:22 +0200, Pavel Machek wrote: > > > I tried --location-enable-gps-unmanaged , but that did not work for > > > me. > > > > That requires a TTY that would spit out the GPS data; in this mo

Re: [PATCH v1] battery: Add the ThinkPad battery status quirk

2018-04-10 Thread Sebastian Reichel
Hi, On Tue, Apr 10, 2018 at 11:06:43AM +0200, Ognjen Galic wrote: > The EC/ACPI firmware on Lenovo ThinkPads used to report a status > of "Unknown" when the battery is between the charge start and charge > stop thresholds. On Windows, it reports "Not Charging" so the quirk > has been added to fix

Re: [v3 PATCH] mm: introduce arg_lock to protect arg_start|end and env_start|end in mm_struct

2018-04-10 Thread Cyrill Gorcunov
On Tue, Apr 10, 2018 at 12:42:15PM +0200, Michal Hocko wrote: > On Tue 10-04-18 12:40:47, Cyrill Gorcunov wrote: > > On Tue, Apr 10, 2018 at 11:09:17AM +0200, Michal Hocko wrote: > > > On Tue 10-04-18 05:52:54, Yang Shi wrote: > > > [...] > > > > So, introduce a new spinlock in mm_struct to protect

Re: [PATCH][RFC] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-10 Thread Bityutskiy, Artem
On Tue, 2018-04-10 at 18:18 +0800, Yu Chen wrote: > @@ -5076,6 +5084,15 @@ void cmdline(int argc, char **argv) > print_version(); > exit(0); > break; > + case 'x': > + { > +

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-10 Thread Patrick Bellasi
Hi Vincent, On 09-Apr 10:51, Vincent Guittot wrote: > Hi Patrick > > On 6 April 2018 at 19:28, Patrick Bellasi wrote: > > Schedutil is not properly updated when the first FAIR task wakes up on a > > CPU and when a RQ is (un)throttled. This is mainly due to the current > > integration strategy, w

Re: [Xen-devel] [RFC, v2, 1/9] hyper_dmabuf: initial upload of hyper_dmabuf drv core framework

2018-04-10 Thread Oleksandr Andrushchenko
On 04/10/2018 01:47 PM, Julien Grall wrote: Hi, On 04/10/2018 09:53 AM, Oleksandr Andrushchenko wrote: On 02/14/2018 03:50 AM, Dongwon Kim wrote: diff --git a/drivers/dma-buf/hyper_dmabuf/hyper_dmabuf_id.h [...] +#ifndef __HYPER_DMABUF_ID_H__ +#define __HYPER_DMABUF_ID_H__ + +#define HYPER

Re: [PATCH v2 7/9] trace_uprobe/sdt: Fix multiple update of same reference counter

2018-04-10 Thread Oleg Nesterov
Hi Ravi, On 04/10, Ravi Bangoria wrote: > > > and what if __mmu_notifier_register() fails simply because signal_pending() > > == T? > > see mm_take_all_locks(). > > > > at first glance this all look suspicious and sub-optimal, > > Yes. I should have added checks for failure cases. > Will fix them

Re: [PATCH] time: tick-sched: use bool for tick_stopped

2018-04-10 Thread Thomas Gleixner
On Tue, 10 Apr 2018, yuank...@codeaurora.org wrote: > On 2018-04-10 05:10 PM, Thomas Gleixner wrote: > > On Tue, 10 Apr 2018, yuank...@codeaurora.org wrote: > > > On 2018-04-10 04:00 PM, Rafael J. Wysocki wrote: > > > > On Tue, Apr 10, 2018 at 9:33 AM, wrote: > > > > > From: John Zhao > > > > >

Re: [PATCH v2] X86/VMX: Disable VMX preemption timer if MWAIT is not intercepted

2018-04-10 Thread Paolo Bonzini
On 10/04/2018 12:08, KarimAllah Ahmed wrote: > @@ -11908,6 +11908,9 @@ static int vmx_set_hv_timer(struct kvm_vcpu *vcpu, > u64 guest_deadline_tsc) > u64 guest_tscl = kvm_read_l1_tsc(vcpu, tscl); > u64 delta_tsc = max(guest_deadline_tsc, guest_tscl) - guest_tscl; > > + if (kvm_pa

Re: [PATCH 6/8] livepatch: Remove Nop structures when unused

2018-04-10 Thread Petr Mladek
On Tue 2018-04-10 11:14:21, Miroslav Benes wrote: > On Fri, 23 Mar 2018, Petr Mladek wrote: > > This patch allows to unpatch and free the dynamic structures independently > > when the transition finishes. > > > > The free part is a bit tricky because kobject free callbacks are called > > asynchron

Re: [PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode

2018-04-10 Thread Pavel Machek
On Mon 2018-04-09 06:42:59, Tony Lindgren wrote: > * Pavel Machek [180409 10:56]: > > Ok, I should have all that enabled. But droid4-ngsm still fails: > > > > user@devuan:/my/droid4-ngsm$ sudo ./droid4-ngsm > > Starting ngsm.. > > Testing ngsm.. > > Could not open /dev/gsmtty1: Level 2 halted > >

Re: [v3 PATCH] mm: introduce arg_lock to protect arg_start|end and env_start|end in mm_struct

2018-04-10 Thread Michal Hocko
On Tue 10-04-18 14:02:42, Cyrill Gorcunov wrote: > On Tue, Apr 10, 2018 at 12:42:15PM +0200, Michal Hocko wrote: > > On Tue 10-04-18 12:40:47, Cyrill Gorcunov wrote: > > > On Tue, Apr 10, 2018 at 11:09:17AM +0200, Michal Hocko wrote: > > > > On Tue 10-04-18 05:52:54, Yang Shi wrote: > > > > [...] >

Re: [PATCH v2 2/9] PCI: dwc: Add support for endpoint mode

2018-04-10 Thread Kishon Vijay Abraham I
Hi, On Tuesday 10 April 2018 04:06 PM, Gustavo Pimentel wrote: > Hi Kishon, > > On 10/04/2018 06:12, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Monday 09 April 2018 03:11 PM, Gustavo Pimentel wrote: >>> The PCIe controller dual mode is capable of operating in host mode as well >>> as endpoint

Re: [PATCH v6 20/25] drivers: firmware: psci: Introduce psci_dt_topology_init()

2018-04-10 Thread Mark Rutland
On Tue, Apr 10, 2018 at 09:19:26AM +0200, Ulf Hansson wrote: > On 14 March 2018 at 18:38, Mark Rutland wrote: > > On Wed, Mar 14, 2018 at 05:58:30PM +0100, Ulf Hansson wrote: > >> In case the hierarchical layout is used in DT, we want to initialize the > >> corresponding PM domain topology for the

Re: [PATCH 3/8] bindings: PCI: designware: Add support for the EP in designware driver

2018-04-10 Thread Gustavo Pimentel
Hi Rob, On 09/04/2018 20:12, Rob Herring wrote: > On Wed, Mar 28, 2018 at 12:38:33PM +0100, Gustavo Pimentel wrote: >> Signed-off-by: Gustavo Pimentel >> --- >> Documentation/devicetree/bindings/pci/designware-pcie.txt | 13 + >> 1 file changed, 13 insertions(+) >> >> diff --git a/Do

Re: [PATCH -mm] mm, pagemap: Fix swap offset value for PMD migration entry

2018-04-10 Thread Kirill A. Shutemov
On Tue, Apr 10, 2018 at 08:57:19AM +0800, Huang, Ying wrote: > >> the swap offset reported doesn't > >> reflect this. And in the loop to report information of each sub-page, > >> the swap offset isn't increased accordingly as that for PFN. > >> > >> BTW: migration swap entries have PFN informatio

Re: INFO: task hung in perf_trace_event_unreg

2018-04-10 Thread Dmitry Vyukov
On Mon, Apr 9, 2018 at 8:11 PM, Paul E. McKenney wrote: > On Mon, Apr 09, 2018 at 06:28:16PM +0200, Dmitry Vyukov wrote: >> On Mon, Apr 9, 2018 at 6:20 PM, Paul E. McKenney >> wrote: >> > On Mon, Apr 09, 2018 at 02:54:20PM +0200, Dmitry Vyukov wrote: >> >> On Mon, Apr 2, 2018 at 7:23 PM, Paul E.

Re: [4.9, 1/1] mmc: sdhci-dwc-mshc-pci: synopsys dwc mshc support

2018-04-10 Thread Adrian Hunter
Hi Not sure what is going on this this patch. Apart from the mangled mail, it is not clear it is intended for upstream? Regards Adrian On 28/03/18 18:28, Prabu Thangamuthu wrote: > Synopsys DWC MSHC IP is complaint to SD Standard Host Controller Interface > > specification. This patch is to en

Re: [PATCH] mm: shmem: enable thp migration (Re: [PATCH v1] mm: consider non-anonymous thp as unmovable page)

2018-04-10 Thread Kirill A. Shutemov
On Fri, Apr 06, 2018 at 03:07:11AM +, Naoya Horiguchi wrote: > Hi everyone, > > On Thu, Apr 05, 2018 at 06:03:17PM +0200, Michal Hocko wrote: > > On Thu 05-04-18 18:55:51, Kirill A. Shutemov wrote: > > > On Thu, Apr 05, 2018 at 05:05:47PM +0200, Michal Hocko wrote: > > > > On Thu 05-04-18 16:4

Re: [PATCH] mm: workingset: fix NULL ptr dereference

2018-04-10 Thread Minchan Kim
On Tue, Apr 10, 2018 at 12:28:45PM +0200, Jan Kara wrote: > On Tue 10-04-18 11:32:41, Michal Hocko wrote: > > On Tue 10-04-18 10:55:31, Jan Kara wrote: > > > On Tue 10-04-18 10:22:43, Michal Hocko wrote: > > > > On Mon 09-04-18 10:58:15, Minchan Kim wrote: > > > > > Recently, I got a report like be

Re: [PATCH] time: tick-sched: use bool for tick_stopped

2018-04-10 Thread Peter Zijlstra
On Tue, Apr 10, 2018 at 06:07:17PM +0800, yuank...@codeaurora.org wrote: > > > > > @@ -48,8 +48,8 @@ struct tick_sched { > > > > > unsigned long check_clocks; > > > > > enum tick_nohz_mode nohz_mode; > > > > > > > > > > + bool

RE: [4.9, 1/1] mmc: sdhci-dwc-mshc-pci: synopsys dwc mshc support

2018-04-10 Thread Prabu Thangamuthu
Hi Adrian, This patch is intended to submit against linux-4.9.y branch. Looks like my email client has some problems. I will fix it and send again. Thanks, Prabu On 20/01/2018 16:44 Adrian Hunter wrote: > Hi > > Not sure what is going on this this patch. Apart from the mangled mail, it is >

Re: How to expose various BMC chip controls ?

2018-04-10 Thread Arnd Bergmann
On Tue, Apr 10, 2018 at 11:17 AM, Benjamin Herrenschmidt wrote: > Hi Folks ! > > I would like to discuss something we need to solve for BMC chips before > we start implementing a solution that you'll reject upstream :-) > > So quick recap: the BMC chip is the management controller of your > server

Re: [PATCH v2 1/2] livepatch: Initialize shadow variables safely by a custom callback

2018-04-10 Thread Petr Mladek
On Fri 2018-04-06 17:34:20, Josh Poimboeuf wrote: > On Thu, Apr 05, 2018 at 02:23:14PM +0200, Petr Mladek wrote: > > @@ -150,6 +149,23 @@ static void *__klp_shadow_get_or_alloc(void *obj, > > unsigned long id, void *data, > > goto exists; > > } > > > > + new_shadow->obj = obj;

Re: [PATCH v13 2/6] PCI/AER: Factor out error reporting from AER

2018-04-10 Thread kbuild test robot
Hi Oza, Thank you for the patch! Yet something to improve: [auto build test ERROR on v4.16] [cannot apply to pci/next linus/master next-20180410] [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/commits

Re: [PATCH v2 2/2] af_key: Use DIV_ROUND_UP() instead of open-coded equivalent

2018-04-10 Thread Kevin Easton
On Mon, Apr 09, 2018 at 12:34:42PM +0200, Steffen Klassert wrote: > On Sat, Apr 07, 2018 at 11:40:47AM -0400, Kevin Easton wrote: > > Several places use (x + 7) / 8 to convert from a number of bits to a number > > of bytes. Replace those with DIV_ROUND_UP(x, 8) instead, for consistency > > with ot

Re: [PATCH v4 4/9] vsprintf: Consolidate handling of unknown pointer specifiers

2018-04-10 Thread Andy Shevchenko
On Mon, 2018-04-09 at 15:50 +0200, Petr Mladek wrote: > On Sat 2018-04-07 17:26:40, Andy Shevchenko wrote: > > On Wed, 2018-04-04 at 10:58 +0200, Petr Mladek wrote: > > This change collides with my patch series. Can you elaborate what > > your > > thoughts are about my patches? Are you going incor

Re: INFO: task hung in __blkdev_get

2018-04-10 Thread Dmitry Vyukov
On Tue, Apr 10, 2018 at 12:55 PM, Tetsuo Handa wrote: > Hello. > > Since syzbot is reporting so many hung up bug which involves /dev/loopX , > is it possible to "temporarily" apply below patch for testing under syzbot Unfortunately it's not possible, for full explanation please see: https://githu

Re: [RFC PATCH] sdhci: arasan: Add runtime PM support

2018-04-10 Thread Adrian Hunter
On 29/03/18 08:48, naraniman...@gmail.com wrote: > From: Manish Narani > > This patch adds runtime PM support in Arasan SD driver. > > Signed-off-by: Manish Narani Just a couple of comments about style. > --- > drivers/mmc/host/sdhci-of-arasan.c | 83 > +-

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-10 Thread Patrick Bellasi
Hi Joel, On 06-Apr 16:48, Joel Fernandes wrote: > On Fri, Apr 6, 2018 at 10:28 AM, Patrick Bellasi > wrote: > > Schedutil is not properly updated when the first FAIR task wakes up on a > > CPU and when a RQ is (un)throttled. This is mainly due to the current > > integration strategy, which relies

Re: [PATCH v8 07/14] ARM: dts: rockchip: add clocks in iommu nodes

2018-04-10 Thread Heiko Stuebner
Am Freitag, 23. März 2018, 08:38:07 CEST schrieb Jeffy Chen: > Add clocks in iommu nodes, since we are going to control clocks in > rockchip iommu driver. > > Signed-off-by: Jeffy Chen applied for 4.18 after splitting arm32+arm64 parts into 2 patches and adapting the subject for the arm64 varian

Re: [PATCH v2] mm: workingset: fix NULL ptr dereference

2018-04-10 Thread kbuild test robot
Hi Minchan, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.16 next-20180410] [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/commits

Re: [PATCH] mmc: sdhci-pci: Only do AMD tuning for HS200

2018-04-10 Thread Adrian Hunter
On 07/04/18 01:07, Daniel Kurtz wrote: > Commit c31165d7400b ("mmc: sdhci-pci: Add support for HS200 tuning mode > on AMD, eMMC-4.5.1") added a HS200 tuning method for use with AMD SDHCI > controllers. As described in the commit subject, this tuning is specific > for HS200. However, as implemente

Re: [RFC PATCH v2 2/6] sched: Introduce energy models of CPUs

2018-04-10 Thread Peter Zijlstra
On Fri, Apr 06, 2018 at 04:36:03PM +0100, Dietmar Eggemann wrote: > + /* > + * Build the energy model of one CPU, and link it to all CPUs > + * in its frequency domain. This should be correct as long as > + * they share the same micro-architecture.

Re: [PATCH] mm: workingset: fix NULL ptr dereference

2018-04-10 Thread Matthew Wilcox
On Tue, Apr 10, 2018 at 11:59:03AM +0900, Minchan Kim wrote: > Okay, I hope this version clear current concerns. It doesn't. The right place to warn about GFP_ZERO used with a constructor is _slab_, like the patch I already sent. We have no idea what other places might have the same bug, and sla

Re: [PATCH v2] target-i386: add KVM_HINTS_DEDICATED performance hint

2018-04-10 Thread Eduardo Habkost
On Tue, Apr 10, 2018 at 05:13:21PM +0800, Wanpeng Li wrote: > Hi Eduardo, > 2018-03-09 22:16 GMT+08:00 Eduardo Habkost : > > On Fri, Feb 09, 2018 at 06:15:25AM -0800, Wanpeng Li wrote: > >> From: Wanpeng Li > >> > >> Add KVM_HINTS_DEDICATED performance hint, guest checks this feature bit > >> to d

Re: [PATCH] cpufreq/schedutil: Cleanup and document iowait boost

2018-04-10 Thread Patrick Bellasi
On 10-Apr 16:26, Viresh Kumar wrote: > On 10-04-18, 11:43, Patrick Bellasi wrote: > > On 05-Apr 15:28, Viresh Kumar wrote: > > What about this new version for the two functions, > > just compile tested: > > > > ---8<--- > > > > static void sugov_set_iowait_boost(struct sugov_cpu *sg_cpu, u64 time

Re: [PATCH v2 3/4] arm64: dts: renesas: r8a77970: add LVDS support

2018-04-10 Thread Sergei Shtylyov
On 04/10/2018 01:54 PM, Jacopo Mondi wrote: > From: Niklas Söderlund > > Add the LVDS device to r8a77970.dtsi in a disabled state. Also connect > the it to the LVDS output of the DU. > > Signed-off-by: Niklas Söderlund > Signed-off-by: Jacopo Mondi > Reviewed-by: Laurent Pinchart > > --- >

Re: [RFC PATCH v2 2/6] sched: Introduce energy models of CPUs

2018-04-10 Thread Dietmar Eggemann
On 04/10/2018 01:54 PM, Peter Zijlstra wrote: On Fri, Apr 06, 2018 at 04:36:03PM +0100, Dietmar Eggemann wrote: + /* +* Build the energy model of one CPU, and link it to all CPUs +* in its frequency domain. This should be correct as long as +

Re: [PATCH v2] target-i386: add KVM_HINTS_DEDICATED performance hint

2018-04-10 Thread Paolo Bonzini
On 10/04/2018 13:57, Eduardo Habkost wrote: > On Tue, Apr 10, 2018 at 05:13:21PM +0800, Wanpeng Li wrote: >> Hi Eduardo, >> 2018-03-09 22:16 GMT+08:00 Eduardo Habkost : >>> On Fri, Feb 09, 2018 at 06:15:25AM -0800, Wanpeng Li wrote: From: Wanpeng Li Add KVM_HINTS_DEDICATED performan

Re: [PATCH] mm: workingset: fix NULL ptr dereference

2018-04-10 Thread Matthew Wilcox
On Tue, Apr 10, 2018 at 10:26:43AM +0200, Michal Hocko wrote: > On Mon 09-04-18 12:40:44, Matthew Wilcox wrote: > > The problem is that the mapping gfp flags are used not only for allocating > > pages, but also for allocating the page cache data structures that hold > > the pages. F2FS is the only

Re: [RFC PATCH] sdhci: arasan: Add runtime PM support

2018-04-10 Thread Michal Simek
Hi Adrian, On 10.4.2018 13:42, Adrian Hunter wrote: > On 29/03/18 08:48, naraniman...@gmail.com wrote: >> From: Manish Narani >> >> This patch adds runtime PM support in Arasan SD driver. >> >> Signed-off-by: Manish Narani > > Just a couple of comments about style. > >> --- >> drivers/mmc/hos

Re: [PATCH] mm: workingset: fix NULL ptr dereference

2018-04-10 Thread Matthew Wilcox
On Tue, Apr 10, 2018 at 08:19:31PM +0900, Minchan Kim wrote: > If you're okay for that, I really want to go my original patch > Michal already gave Acked-by. I NAK this patch. It is completely wrong.

Re: [PATCH] time: tick-sched: use bool for tick_stopped

2018-04-10 Thread Thomas Gleixner
On Tue, 10 Apr 2018, Peter Zijlstra wrote: > On Tue, Apr 10, 2018 at 06:07:17PM +0800, yuank...@codeaurora.org wrote: > > > > > > @@ -48,8 +48,8 @@ struct tick_sched { > > > > > > unsigned long check_clocks; > > > > > > enum tick_nohz_mode nohz_mode; >

Re: [PATCH v2 3/4] arm64: dts: renesas: r8a77970: add LVDS support

2018-04-10 Thread jacopo mondi
Hi Sergei, On Tue, Apr 10, 2018 at 03:02:39PM +0300, Sergei Shtylyov wrote: > On 04/10/2018 01:54 PM, Jacopo Mondi wrote: > > > From: Niklas Söderlund > > > > Add the LVDS device to r8a77970.dtsi in a disabled state. Also connect > > the it to the LVDS output of the DU. > > > > Signed-off-by: Nik

Re: [PATCH][RFC] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-10 Thread Yu Chen
On Tue, Apr 10, 2018 at 12:22:16PM +0200, Rafael J. Wysocki wrote: > On Tue, Apr 10, 2018 at 12:18 PM, Yu Chen wrote: > > From: Chen Yu > > > > There's a use case during test to only print specific round of loops > > if --interval is specified, for example, with this patch applied: > > > > turbos

[PATCH v3] X86/VMX: Disable VMX preemption timer if MWAIT is not intercepted

2018-04-10 Thread KarimAllah Ahmed
The VMX-preemption timer is used by KVM as a way to set deadlines for the guest (i.e. timer emulation). That was safe till very recently when capability KVM_X86_DISABLE_EXITS_MWAIT to disable intercepting MWAIT was introduced. According to Intel SDM 25.5.1: """ The VMX-preemption timer operates in

Re: [PATCH v2] X86/VMX: Disable VMX preemption timer if MWAIT is not intercepted

2018-04-10 Thread Raslan, KarimAllah
On Tue, 2018-04-10 at 13:07 +0200, Paolo Bonzini wrote: > On 10/04/2018 12:08, KarimAllah Ahmed wrote: > > > > @@ -11908,6 +11908,9 @@ static int vmx_set_hv_timer(struct kvm_vcpu *vcpu, > > u64 guest_deadline_tsc) > > u64 guest_tscl = kvm_read_l1_tsc(vcpu, tscl); > > u64 delta_tsc = max(g

[PATCH] lan78xx: Don't reset the interface on open

2018-04-10 Thread Phil Elwell
Commit 92571a1aae40 ("lan78xx: Connect phy early") moves the PHY initialisation into lan78xx_probe, but lan78xx_open subsequently calls lan78xx_reset. As well as forcing a second round of link negotiation, this reset frequently prevents the phy interrupt from being generated (even though the link i

Re: [RFC PATCH] sdhci: arasan: Add runtime PM support

2018-04-10 Thread Adrian Hunter
On 10/04/18 15:06, Michal Simek wrote: > Hi Adrian, > > On 10.4.2018 13:42, Adrian Hunter wrote: >> On 29/03/18 08:48, naraniman...@gmail.com wrote: >>> From: Manish Narani >>> >>> This patch adds runtime PM support in Arasan SD driver. >>> >>> Signed-off-by: Manish Narani >> >> Just a couple of

Re: __GFP_LOW

2018-04-10 Thread Matthew Wilcox
On Tue, Apr 10, 2018 at 03:12:37PM +0300, Дмитрий Леонтьев wrote: > First, I've noticed the network drivers were allocating memory in interrupt > handlers. That sounds strange to me, because as far as I know, this > behaviour is discouraged and may lead to DDOS attack. Linux supports allocating me

[PATCH 2/6] staging: rtl8192u: Replace GFP_ATOMIC with GFP_KERNEL in ieee80211_tkip_init

2018-04-10 Thread Jia-Ju Bai
ieee80211_tkip_init() is never called in atomic context. ieee80211_tkip_init() is only set as ".init" in struct ieee80211_crypto_ops. The call chains ending up at "->init" function are: [1] ->init() <- ieee80211_wpa_set_encryption() <- ieee80211_wpa_supplicant_ioctl() [2] ->init() <- ieee80211

Re: [PATCH v1] ringbuffer: Don't choose the process with adj equal OOM_SCORE_ADJ_MIN

2018-04-10 Thread Steven Rostedt
On Tue, 10 Apr 2018 12:49:02 +0200 Michal Hocko wrote: > But you do realize that what you are proposing is by no means any safer, > don't you? The memory allocated for the ring buffer is _not_ accounted > to any process and as such it is not considered by the oom killer when > picking up an oom v

[PATCH 1/6] staging: rtl8192u: Replace GFP_ATOMIC with GFP_KERNEL in ieee80211_ccmp_init

2018-04-10 Thread Jia-Ju Bai
ieee80211_ccmp_init() is never called in atomic context. ieee80211_ccmp_init() is only set as ".init" in struct ieee80211_crypto_ops. The call chains ending up at "->init" function are: [1] ->init() <- ieee80211_wpa_set_encryption() <- ieee80211_wpa_supplicant_ioctl() [2] ->init() <- iee

[PATCH 3/6] staging: rtl8192u: Replace GFP_ATOMIC with GFP_KERNEL in prism2_wep_init

2018-04-10 Thread Jia-Ju Bai
prism2_wep_init() is never called in atomic context. prism2_wep_init() is only set as ".init" in struct ieee80211_crypto_ops. The call chains ending up at "->init" function are: [1] ->init() <- ieee80211_wpa_set_encryption() <- ieee80211_wpa_supplicant_ioctl() [2] ->init() <- ieee80211_wx_set_

[PATCH 4/6] staging: rtl8192u: Replace GFP_ATOMIC with GFP_KERNEL in ieee80211_softmac_init

2018-04-10 Thread Jia-Ju Bai
ieee80211_softmac_init() is never called in atomic context. The call chains ending up at ieee80211_softmac_init() is: [1] ieee80211_softmac_init() <- alloc_ieee80211_rsl() <- rtl8192_usb_probe() rtl8192_usb_probe() is set as ".probe" in struct usb_driver. Despite never getting called from at

[PATCH] selftests: bpf: update .gitignore with missing generated files

2018-04-10 Thread Anders Roxell
Signed-off-by: Anders Roxell --- tools/testing/selftests/bpf/.gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/bpf/.gitignore b/tools/testing/selftests/bpf/.gitignore index 9cf83f895d98..5e1ab2f0eb79 100644 --- a/tools/testing/selftests/bpf/.gitignore +++

Re: [PATCH v8 2/3] mtd: spi-nor: add rockchip serial flash controller driver

2018-04-10 Thread Heiko Stuebner
Hi Andy, Am Sonntag, 8. April 2018, 14:08:45 CEST schrieb Andy Yan: > ping We're in the middle of the merge-window right now, so I do guess maintainers will possibly do other things than looking at new code. But you might want to address the kbuild-robot issue and resend in the meantime, as some

Re: [PATCH v6 20/25] drivers: firmware: psci: Introduce psci_dt_topology_init()

2018-04-10 Thread Ulf Hansson
On 10 April 2018 at 13:10, Mark Rutland wrote: > On Tue, Apr 10, 2018 at 09:19:26AM +0200, Ulf Hansson wrote: >> On 14 March 2018 at 18:38, Mark Rutland wrote: >> > On Wed, Mar 14, 2018 at 05:58:30PM +0100, Ulf Hansson wrote: >> >> In case the hierarchical layout is used in DT, we want to initial

[PATCH 5/6] staging: rtl8192u: Replace mdelay with usleep_range in rtl8192_usb_disconnect

2018-04-10 Thread Jia-Ju Bai
rtl8192_usb_disconnect() is never called in atomic context. rtl8192_usb_disconnect() is only set as ".disconnect" in struct usb_driver. Despite never getting called from atomic context, rtl8192_usb_disconnect() calls mdelay() to busily wait. This is not necessary and can be replaced with usleep

[PATCH 6/6] staging: rtl8192u: Replace mdelay with usleep_range in dm_TXPowerTrackingCallback_TSSI

2018-04-10 Thread Jia-Ju Bai
dm_TXPowerTrackingCallback_TSSI() is never called in atomic context. dm_TXPowerTrackingCallback_TSSI() is only called by dm_txpower_trackingcallback(), which is set a parameter of INIT_DELAYED_WORK() in rtl8192_init_priv_task(). Despite never getting called from atomic context, dm_TXPowerTracki

Re: [PATCH] time: tick-sched: use bool for tick_stopped

2018-04-10 Thread Peter Zijlstra
On Tue, Apr 10, 2018 at 02:07:32PM +0200, Thomas Gleixner wrote: > On Tue, 10 Apr 2018, Peter Zijlstra wrote: > > Do you have any actual evidence for that? Is there a compiler stupid > > enough to generate code to convert a bool to a 1bit value? > > Sure, if you do: > > > > > > > > + bool

Re: [PATCH v1] ringbuffer: Don't choose the process with adj equal OOM_SCORE_ADJ_MIN

2018-04-10 Thread Michal Hocko
On Tue 10-04-18 08:23:16, Steven Rostedt wrote: > On Tue, 10 Apr 2018 12:49:02 +0200 > Michal Hocko wrote: > > > But you do realize that what you are proposing is by no means any safer, > > don't you? The memory allocated for the ring buffer is _not_ accounted > > to any process and as such it is

Re: [PATCH v4] usb: dwc2: dwc2_vbus_supply_init: fix error check

2018-04-10 Thread Heiko Stuebner
Am Montag, 26. März 2018, 11:00:01 CEST schrieb Tomeu Vizoso: > devm_regulator_get_optional returns -ENODEV if the regulator isn't > there, so if that's the case we have to make sure not to leave -ENODEV > in the regulator pointer. > > Also, make sure we return 0 in that case, but correctly propag

Re: [v3 PATCH] mm: introduce arg_lock to protect arg_start|end and env_start|end in mm_struct

2018-04-10 Thread Cyrill Gorcunov
On Tue, Apr 10, 2018 at 01:10:01PM +0200, Michal Hocko wrote: > > > > Because do_brk does vma manipulations, for this reason it's > > running under down_write_killable(&mm->mmap_sem). Or you > > mean something else? > > Yes, all we need the new lock for is to get a consistent view on brk > values

Re: [PATCH v2] display: panel: Add AUO g070vvn01 display support (800x480)

2018-04-10 Thread Rob Herring
On Tue, Apr 10, 2018 at 5:29 AM, Lukasz Majewski wrote: > This commit adds support for AUO's 7.0" display. > > Signed-off-by: Lukasz Majewski > > --- > Changes for v2: > - Add *.txt suffix to the auo,g070wn01 file > - Remove not needed bus-format-override = "rgb565"; property > --- > .../binding

Re: [PATCH] tpm: moves the delay_msec increment after sleep in tpm_transmit()

2018-04-10 Thread Jarkko Sakkinen
On Mon, 2018-04-09 at 10:29 -0400, Mimi Zohar wrote: > On Sat, 2018-04-07 at 13:36 +0300, Jarkko Sakkinen wrote: > > On Fri, Apr 06, 2018 at 02:03:37PM +0530, Nayna Jain wrote: > > > On 04/05/2018 03:42 PM, Jarkko Sakkinen wrote: > > > > On Mon, Apr 02, 2018 at 09:50:06PM +0530, Nayna Jain wrote: >

Re: [PATCH] staging:rtl8712: required line 80 over and multiple line

2018-04-10 Thread Greg KH
On Fri, Apr 06, 2018 at 11:47:23AM +0900, GyeDo Park wrote: > clean up checkpatch warning: > Warning: line over 80 characters > Warning: Avoid multiple line dereference Please break this up into 2 different patches, and properly cc: the needed people and lists that get_maintainers.pl says to use.

[PATCH RESEND] backlight: pwm_bl: don't use GPIOF_* with gpiod_get_direction

2018-04-10 Thread Wolfram Sang
The documentation was wrong, gpiod_get_direction() returns 0/1 instead of the GPIOF_* flags. The docs were fixed with commit 94fc73094abe47 ("gpio: correct docs about return value of gpiod_get_direction"). Now, fix this user (until a better, system-wide solution is in place). Signed-off-by: Wolfra

Re: [PATCH] tpm: tpm_crb: relinquish locality on error path.

2018-04-10 Thread Jarkko Sakkinen
On Tue, 2018-04-10 at 09:00 +, Winkler, Tomas wrote: > > > > On Sat, 2018-04-07 at 19:12 +0300, Tomas Winkler wrote: > > > In crb_map_io() function, __crb_request_locality() is called prior to > > > crb_cmd_ready(), but if one of the consecutive function fails the flow > > > bails out instead

Re: Subject: [PATCH] [PATCH] time: tick-sched: use bool for tick_stopped

2018-04-10 Thread Peter Zijlstra
On Tue, Apr 10, 2018 at 10:00:01AM +0200, Rafael J. Wysocki wrote: > On Tue, Apr 10, 2018 at 9:33 AM, wrote: > > +++ b/kernel/time/tick-sched.h > > @@ -48,8 +48,8 @@ struct tick_sched { > > unsigned long check_clocks; > > enum tick_nohz_mode nohz_mode

Re: [PATCH] mm: workingset: fix NULL ptr dereference

2018-04-10 Thread Michal Hocko
On Tue 10-04-18 05:05:28, Matthew Wilcox wrote: > On Tue, Apr 10, 2018 at 10:26:43AM +0200, Michal Hocko wrote: > > On Mon 09-04-18 12:40:44, Matthew Wilcox wrote: > > > The problem is that the mapping gfp flags are used not only for allocating > > > pages, but also for allocating the page cache da

[PATCH] drm/i915/gvt: fix memory leak of a cmd_entry struct on error exit path

2018-04-10 Thread Colin King
From: Colin Ian King The error exit path when a duplicate is found does not kfree and cmd_entry struct and hence there is a small memory leak. Fix this by kfree'ing it. Detected by CoverityScan, CID#1370198 ("Resource Leak") Fixes: be1da7070aea ("drm/i915/gvt: vGPU command scanner") Signed-off

Re: [PATCH v1] ringbuffer: Don't choose the process with adj equal OOM_SCORE_ADJ_MIN

2018-04-10 Thread Steven Rostedt
On Tue, 10 Apr 2018 14:27:06 +0200 Michal Hocko wrote: > I would rather that the code outside of MM not touch implementation > details like OOM_SCORE_ADJ_MIN. It is really hard to get rid of abusers > whenever you try to change something in MM then. Especially when the > usecase is quite dubious.

Re: x86-tip.today (4cdf573) early instaboot

2018-04-10 Thread Mike Galbraith
On Tue, 2018-04-10 at 10:59 +0200, Ingo Molnar wrote: > * Mike Galbraith wrote: > > > Hi Ingo, > > > > FYI, my i4790 box reboots immediately.. or close enough to it that you > > see nothing at all before again meeting the bios splash. Master with > > the ~same config works fine. I haven't poke

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