[PATCH 17/20] lightnvm: define chunk states

2018-02-21 Thread Javier González
Define chunk states as given in the 2.0 spec. Also, add an extra chunk state that signals that the chunk is in use by the host. This allows for the chunk metadata to be "owned" by a target when active, thus completing the chunk state machine from the host perspective and facilitating sanity checks.

[PATCH 14/20] lightnvm: make address conversions depend on generic device

2018-02-21 Thread Javier González
On address conversions, use the generic device, instead of the target device. This allows to use conversions outside of the target's realm. Signed-off-by: Javier González --- drivers/lightnvm/core.c | 4 ++-- include/linux/lightnvm.h | 8 2 files changed, 6 insertions(+), 6 deletions(-

[PATCH 13/20] lightnvm: add support for 2.0 address format

2018-02-21 Thread Javier González
Add support for 2.0 address format. Also, align address bits for 1.2 and 2.0 to be able to operate on channel and luns without requiring a format conversion. Use a generic address format for this purpose. Signed-off-by: Javier González --- drivers/lightnvm/core.c | 20 - include/linux/

[PATCH 11/20] lightnvm: pblk: check for supported version

2018-02-21 Thread Javier González
At this point, only 1.2 spec is supported, thus check for it. Also, since device-side L2P is only supported in the 1.2 spec, make sure to only check its value under 1.2. Signed-off-by: Javier González --- drivers/lightnvm/pblk-init.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(

[PATCH 10/20] lightnvm: pblk: rename ppaf* to addrf*

2018-02-21 Thread Javier González
In preparation for 2.0 support in pblk, rename variables referring to the address format to addrf and reserve ppaf for the 1.2 path. Signed-off-by: Javier González --- drivers/lightnvm/pblk-init.c | 8 drivers/lightnvm/pblk-sysfs.c | 4 ++-- drivers/lightnvm/pblk.h | 16 +++

[PATCH 03/20] lightnvm: fix capabilities for 2.0 sysfs

2018-02-21 Thread Javier González
Both 1.2 and 2.0 specs define a field for media and controller capabilities. Also, 1.2 defines a separate field dedicated to device capabilities. In 2.0 sysfs, this values have been mixed. Revert them to the right value. Signed-off-by: Javier González --- drivers/nvme/host/lightnvm.c | 18 +

[PATCH 09/20] lightnvm: use generic identify structure

2018-02-21 Thread Javier González
Create a generic identify structure to collect the identify information before knowing the spec. version. This forces different version paths to cast the structure to their spec structure, thus making the code less error prone and more maintainable. Signed-off-by: Javier González --- drivers/nvm

[PATCH 07/20] lightnvm: rename sect_* to sec_*

2018-02-21 Thread Javier González
Rename abbreviations for sector from sect_* to sec_* as most of the code uses this format and it is confusing when using the different structures. Signed-off-by: Javier González --- drivers/lightnvm/pblk-init.c | 8 drivers/lightnvm/pblk-sysfs.c | 4 ++-- drivers/lightnvm/pblk.h

[PATCH 04/20] lightnvm: add minor version to generic geometry

2018-02-21 Thread Javier González
Separate the version between major and minor on the generic geometry. Also, add a "subversion" entry to sysfs to expose the minor version without breaking user space. Signed-off-by: Javier González --- drivers/lightnvm/core.c | 4 ++-- drivers/nvme/host/lightnvm.c | 25

[PATCH 06/20] lightnvm: add shorten OCSSD version in geo

2018-02-21 Thread Javier González
Create a shorten version to use in the generic geometry. Signed-off-by: Javier González --- drivers/nvme/host/lightnvm.c | 6 ++ include/linux/lightnvm.h | 8 2 files changed, 14 insertions(+) diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c index f22331

[PATCH 05/20] lightnvm: rename number of channels and luns

2018-02-21 Thread Javier González
Normalize nomenclature for naming number of channels and number of luns in order to improve readability. Use num_ch and num_lun. Signed-off-by: Javier González --- drivers/lightnvm/core.c | 69 ++-- drivers/lightnvm/pblk-core.c | 4 +-- drivers/light

[PATCH 08/20] lightnvm: complete geo structure with maxoc*

2018-02-21 Thread Javier González
Complete the generic geometry structure with the maxoc and maxocpu felds, present in the 2.0 spec. Signed-off-by: Javier González --- drivers/nvme/host/lightnvm.c | 4 include/linux/lightnvm.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/nvme/host/lightnvm.c b/drivers/

[PATCH 02/20] lightnvm: add controller capabilities to 2.0

2018-02-21 Thread Javier González
Assign missing mccap value on 2.0 path Signed-off-by: Javier González --- drivers/nvme/host/lightnvm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c index c81e64cc20d7..969bb874850c 100644 --- a/drivers/nvme/host/lightnvm.c +++

Re: [PATCH v2 01/21] lib/vsprintf: Print time and date in human readable format via %pt

2018-02-21 Thread Geert Uytterhoeven
Hi Andy, On Tue, Feb 20, 2018 at 10:43 PM, Andy Shevchenko wrote: > There are users which print time and date represented by content of > struct rtc_time in human readable format. > > Instead of open coding that each time introduce %ptR[dt][rv] specifier. Thanks for your patch! > Note, users ha

Re: [PATCH] mmc: dw_mmc-k3: Fix out-of-bounds access through DT alias

2018-02-21 Thread Geert Uytterhoeven
Hi Jaehoon, On Wed, Feb 21, 2018 at 6:39 AM, Jaehoon Chung wrote: > On 02/20/2018 07:50 PM, Geert Uytterhoeven wrote: >> On Tue, Feb 20, 2018 at 10:03 AM, Geert Uytterhoeven >> wrote: >>> The hs_timing_cfg[] array is indexed using a value derived from the >>> "mshcN" alias in DT, which may lead

[PATCH] audit: return on memory error to avoid null pointer dereference

2018-02-21 Thread Richard Guy Briggs
If there is a memory allocation error when trying to change an audit kernel feature value, the ignored allocation error will trigger a NULL pointer dereference oops on subsequent use of that pointer. Return instead. Passes audit-testsuite. See: https://github.com/linux-audit/audit-kernel/issues/7

Re: [PATCH v2 0/6] lightnvm: base 2.0 implementation

2018-02-21 Thread Javier Gonzalez
> On 15 Feb 2018, at 14.11, Matias Bjørling wrote: > > A couple of patches for 2.0 support for the lightnvm subsystem. They > form the foundation for the integration. > > The first two patches is preparation for the 2.0 work. The third patch > implements the 2.0 data structures, the geometry com

Re: [PATCH v4] MAINTAINERS: add Freescale pin controllers

2018-02-21 Thread Lucas Stach
Am Dienstag, den 20.02.2018, 23:55 +0100 schrieb Stefan Agner: > Add Dong Aisheng, Fabio Estevam, Shawn Guo and myself as maintainer > and the Pengutronix kernel team as reviewer. > > Signed-off-by: Stefan Agner > Reviewed-by: Fabio Estevam > Acked-by: Dong Aisheng Acked-by: Lucas Stach > --

Re: [PATCH 2/2] [stable-4.9] x86: fix build warnign with 32-bit PAE

2018-02-21 Thread Greg Kroah-Hartman
On Thu, Feb 15, 2018 at 09:58:00AM -0800, Kees Cook wrote: > On Thu, Feb 15, 2018 at 7:16 AM, Arnd Bergmann wrote: > > I ran into a 4.9 build warning in randconfig testing, starting with the > > KAISER patches: > > > > arch/x86/kernel/ldt.c: In function 'alloc_ldt_struct': > > arch/x86/include/asm

Re: [PATCH 1/2] [stable-4.9] x86: fix build without CONFIG_X86_VSYSCALL_EMULATION

2018-02-21 Thread Greg Kroah-Hartman
On Thu, Feb 15, 2018 at 11:18:21AM -0800, Hugh Dickins wrote: > On Thu, 15 Feb 2018, Greg Kroah-Hartman wrote: > > On Thu, Feb 15, 2018 at 04:16:56PM +0100, Arnd Bergmann wrote: > > > I ran into a 4.9 build regression in randconfig testing, starting with the > > > KAISER patches: > > > > > > arch/

Re: [PATCH v2 20/21] mk68/mac: Switch to use %ptR

2018-02-21 Thread Geert Uytterhoeven
Hi Andy, On Tue, Feb 20, 2018 at 10:43 PM, Andy Shevchenko wrote: > Use %ptR instead of open coded variant to print content of > struct rtc_time in human readable format. > > Cc: Geert Uytterhoeven > Signed-off-by: Andy Shevchenko > --- > arch/m68k/Kconfig.machine | 1 + > arch/m68k/mac/misc.c

Re: [PATCH 1/4] dt-bindings: at24: sort manufacturers alphabetically

2018-02-21 Thread Wolfram Sang
> Will do. What about this (http://patchwork.ozlabs.org/patch/867169/) > one? It's part of a bigger series, do you want me to apply it to my > tree and provide you with an immutable branch? Well, I would accept it for 4.16 using the "plain new id" rule. So, if you add it on top of Peter's sorting

[PATCH 3/3] ARC: setup cpu possible mask according to possible-cpus dts property

2018-02-21 Thread Eugeniy Paltsev
As we have option in u-boot to set CPU mask for running linux, we want to pass information to kernel about CPU cores should be brought up. So we patch kernel dtb in u-boot to set possible-cpus property. This also allows us to have correctly setuped MCIP debug mask. Signed-off-by: Eugeniy Paltsev

[PATCH 1/3] ARC: mcip: halt GFRC together with ARC cores

2018-02-21 Thread Eugeniy Paltsev
Currently GFRC is running regardless state of ARC cores in the SMP cluster. That means even if ARC cores are halted when doing JTAG debugging GFRC [our source of wall-time] continues to run giving us unexpected warnings once we allow ARC cores to run due to some tasks being stuck for too long. Sta

[PATCH 2/3] ARC: mcip: setup MCIP debug mask according to cpu possible mask

2018-02-21 Thread Eugeniy Paltsev
Setup MCIP debug mask according cpu possible mask instead of use hardcoded one. Signed-off-by: Eugeniy Paltsev --- arch/arc/kernel/mcip.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/arc/kernel/mcip.c b/arch/arc/kernel/mcip.c index e87a4ea..da73258 1006

[PATCH] x86: make x86_init noop functions static

2018-02-21 Thread Juergen Gross
Make the noop functions in x86_init.c static in case they are used locally only. Signed-off-by: Juergen Gross --- arch/x86/kernel/x86_init.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/x86_init.c b/arch/x86/kernel/x86_init.c index 9e4e994a4836..

Re: [Xen-devel] [PATCH 1/9] drm/xen-front: Introduce Xen para-virtualized frontend driver

2018-02-21 Thread Oleksandr Andrushchenko
On 02/21/2018 11:17 AM, Roger Pau Monné wrote: On Wed, Feb 21, 2018 at 10:03:34AM +0200, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko Introduce skeleton of the para-virtualized Xen display frontend driver. This patch only adds required essential stubs. Signed-off-by: Oleksandr

Re: [PATCH 3/7] [HACK] pass endianess flag to LTO linker

2018-02-21 Thread Arnd Bergmann
On Wed, Feb 21, 2018 at 4:15 AM, Nicolas Pitre wrote: > On Tue, 20 Feb 2018, Arnd Bergmann wrote: > >> We need some way to pass -mbig-endian to the linker during the >> LTO link stage, otherwise we get a waning like >> >> arm-linux-gnueabi/bin/ld: arch/arm/lib/clearbit.o: compiled for a big endian

Re: [PATCH] RDMA/core: reduce IB_POLL_BATCH constant

2018-02-21 Thread Max Gurtovoy
On 2/20/2018 11:47 PM, Chuck Lever wrote: On Feb 20, 2018, at 4:14 PM, Bart Van Assche wrote: On Tue, 2018-02-20 at 21:59 +0100, Arnd Bergmann wrote: /* # of WCs to poll for with a single call to ib_poll_cq */ -#define IB_POLL_BATCH 16 +#define IB_POLL_BATCH

Re: [PATCH 3/7] [HACK] pass endianess flag to LTO linker

2018-02-21 Thread Arnd Bergmann
On Wed, Feb 21, 2018 at 9:37 AM, Ard Biesheuvel wrote: > On 20 February 2018 at 21:59, Arnd Bergmann wrote: >> We need some way to pass -mbig-endian to the linker during the >> LTO link stage, otherwise we get a waning like >> >> arm-linux-gnueabi/bin/ld: arch/arm/lib/clearbit.o: compiled for a b

Re: [PATCH v4 00/13] add support for AXP813 ADC and battery power supply

2018-02-21 Thread Maxime Ripard
On Mon, Feb 19, 2018 at 01:47:23PM +0100, Quentin Schulz wrote: > The AXP813 PMIC is relatively close to the already supported AXP20X and > AXP22X. It provides three different power outputs: battery, AC and USB, and > measures a few different things: temperature, power supply status, current > curr

Re: [PATCH 5/6] mm, hugetlb: further simplify hugetlb allocation API

2018-02-21 Thread Michal Hocko
On Tue 20-02-18 22:24:57, Dan Rue wrote: > On Wed, Jan 03, 2018 at 10:32:12AM +0100, Michal Hocko wrote: > > From: Michal Hocko > > > > Hugetlb allocator has several layer of allocation functions depending > > and the purpose of the allocation. There are two allocators depending > > on whether th

Re: [PATCH] PCI: Add quirk for Cavium Thunder-X2 PCIe erratum #173

2018-02-21 Thread Lukas Wunner
On Wed, Feb 21, 2018 at 02:58:13PM +0530, George Cherian wrote: > I will explain the setup used > To the Cavium ThunderX RC the following PLX device is connected. > PLX Technology, Inc. PEX 8747 48-Lane, 5-Port PCI Express Gen 3 (8.0 GT/s) > Switch > There is no device connected downstream to the P

Re: [PATCH 00/23] kconfig: move compiler capability tests to Kconfig

2018-02-21 Thread Arnd Bergmann
On Wed, Feb 21, 2018 at 8:38 AM, Masahiro Yamada wrote: > 2018-02-20 0:18 GMT+09:00 Ulf Magnusson : > >>> >>> I'm not happy that we in one context can reference CONFIG variables >>> directly, but inside the $(call ...) and $(shell ...) needs the $ prefix. >>> But I could not come up with something

Re: [RFC PATCH v16 0/6] mm: security: ro protection for dynamic data

2018-02-21 Thread Igor Stoppa
On 21/02/18 03:36, Dave Chinner wrote: > On Tue, Feb 20, 2018 at 03:56:00PM -0800, Matthew Wilcox wrote: >> On Wed, Feb 21, 2018 at 08:36:04AM +1100, Dave Chinner wrote: >>> FWIW, I'm not wanting to use it to replace static variables. All the >>> structures are dynamically allocated right now, and

Re: [PATCH 5/6] mm, hugetlb: further simplify hugetlb allocation API

2018-02-21 Thread Michal Hocko
On Wed 21-02-18 10:55:26, Michal Hocko wrote: > On Tue 20-02-18 22:24:57, Dan Rue wrote: [...] > > I bisected the failure to this commit. The problem is seen on multiple > > architectures (tested x86-64 and arm64). > > The patch shouldn't have introduced any functional changes IIRC. But let > me h

Re: [PATCH] cpufreq: powernv: Check negative value returned by cpufreq_table_find_index_dl()

2018-02-21 Thread Viresh Kumar
On 21-02-18, 10:27, Rafael J. Wysocki wrote: > To be precise, ->init() should fail as that's where the table is > created. The registration fails as a result then. > > But what if the bug is that ->init() doesn't fail when it should? > > I guess the core could double check the frequency table af

Re: [PATCH v3 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support

2018-02-21 Thread Christian Borntraeger
On 02/19/2018 05:38 PM, Farhan Ali wrote: > > > On 02/19/2018 11:25 AM, Thomas Huth wrote: >> On 19.02.2018 16:47, Farhan Ali wrote: >>> The 'commit e25df1205f37 ("[S390] Kconfig: menus with depends on >>> HAS_IOMEM.")' >>> added the HAS_IOMEM dependecy for "Graphics support". This disabled th

Re: [PATCH v2 19/19] ARM64: dts: r8a77965: Add EtherAVB device node

2018-02-21 Thread jacopo mondi
Hi Sergei, On Tue, Feb 20, 2018 at 06:30:56PM +0300, Sergei Shtylyov wrote: > On 02/20/2018 06:12 PM, Jacopo Mondi wrote: > > > Populate the ethernet@e680 device node to enable Ethernet interface > > for R-Car M3-N (r8a77965) SoC. > > > > Signed-off-by: Jacopo Mondi > > Reviewed-by: Geert Uyt

Re: [PATCH 3/7] [HACK] pass endianess flag to LTO linker

2018-02-21 Thread Ard Biesheuvel
On 21 February 2018 at 09:48, Arnd Bergmann wrote: > On Wed, Feb 21, 2018 at 9:37 AM, Ard Biesheuvel > wrote: >> On 20 February 2018 at 21:59, Arnd Bergmann wrote: >>> We need some way to pass -mbig-endian to the linker during the >>> LTO link stage, otherwise we get a waning like >>> >>> arm-li

Re: [PATCH v4] MAINTAINERS: add Freescale pin controllers

2018-02-21 Thread Linus Walleij
On Tue, Feb 20, 2018 at 11:55 PM, Stefan Agner wrote: > Add Dong Aisheng, Fabio Estevam, Shawn Guo and myself as maintainer > and the Pengutronix kernel team as reviewer. > > Signed-off-by: Stefan Agner > Reviewed-by: Fabio Estevam > Acked-by: Dong Aisheng Patch applied with Lucas' additional

Re: [PATCH] mm/page_poison: Make early_page_poison_param __init

2018-02-21 Thread Michal Hocko
On Wed 17-01-18 11:47:57, Dou Liyang wrote: > The early_param() is only called during kernel initialization, So Linux > marks the function of it with __init macro to save memory. > > But it forgot to mark the early_page_poison_param(). So, Make it __init > as well. > > Cc: Andrew Morton > Cc: Ph

Re: [PATCH] cpufreq: powernv: Check negative value returned by cpufreq_table_find_index_dl()

2018-02-21 Thread Rafael J. Wysocki
On Wed, Feb 21, 2018 at 11:02 AM, Viresh Kumar wrote: > On 21-02-18, 10:27, Rafael J. Wysocki wrote: >> To be precise, ->init() should fail as that's where the table is >> created. The registration fails as a result then. >> >> But what if the bug is that ->init() doesn't fail when it should? >>

[PATCH 4/8] x86/MCE/AMD: Collect error info even if valid bits are not set

2018-02-21 Thread Borislav Petkov
From: Borislav Petkov The MCA banks log error info into MCA_ADDR, MCA_MISC0, and MCA_SYND even if the corresponding valid bits are not set: "Error handlers should save the values in MCA_ADDR, MCA_MISC0, and MCA_SYND even if MCA_STATUS[AddrV], MCA_STATUS[MiscV], and MCA_STATUS[SyndV] are zero."

[PATCH 7/8] x86/MCE/AMD: Get address from already initialized block

2018-02-21 Thread Borislav Petkov
From: Yazen Ghannam The block address is saved after the block is initialized when threshold_init_device() is called. Use the saved block address, if available, rather than trying to rediscover it. This will avoid a call trace, when resuming from suspend, due to the rdmsr_safe_on_cpu() call in

[PATCH 8/8] x86/MCE/AMD: Carve out SMCA get_block_address() code

2018-02-21 Thread Borislav Petkov
From: Yazen Ghannam Carve out the SMCA code in get_block_address() into a separate helper function. No functional change. Signed-off-by: Yazen Ghannam Cc: Tony Luck Cc: linux-edac Cc: x86-ml Link: http://lkml.kernel.org/r/20180215210943.11530-4-yazen.ghan...@amd.com [ Save an indentation le

Re: [PATCH] cpufreq: powernv: Check negative value returned by cpufreq_table_find_index_dl()

2018-02-21 Thread Viresh Kumar
On 21-02-18, 11:17, Rafael J. Wysocki wrote: > The driver is expected to call cpufreq_table_validate_and_show() at > ->init() time and fail ->init() if that fails. > > That's kind of fragile, because it depends on the driver to do the right > thing. That's exactly what I am trying to explore her

[PATCH 6/8] x86/MCE/AMD, EDAC/mce_amd: Enumerate Reserved SMCA bank type

2018-02-21 Thread Borislav Petkov
From: Yazen Ghannam Currently, bank 4 is reserved on Fam17h, so we chose not to initialize bank 4 in the smca_banks array. This means that when we check if a bank is initialized, like during boot or resume, we will see that bank 4 is not initialized and try to initialize it. This will cause a ca

[PATCH 5/8] x86/MCE/AMD: Pass the bank number to smca_get_bank_type()

2018-02-21 Thread Borislav Petkov
From: Yazen Ghannam Pass the bank number to smca_get_bank_type() since that's all we need. Also, we should compare the bank number to MAX_NR_BANKS (size of the smca_banks array) not the number of bank types. Bank types are reused for multiple banks, so the number of types can be different from t

Re: [Xen-devel] [PATCH 1/9] drm/xen-front: Introduce Xen para-virtualized frontend driver

2018-02-21 Thread Roger Pau Monné
On Wed, Feb 21, 2018 at 11:42:23AM +0200, Oleksandr Andrushchenko wrote: > On 02/21/2018 11:17 AM, Roger Pau Monné wrote: > > On Wed, Feb 21, 2018 at 10:03:34AM +0200, Oleksandr Andrushchenko wrote: > > > --- /dev/null > > > +++ b/drivers/gpu/drm/xen/xen_drm_front.c > > > @@ -0,0 +1,83 @@ > > > +/*

[PATCH] Staging: gdm724x: LTE: Fix trailing open parentheses.

2018-02-21 Thread Quytelda Kahja
Fix lines with a trailing open parenthesis, which is a coding style issue. Signed-off-by: Quytelda Kahja --- drivers/staging/gdm724x/gdm_lte.c | 44 +++ 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/drivers/staging/gdm724x/gdm_lte.c b/driver

Re: [RFC PATCH tip] x86/acpi: u64_x86_init_noop() can be static

2018-02-21 Thread Ingo Molnar
* Juergen Gross wrote: > On 21/02/18 09:51, Ingo Molnar wrote: > > > > * kbuild test robot wrote: > > > >> > >> Fixes: 62d8b7fba8d3 ("x86/acpi: Add a new x86_init_acpi structure to > >> x86_init_ops") > >> Signed-off-by: Fengguang Wu > >> --- > >> 0 files changed > > > > -ENOPATCH? > > I

Re: [PATCH 00/23] kconfig: move compiler capability tests to Kconfig

2018-02-21 Thread Masahiro Yamada
2018-02-21 18:56 GMT+09:00 Arnd Bergmann : > On Wed, Feb 21, 2018 at 8:38 AM, Masahiro Yamada > wrote: >> 2018-02-20 0:18 GMT+09:00 Ulf Magnusson : >> I'm not happy that we in one context can reference CONFIG variables directly, but inside the $(call ...) and $(shell ...) needs the

[PATCH 3/8] x86/mce: Issue the mcelog --ascii message on !AMD

2018-02-21 Thread Borislav Petkov
From: Borislav Petkov mcelog cannot decode AMD MCEs. Signed-off-by: Borislav Petkov --- arch/x86/kernel/cpu/mcheck/mce.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index 9c8cb58c77f8..b16b184d90c5 1

[PATCH 2/8] x86/MCE: Convert mca_config bools to a bitfield

2018-02-21 Thread Borislav Petkov
From: Borislav Petkov ... to save space when future flags are added. No functionality change. Signed-off-by: Borislav Petkov --- arch/x86/kernel/cpu/mcheck/mce-internal.h | 13 - arch/x86/kernel/cpu/mcheck/mce.c | 16 2 files changed, 16 insertions(+), 13

[PATCH 1/8] x86/MCE: Put private structures and definitions into the internal header

2018-02-21 Thread Borislav Petkov
From: Borislav Petkov ... because they don't need to be exported outside of MCE. Signed-off-by: Borislav Petkov --- arch/x86/include/asm/mce.h| 52 --- arch/x86/kernel/cpu/mcheck/mce-internal.h | 52 +++ 2 files changed, 5

Re: [PATCH v4 04/16] of: changesets: Introduce changeset helper methods

2018-02-21 Thread Geert Uytterhoeven
Hi Laurent, On Wed, Feb 21, 2018 at 12:10 AM, Laurent Pinchart wrote: > From: Pantelis Antoniou > > Changesets are very powerful, but the lack of a helper API > makes using them cumbersome. Introduce a simple copy based > API that makes things considerably easier. > > To wit, adding a property u

Re: [PATCH v3 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support

2018-02-21 Thread Christian Borntraeger
On 02/21/2018 11:05 AM, Christian Borntraeger wrote: > > > On 02/19/2018 05:38 PM, Farhan Ali wrote: >> >> >> On 02/19/2018 11:25 AM, Thomas Huth wrote: >>> On 19.02.2018 16:47, Farhan Ali wrote: The 'commit e25df1205f37 ("[S390] Kconfig: menus with depends on HAS_IOMEM.")' adde

[PATCH 0/8] x86/RAS: Some accumulated stuff

2018-02-21 Thread Borislav Petkov
From: Borislav Petkov Hi, first 3 are cleanups, 4th makes MCA code collect error info without looking at the Valid bits because there might be cases where they're not set. The last 4 fix the IPI-with-IRQs-off issue which was reported recently. Thx. Borislav Petkov (4): x86/MCE: Put private

Re: [Xen-devel] [PATCH 1/9] drm/xen-front: Introduce Xen para-virtualized frontend driver

2018-02-21 Thread Oleksandr Andrushchenko
On 02/21/2018 12:19 PM, Roger Pau Monné wrote: On Wed, Feb 21, 2018 at 11:42:23AM +0200, Oleksandr Andrushchenko wrote: On 02/21/2018 11:17 AM, Roger Pau Monné wrote: On Wed, Feb 21, 2018 at 10:03:34AM +0200, Oleksandr Andrushchenko wrote: --- /dev/null +++ b/drivers/gpu/drm/xen/xen_drm_front.

[tip:perf/core] perf s390: Fix reading cpuid model information

2018-02-21 Thread tip-bot for Thomas Richter
Commit-ID: 47812e00910407a0f14906c0a3bf2d803a616c6f Gitweb: https://git.kernel.org/tip/47812e00910407a0f14906c0a3bf2d803a616c6f Author: Thomas Richter AuthorDate: Mon, 19 Feb 2018 11:24:44 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 19 Feb 2018 09:16:01 -0300 perf s390:

Re: [PATCH v4 03/16] of: dynamic: Add __of_node_dupv()

2018-02-21 Thread Geert Uytterhoeven
Hi Laurent, On Wed, Feb 21, 2018 at 12:10 AM, Laurent Pinchart wrote: > From: Pantelis Antoniou > > Add an __of_node_dupv() private method and make __of_node_dup() use it. > This is required for the subsequent changeset accessors which will > make use of it. > > Signed-off-by: Pantelis Antoniou

[tip:perf/core] perf python: Make twatch.py work with both python2 and python3

2018-02-21 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: d2ed5d2bdc5cd30b44dc52c44c63f08c0a31b845 Gitweb: https://git.kernel.org/tip/d2ed5d2bdc5cd30b44dc52c44c63f08c0a31b845 Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 19 Feb 2018 12:24:13 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 19 Feb 2018 12:28:08 -0300 p

[PATCH v8 0/7] Address error and recovery for AER and DPC

2018-02-21 Thread Oza Pawandeep
This patch set brings in error handling support for DPC The current implementation of AER and error message broadcasting to the EP driver is tightly coupled and limited to AER service driver. It is important to factor out broadcasting and other link handling callbacks. So that not only when AER ge

[PATCH v8 1/7] PCI/AER: Rename error recovery to generic pci naming

2018-02-21 Thread Oza Pawandeep
This patch renames error recovery to generic name with pci prefix Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index a4bfea5..306bf2f 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pcie/aer/aerdrv_core.c @@

[PATCH v8 5/7] PCI/AER: Unify aer error defines at single space

2018-02-21 Thread Oza Pawandeep
This patch moves AER error defines to drivers/pci/pci.h. So that it unifies the error repoting codes at single place along with dpc Signed-off-by: Oza Pawandeep diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index 1efefe9..7ae9bb3 100644 --- a/drivers/acpi/apei/ghes.c +++ b/dri

[PATCH v8 7/7] PCI/DPC: Enumerate the devices after DPC trigger event

2018-02-21 Thread Oza Pawandeep
Implement error_resume callback in DPC so, after DPC trigger event enumerates the devices beneath. Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/pcie-dpc.c b/drivers/pci/pcie/pcie-dpc.c index fce4518..59c01c7 100644 --- a/drivers/pci/pcie/pcie-dpc.c +++ b/drivers/pci/pcie/pcie-dpc.c

[tip:perf/core] perf ftrace: Append an EOL when write tracing files

2018-02-21 Thread tip-bot for Changbin Du
Commit-ID: 63cd02d84be5f7b3bc4f8fbb93cc1f871f84ae1d Gitweb: https://git.kernel.org/tip/63cd02d84be5f7b3bc4f8fbb93cc1f871f84ae1d Author: Changbin Du AuthorDate: Mon, 19 Feb 2018 10:33:29 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 19 Feb 2018 09:49:12 -0300 perf ftrace: A

[PATCH v8 2/7] PCI/AER: factor out error reporting from AER

2018-02-21 Thread Oza Pawandeep
This patch factors out error reporting callbacks, which are currently tightly coupled with AER. DPC should be able to register callbacks and attmept recovery when DPC trigger event occurs. Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index fcd8191..a5a79f0 1006

[PATCH v8 6/7] PCI: Unify wait for link active into generic pci

2018-02-21 Thread Oza Pawandeep
Clients such as pciehp, dpc are using pcie_wait_link_active, which waits till the link becomes active or inactive. Made generic function and moved it to drivers/pci/pci.c Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c index 18a42f8.

Re: [PATCH 00/31 v2] PTI support for x86_32

2018-02-21 Thread Lorenzo Colitti
On Wed, Feb 14, 2018 at 5:54 PM, Greg KH wrote: > > > IPSEC doesn't work with a 64bit kernel and 32bit userspace right now. > > > > > > Back in 2015 someone started to work on that, and properly marked that > > > the kernel could not handle this with commit 74005991b78a ("xfrm: Do not > > > parse

[PATCH v8 4/7] PCI/DPC: Unify and plumb error handling into DPC

2018-02-21 Thread Oza Pawandeep
Current DPC driver does not do recovery, e.g. calling end-point's driver's callbacks, which sanitize the sw. DPC driver implements link_reset callback, and calls pci_do_recovery. Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index a5a79f0..124f42e 100644 --- a/

[PATCH v8 3/7] PCI/ERR: add mutex to synchronize recovery

2018-02-21 Thread Oza Pawandeep
This patch protects pci_do_recovery with mutex. Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/pcie-err.c b/drivers/pci/pcie/pcie-err.c index a532fe0..8318c84 100644 --- a/drivers/pci/pcie/pcie-err.c +++ b/drivers/pci/pcie/pcie-err.c @@ -20,6 +20,8 @@ #include #include "portdrv.h"

Re: [PATCH v2] fork: Unconditionally clear stack on fork

2018-02-21 Thread Michal Hocko
On Tue 20-02-18 18:16:59, Kees Cook wrote: > One of the classes of kernel stack content leaks[1] is exposing the > contents of prior heap or stack contents when a new process stack is > allocated. Normally, those stacks are not zeroed, and the old contents > remain in place. In the face of stack co

[tip:sched/core] sched/fair: Defer calculation of 'prev_eff_load' in wake_affine_weight() until needed

2018-02-21 Thread tip-bot for Mel Gorman
Commit-ID: eeb60398639143c11ff2c8b509e3a471411bb5d3 Gitweb: https://git.kernel.org/tip/eeb60398639143c11ff2c8b509e3a471411bb5d3 Author: Mel Gorman AuthorDate: Tue, 13 Feb 2018 13:37:26 + Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 08:49:07 +0100 sched/fair: Defer calculatio

[tip:sched/core] sched/fair: Avoid an unnecessary lookup of current CPU ID during wake_affine

2018-02-21 Thread tip-bot for Mel Gorman
Commit-ID: 7ebb66a12f85bc375beaf45ca900427fe47aa8f7 Gitweb: https://git.kernel.org/tip/7ebb66a12f85bc375beaf45ca900427fe47aa8f7 Author: Mel Gorman AuthorDate: Tue, 13 Feb 2018 13:37:25 + Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 08:49:07 +0100 sched/fair: Avoid an unneces

Re: [PATCH] ARM64: Kconfig: Fix the missing hi655x common clk

2018-02-21 Thread Riku Voipio
On 16 February 2018 at 19:35, Daniel Lezcano wrote: > On 12/06/2017 23:12, Arnd Bergmann wrote: >> On Mon, Jun 12, 2017 at 11:38 AM, Daniel Lezcano >> wrote: >>> On Fri, Jun 09, 2017 at 10:48:13PM +0200, Arnd Bergmann wrote: On Fri, Jun 9, 2017 at 10:15 PM, John Stultz wrote: > On

[tip:sched/core] sched/fair: Do not migrate on wake_affine_weight() if weights are equal

2018-02-21 Thread tip-bot for Mel Gorman
Commit-ID: 082f764a2f3f2968afa1a0b04a1ccb1b70633844 Gitweb: https://git.kernel.org/tip/082f764a2f3f2968afa1a0b04a1ccb1b70633844 Author: Mel Gorman AuthorDate: Tue, 13 Feb 2018 13:37:27 + Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 08:49:08 +0100 sched/fair: Do not migrate o

[tip:sched/core] sched/fair: Do not migrate due to a sync wakeup on exit

2018-02-21 Thread tip-bot for Peter Zijlstra
Commit-ID: 24d0c1d6e65f635b2c0684d0a42ff6c0674aa0e6 Gitweb: https://git.kernel.org/tip/24d0c1d6e65f635b2c0684d0a42ff6c0674aa0e6 Author: Peter Zijlstra AuthorDate: Tue, 13 Feb 2018 13:37:28 + Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 08:49:42 +0100 sched/fair: Do not migra

[tip:sched/core] sched/numa: Delay retrying placement for automatic NUMA balance after wake_affine()

2018-02-21 Thread tip-bot for Mel Gorman
Commit-ID: 7347fc87dfe6b7315e74310ee1243dc222c68086 Gitweb: https://git.kernel.org/tip/7347fc87dfe6b7315e74310ee1243dc222c68086 Author: Mel Gorman AuthorDate: Tue, 13 Feb 2018 13:37:30 + Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 08:49:45 +0100 sched/numa: Delay retrying p

Re: [PATCH v3 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support

2018-02-21 Thread Cornelia Huck
On Wed, 21 Feb 2018 11:22:38 +0100 Christian Borntraeger wrote: > On 02/21/2018 11:05 AM, Christian Borntraeger wrote: > > > > > > On 02/19/2018 05:38 PM, Farhan Ali wrote: > >> > >> > >> On 02/19/2018 11:25 AM, Thomas Huth wrote: > >>> On 19.02.2018 16:47, Farhan Ali wrote: > The 'c

[tip:sched/core] sched/fair: Consider SD_NUMA when selecting the most idle group to schedule on

2018-02-21 Thread tip-bot for Mel Gorman
Commit-ID: 2c83362734dad8e48ccc0710b5cd2436a0323893 Gitweb: https://git.kernel.org/tip/2c83362734dad8e48ccc0710b5cd2436a0323893 Author: Mel Gorman AuthorDate: Tue, 13 Feb 2018 13:37:29 + Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 08:49:43 +0100 sched/fair: Consider SD_NUMA

Re: [PATCH V4 1/5] perf/x86/intel: Fix event update for auto-reload

2018-02-21 Thread Peter Zijlstra
On Mon, Feb 12, 2018 at 02:20:31PM -0800, kan.li...@linux.intel.com wrote: > @@ -1389,8 +1456,22 @@ static void intel_pmu_drain_pebs_nhm(struct pt_regs > *iregs) > > ds->pebs_index = ds->pebs_buffer_base; > > - if (unlikely(base >= top)) > + if (unlikely(base >= top)) { > +

Re: [PATCH] ARM64: Kconfig: Fix the missing hi655x common clk

2018-02-21 Thread Daniel Lezcano
On 21/02/2018 11:30, Riku Voipio wrote: > On 16 February 2018 at 19:35, Daniel Lezcano > wrote: >> On 12/06/2017 23:12, Arnd Bergmann wrote: >>> On Mon, Jun 12, 2017 at 11:38 AM, Daniel Lezcano >>> wrote: On Fri, Jun 09, 2017 at 10:48:13PM +0200, Arnd Bergmann wrote: > On Fri, Jun 9, 20

[tip:perf/core] perf machine: Fix paranoid check in machine__set_kernel_mmap()

2018-02-21 Thread tip-bot for Namhyung Kim
Commit-ID: 1d12cec6ce99614297e10945d917fd8a62cd2b09 Gitweb: https://git.kernel.org/tip/1d12cec6ce99614297e10945d917fd8a62cd2b09 Author: Namhyung Kim AuthorDate: Mon, 19 Feb 2018 19:00:46 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 19 Feb 2018 09:17:46 -0300 perf machine:

[tip:sched/core] sched/core: Rename init_rq_hrtick() to hrtick_rq_init()

2018-02-21 Thread tip-bot for Frederic Weisbecker
Commit-ID: 77a021be383ebdacb17594e280242f7fd116095f Gitweb: https://git.kernel.org/tip/77a021be383ebdacb17594e280242f7fd116095f Author: Frederic Weisbecker AuthorDate: Wed, 21 Feb 2018 05:17:23 +0100 Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 09:49:07 +0100 sched/core: Rename

[tip:sched/core] nohz: Allow to check if remote CPU tick is stopped

2018-02-21 Thread tip-bot for Frederic Weisbecker
Commit-ID: 22ab8bc02a5f6e8ffc418759894f7a6b0b632331 Gitweb: https://git.kernel.org/tip/22ab8bc02a5f6e8ffc418759894f7a6b0b632331 Author: Frederic Weisbecker AuthorDate: Wed, 21 Feb 2018 05:17:25 +0100 Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 09:49:08 +0100 nohz: Allow to chec

[tip:sched/core] nohz: Convert tick_nohz_tick_stopped() to bool

2018-02-21 Thread tip-bot for Frederic Weisbecker
Commit-ID: a364298359e74a414857bbbf3b725564feb22d09 Gitweb: https://git.kernel.org/tip/a364298359e74a414857bbbf3b725564feb22d09 Author: Frederic Weisbecker AuthorDate: Wed, 21 Feb 2018 05:17:24 +0100 Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 09:49:08 +0100 nohz: Convert tick_

[tip:sched/core] sched/nohz: Remove the 1 Hz tick code

2018-02-21 Thread tip-bot for Frederic Weisbecker
Commit-ID: dcdedb24159be3487e3dbbe1faa79ae7d00c92ac Gitweb: https://git.kernel.org/tip/dcdedb24159be3487e3dbbe1faa79ae7d00c92ac Author: Frederic Weisbecker AuthorDate: Wed, 21 Feb 2018 05:17:28 +0100 Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 09:49:09 +0100 sched/nohz: Remove

[tip:sched/core] sched/isolation: Isolate workqueues when "nohz_full=" is set

2018-02-21 Thread tip-bot for Frederic Weisbecker
Commit-ID: 1bda3f8087fce9063da0b8aef87f17a3fe541aca Gitweb: https://git.kernel.org/tip/1bda3f8087fce9063da0b8aef87f17a3fe541aca Author: Frederic Weisbecker AuthorDate: Wed, 21 Feb 2018 05:17:26 +0100 Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 09:49:08 +0100 sched/isolation: Is

[tip:sched/core] sched/isolation: Offload residual 1Hz scheduler tick

2018-02-21 Thread tip-bot for Frederic Weisbecker
Commit-ID: d84b31313ef8a8de55a2cbfb72f76f36d8c927fb Gitweb: https://git.kernel.org/tip/d84b31313ef8a8de55a2cbfb72f76f36d8c927fb Author: Frederic Weisbecker AuthorDate: Wed, 21 Feb 2018 05:17:27 +0100 Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 09:49:09 +0100 sched/isolation: Of

[tip:perf/urgent] x86/oprofile: Fix bogus GCC-8 warning in nmi_setup()

2018-02-21 Thread tip-bot for Arnd Bergmann
Commit-ID: 85c615eb5bc5fab6c7190d146bc59fac289e Gitweb: https://git.kernel.org/tip/85c615eb5bc5fab6c7190d146bc59fac289e Author: Arnd Bergmann AuthorDate: Tue, 20 Feb 2018 21:58:21 +0100 Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 09:54:17 +0100 x86/oprofile: Fix bogus G

Re: [PATCH v2 0/3] new driver for Valve Steam Controller

2018-02-21 Thread Clément VUCHENER
Hi Rodrigo, I have written a kernel driver [1], some time ago. I did not submit it for merging in the main-line because I thought that would mess with user-space drivers. If your driver create an input device, a user-space driver will have to disable it before creating its own. I guess libusb base

[tip:sched/core] sched/isolation: Update nohz documentation to explain tick offload

2018-02-21 Thread tip-bot for Frederic Weisbecker
Commit-ID: 083c6eeab2cc13894618d188b854f2fc6b5b2303 Gitweb: https://git.kernel.org/tip/083c6eeab2cc13894618d188b854f2fc6b5b2303 Author: Frederic Weisbecker AuthorDate: Wed, 21 Feb 2018 05:17:29 +0100 Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 09:49:10 +0100 sched/isolation: Up

[PATCH] Staging: gdm724x: hci: Changed camel-case to snake-case.

2018-02-21 Thread Quytelda Kahja
Changed a variable name from camel to snake case to fix a coding style issue. Signed-off-by: Quytelda Kahja --- drivers/staging/gdm724x/hci_packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gdm724x/hci_packet.h b/drivers/staging/gdm724x/hci_packet.h in

[tip:locking/core] tools/memory-model: Clarify the origin/scope of the tool name

2018-02-21 Thread tip-bot for Andrea Parri
Commit-ID: 48d44d4e8a583c66d9f376e18c1a1fcc445f4b64 Gitweb: https://git.kernel.org/tip/48d44d4e8a583c66d9f376e18c1a1fcc445f4b64 Author: Andrea Parri AuthorDate: Tue, 20 Feb 2018 15:25:01 -0800 Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 09:58:12 +0100 tools/memory-model: Clarif

[tip:locking/core] MAINTAINERS: Add the Memory Consistency Model subsystem

2018-02-21 Thread tip-bot for Andrea Parri
Commit-ID: e7d74c9f900a12ea0bd5cabb3be142441530e24e Gitweb: https://git.kernel.org/tip/e7d74c9f900a12ea0bd5cabb3be142441530e24e Author: Andrea Parri AuthorDate: Tue, 20 Feb 2018 15:25:02 -0800 Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 09:58:12 +0100 MAINTAINERS: Add the Memor

[tip:locking/core] MAINTAINERS: List file memory-barriers.txt within the LKMM entry

2018-02-21 Thread tip-bot for Andrea Parri
Commit-ID: ea52d698c1ed0c4555656de0dd1f7ac5866f89e1 Gitweb: https://git.kernel.org/tip/ea52d698c1ed0c4555656de0dd1f7ac5866f89e1 Author: Andrea Parri AuthorDate: Tue, 20 Feb 2018 15:25:03 -0800 Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 09:58:13 +0100 MAINTAINERS: List file mem

[tip:locking/core] EXP litmus_tests: Add comments explaining tests' purposes

2018-02-21 Thread tip-bot for Paul E. McKenney
Commit-ID: 8f32543b61d7daeddb5b64c80b5ad5f05cc97722 Gitweb: https://git.kernel.org/tip/8f32543b61d7daeddb5b64c80b5ad5f05cc97722 Author: Paul E. McKenney AuthorDate: Tue, 20 Feb 2018 15:25:04 -0800 Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 09:58:13 +0100 EXP litmus_tests: Add

[tip:locking/core] README: Fix a couple of punctuation errors

2018-02-21 Thread tip-bot for Paul E. McKenney
Commit-ID: 62155147048f6c811b82cbb53bee246aee083774 Gitweb: https://git.kernel.org/tip/62155147048f6c811b82cbb53bee246aee083774 Author: Paul E. McKenney AuthorDate: Tue, 20 Feb 2018 15:25:05 -0800 Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 09:58:14 +0100 README: Fix a couple o

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