[PATCH 04/14] x86/crypto: aesni: Add GCM_COMPLETE macro

2018-02-12 Thread Dave Watson
Merge encode and decode tag calculations in GCM_COMPLETE macro. Scatter/gather routines will call this once at the end of encryption or decryption. Signed-off-by: Dave Watson --- arch/x86/crypto/aesni-intel_asm.S | 172 ++ 1 file changed, 63 insertions(+), 109

[PATCH 07/14] x86/crypto: aesni: Split AAD hash calculation to separate macro

2018-02-12 Thread Dave Watson
AAD hash only needs to be calculated once for each scatter/gather operation. Move it to its own macro, and call it from GCM_INIT instead of INITIAL_BLOCKS. Signed-off-by: Dave Watson --- arch/x86/crypto/aesni-intel_asm.S | 71 --- 1 file changed, 43 insertions

[PATCH 00/14] x86/crypto gcmaes SSE scatter/gather support

2018-02-12 Thread Dave Watson
This patch set refactors the x86 aes/gcm SSE crypto routines to support true scatter/gather by adding gcm_enc/dec_update methods. The layout is: * First 5 patches refactor the code to use macros, so changes only need to be applied once for encode and decode. There should be no functional cha

[PATCH 09/14] x86/crypto: aesni: Move ghash_mul to GCM_COMPLETE

2018-02-12 Thread Dave Watson
Prepare to handle partial blocks between scatter/gather calls. For the last partial block, we only want to calculate the aadhash in GCM_COMPLETE, and a new partial block macro will handle both aadhash update and encrypting partial blocks between calls. Signed-off-by: Dave Watson --- arch/x86/cry

[PATCH 08/14] x86/crypto: aesni: Fill in new context data structures

2018-02-12 Thread Dave Watson
Fill in aadhash, aadlen, pblocklen, curcount with appropriate values. pblocklen, aadhash, and pblockenckey are also updated at the end of each scatter/gather operation, to be carried over to the next operation. Signed-off-by: Dave Watson --- arch/x86/crypto/aesni-intel_asm.S | 51 +++

[PATCH 11/14] x86/crypto: aesni: Introduce partial block macro

2018-02-12 Thread Dave Watson
Before this diff, multiple calls to GCM_ENC_DEC will succeed, but only if all calls are a multiple of 16 bytes. Handle partial blocks at the start of GCM_ENC_DEC, and update aadhash as appropriate. The data offset %r11 is also updated after the partial block. Signed-off-by: Dave Watson --- arc

[PATCH 12/14] x86/crypto: aesni: Add fast path for > 16 byte update

2018-02-12 Thread Dave Watson
We can fast-path any < 16 byte read if the full message is > 16 bytes, and shift over by the appropriate amount. Usually we are reading > 16 bytes, so this should be faster than the READ_PARTIAL macro introduced in b20209c91e2 for the average case. Signed-off-by: Dave Watson --- arch/x86/crypto

[PATCH 10/14] x86/crypto: aesni: Move HashKey computation from stack to gcm_context

2018-02-12 Thread Dave Watson
HashKey computation only needs to happen once per scatter/gather operation, save it between calls in gcm_context struct instead of on the stack. Since the asm no longer stores anything on the stack, we can use %rsp directly, and clean up the frame save/restore macros a bit. Hashkeys actually only

[PATCH] platform/x86: intel_turbo_max_3: Remove restriction for HWP platforms

2018-02-12 Thread Srinivas Pandruvada
On systems supporting HWP (Hardware P-States) mode, we expected to enumerate core priority via ACPI-CPPC tables. Unfortunately deployment of TURBO 3.0 didn't use this method to show core priority. So users are not able to utilize this feature in HWP mode. So remove the loading restriction of this

[PATCH 05/14] x86/crypto: aesni: Merge encode and decode to GCM_ENC_DEC macro

2018-02-12 Thread Dave Watson
Make a macro for the main encode/decode routine. Only a small handful of lines differ for enc and dec. This will also become the main scatter/gather update routine. Signed-off-by: Dave Watson --- arch/x86/crypto/aesni-intel_asm.S | 293 +++--- 1 file changed, 1

Re: [PATCH] staging: android: ion: Add requested allocation alignment

2018-02-12 Thread Laura Abbott
On 02/12/2018 11:11 AM, Alexey Skidanov wrote: On 02/12/2018 08:42 PM, Laura Abbott wrote: On 02/10/2018 02:17 AM, Alexey Skidanov wrote: Current ion defined allocation ioctl doesn't allow to specify the requested allocation alignment. CMA heap allocates buffers aligned on buffer size page ord

[PATCH 14/14] x86/crypto: aesni: Update aesni-intel_glue to use scatter/gather

2018-02-12 Thread Dave Watson
Add gcmaes_en/decrypt_sg routines, that will do scatter/gather by sg. Either src or dst may contain multiple buffers, so iterate over both at the same time if they are different. If the input is the same as the output, iterate only over one. Currently both the AAD and TAG must be linear, so copy t

[PATCH 06/14] x86/crypto: aesni: Introduce gcm_context_data

2018-02-12 Thread Dave Watson
Introduce a gcm_context_data struct that will be used to pass context data between scatter/gather update calls. It is passed as the second argument (after crypto keys), other args are renumbered. Signed-off-by: Dave Watson --- arch/x86/crypto/aesni-intel_asm.S | 115 +--

[PATCH 13/14] x86/crypto: aesni: Introduce scatter/gather asm function stubs

2018-02-12 Thread Dave Watson
The asm macros are all set up now, introduce entry points. GCM_INIT and GCM_COMPLETE have arguments supplied, so that the new scatter/gather entry points don't have to take all the arguments, and only the ones they need. Signed-off-by: Dave Watson --- arch/x86/crypto/aesni-intel_asm.S | 116 ++

[PATCH manpages] membarrier.2: New membarrier commands introduced in 4.16

2018-02-12 Thread Mathieu Desnoyers
Document the following membarrier commands introduced in 4.16: - MEMBARRIER_CMD_GLOBAL_EXPEDITED (the old enum label MEMBARRIER_CMD_SHARED is now an alias to preserve header backward compatibility), - MEMBARRIER_CMD_GLOBAL_EXPEDITED, - MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED, - MEMBARRIER_CMD_

[no subject]

2018-02-12 Thread Elizabeth M. Philips
Belove My name is Elizabeth M. Philips, i am going on a radical hysterectomy cervical cancer surgery today. I have WILLED £12,379,000.00 British pounds to you for the work of the lord. Contact my attorney with my reference number (NW/XXR/017/053K/PDQ/613X1/UK) for further info. Barr.Luis Jason.

Re: [PATCH 3/4] sched/fair: Do not migrate on wake_affine_weight if weights are equal

2018-02-12 Thread Peter Zijlstra
On Mon, Feb 12, 2018 at 08:14:49PM +0100, Mike Galbraith wrote: > On Mon, 2018-02-12 at 18:29 +0100, Peter Zijlstra wrote: > > Except for sync wakeups, where you say, if everything else is equal, > > pull, which also makes sense, because sync says 'current' promises to go > > away. > > Tasks tend

Re: [PATCH v2] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-02-12 Thread Frank Rowand
On 02/12/18 00:58, Rasmus Villemoes wrote: > On 2018-02-12 07:27, frowand.l...@gmail.com wrote: >> From: Frank Rowand >> >> Create a cache of the nodes that contain a phandle property. Use this >> cache to find the node for a given phandle value instead of scanning >> the devicetree to find the n

Re: lost connection to test machine (4)

2018-02-12 Thread Tejun Heo
On Mon, Feb 12, 2018 at 09:03:25AM -0800, Tejun Heo wrote: > Hello, Daniel. > > On Mon, Feb 12, 2018 at 06:00:13PM +0100, Daniel Borkmann wrote: > > [ +Dennis, +Tejun ] > > > > Looks like we're stuck in percpu allocator with key/value size of 4 bytes > > each and large number of entries (max_entr

v4.13 on nokia n900: oops during tethering

2018-02-12 Thread Pavel Machek
Hi! During tethering, I got oops in ssi_stop_tx(), followed by failure of GPRS. I used GPRS tethering a lot with some older kernel, and it was stable for hours. It seems v4.12 has the same problem. In v4.15 usb networking does not work at all, so I can't test... v4.10 seems to have similar proble

Re: [PATCH 1/3] dt-bindings: mfd: axp20x: Document backup battery charging property

2018-02-12 Thread Pavel Machek
Hi! > This adds documentation for the "backup" property of the axp20x driver, > that controls the charging mechanism for the backup battery on axp20x. > > Signed-off-by: Paul Kocialkowski > > diff --git a/Documentation/devicetree/bindings/mfd/axp20x.txt > b/Documentation/devicetree/bindings/mf

Re: [PATCH 4/4] sched/fair: Do not migrate due to a sync wakeup on exit

2018-02-12 Thread Mel Gorman
On Mon, Feb 12, 2018 at 09:01:27PM +0100, Andreas Mohr wrote: > Hello, > > On Mon, Feb 12, 2018 at 02:58:57PM +, Mel Gorman wrote: > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > index 28c8d9c91955..50442697b455 100644 > > --- a/kernel/sched/fair.c > > +++ b/kernel/sched/fair.c

Re: [PATCH 4/4] sched/fair: Do not migrate due to a sync wakeup on exit

2018-02-12 Thread Andreas Mohr
Hello, On Mon, Feb 12, 2018 at 02:58:57PM +, Mel Gorman wrote: > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index 28c8d9c91955..50442697b455 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -5710,8 +5710,14 @@ wake_affine_idle(int this_cpu, int prev_cpu, int sy

[PATCH for-4.17] percpu: add Dennis Zhou as a percpu co-maintainer

2018-02-12 Thread Tejun Heo
Dennis rewrote the percpu area allocator some months ago, understands most of the code base and has been responsive with the bug reports and questions. Let's add him as a co-maintainer. Signed-off-by: Tejun Heo --- Imma apply this to percpu/for-4.17. If there's any objection, please let me know

[PATCH] x86/entry/64: Remove unused icebp macro

2018-02-12 Thread Borislav Petkov
On Mon, Feb 12, 2018 at 02:18:55AM -0800, tip-bot for Dominik Brodowski wrote: > Commit-ID: 5a10e729bc0aa9420a23a70b169eadd229c27bc1 > Gitweb: > https://git.kernel.org/tip/5a10e729bc0aa9420a23a70b169eadd229c27bc1 > Author: Dominik Brodowski > AuthorDate: Sun, 11 Feb 2018 11:49:48 +0100 >

[no subject]

2018-02-12 Thread Elizabeth M. Philips
Belove My name is Elizabeth M. Philips, i am going on a radical hysterectomy cervical cancer surgery today. I have WILLED £12,379,000.00 British pounds to you for the work of the lord. Contact my attorney with my reference number (NW/XXR/017/053K/PDQ/613X1/UK) for further info. Barr.Luis Jason.

[PATCH v1 1/1] usb: cdc_acm: prevent race at write to acm while system resumes

2018-02-12 Thread sathyanarayan . kuppuswamy
From: Dominik Bozek ACM driver may accept data to transmit while system is not fully resumed. In this case ACM driver buffers data and prepare URBs on usb anchor list. There is a little chance that two tasks put a char and initiate acm_tty_flush_chars(). In such a case, driver will put one URB tw

[PATCH] usb: dwc2: Print error if unable to set DMA coherent mask

2018-02-12 Thread Stefan Wahren
We better print an error in case probing of dwc2 fails on setting the DMA coherent mask. Signed-off-by: Stefan Wahren --- drivers/usb/dwc2/platform.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c index 4703478..4d

Re: [PATCH 3/4] sched/fair: Do not migrate on wake_affine_weight if weights are equal

2018-02-12 Thread Mel Gorman
On Mon, Feb 12, 2018 at 08:14:49PM +0100, Mike Galbraith wrote: > On Mon, 2018-02-12 at 18:29 +0100, Peter Zijlstra wrote: > > On Mon, Feb 12, 2018 at 02:58:56PM +, Mel Gorman wrote: > > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > > index c1091cb023c4..28c8d9c91955 100644 > > >

Re: [PATCH] staging: android: ion: Add requested allocation alignment

2018-02-12 Thread Alexey Skidanov
On 02/12/2018 09:52 PM, Laura Abbott wrote: > On 02/12/2018 11:11 AM, Alexey Skidanov wrote: >> >> On 02/12/2018 08:42 PM, Laura Abbott wrote: >>> On 02/10/2018 02:17 AM, Alexey Skidanov wrote: Current ion defined allocation ioctl doesn't allow to specify the requested allocation a

Re: [PATCH V2 4/4] nvme: lightnvm: add late setup of block size and metadata

2018-02-12 Thread Javier Gonzalez
> On 9 Feb 2018, at 01.27, Matias Bjørling wrote: > > The nvme driver sets up the size of the nvme namespace in two steps. > First it initializes the device with standard logical block and > metadata sizes, and then sets the correct logical block and metadata > size. Due to the OCSSD 2.0 specifi

Re: [PATCH 2/4] powerpc/vas: Fix cleanup when VAS is not configured

2018-02-12 Thread Sukadev Bhattiprolu
Michael Ellerman [m...@ellerman.id.au] wrote: > Sukadev Bhattiprolu writes: > > > When VAS is not configured in the system, make sure to remove > > the VAS debugfs directory and unregister the platform driver. > > > > Signed-off-by: Sukadev Bhattiprolu > ... > > diff --git a/arch/powerpc/platfor

Re: [PATCH 2/3] nvme: fix the deadlock in nvme_update_formats

2018-02-12 Thread Keith Busch
Hi Sagi, This one is fixing a deadlock in namespace detach. It is still not a widely supported operation, but becoming more common. While the other two patches in this series look good for 4.17, I would really recommend this one for 4.16-rc, and add a Cc to linux-stable for 4.15 too. Sound okay?

[PATCH 1/3] perf tools: Freeing allocated memory

2018-02-12 Thread Mathieu Poirier
This patch frees all the memory allocated in function cs_etm__alloc_queue(). Signed-off-by: Mathieu Poirier --- tools/perf/util/cs-etm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c index b9f0a53dfa65..f2c98774e665 100644 --- a/too

[PATCH 3/3] perf tools: Fixing uninitialised variable

2018-02-12 Thread Mathieu Poirier
When working natively on arm64 the compiler gets pesky and complains that variable 'i' is uninitialised, something that breaks the compilation. Here no further checks are needed since variable 'found_spe' can only be true if variable 'i' has been initialised as part of the for loop. Signed-off-by

[PATCH 2/3] perf util: Use target->per_thread and target->system_wide flags

2018-02-12 Thread Mathieu Poirier
From: Jin Yao Mathieu Poirier reports issue in commit ("73c0ca1eee3d perf thread_map: Enumerate all threads from /proc") that it has negative impact on 'perf record --per-thread'. It has the effect of creating a kernel event for each thread in the system for 'perf record --per-thread'. Mathieu P

Re: [PATCH v2] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-02-12 Thread Frank Rowand
On 02/12/18 02:51, Chintan Pandya wrote: > > > On 2/12/2018 11:57 AM, frowand.l...@gmail.com wrote: >> From: Frank Rowand >> >> Create a cache of the nodes that contain a phandle property.  Use this >> cache to find the node for a given phandle value instead of scanning >> the devicetree to find

[PATCH 0/3] perf tools: Miscellaneous fix from the previous cycle

2018-02-12 Thread Mathieu Poirier
Good day Arnaldo, Here are 3 patches that were sent late in the v4.15 cycle, too late for you to pick up for the v4.16 cycle. I don't know if they are on a backlog of yours somewhere or if you've made a mental note of them - if so kindly disregard this set. Otherwise, here they are again, rebase

Re: [PATCH] staging: android: ion: Restrict cache maintenance to dma mapped memory

2018-02-12 Thread Laura Abbott
On 02/09/2018 10:21 PM, Liam Mark wrote: The ION begin_cpu_access and end_cpu_access functions use the dma_sync_sg_for_cpu and dma_sync_sg_for_device APIs to perform cache maintenance. Currently it is possible to apply cache maintenance, via the begin_cpu_access and end_cpu_access APIs, to ION b

Re: [PATCH] staging: android: ion: Restrict cache maintenance to dma mapped memory

2018-02-12 Thread Laura Abbott
On 02/09/2018 10:21 PM, Liam Mark wrote: The ION begin_cpu_access and end_cpu_access functions use the dma_sync_sg_for_cpu and dma_sync_sg_for_device APIs to perform cache maintenance. Currently it is possible to apply cache maintenance, via the begin_cpu_access and end_cpu_access APIs, to ION b

Re: [PATCH V2] auxdisplay: use correct string length

2018-02-12 Thread Miguel Ojeda
On Mon, Feb 12, 2018 at 6:11 PM, Willy Tarreau wrote: > On Mon, Feb 12, 2018 at 01:53:57PM +0100, Miguel Ojeda wrote: >> > diff --git a/drivers/auxdisplay/panel.c b/drivers/auxdisplay/panel.c >> > index ea7869c..d288900 100644 >> > --- a/drivers/auxdisplay/panel.c >> > +++ b/drivers/auxdisplay/pan

Re: [PATCH] staging: android: ion: Add requested allocation alignment

2018-02-12 Thread Laura Abbott
On 02/12/2018 12:22 PM, Alexey Skidanov wrote: On 02/12/2018 09:52 PM, Laura Abbott wrote: On 02/12/2018 11:11 AM, Alexey Skidanov wrote: On 02/12/2018 08:42 PM, Laura Abbott wrote: On 02/10/2018 02:17 AM, Alexey Skidanov wrote: Current ion defined allocation ioctl doesn't allow to specify

Re: [PATCH v2 4/4] of: improve reporting invalid overlay target path

2018-02-12 Thread Frank Rowand
On 02/12/18 01:00, Geert Uytterhoeven wrote: > Hi Frank, > > On Mon, Feb 12, 2018 at 9:51 AM, wrote: >> From: Frank Rowand >> >> Errors while developing the patch to create of_overlay_fdt_apply() >> exposed inadequate error messages to debug problems when overlay >> devicetree fragment nodes co

Re: [PATCH] clk: don't call __of_clk_get_by_name() unnecessarily from clk_get()

2018-02-12 Thread David Lechner
On 02/12/2018 08:24 AM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski The way this function is implemented caused some confusion when converting the TI DaVinci platform to using the common clock framework. Current kernel supports booting DaVinci boards both in device tree as well as leg

pata-macio WARNING at dmam_alloc_coherent+0xec/0x110

2018-02-12 Thread Meelis Roos
I tested 4.16-rc1 on my PowerMac G4 and got the following warning from macio pata driver. Since pata-macio has no recent changes, dma-mapping.h changes seem to be related. [0.228408] MacIO PCI driver attached to Keylargo chipset [1.283931] pata-macio 0.0001f000:ata-4: Activating pata-mac

Re: [PATCH for-4.17] percpu: add Dennis Zhou as a percpu co-maintainer

2018-02-12 Thread Christopher Lameter
Acked-by: Christopher Lameter

[PATCH v1 0/2] arm: npcm: add low-level debug support for NPCM7XX

2018-02-12 Thread Brendan Higgins
Adds low-level debug support for Nuvoton's NPCM7XX architecture. Change has been tested on Nuvoton's NPCM750 EVB.

[PATCH v1 1/2] arm: npcm: add low-level debug support for NPCM7XX

2018-02-12 Thread Brendan Higgins
Enable low-level debug support for Nuvoton NPCM7XX family by adding the debug port definitions for the SoC. Signed-off-by: Brendan Higgins --- arch/arm/Kconfig.debug | 11 +++ arch/arm/include/debug/npcm7xx.S | 30 ++ 2 files changed, 41 insertions(+

[PATCH v1 2/2] MAINTAINERS: Add low-level debug files to Nuvoton NPCM section

2018-02-12 Thread Brendan Higgins
Adds low-level debug files for NPCM7XX architecture to the Nuvoton NPCM architecture section. Signed-off-by: Brendan Higgins --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2fa95aba0f7f..4eaa66bc0562 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @

Re: [PATCH 2/2] i2c: piix4: Use usleep_range()

2018-02-12 Thread Guenter Roeck
Hi Jean, On Mon, Feb 12, 2018 at 11:53:36AM +0100, Jean Delvare wrote: > Hi Guenter, > > On Sat, 30 Dec 2017 08:50:58 -0800, Guenter Roeck wrote: > > The piix4 i2c driver is extremely slow. Replacing msleep() > > with usleep_range() increases its speed substantially. > > > > Signed-off-by: Guent

Re: [PATCH v13 3/4] fw_cfg: write vmcoreinfo details

2018-02-12 Thread Michael S. Tsirkin
On Mon, Feb 12, 2018 at 11:04:49AM +0100, Marc-Andre Lureau wrote: > Hi > > On Mon, Feb 12, 2018 at 4:43 AM, Michael S. Tsirkin wrote: > > On Wed, Feb 07, 2018 at 02:35:24AM +0100, Marc-André Lureau wrote: > >> If the "etc/vmcoreinfo" fw_cfg file is present and we are not running > >> the kdump k

linux-next: unnecessary merge in the v4l-dvb tree

2018-02-12 Thread Stephen Rothwell
Hi Mauro, By merging the v4.16-rc1 tag into the v4l-dvb tree, you have created an unnecessary merge commit. The v4l-dvb tree was already contained in v4.16-rc1, so a fast forward merge was possible, but explicitly merging a signed tag will give you a commit instead. In this case, you could have

Re: [PATCH] clk: don't call __of_clk_get_by_name() unnecessarily from clk_get()

2018-02-12 Thread Russell King - ARM Linux
On Mon, Feb 12, 2018 at 02:51:57PM -0600, David Lechner wrote: > On 02/12/2018 08:24 AM, Bartosz Golaszewski wrote: > >From: Bartosz Golaszewski > > > >The way this function is implemented caused some confusion when > >converting the TI DaVinci platform to using the common clock framework. > > > >

Re: [PATCH] perf: Add support for creating offline events

2018-02-12 Thread Jiri Olsa
On Mon, Feb 12, 2018 at 09:42:05AM -0800, Raghavendra Rao Ananta wrote: > Hi Jiri, > > Thank you for the response. > > Does perf tool has its own check to see if the CPU was offline during the > lifetime of an event? If so, it might ignore these type of events. nope, we don't check on that > >

[PATCH] rtc: ac100: Fix ac100 determine rate bug

2018-02-12 Thread Philipp Rossak
This patch fixes a bug, that prevents the Allwinner A83T and the A80 from a successful boot. You can find the shortend trace below: Unable to handle kernel NULL pointer dereference at virtual address pgd = (ptrval) [] *pgd= Internal error: Oops: 5 [#1] SMP ARM Modules link

[PATCH 0/2] Two lustre bug fixes

2018-02-12 Thread NeilBrown
These patches fix 2 issues I found during testing. Together they cause lots of path-name-lookup syscalls to return -ENOMEM. The first bug fixes triggers and error The second bug fixes causes that error to be reported as -ENOMEM. Thanks, NeilBrown --- NeilBrown (2): staging: lustre: fix in

[PATCH 1/2] staging: lustre: fix inverted test on strcmp

2018-02-12 Thread NeilBrown
This code tests various fields to see if they are different, except for one where there test is if they are the same. This is clearly wrong for a function that is tesding for equality. So change "!strcmp()" which I always find hard to read, to "strcmp() != 0" which obviously means that the strings

[PATCH 2/2] staging: lustre: honor error code from ll_iget().

2018-02-12 Thread NeilBrown
Commit 020ecc6f3229 ("staging: lustre: llite: Remove IS_ERR tests") changed ll_prep_inode to assume any error from ll_iget() meant -ENOMEM because at that time it only returned NULL for errors. Commit c3397e7e677b ("staging: lustre: llite: add error handler in inode prepare phase") changed ll_iget(

Re: linux-next: unnecessary merge in the v4l-dvb tree

2018-02-12 Thread Linus Torvalds
On Mon, Feb 12, 2018 at 1:00 PM, Stephen Rothwell wrote: > > Linus, this happens a bit after the merge window, so I am wondering > about the rational of not doing a fast forward merge when merging a > signed tag (I forget the reasoning). The reasoning is to avoid losing the signature from the tag

Re: [PATCH] clk: don't call __of_clk_get_by_name() unnecessarily from clk_get()

2018-02-12 Thread David Lechner
On 02/12/2018 03:00 PM, Russell King - ARM Linux wrote: On Mon, Feb 12, 2018 at 02:51:57PM -0600, David Lechner wrote: On 02/12/2018 08:24 AM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski The way this function is implemented caused some confusion when converting the TI DaVinci platfor

Re: [PATCH RFC] vfio/mdev: delay uevent after initialization complete

2018-02-12 Thread Alex Williamson
On Fri, 9 Feb 2018 11:27:16 +0100 Cornelia Huck wrote: > The registration code first registers the mdev device, and then > proceeds to populate sysfs. An userspace application that listens > for the ADD uevent is therefore likely to look for sysfs entries > that have not yet been created. > > T

Re: [PATCH] perf: Add support for creating offline events

2018-02-12 Thread Jiri Olsa
On Mon, Feb 12, 2018 at 10:04:42PM +0100, Jiri Olsa wrote: > On Mon, Feb 12, 2018 at 09:42:05AM -0800, Raghavendra Rao Ananta wrote: > > Hi Jiri, > > > > Thank you for the response. > > > > Does perf tool has its own check to see if the CPU was offline during the > > lifetime of an event? If so,

Re: [PATCH] mtd: nand: MTD_NAND_MARVELL should depend on HAS_DMA

2018-02-12 Thread Boris Brezillon
On Tue, 30 Jan 2018 14:23:21 +0100 Geert Uytterhoeven wrote: > If NO_DMA=y: > > ERROR: "bad_dma_ops" [drivers/mtd/nand/marvell_nand.ko] undefined! > > Add a dependency on HAS_DMA to fix this. Applied. Thanks, Boris > > Fixes: 02f26ecf8c772751 ("mtd: nand: add reworked Marvell NAND cont

[PATCH 00/19] RESEND staging: lustre: use standard wait_event macros

2018-02-12 Thread NeilBrown
Hi, this is a resend of patch series that I sent a little over a month ago. Since then I've recieved Reviewed-By:from James Simmons (thanks) and confirmation that it passes his testing. I cannot quite say that all tests pass for me with these patch, but the tests produce the same results both

[PATCH 01/19] sched/wait: add wait_event_idle() functions.

2018-02-12 Thread NeilBrown
The new TASK_IDLE state (TASK_UNINTERRUPTIBLE | __TASK_NOLOAD) is not much used. One way to make it easier to use is to add wait_event*() family functions that make use of it. This patch adds: wait_event_idle() wait_event_idle_timeout() wait_event_idle_exclusive() wait_event_idle_exclusive

[PATCH 02/19] staging: lustre: discard SVC_SIGNAL and related functions

2018-02-12 Thread NeilBrown
This flag is never set, so remove checks and remove the flag. Reviewed-by: James Simmons Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/include/lustre_net.h |6 -- drivers/staging/lustre/lustre/ptlrpc/sec_gc.c |4 +--- 2 files changed, 1 insertion(+), 9 deletions(-)

[PATCH 05/19] staging: lustre: use wait_event_idle_timeout() where appropriate.

2018-02-12 Thread NeilBrown
When the lwi arg has a timeout, but no timeout callback function, l_wait_event() acts much the same as wait_event_idle_timeout() - the wait is not interruptible and simply waits for the event or the timeouts. The most noticable difference is that the return value is -ETIMEDOUT or 0, rather than 0

[PATCH 07/19] staging: lustre: simplify l_wait_event when intr handler but no timeout.

2018-02-12 Thread NeilBrown
If l_wait_event() is given a function to be called on a signal, but no timeout or timeout handler, then the intr function is simply called at the end if the wait was aborted by a signal. So a simpler way to write the code (in the one place this case is used) it to open-code the body of the function

[PATCH 03/19] staging: lustre: replace simple cases of l_wait_event() with wait_event().

2018-02-12 Thread NeilBrown
When the lwi arg is full of zeros, l_wait_event() behaves almost identically to the standard wait_event_idle() interface, so use that instead. l_wait_event() uses TASK_INTERRUPTIBLE, but blocks all signals. wait_event_idle() uses the new TASK_IDLE and so avoids adding to the load average without n

[PATCH 04/19] staging: lustre: discard cfs_time_seconds()

2018-02-12 Thread NeilBrown
cfs_time_seconds() converts a number of seconds to the matching number of jiffies. The standard way to do this in Linux is "* HZ". So discard cfs_time_seconds() and use "* HZ" instead. Reviewed-by: James Simmons Signed-off-by: NeilBrown --- .../lustre/include/linux/libcfs/libcfs_debug.h |

[PATCH 06/19] staging: lustre: introduce and use l_wait_event_abortable()

2018-02-12 Thread NeilBrown
lustre sometimes wants to wait for an event, but abort if one of a specific list of signals arrives. This is a little bit like wait_event_killable(), except that the signals are identified a different way. So introduce l_wait_event_abortable() which provides this functionality. Having separate fu

[PATCH 08/19] staging: lustre: simplify waiting in ldlm_completion_ast()

2018-02-12 Thread NeilBrown
If a signal-callback (lwi_on_signal) is set without lwi_allow_intr, as is the case in ldlm_completion_ast(), the behavior depends on the timeout set. If a timeout is set, then signals are ignored. If the timeout is reached, the timeout handler is called. If the timeout handler return 0, which ld

Re: [PATCH] staging: android: ion: Initialize dma_address of new sg list

2018-02-12 Thread Liam Mark
On Mon, 12 Feb 2018, Dan Carpenter wrote: > On Fri, Feb 09, 2018 at 10:16:56PM -0800, Liam Mark wrote: > > Fix the dup_sg_table function to initialize the dma_address of the new > > sg list entries instead of the source dma_address entries. > > > > Fixes: 17fd283f3870 ("staging: android: ion: Du

Re: [PATCH 2/3] Documentation: bindings: add usb3-host-disable and usb3-host-port for Rockchip USB Type-C PHY

2018-02-12 Thread Brian Norris
Hi, On Mon, Feb 12, 2018 at 10:43:41AM -0600, Rob Herring wrote: > On Thu, Feb 8, 2018 at 3:23 PM, Enric Balletbo Serra > wrote: > > 2018-02-08 18:52 GMT+01:00 Rob Herring : > >> On Thu, Feb 8, 2018 at 9:20 AM, Enric Balletbo i Serra > >> wrote: > >>> --- a/Documentation/devicetree/bindings/phy/

Re: linux-next: unnecessary merge in the v4l-dvb tree

2018-02-12 Thread Mauro Carvalho Chehab
Hi Stephen, Em Tue, 13 Feb 2018 08:00:36 +1100 Stephen Rothwell escreveu: > Hi Mauro, > > By merging the v4.16-rc1 tag into the v4l-dvb tree, you have created an > unnecessary merge commit. The v4l-dvb tree was already contained in > v4.16-rc1, so a fast forward merge was possible, but explici

[PATCH 1/5] staging: lustre: llite: handle DCACHE_PAR_LOOKUP in ll_dcompare

2018-02-12 Thread NeilBrown
ll_dcompare is used in two slightly different contexts. It is called (from __d_lookup, __d_lookup_rcu, and d_exact_alias) to compare a name against a dentry that is already in the dcache. It is also called (from d_alloc_parallel) to compare a name against a dentry that is not in the dcache yet, but

[PATCH 0/5] RESEND dcache/namei fixes for lustre

2018-02-12 Thread NeilBrown
Hi, this is a resend of some patches I send in August 2017. They fix a couple of little bugs in the namei-related code and clean up other bits. Only change is that one patch was dropped as other dcache changes made it irrelevant. There will be compiler warnings about a 'const' until a patch

[PATCH 2/5] staging: lustre: llite: use d_splice_alias for directories.

2018-02-12 Thread NeilBrown
In the Linux dcache a directory only ever has one dentry, so d_splice_alias() can be used by ll_splice_alias() for directories. It will find the one dentry whether it is DCACHE_DISCONNECTED or IS_ROOT() or d_lustre_invalid(). Separating out the directories from non-directories will allow us to simp

[PATCH 3/5] staging: lustre: llite: remove directory-specific code from ll_find_alias()

2018-02-12 Thread NeilBrown
Now that ll_find_alias() is never called for directories, we can remove code that only applies to directories. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/llite/namei.c | 26 -- 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/drivers/stagin

[PATCH 5/5] staging: lustre: llite: refine ll_find_alias based on d_exact_alias

2018-02-12 Thread NeilBrown
The task of ll_find_alias() is now very similar to d_exact_alias(). We cannot use that function directly, but we can copy much of the structure so that the similarities and differences are more obvious. Examining d_exact_alias() shows that the d_lock spinlock does not need to be held in ll_find_ali

Re: [PATCH v4 0/3] mtd: nand: vf610: fix error handling in vf610_nfc_probe()

2018-02-12 Thread Boris Brezillon
On Sat, 10 Feb 2018 01:28:33 +0300 Alexey Khoroshilov wrote: > vf610_nfc_probe() misses error handling of mtd_device_register() > and contains unneeded of_node_put() on error path. Applied the whole series. Thanks, Boris > > v2: Add nand_cleanup() to undone nand_scan_tail() as Boris Brezillo

[PATCH] Fix a misspelling in kernel/cpu.c

2018-02-12 Thread Kangmin Park
A trivial patch to fix a misspelling in kernel/cpu.c Fix 'synchronsization' to 'synchronization' in comment Signed-off-by: Kangmin Park --- kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 53f7dc6..9a1ee53 100644 --- a/kernel/cpu.

[PATCH 4/5] staging: lluste: llite: simplify ll_find_alias()

2018-02-12 Thread NeilBrown
Now that ll_find_alias is only searching for one type of dentry, we can return as soon as we find it. This allows substantial simplification, and brings the bonus that we don't need to take the d_lock again just to increment the ref-count. We can increment it immediately that the dentry is found.

Re: [PATCH 2/2] i2c: piix4: Use usleep_range()

2018-02-12 Thread Joe Perches
On Mon, 2018-02-12 at 12:59 -0800, Guenter Roeck wrote: > On Mon, Feb 12, 2018 at 11:53:36AM +0100, Jean Delvare wrote: > > On Sat, 30 Dec 2017 08:50:58 -0800, Guenter Roeck wrote: > > > The piix4 i2c driver is extremely slow. Replacing msleep() > > > with usleep_range() increases its speed substan

Re: [lustre-devel] [PATCH 06/19] staging: lustre: introduce and use l_wait_event_abortable()

2018-02-12 Thread Patrick Farrell
It's worth noting that the change from -EINTR to -ERESTARTSYS will modify the behavior of userspace slightly. Specifically, when a signal handler is setup with retry set (SA_RESTART flag set), the syscall will be restarted rather than aborted. This should be fine. It may eventually shake out

Re: linux-next: unnecessary merge in the v4l-dvb tree

2018-02-12 Thread Mauro Carvalho Chehab
Em Mon, 12 Feb 2018 13:15:04 -0800 Linus Torvalds escreveu: > On Mon, Feb 12, 2018 at 1:00 PM, Stephen Rothwell > wrote: > > > > Linus, this happens a bit after the merge window, so I am wondering > > about the rational of not doing a fast forward merge when merging a > > signed tag (I forget t

Re: linux-next: unnecessary merge in the v4l-dvb tree

2018-02-12 Thread Linus Torvalds
On Mon, Feb 12, 2018 at 1:15 PM, Linus Torvalds wrote: > > The reasoning is to avoid losing the signature from the tag (when > merging a signed tag, the signature gets inserted into the merge > commit itself - use "git log --show-signature" to see them). I think the commit that actually introduce

Re: linux-next: unnecessary merge in the v4l-dvb tree

2018-02-12 Thread Junio C Hamano
Linus Torvalds writes: > On Mon, Feb 12, 2018 at 1:00 PM, Stephen Rothwell > wrote: > > The problem, of course, is that since git is distributed, git doesn't > know who is "upstream" and who is "downstream", so there's no > _technical_ difference between merging a development tree, and a > deve

Re: [PATCH] staging: android: ion: Add requested allocation alignment

2018-02-12 Thread Alexey Skidanov
On 02/12/2018 10:46 PM, Laura Abbott wrote: > On 02/12/2018 12:22 PM, Alexey Skidanov wrote: >> >> >> On 02/12/2018 09:52 PM, Laura Abbott wrote: >>> On 02/12/2018 11:11 AM, Alexey Skidanov wrote: On 02/12/2018 08:42 PM, Laura Abbott wrote: > On 02/10/2018 02:17 AM, Alexey Skidanov

Re: linux-next: unnecessary merge in the v4l-dvb tree

2018-02-12 Thread Junio C Hamano
Linus Torvalds writes: > Maybe we could just tell people to have something like > >git config --global alias.update pull --ff-only > > and use that for "try to update to upstream". I guess our mails crossed. I admit that I indeed wondered why you were not giving your usual "downstream s

Re: [PATCH 2/3] clk: exynos5433: Allow audio subsystem clock rate propagation

2018-02-12 Thread Chanwoo Choi
Hi Sylwester, On 2018년 02월 12일 20:45, Sylwester Nawrocki wrote: > Hi Chanwoo, > > On 02/09/2018 08:36 AM, Chanwoo Choi wrote: >> On 2018년 02월 08일 00:18, Sylwester Nawrocki wrote: >>> On 02/06/2018 05:06 AM, Chanwoo Choi wrote: > drivers/clk/samsung/clk-exynos5433.c | 22 +++--

Re: [PATCH v2] clk: exynos5433: Extend list of available AUD_PLL output frequencies

2018-02-12 Thread Chanwoo Choi
Hi, On 2018년 02월 13일 00:52, Sylwester Nawrocki wrote: > Add one more entry to the exynos5433_aud_pll_rates table, this allows > to support audio sample rates: 48000, 96000, 192000 Hz with minimum > error. The M, P, S, K values re confirmed by the HW team. > > Signed-off-by: Sylwester Nawrocki >

[PATCH v2] libnvdimm: re-enable deep flush for pmem devices

2018-02-12 Thread Dave Jiang
Re-enable deep flush so that users always have a way to be sure that a write does make it all the way out to the NVDIMM. The PMEM driver writes always make it "all the way to the NVDIMM", and it relies on the ADR mechanism to flush the write buffers on power failure. Deep flush is there to explicit

Re: [PATCH v3 1/3] extcon: axp288: Constify the axp288_pwr_up_down_info array

2018-02-12 Thread Chanwoo Choi
On 2018년 02월 13일 04:46, Hans de Goede wrote: > Make the axp288_pwr_up_down_info array const char * const, this leads > to the following section size changes: > > .text 0x674 -> 0x664 > .data 0x148 -> 0x0f0 > .rodata 0x0b4 -> 0x114 > > Signed-off-by: Hans de Goede > --- > drivers/extco

Re: [PATCH v3 3/3] extcon: int3496: process id-pin first so that we start with the right status

2018-02-12 Thread Chanwoo Choi
On 2018년 02월 13일 04:46, Hans de Goede wrote: > Some other drivers may be waiting for our extcon to show-up (exiting their > probe methods with -EPROBE_DEFER until we show up). > > These drivers will typically get the cable state directly after getting > the extcon, this commit changes the int3496

Re: [PATCH v3 2/3] Revert "extcon: axp288: Redo charger type detection a couple of seconds after probe()"

2018-02-12 Thread Chanwoo Choi
On 2018년 02월 13일 04:46, Hans de Goede wrote: > Redoing the charger type detection to give the usb-role-switch code time > to properly set the role-switch is no good for mainline, since the > usb-role-switch code is not yet in mainline (my bad, sorry). > > Also once we've that code there are better

Re: linux-next: unnecessary merge in the v4l-dvb tree

2018-02-12 Thread Linus Torvalds
On Mon, Feb 12, 2018 at 1:44 PM, Junio C Hamano wrote: > > But I wonder why "update to upstream" is merging a signed tag in the > first place. Wouldn't downstream's "try to keep up with" pull be > grabbing from branch tips, not tags? I'm actually encouraging maintainers to *not* start their work

[PATCH v6 00/17] ASoC: fsl_ssi: Clean up - program flow level

2018-02-12 Thread Nicolin Chen
[ The v6 just rebased the series and fixed the comments in probe(). There is no need to re-test it except the uncovered tests listed at the end of this cover letter. Timur, these patches have been in the list for quite a long time and there has been no review for nearly a month since las

[PATCH v6 09/17] ASoC: fsl_ssi: Clean up fsl_ssi_setup_regvals()

2018-02-12 Thread Nicolin Chen
This patch cleans fsl_ssi_setup_regvals() by following changes: 1) Moving DBG bits to the first lines. 2) Setting SSIE, RE/TE as default and cleaning it for AC97 Signed-off-by: Nicolin Chen Tested-by: Caleb Crome Tested-by: Maciej S. Szmigiero Reviewed-by: Maciej S. Szmigiero --- sound/soc/fs

[PATCH v6 13/17] ASoC: fsl_ssi: Setup AC97 in fsl_ssi_hw_init()

2018-02-12 Thread Nicolin Chen
AC97 configures most of registers earlier to start a communication with CODECs in order to successfully initialize CODEC. Currently, _fsl_ssi_set_dai_fmt() and fsl_ssi_setup_ac97() are called to get all SSI registers properly set. Since now the driver has a fsl_ssi_hw_init() to handle all register

<    3   4   5   6   7   8   9   10   11   >