Re: [PATCH] drivers/memory/Kconfig: Add CONFIG_OF dependency

2018-07-23 Thread Boris Brezillon
On Mon, 23 Jul 2018 17:40:29 +0200 Arnd Bergmann wrote: > On Mon, Jul 23, 2018 at 11:41 AM, Boris Brezillon > wrote: > > On Mon, 23 Jul 2018 11:34:43 +0200 > > Arnd Bergmann wrote: > > > >> On Sun, Jul 22, 2018 at 8:29 AM, Boris Brezillon > >> wrote: > >> > +Arnd, Rob and the DT ML. > >>

Re: [PATCH v6 3/6] Uprobes: Support SDT markers having reference count (semaphore)

2018-07-23 Thread Oleg Nesterov
I have a mixed feeling about this series... I'll try to summarise my thinking tomorrow, but I do not see any obvious problem so far. Although I have some concerns about 5/6, I need to re-read it after sleep. On 07/16, Ravi Bangoria wrote: > > +static int delayed_uprobe_install(struct

[PATCH i2c-next] i2c: aspeed: Add an implicit type casting for *get_clk_reg_val

2018-07-23 Thread Jae Hyun Yoo
This commit fixes this sparse warning: drivers/i2c/busses/i2c-aspeed.c:875:38: warning: incorrect type in assignment (different modifiers) drivers/i2c/busses/i2c-aspeed.c:875:38:expected unsigned int ( *get_clk_reg_val )( ... ) drivers/i2c/busses/i2c-aspeed.c:875:38:got void const *const

Re: [PATCH v10 3/7] Bluetooth: btqca: Redefine qca_uart_setup() to generic function.

2018-07-23 Thread Matthias Kaehlcke
On Fri, Jul 20, 2018 at 07:02:39PM +0530, Balakrishna Godavarthi wrote: > Redefinition of qca_uart_setup will help future Qualcomm Bluetooth > SoC, to use the same function instead of duplicating the function. > Added new arguments soc_type and soc_ver to the functions. > > These arguments will

[RFT v2 07/10] ARM: dts: s5pv210: Switch to S5Pv210 specific pinctrl wakeup compatible

2018-07-23 Thread Krzysztof Kozlowski
The pin controller block of S5Pv210 for handling external wakeup interrupts is different than in newer designs (Exynos). Signed-off-by: Krzysztof Kozlowski Cc: Tomasz Figa Cc: Sylwester Nawrocki Acked-by: Tomasz Figa --- arch/arm/boot/dts/s5pv210.dtsi | 2 +- 1 file changed, 1 insertion(+),

[RFT v2 01/10] pinctrl: samsung: Define suspend and resume callbacks for all banks and SoCs

2018-07-23 Thread Krzysztof Kozlowski
Suspend and resume callbacks in Exynos/S5Pv210 pin controller drivers, save and restore state of registers. This operations should be done for all banks which have external interrupts (as denoted by using EXYNOS_PIN_BANK_EINTG/EINTW macros). Add all banks of Exynos5260 and Exynos5420. This is

[RFT v2 06/10] pinctrl: samsung: Write external wakeup interrupt mask

2018-07-23 Thread Krzysztof Kozlowski
The pinctrl driver defines an IRQ chip which handles external wakeup interrupts, therefore from logical point of view, it is the owner of external interrupt mask. The register controlling the mask belongs to Power Management Unit address space so it has to be accessed with PMU syscon regmap

[RFT v2 00/10] pinctrl: samsung: Remove ugly hack for sharing eint_wakeup_mask

2018-07-23 Thread Krzysztof Kozlowski
Hi All, Changes since v1 1. Add Tomasz's ack. 2. Reword description in patch 6/10. Tests = This is both request for comments and requests for tests. Only basic tests were done, including suspend to RAM on Odroid U3 (Exynos4412) with max7768 RTC wakeup. Please kindly test it

[RFT v2 02/10] pinctrl: samsung: Document suspend and resume members

2018-07-23 Thread Krzysztof Kozlowski
Add missing documentation for suspend and resume members of struct samsung_pin_ctrl and samsung_pinctrl_drv_data. Signed-off-by: Krzysztof Kozlowski Cc: Tomasz Figa Cc: Sylwester Nawrocki Acked-by: Tomasz Figa --- drivers/pinctrl/samsung/pinctrl-samsung.h | 8 1 file changed, 8

[RFT v2 08/10] ARM: s5pv210: Remove legacy setting of external wakeup interrupts

2018-07-23 Thread Krzysztof Kozlowski
Since Exynos/S5Pv210 pin-controller driver is taking care about setting the external wakeup interrupts mask, the legacy code can be removed. Signed-off-by: Krzysztof Kozlowski Cc: Tomasz Figa Cc: Sylwester Nawrocki Acked-by: Tomasz Figa --- arch/arm/mach-s5pv210/common.h | 1 -

[RFT v2 03/10] pinctrl: samsung: Document hidden requirement about one external wakeup

2018-07-23 Thread Krzysztof Kozlowski
Hardware (S5Pv210 and all Exynos SoCs) provides only 32 external interrupts which can wakeup device from deep sleep modes. On S5Pv210 these are gph0-gph3. On all Exynos designs these are gpx0-gpx3. There is only one 32-bit register for controlling the external wakeup interrupt mask (masking and

[RFT v2 04/10] pinctrl: samsung: Add dedicated compatible for S5Pv210 wakeup interrupts

2018-07-23 Thread Krzysztof Kozlowski
The S5Pv210 external wakeup interrupts differ from Exynos therefore separate compatible is needed. Duplicate existing flavor specific data from exynos4210_wkup_irq_chip and add new compatible for S5Pv210. At this point this new compatible does not bring anything new and works exactly as existing

[RFT v2 10/10] pinctrl: samsung: Remove legacy API for handling external wakeup interrupts mask

2018-07-23 Thread Krzysztof Kozlowski
Remove the legacy, ugly API of exposing the static value of external wakeup interrupts mask, because all arch-machine users where converted to use generic implementation from pinctrl driver. Signed-off-by: Krzysztof Kozlowski Cc: Tomasz Figa Cc: Sylwester Nawrocki Acked-by: Tomasz Figa ---

[RFT v2 09/10] ARM: exynos: Remove legacy setting of external wakeup interrupts

2018-07-23 Thread Krzysztof Kozlowski
Since Exynos/S5Pv210 pin-controller driver is taking care about setting the external wakeup interrupts mask, the legacy code can be removed. Signed-off-by: Krzysztof Kozlowski Cc: Tomasz Figa Cc: Sylwester Nawrocki Acked-by: Tomasz Figa --- arch/arm/mach-exynos/common.h | 2 --

[RFT v2 05/10] ARM: exynos: Define EINT_WAKEUP_MASK registers for S5Pv210 and Exynos5433

2018-07-23 Thread Krzysztof Kozlowski
S5Pv210 and Exynos5433/Exynos7 have different address of EINT_WAKEUP_MASK register. Rename existing S5P_EINT_WAKEUP_MASK to avoid confusion and add new ones. Signed-off-by: Krzysztof Kozlowski Cc: Tomasz Figa Cc: Sylwester Nawrocki Acked-by: Tomasz Figa --- arch/arm/mach-exynos/suspend.c

Re: [PATCH v3 2/3] perf arm64: Generate system call table from asm/unistd.h

2018-07-23 Thread Arnaldo Carvalho de Melo
Em Mon, Jul 23, 2018 at 03:59:05PM -0300, Arnaldo Carvalho de Melo escreveu: > A quick hack is to do this instead: I'm going with this quick hack applied so that I can pass all tests, feel free to provide an alternative patch that makes tools/include/uapi/asm-generic/unistd.h be used when

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 >

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

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

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 08:09:55AM -0700, Srikar Dronamraju wrote: > > > sched/numa: Stop multiple tasks from moving to the cpu at the same time > > This patch has go-ahead from Mel and Rik and no outstanding comments. I left it out because it's part of the big xchg() mess. In particular: +

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

2018-07-23 Thread Morten Rasmussen
On Mon, Jul 23, 2018 at 02:25:34PM +0100, Qais Yousef wrote: > 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

Re: [PATCH] of: irq: Add a helper function for irq_of_parse_and_map

2018-07-23 Thread Rob Herring
On Sat, Jul 21, 2018 at 9:38 AM Liu Xiang wrote: > > Implement a resource managed irq_of_parse_and_map function. That is obvious from the diff. Why do you need this? Anything that is a platform device should use platform_get_irq. The mapping is created by the core Also, of_irq_get() is

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 16:23:09 +0200 Snild Dolkow wrote: > 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

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

2018-07-23 Thread Greg KH
On Mon, Jul 23, 2018 at 06:05:38PM +0300, Ivan Bornyakov wrote: > Signed-off-by: Ivan Bornyakov > --- > drivers/staging/gasket/gasket_page_table.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) I can not take patches without any changelog text at all, sorry. greg k-h

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

2018-07-23 Thread Snild Dolkow
On 07/23/2018 05:37 PM, Steven Rostedt wrote: > On Mon, 23 Jul 2018 16:23:09 +0200 > Snild Dolkow wrote: > >> 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 */ >>> >>> --

Re: [PATCH v4 1/3] thermal: qcom-spmi: Allow to disable stage 2 shutdown

2018-07-23 Thread Matthias Kaehlcke
On Fri, Jul 20, 2018 at 11:42:40AM -0700, Doug Anderson wrote: > Hi, > > On Tue, Jul 17, 2018 at 2:08 PM, Matthias Kaehlcke wrote: > > When the temperature reaches stage 2 the PMIC performs by default a > > 'partial shutdown', unless software override is enabled. It is not well > > defined which

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

2018-07-23 Thread Logan Gunthorpe
On 23/07/18 08:01 AM, Allen Hubbe wrote: > Does this solve the issue where two of the the port numbers are the > same, because of symmetry over a crosslink? I think the two ports > with the "same" number should be identified as different peer index, > even if the port numbers are the same.

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

2018-07-23 Thread Qais Yousef
On 23/07/18 16:27, Morten Rasmussen wrote: [...] + /* +* Examine topology from all cpu's point of views to detect the lowest +* sched_domain_topology_level where a highest capacity cpu is visible +* to everyone. +*/ + for_each_cpu(i, cpu_map) { +

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 17:49:36 +0200 Snild Dolkow wrote: > On 07/23/2018 05:37 PM, Steven Rostedt wrote: > Will add: > > /* >* task is already visible to other tasks, so updating >* COMM must be protected. >*/ Thanks. > > Any

WARNING in untrack_pfn

2018-07-23 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:89cf55353308 Add linux-next specific files for 20180720 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=127e408c40 kernel config: https://syzkaller.appspot.com/x/.config?x=a9641a83a066bb43

Applied "regmap: sccb: fix typo and sort headers alphabetically" to the regmap tree

2018-07-23 Thread Mark Brown
The patch regmap: sccb: fix typo and sort headers alphabetically has been applied to the regmap tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Re: [PATCH v2 10/12] sched/core: uclamp: use TG's clamps to restrict Task's clamps

2018-07-23 Thread Suren Baghdasaryan
On Mon, Jul 23, 2018 at 8:40 AM, Patrick Bellasi wrote: > On 21-Jul 20:05, Suren Baghdasaryan wrote: >> On Mon, Jul 16, 2018 at 1:29 AM, Patrick Bellasi >> wrote: >> > When a task's util_clamp value is configured via sched_setattr(2), this >> > value has to be properly accounted in the

Re: [PATCH v2 09/10] coresight: perf: Remove set_buffer call back

2018-07-23 Thread Mathieu Poirier
On Fri, 20 Jul 2018 at 03:04, Suzuki K Poulose wrote: > > Mathieu, > > On 19/07/18 21:36, Mathieu Poirier wrote: > > On Tue, Jul 17, 2018 at 06:11:40PM +0100, Suzuki K Poulose wrote: > >> In coresight perf mode, we need to prepare the sink before > >> starting a session, which is done via

Re: [PATCH] IB/mlx5: avoid binding a new mpi unit to the same devices repeatedly

2018-07-23 Thread Qing Huang
Hi Daniel, On 7/23/2018 11:11 AM, Daniel Jurgens wrote: On 7/23/2018 10:36 AM, Qing Huang wrote: Hi Daniel/Parav, Have you got a chance to review this patch? Thanks! Hi Qing, sorry for the delay, I just got back to the office today. I don't agree with the proposed fix, I provided an

Re: [PATCH] firmware: vpd: Fix section enabled flag on vpd_section_destroy

2018-07-23 Thread Dmitry Torokhov
On Mon, Jul 23, 2018 at 11:27:10AM -0700, Guenter Roeck wrote: > On Mon, Jul 23, 2018 at 10:23:05AM -0700, Dmitry Torokhov wrote: > > On Mon, Jul 23, 2018 at 10:13:36AM -0700, Guenter Roeck wrote: > > > On Mon, Jul 23, 2018 at 07:48:57PM +0300, Anton Vasilyev wrote: > > > > static struct ro_vpd

Re: [PATCH] drivers/memory/Kconfig: Add CONFIG_OF dependency

2018-07-23 Thread Arnd Bergmann
On Mon, Jul 23, 2018 at 6:14 PM, Boris Brezillon wrote: > On Mon, 23 Jul 2018 18:04:52 +0200 > Arnd Bergmann wrote: > >> On Mon, Jul 23, 2018 at 5:40 PM, Arnd Bergmann wrote: >> > On Mon, Jul 23, 2018 at 11:41 AM, Boris Brezillon >> > wrote: >> >> On Mon, 23 Jul 2018 11:34:43 +0200 >> >> Arnd

Re: [RFC RESEND PATCH] drm/rockchip: update cursors asynchronously through atomic.

2018-07-23 Thread Gustavo Padovan
Hi Enric, On 07/23/2018 11:36 AM, Sean Paul wrote: On Wed, Jun 27, 2018 at 11:14:47PM +0200, Enric Balletbo i Serra wrote: Add support to async updates of cursors by using the new atomic interface for that. Signed-off-by: Enric Balletbo i Serra LGTM. Given rockchip hasn't weighed in on the

Re: [PATCH v2 1/3] Revert "ARM: dts: imx7d: Invert legacy PCI irq mapping"

2018-07-23 Thread Andrey Smirnov
On Mon, Jul 23, 2018 at 5:41 AM Leonard Crestez wrote: > > On Fri, 2018-07-20 at 08:33 -0700, Andrey Smirnov wrote: > > On Fri, Jul 20, 2018 at 5:48 AM Leonard Crestez > > wrote: > > > > > > This reverts commit 1c86c9dd82f859b474474a7fee0d5195da2c9c1d. > > > > > > That commit followed the

Re: [PATCH v3 2/3] perf arm64: Generate system call table from asm/unistd.h

2018-07-23 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 20, 2018 at 12:06:53PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Jul 18, 2018 at 12:57:52PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Fri, Jul 06, 2018 at 04:34:43PM -0500, Kim Phillips escreveu: > > > This should speed up accessing new system calls introduced with the

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

2018-07-23 Thread Johannes Weiner
Hi Arnd, On Mon, Jul 23, 2018 at 03:36:09PM +0200, Arnd Bergmann wrote: > 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

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

2018-07-23 Thread Suren Baghdasaryan
On Mon, Jul 23, 2018 at 8:02 AM, Patrick Bellasi wrote: > 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 >> >

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

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 09:29:54AM -0700, Srikar Dronamraju wrote: > * Peter Zijlstra [2018-07-23 17:21:47]: > > > On Mon, Jul 23, 2018 at 08:09:55AM -0700, Srikar Dronamraju wrote: > > > > > > > sched/numa: Stop multiple tasks from moving to the cpu at the same > > > > > time > > > > > >

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

2018-07-23 Thread Dmitry Torokhov
On Mon, Jul 23, 2018 at 03:32:00PM +0200, Greg Kroah-Hartman wrote: > 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,

Re: [PATCH] firmware: vpd: Fix section enabled flag on vpd_section_destroy

2018-07-23 Thread Guenter Roeck
On Mon, Jul 23, 2018 at 10:23:05AM -0700, Dmitry Torokhov wrote: > On Mon, Jul 23, 2018 at 10:13:36AM -0700, Guenter Roeck wrote: > > On Mon, Jul 23, 2018 at 07:48:57PM +0300, Anton Vasilyev wrote: > > > static struct ro_vpd and rw_vpd are initialized by vpd_sections_init() > > > in vpd_probe()

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

2018-07-23 Thread Ivan Bornyakov
Use vzalloc instead of vmalloc followed by memset with 0. 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

Re: [PATCH 1/2] Add sw2_sw4 voltage table to cpcap regulator.

2018-07-23 Thread Peter Geis
On 07/23/2018 02:13 PM, Mark Brown wrote: On Mon, Jul 23, 2018 at 01:58:26PM -0400, Peter Geis wrote: SW2 and SW4 use a shared table to provide voltage to the cpu core and devices on Tegra hardware. Added this table to the cpcap regulator driver as the first step to supporting this device on

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) >

[PATCH 00/12] mfd: Add support to WCD9335 Audio Codec

2018-07-23 Thread Srinivas Kandagatla
Qualcomm WCD9335 Codec is a standalone Hi-Fi audio codec IC. It is integrated in multiple Qualcomm SoCs like: MSM8996, MSM8976, and MSM8956 chipsets. WCD9335 had multiple functional blocks, like: Soundwire controller, interrupt mux, pin controller, Audio codec, MBHC, MAD(Mic activity Detection),

Re: [PATCH] drivers/memory/Kconfig: Add CONFIG_OF dependency

2018-07-23 Thread Boris Brezillon
On Mon, 23 Jul 2018 18:04:52 +0200 Arnd Bergmann wrote: > On Mon, Jul 23, 2018 at 5:40 PM, Arnd Bergmann wrote: > > On Mon, Jul 23, 2018 at 11:41 AM, Boris Brezillon > > wrote: > >> On Mon, 23 Jul 2018 11:34:43 +0200 > >> Arnd Bergmann wrote: > >> > >>> On Sun, Jul 22, 2018 at 8:29 AM,

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

2018-07-23 Thread Srikar Dronamraju
* Peter Zijlstra [2018-07-23 17:21:47]: > On Mon, Jul 23, 2018 at 08:09:55AM -0700, Srikar Dronamraju wrote: > > > > > sched/numa: Stop multiple tasks from moving to the cpu at the same > > > > time > > > > This patch has go-ahead from Mel and Rik and no outstanding comments. > > I left it

[PATCH v2] PCI/AER: Do not clear AER bits if we don't own AER

2018-07-23 Thread Alexandru Gagniuc
When we don't own AER, we shouldn't touch the AER error bits. Clearing error bits willy-nilly might cause firmware to miss some errors. In theory, these bits get cleared by FFS, or via ACPI _HPX method. These mechanisms are not subject to the problem. This race is mostly of theoretical

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

2018-07-23 Thread Liang, Kan
On 7/23/2018 12:56 PM, Liang, Kan wrote: On 7/23/2018 12:21 PM, Peter Zijlstra wrote: 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

[PATCH 1/2] Add sw2_sw4 voltage table to cpcap regulator.

2018-07-23 Thread Peter Geis
SW2 and SW4 use a shared table to provide voltage to the cpu core and devices on Tegra hardware. Added this table to the cpcap regulator driver as the first step to supporting this device on Tegra. Signed-off-by: Peter Geis --- drivers/regulator/cpcap-regulator.c | 23 +++

[PATCH 2/2] Add support for CPCAP regulators on Tegra devices.

2018-07-23 Thread Peter Geis
Added support for the CPCAP power management regulator functions on Tegra devices. Added sw2_sw4 value tables, which provide power to the Tegra core and aux devices. Added the Tegra init tables and device tree compatibility match. Signed-off-by: Peter Geis ---

[PATCH 0/2 V1] Add support for cpcap regulators on Tegra devices.

2018-07-23 Thread Peter Geis
Good Afternoon, I am re-sending the whole patch set due to my error of accidentally converting the tabulation to spaces. The CPCAP regulator driver can support various devices, but currently only supports Omap4 devices. Adds the sw2 and sw4 voltage tables, which power the Tegra core, and a

Re: [PATCH v3 00/18] JZ4780 DMA patchset v3

2018-07-23 Thread Paul Burton
Hi Paul & Vinod, On Sat, Jul 21, 2018 at 01:06:25PM +0200, Paul Cercueil wrote: > This is the version 3 of my jz4780-dma driver update patchset. > > Apologies to the DMA people, the v2 of this patchset did not make it to > their mailing-list; see the bottom of this email for a description of >

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

2018-07-23 Thread Joe Perches
On Mon, 2018-07-23 at 11:24 -0700, Guenter Roeck wrote: > There are much more urgent issues to fix there (such as, for example, > converting the "offending" drivers to the latest API, which would > magically cause most of the offenders to disappear). Perhaps posting a list of desired hwmon

Re: [PATCH] mm: memcg: fix use after free in mem_cgroup_iter()

2018-07-23 Thread Shakeel Butt
On Sun, Jul 22, 2018 at 11:44 PM Michal Hocko wrote: > > On Thu 19-07-18 09:23:10, Shakeel Butt wrote: > > On Thu, Jul 19, 2018 at 3:43 AM Michal Hocko wrote: > > > > > > [CC Andrew] > > > > > > On Thu 19-07-18 18:06:47, Jing Xia wrote: > > > > It was reported that a kernel crash happened in

Re: [PATCH] ext4: remove abnormal set for I_DATA_SEM subclass

2018-07-23 Thread Theodore Y. Ts'o
On Mon, Jul 23, 2018 at 10:48:37AM +0900, 이준일/연구원/MC연구소 BSP실 BSP6팀(junil0814@lge.com) wrote: > Then, I have a question. > quotactl() doesn't have case only to set limits flag, the routine to set > the DQUOT_LIMITS_ENABLED flag is under dquot_enable() function. > According to this logic, if

[PATCH] gpio: ml-ioh: Fix buffer underwrite on probe error path

2018-07-23 Thread Anton Vasilyev
If ioh_gpio_probe() fails on devm_irq_alloc_descs() then chip may point to any element of chip_save array, so reverse iteration from pointer chip may become chip_save[-1] and gpiochip_remove() will operate with wrong memory. The patch fix the error path of ioh_gpio_probe() to correctly bypass

[PATCH v2 0/4] staging/fsl-mc/bus: Move DPIO from staging to drivers/soc/fsl

2018-07-23 Thread Roy Pledge
Move the NXP DPIO (Datapath I/O driver) from the staging/fsl-mc/bus/dpio directory to the drivers/soc/fsl directory. The DPIO driver enables access to the Queue and Buffer Managemer (QBMAN) hardware of NXP DPAA2 devices. This is a prerequiste for moving the DPAA2 Ethernet device driver from the

[PATCH v2 1/4] staging: fsl-dpaa2/eth: move generic FD defines to DPIO

2018-07-23 Thread Roy Pledge
From: Horia Geantă Previous commits: commit 6e2387e8f19e ("staging: fsl-dpaa2/eth: Add Freescale DPAA2 Ethernet driver") commit 39163c0ce0f4 ("staging: fsl-dpaa2/eth: Errors checking update") have added bits that are not specific to the WRIOP accelerator. Move these where they belong (in DPIO)

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

2018-07-23 Thread Dmitry Torokhov
On Mon, Jul 23, 2018 at 10:25:10AM -0700, Joe Perches wrote: > On Mon, 2018-07-23 at 10:18 -0700, Dmitry Torokhov wrote: > > On Mon, Jul 23, 2018 at 03:32:00PM +0200, Greg Kroah-Hartman wrote: > > > On Mon, Jul 23, 2018 at 06:49:20PM +0530, dev-harsh1998 wrote: > > > > WARNING: Symbolic

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

2018-07-23 Thread Linus Torvalds
On Mon, Jul 23, 2018 at 7:09 AM Pavel Machek wrote: > > Meanwhile... it looks like gcc is not slowed down significantly, but > other stuff sees 30% .. 40% slowdowns... which is rather > significant. That is more or less expected. Gcc spends about 90+% of its time in user space, and the system

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

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

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 02/10] mm: workingset: tell cache transitions from workingset thrashing

2018-07-23 Thread Arnd Bergmann
On Mon, Jul 23, 2018 at 5:23 PM, Johannes Weiner wrote: > On Mon, Jul 23, 2018 at 03:36:09PM +0200, Arnd Bergmann wrote: >> On Thu, Jul 12, 2018 at 7:29 PM, Johannes Weiner wrote: >> In file included from /git/arm-soc/include/linux/kernel.h:10, >> from

Re: [PATCH] memory: jz4780-nemc: build depend on OF

2018-07-23 Thread Randy Dunlap
On 07/23/2018 04:38 AM, Corentin Labbe wrote: > jz4780-nemc use of_ functions, so it needs to depend on OF > > This fix the following build failure on x86 > drivers/memory/jz4780-nemc.c: In function ‘jz4780_nemc_num_banks’: > drivers/memory/jz4780-nemc.c:72:10: error: implicit declaration of

[PATCH 12/12] ASoC: apq8096: Add support to Analog audio via WCD9335 slim

2018-07-23 Thread Srinivas Kandagatla
This patch adds support Analog audio via WCD9335 Codec connected via SLIMBus. Tested it on DB820c. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/apq8096.c | 68 1 file changed, 68 insertions(+) diff --git a/sound/soc/qcom/apq8096.c

[PATCH 10/12] ASoC: wcd9335: add capture dapm widgets

2018-07-23 Thread Srinivas Kandagatla
Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd9335.c | 1451 +++- 1 file changed, 1450 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c index 3bdfa7f4e26e..a08703681674 100644 ---

[PATCH 03/12] mfd: wcd9335: add wcd irq support

2018-07-23 Thread Srinivas Kandagatla
WCD9335 supports two lines of irqs INTR1 and INTR2. Mutiple interrupts are muxed via these lines. INTR1 consists of all possible interrupt sources like: Ear OCP, HPH OCP, MBHC, MAD, VBAT, and SVA INTR2 is a subset of first interrupt sources like MAD, VBAT, and SVA Signed-off-by: Srinivas

[PATCH 08/12] ASoC: wcd9335: add basic controls

2018-07-23 Thread Srinivas Kandagatla
This patch adds basic controls found in wcd9335 codec. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd9335.c | 371 + 1 file changed, 371 insertions(+) diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c index

[PATCH 05/12] ASoC: core: add support to snd_soc_dai_get_channel_map()

2018-07-23 Thread Srinivas Kandagatla
On Qualcomm platforms, specifically with SLIMbus interfaced codecs, the codec slim channel numbers are passed to DSP while configuring the slim audio path. Having get_channel_map() would allow dais to share such information across multiple dais. Signed-off-by: Srinivas Kandagatla ---

[PATCH 09/12] ASoC: wcd9335: add playback dapm widgets

2018-07-23 Thread Srinivas Kandagatla
Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd9335.c | 1802 1 file changed, 1802 insertions(+) diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c index e1f63d8cc7d4..3bdfa7f4e26e 100644 --- a/sound/soc/codecs/wcd9335.c

[PATCH 06/12] ASoC: wcd9335: add support to wcd9335 codec

2018-07-23 Thread Srinivas Kandagatla
Qualcomm WCD9335 Codec is a standalone Hi-Fi audio codec IC, It supports both I2S/I2C and SLIMbus audio interfaces. On slimbus interface it supports two data lanes; 16 Tx ports and 8 Rx ports. It has Seven DACs and nine dedicated interpolators, Seven (six audio ADCs, and one VBAT ADC), Multibutton

[PATCH 11/12] ASoC: wcd9335: add audio routings

2018-07-23 Thread Srinivas Kandagatla
Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd9335.c | 189 + 1 file changed, 189 insertions(+) diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c index a08703681674..b185ed29d0dd 100644 --- a/sound/soc/codecs/wcd9335.c

[PATCH 07/12] ASoC: wcd9335: add CLASS-H Controller support

2018-07-23 Thread Srinivas Kandagatla
CLASS-H controller/Amplifier is common accorss Qualcomm WCD codec series. This patchset adds basic CLASS-H controller apis for WCD codecs after wcd9335 to use. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/Makefile |2 +- sound/soc/codecs/wcd-clsh.c | 1010

[PATCH] firmware: vpd: Fix section enabled flag on vpd_section_destroy

2018-07-23 Thread Anton Vasilyev
static struct ro_vpd and rw_vpd are initialized by vpd_sections_init() in vpd_probe() based on header's ro and rw sizes. In vpd_remove() vpd_section_destroy() performs deinitialization based on enabled flag, which is set to true by vpd_sections_init(). This leads to call of vpd_section_destroy()

Applied "regmap: sccb: fix typo and sort headers alphabetically" to the regmap tree

2018-07-23 Thread Mark Brown
The patch regmap: sccb: fix typo and sort headers alphabetically has been applied to the regmap tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Re: [PATCH] firmware: vpd: Fix section enabled flag on vpd_section_destroy

2018-07-23 Thread Guenter Roeck
On Mon, Jul 23, 2018 at 07:48:57PM +0300, Anton Vasilyev wrote: > static struct ro_vpd and rw_vpd are initialized by vpd_sections_init() > in vpd_probe() based on header's ro and rw sizes. > In vpd_remove() vpd_section_destroy() performs deinitialization based > on enabled flag, which is set to

[PATCH] drm/nouveau: Set DRIVER_ATOMIC cap earlier to fix debugfs

2018-07-23 Thread Lyude Paul
commit eb493fbc150f4a28151ae1ee84f24395989f3600 upstream Currently nouveau doesn't actually expose the state debugfs file that's usually provided for any modesetting driver that supports atomic, even if nouveau is loaded with atomic=1. This is due to the fact that the standard debugfs files that

Re: [PATCH v1 0/2] mm/kdump: exclude reserved pages in dumps

2018-07-23 Thread David Hildenbrand
On 23.07.2018 13:45, Vlastimil Babka wrote: > On 07/20/2018 02:34 PM, David Hildenbrand wrote: >> Dumping tools (like makedumpfile) right now don't exclude reserved pages. >> So reserved pages might be access by dump tools although nobody except >> the owner should touch them. > > Are you sure

Re: [PATCH 2/5] ARM: dts: exynos: add pinctrl config for midas keys

2018-07-23 Thread Krzysztof Kozlowski
On Sat, Jul 21, 2018 at 10:50:50PM +1000, Simon Shields wrote: > This pins are externally pulled up, and so we should explicitly > configure them to disable the SoC-internal pull-downs. Previously > we relied on the bootloader doing this in order to allow the buttons > to function properly. > >

Re: [PATCH 5/5] ARM: dts: exynos: configure midas SD card CD pin

2018-07-23 Thread Krzysztof Kozlowski
On Sat, Jul 21, 2018 at 10:50:53PM +1000, Simon Shields wrote: > This pin is externally pulled up, so we need to disable the SoC's > internal pull down resistor to allow it to function properly. > > Signed-off-by: Simon Shields > --- > arch/arm/boot/dts/exynos4412-midas.dtsi | 7 ++- > 1

Re: [PATCH 3/5] ARM: dts: exynos: add pinctrl for midas fuelgauge irq pin

2018-07-23 Thread Krzysztof Kozlowski
On Sat, Jul 21, 2018 at 10:50:51PM +1000, Simon Shields wrote: > This pin is externally pulled up, so we should disable the SoC's > pull down resistor in order for the interrupt to function properly. > > Signed-off-by: Simon Shields > --- > arch/arm/boot/dts/exynos4412-midas.dtsi | 7 +++ >

Re: [PATCH 4/5] ARM: dts: exynos: configure max77686 IRQ pin on midas

2018-07-23 Thread Krzysztof Kozlowski
On Sat, Jul 21, 2018 at 10:50:52PM +1000, Simon Shields wrote: > This pin is externally pulled up, so we need to disable the > SoC's internal pull-down. > > Signed-off-by: Simon Shields > --- > arch/arm/boot/dts/exynos4412-midas.dtsi | 7 +++ > 1 file changed, 7 insertions(+) Thanks,

Re: [PATCH] MIPS: Change definition of cpu_relax() for Loongson-3

2018-07-23 Thread Paul Burton
Hi Huacai, On Sat, Jul 21, 2018 at 09:35:59AM +0800, 陈华才 wrote: > SFB can improve the memory bandwidth as much as 30%, and we are > planning to enable SFB by default. So, we want to control cpu_relax() > under CONFIG_CPU_LOONGSON3, not under CONFIG_LOONGSON3_ENHANCEMENT. OK, applied to mips-next

[PATCH 2/2] cpufreq: Fix a circular lock dependency problem

2018-07-23 Thread Waiman Long
With lockdep turned on, the following circular lock dependency problem was reported: [ 57.470040] == [ 57.502900] WARNING: possible circular locking dependency detected [ 57.535208] 4.18.0-0.rc3.1.el8+7.x86_64+debug #1 Tainted: G [

[PATCH 1/2] cpu/hotplug: Add a cpus_read_trylock() function

2018-07-23 Thread Waiman Long
There are use cases where it can be useful to have a cpus_read_trylock() function to work around circular lock dependency problem involving the cpu_hotplug_lock. Signed-off-by: Waiman Long --- include/linux/cpu.h | 2 ++ kernel/cpu.c| 6 ++ 2 files changed, 8 insertions(+) diff

[PATCH 0/2] cpufreq: Fix a circular lock dependency problem

2018-07-23 Thread Waiman Long
This patchset works around a circular lock dependency issue in the cpufreq driver reported by lockdep. The two locks involved are the cpu_hotplup_lock and the reference count of a sysfs file. The cpufreq_register_driver() function uses the lock sequence: cpus_read_lock --> kn->count Whereas

Re: [PATCH i2c-next] i2c: aspeed: Handle master/slave combined irq events properly

2018-07-23 Thread Jae Hyun Yoo
Thanks James for the review. Please see my inline answers. On 7/23/2018 11:10 AM, James Feist wrote: On 07/23/2018 10:48 AM, Jae Hyun Yoo wrote: In most of cases, interrupt bits are set one by one but there are also a lot of other cases that Aspeed I2C IP sends multiple interrupt bits with

Re: [PATCH 1/2] Add sw2_sw4 voltage table to cpcap regulator.

2018-07-23 Thread Mark Brown
On Mon, Jul 23, 2018 at 01:58:26PM -0400, Peter Geis wrote: > SW2 and SW4 use a shared table to provide voltage to the cpu core and > devices on Tegra hardware. > Added this table to the cpcap regulator driver as the first step to > supporting this device on Tegra. This also doesn't apply against

Re: [PATCHv3 2/2] mtd: m25p80: restore the status of SPI flash when exiting

2018-07-23 Thread Brian Norris
Hello, I noticed this got merged, but I wanted to put my 2 cents in here: On Wed, Dec 06, 2017 at 10:53:42AM +0800, Zhiqiang Hou wrote: > From: Hou Zhiqiang > > Restore the status to be compatible with legacy devices. > Take Freescale eSPI boot for example, it copies (in 3 Byte > addressing

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

2018-07-23 Thread Guenter Roeck
On Mon, Jul 23, 2018 at 10:25:10AM -0700, Joe Perches wrote: > On Mon, 2018-07-23 at 10:18 -0700, Dmitry Torokhov wrote: > > On Mon, Jul 23, 2018 at 03:32:00PM +0200, Greg Kroah-Hartman wrote: > > > On Mon, Jul 23, 2018 at 06:49:20PM +0530, dev-harsh1998 wrote: > > > > WARNING: Symbolic

RE: [PATCH V4] mmc: core: improve reasonableness of bus width setting for HS400es

2018-07-23 Thread 方洪杰
> mmc_select_hs400es() calls mmc_select_bus_width() which will continue > to set 4bit transfer mode if fail to set 8bit mode. The bus width > should not be set to 4bit in HS400es. > > When fail to set 8bit mode, need return error directly for HS400es. > > Signed-off-by: Hongjie Fang > --- >

Re: [PATCH v2] mtd/maps: fix solutionengine.c printk format warnings

2018-07-23 Thread Boris Brezillon
On Sun, 22 Jul 2018 16:28:52 -0700 Randy Dunlap wrote: > From: Randy Dunlap > > Fix 2 printk format warnings (this driver is currently only used by > arch/sh/) by using "%pap" instead of "%lx". > (or we could just cast the physical addresses to unsigned int) > > Fixes these build warnings: >

Re: [PATCH 06/15] MIPS: dts: img: pistachio_marduk: Add 6Lowpan node

2018-07-23 Thread Paul Burton
Hi Andreas, On Sun, Jul 22, 2018 at 11:20:01PM +0200, Andreas Färber wrote: > diff --git a/arch/mips/boot/dts/img/pistachio_marduk.dts > b/arch/mips/boot/dts/img/pistachio_marduk.dts > index d723b68084c9..b0b6b534a41f 100644 > --- a/arch/mips/boot/dts/img/pistachio_marduk.dts > +++

[PATCH v2 2/2] PCI: NVMe device specific reset quirk

2018-07-23 Thread Alex Williamson
Take advantage of NVMe devices using a standard interface to quiesce the controller prior to reset, including device specific delays before and after that reset. This resolves several NVMe device assignment scenarios with two different vendors. The Intel DC P3700 controller has been shown to

Re: [PATCH 3/3] microblaze: add endianness options to LDFLAGS instead of LD

2018-07-23 Thread Masahiro Yamada
Hi Michal, Ping? 2018-07-03 10:22 GMT+09:00 Masahiro Yamada : > With the recent syntax extension, Kconfig is now able to evaluate the > compiler / toolchain capability. > > However, accumulating flags to 'LD' is not compatible with the way > it works; 'LD' must be passed to Kconfig to call

Re: [PATCH 1/3] [BUGFIX] tracing: Fix double free of event_trigger_data

2018-07-23 Thread Steven Rostedt
On Sat, 14 Jul 2018 01:27:47 +0900 Masami Hiramatsu wrote: > Fix a double free bug of event_trigger_data caused by > calling unregister_trigger() from register_snapshot_trigger(). > This kicks a kernel BUG if double free checker is enabled > as below; > > kernel BUG at

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