Re: [PATCH 1/2] i2c: sprd: Prevent i2c accesses after suspend is called

2018-04-27 Thread Wolfram Sang
On Mon, Apr 09, 2018 at 02:40:54PM +0800, Baolin Wang wrote: > Add one flag to indicate if the i2c controller has been in suspend state, > which can prevent i2c accesses after i2c controller is suspended following > system suspend. > > Signed-off-by: Baolin Wang Applied to for-current, thanks!

[PATCH v4 03/14] ARM: dts: dra7-mmc-iodelay: Add a new pinctrl group for clk line without pullup

2018-04-27 Thread Kishon Vijay Abraham I
During a short period when the bus voltage is switched from 3.3v to 1.8v, (to enumerate UHS mode), the mmc module is disabled and the mmc IO lines are kept in a state according to the programmed pad mux pull type. According to 4.2.4.2 Timing to Switch Signal Voltage in "SD Specifications Part 1 Ph

Re: [PATCH 2/2] i2c: sprd: Fix the i2c count issue

2018-04-27 Thread Wolfram Sang
On Mon, Apr 09, 2018 at 02:40:55PM +0800, Baolin Wang wrote: > We found the I2C controller count register is unreliable sometimes, > that will cause I2C to lose data. Thus we can read the data count > from 'i2c_dev->count' instead of the I2C controller count register. > > Signed-off-by: Baolin Wan

Re: [PATCH RFC v5] pidns: introduce syscall translate_pid

2018-04-27 Thread Michael Kerrisk (man-pages)
On 04/05/2018 09:02 AM, Konstantin Khlebnikov wrote: > On 05.04.2018 01:29, Eric W. Biederman wrote: >> Nagarathnam Muthusamy writes: >> >>> On 04/04/2018 12:11 PM, Konstantin Khlebnikov wrote: Each process have different pids, one for each pid namespace it belongs. When interaction happ

Re: WARNING in tcp_enter_loss (2)

2018-04-27 Thread syzbot
syzbot has found reproducer for the following crash on upstream commit 0644f186fc9d77bb5bd198369e59fb28927a3692 (Thu Apr 26 23:36:11 2018 +) Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=c5a30

Re: [greybus-dev] [PATCH] staging: greybus: Use gpio_is_valid()

2018-04-27 Thread Alex Elder
On 04/27/2018 05:52 AM, Arvind Yadav wrote: > Replace the manual validity checks for the GPIO with the > gpio_is_valid(). I haven't looked through the code paths very closely, but I think that get_named_gpio() might return -EPROBE_DEFER, which would be something we want to pass to the caller. So

Re: [PATCH v1 1/4] mhi_bus: core: Add support for MHI host interface

2018-04-27 Thread Arnd Bergmann
On Fri, Apr 27, 2018 at 4:23 AM, Sujeev Dias wrote: > diff --git a/Documentation/devicetree/bindings/bus/mhi.txt > b/Documentation/devicetree/bindings/bus/mhi.txt > new file mode 100644 > index 000..ea1b620 > --- /dev/null > +++ b/Documentation/devicetree/bindings/bus/mhi.txt > @@ -0,0 +1,14

[GIT PULL] ARM: SoC fixes for 4.17

2018-04-27 Thread Arnd Bergmann
The following changes since commit 6d08b06e67cd117f6992c46611dfb4ce267cd71e: Linux 4.17-rc2 (2018-04-22 19:20:09 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git tags/armsoc-fixes for you to fetch changes up to 4ea3f05614926fea280b

[GIT PULL] sound fixes for 4.17-rc3

2018-04-27 Thread Takashi Iwai
Linus, please pull sound fixes for v4.17-rc3 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.17-rc3 The topmost commit is 0f925660a7bc49b269c163249a5d06da3a0c7b0a sound fixes for 4.17-rc3 A si

Re: [PATCH v1 0/4] Restore ULPI USB on Tegra20

2018-04-27 Thread Marc Dietrich
Hi Dmitry, Am Freitag, 27. April 2018, 01:58:14 CEST schrieb Dmitry Osipenko: > Hello, > > This series of patches fixes ULPI USB on Tegra20. The original problem > was reported by Marcel Ziswiler, he found that "ulpi-link" clock was > incorrectly set to CDEV2 instead of PLL_P_OUT4. Marcel made a

Re: [PATCH v8 2/4] arm64: tlbflush: Introduce __flush_tlb_kernel_pgtable

2018-04-27 Thread Chintan Pandya
On 4/27/2018 3:59 PM, Catalin Marinas wrote: On Tue, Apr 03, 2018 at 01:30:44PM +0530, Chintan Pandya wrote: Add an interface to invalidate intermediate page tables from TLB for kernel. Signed-off-by: Chintan Pandya --- arch/arm64/include/asm/tlbflush.h | 6 ++ 1 file changed, 6 inser

Re: [PATCH] perf test: Adapt test case record+probe_libc_inet_pton.sh for s390

2018-04-27 Thread Martin Vuille
On 04/27/18 03:55, Thomas-Mich Richter wrote: On 04/26/2018 05:26 PM, Martin Vuille wrote: On 04/26/18 04:09, Thomas-Mich Richter wrote: was different. With you patch it changed from /usr/lib64/libc.so (old) to /usr/lib/debug/lib64/libc-2.26.so.debug (new) Thomas, Can you tell me what 'fi

Re: [PATCH v1 1/4] clk: tegra20: Add DEV1/DEV2 OSC dividers

2018-04-27 Thread Marcel Ziswiler
Hi Dmitry Isn't the CLK_RST_CONTROLLER_MISC_CLK_ENB_0 the other way around e.g. DEV1_OSC_DIV_SEL at bit 23:22 and DEV2_OSC_DIV_SEL at 21:20? On Fri, 2018-04-27 at 02:58 +0300, Dmitry Osipenko wrote: > CDEV1/CDEV2 clocks could have corresponding oscillator clock divider > as > a parent. Add these

Re: [PATCH v7 0/7] clk: meson-axg: Add AO Cloclk and Reset driver

2018-04-27 Thread Yixun Lan
Hi Jerome: On 04/27/2018 05:59 PM, Jerome Brunet wrote: > On Fri, 2018-04-27 at 17:31 +0800, Yixun Lan wrote: >> hi Jerome: >> >> >> On 04/27/18 17:20, Jerome Brunet wrote: >>> On Thu, 2018-04-26 at 16:44 +0800, Yixun Lan wrote: This patch try to add AO clock and Reset driver for Amlogic's

Hello from Lisa

2018-04-27 Thread Lisa Johnson
Hello dear, I am Miss Lisa. I have very important thing to discuss with you please, this information is very vital. Contact me with my private email so we can talk (lisajohnsonsalima...@hotmail.com ) Lisa.

[PATCH v2] inode: debugfs_create_dir uses mode permission from parent

2018-04-27 Thread Thomas Richter
Currently function debugfs_create_dir() creates a new directory in the debugfs (usually mounted /sys/kernel/debug) with permission rwxr-xr-x. This is hard coded. Change this to use the parent directory permission. Output before the patch: root@s8360047 ~]# tree -dp -L 1 /sys/kernel/debug/ /sys/ke

Re: [PATCH v1 4/4] iommu/tegra: gart: Optimize map/unmap

2018-04-27 Thread Robin Murphy
Hi Thierry, On 27/04/18 11:02, Thierry Reding wrote: On Mon, Apr 09, 2018 at 11:07:22PM +0300, Dmitry Osipenko wrote: Currently GART writes one page entry at a time. More optimal would be to aggregate the writes and flush BUS buffer in the end, this gives map/unmap 10-40% (depending on size of

Re: [PATCH RFC] vfio/mdev: delay uevent after initialization complete

2018-04-27 Thread Cornelia Huck
On Wed, 25 Apr 2018 17:42:11 +0200 Greg Kroah-Hartman wrote: > On Wed, Feb 14, 2018 at 06:20:35PM +0100, Cornelia Huck wrote: > > [cc:ing Greg for his opinion on this; retaining quoting for context] > > Ick, just found this in my inbox, sorry for the delay... > > > > > On Tue, 13 Feb 2018 17

Re: [PATCH v5 10/11] vsprintf: WARN() on invalid pointer access

2018-04-27 Thread Petr Mladek
On Thu 2018-04-26 10:28:05, Sergey Senozhatsky wrote: > On (04/25/18 13:12), Petr Mladek wrote: > [..] > > /* > >* This is not a fool-proof test. 99% of the time that this will fault is > >* due to a bad pointer, not one that crosses into bad memory. Just test > > @@ -623,8 +626,12 @@ sta

[tip:locking/core] delayacct: Use raw_spinlocks

2018-04-27 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: 02acc80d19edb0d5684c997b2004ad19f9f5236e Gitweb: https://git.kernel.org/tip/02acc80d19edb0d5684c997b2004ad19f9f5236e Author: Sebastian Andrzej Siewior AuthorDate: Mon, 23 Apr 2018 18:10:23 +0200 Committer: Thomas Gleixner CommitDate: Fri, 27 Apr 2018 14:34:51 +0200 delayacct

[tip:locking/core] stop_machine: Use raw spinlocks

2018-04-27 Thread tip-bot for Thomas Gleixner
Commit-ID: de5b55c1d4e30740009864eb35ce4ed856aac01d Gitweb: https://git.kernel.org/tip/de5b55c1d4e30740009864eb35ce4ed856aac01d Author: Thomas Gleixner AuthorDate: Mon, 23 Apr 2018 21:16:35 +0200 Committer: Thomas Gleixner CommitDate: Fri, 27 Apr 2018 14:34:51 +0200 stop_machine: Use r

Re: [PATCH RFC PoC 0/2] platform: different approach to early platform drivers

2018-04-27 Thread Arnd Bergmann
On Fri, Apr 27, 2018 at 1:53 PM, Bartosz Golaszewski wrote: > 2018-04-27 12:18 GMT+02:00 Arnd Bergmann : >> On Fri, Apr 27, 2018 at 10:57 AM, Bartosz Golaszewski >> wrote: >>> 2018-04-27 9:52 GMT+02:00 Arnd Bergmann : On Fri, Apr 27, 2018 at 4:28 AM, David Lechner wrote: >>> My patch

Re: [PATCH v5 09/11] vsprintf: Prevent crash when dereferencing invalid pointers

2018-04-27 Thread Petr Mladek
On Wed 2018-04-25 18:10:54, Andy Shevchenko wrote: > On Wed, 2018-04-25 at 13:12 +0200, Petr Mladek wrote: > > We already prevent crash when dereferencing some obviously broken > > pointers. But the handling is not consistent. Sometimes we print > > "(null)" > > only for pure NULL pointer, sometime

Re: [PATCH v2 2/2] x86/mm: implement free pmd/pte page interfaces

2018-04-27 Thread j...@8bytes.org
On Fri, Apr 27, 2018 at 05:22:28PM +0530, Chintan Pandya wrote: > I'm bit confused here. Are you pointing to race within ioremap/vmalloc > framework while updating the page table or race during tlb ops. Since > later is arch dependent, I would not comment. But if the race being > discussed here whi

Re: [PATCH v8 07/13] drivers: base cacheinfo: Add support for ACPI based firmware tables

2018-04-27 Thread Sudeep Holla
On 26/04/18 19:57, Jeremy Linton wrote: > Hi, > > On 04/26/2018 06:05 AM, Sudeep Holla wrote: >> >> >> On 26/04/18 00:31, Jeremy Linton wrote: >>> Call ACPI cache parsing routines from base cacheinfo code if ACPI >>> is enable. Also stub out cache_setup_acpi() so that individual >>> architecture

Re: [greybus-dev] [PATCH] staging: greybus: Use gpio_is_valid()

2018-04-27 Thread Arvind Yadav
On Friday 27 April 2018 05:47 PM, Alex Elder wrote: On 04/27/2018 05:52 AM, Arvind Yadav wrote: Replace the manual validity checks for the GPIO with the gpio_is_valid(). I haven't looked through the code paths very closely, but I think that get_named_gpio() might return -EPROBE_DEFER, which w

Re: [PATCH v1 1/4] clk: tegra20: Add DEV1/DEV2 OSC dividers

2018-04-27 Thread Dmitry Osipenko
Hi Marcel, On 27.04.2018 15:33, Ziswiler wrote: > Hi Dmitry > > Isn't the CLK_RST_CONTROLLER_MISC_CLK_ENB_0 the other way around e.g. > DEV1_OSC_DIV_SEL at bit 23:22 and DEV2_OSC_DIV_SEL at 21:20? > > On Fri, 2018-04-27 at 02:58 +0300, Dmitry Osipenko wrote: >> CDEV1/CDEV2 clocks could have cor

Re: [PATCH] drm/stm: ltdc: fix deferred endpoint management

2018-04-27 Thread Philippe CORNU
On 04/25/2018 09:12 AM, Yannick FERTRE wrote: > Hi Philippe, > > Reviewed-by: Yannick Fertré Applied on drm-misc-next. Many thanks, Philippe :-) > > > On 04/17/2018 01:34 PM, Philippe Cornu wrote: >> When a driver related to one of the endpoints is deferred >> due to probe dependencies (i2c

Re: [PATCH] drm/stm: ltdc: add mode_valid()

2018-04-27 Thread Philippe CORNU
On 04/25/2018 09:12 AM, Yannick FERTRE wrote: > Hi Philippe, > > Reviewed-by: Yannick Fertré > Applied on drm-misc-next. Many thanks, Philippe :-) > On 04/17/2018 01:40 PM, Philippe Cornu wrote: >> Add mode_valid() function to filter modes according to available >> pll clock values and "pref

Re: [PATCH] drm/stm: ltdc: fix warnings in ltdc_plane_create()

2018-04-27 Thread Philippe CORNU
On 04/25/2018 09:13 AM, Yannick FERTRE wrote: > Hi Philippe, > > Reviewed-by: Yannick Fertré > Applied on drm-misc-next. Many thanks, Philippe :-) > > On 04/19/2018 03:28 PM, Philippe Cornu wrote: >> "make C=1" returns 2 warnings in ltdc_plane_create() >> ("Using plain integer as NULL point

Re: [PATCH v1 1/4] clk: tegra20: Add DEV1/DEV2 OSC dividers

2018-04-27 Thread Marcel Ziswiler
On Fri, 2018-04-27 at 15:54 +0300, Dmitry Osipenko wrote: > Hi Marcel, > > On 27.04.2018 15:33, Ziswiler wrote: > > Hi Dmitry > > > > Isn't the CLK_RST_CONTROLLER_MISC_CLK_ENB_0 the other way around > > e.g. > > DEV1_OSC_DIV_SEL at bit 23:22 and DEV2_OSC_DIV_SEL at 21:20? > > > > On Fri, 2018-0

Re: [greybus-dev] [PATCH] staging: greybus: Use gpio_is_valid()

2018-04-27 Thread Alex Elder
On 04/27/2018 07:50 AM, Arvind Yadav wrote: > > > On Friday 27 April 2018 05:47 PM, Alex Elder wrote: >> On 04/27/2018 05:52 AM, Arvind Yadav wrote: >>> Replace the manual validity checks for the GPIO with the >>> gpio_is_valid(). >> I haven't looked through the code paths very closely, but I >>

Re: [PATCH v2 net-next 1/2] tcp: add TCP_ZEROCOPY_RECEIVE support for zerocopy receive

2018-04-27 Thread Eric Dumazet
On Fri, Apr 27, 2018 at 1:45 AM kbuild test robot wrote: > Hi Eric, > Thank you for the patch! Yet something to improve: > [auto build test ERROR on net-next/master] > url: https://github.com/0day-ci/linux/commits/Eric-Dumazet/tcp-add-TCP_ZEROCOPY_RECEIVE-support-for-zerocopy-rece

Re: [RFC PATCH 1/3] of: base: Introduce of_alias_check_id() to check alias IDs

2018-04-27 Thread Rob Herring
On Fri, Apr 27, 2018 at 1:10 AM, Michal Simek wrote: > On 27.4.2018 04:39, Rob Herring wrote: >> On Thu, Apr 26, 2018 at 9:08 AM, Michal Simek >> wrote: >>> The function travers the lookup table to check if the request alias >>> id is compatible with the device driver match structure. >>> This f

[PATCH v2 1/2] drm/ttm: Only allocate huge pages with new flag TTM_PAGE_FLAG_TRANSHUGE

2018-04-27 Thread Michel Dänzer
From: Michel Dänzer Previously, TTM would always (with CONFIG_TRANSPARENT_HUGEPAGE enabled) try to allocate huge pages. However, not all drivers can take advantage of huge pages, but they would incur the overhead for allocating and freeing them anyway. Now, drivers which can take advantage of hu

Re: [PATCH v8 04/13] arm64/acpi: Create arch specific cpu to acpi id helper

2018-04-27 Thread Sudeep Holla
On 26/04/18 19:33, Jeremy Linton wrote: > Hi, > > On 04/26/2018 05:27 AM, Sudeep Holla wrote: >> >> >> On 26/04/18 00:31, Jeremy Linton wrote: >>> Its helpful to be able to lookup the acpi_processor_id associated >>> with a logical cpu. Provide an arm64 helper to do this. >>> >> >> As I pointed

Re: [PATCH v3 05/14] locking/qspinlock: Remove unbounded cmpxchg loop from locking slowpath

2018-04-27 Thread Waiman Long
On 04/27/2018 06:16 AM, Will Deacon wrote: > Hi Waiman, > > On Thu, Apr 26, 2018 at 04:16:30PM -0400, Waiman Long wrote: >> On 04/26/2018 06:34 AM, Will Deacon wrote: >>> diff --git a/kernel/locking/qspinlock_paravirt.h >>> b/kernel/locking/qspinlock_paravirt.h >>> index 2711940429f5..2dbad2f25480

[PATCH v2 1/4] drm/panel: simple: Add support for Rocktech RK070ER9427 LCD panel

2018-04-27 Thread Jagan Teki
This adds support for the Rocktech Display Ltd. RK070ER9427 800(RGB)x480 TFT LCD panel, which can be supported by the simple panel driver. Signed-off-by: Jagan Teki --- Changes for v2: - included drm drm panel maintainers .../display/panel/rocktech,rk070er9427.txt | 25

Re: [PATCH v4 2/2] ThunderX2: Add Cavium ThunderX2 SoC UNCORE PMU driver

2018-04-27 Thread Kim Phillips
On Fri, 27 Apr 2018 10:30:27 +0100 Mark Rutland wrote: > Hi Kim, > > On Thu, Apr 26, 2018 at 05:06:24PM -0500, Kim Phillips wrote: > > On Wed, 25 Apr 2018 14:30:47 +0530 > > Ganapatrao Kulkarni wrote: > > > > > +static int thunderx2_uncore_event_init(struct perf_event *event) > > > This PMU d

Re: [PATCH] documentation: core-api: rearrange a few kernel-api chapters and sections

2018-04-27 Thread Matthew Wilcox
On Thu, Apr 26, 2018 at 06:11:02PM -0700, Randy Dunlap wrote: > Rearrange some kernel-api chapters and sections to group them > together better. > > - move Bit Operations from Basic C Library Functions to Basic > Kernel Library Functions (now adjacent to Bitmap Operations since > they are not

[PATCH v4 0/7] Add basic support for emtrion emCON-MX6 modules

2018-04-27 Thread jan.tuerk
From: Jan Tuerk Changes for v4: - re-arrange the Patch-series to match the DT-submitting-patches - Additional patch for the Documentation of the new DT-bindings [PATCH v4 1/7] dt-bindings: display: Document the EDT et* displays in one file. - no change (re-arranged 3/6 => 1/7) [PATCH v4 2

[PATCH v4 1/7] dt-bindings: display: Document the EDT et* displays in one file.

2018-04-27 Thread jan.tuerk
From: Jan Tuerk Document the Emerging Display Technology Corp. (EDT) using the simple-panel binding in one single file. Signed-off-by: Jan Tuerk --- Changes for v4: - re-arrange the Patch-series to match the DT-submitting-patches - Additional patch for the Documentation of the new DT-bindin

[PATCH v4 4/7] ARM: dts: imx: Add an cpu0 label for imx6dl devices.

2018-04-27 Thread jan.tuerk
From: Jan Tuerk Adding the label cpu0 allows the adjustment of cpu-parameters by reference in overlaying dtsi files in the same way as it is possible for imx6q devices. Signed-off-by: Jan Tuerk --- Changes for v4: - re-arrange the Patch-series to match the DT-submitting-patches - Additional

[PATCH v4 6/7] ARM: dts: Add support for emtrion emCON-MX6 series

2018-04-27 Thread jan.tuerk
From: Jan Tuerk This patch adds support for the emtrion GmbH emCON-MX6 modules. They are available with imx.6 Solo, Dual-Lite, Dual and Quad equipped with Memory from 512MB to 2GB (configured by U-Boot). Our default developer-Kit ships with the Avari baseboard and the EDT ETM0700G0BDH6 Display (

[PATCH v4 5/7] dt-bindings: arm: Document emtrion emCON-MX6 bindings

2018-04-27 Thread jan.tuerk
From: Jan Tuerk Document the compatible strings for emtrion emCON-MX6 SoM's. Signed-off-by: Jan Tuerk --- For v4: - separate patch for the emtrion emCON-MX6 DT-bindings Documentation/devicetree/bindings/arm/emtrion.txt | 13 + 1 file changed, 13 insertions(+) create mode 100644

[PATCH v4 7/7] ARM: imx_v6_v7_defconfig: Enable DA0963 PMIC support.

2018-04-27 Thread jan.tuerk
From: Jan Tuerk All recent emtrion modules based on i.mx6 make use of the DA0963. Therefore enable it with the following defaults: - CONFIG_MFD_DA9063=y - CONFIG_REGULATOR_DA9063=y - CONFIG_DA9063_WATCHDOG=m MFD and REGULATOR are built-in to have it at Kernel boot-time. Th

[PATCH v4 3/7] drm/panel: Add support for the EDT ETM0700G0EDH6

2018-04-27 Thread jan.tuerk
From: Jan Tuerk The Emerging Display Technology ETM0700G0EDH6 is the uses the same panel as the ETM0700G0BDH6. It differs in the hardware design for the backlight and the touchscreen i2c interface. As the new display type has different requirements for drive-strengths on the i2c-bus, add an addit

Re: [PATCH] ptp_pch: use helpers function for converting between ns and timespec

2018-04-27 Thread Richard Cochran
On Fri, Apr 27, 2018 at 03:36:18PM +0800, YueHaibing wrote: > use ns_to_timespec64() and timespec64_to_ns() instead of open coding Acked-by: Richard Cochran

[PATCH v4 2/7] drm/panel: Add support for the EDT ETM0700G0BDH6

2018-04-27 Thread jan.tuerk
From: Jan Tuerk The Emerging Display Technology ETM0700G0BDH6 is exactly the same display as the ETM0700G0DH6, exept the pixelclock polarity. Therefore re-use the ETM0700G0DH6 modes. It is used by default on emtrion Avari based development kits. Signed-off-by: Jan Tuerk --- Changes for v4: -

Re: [PATCH 03/61] auxdisplay: simplify getting .drvdata

2018-04-27 Thread Linus Walleij
On Thu, Apr 19, 2018 at 4:05 PM, Wolfram Sang wrote: > We should get drvdata from struct device directly. Going via > platform_device is an unneeded step back and forth. > > Signed-off-by: Wolfram Sang Acked-by: Linus Walleij Sorry for slow reply. Yours, Linus Walleij

Re: [Qemu-devel] [RFC v2 1/2] virtio: add pmem driver

2018-04-27 Thread Stefan Hajnoczi
On Thu, Apr 26, 2018 at 11:44:59AM -0400, Pankaj Gupta wrote: > > > + int err; > > > + > > > + sg_init_one(&sg, buf, sizeof(buf)); > > > + > > > + err = virtqueue_add_outbuf(vpmem->req_vq, &sg, 1, buf, GFP_KERNEL); > > > + > > > + if (err) { > > > + dev_err(&vdev->dev, "failed to send comma

Re: [PATCH] pinctrl: meson-axg: fix the range of aobus bank

2018-04-27 Thread Linus Walleij
On Tue, Apr 17, 2018 at 7:08 PM, Yixun Lan wrote: > The GPIOAO bank is range from GPIOAO_0 to GPIOAO_13. > > Fixes: 83c566806a68 ("pinctrl: meson-axg: Add new pinctrl driver for Meson > AXG SoC") > Reported-by: Xingyu Chen > Signed-off-by: Yixun Lan Patch applied with Kevin's ACK. Yours, Lin

Re: [PATCH v3] rpmsg: qcom_smd: Access APCS through mailbox framework

2018-04-27 Thread Rob Herring
On Thu, Apr 19, 2018 at 06:17:57PM -0700, Bjorn Andersson wrote: > Attempt to acquire the APCS IPC through the mailbox framework and fall > back to the old syscon based approach, to allow us to move away from > using the syscon. > > Reviewed-by: Arun Kumar Neelakantam > Signed-off-by: Bjorn Ander

[PATCH v2]: perf/x86: expose user space frame-pointer value on a sample

2018-04-27 Thread Alexey Budankov
Store user space frame-pointer value (BP register) into Perf trace on a sample for a process so the value becomes available when unwinding call stacks for functions gaining event samples. Test executable for the example below was compiled with frame pointer support enabled: g++ -o futex-fp -f

Re: [PATCH] fasync: Fix deadlock between task-context and interrupt-context kill_fasync()

2018-04-27 Thread Boqun Feng
On Tue, Apr 17, 2018 at 07:01:10AM -0700, Matthew Wilcox wrote: > On Thu, Apr 05, 2018 at 02:58:06PM +0300, Kirill Tkhai wrote: > > I observed the following deadlock between them: > > > > [task 1] [task 2] [task 3] > > kill_fasync()

[PATCH 3/5] timekeeping: Standardize on ktime_get_*() naming

2018-04-27 Thread Arnd Bergmann
The current_kernel_time64, get_monotonic_coarse64, getrawmonotonic64, get_monotonic_boottime64 and timekeeping_clocktai64 interfaces have rather inconsistent naming, and they differ in the calling conventions by passing the output either by reference or as a return value. Rename them to ktime_get_

[PATCH 2/5] timekeeping: Clean up ktime_get_real_ts64

2018-04-27 Thread Arnd Bergmann
In a move to make ktime_get_*() the preferred driver interface into the timekeeping code, sanitizes ktime_get_real_ts64() to be a proper exported symbol rather than an alias for getnstimeofday64(). The internal __getnstimeofday64() is no longer used, so remove that and merge it into ktime_get_real

[PATCH 0/5] timekeeping: API cleanup and extensions

2018-04-27 Thread Arnd Bergmann
Hi Thomas, I've had these patches for a while but never got around to submitting them. I recently rebased them after the boot time removal and now again after the revert. I'd like to see these go into v4.18 as a preparation for a last set of driver conversions to y2038-safe interfaces that I've h

[PATCH 1/5] timekeeping: Remove timespec64 hack

2018-04-27 Thread Arnd Bergmann
At this point, we have converted most of the kernel to use timespec64 consistently in place of timespec, so it seems it's time to make timespec64 the native structure and define timespec in terms of that one on 64-bit architectures. Starting with gcc-5, the compiler can completely optimize away th

[PATCH 4/5] timekeeping: Add ktime_get_coarse_with_offset

2018-04-27 Thread Arnd Bergmann
I have run into a couple of drivers using current_kernel_time() suffering from the y2038 problem, and they could be converted to using ktime_t, but don't have interfaces that skip the nanosecond calculation at the moment. This introduces ktime_get_coarse_with_offset() as a simpler variant of ktime

[PATCH 5/5] timekeeping: Add more coarse clocktai/boottime interfaces

2018-04-27 Thread Arnd Bergmann
The set of APIs we provide has a few holes for coarse times, e.g. we provide ktime_get_coarse_boottime() and ktime_get_boottime_ts64(), but not the combination of the two. This adds four new functions: ktime_get_coarse_boottime_ts64() ktime_get_boottime_seconds() ktime_get_coarse_clocktai_ts64()

Re: [PATCH v2 2/2] x86/mm: implement free pmd/pte page interfaces

2018-04-27 Thread Chintan Pandya
On 4/27/2018 6:18 PM, j...@8bytes.org wrote: On Fri, Apr 27, 2018 at 05:22:28PM +0530, Chintan Pandya wrote: I'm bit confused here. Are you pointing to race within ioremap/vmalloc framework while updating the page table or race during tlb ops. Since later is arch dependent, I would not comment

Re: [PATCH net-next v2 4/7] net: mscc: Add initial Ocelot switch support

2018-04-27 Thread Alexandre Belloni
On 26/04/2018 23:09:15+0200, Andrew Lunn wrote: > > +/* Checks if the net_device instance given to us originate from our > > driver. */ > > +static bool ocelot_netdevice_dev_check(const struct net_device *dev) > > +{ > > + return dev->netdev_ops == &ocelot_port_netdev_ops; > > +} > > This is pr

drivers/platform/x86/dell-smbios-wmi.c:66: undefined reference to `wmidev_evaluate_method'

2018-04-27 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0644f186fc9d77bb5bd198369e59fb28927a3692 commit: 25d47027e1003546bfd8964b4423cb39bc2d53e9 platform/x86: dell-smbios: Link all dell-smbios-* modules together date: 7 weeks ago config: x86_64-randconfig-b0-0

Re: [RFC tip/locking/lockdep v6 01/20] lockdep/Documention: Recursive read lock detection reasoning

2018-04-27 Thread Boqun Feng
(Copy more people) On Wed, Apr 11, 2018 at 09:50:51PM +0800, Boqun Feng wrote: > This patch add the documentation piece for the reasoning of deadlock > detection related to recursive read lock. The following sections are > added: > > * Explain what is a recursive read lock, and what deadlock

Re: [PATCH v2] inode: debugfs_create_dir uses mode permission from parent

2018-04-27 Thread Greg KH
I'm going to add Kees and the kernel-hardning list here, as I'd like their opinions for the patch below. Kees, do you have any problems with this patch? I know you worked on making debugfs more "secure" from non-root users, this should still keep the intial mount permissions all fine, right? Any

[PATCH] tee: check shm references are consistent in offset/size

2018-04-27 Thread Etienne Carriere
This change prevents userland from referencing TEE shared memory outside the area initially allocated by its owner. Prior this change an application could not reference or access memory it did not own but it could reference memory not explicitly allocated by owner. Reported-by: Alexandre Jutras S

[PATCH v2 2/3] ASoC: tas6424: Add support for the mute pin

2018-04-27 Thread Jean-Jacques Hiblot
mute can be connected to GPIO. In that case we have to drive it to the correct value Signed-off-by: Jean-Jacques Hiblot --- .../devicetree/bindings/sound/ti,tas6424.txt | 1 + sound/soc/codecs/tas6424.c | 37 +- 2 files changed, 37 insertions(+)

[PATCH v2 3/3] ASoC: tas6424: Allow disabling auto diagnostics for faster power-on

2018-04-27 Thread Jean-Jacques Hiblot
The TAS6424 incorporates both DC-load and AC-load diagnostics which are used to determine the status of the load. The DC diagnostics runs when any channel is directed to leave the Hi-Z state and enter the MUTE or PLAY state. The DC diagnostics are turned on by default but, if a fast startup without

[PATCH v2 1/3] ASoC: tas6424: Add support for the standby pin

2018-04-27 Thread Jean-Jacques Hiblot
The standby pin can be connected to a GPIO. In that case we have to drive it to the correct values for the TAS6424 to operate properly. Signed-off-by: Jean-Jacques Hiblot --- .../devicetree/bindings/sound/ti,tas6424.txt | 1 + sound/soc/codecs/tas6424.c | 22 ++

[PATCH v2 0/3] ASoc: TAS6424: Add support for mute, standby, and faster power on

2018-04-27 Thread Jean-Jacques Hiblot
mute and standby pins are available on the codec. If they are connected, they should be managed by the driver, instead of relying on gpio hogs or on the initial state of the GPIOs. This series also includes a patch to improve the start-up time of the channels by disabling built-in DC diagnostics.

[PATCH] MAINTAINERS: Update pattern for qcom_scm

2018-04-27 Thread Niklas Cassel
Update pattern for qcom_scm, so that get_maintainer.pl will show the correct maintainers + lists, not only for qcom_scm.c, but also for the files: qcom_scm-32.c, qcom_scm-64.c, qcom_scm.h. Signed-off-by: Niklas Cassel --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH 3.18 11/24] l2tp: check sockaddr length in pppol2tp_connect()

2018-04-27 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Guillaume Nault [ Upstream commit eb1c28c05894a4b1f6b56c5bf072205e64cfa280 ] Check sockaddr_len before dereferencing sp->sa_protocol, to ensure that it actually points to valid data. Fixes:

[PATCH 3.18 10/24] KEYS: DNS: limit the length of option strings

2018-04-27 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers [ Upstream commit 9c438d7a3a52dcc2b9ed095cb87d3a5e83cf7e60 ] Adding a dns_resolver key whose payload contains a very long option name resulted in that string being printed in ful

[PATCH 3.18 15/24] pppoe: check sockaddr length in pppoe_connect()

2018-04-27 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Guillaume Nault [ Upstream commit a49e2f5d5fb141884452ddb428f551b123d436b5 ] We must validate sockaddr_len, otherwise userspace can pass fewer data than we expect and we end up accessing inva

[PATCH 3.18 12/24] tcp: dont read out-of-bounds opsize

2018-04-27 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Jann Horn [ Upstream commit 7e5a206ab686f098367b61aca989f5cdfa8114a3 ] The old code reads the "opsize" variable from out-of-bounds memory (first byte behind the segment) if a broken TCP segme

[PATCH 3.18 00/24] 3.18.107-stable review

2018-04-27 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.18.107 release. There are 24 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sun Apr 29 13:56:20 UTC 2018. Anything recei

[PATCH 3.18 16/24] llc: hold llc_sap before release_sock()

2018-04-27 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang [ Upstream commit f7e43672683b097bb074a8fe7af9bc600a23f231 ] syzbot reported we still access llc->sap in llc_backlog_rcv() after it is freed in llc_sap_remove_socket(): Call Trace:

[PATCH 3.18 13/24] team: avoid adding twice the same option to the event list

2018-04-27 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Abeni [ Upstream commit 4fb0534fb7bbc2346ba7d3a072b538007f4135a5 ] When parsing the options provided by the user space, team_nl_cmd_options_set() insert them in a temporary list to send

[PATCH 3.18 01/24] cifs: do not allow creating sockets except with SMB1 posix exensions

2018-04-27 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Steve French commit 1d0cffa674cfa7d185a302c8c6850fc50b893bed upstream. RHBZ: 1453123 Since at least the 3.10 kernel and likely a lot earlier we have not been able to create unix domain socket

[PATCH 3.18 21/24] llc: delete timers synchronously in llc_sk_free()

2018-04-27 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang [ Upstream commit b905ef9ab90115d001c1658259af4b1c65088779 ] The connection timers of an llc sock could be still flying after we delete them in llc_sk_free(), and even possibly afte

[PATCH 3.18 07/24] mm/filemap.c: fix NULL pointer in page_cache_tree_insert()

2018-04-27 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Matthew Wilcox commit abc1be13fd113ddef5e2d807a466286b864caed3 upstream. f2fs specifies the __GFP_ZERO flag for allocating some of its pages. Unfortunately, the page cache also uses the mappin

[PATCH 4.4 01/50] cifs: do not allow creating sockets except with SMB1 posix exensions

2018-04-27 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Steve French commit 1d0cffa674cfa7d185a302c8c6850fc50b893bed upstream. RHBZ: 1453123 Since at least the 3.10 kernel and likely a lot earlier we have not been able to create unix domain sockets

[PATCH 4.4 07/50] ath9k_hw: check if the chip failed to wake up

2018-04-27 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Felix Fietkau commit a34d0a0da1abae46a5f6ebd06fb0ec484ca099d9 upstream. In an RFC patch, Sven Eckelmann and Simon Wunderlich reported: "QCA 802.11n chips (especially AR9330/AR9340) sometimes e

[PATCH 4.4 18/50] s390: introduce execute-trampolines for branches

2018-04-27 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Martin Schwidefsky [ Upstream commit f19fbd5ed642dc31c809596412dab1ed56f2f156 ] Add CONFIG_EXPOLINE to enable the use of the new -mindirect-branch= and -mfunction_return= compiler options to c

[PATCH 4.4 25/50] s390: add sysfs attributes for spectre

2018-04-27 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Martin Schwidefsky [ Upstream commit d424986f1d6b16079b3231db0314923f4f8deed1 ] Set CONFIG_GENERIC_CPU_VULNERABILITIES and provide the two functions cpu_show_spectre_v1 and cpu_show_spectre_v2

[PATCH 4.4 23/50] s390: add automatic detection of the spectre defense

2018-04-27 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Martin Schwidefsky [ Upstream commit 6e179d64126b909f0b288fa63cdbf07c531e9b1d ] Automatically decide between nobp vs. expolines if the spectre_v2=auto kernel parameter is specified or CONFIG_E

[PATCH 4.4 34/50] team: avoid adding twice the same option to the event list

2018-04-27 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Abeni [ Upstream commit 4fb0534fb7bbc2346ba7d3a072b538007f4135a5 ] When parsing the options provided by the user space, team_nl_cmd_options_set() insert them in a temporary list to send

[PATCH 4.4 15/50] s390/alternative: use a copy of the facility bit mask

2018-04-27 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Martin Schwidefsky [ Upstream commit cf1489984641369611556bf00c48f945c77bcf02 ] To be able to switch off specific CPU alternatives with kernel parameters make a copy of the facility bit mask p

[PATCH 4.4 13/50] s390: scrub registers on kernel entry and KVM exit

2018-04-27 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Martin Schwidefsky [ Upstream commit 7041d28115e91f2144f811ffe8a195c696b1e1d0 ] Clear all user space registers on entry to the kernel and all KVM guest registers on KVM guest exit if the regis

[PATCH 4.4 44/50] tcp: md5: reject TCP_MD5SIG or TCP_MD5SIG_EXT on established sockets

2018-04-27 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 7212303268918b9a203aebeacfdbd83b5e87b20d ] syzbot/KMSAN reported an uninit-value in tcp_parse_options() [1] I believe this was caused by a TCP_MD5SIG being set

[PATCH 4.4 40/50] llc: hold llc_sap before release_sock()

2018-04-27 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang [ Upstream commit f7e43672683b097bb074a8fe7af9bc600a23f231 ] syzbot reported we still access llc->sap in llc_backlog_rcv() after it is freed in llc_sap_remove_socket(): Call Trace:

[PATCH 4.4 09/50] Revert "ath10k: send (re)assoc peer command when NSS changed"

2018-04-27 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Karthikeyan Periyasamy commit 55cc11da69895a680940c1733caabc37be685f5e upstream. This reverts commit 55884c045d31a29cf69db8332d1064a1b61dd159. When Ath10k is in AP mode and an unassociated STA

[PATCH 4.4 11/50] s390: enable CPU alternatives unconditionally

2018-04-27 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Martin Schwidefsky From: Heiko Carstens [ Upstream commit 049a2c2d486e8cc82c5cd79fa479c5b105b109e9 ] Remove the CPU_ALTERNATIVES config option and enable the code unconditionally. The config

[PATCH 4.4 48/50] cdrom: information leak in cdrom_ioctl_media_changed()

2018-04-27 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 9de4ee40547fd315d4a0ed1dd15a2fa3559ad707 upstream. This cast is wrong. "cdi->capacity" is an int and "arg" is an unsigned long. The way the check is written now, if one o

[PATCH 4.9 03/74] drm/vc4: Fix memory leak during BO teardown

2018-04-27 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Daniel J Blueman commit c0db1b677e1d584fab5d7ac76a32e1c0157542e0 upstream. During BO teardown, an indirect list 'uniform_addr_offsets' wasn't being freed leading to leaking many 128B allocation

[PATCH 4.9 08/74] usb: musb: fix enumeration after resume

2018-04-27 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Andreas Kemnade commit 17539f2f4f0b7fa906b508765c8ada07a1e45f52 upstream. On dm3730 there are enumeration problems after resume. Investigation led to the cause that the MUSB_POWER_SOFTCONN bit

[PATCH 4.9 09/74] usb: musb: call pm_runtime_{get,put}_sync before reading vbus registers

2018-04-27 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Merlijn Wajer commit df6b074dbe248d8c43a82131e8fd429e401841a5 upstream. Without pm_runtime_{get,put}_sync calls in place, reading vbus status via /sys causes the following error: Unhandled fau

[PATCH 4.9 10/74] usb: musb: Fix external abort in musb_remove on omap2430

2018-04-27 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Merlijn Wajer commit 94e46a4f2d5eb14059e42f313c098d4854847376 upstream. This fixes an oops on unbind / module unload (on the musb omap2430 platform). musb_remove function now calls musb_platfo

[PATCH 4.9 24/74] r8152: add Linksys USB3GIGV1 id

2018-04-27 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Grant Grundler commit 90841047a01b452cc8c3f9b990698b264143334a upstream. This linksys dongle by default comes up in cdc_ether mode. This patch allows r8152 to claim the device: Bus 002 Devic

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