Re: [PATCH v3 1/2] gpio: gpiolib: Generalise state persistence beyond sleep

2017-11-24 Thread Linus Walleij
On Wed, Nov 1, 2017 at 5:04 AM, Andrew Jeffery wrote: > General support for state persistence is added to gpiolib with the > introduction of a new pinconf parameter to propagate the request to > hardware. The existing persistence support for sleep is adapted to > include hardware support if the G

[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 sound/soc/codecs/wm8903.c | 12

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 depot_ind

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

2017-11-24 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 24 Nov 2017 10:05:43 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/soc/codecs/wm8903.c | 4 +--- 1 file changed, 1 insertion(+), 3

[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 style convention. This issue was d

Re: [PATCH 1/2] ASoC: wm8903: Delete an error message for a failed memory allocation in wm8903_i2c_probe()

2017-11-24 Thread Charles Keepax
On Fri, Nov 24, 2017 at 10:53:33AM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 24 Nov 2017 10:05:43 +0100 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus E

[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 --- Documentation/sysctl/vm.txt | 15 ++

[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 a/drivers/usb/gadget/udc/fsl_udc_core.c b/drivers/usb/gadget/udc/fsl_udc_core.c index d6

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 corresponding size > determinatio

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 = req_to_mmc_queue_

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 ex

Re: Linux 4.14 - BUG: unable to handle kernel paging request at ffffffff3bbbe160 IP: audit_signal_cb+0x75/0xf0

2017-11-24 Thread Ivan Kozik
On Wed, Nov 22, 2017 at 3:59 PM, John Johansen wrote: > Can you verify the following patch fixes the problem for you I am another user with this problem. Thank you for the patch, I tested it with 4.14.2 (built from Debian packaging) and I no longer see audit_signal_cb oops with my apparmor profi

Re: [PATCH 2/2] scripts: leaking_addresses: help screen updates

2017-11-24 Thread Tobin C. Harding
On Fri, Nov 24, 2017 at 12:51:34PM +0530, Kaiwan N Billimoria wrote: > On Fri, Nov 24, 2017 at 11:29 AM, Tobin C. Harding wrote: > > > Neither of these patches applies to my tree. Are you editing the diff's > > by hand? I noticed the patches don't end with the version signature, like > > this: >

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

2017-11-24 Thread Vlastimil Babka
On 11/24/2017 11:14 AM, Michal Hocko wrote: > 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

Re: i8k_smm_func() takes enormous of time to execute

2017-11-24 Thread Jean Delvare
Hi Oleksandr, On jeu., 2017-11-23 at 22:41 +0100, Oleksandr Natalenko wrote: > 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 second. Then, syste

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

2017-11-24 Thread Dmitry Vyukov
On Fri, Nov 24, 2017 at 10:54 AM, Michal Hocko wrote: > 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 con

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 though

[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 changed, 9 insertions(+) diff --git a/driver

[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 mode of SPI flash. Hou

[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 insertions(+) diff --git a/drivers/mtd/devices/m25p80.c

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: git://git.kernel

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 fe1c61f7cf26.

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: [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

[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 $0xd8,(%rcx) > Warni

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 ARCH_ENABLE_

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 > master

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. > > > @@ -615,6 +616,44 @@ void __i

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 (e.g. shared lock files b

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 circ

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: [PATCH 05/43] x86/fixmap: Generalize the GDT fixmap mechanism

2017-11-24 Thread Borislav Petkov
On Fri, Nov 24, 2017 at 10:14:10AM +0100, Ingo Molnar wrote: > From: Andy Lutomirski > > Currently, the GDT is an ad-hoc array of pages, one per CPU, in the > fixmap. Generalize it to be an array of a new struct cpu_entry_area > so that we can cleanly add new things to it. > > Signed-off-by: An

[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 tbn

[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: powerpc/64s

[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 Cc: Juri Lelli Cc: Daniel Bristot de Oliveira

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: i8k_smm_func() takes enormous of time to execute

2017-11-24 Thread Oleksandr Natalenko
Hi. On pátek 24. listopadu 2017 11:22:28 CET Jean Delvare wrote: > Hi Oleksandr, > > On jeu., 2017-11-23 at 22:41 +0100, Oleksandr Natalenko wrote: > > I've noticed that querying Dell Vostro 3360 hwmon sensor freezes the > > system > > completely (like, really completely, even mouse cursor does n

[PATCH] ARM: dts: imx6qdl-nitrogen6x: Add SPI NOR partitions

2017-11-24 Thread Otavio Salvador
This adds the partitions definition for the SPI NOR to provide backward compatibility with the documented[1] layout used with Boundary Devices BSP. 1. https://boundarydevices.com/boot-flash-access-linux/ It exports to Linux: mtd0: U-Boot mtd1: U-Boot Environment mtd2: Bootsplash Signed-off-b

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 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 this is an extra message. We don't return -ENOMEM as a result of this operation and probe w

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: 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 ca

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 > + callswitch_to_thread

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 this is an extra message. We don't

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 memory allocation failure in this

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 directories, even if the file doesn't exist yet.

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 it. > > Also add

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. > > Signed-off-by: Markus Elfring Acked-b

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 it

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 size > determination a bit safer ac

RE: [PATCH 3/3] ASoC: da7218: Improve a size determination in da7218_i2c_probe()

2017-11-24 Thread Adam Thomson
On 23 November 2017 20:08, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 23 Nov 2017 20:50:44 +0100 > > Replace the specification of a data structure by a pointer dereference > as the parameter for the operator "sizeof" to make the corresponding size > determination a bit safer ac

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 ident

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 wrote: > >> > >> > Disallows O_CREAT open

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 f

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 know

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 which

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, neste

Re: [PATCH v3 03/16] iommu: introduce iommu invalidate API function

2017-11-24 Thread Jean-Philippe Brucker
Hi, On 17/11/17 18:55, Jacob Pan wrote: > From: "Liu, Yi L" > > When an SVM capable device is assigned to a guest, the first level page > tables are owned by the guest and the guest PASID table pointer is > linked to the device context entry of the physical IOMMU. > > Host IOMMU driver has no k

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 Hmm. Doesn't really gain an a

[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 --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 110 - drivers/net/ethernet/cavium/thunder/

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 on top of Michal's

[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 Signed-off-by: Aleksey Makarov --- drivers/net/ethern

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 SWAPG

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 Samsung Exynos >>> 5250+ SoCs. >>> >>> Signed-off-by: Ł

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 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: fortify xfs_alloc_buftar

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 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 are

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 register is used to > > i

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 > +#incl

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 2

[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 als

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 t

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: 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 a

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 an IRET to user mode, so

[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 a/drivers/s390/net/fsm.c b/drivers/s390/net/fsm.c index 8

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 registered

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 wi

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 imp

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 ofpart parsers fir

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

2017-11-24 Thread Mark Brown
On Fri, Nov 24, 2017 at 12:03:32PM +, Adam Thomson wrote: > On 23 November 2017 20:06, SF Markus Elfring wrote: > > 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. Would understand i

Re: [PATCH 0/4] staging: lustre: fixed some signedness warns from sparse

2017-11-24 Thread Dan Carpenter
On Fri, Nov 24, 2017 at 09:20:20AM +1100, Tobin C. Harding wrote: > My current favourite review of all time was done by you on a what was > at the time a pretty hard patch for me. It was > > Nope > Wow... I know I've said that to other people but I can't believe I sent that to *you*... S

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

2017-11-24 Thread Thomas Gleixner
On Fri, 24 Nov 2017, Peter Zijlstra wrote: > 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:

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

2017-11-24 Thread Stephan Müller
Am Freitag, 24. November 2017, 13:09:06 CET schrieb Krzysztof Kozlowski: Hi Krzysztof, > >> > >> 1. I was rather thinking about extending existing exynos-rng.c [1] so > >> it would be using TRNG as seed for PRNG as this gives you much more > >> random data. Instead you developed totally separate

Re: [Bug fix] octeon-i2c driver updates

2017-11-24 Thread Jan Glauber
On Thu, Nov 23, 2017 at 11:42:36AM +, Zhang, Sean C. (NSB - CN/Hangzhou) wrote: > Dear Maintainer, > > For octeon TWSI controller, I found below two cases, maybe can be improved. Hi Sean, form the description below this looks like you're fixing a bug. Can you elaborate on when the I2C bus d

Re: 4.14: WARNING: CPU: 4 PID: 2895 at block/blk-mq.c:1144 with virtio-blk (also 4.12 stable)

2017-11-24 Thread Christian Borntraeger
On 11/23/2017 07:59 PM, Christian Borntraeger wrote: > > > On 11/23/2017 07:32 PM, Christoph Hellwig wrote: >> On Thu, Nov 23, 2017 at 07:28:31PM +0100, Christian Borntraeger wrote: >>> zfcp on s390. >> >> Ok, so it can't be the interrupt code, but probably is the blk-mq-cpumap.c >> changes. C

Re: [PATCH v3 05/19] x86/kasan/64: Teach KASAN about the cpu_entry_area

2017-11-24 Thread Andrey Ryabinin
On 11/24/2017 07:32 AM, Andy Lutomirski wrote: > The cpu_entry_area will contain stacks. Make sure that KASAN has > appropriate shadow mappings for them. > > Cc: Andrey Ryabinin > Cc: Alexander Potapenko > Cc: Dmitry Vyukov > Cc: kasan-...@googlegroups.com > Signed-off-by: Andy Lutomirski >

[PATCH] atm: firestream: 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/atm/firestream.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/atm/firestream.c b/drivers/atm/firestream.c i

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

2017-11-24 Thread peter enderborg
On 11/24/2017 11:14 AM, Michal Hocko wrote: > 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

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

2017-11-24 Thread Michal Hocko
On Fri 24-11-17 14:12:56, peter enderborg wrote: > On 11/24/2017 11:14 AM, Michal Hocko wrote: > > 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] atm: lanai: 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/atm/lanai.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/atm/lanai.c b/drivers/atm/lanai.c index 2351dad78f

Re: [PATCH V2 07/29] ibft: deprecate pci_get_bus_and_slot()

2017-11-24 Thread Konrad Rzeszutek Wilk
On Wed, Nov 22, 2017 at 05:49:02PM -0500, Sinan Kaya wrote: > pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as > where a PCI device is present. This restricts the device drivers to be > reused for other domain numbers. > > Getting ready to remove pci_get_bus_and_slot() functi

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: > +static pte_t *kaiser_shadow_pagetable_walk(unsigned long address, > +unsigned long flags) > +{ > + pte_t *pte; > + pmd_t *pmd; > + pud_t *pud; > + p4d_t *p4d; > + pgd_t *pgd =

Re: Creating cyclecounter and lock member in timecounter structure [ Was Re: [RFC 1/4] drm/i915/perf: Add support to correlate GPU timestamp with system time]

2017-11-24 Thread Thomas Gleixner
On Fri, 24 Nov 2017, Sagar Arun Kamble wrote: > On 11/24/2017 12:29 AM, Thomas Gleixner wrote: > > On Thu, 23 Nov 2017, Sagar Arun Kamble wrote: > > > We needed inputs on possible optimization that can be done to > > > timecounter/cyclecounter structures/usage. > > > This mail is in response to rev

[PATCH] USB: atm: 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/usb/atm/usbatm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/atm/usbatm.c b/drivers/usb/atm/usbatm.c

Re: No check of the size passed to unmap_single in swiotlb

2017-11-24 Thread Konrad Rzeszutek Wilk
..snip.. > > There doesn't seem to be much good reason for SWIOTLB to be more special > > than other DMA API backends, and not all of them have enough internal state > > to > > be able to make such a check. It's also not necessarily possible to "prevent > > damage" anyway - if a driver does pass a

[PATCH] nfc: st21nfca: 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/nfc/st21nfca/se.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/nfc/st21nfca/se.c b/drivers/nfc/st21

<    1   2   3   4   5   6   >