Re: [PATCH v4 0/4] net: ethernet: ti: cpts: fix tx timestamping timeout

2017-08-01 Thread David Miller
From: Grygorii Strashko Date: Fri, 28 Jul 2017 17:30:01 -0500 > With the low Ethernet connection speed cpdma notification about packet > processing can be received before CPTS TX timestamp event, which is set > when packet actually left CPSW while cpdma notification is sent when packet > pushed i

Re: [RFC]Add new mdev interface for QoS

2017-08-01 Thread Alex Williamson
On Tue, 1 Aug 2017 13:54:27 +0800 "Gao, Ping A" wrote: > On 2017/7/28 0:00, Gao, Ping A wrote: > > On 2017/7/27 0:43, Alex Williamson wrote: > >> [cc +libvir-list] > >> > >> On Wed, 26 Jul 2017 21:16:59 +0800 > >> "Gao, Ping A" wrote: > >> > >>> The vfio-mdev provide the capability to let di

Re: [PATCH 0/6] Support for LEGO MINDSTORMS EV3 LCD display

2017-08-01 Thread David Lechner
On 08/01/2017 01:08 PM, Noralf Trønnes wrote: (cc: Daniel Vetter) Den 01.08.2017 18.51, skrev David Lechner: On 07/30/2017 12:14 PM, Noralf Trønnes wrote: Den 29.07.2017 21.40, skrev David Lechner: On 07/29/2017 02:17 PM, David Lechner wrote: The goal of this series is to get the built-in L

Re: [PATCH v3 14/16] switchtec_ntb: implement scratchpad registers

2017-08-01 Thread Logan Gunthorpe
On 01/08/17 01:10 PM, Jon Mason wrote: > It would probaly be better if I remarked about the SPADs in the actual > patch about the SPADS :) > > The whole point of using the SPADs in the NTB driver was to workaround > the problems establishing a connection between the two sides of the > NTB and wh

Re: [PATCH v2 0/4] fix several TLB batch races

2017-08-01 Thread Andrew Morton
On Tue, 1 Aug 2017 14:56:13 +0900 Minchan Kim wrote: > Nadav and Mel founded several subtle races caused by TLB batching. > This patchset aims for solving thoses problems using embedding > [inc|dec]_tlb_flush_pending to TLB batching API. > With that, places to know TLB flush pending catch it up

Re: [PATCH] drivers/net/wan/z85230.c: Use designated initializers

2017-08-01 Thread David Miller
From: Kees Cook Date: Sun, 30 Jul 2017 18:31:17 -0700 > In preparation for the randstruct gcc plugin performing randomization of > structures that are entirely function pointers, use designated initializers > so the compiler doesn't get angry. > > Reported-by: kbuild test robot > Signed-off-by:

Re: linux-next: manual merge of the akpm tree with the wberr tree

2017-08-01 Thread Andrew Morton
On Tue, 01 Aug 2017 07:31:33 -0400 Jeff Layton wrote: > On Tue, 2017-08-01 at 06:59 -0400, Jeff Layton wrote: > > On Tue, 2017-08-01 at 15:46 +1000, Stephen Rothwell wrote: > > > Hi Andrew, > > > > > > Today's linux-next merge of the akpm-current tree got a conflict in: > > > > > > include/li

Re: [PATCH] Cipso: cipso_v4_optptr enter infinite loop

2017-08-01 Thread David Miller
From: Yujuan Qi Date: Mon, 31 Jul 2017 11:23:01 +0800 > From: "yujuan.qi" > > in for(),if((optlen > 0) && (optptr[1] == 0)), enter infinite loop. > > Test: receive a packet which the ip length > 20 and the first byte of ip > option is 0, produce this issue > > Signed-off-by: yujuan.qi Appl

admin

2017-08-01 Thread administrador
ATENCIÓN; Su buzón ha superado el límite de almacenamiento, que es de 5 GB definidos por el administrador, quien actualmente está ejecutando en 10.9GB, no puede ser capaz de enviar o recibir correo nuevo hasta que vuelva a validar su buzón de correo electrónico. Para revalidar su buzón de corre

Re: [PATCH v2 2/6] ipc: mqueue: Replace timespec with timespec64

2017-08-01 Thread Deepa Dinamani
> The audit bits look fine. Deepa, I assume you are going to seek to > have this go in through a tree other than audit? > > Acked-by: Paul Moore Yes, the proposal was to go through Al's tree since he already has a few ipc patches queued up. Thanks, Deepa

[PATCH v2 1/2] HID: input: map digitizer battery usage

2017-08-01 Thread Dmitry Torokhov
We already mapped battery strength reports from the generic device control page, but we did not update capacity from input reports, nor we mapped the battery strength report from the digitizer page, so let's implement this now. Batteries driven by the input reports will now start in "unknown" stat

Re: [PATCH v2 4/6] ipc: sem: Make sem_array timestamps y2038 safe

2017-08-01 Thread Deepa Dinamani
> Unless I'm missing something here, you can drop the cast to > unsigned long long: time64_t is always 'long long' and won't > cause a warning here. > > We only need a cast like this when printing the members of 'struct > timespec64', since that can be either 'long long' or 'long', when > it is de

[PATCH v2 2/2] HID: input: optionally use device id in battery name

2017-08-01 Thread Dmitry Torokhov
Manufacturers do not always populate serial number in their devices, so let's fall back to device ID when forming the battery device name. As a result, batteries in devices without serial number will be named like this: hid-0018:2D1F:510E.0001-battery (as opposed to hid--battery for the f

[PATCH v7 0/2] Add spi-nor flash device pm support

2017-08-01 Thread Kamal Dasu
Changes since v6 spi-nor.h - Reverted all v6 changes - Added info pointer to spi-nor structure - Added quad_enable function pointer spi-nor.c - Reverted all v6 changes - Refactored spi_nor_init() function - Added mtd resume handlers The V7 changes below implements power management support usin

[PATCH v7 1/2] mtd: spi-nor: add spi_nor_init() function

2017-08-01 Thread Kamal Dasu
This patch extracts some chunks from spi_nor_init_params and spi_nor_scan() and moves them into a new spi_nor_init() function. Indeed, spi_nor_init() regroups all the required SPI flash commands to be sent to the SPI flash memory before performing any runtime operations (Fast Read, Page Program,

[PATCH v7 2/2] mtd: spi-nor: Add spi-nor mtd resume handler

2017-08-01 Thread Kamal Dasu
Implemented and populated spi-nor mtd PM handlers for resume ops. spi-nor resume op re-initializes spi-nor flash to its probed state by calling the newly implemented spi_nor_init() function. Signed-off-by: Kamal Dasu --- drivers/mtd/spi-nor/spi-nor.c | 13 + 1 file changed, 13 insert

Re: [PATCH net-next] net: dsa: Add support for 64-bit statistics

2017-08-01 Thread Florian Fainelli
On 08/01/2017 03:00 PM, Florian Fainelli wrote: > DSA slave network devices maintain a pair of bytes and packets counters > for each directions, but these are not 64-bit capable. Re-use > pcpu_sw_netstats which contains exactly what we need for that purpose > and update the code path to report 64-b

Re: [PATCH] KVM: X86: Fix loss of pending INIT due to race

2017-08-01 Thread Wanpeng Li
2017-08-02 0:27 GMT+08:00 Paolo Bonzini : > On 30/07/2017 11:42, Wanpeng Li wrote: >> From: Wanpeng Li >> >> When SMP VM start, AP may lost INIT because of receiving INIT between >> kvm_vcpu_ioctl_x86_get/set_vcpu_events. >> >>vcpu 0 vcpu 1 >>

Re: [PATCH v2] KVM: nVMX: Fix attempting to emulate "Acknowledge interrupt on exit" when there is no interrupt which L1 requires to inject to L2

2017-08-01 Thread Wanpeng Li
2017-08-02 3:59 GMT+08:00 Radim Krčmář : > 2017-07-31 19:25-0700, Wanpeng Li: >> From: Wanpeng Li >> >> [ cut here ] >> WARNING: CPU: 5 PID: 2288 at arch/x86/kvm/vmx.c:11124 >> nested_vmx_vmexit+0xd64/0xd70 [kvm_intel] >> CPU: 5 PID: 2288 Comm: qemu-system-x86 Not tainte

Re: [PATCH net-next v3 0/4] net-next: mediatek: add support for ethernet on MT7622 SoC

2017-08-01 Thread David Miller
From: Date: Mon, 31 Jul 2017 18:05:07 +0800 > From: Sean Wang > > Changes since v2: > - update John's mail > > Changes since v1: > - add refinement for ethernet clock management > - take out the code block for ESW, add it until ESW driver is actually > introduced > > The series adds the driv

[PATCH v2] dm: allow device-mapper to operate without dax support

2017-08-01 Thread Dan Williams
Rather than 'select dax', let the fact that BLK_DEV_PMEM selects dax act as a gate for the device-mapper dax support. Given that all the dax core routines compile to nops when CONFIG_DAX=n, we can simply handle the alloc_dax() error as expected and ifdef out the other dax support code. Cc: Alasdai

Re: [PATCH] iwlwifi: Demote messages about fw flags size to info

2017-08-01 Thread João Paulo Rechi Vita
Hello Luca, On Mon, Jul 24, 2017 at 4:01 AM, Coelho, Luciano wrote: > On Fri, 2017-07-21 at 07:51 -0700, João Paulo Rechi Vita wrote: (...) >> Currently these messages are presented to the user during boot if there >> is no bootsplash covering the console, sometimes even if the boot splash >> i

Re: [RFC][PATCH 1/5] mm: Rework {set,clear,mm}_tlb_flush_pending()

2017-08-01 Thread Peter Zijlstra
On Tue, Aug 01, 2017 at 06:48:20PM +0200, Peter Zijlstra wrote: > On Tue, Aug 01, 2017 at 05:44:14PM +0100, Will Deacon wrote: > > On Tue, Aug 01, 2017 at 06:39:03PM +0200, Peter Zijlstra wrote: > > > Still this is all rather unsatisfactory. Either we should define > > > flush_tlb*() to imply a bar

Re: [PATCH v7 15/15] RISC-V: Build Infastructure

2017-08-01 Thread Masahiro Yamada
Hi. > diff --git a/arch/riscv/include/asm/Kbuild b/arch/riscv/include/asm/Kbuild > new file mode 100644 > index ..18158be62a2b > --- /dev/null > +++ b/arch/riscv/include/asm/Kbuild > @@ -0,0 +1,61 @@ > +generic-y += bugs.h > +generic-y += cacheflush.h > +generic-y += checksum.h > +gene

[PATCH v2] KVM: X86: Fix loss of pending INIT due to race

2017-08-01 Thread Wanpeng Li
From: Wanpeng Li When SMP VM start, AP may lost INIT because of receiving INIT between kvm_vcpu_ioctl_x86_get/set_vcpu_events. vcpu 0 vcpu 1 kvm_vcpu_ioctl_x86_get_vcpu_events events->smi.l

[PATCH v3 1/2] hwmon: (it87) Split out chip registers setting code on probe path

2017-08-01 Thread Maciej S. Szmigiero
This commit splits out chip registers setting code on probe path to separate functions so they can be reused for setting the device properly again when system resumes from suspend. While we are at it let's also make clear that on IT8720 and IT8782 it's the VCCH5V line that is (possibly) routed to

[PATCH v3 2/2] hwmon: (it87) Reapply probe path chip registers settings after resume

2017-08-01 Thread Maciej S. Szmigiero
After a suspend / resume cycle we possibly need to reapply chip registers settings that we had set or fixed in a probe path, since they might have been reset to default values or set incorrectly by a BIOS again. Tested on a Gigabyte M720-US3 board, which requires routing internal VCCH5V to in7 (a

[PATCH V4] pci: quirk: Apply APM ACS quirk to XGene devices

2017-08-01 Thread Feng Kan
The APM X-Gene PCIe root port does not support ACS at this point. However, the hw provides isolation and source validation through the SMMU. The stream ID generated by the PCIe ports contain both the BDF as well as the port ID in its 3 most significant bits. Turn on ACS but disable all the peer to

Re: [PATCH 1/3] lib/test_kmod: tidy up bounds checking

2017-08-01 Thread Luis R. Rodriguez
On Fri, Jul 07, 2017 at 11:39:33AM +0300, Dan Carpenter wrote: > There is technically a bug where we don't test for negatives in > test_dev_config_update_uint_sync(). "new" is long and UINT_MAX is > unsigned int so on 64 bit systems negatives are allowed. Good catch. I however prefer we instead j

Re: [PATCH V4] pci: quirk: Apply APM ACS quirk to XGene devices

2017-08-01 Thread Alex Williamson
On Tue, 1 Aug 2017 16:08:13 -0700 Feng Kan wrote: > The APM X-Gene PCIe root port does not support ACS at this point. > However, the hw provides isolation and source validation through > the SMMU. The stream ID generated by the PCIe ports contain both > the BDF as well as the port ID in its 3 mo

Re: [PATCH 2/3] lib/test_kmod: take the lock in register_test_dev_kmod()

2017-08-01 Thread Luis R. Rodriguez
On Fri, Jul 07, 2017 at 11:40:36AM +0300, Dan Carpenter wrote: > We accidentally just drop the lock twice instead of taking it and then > releasing it. > > Fixes: 39258f448d71 ("kmod: add test driver to stress test the module loader") > Signed-off-by: Dan Carpenter Thanks, queued! Luis

Re: [PATCH 3/3] lib/test_kmod: fix fs module tests

2017-08-01 Thread Luis R. Rodriguez
On Fri, Jul 07, 2017 at 11:41:17AM +0300, Dan Carpenter wrote: > The break was in the wrong place so file system tests don't work as > intended. More importantly it leaked memory per test switch as well. > > Fixes: 39258f448d71 ("kmod: add test driver to stress test the module loader") > Signed-o

Re: lib/test_kmod.c:750: possible garbled statement order ?

2017-08-01 Thread Luis R. Rodriguez
On Mon, Jul 17, 2017 at 07:38:40AM +, David Binderman wrote: > Hello there, > > > lib/test_kmod.c:750]: (style) Statements following return, break, continue, > goto or throw will never be executed. > > case TEST_KMOD_FS_TYPE: > break; > kfree_const(config->test_fs); >

Re: [PATCH] MAINTAINERS: Add Tony and Boris as ACPI/APEI reviewers

2017-08-01 Thread Rafael J. Wysocki
On Friday, July 28, 2017 05:02:11 PM Luck, Tony wrote: > > Since this piece of the ACPI pile is doing RAS, it is perhaps prudent if > > we at least paid attention to it and the direction it takes. So add Tony > > and me as reviewers. > > Acked-by: Tony Luck Applied, thanks!

Re: [PATCH v6 1/1] acpi: apei: Enable APEI multiple GHES source to share a single external IRQ

2017-08-01 Thread Rafael J. Wysocki
On Saturday, July 22, 2017 07:59:54 AM Borislav Petkov wrote: > On Fri, Jul 21, 2017 at 11:24:37AM -0700, Loc Ho wrote: > > X-Gene platforms describe multiple GHES error sources with the same hardware > > error notification type (external interrupt) and interrupt number. > > Change the GHES interru

[PATCH v6 0/3] Expose VMFUNC to the nested hypervisor

2017-08-01 Thread Bandan Das
v6: 3/3: Fix check for memory type in address Change check function name as requested in the review Move setting of mmu->ept_ad to after calling mmu_unload and also reset base_role.ad_disabled appropriately Replace IS_ALIGN with page_address_valid() v5: https://lkml.org/lkml/2017/

[PATCH 3/3] KVM: nVMX: Emulate EPTP switching for the L1 hypervisor

2017-08-01 Thread Bandan Das
When L2 uses vmfunc, L0 utilizes the associated vmexit to emulate a switching of the ept pointer by reloading the guest MMU. Signed-off-by: Paolo Bonzini Signed-off-by: Bandan Das --- arch/x86/include/asm/vmx.h | 6 +++ arch/x86/kvm/vmx.c | 130

[PATCH v6 2/3] KVM: nVMX: Enable VMFUNC for the L1 hypervisor

2017-08-01 Thread Bandan Das
Expose VMFUNC in MSRs and VMCS fields. No actual VMFUNCs are enabled. Signed-off-by: Paolo Bonzini Signed-off-by: Bandan Das --- arch/x86/kvm/vmx.c | 53 +++-- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arc

[PATCH v6 1/3] KVM: vmx: Enable VMFUNCs

2017-08-01 Thread Bandan Das
Enable VMFUNC in the secondary execution controls. This simplifies the changes necessary to expose it to nested hypervisors. VMFUNCs still cause #UD when invoked. Signed-off-by: Paolo Bonzini Signed-off-by: Bandan Das --- arch/x86/include/asm/vmx.h | 3 +++ arch/x86/kvm/vmx.c | 22 ++

Re: [PATCH] cpu_pm: replace raw_notifier to atomic_notifier

2017-08-01 Thread Rafael J. Wysocki
On Friday, July 28, 2017 03:09:25 PM Alex Shi wrote: > This patch replace a rwlock and raw notifier by atomic notifier which > protected by spin_lock and rcu. > > The first to reason to have this replace is due to a 'scheduling while > atomic' bug of RT kernel on arm/arm64 platform. On arm/arm64,

mmotm 2017-08-01-16-29 uploaded

2017-08-01 Thread akpm
The mm-of-the-moment snapshot 2017-08-01-16-29 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: [PATCH V5 0/2] sched: cpufreq: Allow remote callbacks

2017-08-01 Thread Rafael J. Wysocki
On Friday, July 28, 2017 12:16:37 PM Viresh Kumar wrote: > With Android UI and benchmarks the latency of cpufreq response to > certain scheduling events can become very critical. Currently, callbacks > into cpufreq governors are only made from the scheduler if the target > CPU of the event is the s

Re: [RFC PATCH v2] membarrier: expedited private command

2017-08-01 Thread Paul E. McKenney
On Tue, Aug 01, 2017 at 04:16:54PM +0200, Peter Zijlstra wrote: > On Tue, Aug 01, 2017 at 06:23:09AM -0700, Paul E. McKenney wrote: > > On Tue, Aug 01, 2017 at 12:22:03PM +0200, Peter Zijlstra wrote: > > > > [ . . . ] > > > > > As to scheduler IPIs, those are limited to the CPUs the user is limit

Re: [PATCH 1/1] cpufreq: imx6q: imx6ull: use PLL1 for frequency higher than 528MHz

2017-08-01 Thread Rafael J. Wysocki
On Friday, July 28, 2017 10:36:33 AM Sébastien Szymanski wrote: > Setting the frequency higher than 528Mhz actually sets the ARM > clock to 528MHz. That's because PLL2 is used as the root clock when the > frequency is higher than 396MHz. > > cpupower frequency-set -f 792000 > > arm_clk_root on th

[PATCH] PM / wakeup: Set power.can_wakeup if wakeup_sysfs_add() fails

2017-08-01 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Currently, an error from wakeup_sysfs_add() in device_set_wakeup_capable() causes the device's power.can_wakeup flag to remain unset even though the device technically is capable of signaling wakeup. If wakeup_sysfs_add() fails user space may not be able to enable the dev

Re: [PATCH] sysfs: replace WARN() with pr_debug in sysfs_remove_group()

2017-08-01 Thread Ethan Zhao
Grep, On 2017/8/2 2:06, Greg KH wrote: On Tue, Aug 01, 2017 at 05:02:25PM +0900, Ethan Zhao wrote: There is no enough error handling in block device adding/registration path, for example, device_add_disk() blk_register_queue() When kernel returns from device_add_disk(), no return value to

[PATCH] crypto: x86/sha1 : Fix reads beyond the number of blocks passed

2017-08-01 Thread Megha Dey
It was reported that the sha1 AVX2 function(sha1_transform_avx2) is reading ahead beyond its intended data, and causing a crash if the next block is beyond page boundary: http://marc.info/?l=linux-crypto-vger&m=149373371023377 This patch makes sure that there is no overflow for any buffer length.

Re: [Xen-devel] [PATCH v2] xen: get rid of paravirt op adjust_exception_frame

2017-08-01 Thread Andy Lutomirski
On Tue, Aug 1, 2017 at 4:38 PM, Andrew Cooper wrote: > On 01/08/2017 20:45, Andy Lutomirski wrote: >> Also, IMO it would be nice to fully finish the job. Remaining steps are: >> >> 1. Unsuck the SYSCALL entries on Xen PV. >> 2. Unsuck the SYENTER entry on Xen PV. >> 3. Make a xen_nmi that's actua

Re: [Xen-devel] [PATCH v2] xen: get rid of paravirt op adjust_exception_frame

2017-08-01 Thread Andrew Cooper
On 01/08/2017 20:45, Andy Lutomirski wrote: > Also, IMO it would be nice to fully finish the job. Remaining steps are: > > 1. Unsuck the SYSCALL entries on Xen PV. > 2. Unsuck the SYENTER entry on Xen PV. > 3. Make a xen_nmi that's actually correct (should be trivial) > > #1 is here: > > https://g

Re: linux-next: Tree for Aug 1

2017-08-01 Thread Sergey Senozhatsky
Hello, On (08/01/17 15:28), Arnd Bergmann wrote: [..] > > Looking into it now, sorry for the breakage. > > Does this fix it? I definitely got this part wrong as I see now, we must > look up the 'tail' after calling __tty_buffer_request_room, not before. yes, it does. thanks! Tested-by: Sergey S

[PATCH 1/2] atm: adummy: constify attribute_group structure

2017-08-01 Thread Amitoj Kaur Chawla
Functions working with attribute_groups provided by work with const attribute_group. These attribute_group structures do not change at runtime so mark them as const. File size before: text data bss dec hex filename 2033 1448 03481 d99 drivers/atm/adummy.o Fi

[PATCH 2/2] atm: solos-pci: constify attribute_group structures

2017-08-01 Thread Amitoj Kaur Chawla
Functions working with attribute_groups provided by work with const attribute_group. These attribute_group structures do not change at runtime so mark them as const. File size before: text data bss dec hex filename 3574028424 832 64996fde4 drivers/atm/solos-pci.o

Re: [RFC PATCH] exec: Avoid recursive modprobe for binary format handlers

2017-08-01 Thread Luis R. Rodriguez
On Fri, Jul 21, 2017 at 03:05:20PM +0100, Matt Redfearn wrote: > When the kernel does not have a binary format handler for an executable > it is attempting to load, when CONFIG_MODULES is enabled it will attempt > to load a module for that format. If the kernel does not have a binary > format handl

Re: RCU stall when using function_graph

2017-08-01 Thread Steven Rostedt
On Wed, 2 Aug 2017 00:15:44 +0200 Daniel Lezcano wrote: > On 02/08/2017 00:04, Paul E. McKenney wrote: > >> Hi Paul, > >> > >> I have been trying to set the function_graph tracer for ftrace and each > >> time I > >> get a CPU stall. > >> > >> How to reproduce: > >> - > >> > >>

Re: [PATCH 3/3] EDAC, ghes: Make it a proper module

2017-08-01 Thread Kani, Toshimitsu
On Tue, 2017-08-01 at 11:46 +0200, Borislav Petkov wrote: > On Mon, Jul 31, 2017 at 08:19:32PM +, Kani, Toshimitsu wrote: > > I'd prefer to add the whitelist check to ghes_edac first.  This > > makes the existing code to work.  We can then work on refactoring > > changes like this on top of it

[Patch V2] crypto: x86/sha1 : Fix reads beyond the number of blocks passed

2017-08-01 Thread Megha Dey
It was reported that the sha1 AVX2 function(sha1_transform_avx2) is reading ahead beyond its intended data, and causing a crash if the next block is beyond page boundary: http://marc.info/?l=linux-crypto-vger&m=149373371023377 This patch makes sure that there is no overflow for any buffer length.

[PATCH] ACPI / dock: constify attribute_group structure

2017-08-01 Thread Amitoj Kaur Chawla
Functions working with attribute_groups provided by work with const attribute_group. These attribute_group structures do not change at runtime so mark them as const. File size before: text data bss dec hex filename 7902 3528 64 114942ce6 drivers/acpi/dock.o Fil

[PATCH] fault-inject: fix wrong should_fail() decision in task context

2017-08-01 Thread Akinobu Mita
Commit 1203c8e6fb0a ("fault-inject: simplify access check for fail-nth") unintentionally broke a conditional statement in should_fail(). Any faults are not injected in the task context by the change when the systematic fault injection is not used. This change restores to the previous correct beha

Re: [PATCH v4] kbuild: trivial cleanups on the comments

2017-08-01 Thread Masahiro Yamada
Hi. 2017-08-01 20:36 GMT+09:00 Cao jin : > Signed-off-by: Cao jin > --- > Since this one has not been merged yet and I find more cleanups, > so I have v4 out. > > v3 addressed comments from Masahiro-san and Randy Dunlap. > v4 find several more cleanups in Makefile.build worth to be >included

Re: [PATCH] drivers/net/wan/z85230.c: Use designated initializers

2017-08-01 Thread Kees Cook
On Tue, Aug 1, 2017 at 3:29 PM, David Miller wrote: > From: Kees Cook > Date: Sun, 30 Jul 2017 18:31:17 -0700 > >> In preparation for the randstruct gcc plugin performing randomization of >> structures that are entirely function pointers, use designated initializers >> so the compiler doesn't get

Re: [PATCH 10/14] ARM: dts: rockchip: add watchdog dt node for rv1108

2017-08-01 Thread Andy Yan
Hi Heiko: On 2017年08月02日 02:55, Heiko Stuebner wrote: Hi Andy, Am Dienstag, 1. August 2017, 17:16:40 CEST schrieb Heiko Stuebner: Am Montag, 31. Juli 2017, 18:18:30 CEST schrieb Andy Yan: Add watchdog device tree node for rv1108 Signed-off-by: Andy Yan I've adapted this patch to apply aga

linux-kernel@vger.kernel.org

2017-08-01 Thread Ashish Kalra
This Patch is to solve coding style issues, Major changes to add Space around &,+,-. Major pending is to fix CamelCase Signed-off-by: Ashish Kalra --- drivers/staging/rtl8188eu/core/rtw_ap.c | 65 +++-- 1 file changed, 29 insertions(+), 36 deletions(-) diff --git a/

Re: [RFC PATCH v2] membarrier: expedited private command

2017-08-01 Thread Nicholas Piggin
On Tue, 1 Aug 2017 16:32:03 -0700 "Paul E. McKenney" wrote: > On Tue, Aug 01, 2017 at 04:16:54PM +0200, Peter Zijlstra wrote: > > On Tue, Aug 01, 2017 at 06:23:09AM -0700, Paul E. McKenney wrote: > > > On Tue, Aug 01, 2017 at 12:22:03PM +0200, Peter Zijlstra wrote: > > > > > > [ . . . ] > > >

Re: [PATCH v2 1/4] mm: refactoring TLB gathering API

2017-08-01 Thread Nadav Amit
Mel Gorman wrote: > On Tue, Aug 01, 2017 at 02:56:14PM +0900, Minchan Kim wrote: >> This patch is ready for solving race problems caused by TLB batch. > > s/is ready/is a preparatory patch/ > >> For that, we will increase/decrease TLB flush pending count of >> mm_struct whenever tlb_[gather|fin

Re: [PATCH v2 1/4] mm: refactoring TLB gathering API

2017-08-01 Thread Minchan Kim
Hi Nadav, On Tue, Aug 01, 2017 at 05:46:14PM -0700, Nadav Amit wrote: > Mel Gorman wrote: > > > On Tue, Aug 01, 2017 at 02:56:14PM +0900, Minchan Kim wrote: > >> This patch is ready for solving race problems caused by TLB batch. > > > > s/is ready/is a preparatory patch/ > > > >> For that, we

Re: [RFC 2/5] i3c: Add core I3C infrastructure

2017-08-01 Thread Greg Kroah-Hartman
On Tue, Aug 01, 2017 at 11:30:01PM +0200, Boris Brezillon wrote: > > > > No release type? Oh that's bad bad bad and implies you have never > > > > removed a device from your system as the kernel would have complained > > > > loudly at you. > > > > > > You got me, never tried to remove a device

Re: [PATCH v2 1/4] mm: refactoring TLB gathering API

2017-08-01 Thread Minchan Kim
Hi Mel, On Tue, Aug 01, 2017 at 11:30:55AM +0100, Mel Gorman wrote: > On Tue, Aug 01, 2017 at 02:56:14PM +0900, Minchan Kim wrote: > > This patch is ready for solving race problems caused by TLB batch. > > s/is ready/is a preparatory patch/ > > > For that, we will increase/decrease TLB flush pen

Re: [PATCH v2 4/4] mm: fix KSM data corruption

2017-08-01 Thread Minchan Kim
On Tue, Aug 01, 2017 at 12:21:41PM -0700, Nadav Amit wrote: > Minchan Kim wrote: > > > Nadav reported KSM can corrupt the user data by the TLB batching race[1]. > > That means data user written can be lost. > > > > Quote from Nadav Amit > > " > > For this race we need 4 CPUs: > > > > CPU0: Cach

Re: [PATCH v2 4/4] mm: fix KSM data corruption

2017-08-01 Thread Minchan Kim
Hi Andrea, On Tue, Aug 01, 2017 at 09:33:41PM +0200, Andrea Arcangeli wrote: > Hello, > > On Tue, Aug 01, 2017 at 02:56:17PM +0900, Minchan Kim wrote: > > CPU0CPU1CPU2CPU3 > > > > Write the same > > v

Re: [RFC][PATCH 1/5] mm: Rework {set,clear,mm}_tlb_flush_pending()

2017-08-01 Thread Benjamin Herrenschmidt
On Tue, 2017-08-01 at 18:48 +0200, Peter Zijlstra wrote: > On Tue, Aug 01, 2017 at 05:44:14PM +0100, Will Deacon wrote: > > On Tue, Aug 01, 2017 at 06:39:03PM +0200, Peter Zijlstra wrote: > > > Still this is all rather unsatisfactory. Either we should define > > > flush_tlb*() to imply a barrier wh

Re: [PATCH 3/3] cpuset: make nr_cpusets private

2017-08-01 Thread Zefan Li
On 2017/8/1 23:24, Paolo Bonzini wrote: > Any use of key->enabled (that is static_key_enabled and static_key_count) > outside jump_label_lock should handle its own serialization. In the case > of cpusets_enabled_key, the key is always incremented/decremented under > cpuset_mutex, and hence the sam

Re: [PATCH 0/2] Workaround for uPD72020x USB3 chips

2017-08-01 Thread Bjorn Helgaas
On Mon, Jul 10, 2017 at 04:52:28PM +0100, Marc Zyngier wrote: > Ard and myself have just spent quite some time lately trying to pin > down an issue in the DMA code which was taking the form of a PCIe USB3 > controller issuing a DMA access at some bizarre address, and being > caught red-handed by th

Re: [PATCH] gpio: drop unnecessary includes from include/linux/gpio/driver.h

2017-08-01 Thread Masahiro Yamada
Hi. 2017-08-01 20:04 GMT+09:00 Andy Shevchenko : > On Tue, Aug 1, 2017 at 10:53 AM, Linus Walleij > wrote: >> On Mon, Jul 31, 2017 at 4:04 PM, Andy Shevchenko >> wrote: >>> On Mon, 2017-07-31 at 15:48 +0200, Linus Walleij wrote: On Tue, Jul 4, 2017 at 12:06 PM, Andy Shevchenko wrote:

linux-next: build warning after merge of the fbdev tree

2017-08-01 Thread Stephen Rothwell
Hi Bartlomiej, After merging the fbdev tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/video/fbdev/matrox/matroxfb_base.c:1583:12: warning: 'hotplug' defined but not used [-Wunused-variable] static int hotplug = 0; ^ Introduced by commit 376b3

Re: [PATCH] f2fs: update cur_valid_map_mir together with cur_valid_map

2017-08-01 Thread Chao Yu
Hi Yunlong, On 2017/8/2 0:59, Yunlong Song wrote: > Hi Chao, > I think there is no need to test mirror bitmap when original bitmap's > check > get passed, it is an instruction waste for "test". By the way, previous patch > uses WARN to skip trigger panic when the memory is flipped, I think it

Re: [PATCH] dm: enable opt-out of device-mapper dax support

2017-08-01 Thread kbuild test robot
Hi Dan, [auto build test ERROR on dm/for-next] [also build test ERROR on v4.13-rc3 next-20170801] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Dan-Williams/dm-enable-opt-out-of-device-mapper

Re: [PATCH v5 03/10] arm: dts: mt7623: add mt6323.dtsi file

2017-08-01 Thread Yingjoe Chen
On Mon, 2017-07-31 at 15:36 +0800, sean.w...@mediatek.com wrote: <...> > diff --git a/arch/arm/boot/dts/mt7623-evb.dts > b/arch/arm/boot/dts/mt7623-evb.dts > index b60b41c..0686ad7 100644 > --- a/arch/arm/boot/dts/mt7623-evb.dts > +++ b/arch/arm/boot/dts/mt7623-evb.dts > @@ -14,6 +14,7 @@ > > /

Re: [PATCH] dm: enable opt-out of device-mapper dax support

2017-08-01 Thread kbuild test robot
Hi Dan, [auto build test ERROR on dm/for-next] [also build test ERROR on v4.13-rc3 next-20170801] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Dan-Williams/dm-enable-opt-out-of-device-mapper

Re: [RFC][PATCH 1/5] mm: Rework {set,clear,mm}_tlb_flush_pending()

2017-08-01 Thread Benjamin Herrenschmidt
On Tue, 2017-08-01 at 14:14 +0200, Peter Zijlstra wrote: > Right.. but seeing how we're in fact relying on things here it might be > time to go figure this out and document bits. > > *sigh*, I suppose its going to be me doing this.. :-) Thanks mate ! :-) Cheers Ben.

QRE: [PATCH v2] qe: fix compile issue for arm64

2017-08-01 Thread Qiang Zhao
Michael Ellerman wrote: > -Original Message- > From: Michael Ellerman [mailto:m...@ellerman.id.au] > Sent: Monday, July 31, 2017 6:37 PM > To: Qiang Zhao ; o...@buserror.net > Cc: valentin.longch...@keymile.com; linuxppc-...@lists.ozlabs.org; linux- > ker...@vger.kernel.org > Subject: RE

Re: [PATCH v5 03/10] arm: dts: mt7623: add mt6323.dtsi file

2017-08-01 Thread Sean Wang
On Wed, 2017-08-02 at 09:47 +0800, Yingjoe Chen wrote: > On Mon, 2017-07-31 at 15:36 +0800, sean.w...@mediatek.com wrote: > <...> > > diff --git a/arch/arm/boot/dts/mt7623-evb.dts > > b/arch/arm/boot/dts/mt7623-evb.dts > > index b60b41c..0686ad7 100644 > > --- a/arch/arm/boot/dts/mt7623-evb.dts >

Re: [PATCH v2] memory: mtk-smi: Use of_device_get_match_data helper

2017-08-01 Thread Honghui Zhang
On Wed, 2017-07-26 at 20:37 +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > Replace custom code with generic helper to retrieve driver data. Hi, Joerg, would you please take this one, because my last patch[1]([patch v2 0/3] Add larbid init routine for mediatek's gen1 smi larb

Re: [RFC][PATCH 1/5] mm: Rework {set,clear,mm}_tlb_flush_pending()

2017-08-01 Thread Benjamin Herrenschmidt
On Wed, 2017-08-02 at 00:59 +0200, Peter Zijlstra wrote: > > PowerPC for example uses PTESYNC before the TBLIE, so does a SYNC after > > work? Ben? > > From what I gather it is not. You have TLBSYNC for it. So the good news tlbsync is pretty much a nop these days. ptesync is a strict superset of s

Re: [RFC 2/5] i3c: Add core I3C infrastructure

2017-08-01 Thread Greg Kroah-Hartman
On Tue, Aug 01, 2017 at 11:30:01PM +0200, Boris Brezillon wrote: > Hi Greg, > > Le Tue, 1 Aug 2017 10:51:33 -0700, > Greg Kroah-Hartman a écrit : > > > On Tue, Aug 01, 2017 at 12:48:01PM +0200, Boris Brezillon wrote: > > > > > +static DEFINE_MUTEX(i3c_core_lock); > > > > > + > > > > > +void i3c_

Re: [PATCH v4] kbuild: trivial cleanups on the comments

2017-08-01 Thread Cao jin
On 08/02/2017 08:31 AM, Masahiro Yamada wrote: > Hi. > > 2017-08-01 20:36 GMT+09:00 Cao jin : >> Signed-off-by: Cao jin >> --- >> Since this one has not been merged yet and I find more cleanups, >> so I have v4 out. >> >> v3 addressed comments from Masahiro-san and Randy Dunlap. >> v4 find seve

[PATCH 2/5] ARM: socfpga: explicitly request exclusive reset control

2017-08-01 Thread Alan Tull
From: Philipp Zabel Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting reset lines") started to transition the reset control request API calls to explicitly state whether the driver needs exclusive or shared reset control behavior. Convert all drivers requesting exclusive re

[PATCH 5/5] MAINTAINERS: fpga: Update email and add patchwork URL

2017-08-01 Thread Alan Tull
From: Moritz Fischer Add Q: entry for patchwork and update my email address. Signed-off-by: Moritz Fischer Acked-By: Alan Tull Cc: Alan Tull Cc: linux-f...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- MAINTAINERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/M

[PATCH 4/5] fpga: altera-hps2fpga: fix multiple init of l3_remap_lock

2017-08-01 Thread Alan Tull
From: Ian Abbott The global spinlock `l3_remap_lock` is reinitialized every time the "probe" function `alt_fpga_bridge_probe()` is called. It should only be initialized once. Use `DEFINE_SPINLOCK()` to initialize it statically. Fixes: e5f8efa5c8bf ("ARM: socfpga: fpga bridge driver support") C

[PATCH 1/5] fpga: Convert to using %pOF instead of full_name

2017-08-01 Thread Alan Tull
From: Rob Herring Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: Alan Tull Cc: Moritz Fischer Cc: linux-f...@vger.kernel.org Acked-by

[PATCH 3/5] fpga: altera-hps2fpga: add NULL check on of_match_device() return value

2017-08-01 Thread Alan Tull
From: "Gustavo A. R. Silva" Check return value from call to of_match_device() in order to prevent a NULL pointer dereference. In case of NULL print error message and return -ENODEV Signed-off-by: Gustavo A. R. Silva Reviewed-by: Moritz Fischer Signed-off-by: Alan Tull --- drivers/fpga/alter

[PATCH 0/5] patches for FPGA

2017-08-01 Thread Alan Tull
Hi Greg, Please take these patches for FPGA that have been reviewed on the mailing lists. All minor things including two bug fixes, an update to MAINTAINERS, and a couple other minor patches. Thanks, Alan Gustavo A. R. Silva (1): fpga: altera-hps2fpga: add NULL check on of_match_device() retu

linux-next: manual merge of the drm-misc tree with Linus' tree

2017-08-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-misc tree got a conflict in: drivers/gpu/drm/nouveau/nv50_display.c between commit: 4a5431af19bc ("drm/nouveau/kms/nv50: update vblank state in response to modeset actions") from Linus' tree and commit: 3c847d6cdadb ("drm/nouveau: Convert nou

Re: [PATCH v1 0/4] media: rc: add support for IR receiver on MT7622 SoC

2017-08-01 Thread Sean Wang
Hi, Mauro and Sean Just a gentle ping on the whole patchset porting MediaTek CIR to another platform. Sean On Tue, 2017-07-04 at 19:10 +0900, Andi Shyti wrote: > Hi Sean, > > > This patchset introduces Consumer IR (CIR) support for MT7622 SoC > > implements raw mode for more compatibi

[PATCH v5] kbuild: trivial cleanups on the comments

2017-08-01 Thread Cao jin
This is a bunch of trivial fixes and cleanups. Signed-off-by: Cao jin --- v5 includes two more trivial fixes in top Makefile suggested by Masahiro-san. Makefile | 10 +- scripts/Kbuild.include | 7 +++ scripts/Makefile.build | 8 scripts/basic/Makefile | 2

Re: [PATCHv4 3/3] DRM:ivip Intel FPGA Video and Image Processing Suite

2017-08-01 Thread Ong, Hean Loong
On Tue, 2017-08-01 at 17:30 +0300, Laurent Pinchart wrote: > Hi Hean Loong, > > Thank you for the patch. > > On Tuesday 01 Aug 2017 10:31:34 Hean Loong, Ong wrote: > > > > From: Ong Hean Loong > > > > Driver for Intel FPGA Video and Image Processing > > Suite Frame Buffer II. The driver only s

Re: [RFC PATCH] exec: Avoid recursive modprobe for binary format handlers

2017-08-01 Thread Kees Cook
On Tue, Aug 1, 2017 at 5:12 PM, Luis R. Rodriguez wrote: > On Fri, Jul 21, 2017 at 03:05:20PM +0100, Matt Redfearn wrote: >> Commit 6d7964a722af ("kmod: throttle kmod thread limit") which was >> merged in v4.13-rc1 broke this behaviour since the recursive modprobe is >> no longer caught, it just e

Re: [Patch V2] crypto: x86/sha1 : Fix reads beyond the number of blocks passed

2017-08-01 Thread Herbert Xu
On Tue, Aug 01, 2017 at 05:38:32PM -0700, Megha Dey wrote: > It was reported that the sha1 AVX2 function(sha1_transform_avx2) is > reading ahead beyond its intended data, and causing a crash if the next > block is beyond page boundary: > http://marc.info/?l=linux-crypto-vger&m=149373371023377 > >

i.MX 7 boot freeze with 4.13-rc3

2017-08-01 Thread Stefan Agner
Hi, Linux 4.13-rc3 seems to freeze on a Colibri iMX7: ... 8021q: 802.1Q VLAN Support v1.8 Key type dns_resolver registered Registering SWP/SWPB emulation handler vdd1p0d: supplied by DCDC3 asoc-simple-card sound: sgtl5000 <-> 308a.sai mapping ok I started a bisect run and I had a hard time

Re: sysctl, argument parsing, possible bug

2017-08-01 Thread Stephen Hemminger
On Tue, 1 Aug 2017 14:27:37 -0700 Cong Wang wrote: > On Tue, Aug 1, 2017 at 1:47 PM, Massimo Sala > wrote: > > cat /proc/sys/net/ipv4/conf/eth0.100/forwarding > > 0 > > > > sysctl net.ipv4.conf.eth0.100.forwarding > > error: "net.ipv4.conf.eth0.100.forwarding" is an unknown key > > > > Use e

Re: [PATCH net 6/7] netvsc: Initialize 64-bit stats seqcount

2017-08-01 Thread Stephen Hemminger
On Tue, 1 Aug 2017 12:11:12 -0700 Florian Fainelli wrote: > On 32-bit hosts and with CONFIG_DEBUG_LOCK_ALLOC we should be seeing a > lockdep splat indicating this seqcount is not correctly initialized, fix > that. In commit 6c80f3fc2398 ("netvsc: report per-channel stats in > ethtool statistics"

<    5   6   7   8   9   10   11   12   >