[PATCH v2 05/13] pinctrl: Add Microsemi Ocelot SoC driver

2017-12-08 Thread Alexandre Belloni
The Microsemi Ocelot SoC has a few pins that can be used as GPIOs or take multiple other functions. Add a driver for the pinmuxing and the GPIOs. There is currently no support for interrupts. Cc: Linus Walleij Cc: linux-g...@vger.kernel.org Signed-off-by: Alexandre Belloni --- drivers/pinctrl/

[PATCH v2 10/13] MIPS: mscc: add ocelot dtsi

2017-12-08 Thread Alexandre Belloni
Add a device tree include file for the Microsemi Ocelot SoC. Signed-off-by: Alexandre Belloni --- arch/mips/boot/dts/Makefile | 1 + arch/mips/boot/dts/mscc/Makefile| 4 ++ arch/mips/boot/dts/mscc/ocelot.dtsi | 115 3 files changed, 120 insert

[PATCH v2 06/13] dt-bindings: mips: Add bindings for Microsemi SoCs

2017-12-08 Thread Alexandre Belloni
Add bindings for Microsemi SoCs. Currently only Ocelot is supported. Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Alexandre Belloni --- Documentation/devicetree/bindings/mips/mscc.txt | 46 + 1 file changed, 46 insertions(+) create mode 100644 Documenta

[PATCH 2/5] Expand INIT_TASK() in init/init_task.c and remove

2017-12-08 Thread David Howells
It's no longer necessary to have an INIT_TASK() macro, and this can be expanded into the one place it is now used and removed. Signed-off-by: David Howells --- include/linux/init_task.h | 87 ++--- init/init_task.c | 85 ++

[PATCH v2 01/13] dt-bindings: Add vendor prefix for Microsemi Corporation

2017-12-08 Thread Alexandre Belloni
Microsemi Corporation provides semiconductor and system solutions for aerospace & defense, communications, data center and industrial markets. Signed-off-by: Alexandre Belloni Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+)

[PATCH 3/5] Expand various INIT_* macros and remove

2017-12-08 Thread David Howells
Expand various INIT_* macros into the single places they're used in init/init_task.c and remove them. Signed-off-by: David Howells --- include/linux/ftrace.h| 12 - include/linux/init_task.h | 112 - include/linux/irqflags.h |2 - incl

Re: [PATCH v5 net-next] net/tcp: trace all TCP/IP state transition with tcp_set_state tracepoint

2017-12-08 Thread Yafang Shao
2017-12-08 23:42 GMT+08:00 David Miller : > From: Yafang Shao > Date: Fri, 8 Dec 2017 11:40:23 +0800 > >> It will looks like these, >> >> if (sk->sk_protocol == IPPROTO_TCP) >> __tcp_set_state(newsk, TCP_SYN_RECV); >> else >> newsk->sk_state = TCP_SYN_RECV; >> >> >> if

[PATCH v2 02/13] dt-bindings: interrupt-controller: Add binding for the Microsemi Ocelot interrupt controller

2017-12-08 Thread Alexandre Belloni
Add the Device Tree binding documentation for the Microsemi Ocelot interrupt controller that is part of the ICPU. It is connected directly to the MIPS core interrupt controller. Cc: Thomas Gleixner Cc: Jason Cooper Signed-off-by: Alexandre Belloni Acked-by: Rob Herring --- .../interrupt-contr

[PATCH 4/5] Expand the INIT_SIGNALS and INIT_SIGHAND macros and remove

2017-12-08 Thread David Howells
There doesn't seem to be any need to have the INIT_SIGNALS and INIT_SIGHAND macros, so expand them in their single places of use and remove them. Signed-off-by: David Howells --- include/linux/init_task.h | 43 --- init/init_task.c | 30 +

[PATCH 5/5] Expand INIT_STRUCT_PID and remove

2017-12-08 Thread David Howells
Expand INIT_STRUCT_PID in the single place that uses it and then remove it. There doesn't seem any point in the macro. Signed-off-by: David Howells --- include/linux/init_task.h | 15 --- kernel/pid.c | 14 +- 2 files changed, 13 insertions(+), 16 deleti

[PATCH 1/5] Construct init thread stack in the linker script rather than by union

2017-12-08 Thread David Howells
Construct the init thread stack in the linker script rather than doing it by means of a union so that ia64's init_task.c can be got rid of. The following symbols are then made available from INIT_TASK_DATA() linker script macro: init_thread_union init_stack INIT_TASK_DATA() also

[PATCH 0/5] Consolidate init_task handling and expand macros

2017-12-08 Thread David Howells
It doesn't seem useful to have the init_task in a header file rather than in a normal source file. We could consolidate init_task handling instead and expand out various macros. Here's a series of patches that consolidate init_task handling: (1) Alter the INIT_TASK_DATA linker script macro to

[PATCH v2 04/13] dt-bindings: pinctrl: Add bindings for Microsemi Ocelot

2017-12-08 Thread Alexandre Belloni
Add the documentation for the Microsemi Ocelot pinmuxing and gpio controller. Cc: Linus Walleij Cc: linux-g...@vger.kernel.org Signed-off-by: Alexandre Belloni Acked-by: Rob Herring --- .../bindings/pinctrl/mscc,ocelot-pinctrl.txt | 39 ++ 1 file changed, 39 insertion

[PATCH] dt-bindings: pinctrl: stm32: fix copyright and adopt SPDX identifier

2017-12-08 Thread Alexandre Torgue
Add missing copyright and add SPDX identifier. Signed-off-by: Alexandre Torgue diff --git a/include/dt-bindings/pinctrl/stm32-pinfunc.h b/include/dt-bindings/pinctrl/stm32-pinfunc.h index b8dfe31..b5a2174 100644 --- a/include/dt-bindings/pinctrl/stm32-pinfunc.h +++ b/include/dt-bindings/pinctrl

Does this break IA64 Linux?

2017-12-08 Thread David Howells
Hi Tony, Fenghua, Can you take a look at this patch and see if it breaks IA64? David

Re: [PATCH v2 5/5] perf-probe: Support escaped character in parser

2017-12-08 Thread Masami Hiramatsu
On Fri, 8 Dec 2017 12:45:45 +0100 Thomas-Mich Richter wrote: > On 12/07/2017 08:21 AM, Masami Hiramatsu wrote: > > Support the special characters escaped by '\' in parser. > > This allows user to specify versions directly like below. > > > > = > > # ./perf probe -x /lib64/libc-2.25.so ma

Re: [PATCH 00/13] Updates for QCOM Alpha PLL

2017-12-08 Thread Abhishek Sahu
On 2017-12-07 11:53, Stephen Boyd wrote: On 09/28, Abhishek Sahu wrote: This patch series does the miscellaneous changes in QCOM Alpha PLL operation and structure to support other types of Alpha PLL’s. 1. It adds the pll_type which will be used for determining all the properties of Alpha PLL

[RESEND PATCH v2] dt: bindings: as3645a: Fix the example node

2017-12-08 Thread Dan Murphy
Fix the address-cells and size-cells example node to reflect to the correct representation. Signed-off-by: Dan Murphy Acked-by: Pavel Machek --- v2 - Moved compatible to be first in the node - https://patchwork.kernel.org/patch/10092937/ Documentation/devicetree/bindings/leds/ams,as3645a.txt

Re: [RESEND PATCH v2] dt: bindings: as3645a: Fix the example node

2017-12-08 Thread Dan Murphy
Resent to include DT maintainers On 12/08/2017 09:55 AM, Dan Murphy wrote: > Fix the address-cells and size-cells example node > to reflect to the correct representation. > > Signed-off-by: Dan Murphy > Acked-by: Pavel Machek > --- > > v2 - Moved compatible to be first in the node - > https:/

Re: [Regression 4.15-rc2] New messages `tpm tpm0: A TPM error (2314) occurred continue selftest`

2017-12-08 Thread Jason Gunthorpe
On Fri, Dec 08, 2017 at 12:14:04PM +, alexander.stef...@infineon.com wrote: > Is it really that ugly? I still need delay_msec to increase the > delay each round. I can see the benefit of your suggestion when it > is important to get the timing exactly right (and also account for > time spent e

[GIT PULL for v4.15-rc3] media fixes

2017-12-08 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v4.15-2 For a series of fixes for the media subsytem: - The largest amount of fixes in this series is with regards to comments that aren't kernel-doc, but start with "/**". A new check a

Adding init_task consolidation patches to linux-next

2017-12-08 Thread David Howells
Hi Stephen, Can you add the following to linux-next please? http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=init_task Thanks, David

Re: [RESEND PATCH V2] ARM: dts: introduce the sama5d2 ptc ek board

2017-12-08 Thread Alexandre Belloni
On 07/12/2017 at 09:24:53 +0100, Ludovic Desroches wrote: > Add the official SAMA5D2 Peripheral Touch Controller Evaluation > Kit board. > > Signed-off-by: Ludovic Desroches > --- > Resend: Put SPDX-License-Identifier at the beginning of the file. > > Changes: > - v2: > - remove memory node >

Re: [PATCH RESEND v6 2/2] dt-bindings: add eeprom "no-read-rollover" property

2017-12-08 Thread Bartosz Golaszewski
2017-12-08 16:37 GMT+01:00 Sven Van Asbroeck : > Adds an optional property for at24 eeproms. > This parameterless property indicates that the multi-address eeprom > does not automatically roll over reads to the next slave address. > > Signed-off-by: Sven Van Asbroeck > Reviewed-by: Rob Herring >

Re: [PATCH/RFC] DT: leds: Fix 'label' property description and add 'colour' property

2017-12-08 Thread Dan Murphy
Jacek On 12/02/2017 03:50 PM, Jacek Anaszewski wrote: > Label property was imposed a uniqueness requirement, which was erroneous, > since ePAPR defines it to "a human readable string describing a device". > > Also the binding description misleadingly suggested direct usage of label > for LED clas

Re: [RFC] irqchip: add support for LS1021A external interrupt lines

2017-12-08 Thread Marc Zyngier
On 08/12/17 14:33, Rasmus Villemoes wrote: > The LS1021A allows inverting the polarity of six interrupt lines > IRQ[0:5] via the scfg_intpcr register, effectively allowing > IRQ_TYPE_LEVEL_LOW and IRQ_TYPE_EDGE_FALLING for those. We just need to > check the type, set the relevant bit in INTPCR acco

Re: [PATCH 0/2] acpi, x86: Add SPCR table support

2017-12-08 Thread Prarit Bhargava
On 12/08/2017 10:31 AM, Jeffrey Hugo wrote: > On 12/8/2017 7:29 AM, Prarit Bhargava wrote: >> >> >> On 12/08/2017 01:29 AM, Ingo Molnar wrote: >>> >>> * Prarit Bhargava wrote: >>> The SPCR (Serial Port Console Redirection) Table provides information about the configuration of serial po

Re: [PATCH v5 net-next] net/tcp: trace all TCP/IP state transition with tcp_set_state tracepoint

2017-12-08 Thread David Miller
From: Marcelo Ricardo Leitner Date: Fri, 8 Dec 2017 09:03:56 -0200 > I'm okay with this v5 then, can't see a better way around it. I would suggest not making this a TCP specific feature. Because socket state changes are not a TCP specific behavior.

Re: [PATCH] futex: Avoid violating the 10th rule of futex

2017-12-08 Thread Gratian Crisan
Peter Zijlstra writes: > On Thu, Dec 07, 2017 at 05:02:40PM -0600, Gratian Crisan wrote: > >> Yep ... looks good to me. I've been running two targets with the >> original reproducer for 8 hours now plus a target running the C test. >> All of them are still going. >> >> I'm going to let them run

Re: [Patch v6 05/12] [media] videodev2.h: Add v4l2 definition for HEVC

2017-12-08 Thread Mauro Carvalho Chehab
Em Fri, 08 Dec 2017 10:47:24 -0500 Nicolas Dufresne escreveu: > Le vendredi 08 décembre 2017 à 14:38 +0530, Smitha T Murthy a écrit : > > Add V4L2 definition for HEVC compressed format > > > > Signed-off-by: Smitha T Murthy > > Reviewed-by: Andrzej Hajda > > Reviewed-by: Stanimir Varbanov > >

Re: [Regression 4.15-rc2] New messages `tpm tpm0: A TPM error (2314) occurred continue selftest`

2017-12-08 Thread Paul Menzel
Dear Jason, dear Alexander, Thank you for your replies. Am 08.12.2017 um 16:56 schrieb Jason Gunthorpe: On Fri, Dec 08, 2017 at 12:14:04PM +, alexander.stef...@infineon.com wrote: […] Anyway, from the log messages it is clear that tpm_msleep got called seven times with delays of 20/40

Re: [RFC] irqchip: add support for LS1021A external interrupt lines

2017-12-08 Thread Marc Zyngier
On 08/12/17 15:11, Alexander Stein wrote: > Hi Rasmus, > > thanks for your effort. unfortunatly I won't be able to test it currently :( > But some comments below. > > On Friday, December 8, 2017, 3:33:00 PM CET Rasmus Villemoes wrote: >> The LS1021A allows inverting the polarity of six interrupt

Re: [PATCH v2 2/5] perf-probe: Cut off the version suffix from event name

2017-12-08 Thread Masami Hiramatsu
On Fri, 8 Dec 2017 08:49:46 -0600 Paul Clarke wrote: > > > On 12/07/2017 09:01 PM, Masami Hiramatsu wrote: > > On Thu, 7 Dec 2017 10:34:51 -0600 > > Paul Clarke wrote: > >> On 12/07/2017 01:20 AM, Masami Hiramatsu wrote: > >>> Cut off the version suffix (e.g. @GLIBC_2.2.5 etc.) from > >>> auto

Re: [PATCH v2 0/5] perf-probe: Improve probing on versioned symbols

2017-12-08 Thread Masami Hiramatsu
On Fri, 8 Dec 2017 12:56:06 +0100 Thomas-Mich Richter wrote: > On 12/07/2017 08:19 AM, Masami Hiramatsu wrote: > > Hi, > > > > Here is the 2nd version of the series for probing on > > versioned symbols in libraries. This includes 5 patches > > to fix the issues discussed on perf-users ML > > (h

[RFC PATCH 0/3] mm: unclutter THP migration

2017-12-08 Thread Michal Hocko
On Thu 07-12-17 15:34:01, Michal Hocko wrote: > On Thu 07-12-17 22:10:47, Zi Yan wrote: [...] > > I agree with you that we should try to migrate all tail pages if the THP > > needs to be split. But this might not be compatible with "getting > > migration results" in unmap_and_move(), since a caller

[RFC PATCH 2/3] mm, migrate: remove reason argument from new_page_t

2017-12-08 Thread Michal Hocko
From: Michal Hocko No allocation callback is using this argument anymore. new_page_node used to use this parameter to convey node_id resp. migration error up to move_pages code (do_move_page_to_node_array). The error status never made it into the final status field and we have a better way to com

[RFC PATCH 1/3] mm, numa: rework do_pages_move

2017-12-08 Thread Michal Hocko
From: Michal Hocko do_pages_move is supposed to move user defined memory (an array of addresses) to the user defined numa nodes (an array of nodes one for each address). The user provided status array then contains resulting numa node for each address or an error. The semantic of this function is

[RFC PATCH 3/3] mm: unclutter THP migration

2017-12-08 Thread Michal Hocko
From: Michal Hocko THP migration is hacked into the generic migration with rather surprising semantic. The migration allocation callback is supposed to check whether the THP can be migrated at once and if that is not the case then it allocates a simple page to migrate. unmap_and_move then fixes t

Re: [PATCH] KVM: VMX: drop I/O permission bitmaps

2017-12-08 Thread David Hildenbrand
On 08.12.2017 11:22, Quan Xu wrote: > From: Quan Xu > > Since KVM removes the only I/O port 0x80 bypass on Intel hosts, > clear CPU_BASED_USE_IO_BITMAPS and set CPU_BASED_UNCOND_IO_EXITING > bit. Then these I/O permission bitmaps are not used at all, so > drop I/O permission bitmaps. > > Signed-

Re: [Regression 4.15-rc2] New messages `tpm tpm0: A TPM error (2314) occurred continue selftest`

2017-12-08 Thread Mimi Zohar
On Fri, 2017-12-08 at 08:56 -0700, Jason Gunthorpe wrote: > On Fri, Dec 08, 2017 at 12:14:04PM +, alexander.stef...@infineon.com > wrote: > > > Is it really that ugly? I still need delay_msec to increase the > > delay each round. I can see the benefit of your suggestion when it > > is importa

Re: [Regression 4.15-rc2] New messages `tpm tpm0: A TPM error (2314) occurred continue selftest`

2017-12-08 Thread Jason Gunthorpe
On Fri, Dec 08, 2017 at 05:07:39PM +0100, Paul Menzel wrote: > I have no access to the system right now, but want to point out, that the > log was created by `journactl -k`, so I do not know if that messes with the > time stamps. I checked the output of `dmesg` but didn’t see the TPM error > messa

Re: [PATCH] LDT improvements

2017-12-08 Thread Peter Zijlstra
On Fri, Dec 08, 2017 at 03:06:54PM +0100, Peter Zijlstra wrote: > On Fri, Dec 08, 2017 at 05:20:00AM -0800, Andy Lutomirski wrote: > > > > > > The error code of such an access is always 0x03. So I added a special > > > handler, which checks whether the address is in the LDT map range and > > > ver

Re: [GIT PULL] phy: for 4.15 -rc

2017-12-08 Thread Greg KH
On Fri, Dec 08, 2017 at 06:27:09PM +0530, Kishon Vijay Abraham I wrote: > Hi Greg, > > Please find the pull request for 4.15 -rc cycle below. > > It fixes a compilation error, fix in handling error case and > there is a fix in exynos5-usbdrd to enumerate superspeed devices > on Odroid XU3 (This i

Re: [PATCH v2 0/5] perf-probe: Improve probing on versioned symbols

2017-12-08 Thread Masami Hiramatsu
On Thu, 7 Dec 2017 18:17:51 +0530 Ravi Bangoria wrote: > > > On 12/07/2017 12:49 PM, Masami Hiramatsu wrote: > > Hi, > > > > Here is the 2nd version of the series for probing on > > versioned symbols in libraries. This includes 5 patches > > to fix the issues discussed on perf-users ML > > (ht

[PATCH v1 1/1] kvm/x86: make kvm to determin tsc frequency earlier

2017-12-08 Thread Pavel Tatashin
For debugging and performance reasons it is desirable to initialize tsc earlier cover more parts of the boot process. All but one hypervisors and platforms allow to calibrate tsc right after this call: setup_arch() init_hypervisor_platform(); Here is where every hypervisor/platform configure

[PATCH v1 0/1] make kvm to determin tsc frequency earlier

2017-12-08 Thread Pavel Tatashin
Initialize tsc earlier by initializing the KVM clock at the same point in boot as other paravirtualized clocks. Here is how this work benefits time stamp output: 1. Current: https://paste.ubuntu.com/26133428 time keeping starts from line 873, and precise tsc time starts only from line 916. 2. Ea

[PATCH v3 0/5] perf-probe: Improve probing on versioned symbols

2017-12-08 Thread Masami Hiramatsu
Hi, Here is the 3rd version of the series for probing on versioned symbols in libraries. This includes 5 patches to fix the issues discussed on perf-users ML (https://www.spinics.net/lists/linux-perf-users/msg04637.html) The first version (and detail note) is here; https://lkml.org/lkml/2017/12

Re: [RFC v2 1/3] security: Add safe, dynamic (runtime-loadable) hook support

2017-12-08 Thread Casey Schaufler
On 12/7/2017 8:24 PM, Sargun Dhillon wrote: > This patch adds dynamic security hooks. These hooks are designed to allow > for safe runtime loading. There are a few hooks that have custom > conventions and are excluded from this list. > > The primary purpose of this patchset is to facilitate the dev

[GIT PULL] s390 patches for 4.15-rc3

2017-12-08 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive the following updates: * Three more patches in regard to the SPDX license tags. The missing tags for the files in arch/s390/kvm will be merged via the

[PATCH v3 1/5] perf-probe: Add warning message if there is unexpected event name

2017-12-08 Thread Masami Hiramatsu
This improve the error message so that user can know event-name error before writing new events to kprobe-events interface. E.g. == #./perf probe -x /lib64/libc-2.25.so malloc_get_state* Internal error: "malloc_get_state@GLIBC_2" is an invalid event name. Error: Failed to add eve

[PATCH v3 2/5] perf-probe: Cut off the version suffix from event name

2017-12-08 Thread Masami Hiramatsu
Cut off the version suffix (e.g. @GLIBC_2.2.5 etc.) from automatic generated event name. This fixes wildcard event adding like below case; = # perf probe -x /lib64/libc-2.25.so malloc* Internal error: "malloc_get_state@GLIBC_2" is wrong event name. Error: Failed to add events.

[PATCH v3 3/5] perf-probe: Add __return suffix for return events

2017-12-08 Thread Masami Hiramatsu
Add __return suffix for function return events automatically. Without this, user have to give --force option and will see the number suffix for each event like "function_1", which is not easy to recognize. Instead, this adds __return suffix to it automatically. E.g. = # ./perf probe -x /li

[PATCH v7 2/2] dt-bindings: add eeprom "no-read-rollover" property

2017-12-08 Thread Sven Van Asbroeck
Adds an optional property for at24 eeproms. This parameterless property indicates that the multi-address eeprom does not automatically roll over reads to the next slave address. Signed-off-by: Sven Van Asbroeck Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/eeprom/at24.txt | 5 +

Re: [PATCH 0/4] Add support for muxing individual pins

2017-12-08 Thread Tony Lindgren
* Charles Keepax [171208 14:31]: > From the implementation so far the pinctrl-single stuff appears to > target systems where there isn't really a concept of groups. Each > pin is just a completely separate entry and you can only configure > things one pin at a time. In that case it almost makes mo

[PATCH RESEND v7 1/2] at24: support eeproms that do not auto-rollover reads.

2017-12-08 Thread Sven Van Asbroeck
Some multi-address eeproms in the at24 family may not automatically roll-over reads to the next slave address. On those eeproms, reads that straddle slave boundaries will not work correctly. Solution: Mark such eeproms with a flag that prevents reads straddling slave boundaries. Add the AT24_FLAG_

[PATCH v3 5/5] perf-probe: Support escaped character in parser

2017-12-08 Thread Masami Hiramatsu
Support the special characters escaped by '\' in parser. This allows user to specify versions directly like below. = # ./perf probe -x /lib64/libc-2.25.so malloc_get_state\\@GLIBC_2.2.5 Added new event: probe_libc:malloc_get_state (on malloc_get_state@GLIBC_2.2.5 in /usr/lib64/libc-

[PATCH] ACPICA: Fix indentation

2017-12-08 Thread Vasyl Gomonovych
This patch avoids that smatch reports the following: drivers/acpi/acpica/exdump.c:623 acpi_ex_dump_operand() warn: inconsistent indenting Signed-off-by: Vasyl Gomonovych --- drivers/acpi/acpica/exdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/acpica/

Re: [PATCH v5 net-next] net/tcp: trace all TCP/IP state transition with tcp_set_state tracepoint

2017-12-08 Thread David Miller
From: Yafang Shao Date: Fri, 8 Dec 2017 23:50:44 +0800 > 2017-12-08 23:42 GMT+08:00 David Miller : >> From: Yafang Shao >> Date: Fri, 8 Dec 2017 11:40:23 +0800 >> >>> It will looks like these, >>> >>> if (sk->sk_protocol == IPPROTO_TCP) >>> __tcp_set_state(newsk, TCP_SYN_RECV); >>>

[PATCH v3 4/5] perf-probe: Find versioned symbols from map

2017-12-08 Thread Masami Hiramatsu
Find versioned symbols correctly from map. Commit d80406453ad4 ("perf symbols: Allow user probes on versioned symbols") allows user to find default versioned symbols (with "@@") in map. However, it did not enable normal versioned symbol (with "@") for perf-probe. E.g. = # ./perf probe -x /

[PATCH v7 0/2] at24: support eeproms that do not auto-rollover reads.

2017-12-08 Thread Sven Van Asbroeck
v7 rebased against at24 maintainer's devel staging branch: git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git at24/devel v6 resend: added Reviewed-by: Rob Herring v6: added newlines, asked by Bartosz no need for braces around ternary operator's c

[PATCH 11/19] scsi: hisi_sas: improve int_chnl_int_v2_hw() consistency with v3 hw

2017-12-08 Thread John Garry
From: Xiaofei Tan Change code format of int_chnl_int_v2_hw() to be consistent with v3 hw to reduce an tag indent. Signed-off-by: Xiaofei Tan Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 58 -- 1 file changed, 28 insertions(+), 30 delet

[PATCH 13/19] scsi: hisi_sas: use an general way to delay PHY work

2017-12-08 Thread John Garry
From: Xiaofei Tan Use an general way to do delay work for a PHY. Then it will be easier to add new delayed work for a PHY in future. Signed-off-by: Xiaofei Tan Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 9 - drivers/scsi/hisi_sas/hisi_sas_main.c | 22

[PATCH 16/19] scsi: hisi_sas: add internal abort dev in some places

2017-12-08 Thread John Garry
From: Xiaofei Tan We should do internal abort dev before TMF_ABORT_TASK_SET and TMF_LU_RESET. Because we may only have done internal abort for single IO in the earlier part of SCSI EH process. Even the internal abort to the single IO, we also don't know whether it is successful. Besides, we shou

[PATCH 19/19] scsi: hisi_sas: add v3 hw suspend and resume

2017-12-08 Thread John Garry
From: Xiang Chen For v3 hw SAS, it supports configuring power state from D0 to D3 for entering Low Power status and power state from D3 to D0 for quit Low Power status. When power state from D0 to D3, HW will send FLR to clear the registers of ECAM and BAR space, and when power state from D3 to

Re: [RFC v2 2/3] LSM: Add statistics about the invocation of dynamic hooks

2017-12-08 Thread Casey Schaufler
On 12/7/2017 8:24 PM, Sargun Dhillon wrote: > This patch builds on the dynamic hooks patch. With dynamic hooks, > /sys/kernel/security/lsm doesn't really make a lot of sense, because > the administrator is more likely interested in the per-hook modules. User space software (e.g. systemd) still nee

[PATCH 15/19] scsi: hisi_sas: judge result of internal abort

2017-12-08 Thread John Garry
From: Xiaofei Tan Normally, hardware should ensure that internal abort timeout will never happen. If happen, it would be an SoC failure. What's more, HW will not process any other commands if an internal abort hasn't return CQ, and they will time out also. So, we should judge the result of inter

[PATCH 18/19] scsi: hisi_sas: re-add the lldd_port_deformed()

2017-12-08 Thread John Garry
From: Xiang Chen In function sas_suspend_devices(), it requires callback lldd_port_deformed callback to be implemented if lldd_port_deformed is implemented. So add a stub for lldd_port_deformed. Callback lldd_port_deformed was not required as the port deformation is done elsewhere in the LLDD.

[PATCH 17/19] scsi: hisi_sas: fix SAS_QUEUE_FULL problem while running IO

2017-12-08 Thread John Garry
From: Xiang Chen This patch fix SAS_QUEUE_FULL problem. The test situation is close port while running IO. In sas_eh_handle_sas_errors(), SCSI EH will free sas_task of the device if lldd_I_T_nexus_reset() return TMF_RESP_FUNC_COMPLETE or -ENODEV. But in our SAS driver, we only free slots of the

[PATCH 03/19] scsi: hisi_sas: relocate clearing ITCT and freeing device

2017-12-08 Thread John Garry
From: Xiaofei Tan In certain scenarios we may just want to clear the ITCT for a device, and not free other resources like the SATA bitmap using in v2 hw. To facilitate this, this patch relocates the code of clearing ITCT from free_device() to an new hw interface clear_itct(). Then for some hw, w

Re: [PATCH 0/4] USB over IP Secuurity fixes

2017-12-08 Thread Greg KH
On Fri, Dec 08, 2017 at 08:44:58AM -0700, Shuah Khan wrote: > Hi Jakub, > > On 12/08/2017 08:14 AM, Secunia Research wrote: > > Hi Shuah, > > > > Thanks a lot for the quick fixes. > > Thanks for finding them and doing all the leg work in > pin pointing the issues. > > > > > Please, use this em

[PATCH 02/19] scsi: hisi_sas: fix dma_unmap_sg() parameter

2017-12-08 Thread John Garry
From: Xiang Chen For function dma_unmap_sg(), the parameter should be number of elements in the scatterlist prior to the mapping, not after the mapping. Fix this usage. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 6 -- 1 file changed,

[PATCH 05/19] scsi: hisi_sas: some optimizations of host controller reset

2017-12-08 Thread John Garry
From: Xiaofei Tan This patch do following optimizations to host controller reset: 1. Unblock scsi requests before rescanning topology, as SCSI command need be used if new device is found during rescanning topology. 2. Remove drain_workqueue(hisi_hba->wq) and drain_workqueue(shost->work_q), as th

[PATCH 14/19] scsi: hisi_sas: do link reset for some CHL_INT2 ints

2017-12-08 Thread John Garry
From: Xiaofei Tan We should do link reset of PHY when identify timeout or STP link timeout. They are internal events of SOC and are notified to driver through interrupts of CHL_INT2. Besides, we should add an delay work to do link reset as it needs sleep. So, this patch add an new PHY event HISI

Re: [PATCH] LDT improvements

2017-12-08 Thread Andy Lutomirski
On Fri, Dec 8, 2017 at 6:06 AM, Peter Zijlstra wrote: > On Fri, Dec 08, 2017 at 05:20:00AM -0800, Andy Lutomirski wrote: >> > >> > The error code of such an access is always 0x03. So I added a special >> > handler, which checks whether the address is in the LDT map range and >> > verifies that the

[PATCH 12/19] scsi: hisi_sas: add v2 hw port AXI error handling support

2017-12-08 Thread John Garry
From: Xiaofei Tan Add port AXI errors handling for v2 hw. We do host controller reset for such errors. Besides, change port muli-bits ECC error handling, and we should also do host reset for such error. So, this patch put them in the same struct with port AXI error. Signed-off-by: Xiaofei Tan

[PATCH 04/19] scsi: hisi_sas: optimise port id refresh function

2017-12-08 Thread John Garry
From: Xiaofei Tan Currently refreshing the PHY port id after reset is done in the rescan topology function, which is quite late in the reset process. It could be moved earlier in the process, as the port id can be refreshed once the PHYs become ready. In addition to this, we should set the hisi_

[PATCH 09/19] scsi: hisi_sas: add RAS feature for v3 hw

2017-12-08 Thread John Garry
From: Xiaofei Tan We use PCIe AER to support RAS feature for v3 hw. This driver should do following two things to support this: 1. Enable RAS interrupts, so that errors can be reported to RAS module. 2. Realize err_handler for sas_v3_pci_driver. Then if non-fatal error is detected, print error so

[PATCH] powerpc/32: book3s - fix compile error with CONFIG_PPC_PTDUMP

2017-12-08 Thread Christophe Leroy
This patch remove CONFIG_PPC_HTDUMP if not PPC_BOOK3S_64 to avoid below compile failure on BOOK3S_32: CC arch/powerpc/mm/dump_linuxpagetables.o CC arch/powerpc/mm/dump_hashpagetable.o In file included from arch/powerpc/mm/dump_hashpagetable.c:27:0: ./arch/powerpc/include/asm/plpar_wr

[PATCH 06/19] scsi: hisi_sas: modify hisi_sas_dev_gone() for reset

2017-12-08 Thread John Garry
From: Xiang Chen Do a couple of changes for when HISI_SAS_RESET_BIT is set for HBA: - Clearing ITCT is not necessary - Remove internal abort as it will fail during reset Flag sas_dev->dev_type is kept as SAS_PHY_UNUSED. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/his

[PATCH 07/19] scsi: hisi_sas: add an mechanism to do reset work synchronously

2017-12-08 Thread John Garry
From: Xiaofei Tan Sometimes it is required to know when the controller reset has completed and also if it has completed successfully. For such places, we call hisi_sas_controller_reset() directly before. That may lead to multiple calls to this function. This patch create a per-reset structure wh

[PATCH 10/19] scsi: hisi_sas: add some print to enhance debugging

2017-12-08 Thread John Garry
From: Xiang Chen Add some print at some places such as error info and cq of exception IO, device found etc, and also adjust some log levels. All this to assist debugging ability. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 15 ++---

[PATCH 08/19] scsi: hisi_sas: change ncq process for v3 hw

2017-12-08 Thread John Garry
From: Xiang Chen For v3 hw, each NCQ will return a CQ, so it is no need to acquire IPTT from ITCT, just acquire it from IPTT field of CQ. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 40 +- 1 file changed, 6 i

Re: [Intel-gfx] [PATCH] kthread: finer-grained lockdep/cross-release completion

2017-12-08 Thread Daniel Vetter
On Fri, Dec 08, 2017 at 11:14:16AM +0100, Peter Zijlstra wrote: > On Thu, Dec 07, 2017 at 09:56:57PM +0100, Daniel Vetter wrote: > > On Thu, Dec 07, 2017 at 08:57:09PM +0100, Peter Zijlstra wrote: > > > > Is what it says I suppose. Now I don't know enough about that i915 code > > > to say if that

[PATCH 01/19] scsi: hisi_sas: initialize dq spinlock before use

2017-12-08 Thread John Garry
From: Xiang Chen It is required to initialize the dq spinlock before use, which was not being done, so fix it. This issue can be detected when CONFIG_DEBUG_SPINLOCK is enabled. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 1 + 1 file changed,

[PATCH 00/19] hisi_sas: PM, RAS, and other misc changes

2017-12-08 Thread John Garry
This patchset contains support for some new features, and also some modifications and other fixes. Headline changes include: - v3 hw Suspend and Resume support - v3 hw RAS (PCI AER) support - v2 hw HW port error handling support - other misc fixes and tidy-up Xiang Chen (8): scsi: hisi_sas: ini

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

2017-12-08 Thread Tony Lindgren
* Brian Norris [171207 00:32]: > On Wed, Dec 06, 2017 at 04:17:54PM -0800, Tony Lindgren wrote: > > * Brian Norris [171206 19:36]: > > > By the way, it seems pretty ambiguous how we want to handle things like > > > (a) multiple devices sharing the same WAKE# > > > (b) systems where a slot is swap

Re: [PATCH] LDT improvements

2017-12-08 Thread Andy Lutomirski
On Fri, Dec 8, 2017 at 3:31 AM, Ingo Molnar wrote: > > * Thomas Gleixner wrote: > >> On Fri, 8 Dec 2017, Ingo Molnar wrote: >> > * Thomas Gleixner wrote: >> > >> > > On Fri, 8 Dec 2017, Ingo Molnar wrote: >> > > > * Andy Lutomirski wrote: >> > > > > I don't love mucking with user address space.

Re: [PATCH 0/4] USB over IP Secuurity fixes

2017-12-08 Thread Shuah Khan
On 12/08/2017 09:33 AM, Greg KH wrote: > On Fri, Dec 08, 2017 at 08:44:58AM -0700, Shuah Khan wrote: >> Hi Jakub, >> >> On 12/08/2017 08:14 AM, Secunia Research wrote: >>> Hi Shuah, >>> >>> Thanks a lot for the quick fixes. >> >> Thanks for finding them and doing all the leg work in >> pin pointing

[PATCH] serial: sc16is7xx: Delete an error message for a failed memory allocation in sc16is7xx_probe()

2017-12-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Dec 2017 17:27:50 +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 --- drivers/tty/serial/sc16is7xx.c | 4 +--- 1 file changed, 1 insertion(+)

RE: [PATCH] LDT improvements

2017-12-08 Thread David Laight
From: Andy Lutomirski > Sent: 08 December 2017 16:34 > #GP on IRET is a failure, and we have disgusting code to handle it. Is that the trap in kernel space when the on-stack segment registers are invalid? Definitely needs horrid code... > #PF on IRET would not be a failure -- it's a case where I

Re: [PATCH] LDT improvements

2017-12-08 Thread Andy Lutomirski
On Fri, Dec 8, 2017 at 8:46 AM, David Laight wrote: > From: Andy Lutomirski >> Sent: 08 December 2017 16:34 > >> #GP on IRET is a failure, and we have disgusting code to handle it. > > Is that the trap in kernel space when the on-stack segment registers > are invalid? > Definitely needs horrid cod

Re: [PATCH v2 net-next 4/4] bpftool: implement cgroup bpf operations

2017-12-08 Thread David Ahern
On 12/8/17 8:39 AM, Quentin Monnet wrote: > I don't believe compatibility is an issue here, since the program and > its documentation come together (so they should stay in sync) and are > part of the kernel tree (so the tool should be compatible with the > kernel sources it comes with). My concern

Re: [PATCH v2] drivers: visorbus: move driver out of staging

2017-12-08 Thread Joe Perches
On Fri, 2017-12-08 at 16:39 +0100, Greg KH wrote: > On Thu, Dec 07, 2017 at 12:11:07PM -0500, David Kershner wrote: > > Move the visorbus driver out of staging (drivers/staging/unisys/visorbus) > > and to drivers/visorbus. Modify the configuration and makefiles so they > > now reference the new loc

Re: [Y2038] [PATCH 5/9] y2038: introduce CONFIG_64BIT_TIME

2017-12-08 Thread Ben Hutchings
On Fri, 2017-11-10 at 14:42 -0800, Deepa Dinamani wrote: > From: Arnd Bergmann > > There are a total of 53 system calls (aside from ioctl) that pass a time_t > or derived data structure as an argument, and in order to extend time_t > to 64-bit, we have to replace them with new system calls and ke

Re: [PATCH] usb-core: Fix potential null pointer dereference in xhci-debugfs.c

2017-12-08 Thread Mathias Nyman
On 08.12.2017 13:06, Alexander Kappner wrote: Hi, I think we need to dig a bit deeper. It's good to check if spriv is valid but there are probably other reasons than kzalloc failing. I agree -- this small allocation is unlikely to fail in practice. Also, while my patch prevents the kernel oo

Re: [PATCH] tty: New RISC-V SBI console driver

2017-12-08 Thread Philippe Ombredanne
Karsten. On Fri, Dec 8, 2017 at 5:22 PM, Karsten Merker wrote: > On Thu, Dec 07, 2017 at 04:10:15PM -0800, Palmer Dabbelt wrote: >> From: Palmer Dabbelt >> >> The RISC-V ISA defines a simple console that is availiable via SBI calls >> on all systems. This patch adds a driver for this console in

Re: [Y2038] [PATCH 5/9] y2038: introduce CONFIG_64BIT_TIME

2017-12-08 Thread Deepa Dinamani
On Fri, Dec 8, 2017 at 8:53 AM, Ben Hutchings wrote: > On Fri, 2017-11-10 at 14:42 -0800, Deepa Dinamani wrote: >> From: Arnd Bergmann >> >> There are a total of 53 system calls (aside from ioctl) that pass a time_t >> or derived data structure as an argument, and in order to extend time_t >> to

[PATCH v2] tools/perf/inject: fix dwarf support detection

2017-12-08 Thread Stephane Eranian
I ran into problems trying to use the JIT support and display source-level information. Basically, there was no dwarf debug info generated in the jitted-XX.so files, yet I had libdw-dev installed. Turns out that the feature test build for test-dwarf.bin was broken for me. It would die for the wron

Re: [PATCH 1/1] base: power: runtime: Export pm_runtime_get/put_suppliers

2017-12-08 Thread Vivek Gautam
On Fri, Dec 8, 2017 at 7:37 PM, Rafael J. Wysocki wrote: > On Fri, Dec 8, 2017 at 2:39 PM, Vivek Gautam > wrote: >> Hi Greg, >> >> >> On Fri, Dec 8, 2017 at 6:51 PM, Greg KH wrote: >>> On Fri, Dec 08, 2017 at 06:00:47PM +0530, Vivek Gautam wrote: The device link allows the pm framework to t

Re: [PATCH AUTOSEL for 4.14 012/135] ASoC: cs42l56: Fix reset GPIO name in example DT binding

2017-12-08 Thread Andrew F. Davis
On 12/08/2017 05:36 AM, Mark Brown wrote: > On Thu, Dec 07, 2017 at 09:03:01PM +, alexander.le...@verizon.com wrote: >> On Thu, Dec 07, 2017 at 05:25:02PM +, Mark Brown wrote: > >>> We shouldn't be getting into adding completely new DT properties in >>> stable backports like this. Old ker

<    1   2   3   4   5   6   7   8   9   10   >