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

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

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

[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.

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

[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

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:

[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,

[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

[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

[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

[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

[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).

[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

[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

[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 ---

[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:

[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

[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

[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

[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

[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

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

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,

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):

[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

[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:

[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

[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

[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

[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 ---

[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

[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 ---

[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

[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

[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

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':

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

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

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

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

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

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:

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

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

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

Re: [PATCH 2/8] dt-bindings: pinctrl: aspeed: Convert AST2400 bindings to json-schema

2019-06-26 Thread Andrew Jeffery
On Wed, 26 Jun 2019, at 23:17, Rob Herring wrote: > On Wed, Jun 26, 2019 at 1:21 AM Andrew Jeffery wrote: > > + The pin controller node should be the child of a syscon node with the > > + required property: > > + > > + - compatible: Should be one of the following: > > +

Reminder: 4 open syzbot bugs in tty 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 4 of them as possibly being bugs in the tty subsystem. I've listed these reports below, sorted by an

Reminder: 28 open syzbot bugs in media 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 28 of them as possibly being bugs in the media subsystem. I've listed these reports below, sorted by an

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

2019-06-26 Thread Josh Poimboeuf
On Wed, Jun 26, 2019 at 07:54:08PM -0700, Alexei Starovoitov wrote: > On Wed, Jun 26, 2019 at 7:47 PM Josh Poimboeuf wrote: > > > > On Wed, Jun 26, 2019 at 06:42:40PM -0700, Alexei Starovoitov wrote: > > > > @@ -1035,9 +1038,18 @@ static struct rela *find_switch_table(struct > > > > objtool_file

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

2019-06-26 Thread Tina Zhang
This series tries to send the vGPU display vblank event to user land. 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

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

2019-06-26 Thread Tina Zhang
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(-) diff --git a/include/uapi/linux/vfio.h

[RFC PATCH v3 4/4] drm/i915/gvt: Deliver vGPU vblank event to userspace

2019-06-26 Thread Tina Zhang
Deliver the display vblank event to the user land. Userspace can use the irq mask/unmask mechanism to disable or enable the event delivery. Signed-off-by: Tina Zhang --- drivers/gpu/drm/i915/gvt/display.c | 4 + drivers/gpu/drm/i915/gvt/gvt.h | 4 + drivers/gpu/drm/i915/gvt/kvmgt.c |

[RFC PATCH v3 3/4] drm/i915/gvt: Register vGPU display vblank irq

2019-06-26 Thread Tina Zhang
Gvt-g emulates and injects the vGPU's display vblank interrupts in kernel space. However the dma-buf based framebuffer consumer in the user land (e.g. Qemu vfio/display) may also need to be notified by this event. Register the display irq as VFIO_IRQ_SUBTYPE_GFX_DISPLAY_IRQ to each vGPU, so that

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

2019-06-26 Thread Tina Zhang
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(+) diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h index

Re: [PATCH 0/2] scsi: add support for request batching

2019-06-26 Thread Martin K. Petersen
Paolo, > Ping? Are there any more objections? It's a core change so we'll need some more reviews. I suggest you resubmit. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] kbuild: compile-test global headers to ensure they are self-contained

2019-06-26 Thread Masahiro Yamada
Hi Sam, On Tue, Jun 25, 2019 at 3:11 PM Sam Ravnborg wrote: > > > > > When all header files below include/drm are self-contained it will be a > > single line: > > > > header-test-y += $(all_headers_with_subdir) > In reality it will likely be the above, and then a list of > > header-test-n +=

Re: [PATCH v3 0/4] Devmap cleanups + arm64 support

2019-06-26 Thread Andrew Morton
On Wed, 26 Jun 2019 15:45:47 + Jason Gunthorpe wrote: > On Wed, Jun 26, 2019 at 08:38:29AM -0700, Christoph Hellwig wrote: > > On Wed, Jun 26, 2019 at 01:31:40PM +0100, Mark Rutland wrote: > > > On Wed, Jun 26, 2019 at 12:35:33AM -0700, Christoph Hellwig wrote: > > > > Robin, Andrew: > > >

Re: [PATCH 6/8] pinctrl: aspeed: Clarify comment about strapping W1C

2019-06-26 Thread Joel Stanley
On Wed, 26 Jun 2019 at 07:16, Andrew Jeffery wrote: > > Writes of 1 to SCU7C clear set bits in SCU70, the hardware strapping > register. The information was correct if you squinted while reading, but > hopefully switching the order of the registers as listed conveys it > better. > >

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

2019-06-26 Thread Shuah Khan
On 6/26/19 9:25 PM, Jiunn Chang wrote: Shifting signed 32-bit value by 31 bits is undefined. Changing most significant bit to unsigned. Changes included in v2: - use subsystem specific subject lines - CC required mailing lists Signed-off-by: Jiunn Chang --- Move version change lines

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

2019-06-26 Thread Shuah Khan
On 6/26/19 9:25 PM, Jiunn Chang wrote: Shifting signed 32-bit value by 31 bits is undefined. Changing most significant bit to unsigned. Changes included in v2: - use subsystem specific subject lines - CC required mailing lists These version change lines don't belong in the change log.

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

2019-06-26 Thread Joel Stanley
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 > --- > .../pinctrl/aspeed,ast2400-pinctrl.txt| 80 +++

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

2019-06-26 Thread Joel Stanley
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, 1 insertion(+), 2 deletions(-) > > diff --git

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

2019-06-26 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/ipv4/ip_output.c between commit: 5b18f1289808 ("ipv4: reset rt_iif for recirculated mcast/bcast out pkts") from the net tree and commit: 956fe2190820 ("bpf: Update BPF_CGROUP_RUN_PROG_INET_EGRESS calls") from

[Linux-kernel-mentees][PATCH] ethtool: 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 --- include/uapi/linux/ethtool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index

[Linux-kernel-mentees][PATCH v2] 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. Changes included in v2: - use subsystem specific subject lines - CC required mailing lists Signed-off-by: Jiunn Chang --- include/uapi/linux/if_packet.h | 2 +- 1 file changed, 1 insertion(+),

[Linux-kernel-mentees][PATCH v2] 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. Changes included in v2: - use subsystem specific subject lines - CC required mailing lists Signed-off-by: Jiunn Chang --- include/uapi/linux/nl80211.h | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH -next v2] mm/hotplug: fix a null-ptr-deref during NUMA boot

2019-06-26 Thread Pingfan Liu
On Wed, Jun 26, 2019 at 9:57 PM Michal Hocko wrote: > > On Mon 24-06-19 16:42:20, Pingfan Liu wrote: > > Hi Michal, > > > > What about dropping the change of the online definition of your patch, > > just do the following? > > I am sorry but I am unlikely to find some more time to look into this.

[PATCH v2] perf vendor events: Add Icelake V1.00 event file

2019-06-26 Thread Haiyan Song
Hi Arnaldo, Since this patch contains lines longer than 998 characters, I can't send the big patch via 'git send-email'. We will apply for an account on kernel.org to provide git pull request. But it need to wait for long time. Could you let me to send this patch by attachment to you? I

Re: [PATCH RESEND] mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk

2019-06-26 Thread Axel Lin
Hi Chen, Chen Feng 於 2019年6月27日 週四 上午10:03寫道: > > Thanks I assume this is an Ack. If you can add your Acked-by in the reply, it's easier for maintainer to accept the patch. > > On 2019/6/26 21:30, Axel Lin wrote: > > Since devm_regmap_init_mmio_clk can fail, add return value checking. > > > >

Re: [v3 RFC PATCH 0/9] Migrate mode for node reclaim with heterogeneous memory hierarchy

2019-06-26 Thread Yang Shi
Hi folks, Any comment on this version? Thanks, Yang On 6/13/19 4:29 PM, Yang Shi wrote: With Dave Hansen's patches merged into Linus's tree https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c221c0b0308fd01d9fb33a16f64d2fd95f8830a4 PMEM could be hot plugged

Re: [RFC PATCH 00/11] tracing: of: Boot time tracing using devicetree

2019-06-26 Thread Frank Rowand
On 6/26/19 2:58 PM, Rob Herring wrote: > On Fri, Jun 21, 2019 at 10:18 AM Masami Hiramatsu wrote: >> >> Hi, >> >> Here is an RFC series of patches to add boot-time tracing using >> devicetree. >> >> Currently, kernel support boot-time tracing using kernel command-line >> parameters. But that is

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

2019-06-26 Thread Alexei Starovoitov
On Wed, Jun 26, 2019 at 7:47 PM Josh Poimboeuf wrote: > > On Wed, Jun 26, 2019 at 06:42:40PM -0700, Alexei Starovoitov wrote: > > > @@ -1035,9 +1038,18 @@ static struct rela *find_switch_table(struct > > > objtool_file *file, > > > > > > /* > > > * Make sure the

arch/x86/kernel/e820.c:88:9-10: WARNING: return of 0/1 in function '_e820__mapped_any' with return type bool

2019-06-26 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 249155c20f9b0754bc1b932a33344cfb4e0c2101 commit: 0c55671f84fffe591e8435c93a8c83286fd6b8eb kvm, x86: Properly check whether a pfn is an MMIO or not date: 8 weeks ago If you fix the issue, kindly add

[GIT PULL] ARM: SoC fixes

2019-06-26 Thread Olof Johansson
Hi Linus, Greg, The following changes since commit cd3967bee004bcbd142403698d658166fa618c9e: soc: ixp4xx: npe: Fix an IS_ERR() vs NULL check in probe (2019-06-18 06:47:59 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git

[GIT] Networking

2019-06-26 Thread David Miller
1) Fix ppp_mppe crypto soft dependencies, from Takashi Iawi. 2) Fix TX completion to be finite, from Sergej Benilov. 3) Use register_pernet_device to avoid a dst leak in tipc, from Xin Long. 4) Double free of TX cleanup in Dirk van der Merwe. 5) Memory leak in packet_set_ring(), from Eric

[PATCH] cpu/hotplug: Fix out-of-bounds read when setting fail state

2019-06-26 Thread Eiichi Tsukata
Setting invalid value to /sys/devices/system/cpu/cpuX/hotplug/fail can control `struct cpuhp_step *sp` address, results in the following global-out-of-bounds read. Reproducer: # echo -2 > /sys/devices/system/cpu/cpu0/hotplug/fail KASAN report: BUG: KASAN: global-out-of-bounds in

Клиентские базы! Email: proda...@armyspy.com Узнайте подробнее!

2019-06-26 Thread linux-kernel
Клиентские базы! Email: proda...@armyspy.com Узнайте подробнее!

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

2019-06-26 Thread Josh Poimboeuf
On Wed, Jun 26, 2019 at 06:42:40PM -0700, Alexei Starovoitov wrote: > > @@ -1035,9 +1038,18 @@ static struct rela *find_switch_table(struct > > objtool_file *file, > > > > /* > > * Make sure the .rodata address isn't associated with a > > -*

Re: [PATCH 1/1] udf: Fix incorrect final NOT_ALLOCATED (hole) extent length

2019-06-26 Thread Steve Magnani
Hi Jan, On 6/25/19 5:30 AM, Jan Kara wrote: On Tue 04-06-19 07:31:58, Steve Magnani wrote: In some cases, using the 'truncate' command to extend a UDF file results in a mismatch between the length of the file's extents (specifically, due to incorrect length of the final NOT_ALLOCATED extent)

Re: [GIT PULL 2/4] ARM: dts: exynos: Second pull for v5.3

2019-06-26 Thread Olof Johansson
On Tue, Jun 25, 2019 at 09:34:49PM +0200, Krzysztof Kozlowski wrote: > Hi, > > On top of previous pull request. > > Best regards, > Krzysztof > > > The following changes since commit d2cac68e0d9b038da7207c0b63e1399c4f9f60c4: > > ARM: dts: exynos: Add ADC node to Exynos5410 and Odroid XU

Re: WARNING: kernel stack regs at 0000000068363d2a in telegraf:23122 has bad 'bp' value 000000007b842ec4

2019-06-26 Thread Jake M
On Mon, 24 Jun 2019 at 12:49, Jake M wrote: > > Hi, > > The box has crashed twice this week both times related to telegraf, we > are running ZFS and attached is the kernel config. > > Any ideas? > > Description: Ubuntu 18.04.2 LTS > Release: 18.04 > Codename: bionic > Kernel: 4.18.0-1016-aws > >

Re: [GIT PULL 1/4] ARM: defconfig: Samsung/Exynos for v5.3

2019-06-26 Thread Olof Johansson
On Wed, Jun 26, 2019 at 11:14:04AM +0200, Krzysztof Kozlowski wrote: > On Tue, 25 Jun 2019 at 21:35, Krzysztof Kozlowski wrote: > > > > The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: > > > > Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) > > > > are available in the Git

Re: [GIT PULL 1/4] ARM: defconfig: Samsung/Exynos for v5.3

2019-06-26 Thread Olof Johansson
On Tue, Jun 25, 2019 at 09:34:48PM +0200, Krzysztof Kozlowski wrote: > The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: > > Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) > > are available in the Git repository at: > >

Re: [GIT PULL] ARM: dts: uniphier: UniPhier DT updates for v5.3

2019-06-26 Thread Olof Johansson
On Wed, Jun 26, 2019 at 12:19:17AM +0900, Masahiro Yamada wrote: > Hi Arnd, Olof, > > Please pull UniPhier DT updates (32bit) for the v5.3 MW. > > Thanks. > > > The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: > > Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) > >

Re: [GIT PULL 4/4] ARM: exynos: Mach for v5.3

2019-06-26 Thread Olof Johansson
On Tue, Jun 25, 2019 at 09:34:51PM +0200, Krzysztof Kozlowski wrote: > The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: > > Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) > > are available in the Git repository at: > >

  1   2   3   4   5   6   7   8   9   10   >