Re: INFO: task hung in fuse_reverse_inval_entry

2018-07-23 Thread Dmitry Vyukov
On Mon, Jul 23, 2018 at 5:09 PM, Miklos Szeredi wrote: > On Mon, Jul 23, 2018 at 3:37 PM, Dmitry Vyukov wrote: >> On Mon, Jul 23, 2018 at 3:05 PM, Miklos Szeredi wrote: > >>> Biggest conceptual problem: your definition of fuse-server is weak. >>> Take the following example: process A is holding

Re: [PATCH v2 08/12] sched/core: uclamp: extend cpu's cgroup controller

2018-07-23 Thread Patrick Bellasi
On 20-Jul 19:37, Suren Baghdasaryan wrote: > On Mon, Jul 16, 2018 at 1:29 AM, Patrick Bellasi > wrote: [...] > > +#ifdef CONFIG_UCLAMP_TASK_GROUP > > +static int cpu_util_min_write_u64(struct cgroup_subsys_state *css, > > + struct cftype *cftype, u64 min_value) >

Re: Very slow SYS_io_destroy()

2018-07-23 Thread Alex Richman
Thanks for the response.  I'm running 4.4.123-1 from Gentoo.  It also happens on 4.4.87-r1. Cheers, - Alex. On 23/07/18 16:13, Jeff Moyer wrote: Alex Richman writes: Hi, I'm seeing some weirdness with AIO, specifically SYS_io_destroy() is taking upwards of ~10 microseconds (~100 milise

Re: [PATCH 1/4] x86/perf/intel: Introduce PMU flag for Extended PEBS

2018-07-23 Thread Peter Zijlstra
On Thu, Mar 08, 2018 at 06:15:39PM -0800, kan.li...@linux.intel.com wrote: > From: Kan Liang > > The Extended PEBS feature, introduced in Goldmont Plus > microarchitecture, supports all events as "Extended PEBS". > > Introduce flag PMU_FL_PEBS_ALL to indicate the platforms which support > extend

Re: [PATCH 1/1] getxattr: use correct xattr length

2018-07-23 Thread Serge E. Hallyn
Quoting Christian Brauner (christian.brau...@canonical.com): > On Wed, Jun 13, 2018 at 10:45:37AM -0500, Serge Hallyn wrote: > > On Thu, Jun 07, 2018 at 01:43:48PM +0200, Christian Brauner wrote: > > > When running in a container with a user namespace, if you call getxattr > > > with name = "system

Re: Very slow SYS_io_destroy()

2018-07-23 Thread Jeff Moyer
Alex Richman writes: > Hi, > > I'm seeing some weirdness with AIO, specifically SYS_io_destroy() is > taking upwards of ~10 microseconds (~100 miliseconds) per call. > How long is that call expected to take?  I can see from the source Well, it waits for an RCU grace period. I would not expe

Re: [PATCH 4.9 00/28] 4.9.115-stable review

2018-07-23 Thread Nathan Chancellor
On Mon, Jul 23, 2018 at 02:25:00PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.115 release. > There are 28 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH 4.4 000/107] 4.4.144-stable review

2018-07-23 Thread Nathan Chancellor
On Mon, Jul 23, 2018 at 02:40:54PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.144 release. > There are 107 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kno

Re: powerpc/mpic: Cleanup irq vector accounting

2018-07-23 Thread Michael Ellerman
On Fri, 2018-06-29 at 10:24:32 UTC, Bharat Bhushan wrote: > Available vector space accounts ipis and timer interrupts > while spurious vector was not accounted. Also later > mpic_setup_error_int() escape one more vector, seemingly it > assumes one spurious vector. > > Signed-off-by: Bharat Bhushan

Re: [PATCH v2 00/19] Fixes for sched/numa_balancing

2018-07-23 Thread Srikar Dronamraju
* Peter Zijlstra [2018-07-23 15:57:00]: > On Wed, Jun 20, 2018 at 10:32:41PM +0530, Srikar Dronamraju wrote: > > Srikar Dronamraju (19): > > sched/numa: Remove redundant field. > > sched/numa: Evaluate move once per node > > sched/numa: Simplify load_too_imbalanced > > sched/numa: Set pre

Re: INFO: task hung in fuse_reverse_inval_entry

2018-07-23 Thread Miklos Szeredi
On Mon, Jul 23, 2018 at 3:37 PM, Dmitry Vyukov wrote: > On Mon, Jul 23, 2018 at 3:05 PM, Miklos Szeredi wrote: >> Biggest conceptual problem: your definition of fuse-server is weak. >> Take the following example: process A is holding the fuse device fd >> and is forwarding requests and replies t

[PATCH v2 4/4] iio: adc: xilinx: Move request_irq before enabling interrupts

2018-07-23 Thread Manish Narani
Enabling the Interrupts before registering the irq handler is a bad idea. This patch corrects the same for XADC driver. Signed-off-by: Manish Narani --- drivers/iio/adc/xilinx-xadc-core.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/iio/adc/xilinx-xadc-core

Re: [PATCH v2 07/12] sched/core: uclamp: enforce last task UCLAMP_MAX

2018-07-23 Thread Patrick Bellasi
On 20-Jul 18:23, Suren Baghdasaryan wrote: > Hi Patrick, Hi Sure, thank! > On Mon, Jul 16, 2018 at 1:29 AM, Patrick Bellasi > wrote: [...] > > @@ -977,13 +991,21 @@ static inline void uclamp_cpu_get_id(struct > > task_struct *p, > > uc_grp = &rq->uclamp.group[clamp_id][0]; > >

[PATCH v2 0/4] iio: adc: xilinx: XADC driver Enhancements and bug fixes

2018-07-23 Thread Manish Narani
This patch series resolves code style problems as reported by code analysis tools. Changes in v2: - From the first version of patches, 2 patches are dropped in this series. - In the v1 patch set, 1/4 was not required as the issue is in checkpatch.pl script and n

[PATCH v2 3/4] iio: adc: xilinx: Remove platform_get_irq from xadc_remove function

2018-07-23 Thread Manish Narani
This patch avoids getting irq number in xadc_remove function. Instead store 'irq' in xadc struct and use xadc->irq wherever needed. This patch also resolves a warning reported by coverity where it asks to check return value of platform_get_irq() for any errors in xadc_remove. Signed-off-by: Manish

[PATCH v2 1/4] iio: adc: xilinx: Check for return values in clk related functions

2018-07-23 Thread Manish Narani
This patch adds check for return values from clock related functions. This was reported by static code analysis tool. Signed-off-by: Manish Narani --- drivers/iio/adc/xilinx-xadc-core.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/xilinx-xadc-co

[PATCH v2 2/4] iio: adc: xilinx: limit pcap clock frequency value

2018-07-23 Thread Manish Narani
This patch limits the xadc pcap clock frequency value to be less than 200MHz. This fixes the issue when zynq is booted at higher frequency values, pcap crosses the maximum limit of 200MHz(Fmax) as it is derived from IOPLL. If this limit is crossed it is required to alter the WEDGE and REDGE bits of

Re: [PATCH 3/4] perf/x86/intel/ds: Handle PEBS overflow for fixed counters

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 04:59:44PM +0200, Peter Zijlstra wrote: > On Thu, Mar 08, 2018 at 06:15:41PM -0800, kan.li...@linux.intel.com wrote: > > diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c > > index ef47a418d819..86149b87cce8 100644 > > --- a/arch/x86/events/intel/core.

[PATCH] staging: gasket: use vzalloc instead of vmalloc/memset

2018-07-23 Thread Ivan Bornyakov
Signed-off-by: Ivan Bornyakov --- drivers/staging/gasket/gasket_page_table.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/gasket/gasket_page_table.c b/drivers/staging/gasket/gasket_page_table.c index 9f8116112e0a..3ffc8d67ec05 100644 --- a/drivers/sta

Re: [PATCH v2 5/6] 9p: Use a slab for allocating requests

2018-07-23 Thread Greg Kurz
On Mon, 23 Jul 2018 14:25:31 +0200 Dominique Martinet wrote: > Greg Kurz wrote on Mon, Jul 23, 2018: > > The patch is quite big and I'm not sure I can find time to review it > > carefully, but I'll try to help anyway. > > No worry, thanks for this already. > > > > Sorry for coming back to thi

Re: [PATCH 1/1] getxattr: use correct xattr length

2018-07-23 Thread Christian Brauner
On Wed, Jun 13, 2018 at 10:45:37AM -0500, Serge Hallyn wrote: > On Thu, Jun 07, 2018 at 01:43:48PM +0200, Christian Brauner wrote: > > When running in a container with a user namespace, if you call getxattr > > with name = "system.posix_acl_access" and size % 8 != 4, then getxattr > > silently skip

Re: [PATCH 3/4] perf/x86/intel/ds: Handle PEBS overflow for fixed counters

2018-07-23 Thread Peter Zijlstra
On Thu, Mar 08, 2018 at 06:15:41PM -0800, kan.li...@linux.intel.com wrote: > diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c > index ef47a418d819..86149b87cce8 100644 > --- a/arch/x86/events/intel/core.c > +++ b/arch/x86/events/intel/core.c > @@ -2280,7 +2280,10 @@ static i

Re: [PATCH 1/3] iio: adc: add support for mcp3911

2018-07-23 Thread Jonathan Cameron
On Sun, 22 Jul 2018 21:00:51 +0200 Marcus Folkesson wrote: > Hi Jonathan, > > Thanks, all good catches. > > On Sun, Jul 22, 2018 at 09:08:38AM +0100, Jonathan Cameron wrote: > > On Sat, 21 Jul 2018 23:19:48 +0200 (CEST) > > Peter Meerwald-Stadler wrote: > > > > > Hello, > > > > > > > MCP

Re: Kernel 4.17.4 lockup

2018-07-23 Thread H.J. Lu
On Fri, Jul 20, 2018 at 2:35 PM, Andy Lutomirski wrote: > >> On Jul 16, 2018, at 6:05 AM, H.J. Lu wrote: >> >>> On Fri, Jul 13, 2018 at 7:08 PM, Andy Lutomirski >>> wrote: >>> I'm not at all convinced that this is the problem, but the series here >>> will give a better diagnostic if the issue r

Fault injection stacktrace filter for x86-64?

2018-07-23 Thread Gal Pressman
According to commit [1], dwarf2 unwinder had some issues that prevented the fault injection stacktrace filter from working on x86-64. Does anyone know whether this issue still exists 11 years later? Are there any objections to revert this patch? Gal [1] 6d690dcac92a ("fault injection: disable st

RE: [PATCH v2] ASoC: da7219: Allow pdata to specify a VDDIO

2018-07-23 Thread Adam Thomson
On 23 July 2018 00:28, Daniel Kurtz wrote: > Some systems do not have software controllable regulators driving the > DA7219's supplies, nor can they use device tree to create "always-on fixed > regulators" to easily pretend like they do. > > On these systems the call to devm_regulator_bulk_get()

Re: linux-next: Tree for Jul 23

2018-07-23 Thread Michael Ellerman
Stephen Rothwell writes: > Hi all, > > Changes since 20180720: > > Dropped trees: xarray, ida (complex conflicts) > > The drm-msm tree gained a conflict against the drm tree and a build > failure due to an interaction with the drm tree for which I added a > merge fix patch. > > The kvm-arm tree g

Re: [RFC PATCH] sched/deadline: sched_getattr() returns absolute dl-task information

2018-07-23 Thread Patrick Bellasi
On 23-Jul 16:13, Peter Zijlstra wrote: > On Mon, Jul 23, 2018 at 01:49:46PM +0100, Patrick Bellasi wrote: > > On 23-Jul 11:49, Peter Zijlstra wrote: > > > > [...] > > > > > > -void __getparam_dl(struct task_struct *p, struct sched_attr *attr) > > > > +void __getparam_dl(struct task_struct *p, str

Re: [PATCH v2 1/3] clk: meson: add DT documentation for emmc clock controller

2018-07-23 Thread Yixun Lan
HI Kevin On 07/23/2018 10:12 PM, Kevin Hilman wrote: > Yixun Lan writes: > > [...] > >>> Second, we might like to convert eMMC driver to also use mmc-clkc model. >>> >>> IMO, this should be done as part of merging this series. Otherwise, we >>> have duplicated code for the same thing. >> >

[PATCH 0/7] x86: Enable a few new instructions

2018-07-23 Thread Fenghua Yu
A few new instructions including direct stores (movdiri and movdir64b) and user wait (umwait, umonitor, and tpause) and IA32_MWAIT_CONTROL MSR to control umwait/umonitor/tpause behaviors will be available in Tremont and other future x86 processors. This patch set enumerates the instructions, adds

[PATCH 4/7] x86/umwait_contro: Set global umwait maximum time limit and umwait C0.2 state

2018-07-23 Thread Fenghua Yu
UMWAIT or TPAUSE called by user process makes processor to reside in a light-weight power/performance optimized state (C0.1 state) or an improved power/performance optimized state (C0.2 state). IA32_UMWAIT_CONTROL MSR register allows OS to set global maximum umwait time and disable C0.2 on the pro

[PATCH 2/7] x86/cpufeatures: Enumerate MOVDIR64B instruction

2018-07-23 Thread Fenghua Yu
MOVDIR64B moves 64-bytes as direct-store with 64-bytes write atomicity. Direct store is implemented by using write combining (WC) for writing data directly into memory without caching the data. In low latency offload (e.g. Non-Volatile Memory, etc), MOVDIR64B writes work descriptors (and data in s

[PATCH 5/7] x86/vdso: Add vDSO functions for direct store instructions

2018-07-23 Thread Fenghua Yu
User wants to query if direct store instructions are supported and use the instructions. The vDSO functions provides fast interface for user to query the support and use the instructions. movdiri_supported and its alias __vdso_movdiri_supported check if movdiri instructions are supported. movdir6

[PATCH 7/7] selftests/vDSO: Add selftest to test vDSO functions for direct store and user wait instructions

2018-07-23 Thread Fenghua Yu
The selftest tool tests the vDSO functions for calling the instructions including movdiri32, movdiri64, movdir64b, umonitor, umwait, tpause, and their support checking. Limited by testing environment, the selftest doesn't contain some complex tests e.g. wake up process by writing the monitor addre

[PATCH 6/7] x86/vdso: Add vDSO functions for user wait instructions

2018-07-23 Thread Fenghua Yu
User wants to query if user wait instructions (umonitor, umwait, and tpause) are supported and use the instructions. The vDSO functions provides fast interface for user to check the support and use the instructions. waitpkg_supported and its alias __vdso_waitpkg_supported check if user wait instru

[PATCH 1/7] x86/cpufeatures: Enumerate MOVDIRI instruction

2018-07-23 Thread Fenghua Yu
MOVDIRI moves doubleword or quadword from register to memory through direct store which is implemented by using write combining (WC) for writing data directly into memory without caching the data. Programmable agents can handle streaming offload (e.g. high speed packet processing in network). Hard

[PATCH 3/7] x86/cpufeatures: Enumerate UMONITOR, UMWAIT, and TPAUSE instructions

2018-07-23 Thread Fenghua Yu
UMONITOR, UMWAIT, and TPAUSE are a set of user wait instructions. UMONITOR arms address monitoring hardware using an address. A store to an address within the specified address range triggers the monitoring hardware to wake up the processor waiting in umwait. UMWAIT instructs the processor to ent

Re: [PATCH RESEND] kthread, tracing: Don't expose half-written comm when creating kthreads

2018-07-23 Thread Snild Dolkow
On 07/23/2018 03:55 PM, Steven Rostedt wrote: > Can you add a comment here stating something to the affect of: > /* task is now visible to other tasks */ > > -- Steve Sure, but isn't that a bit misleading? It will have been visible since some unknown point in time between waking up k

Re: [PATCH] serial: 8250_ingenic: Add support for the JZ4725B SoC

2018-07-23 Thread Rob Herring
On Fri, Jul 20, 2018 at 12:58 PM Paul Cercueil wrote: > > Hi Rob, > > Le ven. 20 juil. 2018 à 17:30, Rob Herring a écrit : > > On Fri, Jul 13, 2018 at 04:38:40PM +0200, Paul Cercueil wrote: > >> The UART in the jz4725b works just like in the other JZ SoCs, so > >> this > >> commit simply adds a

[PATCH] firewire: init_ohci1394_dma: Replace mdelay with msleep

2018-07-23 Thread Jia-Ju Bai
init_ohci1394_wait_for_busresets() and init_ohci1394_reset_and_init_dma() are never called in atomic context. They call mdelay() to busily wait, which is not necessary. mdelay() can be replaced with msleep(). This is found by a static analysis tool named DCNS written by myself. Signed-off-by: Ji

Re: [PATCH] rtc: jz4740: Add support for the JZ4725B, JZ4760, JZ4770

2018-07-23 Thread Paul Cercueil
Hi, Le lun. 23 juil. 2018 à 16:18, Rob Herring a écrit : On Fri, Jul 20, 2018 at 1:04 PM Paul Cercueil wrote: Hi, Le ven. 20 juil. 2018 à 17:39, Rob Herring a écrit : > On Sat, Jul 14, 2018 at 03:50:08PM +0200, Paul Cercueil wrote: >> >> >> Le sam. 14 juil. 2018 à 15:32, Alexandre

Re: [PATCH] rtc: jz4740: Add support for the JZ4725B, JZ4760, JZ4770

2018-07-23 Thread Rob Herring
On Fri, Jul 20, 2018 at 1:04 PM Paul Cercueil wrote: > > Hi, > > Le ven. 20 juil. 2018 à 17:39, Rob Herring a écrit : > > On Sat, Jul 14, 2018 at 03:50:08PM +0200, Paul Cercueil wrote: > >> > >> > >> Le sam. 14 juil. 2018 à 15:32, Alexandre Belloni > >> a écrit : > >> > On 14/07/2018 15:25:33

Re: [PATCH] power: supply: bq27xxx: Update comments

2018-07-23 Thread Andrew F. Davis
On 07/22/2018 04:58 AM, Liu Xiang wrote: > The URL of bq27441-g1 and bq27426 are missing and bq27520-g4 is duplicated. > > Signed-off-by: Liu Xiang > --- Acked-by: Andrew F. Davis > drivers/power/supply/bq27xxx_battery.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --

Re: [PATCH V2 0/6] mailbox: ti-msgmgr: Add support for AM654 Secure Proxy

2018-07-23 Thread Nishanth Menon
On 13:56-20180723, Jassi Brar wrote: > On Mon, Jul 23, 2018 at 6:59 PM, Nishanth Menon wrote: [...] > >> .../bindings/mailbox/ti,secure-proxy.txt | 50 +++ > >> drivers/mailbox/ti-msgmgr.c| 353 > >> + > &g

Re: [PATCH] perf/x86/intel: Fix unwind errors from PEBS entries (mk-II)

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 08:30:06AM -0500, Josh Poimboeuf wrote: > On Thu, Jul 19, 2018 at 11:19:54PM +0200, Peter Zijlstra wrote: > > --- a/include/uapi/linux/perf_event.h > > +++ b/include/uapi/linux/perf_event.h > > @@ -143,6 +143,8 @@ enum perf_event_sample_format { > > PERF_SAMPLE_PHYS_ADDR

Re: [RFC PATCH] sched/deadline: sched_getattr() returns absolute dl-task information

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 01:49:46PM +0100, Patrick Bellasi wrote: > On 23-Jul 11:49, Peter Zijlstra wrote: > > [...] > > > > -void __getparam_dl(struct task_struct *p, struct sched_attr *attr) > > > +void __getparam_dl(struct task_struct *p, struct sched_attr *attr, > > > +unsigned int

Re: [PATCH v2 1/3] clk: meson: add DT documentation for emmc clock controller

2018-07-23 Thread Kevin Hilman
Yixun Lan writes: [...] >> >>> Second, we might like to convert eMMC driver to also use mmc-clkc model. >> >> IMO, this should be done as part of merging this series. Otherwise, we >> have duplicated code for the same thing. > > IMO, I'd leave this out of this series, since this patch series i

Re: [PATCH 0/3] PTI for x86-32 Fixes and Updates

2018-07-23 Thread Pavel Machek
Hi! > here are 3 patches which update the PTI-x86-32 patches recently merged > into the tip-tree. The patches are ordered by importance: It seems PTI is now in -next. I'll test that soon. Meanwhile... it looks like gcc is not slowed down significantly, but other stuff sees 30% .. 40% slowdowns..

Re: [PATCH v2 13/19] mm/migrate: Use xchg instead of spinlock

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 04:20:32AM -0700, Srikar Dronamraju wrote: > > If you maybe write that like: > > > > if (time_after(jiffies, next_window) && > > xchg(&pgdat->numabalancing_migrate_nr_pages, 0UL)) { > > > > do { > > next_window += interval; > >

Re: [PATCH] phy: qcom-qmp: Fix dts bindings to reflect reality

2018-07-23 Thread Rob Herring
On Fri, Jul 20, 2018 at 11:54 AM Doug Anderson wrote: > > Hi, > > On Fri, Jul 20, 2018 at 10:26 AM, Rob Herring wrote: > > On Fri, Jul 20, 2018 at 9:13 AM Doug Anderson wrote: > >> > >> Rob, > >> > >> On Fri, Jul 20, 2018 at 7:10 AM, Rob Herring wrote: > >> > On Fri, Jul 06, 2018 at 04:31:42PM

Re: kernel BUG at mm/shmem.c:LINE!

2018-07-23 Thread Matthew Wilcox
On Sun, Jul 22, 2018 at 07:28:01PM -0700, Hugh Dickins wrote: > Whether or not that fixed syzbot's kernel BUG at mm/shmem.c:815! > I don't know, but I'm afraid it has not fixed linux-next breakage of > huge tmpfs: I get a similar page_to_pgoff BUG at mm/filemap.c:1466! > > Please try something lik

Re: [PATCH v2 4/8] NTB: ntb_pingpong: Choose doorbells based on port number

2018-07-23 Thread Allen Hubbe
On Fri, Jul 20, 2018 at 2:00 PM Logan Gunthorpe wrote: > > This commit fixes pingpong support for existing drivers that do not > implement ntb_default_port_number() and ntb_default_peer_port_number(). > This is required for hardware (like the crosslink topology of > switchtec) which cannot assign

Re: [PATCH v2 00/19] Fixes for sched/numa_balancing

2018-07-23 Thread Peter Zijlstra
On Wed, Jun 20, 2018 at 10:32:41PM +0530, Srikar Dronamraju wrote: > Srikar Dronamraju (19): > sched/numa: Remove redundant field. > sched/numa: Evaluate move once per node > sched/numa: Simplify load_too_imbalanced > sched/numa: Set preferred_node based on best_cpu > sched/numa: Use task

[PATCH] bq25890_charger.c : add the BQ25896 part

2018-07-23 Thread Angus Ainslie
Add some debugging to be able to check the proper initialization of the BQ25896 part. Enable the BQ25896 part. Add 2 new parameters "voltage_now" and "model_name". Signed-off-by: Angus Ainslie --- drivers/power/supply/bq25890_charger.c | 68 ++ 1 file changed, 58 insert

RE: [PATCH v3 3/3] dmaengine: imx-sdma: allocate max 20 bds for one transfer

2018-07-23 Thread Robin Gong
> -Original Message- > From: Lucas Stach [mailto:l.st...@pengutronix.de] > Sent: 2018年7月23日 18:54 > To: Robin Gong ; vk...@kernel.org; > dan.j.willi...@intel.com; s.ha...@pengutronix.de; li...@armlinux.org.uk > Cc: dmaeng...@vger.kernel.org; dl-linux-imx ; > ker...@pengutronix.de; linux-arm

Re: [PATCH V2 0/6] mailbox: ti-msgmgr: Add support for AM654 Secure Proxy

2018-07-23 Thread Jassi Brar
tor >> dt-bindings: mailbox: Add support for secure proxy threads >> mailbox: ti-msgmgr: Add support for Secure Proxy >> >> .../bindings/mailbox/ti,secure-proxy.txt | 50 +++ >> drivers/mailbox/ti-msgmgr.c| 353 >>

Re: [PATCH RESEND] kthread, tracing: Don't expose half-written comm when creating kthreads

2018-07-23 Thread Steven Rostedt
On Mon, 23 Jul 2018 15:42:10 +0200 Snild Dolkow wrote: > There was a window for racing when task->comm was being written. The > vsnprintf function writes 16 bytes, then counts the rest, then null > terminates. In the meantime, other threads could see the non-terminated > comm value. In our case,

Re: [PATCH] arch/sh: use slow path for get_user_pages_fast() on SMP

2018-07-23 Thread Thomas Petazzoni
Hello, On Fri, 15 Jun 2018 19:04:45 +0300, Sergei Shtylyov wrote: > Hello! > > On 06/15/2018 06:52 PM, Thomas Petazzoni wrote: > > > The fast path of get_user_pages_fast() disables IRQs and then does: > > > > - gup_pud_range() > >- gup_pmd_range() > > - gup_pte_range() > >- fl

Re: [PATCH] ARM: imx_v6_v7_defconfig: Enable DRM_PANEL_SEIKO_43WVF1G

2018-07-23 Thread Fabio Estevam
Hi Leonard, On Mon, Jul 23, 2018 at 10:42 AM, Leonard Crestez wrote: > This is one of the default lcdif panel options for several imx > development boards. Now that we switched to CONFIG_DRM_MXSFB=y this > should be enabled as well. > > Signed-off-by: Leonard Crestez Already sent as part of a s

[PATCH] perf build: Build error in libbpf with EXTRA_CFLAGS="-Wp,-D_FORTIFY_SOURCE=2 -O2"

2018-07-23 Thread Thomas Richter
commit a5b8bd47dcc57 ("bpf tools: Collect eBPF programs from their own sections") cause a compiler error when building the perf tool in the linux-next tree. I compile it using a FEDORA 28 installation, my gcc compiler version: gcc (GCC) 8.0.1 20180324 (Red Hat 8.0.1-0.20) Here is the error messa

[PATCH] ARM: imx_v6_v7_defconfig: Enable DRM_PANEL_SEIKO_43WVF1G

2018-07-23 Thread Leonard Crestez
This is one of the default lcdif panel options for several imx development boards. Now that we switched to CONFIG_DRM_MXSFB=y this should be enabled as well. Signed-off-by: Leonard Crestez --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/confi

[PATCH RESEND] kthread, tracing: Don't expose half-written comm when creating kthreads

2018-07-23 Thread Snild Dolkow
There was a window for racing when task->comm was being written. The vsnprintf function writes 16 bytes, then counts the rest, then null terminates. In the meantime, other threads could see the non-terminated comm value. In our case, it got into the trace system's saved cmdlines and could cause sta

Re: [PATCH v2] locking/rwsem: Take read lock immediate if queue empty with no writer

2018-07-23 Thread Waiman Long
On 07/23/2018 12:04 AM, Davidlohr Bueso wrote: > On Wed, 18 Jul 2018, Waiman Long wrote: > >> The key here is that we don't want other incoming readers to observe >> that there are waiters in the wait queue and hence have to go into the >> slowpath until the single waiter in the queue is sure that

Re: INFO: task hung in fuse_reverse_inval_entry

2018-07-23 Thread Dmitry Vyukov
On Mon, Jul 23, 2018 at 3:05 PM, Miklos Szeredi wrote: >> wrote: >>> Hello, >>> >>> syzbot found the following crash on: >>> >>> HEAD commit:d72e90f33aa4 Linux 4.18-rc6 >>> git tree: upstream >>> console output: https://syzkaller.appspot.com/x/log.txt?x=1

Re: [PATCH v2 02/12] sched/core: uclamp: map TASK's clamp values into CPU's clamp groups

2018-07-23 Thread Patrick Bellasi
On 20-Jul 17:25, Suren Baghdasaryan wrote: [...] > > ---8<--- > > > > /* Uclamp flags */ > > #define SCHED_FLAG_UTIL_CLAMP_STRICT0x11 /* Roll-back on failure */ > > #define SCHED_FLAG_UTIL_CLAMP_MIN 0x12 /* Update util_min */ > > #define SCHED_FLAG_UTIL_CLAMP_MAX 0x14 /* Update ut

Re: [PATCH 02/10] mm: workingset: tell cache transitions from workingset thrashing

2018-07-23 Thread Arnd Bergmann
On Thu, Jul 12, 2018 at 7:29 PM, Johannes Weiner wrote: > How many page->flags does this leave us with on 32-bit? > > 20 bits are always page flags > > 21 if you have an MMU > > 23 with the zone bits for DMA, Normal, HighMem, Movable > > 29 with the sparsemem sectio

Re: [PATCH V2 0/2] firmware: ti_sci: Add host-id as an optional parameter

2018-07-23 Thread Nishanth Menon
On 17:13-20180716, Nishanth Menon wrote: > Please find attached series to enable host-id as an optional dt property. > > This is a minor update to V1 -> Mostly to pick up Greet's feedback and Rob's > Ack. > > V1: https://patchwork.ozlabs.org/cover/931822/ > > The series is based on v4.18-rc1 an

[PATCH v3] tg: show the sum wait time of an task group

2018-07-23 Thread 王贇
Although we can rely on cpuacct to present the cpu usage of task group, it is hard to tell how intense the competition is between these groups on cpu resources. Monitoring the wait time of each process or sched_debug could cost too much, and there is no good way to accurately represent the confli

Re: [PATCH 05/11] touchscreen: elants: Use octal permissions

2018-07-23 Thread Greg Kroah-Hartman
On Mon, Jul 23, 2018 at 06:49:20PM +0530, dev-harsh1998 wrote: > WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using > octal permissions '0444'. > +static DEVICE_ATTR(iap_mode, S_IRUGO, show_iap_mode, NULL); > > WARNING: Symbolic permissions 'S_IWUSR' are not preferred. Cons

[PATCH v2 09/17] x86/bugs: add lfence mitigation to spectre v2 and no meltdown for Hygon

2018-07-23 Thread Pu Wen
To share codes between AMD and Hygon to mitigate Spectre V2 Retpoline vulnerability, rename macros SPECTRE_V2_RETPOLINE_MINIMAL_AMD to SPECTRE_V2_RETPOLINE_MINIMAL_LFENCE, and SPECTRE_V2_CMD_RETPOLINE_AMD to SPECTRE_V2_CMD_RETPOLINE_LFENCE. As Hygon processors is not affected by meltdown vulnerabi

Re: [PATCH] perf/x86/intel: Fix unwind errors from PEBS entries (mk-II)

2018-07-23 Thread Josh Poimboeuf
On Thu, Jul 19, 2018 at 11:19:54PM +0200, Peter Zijlstra wrote: > --- a/include/uapi/linux/perf_event.h > +++ b/include/uapi/linux/perf_event.h > @@ -143,6 +143,8 @@ enum perf_event_sample_format { > PERF_SAMPLE_PHYS_ADDR = 1U << 19, > > PERF_SAMPLE_MAX = 1U << 20,

Re: [PATCH V2 0/6] mailbox: ti-msgmgr: Add support for AM654 Secure Proxy

2018-07-23 Thread Nishanth Menon
| 50 +++ > drivers/mailbox/ti-msgmgr.c| 353 > + > 2 files changed, 336 insertions(+), 67 deletions(-) > create mode 100644 > Documentation/devicetree/bindings/mailbox/ti,secure-proxy.txt Jassi, I dont see this in next-20

Re: [PATCH v2 3/7] iio: tsl2772: add support for reading power settings from device tree

2018-07-23 Thread Rob Herring
On Sun, Jul 22, 2018 at 11:17 AM Jonathan Cameron wrote: > > On Sun, 22 Jul 2018 12:37:20 + > Brian Masney wrote: > > > On Sat, Jul 21, 2018 at 06:37:16PM +0100, Jonathan Cameron wrote: > > > On Fri, 20 Jul 2018 11:36:35 -0600 > > > Rob Herring wrote: > > > > > > > On Tue, Jul 17, 2018 at 04

Re: [PATCH 1/4] sched/topology: SD_ASYM_CPUCAPACITY flag detection

2018-07-23 Thread Qais Yousef
Hi Morten On 20/07/18 14:32, Morten Rasmussen wrote: The SD_ASYM_CPUCAPACITY sched_domain flag is supposed to mark the sched_domain in the hierarchy where all cpu capacities are visible for any cpu's point of view on asymmetric cpu capacity systems. The scheduler can then take to take capacity a

[PATCH 09/11] touchscreen: raydium_ts: Use octal permissions

2018-07-23 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(fw_version, S_IRUGO, raydium_i2c_fw_ver_show, NULL); WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(hw_

[PATCH 10/11] touchscreen: sun4i_ts: Use octal permissions

2018-07-23 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(temp1_input, S_IRUGO, show_temp, NULL); WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(temp1_label, S_I

[PATCH 01/11] touchscreen: ft5x06: Use octal permissions

2018-07-23 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IWUSR | S_IRUGO' are not preferred. Consider using octal permissions '0644'. +static EDT_ATTR(gain, S_IWUSR | S_IRUGO, WORK_REGISTER_GAIN, WARNING: Symbolic permissions 'S_IWUSR | S_IRUGO' are not preferred. Consider using octal permissions '0644'. +static EDT_AT

[PATCH 11/11] touchscreen: tsc200x: Use octal permissions

2018-07-23 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(selftest, S_IRUGO, tsc200x_selftest_show, NULL); Signed-off-by: Harshit Jain --- drivers/input/touchscreen/tsc200x-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 08/11] touchscreen: melfas: Use octal permissions

2018-07-23 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IWUSR' are not preferred. Consider using octal permissions '0200'. +static DEVICE_ATTR(update_fw, S_IWUSR, NULL, mip4_sysfs_fw_update); WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(fw_vers

[PATCH 07/11] touchscreen: mc13783: Use octal permissions

2018-07-23 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IRUGO | S_IWUSR' are not preferred. Consider using octal permissions '0644'. +module_param(sample_tolerance, uint, S_IRUGO | S_IWUSR); Signed-off-by: Harshit Jain --- drivers/input/touchscreen/mc13783_ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-

[PATCH 06/11] touchscreen: ili210x: Use octal permissions

2018-07-23 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IWUSR' are not preferred. Consider using octal permissions '0200'. +static DEVICE_ATTR(calibrate, S_IWUSR, NULL, ili210x_calibrate); Signed-off-by: Harshit Jain --- drivers/input/touchscreen/ili210x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[PATCH 02/11] touchscreen: ad7877: Use octal permissions

2018-07-23 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(name, S_IRUGO, name ## _show, NULL); Signed-off-by: Harshit Jain --- drivers/input/touchscreen/ad7877.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dri

[PATCH 05/11] touchscreen: elants: Use octal permissions

2018-07-23 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(iap_mode, S_IRUGO, show_iap_mode, NULL); WARNING: Symbolic permissions 'S_IWUSR' are not preferred. Consider using octal permissions '0200'. +static DEVICE_ATTR(update_fw, S_IW

[PATCH 04/11] touchscreen: amtel: Use octal permissions

2018-07-23 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(fw_version, S_IRUGO, mxt_fw_version_show, NULL); WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(hw_vers

[PATCH 03/11] touchscreen: ad7846: Use octal permissions

2018-07-23 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(name, S_IRUGO, name ## _show, NULL); WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(pen_down, S_IRUGO,

Re: potential deadlock in cpufreq-dt

2018-07-23 Thread Eugeniu Rosca
Hi all, [since Jiada's initial report was based on 4.14.50+] FWIW, I can consistently reproduce this lockdep issue on 4.18.0-rc6: [ 17.119559] == [ 17.119571] WARNING: possible circular locking dependency detected [ 17.119589] 4.18.0-rc6 #

Re: [PATCH] nohz: don't kick non-idle CPUs in tick_nohz_full_kick_cpu()

2018-07-23 Thread Frederic Weisbecker
On Fri, Jul 20, 2018 at 07:24:00PM +0200, Thomas Gleixner wrote: > On Thu, 19 Jul 2018, Yury Norov wrote: > > While here. I just wonder, on my system IRQs are sent to nohz_full CPUs > > at every incoming ssh connection. The trace is like this: > > [ 206.835533] Call trace: > > [ 206.848411] [] du

Re: INFO: task hung in fuse_reverse_inval_entry

2018-07-23 Thread Miklos Szeredi
On Mon, Jul 23, 2018 at 2:46 PM, Dmitry Vyukov wrote: > On Mon, Jul 23, 2018 at 2:33 PM, Miklos Szeredi wrote: > On Mon, Jul 23, 2018 at 9:59 AM, syzbot > wrote: >> Hello, >> >> syzbot found the following crash on: >> >> HEAD commit:d72e90f33aa4 Linux 4.18-rc6 >>>

Re: [PATCH 6/8] clk: tegra30: add 2d and 3d idle clocks

2018-07-23 Thread Dmitry Osipenko
On Friday, 20 July 2018 16:45:30 MSK Ben Dooks wrote: > The 2D and 3D clocks have an IDLE field in bits 15:8 so add these > clocks by making a 2D and 3D mux, and split the divider into the > standard 2D/3D ones and 2D/3D idle clocks. > > Signed-off-by: Ben Dooks > --- > drivers/clk/tegra/clk-id.

Re: [RFC 2/2] x86/pti/64: Remove the SYSCALL64 entry trampoline

2018-07-23 Thread Dave Hansen
On 07/22/2018 10:45 AM, Andy Lutomirski wrote: > static void __init pti_clone_user_shared(void) > { > + unsigned cpu; > + > pti_clone_p4d(CPU_ENTRY_AREA_BASE); > + > + for_each_possible_cpu(cpu) { > + /* > + * The SYSCALL64 entry code needs to be able to fin

[PATCH 4.17 01/63] scsi: sd_zbc: Fix variable type and bogus comment

2018-07-23 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Damien Le Moal commit f13cff6c25bd8986627365346d123312ee7baa78 upstream. Fix the description of sd_zbc_check_zone_size() to correctly explain that the returned value is a number of device bloc

[PATCH 4.17 11/63] x86/events/intel/ds: Fix bts_interrupt_threshold alignment

2018-07-23 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Hugh Dickins commit 2c991e408df6a407476dbc453d725e1e975479e7 upstream. Markus reported that BTS is sporadically missing the tail of the trace in the perf_event data buffer: [decode error (1):

[PATCH 4.17 12/63] x86/MCE: Remove min interval polling limitation

2018-07-23 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Dewet Thibaut commit fbdb328c6bae0a7c78d75734a738b66b86dffc96 upstream. commit b3b7c4795c ("x86/MCE: Serialize sysfs changes") introduced a min interval limitation when setting the check inter

Re: [PATCH 1/2] security/keys/secure_key: Adds the secure key support based on CAAM.

2018-07-23 Thread Jan Lübbe
Hi, On Sat, 2018-07-21 at 14:44 +, Udit Agarwal wrote: > Thanks for sharing the documentation changes and feedback. > > Below are the answers to the questions: > > 1. Currently the secure key patch series has been added to support > only data blobs. > It is not supporting key blobs as of no

[PATCH 4.4 053/107] x86/cpu: Rename Merrifield2 to Moorefield

2018-07-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Andy Shevchenko commit f5fbf848303c8704d0e1a1e7cabd08fd0a49552f upstream Merrifield2 is actually Moorefield. Rename it accordingly and drop tail digit from Merrifield1. Signed-off-by: Andy Sh

Re: [PATCH] firewire: sbp2: Replace GFP_ATOMIC with GFP_KERNEL in sbp2_scsi_queuecommand()

2018-07-23 Thread Jia-Ju Bai
Thanks for the reply :) On 2018/7/23 20:24, Stefan Richter wrote: Adding Cc: LSML On Jul 23 Jia-Ju Bai wrote: sbp2_scsi_queuecommand() is only set to .queuecommand of "struct scsi_host_template", and this function pointer is never called in atomic context. As far as I remember, scsi_host_tem

[PATCH 4.4 056/107] x86/cpufeatures: Add X86_FEATURE_RDS

2018-07-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Konrad Rzeszutek Wilk commit 0cc5fa00b0a88dad140b4e5c2cead9951ad36822 upstream Add the CPU feature bit CPUID.7.0.EDX[31] which indicates whether the CPU supports Reduced Data Speculation. [ tg

[PATCH 4.4 052/107] x86/bugs, KVM: Support the combination of guest and host IBRS

2018-07-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Konrad Rzeszutek Wilk commit 5cf687548705412da47c9cec342fd952d71ed3d5 upstream A guest may modify the SPEC_CTRL MSR from the value used by the kernel. Since the kernel doesn't use IBRS, this me

[PATCH 4.4 057/107] x86/bugs: Provide boot parameters for the spec_store_bypass_disable mitigation

2018-07-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Konrad Rzeszutek Wilk commit 24f7fc83b9204d20f878c57cb77d261ae825e033 upstream Contemporary high performance processors use a common industry-wide optimization known as "Speculative Store Bypas

[PATCH 4.4 059/107] x86/bugs: Whitelist allowed SPEC_CTRL MSR values

2018-07-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Konrad Rzeszutek Wilk commit 1115a859f33276fe8afb31c60cf9d8e657872558 upstream Intel and AMD SPEC_CTRL (0x48) MSR semantics may differ in the future (or in fact use different MSRs for the same

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