Re: rtc: isl1208: avoid possible sysfs race

2018-09-24 Thread Denis OSTERLAND
Hi, just for clarification: This changes user-space representation from /sys/class/rtc/rtcN/device/{atrim,dtrim,usr} to /sys/class/rtc/rtcN/{atrim,dtrim,usr} and fixes the "mistake made back in 2006" you mention in https://patchwork.ozlabs.org/patch/881397/ correct? Regards Denis Am Samstag, den

Re: [PATCH 1/2] iio: adc: at91: fix acking DRDY irq on simple conversions

2018-09-24 Thread Eugen Hristev
On 24.09.2018 23:27, Jonathan Cameron wrote: On Mon, 24 Sep 2018 21:00:56 +0100 Jonathan Cameron wrote: On Mon, 24 Sep 2018 09:19:43 +0300 Eugen Hristev wrote: On 22.09.2018 13:31, Jonathan Cameron wrote: On Thu, 20 Sep 2018 15:40:37 +0300 Eugen Hristev wrote: When doing simple

Re: [PATCH] remoteproc: qcom: q6v5: Propagate EPROBE_DEFER

2018-09-24 Thread Sibi Sankar
On 2018-09-20 07:21, Bjorn Andersson wrote: In the case that the interrupts fail to result because of the interrupt-controller not yet being registered the platform_get_irq_byname() call will fail with -EPROBE_DEFER, but passing this into devm_request_threaded_irq() will result in -EINVAL being

Re: [0-Day CI notification] 0-Day CI test service will be unavailable from Sep 30 to Oct 8

2018-09-24 Thread Kalle Valo
Philip Li writes: > Hi all, this is Philip who maintains the 0-Day CI test service. Thanks for > subscribing to the service. We will have site level power down during China > national holiday, so the service will be unavailable from Asia Pacific Time > Sep 30 5PM to Oct 8 5PM. We will recover it

Re: [PATCH TRIVIAL] Punctuation fixes

2018-09-24 Thread Richard Weinberger
Am Dienstag, 25. September 2018, 02:09:20 CEST schrieb Diego Viola: > > Diego, I know you can do better. :-) > > How about running linux-next and hunting down regressions? > > I think we suggested this already on IRC. > > OK. I'll do that after I'm done with the documentation. By the definition o

[PATCH v6 4/7] mm, devm_memremap_pages: Add MEMORY_DEVICE_PRIVATE support

2018-09-24 Thread Dan Williams
In preparation for consolidating all ZONE_DEVICE enabling via devm_memremap_pages(), teach it how to handle the constraints of MEMORY_DEVICE_PRIVATE ranges. Reviewed-by: Jérôme Glisse [jglisse: call move_pfn_range_to_zone for MEMORY_DEVICE_PRIVATE] Acked-by: Christoph Hellwig Reported-by: Logan

[PATCH v6 3/7] mm, devm_memremap_pages: Fix shutdown handling

2018-09-24 Thread Dan Williams
The last step before devm_memremap_pages() returns success is to allocate a release action, devm_memremap_pages_release(), to tear the entire setup down. However, the result from devm_add_action() is not checked. Checking the error from devm_add_action() is not enough. The api currently relies on

[PATCH v6 7/7] mm, hmm: Mark hmm_devmem_{add, add_resource} EXPORT_SYMBOL_GPL

2018-09-24 Thread Dan Williams
The routines hmm_devmem_add(), and hmm_devmem_add_resource() duplicated devm_memremap_pages() and are now simple now wrappers around the core facility to inject a dev_pagemap instance into the global pgmap_radix and hook page-idle events. The devm_memremap_pages() interface is base infrastructure f

Re: [PATCH RESEND] trace_uprobe: support reference counter in fd-based uprobe

2018-09-24 Thread kbuild test robot
Hi Song, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/perf/core] [also build test ERROR on v4.19-rc5 next-20180925] [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/co

[PATCH v6 6/7] mm, hmm: Replace hmm_devmem_pages_create() with devm_memremap_pages()

2018-09-24 Thread Dan Williams
Commit e8d513483300 "memremap: change devm_memremap_pages interface to use struct dev_pagemap" refactored devm_memremap_pages() to allow a dev_pagemap instance to be supplied. Passing in a dev_pagemap interface simplifies the design of pgmap type drivers in that they can rely on container_of() to l

[PATCH v6 0/7] mm: Merge hmm into devm_memremap_pages, mark GPL-only

2018-09-24 Thread Dan Williams
Changes since v5 [1]: * Move the percpu-ref kill function to be passed in via @pgmap (Christoph) * Added Christoph's ack for patches 2 and 4 * Added Jérôme's Reviewed-by for patches 2-6 * Fix MEMORY_DEVICE_PRIVATE support (Jérôme) [1]: https://lkml.org/lkml/2018/9/13/104 --- Hi Andrew, Jérôme h

[PATCH v6 5/7] mm, hmm: Use devm semantics for hmm_devmem_{add, remove}

2018-09-24 Thread Dan Williams
devm semantics arrange for resources to be torn down when device-driver-probe fails or when device-driver-release completes. Similar to devm_memremap_pages() there is no need to support an explicit remove operation when the users properly adhere to devm semantics. Note that devm_kzalloc() automati

[PATCH v6 1/7] mm, devm_memremap_pages: Mark devm_memremap_pages() EXPORT_SYMBOL_GPL

2018-09-24 Thread Dan Williams
devm_memremap_pages() is a facility that can create struct page entries for any arbitrary range and give drivers the ability to subvert core aspects of page management. Specifically the facility is tightly integrated with the kernel's memory hotplug functionality. It injects an altmap argument dee

[PATCH v6 2/7] mm, devm_memremap_pages: Kill mapping "System RAM" support

2018-09-24 Thread Dan Williams
Given the fact that devm_memremap_pages() requires a percpu_ref that is torn down by devm_memremap_pages_release() the current support for mapping RAM is broken. Support for remapping "System RAM" has been broken since the beginning and there is no existing user of this this code path, so just kil

Re: [PATCH] PCI: remove unnecessary check of device_type == pci

2018-09-24 Thread Michal Simek
Hi Lorenzo, On 21.9.2018 11:29, Lorenzo Pieralisi wrote: > On Wed, Aug 29, 2018 at 01:34:40PM -0500, Rob Herring wrote: >> PCI host drivers have already matched on compatible strings, so checking >> device_type is redundant. Also, device_type is considered deprecated for >> FDT though we've still

Re: [PATCH 0/9] AHCI and SATA PHY support for BCM63138

2018-09-24 Thread Kishon Vijay Abraham I
On Friday 21 September 2018 12:49 AM, Florian Fainelli wrote: > On 09/20/2018 12:16 PM, Florian Fainelli wrote: >> Hi Kishon, Tejun, >> >> This patch series adds support for the SATA AHCI and PHY found on the >> ARM-basd BCM63138 DSL SoCs. >> >> It would probably make sense for patches 1-3 to go

[PATCH] pinctrl: generic: Avoid several implicit enum conversions

2018-09-24 Thread Nathan Chancellor
Clang warns when one enumerated type is implicitly converted to another, which happens several times in the pinctrl drivers for a few reasons: * The PCONFDUMP macro, which sets the param member in pin_config_item. * The pinconf_generic_params structure, which is used by drivers to configure thei

[PATCH 2/2] panic fix for making cache device

2018-09-24 Thread Dongbo Cao
when the nbuckets of cache device is smaller than 1024, making cache device will trigger BUG_ON in kernel, add a condition to avoid this. Signed-off-by: Dongbo Cao --- drivers/md/bcache/super.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/md/bcache/super

[PATCH 1/2] split original if-condition code into separate ones

2018-09-24 Thread Dongbo Cao
to make it clearly to debug. Signed-off-by: Dongbo Cao --- drivers/md/bcache/super.c | 81 +++ 1 file changed, 66 insertions(+), 15 deletions(-) diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index fa4058e4..0c0f6d8f 100644 --- a/drivers/m

Re: [LKP] [mm, oom] 6209f6fc62: general_protection_fault:#[##]

2018-09-24 Thread Michal Hocko
On Tue 25-09-18 13:48:20, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: 6209f6fc62835d84c2a92d237588a114e39436ce ("mm, oom: rework mmap_exit > vs. oom_reaper synchronization") > https://github.com/0day-ci/linux > UPDATE-20180911-024633/Tetsuo-Han

Re: [PATCH] ARM: dts: da850-lego-ev3: slow down A/DC as much as possible

2018-09-24 Thread Sekhar Nori
Hi David, On Monday 24 September 2018 07:01 AM, David Lechner wrote: > Due to the electrical design of the A/DC circuits on LEGO MINDSTORMS EV3, > if we are reading analog values as fast as possible (i.e. using DMA to > service the SPI) the A/DC chip will read incorrect values - as much as > 0.1V

Re: [PATCH bpf-next 2/9] bpf: rework cgroup storage pointer passing

2018-09-24 Thread Song Liu
On Fri, Sep 21, 2018 at 10:16 AM Roman Gushchin wrote: > > To simplify the following introduction of per-cpu cgroup storage, > let's rework a bit a mechanism of passing a pointer to a cgroup > storage into the bpf_get_local_storage(). Let's save a pointer > to the corresponding bpf_cgroup_storage

[PATCH] ARM: dts: add omap3-gta04a5one to Makefile

2018-09-24 Thread H. Nikolaus Schaller
We have defined a new DTS and it should be compiled. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index b5bd3de87c33..8cb78264adee 100644 --- a/arch/arm/boot/dts/Make

Re: [PATCH v2 1/2] mm/page_alloc: Fix panic caused by passing debug_guardpage_minorder or kernelcore to command line

2018-09-24 Thread Michal Hocko
On Mon 24-09-18 14:42:17, Andrew Morton wrote: > On Mon, 24 Sep 2018 16:24:08 +0200 Michal Hocko wrote: > > > On Sat 22-09-18 22:53:32, zhe...@windriver.com wrote: > > > From: He Zhe > > > > > > debug_guardpage_minorder_setup and cmdline_parse_kernelcore do not check > > > input argument before

Re: [PATCH v2] remoteproc: q6v5: Add support to vote for rpmh power domains

2018-09-24 Thread Rajendra Nayak
Hi Ulf, On 9/11/2018 5:00 PM, Ulf Hansson wrote: +Viresh On 4 September 2018 at 09:10, Rajendra Nayak wrote: With rpmh ARC resources being modelled as power domains with performance state, we need to proxy vote on these for SDM845. Add support to vote on multiple of them, now that genpd suppo

Re: [patch v2] mm, thp: always specify ineligible vmas as nh in smaps

2018-09-24 Thread Michal Hocko
On Mon 24-09-18 22:43:49, Vlastimil Babka wrote: > On 9/24/18 10:02 PM, Michal Hocko wrote: > > On Mon 24-09-18 21:56:03, Michal Hocko wrote: [...] > >> That being said, I do not object to the patch, I am just trying to > >> understand what is the intended usage for the flag that does try to say >

[LKP] [mm, oom] 6209f6fc62: general_protection_fault:#[##]

2018-09-24 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: 6209f6fc62835d84c2a92d237588a114e39436ce ("mm, oom: rework mmap_exit vs. oom_reaper synchronization") https://github.com/0day-ci/linux UPDATE-20180911-024633/Tetsuo-Handa/mm-oom-Fix-unnecessary-killing-of-additional-processes/20180

Re: [PATCH 3.18 104/105] IB/nes: Fix a compiler warning

2018-09-24 Thread Joe Perches
On Mon, 2018-09-24 at 22:39 +, Sasha Levin wrote: > The reasoning behind it was similar to the "no warnings" reasoning of > upstream: there might be real issues hiding in the sea of "harmless" > warnings, so we want to get rid of all of them to catch real issues. I believe this to be a poor id

Re: [RFC PATCH] selinux: add a fallback to defcontext for native labeling

2018-09-24 Thread Taras Kondratiuk
Quoting Paul Moore (2018-09-24 20:46:57) > On Fri, Sep 21, 2018 at 10:39 AM Stephen Smalley wrote: > > On 09/20/2018 06:59 PM, Taras Kondratiuk wrote: > > > Quoting Stephen Smalley (2018-09-20 07:49:12) > > >> On 09/19/2018 10:41 PM, Taras Kondratiuk wrote: > > >>> Quoting Stephen Smalley (2018-09

linux-next: Tree for Sep 25

2018-09-24 Thread Stephen Rothwell
Hi all, Changes since 20180924: Dropped trees: xarray, ida (temporarily) Non-merge commits (relative to Linus' tree): 5626 6053 files changed, 275592 insertions(+), 120719 deletions(-) I have created today&#x

Re: [PATCH 1/2] phy: zynqmp: Add phy driver for xilinx zynqmp phy core

2018-09-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 29 August 2018 07:37 PM, Anurag Kumar Vulisha wrote: > ZynqMP SoC has a Gigabit Transceiver with four lanes. All the high speed > peripherals such as USB, SATA, PCIE, Display Port and Ethernet SGMII can > rely on any of the four GT lanes for PHY layer. This patch adds driver > for

[PATCH v2 2/2] treewide: use bus_find_device_by_fwnode

2018-09-24 Thread Silesh C V
Use bus_find_device_by_fwnode helper to find the device having a specific firmware node on a bus. --- drivers/hwtracing/coresight/of_coresight.c | 14 -- drivers/i2c/i2c-core-of.c | 9 ++--- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 8 +

[PATCH v2 1/2] Driver core: add bus_find_device_by_fwnode

2018-09-24 Thread Silesh C V
Some drivers need to find the device on a bus having a specific firmware node. Currently, such drivers have their own implementations to do this. Provide a helper similar to bus_find_device_by_name so that each driver does not have to reinvent this. Signed-off-by: Silesh C V --- drivers/base/bus

Re: [PATCH] ARM: dts: gta04: add serial console wakeup irq

2018-09-24 Thread Andreas Kemnade
Hi Tony, On Mon, 24 Sep 2018 15:03:45 -0700 Tony Lindgren wrote: > * Andreas Kemnade [180923 08:12]: > > This enables the possibility to have more aggressive runtime pm > > by providing proper wakeup irq for the serial console. > > Thanks applying to omap-for-v4.20/dt. > > FYI, you can now

[PATCH v4] ARM: dts: dra7: Fix up unaligned access setting for PCIe EP

2018-09-24 Thread Vignesh R
Bit positions of PCIE_SS1_AXI2OCP_LEGACY_MODE_ENABLE and PCIE_SS1_AXI2OCP_LEGACY_MODE_ENABLE in CTRL_CORE_SMA_SW_7 are incorrectly documented in the TRM. In fact, the bit positions are swapped. Update the DT bindings for PCIe EP to reflect the same. Fixes: d23f3839fe97 ("ARM: dts: DRA7: Add pcie1

RE: [PATCH] sdhci: arasan: Add runtime PM support

2018-09-24 Thread Manish Narani
Ping! > -Original Message- > From: Manish Narani [mailto:manish.nar...@xilinx.com] > Sent: Tuesday, September 18, 2018 8:34 PM > To: adrian.hun...@intel.com; Michal Simek ; > ulf.hans...@linaro.org > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; linux- > ker...@vger.

Re: [PATCH] of: unittest: Don't dereference args.np after test errors

2018-09-24 Thread Guenter Roeck
Hi Frank, On 09/24/2018 09:19 PM, Frank Rowand wrote: Hi Guenter, On 09/23/18 09:33, Guenter Roeck wrote: If a devicetree parse function fails, it is quite likely that args.np is invalid. Trying to dereference it will then cause the system to crash. This was seen when trying to run devicetree

Re: [PATCH] of: unittest: Don't dereference args.np after test errors

2018-09-24 Thread Frank Rowand
On 09/24/18 21:19, Frank Rowand wrote: > Hi Guenter, > > On 09/23/18 09:33, Guenter Roeck wrote: >> If a devicetree parse function fails, it is quite likely that args.np >> is invalid. Trying to dereference it will then cause the system to crash. >> >> This was seen when trying to run devicetree u

[0-Day CI notification] 0-Day CI test service will be unavailable from Sep 30 to Oct 8

2018-09-24 Thread Philip Li
Hi all, this is Philip who maintains the 0-Day CI test service. Thanks for subscribing to the service. We will have site level power down during China national holiday, so the service will be unavailable from Asia Pacific Time Sep 30 5PM to Oct 8 5PM. We will recover it as soon as we can. Sorry for

Re: [PATCH] of: unittest: Don't dereference args.np after test errors

2018-09-24 Thread Frank Rowand
Hi Guenter, On 09/23/18 09:33, Guenter Roeck wrote: > If a devicetree parse function fails, it is quite likely that args.np > is invalid. Trying to dereference it will then cause the system to crash. > > This was seen when trying to run devicetree unittests on a g3beige > qemu system. This system

Re: Portable DT Connectors with regard to FPGAs

2018-09-24 Thread David Gibson
On Mon, Sep 24, 2018 at 03:32:44PM -0500, Alan Tull wrote: > My interest here was in having some discussion on whether connectors > are a good match for handling FPGAs. > > The relevant use model is where a user applies a DT overlay targeting > an FPGA region after the kernel has booted. That ove

Re: [PATCH 4.9 111/111] MIPS: VDSO: Drop gic_get_usm_range() usage

2018-09-24 Thread 林上智
Hi, Guenter Roeck 於 2018年9月25日 週二 上午9:36寫道: > > On Mon, Sep 24, 2018 at 01:53:18PM +0200, Greg Kroah-Hartman wrote: > > 4.9-stable review patch. If anyone has any objections, please let me know. > > > > This patch breaks v4.4.y and v4.9.y builds. > It includes asm/mips-cps.h which doesn't exist

Re: [PATCH] sparc64: viohs: Remove VLA usage

2018-09-24 Thread David Miller
From: Kees Cook Date: Mon, 24 Sep 2018 20:17:55 -0700 > On Wed, Sep 5, 2018 at 3:03 PM, Kees Cook wrote: >> In the quest to remove all stack VLA usage from the kernel[1], this >> allocates a fixed size array for the maximum number of cookies and >> adds a runtime sanity check. >> >> [1] https://

Re: [PATCH] sparc64: viohs: Remove VLA usage

2018-09-24 Thread Kees Cook
On Wed, Sep 5, 2018 at 3:03 PM, Kees Cook wrote: > In the quest to remove all stack VLA usage from the kernel[1], this > allocates a fixed size array for the maximum number of cookies and > adds a runtime sanity check. > > [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU

[PATCH 1/2] iio: magnetometer: Add DT support for PNI RM3100

2018-09-24 Thread Song Qiang
PNI RM3100 is a high resolution, large signal immunity magnetometer, composed of 3 single sensors and a processing chip with MagI2C Interface. PNI is not in the vendors' list, so this patch is also adding it. Signed-off-by: Song Qiang --- Changes in v2: - Remove bus specific part in compa

[PATCH 2/2] iio: magnetometer: Add driver support for PNI RM3100

2018-09-24 Thread Song Qiang
PNI RM3100 is a high resolution, large signal immunity magnetometer, composed of 3 single sensors and a processing chip with MagI2C Interface. Following functions are available: - Single-shot measurement from /sys/bus/iio/devices/iio:deviceX/in_magn_{axis}_raw - Triggerd buffer measurement. - Bo

Re: [PATCH 4.18 164/235] pinctrl: pinmux: Return selector to the pinctrl driver

2018-09-24 Thread Dan Rue
On Mon, Sep 24, 2018 at 06:07:10PM -0500, Dan Rue wrote: > On Mon, Sep 24, 2018 at 01:52:30PM +0200, Greg Kroah-Hartman wrote: > > 4.18-stable review patch. If anyone has any objections, please let me know. > > I bisected a boot failure on an x15 (arm) board to this commit on > 4.18.10-rc1. I'm a

Re: [PATCH] IB/mlx4: Avoid implicit enumerated type conversion

2018-09-24 Thread Jason Gunthorpe
On Mon, Sep 24, 2018 at 03:29:38PM -0700, Nick Desaulniers wrote: > On Mon, Sep 24, 2018 at 3:27 PM Nathan Chancellor > wrote: > > > > On Mon, Sep 24, 2018 at 03:24:36PM -0700, Nick Desaulniers wrote: > > > On Mon, Sep 24, 2018 at 12:57 PM Nathan Chancellor > > > wrote: > > > > > > > > Clang warn

Re: [RFC PATCH 0/9] Improve zone lock scalability using Daniel Jordan's list work

2018-09-24 Thread Aaron Lu
On Fri, Sep 21, 2018 at 10:45:36AM -0700, Daniel Jordan wrote: > On Tue, Sep 11, 2018 at 01:36:07PM +0800, Aaron Lu wrote: > > Daniel Jordan and others proposed an innovative technique to make > > multiple threads concurrently use list_del() at any position of the > > list and list_add() at head po

Re: [PATCH 1/5] RISC-V: Build tishift only on 64-bit

2018-09-24 Thread Zong Li
Christoph Hellwig 於 2018年9月21日 週五 下午2:58寫道: > > On Tue, Sep 18, 2018 at 05:19:13PM +0800, Zong Li wrote: > > Only RV64 supports 128 integer size. > > > > Signed-off-by: Zong Li > > This looks fine. Just curious, what do we even need 128-bit integers > for on riscv64? Did you see any issues if y

Re: Code of Conduct: Let's revamp it.

2018-09-24 Thread gratuitouslicensesarerevocable
In your employment contract there exists a provision where you sign over your rights to any and all intellectual property, patents, copyrights developed during your term of employment. Said clause makes it clear that what you've furnished is a work-for-hire and owned by the company or the enti

[PATCH v4 2/3] spi: mediatek: add spi slave for Mediatek MT2712

2018-09-24 Thread Leilk Liu
This patch adds basic spi slave for MT2712. Signed-off-by: Leilk Liu --- drivers/spi/Kconfig| 10 + drivers/spi/Makefile |1 + drivers/spi/spi-slave-mt27xx.c | 554 3 files changed, 565 insertions(+) create mode 100644 driver

[PATCH v4 0/3] Add Mediatek SPI slave driver

2018-09-24 Thread Leilk Liu
>From 7f2423debd91771a1d3a5ca02cd3990f1417bcb8 Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Tue, 25 Sep 2018 10:11:44 +0800 Subject: Subject: [PATCH v4 0/3] Add Mediatek SPI slave driver v4: 1. Fix Mark Brown review comment about kconfig & driver. v3: 1. Fix Rob Herring review comment about bi

[PATCH v4 1/3] spi: mediatek: add bindings for Mediatek MT2712 soc platform

2018-09-24 Thread Leilk Liu
This patch adds a DT binding documentation for the MT2712 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-slave-mt27xx.txt | 32 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt diff --git

[PATCH v4 3/3] arm64: dts: Add spi slave dts

2018-09-24 Thread Leilk Liu
This patch adds MT2712 spi slave into device tree. Signed-off-by: Leilk Liu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 75cc0f7..ee627

Re: [PATCH 3/5] lib: Add umoddi3 and udivmoddi4 of GCC library routines

2018-09-24 Thread Zong Li
Christoph Hellwig 於 2018年9月21日 週五 下午3:00寫道: > > On Tue, Sep 18, 2018 at 05:19:15PM +0800, Zong Li wrote: > > Add umoddi3 and udivmoddi4 support for 32-bit. > > This probably wants a better explanation of why you need them. > > > index 000..69f2d36 > > --- /dev/null > > +++ b/lib/udivmoddi4.c >

[PATCH V2] mm/hugetlb: Add mmap() encodings for 32MB and 512MB page sizes

2018-09-24 Thread Anshuman Khandual
ARM64 architecture also supports 32MB and 512MB HugeTLB page sizes. This just adds mmap() system call argument encoding for them. Signed-off-by: Anshuman Khandual --- Changes in V2: - Updated SHM and MFD definitions per Mike include/uapi/asm-generic/hugetlb_encode.h | 2 ++ include/uapi/linux/

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-24 Thread Andrey Vagin
On Tue, Sep 25, 2018 at 12:02:32AM +0200, Eric W. Biederman wrote: > Andrey Vagin writes: > > > On Fri, Sep 21, 2018 at 02:27:29PM +0200, Eric W. Biederman wrote: > >> Dmitry Safonov writes: > >> > >> > Discussions around time virtualization are there for a long time. > >> > The first attempt t

Re: [PATCH 4.9 111/111] MIPS: VDSO: Drop gic_get_usm_range() usage

2018-09-24 Thread Guenter Roeck
On Mon, Sep 24, 2018 at 01:53:18PM +0200, Greg Kroah-Hartman wrote: > 4.9-stable review patch. If anyone has any objections, please let me know. > This patch breaks v4.4.y and v4.9.y builds. It includes asm/mips-cps.h which doesn't exist in those releases. Building mips:malta_defconfig:smp:init

[PATCH] ASoC: soc-utils: Rename dummy_dma_ops to snd_dummy_ops

2018-09-24 Thread Matthias Kaehlcke
The symbols 'dummy_dma_ops' is declared with different data types by sound/soc/soc-utils.c and arch/arm64/include/asm/dma-mapping.h. This leads to conflicts when soc-utils.c (indirectly) includes dma-mapping.h: sound/soc/soc-utils.c:282:33: error: conflicting types for 'dummy_dma_ops' static con

Re: [PATCH] clocksource/drivers/fttmr010: fix set_next_event handler

2018-09-24 Thread Tao Ren
On 9/24/18, 4:20 PM, "Joel Stanley" wrote: > Whatever method is easiest for you. A patch file or a tarball is fine. > I will then add it to the set of tests I run when testing aspeed > kernels. No problem, Joel. I will share the test code with you offline. Thanks, Tao Ren

Re: [PATCH] rpmsg: core: add support to power domains for devices

2018-09-24 Thread Suman Anna
Hi Srinivas, On 06/15/2018 04:59 AM, Srinivas Kandagatla wrote: > Some of the rpmsg devices need to switch on power domains to communicate > with remote processor. For example on Qualcomm DB820c platform LPASS > power domain needs to switched on for any kind of audio services. > This patch adds th

Re: [PATCH TRIVIAL] Punctuation fixes

2018-09-24 Thread Diego Viola
On Sun, Sep 23, 2018 at 5:59 AM Richard Weinberger wrote: > > On Sun, Sep 23, 2018 at 3:00 AM Miguel Ojeda > wrote: > > > > Hi Diego, > > > > A few things, since it looks like this is your first patch. > > git log... > > > On Sat, Sep 22, 2018 at 5:56 PM, Diego Viola wrote: > > > On Wed, Sep 12,

[PATCH v2] dt-bindings: pinctrl: qcom-pmic-gpio: Add pms405 support

2018-09-24 Thread Bjorn Andersson
From: Vinod Koul Add support for the PMS405 GPIO support to the Qualcomm PMIC GPIO binding. Signed-off-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Changes since v1: - Dropped unnecessary driver update - Updated subject Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt | 2 +

Re: [PATCH v12 1/2] leds: core: Introduce LED pattern trigger

2018-09-24 Thread Bjorn Andersson
On Mon 10 Sep 19:47 PDT 2018, Baolin Wang wrote: [..] > diff --git a/Documentation/ABI/testing/sysfs-class-led-trigger-pattern > b/Documentation/ABI/testing/sysfs-class-led-trigger-pattern [..] > +What:/sys/class/leds//hw_pattern > +Date:September 2018 > +KernelVers

[PATCH v3 0/3] Fix qcom geni i2c DMA handling

2018-09-24 Thread Stephen Boyd
(Numbering is weird because I dropped patch 1 but left numbering the same) The qcom GENI I2C driver fails DMA sometimes when things from request firmware are passed in as the message buffer. This patch series fixes that problem in the first patch and the second patch cleans up the code a little to

[PATCH v3 2/3] i2c: i2c-qcom-geni: Simplify tx/rx functions

2018-09-24 Thread Stephen Boyd
We never really look at the 'ret' local variable in these functions, so let's remove it to make way for shorter and simpler code. Furthermore, we can shorten some lines by adding two local variables for the SE and the message length so that everything fits in 80 columns and testing the 'dma_buf' lo

[PATCH v3 3/3] i2c: i2c-qcom-geni: Simplify irq handler

2018-09-24 Thread Stephen Boyd
We don't need to use goto here, we can just collapse the if statement and goto chain into multiple branches and then combine some duplicate completion calls into one big if statement. Let's do it to clean up code some more. Cc: Karthikeyan Ramasubramanian Cc: Sagar Dharia Cc: Girish Mahadevan C

Re: [PATCH] mm: fix COW faults after mlock()

2018-09-24 Thread Yury Norov
On Tue, Sep 25, 2018 at 12:22:47AM +0300, Kirill A. Shutemov wrote: > External Email > > On Mon, Sep 24, 2018 at 04:08:52PM +0300, Yury Norov wrote: > > After mlock() on newly mmap()ed shared memory I observe page faults. > > > > The problem is that populate_vma_page_range() doesn't set FOLL_WRITE

[PATCH V5 29/30] dt-bindings: timer: gx6605s SOC timer

2018-09-24 Thread Guo Ren
- Dt-bindings doc for gx6605s SOC's system timer. Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- .../bindings/timer/csky,gx6605s-timer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,gx6605s-timer

[PATCH V5 30/30] clocksource: add gx6605s SOC system timer

2018-09-24 Thread Guo Ren
Changelog: - Add COMPILE_TEST in Kconfig - Add License and Copyright - Use timer-of framework - Change name with upstream feedback - Use clksource_mmio framework Signed-off-by: Guo Ren --- drivers/clocksource/Kconfig | 8 ++ drivers/clocksource/Makefile| 1 + drivers/clo

[PATCH V5 27/30] dt-bindings: interrupt-controller: C-SKY APB intc

2018-09-24 Thread Guo Ren
- Dt-bindings doc about C-SKY apb bus interrupt controller. Signed-off-by: Guo Ren --- .../interrupt-controller/csky,apb-intc.txt | 62 ++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/csky,apb-intc.txt

[PATCH V5 26/30] MAINTAINERS: Add csky

2018-09-24 Thread Guo Ren
Add a maintainer information for the csky(C-SKY) architecture. Signed-off-by: Guo Ren --- MAINTAINERS | 16 1 file changed, 16 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d870cb5..6b7c1be 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3211,6 +3211,22 @@ T:

[PATCH V5 28/30] irqchip: add C-SKY APB bus interrupt controller

2018-09-24 Thread Guo Ren
- irq-csky-apb-intc is a simple SOC interrupt controller which is used in a lot of C-SKY CPU SOC products. Changelog: - use "bool ret" instead of "int ret" - add support-pulse-signal in irq-csky-apb-intc.c - change name with upstream feed-back - add INTC_IFR to clear irq-pending - remove

[PATCH V5 25/30] dt-bindings: timer: C-SKY Multi-processor timer

2018-09-24 Thread Guo Ren
- Dt-bingdings doc for C-SKY SMP system setting. Signed-off-by: Guo Ren --- .../devicetree/bindings/timer/csky,mptimer.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,mptimer.txt diff --git a/Documentation/d

[PATCH V5 24/30] clocksource: add C-SKY SMP timer

2018-09-24 Thread Guo Ren
This timer is used by SMP system and use mfcr/mtcr instruction to access the regs. Changelog: - Remove #define CPUHP_AP_CSKY_TIMER_STARTING - Add CPUHP_AP_CSKY_TIMER_STARTING in cpuhotplug.h - Support csky mp timer alpha version. - Just use low-counter with 32bit width as clocksource. - Codin

[PATCH v3 1/2] remoteproc: qcom: Rename Hexagon v5 PAS driver

2018-09-24 Thread Bjorn Andersson
The Hexagon v5 ADSP driver is used for more than only the ADSP and there's an upcoming non-PAS ADSP PIL for SDM845, so rename the driver to qcom_q6v5_pas in order to better suite this. Cc: Rohit kumar Signed-off-by: Bjorn Andersson --- Changes since v2: - Move the rename of qcom_q6v5_pil to the

[PATCH v3 2/2] remoteproc: qcom: Rename Hexagon v5 modem driver

2018-09-24 Thread Bjorn Andersson
The qcom_q6v5_pil implements support for the self-authenticating modem subsystem. With the introduction of other q6v5 based non-TZ based remoteproc driver the current name is cause for confusion, so rename it to be more specific. No functional change. Signed-off-by: Bjorn Andersson --- Chances

[PATCH v3 0/2] remoteproc: qcom: Rename adsp and mss drivers

2018-09-24 Thread Bjorn Andersson
As we're introducing a non-TZ based remoteproc driver for the ADSP in SDM845 the current naming scheme becomes cumbersome. Rename the existing drivers in order to allow for the following: qcom_q6v5_adsp - handle the non-TZ adsp subsystem qcom_q6v5_mss - handles the self-authenticated modem qcom_q6

[PATCH V5 22/30] irqchip: add C-SKY SMP interrupt controller

2018-09-24 Thread Guo Ren
- Irq-csky-mpintc is C-SKY smp system interrupt controller and it could support 16 soft irqs, 16 private irqs, and 992 max common irqs. Changelog: - Move IPI_IRQ into the driver - Remove irq_set_default_host() and use set_ipi_irq_mapping() - Change name with upstream feed-back - Change

Re: [PATCH] crypto: ccp: Remove forward declaration

2018-09-24 Thread Gary R Hook
On 09/24/2018 04:44 PM, Nick Desaulniers wrote: > On Mon, Sep 24, 2018 at 2:27 PM Gary R Hook wrote: >> >> On 09/24/2018 03:24 PM, Nick Desaulniers wrote: >>> On Mon, Sep 24, 2018 at 12:18 PM Gary R Hook wrote: On 09/24/2018 12:26 PM, Nathan Chancellor wrote: > Clang emits a warning

[PATCH V5 23/30] dt-bindings: interrupt-controller: C-SKY SMP intc

2018-09-24 Thread Guo Ren
- Dt-bindings doc about C-SKY Multi-processors interrupt controller. Signed-off-by: Guo Ren --- .../bindings/interrupt-controller/csky,mpintc.txt | 40 ++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/csky,mpint

[PATCH V5 20/30] csky/dma: bugfix dma_sync_for_cpu/device

2018-09-24 Thread Guo Ren
ref: https://lkml.org/lkml/2018/5/18/1068 map for_cpu for_device unmap TO_DEV writeback nonewriteback none TO_CPU invalidate invalidate* invalidate invalidate* BIDIR writeback invalidate writeback invalidat

[PATCH V5 21/30] csky: remove irq_mapping from smp.c

2018-09-24 Thread Guo Ren
- Add irq_mapping return check - Move IPI_IRQ into irq-driver - remove irq_mapping from smp.c to irq-driver - Add set_ipi_irq_mapping api to irq-driver - update asm/smp.h Signed-off-by: Guo Ren --- arch/csky/include/asm/smp.h | 4 +++- arch/csky/kernel/smp.c | 27 +++--

[PATCH V5 19/30] dt-bindings: Add vendor prefix for csky

2018-09-24 Thread Guo Ren
Add csky vendor definition. Signed-off-by: Guo Ren --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 2c3fc51..a728ee3 1

[PATCH V5 18/30] dt-bindings: csky CPU Bindings

2018-09-24 Thread Guo Ren
This patch adds the documentation to describe that how to add cpu nodes in dts for SMP. Signed-off-by: Guo Ren --- Documentation/devicetree/bindings/csky/cpus.txt | 70 + 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/csky/cpus.txt

[PATCH V5 17/30] csky: Misc headers

2018-09-24 Thread Guo Ren
This patch adds csky register definition, byteorder, asm-offsets codes. Signed-off-by: Guo Ren --- arch/csky/abiv1/inc/abi/reg_ops.h | 27 arch/csky/abiv1/inc/abi/regdef.h | 26 +++ arch/csky/abiv2/inc/abi/reg_ops.h | 17 ++ arch/csky/abiv2/inc/abi/regdef.h | 26 ++

[PATCH V5 16/30] csky: SMP support

2018-09-24 Thread Guo Ren
This patch adds boot, ipi, hotplug code for SMP. Signed-off-by: Guo Ren --- arch/csky/include/asm/smp.h | 26 + arch/csky/kernel/smp.c | 234 2 files changed, 260 insertions(+) create mode 100644 arch/csky/include/asm/smp.h create mode 100

[PATCH V5 15/30] csky: Debug and Ptrace GDB

2018-09-24 Thread Guo Ren
This patch adds arch ptrace implementation, stack dump and bug.h. Signed-off-by: Guo Ren --- arch/csky/include/asm/bug.h | 26 +++ arch/csky/include/uapi/asm/ptrace.h | 104 arch/csky/kernel/dumpstack.c| 65 arch/csky/kernel/ptrace.c | 318 ++

[PATCH v2] staging: vc04_services: Update TODO re: arm64

2018-09-24 Thread Aymen Qader
Remove the TODO item to remove manual cache flushing from bulk_receive. This was previously done in this commit: (7e8dbdea) staging: bcm2835-camera: Remove explicit cache flush operations Also remove the unnecessary asm/cacheflush.h header. Signed-off-by: Aymen Qader --- v2: Make commit message

Re: [PATCH TRIVIAL] Punctuation fixes

2018-09-24 Thread Diego Viola
Hi Miguel, On Sat, Sep 22, 2018 at 9:59 PM Miguel Ojeda wrote: > > Hi Diego, > > A few things, since it looks like this is your first patch. > > On Sat, Sep 22, 2018 at 5:56 PM, Diego Viola wrote: > > On Wed, Sep 12, 2018 at 12:54 AM Diego Viola wrote: > >> > >> Signed-off-by: Diego Viola > >>

Re: POSIX violation by writeback error

2018-09-24 Thread Alan Cox
> write() > kernel attempts to write back page and fails > page is marked clean and evicted from the cache > read() > > Now your write is gone and there were no calls between the write and > read. > > The question we still need to answer is this: > > When we attempt to write back some data from

Re: POSIX violation by writeback error

2018-09-24 Thread Alan Cox
> The other thing which you seem to be assuming is that applications > which care about precious data won't use fsync(2). And in general, > it's been fairly well known for decades that if you care about your > data, you have to use fsync(2) or O_DIRECT writes; and you *must* > check the error retu

Re: [PATCH] clocksource/drivers/fttmr010: fix set_next_event handler

2018-09-24 Thread Joel Stanley
On Sat, 22 Sep 2018 at 03:41, Tao Ren wrote: > > On 9/20/18, 8:33 PM, "Joel Stanley" wrote: > > > I gave this a spin on the ast2400. It looked okay, but I was wondering > > if you could share you test case so I can run the same test? > > Thank you Joel for the testing. > Sure I can share the test

Re: POSIX violation by writeback error

2018-09-24 Thread Alan Cox
On Thu, 6 Sep 2018 11:17:18 +0200 Rogier Wolff wrote: > On Thu, Sep 06, 2018 at 12:57:09PM +1000, Dave Chinner wrote: > > On Wed, Sep 05, 2018 at 02:07:46PM +0200, Rogier Wolff wrote: > > > > And this has worked for years because > > > the kernel caches stuff from inodes and data-blocks. If yo

Re: [PATCH 4.18 164/235] pinctrl: pinmux: Return selector to the pinctrl driver

2018-09-24 Thread Dan Rue
On Mon, Sep 24, 2018 at 01:52:30PM +0200, Greg Kroah-Hartman wrote: > 4.18-stable review patch. If anyone has any objections, please let me know. I bisected a boot failure on an x15 (arm) board to this commit on 4.18.10-rc1. I'm also seeing issues on 4.14 and 4.18 with arm64 boards hikey and drag

[PATCH i2c-next v2 1/2] dt-bindings: i2c: aspeed: Add 'idle-wait-timeout-ms' property

2018-09-24 Thread Jae Hyun Yoo
This commit adds 'idle-wait-timeout-ms' property which can be used for bus idle waiting logic in multi-master environment. Signed-off-by: Jae Hyun Yoo --- Documentation/devicetree/bindings/i2c/i2c-aspeed.txt | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documenta

[PATCH i2c-next v2 2/2] i2c: aspeed: Add bus idle waiting logic for multi-master use cases

2018-09-24 Thread Jae Hyun Yoo
In multi-master environment, this driver's master cannot know exactly when peer master sends data to this driver's slave so a case can be happened that this master tries to send data through the master_xfer function but slave data from peer master is still being processed by this driver. To preven

[PATCH i2c-next v2 0/2] i2c: aspeed: Add bus idle waiting logic for multi-master use cases

2018-09-24 Thread Jae Hyun Yoo
In multi-master environment, this driver's master cannot know exactly when peer master sends data to this driver's slave so a case can be happened that this master tries to send data through the master_xfer function but slave data from peer master is still being processed by this driver. To preven

Re: [PATCH] staging: vc04_services: Update TODO re: arm64

2018-09-24 Thread Scott Branden
Hi Aymen On 18-09-24 03:48 PM, Aymen Qader wrote: This patch removes the TODO item to remove manual cache flushing from b Remove the use of "This patch". Please read https://www.kernel.org/doc/html/latest/process/submitting-patches.html "Describe your changes in imperative mood" Also, it lo

  1   2   3   4   5   6   7   8   9   10   >