Re: [PATCH 17/32] staging: gasket: annotate ioctl arg with __user

2018-07-30 Thread Dan Carpenter
On Thu, Jul 19, 2018 at 07:44:53PM -0700, Todd Poynor wrote: > >> @@ -549,7 +549,7 @@ struct gasket_driver_desc { > >>* return -EINVAL. Should return an error status (either -EINVAL or > >>* the error result of the ioctl being handled). > >>*/ > >> - long (*ioctl_handler

Build regressions/improvements in v4.18-rc7

2018-07-30 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.18-rc7[1] compared to v4.17[2]. Summarized: - build errors: +1/-1 - build warnings: +216/-46406 JFYI, when comparing v4.18-rc7[1] to v4.18-rc6[3], the summaries are: - build errors: +0/-1 - build warnings: +72/-62 No

Re: [PATCH v4 1/3] tracing: kprobes: Prohibit probing on notrace function

2018-07-30 Thread Masami Hiramatsu
On Sat, 28 Jul 2018 22:55:27 +0900 Masami Hiramatsu wrote: > Prohibit kprobe-events probing on notrace function. > Since probing on the notrace function can cause recursive > event call. In most case those are just skipped, but > in some case it falls into infinit recursive call. > > This protec

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

2018-07-30 Thread David H. Gutteridge
On Wed, 2018-07-25 at 17:48 +0200, Joerg Roedel wrote: > Hi, > > here are three patches on-top of tip/x86/pti to update the > vmallo_fault() fix and also with another important fix. > > The first two patches remove the WARN_ON_ONCE(in_nmi) from > the vmalloc_fault() function and revert the previo

[PATCH] uio: fix possible circular locking dependency

2018-07-30 Thread xiubli
From: Xiubo Li The call trace: XXX/1910 is trying to acquire lock: (&mm->mmap_sem){++}, at: [] might_fault+0x57/0xb0 but task is already holding lock: (&idev->info_lock){+.+...}, at: [] uio_write+0x46/0x130 [uio] which lock already depends on the new lock. the existing dependency chain (

[PATCH 2/4] aio: add a iocb refcount

2018-07-30 Thread Christoph Hellwig
This is needed to prevent races caused by the way the ->poll API works. To avoid introducing overhead for other users of the iocbs we initialize it to zero and only do refcount operations if it is non-zero in the completion path. Signed-off-by: Christoph Hellwig --- fs/aio.c | 17 +--

[PATCH 3/4] aio: implement IOCB_CMD_POLL

2018-07-30 Thread Christoph Hellwig
Simple one-shot poll through the io_submit() interface. To poll for a file descriptor the application should submit an iocb of type IOCB_CMD_POLL. It will poll the fd for the events specified in the the first 32 bits of the aio_buf field of the iocb. Unlike poll or epoll without EPOLLONESHOT thi

Re: [PATCH RESEND 1/1] x86: tsc: avoid system instability in hibernation

2018-07-30 Thread Rafael J. Wysocki
On Thu, Jul 26, 2018 at 5:56 PM, Eduardo Valentin wrote: > System instability are seen during resume from hibernation when system > is under heavy CPU load. This is due to the lack of update of sched > clock data, Isn't that the actual bug? > and the scheduler would then think that heavy CPU hog

[PATCH 1/4] timerfd: add support for keyed wakeups

2018-07-30 Thread Christoph Hellwig
This prepares timerfd for use with aio poll. Signed-off-by: Christoph Hellwig --- fs/timerfd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/timerfd.c b/fs/timerfd.c index cdad49da3ff7..f6c54fd56645 100644 --- a/fs/timerfd.c +++ b/fs/timerfd.c @@ -66,7 +66,7 @@ sta

aio poll and a new in-kernel poll API V21 (aka 2.0)

2018-07-30 Thread Christoph Hellwig
Hi all, this series adds support for the IOCB_CMD_POLL operation to poll for the readyness of file descriptors using the aio subsystem. The API is based on patches that existed in RHAS2.1 and RHEL3, which means it already is supported by libaio. As our dear leader didn't like the ->poll_mask met

Re: [PATCH v3 0/3] i2c: at91: slave mode support

2018-07-30 Thread Ludovic Desroches
On Sat, Jul 21, 2018 at 12:41:41AM +0200, Wolfram Sang wrote: > > [Ludovic Desroches] > > Changes in v3: > > - rebase (cherry-pick was enough) > > Thanks for the rebase. I wonder, though, I recall to had more > complicated issues. However... > > > - fix checkpatch errors > > - tests: > >-

[PATCH 4/4] aio: allow direct aio poll comletions for keyed wakeups

2018-07-30 Thread Christoph Hellwig
If we get a keyed wakeup for a aio poll waitqueue and wake can acquire the ctx_lock without spinning we can just complete the iocb straight from the wakeup callback to avoid a context switch. Signed-off-by: Christoph Hellwig --- fs/aio.c | 18 -- 1 file changed, 16 insertions(+),

Re: [PATCH 2/2] clk: qcom: Add camera clock controller driver for SDM845

2018-07-30 Thread Amit Nischal
On 2018-07-26 22:52, Stephen Boyd wrote: Quoting Amit Nischal (2018-07-23 04:26:33) diff --git a/drivers/clk/qcom/camcc-sdm845.c b/drivers/clk/qcom/camcc-sdm845.c new file mode 100644 index 000..61e5ec2 --- /dev/null +++ b/drivers/clk/qcom/camcc-sdm845.c @@ -0,0 +1,1736 @@ +// SPDX-License-

Re: linux-next: build warning after merge of the pm tree

2018-07-30 Thread Sakari Ailus
Hi folks, On Mon, Jul 30, 2018 at 12:00:53PM +1000, Stephen Rothwell wrote: > Hi Rafael, > > After merging the pm tree, today's linux-next build (x86_64 allmodconfig) > produced this warning: > > drivers/media/i2c/mt9v111.c: In function 'mt9v111_set_format': > drivers/media/i2c/mt9v111.c:887:15:

Re: [PATCH] ASoC: tegra_alc5632: fix device_node refcounting

2018-07-30 Thread Marc Dietrich
Hello Alexey, AFAICT, this looks right. It seems that *most* of the machine drivers (not only tegra) forget to decrease the refcount. I'm wondering why you didn't sent a series patch to fix them all at once? Reviewed-by: Marc Dietrich Marc On Sat, 28 Jul 2018, Alexey Khoroshilov wrote: t

Re: linux-next: build warning after merge of the pm tree

2018-07-30 Thread jacopo mondi
Hi, On Mon, Jul 30, 2018 at 10:24:45AM +0300, Sakari Ailus wrote: > Hi folks, > > On Mon, Jul 30, 2018 at 12:00:53PM +1000, Stephen Rothwell wrote: > > Hi Rafael, > > > > After merging the pm tree, today's linux-next build (x86_64 allmodconfig) > > produced this warning: > > > > drivers/media/i2c/

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

2018-07-30 Thread Stephen Rothwell
Hi all, On Fri, 27 Jul 2018 13:55:22 +0100 Will Deacon wrote: > > On Fri, Jul 27, 2018 at 08:55:11PM +1000, Stephen Rothwell wrote: > > On Fri, 27 Jul 2018 19:06:47 +1000 Stephen Rothwell > > wrote: > > > > > > On Fri, 27 Jul 2018 19:02:07 +1000 Stephen Rothwell > > > wrote: > > > > > > >

Re: [PATCH 03/16] vfs: don't evict uninitialized inode

2018-07-30 Thread Miklos Szeredi
On Mon, Jul 30, 2018 at 7:09 AM, Amir Goldstein wrote: > On Mon, Jul 30, 2018 at 1:04 AM, Al Viro wrote: >> From: Miklos Szeredi >> >> iput() ends up calling ->evict() on new inode, which is not yet initialized >> by owning fs. So use destroy_inode() instead. >> >> Add to sb->s_inodes list only

Re: [PATCH v8 5/6] regulator: pfuze100-regulator: provide pm_power_off_prepare handler

2018-07-30 Thread Oleksij Rempel
On 27.07.2018 11:32, Robin Gong wrote: > > >> -Original Message- >> From: Oleksij Rempel [mailto:o.rem...@pengutronix.de] >> Sent: 2018年7月26日 17:22 >> To: Shawn Guo ; Mark Brown ; >> Rafael J. Wysocki >> Cc: Oleksij Rempel ; ker...@pengutronix.de; >> devicet...@vger.kernel.org; linux-a

[PATCH 2/2] x86/kvmclock: Mark kvm_get_preset_lpj() as __init

2018-07-30 Thread Dou Liyang
kvm_get_preset_lpj() just be called at kvmclock_init(), So mark it __init as well. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: k...@vger.kernel.org Signed-off-by: Dou Liyang --- arch/x86/kernel/kvmclock.c | 2 +- 1 file changed, 1 inser

[PATCH 0/2] Two cleanup patches

2018-07-30 Thread Dou Liyang
Here are two cleanup patches, When I test the early boot time stamps with tip tree today. Dou Liyang (2): x86/tsc: Avoid a double call if tsc can initialize earlier. x86/kvmclock: Mark kvm_get_preset_lpj() as __init arch/x86/kernel/kvmclock.c | 2 +- arch/x86/kernel/tsc.c | 22

[PATCH 1/2] x86/tsc: Avoid a double call if TSC initializes earlier.

2018-07-30 Thread Dou Liyang
static_branch_enable(&__use_tsc) may be called twice in common case, that is redundant. And there are also some common functions both in tsc_early_init() and tsc_init(). Move them into a separate helper function, only call it once. Also fix comments: -s/authorative/authoritative -s/cyc2ns_init/t

Re: [PATCH v8 2/6] ARM: imx6: register pm_power_off handler if "fsl,pmic-stby-poweroff" is set

2018-07-30 Thread Oleksij Rempel
On 27.07.2018 11:15, Robin Gong wrote: > > >> -Original Message- >> From: Oleksij Rempel [mailto:o.rem...@pengutronix.de] >> Sent: 2018年7月26日 17:22 >> To: Shawn Guo ; Mark Brown ; >> Rafael J. Wysocki >> Cc: Oleksij Rempel ; ker...@pengutronix.de; >> devicet...@vger.kernel.org; linux-a

Re: [PATCH v8 6/6] ARM: dts: imx6: RIoTboard provide standby on power off option

2018-07-30 Thread Oleksij Rempel
On 27.07.2018 11:33, Robin Gong wrote: > > >> -Original Message- >> From: Oleksij Rempel [mailto:o.rem...@pengutronix.de] >> Sent: 2018年7月26日 17:22 >> To: Shawn Guo ; Mark Brown ; >> Rafael J. Wysocki >> Cc: Oleksij Rempel ; ker...@pengutronix.de; >> devicet...@vger.kernel.org; linux-a

[PATCH] x86/apic: Mark parse_mem_block_size as __init

2018-07-30 Thread Dou Liyang
The early_param() is only called during kernel initialization, So Linux marks the functions of it with __init macro to save memory. But it forgot to mark parse_mem_block_size(). So, Make it __init as well. Aslo mark mem_block_size variable __initdata. Signed-off-by: Dou Liyang --- arch/x86/kern

[PATCH] prctl: add PR_[GS]ET_KILLABLE

2018-07-30 Thread Jürg Billeter
PR_SET_KILLABLE clears the SIGNAL_UNKILLABLE flag. This allows CLONE_NEWPID tasks to restore normal signal behavior, opting out of the special signal protection for init processes. This is required for job control in a shell that uses CLONE_NEWPID for child processes. This prctl does not allow se

Re: [PATCH v8 1/6] ARM: imx6q: provide documentation for new fsl,pmic-stby-poweroff property

2018-07-30 Thread Oleksij Rempel
On 27.07.2018 10:58, Robin Gong wrote: > > >> -Original Message- >> From: Lucas Stach [mailto:l.st...@pengutronix.de] >> Sent: 2018年7月27日 16:30 >> To: Robin Gong ; Oleksij Rempel >> ; Shawn Guo ; Mark >> Brown ; Rafael J. Wysocki >> Cc: Mark Rutland ; devicet...@vger.kernel.org; >> Mic

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

2018-07-30 Thread David Hildenbrand
On 26.07.2018 21:50, Andrew Morton wrote: > On Thu, 26 Jul 2018 10:45:54 +0200 David Hildenbrand wrote: > >>> Does each user of PG_balloon check for PG_reserved? If this is the case >>> then yes this would be OK. >>> >> >> I can only spot one user of PageBalloon() at all (fs/proc/page.c) , >> whi

Re: [PATCH 14/16] btrfs: simplify btrfs_iget()

2018-07-30 Thread Nikolay Borisov
[ADDED David Sterba and Linux-btrfs ml to cc. ] On 30.07.2018 01:04, Al Viro wrote: > From: Al Viro > > don't open-code iget_failed(), don't bother with btrfs_free_path(NULL), > move handling of positive return values of btrfs_lookup_inode() from > btrfs_read_locked_inode() to btrfs_iget() and k

Re: [PATCH] ASoC: tegra_alc5632: fix device_node refcounting

2018-07-30 Thread Jon Hunter
On 27/07/18 22:06, Alexey Khoroshilov wrote: > tegra_alc5632_probe() increments reference count of device nodes > with of_parse_phandle(), but there is no code decrementing them > in the driver. > > The patch adds of_node_put() to tegra_alc5632_remove() and > to error handling paths in the probe

Re: [PATCH 4/4] cpufreq: intel_pstate: enable boost for Skylake Xeon

2018-07-30 Thread Eero Tamminen
Hi, On 28.07.2018 17:14, Srinivas Pandruvada wrote: On Fri, 2018-07-27 at 22:34 -0700, Francisco Jerez wrote: Srinivas Pandruvada writes: Enable HWP boost on Skylake server and workstations. Please revert this series, it led to significant energy usage and graphics performance regressions

Re: [PATCH v3 1/4] arm64: dts: allwinner: a64: Add SID node

2018-07-30 Thread Maxime Ripard
On Fri, Jul 27, 2018 at 01:52:02PM +0200, Emmanuel Vadot wrote: > The A64 have a SID controller which consist of EFUSE (starting at 0x200) > and three registers to read/write some of the protected efuses. > > Signed-off-by: Emmanuel Vadot Queued all 4 for 4.20, thanks! Maxime -- Maxime Ripard,

Re: [PATCH v2] pci/aspm: Remove CONFIG_PCIEASPM_DEBUG

2018-07-30 Thread Lukas Wunner
On Fri, Jul 27, 2018 at 03:26:19PM -0500, Bjorn Helgaas wrote: > The question is where those sysfs files should be. Currently they are > associated with the device at the *upstream* end of the link. In the > example above, they're associated with the Root Port: > > /sys/devices/pci:00/

Fwd: [PATCH] x86/apic: fix two slight indenting

2018-07-30 Thread Andy Shevchenko
Restore Cc list (it seems I sent it privately) -- Forwarded message -- From: Andy Shevchenko Date: Fri, Jul 27, 2018 at 1:33 PM Subject: Re: [PATCH] x86/apic: fix two slight indenting To: Yi Wang On Fri, Jul 27, 2018 at 9:15 AM, Yi Wang wrote: > There are two inconsistent inde

[PATCH v2 0/2] Add functions to get optional clocks

2018-07-30 Thread Phil Edworthy
Quite a few drivers get an optional clock, e.g. a clock required to access peripheral's registers that is always enabled on some devices. Phil Edworthy (2): clk: Add of_clk_get_by_name_optional() function clk: Add functions to get optional clocks drivers/clk/clk-devres.c | 18 +++

[PATCH v2 2/2] clk: Add functions to get optional clocks

2018-07-30 Thread Phil Edworthy
Behaves the same as (devm_)clk_get except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns NULL. This makes error checking simpler and allows clk_prepare_enable, etc to be called on the returned reference without additional checks. Signed-off-by: P

[PATCH v2 1/2] clk: Add of_clk_get_by_name_optional() function

2018-07-30 Thread Phil Edworthy
Quite a few drivers get an optional clock, e.g. a clock required to access peripheral's registers that is always enabled on some devices. This function behaves the same as of_clk_get_by_name() except that it will return NULL instead of -ENOENT. This makes error checking for users easier and allows

Re: [PATCH v2 2/2] spi: add SPI controller driver for UniPhier SoC

2018-07-30 Thread Andy Shevchenko
On Mon, Jul 30, 2018 at 8:30 AM, Keiji Hayashibara wrote: > Hello Trent and Andy, >> > > + ckrat = roundup(ckrat, 2); >> > >> > ckrat += ckrat & 1; >> >> Either way, the compiler produces the same code: >> >> add r0, r0, #1 >> bic r0, r0, #1 >> >> I.e., ckrat = (ckrat + 1) & ~1, one "add"

Re: [PATCH] KVM: try __get_user_pages_fast even if not in atomic context

2018-07-30 Thread David Hildenbrand
On 27.07.2018 17:46, Paolo Bonzini wrote: > We are currently cutting hva_to_pfn_fast short if we do not want an > immediate exit, which is represented by !async && !atomic. However, > this is unnecessary, and __get_user_pages_fast is *much* faster > because the regular get_user_pages takes pmd_loc

Re: [PATCH 2/4] mm: proc/pid/smaps: factor out mem stats gathering

2018-07-30 Thread Vlastimil Babka
(moved thread here) On 07/26/2018 06:21 PM, Alexey Dobriyan wrote: > On Wed, Jul 25, 2018 at 08:55:17AM +0200, Vlastimil Babka wrote: >> On 07/24/2018 08:24 PM, Alexey Dobriyan wrote: >>> On Mon, Jul 23, 2018 at 04:55:46PM -0700, a...@linux-foundation.org wrote: The patch titled Sub

Re: [PATCH 2/4] ASoC: tegra: Add a TDM configuration callback

2018-07-30 Thread Mark Brown
On Fri, Jul 27, 2018 at 01:59:29PM +0100, Jorge Sanjuan wrote: > From: Edward Cragg > > Add a callback to configure TDM settings for the Tegra30 > I2S ASoC 'platform' driver. > > Signed-off-by: Ben Dooks > Signed-off-by: Edward Cragg This says it was britten by Edward but there's a signoff fr

Re: [PATCH v5] Staging: octeon-usb: Using defined error codes and applying coding style.

2018-07-30 Thread Greg Kroah-Hartman
On Mon, Jul 30, 2018 at 01:29:36AM +0300, Georgios Tsotsos wrote: > Replaced -1 with defined error code EINVAL > > Signed-off-by: Georgios Tsotsos > --- > v2: Apply coding style to function cvmx_usb_poll_channel > v3: Break down function cvmx_usb_poll_channel > v4: Return defined error code and a

linux-next: build warning after merge of the nfs-anna tree

2018-07-30 Thread Stephen Rothwell
Hi all, After merging the nfs-anna tree, today's linux-next build (powerpc ppc44x_defconfig, sparc defconfig) produced this warning: net/sunrpc/stats.c: In function 'rpc_clnt_show_stats': /home/sfr/next/next/net/sunrpc/stats.c:258:32: warning: excess elements in struct initializer struct rpc_

Re: [PATCH v3 2/2] pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver

2018-07-30 Thread kbuild test robot
Hi Tomer, I love your patch! Yet something to improve: [auto build test ERROR on pinctrl/devel] [also build test ERROR on v4.18-rc7 next-20180727] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

checkpatch: SPDX integration breaks --root

2018-07-30 Thread Charlemagne Lasse
Hi, I am now getting python errors when using --root with checkpatch.pl and not being inside the linux repository. $ ./linux-next/scripts/checkpatch.pl --root=/usr/src/linux-next --strict -f linux-next/Makefile FAIL: /usr/src Traceback (most recent call last): File /usr/src/linux-next/scripts/sp

Re: [PATCH 4/4] mm: proc/pid/smaps_rollup: convert to single value seq_file

2018-07-30 Thread Vlastimil Babka
On 07/26/2018 06:26 PM, Alexey Dobriyan wrote: > On Wed, Jul 25, 2018 at 08:53:53AM +0200, Vlastimil Babka wrote: >> I moved the reply to this thread since the "added to -mm tree" >> notification Alexey replied to in <20180724182908.GD27053@avx2> has >> reduced CC list and is not linked to the patc

Re: [PATCH RESEND 1/1] x86: tsc: avoid system instability in hibernation

2018-07-30 Thread Peter Zijlstra
On Thu, Jul 26, 2018 at 08:56:56AM -0700, Eduardo Valentin wrote: > System instability are seen during resume from hibernation when system > is under heavy CPU load. This is due to the lack of update of sched > clock data Which would suggest you're already running with unstable sched clock. Otherw

Re: [PATCH v2 0/3] add support to non-uniform SFDP SPI NOR flash memories

2018-07-30 Thread Tudor Ambarus
As a side note, the SFDP code increases its size, it would make sense to move all SFDP logic into a spi-nor-sfdp.c file. I'm volunteering to do this after this patch set gets applied. Best, ta

Re: [PATCH v2 1/2] clk: Add of_clk_get_by_name_optional() function

2018-07-30 Thread Geert Uytterhoeven
Hi Phil, On Mon, Jul 30, 2018 at 10:36 AM Phil Edworthy wrote: > Quite a few drivers get an optional clock, e.g. a clock required > to access peripheral's registers that is always enabled on some > devices. > > This function behaves the same as of_clk_get_by_name() except that > it will return NU

Re: [PATCH v3 2/2] clk: meson: add sub MMC clock controller driver

2018-07-30 Thread Jerome Brunet
On Fri, 2018-07-27 at 09:45 -0700, Stephen Boyd wrote: > Quoting Stephen Boyd (2018-07-27 09:41:40) > > Quoting Yixun Lan (2018-07-27 07:52:23) > > > HI Stephen: > > > > > > On 07/26/2018 11:20 PM, Stephen Boyd wrote: > > > > Quoting Yixun Lan (2018-07-12 14:12:44) > > > > > diff --git a/drivers/c

Re: [PATCH 1/4] ASoC: tegra: i2s: Fix typo/broken macro

2018-07-30 Thread Jon Hunter
On 27/07/18 13:59, Jorge Sanjuan wrote: > From: Edward Cragg > > Fix typo in macro TEGRA30_I2S_SLOT_CTRL_TOTAL_SLOTS_MASK. > > Signed-off-by: Edward Cragg > Signed-off-by: Jorge Sanjuan > --- > sound/soc/tegra/tegra30_i2s.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff -

Re: [PATCH v11 3/3] tracing: Centralize preemptirq tracepoints and unify their usage

2018-07-30 Thread Peter Zijlstra
On Thu, Jul 26, 2018 at 04:50:44PM -0700, Joel Fernandes wrote: > One note, I have to check for lockdep recursion in the code that calls > the trace events API and bail out if we're in lockdep recursion > protection to prevent something like the following case: a spin_lock is > taken. Then lockdep_

Re: [PATCH v2] firmware/psci: add support for SYSTEM_RESET2

2018-07-30 Thread Michal Simek
Hi Sudeep, On 26.7.2018 15:29, Sudeep Holla wrote: > Hi Michal, > > Sorry somehow missed this email. > > On 19/07/18 11:47, Michal Simek wrote: >> On 9.7.2018 15:21, Sudeep Holla wrote: > > [...] > >>> >>> I think with efi_reboot, if user execute the command "reboot warm", it >>> will set REBO

Re: [PATCH v11 0/3] tracing: Centralize preemptirq tracepoints and unify their usage

2018-07-30 Thread Peter Zijlstra
Aside from the Changelog nit in #3 this looks good to me. Acked-by: Peter Zijlstra (Intel)

Hi Dear,

2018-07-30 Thread Lisa Williams
Hi Dear, how are you today I hope that everything is OK with you as it is my great pleasure to contact you in having communication with you starting from today, i was just going through the Internet search when i found your email address, I want to make a very new and special friend, so i decid

[LKP] [mm, oom] c1e4c54f9c: BUG:KASAN:null-ptr-deref_in_d

2018-07-30 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-5): commit: c1e4c54f9c750fc3ea4715f5363b92ea4d4efb29 ("mm, oom: reorganize the oom report in dump_header") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master in testcase: boot on test machine: qemu-system-x86_64 -enable-k

linux-next: manual merge of the akpm-current tree with the xen-tip tree

2018-07-30 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: drivers/xen/gntdev.c between commit: 1d3145675538 ("xen/gntdev: Make private routines/structures accessible") from the xen-tip tree and commit: aaefcabe9c25 ("mm, oom: distinguish blockable mode for mmu notifie

Re: [PATCH v2 3/7] staging: rtl8188eu: remove unused rtw_handle_tkip_mic_err()

2018-07-30 Thread Greg KH
On Sun, Jul 29, 2018 at 08:54:43PM +0200, Michael Straube wrote: > The function rtw_handle_tkip_mic_err() is never used, so remove it. > Discovered by cppcheck. That's a bad tool then, as this is used, and the build breaks when this patch is applied :( I've dropped it now. thanks, greg k-h

Re: use the generic dma-noncoherent code for sh V2

2018-07-30 Thread Christoph Hellwig
On Fri, Jul 27, 2018 at 11:20:21AM -0500, Rob Landley wrote: > Speaking of DMA: Which really has nothing to do with the dma mapping code, which also means I can't help you much unfortunately. That being said sh is the last pending of the initial dma-noncoherent conversion, I'd greatly appreciate

Re: [PATCH v2] pinctrl: uniphier: add spi pin-mux settings

2018-07-30 Thread Linus Walleij
On Thu, Jul 19, 2018 at 11:06 AM Keiji Hayashibara wrote: > From: Kunihiko Hayashi > > Add pin-mux settings for spi controller. > > Signed-off-by: Kunihiko Hayashi > Signed-off-by: Keiji Hayashibara > --- > Changes since v1: > - Fix build error of "pinctrl-uniphier-sld8.c". This v2 version

Re: [PATCH v2 01/15] staging:rtl8192u: Remove typedef of struct cmpk_txfb_t - Style

2018-07-30 Thread Greg KH
On Sun, Jul 29, 2018 at 10:07:33PM +0100, John Whitmore wrote: > Remove the typedef of the structure cmpk_txfb_t. This clears the > checkpatch issue with defining new types. > > Additionally the type is renamed from cmpk_txfb_t to cmd_pkt_tx_feedback > removing the '_t' as the typedef has been rem

Re: [PATCH RFC] x86/kvm/lapic: always disable MMIO interface in x2APIC mode

2018-07-30 Thread Vitaly Kuznetsov
Paolo Bonzini writes: > On 27/07/2018 18:48, Jim Mattson wrote: >> On a physical machine, I would expect the default local APIC page to >> fall in the PCI hole, so it would be correct to sink writes and to >> return all ones for reads. Does qemu implement a PCI hole, and does >> this address fall

Re: [BUG BISECT] Ethernet fail on VF50 (OF: Don't set default coherent DMA mask)

2018-07-30 Thread Christoph Hellwig
On Sat, Jul 28, 2018 at 09:58:20AM -0700, Guenter Roeck wrote: > I would call it a serious regression. Also, no longer setting a default > coherent DMA mask is a quite substantial behavioral change, especially > if and since the code worked just fine up to now. > > Crash when booting sam460ex atta

[PATCH] leds: add APU3 dmi information to leds-apu

2018-07-30 Thread Florian Eckert
This driver should also get loaded if this is a APU3 from PC Engines. It has the same pin layout for leds. Signed-off-by: Florian Eckert --- drivers/leds/leds-apu.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/leds/leds-apu.c b/drivers/leds/leds-apu.c index 8c93d68964c

[PATCH v2] Add QCOM camera clock controller driver

2018-07-30 Thread Amit Nischal
Changes in v2: Addressed below review comments - https://lkml.org/lkml/2018/7/23/377 1. Add comment to use clk_rcg2_shared_ops and CLK_SET_RATE_PARENT flag. 2. Replace commas with semicolon for PLL configuration in probe function. Changes in v1: This patch series adds a driver and device tree docu

[PATCH v2] clk: qcom: Add camera clock controller driver for SDM845

2018-07-30 Thread Amit Nischal
Add support for the camera clock controller found on SDM845 based devices. This would allow camera drivers to probe and control their clocks. Signed-off-by: Amit Nischal --- drivers/clk/qcom/Kconfig|8 + drivers/clk/qcom/Makefile |1 + drivers/clk/qcom/camcc-sdm845.c | 1744

[PATCH v2 0/4] usb-audio: Add UAC3 Power Domains

2018-07-30 Thread Jorge Sanjuan
This is what's new in this v2: - Fixes build error reported by kbuild for multiple configs (missing include of linux/slab.h). - Makes function `snd_usb_add_audio_stream_v3` static for now as no one is using it outside sound/usb/stream.c (suggested by kbuild). - Re-organization of patch

[PATCH v2 4/4] ALSA: usb-audio: Operate UAC3 Power Domains in PCM callbacks

2018-07-30 Thread Jorge Sanjuan
Make use of UAC3 Power Domains associated to an Audio Streaming path within the PCM's logic. This means, when there is no audio being transferred (pcm is closed), the host will set the Power Domain associated to that substream to state D1. When audio is being transferred (from hw_params onwards), t

[PATCH v2 3/4] ALSA: usb-audio: Add UAC3 Power Domains to suspend/resume

2018-07-30 Thread Jorge Sanjuan
Set the UAC3 Power Domain state for an Audio Streaming interface to D2 state before suspending the device (usb_driver callback). This lets the device know there is no intention to use any of the Units in the Audio Function and that the host is not going to even listen for wake-up events (interrupts

[PATCH v2 2/4] ALSA: usb-audio: AudioStreaming Power Domain parsing

2018-07-30 Thread Jorge Sanjuan
Power Domains in the UAC3 spec are mainly intended to be associated to an Input or Output Terminal so the host changes the power state of the entire capture or playback path within the topology. This patch adds support for finding Power Domains associated to an Audio Streaming Interface (bTerminal

[PATCH v2 1/4] ALSA: usb-audio: Initial Power Domain support

2018-07-30 Thread Jorge Sanjuan
Thee USB Audio Class 3 (UAC3) introduces Power Domains as a new feature to let a host turn individual parts of an audio function to different power states via USB requests. This lets the device get to know a bit amore about what the host is up to in order to optimize power consumption efficiently.

Re: [PATCH RFC tip/core/rcu] Avoid resched_cpu() when rescheduling the current CPU

2018-07-30 Thread Peter Zijlstra
On Fri, Jul 27, 2018 at 08:49:31AM -0700, Paul E. McKenney wrote: > Hello, Peter, > > It occurred to me that it is wasteful to let resched_cpu() acquire > ->pi_lock when doing something like resched_cpu(smp_processor_id()), rq->lock > and that it would be better to instead use set_tsk_need_resch

RE: [PATCH v2 1/2] clk: Add of_clk_get_by_name_optional() function

2018-07-30 Thread Phil Edworthy
Hi Geert, On 30 July 2018 09:56, Geert Uytterhoeven wrote: > On Mon, Jul 30, 2018 at 10:36 AM Phil Edworthy wrote: > > Quite a few drivers get an optional clock, e.g. a clock required to > > access peripheral's registers that is always enabled on some devices. > > > > This function behaves the sam

Re: [PATCH v2 3/7] staging: rtl8188eu: remove unused rtw_handle_tkip_mic_err()

2018-07-30 Thread Michael Straube
On 07/30/18 11:02, Greg KH wrote: On Sun, Jul 29, 2018 at 08:54:43PM +0200, Michael Straube wrote: The function rtw_handle_tkip_mic_err() is never used, so remove it. Discovered by cppcheck. That's a bad tool then, as this is used, and the build breaks when this patch is applied :( I've dropp

Re: [rt-patch 3/3] arm, KVM: convert vgic_irq.irq_lock to raw_spinlock_t

2018-07-30 Thread Peter Zijlstra
On Sat, Jul 28, 2018 at 11:07:33AM +0200, Mike Galbraith wrote: > > b103cc3f10c0 ("KVM: arm/arm64: Avoid timer save/restore in vcpu entry/exit") > requires vgic_irq.irq_lock be converted to raw_spinlock_t. > > Problem: kvm_preempt_ops.sched_in = kvm_sched_in; >kvm_sched_in() > kvm_arch_

Re: [PATCH 2/4] ASoC: tegra: Add a TDM configuration callback

2018-07-30 Thread Jon Hunter
On 27/07/18 13:59, Jorge Sanjuan wrote: > From: Edward Cragg > > Add a callback to configure TDM settings for the Tegra30 > I2S ASoC 'platform' driver. > > Signed-off-by: Ben Dooks > Signed-off-by: Edward Cragg > [jorge.sanj...@codethink.co.uk: Style fixes] > Signed-off-by: Jorge Sanjuan >

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

2018-07-30 Thread Dominique Martinet
Dominique Martinet wrote on Mon, Jul 23, 2018: > I'll try to get figures for various approaches before the merge window > for 4.19 starts, it's getting closer though... Here's some numbers; with v4.18-rc7 + current test tree (my 9p-next) as a base. For the context, I'm running on VMs that bind t

Re: [alsa-devel] [PATCH 2/4] ASoC: tegra: Add a TDM configuration callback

2018-07-30 Thread Ben Dooks
On Mon, Jul 30, 2018 at 09:49:08AM +0100, Mark Brown wrote: > On Fri, Jul 27, 2018 at 01:59:29PM +0100, Jorge Sanjuan wrote: > > From: Edward Cragg > > > > Add a callback to configure TDM settings for the Tegra30 > > I2S ASoC 'platform' driver. > > > > Signed-off-by: Ben Dooks > > Signed-off-by

Re: new libv4l2 (was Re: [PATCH, libv4l]: Make libv4l2 usable on devices with complex pipeline)

2018-07-30 Thread Mauro Carvalho Chehab
Em Sat, 28 Jul 2018 23:11:10 +0200 Pavel Machek escreveu: > Hi! > > > > > Add support for opening multiple devices in v4l2_open(), and for > > > > mapping controls between devices. > > > > > > > > This is necessary for complex devices, such as Nokia N900. > > > > > > > > Signed-off-by: Pavel M

Re: [PATCH] mm,page_alloc: PF_WQ_WORKER threads must sleep at should_reclaim_retry().

2018-07-30 Thread Michal Hocko
On Sat 28-07-18 00:47:40, Tetsuo Handa wrote: > On 2018/07/26 20:39, Michal Hocko wrote: > > On Thu 26-07-18 20:06:24, Tetsuo Handa wrote: > >> Before applying "an OOM lockup mitigation patch", I want to apply this > >> "another OOM lockup avoidance" patch. > > > > I do not really see why. All the

[PATCH 1/2] net/9p: embed fcall in req to round down buffer allocs

2018-07-30 Thread Dominique Martinet
From: Dominique Martinet 'msize' is often a power of two, or at least page-aligned, so avoiding an overhead of two dozen bytes for each allocation will help the allocator do its work and reduce memory fragmentation. Suggested-by: Matthew Wilcox Signed-off-by: Dominique Martinet --- include/ne

[PATCH v1 1/1] gpio: mmio: add inverted direction get_set io support

2018-07-30 Thread Tomer Maimon
Add get_set_inv_dir and get_set_multiple_inv_dir I/O functions to call the data register when the dirction is input and set register when the direction is output. the functions will linked to the I/O get functions if the user set BGPIOF_INVERTED_REG_DIR flag in the bgpio initialization. Signed-off

[PATCH v1 0/1] gpio: mmio: add get_set inverted direction io support

2018-07-30 Thread Tomer Maimon
When bgpio direction register use dirin and setting BGPIOF_READ_OUTPUT_REG_SET flag, the get_set I/O functions reading the inverted set register of each direction, it means: when direction=in the get_set function read set register. when direction=out the get_set function read dat register. but

Re: [PATCH 1/2] x86/tsc: Avoid a double call if TSC initializes earlier.

2018-07-30 Thread Peter Zijlstra
On Mon, Jul 30, 2018 at 03:54:20PM +0800, Dou Liyang wrote: > static_branch_enable(&__use_tsc) may be called twice in common case, that > is redundant. It is also really not a problem...

[PATCH 2/2] net/9p: add a per-client fcall kmem_cache

2018-07-30 Thread Dominique Martinet
From: Dominique Martinet Having a specific cache for the fcall allocations helps speed up allocations a bit, especially in case of non-"round" msizes. The caches will automatically be merged if there are multiple caches of items with the same size so we do not need to try to share a cache betwee

Re: [PATCH 4/4] ASoC: tegra: i2s: Add support for more than 2 channels

2018-07-30 Thread Jon Hunter
On 27/07/18 13:59, Jorge Sanjuan wrote: > From: Edward Cragg > > The CIF configuration and clock setting is currently hard coded for 2 > channels. Since the hardware is capable of supporting 1-8 channels add > support for reading the channel count from the supplied parameters to > allow for bet

Re: [RFC] dmaengine: Add metadat_ops for dma_async_tx_descriptor

2018-07-30 Thread Peter Ujfalusi
Vinod, On 2018-07-24 14:14, Vinod wrote: Clients must not mix the two way of handling the metadata. The set_len() is intended to tell the DMA driver the client provided metadata size (in MEM_TO_DEV case mostly). MEM_TO_DEV flow on client side: get_ptr() fill in t

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

2018-07-30 Thread David Howells
Gao Xiang wrote: > > sb->s_flags |= MS_RDONLY | MS_NOATIME; This should be using SB_* rather than MS_* for interaction with sb->s_flags. > > drivers/staging/erofs/super.c: In function 'erofs_mount': > > drivers/staging/erofs/super.c:501:10: warning: passing argument 5 of > > 'mount_bdev' mak

Re: [PATCH 4.17 55/66] ACPICA: AML Parser: ignore dispatcher error status during table load

2018-07-30 Thread Rafael J. Wysocki
On 7/27/2018 11:45 AM, Greg Kroah-Hartman wrote: 4.17-stable review patch. If anyone has any objections, please let me know. -- From: Schmauss, Erik commit 73c2a01c52b657f4a0ead6c95f64c5279efbd000 upstream. The dispatcher and the executer process the parse nodes During table

Re: [PATCH 1/2] x86/tsc: Avoid a double call if TSC initializes earlier.

2018-07-30 Thread Dou Liyang
Hi Peter, At 07/30/2018 05:34 PM, Peter Zijlstra wrote: On Mon, Jul 30, 2018 at 03:54:20PM +0800, Dou Liyang wrote: static_branch_enable(&__use_tsc) may be called twice in common case, that is redundant. It is also really not a problem... Yes, right. Just avoid the second useless setting.

Re: [PATCH v2 11/11] mm,sched: conditionally skip lazy TLB mm refcounting

2018-07-30 Thread Peter Zijlstra
On Sun, Jul 29, 2018 at 03:54:52PM -0400, Rik van Riel wrote: > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index c45de46fdf10..11724c9e88b0 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -2691,7 +2691,7 @@ static struct rq *finish_task_switch(struct task_struct >

Re: [LKP] [mm, oom] c1e4c54f9c: BUG:KASAN:null-ptr-deref_in_d

2018-07-30 Thread Michal Hocko
On Mon 30-07-18 17:03:20, kernel test robot wrote: [...] > [9.034310] BUG: KASAN: null-ptr-deref in dump_header+0x10c/0x448 Could you faddr2line on the offset please? > [9.034310] Read of size 8 at addr 09b0 by task swapper/0/1 > [9.034310] > [9.034310] CPU: 0 PID: 1

Re: [LKP] [mm, oom] 063b8b3171: BUG:sleeping_function_called_from_invalid_context_at_arch/x86/mm/fault.c

2018-07-30 Thread Michal Hocko
This seems to be the same issue as http://lkml.kernel.org/r/20180730090320.GD30690@shao2-debian AFAICS. On Mon 30-07-18 17:11:33, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-4.9): > > commit: 063b8b31719dbe80c0f4acd914d10794bfb83f1d ("mm, oom: reorganize the

Re: [PATCH] [RESEND] perf/x86/intel/uncore: Fix the index of PCU.3 Broadwell CPUs

2018-07-30 Thread Ingo Molnar
* Masayoshi Mizuma wrote: > Hi Ingo, > > Is the following Kan's patch ready to merge...? Looks good at first sight - but it was whitespace damaged here so I couldn't apply it. Kan, mind re-sending it properly as a standalone patch, with Masayoshi's Reported-by, Debugged-by and Tested-by t

Re: [PATCH v2 3/7] staging: rtl8188eu: remove unused rtw_handle_tkip_mic_err()

2018-07-30 Thread Michael Straube
On 07/30/18 11:27, Michael Straube wrote: On 07/30/18 11:02, Greg KH wrote: On Sun, Jul 29, 2018 at 08:54:43PM +0200, Michael Straube wrote: The function rtw_handle_tkip_mic_err() is never used, so remove it. Discovered by cppcheck. That's a bad tool then, as this is used, and the build break

[PATCH v4 1/4] ASoC: qcom: dt-bindings: Add sdm845 machine bindings

2018-07-30 Thread Rohit kumar
Add devicetree bindings documentation file for SDM845 sound card. Signed-off-by: Rohit kumar --- .../devicetree/bindings/sound/qcom,sdm845.txt | 80 ++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,sdm845.txt diff --gi

[PATCH v4 3/4] ASoC: qcom: Add support to parse common audio device nodes

2018-07-30 Thread Rohit kumar
This adds support to parse cpu, platform and codec device nodes and add them in dai-links. Also, update apq8096 machine driver to use the common API. Acked-by: Srinivas Kandagatla Signed-off-by: Rohit kumar --- sound/soc/qcom/Makefile | 2 +- sound/soc/qcom/apq8096.c | 111 +-

[PATCH v4 4/4] ASoC: qcom: add sdm845 sound card support

2018-07-30 Thread Rohit kumar
This patch adds sdm845 audio machine driver support. Acked-by: Srinivas Kandagatla Signed-off-by: Rohit kumar --- sound/soc/qcom/Kconfig | 8 ++ sound/soc/qcom/Makefile | 2 + sound/soc/qcom/sdm845.c | 286 3 files changed, 296 insertions(+)

[PATCH v4 2/4] ASoC: dt-bindings: Update dt binding name for apq8096

2018-07-30 Thread Rohit kumar
Remove qcom prefix from machine driver dt bindings of apq8096 SoC. Acked-by: Srinivas Kandagatla Signed-off-by: Rohit kumar --- Documentation/devicetree/bindings/sound/qcom,apq8096.txt | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/

[PATCH v4 0/4] Add support for audio on SDM845 SoC

2018-07-30 Thread Rohit kumar
This provides initial patchset to support audio on Qualcomm Techonologies Inc. SDM845 SoC. Currently, it supports audio playback/capture over Primary MI2S and Quaternary TDM ports. Changes since v3: - Added Module_license in common.c - Merged apq8096.c machine driver change with common api patch -

  1   2   3   4   5   6   7   8   >