x86/sgx: uapi change proposal

2018-12-18 Thread Jarkko Sakkinen
I have pretty much figured out how to change the driver implementation from VMA based to file based. Most of the code in the driver can be reused with not that enormous changes. I think it is a clue that the architecture is somewhat right because changing the driver this radically does not seem to

[PATCH] drm/amd/display: Remove duplicate header

2018-12-18 Thread Brajeswar Ghosh
Remove custom_float.h which is included more than once Signed-off-by: Brajeswar Ghosh --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c

Mysterious delays on power-related events in userspace

2018-12-18 Thread L29Ah
Hi all, When i connect various USB devices or get different ACPI(?) events like opening/closing the lid (as seen by acpid) on my Thinkpad X230 with Linux-4.19.5, i get random delays (usually ~10s, but may also be ~20s and ~30s). USB-related messages show up in dmesg instantly as they should

[PATCH 1/1] wlcore: Fix memory leak in case wl12xx_fetch_firmware failure

2018-12-18 Thread Zumeng Chen
Release fw_status, raw_fw_status, and tx_res_if when wl12xx_fetch_firmware failed instead of meaningless goto out to avoid the following memory leak reports(Only the last one listed): unreferenced object 0xc28a9a00 (size 512): comm "kworker/0:4", pid 31298, jiffies 2783204 (age 203.290s) hex

Re: [PATCH v5 2/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer

2018-12-18 Thread Christoph Hellwig
On Tue, Dec 18, 2018 at 06:48:03PM +0900, Tomasz Figa wrote: > > So as I said you can call dma_alloc_attrs with DMA_ATTR_NON_CONSISTENT > > in a loop with a suitably small chunk size, then stuff the results into > > a scatterlist and map that again for the device share with if you don't > > want a

Re: linux-next: build warnings after merge of the wireless-drivers-next tree

2018-12-18 Thread Kalle Valo
Stephen Rothwell writes: > On Fri, 30 Nov 2018 12:05:55 +1100 Stephen Rothwell > wrote: >> >> After merging the wireless-drivers-next tree, today's linux-next build >> (x86_64 allmodconfig) produced these warnings: >> >> drivers/net/wireless/intel/iwlwifi/iwl-drv.c: In function >>

Re: RT-Kernel boot stalls because of change in fs/dcache.c

2018-12-18 Thread Schrempf Frieder
+ linux-rt-users On 17.12.18 11:42, Frieder Schrempf wrote: > Hi, > > I have tried to boot a 4.14-Kernel with the RT-patches and > PREEMPT_RT_FULL on an i.MX6UL board. Unfortunately the boot stalls at > some point and never finishes. > > I did some bisecting and found out, that reverting this

Re: [PATCH RFC v2 5/8] drm/bridge: dw-hdmi: support dynamically get input/out color info

2018-12-18 Thread Laurent Pinchart
Hello, On Wednesday, 19 December 2018 09:26:08 EET Andrzej Hajda wrote: > On 30.11.2018 14:42, Neil Armstrong wrote: > > From: Zheng Yang > > > > To get input/output bus_format/enc_format dynamically, this patch > > > > introduce following funstion in plat_data: > > - get_input_bus_format

linux-next: Tree for Dec 19

2018-12-18 Thread Stephen Rothwell
Hi all, Changes since 20181218: New tree: kgdb-dt The rdma tree still had its build failure so I used a supplied patch. The kvm tree gained a conflict against the tip tree and a build failure for which I applied a merge fix patch. Non-merge commits (relative to Linus' tree): 9805 10005 files

[PATCH V5 3/3] misc/pvpanic : add pci dependency in Kconfig

2018-12-18 Thread Peng Hao
Add PCI dependency for pvpanic in Kconfig. Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index f417b06..5ff8ca4 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@

[PATCH V5 1/3] misc/pvpanic: return 0 for empty body register function

2018-12-18 Thread Peng Hao
Return 0 for empty body register function normally. Signed-off-by: Peng Hao --- v4 --> v5 : handle all typo "drvier/driver" in funtion name. v3 --> v4 : use pcim* function instead of pci* function. handle typo "drvier/driver" in funtion name. v2 --> v3 : handle a uninitialized

[PATCH V5 2/3] misc/pvpanic : add pci interface for pvpanic

2018-12-18 Thread Peng Hao
Support pvpanic as a pci device in guest kernel. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 72 -- 1 file changed, 70 insertions(+), 2 deletions(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index f84ed30..c30bf62

Re: [PATCH V2 1/9] jump_label: Add for_each_label_entry helper

2018-12-18 Thread Daniel Bristot de Oliveira
On 12/18/18 10:19 PM, Borislav Petkov wrote: > On Tue, Dec 18, 2018 at 05:46:30PM +0100, Daniel Bristot de Oliveira wrote: >> This patch adds the helper: >> for_each_label_entry(key, entry, stop) >> >> For the "for each jump label entry" for defined as: >> for (; (entry < stop) &&

Re: [PATCH v4 6/9] iommu/dma-iommu.c: Convert to use vm_insert_range

2018-12-18 Thread Souptick Joarder
On Tue, Dec 18, 2018 at 1:50 AM Souptick Joarder wrote: > > Convert to use vm_insert_range() to map range of kernel > memory to user vma. > > Signed-off-by: Souptick Joarder > Reviewed-by: Matthew Wilcox Cc'd: Robin Murphy > --- > drivers/iommu/dma-iommu.c | 13 +++-- > 1 file

Re: [PATCH v4 2/2] trace nvme submit queue status

2018-12-18 Thread h...@lst.de
On Tue, Dec 18, 2018 at 05:19:00PM -0800, peng yu wrote: > I think this change is nice. Will you submit this change or are you > suggesting me to do it? I've folded the changes in.

Re: [PATCH v2 14/17] staging: rtl8188eu: simplify null array initializations

2018-12-18 Thread Greg KH
On Tue, Dec 18, 2018 at 07:34:48PM +0100, Michael Straube wrote: > Simplfy initialization of null arrays to improve readability > and save some lines. > > Signed-off-by: Michael Straube > --- > drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 4 ++-- > drivers/staging/rtl8188eu/core/rtw_xmit.c

[PATCH v4.14 1/1]: nvmem: imx-ocotp: account for addressing gaps to ensure consistent read/write on i.MX SoCs

2018-12-18 Thread Andrea Barisani
The nvmem-imx-ocotp driver does not currently handle addressing gaps between OTP banks which can be present in i.MX System-on-Chip part numbers. This leads to inconsistencies between the interpretation of the offset argument in read and write operations, not only requiring specific workarounds

Re: [PATCH RFC v2 5/8] drm/bridge: dw-hdmi: support dynamically get input/out color info

2018-12-18 Thread Andrzej Hajda
On 30.11.2018 14:42, Neil Armstrong wrote: > From: Zheng Yang > > To get input/output bus_format/enc_format dynamically, this patch > introduce following funstion in plat_data: > - get_input_bus_format > - get_output_bus_format > - get_enc_in_encoding > -

Re: [PATCH v2] dt-bindings: serial: sh-sci: Document r8a774c0 bindings

2018-12-18 Thread Greg Kroah-Hartman
On Tue, Dec 18, 2018 at 12:03:10PM +, Fabrizio Castro wrote: > RZ/G2E (R8A774C0) SoC also has the R-Car Gen3 compatible SCIF and > HSCIF ports, so document the SoC specific bindings. > > Signed-off-by: Fabrizio Castro > Reviewed-by: Geert Uytterhoeven > Reviewed-by: Simon Horman >

Re: [PATCH v4 3/9] drivers/firewire/core-iso.c: Convert to use vm_insert_range

2018-12-18 Thread Souptick Joarder
On Tue, Dec 18, 2018 at 4:15 PM Russell King - ARM Linux wrote: > > On Tue, Dec 18, 2018 at 01:52:46AM +0530, Souptick Joarder wrote: > > Convert to use vm_insert_range to map range of kernel memory > > to user vma. > > > > Signed-off-by: Souptick Joarder > > Reviewed-by: Matthew Wilcox > > ---

Re: [PATCH] cifs: check kzalloc return

2018-12-18 Thread Nicholas Mc Guire
; > > > While at it make checkpatch happy by using *ret_buf->crfid.fid > > rather than struct cifs_fid. > > > > Patch was compile tested with: x86_64_defconfig + CIFS=m > > (with some unrelated smatch warnings and some pending cocci fixes) > > >

[v3, PATCH 0/2] add ethernet binding and modify ethernet driver for mt2712

2018-12-18 Thread Biao Huang
changes in v3: resend this series base on the latest net-next tree. changes in v2 as comments from Sean: 1. fix typo. 2. use capital letters for RMII/MII/RGMII in driver and bindings. v1: This new series is the result of discussion in: http://lkml.org/lkml/2018/12/13/1007

Re: [PATCH v15 2/2] Add oom victim's memcg to the oom context information

2018-12-18 Thread Tetsuo Handa
Andrew, will you fold below diff into "mm, oom: add oom victim's memcg to the oom context information" ? >From add1e8daddbfc5186417dbc58e9e11e7614868f8 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Wed, 19 Dec 2018 16:09:31 +0900 Subject: [PATCH] mm, oom: Use pr_cont() in

[v3, PATCH 2/2] net-next: stmmac: dwmac-mediatek: remove fine-tune property

2018-12-18 Thread Biao Huang
1. remove fine-tune property and related setting to simplify the timing adjustment flow. 2. set timing value according to the value from device tree, and will not care whether PHY insert internal delay. Signed-off-by: Biao Huang --- .../net/ethernet/stmicro/stmmac/dwmac-mediatek.c | 71

[v3, PATCH 1/2] net-next: dt-binding: dwmac-mediatek: remove fine-tune property

2018-12-18 Thread Biao Huang
remove fine-tune property in device tree, modify the corresponding description in dt-binding. Signed-off-by: Biao Huang --- .../devicetree/bindings/net/mediatek-dwmac.txt | 31 +++- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git

Re: [PATCH v2 01/12] fs-verity: add a documentation file

2018-12-18 Thread Christoph Hellwig
On Tue, Dec 18, 2018 at 11:16:08PM -0800, Linus Torvalds wrote: > On Tue, Dec 18, 2018, 23:11 Christoph Hellwig > > > > I think the fd would have to be on the same fs for this interface to > > make sense. But it could be an O_TMPFILE one. And given that ext4 > > already supports a variant of

Re: [PATCH v2 01/12] fs-verity: add a documentation file

2018-12-18 Thread Christoph Hellwig
On Tue, Dec 18, 2018 at 07:16:03PM -0500, Theodore Y. Ts'o wrote: > Sure, but what would be the benefit of doing different things on the > back end? I think this is a really more of a philophical objection > than anything else. With both fsverity and fscrypt, well over 95% of > the

RE: [PATCH V2] dt-bindings: timer: gpt: update binding doc

2018-12-18 Thread Anson Huang
Hi, Rob Best Regards! Anson Huang > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: 2018年12月19日 1:12 > To: Anson Huang > Cc: daniel.lezc...@linaro.org; t...@linutronix.de; mark.rutl...@arm.com; > linux-kernel@vger.kernel.org; devicet...@vger.kernel.org;

Re: [PATCH v2 01/12] fs-verity: add a documentation file

2018-12-18 Thread Christoph Hellwig
On Mon, Dec 17, 2018 at 12:00:39PM -0800, Darrick J. Wong wrote: > FWIW, if I were (hypothetically) working on an xfs implementation, I > likely would have settled on passing a reference to a merkle tree > through a (fd, length) pair, because that allows us plenty of options > on the back end: >

Re: [PATCH] fs: fix possible Spectre V1 indexing in __close_fd()

2018-12-18 Thread Greg KH
On Mon, Oct 15, 2018 at 06:54:31AM -0700, Omer Tripp wrote: > Hi Greg and all, > > Here is my analysis of the complete gadget, and looking forward to your > corrections/feedback if there are any inaccuracies: > > >1. > >__close_fd() is reachable via the close() syscall with a

[PATCH v4] powerpc: implement CONFIG_DEBUG_VIRTUAL

2018-12-18 Thread Christophe Leroy
This patch implements CONFIG_DEBUG_VIRTUAL to warn about incorrect use of virt_to_phys() and page_to_phys() Below is the result of test_debug_virtual: [1.438746] WARNING: CPU: 0 PID: 1 at ./arch/powerpc/include/asm/io.h:808 test_debug_virtual_init+0x3c/0xd4 [1.448156] CPU: 0 PID: 1

[PATCH V3] dt-bindings: timer: gpt: update binding doc

2018-12-18 Thread Anson Huang
The i.MX GPT timer driver binding doc is out of date, update it according to current GPT timer driver. Signed-off-by: Anson Huang --- .../devicetree/bindings/timer/fsl,imxgpt.txt | 35 ++ 1 file changed, 29 insertions(+), 6 deletions(-) diff --git

Re: [PATCH v2 01/12] fs-verity: add a documentation file

2018-12-18 Thread Christoph Hellwig
On Mon, Dec 17, 2018 at 10:32:06AM -0800, Eric Biggers wrote: > I don't see how that helps. The Merkle tree can still be too large to fit in > memory. In the worst case, it might not even fit in the address space. And I > don't see how get_user_pages() helps either over just copy_from_user();

Re: [PATCH 2/3] ARM: dts: sun8i: add FriendlyARM NanoPi Duo2

2018-12-18 Thread Maxime Ripard
Hi, On Tue, Dec 18, 2018 at 09:24:56PM +, Karl Palsson wrote: > This is an Allwinner H3 based board, with 512MB ram, a USB OTG port, > microsd slot, an onboard AP6212A wifi/bluetooth module, and a CSI > connector. > > Full details and schematic available from vendor: >

[PATCH v4.19 1/1]: nvmem: imx-ocotp: account for addressing gaps to ensure consistent read/write on i.MX SoCs

2018-12-18 Thread Andrea Barisani
The nvmem-imx-ocotp driver does not currently handle addressing gaps between OTP banks which can be present in i.MX System-on-Chip part numbers. This leads to inconsistencies between the interpretation of the offset argument in read and write operations, not only requiring specific workarounds

Re: [PATCH v2 2/7] dt-bindings: remoteproc: qcom: Add clock bindings for Q6V5

2018-12-18 Thread Sibi Sankar
Hi Rob, Thanks for the review! On 2018-12-18 22:57, Rob Herring wrote: On Mon, Dec 17, 2018 at 03:37:19PM +0530, Sibi Sankar wrote: Add missing clock bindings for Q6V5 MSS on SDM845 SoCs. Signed-off-by: Sibi Sankar --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 10 +++---

Re: [PATCH v3] powerpc: implement CONFIG_DEBUG_VIRTUAL

2018-12-18 Thread Christophe Leroy
On 12/19/2018 06:57 AM, Christophe Leroy wrote: Le 19/12/2018 à 01:26, Michael Ellerman a écrit : Michael Ellerman writes: Christophe Leroy writes: This patch implements CONFIG_DEBUG_VIRTUAL to warn about incorrect use of virt_to_phys() and page_to_phys() This commit is breaking my

Re: [PATCH] sysfs: Disable lockdep for driver bind/unbind files

2018-12-18 Thread Greg Kroah-Hartman
On Tue, Dec 18, 2018 at 09:14:43PM +0100, Daniel Vetter wrote: > This is the much more correct fix for my earlier attempt at: > > https://lkml.org/lkml/2018/12/10/118 > > Short recap: > > - There's not actually a locking issue, it's just lockdep being a bit > too eager to complain about a

Re: [PATCH v3] powerpc: implement CONFIG_DEBUG_VIRTUAL

2018-12-18 Thread Christophe Leroy
Le 19/12/2018 à 01:26, Michael Ellerman a écrit : Michael Ellerman writes: Christophe Leroy writes: This patch implements CONFIG_DEBUG_VIRTUAL to warn about incorrect use of virt_to_phys() and page_to_phys() This commit is breaking my p5020ds booting a 32-bit kernel with: smp:

Re: [PATCH V4 1/3] misc/pvpanic: return 0 for empty body registerfunction

2018-12-18 Thread Greg KH
On Wed, Dec 19, 2018 at 08:11:37AM +0800, peng.h...@zte.com.cn wrote: > >On Tue, Dec 18, 2018 at 05:46:41PM +0800, Peng Hao wrote: > >> Return 0 for empty body register function normally. > >> > >> Signed-off-by: Peng Hao > >> --- > >> QEMU community requires additional PCI devices to simulate

Re: [PATCH v3] regmap: regmap-irq/gpio-max77620: add level-irq support

2018-12-18 Thread Matti Vaittinen
On Tue, Dec 18, 2018 at 11:36:22PM +0800, kbuild test robot wrote: > Hi Matti, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on regmap/for-next] > [also build test ERROR on next-20181218] > [cannot apply to v4.20-rc7] > [if your patch

[PATCH net-next] xfrm6_tunnel: Fix spi check in __xfrm6_tunnel_alloc_spi

2018-12-18 Thread YueHaibing
gcc warn this: net/ipv6/xfrm6_tunnel.c:143 __xfrm6_tunnel_alloc_spi() warn: always true condition '(spi <= 4294967295) => (0-u32max <= u32max)' 'spi' is u32, which always not greater than XFRM6_TUNNEL_SPI_MAX because of wrap around. So the second forloop will never reach. Signed-off-by:

Re: [15/15] dma-mapping: bypass indirect calls for dma-direct

2018-12-18 Thread Christoph Hellwig
On Tue, Dec 18, 2018 at 08:42:46PM +, Robin Murphy wrote: >> [ 16.046084] rk_iommu ff8f3f00.iommu: DMA map error for DT > > Yup, with this patch as-is, anything which isn't behind an IOMMU will be > erroneously banned from DMA entirely - see here: > >

Re: [PATCH v2 5/5] powerpc/perf: Trace imc PMU functions

2018-12-18 Thread Madhavan Srinivasan
On 14/12/18 2:41 PM, Anju T Sudhakar wrote: Add PMU functions to support trace-imc. Reviewed-by: Madhavan Srinivasan Signed-off-by: Anju T Sudhakar --- arch/powerpc/perf/imc-pmu.c | 175 1 file changed, 175 insertions(+) diff --git

Re: [PATCH v2 4/5] powerpc/perf: Trace imc events detection and cpuhotplug

2018-12-18 Thread Madhavan Srinivasan
On 14/12/18 2:41 PM, Anju T Sudhakar wrote: Patch detects trace-imc events, does memory initilizations for each online cpu, and registers cpuhotplug call-backs. Reviewed-by: Madhavan Srinivasan Signed-off-by: Anju T Sudhakar --- arch/powerpc/perf/imc-pmu.c | 91

Re: [PATCH v2 2/5] powerpc/perf: Rearrange setting of ldbar for thread-imc

2018-12-18 Thread Madhavan Srinivasan
On 14/12/18 2:41 PM, Anju T Sudhakar wrote: LDBAR holds the memory address allocated for each cpu. For thread-imc the mode bit (i.e bit 1) of LDBAR is set to accumulation. Currently, ldbar is loaded with per cpu memory address and mode set to accumulation at boot time. To enable trace-imc,

Re: [PATCH v4 perf, bpf-next 5/7] perf util: handle PERF_RECORD_BPF_EVENT

2018-12-18 Thread Song Liu
Please ignore this one. The other 5/7 is the right patch. Thanks, Song > On Dec 18, 2018, at 10:02 PM, Song Liu wrote: > > This patch handles PERF_RECORD_BPF_EVENT in perf record/report. > Specifically, map and symbol are created for PERF_BPF_EVENT_PROG_LOAD, > and removed for

Re: [PATCH v2 1/5] powerpc/include: Add data structures and macros for IMC trace mode

2018-12-18 Thread Madhavan Srinivasan
On 14/12/18 2:41 PM, Anju T Sudhakar wrote: Add the macros needed for IMC (In-Memory Collection Counters) trace-mode and data structure to hold the trace-imc record data. Also, add the new type "OPAL_IMC_COUNTERS_TRACE" in 'opal-api.h', since there is a new switch case added in the opal-calls

Re: [PATCH] vxge: ensure data0 is initialized in when fetching firmware version information

2018-12-18 Thread David Miller
From: Colin King Date: Tue, 18 Dec 2018 15:19:47 + > From: Colin Ian King > > Currently variable data0 is not being initialized so a garbage value is > being passed to vxge_hw_vpath_fw_api and this value is being written to > the rts_access_steer_data0 register. There are other

[PATCH v4 perf, bpf-next 7/7] perf tools: synthesize PERF_RECORD_* for loaded BPF programs

2018-12-18 Thread Song Liu
This patch synthesize PERF_RECORD_KSYMBOL and PERF_RECORD_BPF_EVENT for BPF programs loaded before perf-record. This is achieved by gathering information about all BPF programs via sys_bpf. Signed-off-by: Song Liu --- tools/perf/builtin-record.c | 6 ++ tools/perf/util/bpf-event.c | 204

[PATCH v4 perf, bpf-next 6/7] perf util: handle PERF_RECORD_BPF_EVENT

2018-12-18 Thread Song Liu
This patch adds basic handling of PERF_RECORD_BPF_EVENT. Tracking of PERF_RECORD_BPF_EVENT is OFF by default. Option --bpf-event is added to turn it on. Signed-off-by: Song Liu --- tools/perf/builtin-record.c | 1 + tools/perf/perf.h | 1 + tools/perf/util/Build | 2 ++

Re: [PATCH v3] net/smc: fix TCP fallback socket release

2018-12-18 Thread David Miller
From: Myungho Jung Date: Tue, 18 Dec 2018 09:02:25 -0800 > clcsock can be released while kernel_accept() references it in TCP > listen worker. Also, clcsock needs to wake up before released if TCP > fallback is used and the clcsock is blocked by accept. Add a lock to > safely release clcsock and

[PATCH v4 perf, bpf-next 5/7] perf util: handle PERF_RECORD_KSYMBOL

2018-12-18 Thread Song Liu
This patch handles PERF_RECORD_KSYMBOL in perf record/report. Specifically, map and symbol are created for ksymbol register, and removed for ksymbol unregister. This patch also set perf_event_attr.ksymbol properly. The flag is ON by default. Signed-off-by: Song Liu --- tools/perf/util/event.c

[PATCH v4 perf, bpf-next 5/7] perf util: handle PERF_RECORD_BPF_EVENT

2018-12-18 Thread Song Liu
This patch handles PERF_RECORD_BPF_EVENT in perf record/report. Specifically, map and symbol are created for PERF_BPF_EVENT_PROG_LOAD, and removed for PERF_BPF_EVENT_PROG_UNLOAD. This patch also set perf_event_attr.bpf_event properly. The flag is ON by default. Signed-off-by: Song Liu ---

[PATCH v4 perf, bpf-next 3/7] perf, bpf: introduce PERF_RECORD_BPF_EVENT

2018-12-18 Thread Song Liu
For better performance analysis of BPF programs, this patch introduces PERF_RECORD_BPF_EVENT, a new perf_event_type that exposes BPF program load/unload information to user space. Each BPF program may contain up to BPF_MAX_SUBPROGS (256) sub programs. The following example shows kernel symbols

Re: [PATCH] xen/netfront: tolerate frags with no data

2018-12-18 Thread Juergen Gross
On 19/12/2018 07:00, David Miller wrote: > From: Juergen Gross > Date: Tue, 18 Dec 2018 16:06:19 +0100 > >> At least old Xen net backends seem to send frags with no real data >> sometimes. In case such a fragment happens to occur with the frag limit >> already reached the frontend will BUG

[PATCH v4 perf, bpf-next 0/7] reveal invisible bpf programs

2018-12-18 Thread Song Liu
This set catches symbol for all bpf programs loaded/unloaded before/during/after perf-record run PERF_RECORD_KSYMBOL and PERF_RECORD_BPF_EVENT. PERF_RECORD_KSYMBOL and PERF_RECORD_BPF_EVENT includes key information of a bpf program load and unload. They are sent through perf ringbuffer, and

[PATCH v4 perf, bpf-next 2/7] sync tools/include/uapi/linux/perf_event.h

2018-12-18 Thread Song Liu
sync changes for PERF_RECORD_KSYMBOL Signed-off-by: Song Liu --- tools/include/uapi/linux/perf_event.h | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h index

[PATCH v4 perf, bpf-next 1/7] perf, bpf: Introduce PERF_RECORD_KSYMBOL

2018-12-18 Thread Song Liu
For better performance analysis of dynamically JITed and loaded kernel functions, such as BPF programs, this patch introduces PERF_RECORD_KSYMBOL, a new perf_event_type that exposes kernel symbol register/unregister information to user space. The following data structure is used for

[PATCH v4 perf, bpf-next 4/7] sync tools/include/uapi/linux/perf_event.h

2018-12-18 Thread Song Liu
sync for PERF_RECORD_BPF_EVENT Signed-off-by: Song Liu --- tools/include/uapi/linux/perf_event.h | 29 ++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h index

[PATCH v6 8/8] gpio: pcie-idio-24: Utilize for_each_set_clump8 macro

2018-12-18 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-pcie-idio-24.c | 109 --- 1 file changed, 40 insertions(+), 69

[PATCH v6 5/8] gpio: gpio-mm: Utilize for_each_set_clump8 macro

2018-12-18 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-gpio-mm.c | 71 +++-- 1 file changed, 20 insertions(+), 51

[PATCH v6 6/8] gpio: ws16c48: Utilize for_each_set_clump8 macro

2018-12-18 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-ws16c48.c | 71 ++--- 1 file changed, 19 insertions(+), 52

[PATCH v6 7/8] gpio: pci-idio-16: Utilize for_each_set_clump8 macro

2018-12-18 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-pci-idio-16.c | 73 - 1 file changed, 26 insertions(+), 47

[PATCH v6 4/8] gpio: 104-idi-48: Utilize for_each_set_clump8 macro

2018-12-18 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-104-idi-48.c | 36 +++--- 1 file changed, 7 insertions(+), 29

[PATCH v6 2/8] lib/test_bitmap.c: Add for_each_set_clump8 test cases

2018-12-18 Thread William Breathitt Gray
The introduction of the for_each_set_clump8 macro warrants test cases to verify the implementation. This patch adds test case checks for whether an out-of-bounds clump index is returned, a zero clump is returned, or the returned clump value differs from the expected clump value. Cc: Andy

[PATCH v6 3/8] gpio: 104-dio-48e: Utilize for_each_set_clump8 macro

2018-12-18 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-104-dio-48e.c | 71 ++--- 1 file changed, 20 insertions(+), 51

Re: [PATCH] xen/netfront: tolerate frags with no data

2018-12-18 Thread David Miller
From: Juergen Gross Date: Tue, 18 Dec 2018 16:06:19 +0100 > At least old Xen net backends seem to send frags with no real data > sometimes. In case such a fragment happens to occur with the frag limit > already reached the frontend will BUG currently even if this situation > is easily

[PATCH v6 1/8] bitops: Introduce the for_each_set_clump8 macro

2018-12-18 Thread William Breathitt Gray
This macro iterates for each 8-bit group of bits (clump) with set bits, within a bitmap memory region. For each iteration, "start" is set to the bit offset of the found clump, while the respective clump value is stored to the location pointed by "clump". Additionally, the bitmap_get_value8 and

[PATCH v6 0/8] Introduce the for_each_set_clump8 macro

2018-12-18 Thread William Breathitt Gray
Changes in v6: - Fix typo in for_each_set_clump8 macro definition ('offset' should be 'start') - Fix data type mismatch for format specifier of warning print statements in __check_eq_clump8 - Fix typo in symbol suffix for definition of __check_eq_clump8 - Fix typo in parameter

Re: [PATCH v5 19/25] xtensa: define syscall_get_* functions

2018-12-18 Thread kbuild test robot
Hi Dmitry, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.20-rc7] [cannot apply to next-20181218] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

Re: [RFC PATCH 1/2] mm: swap: check if swap backing device is congested or not

2018-12-18 Thread Yang Shi
On 12/18/18 4:16 PM, Tim Chen wrote: On 12/18/18 3:43 PM, Yang Shi wrote: On 12/18/18 11:29 AM, Tim Chen wrote: On 12/17/18 10:52 PM, Yang Shi wrote: diff --git a/mm/swap_state.c b/mm/swap_state.c index fd2f21e..7cc3c29 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c @@ -538,11

Re: hard-coded limit on unresolved multicast route cache in ipv4/ipmr.c causes slow, unreliable creation of multicast routes on busy networks

2018-12-18 Thread David Miller
From: Sukumar Gopalakrishnan Date: Wed, 19 Dec 2018 10:57:02 +0530 > Hi David, > > There are two patch for this issue: >1) Your changes which removes cache_resolve_queue_len > 2) Hangbin's changes which make cache_resolve_queue_len configurable. > > Which one will be chosen for this

Re: [PATCH net-next] MAINTAINERS: Add a maintainer for Microsemi switches

2018-12-18 Thread David Miller
From: Alexandre Belloni Date: Tue, 18 Dec 2018 15:25:39 +0100 > Microsemi has been bought by Microchip and Microchip is supporting those > switches. > > Signed-off-by: Alexandre Belloni Applied.

Re: [PATCH net] net: phy: Fix the issue that netif always links up after resuming

2018-12-18 Thread David Miller
From: Kunihiko Hayashi Date: Tue, 18 Dec 2018 16:57:04 +0900 > Even though the link is down before entering hibernation, > there is an issue that the network interface always links up after resuming > from hibernation. > > If the link is still down before enabling the network interface, > and

Re: [PATCH v2] include/linux/nodemask.h: Use nr_node_ids (not MAX_NUMNODES) in __nodemask_pr_numnodes()

2018-12-18 Thread kbuild test robot
Hi Waiman, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.20-rc7 next-20181218] [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

Re: [PATCH v12 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-12-18 Thread Viresh Kumar
On 18-12-18, 11:13, Stephen Boyd wrote: > I don't see any failure returned from cpufreq_dt's cpufreq_init() > function. Maybe put a static int counter = 0 and then fail > cpufreq_init() the second time that it's called for the same policy > pointer? I have a system with two policies, so I made it

Re: [v2, PATCH 0/2] add ethernet binding and modify ethernet driver for mt2712

2018-12-18 Thread David Miller
From: Biao Huang Date: Tue, 18 Dec 2018 13:48:14 +0800 > changes in v2 as comments from Sean: > 1. fix typo. > 2. use capital letters for RMII/MII/RGMII in driver and bindings. > > v1: > This new series is the result of discussion in: > http://lkml.org/lkml/2018/12/13/1007 >

[PATCH] ARM: dts: imx6sl: correct PWM ipg clock source

2018-12-18 Thread Anson Huang
>From i.MX6SL Reference Manual, the PWMx's ipg clock for registers access is from perclk, correct them. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sl.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/imx6sl.dtsi

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

2018-12-18 Thread Stephen Rothwell
gt; >> This due to my use of -Wimplicit-fallthrough. This is new code. The > >> warning can be suppressed by adding a comment like /* fall through */ > >> at the appropriate places to indicate that the fallthrough is intended. > > > > I am still seeing

Re: [PATCH] lib/rhashtable: Fix work initialization in rhashtable_init()

2018-12-18 Thread David Miller
From: Bart Van Assche Date: Mon, 17 Dec 2018 13:40:58 -0800 > The test_insert_dup() function from lib/test_rhashtable.c passes a > pointer to a stack object to rhltable_init(). Avoid that the following > is reported with object debugging enabled while running the selftest > from

Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2018-12-18 Thread Dan Williams
On Tue, Dec 18, 2018 at 7:03 PM Jason Gunthorpe wrote: > > On Wed, Dec 19, 2018 at 10:42:54AM +1100, Dave Chinner wrote: > > > Essentially, what we are talking about is how to handle broken > > hardware. I say we should just brun it with napalm and thermite > > (i.e. taint the kernel with

[PATCH] pwm: imx: add ipg clock operation

2018-12-18 Thread Anson Huang
i.MX PWM module's ipg_clk_s is for PWM register access, on most of i.MX SoCs, this ipg_clk_s is from system ipg clock or perclk which is always enabled, but on i.MX7D, the ipg_clk_s is from PWM1_CLK_ROOT which is controlled by CCGR132, that means the CCGR132 MUST be enabled first before accessing

Re: [PATCH v17 18/23] platform/x86: Intel SGX driver

2018-12-18 Thread Jarkko Sakkinen
On Wed, Dec 19, 2018 at 06:47:32AM +0200, Jarkko Sakkinen wrote: > On Tue, Dec 18, 2018 at 07:44:18AM -0800, Sean Christopherson wrote: > > My fd/inode knowledge is lacking, to say the least. Whatever works, so > > long as we have a way to uniquely identify enclaves. > > I will simply trial and

Re: [PATCH v17 18/23] platform/x86: Intel SGX driver

2018-12-18 Thread Jarkko Sakkinen
On Mon, Dec 17, 2018 at 09:55:08PM -0800, Andy Lutomirski wrote: > On Thu, Nov 15, 2018 at 5:08 PM Jarkko Sakkinen > wrote: > > > > Intel Software Guard eXtensions (SGX) is a set of CPU instructions that > > can be used by applications to set aside private regions of code and > > data. The code

Re: [PATCH v17 18/23] platform/x86: Intel SGX driver

2018-12-18 Thread Jarkko Sakkinen
On Wed, Dec 19, 2018 at 07:00:47AM +0200, Jarkko Sakkinen wrote: > On Tue, Dec 18, 2018 at 10:53:49AM -0800, Sean Christopherson wrote: > > What if we re-organize the ioctls in such a way that we leave open the > > possibility of allocating raw EPC for KVM via /dev/sgx? I'm not 100% > > positive

[PATCH] drivers/regulator: fix a missing check of return value

2018-12-18 Thread Kangjie Lu
If palmas_smps_read() fails, we should not use the read data in "reg" which may contain random value. The fix inserts a check for the return value of palmas_smps_read(): If it fails, we return the error code upstream and stop using "reg". Signed-off-by: Kangjie Lu ---

Re: [RFC PATCH v5 0/5] x86: Add vDSO exception fixup for SGX

2018-12-18 Thread Jarkko Sakkinen
On Wed, Dec 19, 2018 at 06:43:46AM +0200, Jarkko Sakkinen wrote: > On Tue, Dec 18, 2018 at 07:08:15AM -0800, Sean Christopherson wrote: > > On Tue, Dec 18, 2018 at 06:18:15AM +0200, Jarkko Sakkinen wrote: > > > On Fri, Dec 14, 2018 at 01:57:24PM -0800, Sean Christopherson wrote: > > > >

Re: [PATCH v17 18/23] platform/x86: Intel SGX driver

2018-12-18 Thread Jarkko Sakkinen
On Tue, Dec 18, 2018 at 10:53:49AM -0800, Sean Christopherson wrote: > What if we re-organize the ioctls in such a way that we leave open the > possibility of allocating raw EPC for KVM via /dev/sgx? I'm not 100% > positive this approach will work[1], but conceptually it fits well with > KVM's

Re: [PATCH v17 18/23] platform/x86: Intel SGX driver

2018-12-18 Thread Jarkko Sakkinen
On Tue, Dec 18, 2018 at 07:44:18AM -0800, Sean Christopherson wrote: > My fd/inode knowledge is lacking, to say the least. Whatever works, so > long as we have a way to uniquely identify enclaves. I will simply trial and error :-) I think it should work since it does own an address space, but

[v5] PCI: imx: make msi work without CONFIG_PCIEPORTBUS=y

2018-12-18 Thread Richard Zhu
Assertion of the MSI Enable bit of RC's MSI CAP is mandatory required to trigger MSI on i.MX6 PCIe. This bit would be asserted when CONFIG_PCIEPORTBUS=y. Thus, the MSI works fine on i.MX6 PCIe before the commit "f3fdfc4". Assert it unconditionally when MSI is enabled. Otherwise, the MSI wouldn't

Re: [RFC PATCH v5 0/5] x86: Add vDSO exception fixup for SGX

2018-12-18 Thread Jarkko Sakkinen
On Tue, Dec 18, 2018 at 07:08:15AM -0800, Sean Christopherson wrote: > On Tue, Dec 18, 2018 at 06:18:15AM +0200, Jarkko Sakkinen wrote: > > On Fri, Dec 14, 2018 at 01:57:24PM -0800, Sean Christopherson wrote: > > > __vdso_sgx_enter_enclave() gets another rewrite, this time to strip > > > it down

Re: [PATCH] powerpc/prom: move the device tree if not in declared memory.

2018-12-18 Thread Michael Ellerman
Christophe Leroy writes: > If the device tree doesn't reside in the memory which is declared > inside it, it has to be moved as well as this memory will not be > mapped by the kernel. I worry this will break some obscure platform, but I'll merge it anyway and we'll see :) cheers > diff --git

Re: [PATCH v5 1/2] scsi: hisi_sas: Add support for DIF feature for v2 hw

2018-12-18 Thread Martin K. Petersen
John, > From: Xiang Chen > > For v3 hw, we support DIF operation for SAS, but not SATA. > > In addition, DIF CRC16 is supported. > > This patchset adds the SW support for the described features. The main > components are as follows: > - Get protection mask from module param > - Fill PI fields

linux-next: build failure after merge of the kvm tree

2018-12-18 Thread Stephen Rothwell
Hi all, After merging the kvm tree, today's linux-next build (x86_64 allmodconfig) failed like this: arch/x86/kvm/vmx/nested.c: In function 'prepare_vmcs02_full': arch/x86/kvm/vmx/nested.c:2242:6: error: implicit declaration of function 'kvm_mpx_supported'; did you mean 'vmx_mpx_supported'?

Re: Fixing MIPS delay slot emulation weakness?

2018-12-18 Thread Paul Burton
Hello, On Sat, Dec 15, 2018 at 11:19:37AM -0800, Andy Lutomirski wrote: > The really simple but possibly suboptimal fix is to get rid of > VM_WRITE and to use get_user_pages(..., FOLL_FORCE) to write to it. I actually wound up trying this route because it seemed like it would produce a nice

Re: [RESEND PATCH v2] megaraid: fix out-of-bound array accesses

2018-12-18 Thread Martin K. Petersen
> diff --git a/drivers/scsi/megaraid/megaraid_sas_fp.c > b/drivers/scsi/megaraid/megaraid_sas_fp.c > index 59ecbb3b53b5..a33628550425 100644 > --- a/drivers/scsi/megaraid/megaraid_sas_fp.c > +++ b/drivers/scsi/megaraid/megaraid_sas_fp.c > @@ -1266,7 +1266,7 @@ void

Re: [PATCH] cifs: fix rmdir + azure + compounding regression

2018-12-18 Thread Steve French
Updated the patch to merge it with mine. This will need to go in ASAP to avoid the regression. Running additional functional tests on it and resending to get more eyes on it. On Tue, Dec 18, 2018 at 9:57 PM Ronnie Sahlberg wrote: > > When we send a SET_INFO command for file disposition, this

linux-next: manual merge of the kvm tree with the tip tree

2018-12-18 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in: arch/x86/kvm/x86.c between commit: eb012ef3b4e3 ("x86: Remove Intel MPX") from the tip tree and commit: b666a4b69739 ("kvm: x86: Dynamically allocate guest_fpu") from the kvm tree. I fixed it up (the former removed

Re: WARNING in __rcu_read_unlock

2018-12-18 Thread Cong Wang
On Tue, Dec 18, 2018 at 4:40 AM Stefano Brivio wrote: > Not as far as I know. The selftests checking this path, by design, only > use supported configurations, they don't forge packets. > > Maybe it would be nice to have a semi-automated way to isolate and > describe/name specific conditions

  1   2   3   4   5   6   7   8   9   10   >