[PATCH V3 07/13] perf mem: Support data page size

2019-01-30 Thread kan . liang
From: Kan Liang Add option --data-page-size in "perf mem" to record/report data page size. Here are some examples. perf mem --phys-data --data-page-size report -D # PID, TID, IP, ADDR, PHYS ADDR, DATA PAGE SIZE, LOCAL WEIGHT, DSRC, # SYMBOL 20134 20134 0xb5bd2fd0

[PATCH V3 03/13] perf script: Support data page size

2019-01-30 Thread kan . liang
From: Kan Liang Display the data page size if it is available. Can be configured by the user, for example: perf script --fields comm,event,phys_addr,data_page_size dtlb mem-loads:uP:3fec82ea8 4K dtlb mem-loads:uP:3fec82e90 4K dtlb

[PATCH V3 12/13] perf report: Add support for PERF_SAMPLE_CODE_PAGE_SIZE

2019-01-30 Thread kan . liang
From: Stephane Eranian Add a new sort dimension "code_page_size" for common sort. With this option applied, perf can sort and report by sample's code page size. For example, perf report --stdio --sort=comm,symbol,code_page_size # To display the perf.data header info, please use #

[PATCH V3 11/13] perf script: Add support for PERF_SAMPLE_CODE_PAGE_SIZE

2019-01-30 Thread kan . liang
From: Stephane Eranian Add a new perf script filter called code_page_size. There will be more than 32 filters. Extend the enum perf_output_field from U to UL. Display sampled code page sizes when PERF_SAMPLE_CODE_PAGE_SIZE was set. For example, perf script --fields comm,event,ip,code_page_size

[PATCH V3 02/13] perf tools: Support new sample type for data page size

2019-01-30 Thread kan . liang
From: Kan Liang Support new sample type PERF_SAMPLE_DATA_PAGE_SIZE for page size. Add new option --data-page-size to record sample data page size. Signed-off-by: Kan Liang --- No changes since V1 tools/include/uapi/linux/perf_event.h| 16 +++-

[PATCH V3 04/13] perf sort: Add sort option for data page size

2019-01-30 Thread kan . liang
From: Kan Liang Add a new sort option "data_page_size" for --mem-mode sort. With this option applied, perf can sort and report by sample's data page size. Here is an example. perf report --stdio --mem-mode --sort=comm,symbol,phys_daddr,data_page_size # To display the perf.data header info,

[PATCH V3 09/13] perf/core, x86: Add support for PERF_SAMPLE_CODE_PAGE_SIZE

2019-01-30 Thread kan . liang
From: Stephane Eranian When studying code layout, it is useful to capture the page size of the sampled code address. Add a new sample type for code page size. The new sample type requires collecting the ip. The code page size can be calculated from the IRQ-safe perf_get_page_size(). Only the

[PATCH V3 13/13] perf test: Add test case for PERF_SAMPLE_CODE_PAGE_SIZE

2019-01-30 Thread kan . liang
From: Stephane Eranian Extend sample-parsing test cases to support new sample type PERF_SAMPLE_CODE_PAGE_SIZE. Signed-off-by: Stephane Eranian Signed-off-by: Kan Liang --- No changes since V1 tools/perf/tests/sample-parsing.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff

[PATCH V3 01/13] perf/core, x86: Add PERF_SAMPLE_DATA_PAGE_SIZE

2019-01-30 Thread kan . liang
From: Kan Liang Current perf can report both virtual address and physical address, but it doesn't report page size. Users have no idea how large the utilized page is. They cannot promote/demote large pages to optimize memory use. Add a new sample type for data page size. Current perf already

[PATCH V3 08/13] perf test: Add test case for PERF_SAMPLE_DATA_PAGE_SIZE

2019-01-30 Thread kan . liang
From: Kan Liang Extend sample-parsing test cases to support new sample type PERF_SAMPLE_DATA_PAGE_SIZE. Signed-off-by: Kan Liang --- No changes since V1 tools/perf/tests/sample-parsing.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

[PATCH V3 10/13] perf tools: Add support for PERF_SAMPLE_CODE_PAGE_SIZE

2019-01-30 Thread kan . liang
From: Stephane Eranian Adds the infrastructure to sample the code address page size. Introduce a new --code-page-size option for perf record. Signed-off-by: Stephane Eranian Signed-off-by: Kan Liang --- No changes since V1 tools/include/uapi/linux/perf_event.h| 4 +++-

[PATCH V3 06/13] perf mem: Clean up output format

2019-01-30 Thread kan . liang
From: Kan Liang Now, "--phys-data" is the only option which impacts the output format. A simple "if else" is enough to handle the option. But there will be more options added, e.g. "--data-page-size", which also impact the output format. The code will become too complex to be maintained. Divide

[PATCH V3 05/13] perf mem: Factor out a function to generate sort order

2019-01-30 Thread kan . liang
From: Kan Liang Now, "--phys-data" is the only option which impacts the sort order. A simple "if else" is enough to handle the option. But there will be more options added, e.g. "--data-page-size", which also impact the sort order. The code will become too complex to be maintained. Divide the

Re: [PATCH] MIPS: Select PINCTRL_RT2880 when RALINK is enabled

2019-01-30 Thread Nishad Kamdar
On Tue, Jan 29, 2019 at 08:09:07PM +, Paul Burton wrote: > Hi Nishad, > > On Tue, Jan 29, 2019 at 08:55:27PM +0530, Nishad Kamdar wrote: > > This patch selects config PINCTRL_RT2880 when config RALINK is > > enabled as per drivers/staging/mt7621-pinctrl/TODO list. PINCTRL > > is also selected

Re: [PATCH v2] sched/fair: Fix insertion in rq->leaf_cfs_rq_list

2019-01-30 Thread Vincent Guittot
On Wed, 30 Jan 2019 at 15:01, Peter Zijlstra wrote: > > On Wed, Jan 30, 2019 at 03:01:04PM +0100, Peter Zijlstra wrote: > > --- a/kernel/sched/fair.c > > +++ b/kernel/sched/fair.c > > @@ -282,13 +282,15 @@ static inline struct cfs_rq *group_cfs_r > > return grp->my_q; > > } > > > > -static

Re: [PATCH 2/4] staging: android: ion: Restrict cache maintenance to dma mapped memory

2019-01-30 Thread Andrew F. Davis
On 1/29/19 5:44 PM, Liam Mark wrote: > On Fri, 18 Jan 2019, Liam Mark wrote: > >> On Fri, 18 Jan 2019, Andrew F. Davis wrote: >> >>> On 1/18/19 12:37 PM, Liam Mark wrote: The ION begin_cpu_access and end_cpu_access functions use the dma_sync_sg_for_cpu and dma_sync_sg_for_device APIs to

Re: [PATCH v2] sched/fair: Fix insertion in rq->leaf_cfs_rq_list

2019-01-30 Thread Vincent Guittot
On Wed, 30 Jan 2019 at 15:01, Peter Zijlstra wrote: > > On Wed, Jan 30, 2019 at 06:22:47AM +0100, Vincent Guittot wrote: > > Sargun reported a crash: > > "I picked up c40f7d74c741a907cfaeb73a7697081881c497d0 sched/fair: Fix > >infinite loop in update_blocked_averages() by reverting

Re: general protection fault in __xfrm_policy_bysel_ctx

2019-01-30 Thread Dmitry Vyukov
On Wed, Jan 30, 2019 at 3:20 PM Florian Westphal wrote: > > Dmitry Vyukov wrote: > > > syzbot wrote: > > > > Hello, > > > > > > > > syzbot found the following crash on: > > > > > > > > HEAD commit:085c4c7dd2b6 net: lmc: remove -I. header search path > > > > git tree: net-next > > > >

Re: [PATCH] include/linux: Remove duplicate header

2019-01-30 Thread Brajeswar Ghosh
On Fri, Jan 11, 2019 at 12:50 AM Michael S. Tsirkin wrote: > > On Thu, Jan 10, 2019 at 09:31:14PM +0530, Brajeswar Ghosh wrote: > > Remove duplicate headers which are included more than once > > > > Signed-off-by: Brajeswar Ghosh > > --- > > include/linux/perf_event.h | 1 - > >

Re: [PATCH] csky/kernel/entry: Remove duplicate heade

2019-01-30 Thread Brajeswar Ghosh
On Fri, Jan 18, 2019 at 12:00 PM Guo Ren wrote: > > Thx Brajeswar, > > Tested-by: Guo Ren > Acked-by: Guo Ren If no further comment, can we get this patch in queue for 5.1 ? > > On Thu, Jan 17, 2019 at 08:00:04PM +0530, Brajeswar Ghosh wrote: > > Remove duplicate headers which are included

Re: [PATCH] arch/csky/mm/fault.c: Remove duplicate header

2019-01-30 Thread Brajeswar Ghosh
On Fri, Jan 18, 2019 at 9:17 PM Guo Ren wrote: > > Thx Brajeswar, > > Reviewed-by: Guo Ren > Acked-by: Guo Ren If no further comment, can we get this patch in queue for 5.1 ? > > On Fri, Jan 18, 2019 at 03:21:52PM +0530, Brajeswar Ghosh wrote: > > Remove linux/kernel.h which is included more

Re: WARN_ON_ONCE(!new_owner) within wake_futex_pi() triggered

2019-01-30 Thread Thomas Gleixner
On Wed, 30 Jan 2019, Thomas Gleixner wrote: > On Wed, 30 Jan 2019, Sebastian Sewior wrote: > > > On 2019-01-30 13:59:55 [+0100], Heiko Carstens wrote: > > > Last lines of trace below (full log attached): > > > > <...>-56956 [005] 658.931364: handle_futex_death: uaddr: > >

Re: [PATCH] phy: ti-pipe3: Add set_mode callback to configure usb3 phy as pcie phy

2019-01-30 Thread Roger Quadros
On 30/01/19 15:59, Kishon Vijay Abraham I wrote: > Hi, > > On 30/01/19 7:27 PM, Roger Quadros wrote: >> +Rob, >> >> On 30/01/19 15:00, Kishon Vijay Abraham I wrote: >>> Hi Roger, >>> >>> On 30/01/19 6:11 PM, Roger Quadros wrote: Kishon, On 30/01/19 12:59, Kishon Vijay Abraham I

Re: [PATCH] samples/mic/mpssd: Remove duplicate header

2019-01-30 Thread Brajeswar Ghosh
On Mon, Jan 14, 2019 at 10:30 PM Brajeswar Ghosh wrote: > > Remove duplicate headers which are included more than once > > Signed-off-by: Brajeswar Ghosh Any comment on this patch? > --- > samples/mic/mpssd/mpssd.h | 3 --- > 1 file changed, 3 deletions(-) > > diff --git

[PATCH v15 0/8] ASoC: sun4i-codec: Add Line-In, FM-In, Mic 2

2019-01-30 Thread Danny Milosavljevic
This patchset adds some mixer controls to sun4i-codec for the Allwinner A10 and the Allwinner A20. It also adds the PGA for the MIC2 preamp. Where possible, it uses SOC_DAPM_DOUBLE in order to cut down on the number of distinct controls in alsamixer. v15 changes compared to v14 are: - Instead

[PATCH v15 7/8] ASoC: sun4i-codec: Add FM Playback Volume, FM Left, FM Right, FM Playback Switch

2019-01-30 Thread Danny Milosavljevic
Add FM Playback Volume for Allwinner A10 and Allwinner A20. Add FM Left, FM Right, FM Playback Switch for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 18 ++ 1 file changed, 18 insertions(+) diff --git

[PATCH v15 4/8] ASoC: sun4i-codec: Add Mic1 Boost Volume, Mic2 Boost Volume

2019-01-30 Thread Danny Milosavljevic
Add Mic1 Boost Volume and Mic2 Boost Volume for Allwinner A10 and for Allwinner A20. Those controls are in different registers per chip model, so put the Allwinner A10 controls and the Allwinner A20 controls into the newly split sun4i_codec_controls and sun7i_codec_controls, respectively.

[PATCH v15 6/8] ASoC: sun4i-codec: Add Mic1 Playback Switch, Mic2 Playback Switch

2019-01-30 Thread Danny Milosavljevic
Add Mic1 Playback Switch and Mic2 Playback Switch for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index

[PATCH v15 3/8] ASoC: sun4i-codec: Add sun7i_codec_controls, sun7i_codec_codec

2019-01-30 Thread Danny Milosavljevic
Introduce sun7i_codec_controls because some of the controls are different on Allwinner A20 compared to Allwinner A10. Also introduce sun7i_codec_codec in order to use sun7i_codec_controls and make sun7i_codec_quirks use sun7i_codec_codec. Signed-off-by: Danny Milosavljevic ---

[PATCH v15 8/8] ASoC: sun4i-codec: Add Line Playback Volume, Line Boost Volume, Line Right, Line Left, Line Playback Switch

2019-01-30 Thread Danny Milosavljevic
Add Line Playback Volume for Allwinner A10 and Allwinner A20. Add Line Boost Volume for Allwinner A10 and Allwinner A20. Add Line Right, Line Left, Line Playback Switch for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 27

[PATCH v15 2/8] ASoC: sun4i-codec: Add Mic Playback Volume

2019-01-30 Thread Danny Milosavljevic
Add a control "Mic Playback Volume" that allows the user to control the MIC gain stage (common for Mic1 and Mic2) leading to the output mixer. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v15 5/8] ASoC: sun4i-codec: Merge sun4i_codec_left_mixer_controls and sun4i_codec_right_mixer_controls into sun4i_codec_mixer_controls

2019-01-30 Thread Danny Milosavljevic
Since it's now possible to have a DAPM mixer control with multiple channels, use it to cut down the total number of controls. Keep "Left Mixer Left DAC Playback Switch" and "Right Mixer Right DAC Playback Switch" name & layout the same as before for compatibility. Signed-off-by: Danny

[PATCH v15 1/8] ASoC: sun4i-codec: Add MIC2 Pre-Amplifier, Mic2 input

2019-01-30 Thread Danny Milosavljevic
Add MIC2 Pre-Amplifier, Mic2 input for Allwinner A10 and Allwinner A20. Previously, there only the Mic1 input and MIC1 Pre-Amplifier was exposed. This exposes the Mic2 input and MIC2 Pre-Amplifier. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 12 1 file

Re: [PATCH] Staging: rtl8192e: Replaced spaces with tab.

2019-01-30 Thread Greg KH
On Sat, Jan 26, 2019 at 06:31:21PM +0100, Michiel Schuurmans wrote: > Replaced the spaces with tabs as suggested by checkpatch. > > This is my first patch. No need for that line :) Also, please use scripts/get_maintainer.pl to determine who to send a patch to, and what mailing list next time.

Re: [PATCH] drm/bridge/panel: Remove duplicate header

2019-01-30 Thread Brajeswar Ghosh
On Wed, Dec 26, 2018 at 3:09 PM Laurent Pinchart wrote: > > Hi Brajeswar, > > Thank you for the patch. > > On Monday, 24 December 2018 16:32:18 EET Brajeswar Ghosh wrote: > > Remove drm/drm_panel.h which is included more than once > > > > Signed-off-by: Brajeswar Ghosh > > --- > >

Re: [PATCH v2 0/6] General Key Derivation Function Support

2019-01-30 Thread Stephan Mueller
Am Mittwoch, 30. Januar 2019, 11:08:54 CET schrieb Herbert Xu: Hi Herbert, > I'm still not convinced why this needs to go into the crypto API > instead of being hosted in a helper which should achieve pretty > much the same result. How do you propose to handle the FIPS 140-2 related

Re: [RFC PATCH v3 2/2] pwm: imx: Configure output to GPIO in disabled state

2019-01-30 Thread Michal Vokáč
On 24.1.2019 11:44, Uwe Kleine-König wrote: On Thu, Jan 24, 2019 at 11:12:12AM +0100, Michal Vokáč wrote: On 24.1.2019 10:22, Uwe Kleine-König wrote: I think it might be beneficial to allow (or require) that disable acts immediately. But this is not how it used to be and in my discussion with

Re: [LSF/MM TOPIC]: userfaultfd (was: [LSF/MM TOPIC] NUMA remote THP vs NUMA local non-THP under MADV_HUGEPAGE)

2019-01-30 Thread Andrea Arcangeli
Hello Mike, On Wed, Jan 30, 2019 at 10:13:36AM +0200, Mike Rapoport wrote: > We (CRIU) have some concerns about obsoleting soft-dirty in favor of > uffd-wp. If there are other soft-dirty users these concerns would be > relevant to them as well. > > With soft-dirty we collect the information

Re: [PATCH v3 2/3] drivers: platform: goldfish: goldfish_address_space: add a driver

2019-01-30 Thread Greg KH
On Tue, Jan 29, 2019 at 12:32:12AM -0800, Roman Kiryanov wrote: > > How does QEMU do this today? There isn't a virtio or some other virtual > > memory device that allows memory regions to be shared? I can't believe > > that there isn't one yet. If not, then this should be some kind of > >

Re: WARNING in apparmor_secid_to_secctx

2019-01-30 Thread Dmitry Vyukov
On Tue, Jan 29, 2019 at 12:32 PM Tetsuo Handa wrote: > > On 2018/09/06 19:59, Dmitry Vyukov wrote: > > On Wed, Sep 5, 2018 at 7:37 PM, Casey Schaufler > > wrote: > >> On 9/5/2018 4:08 AM, Dmitry Vyukov wrote: > >>> Thanks! I've re-enabled selinux on syzbot: > >>>

Re: [PATCH] staging: erofs: keep corrupted fs from crashing kernel in erofs_namei()

2019-01-30 Thread Dan Carpenter
On Tue, Jan 29, 2019 at 11:55:40PM +0800, Gao Xiang wrote: > +static struct page *find_target_block_classic(struct inode *dir, > + struct erofs_qstr *name, > + int *_diff, > +

Re: [PATCH v2] sysctl: Add panic-fatal-signals

2019-01-30 Thread Luis Chamberlain
On Mon, Jan 28, 2019 at 10:05:45AM -0800, Andrew Morton wrote: > On Mon, 28 Jan 2019 09:49:59 +0100 Vincent Whitchurch > wrote: > > --- a/init/Kconfig > > +++ b/init/Kconfig > > @@ -1242,6 +1242,20 @@ config SYSCTL_SYSCALL > > > > If unsure say N here. > > > > +config

[PATCH] ASoC: rockchip: fix small typo

2019-01-30 Thread lsh
codec_dai -> cpu_dai Signed-off-by: lsh --- sound/soc/rockchip/rockchip_rt5645.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/rockchip/rockchip_rt5645.c b/sound/soc/rockchip/rockchip_rt5645.c index 881c324..f88adf0 100644 ---

Re: [PATCH v2 0/2] eeprom: at25: SPI transfer improvements

2019-01-30 Thread Greg Kroah-Hartman
On Tue, Jan 29, 2019 at 08:02:37PM +0100, Geert Uytterhoeven wrote: > Hi Boris, > > On Fri, Jan 18, 2019 at 11:07 PM Boris Brezillon > wrote: > > Did you consider converting this driver to spimem? Looks like the > > protocol used to communicate with the memory resembles the one used on > > SPI

Re: [PATCH net-next v2 1/2] net: dsa: mv88e6xxx: Save switch rules

2019-01-30 Thread Andrew Lunn
> So your proposal is to refuse suspending when using a mv88e6xxx switch. Hi Miquèl That is the first step. It makes the mv88e6xxx suspend compliant, in that it currently does not support suspend. > What about the current situation where suspending is allowed, but all > the configuration gone?

Re: [PATCH v2 0/2] eeprom: at25: SPI transfer improvements

2019-01-30 Thread Boris Brezillon
On Tue, 29 Jan 2019 20:02:37 +0100 Geert Uytterhoeven wrote: > Hi Boris, > > On Fri, Jan 18, 2019 at 11:07 PM Boris Brezillon > wrote: > > Did you consider converting this driver to spimem? Looks like the > > protocol used to communicate with the memory resembles the one used on > > SPI

Re: [PATCH v3 0/1] arm64: Add workaround for Fujitsu A64FX erratum 010001

2019-01-30 Thread James Morse
Hi guys, On 01/29/2019 06:10 PM, Catalin Marinas wrote: Could you please copy the whole description from the cover letter to the actual patch and only send one email (full description as in here together with the patch)? If we commit this to the kernel, it would be useful to have the

Re: [PATCH] staging: erofs: keep corrupted fs from crashing kernel in erofs_namei()

2019-01-30 Thread Gao Xiang
Hi Dan, Thanks for your kindly review. On 2019/1/30 22:45, Dan Carpenter wrote: > On Tue, Jan 29, 2019 at 11:55:40PM +0800, Gao Xiang wrote: >> +static struct page *find_target_block_classic(struct inode *dir, >> + struct erofs_qstr *name, >> +

Re: [PATCH v9 10/26] arm64: kvm: Unmask PMR before entering guest

2019-01-30 Thread Julien Thierry
On 30/01/2019 12:07, Christoffer Dall wrote: > On Mon, Jan 21, 2019 at 03:33:29PM +, Julien Thierry wrote: >> Interrupts masked by ICC_PMR_EL1 will not be signaled to the CPU. This >> means that hypervisor will not receive masked interrupts while running a >> guest. >> > > You could add to

Re: [PATCH] phy: ti-pipe3: Add set_mode callback to configure usb3 phy as pcie phy

2019-01-30 Thread Roger Quadros
Kishon, On 24/01/19 12:48, Kishon Vijay Abraham I wrote: > DRA72 platform has the second instance of PHY shared between USB3 > controller and PCIe controller with default as USB3 controller. > Since it is used with USB3 controller by default, it uses the > compatible specific to USB

Re: [PATCH v3 0/1] arm64: Add workaround for Fujitsu A64FX erratum 010001

2019-01-30 Thread James Morse
Hi! On 01/29/2019 12:29 PM, Zhang, Lei wrote: On some variants of the Fujitsu-A64FX cores ver(1.0, 1.1), memory accesses may cause undefined fault (Data abort, DFSC=0b11). This problem will be fixed by next version of Fujitsu-A64FX. This fault occurs under a specific hardware condition

Re: [PATCH v2] sysctl: Add panic-fatal-signals

2019-01-30 Thread Richard Weinberger
On Wed, Jan 30, 2019 at 3:49 PM Luis Chamberlain wrote: > > On Mon, Jan 28, 2019 at 10:05:45AM -0800, Andrew Morton wrote: > > On Mon, 28 Jan 2019 09:49:59 +0100 Vincent Whitchurch > > wrote: > > > --- a/init/Kconfig > > > +++ b/init/Kconfig > > > @@ -1242,6 +1242,20 @@ config SYSCTL_SYSCALL >

Re: [PATCH 2/3] mm/filemap: initiate readahead even if IOCB_NOWAIT is set for the I/O

2019-01-30 Thread Florian Weimer
* Vlastimil Babka: > preadv2(RWF_NOWAIT) can be used to open a side-channel to pagecache > contents, as it reveals metadata about residency of pages in > pagecache. > > If preadv2(RWF_NOWAIT) returns immediately, it provides a clear "page > not resident" information, and vice versa. > > Close

Re: [PATCH v2 2/2] media: docs-rst: Document memory-to-memory video encoder interface

2019-01-30 Thread Nicolas Dufresne
Le vendredi 25 janvier 2019 à 12:59 +0900, Tomasz Figa a écrit : > On Fri, Jan 25, 2019 at 5:14 AM Nicolas Dufresne wrote: > > Le mercredi 23 janvier 2019 à 14:04 +0100, Hans Verkuil a écrit : > > > > > Does this return the same set of formats as in the 'Querying > > > > > Capabilities' phase? >

Re: [PATCH net-next v6 1/2] net: add support for Cavium PTP coprocessor

2019-01-30 Thread Bjorn Helgaas
On Mon, Jan 15, 2018 at 06:44:56PM +0600, Aleksey Makarov wrote: > +++ b/drivers/net/ethernet/cavium/common/cavium_ptp.c > @@ -0,0 +1,353 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* cavium_ptp.c - PTP 1588 clock on Cavium hardware > + * Copyright (c) 2003-2015, 2017 Cavium, Inc. > + */ > + >

[git pull] IOMMU Fixes for Linux v5.0-rc4

2019-01-30 Thread Joerg Roedel
Hi Linus, The following changes since commit e8e683ae9a736407a20135df7809090a446db707: iommu/of: Fix probe-deferral (2019-01-11 12:28:24 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v5.0-rc4 for you to fetch

Re: [RFC v3 5/5] cros_ec: differentiate SCP from EC by feature bit.

2019-01-30 Thread Enric Balletbo Serra
Hi Lee, Pi-Hsun, Missatge de Lee Jones del dia dc., 30 de gen. 2019 a les 14:07: > > On Mon, 21 Jan 2019, Pi-Hsun Shih wrote: > > > Since a SCP and EC would both exist on a system, and use the cros_ec_dev > > driver, we need to differentiate between them for the userspace, or they > > would both

[PATCH] rtc: rv3028: new driver

2019-01-30 Thread Alexandre Belloni
Add a driver for the MicroCrystal RV-3028. Signed-off-by: Alexandre Belloni --- Documentation/devicetree/bindings/rtc/rtc.txt | 1 + drivers/rtc/Kconfig | 9 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-rv3028.c |

[PATCH RFC 0/3] hwmon: pwm-fan: Add RPM support

2019-01-30 Thread Stefan Wahren
Contrary to the gpio-fan the pwm-fan driver isn't easy to setup with pwmconfig/fancontrol because of the missing hwmon sysfs entry for actual revolutions per minute. This series adds this feature. This series based on the recently submitted regulator support. Stefan Wahren (3): dt-bindings:

[PATCH RFC 1/3] dt-bindings: hwmon: Add tachometer interrupt to pwm-fan

2019-01-30 Thread Stefan Wahren
This adds the tachometer interrupt to the pwm-fan binding, which is necessary for RPM support. Signed-off-by: Stefan Wahren --- Documentation/devicetree/bindings/hwmon/pwm-fan.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/pwm-fan.txt

[PATCH RFC 2/3] Documentation: pwm-fan: Add description for RPM support

2019-01-30 Thread Stefan Wahren
This adds a short description for the new RPM support of the pwm-fan driver. Signed-off-by: Stefan Wahren --- Documentation/hwmon/pwm-fan | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/hwmon/pwm-fan b/Documentation/hwmon/pwm-fan index 18529d2..a1ba34c 100644 ---

[PATCH 0/9] spi: atmel-quadspi: introduce sam9x60 qspi contoller

2019-01-30 Thread Tudor.Ambarus
From: Tudor Ambarus Patches from 1 to 7 are minor fixes or cosmetics. Patches 8 and 9 introduce the sam9x60 qspi controller. sam9x60 qspi controller tested with sst26vf064b jedec,spi-nor flash. Backward compatibility test done on sama5d2 qspi controller and mx25l25635e jedec,spi-nor flash. The

[PATCH 3/9] spi: atmel-quadspi: fix naming scheme

2019-01-30 Thread Tudor.Ambarus
From: Tudor Ambarus Let general names to core drivers. Signed-off-by: Tudor Ambarus --- drivers/spi/atmel-quadspi.c | 52 ++--- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c

[PATCH 4/9] spi: atmel-quadspi: remove unnecessary cast

2019-01-30 Thread Tudor.Ambarus
From: Tudor Ambarus The cast is done implicitly. Signed-off-by: Tudor Ambarus --- drivers/spi/atmel-quadspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c index e156c345705b..3643f0c851b0 100644 ---

[PATCH 1/9] spi: atmel-quadspi: optimize qspi init

2019-01-30 Thread Tudor.Ambarus
From: Tudor Ambarus Set the QSPI controller in Serial Memory Mode at init and not at each exec_op() call. Signed-off-by: Tudor Ambarus --- drivers/spi/atmel-quadspi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/spi/atmel-quadspi.c

[PATCH 8/9] dt-bindings: spi: atmel-quadspi: QuadSPI driver for Microchip SAM9X60

2019-01-30 Thread Tudor.Ambarus
From: Tudor Ambarus The sam9x60 qspi controller uses 2 clocks, one for the peripheral register access, the other for the qspi core and phy. Both are mandatory. Signed-off-by: Tudor Ambarus --- .../devicetree/bindings/spi/atmel-quadspi.txt | 28 -- 1 file changed, 26

[PATCH 5/9] spi: atmel-quadspi: return appropriate error code

2019-01-30 Thread Tudor.Ambarus
From: Tudor Ambarus Return -ENOTSUPP when atmel_qspi_find_mode() fails. Propagate the error in atmel_qspi_exec_op(). Signed-off-by: Tudor Ambarus --- drivers/spi/atmel-quadspi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/atmel-quadspi.c

[PATCH 7/9] dt-bindings: spi: atmel-quadspi: update example to new clock binding

2019-01-30 Thread Tudor.Ambarus
From: Tudor Ambarus Introduced in: commit b60557876849 ("ARM: dts: at91: sama5d2: switch to new clock binding") Signed-off-by: Tudor Ambarus --- Documentation/devicetree/bindings/spi/atmel-quadspi.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH RFC 3/3] hwmon: pwm-fan: Add RPM support via external interrupt

2019-01-30 Thread Stefan Wahren
This adds RPM support to the pwm-fan driver in order to use with fancontrol/pwmconfig. This feature is intended for 2 pulse-per-revolution fans which provides a tachometer output signal. Signed-off-by: Stefan Wahren --- drivers/hwmon/pwm-fan.c | 55

[PATCH 9/9] spi: atmel-quadspi: add support for sam9x60 qspi controller

2019-01-30 Thread Tudor.Ambarus
From: Tudor Ambarus The sam9x60 qspi controller uses 2 clocks, one for the peripheral register access, the other for the qspi core and phy. Both are mandatory. It uses dedicated register for Read Instruction Code Register (RICR) and Write Instruction Code Register (WICR). ICR/RICR/WICR have

[PATCH 6/9] spi: atmel-quadspi: switch to SPDX license identifiers

2019-01-30 Thread Tudor.Ambarus
From: Tudor Ambarus Adopt the SPDX license identifiers to ease license compliance management. Signed-off-by: Tudor Ambarus --- drivers/spi/atmel-quadspi.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/spi/atmel-quadspi.c

Re: [PATCH v2 0/2] eeprom: at25: SPI transfer improvements

2019-01-30 Thread Boris Brezillon
Hi Greg, On Wed, 30 Jan 2019 15:50:54 +0100 Greg Kroah-Hartman wrote: > On Tue, Jan 29, 2019 at 08:02:37PM +0100, Geert Uytterhoeven wrote: > > Hi Boris, > > > > On Fri, Jan 18, 2019 at 11:07 PM Boris Brezillon > > wrote: > > > Did you consider converting this driver to spimem? Looks like

Re: [PATCH 3/5] dma: Introduce dma_max_mapping_size()

2019-01-30 Thread Lendacky, Thomas
On 1/29/19 2:43 AM, Joerg Roedel wrote: > From: Joerg Roedel > > The function returns the maximum size that can be mapped > using DMA-API functions. The patch also adds the > implementation for direct DMA and a new dma_map_ops pointer > so that other implementations can expose their limit. > >

[PATCH 2/9] spi: atmel-quadspi: order header files inclusion alphabetically

2019-01-30 Thread Tudor.Ambarus
From: Tudor Ambarus Cosmetic change, no functional change. Signed-off-by: Tudor Ambarus --- drivers/spi/atmel-quadspi.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c index f79b17792a11..64475ad16c83

Re: [PATCH] drm/bridge/panel: Remove duplicate header

2019-01-30 Thread Souptick Joarder
On Wed, Jan 30, 2019 at 8:07 PM Brajeswar Ghosh wrote: > > On Wed, Dec 26, 2018 at 3:09 PM Laurent Pinchart > wrote: > > > > Hi Brajeswar, > > > > Thank you for the patch. > > > > On Monday, 24 December 2018 16:32:18 EET Brajeswar Ghosh wrote: > > > Remove drm/drm_panel.h which is included more

Re: [PATCH 4/5] virtio: Introduce virtio_max_dma_size()

2019-01-30 Thread Lendacky, Thomas
On 1/29/19 2:43 AM, Joerg Roedel wrote: > From: Joerg Roedel > > This function returns the maximum segment size for a single > dma transaction of a virtio device. The possible limit comes > from the SWIOTLB implementation in the Linux kernel, that > has an upper limit of (currently) 256kb of

[tip:x86/cleanups] x86/asm/suspend: Drop ENTRY from local data

2019-01-30 Thread tip-bot for Jiri Slaby
Commit-ID: 5a064d398fbe2901e55be15c108f7ffa98b7eefb Gitweb: https://git.kernel.org/tip/5a064d398fbe2901e55be15c108f7ffa98b7eefb Author: Jiri Slaby AuthorDate: Wed, 30 Jan 2019 13:46:45 +0100 Committer: Borislav Petkov CommitDate: Wed, 30 Jan 2019 16:07:10 +0100 x86/asm/suspend: Drop

[PATCH v3 1/3] platform/x86: wmi: move struct wmi_device_id to mod_devicetable.h

2019-01-30 Thread Mattias Jacobsson
In preparation for adding WMI support to MODULE_DEVICE_TABLE() move the definition of struct wmi_device_id to mod_devicetable.h and inline guid_string in the struct. Changing guid_string to an inline char array changes the loop conditions when looping over an array of struct wmi_device_id.

[PATCH v2] platform/x86: wmi: fix potential null pointer dereference

2019-01-30 Thread Mattias Jacobsson
In the function wmi_dev_match() the variable id is dereferenced without first performing a NULL check. The variable can for example be NULL if a WMI driver is registered without specifying the id_table field in struct wmi_driver. Add a NULL check and return that the driver can't handle the device

[PATCH v3 0/3] platform/x86: wmi: add WMI support to MODULE_DEVICE_TABLE()

2019-01-30 Thread Mattias Jacobsson
The kernel provides the macro MODULE_DEVICE_TABLE() which can help driver authors to generate the appropriate MODULE_ALIAS() output. The WMI device type is currently not supported by MODULE_DEVICE_TABLE(). While using MODULE_DEVICE_TABLE() does increase the complexity as well as spreading out the

[PATCH v3 2/3] platform/x86: wmi: add WMI support to MODULE_DEVICE_TABLE()

2019-01-30 Thread Mattias Jacobsson
The kernel provides the macro MODULE_DEVICE_TABLE() where driver authors can specify their device type and their array of device_ids and thereby trigger the generation of the appropriate MODULE_ALIAS() output. This is opposed to having to specify one MODULE_ALIAS() for each device. The WMI device

[PATCH v3 3/3] platform/x86: wmi: use MODULE_DEVICE_TABLE() instead of MODULE_ALIAS()

2019-01-30 Thread Mattias Jacobsson
WMI drivers can if they have specified an array of struct wmi_device_id use the MODULE_DEVICE_TABLE() macro to automatically generate the appropriate MODULE_ALIAS() output. Thus avoiding to keep both the array of struct wmi_device_id and the MODULE_ALIAS() declaration(s) in sync. Change all

Re: [PATCH 2/3] mm/filemap: initiate readahead even if IOCB_NOWAIT is set for the I/O

2019-01-30 Thread Jiri Kosina
On Wed, 30 Jan 2019, Florian Weimer wrote: > > preadv2(RWF_NOWAIT) can be used to open a side-channel to pagecache > > contents, as it reveals metadata about residency of pages in > > pagecache. > > > > If preadv2(RWF_NOWAIT) returns immediately, it provides a clear "page > > not resident"

Re: [PATCH 5/6] regulator: mt6358: Add support for MT6358 regulator

2019-01-30 Thread Mark Brown
On Wed, Jan 30, 2019 at 05:18:10PM +0800, Hsin-Hsiung Wang wrote: > +static const struct of_device_id mt6358_of_match[] = { > + { .compatible = "mediatek,mt6358-regulator", }, > + { /* sentinel */ }, > +}; > +MODULE_DEVICE_TABLE(of, mt6358_of_match); There should be no need for a

Re: [PATCH] rcu docs: repair some whitespace damage

2019-01-30 Thread Paul E. McKenney
On Tue, Jan 29, 2019 at 03:05:46PM -0700, Tycho Andersen wrote: > While reading the docs I noticed some whitespace damage in diagram. Let's > fix it up to be consistent with elsewhere in the document: use one leading > tab, followed by spaces for any additional whitespace required. > >

Re: [PATCH] net: wireless: prefix header search paths with $(srctree)/

2019-01-30 Thread Hin-Tak Leung
On Fri, 25/1/19, Masahiro Yamada wrote: > Currently, the Kbuild core manipulates header > search paths in a crazy > way [1]. > To fix this mess, I want all Makefiles > to add explicit $(srctree)/ to > the search paths in the srctree. Some >

[PATCH v2] drm/armada: add mmp2 support

2019-01-30 Thread Lubomir Rintel
Heavily based on the Armada 510 (Dove) support. Tested to work well with Display 1 and Display 2 clocks driving the internal panel on the OLPC XO 1.75 laptop. Some tweaking might be required if anyone wants to use it with a MIPI or HDMI encoder. The data sheet is not available, but James Cameron

RE: [PATCH v4 1/3] scsi: ufs-bsg: Change the calling convention for write descriptor

2019-01-30 Thread Bean Huo (beanhuo)
Hi, Avri > >When we had a write descriptor query upiu, we appended the descriptor right >after the bsg request. This was fine as the bsg driver allows to allocate >whatever >buffer we needed in its job request. > >Still, the proper way to deliver payload, however small (we only write config

Re: [PATCH] mtd: rawnand: meson: Fix linking error on 32-bit platforms

2019-01-30 Thread Nathan Chancellor
On Wed, Jan 30, 2019 at 10:32:20AM +0100, Miquel Raynal wrote: > Hi Liang, Nathan, > > Liang Yang wrote on Wed, 30 Jan 2019 17:26:39 > +0800: > > > Hi Nathan, > > > > On 2019/1/30 5:46, Nathan Chancellor wrote: > > > On arm little endian allyesconfig: > > > > > >ld.lld: error: undefined

Re: [PATCH] staging: erofs: keep corrupted fs from crashing kernel in erofs_namei()

2019-01-30 Thread Gao Xiang
Hi Sasha, I will send v4.19 patch independently to the stable mailing list after It gets carefully reviewed by Chao (and Al Viro if it is possible...) Thanks, Gao Xiang On 2019/1/30 22:46, Sasha Levin wrote: > Hi, > > [This is an automated email] > > This commit has been processed because it

Re: [PATCH v2] staging: mt7621-eth/ethtool.c: Correction of SPDX license identifier

2019-01-30 Thread gre...@linuxfoundation.org
On Wed, Jan 30, 2019 at 02:48:27PM +, Carlos Henrique Lima Melara wrote: > This patch fix the checkpatch.p1 warning: > > WARNING: Missing or malformed SPDX-License-Identifier tag in line 1 > +/* Why did you not fix up the indentation that was already mentioned? > It

Re: [PATCH 10/10] venus: dec: make decoder compliant with stateful codec API

2019-01-30 Thread Nicolas Dufresne
Le mercredi 30 janvier 2019 à 15:17 +0900, Tomasz Figa a écrit : > > I don't remember saying that, maybe I meant to say there might be a > > workaround ? > > > > For the fact, here we queue the headers (or first frame): > > > >

Re: [PATCHv3 00/27] PCI: refactor Mobiveil driver and add PCIe Gen4 driver for NXP Layerscape SoCs

2019-01-30 Thread Bjorn Helgaas
On Tue, Jan 29, 2019 at 08:08:28AM +, Z.q. Hou wrote: > From: Hou Zhiqiang > > This patch set is aim to refactor the Mobiveil driver and add > PCIe support for NXP Layerscape series SoCs integrated Mobiveil's > PCIe Gen4 controller. > > Hou Zhiqiang (27): > PCI: mobiveil: uniform the

Re: [RFC PATCH v3 2/2] pwm: imx: Configure output to GPIO in disabled state

2019-01-30 Thread Uwe Kleine-König
Hello Michal, On Wed, Jan 30, 2019 at 03:42:29PM +0100, Michal Vokáč wrote: > On 24.1.2019 11:44, Uwe Kleine-König wrote: > > On Thu, Jan 24, 2019 at 11:12:12AM +0100, Michal Vokáč wrote: > > > On 24.1.2019 10:22, Uwe Kleine-König wrote: > > > > I think it might be beneficial to allow (or

[PATCH next] fs/splice: iter_to_pipe -- Use PIPE_DEF_BUFFERS instead of hardcoded number

2019-01-30 Thread Cyrill Gorcunov
And use ARRAY_SIZE for easier code modification if we ever need in future. CC: Al Viro Signed-off-by: Cyrill Gorcunov --- fs/splice.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-next.git/fs/splice.c

Re: [PATCH 1/4] regulator: rk808: Fix BUCK1/2 voltages on rk805

2019-01-30 Thread Mark Brown
On Tue, Jan 29, 2019 at 05:54:21PM -0200, Otavio Salvador wrote: > RK805 has the following voltage range for the BUCK1 and BUCK2 regulators: I'm missing the other patches in this series and don't see a cover letter - what's the story with dependencies? signature.asc Description: PGP signature

Re: [PATCH] PCI: Mediatek: Use resource_size function on resource object

2019-01-30 Thread Bjorn Helgaas
Please pay attention to the changelog conventions, e.g., next time use "PCI: mediatek: ..." so yours matches "git log --oneline drivers/pci/controller/pcie-mediatek.c" On Wed, Jan 02, 2019 at 02:03:53PM +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > >

Re: [PATCH next] fs/splice: iter_to_pipe -- Use PIPE_DEF_BUFFERS instead of hardcoded number

2019-01-30 Thread Al Viro
On Wed, Jan 30, 2019 at 06:39:11PM +0300, Cyrill Gorcunov wrote: > And use ARRAY_SIZE for easier code modification if we ever need in future. Umm... Why PIPE_DEF_BUFFERS, though? Because it's a constant from more or less the same area that happens to be equal to the value we use here?

Re: [PATCH v3 1/3] dt-bindings: usb: Add support for msm8998

2019-01-30 Thread Rob Herring
On Mon, Jan 21, 2019 at 02:32:46PM -0700, Jeffrey Hugo wrote: > msm8998 USB has a dwc3 controller just like the existing sdm845 support. > > Signed-off-by: Jeffrey Hugo > Reviewed-by: Bjorn Andersson > --- > Documentation/devicetree/bindings/usb/qcom,dwc3.txt | 1 + > 1 file changed, 1

Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma

2019-01-30 Thread Jerome Glisse
On Wed, Jan 30, 2019 at 04:30:27AM +, Jason Gunthorpe wrote: > On Tue, Jan 29, 2019 at 07:08:06PM -0500, Jerome Glisse wrote: > > On Tue, Jan 29, 2019 at 11:02:25PM +, Jason Gunthorpe wrote: > > > On Tue, Jan 29, 2019 at 03:44:00PM -0500, Jerome Glisse wrote: > > > > > > > > But this API

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