[PATCH] binder: fix race between munmap() and direct reclaim

2019-03-01 Thread Todd Kjos
An munmap() on a binder device causes binder_vma_close() to be called which clears the alloc->vma pointer. If direct reclaim causes binder_alloc_free_page() to be called, there is a race where alloc->vma is read into a local vma pointer and then used later after the mm->mmap_sem is acquired. This

Re: [PATCH] MIPS: eBPF: Fix icache flush end address

2019-03-01 Thread Daniel Borkmann
On 03/01/2019 11:58 PM, Paul Burton wrote: > The MIPS eBPF JIT calls flush_icache_range() in order to ensure the > icache observes the code that we just wrote. Unfortunately it gets the > end address calculation wrong due to some bad pointer arithmetic. > > The struct jit_ctx target field is of ty

Re: next/master boot bisection: next-20190215 on beaglebone-black

2019-03-01 Thread Dan Williams
er branch is concerned, KernelCI boot tests are passing fine > >> on that platform. > > > > They would, because I dropped > > mm-shuffle-default-enable-all-shuffling.patch, so your tests presumably > > now have shuffling disabled. > > > > Is it possible t

[PATCH] media: imx: vdic: Fix wrong CSI group ID

2019-03-01 Thread Steve Longerbeam
The i.MX7 capture support forgot to change the group ID for the CSI to the IPU CSI in VDIC sub-device, it was left at the i.MX7 CSI group ID. Fixes: 67673ed55084 ("media: staging/imx: rearrange group id to take in account IPU") Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-

Re: linux-next: manual merge of the drm tree with the drm-fixes tree

2019-03-01 Thread Alex Deucher
On Thu, Feb 28, 2019 at 9:24 PM Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the drm tree got a conflict in: > > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > > between commit: > > d63716658ac1 ("drm/amd/display: Use vrr friendly pageflip throttling in > DC.") > >

[PATCH] net: ipv6: add socket option IPV6_ROUTER_ALERT_ISOLATE

2019-03-01 Thread Francesco Ruggeri
By default IPv6 socket with IPV6_ROUTER_ALERT socket option set will receive all IPv6 RA packets from all namespaces. IPV6_ROUTER_ALERT_ISOLATE socket option restricts packets received by the socket to be only from the socket's namespace. Signed-off-by: Maxim Martynov Signed-off-by: Francesco Rug

Re: [PATCH 3/3] DRM: Add KMS driver for the Ingenic JZ47xx SoCs

2019-03-01 Thread Paul Cercueil
Hi, Le ven. 1 mars 2019 à 18:00, Sam Ravnborg a écrit : Hi Paul. Driver looks good and is a very nice piece of work. In the following a number of minor issues. One area that jumped at me was framedesc and the use of dma_alloc_coherent() I hope someone that knows the memory handling better ca

Re: [BUG linux-4.9.x] xen hotplug cpu leads to 100% steal usage

2019-03-01 Thread Thomas Gleixner
On Thu, 28 Feb 2019, Dongli Zhang wrote: > > The root cause is that the return type of jiffies_to_usecs() is 'unsigned > int', > but not 'unsigned long'. As a result, the leading 32 bits are discarded. Errm. No. The root cause is that jiffies_to_usecs() is used for that in the first place. The f

Your payment. Respond ASAP

2019-03-01 Thread Accountant General Of Federation
-- Your payment. Respond ASAP $5,500,000.00 DEAR SIR/MADAM, This is to notify you that the sum of Five Million Five Hundred Thousand United States Dollars has been approved today 6th february,2019 as part payment. As a matter of fact, you have to adhere to my instructions discretel

Re: [PATCH] drm/amdgpu/gfx_v8_0: Mark expected switch fall-through

2019-03-01 Thread Alex Deucher
On Fri, Mar 1, 2019 at 3:58 PM Gustavo A. R. Silva wrote: > > In preparation to enabling -Wimplicit-fallthrough, mark switch > cases where we are expecting to fall through. > > This patch fixes the following warning: > > drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c: In function > ‘gfx_v8_0_tiling_mode_t

Re: [PATCH] drm/amdgpu/powerplay: Fix missing break in switch statement

2019-03-01 Thread Alex Deucher
On Fri, Mar 1, 2019 at 4:51 PM Gustavo A. R. Silva wrote: > > Add missing break statement in order to prevent the code from falling > through to case SMU_Discrete_DpmTable. > > This bug was found thanks to the ongoing efforts to enable > -Wimplicit-fallthrough. > > Fixes: 34a564eaf528 ("drm/amd/po

a.out coredumping: fix or delete?

2019-03-01 Thread Jann Horn
In theory, Linux can dump cores for a.out binaries. In practice, that code is pretty bitrotten and buggy. Does anyone want that code so much that they'd like to fix it, or can we just delete it? Here's a shell script that will give you a minimal a.out binary that Linux will execute (and that then

Re: [PATCH] drm/amdgpu/powerplay: Fix missing break in switch statement

2019-03-01 Thread Gustavo A. R. Silva
On 3/1/19 5:54 PM, Alex Deucher wrote: > On Fri, Mar 1, 2019 at 4:51 PM Gustavo A. R. Silva > wrote: >> >> Add missing break statement in order to prevent the code from falling >> through to case SMU_Discrete_DpmTable. >> >> This bug was found thanks to the ongoing efforts to enable >> -Wimplic

[PATCH] x86/boot: clean up headers

2019-03-01 Thread Nick Desaulniers
The inclusion of was causing issue as the definition of __arch_hweight64 from arch/x86/include/asm/arch_hweight.h eventually gets included. The definition is problematic when compiled with -m16 (all code in arch/x86/boot/ is) as the "D" inline assembly constraint is rejected by both compilers when

Re: [PATCH v2] PCIE/PME: fix possible use-after-free on remove

2019-03-01 Thread Bjorn Helgaas
On Fri, Mar 1, 2019 at 10:54 AM Sven Van Asbroeck wrote: > > In remove(), ensure that the pme work cannot run after kfree() > is called. Otherwise, this could result in a use-after-free. > > This issue was detected with the help of Coccinelle. > > Cc: Sinan Kaya > Cc: Frederick Lawler > Cc: Mika

Re: [PATCH] x86/boot: clean up headers

2019-03-01 Thread Nathan Chancellor
On Fri, Mar 01, 2019 at 04:07:14PM -0800, Nick Desaulniers wrote: > The inclusion of was causing issue as the definition of > __arch_hweight64 from arch/x86/include/asm/arch_hweight.h eventually gets > included. The definition is problematic when compiled with -m16 (all code > in arch/x86/boot/ is

Re: [GIT] Crypto Fixes for 5.0

2019-03-01 Thread pr-tracker-bot
The pull request you sent on Thu, 28 Feb 2019 13:56:18 +0800: > git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/3f25a5990d9d32e8f77ce830b9ea6c0e4f4bea4b Thank you! -- Deet-doot-dot, I am a bot

Re: [GIT PULL] MMC fixes for v5.0-rc9

2019-03-01 Thread pr-tracker-bot
The pull request you sent on Thu, 28 Feb 2019 15:22:39 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git tags/mmc-v5.0-rc8 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/3a8ed368fc8544d002129d919cf651accf43582c Thank you! -- Deet-doot-dot, I am a b

Re: [git pull] drm fixes for 5.0 final

2019-03-01 Thread pr-tracker-bot
The pull request you sent on Fri, 1 Mar 2019 15:40:01 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2019-03-01 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/6357c8127bea35c52085a0ae0f97e73de2419825 Thank you! -- Deet-doot-dot, I am a bot. https://ko

Re: [git pull] IOMMU Fixes for Linux v5.0-rc8

2019-03-01 Thread pr-tracker-bot
The pull request you sent on Fri, 1 Mar 2019 17:57:05 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git > tags/iommu-fix-v5.0-rc8 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a215ce8f0e00c2d707080236f1aafec337371043 Thank you! -- Deet-doot-dot

Re: [GIT PULL] MIPS fixes for 5.0

2019-03-01 Thread pr-tracker-bot
The pull request you sent on Fri, 1 Mar 2019 00:56:52 +: > git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git > tags/mips_fixes_5.0_4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/bf23aba19456207c12aad4d841adf7ff40ede2d7 Thank you! -- Deet-doot-dot,

Re: [PATCH v3] mtd: rawnand: Mark expected switch fall-throughs

2019-03-01 Thread Gustavo A. R. Silva
On 3/1/19 4:39 PM, Richard Weinberger wrote: > Am Freitag, 1. März 2019, 22:38:18 CET schrieb Gustavo A. R. Silva: >> Hi all, >> >> Friendly ping: >> >> Who can take this, please? > > /me points to Miquel. :) > Thanks, Richard. Hopefully, Miquel will take this for 5.1. :) -- Gustavo

[PATCH] fsl/fman: Use vsprintf extension %pM

2019-03-01 Thread Joe Perches
Make logging of an ethernet address more consistent with the rest of the kernel. Miscellanea: The %02hx use also did not quite match the u8 definition of addr though that did not actually matter given normal integer promotion rules. Signed-off-by: Joe Perches --- drivers/net/ethernet/freescale

Re: [PATCH v2 0/8] Rewrite clk parent handling

2019-03-01 Thread Stephen Boyd
Quoting Stephen Boyd (2019-02-26 14:34:21) > > I plan to at least merge the early patches in this series into clk-next > so we can clear the way for the later patches. I don't think anything is > too controversial until we get to the new way of specifying parents > at the end and of course, the sd

Re: [PATCH 3/3] arm64: dts: rockchip: Disable DCMDs on RK3399's eMMC controller.【请注意,邮件由linux-mmc-ow...@vger.kernel.org代发】

2019-03-01 Thread Shawn Lin
On 2019/3/2 0:43, Christoph Muellner wrote: When using direct commands (DCMDs) on an RK3399, we get spurious CQE completion interrupts for the DCMD transaction slot (#31): I didn't see it. Do you try any newer code, for instance, linux-next? [ 931.196520] [ cut here ]---

[RFC][PATCH 0/4] Per-console loglevel support, console device bus

2019-03-01 Thread Calvin Owens
Hello all, This is an extremely overdue refresh of this series: https://lkml.org/lkml/2017/9/28/770 The big change here is the 3rd patch, which actually wires up the console drivers to support embedding a device structure, so we can place them on a "console" bus and expose attributes in

[PATCH 4/4] printk: Add a device attribute for the per-console loglevel

2019-03-01 Thread Calvin Owens
Signed-off-by: Calvin Owens --- kernel/printk/printk.c | 40 1 file changed, 40 insertions(+) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 67e1e993ab80..e7e602fa2d0b 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@

[PATCH 1/4] printk: Introduce per-console loglevel setting

2019-03-01 Thread Calvin Owens
Not all consoles are created equal: depending on the actual hardware, the latency of a printk() call can vary dramatically. The worst examples are serial consoles, where it can spin for tens of milliseconds banging the UART to emit a message, which can cause application-level problems when the kern

[PATCH 2/4] printk: Add ability to set loglevel via "console=" cmdline

2019-03-01 Thread Calvin Owens
This extends the "console=" interface to allow setting the per-console loglevel by adding "/N" to the string, where N is the desired loglevel expressed as a base 10 integer. Invalid values are silently ignored. Signed-off-by: Calvin Owens --- .../admin-guide/kernel-parameters.txt | 6 ++

Re: [PATCH] printk: Remove no longer used LOG_PREFIX.

2019-03-01 Thread Joe Perches
On Fri, 2019-03-01 at 13:48 +0100, Petr Mladek wrote: > I want to double check what was the history of KERN_DEFAULT defined > as "d". It existed since ages... There less than 100 uses of KERN_DEFAULT. Relatively speaking, KERN_DEFAULT hasn't existed all that long actually. commit e28d713704117bc

Re: [PATCH 11/15] habanalabs: print pointer using %p

2019-03-01 Thread Joe Perches
On Thu, 2019-02-28 at 11:55 +0200, Oded Gabbay wrote: > Don't cast pointer to u64 to print it. Instead, print the pointer using > %p. You might want to use %px here if you _really_ want the actual address and not the hashed output %p normally produces. > diff --git a/drivers/misc/habanalabs/goya/

Re: [PATCH v2 08/10] hikey960: Support usb functionality of Hikey960

2019-03-01 Thread Chen Yu
Hi Chunfeng Yun, On 2019/2/22 15:32, Chunfeng Yun wrote: > On Tue, 2019-02-19 at 11:20 +0800, Chen Yu wrote: >> Hi, >> >> On 2019/2/19 10:50, Chunfeng Yun wrote: + if (ret) + hisi_hikey_usb->typec_vbus_enable_val = 1; + + hisi_hikey_usb->typec_vbus = devm_gpiod_get(d

Re: [PATCH 2/5] ocxl: Clean up printf formats

2019-03-01 Thread Joe Perches
On Wed, 2019-02-27 at 15:57 +1100, Alastair D'Silva wrote: > From: Alastair D'Silva > > Use %# instead of using a literal '0x' I think it's better not to change this unless the compilation unit already uses a mix of styles. Overall, the kernel uses "0x%" over "%#" by ~8:1 $ git grep -P '0x%\

[PATCH v2 1/7] perf script python: remove mixed indentation

2019-03-01 Thread Tony Jones
Remove mixed indentation in Python scripts. Revert to either all tabs (most common form) or all spaces (4 or 8) depending on what was the intent of the original commit. This is necessary to complete Python3 support as it will flag an error if it encounters mixed indentation. Signed-off-by: T

[PATCH v2 2/7] perf script python: add Python3 support to futex-contention.py

2019-03-01 Thread Tony Jones
Support both Python2 and Python3 in the futex-contention.py script There may be differences in the ordering of output lines due to differences in dictionary ordering etc. However the format within lines should be unchanged. The use of 'from __future__' implies the minimum supported Python2 versi

[PATCH v2 0/7] perf script python: add Python3 support

2019-03-01 Thread Tony Jones
This is v2 of my version of the patchset. Incorporating the previous feedback. Some changes from v1 were already merged. Patch 1/7 deals with the existing inconsistent indentation. Indentation is now consistent per file but varying styles (tabs, 4 spaces and 8 spaces). I will followup at a l

[PATCH v2 7/7] perf script python: add printdate function to SQL exporters

2019-03-01 Thread Tony Jones
Introduce a printdate function to eliminate the repetitive use of datetime.datetime.today() in the SQL exporting scripts. Signed-off-by: Tony Jones Cc: Adrian Hunter --- tools/perf/scripts/python/export-to-postgresql.py | 19 +++ tools/perf/scripts/python/export-to-sqlite.py

[PATCH v2 3/7] perf script python: add Python3 support to check-perf-trace.py

2019-03-01 Thread Tony Jones
Support both Python 2 and Python 3 in the check-perf-trace.py script. There may be differences in the ordering of output lines due to differences in dictionary ordering etc. However the format within lines should be unchanged. The use of from __future__ implies the minimum supported version of P

[PATCH v2 6/7] perf script python: add Python3 support to sql scripts

2019-03-01 Thread Tony Jones
Support both Python2 and Python3 in the exported-sql-viewer.py, export-to-postgresql.py and export-to-sqlite.py scripts There may be differences in the ordering of output lines due to differences in dictionary ordering etc. However the format within lines should be unchanged. The use of 'from __

[PATCH v2 5/7] perf script python: add Python3 support to intel-pt-events.py

2019-03-01 Thread Tony Jones
Support both Python2 and Python3 in the intel-pt-events.py script There may be differences in the ordering of output lines due to differences in dictionary ordering etc. However the format within lines should be unchanged. The use of 'from __future__' implies the minimum supported Python2 versio

[PATCH v2 4/7] perf script python: add Python3 support to event_analyzing_sample.py

2019-03-01 Thread Tony Jones
Support both Python2 and Python3 in the event_analyzing_sample.py script There may be differences in the ordering of output lines due to differences in dictionary ordering etc. However the format within lines should be unchanged. The use of 'from __future__' implies the minimum supported Python2

Re: [PATCH -next] fbdev: omap2: omapfb: trivial code cleanup

2019-03-01 Thread YueHaibing
On 2019/3/1 22:50, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On 03/01/2019 02:53 AM, Yue Haibing wrote: >> From: YueHaibing >> >> After commit 60d2fa0dad06 ("fbdev: omap2: no need to check >> return value of debugfs_create functions"), there are corner >> code need to be cleaned. >> >> Signed

Re: [PATCH] update NFIT flags error message

2019-03-01 Thread Dan Williams
On Thu, Feb 28, 2019 at 12:14 PM Toshi Kani wrote: > > ACPI NFIT flags field reports major errors on NVDIMM, which need > user's attention. > > Update the current log to a proper error message with dev_err(). > The current message string is kept for grep-compatibility. > Looks good, applied.

Re: Realtek r8822be kernel module does not negotiate 802.11ac connection

2019-03-01 Thread Larry Finger
On 3/1/19 4:26 PM, David R. Bergstein wrote: Larry, Thanks for the response and detailed instructions, which allowed me to build and install the rtw88 kernel module.  I cannot however seem to get my system to actually use the module.  Just to recap this is an HP Omen laptop with secure boot disa

Re: [PATCH v3 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-03-01 Thread Masahiro Yamada
On Sat, Mar 2, 2019 at 3:03 AM Joel Fernandes wrote: > > On Fri, Mar 01, 2019 at 03:25:05PM +0900, Masahiro Yamada wrote: > [...] > > > > I am guessing the user will run these commands > > > > on the target system. > > > > In other words, external modules are native-compiled. > > > > So, > > > > >

Re: [PATCH] x86/boot: clean up headers

2019-03-01 Thread Stephen Rothwell
Hi Nick, On Fri, 1 Mar 2019 16:07:14 -0800 Nick Desaulniers wrote: > > It turns out that arch/x86/boot/string.c doesn't actually need > linux/kernel.h, simply linux/limits.h and linux/compiler.h. Include them, > and sort the headers alphabetically. One small nit: please do not do the sort in t

Re: [PATCH] x86/boot: clean up headers

2019-03-01 Thread Stephen Rothwell
Hi Nick, On Sat, 2 Mar 2019 13:27:50 +1100 Stephen Rothwell wrote: > > On Fri, 1 Mar 2019 16:07:14 -0800 Nick Desaulniers > wrote: > > > > It turns out that arch/x86/boot/string.c doesn't actually need > > linux/kernel.h, simply linux/limits.h and linux/compiler.h. Include them, > > and sort

[PATCH] net-sysfs: Fix mem leak in netdev_register_kobject

2019-03-01 Thread Yue Haibing
From: YueHaibing syzkaller report this: BUG: memory leak unreferenced object 0x88837a71a500 (size 256): comm "syz-executor.2", pid 9770, jiffies 4297825125 (age 17.843s) hex dump (first 32 bytes): 00 00 00 00 ad 4e ad de ff ff ff ff 00 00 00 00 .N.. ff ff ff ff ff ff

Re: [PATCH v3 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-03-01 Thread Joel Fernandes
On Sat, Mar 02, 2019 at 11:13:07AM +0900, Masahiro Yamada wrote: > On Sat, Mar 2, 2019 at 3:03 AM Joel Fernandes wrote: > > > > On Fri, Mar 01, 2019 at 03:25:05PM +0900, Masahiro Yamada wrote: > > [...] > > > > > I am guessing the user will run these commands > > > > > on the target system. > > >

[GIT] Crypto Fixes for 5.0

2019-03-01 Thread Herbert Xu
Hi Linus: This push fixes a couple of issues in arm64/chacha that was introduced in 5.0. Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git linus Eric Biggers (2): crypto: arm64/chacha - fix chacha_4block_xor_neon() for big endian crypto: arm64/

[PATCH v4 06/17] x86/msr-index: Define IA32_CORE_CAPABILITY MSR and #AC exception for split lock bit

2019-03-01 Thread Fenghua Yu
A new IA32_CORE_CAPABILITY MSR (0xCF) is defined. Each bit in the MSR enumerates a model specific feature. Currently bit 5 enumerates #AC exception for split locked accesses. When bit 5 is 1, split locked accesses will generate #AC exception. When bit 5 is 0, split locked accesses will not generate

[PATCH v4 00/17] x86/split_lock: Enable #AC exception for split locked accesses

2019-03-01 Thread Fenghua Yu
==Introduction== A split lock is any atomic operation whose operand crosses two cache lines. Since the operand spans two cache lines and the operation must be atomic, the system locks the bus while the CPU accesses the two cache lines. During bus locking, request from other CPUs or bus agents for

[PATCH v4 12/17] Change document for kernel option clearcpuid

2019-03-01 Thread Fenghua Yu
Since kernel option clearcpuid now supports multiple options and CPU capability flags, the document needs to be changed. Signed-off-by: Fenghua Yu --- Documentation/admin-guide/kernel-parameters.txt | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-gui

[PATCH v4 16/17] kvm: x86: Add support IA32_CORE_CAPABILITY MSR

2019-03-01 Thread Fenghua Yu
From: Xiaoyao Li MSR IA32_CORE_CAPABILITY is a feature-enumerating MSR, bit 5 of which reports the capability of enabling detection of split locks (will be supported on future processors based on Tremont microarchitecture and later). Please check the latest Intel Architecture Instruction Set Ext

[PATCH v4 17/17] kvm: vmx: Emulate TEST_CTL MSR

2019-03-01 Thread Fenghua Yu
From: Xiaoyao Li A control bit (bit 29) in TEST_CTL MSR 0x33 will be introduced in future x86 processors. When bit 29 is set, the processor causes #AC exception for split locked accesses at all CPL. Please check the latest Intel Software Developer's Manual for more detailed information on the MS

[PATCH v4 14/17] x86/split_lock: Add a sysfs interface to allow user to enable or disable split lock detection on all CPUs during run time

2019-03-01 Thread Fenghua Yu
The interface /sys/device/system/cpu/split_lock_detect is added to allow user to control split lock detection and show current split lock detection setting. Writing 1 to the file enables split lock detection and writing 0 disables split lock detection. Split lock detection is enabled or disabled o

[PATCH v4 15/17] kvm: x86: Report CORE_CAPABILITY on GET_SUPPORTED_CPUID

2019-03-01 Thread Fenghua Yu
From: Xiaoyao Li In the latest Intel SDM, CPUID.(EAX=7H,ECX=0):EDX[30] will enumerate the presence of the IA32_CORE_CAPABILITY MSR. Update GET_SUPPORTED_CPUID to expose this feature bit to user space, so that user space know this bit can be enabled in CPUID. Signed-off-by: Xiaoyao Li --- arch

[PATCH v4 13/17] x86/split_lock: Handle #AC exception for split lock

2019-03-01 Thread Fenghua Yu
There may be different considerations on how to handle #AC for split lock, e.g. how to handle system hang caused by split lock issue in firmware, how to emulate faulting instruction, etc. We use a simple method to handle user and kernel split lock and may extend the method in the future. When #AC

[PATCH v4 01/17] x86/common: Align cpu_caps_cleared and cpu_caps_set to unsigned long

2019-03-01 Thread Fenghua Yu
cpu_caps_cleared and cpu_caps_set may not be aligned to unsigned long. Atomic operations (i.e. set_bit and clear_bit) on the bitmaps may access two cache lines (a.k.a. split lock) and lock bus to block all memory accesses from other processors to ensure atomicity. To avoid the overall performance

[PATCH v4 09/17] x86/clearcpuid: Support feature flag string in kernel option clearcpuid

2019-03-01 Thread Fenghua Yu
The kernel option clearcpuid currently only takes feature bit which can be changed from kernel to kernel. Extend clearcpuid to use cap flag string, which is defined in x86_cap_flags[] and won't be changed from kernel to kernel. And user can easily get the cap flag string from /proc/cpuinfo. Signe

[PATCH v4 08/17] x86/clearcpuid: Support multiple clearcpuid options

2019-03-01 Thread Fenghua Yu
Currently only one kernel option "clearcpuid=" can be picked up by kernel during boot time. In some cases, user may want to clear a few cpu caps. This may be useful to replace endless (new) kernel options like nosmep, nosmap, etc. We add support of multiple clearcpuid options to allow user to cle

[PATCH v4 11/17] x86/clearcpuid: Clear CPUID bit in CPUID faulting

2019-03-01 Thread Fenghua Yu
From: Peter Zijlstra After kernel clears a CPUID bit through clearcpuid or other kernel options, CPUID instruction executed from user space should see the same value for the bit. The CPUID faulting handler returns the cleared bit to user. Signed-off-by: Peter Zijlstra Signed-off-by: Fenghua Yu

[PATCH v4 07/17] x86/split_lock: Enumerate #AC for split lock by MSR IA32_CORE_CAPABILITY

2019-03-01 Thread Fenghua Yu
Bits in MSR IA32_CORE_CAPABILITY enumerate features that are not enumerated through CPUID. Currently bit 5 is defined to enumerate feature of #AC for split lock accesses. All other bits are reserved now. When the bit 5 is 1, the feature is supported and feature bit X86_FEATURE_SPLIT_LOCK_DETECT is

[PATCH v4 04/17] x86/split_lock: Align x86_capability to unsigned long to avoid split locked access

2019-03-01 Thread Fenghua Yu
set_cpu_cap() calls locked BTS and clear_cpu_cap() calls locked BTR to operate on bitmap defined in x86_capability. Locked BTS/BTR accesses a single unsigned long location. In 64-bit mode, the location is at: base address of x86_capability + (bit offset in x86_capability % 64) * 8 Since base addr

[PATCH v4 02/17] drivers/net/b44: Align pwol_mask to unsigned long for better performance

2019-03-01 Thread Fenghua Yu
A bit in pwol_mask is set in b44_magic_pattern automatically by set_bit. set_bit sets the bit in a single unsigned long location. Since pwol_mask may not be aligned to unsigned long, the location may cross two cache lines and accessing the location degradates performance. On x86, accessing two cach

[PATCH v4 05/17] x86/cpufeatures: Enumerate IA32_CORE_CAPABILITIES MSR

2019-03-01 Thread Fenghua Yu
MSR register IA32_CORE_CAPABILITIES (0xCF) contains bits that enumerate some model specific features. The MSR 0xCF itself is enumerated by CPUID.(EAX=0x7,ECX=0):EDX[30]. When this bit is 1, the MSR 0xCF exists. Detailed information for the CPUID bit and the MSR can be found in the latest Intel Ar

[PATCH v4 03/17] wlcore: Align reg_ch_conf_pending and tmp_ch_bitmap to unsigned long for better performance

2019-03-01 Thread Fenghua Yu
A bit in reg_ch_conf_pending in wl271 and tmp_ch_bitmap is set atomically by set_bit(). set_bit() sets the bit in a single unsigned long location. If the variables are not aligned to unsigned long, set_bit() accesses two cache lines and thus causes slower performance. On x86, this scenario is calle

[PATCH v4 10/17] x86/clearcpuid: Apply cleared feature bits that are forced set before

2019-03-01 Thread Fenghua Yu
Some CPU feature bits are forced set and stored in cpuinfo_x86 before handling clearcpuid options. To clear those bits from cpuinfo_x86, apply_forced_cap() is called after handling the options. Please note, apply_forced_cap() is called twice on boot CPU. But this code is simple and there is no fun

Re: Realtek r8822be kernel module does not negotiate 802.11ac connection

2019-03-01 Thread David R. Bergstein
Larry, Following up to your last reply, I blacklisted the r8822be module, rebooted and was unable to bring up the wireless interface via rtw88.  Below are some errors recorded in my system log:   [  267.509818] rtw_pci :3d:00.0: Direct firmware load for rtw88/rtw8822b_fw.bin failed with error

[PATCH 1/2] CIFS: Fix a bug with re-sending wdata when transport returning -EAGAIN

2019-03-01 Thread Long Li
From: Long Li When sending a wdata, transport may return -EAGAIN. In this case we should re-obtain credits because the session may have been reconnected. Signed-off-by: Long Li --- fs/cifs/file.c | 61 +- 1 file changed, 31 insertions(+), 30 dele

[PATCH 2/2] CIFS: Fix a bug with re-sending rdata when transport returning -EAGAIN

2019-03-01 Thread Long Li
From: Long Li When sending a rdata, transport may return -EAGAIN. In this case we should re-obtain credits because the session may have been reconnected. Signed-off-by: Long Li --- fs/cifs/file.c | 51 +- 1 file changed, 26 insertions(+), 25 dele

Re: [PATCH] perf c2c: Fix c2c report for empty numa node

2019-03-01 Thread Ravi Bangoria
On 3/1/19 3:56 PM, Jiri Olsa wrote: > Ravi Bangoria reported that we fail with empty > numa node with following message: > > $ lscpu > NUMA node0 CPU(s): > NUMA node1 CPU(s): 0-4 > > $ sudo ./perf c2c report > node/cpu topology bugFailed setup nodes > > Fixing this by detecting emp

Re: [PATCH net-next v2 3/3] net: phy: marvell10g: set the PHY in low power by default

2019-03-01 Thread Florian Fainelli
On 3/1/2019 7:07 AM, Antoine Tenart wrote: > Hi Andrew, > > On Fri, Mar 01, 2019 at 03:19:53PM +0100, Andrew Lunn wrote: >> On Fri, Mar 01, 2019 at 12:00:47PM +0100, Antoine Tenart wrote: >>> When the Marvell 10G PHYs are set out of reset, the LPOWER bit is set >>> depending on an hardware conf

Re: [PATCH net 1/2] net: phy: Use C45 Helpers in phy_read_status()

2019-03-01 Thread Florian Fainelli
On 3/1/2019 2:54 AM, Jose Abreu wrote: > Currently phy_read_status() considers that either the PHY driver has the > read_status() callback or uses the generic callback. > > For C45 PHYs we need to use the gen10g_read_status() callback. Right, so we could expect your C45 PHY driver to assign th

[PATCH RFC/RFT] dma-contiguous: Get normal pages for single-page allocations

2019-03-01 Thread Nicolin Chen
The addresses within a single page are always contiguous, so it's not so necessary to always allocate one single page from CMA area. Since the CMA area has a limited predefined size of space, it may run out of space in heavy use cases, where there might be quite a lot CMA pages being allocated for

Re: Realtek r8822be kernel module does not negotiate 802.11ac connection

2019-03-01 Thread David R. Bergstein
Larry, Please disregard my last message.  The firmware is now installed and the rtw88 module is working with my wireless router.  The next hurdle appears to be setting the speed to 802.11ac as it is currently connecting as an 802.11n client. Sincerely, David R. Bergstein On 3/1/19 9:55 PM, Davi

Re: [PATCH net-next 2/6] net: 8021q: vlan_dev: add vid tag to addresses of uc and mc lists

2019-03-01 Thread Florian Fainelli
On 3/1/2019 4:24 AM, Ivan Khoronzhuk wrote: > On Wed, Feb 27, 2019 at 08:09:44PM -0800, Florian Fainelli wrote: >> >> >> On 2/26/2019 10:45 AM, Ivan Khoronzhuk wrote: >>> Update vlan mc and uc addresses with VID tag while propagating >>> addresses to lower devices, do this only if address is not

Re: [PATCH net-next 3/6] net: 8021q: vlan_dev: add vid tag for vlan device own address

2019-03-01 Thread Florian Fainelli
On 3/1/2019 4:28 AM, Ivan Khoronzhuk wrote: > On Wed, Feb 27, 2019 at 08:13:34PM -0800, Florian Fainelli wrote: >> >> >> On 2/26/2019 10:45 AM, Ivan Khoronzhuk wrote: >>> The vlan device address is held separately from uc/mc lists and >>> handled differently. The vlan dev address is bound with r

[PATCH] RDMA/umem: minor bug fix and cleanup in error handling paths

2019-03-01 Thread john . hubbard
From: John Hubbard 1. Bug fix: the error handling release pages starting at the first page that experienced an error. 2. Refinement: release_pages() is better than put_page() in a loop. 3. Dead code removal: the check for (user_virt & ~page_mask) is checking for a condition that can never happe

[PATCH 0/1] RDMA/umem: minor bug fix and cleanup in error handling paths

2019-03-01 Thread john . hubbard
From: John Hubbard Hi, Ira Weiny alerted me to a couple of places where I'd missed a change from put_page() to put_user_page(), in my pending patchsets. But when I attempted to dive more deeply into that code, I ran into things that I *think* should be fixed up a bit. I hope I didn't completely

Re: [PATCH net-next 4/6] ethernet: eth: add default vid len for all ehternet kind devices

2019-03-01 Thread Florian Fainelli
On 3/1/2019 5:11 AM, Ivan Khoronzhuk wrote: > On Wed, Feb 27, 2019 at 08:29:20PM -0800, Florian Fainelli wrote: >> >> >> On 2/26/2019 10:45 AM, Ivan Khoronzhuk wrote: >>> IVDF - individual virtual device filtering. Allows to set per vlan >>> l2 address filters on end real network device (for uni

[RFC PATCH] KVM: arm64: Force a PTE mapping when logging is enabled

2019-03-01 Thread Zenghui Yu
The idea behind this is: we don't want to keep tracking of huge pages when logging_active is true, which will result in performance degradation. We still need to set vma_pagesize to PAGE_SIZE, so that we can make use of it to force a PTE mapping. Cc: Suzuki K Poulose Cc: Punit Agrawal Signed-of

Re: [PATCH] fs: use KERNEL_DS instead of get_ds()

2019-03-01 Thread Al Viro
On Fri, Mar 01, 2019 at 09:08:35PM +0100, Jann Horn wrote: > get_ds() is a legacy name for KERNEL_DS; all architectures #define it to > KERNEL_DS, not quite - h8300 and m68k have it as (equivalent) static inline. > and almost every user of set_fs() uses the name KERNEL_DS. > > Let the VFS also u

Re: Realtek r8822be kernel module does not negotiate 802.11ac connection

2019-03-01 Thread David R. Bergstein
Larry, Sorry about all these extra replies.  Shortly after I sent my last message my access point started recognizing the connection as 802.11ac with PHY Rate / Modulation Rate of 866.6 Mbps.  What is somewhat misleading is the information reported by iwconfig (see bit rate below). $ iwconfig wlo

[PATCH v3 15/15] [NOT FOR MERGE] arm64: dts: allwinner: a64: Remove unused r_intc

2019-03-01 Thread Samuel Holland
Now that r_intc is no longer used directly by Linux, it can be removed from the SoC device tree. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64

[PATCH v3 04/15] mailbox: sunxi-msgbox: Add a new mailbox driver

2019-03-01 Thread Samuel Holland
Allwinner sun8i, sun9i, and sun50i SoCs contain a hardware message box used for communication between the ARM CPUs and the ARISC management coprocessor. The hardware contains 8 unidirectional 4-message FIFOs. Add a driver for it, so it can be used for SCPI or other communication protocols. Signed

[PATCH v3 09/15] arm64: dts: allwinner: h6: Add msgbox node

2019-03-01 Thread Samuel Holland
The H6 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file chan

[PATCH v3 03/15] dt-bindings: mailbox: Add a sunxi message box binding

2019-03-01 Thread Samuel Holland
This mailbox hardware is present in Allwinner sun8i, sun9i, and sun50i SoCs. Add a device tree binding for it. Signed-off-by: Samuel Holland --- .../mailbox/allwinner,sunxi-msgbox.yaml | 79 +++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree/

[PATCH v3 06/15] ARM: dts: sunxi: a83t: Add msgbox node

2019-03-01 Thread Samuel Holland
The A83T SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10 ++ 1 file changed, 10 i

[PATCH v3 10/15] [NOT FOR MERGE] clk: sunxi-ng: sun8i: Avoid turning off unused PRCM gates

2019-03-01 Thread Samuel Holland
Hardware attached to AHB0/APB0 and controlled in the PRCM is designed to be used by firmware running on the ARISC core. However, some devices in this block (specifically the I2C, RSB, PIO, and CIR-RX) have native Linux drivers and are already in the device tree. In particular, the RSB and I2C buses

[PATCH v3 11/15] [NOT FOR MERGE] dt-bindings: Add a binding for a mailbox-backed interrupt controller

2019-03-01 Thread Samuel Holland
This is a somewhat generic binding for an interrupt controller/forwarder implemented in firmware and communicated with using a mailbox. Signed-off-by: Samuel Holland --- .../interrupt-controller/mbox-intc.txt| 33 +++ 1 file changed, 33 insertions(+) create mode 100644

[PATCH v3 12/15] [NOT FOR MERGE] irqchip/mbox: Introduce a mailbox-backed irqchip driver

2019-03-01 Thread Samuel Holland
This driver implements a simple interrupt controller using message passing over a mailbox channel. The intention is for the other end of the channel to be implemented in firmware. This allows filtering and forwarding interrupts from one processor to another. Signed-off-by: Samuel Holland --- dri

[PATCH v3 00/15] Allwinner sunxi message box support

2019-03-01 Thread Samuel Holland
This series adds support for the "hardware message box" in sun8i, sun9i, and sun50i SoCs, used for communication with the ARISC management processor (the platform's equivalent of the ARM SCP). The end goal is to use the arm_scpi driver as a client, communicating with firmware running on the AR100 C

[PATCH v3 14/15] [NOT FOR MERGE] arm64: dts: allwinner: a64: Convert DTS to use msgbox_intc

2019-03-01 Thread Samuel Holland
Now that there is an alternate way for Linux to receive NMIs from the PMIC, replace references to r_intc with references to the new interrupt controller. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts | 4 ++-- arch/arm64/boot/dts/allwinner/sun50i-a6

[PATCH v3 08/15] arm64: dts: allwinner: a64: Add msgbox node

2019-03-01 Thread Samuel Holland
The A64 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 10 ++ 1 file ch

[PATCH v3 02/15] clk: sunxi-ng: Mark AR100 clocks as critical

2019-03-01 Thread Samuel Holland
On sun8i, sun9i, and sun50i SoCs, system suspend/resume support requires firmware running on the AR100 coprocessor (the "SCP"). Such firmware can provide additional features, such as thermal monitoring and poweron/off support for boards without a PMIC. Since the AR100 may be running critical firmw

[PATCH v3 07/15] ARM: dts: sunxi: h3/h5: Add msgbox node

2019-03-01 Thread Samuel Holland
The H3 and H5 SoCs contain a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 10 ++ 1 file changed

[PATCH v3 05/15] ARM: dts: sunxi: a80: Add msgbox node

2019-03-01 Thread Samuel Holland
The A80 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun9i-a80.dtsi | 10 ++ 1 file changed, 10 ins

[PATCH v3 01/15] clk: sunxi-ng: Mark msgbox clocks as critical

2019-03-01 Thread Samuel Holland
The msgbox clock is critical because the hardware it controls is shared between Linux and system firmware. The message box may be used by the EL3 secure monitor's PSCI implementation. On 64-bit sunxi SoCs, this is provided by ARM TF-A; 32-bit SoCs use a different implementation. The secure monitor

[PATCH v3 13/15] [NOT FOR MERGE] arm64: dts: allwinner: a64: Add interrupt controller node

2019-03-01 Thread Samuel Holland
In order to give firmware full access to r_intc, Linux needs to avoid using it in the device tree. Most IRQ lines attached to r_intc are also attached to the GIC. Unfortunately, the NMI is not. For it to be used in Linux, we have to forward it in firmware over the mailbox. Add a node representing

<    2   3   4   5   6   7   8   >