Re: regression: /proc/$pid/cmdline lacks trailing '\0' in 4.18-rc1

2018-06-19 Thread Michal Kubecek
On Tue, Jun 19, 2018 at 08:07:55AM +0200, Michal Kubecek wrote: > In v4.18-rc1, /proc/$pid/cmdline is missing final null byte which used > to be there in v4.17 and older kernels: > > 4.17.1: > tweed:~ # cat /proc/self/cmdline | od -t c > 000 c a t \0 / p r o c / s e l

Re: [PATCH] x86/microcode/intel: Ensure new microcode processor flags match with cpu's pf

2018-06-19 Thread Zhenzhong Duan
On 2018/6/19 17:12, Borislav Petkov wrote: On Tue, Jun 19, 2018 at 12:49:40PM +0800, Zhenzhong Duan wrote: Imagine kernel already found a microcode blob A with extended sig/pf matching current cpu, then another microcode B is checked which doesn't match current cpu... Do you see the if

Re: [PATCH v4 2/2] cpufreq: qcom-fw: Add support for QCOM cpufreq FW driver

2018-06-19 Thread Viresh Kumar
On 12-06-18, 16:32, Taniya Das wrote: > +static int qcom_get_related_cpus(struct device_node *np, struct cpumask *m) > +{ > + struct device_node *cpu_np, *freq_np; > + int cpu; > + > + for_each_possible_cpu(cpu) { > + cpu_np = of_cpu_device_node_get(cpu); > + if

[PATCH 2/5] pinctrl: pinmux: Return selector to the pinctrl driver

2018-06-19 Thread Tony Lindgren
We must return the selector from pinmux_generic_add_function() so pin controller device drivers can remove the right group if needed for deferred probe for example. And we now must make sure that a proper name is passed so we can use it to check if the entry already exists. Note that fixes are als

[PATCH 5/5] pinctrl: core: Remove broken remove_last group and pinmux functions

2018-06-19 Thread Tony Lindgren
With no users left for these functions let's remove them. Reported-by: H. Nikolaus Schaller Cc: Andy Shevchenko Cc: Christ van Willegen Cc: Haojian Zhuang Cc: Jacopo Mondi Cc: Paul Cercueil Cc: Sean Wang Signed-off-by: Tony Lindgren --- drivers/pinctrl/core.h | 6 -- drivers/pinctrl

[PATCH 4/5] pinctrl: rza1: Fix selector use for groups and functions

2018-06-19 Thread Tony Lindgren
We must use a mutex around the generic_add functions and save the function and group selector in case we need to remove them. Otherwise the selector use will be racy for deferred probe at least. Fixes: 5a49b644b307 ("pinctrl: Renesas RZ/A1 pin and gpio controller") Reported-by: H. Nikolaus Schalle

[PATCHv2 0/5] pinctrl fixes for generic functions and groups

2018-06-19 Thread Tony Lindgren
Here are fixes to the race issues for generic group and functions reported by H. Nikolaus Schaller . I have not seen the issue here myself, so please test to see if this is sufficient. I've also fixed rza1 in addition to pinctrl-single. Please also check the drivers pinctrl-mt7622.c and pinctrl-in

[PATCH 3/5] pinctrl: single: Fix group and function selector use

2018-06-19 Thread Tony Lindgren
We must use a mutex around the generic_add functions and save the function and group selector in case we need to remove them. Otherwise the selector use will be racy for deferred probe at least. Note that struct device_node *np is unused in pcs_add_function() we remove that too and fix a checkpatc

[PATCH 1/5] pinctrl: core: Return selector to the pinctrl driver

2018-06-19 Thread Tony Lindgren
We must return the selector from pinctrl_generic_add_group() so pin controller device drivers can remove the right group if needed for deferred probe for example. And we now must make sure that a proper name is passed so we can use it to check if the entry already exists. Note that fixes are also

Re: [PATCH v2] printk: make sure to print log on console.

2018-06-19 Thread Petr Mladek
On Mon 2018-06-18 15:23:06, Sergey Senozhatsky wrote: > On (06/18/18 15:15), Sergey Senozhatsky wrote: > > > > On (06/01/18 14:26), Maninder Singh wrote: > > > > > > Signed-off-by: Vaneet Narang > > > Signed-off-by: Maninder Singh > > > > Reviewed-by: Sergey Senozhatsky > > OK, we probably ne

[PATCH] regulator: arizona-ldo1: Use correct device to get enable GPIO

2018-06-19 Thread Charles Keepax
Currently the enable GPIO is being looked up on the regulator device itself but that does not have its own DT node, this causes the lookup to fail and the regulator not to get its GPIO. The DT node is shared across the whole MFD and as such the lookup needs to happen on that parent device. Moving t

Re: [PATCH v4 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ FW bindings

2018-06-19 Thread Sudeep Holla
On 19/06/18 08:53, Taniya Das wrote: > > > On 6/18/2018 2:51 PM, Sudeep Holla wrote: >> >> >> On 15/06/18 18:40, Taniya Das wrote: >>> >>> >>> On 6/15/2018 5:29 PM, Amit Kucheria wrote: >> >> [...] >> A future version of the HW engine, or more likely, a firmware revision, will make m

Re: [PATCH] x86/microcode/intel: Ensure new microcode processor flags match with cpu's pf

2018-06-19 Thread Borislav Petkov
On Tue, Jun 19, 2018 at 05:24:20PM +0800, Zhenzhong Duan wrote: > On 2018/6/19 17:12, Borislav Petkov wrote: > > On Tue, Jun 19, 2018 at 12:49:40PM +0800, Zhenzhong Duan wrote: > > > Imagine kernel already found a microcode blob A with extended sig/pf > > > matching current cpu, then another microc

Re: [PATCH v2 5/7] ASoC: qdsp6: Add depends on OF

2018-06-19 Thread Srinivas Kandagatla
On 18/06/18 21:53, Rob Herring wrote: On Mon, Jun 18, 2018 at 2:08 PM, Niklas Cassel wrote: On Mon, Jun 18, 2018 at 08:48:32AM -0600, Rob Herring wrote: On Mon, Jun 18, 2018 at 6:39 AM, Niklas Cassel wrote: On Mon, Jun 18, 2018 at 12:06:42PM +0100, Mark Brown wrote: On Thu, Jun 14, 2018

[PATCH] siox: treat type errors as status errors

2018-06-19 Thread Uwe Kleine-König
The type bits are part of the per-device status word. So it's natural to consider an error in the type bits as a status error instead of only resulting in an unsynced state. Signed-off-by: Uwe Kleine-König --- drivers/siox/siox-core.c | 20 ++-- 1 file changed, 10 insertions(+),

Re: [RFC PATCH v3 10/10] arch_topology: Start Energy Aware Scheduling

2018-06-19 Thread Quentin Perret
Hi Pavan, On Tuesday 19 Jun 2018 at 14:48:41 (+0530), Pavan Kondeti wrote: > On Mon, May 21, 2018 at 03:25:05PM +0100, Quentin Perret wrote: > > > > > +static void start_eas_workfn(struct work_struct *work); > > +static DECLARE_WORK(start_eas_work, start_eas_workfn); > > + > > static int > >

[PATCH 0/2] x86/build: clean-up 'archprepare' and 'archclean'

2018-06-19 Thread Masahiro Yamada
Clean-up from the build system point of view. The archpreapre and archclean for the x86 purgatory are unnecessary. Kbuild can handle them in a normal way. Masahiro Yamada (2): Revert "kexec: purgatory: add clean-up for purgatory directory" x86/build: remove unnecessary preparation for purgat

[PATCH 1/2] Revert "kexec: purgatory: add clean-up for purgatory directory"

2018-06-19 Thread Masahiro Yamada
This reverts commit b0108f9e93d0d39050eaa11358852f349bdccb71. Commit b0108f9e93d0 ("kexec: purgatory: add clean-up for purgatory directory") stated that the kexec-purgatory.c and purgatory.ro files were not removed after make mrproper. In fact, they are. You can confirm it after reverting it.

[PATCH 2/2] x86/build: remove unnecessary preparation for purgatory

2018-06-19 Thread Masahiro Yamada
kexec-purgatory.c is properly generated when Kbuild descend into the arch/x86/purgatory/. The archprepare target is redundant. Signed-off-by: Masahiro Yamada --- arch/x86/Makefile | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 246a979..a08e8

Re: [PATCH] Use 'imply' with SEV Kconfig CRYPTO dependencies

2018-06-19 Thread Borislav Petkov
On Thu, Jun 14, 2018 at 07:08:26AM -0500, Brijesh Singh wrote: > I think depends should look like this: > > config KVM_AMD_SEV >     def_bool y >     bool "AMD Secure Encrypted Virtualization (SEV) support" >     depends KVM_AMD && X86_64 >     depends CRYPTO_DEV_SP_PSP && !(KVM_AMD=y && CRYPTO_DE

Re: [RFC PATCH v3 10/10] arch_topology: Start Energy Aware Scheduling

2018-06-19 Thread Juri Lelli
On 19/06/18 10:40, Quentin Perret wrote: > Hi Pavan, > > On Tuesday 19 Jun 2018 at 14:48:41 (+0530), Pavan Kondeti wrote: [...] > > There seems to be a sysfs interface exposed by this driver to change > > cpu_scale. > > Should we worry about it? I don't know what is the usecase for changing the

Re: [PATCH v2] printk: make sure to print log on console.

2018-06-19 Thread Sergey Senozhatsky
On (06/19/18 11:32), Petr Mladek wrote: > > - if (suppress_message_printing(msg->level)) { > > + if (!ignore_loglevel && (msg->flags & LOG_NOCONS)) { > > > > > > `ignore_loglevel' is a module param and can change any time via > > /sys/module/printk/parameters/ignor

Re: [RFC PATCH v3 07/10] sched/fair: Introduce an energy estimation helper function

2018-06-19 Thread Pavan Kondeti
On Mon, May 21, 2018 at 03:25:02PM +0100, Quentin Perret wrote: > > +/* > + * Returns the util of "cpu" if "p" wakes up on "dst_cpu". > + */ > +static unsigned long cpu_util_next(int cpu, struct task_struct *p, int > dst_cpu) > +{ > + unsigned long util, util_est; > + struct cfs_rq *c

Re: [RFC PATCH v3 07/10] sched/fair: Introduce an energy estimation helper function

2018-06-19 Thread Quentin Perret
On Tuesday 19 Jun 2018 at 15:21:40 (+0530), Pavan Kondeti wrote: > On Mon, May 21, 2018 at 03:25:02PM +0100, Quentin Perret wrote: > > > > > > > +/* > > + * Returns the util of "cpu" if "p" wakes up on "dst_cpu". > > + */ > > +static unsigned long cpu_util_next(int cpu, struct task_struct *p,

Re: [PATCH v3 5/7] dt-bindings: power: Add qcom rpmh power domain driver bindings

2018-06-19 Thread Viresh Kumar
On 14-06-18, 11:56, Rajendra Nayak wrote: > On 06/14/2018 03:42 AM, David Collins wrote: > > Could you please add an example consumer DT node as well which uses > > "SDM845 Power Domain Indexes" from qcom-rpmhpd.h? It isn't clear how a > > specific power domain (e.g. SDM845_CX) is specified from t

Re: [RFC v2 PATCH 2/2] mm: mmap: zap pages with read mmap_sem for large mapping

2018-06-19 Thread Peter Zijlstra
On Tue, Jun 19, 2018 at 07:34:16AM +0800, Yang Shi wrote: > diff --git a/mm/mmap.c b/mm/mmap.c > index fc41c05..e84f80c 100644 > --- a/mm/mmap.c > +++ b/mm/mmap.c > @@ -2686,6 +2686,141 @@ int split_vma(struct mm_struct *mm, struct > vm_area_struct *vma, > return __split_vma(mm, vma, addr,

Re: [RFC PATCH v3 10/10] arch_topology: Start Energy Aware Scheduling

2018-06-19 Thread Quentin Perret
On Tuesday 19 Jun 2018 at 11:47:14 (+0200), Juri Lelli wrote: > On 19/06/18 10:40, Quentin Perret wrote: > > Hi Pavan, > > > > On Tuesday 19 Jun 2018 at 14:48:41 (+0530), Pavan Kondeti wrote: > > [...] > > > > There seems to be a sysfs interface exposed by this driver to change > > > cpu_scale.

Re: [PATCH v3 7/7] soc: qcom: rpmpd/rpmhpd: Add a max vote on all corners at init

2018-06-19 Thread Viresh Kumar
On 14-06-18, 12:05, Rajendra Nayak wrote: > On 06/14/2018 03:58 AM, David Collins wrote: > > Hello Rajendra, > > > > On 06/11/2018 09:40 PM, Rajendra Nayak wrote: > >> As we move from no clients/consumers in kernel voting on corners, > >> to *some* voting and some not voting, we might end up in a

Re: linux-next: manual merge of the userns tree with the vfs tree

2018-06-19 Thread Eric W. Biederman
Stephen Rothwell writes: > Hi all, > > Today's linux-next merge of the userns tree got conflicts in: > > fs/proc/inode.c > fs/proc/root.c > > between commits: > > 0223e0999be2 ("procfs: Move proc_fill_super() to fs/proc/root.c") > 83cd45075c36 ("proc: Add fs_context support to procfs") >

[PATCH v3 3/7] arm_pmu: Add support for 64bit event counters

2018-06-19 Thread Suzuki K Poulose
Each PMU has a set of 32bit event counters. But in some special cases, the events could be counted using counters which are effectively 64bit wide. e.g, Arm V8 PMUv3 has a 64 bit cycle counter which can count only the CPU cycles. Also, the PMU can chain the event counters to effectively count as a

[PATCH v3 1/7] arm_pmu: Clean up maximum period handling

2018-06-19 Thread Suzuki K Poulose
Each PMU defines their max_period of the counter as the maximum value that can be counted. Since all the PMU backends support 32bit counters by default, let us remove the redundant field. No functional changes. Cc: Mark Rutland Cc: Will Deacon Reviewed-by: Julien Thierry Signed-off-by: Suzuki

[PATCH v3 4/7] arm_pmu: Tidy up clear_event_idx call backs

2018-06-19 Thread Suzuki K Poulose
The armpmu uses get_event_idx callback to allocate an event counter for a given event, which marks the selected counter as "used". Now, when we delete the counter, the arm_pmu goes ahead and clears the "used" bit and then invokes the "clear_event_idx" call back, which kind of splits the job between

[PATCH v3 5/7] arm64: perf: Clean up armv8pmu_select_counter

2018-06-19 Thread Suzuki K Poulose
armv8pmu_select_counter always returns the passed idx. So let us make that void and get rid of the pointless checks. Suggested-by: Mark Rutland Cc: Will Deacon Signed-off-by: Suzuki K Poulose --- arch/arm64/kernel/perf_event.c | 29 +++-- 1 file changed, 19 insertions(+

[PATCH v3 6/7] arm64: perf: Disable PMU while processing counter overflows

2018-06-19 Thread Suzuki K Poulose
The arm64 PMU updates the event counters and reprograms the counters in the overflow IRQ handler without disabling the PMU. This could potentially cause skews in for group counters, where the overflowed counters may potentially loose some event counts, while they are reprogrammed. To prevent this,

[PATCH v3 7/7] arm64: perf: Add support for chaining event counters

2018-06-19 Thread Suzuki K Poulose
Add support for 64bit event by using chained event counters and 64bit cycle counters. PMUv3 allows chaining a pair of adjacent 32-bit counters, effectively forming a 64-bit counter. The low/even counter is programmed to count the event of interest, and the high/odd counter is programmed to count t

[PATCH v3 0/7] arm64: perf: Support for chained counters

2018-06-19 Thread Suzuki K Poulose
This series adds support for counting PMU events using 64bit counters for arm64 PMU. The Arm v8 PMUv3 supports combining two adjacent 32bit counters (low even and hig odd counters) to count a given "event" in 64bit mode. This series adds the support for 64bit events in the core arm_pmu driver infr

[PATCH v3 2/7] arm_pmu: Change API to support 64bit counter values

2018-06-19 Thread Suzuki K Poulose
Convert the {read/write}_counter APIs to handle 64bit values to enable supporting chained event counters. Cc: Mark Rutland Cc: Will Deacon Reviewed-by: Julien Thierry Signed-off-by: Suzuki K Poulose --- - No changes since v2 --- arch/arm/kernel/perf_event_v6.c | 4 ++-- arch/arm/kernel/p

Re: [PATCHv3 00/18] atomics: API cleanups

2018-06-19 Thread Mark Rutland
On Mon, Jun 18, 2018 at 08:21:27PM +0100, Mark Rutland wrote: > On Mon, Jun 18, 2018 at 05:38:06PM +0100, Will Deacon wrote: > > On Mon, Jun 18, 2018 at 11:19:01AM +0100, Mark Rutland wrote: > > > This series contains a few cleanups of the atomic API, fixing > > > inconsistencies between atomic_* a

Re: [RFC PATCH v3 10/10] arch_topology: Start Energy Aware Scheduling

2018-06-19 Thread Juri Lelli
On 19/06/18 11:02, Quentin Perret wrote: > On Tuesday 19 Jun 2018 at 11:47:14 (+0200), Juri Lelli wrote: > > On 19/06/18 10:40, Quentin Perret wrote: > > > Hi Pavan, > > > > > > On Tuesday 19 Jun 2018 at 14:48:41 (+0530), Pavan Kondeti wrote: > > > > [...] > > > > > > There seems to be a sysfs i

Re: [PATCHv3 00/18] atomics: API cleanups

2018-06-19 Thread Will Deacon
On Tue, Jun 19, 2018 at 11:18:01AM +0100, Mark Rutland wrote: > On Mon, Jun 18, 2018 at 08:21:27PM +0100, Mark Rutland wrote: > > On Mon, Jun 18, 2018 at 05:38:06PM +0100, Will Deacon wrote: > > > On Mon, Jun 18, 2018 at 11:19:01AM +0100, Mark Rutland wrote: > > > > This series contains a few clean

Re: rf69_set_deviation in rf69.c (pi433 driver)

2018-06-19 Thread Marcus Wolf
Hi Hugo, sorry for the late response and thank you for all that deep investigation in the pi433 driver! > According to the datasheet[0], the deviation should always be smaller > than 300kHz, and the following equation should be respected: > > (1) FDA + BRF/2 =< 500 kHz > > Why did you choose

Re: [PATCH 2/2] cpufreq: qcom-fw: Add support for QCOM cpufreq FW driver

2018-06-19 Thread Taniya Das
On 6/19/2018 2:24 PM, Viresh Kumar wrote: Sorry for being late.. On 07-06-18, 12:48, Taniya Das wrote: On 6/6/2018 11:31 AM, Viresh Kumar wrote: On 04-06-18, 16:16, Taniya Das wrote: +static struct cpufreq_driver cpufreq_qcom_fw_driver = { + .flags = CPUFREQ_STICKY | CPUFR

Re: [RFC PATCH v3 10/10] arch_topology: Start Energy Aware Scheduling

2018-06-19 Thread Quentin Perret
On Tuesday 19 Jun 2018 at 12:19:01 (+0200), Juri Lelli wrote: > On 19/06/18 11:02, Quentin Perret wrote: > > On Tuesday 19 Jun 2018 at 11:47:14 (+0200), Juri Lelli wrote: > > > On 19/06/18 10:40, Quentin Perret wrote: > > > > Hi Pavan, > > > > > > > > On Tuesday 19 Jun 2018 at 14:48:41 (+0530), Pa

Re: [RFC PATCH v3 06/10] sched: Add over-utilization/tipping point indicator

2018-06-19 Thread Dietmar Eggemann
On 06/19/2018 09:01 AM, Pavan Kondeti wrote: On Mon, May 21, 2018 at 03:25:01PM +0100, Quentin Perret wrote: [...] @@ -8152,6 +8176,9 @@ static inline void update_sg_lb_stats(struct lb_env *env, if (nr_running > 1) *overload = true; + if (cpu_overut

Re: [RFC PATCH v3 10/10] arch_topology: Start Energy Aware Scheduling

2018-06-19 Thread Juri Lelli
On 19/06/18 11:25, Quentin Perret wrote: > On Tuesday 19 Jun 2018 at 12:19:01 (+0200), Juri Lelli wrote: > > On 19/06/18 11:02, Quentin Perret wrote: > > > On Tuesday 19 Jun 2018 at 11:47:14 (+0200), Juri Lelli wrote: > > > > On 19/06/18 10:40, Quentin Perret wrote: > > > > > Hi Pavan, > > > > > >

Re: [PATCH 2/3 V2] x86/mce: Fix incorrect "Machine check from unknown source" message

2018-06-19 Thread Borislav Petkov
On Wed, May 30, 2018 at 11:26:32AM +0200, Borislav Petkov wrote: > > In "x86/mce: Exit properly when no banks to poll" you > > leap right to the end. I'm wondering whether this can > > ever happen? I mean, if there are no machine check banks, > > then how did we get a machine check? > > Right, so

Re: [PATCH 2/2] cpufreq: qcom-fw: Add support for QCOM cpufreq FW driver

2018-06-19 Thread Viresh Kumar
On 19-06-18, 15:55, Taniya Das wrote: > Yes, Viresh, earlier code was updating the table frequency as I was marking > the table frequency INVALID. > if (core_count != c->max_cores) > c->table[i].frequency = CPUFREQ_ENTRY_INVALID; > > And thus I had to update the table freque

Re: [PATCH 15/20] dts: arm: imx7{d,s}: Update coresight binding for hardware ports

2018-06-19 Thread Stefan Agner
On 19.06.2018 04:12, Shawn Guo wrote: > Hi Stefan, > > Can you take a look at the patch? Thanks. > > Shawn > > On Tue, Jun 05, 2018 at 10:43:26PM +0100, Suzuki K Poulose wrote: >> Switch to the updated coresight bindings. Looks good to me. Reviewed-by: Stefan Agner -- Stefan >> >> Cc: Shaw

Re: [PATCHv3 00/18] atomics: API cleanups

2018-06-19 Thread Mark Rutland
On Tue, Jun 19, 2018 at 11:20:49AM +0100, Will Deacon wrote: > On Tue, Jun 19, 2018 at 11:18:01AM +0100, Mark Rutland wrote: > > On Mon, Jun 18, 2018 at 08:21:27PM +0100, Mark Rutland wrote: > > > On Mon, Jun 18, 2018 at 05:38:06PM +0100, Will Deacon wrote: > > > > On Mon, Jun 18, 2018 at 11:19:01A

Re: [PATCH 2/2] mm: set PG_dma_pinned on get_user_pages*()

2018-06-19 Thread Jan Kara
On Tue 19-06-18 02:02:55, Matthew Wilcox wrote: > On Tue, Jun 19, 2018 at 10:29:49AM +0200, Jan Kara wrote: > > And for record, the problem with page cache pages is not only that > > try_to_unmap() may unmap them. It is also that page_mkclean() can > > write-protect them. And once PTEs are write-pr

ltp/read_all_sys (read_all -d /sys -q -r 10) cause system panic with kernel-4.18.0-rc1

2018-06-19 Thread Li Wang
Hi, I'm hitting this panic when running ltp/read_all_sys on kernel-v4.18-rc1. Test env: FUJITSU PRIMERGY RX200 S6 GS01 Intel(R) Xeon(R) CPU E5620 @ 2.40GHz 16384 MB memory, 598 GB disk space [ 5915.705844] BUG: unable to handle kernel NULL pointer dereference at 00b8 [ 5915.714587]

Re: [PATCH v3 6/7] arm64: perf: Disable PMU while processing counter overflows

2018-06-19 Thread Mark Rutland
On Tue, Jun 19, 2018 at 11:15:41AM +0100, Suzuki K Poulose wrote: > The arm64 PMU updates the event counters and reprograms the > counters in the overflow IRQ handler without disabling the > PMU. This could potentially cause skews in for group counters, > where the overflowed counters may potential

Re: dm bufio: Reduce dm_bufio_lock contention

2018-06-19 Thread Michal Hocko
On Mon 18-06-18 18:11:26, Mikulas Patocka wrote: [...] > I grepped the kernel for __GFP_NORETRY and triaged them. I found 16 cases > without a fallback - those are bugs that make various functions randomly > return -ENOMEM. Well, maybe those are just optimistic attempts to allocate memory and ha

Re: [PATCH] staging: pi433: fix race condition in pi433_open

2018-06-19 Thread Dan Carpenter
On Mon, Jun 18, 2018 at 11:11:36PM -0400, Hugo Lefeuvre wrote: > Hi Dan, > > > We need to decrement device->users-- on the error paths as well. > > This function was already slightly broken with respect to counting the > > users, but let's not make it worse. > > > > I think it's still a tiny bit

Re: [PATCH v4 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ FW bindings

2018-06-19 Thread Taniya Das
On 6/19/2018 3:04 PM, Sudeep Holla wrote: On 19/06/18 08:53, Taniya Das wrote: On 6/18/2018 2:51 PM, Sudeep Holla wrote: On 15/06/18 18:40, Taniya Das wrote: On 6/15/2018 5:29 PM, Amit Kucheria wrote: [...] A future version of the HW engine, or more likely, a firmware revision,

Re: [PATCH 1/3] locking: WW mutex cleanup

2018-06-19 Thread Thomas Hellstrom
On 06/19/2018 11:44 AM, Peter Zijlstra wrote: On Tue, Jun 19, 2018 at 10:24:43AM +0200, Thomas Hellstrom wrote: From: Peter Ziljstra Make the WW mutex code more readable by adding comments, splitting up functions and pointing out that we're actually using the Wait-Die algorithm. Cc: Ingo Moln

Re: [PATCH v3 1/7] arm_pmu: Clean up maximum period handling

2018-06-19 Thread Mark Rutland
On Tue, Jun 19, 2018 at 11:15:36AM +0100, Suzuki K Poulose wrote: > Each PMU defines their max_period of the counter as the maximum > value that can be counted. Since all the PMU backends support > 32bit counters by default, let us remove the redundant field. > > No functional changes. > > Cc: Ma

Re: [PATCH v3 1/3] mtd: rawnand: denali_dt: add more clocks based on IP datasheet

2018-06-19 Thread Richard Weinberger
Am Dienstag, 19. Juni 2018, 10:07:26 CEST schrieb Masahiro Yamada: > Hi Boris, > > > 2018-06-18 16:46 GMT+09:00 Boris Brezillon : > > On Mon, 18 Jun 2018 09:09:02 +0200 > > Richard Weinberger wrote: > > > >> Am Freitag, 15. Juni 2018, 03:18:50 CEST schrieb Masahiro Yamada: > >> > According to th

Re: [PATCH v1 4/6] perf: Allow using AUX data in perf samples

2018-06-19 Thread Alexander Shishkin
On Thu, Jun 14, 2018 at 10:20:22PM +0200, Peter Zijlstra wrote: > On Tue, Jun 12, 2018 at 10:51:15AM +0300, Alexander Shishkin wrote: > > +static unsigned long perf_aux_sample_size(struct perf_event *event, > > + struct perf_sample_data *data, > > +

Re: [PATCH] siox: treat type errors as status errors

2018-06-19 Thread Schenk, Gavin
Hi, On Tue, 2018-06-19 at 11:38 +0200, Uwe Kleine-König wrote: > The type bits are part of the per-device status word. So it's natural to > consider an error in the type bits as a status error instead of only > resulting in an unsynced state. > > Signed-off-by: Uwe Kleine-König Acked-by: Gavin S

Re: [RFC PATCH v3 10/10] arch_topology: Start Energy Aware Scheduling

2018-06-19 Thread Quentin Perret
On Tuesday 19 Jun 2018 at 12:31:08 (+0200), Juri Lelli wrote: > On 19/06/18 11:25, Quentin Perret wrote: > > On Tuesday 19 Jun 2018 at 12:19:01 (+0200), Juri Lelli wrote: > > > On 19/06/18 11:02, Quentin Perret wrote: > > > > On Tuesday 19 Jun 2018 at 11:47:14 (+0200), Juri Lelli wrote: > > > > > O

Re: [PATCH v3 2/7] arm_pmu: Change API to support 64bit counter values

2018-06-19 Thread Mark Rutland
On Tue, Jun 19, 2018 at 11:15:37AM +0100, Suzuki K Poulose wrote: > Convert the {read/write}_counter APIs to handle 64bit values > to enable supporting chained event counters. It might be worth a note that the underlying helpers will still only write 32-bit values, and we'll only pass those 32-bit

Re: [PATCH v1 4/6] perf: Allow using AUX data in perf samples

2018-06-19 Thread Alexander Shishkin
On Thu, Jun 14, 2018 at 09:39:17PM +0200, Peter Zijlstra wrote: > On Thu, Jun 14, 2018 at 09:25:13PM +0200, Peter Zijlstra wrote: > > On Tue, Jun 12, 2018 at 10:51:15AM +0300, Alexander Shishkin wrote: > > > @@ -882,6 +890,7 @@ struct perf_sample_data { > > >*/ > > > u64

Re: [PATCH v2] printk: make sure to print log on console.

2018-06-19 Thread Petr Mladek
On Tue 2018-06-19 18:49:53, Sergey Senozhatsky wrote: > On (06/19/18 11:32), Petr Mladek wrote: > > > - if (suppress_message_printing(msg->level)) { > > > + if (!ignore_loglevel && (msg->flags & LOG_NOCONS)) { > > > > > > > > > `ignore_loglevel' is a module param and c

RE: [LINUX PATCH v9 2/4] memory: pl353: Add driver for arm pl353 static memory controller

2018-06-19 Thread Naga Sureshkumar Relli
Hi Miquel, Sorry for the late reply. Currently I am addressing the comments that you gave to pl353_nand driver. And done with those, but this is pending. > -Original Message- > From: Miquel Raynal [mailto:miquel.ray...@bootlin.com] > Sent: Thursday, June 7, 2018 9:37 PM > To: Naga Suresh

[PATCH v7 3/4] clk: bd71837: Add driver for BD71837 PMIC clock

2018-06-19 Thread Matti Vaittinen
Support BD71837 gateable 32768 Hz clock. Signed-off-by: Matti Vaittinen --- drivers/clk/Kconfig | 6 ++ drivers/clk/Makefile | 1 + drivers/clk/clk-bd71837.c | 146 ++ 3 files changed, 153 insertions(+) create mode 100644 drivers/clk/cl

Re: [PATCH v3 3/7] arm_pmu: Add support for 64bit event counters

2018-06-19 Thread Mark Rutland
On Tue, Jun 19, 2018 at 11:15:38AM +0100, Suzuki K Poulose wrote: > Each PMU has a set of 32bit event counters. But in some > special cases, the events could be counted using counters > which are effectively 64bit wide. > > e.g, Arm V8 PMUv3 has a 64 bit cycle counter which can count > only the CP

[PATCH v7 4/4] input/power: Add driver for BD71837/BD71847 PMIC power button

2018-06-19 Thread Matti Vaittinen
ROHM BD71837 PMIC power button driver providing power-key press information to user-space. Signed-off-by: Matti Vaittinen --- drivers/input/misc/Kconfig | 10 + drivers/input/misc/Makefile | 1 + drivers/input/misc/bd718xx-pwrkey.c | 90 +

[PATCH v7 1/4] mfd: bd71837: mfd driver for ROHM BD71837 PMIC

2018-06-19 Thread Matti Vaittinen
ROHM BD71837 PMIC MFD driver providing interrupts and support for two subsystems: - clk - Regulators Signed-off-by: Matti Vaittinen --- drivers/mfd/Kconfig | 13 ++ drivers/mfd/Makefile| 1 + drivers/mfd/bd71837.c | 221 ++ include/linux/mfd/bd718

[PATCH v7 0/4] mfd/regulator/clk/input: bd71837: ROHM BD71837 PMIC driver

2018-06-19 Thread Matti Vaittinen
Patch series adding support for ROHM BD71837 PMIC. BD71837 is a programmable Power Management IC for powering single-core, dual-core, and quad-core SoC’s such as NXP-i.MX 8M. It is optimized for low BOM cost and compact solution footprint. It integrates 8 buck regulators and 7 LDO’s to provide all

Re: [PATCH v1 4/6] perf: Allow using AUX data in perf samples

2018-06-19 Thread Alexander Shishkin
On Thu, Jun 14, 2018 at 09:47:20PM +0200, Peter Zijlstra wrote: > On Tue, Jun 12, 2018 at 10:51:15AM +0300, Alexander Shishkin wrote: > > @@ -6112,6 +6219,32 @@ void perf_prepare_sample(struct perf_event_header > > *header, > > > > if (sample_type & PERF_SAMPLE_PHYS_ADDR) > > dat

[PATCH v7 2/4] mfd: bd71837: Devicetree bindings for ROHM BD71837 PMIC

2018-06-19 Thread Matti Vaittinen
Document devicetree bindings for ROHM BD71837 PMIC MFD. Signed-off-by: Matti Vaittinen Reviewed-by: Rob Herring --- .../devicetree/bindings/mfd/rohm,bd71837-pmic.txt | 67 ++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/rohm,bd7

[PATCH v2 2/5] ARM: trusted_foundations: Provide information about whether firmware is registered

2018-06-19 Thread Dmitry Osipenko
Add a helper that provides information about whether Trusted Foundations firmware operations have been registered. Signed-off-by: Dmitry Osipenko --- arch/arm/firmware/trusted_foundations.c| 5 + arch/arm/include/asm/trusted_foundations.h | 7 +++ 2 files changed, 12 insertions(+) d

[PATCH v2 5/5] ARM: tegra: Always boot CPU in ARM-mode

2018-06-19 Thread Dmitry Osipenko
CPU always jumps into the reset handler in ARM-mode from the Trusted Foundations firmware, hence make CPU to always jump into kernel in ARM-mode regardless of the firmware presence to support Thumb2 kernel + TF case. Signed-off-by: Dmitry Osipenko --- arch/arm/mach-tegra/reset-handler.S | 1 + a

[PATCH v2 0/5] Initial support of Trusted Foundations on Tegra30

2018-06-19 Thread Dmitry Osipenko
Hello, This series of patches brings initial support of Trusted Foundations to Tegra30, that is to the consumer-grade Tegra30 devices which do not allow to easily replace the proprietary bootloader. Support is initial because this series implements only a proper CPU boot-up (main + secondary cores

[PATCH v2 4/5] ARM: tegra: Don't apply CPU erratas in insecure mode

2018-06-19 Thread Dmitry Osipenko
CPU isn't allowed to touch secure registers while running under secure monitor. Hence skip applying CPU erratas in the reset handler if Trusted Foundations firmware presents. Signed-off-by: Dmitry Osipenko --- arch/arm/mach-tegra/reset-handler.S | 24 arch/arm/mach-tegra

[PATCH v2 3/5] ARM: tegra: Setup L2 cache using Trusted Foundations firmware

2018-06-19 Thread Dmitry Osipenko
On Tegra20/30 L2 cache must be initialized using firmware call if CPU is running in insecure mode. Initialize L2 cache and setup the outer-cache callbacks in early boot using the firmware API. Signed-off-by: Dmitry Osipenko --- arch/arm/mach-tegra/tegra.c | 15 +++ 1 file changed, 15

[PATCH v2 1/5] ARM: trusted_foundations: Implement L2 cache initialization callback

2018-06-19 Thread Dmitry Osipenko
Implement L2 cache initialization firmware callback that should be invoked early in boot to enable cache HW. Signed-off-by: Dmitry Osipenko --- arch/arm/firmware/trusted_foundations.c | 27 + 1 file changed, 27 insertions(+) diff --git a/arch/arm/firmware/trusted_foundat

Re: [RFC PATCH v3 03/10] PM: Introduce an Energy Model management framework

2018-06-19 Thread Peter Zijlstra
On Mon, May 21, 2018 at 03:24:58PM +0100, Quentin Perret wrote: > +struct em_freq_domain { > + struct em_cs_table *cs_table; > + cpumask_t cpus; > +}; https://lkml.kernel.org/r/20180612125930.gp12...@hirez.programming.kicks-ass.net

Re: INFO: task hung in __sb_start_write

2018-06-19 Thread Tetsuo Handa
On 2018/06/16 4:40, Tetsuo Handa wrote: > Hmm, there might be other locations calling percpu_rwsem_release() ? There are other locations calling percpu_rwsem_release(), but quite few. include/linux/fs.h:1494:#define __sb_writers_release(sb, lev) \ include/linux/fs.h-1495- percpu_rwsem_r

Re: [PATCH 2/4] clk: clk: Add clk_dflt_restore

2018-06-19 Thread J, KEERTHY
On 6/19/2018 11:36 AM, Tero Kristo wrote: On 19/06/18 07:28, Keerthy wrote: The default restore context function enables or disables the clock based on the enable_count. This is done in cases where the clock context is lost and based on the enable_count the clock either needs to be enabled/di

linux-next: Signed-off-by missing for commit in the scsi-mkp tree

2018-06-19 Thread Stephen Rothwell
Hi Martin, Commit 508fbc44bbb7 ("scsi: be2iscsi: Include null char in SET_HOST_DATA") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell pgp4IyFUYsQoF.pgp Description: OpenPGP digital signature

Re: [PATCH v3 3/3] mtd: rawnand: denali: optimize timing parameters for data interface

2018-06-19 Thread Richard Weinberger
Am Freitag, 15. Juni 2018, 03:18:52 CEST schrieb Masahiro Yamada: > This commit improves the ->setup_data_interface() hook. > > The denali_setup_data_interface() needs the frequency of clk_x > and the ratio of clk_x / clk. > > The latter is currently hardcoded in the driver, like this: > > #de

[RFC PATCH] drm/panel: lcd_olinuxino_funcs can be static

2018-06-19 Thread kbuild test robot
Fixes: 17a867cdd048 ("drm/panel: Add support for Olimex LCD-OLinuXino panel") Signed-off-by: kbuild test robot --- panel-olimex-lcd-olinuxino.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c b/drivers/gpu/drm/panel/pane

linux-kernel@vger.kernel.org

2018-06-19 Thread Richard Weinberger
Am Freitag, 15. Juni 2018, 03:18:51 CEST schrieb Masahiro Yamada: > The probe function references &pdev->dev many times. Add 'dev' as > a shorthand. > > Signed-off-by: Masahiro Yamada > --- > > Changes in v3: None > Changes in v2: None > > drivers/mtd/nand/raw/denali_dt.c | 25 +--

[PATCH v2] PCI: controller: Move PCI_DOMAINS selection to arch Kconfig

2018-06-19 Thread Lorenzo Pieralisi
Commit 51bc085d6454 ("PCI: Improve host drivers compile test coverage") added configuration options to allow PCI host controller drivers to be compile tested on all architectures. Some host controller drivers (eg PCIE_ALTERA) config entries select the PCI_DOMAINS config option to enable PCI domain

[GIT PULL] userns fixes for 4.17-rc2

2018-06-19 Thread Eric W. Biederman
Linus, Please pull the userns-linus branch from the git tree: git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git userns-linus HEAD: 04035aa33a1258ca3c30f58138897ca3e97485f1 proc: Don't change mount options on remount failure. Mount options for proc have been som

RE: [tip:x86/pti] x86/asm: Pad assembly functions with INT3 instructions

2018-06-19 Thread David Laight
From: Mike Galbraith > Sent: 17 June 2018 14:39 ... > > > Is dinky patchlet suggesting cryptomgr is being naughty? ... > > diff --git a/arch/x86/crypto/aegis128-aesni-asm.S > > b/arch/x86/crypto/aegis128-aesni-asm.S > > index 9254e0b6cc06..717bf0776421 100644 > > --- a/arch/x86/crypto/aegis128-aes

Re: [PATCH v3 1/3] mtd: rawnand: denali_dt: add more clocks based on IP datasheet

2018-06-19 Thread Boris Brezillon
Hi Masahiro, On Fri, 15 Jun 2018 10:18:50 +0900 Masahiro Yamada wrote: > According to the Denali User's Guide, this IP needs three clocks: > > - clk: controller core clock > > - clk_x: bus interface clock > > - ecc_clk: clock at which ECC circuitry is run > > Currently, denali_dt.c requir

Re: [RFC PATCH v3 03/10] PM: Introduce an Energy Model management framework

2018-06-19 Thread Peter Zijlstra
On Mon, May 21, 2018 at 03:24:58PM +0100, Quentin Perret wrote: > + read_lock_irqsave(&em_data_lock, flags); > + for_each_cpu(cpu, cpu_possible_mask) { I know we're likely to only use this on small systems, but this pattern is a very bad, Please look at alternatives.

Re: [RFC PATCH v3 03/10] PM: Introduce an Energy Model management framework

2018-06-19 Thread Peter Zijlstra
On Mon, May 21, 2018 at 03:24:58PM +0100, Quentin Perret wrote: > +struct em_freq_domain *em_cpu_get(int cpu) > +{ > + struct em_freq_domain *fd; > + unsigned long flags; > + > + read_lock_irqsave(&em_data_lock, flags); > + fd = per_cpu(em_data, cpu); > + read_unlock_irqrestore(

Re: [RFC PATCH 3/3] sdhci: arasan: Add support to read Tap Delay values from DT

2018-06-19 Thread Adrian Hunter
On 14/06/18 08:38, Manish Narani wrote: > Ping for RFC What is eemi? Why aren't there patches for that? > >> -Original Message- >> From: Manish Narani [mailto:manish.nar...@xilinx.com] >> Sent: Thursday, June 7, 2018 5:42 PM >> To: robh...@kernel.org; mark.rutl...@arm.com; catalin.mari.

RE: Lazy FPU restoration / moving kernel_fpu_end() to context switch

2018-06-19 Thread David Laight
From: Andy Lutomirski > Sent: 15 June 2018 19:54 > On Fri, Jun 15, 2018 at 11:50 AM Dave Hansen > wrote: > > > > On 06/15/2018 11:31 AM, Andy Lutomirski wrote: > > > for (thing) { > > > kernel_fpu_begin(); > > > encrypt(thing); > > > kernel_fpu_end(); > > > } > > > > Don't forget that the pr

Re: INFO: task hung in __get_super

2018-06-19 Thread Tetsuo Handa
This bug report is getting no feedback, but I guess that this bug is in block or mm or locking layer rather than fs layer. NMI backtrace for this bug tends to report that sb_bread() from fill_super() from mount_bdev() is stalling is the cause of keep holding s_umount_key for more than 120 seconds

Re: INFO: task hung in __sb_start_write

2018-06-19 Thread Dmitry Vyukov
On Tue, Jun 19, 2018 at 1:10 PM, Tetsuo Handa wrote: > On 2018/06/16 4:40, Tetsuo Handa wrote: >> Hmm, there might be other locations calling percpu_rwsem_release() ? > > There are other locations calling percpu_rwsem_release(), but quite few. > > include/linux/fs.h:1494:#define __sb_writers_relea

Re: INFO: task hung in __get_super

2018-06-19 Thread Dmitry Vyukov
On Tue, Jun 19, 2018 at 1:44 PM, Tetsuo Handa wrote: > This bug report is getting no feedback, but I guess that this bug is in > block or mm or locking layer rather than fs layer. > > NMI backtrace for this bug tends to report that sb_bread() from fill_super() > from mount_bdev() is stalling is t

[PATCH 4/6] irqchip/gic-v3-its: Don't bind LPI to unavailable NUMA node

2018-06-19 Thread Marc Zyngier
From: Yang Yingliang On a NUMA system, if an ITS is local to an offline node, the ITS driver may pick an offline CPU to bind the LPI. In this case, we need to pick an online CPU (and the first one will do). But on some systems, binding an LPI to non-local node CPU may cause deadlock (see Cavium

[PATCH 6/6] irqchip/gic-v3-its: Only emit VSYNC if targetting a valid collection

2018-06-19 Thread Marc Zyngier
Similarily to the SYNC operation, we need to verify that the VPE targetted by a VLPI is backed by a valid collection in the GIC driver data structures. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3-its.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff

[PATCH 1/6] genirq/debugfs: Add missing IRQCHIP_SUPPORTS_LEVEL_MSI debug

2018-06-19 Thread Marc Zyngier
We're missing the IRQCHIP_SUPPORTS_LEVEL_MSI debug entry, making debugfs slightly less useful. Take this opportunity to also add a missing comment in the definition of IRQCHIP_SUPPORTS_LEVEL_MSI. Fixes: 6988e0e0d283 ("genirq/msi: Limit level-triggered MSI to platform devices") Signed-off-by: Marc

[PATCH 5/6] irqchip/gic-v3-its: Only emit SYNC if targetting a valid collection

2018-06-19 Thread Marc Zyngier
It is possible, under obscure circumstances, to convince the ITS driver to emit a SYNC operation that targets a collection that is not bound to any redistributor (and the target_address field is zero) because the corresponding CPU has not been seen yet (the system has been booted with max_cpus="som

<    1   2   3   4   5   6   7   8   9   >