Re: [PATCH] mm:Add watermark slope for high mark

2017-11-24 Thread Michal Hocko
On Fri 24-11-17 11:07:07, Peter Enderborg wrote: > When tuning the watermark_scale_factor to reduce stalls and compactions > the high mark is also changed, it changed a bit too much. So this > patch introduces a slope that can reduce this overhead a bit, or > increase it if needed. This doesn't

Re: [PATCH RFC 1/2] sched: Minimize the idle cpu selection race window.

2017-11-24 Thread Uladzislau Rezki
On Thu, Nov 23, 2017 at 02:13:01PM +0100, Mike Galbraith wrote: > On Thu, 2017-11-23 at 11:52 +0100, Uladzislau Rezki wrote: > > Hello, Atish, Peter, all. > > > > I have a question about if a task's nr_cpus_allowed is 1. > > In that scenario we do not call select_task_rq. Therefore > > even

[PATCH 1/2] mtd: spi-nor: add a API to restore the addressing mode

2017-11-24 Thread Zhiqiang Hou
From: Hou Zhiqiang It's better to restore the addressing mode of the SPI flash whenever remove the driver or reboot the system. Signed-off-by: Hou Zhiqiang --- drivers/mtd/spi-nor/spi-nor.c | 8 include/linux/mtd/spi-nor.h | 1 + 2 files

[PATCH 0/2] mtd: m25p80: restore the addressing mode when stop using the flash

2017-11-24 Thread Zhiqiang Hou
From: Hou Zhiqiang To be compatible with legacy device, reset the addressing mode to the default mode. Such as Freescale eSPI boot, it copies the images from SPI flash without firing a reset signal previously, so the reboot command will fail without reseting the addressing

RE: [RFC v2] dma-coherent: introduce no-align to avoid allocation failure and save memory

2017-11-24 Thread David Laight
From: Jaewon Kim > Sent: 24 November 2017 05:59 > > dma-coherent uses bitmap APIs which internally consider align based on the > requested size. If most of allocations are small size like KBs, using > alignment scheme seems to be good for anti-fragmentation. But if large > allocation are commonly

Re: [PATCH v3] typec: tcpm: fusb302: Resolve out of order messaging events

2017-11-24 Thread Heikki Krogerus
On Tue, Nov 21, 2017 at 02:12:12PM +, Adam Thomson wrote: > The expectation in the FUSB302 driver is that a TX_SUCCESS event > should occur after a message has been sent, but before a GCRCSENT > event is raised to indicate successful receipt of a message from > the partner. However in some

Re: [PATCH 13/43] x86/entry/64: Use a percpu trampoline stack for IDT entries

2017-11-24 Thread Thomas Gleixner
On Fri, 24 Nov 2017, Ingo Molnar wrote: > From: Andy Lutomirski > @@ -563,6 +563,13 @@ END(irq_entries_start) > /* 0(%rsp): ~(interrupt number) */ > .macro interrupt func > cld > + > + testb $3, CS-ORIG_RAX(%rsp) > + jz 1f > + SWAPGS > + call

RE: [PATCH v3 14/19] x86/entry/64: Create a percpu SYSCALL entry trampoline

2017-11-24 Thread David Laight
From: Andy Lutomirski > Sent: 24 November 2017 04:33 ... > + /* > + * x86 lacks a near absolute jump, and we can't jump to the real > + * entry text with a relative jump, so we fake it using retq. > + */ > + pushq $entry_SYSCALL_64_after_hwframe > + retq Don't some of

RE: [PATCH 1/2] ASoC: da7213: Delete an error message for a failed memory allocation in da7213_fw_to_pdata()

2017-11-24 Thread Adam Thomson
On 24 November 2017 11:33, Julia Lawall wrote: > On Fri, 24 Nov 2017, Adam Thomson wrote: > > > On 23 November 2017 17:33, SF Markus Elfring wrote: > > > > > From: Markus Elfring > > > Date: Thu, 23 Nov 2017 17:56:54 +0100 > > > > > > Omit an extra message for a

RE: [PATCH 2/2] ASoC: da7213: Improve a size determination in da7213_i2c_probe()

2017-11-24 Thread Adam Thomson
On 23 November 2017 17:34, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 23 Nov 2017 18:15:30 +0100 > > Replace the specification of a data structure by a pointer dereference > as the parameter for the operator "sizeof" to make the corresponding

[PATCH net-next] net: thunderx: Add support for xdp redirect

2017-11-24 Thread Aleksey Makarov
From: Sunil Goutham This patch adds support for XDP_REDIRECT. Flush is not yet supported. Signed-off-by: Sunil Goutham Signed-off-by: cjacob Signed-off-by: Aleksey Makarov ---

RE: [PATCH 2/3] ASoC: da7218: Use common error handling code in da7218_of_to_pdata()

2017-11-24 Thread Adam Thomson
On 23 November 2017 20:06, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 23 Nov 2017 20:48:05 +0100 > > Add a jump target so that a bit of exception handling can be better reused > in an if branch of this function. > > Signed-off-by: Markus Elfring

Re: [PATCH v2] xfs: handle register_shrinker error

2017-11-24 Thread Tetsuo Handa
Michal Hocko wrote: > Thanks. Updated patch below > --- > From 1009db61988c48c9a9e327a9d076945b29b02eee Mon Sep 17 00:00:00 2001 > From: Michal Hocko > Date: Thu, 23 Nov 2017 17:13:40 +0100 > Subject: [PATCH] xfs: fortify xfs_alloc_buftarg error handling Do we need below patch

[PATCH net-next] net: thunderx: Set max queue count taking XDP_TX into account

2017-11-24 Thread Aleksey Makarov
From: Sunil Goutham on T81 there are only 4 cores, hence setting max queue count to 4 would leave nothing for XDP_TX. This patch fixes this by doubling max queue count in above scenarios. Signed-off-by: Sunil Goutham Signed-off-by: cjacob

Re: i8k_smm_func() takes enormous of time to execute

2017-11-24 Thread Oleksandr Natalenko
On pátek 24. listopadu 2017 12:25:43 CET Pali Rohár wrote: > On Friday 24 November 2017 12:17:30 Oleksandr Natalenko wrote: > > > There are two patches waiting to be tested in > > > https://bugzilla.kernel.org/show_bug.cgi?id=195751 > > > > Tested and attached a couple of patches on top of those

Re: Re: [PATCH 1/1] stackdepot: interface to check entries and size of stackdepot.

2017-11-24 Thread Michal Hocko
On Fri 24-11-17 11:57:07, Vaneet Narang wrote: [...] > > OK, so debugging a debugging facility... I do not think we want to > > introduce a lot of code for something like that. > > We enabled stackdepot on our system and realised, in long run stack depot > consumes > more runtime memory then it

Re: [PATCH 3/4] ARM: pxa/spitz: Remove hardcoded partitioning, use sharpslpart parser

2017-11-24 Thread Andrea Adami
On Thu, Nov 23, 2017 at 12:06 AM, Pavel Machek wrote: > On Tue 2017-11-21 22:43:50, Andrea Adami wrote: >> With the introduction of sharpslpart partition parser we can now read the >> offsets from NAND: we specify the list of the parsers as platform data, with >> cmdlinepart and

Re: Linux 4.13.16

2017-11-24 Thread Greg KH
diff --git a/Makefile b/Makefile index 3bd5d9d148d3..bc9a897e0431 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 13 -SUBLEVEL = 15 +SUBLEVEL = 16 EXTRAVERSION = NAME = Fearless Coyote diff --git a/arch/x86/kernel/cpu/intel_cacheinfo.c

Linux 4.13.16

2017-11-24 Thread Greg KH
--- Please note, this is the LAST 4.13.y kernel to be released, it is now end-of-life. Move to 4.14.y now. --- I'm announcing the release of the 4.13.16 kernel. All users of the 4.13 kernel series must upgrade. The updated 4.13.y git tree

Re: [PATCH 3/4] ASoC: wm2000: Fix a typo in a comment line

2017-11-24 Thread Charles Keepax
On Fri, Nov 24, 2017 at 08:39:02AM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 24 Nov 2017 08:02:57 +0100 > > Delete a duplicate character in a word of this description. > > Signed-off-by: Markus Elfring >

Re: [PATCH 4/4] ASoC: wm2000: Improve a size determination in wm2000_i2c_probe()

2017-11-24 Thread Charles Keepax
On Fri, Nov 24, 2017 at 08:40:22AM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 24 Nov 2017 08:18:14 +0100 > > Replace the specification of a data structure by a pointer dereference > as the parameter for the operator "sizeof" to make the

Re: [PATCH 2/4] ASoC: wm2000: One function call less in wm2000_i2c_probe() after error detection

2017-11-24 Thread Charles Keepax
On Fri, Nov 24, 2017 at 08:37:41AM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 24 Nov 2017 07:45:59 +0100 > > The release_firmware() function was called in a few cases by the > wm2000_i2c_probe() function during error handling even if > the

Re: [kernel-hardening] [PATCH v3 2/2] Protected O_CREAT open in sticky directories

2017-11-24 Thread Salvatore Mesoraca
2017-11-23 23:57 GMT+01:00 Tobin C. Harding : > On Wed, Nov 22, 2017 at 09:01:46AM +0100, Salvatore Mesoraca wrote: > > Same caveat about this being English language comments only as for patch > 1/2. Please ignore if this is too trivial. My grammar is a long way from > perfect,

Re: [PATCH] ASoC: amd: added error checks in dma driver

2017-11-24 Thread Mukunda,Vijendar
On Friday 24 November 2017 01:41 PM, Guenter Roeck wrote: On Fri, Nov 24, 2017 at 3:07 AM, Mukunda,Vijendar wrote: On Thursday 23 November 2017 10:59 PM, Mark Brown wrote: On Thu, Nov 23, 2017 at 08:59:43AM -0800, Guenter Roeck wrote: On Thu, Nov 23, 2017 at

Re: [RFC PATCH 0/2] mm: introduce MAP_FIXED_SAFE

2017-11-24 Thread Michal Hocko
Are there any more concerns? So far the biggest one was the name. The other which suggests a flag as a modifier has been sorted out hopefully. Is there anymore more before we can consider this for merging? Well except for man page update which I will prepare of course. Can we target this to 4.16?

[PATCH 12/43] x86/espfix/64: Stop assuming that pt_regs is on the entry stack

2017-11-24 Thread Ingo Molnar
From: Andy Lutomirski When we start using an entry trampoline, a #GP from userspace will be delivered on the entry stack, not on the task stack. Fix the espfix64 #DF fixup to set up #GP according to TSS.SP0, rather than assuming that pt_regs + 1 == SP0. This won't change

[PATCH 21/43] x86/mm/kaiser: Disable global pages by default with KAISER

2017-11-24 Thread Ingo Molnar
From: Dave Hansen Global pages stay in the TLB across context switches. Since all contexts share the same kernel mapping, these mappings are marked as global pages so kernel entries in the TLB are not flushed out on a context switch. But, even having these entries

[PATCH 00/43] x86 entry-stack and Kaiser series, 2017/11/24 version

2017-11-24 Thread Ingo Molnar
This is a linear series of patches of the latest entry-stack plus Kaiser bits from Andy Lutomirski (v3 series from today) and Dave Hansen (kaiser-414-tipwip-20171123 version), on top of latest tip:x86/urgent (12a78d43de76), plus fixes - for easier review. The code should be the latest posted by

[PATCH 30/43] x86/mm/kaiser: Map espfix structures

2017-11-24 Thread Ingo Molnar
From: Dave Hansen There is some rather arcane code to help when an IRET returns to 16-bit segments. It is referred to as the "espfix" code. This consists of a few per-cpu variables: espfix_stack: tells us where the stack is allocated

[PATCH 04/43] x86/gdt: Put per-cpu GDT remaps in ascending order

2017-11-24 Thread Ingo Molnar
From: Andy Lutomirski We currently have CPU 0's GDT at the top of the GDT range and higher-numbered CPUs at lower addresses. This happens because the fixmap is upside down (index 0 is the top of the fixmap). Flip it so that GDTs are in ascending order by virtual address. This

[PATCH 29/43] x86/mm/kaiser: Map dynamically-allocated LDTs

2017-11-24 Thread Ingo Molnar
From: Dave Hansen Normally, a process has a NULL mm->context.ldt. But, there is a syscall for a process to set a new one. If a process does that, the LDT be mapped into the user page tables, just like the default copy. The original KAISER patch missed this case.

BUG: unable to handle kernel NULL pointer dereference at 0000000000000018

2017-11-24 Thread Jesús Rodríguez Acosta
Hi all: I got a kernel panic after execute "systemctl reboot". Nov 24 09:02:06 desktop systemd[713]: Stopped target Timers. Nov 24 09:02:06 desktop systemd[713]: Reached target Shutdown. Nov 24 09:02:06 desktop systemd[713]: Starting Exit the Session... Nov 24 09:02:06 desktop kernel:

[PATCH 0/2] ASoC: wm8903: Adjustments for wm8903_i2c_probe()

2017-11-24 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 24 Nov 2017 10:44:55 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation Improve two size determinations

Re: [PATCH 1/1] stackdepot: interface to check entries and size of stackdepot.

2017-11-24 Thread Michal Hocko
On Fri 24-11-17 09:41:08, Maninder Singh wrote: > Hi Michal, > > > On Wed 22-11-17 16:17:41, Maninder Singh wrote: > > > This patch provides interface to check all the stack enteries > > > saved in stackdepot so far as well as memory consumed by stackdepot. > > > > > > 1) Take current

[PATCH 2/2] mtd: m25p80: restore the addressing mode when stop using the flash

2017-11-24 Thread Zhiqiang Hou
From: Hou Zhiqiang Add .shutdown function to restore the addressing mode in reboot process, and add the same operation to the .remove function. Signed-off-by: Hou Zhiqiang --- drivers/mtd/devices/m25p80.c | 8 1 file changed, 8

Re: [PATCH v2 4/5] mm: memory_hotplug: Add memory hotremove probe device

2017-11-24 Thread Andrea Reale
Hi zhongjiang, On Fri 24 Nov 2017, 18:35, zhong jiang wrote: > HI, Andrea > > I don't see "memory_add_physaddr_to_nid" in arch/arm64. > Am I miss something? When !CONFIG_NUMA it is defined in include/linux/memory_hotplug.h as 0. In patch 1/5 of this series we require !NUMA to enable

Re: [PATCH v2 1/5] mm: memory_hotplug: Memory hotplug (add) support for arm64

2017-11-24 Thread Maciej Bielski
On Fri, Nov 24, 2017 at 09:42:33AM +, Andrea Reale wrote: > Hi Arun, > > > On Fri 24 Nov 2017, 11:25, Arun KS wrote: > > On Thu, Nov 23, 2017 at 4:43 PM, Maciej Bielski > > wrote: > >> [ ...] > > > Introduces memory hotplug functionality (hot-add) for arm64.

[PATCH] net: thunderbolt: Stop using zero to mean no valid DMA mapping

2017-11-24 Thread Mika Westerberg
Commit 86dabda426ac ("net: thunderbolt: Clear finished Tx frame bus address in tbnet_tx_callback()") fixed a DMA-API violation where the driver called dma_unmap_page() in tbnet_free_buffers() for a bus address that might already be unmapped. The fix was to zero out the bus address of a frame in

[GIT PULL] Please pull powerpc/linux.git powerpc-4.15-2 tag

2017-11-24 Thread Michael Ellerman
Hi Linus, Please pull some powerpc fixes for 4.15. These would be nice to have in rc1, but none of them are actually that crucial. So they can wait until Monday if you're busy eating pumpkin pie. cheers The following changes since commit 3ffa9d9e2a7c10127d8cbf91ea2be15390b450ed:

Re: i8k_smm_func() takes enormous of time to execute

2017-11-24 Thread Pali Rohár
On Thursday 23 November 2017 22:41:03 Oleksandr Natalenko wrote: > Hi, Jonathan, Mario et al. > > I've noticed that querying Dell Vostro 3360 hwmon sensor freezes the system > completely (like, really completely, even mouse cursor does not move, and > sound playback stops) for approx. half of a

RE: [PATCH 1/2] ASoC: da7213: Delete an error message for a failed memory allocation in da7213_fw_to_pdata()

2017-11-24 Thread Julia Lawall
On Fri, 24 Nov 2017, Adam Thomson wrote: > On 23 November 2017 17:33, SF Markus Elfring wrote: > > > From: Markus Elfring > > Date: Thu, 23 Nov 2017 17:56:54 +0100 > > > > Omit an extra message for a memory allocation failure in this function. > > I'm not sure

Re: [PATCH 0/9] drivers/s390/ license text cleanup

2017-11-24 Thread Heiko Carstens
On Fri, Nov 24, 2017 at 12:45:41PM +0100, Greg Kroah-Hartman wrote: > On Fri, Nov 24, 2017 at 12:23:39PM +0100, Heiko Carstens wrote: > > On Tue, Nov 14, 2017 at 06:37:59PM +0100, Greg Kroah-Hartman wrote: > > > Hi all, > > > > > > Here are 9 patches against linux-next of today that add SPDX

RE: [PATCH v3 2/2] Protected O_CREAT open in sticky directories

2017-11-24 Thread David Laight
From: Salvatore Mesoraca [mailto:s.mesorac...@gmail.com] > Sent: 24 November 2017 11:44 > > 2017-11-24 11:53 GMT+01:00 David Laight : > > From: Alan Cox > >> Sent: 22 November 2017 16:52 > >> > >> On Wed, 22 Nov 2017 09:01:46 +0100 > >> Salvatore Mesoraca

Re: [PATCH v3 15/16] iommu: introduce page response function

2017-11-24 Thread Jean-Philippe Brucker
On 17/11/17 18:55, Jacob Pan wrote: > When nested translation is turned on and guest owns the > first level page tables, device page request can be forwared > to the guest for handling faults. As the page response returns > by the guest, IOMMU driver on the host need to process the > response

Re: [PATCH v3 01/16] iommu: introduce bind_pasid_table API function

2017-11-24 Thread Jean-Philippe Brucker
On 17/11/17 18:54, Jacob Pan wrote: > Virtual IOMMU was proposed to support Shared Virtual Memory (SVM) > use in the guest: > https://lists.gnu.org/archive/html/qemu-devel/2016-11/msg05311.html > > As part of the proposed architecture, when an SVM capable PCI > device is assigned to a guest,

Re: [PATCH v3 08/16] iommu: introduce device fault data

2017-11-24 Thread Jean-Philippe Brucker
Hi Jacob, On 17/11/17 18:55, Jacob Pan wrote: > Device faults detected by IOMMU can be reported outside IOMMU > subsystem for further processing. This patch intends to provide > a generic device fault data such that device drivers can be > communicated with IOMMU faults without model specific

Re: [PATCH v2] xfs: handle register_shrinker error

2017-11-24 Thread Michal Hocko
On Fri 24-11-17 21:03:28, Tetsuo Handa wrote: > Michal Hocko wrote: > > Thanks. Updated patch below > > --- > > From 1009db61988c48c9a9e327a9d076945b29b02eee Mon Sep 17 00:00:00 2001 > > From: Michal Hocko > > Date: Thu, 23 Nov 2017 17:13:40 +0100 > > Subject: [PATCH] xfs:

Re: [PATCH 0/9] drivers/s390/ license text cleanup

2017-11-24 Thread Greg Kroah-Hartman
On Fri, Nov 24, 2017 at 12:52:35PM +0100, Heiko Carstens wrote: > On Fri, Nov 24, 2017 at 12:45:41PM +0100, Greg Kroah-Hartman wrote: > > On Fri, Nov 24, 2017 at 12:23:39PM +0100, Heiko Carstens wrote: > > > On Tue, Nov 14, 2017 at 06:37:59PM +0100, Greg Kroah-Hartman wrote: > > > > Hi all, > > >

Re: [PATCH 2/3] hwrng: exynos - add Samsung Exynos True RNG driver

2017-11-24 Thread Krzysztof Kozlowski
On Thu, Nov 23, 2017 at 7:46 PM, Łukasz Stelmach wrote: > It was <2017-11-23 czw 17:31>, when Krzysztof Kozlowski wrote: >> On Thu, Nov 23, 2017 at 4:09 PM, Łukasz Stelmach >> wrote: >>> Add support for True Random Number Generator found in

Re: [PATCH 22/43] x86/mm/kaiser: Prepare assembly for entry/exit CR3 switching

2017-11-24 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Fri, Nov 24, 2017 at 10:14:27AM +0100, Ingo Molnar wrote: > > Interactions with SWAPGS: previous versions of the KAISER code > > relied on having per-cpu scratch space to save/restore a register > > that can be used for the CR3 MOV. The %GS

RE: Re: [PATCH 1/1] stackdepot: interface to check entries and size of stackdepot.

2017-11-24 Thread Vaneet Narang
Hi Michal, >> 5) To check number of entries in stackdepot to decide stackdepot hash size >> for different systems. >>For fewer entries hash table size can be reduced from 4MB. > > What are you going to do with that information. It is not like you can > reduce the memory footprint or somehow

Re: Linux 4.4.102

2017-11-24 Thread Greg KH
diff --git a/Makefile b/Makefile index 0d7b050427ed..9e036fac9c04 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 101 +SUBLEVEL = 102 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/mm/debug-pagealloc.c b/mm/debug-pagealloc.c index

Linux 4.4.102

2017-11-24 Thread Greg KH
I'm announcing the release of the 4.4.102 kernel. It's a bugfix for an issue if PAGE_POISONING is enabled in the kernel configuration. If you do not run your kernel with that option, no need to upgrade, just stick with 4.4.101. The updated 4.4.y git tree can be found at:

[PATCH v3] component: add debugfs support

2017-11-24 Thread Maciej Purski
Add 'component' directory to debugfs. Create a new file for each master, when a master is added. Remove it on a master deletion. Show a list of devices matched with master and indicate if master's components were successfully added and if the whole master is bound. Signed-off-by: Maciej Purski

Re: [PATCH v2 4/5] mm: memory_hotplug: Add memory hotremove probe device

2017-11-24 Thread zhong jiang
HI, Andrea I don't see "memory_add_physaddr_to_nid" in arch/arm64. Am I miss something? Thnaks zhongjiang On 2017/11/23 19:14, Andrea Reale wrote: > Adding a "remove" sysfs handle that can be used to trigger > memory hotremove manually, exactly simmetrically with > what happens with the "probe"

Re: [PATCH 01/43] x86/decoder: Add new TEST instruction pattern

2017-11-24 Thread Borislav Petkov
On Fri, Nov 24, 2017 at 10:14:06AM +0100, Ingo Molnar wrote: > From: Masami Hiramatsu > > The kbuild test robot reported this build warning: > > Warning: arch/x86/tools/test_get_len found difference at > :8103dd2c > > Warning: 8103dd82: f6 09 d8 testb

Re: ASoC: da7218: Use common error handling code in da7218_of_to_pdata()

2017-11-24 Thread SF Markus Elfring
>> Add a jump target so that a bit of exception handling can be better reused >> in an if branch of this function. … > Hmm. Doesn't really gain an awful lot this. I show just another small change possibility. > Would understand if there were multiple return paths, > but in that case I'd have

Re: [PATCH v2 2/2] s390/virtio: add BSD license to virtio-ccw

2017-11-24 Thread Cornelia Huck
On Fri, 24 Nov 2017 07:21:09 +0200 "Michael S. Tsirkin" wrote: > The original intent of the virtio header relicensing > from 2008 was to make sure anyone can implement compatible > devices/drivers. The virtio-ccw was omitted by mistake. > > We have an ack from the only

[PATCH 13/43] x86/entry/64: Use a percpu trampoline stack for IDT entries

2017-11-24 Thread Ingo Molnar
From: Andy Lutomirski Historically, IDT entries from usermode have always gone directly to the running task's kernel stack. Rearrange it so that we enter on a percpu trampoline stack and then manually switch to the task's stack. This touches a couple of extra cachelines, but it

[PATCH 28/43] x86/mm/kaiser: Map CPU entry area

2017-11-24 Thread Ingo Molnar
From: Dave Hansen There is now a special 'struct cpu_entry' area that contains all of the data needed to enter the kernel. It's mapped in the fixmap area and contains: * The GDT (hardware segment descriptor) * The TSS (thread information structure that points the

[PATCH 20/43] x86/entry: Clean up SYSENTER_stack code

2017-11-24 Thread Ingo Molnar
From: Andy Lutomirski The existing code was a mess, mainly because C arrays are nasty. Turn SYSENTER_stack into a struct, add a helper to find it, and do all the obvious cleanups this enables. Signed-off-by: Andy Lutomirski Cc: Borislav Petkov

Re: Fwd: Why qemu with kvm enabled can boot kernel even if identity page map is not set correctly?

2017-11-24 Thread Paolo Bonzini
On 22/11/2017 03:58, 丁飞 wrote: > -- Forwarded message -- > From: 丁飞 > Date: Wed, Nov 22, 2017 at 12:58 AM > Subject: Why qemu with kvm enabled can boot kernel even if identity > page map is not set correctly? > To: k...@vger.kernel.org > > > Hi, KVM

[PATCH] perf test: Fix test 21 for s390x

2017-11-24 Thread Thomas Richter
Test case 21 (Number of exit events of a simple workload) fails on s390x. The reason is the invalid sample frequency supplied for this test. On s390x the minimum sample frequency is much higher (see output of /proc/service_levels: [root@s35lp76 linux-devel]# cat /proc/service_levels CPU-MF:

[PATCH 2/2] ASoC: wm8903: Improve two size determinations in wm8903_i2c_probe()

2017-11-24 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 24 Nov 2017 10:40:43 +0100 Replace the specification of two data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding

Re: [alsa-devel] [PATCH 2/2] ASoC: wm8903: Improve two size determinations in wm8903_i2c_probe()

2017-11-24 Thread Charles Keepax
On Fri, Nov 24, 2017 at 10:55:31AM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 24 Nov 2017 10:40:43 +0100 > > Replace the specification of two data structures by pointer dereferences > as the parameter for the operator "sizeof" to make the

[PATCH] USB: gadget: udc: fix spelling mistake "unexpect" -> "unexpected"

2017-11-24 Thread Colin King
From: Colin Ian King Trival fix to spelling mistake in ERR message Signed-off-by: Colin Ian King --- drivers/usb/gadget/udc/fsl_udc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] mm:Add watermark slope for high mark

2017-11-24 Thread Peter Enderborg
When tuning the watermark_scale_factor to reduce stalls and compactions the high mark is also changed, it changed a bit too much. So this patch introduces a slope that can reduce this overhead a bit, or increase it if needed. Signed-off-by: Peter Enderborg ---

[PATCH] sched/deadline: comment update for constrained deadline tasks explanation

2017-11-24 Thread Alessio Balsini
Remove the adjective "relative" associated to the period of a periodic task, since the period is an absolute value. Rephrased the comment with the aim of making it even more clear. Signed-off-by: Alessio Balsini Cc: Ingo Molnar Cc: Peter Zijlstra

Re: [PATCH 0/9] drivers/s390/ license text cleanup

2017-11-24 Thread Heiko Carstens
On Tue, Nov 14, 2017 at 06:37:59PM +0100, Greg Kroah-Hartman wrote: > Hi all, > > Here are 9 patches against linux-next of today that add SPDX identifiers > to the remaining files that do not currently have them, and then it > cleans up the various different ways that the license text boilerplate

Re: [PATCH 0/9] drivers/s390/ license text cleanup

2017-11-24 Thread Greg Kroah-Hartman
On Fri, Nov 24, 2017 at 12:23:39PM +0100, Heiko Carstens wrote: > On Tue, Nov 14, 2017 at 06:37:59PM +0100, Greg Kroah-Hartman wrote: > > Hi all, > > > > Here are 9 patches against linux-next of today that add SPDX identifiers > > to the remaining files that do not currently have them, and then

RE: [PATCH 1/3] ASoC: da7218: Delete two error messages for a failed memory allocation in da7218_of_to_pdata()

2017-11-24 Thread Adam Thomson
On 23 November 2017 20:05, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 23 Nov 2017 20:42:20 +0100 > > Omit extra messages for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > >

Re: [PATCH 25/43] x86/mm/kaiser: Unmap kernel from userspace page tables (core patch)

2017-11-24 Thread Peter Zijlstra
On Fri, Nov 24, 2017 at 10:14:30AM +0100, Ingo Molnar wrote: > Note: The original KAISER authors signed-off on their patch. Some of > their code has been broken out into other patches in this series, but > their SoB was only retained here. This is not in fact the case anymore.. > Signed-off-by:

Re: [PATCH v2 4/5] mm: memory_hotplug: Add memory hotremove probe device

2017-11-24 Thread zhong jiang
Hi, Andrea most of server will benefit from NUMA ,it is best to sovle the issue without spcial restrictions. At least we can obtain the numa information from dtb. therefore, The memory can online correctly. Thanks zhongjiang On 2017/11/24 18:44, Andrea Reale wrote: > Hi zhongjiang, > > On Fri

Re: [RFC PATCH v2 6/7] typec: tcpm: Represent source supply through power_supply class

2017-11-24 Thread Heikki Krogerus
Hi, On Tue, Nov 14, 2017 at 11:44:47AM +, Adam Thomson wrote: > diff --git a/drivers/usb/typec/tcpm.c b/drivers/usb/typec/tcpm.c > index 78983e1..7c26c3d 100644 > --- a/drivers/usb/typec/tcpm.c > +++ b/drivers/usb/typec/tcpm.c > @@ -12,6 +12,7 @@ > #include > #include > #include >

Re: [PATCH 1/4] staging: lustre: fixed signedness of some socklnd params

2017-11-24 Thread Dan Carpenter
On Fri, Nov 24, 2017 at 12:47:21AM +0100, Stefano Manni wrote: > I've made the module param nsched signed because the > ksock_tunables.ksnd_nscheds (the real container) is signed too. Yeah. I know. And it's way more involved and controversial to change ksock_tunables. > > I definitely agree

[PATCH] s390/drivers: use setup_timer instead of init_timer

2017-11-24 Thread Colin King
From: Colin Ian King Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Colin Ian King --- drivers/s390/net/fsm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

Re: [hrtimer_active ^W ata_port_wait_eh] INFO: trying to register non-static key.

2017-11-24 Thread Tejun Heo
Hello, On Wed, Nov 22, 2017 at 03:37:45PM +0100, Thomas Gleixner wrote: > [ 33.027134] ata3: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc040 irq 14 > [ 33.027138] ata4: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc048 irq 15 > [ 33.028426] Error: Driver 'pata_platform' is already

Re: [PATCH V14 13/24] mmc: block: Add blk-mq support

2017-11-24 Thread Ulf Hansson
[...] > +/* Single sector read during recovery */ > +static void mmc_blk_ss_read(struct mmc_queue *mq, struct request *req) Nitpick: I think mmc_blk_read_single() would be better as it is a more clear name. Would you mind changing it? > +{ > + struct mmc_queue_req *mqrq =

Re: [PATCH] mm:Add watermark slope for high mark

2017-11-24 Thread peter enderborg
On 11/24/2017 11:15 AM, Vlastimil Babka wrote: > Agreed. Also if you send a patch adding userspace API or a tuning knob, > please CC linux-api mailing list (did that for this reply). > The cc-list is generated by get_maintainer.pl script.

Re: [PATCH v3] component: add debugfs support

2017-11-24 Thread Greg Kroah-Hartman
On Fri, Nov 24, 2017 at 11:35:25AM +0100, Maciej Purski wrote: > Add 'component' directory to debugfs. Create a new file for each master, Wrong directory name here :( > when a master is added. Remove it on a master deletion. > > Show a list of devices matched with master and indicate if >

RE: [PATCH v3 2/2] Protected O_CREAT open in sticky directories

2017-11-24 Thread David Laight
From: Alan Cox > Sent: 22 November 2017 16:52 > > On Wed, 22 Nov 2017 09:01:46 +0100 > Salvatore Mesoraca wrote: > > > Disallows O_CREAT open missing the O_EXCL flag, in world or > > group writable directories, even if the file doesn't exist yet. > > With few exceptions

Re: [PATCH] mm, compaction: direct freepage allocation for async direct compaction

2017-11-24 Thread Mel Gorman
On Thu, Nov 23, 2017 at 10:15:17PM +0100, Vlastimil Babka wrote: > On 11/23/2017 03:08 PM, Mel Gorman wrote: > > > > 1. This indirectly uses __rmqueue to allocate a MIGRATE_MOVABLE page but > >that is allowed to fallback to other pageblocks and potentially even > >steal them. I think it's

Re: i8k_smm_func() takes enormous of time to execute

2017-11-24 Thread Pali Rohár
On Friday 24 November 2017 12:17:30 Oleksandr Natalenko wrote: > > There are two patches waiting to be tested in > > https://bugzilla.kernel.org/show_bug.cgi?id=195751 > > Tested and attached a couple of patches on top of those to the BZ. If > disabling fan control is the only approach here, I

Re: [PATCH v3 2/2] Protected O_CREAT open in sticky directories

2017-11-24 Thread Salvatore Mesoraca
2017-11-24 11:53 GMT+01:00 David Laight : > From: Alan Cox >> Sent: 22 November 2017 16:52 >> >> On Wed, 22 Nov 2017 09:01:46 +0100 >> Salvatore Mesoraca wrote: >> >> > Disallows O_CREAT open missing the O_EXCL flag, in world or >> > group writable

Re: [PATCH 09/43] x86/entry: Move SYSENTER_stack to the beginning of struct tss_struct

2017-11-24 Thread Borislav Petkov
On Fri, Nov 24, 2017 at 10:14:14AM +0100, Ingo Molnar wrote: > From: Andy Lutomirski > > SYSENTER_stack should have reliable overflow detection, which > means that it needs to be at the bottom of a page, not the top. > Move it to the beginning of struct tss_struct and page-align

Re: [PATCH v3 0/2] arm: remove cpu_efficiency

2017-11-24 Thread Dietmar Eggemann
On 10/24/2017 03:31 PM, Dietmar Eggemann wrote: Hi Russel, Thanks for the review! On 24/10/17 11:52, Russell King - ARM Linux wrote: On Tue, Oct 24, 2017 at 11:27:16AM +0100, Dietmar Eggemann wrote: With the dt related patches for exynos and renesas now in the appropriated for-next branches

Re: [PATCH 22/43] x86/mm/kaiser: Prepare assembly for entry/exit CR3 switching

2017-11-24 Thread Peter Zijlstra
On Fri, Nov 24, 2017 at 10:14:27AM +0100, Ingo Molnar wrote: > Interactions with SWAPGS: previous versions of the KAISER code > relied on having per-cpu scratch space to save/restore a register > that can be used for the CR3 MOV. The %GS register is used to > index into our per-cpu space, so

Re: [PATCH 25/43] x86/mm/kaiser: Unmap kernel from userspace page tables (core patch)

2017-11-24 Thread Peter Zijlstra
On Fri, Nov 24, 2017 at 10:14:30AM +0100, Ingo Molnar wrote: > +The minimalistic kernel portion of the user page tables try to > +map only what is needed to enter/exit the kernel such as the > +entry/exit functions themselves and the interrupt descriptor > +table (IDT). There

[PATCH] spi: a3700: Fix event detection when waiting for interrupt

2017-11-24 Thread Maxime Chevallier
When waiting for an interrupt event, there is a short window where an interrupt can occur before we start waiting for it, but after the initial flag checking. The current implementation documents that case, but clears the wait_mask before doing the check, making it non-effective. The function

Re: [PATCH 22/43] x86/mm/kaiser: Prepare assembly for entry/exit CR3 switching

2017-11-24 Thread Peter Zijlstra
On Fri, Nov 24, 2017 at 01:17:06PM +0100, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > On Fri, Nov 24, 2017 at 10:14:27AM +0100, Ingo Molnar wrote: > > > @@ -1343,9 +1373,10 @@ ENTRY(error_entry) > > > > > > .Lerror_bad_iret: > > > /* > > > + * We came from

[PATCH v2] ARM64: crypto: do not call crypto_unregister_skcipher twice on error

2017-11-24 Thread Corentin Labbe
When a cipher fails to register in aes_init(), the error path goes thought aes_exit() then crypto_unregister_skciphers(). Since aes_exit calls also crypto_unregister_skcipher, this triggers a refcount_t: underflow; use-after-free. Signed-off-by: Corentin Labbe --- Changes

Re: [PATCH v3 2/2] Protected O_CREAT open in sticky directories

2017-11-24 Thread Salvatore Mesoraca
2017-11-22 17:51 GMT+01:00 Alan Cox : > On Wed, 22 Nov 2017 09:01:46 +0100 > Salvatore Mesoraca wrote: > >> Disallows O_CREAT open missing the O_EXCL flag, in world or >> group writable directories, even if the file doesn't exist yet. >> With

[PATCH v2 1/1] Input: ims-pcu - fix typo in an error log

2017-11-24 Thread Zhen Lei
1. change "to" to "too". 2. move ")" to the front of "\n", which discovered by Joe Perches. Signed-off-by: Zhen Lei Reviewed-by: Joe Perches --- drivers/input/misc/ims-pcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 1/3] scsi: arcmsr: Add driver module parameter msi_enable

2017-11-24 Thread Ching Huang
On Fri, 2017-11-24 at 04:45 +0800, Ching Huang wrote: > Hello Dan, > > On Thu, 2017-11-23 at 13:44 +0300, Dan Carpenter wrote: > > On Thu, Nov 23, 2017 at 09:27:19AM +0800, Ching Huang wrote: > > > From: Ching Huang > > > > > > Add module parameter msi_enable to has a

[PATCH 33/43] x86/mm: Move CR3 construction functions

2017-11-24 Thread Ingo Molnar
From: Dave Hansen For flushing the TLB, the ASID which has been programmed into the hardware must be known. That differs from what is in 'cpu_tlbstate'. Add functions to transform the 'cpu_tlbstate' values into to the one programmed into the hardware (CR3). It's

[PATCH 32/43] x86/mm/kaiser: Map virtually-addressed performance monitoring buffers

2017-11-24 Thread Ingo Molnar
From: Hugh Dickins The BTS and PEBS buffers both have their virtual addresses programmed into the hardware. This means that any access to them is performed via the page tables. The times that the hardware accesses these are entirely dependent on how the performance monitoring

[PATCH 40/43] x86/mm/kaiser: Add a function to check for KAISER being enabled

2017-11-24 Thread Ingo Molnar
From: Dave Hansen Currently, all of the checks for KAISER are compile-time checks. Runtime checks are needed for turning it on/off at runtime. Add a function to do that. Signed-off-by: Dave Hansen Cc: Andy Lutomirski

[PATCH 41/43] x86/mm/kaiser: Un-poison PGDs at runtime

2017-11-24 Thread Ingo Molnar
From: Dave Hansen With KAISER Kernel PGDs that map userspace are "poisoned" with the NX bit. This ensures that if a kernel->user CR3 switch is missed, userspace crashes instead of running in an unhardened state. This code will be needed in a moment when KAISER is

[PATCH 43/43] x86/mm/kaiser: Add Kconfig

2017-11-24 Thread Ingo Molnar
From: Dave Hansen PARAVIRT generally requires that the kernel not manage its own page tables. It also means that the hypervisor and kernel must agree wholeheartedly about what format the page tables are in and what they contain. KAISER, unfortunately, changes the

[PATCH 31/43] x86/mm/kaiser: Map entry stack variable

2017-11-24 Thread Ingo Molnar
From: Dave Hansen There are times where the kernel is entered but there is no safe stack, like at SYSCALL entry. To obtain a safe stack, we have to clobber %rsp and store the clobbered value in 'rsp_scratch'. Map this to userspace to allow us to do this stack

  1   2   3   4   5   6   7   8   9   10   >