linux-next: manual merge of the nvdimm tree with the ext4 tree

2017-11-02 Thread Stephen Rothwell
Hi Dan, Today's linux-next merge of the nvdimm tree got a conflict in: fs/ext4/inode.c between commit: 545052e9e35a ("ext4: Switch to iomap for SEEK_HOLE / SEEK_DATA") from the ext4 tree and commit: 31bc9582e43d ("ext4: Support for synchronous DAX faults") from the nvdimm tree. I fixe

[RFC PATCH] bpf: Add helpers to read useful task_struct members

2017-11-02 Thread Sandipan Das
For added security, the layout of some structures can be randomized by enabling CONFIG_GCC_PLUGIN_RANDSTRUCT. One such structure is task_struct. To build BPF programs, we use Clang which does not support this feature. So, if we attempt to read a field of a structure with a randomized layout within

[PATCH] media: v4l: async: fix return of unitialized variable ret

2017-11-02 Thread Colin King
From: Colin Ian King A shadow declaration of variable ret is being assigned a return error status and this value is being lost when the error exit goto's jump out of the local scope. This leads to an uninitalized error return value in the outer scope being returned. Fix this by removing the inner

RE: [PATCH] drm/amdgpu/virt: don't dereference undefined 'module' struct

2017-11-02 Thread Yu, Xiangliang
Reviewed-By: Xiangliang Yu Thanks! > -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: Thursday, November 02, 2017 7:26 PM > To: Deucher, Alexander ; Koenig, Christian > > Cc: Arnd Bergmann ; David Airlie ; Liu, > Monk ; Yu, Xiangliang ; > Chen, Horace ; amd-...@li

Re: [PATCH][net-next] net: sched: cls_bpf: use bitwise & rather than logical && on gen_flags

2017-11-02 Thread David Miller
From: Colin King Date: Thu, 2 Nov 2017 20:04:12 + > From: Colin Ian King > > Currently gen_flags is being operated on by a logical && operator rather > than a bitwise & operator. This looks incorrect as these should be bit > flag operations. Fix this. > > Detected by CoverityScan, CID#146

Re: [PATCH] mISDN: hfcpci: Convert timers to use timer_setup()

2017-11-02 Thread David Miller
From: Kees Cook Date: Thu, 2 Nov 2017 16:18:07 -0700 > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Karsten Keil > Cc: "David S. Miller"

Re: [PATCH] ISDN: eicon: message: mark expected switch fall-throughs

2017-11-02 Thread David Miller
From: "Gustavo A. R. Silva" Date: Thu, 2 Nov 2017 16:14:14 -0500 > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. ... > Signed-off-by: Gustavo A. R. Silva Applied.

Re: [PATCH v4 3/3] KVM: MMU: consider host cache mode in MMIO page check

2017-11-02 Thread Xiao Guangrong
On 11/03/2017 01:53 PM, Haozhong Zhang wrote: Some reserved pages, such as those from NVDIMM DAX devices, are not for MMIO, and can be mapped with cached memory type for better performance. However, the above check misconceives those pages as MMIO. Because KVM maps MMIO pages with UC memory ty

Re: A test of the philosophical impact of what I have been talking about / Suggestion for changes in GNU Licence.

2017-11-02 Thread Ywe Cærlyn
Den 10/29/2017 17:21, skrev Ywe Cærlyn: Den 10/29/2017 17:00, skrev Ywe Cærlyn: Den 10/27/2017 23:28, skrev Ywe Cærlyn: Den 10/27/2017 23:01, skrev Ywe Cærlyn: Philosophical requantization of a (atm) theoretical linux distribution: Excellent Ubuntu, is a Good Linux, with a Minimal Jitter Ker

Re: [PATCH v5 2/3] KVM: nVMX: Validate the IA32_BNDCFGS on nested VM-entry

2017-11-02 Thread Wanpeng Li
2017-11-03 14:31 GMT+08:00 Krish Sadhukhan : > > > On 11/02/2017 05:50 PM, Wanpeng Li wrote: >> >> From: Wanpeng Li >> >> According to the SDM, if the "load IA32_BNDCFGS" VM-entry controls is 1, >> the >> following checks are performed on the field for the IA32_BNDCFGS MSR: >> - Bits reserved in

[PATCH] media: imx274: fix missing return assignment from call to imx274_mode_regs

2017-11-02 Thread Colin King
From: Colin Ian King The variable ret is being checked for failure however it is not being set from the return status from the call to imx274_mode_regs. Currently ret is alwayus zero and the check is redundant. Fix this by assigning it. Detected by CoverityScan, CID#1460278 ("Logically dead code

Re: [PATCH] Add Tim Bird to list of enforcement statement endorsers

2017-11-02 Thread g...@kroah.com
On Thu, Nov 02, 2017 at 08:30:46PM +, Bird, Timothy wrote: > Add my name to the list. > > Signed-off-by: Tim Bird > --- > Documentation/process/kernel-enforcement-statement.rst | 1 + > 1 file changed, 1 insertion(+) Thanks, now applied. greg k-h

[RFC v2] prctl: prctl(PR_SET_IDLE, PR_IDLE_MODE_KILLME), for stateless idle loops

2017-11-02 Thread Shawn Landden
It is common for services to be stateless around their main event loop. If a process sets PR_SET_IDLE to PR_IDLE_MODE_KILLME then it signals to the kernel that epoll_wait() and friends may not complete, and the kernel may send SIGKILL if resources get tight. See my systemd patch: https://github.co

Re: [PATCH] s390/ap_bus: Convert timers to use timer_setup()

2017-11-02 Thread Martin Schwidefsky
On Thu, 2 Nov 2017 16:36:53 -0700 Kees Cook wrote: > On Wed, Oct 25, 2017 at 11:38 PM, Martin Schwidefsky > wrote: > > On Wed, 25 Oct 2017 03:27:37 -0700 > > Kees Cook wrote: > > > >> In preparation for unconditionally passing the struct timer_list pointer to > >> all timer callbacks, switch

Re: [PATCH v3 2/3] usb: xhci: Add DbC support in xHCI driver

2017-11-02 Thread Greg Kroah-Hartman
On Fri, Nov 03, 2017 at 08:45:46AM +0800, Lu Baolu wrote: > Hi, > > On 11/03/2017 12:51 AM, Greg Kroah-Hartman wrote: > > On Thu, Nov 02, 2017 at 12:38:57PM +0200, Felipe Balbi wrote: > >> > > >> > Hi, > >> > > >> > Greg Kroah-Hartman writes: > > >> Greg Kroah-Hartman writes: > >>> >

Re: [PATCH] mtd: lpddr: Fix a potential double mutex_lock

2017-11-02 Thread Christophe JAILLET
Le 31/10/2017 à 15:58, Boris Brezillon a écrit : Hi Christophe, On Sun, 22 Oct 2017 10:28:31 +0200 Christophe JAILLET wrote: If 'chip->state == FL_SYNCING', we will 'goto retry' with the mutex '&shared->lock' already taken. In such a case, the 'mutex_lock' at line 927 can never succeed. In o

linux-next: manual merge of the nvdimm tree with the ext4 tree

2017-11-02 Thread Stephen Rothwell
Hi Dan, Today's linux-next merge of the nvdimm tree got a conflict in: fs/dax.c between commit: 19fe5f643f89 ("iomap: Switch from blkno to disk offset") from the ext4 tree and commit: cac0def9d075 ("dax: Simplify arguments of dax_insert_mapping()") from the nvdimm tree. I fixed it up

Re: [PATCH V9 1/4] dma-mapping: Rework dma_get_cache_alignment()

2017-11-02 Thread 陈华才
Only patch 4 can be merged to stable, please ignore cc-stable in the rest. -- Original -- From: "Christoph Hellwig"; Date: Fri, Nov 3, 2017 01:14 PM To: "陈华才"; Cc: "Marek Szyprowski"; "Christoph Hellwig"; "Robin Murphy"; "Andrew Morton"; "Fuxin Zhang"; "lin

RE: [patch v2 0/8] Intel Processor Trace virtulization enabling

2017-11-02 Thread Kang, Luwei
> > From v1: > > - remove guest-only mode because guest-only mode can be covered by > > host-guest mode; > > - always set "use GPA for processor tracing" in secondary execution > > control if it can be; > > - trap RTIT_CTL read/write. Forbid write this msr when VMXON in L1 > > hypervisor. >

Re: [PATCH v9 2/2] media:imx274 V4l2 driver for Sony imx274 CMOS sensor

2017-11-02 Thread Leon Luo
Hi Vishal, In probe(), it calls imx274_load_default(imx274), which has I2C register read/write to the IMX274. If it fails, it will exit probe(). So it works as a sensor detection function as you suggested. Regards, Leon Luo 1130 Cadillac CT Milpitas, CA 95035 Phone: (510)371-1169 Fax: (408) 217-19

[PATCH v4 2/3] KVM: add converters between pfn_t and kvm_pfn_t

2017-11-02 Thread Haozhong Zhang
Signed-off-by: Haozhong Zhang --- include/linux/kvm_host.h | 4 1 file changed, 4 insertions(+) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 6882538eda32..caf6f7a6bdb2 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -27,6 +27,7 @@ #include

[PATCH v4 3/3] KVM: MMU: consider host cache mode in MMIO page check

2017-11-02 Thread Haozhong Zhang
Some reserved pages, such as those from NVDIMM DAX devices, are not for MMIO, and can be mapped with cached memory type for better performance. However, the above check misconceives those pages as MMIO. Because KVM maps MMIO pages with UC memory type, the performance of guest accesses to those pag

[PATCH v4 1/3] x86/mm: add function to check if a pfn is UC/UC-

2017-11-02 Thread Haozhong Zhang
pat_pfn_is_uc(pfn) is added and will be used by KVM to check whether the memory type of a host pfn is UC/UC-. Signed-off-by: Haozhong Zhang --- arch/x86/include/asm/pat.h | 2 ++ arch/x86/mm/pat.c | 14 ++ 2 files changed, 16 insertions(+) diff --git a/arch/x86/include/asm

[PATCH v4 0/3] KVM: MMU: fix kvm_is_mmio_pfn()

2017-11-02 Thread Haozhong Zhang
Some reserved pages, such as those from NVDIMM DAX devices, are not for MMIO, and can be mapped with cached memory type for better performance. However, the above check misconceives those pages as MMIO. Because KVM maps MMIO pages with UC memory type, the performance of guest accesses to those pag

Re: [f2fs-dev] [PATCH 2/2] f2fs: support quota sys files

2017-11-02 Thread Chao Yu
On 2017/11/3 11:37, Jaegeuk Kim wrote: > On 11/02, Chao Yu wrote: >> On 2017/10/31 11:40, Jaegeuk Kim wrote: >>> This patch supports hidden quota files in the system, which will be used for >>> Android. It requires up-to-date f2fs-tools later than v1.9.0. >>> >>> Signed-off-by: Jaegeuk Kim >>> ---

[GIT] Networking

2017-11-02 Thread David Miller
Hopefully this is the last batch of networking fixes for 4.14 Fingers crossed... 1) Fix stmmac to use the proper sized OF property read, from Bhadram Varka. 2) Fix use after free in net scheduler tc action code, from Cong Wang. 3) Fix SKB control block mangling in tcp_make_synack(). 4)

linux-next: build warnings after merge of the gpio tree

2017-11-02 Thread Stephen Rothwell
Hi Linus, After merging the gpio tree, yesterday's linux-next build (arm multi_v7_defconfig) produced these warnings: arch/arm/boot/dts/bcm2835-rpi-b.dtb: Warning (phys_property): Missing property '#phy-cells' in node /phy or bad phandle (referred from /soc/usb@7e98:phys[0]) arch/arm/boot/d

Re: [PATCH net-next] net: Define eth_stp_addr in linux/etherdevice.h

2017-11-02 Thread David Miller
From: Egil Hjelmeland Date: Thu, 2 Nov 2017 10:36:48 +0100 > The lan9303 driver defines eth_stp_addr as a synonym to > eth_reserved_addr_base to get the STP ethernet address 01:80:c2:00:00:00. > > eth_reserved_addr_base is also used to define the start of Bridge Reserved > ethernet address rang

Re: [PATCH 1/2] [net-next] bpf: fix link error without CONFIG_NET

2017-11-02 Thread David Miller
From: Arnd Bergmann Date: Thu, 2 Nov 2017 12:05:51 +0100 > I ran into this link error with the latest net-next plus linux-next > trees when networking is disabled: > > kernel/bpf/verifier.o:(.rodata+0x2958): undefined reference to > `tc_cls_act_analyzer_ops' > kernel/bpf/verifier.o:(.rodata+0x

Re: [PATCH 2/2] [net-next] bpf: fix out-of-bounds access warning in bpf_check

2017-11-02 Thread David Miller
From: Arnd Bergmann Date: Thu, 2 Nov 2017 12:05:52 +0100 > The bpf_verifer_ops array is generated dynamically and may be > empty depending on configuration, which then causes an out > of bounds access: > > kernel/bpf/verifier.c: In function 'bpf_check': > kernel/bpf/verifier.c:4320:29: error: a

Re: [PATCH V9 1/4] dma-mapping: Rework dma_get_cache_alignment()

2017-11-02 Thread Christoph Hellwig
I can queue 1 up in the dma-mapping tree, and if I get reviews for the mips and scsi bits I'd be happy to queue those up as well. But I think you'd be better off moving patches 3 and 4 to the front without the dma_get_cache_alignment prototype change so that they can be merged to stable.

Re: [PATCH] ARM: multi_v7_defconfig: Select RPMSG_VIRTIO as module

2017-11-02 Thread Bjorn Andersson
On Thu 05 Oct 09:49 PDT 2017, Anup Patel wrote: > The RPMSG_VIRTIO is now user selectable option so we explicitly > select it in multi_v7_defconfig. Till now RPMSG_VIRTIO was > selected by ST_REMOTEPROC=m in multi_v7_defconfig. > Acked-by: Bjorn Andersson > Signed-off-by: Anup Patel Regards,

Re: [PATCH V8 0/2] printk: hash addresses printed with %p

2017-11-02 Thread Vinod Koul
On Tue, Oct 31, 2017 at 04:33:13PM -0700, Joe Perches wrote: > On Wed, 2017-11-01 at 10:16 +1100, Tobin C. Harding wrote: > > Cool, thanks Joe I'll keep this in mind for when we get to %pa. > > fyi: There are more of these misuses of 0x%pa now: > > $ git grep -E -n "0[xX]%pa[dp]?\b" > drivers/d

Re: [PATCH] ARM: multi_v7_defconfig: Select RPMSG_VIRTIO as module

2017-11-02 Thread Anup Patel
On Thu, Oct 26, 2017 at 9:33 PM, Anup Patel wrote: > On Thu, Oct 5, 2017 at 10:19 PM, Anup Patel wrote: >> The RPMSG_VIRTIO is now user selectable option so we explicitly >> select it in multi_v7_defconfig. Till now RPMSG_VIRTIO was >> selected by ST_REMOTEPROC=m in multi_v7_defconfig. >> >> Sign

Re: [PATCH 3/3] openrisc: dts: Add OpenRISC platform SoC

2017-11-02 Thread Stafford Horne
On Sun, Oct 22, 2017 at 11:46:41AM +0900, Stafford Horne wrote: > Add devicetree binding documentation for the OpenRISC platform > opencores,or1ksim. This is the main OpenRISC reference platform > supporting multiple FPGA SoC's. > > This format is based on some of the mips binding docs as we have

[lkp-robot] [kprobes/x86] b664d57f39: BUG:using_smp_processor_id()in_preemptible

2017-11-02 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-4.9): commit: b664d57f39d01e775204d4f1a7e2f8bda77bc549 ("kprobes/x86: Remove IRQ disabling from jprobe handlers") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: boot on test machine: qemu-system-x86_64 -e

[PATCH v4 6/6] pmbus: max31785: Add dual tachometer support

2017-11-02 Thread Andrew Jeffery
The dual tachometer feature is implemented in hardware with a TACHSEL input to indicate the rotor under measurement, and exposed on the device by extending the READ_FAN_SPEED_1 word with two extra bytes*. The need to read the non-standard four-byte response leads to a cut-down implementation of i2c

[PATCH v4 5/6] pmbus: core: Add virtual page config bit

2017-11-02 Thread Andrew Jeffery
Some circumstances call for virtual pages to expose multiple values packed into an extended PMBus register in a manner non-compliant with the PMBus standard. We should not try to set virtual pages on the device; add a flag so we can avoid doing so. Signed-off-by: Andrew Jeffery --- drivers/hwmon

[PATCH v4 3/6] pmbus: core: Add fan control support

2017-11-02 Thread Andrew Jeffery
Expose fanX_target, pwmX and pwmX_enable hwmon sysfs attributes. Fans in a PMBus device are driven by the configuration of two registers: FAN_CONFIG_x_y and FAN_COMMAND_x: FAN_CONFIG_x_y dictates how the fan and the tacho operate (if installed), while FAN_COMMAND_x sets the desired fan rate. The u

[PATCH v4 2/6] pmbus: Add driver for Maxim MAX31785 Intelligent Fan Controller

2017-11-02 Thread Andrew Jeffery
The Maxim MAX31785 is a PMBus device providing closed-loop, multi-channel fan management with temperature and remote voltage sensing. Various fan control features are provided, including PWM frequency control, temperature hysteresis, dual tachometer measurements, and fan health monitoring. This pa

[PATCH v4 4/6] pmbus: max31785: Add fan control

2017-11-02 Thread Andrew Jeffery
The implementation makes use of the new fan control virtual registers exposed by the pmbus core. It mixes use of the default implementations with some overrides via the read/write handlers to handle FAN_COMMAND_1 on the MAX31785, whose definition breaks the value range into various control bands de

Re: [PATCH v2] f2fs: fix out-of-free problem caused by atomic write

2017-11-02 Thread Yunlong Song
Because I found that it will still lead to out-of-free problem with out that check. I trace and find that it is possible that the committing date pages of the atomic file is bigger than the sbi->user_block_count - valid_user_blocks(sbi), so I add this check. On 2017/11/3 11:46, Jaegeuk Kim wro

[PATCH v4 1/6] dt-bindings: pmbus: Add Maxim MAX31785 documentation

2017-11-02 Thread Andrew Jeffery
Signed-off-by: Andrew Jeffery --- .../devicetree/bindings/hwmon/max31785.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/max31785.txt diff --git a/Documentation/devicetree/bindings/hwmon/max31785.txt b/Documen

[PATCH v4 0/6] pmbus: Expand fan support and add MAX31785 driver

2017-11-02 Thread Andrew Jeffery
Hello, This series introduces support for the MAX31785 intelligent fan controller, a PMBus device providing closed-loop fan control among a number of other features. Along the way the series adds support to control fans and create virtual pages to the PMBus core, the latter to support some of the

[git pull] drm fixes for v4.14-rc8

2017-11-02 Thread Dave Airlie
Hi Linus, One nouveau regression fix, Some amdgpu fixes for stable to fix hangs on some harvested Polaris GPUs A set of KASAN and regression fixes for i915, their CI system seems to be working pretty well now. Dave. The following changes since commit 0b07194bb55ed836c2cc7c22e866b87a14681984:

Re: [PATCH V9 1/4] dma-mapping: Rework dma_get_cache_alignment()

2017-11-02 Thread 陈华才
Why this is still un-merged? Should I remove the cc-stable and resend this series? Huacai -- Original -- From: "陈华才"; Date: Thu, Oct 26, 2017 02:33 PM To: "Marek Szyprowski"; "Christoph Hellwig"; Cc: "Robin Murphy"; "Andrew Morton"; "Fuxin Zhang"; "linu

Re: [PATCHv5 1/1] [tools/selftests]: android/ion: userspace test utility for ion buffer sharing

2017-11-02 Thread Pintu Kumar
On Fri, Nov 3, 2017 at 6:02 AM, Shuah Khan wrote: > On 11/02/2017 05:54 PM, Laura Abbott wrote: >> On 11/02/2017 10:53 AM, Shuah Khan wrote: >>> On 11/02/2017 10:19 AM, Shuah Khan wrote: On 11/02/2017 10:15 AM, Pintu Kumar wrote: > On Thu, Nov 2, 2017 at 8:37 PM, Shuah Khan wrote: >>

RE: [PATCH v9 2/2] media:imx274 V4l2 driver for Sony imx274 CMOS sensor

2017-11-02 Thread Vishal Sagar
Hi Leon, I understand this fixes correctly freeing the v4l control handlers in probe(). But if there is a scenario where the sensor is mounted on a removable daughter card, shouldn't the probe fail if the daughter card is not connected? A sample read/write to an IMX274 register should be suffic

[PATCH for-next] openrisc: fix possible deadlock scenario during timer sync

2017-11-02 Thread Stafford Horne
OpenRISC borrows its timer sync logic from MIPS, Matt helped to review the OpenRISC implementation and noted that we may suffer the same deadlock case that MIPS has faced. The case being: "the MIPS timer synchronization code contained the possibility of deadlock. If you mark a CPU online befor

next-20171102: ARM64 dies on boot

2017-11-02 Thread Yury Norov
Hi all, I reproduce it with qemu. The exact reason of panic is the NULL-dereference in memory_present: (gdb) bt #0 0x08dd8c6c in sparse_index_init (nid=, section_nr=) at mm/sparse.c:80 #1 memory_present (nid=0, start=18446462598881083392, end=0) at mm/sparse.c:215 #2 0x08dc

Re: [PATCH v2] f2fs: fix out-of-free problem caused by atomic write

2017-11-02 Thread Yunlong Song
ping... On 2017/10/30 21:04, Yunlong Song wrote: f2fs_balance_fs only actives once in the commit_inmem_pages, but there are more than one page to commit, so all the other pages will miss the check. This will lead to out-of-free problem when commit a very large file. However, we cannot do f2fs_ba

[PATCH 1/3] arm64: Define cputype macros for Falkor CPU

2017-11-02 Thread Shanker Donthineni
Add cputype definition macros for Qualcomm Datacenter Technologies Falkor CPU in cputype.h. It's unfortunate that the first revision of the Falkor CPU used the wrong part number 0x800, got fixed in v2 chip with part number 0xC00, and would be used the same value for future revisions. Signed-off-by

Re: [PATCH v2] f2fs: add bug_on when f2fs_gc even fails to get one victim

2017-11-02 Thread Yunlong Song
ping... On 2017/10/13 21:31, Yunlong Song wrote: This can help us to debug on some corner case. Signed-off-by: Yunlong Song Signed-off-by: Chao Yu --- fs/f2fs/gc.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 197ebf4..2b03202 10

Re: mptsas driver cannot detect hotplugging disk with the LSI SCSI SAS1068 controller in Ubuntu guest on VMware

2017-11-02 Thread Gavin Guo
On Sat, Oct 28, 2017 at 11:35 AM, Gavin Guo wrote: > On Fri, Oct 27, 2017 at 10:53 PM, Hannes Reinecke wrote: >> On 10/27/2017 04:02 PM, Gavin Guo wrote: >>> Hi Hannes, >>> >>> Thank you for looking into the issue. If there is anything I can help >>> to test the patch? I appreciate your help. Tha

[tip:x86/asm 24/32] mm/migrate.o: warning: objtool: migrate_misplaced_transhuge_page()+0x71: unreachable instruction

2017-11-02 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/asm head: 1e4c4f610f774df6088d7c065b2dd4d22adba698 commit: da51da189a24bb9b7e2d5a123be096e51a4695a5 [24/32] x86/entry/64: Pass SP0 directly to load_sp0() config: x86_64-randconfig-in0-11031034 (attached as .config) compiler:

[PATCH 2/3] arm64: Prepare SCTLR_ELn accesses to handle Falkor erratum 1041

2017-11-02 Thread Shanker Donthineni
This patch introduces two helper macros read_sctlr and write_sctlr to access system register SCTLR_ELn. Replace all MSR/MRS references to sctlr_el1{el2} with macros. This should cause no behavioral change. Signed-off-by: Shanker Donthineni --- arch/arm64/include/asm/assembler.h | 18 ++

[PATCH 3/3] arm64: Add software workaround for Falkor erratum 1041

2017-11-02 Thread Shanker Donthineni
The ARM architecture defines the memory locations that are permitted to be accessed as the result of a speculative instruction fetch from an exception level for which all stages of translation are disabled. Specifically, the core is permitted to speculatively fetch from the 4KB region containing th

[PATCH 0/3] Implement a software workaround for Falkor erratum 1041

2017-11-02 Thread Shanker Donthineni
On Falkor CPU, we’ve discovered a hardware issue which might lead to a kernel crash or the unexpected behavior. The Falkor core may errantly access memory locations on speculative instruction fetches. This may happen whenever MMU translation state, SCTLR_ELn[M] bit is being changed from enabled to

MAP_SYNC in libnvdimm-for-next and collision fixups

2017-11-02 Thread Williams, Dan J
ernel/git/djbw/nvdimm.git/log/?h= libnvdimm-vs-next-20171102 --- commit 2adeca04276acb4e747dbe7a5668efe03b164566 Merge: fa8785e862ef c29c91a9daa3 Author: Dan Williams Date: Thu Nov 2 19:20:59 2017 -0700 Merge branch 'libnvdimm-for-next' into test diff --cc fs/dax.c index 3652b26a00

Re: [PATCH] selftests: breakpoints: fix compile error on breakpoint_test_arm64

2017-11-02 Thread Sumit Semwal
Hi Shuah, On 2 November 2017 at 02:22, Shuah Khan wrote: > On 10/23/2017 01:42 AM, Sumit Semwal wrote: >> The current mainline breakpoints test for arm64 fails to compile with >> >> breakpoint_test_arm64.c: In function ‘set_watchpoint’: >> breakpoint_test_arm64.c:97:28: error: storage size of ‘dr

Re: [PATCH] powerpc/perf: Fix core-imc hotplug callback failure during imc initialization

2017-11-02 Thread Madhavan Srinivasan
On Friday 03 November 2017 05:49 AM, Michael Ellerman wrote: Madhavan Srinivasan writes: On Wednesday 01 November 2017 06:22 AM, Michael Ellerman wrote: Anju T Sudhakar writes: Call trace observed during boot: What's the actual oops? I could recreate this in mambo with CPUS=2 and THREA

Re: [PATCH] selftests: remove obsolete kconfig fragment for cpu-hotplug

2017-11-02 Thread Sumit Semwal
Hello Lei, On 2 November 2017 at 07:43, lyang0 wrote: > > > On 2017年11月02日 06:59, Shuah Khan wrote: >> >> On 11/01/2017 04:52 PM, Thomas Gleixner wrote: >>> >>> On Wed, 1 Nov 2017, Shuah Khan wrote: On 10/17/2017 08:10 PM, lei.y...@windriver.com wrote: > > From: Lei Yang >

Re: [greybus-dev] [PATCH 2/2] staging: greybus/loopback: use ktime_get() for time intervals

2017-11-02 Thread Viresh Kumar
On 02-11-17, 15:32, Arnd Bergmann wrote: > This driver is the only one using the deprecated timeval_to_ns() > helper. Changing it from do_gettimeofday() to ktime_get() makes > the code more efficient, more robust against concurrent > settimeofday(), more accurate and lets us get rid of that helper

[PATCH net-next 4/6] net: hns3: add support for set_link_ksettings

2017-11-02 Thread Lipeng
From: Fuyun Liang This patch adds set_link_ksettings support for ethtool cmd. Signed-off-by: Fuyun Liang Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns

[PATCH net-next 3/6] net: hns3: fix a bug in hns3_driv_to_eth_caps

2017-11-02 Thread Lipeng
From: Fuyun Liang The value of link_modes.advertising and the value of link_modes.supported is initialized to zero every time in for loop in hns3_driv_to_eth_caps(). But we just want to set specified bit for them. Initialization is unnecessary. This patch fixes it. Fixes: 496d03e (net: hns3: Add

Re: [PATCH v2] f2fs: add bug_on when f2fs_gc even fails to get one victim

2017-11-02 Thread Jaegeuk Kim
On 10/13, Yunlong Song wrote: > This can help us to debug on some corner case. > > Signed-off-by: Yunlong Song > Signed-off-by: Chao Yu > --- > fs/f2fs/gc.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c > index 197ebf4..2b03202 100644

Re: [PATCH v4 2/2] watchdog: Add Spreadtrum watchdog driver

2017-11-02 Thread Eric Long
On Wed, Nov 01, 2017 at 01:46:36PM +, Guenter Roeck wrote: > On 10/31/2017 01:16 AM, Eric Long wrote: > > This patch adds the watchdog driver for Spreadtrum SC9860 platform. > > > > Signed-off-by: Eric Long > > --- > > Changes since v3: > > - Update Kconfig SPRD_WATCHDOG help messages. > >

Re: [PATCH V2] of: platform: Create dummy routines for !CONFIG_OF_ADDRESS

2017-11-02 Thread Viresh Kumar
On 02-11-17, 07:40, Rob Herring wrote: > No. As an example, ideally of_device_alloc would be an internal > function. But we have one user in ibmebus. Okay. Lets abandon this change then. -- viresh

[PATCH net-next 5/6] net: hns3: add support for nway_reset

2017-11-02 Thread Lipeng
From: Fuyun Liang This patch adds nway_reset support for ethtool cmd. Signed-off-by: Fuyun Liang Signed-off-by: Lipeng --- .../net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/

Re: [PATCH v2] cpufreq: schedutil: Examine the correct CPU when we update util

2017-11-02 Thread Viresh Kumar
On 02-11-17, 12:06, Chris Redpath wrote: > According to my diff, this was the commit which switched from assigning > the values directly (and not overwriting the cpu member, which was > introduced in the other commit you reference) to using a memset and > clearing the whole struct. I understand wh

Re: [f2fs-dev] [PATCH 2/2] f2fs: support quota sys files

2017-11-02 Thread Jaegeuk Kim
On 11/02, Chao Yu wrote: > On 2017/10/31 11:40, Jaegeuk Kim wrote: > > This patch supports hidden quota files in the system, which will be used for > > Android. It requires up-to-date f2fs-tools later than v1.9.0. > > > > Signed-off-by: Jaegeuk Kim > > --- > > fs/f2fs/checkpoint.c | 9 +++- > >

[PATCH net-next 2/6] net: hns3: fix for getting advertised_caps in hns3_get_link_ksettings

2017-11-02 Thread Lipeng
From: Fuyun Liang This patch fixes a bug for ethtool's get_link_ksettings(). The advertising for autoneg is always added to advertised_caps whether autoneg is enable or disable. This patch fixes it. Fixes: 496d03e (net: hns3: Add Ethtool support to HNS3 driver) Signed-off-by: Fuyun Liang Signed

[PATCH net-next 0/6] net: hns3: support set_link_ksettings and for nway_reset ethtool command

2017-11-02 Thread Lipeng
This patch-set adds support for set_link_ksettings && for nway_resets ethtool command and fixes some related ethtool bugs. 1, patch[4/6] adds support for ethtool_ops.set_link_ksettings. 2, patch[5/6] adds support ethtool_ops.for nway_reset. 3, patch[1/6,2/6,3/6,6/6] fix some bugs for getting port i

[PATCH net-next 1/6] net: hns3: fix for getting autoneg in hns3_get_link_ksettings

2017-11-02 Thread Lipeng
From: Fuyun Liang This patch fixes a bug for ethtool's get_link_ksettings(). When phy exists, we should get autoneg from phy rather than from mac. Because the value of mac.autoneg is invalid when phy exists. Fixes: 496d03e (net: hns3: Add Ethtool support to HNS3 driver) Signed-off-by: Fuyun Lian

Re: [PATCH] mm: try to free swap only for reading swap fault

2017-11-02 Thread zhouxianrong
i mean for reading swap fault try_to_free_swap in do_swap_page could hurt clean swap cache pages and make them dirty. it affects reclaim procedure in shrink_page_list and let this function write out much more these dirty anonymous pages. in fact these dirty anonymous pages might keep clean origina

[PATCH net-next 6/6] net: hns3: fix a bug for phy supported feature initialization

2017-11-02 Thread Lipeng
From: Fuyun Liang This patch fixes a bug for phy supported feature initialization. Currently, the value of phydev->supported is initialized by kernel. So it includes many features that we do not support, such as SUPPORTED_FIBRE and SUPPORTED_BNC. This patch fixes it. Fixes: 256727d (net: hns3: A

Re: [PATCH v2] f2fs: fix out-of-free problem caused by atomic write

2017-11-02 Thread Jaegeuk Kim
On 10/30, Yunlong Song wrote: > f2fs_balance_fs only actives once in the commit_inmem_pages, but there > are more than one page to commit, so all the other pages will miss the > check. This will lead to out-of-free problem when commit a very large > file. However, we cannot do f2fs_balance_fs for e

Re: [PATCH v3] printk: Add console owner and waiter logic to load balance console writes

2017-11-02 Thread Steven Rostedt
On Thu, 2 Nov 2017 23:16:16 +0100 Vlastimil Babka wrote: > > + if (spin) { > > + /* We spin waiting for the owner to release us > > */ > > + spin_acquire(&console_owner_dep_map, 0, 0, > > _THIS_IP_); > > +

Re: [PATCH] bitmap: Fix optimization of bitmap_set/clear for big-endian machines

2017-11-02 Thread Michael Ellerman
Matthew Wilcox writes: > (I don't think I can reliably send patches from outlook; sorry for > breaking the threading) > > I see where we're not incrementing the failure count ... try this patch! > > --- 8< --- > > Subject: Fix bitmap optimisation tests to report errors correctly > From: Matthew W

Re: [PATCH v7 6/6] x86/tsc: use tsc early

2017-11-02 Thread Dou Liyang
Hi Pavel, At 11/03/2017 01:26 AM, Pavel Tatashin wrote: tsc_early_init(): Determines offset, shift and multiplier for the early clock based on the TSC frequency. tsc_early_fini() Implement the finish part of early tsc feature, prints message about the offset, which can be useful to find out how

Re: [PATCH v10 02/13] x86/insn-eval: Compute linear address in several utility functions

2017-11-02 Thread Ricardo Neri
On Thu, Nov 02, 2017 at 12:07:13PM +0100, Thomas Gleixner wrote: > On Thu, 2 Nov 2017, Ingo Molnar wrote: > > > * Ricardo Neri wrote: > > > > > + /* > > > + * -EDOM means that we must ignore the address_offset. In such a case, > > > + * in 64-bit mode the effective address relative to the RIP

Re: [PATCH v10 02/13] x86/insn-eval: Compute linear address in several utility functions

2017-11-02 Thread Ricardo Neri
On Thu, Nov 02, 2017 at 09:51:08AM +0100, Ingo Molnar wrote: > > * Ricardo Neri wrote: > > > + /* > > +* -EDOM means that we must ignore the address_offset. In such a case, > > +* in 64-bit mode the effective address relative to the RIP of the > > +* following instruction. > > +

[PATCH 3/3 update] kdump: round up the total memory size to 128M for crashkernel reservation

2017-11-02 Thread Dave Young
The total memory size we get in kernel is usually slightly less than 2G with a 2G memory module machine. The main reason is bios/firmware reserve some area it will not export all memory as usable to Linux. 2G memory X86 kvm guest test result of the total_mem value: UEFI boot with ovmf: 0x7ef1

Re: [PATCH v3 2/3] KVM: add converters between pfn_t and kvm_pfn_t

2017-11-02 Thread Haozhong Zhang
On 11/02/17 19:25 -0700, Dan Williams wrote: > On Thu, Nov 2, 2017 at 6:16 PM, Haozhong Zhang > wrote: > > Signed-off-by: Haozhong Zhang > > --- > > include/linux/kvm_host.h | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h > >

Re: [PATCH] selftests: lib.mk: print individual test results to console by default

2017-11-02 Thread Michael Ellerman
Shuah Khan writes: > Change run_tests to print individual test results to console by default. > Introduce "summary" option to print individual test results to a file > /tmp/test_name and just print the summary to the console. > > This change is necessary to support use-cases where test machines g

Re: [PATCH v2 2/3] hwmon: (aspeed-pwm-tacho) Deassert reset in probe

2017-11-02 Thread Joel Stanley
On Fri, Nov 3, 2017 at 1:54 AM, Guenter Roeck wrote: > On Thu, Nov 02, 2017 at 02:53:48PM +1100, Joel Stanley wrote: >> The ASPEED SoC must deassert a reset in order to use the PWM/tach >> peripheral. >> > Again, you claim that the current driver would not work at all, which > is simply not correc

Re: [PATCH 02/15] mm, dax: introduce pfn_t_special()

2017-11-02 Thread Michael Ellerman
Dan Williams writes: > In support of removing the VM_MIXEDMAP indication from DAX VMAs, > introduce pfn_t_special() for drivers to indicate that _PAGE_SPECIAL > should be used for DAX ptes. This also helps identify drivers like > dccssblk that only want to use DAX in a read-only fashion without >

Re: [PATCH v2] buffer: Avoid setting buffer bits that are already set

2017-11-02 Thread kemi
On 2017年10月24日 09:16, Kemi Wang wrote: > It's expensive to set buffer flags that are already set, because that > causes a costly cache line transition. > > A common case is setting the "verified" flag during ext4 writes. > This patch checks for the flag being set first. > > With the AIM7/creat-

Re: [PATCH v3 2/3] KVM: add converters between pfn_t and kvm_pfn_t

2017-11-02 Thread Dan Williams
On Thu, Nov 2, 2017 at 6:16 PM, Haozhong Zhang wrote: > Signed-off-by: Haozhong Zhang > --- > include/linux/kvm_host.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h > index 6882538eda32..759fe498c89e 100644 > --- a/include/linux/k

RE: [PATCH] IB/CM: fix memory corruption by avoiding unnecessary memset

2017-11-02 Thread Parav Pandit
Hi Qing, > -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Qing Huang > Sent: Thursday, November 02, 2017 6:22 PM > To: linux-r...@vger.kernel.org; linux-kernel@vger.kernel.org > Cc: dledf...@redhat.com; sean.he...@intel

[PATCH v2 4/4] f2fs: avoid race in between GC and block exchange

2017-11-02 Thread Chao Yu
During block exchange in {insert,collapse,move}_range, page-block mapping is unstable due to mapping moving or recovery, so there should be no concurrent cache read operation rely on such mapping, nor cache write operation to mess up block exchange. So this patch let background GC be aware of that

Re: [PATCH] x86/module: Detect corrupt relocations against nonzero data

2017-11-02 Thread Josh Poimboeuf
On Thu, Nov 02, 2017 at 04:57:11PM -0500, Josh Poimboeuf wrote: > There have been some cases where external tooling (e.g., kpatch-build) > creates a corrupt relocation which targets the wrong address. This is a > silent failure which can corrupt memory in unexpected places. > > On x86, the bytes

[PATCH] platform/x86: hp-wmi: Fix tablet mode detection for convertibles

2017-11-02 Thread Stefan Brüns
Commit f9cf3b2880cc ("platform/x86: hp-wmi: Refactor dock and tablet state fetchers") consolidated the methods for docking and laptop mode detection, but omitted to apply the correct mask for the laptop mode (it always uses the constant for docking). Signed-off-by: Stefan Brüns --- This change

Re: [PATCH v7 1/6] x86/tsc: remove tsc_disabled flag

2017-11-02 Thread Dou Liyang
Hi Pavel, At 11/03/2017 01:26 AM, Pavel Tatashin wrote: tsc_disabled is set when notsc is passed as kernel parameter. The reason we have notsc is to avoid timing problems on multi-preccors systems. However, we already have a mechanism to detect and resolve these issues by invoking tsc unstable p

[PATCH] autofs: don't fail mount for transient error

2017-11-02 Thread NeilBrown
Currently if the autofs kernel module gets an error when writing to the pipe which links to the daemon, then it marks the whole moutpoint as catatonic, and it will stop working. It is possible that the error is transient. This can happen if the daemon is slow and more than 16 requests queue up.

Re: [PATCH v3] dell-laptop: Fix keyboard led max_brightness property for Dell Latitude E6410

2017-11-02 Thread Darren Hart
On Thu, Nov 02, 2017 at 09:25:24PM +0100, Pali Rohár wrote: > This machine reports number of keyboard backlight led levels, instead of > value of the last led level index. Therefore max_brightness properly needs > to be subtracted by 1 to match led max_brightness API. > > Signed-off-by: Pali Rohár

[PATCH v3 0/3] KVM: MMU: fix kvm_is_mmio_pfn()

2017-11-02 Thread Haozhong Zhang
Some reserved pages, such as those from NVDIMM DAX devices, are not for MMIO, and can be mapped with cached memory type for better performance. However, the above check misconceives those pages as MMIO. Because KVM maps MMIO pages with UC memory type, the performance of guest accesses to those pag

[PATCH v3 2/3] KVM: add converters between pfn_t and kvm_pfn_t

2017-11-02 Thread Haozhong Zhang
Signed-off-by: Haozhong Zhang --- include/linux/kvm_host.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 6882538eda32..759fe498c89e 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -67,6 +67,9 @@ #define KV

[PATCH v3 1/3] x86/mm: add function to check if a pfn is UC/UC-

2017-11-02 Thread Haozhong Zhang
pat_pfn_is_uc(pfn) is added and will be used by KVM to check whether the memory type of a host pfn is UC/UC-. Signed-off-by: Haozhong Zhang --- arch/x86/include/asm/pat.h | 2 ++ arch/x86/mm/pat.c | 14 ++ 2 files changed, 16 insertions(+) diff --git a/arch/x86/include/asm

[PATCH v3 3/3] KVM: MMU: consider host cache mode in MMIO page check

2017-11-02 Thread Haozhong Zhang
Some reserved pages, such as those from NVDIMM DAX devices, are not for MMIO, and can be mapped with cached memory type for better performance. However, the above check misconceives those pages as MMIO. Because KVM maps MMIO pages with UC memory type, the performance of guest accesses to those pag

  1   2   3   4   5   6   7   8   9   10   >