Re: [PATCH v4 2/4] KVM: X86: Add paravirt remote TLB flush

2017-11-13 Thread Peter Zijlstra
On Tue, Nov 14, 2017 at 02:28:56PM +0800, Wanpeng Li wrote: > > - have the TLB invalidate handler do something like: > > > >state = READ_ONCE(src->preempted); > >if (!(state & KVM_VCPU_IPI_PENDING)) > >return; > > > >local_flush_tlb(); > > > >do { > >} while (!try_c

Re: [PATCH 0/2] backlight: pwm_bl: prevent backlight flicker when switching PWM on

2017-11-13 Thread Lothar Waßmann
Hi, On Fri, 10 Nov 2017 12:22:15 +0100 Enric Balletbo i Serra wrote: > Hi all, > > On 08/11/17 11:48, Daniel Thompson wrote: > > On 26/10/17 13:49, Lothar Waßmann wrote: > >> These patches implement some measures to prevent backlight flicker > >> when the backlight is being switched on for a disp

Re: [PATCH 4.13 00/33] 4.13.13-stable review

2017-11-13 Thread Greg Kroah-Hartman
On Mon, Nov 13, 2017 at 02:29:09PM -0800, Guenter Roeck wrote: > On Mon, Nov 13, 2017 at 01:56:21PM +0100, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.13.13 release. > > There are 33 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH 4.9 00/87] 4.9.62-stable review --> crash

2017-11-13 Thread Sebastian Gottschall
Am 14.11.2017 um 08:41 schrieb Greg Kroah-Hartman: On Tue, Nov 14, 2017 at 07:48:47AM +0100, Sebastian Gottschall wrote: ahm it compiles well. but [   24.838120] Unable to handle kernel NULL pointer dereference at virtual address 0055 [   24.846193] pgd = c0004000 [   24.848893] [0055]

RE: [PATCH 1/2] mm: drop migrate type checks from has_unmovable_pages

2017-11-13 Thread Ran Wang
Hi Michal, > -Original Message- > From: Michal Hocko [mailto:mho...@kernel.org] > Sent: Tuesday, November 14, 2017 3:07 PM > To: Ran Wang > Cc: linux...@kvack.org; Michael Ellerman ; Vlastimil > Babka ; Andrew Morton ; > KAMEZAWA Hiroyuki ; Reza Arbab > ; Yasuaki Ishimatsu ; > qiuxi...@hua

Re: [PATCH RFC v3 4/6] Documentation: Add three sysctls for smart idle poll

2017-11-13 Thread Ingo Molnar
* Quan Xu wrote: > > > On 2017/11/13 23:08, Ingo Molnar wrote: > > * Quan Xu wrote: > > > > > From: Quan Xu > > > > > > To reduce the cost of poll, we introduce three sysctl to control the > > > poll time when running as a virtual machine with paravirt. > > > > > > Signed-off-by: Yang Zha

Re: [PATCH 3.18 00/28] 3.18.81-stable review

2017-11-13 Thread Greg Kroah-Hartman
On Mon, Nov 13, 2017 at 02:50:22PM -0700, Shuah Khan wrote: > On 11/13/2017 05:54 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.18.81 release. > > There are 28 patches in this series, all will be posted as a response > > to this one. If anyone has any iss

Re: [PATCH 4.13 00/33] 4.13.13-stable review

2017-11-13 Thread Greg Kroah-Hartman
On Mon, Nov 13, 2017 at 02:02:12PM -0800, kernelci.org bot wrote: > stable-rc/linux-4.13.y boot: 127 boots: 10 failed, 116 passed with 1 conflict > (v4.13.12-34-g109b28ca1340) > > Full Boot Summary: > https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.13.y/kernel/v4.13.12-34-g109b28ca134

Re: [PATCH 4.9 00/87] 4.9.62-stable review --> crash

2017-11-13 Thread Greg Kroah-Hartman
On Tue, Nov 14, 2017 at 07:48:47AM +0100, Sebastian Gottschall wrote: > ahm it compiles well. but > > [   24.838120] Unable to handle kernel NULL pointer dereference at virtual > address 0055 > [   24.846193] pgd = c0004000 > [   24.848893] [0055] *pgd= > [   24.852472] Internal er

Re: [PATCH 0/7] net: core: devname allocation cleanups

2017-11-13 Thread David Miller
From: Rasmus Villemoes Date: Mon, 13 Nov 2017 00:15:03 +0100 > It's somewhat confusing to have both dev_alloc_name and > dev_get_valid_name. I can't see why the former is less strict than the > latter, so make them (or rather dev_alloc_name_ns and > dev_get_valid_name) equivalent, hardening dev_a

Re: [PATCH v4 2/4] KVM: X86: Add paravirt remote TLB flush

2017-11-13 Thread Peter Zijlstra
On Tue, Nov 14, 2017 at 02:10:16PM +0800, Wanpeng Li wrote: > 2017-11-13 21:02 GMT+08:00 Peter Zijlstra : > > That can be written like: > > > > do { > > if (state & KVM_VCPU_PREEMPTED) > > new_state = state | KVM_VCPU_SHOULD_FLUSH; > >

Re: [RESEND PATCH v2 4/4] x86/umip: Warn if UMIP-protected instructions are used

2017-11-13 Thread Ingo Molnar
* Ricardo Neri wrote: > +const char * const umip_insns[5] = { > + [UMIP_INST_SGDT] = "sgdt", > + [UMIP_INST_SIDT] = "sidt", > + [UMIP_INST_SMSW] = "smsw", > + [UMIP_INST_SLDT] = "sldt", > + [UMIP_INST_STR] = "str", > +}; Sigh ... > +/* > + * If you change these strings, ens

RE: [patch v2 3/8] KVM: x86: add Intel processor trace virtualization mode

2017-11-13 Thread Kang, Luwei
> > + if (!(_cpu_based_2nd_exec_control & SECONDARY_EXEC_PT_USE_GPA) || > > + !(_vmexit_control & VM_EXIT_CLEAR_IA32_RTIT_CTL) || > > + !(_vmentry_control & VM_ENTRY_LOAD_IA32_RTIT_CTL)) { > > + _cpu_based_2nd_exec_control &= ~SECONDARY_EXEC_PT_USE_GPA; > > Also, yo

[f2fs-dev] [PATCH RESEND] f2fs: fix concurrent problem for updating free bitmap

2017-11-13 Thread LiFan
alloc_nid_failed and scan_nat_page can be called at the same time, and we haven't protected add_free_nid and update_free_nid_bitmap with the same nid_list_lock. That could lead to Thread AThread B - __build_free_nids - scan_nat_page

Re: [PATCH RFC v3 1/6] x86/paravirt: Add pv_idle_ops to paravirt ops

2017-11-13 Thread Juergen Gross
On 14/11/17 08:02, Quan Xu wrote: > > > On 2017/11/13 18:53, Juergen Gross wrote: >> On 13/11/17 11:06, Quan Xu wrote: >>> From: Quan Xu >>> >>> So far, pv_idle_ops.poll is the only ops for pv_idle. .poll is called >>> in idle path which will poll for a while before we enter the real idle >>> st

Re: [PATCH] iio: mma8452: add power_mode sysfs configuration

2017-11-13 Thread Martin Kepplinger
Am 14.11.2017 05:56 schrieb harinath Nampally: Hi Martin, But given your concerns, I would strip down this patch to only offer the already documented "low_noise" and "low_power" modes. It wouldn't be worth it to extend the ABI just because of this! OK then we can map 'low_noise' to high resol

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

2017-11-13 Thread Felipe Balbi
Hi, Mathias Nyman writes: >> +static int dbc_buf_alloc(struct dbc_buf *db, unsigned int size) >> +{ >> +db->buf_buf = kzalloc(size, GFP_KERNEL); >> +if (!db->buf_buf) >> +return -ENOMEM; >> + >> +db->buf_size = size; >> +db->buf_put = db->buf_buf; >> +db->buf_get

Re: [PATCH] lib: Avoid redundant sizeof checking in __bitmap_weight() calculation.

2017-11-13 Thread Rasmus Villemoes
On 14 November 2017 at 07:57, Rakib Mullick wrote: > Currently, during __bitmap_weight() calculation hweight_long() is used. > Inside a hweight_long() a check has been made to figure out whether a > hweight32() or hweight64() version to use. > > diff --git a/lib/bitmap.c b/lib/bitmap.c > index d8f

Re: [PATCH] iio: accel: mma8452: Add single pulse/tap event detection

2017-11-13 Thread Martin Kepplinger
Am 14.11.2017 05:36 schrieb harinath Nampally: > This patch adds following related changes: > - defines pulse event related registers > - enables and handles single pulse interrupt for fxls8471 > - handles IIO_EV_DIR_EITHER in read/write callbacks (because > event direction for pulse is either

Re: [RESEND PATCH v2 3/4] x86/umip: Identify the str and sldt instructions

2017-11-13 Thread Ingo Molnar
* Ricardo Neri wrote: > The instructions STR and SLDT are not emulated in any case. Thus, it made > sense to not implement functionality to identify them. However, a > subsequent commit will introduce functionality to warn about the use of > all the instructions that UMIP protect, not only those

Re: [PATCH] arch, mm: introduce arch_tlb_gather_mmu_lazy (was: Re: [RESEND PATCH] mm, oom_reaper: gather each vma to prevent) leaking TLB entry

2017-11-13 Thread Michal Hocko
On Tue 14-11-17 10:45:49, Minchan Kim wrote: [...] > Anyway, I think Wang Nan's patch is already broken. > http://lkml.kernel.org/r/%3c20171107095453.179940-1-wangn...@huawei.com%3E > > Because unmap_page_range(ie, zap_pte_range) can flush TLB forcefully > and free pages. However, the architecture

[f2fs-dev] [PATCH RESEND v2] f2fs: validate before set/clear free nat bitmap

2017-11-13 Thread LiFan
In flush_nat_entries, all dirty nats will be flushed and if their new address isn't NULL_ADDR, their bitmaps will be updated, the free_nid_count of the bitmaps will be increased regardless of whether the nats have already been occupied before. This could lead to wrong free_nid_count. So this patch

Re: [PATCH 3/4] x86/umip: Identify the str and sldt instructions

2017-11-13 Thread Ingo Molnar
* Ricardo Neri wrote: > On Mon, Nov 13, 2017 at 09:12:03AM +0100, Ingo Molnar wrote: > > > > * Ricardo Neri wrote: > > > > > The instructions str and sldt are not emulated in any case. Thus, it made > > > sense to not implement functionality to identify them. However, a > > > subsequent commi

Re: [PATCH net-next 0/3] rxrpc: Fixes

2017-11-13 Thread David Miller
From: David Howells Date: Sat, 11 Nov 2017 17:57:52 + > > Here are some patches that fix some things in AF_RXRPC: > > (1) Prevent notifications from being passed to a kernel service for a call > that it has ended. > > (2) Fix a null pointer deference that occurs under some circumsta

Re: [RFC 1/7] x86/asm/64: Allocate and enable the SYSENTER stack

2017-11-13 Thread Ingo Molnar
* Andy Lutomirski wrote: > I have old patches to stop using IST for #DB and #BP, but I never finished > them. I'm all in favor of reviving that effort! Thanks, Ingo

Re: [PATCH RFC v3 1/6] x86/paravirt: Add pv_idle_ops to paravirt ops

2017-11-13 Thread Wanpeng Li
2017-11-14 15:02 GMT+08:00 Quan Xu : > > > On 2017/11/13 18:53, Juergen Gross wrote: >> >> On 13/11/17 11:06, Quan Xu wrote: >>> >>> From: Quan Xu >>> >>> So far, pv_idle_ops.poll is the only ops for pv_idle. .poll is called >>> in idle path which will poll for a while before we enter the real idl

RE: [patch v2 3/8] KVM: x86: add Intel processor trace virtualization mode

2017-11-13 Thread Kang, Luwei
> > +#define VM_EXIT_PT_SUPPRESS_PIP0x0100 > > +#define VM_EXIT_CLEAR_IA32_RTIT_CTL0x0200 > > > > #define VM_EXIT_ALWAYSON_WITHOUT_TRUE_MSR 0x00036dff > > > > @@ -108,6 +112,8 @@ > > #define VM_ENTRY_LOAD_IA32_PAT 0x4000 > > #d

Re: Improving documentation of parent-ID field in /proc/PID/mountinfo

2017-11-13 Thread Michael Kerrisk (man-pages)
Hi Miklos, Ram Thanks for your comments. A question below. On 13 November 2017 at 09:11, Miklos Szeredi wrote: > On Mon, Nov 13, 2017 at 8:55 AM, Ram Pai wrote: >> On Mon, Nov 13, 2017 at 07:02:21AM +0100, Michael Kerrisk (man-pages) wrote: >>> Hello Ram, >>> >>> Long ago (2.6.29) you added the

Re: linux-next: Tree for Nov 7

2017-11-13 Thread Michal Hocko
On Mon 13-11-17 09:35:22, Khalid Aziz wrote: > On 11/13/2017 09:06 AM, Michal Hocko wrote: > > OK, so this one should take care of the backward compatibility while > > still not touching the arch code > > --- > > commit 39ff9bf8597e79a032da0954aea1f0d77d137765 > > Author: Michal Hocko > > Date:

Re: [PATCH 1/2] mm: drop migrate type checks from has_unmovable_pages

2017-11-13 Thread Michal Hocko
On Tue 14-11-17 06:10:00, Ran Wang wrote: [...] > > > This drop cause DWC3 USB controller fail on initialization with > > > Layerscaper processors (such as LS1043A) as below: > > > > > > [2.701437] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned > > bus number 1 > > > [2.710949]

Re: [PATCH RFC v3 1/6] x86/paravirt: Add pv_idle_ops to paravirt ops

2017-11-13 Thread Quan Xu
On 2017/11/13 18:53, Juergen Gross wrote: On 13/11/17 11:06, Quan Xu wrote: From: Quan Xu So far, pv_idle_ops.poll is the only ops for pv_idle. .poll is called in idle path which will poll for a while before we enter the real idle state. In virtualization, idle path includes several heavy o

RE: [patch v2 8/8] KVM: x86: Disable intercept for Intel processor trace MSRs

2017-11-13 Thread Kang, Luwei
> > + if (pt_mode == PT_MODE_HOST_GUEST) { > > + u32 i, eax, ebx, ecx, edx; > > + > > + cpuid_count(0x14, 1, &eax, &ebx, &ecx, &edx); > > + vmx_disable_intercept_for_msr(MSR_IA32_RTIT_STATUS, false); > > + vmx_disable_intercept_for_msr(MSR_IA32_RTIT_OUTPUT_

RE: [patch v2 7/8] KVM: x86: add Intel PT msr RTIT_CTL read/write

2017-11-13 Thread Kang, Luwei
> > static DEFINE_PER_CPU(struct vmcs *, vmxarea); static > > DEFINE_PER_CPU(struct vmcs *, current_vmcs); @@ -3384,6 +3385,11 @@ > > static int vmx_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) > > return 1; > > msr_info->data = vcpu->arch.ia32_xss; >

[PATCH] lib: Avoid redundant sizeof checking in __bitmap_weight() calculation.

2017-11-13 Thread Rakib Mullick
Currently, during __bitmap_weight() calculation hweight_long() is used. Inside a hweight_long() a check has been made to figure out whether a hweight32() or hweight64() version to use. However, it's unnecessary to do it in case of __bitmap_weight() calculation inside the loop. We can detect whethe

Re: KASAN: use-after-free Read in rds_tcp_dev_event

2017-11-13 Thread Sowmini Varadhan
On (11/13/17 19:30), Girish Moodalbail wrote: > (L538-540). However, it leaves behind some of the rds_tcp connections that > shared the same underlying RDS connection (L534 and 535). These connections > with pointer to stale network namespace are left behind in the global list. It leaves behind no

[PATCH -next] irqchip/exiu: Fix return value check in exiu_init()

2017-11-13 Thread Wei Yongjun
In case of error, the function of_iomap() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Fixes: 706cffc1b912 ("irqchip/exiu: Add support for Socionext Synquacer EXIU controller") Signed-off-by: Wei Yongjun --- drivers/irqchip/i

Re: [PATCH] wcn36xx: Set BTLE coexistence related configuration values to defaults

2017-11-13 Thread Kalle Valo
Ramon Fried writes: > From: Eyal Ilsar > > If the value for the firmware configuration parameters > BTC_STATIC_LEN_LE_BT and BTC_STATIC_LEN_LE_WLAN are not set the duty > cycle between BT and WLAN is such that if BT (including BLE) is active > WLAN gets 0 bandwidth. When tuning these parameters

Re: [PATCH v6 4/5] crash: export paddr_vmcoreinfo_note()

2017-11-13 Thread Baoquan He
On 11/13/17 at 08:29pm, Marc-André Lureau wrote: > The following patch is going to use the symbol from the fw_cfg module, > to call the function and write the note location details in the > vmcoreinfo entry, so qemu can produce dumps with the vmcoreinfo note. > > CC: Andrew Morton > CC: Baoquan H

Re: [PATCH 4.9 00/87] 4.9.62-stable review --> crash

2017-11-13 Thread Sebastian Gottschall
ahm it compiles well. but [   24.838120] Unable to handle kernel NULL pointer dereference at virtual address 0055 [   24.846193] pgd = c0004000 [   24.848893] [0055] *pgd= [   24.852472] Internal error: Oops - BUG: 817 [#1] PREEMPT SMP ARM [   24.858463] Modules linked in: xhci_

Re: [PATCH 1/2] arm64: mm: abort uaccess retries upon fatal signal

2017-11-13 Thread Rabin Vincent
On Tue, Aug 22, 2017 at 10:45:24AM +0100, Will Deacon wrote: > On Mon, Aug 21, 2017 at 02:42:03PM +0100, Mark Rutland wrote: > > On Tue, Jul 11, 2017 at 03:58:49PM +0100, Will Deacon wrote: > > > On Tue, Jul 11, 2017 at 03:19:22PM +0100, Mark Rutland wrote: > > > > When there's a fatal signal pendi

Re: [PATCH v2] coccinelle: fix parallel build with CHECK=scripts/coccicheck

2017-11-13 Thread Julia Lawall
On Tue, 14 Nov 2017, Masahiro Yamada wrote: > Hi Julia, > > 2017-11-14 1:45 GMT+09:00 Julia Lawall : > > > > > > On Tue, 14 Nov 2017, Masahiro Yamada wrote: > > > >> Hi Julia, > >> > >> > >> 2017-11-14 0:30 GMT+09:00 Julia Lawall : > >> > > >> > > >> > On Thu, 9 Nov 2017, Masahiro Yamada wrote:

Re: [PATCH v6 4/5] crash: export paddr_vmcoreinfo_note()

2017-11-13 Thread Dave Young
On 11/13/17 at 08:29pm, Marc-André Lureau wrote: > The following patch is going to use the symbol from the fw_cfg module, > to call the function and write the note location details in the > vmcoreinfo entry, so qemu can produce dumps with the vmcoreinfo note. > > CC: Andrew Morton > CC: Baoquan H

Re: n900 in next-20170901

2017-11-13 Thread Joonsoo Kim
On Mon, Nov 13, 2017 at 01:15:30PM -0800, Tony Lindgren wrote: > * Tony Lindgren [171110 07:36]: > > * Joonsoo Kim [171110 06:34]: > > > On Thu, Nov 09, 2017 at 07:26:10PM -0800, Tony Lindgren wrote: > > > > +#define OMAP34XX_SRAM_PHYS 0x4020 > > > > +#define OMAP34XX_SRAM_VIRT 0xd001

Re: Fwd: linux v4.14 causes firmware iwlwifi errors on Lenovo Thinkpad T440s

2017-11-13 Thread Luciano Coelho
On Mon, 2017-11-13 at 16:23 -0600, Larry Finger wrote: > On 11/13/2017 03:30 PM, Bartosz Golaszewski wrote: > > 2017-11-13 21:45 GMT+01:00 Larry Finger > > : > > > On 11/13/2017 02:22 PM, Bartosz Golaszewski wrote: > > > > > > > > Forwarding here too as I messed up the address the last time. > >

Re: n900 in next-20170901

2017-11-13 Thread Joonsoo Kim
On Fri, Nov 10, 2017 at 07:36:20AM -0800, Tony Lindgren wrote: > * Joonsoo Kim [171110 06:34]: > > On Thu, Nov 09, 2017 at 07:26:10PM -0800, Tony Lindgren wrote: > > > +#define OMAP34XX_SRAM_PHYS 0x4020 > > > +#define OMAP34XX_SRAM_VIRT 0xd001 > > > +#define OMAP34XX_SRAM_SIZE

[RESEND PATCH v2 2/4] x86/umip: Inform that UMIP has been enabled

2017-11-13 Thread Ricardo Neri
Let us have an indication that this feature has been enabled. Cc: Andy Lutomirski Cc: H. Peter Anvin Cc: Borislav Petkov Cc: Tony Luck Cc: Paolo Bonzini Cc: Ravi V. Shankar Cc: x...@kernel.org Suggested-by: Ingo Molnar Signed-off-by: Ricardo Neri --- arch/x86/kernel/cpu/common.c | 2 ++ 1

[PATCH] usb: quirks: Add no-lpm quirk for KY-688 USB 3.1 Type-C Hub

2017-11-13 Thread Kai-Heng Feng
KY-688 USB 3.1 Type-C Hub internally uses a Genesys Logic hub to connect to Realtek r8153. Similar to commit ("7496cfe5431f2 usb: quirks: Add no-lpm quirk for Moshi USB to Ethernet Adapter"), no-lpm can make r8153 ethernet work. Signed-off-by: Kai-Heng Feng --- drivers/usb/core/quirks.c | 3 +++

[RESEND PATCH v2 3/4] x86/umip: Identify the str and sldt instructions

2017-11-13 Thread Ricardo Neri
The instructions STR and SLDT are not emulated in any case. Thus, it made sense to not implement functionality to identify them. However, a subsequent commit will introduce functionality to warn about the use of all the instructions that UMIP protect, not only those that are emulated. A first step

[RESEND PATCH v2 4/4] x86/umip: Warn if UMIP-protected instructions are used

2017-11-13 Thread Ricardo Neri
Issue a rate-limited warning whenever any of the instructions that UMIP protects (i.e., SGDT, SIDT, SLDT, STR and SMSW) are used by user space programs. This is useful because, with UMIP enabled, the few programs that use such instructions will start receiving a SIGSEGV signal. In the specific cas

[RESEND PATCH v2 0/4] x86: Tweaks for UMIP

2017-11-13 Thread Ricardo Neri
[To tip maintainers: This is a resend to copy the Linux kernel mailing list. No changes in the patches since my original v2 submission.] Now that the support for UMIP [1], [2] has been merged in the tip tree, this series add a couple of tweaks. Ingo asked for two small additions to select UMIP by

[RESEND PATCH v2 1/4] x86/umip: Select X86_INTEL_UMIP by default

2017-11-13 Thread Ricardo Neri
UMIP does not incur in a significant performance penalty. Furthermore, it is triggered only when a small group of instructions are used from user space programs. While here, provide more details on the benefits UMIP provides and the behavior that can expect the few applications that use the instru

Re: [PATCH v4 2/4] KVM: X86: Add paravirt remote TLB flush

2017-11-13 Thread Wanpeng Li
2017-11-13 18:46 GMT+08:00 Peter Zijlstra : > On Mon, Nov 13, 2017 at 04:26:57PM +0800, Wanpeng Li wrote: >> 2017-11-13 16:04 GMT+08:00 Peter Zijlstra : > >> > So if at this point a vCPU gets preempted we'll still spin-wait for it, >> > which is sub-optimal. >> > >> > I think we can come up with so

Re: 答复: [f2fs-dev] [PATCH RESEND] f2fs: validate before set/clear free nat bitmap

2017-11-13 Thread Chao Yu
On 2017/11/14 13:59, LiFan wrote: > Sorry, it seems my company mailbox single mail would cut the long line short > automatically. > It's fine in my outlook mail, so I overlooked. Maybe 'git send-email' can be one of your options to save some work in your email client? ;) Thanks, > I haven't find

[p...@keyserver.paulfurley.com: PGP key expires in 3 days: 0x7179B76704ABA18B (it can be extended)]

2017-11-13 Thread Jarkko Sakkinen
James, Refreshed my key with expiration +2y in keys.gunpg.net and pgp.mit.edu. Please update. /Jarkko

Re: [PATCH V2 net] net: hns3: Updates MSI/MSI-X alloc/free APIs(depricated) to new APIs

2017-11-13 Thread Yuval Shaia
On Thu, Nov 09, 2017 at 04:38:13PM +, Salil Mehta wrote: > This patch migrates the HNS3 driver code from use of depricated PCI > MSI/MSI-X interrupt vector allocation/free APIs to new common APIs. > > Signed-off-by: Salil Mehta > Suggested-by: Christoph Hellwig > --- > PATCH V2: Yuval Shaia

Re: [RFC PATCH 0/2] apply write hints to select the type of segments

2017-11-13 Thread Chao Yu
On 2017/11/14 12:20, Jaegeuk Kim wrote: > On 11/13, Hyunchul Lee wrote: >> On 11/13/2017 10:59 AM, Chao Yu wrote: >>> On 2017/11/13 9:35, Hyunchul Lee wrote: On 11/13/2017 10:26 AM, Chao Yu wrote: > On 2017/11/13 8:24, Hyunchul Lee wrote: >> On 11/10/2017 03:42 PM, Chao Yu wrote: >

linux-next: Tree for Nov 14

2017-11-13 Thread Stephen Rothwell
Hi all, Please do not add any v4.16 material to your linux-next included trees until v4.15-rc1 has been released. Changes since 20171113: The powerpc tree lost its build failure. The keys tree lost its build failure. The nvdimm tree gained a conflict against the parisc-hd tree. The akpm tree

Re: [PATCH v4 2/4] KVM: X86: Add paravirt remote TLB flush

2017-11-13 Thread Wanpeng Li
2017-11-13 21:02 GMT+08:00 Peter Zijlstra : > On Mon, Nov 13, 2017 at 11:46:34AM +0100, Peter Zijlstra wrote: >> On Mon, Nov 13, 2017 at 04:26:57PM +0800, Wanpeng Li wrote: >> > 2017-11-13 16:04 GMT+08:00 Peter Zijlstra : >> >> > > So if at this point a vCPU gets preempted we'll still spin-wait for

Re: [PATCH] docs: dev-tools: coccinelle: delete out of date wiki reference

2017-11-13 Thread Julia Lawall
On Tue, 14 Nov 2017, Masahiro Yamada wrote: > Hi Julia, Jon, > > 2017-11-14 1:50 GMT+09:00 Julia Lawall : > > The wiki is no longer available. > > > > Signed-off-by: Julia Lawall > > > > > Jon sent the doc pull request yesterday. > > I will pick this up for Kbuild tree > because I have not sent

RE: [PATCH 1/2] mm: drop migrate type checks from has_unmovable_pages

2017-11-13 Thread Ran Wang
Hi Michal, > -Original Message- > From: Michal Hocko [mailto:mho...@kernel.org] > Sent: Monday, November 13, 2017 7:03 PM > To: Ran Wang > Cc: linux...@kvack.org; Michael Ellerman ; Vlastimil > Babka ; Andrew Morton ; > KAMEZAWA Hiroyuki ; Reza Arbab > ; Yasuaki Ishimatsu ; > qiuxi...@hua

[PATCH] x86/mce: add support SRAO reported via CMC check

2017-11-13 Thread Xie XiuQi
In Intel SDM Volume 3B (253669-063US, July 2017), SRAO could be reported via CMC: In cases when SRAO is signaled via CMCI the error signature is indicated via UC=1, PCC=0, S=0. So we add those known AO MCACODs check in mce_severity(). Signed-off-by: Xie XiuQi Tested-by: Chen Wei --- arch/

[GIT PULL]: dmaengine updates for 4.15-rc1

2017-11-13 Thread Vinod Koul
Hi Linus, Here is the PULL request for dmaengine updates for 4.15-rc1. As you may have noticed I am also using topic branches but the branch (for-linus) contains only merge commits. Since I was not in KS and based on reading the coverage I have gathered that you would like it this way, if not do l

Re: [PATCH v2 1/3] dt-bindings: phy: Add Cygnus usb phy binding

2017-11-13 Thread Raveendra Padasalagi
Hi Rob, On Mon, Nov 13, 2017 at 11:23 PM, Rob Herring wrote: > On Sun, Nov 12, 2017 at 10:23 PM, Raveendra Padasalagi > wrote: >> Hi, >> >> On Sat, Nov 11, 2017 at 3:14 AM, Rob Herring wrote: >>> On Wed, Nov 08, 2017 at 01:16:41PM +0530, Raveendra Padasalagi wrote: Add devicetree binding d

Re: [GIT PULL] USB/PHY driver changes for 4.15-rc1

2017-11-13 Thread Linus Torvalds
On Mon, Nov 13, 2017 at 8:19 AM, Greg KH wrote: > > Other major thing is the typec code that moved out of staging and into > the "real" part of the drivers/usb/ tree, which was nice to see happen. Hmm. So now it asks me about Type-C Port Controller Manager. Fair enough. I say "N", because I have

[PATCH] x86,kvm: move qemu/guest FPU switching out to vcpu_run

2017-11-13 Thread Rik van Riel
Currently, every time a VCPU is scheduled out, the host kernel will first save the guest FPU/xstate context, then load the qemu userspace FPU context, only to then immediately save the qemu userspace FPU context back to memory. When scheduling in a VCPU, the same extraneous FPU loads and saves are

[PATCH] f2fs: expose quota information in debugfs

2017-11-13 Thread Jaegeuk Kim
This patch shows # of dirty pages and # of hidden quota files. Signed-off-by: Jaegeuk Kim --- fs/f2fs/debug.c | 11 +++ fs/f2fs/f2fs.h | 10 -- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index f7eec506ceea..ecada8425268 1006

Re: [PATCH v1 4/5] perf, tools: Add fallback in perf_evsel__nr_cpus for no map

2017-11-13 Thread Andi Kleen
On Mon, Nov 13, 2017 at 10:22:30AM +0100, Jiri Olsa wrote: > On Thu, Nov 09, 2017 at 06:55:27AM -0800, Andi Kleen wrote: > > From: Andi Kleen > > > > Support the case of the event having no cpumap in perf_evsel__nr_cpus. > > Just return 1 in this case. This can happen in perf script > > when it

Re: [GIT PULL] x86 updates for v4.15

2017-11-13 Thread Linus Torvalds
On Mon, Nov 13, 2017 at 12:24 AM, Ingo Molnar wrote: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-asm-for-linus Hmm #2. My laptop had odd SIGBUS and IO errors after a suspend/resume cycle when running commit d6ec9d9a4def, which is after my merge of the x86 core changes.

Re: [PATCH] iio: mma8452: add power_mode sysfs configuration

2017-11-13 Thread harinath Nampally
Hi Martin, > But given your concerns, I would strip down this patch to only offer the > already documented "low_noise" and "low_power" modes. It wouldn't be > worth it to extend the ABI just because of this! OK then we can map 'low_noise' to high resolution mode. But I am afraid I can't test the f

Re: [f2fs-dev] [PATCH RESEND] f2fs: validate before set/clear free nat bitmap

2017-11-13 Thread Jaegeuk Kim
Sorry, I can't merge this patch due to wrong format. On 11/11, LiFan wrote: > In flush_nat_entries, all dirty nats will be flushed and if their new > address isn't > NULL_ADDR, their bitmaps will be updated, the free_nid_count of the bitmaps > will be increased regardless of whether the nats hav

Re: Prototype patch for Linux-kernel memory model

2017-11-13 Thread Paul E. McKenney
On Mon, Nov 13, 2017 at 03:09:11PM -0500, Alan Stern wrote: > On Mon, 13 Nov 2017, Paul E. McKenney wrote: > > > Hello! > > > > Please see below for the git commit corresponding to a prototype > > patch for the Linux-kernel memory model. This addresses the feedback > > we got at Linux Plumbers C

Re: [PATCH v9 3/7] mailbox: qcom: Move the apcs struct into a separate header

2017-11-13 Thread Bjorn Andersson
On Mon 13 Nov 18:12 PST 2017, Stephen Boyd wrote: > On 10/27, Georgi Djakov wrote: > > Hi Bjorn, > > > > Thanks for reviewing! > > > > On 10/26/2017 07:28 AM, Bjorn Andersson wrote: > > > On Thu 21 Sep 09:49 PDT 2017, Georgi Djakov wrote: > > > > > >> Move the structure shared by the APCS IPC d

Fwd: FW: [PATCH 18/31] nds32: Library functions

2017-11-13 Thread Vincent Chen
>>On Wed, Nov 08, 2017 at 01:55:06PM +0800, Greentime Hu wrote: > >> +#define __range_ok(addr, size) (size <= get_fs() && addr <= (get_fs() >> +-size)) >> + >> +#define access_ok(type, addr, size) \ >> + __range_ok((unsigned long)addr, (unsigned long)size) > >> +#define __get_us

linux-next: manual merge of the nvdimm tree with the parisc-hd tree

2017-11-13 Thread Stephen Rothwell
Hi Dan, Today's linux-next merge of the nvdimm tree got a conflict in: arch/parisc/include/uapi/asm/mman.h between commit: 48cd4dc8f57f ("parisc: Convert MAP_TYPE to cover 4 bits on parisc") from the parisc-hd tree and commit: 1c9725974074 ("mm: introduce MAP_SHARED_VALIDATE, a mechanis

Re: [PATCH] iio: accel: mma8452: Add single pulse/tap event detection

2017-11-13 Thread harinath Nampally
> > This patch adds following related changes: > > - defines pulse event related registers > > - enables and handles single pulse interrupt for fxls8471 > > - handles IIO_EV_DIR_EITHER in read/write callbacks (because > > event direction for pulse is either rising or falling) > > - configures rea

Re: [RFC PATCH 0/2] apply write hints to select the type of segments

2017-11-13 Thread Jaegeuk Kim
On 11/13, Hyunchul Lee wrote: > On 11/13/2017 10:59 AM, Chao Yu wrote: > > On 2017/11/13 9:35, Hyunchul Lee wrote: > >> On 11/13/2017 10:26 AM, Chao Yu wrote: > >>> On 2017/11/13 8:24, Hyunchul Lee wrote: > On 11/10/2017 03:42 PM, Chao Yu wrote: > > On 2017/11/10 8:23, Hyunchul Lee wrote:

Re: [PATCH RFC v3 4/6] Documentation: Add three sysctls for smart idle poll

2017-11-13 Thread Quan Xu
On 2017/11/13 23:08, Ingo Molnar wrote: * Quan Xu wrote: From: Quan Xu To reduce the cost of poll, we introduce three sysctl to control the poll time when running as a virtual machine with paravirt. Signed-off-by: Yang Zhang Signed-off-by: Quan Xu --- Documentation/sysctl/kernel.txt |

Re: [Regression/XFS/PM] Freeze tasks failed in xfsaild

2017-11-13 Thread Dave Chinner
On Tue, Nov 14, 2017 at 11:39:59AM +0800, Yu Chen wrote: > Hi Dave, > On Tue, Nov 14, 2017 at 09:52:16AM +1100, Dave Chinner wrote: > > On Mon, Nov 13, 2017 at 06:31:39PM +0800, Yu Chen wrote: > > > Hi all, > > > Currently we are running hibernation stress test on a server > > > and unfortunately a

Re: [PATCH v2] coccinelle: fix parallel build with CHECK=scripts/coccicheck

2017-11-13 Thread Masahiro Yamada
Hi Julia, 2017-11-14 1:45 GMT+09:00 Julia Lawall : > > > On Tue, 14 Nov 2017, Masahiro Yamada wrote: > >> Hi Julia, >> >> >> 2017-11-14 0:30 GMT+09:00 Julia Lawall : >> > >> > >> > On Thu, 9 Nov 2017, Masahiro Yamada wrote: >> > >> >> The command "make -j8 C=1 CHECK=scripts/coccicheck" produces lo

Re: [PATCH] quota: be aware of error from dquot_initialize

2017-11-13 Thread Chao Yu
On 2017/11/13 17:18, Jan Kara wrote: > On Mon 13-11-17 11:31:48, Chao Yu wrote: >> Commit 6184fc0b8dd7 ("quota: Propagate error from ->acquire_dquot()") >> missed to handle error from dquot_initialize in dquot_file_open, fix it. >> >> Signed-off-by: Chao Yu > > Good spotting. I've added the patch

Re: [Regression/XFS/PM] Freeze tasks failed in xfsaild

2017-11-13 Thread Yu Chen
Hi Dave, On Tue, Nov 14, 2017 at 09:52:16AM +1100, Dave Chinner wrote: > On Mon, Nov 13, 2017 at 06:31:39PM +0800, Yu Chen wrote: > > Hi all, > > Currently we are running hibernation stress test on a server > > and unfortunately after 48 rounds of cycling, it fails at a > > early stage that, the xf

Re: [PATCH] tick/broadcast: Remove redundant code in tick_check_new_device()

2017-11-13 Thread Zhenzhong Duan
On 2017/11/14 0:54, Thomas Gleixner wrote: On Wed, 8 Nov 2017, Zhenzhong Duan wrote: There is no way a timer used as broadcast clockevent device is also used as percpu tick clockevent device currently. Correct. It's better to put related code in tick_install_broadcast_device(), but I feel i

[PATCH] uapi: fix linux/tls.h userspace compilation error

2017-11-13 Thread Dmitry V. Levin
Move inclusion of a private kernel header from uapi/linux/tls.h to its only user - net/tls.h, to fix the following linux/tls.h userspace compilation error: /usr/include/linux/tls.h:41:21: fatal error: net/tcp.h: No such file or directory As to this point uapi/linux/tls.h was totaly unusuable fo

Re: KASAN: use-after-free Read in rds_tcp_dev_event

2017-11-13 Thread Girish Moodalbail
On 11/7/17 12:28 PM, syzbot wrote: Hello, syzkaller hit the following crash on 287683d027a3ff83feb6c7044430c79881664ecf git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master compiler: gcc (GCC) 7.1.1 20170620 .config is attached Raw console output is attached. =

Re: [Regression/XFS/PM] Freeze tasks failed in xfsaild

2017-11-13 Thread Yu Chen
On Mon, Nov 13, 2017 at 09:14:14PM +0100, Luis R. Rodriguez wrote: > On Mon, Nov 13, 2017 at 06:31:39PM +0800, Yu Chen wrote: > > The xfs-buf/dm-1 should be freezed according to > > commit 8018ec083c72 ("xfs: mark all internal workqueues > > as freezable"), thus a easier way might be have to revert

[PATCH] perf annotate: Remove precision for mnemonics

2017-11-13 Thread Ravi Bangoria
There are many instructions, esp on powerpc, whose mnemonics are longer than 6 characters. Using precision limit causes truncation of such mnemonics. Fix this by removing precision limit. Note that, 'width' is still 6, so alignment won't get affected for length <= 6. Before: li r11,-1

Re: video: fbdev: Convert timers to use timer_setup()

2017-11-13 Thread Kees Cook
, > > this patch causes a large number of qemu crashes. > > Unable to handle kernel NULL pointer dereference at virtual address 0194 > pgd = c0004000 > [0194] *pgd= > Internal error: Oops: 5 [#1] ARM > Modules linked in: > CPU: 0 PID: 0 Comm: swapper Not tai

Re: [intel-sgx-kernel-dev] [PATCH v5 11/11] intel_sgx: driver documentation

2017-11-13 Thread Kai Huang
On Mon, 2017-11-13 at 21:45 +0200, Jarkko Sakkinen wrote: > Signed-off-by: Jarkko Sakkinen > --- > Documentation/index.rst | 1 + > Documentation/x86/intel_sgx.rst | 131 > > 2 files changed, 132 insertions(+) > create mode 100644 Documentation/

RE: [patch v2 4/8] KVM: x86: add Intel processor trace cpuid emulataion

2017-11-13 Thread Kang, Luwei
> > diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c index > > 0099e10..ef19a11 100644 > > --- a/arch/x86/kvm/cpuid.c > > +++ b/arch/x86/kvm/cpuid.c > > @@ -70,6 +70,7 @@ u64 kvm_supported_xcr0(void) > > /* These are scattered features in cpufeatures.h. */ > > #define KVM_CPUID_BIT_AVX512

Re: [RFC PATCH v10 6/7] PCI / PM: Move acpi wakeup code to pci core

2017-11-13 Thread Brian Norris
Hi Rafael, I'll answer some of it from my perspective, though Jeffy might have had different ideas (and answers) when he implemented this. On Wed, Nov 08, 2017 at 11:32:20PM +0100, Rafael J. Wysocki wrote: > On Friday, October 27, 2017 9:26:11 AM CET Jeffy Chen wrote: > > Move acpi wakeup code to

Re: [GIT pull] printk updates for 4.15

2017-11-13 Thread Linus Torvalds
On Mon, Nov 13, 2017 at 5:18 PM, Linus Torvalds wrote: > > (b) just emit a "synchronization printk" every once in a while, which > is obviously also using the same standard time source, but the line > actually _says_ what the other time sources are. Side note: there's a few good obvious times to

Re: [v8, 4/5] x86/xsave: Make XSAVE check the base CPUID features before enabling

2017-11-13 Thread Guenter Roeck
On 11/13/2017 05:28 PM, Andi Kleen wrote: Guenter, Do you have a command line that reproduces it and the exact log output? Sorry, I forgot: Logs are at http://kerneltests.org/builders/qemu-x86_64-next. Guenter

Re: [RFC 6/7] x86/asm: Remap the TSS into the cpu entry area

2017-11-13 Thread Andy Lutomirski
On Mon, Nov 13, 2017 at 6:28 PM, Linus Torvalds wrote: > On Mon, Nov 13, 2017 at 6:25 PM, Andy Lutomirski wrote: >> On Mon, Nov 13, 2017 at 11:36 AM, Linus Torvalds >> wrote: >>> >>> I forget what the actual size is, but aligning the hardware TSS struct >>> to 128 bytes might be sufficient. It's

Re: linux-next: Signed-off-by missing for commit in the f2fs tree

2017-11-13 Thread Jaegeuk Kim
On 11/13, Stephen Rothwell wrote: > Hi Jaegeuk, > > Commit > > c79d88f915ed ("f2fs: separate nat entry mem alloc from nat_tree_lock") > > is missing a Signed-off-by from its author. Thank you so much to point this out. I fixed it. Thanks, > > -- > Cheers, > Stephen Rothwell

Re: [RFC 6/7] x86/asm: Remap the TSS into the cpu entry area

2017-11-13 Thread Linus Torvalds
On Mon, Nov 13, 2017 at 6:25 PM, Andy Lutomirski wrote: > On Mon, Nov 13, 2017 at 11:36 AM, Linus Torvalds > wrote: >> >> I forget what the actual size is, but aligning the hardware TSS struct >> to 128 bytes might be sufficient. It's not that big. > > 104 bytes, so it's probably already fine. F

Re: [RFC 6/7] x86/asm: Remap the TSS into the cpu entry area

2017-11-13 Thread Andy Lutomirski
On Mon, Nov 13, 2017 at 11:22 AM, Dave Hansen wrote: > On 11/10/2017 08:05 PM, Andy Lutomirski wrote: >> diff --git a/arch/x86/include/asm/fixmap.h b/arch/x86/include/asm/fixmap.h >> index fbc9b7f4e35e..8a9ba5553cab 100644 >> --- a/arch/x86/include/asm/fixmap.h >> +++ b/arch/x86/include/asm/fixmap

Re: [PATCH 3/4] x86/umip: Identify the str and sldt instructions

2017-11-13 Thread Ricardo Neri
On Mon, Nov 13, 2017 at 09:12:03AM +0100, Ingo Molnar wrote: > > * Ricardo Neri wrote: > > > The instructions str and sldt are not emulated in any case. Thus, it made > > sense to not implement functionality to identify them. However, a > > subsequent commit will introduce functionality to warn

Re: [RFC 6/7] x86/asm: Remap the TSS into the cpu entry area

2017-11-13 Thread Andy Lutomirski
On Mon, Nov 13, 2017 at 11:36 AM, Linus Torvalds wrote: > On Mon, Nov 13, 2017 at 11:22 AM, Dave Hansen wrote: >> >> Aha, and here's the place that you need sizeof(tss_struct) to be nice >> and page-aligned. > > No, it should _not_ be page-aligned. It should fit _within_ a page, > but it 'struct

Re: [PATCH 1/3] perf help: Document missing options

2017-11-13 Thread Taeung Song
Hi Arnaldo and Namhyung :) On 11/14/2017 09:15 AM, Namhyung Kim wrote: Hi Arnaldo, On Mon, Nov 13, 2017 at 03:29:56PM -0300, Arnaldo Carvalho de Melo wrote: Em Sun, Nov 12, 2017 at 10:10:45AM +0900, Sihyeon Jang escreveu: Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Sihyeon Jang --- too

Re: [RFC 1/7] x86/asm/64: Allocate and enable the SYSENTER stack

2017-11-13 Thread Andy Lutomirski
On Mon, Nov 13, 2017 at 11:07 AM, Dave Hansen wrote: > On 11/10/2017 08:05 PM, Andy Lutomirski wrote: >> This will simplify some future code changes that will want some >> temporary stack space in more places. It also lets us get rid of a >> SWAPGS_UNSAFE_STACK user. >> >> This does not depend on

  1   2   3   4   5   6   7   8   9   10   >