Re: [PATCH v9 4/4] s390: ap: kvm: Enable PQAP/AQIC facility for the guest

2019-06-26 Thread Christian Borntraeger
On 26.06.19 23:12, Tony Krowiak wrote: > On 6/25/19 4:15 PM, Christian Borntraeger wrote: >> >> >> On 25.06.19 22:13, Christian Borntraeger wrote: >>> >>> >>> On 21.05.19 17:34, Pierre Morel wrote: AP Queue Interruption Control (AQIC) facility gives the guest the possibility to control

Re: [PATCH v3 6/7] x86/smpboot: introduce per-cpu variable for HT siblings

2019-06-26 Thread Thomas Gleixner
On Thu, 27 Jun 2019, Thomas Gleixner wrote: > On Wed, 26 Jun 2019, subhra mazumdar wrote: > > > Introduce a per-cpu variable to keep the number of HT siblings of a cpu. > > This will be used for quick lookup in select_idle_cpu to determine the > > limits of search. > > Why? The number of sibling

Re: [PATCH v3 6/7] x86/smpboot: introduce per-cpu variable for HT siblings

2019-06-26 Thread Thomas Gleixner
On Wed, 26 Jun 2019, subhra mazumdar wrote: > Introduce a per-cpu variable to keep the number of HT siblings of a cpu. > This will be used for quick lookup in select_idle_cpu to determine the > limits of search. Why? The number of siblings is constant at least today unless you play silly cpu hotp

KASAN: use-after-free Read in xlog_alloc_log

2019-06-26 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:1dd45f17 Add linux-next specific files for 20190626 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=172479e9a0 kernel config: https://syzkaller.appspot.com/x/.config?x=c1222640552e42a5

KASAN: use-after-free Write in xfrm_policy_flush

2019-06-26 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:249155c2 Merge branch 'parisc-5.2-4' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10f1198da0 kernel config: https://syzkaller.appspot.com/x/.config?x=9a31528e58cc12e2 da

Re: [PATCH] soc: imx-scu: Add SoC UID(unique identifier) support

2019-06-26 Thread Daniel Baluta
On Thu, Jun 27, 2019 at 3:48 AM Anson Huang wrote: > > Hi, Daniel > > > -Original Message- > > From: Daniel Baluta > > Sent: Wednesday, June 26, 2019 8:42 PM > > To: Anson Huang > > Cc: Shawn Guo ; Sascha Hauer > > ; Pengutronix Kernel Team > > ; Fabio Estevam ; Aisheng > > Dong ; Abel V

Re: [PATCH] staging: rtl8723bs: hal: sdio_halinit: Remove set but unused varilable pHalData

2019-06-26 Thread Dan Carpenter
On Wed, Jun 26, 2019 at 11:14:59PM +0530, Hariprasad Kelam wrote: > @@ -1433,7 +1430,6 @@ static void SetHwReg8723BS(struct adapter *padapter, u8 > variable, u8 *val) > #endif > #endif > > - pHalData = GET_HAL_DATA(padapter); > > switch (variable) { We need to delete one of those

Re: [PATCH v9 11/12] soc: mediatek: cmdq: add cmdq_dev_get_client_reg function

2019-06-26 Thread CK Hu
Hi, Bibby: On Thu, 2019-06-27 at 14:19 +0800, Bibby Hsieh wrote: > GCE cannot know the register base address, this function > can help cmdq client to get the cmdq_client_reg structure. > > Signed-off-by: Bibby Hsieh > --- > drivers/soc/mediatek/mtk-cmdq-helper.c | 24 >

Re: [PATCH v7 4/4] uprobe: use FOLL_SPLIT_PMD instead of FOLL_SPLIT

2019-06-26 Thread Song Liu
> On Jun 25, 2019, at 11:00 PM, Srikar Dronamraju > wrote: > > * Song Liu [2019-06-25 16:53:25]: > >> This patches uses newly added FOLL_SPLIT_PMD in uprobe. This enables easy >> regroup of huge pmd after the uprobe is disabled (in next patch). >> >> Acked-by: Kirill A. Shutemov >> Signed

Re: [PATCH] media: staging/imx: Fix NULL deref in find_pipeline_entity()

2019-06-26 Thread Philipp Zabel
On Wed, 2019-06-26 at 11:52 -0700, Steve Longerbeam wrote: > Fix a cut&paste error in find_pipeline_entity(). The start entity must be > passed to media_entity_to_video_device() in find_pipeline_entity(), not > pad->entity. The pad is only put to use later, after determining the start > entity is n

Re: [PATCH v2 3/5] OPP: Add support for parsing the interconnect bandwidth

2019-06-26 Thread Sibi Sankar
Hey Georgi, In addition to Viresh's comments I found a few more while testing the series on SDM845. On 4/24/19 11:22 AM, Viresh Kumar wrote: On 23-04-19, 16:28, Georgi Djakov wrote: The OPP bindings now support bandwidth values, so add support to parse it from device tree and store it into the

Re: [RFC PATCH v3 0/4] Deliver vGPU display vblank event to userspace

2019-06-26 Thread Gerd Hoffmann
Hi, > Instead of delivering page flip events, we choose to post display vblank > event. Handling page flip events for both primary plane and cursor plane > may make user space quite busy, although we have the mask/unmask mechansim > for mitigation. Besides, there are some cases that guest app on

[PATCH v9 09/12] soc: mediatek: cmdq: define the instruction struct

2019-06-26 Thread Bibby Hsieh
Define an instruction structure for gce driver to append command. This structure can make the client's code more readability. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 103 +++ include/linux/mailbox/mtk-cmdq-mailbox.h | 2

Re: [RFC PATCH v3 2/4] vfio: Introduce vGPU display irq type

2019-06-26 Thread Gerd Hoffmann
On Thu, Jun 27, 2019 at 11:38:00AM +0800, Tina Zhang wrote: > Introduce vGPU specific irq type VFIO_IRQ_TYPE_GFX, and > VFIO_IRQ_SUBTYPE_GFX_DISPLAY_IRQ as the subtype for vGPU display > > Signed-off-by: Tina Zhang > --- > include/uapi/linux/vfio.h | 3 +++ > 1 file changed, 3 insertions(+) > >

[PATCH 2/2] net: macb: Fix SUBNS increment and increase resolution

2019-06-26 Thread Harini Katakam
The subns increment register has 24 bits as follows: RegBit[15:0] = Subns[23:8]; RegBit[31:24] = Subns[7:0] Fix the same in the driver and increase sub ns resolution to the best capable, 24 bits. This should be the case on all GEM versions that this PTP driver supports. Signed-off-by: Harini Kata

[PATCH v5 4/7] perf diff: Use hists to manage basic blocks per symbol

2019-06-26 Thread Jin Yao
The hist__account_cycles() can account cycles per basic block. The basic block information is saved in cycles_hist structure. This patch processes each symbol, get basic blocks from cycles_hist and add the basic block entries to a new hists (in 'struct block_hist'). Using a hists is because we nee

[PATCH v9 04/12] mailbox: mediatek: cmdq: move the CMDQ_IRQ_MASK into cmdq driver data

2019-06-26 Thread Bibby Hsieh
The interrupt mask and thread number has positive correlation, so we move the CMDQ_IRQ_MASK into cmdq driver data and calculate it by thread number. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/mailbox/mtk-cmdq-mailbox.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletio

[PATCH 1/2] net: macb: Add separate definition for PPM fraction

2019-06-26 Thread Harini Katakam
The scaled ppm parameter passed to _adjfine() contains a 16 bit fraction. This just happens to be the same as SUBNSINCR_SIZE now. Hence define this separately. Signed-off-by: Harini Katakam --- drivers/net/ethernet/cadence/macb.h | 3 +++ drivers/net/ethernet/cadence/macb_ptp.c | 2 +- 2 fil

[PATCH v9 12/12] arm64: dts: add gce node for mt8183

2019-06-26 Thread Bibby Hsieh
add gce device node for mt8183 Signed-off-by: Bibby Hsieh --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 08274bfcebd8..42b7cc9e7304 100644 ---

[PATCH v9 11/12] soc: mediatek: cmdq: add cmdq_dev_get_client_reg function

2019-06-26 Thread Bibby Hsieh
GCE cannot know the register base address, this function can help cmdq client to get the cmdq_client_reg structure. Signed-off-by: Bibby Hsieh --- drivers/soc/mediatek/mtk-cmdq-helper.c | 24 include/linux/soc/mediatek/mtk-cmdq.h | 21 + 2 files chan

[PATCH v9 05/12] mailbox: mediatek: cmdq: support mt8183 gce function

2019-06-26 Thread Bibby Hsieh
add mt8183 compatible name for supporting gce function Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/mailbox/mtk-cmdq-mailbox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c index 8fddd26288e8..69daaadc3a

[PATCH v9 00/12] support gce on mt8183 platform

2019-06-26 Thread Bibby Hsieh
Changes since v8: - change the error return code in cmdq_dev_get_client_reg() Changes since v7: - remove the memory allocation out of cmdq_dev_get_client_reg() - rebase onto 5.2-rc1 Changes since v6: - remove cmdq_dev_get_event function and gce event property - separate some changes to indep

[PATCH 0/2] Sub ns increment fixes in Macb PTP

2019-06-26 Thread Harini Katakam
The subns increment register fields are not captured correctly in the driver. Fix the same and also increase the subns incr resolution. Sub ns resolution was increased to 24 bits in r1p06f2 version. To my knowledge, this PTP driver, with its current BD time stamp implementation, is only useful to

[PATCH v5 6/7] perf diff: Print the basic block cycles diff

2019-06-26 Thread Jin Yao
$ perf record -b ./div $ perf record -b ./div Following is the default perf diff output $ perf diff # Event 'cycles' # # Baseline Delta Abs Shared Object Symbol # . .. # 48.75% +0.33% div [

[PATCH v9 08/12] soc: mediatek: cmdq: change the type of input parameter

2019-06-26 Thread Bibby Hsieh
According to the cmdq hardware design, the subsys is u8, the offset is u16 and the event id is u16. This patch changes the type of subsys, offset and event id to the correct type. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 10 +- include/l

[PATCH v9 07/12] soc: mediatek: cmdq: reorder the parameter

2019-06-26 Thread Bibby Hsieh
The order of gce instructions is [subsys offset value] so reorder the parameter of cmdq_pkt_write_mask and cmdq_pkt_write function. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 6 +++--- include/linux/soc/mediatek/mtk-cmdq.h | 10 +- 2 fil

[PATCH v5 5/7] perf diff: Link same basic blocks among different data

2019-06-26 Thread Jin Yao
The target is to compare the performance difference (cycles diff) for the same basic blocks in different data files. The same basic block means same function, same start address and same end address. This patch finds the same basic blocks from different data files and link them together and resort

[PATCH v9 10/12] soc: mediatek: cmdq: add polling function

2019-06-26 Thread Bibby Hsieh
add polling function in cmdq helper functions Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 28 include/linux/mailbox/mtk-cmdq-mailbox.h | 1 + include/linux/soc/mediatek/mtk-cmdq.h| 15 + 3 files changed,

[PATCH v5 0/7] perf diff: diff cycles at basic block level

2019-06-26 Thread Jin Yao
In some cases small changes in hot loops can show big differences. But it's difficult to identify these differences. perf diff currently can only diff symbols (functions). We can also expand it to diff cycles of individual programs blocks as reported by timed LBR. This would allow to identify chan

[PATCH v9 06/12] soc: mediatek: cmdq: clear the event in cmdq initial flow

2019-06-26 Thread Bibby Hsieh
GCE hardware stored event information in own internal sysram, if the initial value in those sysram is not zero value it will cause a situation that gce can wait the event immediately after client ask gce to wait event but not really trigger the corresponding hardware. In order to make sure that th

[PATCH v9 02/12] dt-binding: gce: add gce header file for mt8183

2019-06-26 Thread Bibby Hsieh
Add documentation for the mt8183 gce. Add gce header file defined the gce hardware event, subsys number and constant for mt8183. Signed-off-by: Bibby Hsieh Reviewed-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt | 6 +- include/dt-bindings/gce/mt8183-gce.h | 177 +

[PATCH v5 1/7] perf util: Create block_info structure

2019-06-26 Thread Jin Yao
perf diff currently can only diff symbols(functions). We should expand it to diff cycles of individual programs blocks as reported by timed LBR. This would allow to identify changes in specific code accurately. We need a new structure to maintain the basic block information, such as, symbol(functi

[PATCH v5 7/7] perf diff: Documentation -c cycles option

2019-06-26 Thread Jin Yao
Documentation the new computation selection 'cycles'. v4: --- Change the column 'Block cycles diff [start:end]' to '[Program Block Range] Cycles Diff' Signed-off-by: Jin Yao --- tools/perf/Documentation/perf-diff.txt | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-)

[PATCH v5 2/7] perf util: Add block_info in hist_entry

2019-06-26 Thread Jin Yao
The block_info contains the program basic block information, i.e, contains the start address and the end address of this basic block and how much cycles it takes. We need to compare, sort and even print out the basic block by some orders, i.e. sort by cycles. For this purpose, we add block_info fi

[PATCH v9 03/12] dt-binding: gce: add binding for gce client reg property

2019-06-26 Thread Bibby Hsieh
cmdq driver provide a function that get the relationship of sub system number from device node for client. add specification for #subsys-cells, mediatek,gce-client-reg. Signed-off-by: Bibby Hsieh --- .../devicetree/bindings/mailbox/mtk-gce.txt| 18 ++ 1 file changed, 14 inser

[PATCH v9 01/12] dt-binding: gce: remove thread-num property

2019-06-26 Thread Bibby Hsieh
"thread-num" is an unused property so we remove it from example. Signed-off-by: Bibby Hsieh Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/mailbox/mtk-gce.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mailbox/mtk-gce.txt b/Documentatio

[PATCH v5 3/7] perf diff: Check if all data files with branch stacks

2019-06-26 Thread Jin Yao
We will expand perf diff to support diff cycles of individual programs blocks, so it requires all data files having branch stacks. This patch checks HEADER_BRANCH_STACK in header, and only set the flag has_br_stack when HEADER_BRANCH_STACK are set in all data files. v2: --- Move check_file_brs

Re: [RFC PATCH v3 1/4] vfio: Define device specific irq type capability

2019-06-26 Thread Gerd Hoffmann
Hi, > +struct vfio_irq_info_cap_type { > + struct vfio_info_cap_header header; > + __u32 type; /* global per bus driver */ > + __u32 subtype; /* type specific */ Do we really need both type and subtype? cheers, Gerd

[PATCHv1] ARM64: defconfig: Adding LEDS_TRIGGERS_TIMER

2019-06-26 Thread Ong, Hean Loong
This is to add LEDS_TRIGGERS_TIMER for blinking LED controls upon simple boot upon ARM devices Ong, Hean Loong (1): ARM64: defconfig: Add LEDS_TRIGGERS_TIMER for blinking leds arch/arm64/configs/defconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-)

[PATCHv1] ARM64: defconfig: Add LEDS_TRIGGERS_TIMER for blinking leds

2019-06-26 Thread Ong, Hean Loong
Adding LED Triggers Timers for LED blinking support on ARM devices Signed-off-by: Ong, Hean Loong --- arch/arm64/configs/defconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 4d58351..6fbd651 100644 --

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

2019-06-26 Thread Keerthy
On 27/06/19 10:41 AM, Stephen Rothwell wrote: Hi Lee, After merging the mfd tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/regulator/lp87565-regulator.c: In function 'lp87565_regulator_probe': drivers/regulator/lp87565-regulator.c:182:11: warning: this st

Re: [PATCH v2 2/5] interconnect: Add of_icc_get_by_index() helper function

2019-06-26 Thread Sibi Sankar
Hey Georgi, I heard there is a follow up discussion planned to finalize on the which approach to follow. If we do end up with your series, I found some fixes that you might want to use when you re-post. On 2019-05-07 17:29, Sibi Sankar wrote: Hey Georgi, On 4/23/19 6:58 PM, Georgi Djakov wrote

Re: [PATCH] recordmcount: Fix spurious mcount entries on powerpc

2019-06-26 Thread Michael Ellerman
"Naveen N. Rao" writes: > The recent change enabling HAVE_C_RECORDMCOUNT on powerpc started > showing the following issue: > > # modprobe kprobe_example >ftrace-powerpc: Not expected bl: opcode is 3c4c0001 >WARNING: CPU: 0 PID: 227 at kernel/trace/ftrace.c:2001 > ftrace_bug+0x90/0x318 >

Re: [PATCH] scsi: uapi: ufs: Fix SPDX license identifier

2019-06-26 Thread Avri Altman
A gentle ping. Thanks, Avri From: Avri Altman Sent: Wednesday, June 12, 2019 4:34:37 PM To: James E.J. Bottomley; Martin K. Petersen; linux-s...@vger.kernel.org; linux-kernel@vger.kernel.org; Arnd Bergmann; Pedro Sousa; Alim Akhtar Cc: Avi Shchislowski

[PATCH v4 2/2] fpga: dfl: fme: add performance reporting support

2019-06-26 Thread Wu Hao
This patch adds support for performance reporting private feature for FPGA Management Engine (FME). Now it supports several different performance counters, including 'basic', 'cache', 'fabric', 'vtd' and 'vtd_sip'. It allows user to use standard linux tools to access these performance counters. e.

Re: [PATCH] ALSA: hda: Use correct start/count for sysfs init

2019-06-26 Thread Takashi Iwai
On Wed, 26 Jun 2019 23:59:33 +0200, Evan Green wrote: > > On Wed, Jun 26, 2019 at 2:16 PM Takashi Iwai wrote: > > > > On Wed, 26 Jun 2019 22:34:28 +0200, > > Evan Green wrote: > > > > > > On Wed, Jun 26, 2019 at 1:27 AM Takashi Iwai wrote: > > > > > > > > On Tue, 25 Jun 2019 23:54:18 +0200, > >

[PATCH v4 1/2] Documentation: fpga: dfl: add description for performance reporting support

2019-06-26 Thread Wu Hao
From: Xu Yilun This patch adds description for performance reporting support for Device Feature List (DFL) based FPGA. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao --- Documentation/fpga/dfl.txt | 83 ++ 1 file changed, 83 insertions(+) diff --git

[PATCH v4 0/2] add performance reporting support to FPGA DFL drivers

2019-06-26 Thread Wu Hao
This patchset adds performance reporting support for FPGA DFL drivers. It introduces one pmu to expose userspace interfaces via standard perf API. User could use standard perf tool to access perf events exposed via pmu. This patchset is splitted from patchset[1] for better review, and version 3 pa

Re: BUG: unable to handle kernel paging request in tls_prots

2019-06-26 Thread syzbot
syzbot has bisected this bug to: commit e9db4ef6bf4ca9894bb324c76e01b8f1a16b2650 Author: John Fastabend Date: Sat Jun 30 13:17:47 2018 + bpf: sockhash fix omitted bucket lock in sock_close bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=148e8665a0 start commit: 904

[PATCHv5] mm/gup: speed up check_and_migrate_cma_pages() on huge page

2019-06-26 Thread Pingfan Liu
Both hugetlb and thp locate on the same migration type of pageblock, since they are allocated from a free_list[]. Based on this fact, it is enough to check on a single subpage to decide the migration type of the whole huge page. By this way, it saves (2M/4K - 1) times loop for pmd_huge on x86, simi

[PATCH] x86/boot: Make gdt 8-byte aligned

2019-06-26 Thread Xiaoyao Li
When loading segment descriptor, it uses lock implicitly. Align gdt here to avoid potential split lock from crossing cache lines case. Signed-off-by: Xiaoyao Li --- arch/x86/boot/compressed/head_64.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x

[Linux-kernel-mentees][PATCH v3] nl80211: Fix undefined behavior in bit shift

2019-06-26 Thread Jiunn Chang
Shifting signed 32-bit value by 31 bits is undefined. Changing most significant bit to unsigned. Signed-off-by: Jiunn Chang --- Changes included in v3: - remove change log from patch description Changes included in v2: - use subsystem specific subject lines - CC required mailing lists i

[Linux-kernel-mentees][PATCH v3] packet: Fix undefined behavior in bit shift

2019-06-26 Thread Jiunn Chang
Shifting signed 32-bit value by 31 bits is undefined. Changing most significant bit to unsigned. Signed-off-by: Jiunn Chang --- Changes included in v3: - remove change log from patch description Changes included in v2: - use subsystem specific subject lines - CC required mailing lists i

[PATCH v4 05/15] Documentation: fpga: dfl: add descriptions for virtualization and new interfaces.

2019-06-26 Thread Wu Hao
This patch adds virtualization support description for DFL based FPGA devices (based on PCIe SRIOV), and introductions to new interfaces added by new dfl private feature drivers. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull --- Documentation/fpga/dfl.txt | 101

[PATCH v4 13/15] fpga: dfl: afu: add STP (SignalTap) support

2019-06-26 Thread Wu Hao
STP (SignalTap) is one of the private features under the port for debugging. This patch adds private feature driver support for it to allow userspace applications to mmap related mmio region and provide STP service. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by

[PATCH v4 08/15] fpga: dfl: afu: add AFU state related sysfs interfaces

2019-06-26 Thread Wu Hao
This patch introduces more sysfs interfaces for Accelerated Function Unit (AFU). These interfaces allow users to read current AFU Power State (APx), read / clear AFU Power (APx) events which are sticky to identify transient APx state, and manage AFU's LTR (latency tolerance reporting). Signed-off-

[PATCH v4 10/15] fpga: dfl: add id_table for dfl private feature driver

2019-06-26 Thread Wu Hao
This patch adds id_table for each dfl private feature driver, it allows to reuse same private feature driver to match and support multiple dfl private features. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by: Alan Tull --- drivers/fpga/dfl-afu-main.c | 14

[PATCH v4 12/15] fpga: dfl: afu: add error reporting support.

2019-06-26 Thread Wu Hao
Error reporting is one important private feature, it reports error detected on port and accelerated function unit (AFU). It introduces several sysfs interfaces to allow userspace to check and clear errors detected by hardware. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull --

[PATCH v4 09/15] fpga: dfl: afu: add userclock sysfs interfaces.

2019-06-26 Thread Wu Hao
This patch introduces userclock sysfs interfaces for AFU, user could use these interfaces for clock setting to AFU. Please note that, this is only working for port header feature with revision 0, for later revisions, userclock setting is moved to a separated private feature, so one revision sysfs

[PATCH v4 14/15] fpga: dfl: fme: add capability sysfs interfaces

2019-06-26 Thread Wu Hao
This patch adds 3 read-only sysfs interfaces for FPGA Management Engine (FME) block for capabilities including cache_size, fabric_version and socket_id. Signed-off-by: Luwei Kang Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull --- v3: replace scnprintf with sprintf in sysfs i

[PATCH v4 11/15] fpga: dfl: afu: export __port_enable/disable function.

2019-06-26 Thread Wu Hao
As these two functions are used by other private features. e.g. in error reporting private feature, it requires to check port status and reset port for error clearing. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by: Alan Tull --- drivers/fpga/dfl-afu-main.c |

[PATCH v4 02/15] fpga: dfl: fme: remove copy_to_user() in ioctl for PR

2019-06-26 Thread Wu Hao
This patch removes copy_to_user() code in partial reconfiguration ioctl, as it's useless as user never needs to read the data structure after ioctl. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by: Alan Tull --- v2: clean up code split from patch 2 in v1 patchse

[PATCH v4 01/15] fpga: dfl-fme-mgr: fix FME_PR_INTFC_ID register address.

2019-06-26 Thread Wu Hao
FME_PR_INTFC_ID is used as compat_id for fpga manager and region, but high 64 bits and low 64 bits of the compat_id are swapped by mistake. This patch fixes this problem by fixing register address. Signed-off-by: Wu Hao Acked-by: Alan Tull Acked-by: Moritz Fischer --- drivers/fpga/dfl-fme-mgr.

[PATCH v4 07/15] fpga: dfl: pci: enable SRIOV support.

2019-06-26 Thread Wu Hao
This patch enables the standard sriov support. It allows user to enable SRIOV (and VFs), then user could pass through accelerators (VFs) into virtual machine or use VFs directly in host. Signed-off-by: Zhang Yi Z Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull Acked-by: Morit

[PATCH v4 00/15] add new features for FPGA DFL drivers

2019-06-26 Thread Wu Hao
This patchset adds more features support for FPGA Device Feature List (DFL) drivers, including PR enhancement, virtualization support based on PCIe SRIOV, private features of Port, private features of FME, and enhancement to DFL framework. Please refer to details in below list. Main changes from v

[PATCH v4 15/15] fpga: dfl: fme: add global error reporting support

2019-06-26 Thread Wu Hao
This patch adds support for global error reporting for FPGA Management Engine (FME), it introduces sysfs interfaces to report different error detected by the hardware, and allow user to clear errors or inject error for testing purpose. Signed-off-by: Luwei Kang Signed-off-by: Ananda Ravuri Signe

[PATCH v4 04/15] fpga: dfl: fme: support 512bit data width PR

2019-06-26 Thread Wu Hao
In early partial reconfiguration private feature, it only supports 32bit data width when writing data to hardware for PR. 512bit data width PR support is an important optimization for some specific solutions (e.g. XEON with FPGA integrated), it allows driver to use AVX512 instruction to improve the

[PATCH v4 06/15] fpga: dfl: fme: add DFL_FPGA_FME_PORT_RELEASE/ASSIGN ioctl support.

2019-06-26 Thread Wu Hao
In order to support virtualization usage via PCIe SRIOV, this patch adds two ioctls under FPGA Management Engine (FME) to release and assign back the port device. In order to safely turn Port from PF into VF and enable PCIe SRIOV, it requires user to invoke this PORT_RELEASE ioctl to release port f

[PATCH v4 03/15] fpga: dfl: fme: align PR buffer size per PR datawidth

2019-06-26 Thread Wu Hao
Current driver checks if input bitstream file size is aligned or not per PR data width (default 32bits). It requires one additional step for end user when they generate the bitstream file, padding extra zeros to bitstream file to align its size per PR data width, but they don't have to as hardware

Re: [PATCH V2 2/5] cpufreq: Replace few CPUFREQ_CONST_LOOPS checks with has_target()

2019-06-26 Thread Viresh Kumar
On 20-06-19, 08:35, Viresh Kumar wrote: > > CPUFREQ_CONST_LOOPS was introduced in a very old commit from pre-2.6 > > kernel release commit 6a4a93f9c0d5 ("[CPUFREQ] Fix 'out of sync' > > issue"). > > > > Probably the initial idea was to just avoid these checks for set_policy > > type drivers and th

Re: [GIT PULL] fixes for v5.2-rc7

2019-06-26 Thread Christian Brauner
Linux 5.2-rc6 (2019-06-22 16:01:36 -0700) > > are available in the Git repository at: > > g...@gitolite.kernel.org:pub/scm/linux/kernel/git/brauner/linux > tags/for-linus-20190626 > > for you to fetch changes up to bee19cd8f241ab3cd1bf79e03884e5371f9ef514: > > sa

Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute

2019-06-26 Thread Christoph Hellwig
On Wed, Jun 26, 2019 at 03:21:08PM -0700, Luis Chamberlain wrote: > On Tue, Feb 5, 2019 at 2:07 PM Luis Chamberlain wrote: > > In lieu of no Luke Skywalker, if you will, for a large kconfig revamp > > on this, I'm inclined to believe *at least* having some kconfig_symb > > exposed for some modules

Re: [PATCH v4 11/12] drm/virtio: switch from ttm to gem shmem helpers

2019-06-26 Thread Chia-I Wu
. On Wed, Jun 19, 2019 at 11:08 PM Gerd Hoffmann wrote: > > virtio-gpu basically needs a sg_table for the bo, to tell the host where > the backing pages for the object are. So the gem shmem helpers are a > perfect fit. Some drm_gem_object_funcs need thin wrappers to update the > host state, but

Re: [PATCH] powerpc/64s/radix: Define arch_ioremap_p4d_supported()

2019-06-26 Thread Michael Ellerman
Anshuman Khandual writes: > Recent core ioremap changes require HAVE_ARCH_HUGE_VMAP subscribing archs > provide arch_ioremap_p4d_supported() failing which will result in a build > failure like the following. > > ld: lib/ioremap.o: in function `.ioremap_huge_init': > ioremap.c:(.init.text+0x3c): un

[PATCH] mm/gup: Remove some BUG_ONs from get_gate_page()

2019-06-26 Thread Andy Lutomirski
If we end up without a PGD or PUD entry backing the gate area, don't BUG -- just fail gracefully. It's not entirely implausible that this could happen some day on x86. It doesn't right now even with an execute-only emulated vsyscall page because the fixmap shares the PUD, but the core mm code sho

[PATCH] riscv: Remove gate area stubs

2019-06-26 Thread Andy Lutomirski
Since commit a6c19dfe3994 ("arm64,ia64,ppc,s390,sh,tile,um,x86,mm: remove default gate area"), which predates riscv's inclusion in Linux by almost three years, the default behavior wrt the gate area is sane. Remove riscv's gate area stubs. Cc: Palmer Dabbelt Cc: Albert Ou Cc: linux-ri...@lists.

[PATCH v2 2/8] x86/vsyscall: Add a new vsyscall=xonly mode

2019-06-26 Thread Andy Lutomirski
With vsyscall emulation on, we still expose a readable vsyscall page that contains syscall instructions that validly implement the vsyscalls. We need this because certain dynamic binary instrumentation tools attempt to read the call targets of call instructions in the instrumented code. If the in

[PATCH v2 3/8] x86/vsyscall: Show something useful on a read fault

2019-06-26 Thread Andy Lutomirski
Signed-off-by: Andy Lutomirski --- arch/x86/entry/vsyscall/vsyscall_64.c | 19 ++- arch/x86/include/asm/vsyscall.h | 6 -- arch/x86/mm/fault.c | 11 +-- 3 files changed, 27 insertions(+), 9 deletions(-) diff --git a/arch/x86/entry/vsyscall/vsy

[PATCH v2 4/8] x86/vsyscall: Document odd SIGSEGV error code for vsyscalls

2019-06-26 Thread Andy Lutomirski
Even if vsyscall=none, we report uer page faults on the vsyscall page as though the PROT bit in the error code was set. Add a comment explaining why this is probably okay and display the value in the test case. While we're at it, explain why our behavior is correct with respect to PKRU. This als

[PATCH v2 5/8] selftests/x86/vsyscall: Verify that vsyscall=none blocks execution

2019-06-26 Thread Andy Lutomirski
If vsyscall=none accidentally still allowed vsyscalls, the test wouldn't fail. Fix it. Cc: Kees Cook Cc: Borislav Petkov Cc: Kernel Hardening Cc: Peter Zijlstra Cc: Thomas Gleixner Signed-off-by: Andy Lutomirski --- tools/testing/selftests/x86/test_vsyscall.c | 76 ++--- 1

[PATCH v2 1/8] x86/vsyscall: Remove the vsyscall=native documentation

2019-06-26 Thread Andy Lutomirski
The vsyscall=native feature is gone -- remove the docs. Fixes: 076ca272a14c ("x86/vsyscall/64: Drop "native" vsyscalls") Cc: sta...@vger.kernel.org Cc: Kees Cook Cc: Borislav Petkov Cc: Kernel Hardening Cc: Peter Zijlstra Cc: Thomas Gleixner Signed-off-by: Andy Lutomirski --- Documentation/

[PATCH v2 0/8] vsyscall xonly mode

2019-06-26 Thread Andy Lutomirski
Hi all- This adds a new "xonly" mode for vsyscalls and makes it the default. xonly is a bit more secure -- Kees knows about an exploit that relied on read access to the vsyscall page. It's also nicer from a paging perspective, as it doesn't require user access to any of the kernel address space a

[PATCH v2 7/8] x86/vsyscall: Add __ro_after_init to global variables

2019-06-26 Thread Andy Lutomirski
The vDSO is only configurable by command-line options, so make its global variables __ro_after_init. This seems highly unlikely to ever stop an exploit, but I think it's nice anyway. Cc: Kees Cook Cc: Borislav Petkov Cc: Kernel Hardening Cc: Peter Zijlstra Cc: Thomas Gleixner Signed-off-by:

[PATCH v2 8/8] selftests/x86: Add a test for process_vm_readv() on the vsyscall page

2019-06-26 Thread Andy Lutomirski
get_gate_page() is a piece of somewhat alarming code to make get_user_pages() work on the vsyscall page. Test it via process_vm_readv(). Cc: Kees Cook Cc: Borislav Petkov Cc: Kernel Hardening Cc: Peter Zijlstra Cc: Thomas Gleixner Signed-off-by: Andy Lutomirski --- tools/testing/selftests/

[PATCH v2 6/8] x86/vsyscall: Change the default vsyscall mode to xonly

2019-06-26 Thread Andy Lutomirski
The use case for full emulation over xonly is very esoteric. Let's change the default to the safer xonly mode. Cc: Kees Cook Cc: Borislav Petkov Cc: Kernel Hardening Cc: Peter Zijlstra Cc: Thomas Gleixner Signed-off-by: Andy Lutomirski --- arch/x86/Kconfig | 2 +- 1 file changed, 1 inserti

[RESEND PATCHv4 0/1] coresight: Do not default to CPU0 for missing CPU phandle

2019-06-26 Thread Sai Prakash Ranjan
In case of missing CPU phandle, the affinity is set default to CPU0 which is not a correct assumption. Fix this in coresight platform to set affinity to invalid and abort the probe in drivers. Also update the dt-bindings accordingly. Resent with Reviewed tag by Suzuki. v4: * Fix return for !CONF

[RESEND PATCHv4 1/1] coresight: Do not default to CPU0 for missing CPU phandle

2019-06-26 Thread Sai Prakash Ranjan
Coresight platform support assumes that a missing "cpu" phandle defaults to CPU0. This could be problematic and unnecessarily binds components to CPU0, where they may not be. Let us make the DT binding rules a bit stricter by not defaulting to CPU0 for missing "cpu" affinity information. Also in c

Re: [PATCH] powerpc/64s/radix: Define arch_ioremap_p4d_supported()

2019-06-26 Thread Christophe Leroy
On 06/26/2019 01:21 PM, Anshuman Khandual wrote: Recent core ioremap changes require HAVE_ARCH_HUGE_VMAP subscribing archs provide arch_ioremap_p4d_supported() failing which will result in a build failure like the following. ld: lib/ioremap.o: in function `.ioremap_huge_init': ioremap.c:(.ini

Re: [PATCH v3 2/4] objtool: Add support for C jump tables

2019-06-26 Thread Alexei Starovoitov
On Wed, Jun 26, 2019 at 8:56 PM Josh Poimboeuf wrote: > > The last patch was based weird, this one's based on upstream. Will test > tomorrow. Great. Once it passes your tests I'll be happy to test it on my side.

Re: [PATCH 08/16] nfsd: escape high characters in binary data

2019-06-26 Thread Kees Cook
On Wed, Jun 26, 2019 at 12:21:49PM -0400, J. Bruce Fields wrote: > On Mon, Jun 24, 2019 at 05:05:12PM -0400, J. Bruce Fields wrote: > > On Sat, Jun 22, 2019 at 01:22:56PM -0700, Kees Cook wrote: > > > On Sat, Jun 22, 2019 at 03:00:58PM -0400, J. Bruce Fields wrote: > > > > The logic around ESCAPE_N

linux-next: manual merge of the mlx5-next tree with the net-next tree

2019-06-26 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the mlx5-next tree got a conflict in: drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c between commits: 955858009708 ("net/mlx5e: Fix number of vports for ingress ACL configuration") d4a18e16c570 ("net/mlx5e: Enable setting multiple match crit

Re: [RFC PATCH v3 1/4] vfio: Define device specific irq type capability

2019-06-26 Thread Alex Williamson
On Thu, 27 Jun 2019 11:37:59 +0800 Tina Zhang wrote: > Cap the number of irqs with fixed indexes and use capability chains > to chain device specific irqs. > > Signed-off-by: Tina Zhang > --- > include/uapi/linux/vfio.h | 19 ++- > 1 file changed, 18 insertions(+), 1 deletion(-

Re: [PATCH 1/8] dt-bindings: pinctrl: aspeed: Split bindings document in two

2019-06-26 Thread Joel Stanley
On Thu, 27 Jun 2019 at 04:02, Andrew Jeffery wrote: > > > > On Thu, 27 Jun 2019, at 13:02, Joel Stanley wrote: > > On Wed, 26 Jun 2019 at 07:15, Andrew Jeffery wrote: > > > > > > Have one for each of the AST2400 and AST2500. The only thing that was > > > common was the fact that both support ASPE

Re: [PATCH] mm: vmscan: fix not scanning anonymous pages when detecting file refaults

2019-06-26 Thread Andrew Morton
Could we please get some review of this one? Johannes, it supposedly fixes your patch? I added cc:stable to this. Agreeable? From: Kuo-Hsin Yang Subject: mm: vmscan: fix not scanning anonymous pages when detecting file refaults When file refaults are detected and there are many inactive fi

Re: [PATCH 1/8] dt-bindings: pinctrl: aspeed: Split bindings document in two

2019-06-26 Thread Andrew Jeffery
On Thu, 27 Jun 2019, at 13:02, Joel Stanley wrote: > On Wed, 26 Jun 2019 at 07:15, Andrew Jeffery wrote: > > > > Have one for each of the AST2400 and AST2500. The only thing that was > > common was the fact that both support ASPEED BMC SoCs. > > > > Signed-off-by: Andrew Jeffery > > --- > > .

Re: KASAN: use-after-free Write in xfrm_hash_rebuild

2019-06-26 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:249155c2 Merge branch 'parisc-5.2-4' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10f017c3a0 kernel config: https://syzkaller.appspot.com/x/.config?x=9a3152

Reminder: 3 open syzbot bugs in input subsystem

2019-06-26 Thread Eric Biggers
[This email was generated by a script. Let me know if you have any suggestions to make it better.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 3 of them as possibly being bugs in the input subsystem. I've listed these reports below, sorted by an algorit

Re: [PATCH] mm/mempolicy: Fix an incorrect rebind node in mpol_rebind_nodemask

2019-06-26 Thread Andrew Morton
On Mon, 27 May 2019 21:58:17 +0800 zhong jiang wrote: > On 2019/5/27 20:23, Vlastimil Babka wrote: > > On 5/25/19 8:28 PM, Andrew Morton wrote: > >> (Cc Vlastimil) > > Oh dear, 2 years and I forgot all the details about how this works. > > > >> On Sat, 25 May 2019 15:07:23 +0800 zhong jiang > >

Re: [PATCH 5/8] pinctrl: aspeed: Correct comment that is no longer true

2019-06-26 Thread Andrew Jeffery
On Thu, 27 Jun 2019, at 13:00, Joel Stanley wrote: > On Wed, 26 Jun 2019 at 07:16, Andrew Jeffery wrote: > > > > We have handled the GFX register case for quite some time now. > > > > Signed-off-by: Andrew Jeffery > > --- > > drivers/pinctrl/aspeed/pinctrl-aspeed.h | 3 +-- > > 1 file changed

Re: [PATCH v3 2/4] objtool: Add support for C jump tables

2019-06-26 Thread Josh Poimboeuf
On Wed, Jun 26, 2019 at 10:44:47PM -0500, Josh Poimboeuf wrote: > > > How about the following approach instead? This is the only other way I > > > can think of to annotate a jump table so that objtool can distinguish > > > it: > > > > > > #define __annotate_jump_table __section(".jump_table.rodata

  1   2   3   4   5   6   7   8   9   10   >