Re: [PATCH] pwm: Convert to using %pOF instead of full_name

2017-08-20 Thread Thierry Reding
On Wed, Aug 09, 2017 at 05:12:55PM -0500, Rob Herring wrote: > On Tue, Jul 25, 2017 at 6:38 AM, Thierry Reding > wrote: > > On Tue, Jul 18, 2017 at 04:43:25PM -0500, Rob Herring wrote: > >> Now that we have a custom printf format specifier, convert users of > >> full_name to use %pOF instead. This

Re: [PATCH 069/102] pwm: hibvt: explicitly request exclusive reset control

2017-08-20 Thread Thierry Reding
On Wed, Jul 19, 2017 at 05:26:13PM +0200, Philipp Zabel wrote: > Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting > reset lines") started to transition the reset control request API calls > to explicitly state whether the driver needs exclusive or shared reset > control beha

Re: [PATCH 070/102] pwm: tegra: explicitly request exclusive reset control

2017-08-20 Thread Thierry Reding
On Wed, Jul 19, 2017 at 05:26:14PM +0200, Philipp Zabel wrote: > Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting > reset lines") started to transition the reset control request API calls > to explicitly state whether the driver needs exclusive or shared reset > control beha

[PATCH] binfmt_flat: Delete two error messages for a failed memory allocation in decompress_exec()

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 21 Aug 2017 08:43:50 +0200 Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- fs/binfmt_flat.c | 8 +++- 1 file changed, 3 insertions(+), 5 deleti

Re: [PATCH][RFC v4] PM / Hibernate: Feed the wathdog when creating snapshot

2017-08-20 Thread Michal Hocko
On Sat 19-08-17 18:21:26, Chen Yu wrote: > There is a problem that when counting the pages for creating > the hibernation snapshot will take significant amount of > time, especially on system with large memory. Since the counting > job is performed with irq disabled, this might lead to NMI lockup.

Re: [patch -mm] mm, compaction: persistently skip hugetlbfs pageblocks fix

2017-08-20 Thread Michal Hocko
On Sun 20-08-17 17:36:41, David Rientjes wrote: > Fix build: > > mm/compaction.c: In function ‘isolate_freepages_block’: > mm/compaction.c:469:4: error: implicit declaration of function > ‘pageblock_skip_persistent’ [-Werror=implicit-function-declaration] > if (pageblock_skip_persistent(page,

Re: Do we really need d_weak_revalidate???

2017-08-20 Thread Ian Kent
On 21/08/17 14:23, NeilBrown wrote: > On Fri, Aug 18 2017, Ian Kent wrote: > >> On 18/08/17 13:24, NeilBrown wrote: >>> On Thu, Aug 17 2017, Ian Kent wrote: >>> On 16/08/17 19:34, Jeff Layton wrote: > On Wed, 2017-08-16 at 12:43 +1000, NeilBrown wrote: >> On Mon, Aug 14 2017, Jeff Lay

[PATCH v2] rcar-dmac: initialize all data before registering IRQ handler

2017-08-20 Thread Kuninori Morimoto
From: Kuninori Morimoto Anton Volkov noticed that engine->dev is NULL before of_dma_controller_register() in probe. Thus there might be a NULL pointer dereference in rcar_dmac_chan_start_xfer while accessing chan->chan.device->dev which is equal to (&dmac->engine)->dev. On same reason, same and

Re: [PATCH v2 00/20] Speculative page faults

2017-08-20 Thread Anshuman Khandual
On 08/18/2017 03:34 AM, Laurent Dufour wrote: > This is a port on kernel 4.13 of the work done by Peter Zijlstra to > handle page fault without holding the mm semaphore [1]. > > The idea is to try to handle user space page faults without holding the > mmap_sem. This should allow better concurrency

Re: Do we really need d_weak_revalidate???

2017-08-20 Thread NeilBrown
On Fri, Aug 18 2017, Ian Kent wrote: > On 18/08/17 13:24, NeilBrown wrote: >> On Thu, Aug 17 2017, Ian Kent wrote: >> >>> On 16/08/17 19:34, Jeff Layton wrote: On Wed, 2017-08-16 at 12:43 +1000, NeilBrown wrote: > On Mon, Aug 14 2017, Jeff Layton wrote: > >> On Mon, 2017-08-14 at

Re: [PATCH v14 4/5] mm: support reporting free page blocks

2017-08-20 Thread Michal Hocko
On Fri 18-08-17 20:23:05, Michael S. Tsirkin wrote: > On Thu, Aug 17, 2017 at 11:26:55AM +0800, Wei Wang wrote: [...] > > +void walk_free_mem_block(void *opaque1, > > +unsigned int min_order, > > +void (*visit)(void *opaque2, > > You can just avoid opaque2 c

Re: Possible null pointer dereference in rcar-dmac.ko

2017-08-20 Thread Kuninori Morimoto
Hi Laurent > I don't think this fully fixes the problem, as the rcar_dmac_isr_error() IRQ > handler is still registered before all this. Furthermore, at least some of > the > initialization at the end of rcar_dmac_chan_probe() has to be moved before > the > rcar_dmac_isr_channel() IRQ handle

Re: [PATCH v14 4/5] mm: support reporting free page blocks

2017-08-20 Thread Michal Hocko
On Mon 21-08-17 14:12:47, Wei Wang wrote: > On 08/18/2017 09:46 PM, Michal Hocko wrote: [...] > >>+/** > >>+ * walk_free_mem_block - Walk through the free page blocks in the system > >>+ * @opaque1: the context passed from the caller > >>+ * @min_order: the minimum order of free lists to check > >>

Re: [PATCH v1 2/6] fs: use on-stack-bio if backing device has BDI_CAP_SYNC capability

2017-08-20 Thread Minchan Kim
Hi Jens, On Wed, Aug 16, 2017 at 09:56:12AM -0600, Jens Axboe wrote: > On 08/15/2017 10:48 PM, Minchan Kim wrote: > > Hi Jens, > > > > On Mon, Aug 14, 2017 at 10:17:09AM -0600, Jens Axboe wrote: > >> On 08/14/2017 09:38 AM, Jens Axboe wrote: > >>> On 08/14/2017 09:31 AM, Minchan Kim wrote: >

Re: [PATCH 1/4] pwm: pwm-tiecap: Add TI 66AK2G SoC specific compatible

2017-08-20 Thread Thierry Reding
On Mon, Aug 07, 2017 at 05:19:40PM +0530, Vignesh R wrote: > Add a new compatible string "ti,k2g-ecap" to support PWM ECAP IP of > TI 66AK2G SoC. > > Signed-off-by: Vignesh R > --- > Documentation/devicetree/bindings/pwm/pwm-tiecap.txt | 1 + > 1 file changed, 1 insertion(+) Applied to for-4.14

Re: [PATCH v14 4/5] mm: support reporting free page blocks

2017-08-20 Thread Wei Wang
On 08/18/2017 09:46 PM, Michal Hocko wrote: On Thu 17-08-17 11:26:55, Wei Wang wrote: This patch adds support to walk through the free page blocks in the system and report them via a callback function. Some page blocks may leave the free list after zone->lock is released, so it is the caller's r

Re: [PATCH 1/2] pwm: tiehrpwm: fix runtime pm imbalance at unbind

2017-08-20 Thread Thierry Reding
On Thu, Jul 20, 2017 at 12:48:16PM +0200, Johan Hovold wrote: > Remove unbalanced RPM put at driver unbind which resulted in a negative > usage count. > > Fixes: 19891b20e7c2 ("pwm: pwm-tiehrpwm: PWM driver support for EHRPWM") > Signed-off-by: Johan Hovold > --- > drivers/pwm/pwm-tiehrpwm.c | 1

[PATCH] drm: mxsfb: constify drm_simple_display_pipe_funcs

2017-08-20 Thread Arvind Yadav
drm_simple_display_pipe_funcs are not supposed to change at runtime. All functions working with drm_simple_display_pipe_funcs provided by work with const drm_simple_display_pipe_funcs. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 2

Re: [PATCH] pwm: Kconfig: Enable pwm-tiecap to be built for Keystone

2017-08-20 Thread Thierry Reding
On Wed, Aug 02, 2017 at 11:43:44AM +0530, Vignesh R wrote: > 66AK2G SoC has ECAP subsystem that is used as pwm-backlight provider for > display. Hence, enable pwm-tiecap driver to be built for Keystone > architecture. > > Signed-off-by: Vignesh R > --- > drivers/pwm/Kconfig | 2 +- > 1 file chan

Re: [PATCH 1/3] soc: qcom: smem: Support global partition

2017-08-20 Thread Arun Kumar Neelakantam
On 8/18/2017 6:45 AM, Chris Lew wrote: @@ -782,7 +855,10 @@ static int qcom_smem_probe(struct platform_device *pdev) } version = qcom_smem_get_sbl_version(smem); - if (version >> 16 != SMEM_EXPECTED_VERSION) { + switch (version >> 16) { + case SMEM_GLOBAL_PART_V

[PATCH] iommu/ipmmu-vmsa: Use iommu_device_sysfs_add()/remove()

2017-08-20 Thread Magnus Damm
From: Magnus Damm Extend the driver to make use of iommu_device_sysfs_add()/remove() functions to hook up initial sysfs support. Suggested-by: Joerg Roedel Signed-off-by: Magnus Damm --- Applies on top of next-20170817 drivers/iommu/ipmmu-vmsa.c |6 ++ 1 file changed, 6 insertions(

Re: [PATCH v3 01/13] mpt3sas: Update MPI Header

2017-08-20 Thread Suganath Prabu Subramani
Hi James, we have fixed the sparse warnings associated with this patch set and posting V4 of mpt3sas patches soon. We are also working on sparse error/warnings that existed before this patch set and we ll be posting it separately. Thanks, Suganath Prabu S On Wed, Aug 9, 2017 at 2:48 AM, J Freyens

[PACTH v2] SOC: fsl/guts: Add compatible string for LS1088

2017-08-20 Thread Ashish Kumar
Adding compatible string "ls1088a-dcfg" so that guts driver can be init for ls1088 Signed-off-by: Ashish Kumar Signed-off-by: Amrita Kumari --- drivers/soc/fsl/guts.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/soc/fsl/guts.c b/drivers/soc/fsl/guts.c index 6

Re: [PATCH v3 5/5] perf annotate browser: Circulate percent, total period and samples view

2017-08-20 Thread Taeung Song
On 08/18/2017 11:23 PM, Arnaldo Carvalho de Melo wrote: Em Fri, Aug 18, 2017 at 05:47:08PM +0900, Taeung Song escreveu: With a existing 't' hotkey, support the three view based on percent, total period and number of samples on the annotate TUI browser, circulating them like below: Percent

Re: [PATCH v2] soc: ti: knav: Add a NULL pointer check for kdev in knav_pool_create

2017-08-20 Thread santosh.shilim...@oracle.com
Hi Arnd, On 7/30/17 9:31 PM, Keerthy wrote: knav_pool_create is an exported function. In the event of a call before knav_queue_probe, we encounter a NULL pointer dereference in the following line. Hence return -EPROBE_DEFER to the caller till the kdev pointer is non-NULL. Signed-off-by: Keerthy

Re: [RFC] interrupts DT property for irqdomain hierarchy

2017-08-20 Thread Masahiro Yamada
Hi Rob, 2017-08-11 2:23 GMT+09:00 Rob Herring : > On Thu, Jul 6, 2017 at 4:58 PM, Masahiro Yamada > wrote: >> Hi IRQ experts, DT exports, >> >> >> I have a question about CONFIG_IRQ_DOMAIN_HIERARCHY. >> >> When IRQ domains are hierarchy, >> how can we specify IRQ number re-mapping between the >>

Re: [PATCH v3 4/5] perf annotate browser: Support --show-nr-samples option

2017-08-20 Thread Taeung Song
On 08/18/2017 11:17 PM, Arnaldo Carvalho de Melo wrote: Em Fri, Aug 18, 2017 at 05:47:03PM +0900, Taeung Song escreveu: Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song Ok, now that check for !--stdio is lifted and replaced with: - if (symbol_conf.show_nr_samples && !annot

Re: [PATCH v3 1/5] perf annotate stdio: Support --show-nr-samples option

2017-08-20 Thread Taeung Song
On 08/18/2017 10:33 PM, Arnaldo Carvalho de Melo wrote: Em Fri, Aug 18, 2017 at 05:46:48PM +0900, Taeung Song escreveu: Add --show-nr-samples option to perf-annotate so that it corresponds with perf-report. So, at this point I tried to test it and forgot this was just about --stdio, which co

Re: [virtio-dev] Re: [PATCH v14 5/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ

2017-08-20 Thread Wei Wang
On 08/19/2017 02:10 AM, Michael S. Tsirkin wrote: On Fri, Aug 18, 2017 at 04:36:06PM +0800, Wei Wang wrote: On 08/18/2017 10:28 AM, Michael S. Tsirkin wrote: On Thu, Aug 17, 2017 at 11:26:56AM +0800, Wei Wang wrote: Add a new vq to report hints of guest free pages to the host. Signed-off-by:

Re: [PATCH v14 5/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ

2017-08-20 Thread Wei Wang
On 08/19/2017 02:26 AM, Michael S. Tsirkin wrote: On Fri, Aug 18, 2017 at 04:41:41PM +0800, Wei Wang wrote: On 08/18/2017 10:13 AM, Michael S. Tsirkin wrote: On Thu, Aug 17, 2017 at 11:26:56AM +0800, Wei Wang wrote: Add a new vq to report hints of guest free pages to the host. Please add some

[PATCH] staging: greybus: audio: constify snd_soc_dai_ops structures

2017-08-20 Thread Arvind Yadav
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/staging/greybus/audio_codec.c | 2 +- 1 file changed, 1 insertion(+), 1

[GIT] Networking

2017-08-20 Thread David Miller
1) Fix IGMP handling wrt VRF, from David Ahern. 2) Fix timer access to freed object in dccp, from Eric Dumazet. 3) Use kmalloc_array() in ptr_ring to avoid overflow cases which are triggerable by userspace. Also from Eric Dumazet. 4) Fix infinite loop in unmapping cleanup of nfp driver, fro

Re: [Patch v2 01/19] CIFS: Add RDMA mount option

2017-08-20 Thread Leon Romanovsky
On Sun, Aug 20, 2017 at 12:04:25PM -0700, Long Li wrote: > From: Long Li > > Add "rdma" to CIFS mount option, which tells CIFS this is for connecting to a > SMB server over SMBDirect. Add checks to validate this feature is only used > on SMB 3.X dialects. > > To connect to SMBDirect, use "mount.

Re: [PATCH kernel] PCI: Disable IOV before pcibios_sriov_disable()

2017-08-20 Thread Alexey Kardashevskiy
On 19/08/17 01:27, Bjorn Helgaas wrote: > On Fri, Aug 18, 2017 at 08:05:42AM +1000, Alexey Kardashevskiy wrote: >> On 11/08/17 18:19, Alexey Kardashevskiy wrote: >>> From: Gavin Shan >>> >>> The PowerNV platform is the only user of pcibios_sriov_disable(). >>> The IOV BAR could be shifted by pci_i

Re: [PATCH] tpm/tpm_crb: Access locality for non-ACPI and non-SMC start method

2017-08-20 Thread Jiandi An
On 08/19/2017 12:05 PM, Jarkko Sakkinen wrote: On Thu, Aug 17, 2017 at 11:15:36PM -0500, Jiandi An wrote: For ARM64, the locality is handled by Trust Zone in FW. The layout does not have crb_regs_head. It is hitting the following line. dev_warn(dev, FW_BUG "Bad ACPI memory layout"); Current

[PATCH v4 0/3] Add i2c dt-binding and compatible for Mediatek MT7622 SoC

2017-08-20 Thread Jun Gao
This patch series based on v4.13-rc1, include i2c binding file information formats modification, MT7622 i2c dt-binding and compatible. changes since v3: - Split the formats modification into another patch changes since v2: - Remove all the length settings from mt7622_i2c_quirks changes since v1:

[PATCH v4 1/3] dt-bindings: i2c: modify information formats

2017-08-20 Thread Jun Gao
From: Jun Gao Use common name MediaTek and modify the compatible information formats of all SoCs to the same. Signed-off-by: Jun Gao --- Documentation/devicetree/bindings/i2c/i2c-mtk.txt | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree

[PATCH v4 3/3] i2c: mediatek: Add i2c compatible for MediaTek MT7622

2017-08-20 Thread Jun Gao
From: Jun Gao Add i2c compatible for MT7622. Compare to MT8173 i2c controller, MT7622 limits message numbers to 255, and does not support 4GB DMA mode. Signed-off-by: Jun Gao Reviewed-by: Yingjoe Chen --- drivers/i2c/busses/i2c-mt65xx.c | 14 ++ 1 file changed, 14 insertions(+) d

[PATCH v4 2/3] dt-bindings: i2c: Add MediaTek MT7622 i2c binding

2017-08-20 Thread Jun Gao
From: Jun Gao Add MT7622 i2c binding to binding file. Compare to MT8173 i2c controller, MT7622 limits message numbers to 255, and does not support 4GB DMA mode. Signed-off-by: Jun Gao --- Documentation/devicetree/bindings/i2c/i2c-mtk.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Docu

Re: special handle of scripts/kconfig/zconf.tab.o

2017-08-20 Thread Cao jin
Hi, Thank you both for those valuable info. On 08/19/2017 08:42 PM, Masahiro Yamada wrote: > Hi. > (+CC Sam) > > 2017-08-15 20:02 GMT+09:00 Cao jin : >> Masahiro-san, >> >> I have a question about make *config. In scripts/kconfig/Makefile, there >> is following statement: >> >> $(obj)/zconf.tab

RE: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries

2017-08-20 Thread Wangkai (Kevin,C)
> -Original Message- > From: Waiman Long [mailto:long...@redhat.com] > Sent: Friday, August 18, 2017 10:10 PM > To: Wangkai (Kevin,C); Alexander Viro; Jonathan Corbet > Cc: linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; > linux-fsde...@vger.kernel.org; Paul E. McKenney; Andrew M

Re: [PATCH 0/3] MIPS,bpf: Improvements for MIPS eBPF JIT

2017-08-20 Thread David Miller
From: David Daney Date: Fri, 18 Aug 2017 16:40:30 -0700 > I suggest that the whole thing go via the BPF/net-next path as there > are dependencies on code that is not yet merged to Linus' tree. What kind of dependency? On networking or MIPS changes? If the dependency is on MIPS changes, then if

Re: [PATCH] net: dsa: mv88e6xxx: make irq_chip const

2017-08-20 Thread David Miller
From: Bhumika Goyal Date: Sat, 19 Aug 2017 16:25:52 +0530 > Make this const as it is only used in a copy operation. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal Applied to net-next, thanks.

Re: [PATCH v6 2/2] PCI: iproc: add device shutdown for PCI RC

2017-08-20 Thread Oza Oza
On Mon, Aug 21, 2017 at 2:55 AM, Bjorn Helgaas wrote: > On Sun, Aug 20, 2017 at 09:06:51AM +0530, Oza Oza wrote: >> On Sun, Aug 20, 2017 at 2:34 AM, Bjorn Helgaas wrote: >> > On Fri, Aug 04, 2017 at 09:18:16PM +0530, Oza Pawandeep wrote: >> >> PERST must be asserted around ~500ms before the reboo

[PATCH v2] kselftest: exec: make exec test output conform to TAP13

2017-08-20 Thread Paul Elder
Convert exec test output to TAP13 format, using the ksft framework. Signed-off-by: Paul Elder --- Changes from v1: Fixed a couple coding style errors and changed a forgotten printf() to ksft_print_msg() tools/testing/selftests/exec/execveat.c | 151 ++-- 1 file chan

Re: [PATCH v2] net: ibm: emac: Fix some error handling path in 'emac_probe()'

2017-08-20 Thread David Miller
From: Christophe JAILLET Date: Sun, 20 Aug 2017 06:35:00 +0200 > If 'irq_of_parse_and_map()' or 'of_address_to_resource()' fail, 'err' is > known to be 0 at this point. > So return -ENODEV instead in the first case and use 'of_iomap()' instead of > the equivalent 'of_address_to_resource()/ioremap

Re: [PATCH] switchdev: documentation: minor typo fixes

2017-08-20 Thread David Miller
From: Chris Packham Date: Mon, 21 Aug 2017 08:52:54 +1200 > Two typos in switchdev.txt > > Signed-off-by: Chris Packham Applied.

Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X table

2017-08-20 Thread Alexey Kardashevskiy
Folks, Ok, people did talk, exchanged ideas, lovely :) What happens now? Do I repost this or go back to PCI bus flags or something else? Thanks. On 14/08/17 19:45, Alexey Kardashevskiy wrote: > Folks, > > Is there anything to change besides those compiler errors and David's > comment in 5/5? O

Re: [PATCH v2 5/5] thermal: Add Tegra BPMP thermal sensor driver

2017-08-20 Thread Wei Ni
On Friday, August 11, 2017 10:57 AM, Zhang Rui wrote: > On Mon, 2017-07-24 at 19:29 +0300, Mikko Perttunen wrote: >> On Tegra186, the BPMP (Boot and Power Management Processor) exposes >> an >> interface to thermal sensors on the system-on-chip. This driver >> implements access to the interface.

Re: [GIT PULL] tpmdd updates for Linux 4.14

2017-08-20 Thread James Morris
On Sat, 19 Aug 2017, Jarkko Sakkinen wrote: > Hi James, > > Not much this time except a few fixes. > > /Jarkko > > The following changes since commit 76e22e212a850bbd16cf49f9c586d4635507e0b5: > > apparmor: fix incorrect type assignment when freeing proxies (2017-08-18 > 06:45:37 -0700) > >

[PATCH v1 1/3] clk: rockchip: add rv1108 ACLK_GAMC and PCLK_GMAC ID

2017-08-20 Thread Elaine Zhang
This patch exports gmac aclk and pclk for dts reference. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/rv1108-cru.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/rv1108-cru.h b/include/dt-bindings/clock/rv1108-cru.h index f269d833e41a..2239ae2a19b9

Re: [PATCH v2 00/20] Speculative page faults

2017-08-20 Thread Sergey Senozhatsky
Hello, On (08/18/17 00:04), Laurent Dufour wrote: > This is a port on kernel 4.13 of the work done by Peter Zijlstra to > handle page fault without holding the mm semaphore [1]. > > The idea is to try to handle user space page faults without holding the > mmap_sem. This should allow better concur

[PATCH v1 3/3] clk: rockchip: rv1108: rename macphy to mac

2017-08-20 Thread Elaine Zhang
This MAC has no internal phy for rv1108. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rv1108.c | 12 ++-- include/dt-bindings/clock/rv1108-cru.h | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/clk/rockchip/clk-rv1108.c b/drivers/clk/r

[PATCH v1 0/3] clk: rockchip: rv1108: support mac clk

2017-08-20 Thread Elaine Zhang
Elaine Zhang (3): clk: rockchip: add rv1108 ACLK_GAMC and PCLK_GMAC ID clk: rockchip: rv1108: add ACLK_GMAC and PCLK_GMAC clk id clk: rockchip: rv1108: rename macphy to mac drivers/clk/rockchip/clk-rv1108.c | 14 -- include/dt-bindings/clock/rv1108-cru.h | 8 +--- 2 fi

[PATCH v1 2/3] clk: rockchip: rv1108: add ACLK_GMAC and PCLK_GMAC clk id

2017-08-20 Thread Elaine Zhang
Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rv1108.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockchip/clk-rv1108.c b/drivers/clk/rockchip/clk-rv1108.c index d1065dd9f442..0e441ec21e90 100644 --- a/drivers/clk/rockchip/clk-rv1108.c +++ b/drivers/clk/rockchip

Re: [PATCH 3.16 032/134] MIPS: Loongson-3: Select MIPS_L1_CACHE_SHIFT_6

2017-08-20 Thread Huacai Chen
3.16 doesn't need this, because 3.16 doesn't support Loongson-3 R2/R3. Huacai On Fri, Aug 18, 2017 at 9:13 PM, Ben Hutchings wrote: > 3.16.47-rc1 review patch. If anyone has any objections, please let me know. > > -- > > From: Huacai Chen > > commit 17c99d9421695a0e0de18bf1e709

Re: [PATCH v3 1/3] dt-bindings: Document the hi3660 thermal sensor bindings

2017-08-20 Thread Wangtao (Kevin, Kirin)
在 2017/8/17 23:10, Rob Herring 写道: On Thu, Aug 10, 2017 at 04:32:13PM +0800, Tao Wang wrote: From: Tao Wang This adds documentation of device tree bindings for the thermal sensor controller of hi3660 SoC. Signed-off-by: Tao Wang --- .../devicetree/bindings/thermal/hisi-tsensor.txt | 23

Re: [PATCH 0/3] Ceph: Adjustments for some function implementations

2017-08-20 Thread Yan, Zheng
> On 21 Aug 2017, at 02:37, SF Markus Elfring > wrote: > > From: Markus Elfring > Date: Sun, 20 Aug 2017 20:32:10 +0200 > > Three update suggestions were taken into account > from static source code analysis. > > Markus Elfring (3): > Delete an error message for a failed memory allocation i

Re: + kbuild-disable-wformat-truncation-warnings-by-default.patch added to -mm tree

2017-08-20 Thread Masahiro Yamada
Hi Arnd, 2017-08-21 4:51 GMT+09:00 Arnd Bergmann : > On Sun, Aug 20, 2017 at 3:19 PM, Masahiro Yamada > wrote: >> 2017-07-20 16:24 GMT+09:00 Arnd Bergmann : >>> - enable all three warnings with "make W=1" in 4.13, but leave them >>> disabled by default. >>> - backport Linus' patch, plus the fol

[PATCH v9 RESEND 2/9] mfd: rk808: add rk805 regs addr and ID

2017-08-20 Thread Heiko Stuebner
From: Elaine Zhang Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones Signed-off-by: Heiko Stuebner --- include/linux/mfd/rk808.h | 120 ++ 1 file changed, 120 insertions(+) diff --git a/include/linux/mfd/rk808.h b/

[PATCH v9 RESEND 5/9] mfd: rk808: Add RK805 support

2017-08-20 Thread Heiko Stuebner
From: Elaine Zhang The RK805 chip is a Power Management IC (PMIC) for multimedia and handheld devices. It contains the following components: - Regulators - RTC - Clocking Both RK808 and RK805 chips are using a similar register map, so we can reuse the RTC and Clocking functionality.

[PATCH v9 RESEND 4/9] mfd: dt-bindings: Add RK805 device tree bindings document

2017-08-20 Thread Heiko Stuebner
From: Elaine Zhang Add device tree bindings documentation for Rockchip's RK805 PMIC. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-by: Rob Herring Acked-for-MFD-by: Lee Jones Signed-off-by: Heiko Stuebner --- Documentation/devicetree/bindings/mfd/rk808.txt | 22 +

[PATCH v9 RESEND 9/9] mfd: rk808: Add RK805 power key support

2017-08-20 Thread Heiko Stuebner
From: Joseph Chen Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones Signed-off-by: Heiko Stuebner --- drivers/mfd/rk808.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index c803d2d5dfb7..216fbf6adec9 100644 --- a/drivers

[PATCH v9 RESEND 1/9] mfd: rk808: fix up the chip id get failed

2017-08-20 Thread Heiko Stuebner
From: Elaine Zhang the rk8xx chip id is: ((MSB << 8) | LSB) & 0xfff0 Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones Signed-off-by: Heiko Stuebner --- drivers/mfd/rk808.c | 21 +++-- include/linux/mfd/rk808.h | 1 + 2 files changed,

[PATCH v9 RESEND 7/9] pinctrl: Add pinctrl driver for the RK805 PMIC

2017-08-20 Thread Heiko Stuebner
From: Joseph Chen RK805 is one of Rockchip PMICs family, it has 2 output only GPIOs. This driver is also designed for other Rockchip PMICs to expend. Different PMIC maybe have different pin features, for example, RK816 has one pin which can be used for TS or GPIO(input/out). The mainly differenc

[PATCH v9 RESEND 3/9] regulator: rk808: Add regulator driver for RK805

2017-08-20 Thread Heiko Stuebner
From: Elaine Zhang Add support for the rk805 regulator. The regulator module consists of 4 DCDCs, 3 LDOs. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-by: Mark Brown

[PATCH v9 RESEND 0/9] mfd: rk808: Add RK805 support

2017-08-20 Thread Heiko Stuebner
Hi Lee, as we talked about on IRC on friday, here are the patches enabling rk805 support in the common rk808 driver. As we agreed I've dropped the cosmetic patches for clk and rtc adding the rk805 to the Kconfig helptext and I've also dropped the input driver patch, which Dmitry already applied.

[PATCH v9 RESEND 6/9] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC

2017-08-20 Thread Heiko Stuebner
From: Joseph Chen Signed-off-by: Joseph Chen Acked-by: Linus Walleij Acked-by: Rob Herring Signed-off-by: Heiko Stuebner --- .../devicetree/bindings/pinctrl/pinctrl-rk805.txt | 63 ++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/

[PATCH v9 RESEND 8/9] mfd: rk808: Add RK805 pinctrl support

2017-08-20 Thread Heiko Stuebner
From: Joseph Chen Signed-off-by: Joseph Chen Acked-by: Linus Walleij Acked-for-MFD-by: Lee Jones Signed-off-by: Heiko Stuebner --- drivers/mfd/rk808.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index 18329c8b4fe7..c803d2d5dfb7 100644 --- a/d

Re: kvm splat in mmu_spte_clear_track_bits

2017-08-20 Thread Wanpeng Li
2017-08-21 7:13 GMT+08:00 Adam Borowski : > Hi! > I'm afraid I keep getting a quite reliable, but random, splat when running > KVM: I reported something similar before. https://lkml.org/lkml/2017/6/29/64 Regards, Wanpeng Li > > [ cut here ] > WARNING: CPU: 5 PID: 5826 at

Re: [PATCH 1/2] PM: docs: Describe high-level PM strategies and sleep states

2017-08-20 Thread Rafael J. Wysocki
On Sun, Aug 20, 2017 at 8:23 PM, Lukas Wunner wrote: > On Sun, Aug 20, 2017 at 06:05:05PM +0200, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> Reorganize the power management part of admin-guide by adding a >> description of major power management strategies supported by the >> kernel

Re: [v5 2/4] mm, oom: cgroup-aware OOM killer

2017-08-20 Thread David Rientjes
On Wed, 16 Aug 2017, Roman Gushchin wrote: > It's natural to expect that inside a container there are their own sshd, > "activity manager" or some other stuff, which can play with oom_score_adj. > If it can override the upper cgroup-level settings, the whole delegation model > is broken. > I don

Re: [PATCH] ASoC: simple-scu-card: Parse off codec widgets

2017-08-20 Thread Kuninori Morimoto
Hi > Signed-off-by: Daniel Baluta > --- > Documentation/devicetree/bindings/sound/simple-scu-card.txt | 1 + > sound/soc/generic/simple-scu-card.c | 4 > 2 files changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/sound/simple-scu-card.txt

Re: [v5 4/4] mm, oom, docs: describe the cgroup-aware OOM killer

2017-08-20 Thread David Rientjes
On Thu, 17 Aug 2017, Roman Gushchin wrote: > Hi David! > > Please, find an updated version of docs patch below. > Looks much better, thanks! I think the only pending issue is discussing the relationship of memory.oom_kill_all_tasks with /proc/pid/oom_score_adj == OOM_SCORE_ADJ_MIN.

[patch -mm] mm, compaction: persistently skip hugetlbfs pageblocks fix

2017-08-20 Thread David Rientjes
Fix build: mm/compaction.c: In function ‘isolate_freepages_block’: mm/compaction.c:469:4: error: implicit declaration of function ‘pageblock_skip_persistent’ [-Werror=implicit-function-declaration] if (pageblock_skip_persistent(page, order)) { ^ mm/compaction.c:470:5: error: implicit decl

[PATCH net-next v7 00/10] Landlock LSM: Toward unprivileged sandboxing

2017-08-20 Thread Mickaël Salaün
Hi, This seventh series add some changes to the previous one [1], including a simplified landlock_context, architecture-independent rules, more documentation and multiples fixes. As planed [6], I simplified and make the FS event more generic for the IOCTL, LOCK or FCNTL actions. The action flags

[PATCH net-next v7 07/10] landlock: Add ptrace restrictions

2017-08-20 Thread Mickaël Salaün
A landlocked process has less privileges than a non-landlocked process and must then be subject to additional restrictions when manipulating processes. To be allowed to use ptrace(2) and related syscalls on a target process, a landlocked process must have a subset of the target process' rules. Sig

[PATCH net-next v7 09/10] bpf,landlock: Add tests for Landlock

2017-08-20 Thread Mickaël Salaün
Test basic context access, ptrace protection and filesystem event with multiple cases. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Andy Lutomirski Cc: Daniel Borkmann Cc: David S. Miller Cc: James Morris Cc: Kees Cook Cc: Serge E. Hallyn Cc: Shuah Khan Cc: Will Drewry --- C

Re: [PATCH v2] Kbuild: use -fshort-wchar globally

2017-08-20 Thread Masahiro Yamada
2017-08-21 4:22 GMT+09:00 Arnd Bergmann : > On Sun, Aug 20, 2017 at 2:31 PM, Masahiro Yamada > wrote: >> Hi Arnd, >> >> This patch was picked up for linux-next >> (I assume it was queued up for 4.14-rc1) >> but I see this warning in Linus' tree. >> >> If we are not comfortable with this warning in

[PATCH net-next v7 08/10] bpf: Add a Landlock sandbox example

2017-08-20 Thread Mickaël Salaün
Add a basic sandbox tool to create a process isolated from some part of the system. This sandbox create a read-only environment. It is only allowed to write to a character device such as a TTY: # :> X # echo $? 0 # ./samples/bpf/landlock1 /bin/sh -i Launching a new sandboxed process. #

[PATCH net-next v7 10/10] landlock: Add user and kernel documentation for Landlock

2017-08-20 Thread Mickaël Salaün
This documentation can be built with the Sphinx framework. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Andy Lutomirski Cc: Daniel Borkmann Cc: David S. Miller Cc: James Morris Cc: Jonathan Corbet Cc: Kees Cook Cc: Serge E. Hallyn --- Changes since v6: * add a check for ctx->

[PATCH net-next v7 02/10] bpf: Add eBPF program subtype and is_valid_subtype() verifier

2017-08-20 Thread Mickaël Salaün
The goal of the program subtype is to be able to have different static fine-grained verifications for a unique program type. The struct bpf_verifier_ops gets a new optional function: is_valid_subtype(). This new verifier is called at the beginning of the eBPF program verification to check if the (

[PATCH net-next v7 03/10] bpf,landlock: Define an eBPF program type for a Landlock rule

2017-08-20 Thread Mickaël Salaün
Add a new type of eBPF program used by Landlock rules. This new BPF program type will be registered with the Landlock LSM initialization. Add an initial Landlock Kconfig. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Andy Lutomirski Cc: Daniel Borkmann Cc: David S. Miller Cc: Jam

[PATCH net-next v7 05/10] landlock: Add LSM hooks related to filesystem

2017-08-20 Thread Mickaël Salaün
Handle 33 filesystem-related LSM hooks for the Landlock filesystem event: LANDLOCK_SUBTYPE_EVENT_FS. A Landlock event wrap LSM hooks for similar kernel object types (e.g. struct file, struct path...). Multiple LSM hooks can trigger the same Landlock event. Landlock handle nine coarse-grained acti

[PATCH net-next v7 01/10] selftest: Enhance kselftest_harness.h with a step mechanism

2017-08-20 Thread Mickaël Salaün
This step mechanism may be useful to return an information about the error without being able to write to TH_LOG_STREAM. Set _metadata->no_print to true to print this counter. Signed-off-by: Mickaël Salaün Cc: Andy Lutomirski Cc: Arnaldo Carvalho de Melo Cc: Kees Cook Cc: Shuah Khan Cc: Will

[PATCH net-next v7 06/10] seccomp,landlock: Handle Landlock events per process hierarchy

2017-08-20 Thread Mickaël Salaün
The seccomp(2) syscall can be used by a task to apply a Landlock rule to itself. As a seccomp filter, a Landlock rule is enforced for the current task and all its future children. A rule is immutable and a task can only add new restricting rules to itself, forming a chain of rules. A Landlock rule

[PATCH net-next v7 04/10] bpf: Define handle_fs and add a new helper bpf_handle_fs_get_mode()

2017-08-20 Thread Mickaël Salaün
Add an eBPF function bpf_handle_fs_get_mode(handle_fs) to get the mode of a an abstract object wrapping either a file, a dentry, a path, or an inode. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Andy Lutomirski Cc: Daniel Borkmann Cc: David S. Miller Cc: James Morris Cc: Kees Coo

kvm splat in mmu_spte_clear_track_bits

2017-08-20 Thread Adam Borowski
Hi! I'm afraid I keep getting a quite reliable, but random, splat when running KVM: [ cut here ] WARNING: CPU: 5 PID: 5826 at arch/x86/kvm/mmu.c:717 mmu_spte_clear_track_bits+0x123/0x170 Modules linked in: tun nbd arc4 rtl8xxxu mac80211 cfg80211 rfkill nouveau video ttm C

Linux 4.13-rc6

2017-08-20 Thread Linus Torvalds
Things have been pretty calm, and rc6 is out there. Nothing particular really stands out - it all looks normal, with just under half of the patch being drivers (networking stands out, but there's infiniband, sound and misc other things too), a third of the rest being arch updates, and the rest is

Re: [PATCH net-next v3] arm: eBPF JIT compiler

2017-08-20 Thread Shubham Bansal
> With the below #ifdef __LITTLE_ENDIAN spanning the entire > bpf_int_jit_compile(), a user can then enable and compile > eBPF JIT for big endian, even set the bpf_jit_enable to 1 > to turn it on, but it won't JIT anything, which is contrary > to the expectation. > > This should rather be a hard de

Re: [PATCH v3 3/3] gpio: mockup: use irq_sim

2017-08-20 Thread Linus Walleij
On Mon, Aug 14, 2017 at 1:20 PM, Bartosz Golaszewski wrote: > Shrink the driver by removing the code dealing with dummy interrupts > and replacing it with calls to the irq_sim API. > > Signed-off-by: Bartosz Golaszewski > Acked-by: Jonathan Cameron > Reviewed-by: Linus Walleij I applied this

Re: [PATCH net-next v3] arm: eBPF JIT compiler

2017-08-20 Thread Daniel Borkmann
On 08/19/2017 11:20 AM, Shubham Bansal wrote: [...] diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 61a0cb1..cc31f8b 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -50,7 +50,7 @@ config ARM select HAVE_ARCH_SECCOMP_FILTER if (AEABI && !OABI_COMPAT) select HAVE_ARCH

Re: [PATCH v4 0/3] simulated interrupts

2017-08-20 Thread Linus Walleij
On Wed, Aug 16, 2017 at 4:44 PM, Thomas Gleixner wrote: > I merged the irq part (1+2) into a separate branch, which can be consumed > by the gpio folks so the mockup driver patch can be merged as well. > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/for-gpio Awesome, thanks

Re: [PATCH v2 0/8] gpio: use devres for irq generic chip

2017-08-20 Thread Linus Walleij
On Wed, Aug 9, 2017 at 2:24 PM, Bartosz Golaszewski wrote: > We now provide resource managed versions of irq_alloc_generic_chip() > and irq_setup_generic_chip(). Use them in all relevant gpio drivers. > > v1 -> v2: > - added three patches which explicitly disable driver unbinding for > non-modu

[PATCH] alarmtimer: ensure RTC module is not unloaded

2017-08-20 Thread Alexandre Belloni
When registering the rtc device to be used to handle alarm timers, get_device is used to ensure the device doesn't go away but the module can still be unloaded. Call try_module_get to ensure the rtc driver will not go away. Reported-by: Michal Simek Signed-off-by: Alexandre Belloni --- kernel/t

Re: [PATCH 0/6] gpio: use devres for irq generic chip

2017-08-20 Thread Linus Walleij
On Wed, Aug 2, 2017 at 9:51 AM, Bartosz Golaszewski wrote: > We now provide resource managed versions of irq_alloc_generic_chip() > and irq_setup_generic_chip(). Use them in all relevant gpio drivers. > > Bartosz Golaszewski (6): > gpio: sta2x11: use devres for irq generic chip > gpio: ml-ioh

[PATCH] soc: ti: fix spelling mistake: "instace" -> "instance"

2017-08-20 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in dev_err messages Signed-off-by: Colin Ian King --- drivers/soc/ti/knav_dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/ti/knav_dma.c b/drivers/soc/ti/knav_dma.c index 026182d3b27c..f463e04be412 10

[PATCH] crypto: aesni: make arrays aesni_simd_skciphers and aesni_simd_skciphers2 static

2017-08-20 Thread Colin King
From: Colin Ian King Arrays aesni_simd_skciphers and aesni_simd_skciphers2 are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: symbol 'aesni_simd_skciphers' was not declared. Should it be static? symbol 'aesni_simd_skciphers2' was not de

Re: [PATCH v6 2/2] PCI: iproc: add device shutdown for PCI RC

2017-08-20 Thread Bjorn Helgaas
On Sun, Aug 20, 2017 at 09:06:51AM +0530, Oza Oza wrote: > On Sun, Aug 20, 2017 at 2:34 AM, Bjorn Helgaas wrote: > > On Fri, Aug 04, 2017 at 09:18:16PM +0530, Oza Pawandeep wrote: > >> PERST must be asserted around ~500ms before the reboot is applied. > >> > >> During soft reset (e.g., "reboot" fr

Re: [RFC 2/3] rtc: Add Realtek RTD1295

2017-08-20 Thread Andreas Färber
Am 20.08.2017 um 17:40 schrieb Andrew Lunn: >> +static void rtd119x_rtc_set_enabled(struct device *dev, bool enable) >> +{ >> +struct rtd119x_rtc *data = dev_get_drvdata(dev); >> +u32 val; >> + >> +val = readl_relaxed(data->base + RTD_RTCEN); >> +dev_info(dev, "%s: rtcen = 0x%08x\n"

  1   2   3   >