[PATCH v12 02/25] kasan, slub: handle pointer tags in early_kmem_cache_node_alloc

2018-11-27 Thread Andrey Konovalov
The previous patch updated KASAN hooks signatures and their usage in SLAB and SLUB code, except for the early_kmem_cache_node_alloc function. This patch handles that function separately, as it requires to reorder some of the initialization code to correctly propagate a tagged pointer in case a tag

[PATCH v12 11/25] kasan, arm64: untag address in _virt_addr_is_linear

2018-11-27 Thread Andrey Konovalov
virt_addr_is_linear (which is used by virt_addr_valid) assumes that the top byte of the address is 0xff, which isn't always the case with tag-based KASAN. This patch resets the tag in this macro. Reviewed-by: Andrey Ryabinin Reviewed-by: Dmitry Vyukov Signed-off-by: Andrey Konovalov --- arch/

[PATCH v12 07/25] kasan: rename kasan_zero_page to kasan_early_shadow_page

2018-11-27 Thread Andrey Konovalov
With tag based KASAN mode the early shadow value is 0xff and not 0x00, so this patch renames kasan_zero_(page|pte|pmd|pud|p4d) to kasan_early_shadow_(page|pte|pmd|pud|p4d) to avoid confusion. Suggested-by: Mark Rutland Signed-off-by: Andrey Konovalov --- arch/arm64/mm/kasan_init.c | 43

[PATCH v12 04/25] kasan: rename source files to reflect the new naming scheme

2018-11-27 Thread Andrey Konovalov
We now have two KASAN modes: generic KASAN and tag-based KASAN. Rename kasan.c to generic.c to reflect that. Also rename kasan_init.c to init.c as it contains initialization code for both KASAN modes. Reviewed-by: Andrey Ryabinin Reviewed-by: Dmitry Vyukov Signed-off-by: Andrey Konovalov --- m

Re: [PATCHi v2] mm: put_and_wait_on_page_locked() while page is migrated

2018-11-27 Thread Linus Torvalds
On Tue, Nov 27, 2018 at 8:49 AM Christopher Lameter wrote: > > A process has no refcount on a page struct and is waiting for it to become > unlocked? Why? Should it not simply ignore that page and continue? The problem isn't that you can just "continue". You need to *retry*. And you can't just

Re: [PATCH] memory: tegra: Convert to using %pOFn instead of device_node.name

2018-11-27 Thread Rob Herring
On Sat, Nov 24, 2018 at 8:07 AM Yangtao Li wrote: > > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Signed-off-by: Yangtao Li > --- > drivers/memory/tegra/mc.c | 6 +++--- > drivers/memory/tegra/te

[PATCH v12 05/25] kasan: add CONFIG_KASAN_GENERIC and CONFIG_KASAN_SW_TAGS

2018-11-27 Thread Andrey Konovalov
This commit splits the current CONFIG_KASAN config option into two: 1. CONFIG_KASAN_GENERIC, that enables the generic KASAN mode (the one that exists now); 2. CONFIG_KASAN_SW_TAGS, that enables the software tag-based KASAN mode. The name CONFIG_KASAN_SW_TAGS is chosen as in the future we will h

[PATCH v12 00/25] kasan: add software tag-based mode for arm64

2018-11-27 Thread Andrey Konovalov
This patchset adds a new software tag-based mode to KASAN [1]. (Initially this mode was called KHWASAN, but it got renamed, see the naming rationale at the end of this section). The plan is to implement HWASan [2] for the kernel with the incentive, that it's going to have comparable to KASAN perf

Re: [PATCH] mtd: nand: spi: Add initial support for Toshiba TC58CVG2S0H

2018-11-27 Thread Clément Péron
Hi Frieder, On Tue, 27 Nov 2018 at 17:42, Schrempf Frieder wrote: > > Hi Clément, > > On 27.11.18 16:18, Clément Péron wrote: > > Hi Frieder, > > > > On Tue, 27 Nov 2018 at 16:08, Schrempf Frieder > > wrote: > >> > >> +Clément Péron > >> > >> Hi Clément, > >> > >> FYI, this has already been merg

[tip:x86/urgent] x86/fpu: Use the correct exception table macro in the XSTATE_OP wrapper

2018-11-27 Thread tip-bot for Jann Horn
Commit-ID: ac26d1f74cfc19c8dc9d533b5f20e99dbee3d9bd Gitweb: https://git.kernel.org/tip/ac26d1f74cfc19c8dc9d533b5f20e99dbee3d9bd Author: Jann Horn AuthorDate: Tue, 27 Nov 2018 14:32:00 +0100 Committer: Borislav Petkov CommitDate: Tue, 27 Nov 2018 17:55:45 +0100 x86/fpu: Use the correct

Re: [RFC PATCH 3/3] mm, proc: report PR_SET_THP_DISABLE in proc

2018-11-27 Thread William Kucharski
> On Nov 27, 2018, at 9:50 AM, Vlastimil Babka wrote: > > On 11/27/18 3:50 PM, William Kucharski wrote: >> >> I was just double checking that this was meant to be more of a check done >> before code elsewhere performs additional checks and does the actual THP >> mapping, not an all-encompassi

[PATCH V2] gpio: mt7621: pass mediatek_gpio_bank_probe() failure up the stack

2018-11-27 Thread Nicholas Mc Guire
The error cases of mediatek_gpio_bank_probe() would go unnoticed (except for the dev_err() messages). The probe function should return an error if one of the banks failed to initialize properly indicated by not returning non-0. Signed-off-by: Nicholas Mc Guire Fixes: 4ba9c3afda41 ("gpio: mt7621:

Re: [LKP] [mm] ac5b2c1891: vm-scalability.throughput -61.3% regression

2018-11-27 Thread Linus Torvalds
On Mon, Nov 26, 2018 at 10:24 PM kernel test robot wrote: > > FYI, we noticed a -61.3% regression of vm-scalability.throughput due > to commit ac5b2c18911f ("mm: thp: relax __GFP_THISNODE for > MADV_HUGEPAGE mappings") Well, that's certainly noticeable and not good. Andrea, I suspect it might be

[PATCH V2] staging: iio: adc: ad7280a: check for devm_kasprint() failure

2018-11-27 Thread Nicholas Mc Guire
sed by Dan Carpenter Problem located with an experimental coccinelle script Patch was compile tested with: x86_64_defconfig + STAGING=y SPI=y, IIO=y, AD7280=m Patch is against 4.20-rc4 (localversion-next is next-20181127) drivers/staging/iio/adc/ad7280a.c | 43 +++-

Re: [PATCH 0/3] tools/memory-model: Add SRCU support

2018-11-27 Thread Paul E. McKenney
On Tue, Nov 27, 2018 at 01:26:42AM +0100, Andrea Parri wrote: > > commit 72f61917f12236514a70017d1ebafb9b8d34a9b6 > > Author: Paul E. McKenney > > Date: Mon Nov 26 14:26:43 2018 -0800 > > > > tools/memory-model: Update README for addition of SRCU > > > > This commit updates the sec

Re: [PATCH v2] panic: Add options to print system info when panic happens

2018-11-27 Thread Kees Cook
On Mon, Nov 26, 2018 at 11:15 PM, Feng Tang wrote: > Kernel panic issues are always painful to debug, partially > because it's not easy to get enough information of the > context when panic happens. > > And we have ramoops and kdump for that, while this commit > tries to provide a easier way to sh

Re: [PATCH v2 2/3] vfio: ap: ioctl definitions for AP Queue Interrupt Control

2018-11-27 Thread Alex Williamson
On Thu, 22 Nov 2018 18:11:14 +0100 Pierre Morel wrote: > We define two VFIO ioctl command to setup and clear > the AP Queues interrupt. > > Arguments passed by the guest are: > - the apqn, AP queue number > - the Notification by address > - the identifier of the previously associated adapter W

Re: [patch V2 18/28] x86/speculation: Prepare for per task indirect branch speculation control

2018-11-27 Thread Lendacky, Thomas
On 11/25/2018 12:33 PM, Thomas Gleixner wrote: > To avoid the overhead of STIBP always on, it's necessary to allow per task > control of STIBP. > > Add a new task flag TIF_SPEC_IB and evaluate it during context switch if > SMT is active and flag evaluation is enabled by the speculation control > c

Re: [PATCH v3 8/8] mfd: cros_ec: add a dev_release empty method.

2018-11-27 Thread Guenter Roeck
Hi Enric, On Tue, Nov 27, 2018 at 4:19 AM Enric Balletbo i Serra wrote: > > Devices are required to provide a release method. This patch fixes the > following WARN(): > > [ 47.218707] [ cut here ] > [ 47.223901] Device 'cros_ec' does not have a release() function, it i

Re: ext4 file system corruption with v4.19.3 / v4.19.4

2018-11-27 Thread Guenter Roeck
On Tue, Nov 27, 2018 at 03:48:19PM +0100, Marek Habersack wrote: > On 27/11/2018 15:32, Guenter Roeck wrote: > Hi, > > You might try to see if you have CONFIG_SCSI_MQ_DEFAULT=yes in your kernel > config. Starting with 4.19.1 it somehow Yes, it is enabled in my configuration. > interferes with e

Re: [PATCH 2/7] node: Add heterogenous memory performance

2018-11-27 Thread Dan Williams
On Mon, Nov 26, 2018 at 11:00 PM Dan Williams wrote: > > On Wed, Nov 14, 2018 at 2:53 PM Keith Busch wrote: > > > > Heterogeneous memory systems provide memory nodes with latency > > and bandwidth performance attributes that are different from other > > nodes. Create an interface for the kernel t

[PATCH] arm64/lib: improve CRC32 performance for deep pipelines

2018-11-27 Thread Ard Biesheuvel
Improve the performance of the crc32() asm routines by getting rid of most of the branches and small sized loads on the common path. Instead, use a branchless code path involving overlapping 16 byte loads to process the first (length % 32) bytes, and process the remainder using a loop that process

Re: [LKP] [fs/locks] 83b381078b: will-it-scale.per_thread_ops -62.5% regression

2018-11-27 Thread J. Bruce Fields
Thanks for the report! On Tue, Nov 27, 2018 at 02:01:02PM +0800, kernel test robot wrote: > FYI, we noticed a -62.5% regression of will-it-scale.per_thread_ops due to > commit: > > > commit: 83b381078b5ecab098ebf6bc9548bb32af1dbf31 ("fs/locks: always > delete_block after waiting.") > https://g

RE: [PATCH] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-27 Thread Ryan Lee
>-Original Message- >From: Grant Grundler >Sent: Monday, November 26, 2018 6:28 PM >To: Grant Grundler >Cc: Ryan Lee ; Liam Girdwood >; broo...@kernel.org; pe...@perex.cz; >ti...@suse.com; Kuninori Morimoto ; >Benson Leung ; alsa-de...@alsa-project.org; LKML > >Subject: Re: [PATCH] ASoC:

RE: [PATCH] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-27 Thread Ryan Lee
Grant, Thanks for your feedback. Please find my answers inline. >-Original Message- >From: Grant Grundler >Sent: Monday, November 26, 2018 6:25 PM >To: Ryan Lee >Cc: Liam Girdwood ; broo...@kernel.org; >pe...@perex.cz; ti...@suse.com; Grant Grundler >; Kuninori Morimoto >; Benson Leung >;

Re: [PATCH v2 2/3] vfio: ap: ioctl definitions for AP Queue Interrupt Control

2018-11-27 Thread Pierre Morel
On 27/11/2018 18:22, Alex Williamson wrote: On Thu, 22 Nov 2018 18:11:14 +0100 Pierre Morel wrote: We define two VFIO ioctl command to setup and clear the AP Queues interrupt. Arguments passed by the guest are: - the apqn, AP queue number - the Notification by address - the identifier of the

Re: [PATCH 2/7] node: Add heterogenous memory performance

2018-11-27 Thread Keith Busch
On Mon, Nov 26, 2018 at 11:00:09PM -0800, Dan Williams wrote: > On Wed, Nov 14, 2018 at 2:53 PM Keith Busch wrote: > > > > Heterogeneous memory systems provide memory nodes with latency > > and bandwidth performance attributes that are different from other > > nodes. Create an interface for the ke

Re: [PATCH 5/5] mm: Stall movable allocations until kswapd progresses during serious external fragmentation event

2018-11-27 Thread Mel Gorman
On Tue, Nov 27, 2018 at 02:20:30PM +0100, Vlastimil Babka wrote: > > This patch has a marginal rate on fragmentation rates as it's rare for > > the stall logic to actually trigger but the small stalls can be enough for > > kswapd to catch up. How much that helps is variable but probably worthwhile

Re: [PATCH v3 8/8] mfd: cros_ec: add a dev_release empty method.

2018-11-27 Thread Greg Kroah-Hartman
On Tue, Nov 27, 2018 at 09:29:38AM -0800, Guenter Roeck wrote: > Hi Enric, > > On Tue, Nov 27, 2018 at 4:19 AM Enric Balletbo i Serra > wrote: > > > > Devices are required to provide a release method. This patch fixes the > > following WARN(): > > > > [ 47.218707] [ cut here ]--

RE: [PATCH] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-27 Thread Ryan Lee
>-Original Message- >From: Mark Brown >Sent: Tuesday, November 27, 2018 3:51 AM >To: Ryan Lee >Cc: Liam Girdwood ; Jaroslav Kysela >; Takashi Iwai ; Grant Grundler >; Kuninori Morimoto >; Benson Leung >; alsa-de...@alsa-project.org; linux- >ker...@vger.kernel.org >Subject: Re: [PATCH] ASo

Re: [PATCH v17 18/23] platform/x86: Intel SGX driver

2018-11-27 Thread Andy Lutomirski
> On Nov 27, 2018, at 8:41 AM, Jarkko Sakkinen > wrote: > >> On Tue, Nov 27, 2018 at 02:55:33AM -0600, Dr. Greg wrote: >> Since the thread has become a bit divergent I wanted to note that we >> have offered a proposal for a general policy management framework >> based on MRSIGNER values. Thi

Re: omap5 fixing palmas IRQ_TYPE_NONE warning leads to gpadc timeouts

2018-11-27 Thread Tony Lindgren
* Jon Hunter [181126 20:17]: > > On 26/11/2018 19:32, Tony Lindgren wrote: > > * Thierry Reding [181126 10:25]: > >> On Mon, Nov 26, 2018 at 11:49:54AM +0200, Peter Ujfalusi wrote: > >>> The register map documentation I have states the following: > >>> bit7 INT_POLARITY Select the polarity of th

Re: [PATCH 1/2] selftests: firmware: remove use of non-standard diff -Z option

2018-11-27 Thread Kees Cook
On Mon, Nov 26, 2018 at 7:12 PM, Dan Rue wrote: > diff -Z is used to trim the trailing whitespace when comparing the > loaded firmware file with the source firmware file. However, per the > comment in the source code, -Z should not be necessary. In testing, the > input and output files are identic

Re: [PATCH 2/2] selftests: firmware: add CONFIG_FW_LOADER_USER_HELPER_FALLBACK to config

2018-11-27 Thread Kees Cook
On Mon, Nov 26, 2018 at 7:12 PM, Dan Rue wrote: > CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y is required for fw_fallback.sh. > Without it, fw_fallback.sh fails with 'usermode helper disabled so > ignoring test'. Enable the config in selftest so that it gets built by > default. > > Signed-off-by: Dan

Re: omap5 fixing palmas IRQ_TYPE_NONE warning leads to gpadc timeouts

2018-11-27 Thread Tony Lindgren
* Thierry Reding [181126 10:14]: > I'm not sure we need to go to those lengths. As far as I'm concerned, if > it turns out that we've inverted the logic for Tegra114, that's a bug in > the DTS and we should fix it along with the driver to remove the double > negation. I don't think this would be c

[PATCH v10 0/8] Introduce on-chip interconnect API

2018-11-27 Thread Georgi Djakov
Modern SoCs have multiple processors and various dedicated cores (video, gpu, graphics, modem). These cores are talking to each other and can generate a lot of data flowing through the on-chip interconnects. These interconnect buses could form different topologies such as crossbar, point to point b

[PATCH v10 4/7] interconnect: Add debugfs support

2018-11-27 Thread Georgi Djakov
Add a functionality to provide information about the current constraints per each node and provider. Signed-off-by: Georgi Djakov Reviewed-by: Evan Green --- drivers/interconnect/core.c | 71 + 1 file changed, 71 insertions(+) diff --git a/drivers/interconne

[PATCH v10 2/7] dt-bindings: Introduce interconnect binding

2018-11-27 Thread Georgi Djakov
This binding is intended to represent the relations between the interconnect controllers (providers) and consumer device nodes. It will allow creating links between consumers and interconnect paths (exposed by interconnect providers). Signed-off-by: Georgi Djakov --- .../bindings/interconnect/in

Re: [PATCH RFC 4/5] gnss: sirf: add a separate supply for a lna

2018-11-27 Thread Pavel Machek
Hi! > Devices might have a separate lna between antenna output of the gps > chip and the antenna which might have a separate supply Might have. > @@ -340,6 +349,12 @@ static int sirf_probe(struct serdev_device *serdev) > goto err_put_device; > } > > + data->lna = devm_r

[PATCH v10 7/7] MAINTAINERS: add a maintainer for the interconnect API

2018-11-27 Thread Georgi Djakov
Add myself as the maintainer of the interconnect API. Signed-off-by: Georgi Djakov --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 380e43f585d3..4f426863ff3b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7694,6 +7694,16 @@ L:

Re: [driver-core PATCH v6 9/9] libnvdimm: Schedule device registration on node local to the device

2018-11-27 Thread Alexander Duyck
On Mon, 2018-11-26 at 18:21 -0800, Dan Williams wrote: > On Thu, Nov 8, 2018 at 10:07 AM Alexander Duyck > wrote: > > > > Force the device registration for nvdimm devices to be closer to the actual > > device. This is achieved by using either the NUMA node ID of the region, or > > of the parent.

[PATCH v10 1/7] interconnect: Add generic on-chip interconnect API

2018-11-27 Thread Georgi Djakov
This patch introduces a new API to get requirements and configure the interconnect buses across the entire chipset to fit with the current demand. The API is using a consumer/provider-based model, where the providers are the interconnect buses and the consumers could be various drivers. The consum

[PATCH v10 3/7] interconnect: Allow endpoints translation via DT

2018-11-27 Thread Georgi Djakov
Currently we support only platform data for specifying the interconnect endpoints. As now the endpoints are hard-coded into the consumer driver this may lead to complications when a single driver is used by multiple SoCs, which may have different interconnect topology. To avoid cluttering the consu

[PATCH v10 5/7] interconnect: qcom: Add sdm845 interconnect provider driver

2018-11-27 Thread Georgi Djakov
From: David Dai Introduce Qualcomm SDM845 specific provider driver using the interconnect framework. Signed-off-by: David Dai Signed-off-by: Georgi Djakov --- .../bindings/interconnect/qcom,sdm845.txt | 24 + drivers/interconnect/Kconfig | 5 + drivers/interconnect/Mak

[PATCH v10 6/7] arm64: dts: sdm845: Add interconnect provider DT nodes

2018-11-27 Thread Georgi Djakov
From: David Dai Add RSC (Resource State Coordinator) provider dictating network-on-chip interconnect bus performance found on SDM845-based platforms. Signed-off-by: David Dai Signed-off-by: Georgi Djakov --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 5 + 1 file changed, 5 insertions(+) diff

Re: [PATCH v9 2/8] dt-bindings: Introduce interconnect binding

2018-11-27 Thread Georgi Djakov
Hi Rob, On 9/26/18 17:42, Georgi Djakov wrote: Hi Rob, Thanks for the comments! On 09/25/2018 09:02 PM, Rob Herring wrote: On Fri, Aug 31, 2018 at 05:01:45PM +0300, Georgi Djakov wrote: This binding is intended to represent the relations between the interconnect controllers (providers) and c

Re: [for-next][PATCH 04/18] arm64: function_graph: Simplify with function_graph_entry()

2018-11-27 Thread Will Deacon
On Wed, Nov 21, 2018 at 07:28:05PM -0500, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > The function_graph_entry() function does the work of calling the function > graph hook function and the management of the shadow stack, simplifying the > work done in the architecture dependent p

Re: [PATCHi v2] mm: put_and_wait_on_page_locked() while page is migrated

2018-11-27 Thread Matthew Wilcox
On Tue, Nov 27, 2018 at 12:58:48PM +0200, Mike Rapoport wrote: > > diff --git a/mm/filemap.c b/mm/filemap.c > > index 81adec8ee02c..575e16c037ca 100644 > > --- a/mm/filemap.c > > +++ b/mm/filemap.c > > @@ -1049,25 +1056,44 @@ static void wake_up_page(struct page *page, int bit) > > wake_up_page

Re: [PATCH] i2c: i2c-tegra: replace spin_lock_irqsave with spin_lock in ISR

2018-11-27 Thread Dmitry Osipenko
On 11.09.2018 17:54, jun qian wrote: > As you are already in ISR, it is unnecessary to call spin_lock_irqsave. > > Signed-off-by: jun qian > --- > drivers/i2c/busses/i2c-tegra.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-tegra.c b/driver

Re: [LKP] [mm] ac5b2c1891: vm-scalability.throughput -61.3% regression

2018-11-27 Thread Michal Hocko
On Tue 27-11-18 09:08:50, Linus Torvalds wrote: > On Mon, Nov 26, 2018 at 10:24 PM kernel test robot > wrote: > > > > FYI, we noticed a -61.3% regression of vm-scalability.throughput due > > to commit ac5b2c18911f ("mm: thp: relax __GFP_THISNODE for > > MADV_HUGEPAGE mappings") > > Well, that's c

Re: omap5 fixing palmas IRQ_TYPE_NONE warning leads to gpadc timeouts

2018-11-27 Thread Tony Lindgren
* Tony Lindgren [181127 17:55]: > The only option that works for omap5 at palmas end is if > PALMAS_POLARITY_CTRL_INT_POLARITY is cleared. Setting the SoC internal > pulls does not make a difference, so I suspect there is either some > unknown pull-up/pull-down configuration register in palmas, or

Re: [PATCH] arm64: ftrace: Fix to enable syscall events on arm64

2018-11-27 Thread Steven Rostedt
On Tue, 27 Nov 2018 16:58:49 + Will Deacon wrote: > This looks fine to me, but I'm curious about whether this is supposed to > work with compat syscalls as well, where the prefix is "__arm64_compat_". > > If we broadly follow the x86 lead, we'd have: > > return (!strncmp(sym, "__arm64

Re: [RFC v3 2/3] dt-bindings: sdm845-pinctrl: add wakeup interrupt parent for GPIO

2018-11-27 Thread Lina Iyer
On Tue, Nov 27 2018 at 02:12 -0700, Stephen Boyd wrote: Quoting Lina Iyer (2018-11-26 08:14:55) On Wed, Nov 21 2018 at 14:36 -0700, Stephen Boyd wrote: >Quoting Lina Iyer (2018-11-20 16:06:47) >> SDM845 SoC has an always-on interrupt controller (PDC) with select GPIO >> routed to the PDC as inte

Re: [LKP] [mm] ac5b2c1891: vm-scalability.throughput -61.3% regression

2018-11-27 Thread Michal Hocko
On Tue 27-11-18 19:17:27, Michal Hocko wrote: > On Tue 27-11-18 09:08:50, Linus Torvalds wrote: > > On Mon, Nov 26, 2018 at 10:24 PM kernel test robot > > wrote: > > > > > > FYI, we noticed a -61.3% regression of vm-scalability.throughput due > > > to commit ac5b2c18911f ("mm: thp: relax __GFP_THI

Re: [PATCH] arm64/bpf: use movn/movk/movk sequence to generate kernel addresses

2018-11-27 Thread Will Deacon
Hi Ard, On Fri, Nov 23, 2018 at 06:29:02PM +0100, Ard Biesheuvel wrote: > On arm64, all executable code is guaranteed to reside in the vmalloc > space (or the module space), and so jump targets will only use 48 > bits at most, and the remaining bits are guaranteed to be 0x1. > > This means we can

Re: [PATCH v2] panic: Add options to print system info when panic happens

2018-11-27 Thread Steven Rostedt
On Tue, 27 Nov 2018 15:15:20 +0800 Feng Tang wrote: > Kernel panic issues are always painful to debug, partially > because it's not easy to get enough information of the > context when panic happens. > > And we have ramoops and kdump for that, while this commit > tries to provide a easier way to

Re: [PATCH] arm64/bpf: use movn/movk/movk sequence to generate kernel addresses

2018-11-27 Thread Daniel Borkmann
On 11/27/2018 07:22 PM, Will Deacon wrote: > Hi Ard, > > On Fri, Nov 23, 2018 at 06:29:02PM +0100, Ard Biesheuvel wrote: >> On arm64, all executable code is guaranteed to reside in the vmalloc >> space (or the module space), and so jump targets will only use 48 >> bits at most, and the remaining b

Re: [for-next][PATCH 04/18] arm64: function_graph: Simplify with function_graph_entry()

2018-11-27 Thread Steven Rostedt
On Tue, 27 Nov 2018 18:07:23 + Will Deacon wrote: > On Wed, Nov 21, 2018 at 07:28:05PM -0500, Steven Rostedt wrote: > > From: "Steven Rostedt (VMware)" > > > > The function_graph_entry() function does the work of calling the function > > graph hook function and the management of the shadow

Re: [PATCH v2 3/3] perf report: Display average IPC and IPC coverage per symbol

2018-11-27 Thread Andi Kleen
On Tue, Nov 27, 2018 at 08:09:48PM +0800, Jin Yao wrote: > Support displaying the average IPC and IPC coverage for symbol > in perf report TUI browser. We create a new sort-key 'ipc' for > that. Another thing that would be nice would be to automatically enable these columns perf report when -b was

Re: [PATCH v10 1/7] interconnect: Add generic on-chip interconnect API

2018-11-27 Thread Joe Perches
On Tue, 2018-11-27 at 20:03 +0200, Georgi Djakov wrote: > This patch introduces a new API to get requirements and configure the > interconnect buses across the entire chipset to fit with the current > demand. trivial notes: > diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c

Re: [PATCH] tracing: Fix an off by one in __next()

2018-11-27 Thread Steven Rostedt
Doing the sweep of my INBOX, I came across this patch (it was sent while I was in the Alps :-) On Wed, 20 Jun 2018 14:08:00 +0300 Dan Carpenter wrote: > The > should be >= to prevent an off by one bug. Well, not really. > > >From reviewing the code, it seems possible for > stack_trace_ma

Re: [PATCH RESEND] bus: fsl-mc: explicitly define the fsl_mc_command endianness

2018-11-27 Thread gre...@linuxfoundation.org
On Thu, Nov 15, 2018 at 12:12:12PM +, Ioana Ciornei wrote: > Both the header and the command parameters of the fsl_mc_command are > 64-bit little-endian words. Use the appropriate type to explicitly > specify their endianness. > > Signed-off-by: Ioana Ciornei > Reviewed-by: Laurentiu Tudor >

Re: [PATCH 0/2] PCI/AER: Consistently use _OSC to determine who owns AER

2018-11-27 Thread Tyler Baicar
On Tue, Nov 27, 2018 at 1:32 PM Sinan Kaya wrote: > > On 11/27/2018 1:22 PM, alex_gagn...@dellteam.com wrote: > > On 11/20/2018 04:08 PM, Sinan Kaya wrote: > >> I followed the ASWG thread yesterday. There will be a meeting next week to > >> discuss this. > > > > Any updates on the meeting? > > > >

Re: [PATCH v2 1/4] x86/hyper-v: move synic/stimer control structures definitions to hyperv-tlfs.h

2018-11-27 Thread Roman Kagan
On Tue, Nov 27, 2018 at 02:10:49PM +0100, Vitaly Kuznetsov wrote: > Roman Kagan writes: > > On Mon, Nov 26, 2018 at 04:47:29PM +0100, Vitaly Kuznetsov wrote: > > I personally tend to prefer masks over bitfields, so I'd rather do the > > consolidation in the opposite direction: use the definitions

Re: [PATCH v3] i2c: mux: remove duplicated i2c_algorithm

2018-11-27 Thread Peter Rosin
On 2018-11-18 12:13, Luca Ceresoli wrote: > Hi Peter, > > On 10/10/18 17:48, Luca Ceresoli wrote: >> Hi Peter, >> >> On 08/10/2018 23:43, Peter Rosin wrote: >>> On 2018-10-03 17:19, Luca Ceresoli wrote: From: Luca Ceresoli i2c-mux instantiates one i2c_algorithm for each downstream

Re: ext4 file system corruption with v4.19.3 / v4.19.4

2018-11-27 Thread Rainer Fiebig
Am Dienstag, 27. November 2018, 15:48:19 schrieb Marek Habersack: > On 27/11/2018 15:32, Guenter Roeck wrote: > Hi, > > You might try to see if you have CONFIG_SCSI_MQ_DEFAULT=yes in your kernel > config. Starting with 4.19.1 it somehow interferes with ext4 and causes > problems similar to the one

[PATCH v3 1/2] drivers: thermal: Move various drivers for intel platforms into a subdir

2018-11-27 Thread Amit Kucheria
This cleans up the directory a bit, now that we have several other platforms using platform-specific sub-directories. Compile-tested with ARCH=x86 defconfig and the drivers explicitly enabled with menuconfig. Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano --- drivers/thermal/Kconfig

[PATCH v3 0/2] driver: thermal: Move some drivers into subdirs

2018-11-27 Thread Amit Kucheria
Move the various drivers for Intel platforms into their own subdir. Also consolidate Qualcomm drivers into the qcom subdir. This cleans up the directory making it easier to find things. There is no great time to send patches that move files around. So here's an attempt to sneak it into 4.21 befor

[PATCH v3 2/2] drivers: thermal: Move QCOM_SPMI_TEMP_ALARM into the qcom subdir

2018-11-27 Thread Amit Kucheria
This cleans up the directory a bit allowing just one place to look for thermal related drivers for QCOM platforms instead of being scattered in the root directory and the qcom/ subdirectory. Compile-tested with ARCH=arm64 defconfig and the driver explicitly enabled with menuconfig. Signed-off-by:

Re: [PATCH v2 3/4] x86/kvm/hyper-v: direct mode for synthetic timers

2018-11-27 Thread Roman Kagan
On Tue, Nov 27, 2018 at 02:54:21PM +0100, Paolo Bonzini wrote: > On 27/11/18 09:37, Roman Kagan wrote: > > On Mon, Nov 26, 2018 at 05:44:24PM +0100, Paolo Bonzini wrote: > >> On 26/11/18 16:47, Vitaly Kuznetsov wrote: > >>> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > >>> index 5cd5647120

Re: [LKP] [mm] ac5b2c1891: vm-scalability.throughput -61.3% regression

2018-11-27 Thread Vlastimil Babka
On 11/27/18 6:08 PM, Linus Torvalds wrote: > On Mon, Nov 26, 2018 at 10:24 PM kernel test robot > wrote: >> >> FYI, we noticed a -61.3% regression of vm-scalability.throughput due >> to commit ac5b2c18911f ("mm: thp: relax __GFP_THISNODE for >> MADV_HUGEPAGE mappings") > > Well, that's certainly

Re: Sleeping in user_access section

2018-11-27 Thread H. Peter Anvin
On 11/23/18 3:57 AM, Julien Thierry wrote: > > On x86, the EFLAGS.AC bit is also saved upon exception and I think it is > cleared upon exception entry so there is implicit exit from the > user_access mode when taking exception/interrupt. > No, it is restored, not cleared. In summary: on excepti

Linux 4.14.84

2018-11-27 Thread Greg KH
I'm announcing the release of the 4.14.84 kernel. All users of the 4.14 kernel series must upgrade. The updated 4.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.14.84

2018-11-27 Thread Greg KH
diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 9841bad6f271..99a08722124d 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -1011,7 +1011,7 @@

Re: Linux 4.19.5

2018-11-27 Thread Greg KH
diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 92eb1f42240d..fa4eec22816d 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -1063,7 +1063,7 @@

Linux 4.19.5

2018-11-27 Thread Greg KH
I'm announcing the release of the 4.19.5 kernel. All users of the 4.19 kernel series must upgrade. The updated 4.19.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y and can be browsed at the normal kernel.org git web browser:

[PATCH V2] x86/resctrl: Fix rdt_last_cmd_printf() usage and typos within

2018-11-27 Thread Reinette Chatre
The last_cmd_status seq_buf contains user visible messages (accessed via /sys/fs/resctrl/info/last_cmd_status) that details any errors encountered while interacting with the resctrl filesystem. rdt_last_cmd_puts() and rdt_last_cmd_printf() are the two calls available to respectively print an unfor

Linux 4.9.141

2018-11-27 Thread Greg KH
I'm announcing the release of the 4.9.141 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.9.141

2018-11-27 Thread Greg KH
diff --git a/Makefile b/Makefile index a9aed2326233..8eba73521a7f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 140 +SUBLEVEL = 141 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/arm64/include/asm/percpu.h b/arch/arm64/include/asm/percpu.h

Re: Linux 3.18.127

2018-11-27 Thread Greg KH
diff --git a/Makefile b/Makefile index 14472990c4bd..7c78eb797de8 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 18 -SUBLEVEL = 126 +SUBLEVEL = 127 EXTRAVERSION = NAME = Diseased Newt diff --git a/arch/s390/kernel/vdso32/Makefile b/arch/s390/kernel/vdso32/Makefi

Re: Linux 4.4.165

2018-11-27 Thread Greg KH
diff --git a/.gitignore b/.gitignore index fd3a35592543..34fe1346aa87 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,7 @@ *.lzo *.patch *.gcno +*.ll modules.builtin Module.symvers *.dwo diff --git a/Kbuild b/Kbuild index f55cefd9bf29..f56ed561a284 100644 --- a/Kbuild +++ b/Kbuild @@ -6

Linux 4.4.165

2018-11-27 Thread Greg KH
I'm announcing the release of the 4.4.165 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

Linux 3.18.127

2018-11-27 Thread Greg KH
I'm announcing the release of the 3.18.127 kernel. All users of the 3.18 kernel series must upgrade. The updated 3.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y and can be browsed at the normal kernel.org git web browser

Re: [PATCH] docs/memory-barriers.txt: Enforce heavy ordering for port I/O accesses

2018-11-27 Thread Matthew Wilcox
On Tue, Nov 27, 2018 at 10:40:21AM -0800, Paul E. McKenney wrote: > On Mon, Nov 26, 2018 at 08:33:49PM +0100, Andrea Parri wrote: > > On Mon, Nov 26, 2018 at 04:52:14PM +, Will Deacon wrote: > > > David Laight explains: > > > > > > | A long time ago there was a document from Intel that said

[PATCH] dt-bindings: clock: Require #reset-cells in sdm845-videocc

2018-11-27 Thread Douglas Anderson
The #reset-cells was listed as optional in the bindings for qcom,sdm845-videocc. There's no reason for it to be optional. As per Stephen [1]: > We should update the binding to make it a required property. It > doesn't make any sense why that property would be optional given > that the hardware e

Re: [PATCH] arm64: dts: sdm845: Add videocc node

2018-11-27 Thread Doug Anderson
Hi, On Mon, Nov 26, 2018 at 10:57 PM Stephen Boyd wrote: > > > > + videocc: clock-controller@ab0 { > > > + compatible = "qcom,sdm845-videocc"; > > > + reg = <0xab0 0x1>; > > > + #clock-cells = <1>; > > > +

Re: [PATCH v3 05/13] i2c: acpi: Return error pointers from i2c_acpi_new_device()

2018-11-27 Thread Andy Shevchenko
On Tue, Nov 27, 2018 at 05:14:06PM +0100, Hans de Goede wrote: > On 27-11-18 16:37, Andy Shevchenko wrote: > > The caller would like to know the reason why the i2c_acpi_new_device() > > fails. > > For example, if adapter is not available, it might be in the future and we > > would like to re-probe

Re: [PATCH v5 0/2] media: platform: Add Aspeed Video Engine Driver

2018-11-27 Thread Eddie James
On 11/15/2018 03:20 AM, Hans Verkuil wrote: On 11/12/2018 10:00 PM, Eddie James wrote: From: Eddie James The Video Engine (VE) embedded in the Aspeed AST2400 and AST2500 SOCs can capture and compress video data from digital or analog sources. With the Aspeed chip acting as a service process

Re: [PATCH v3 05/13] i2c: acpi: Return error pointers from i2c_acpi_new_device()

2018-11-27 Thread Hans de Goede
Hi, On 27-11-18 20:27, Andy Shevchenko wrote: On Tue, Nov 27, 2018 at 05:14:06PM +0100, Hans de Goede wrote: On 27-11-18 16:37, Andy Shevchenko wrote: The caller would like to know the reason why the i2c_acpi_new_device() fails. For example, if adapter is not available, it might be in the futu

Re: [PATCH v2] perf: tests: Disable breakpoint tests on ARM (32-bit)

2018-11-27 Thread Will Deacon
On Mon, Nov 26, 2018 at 04:31:23PM -0800, Florian Fainelli wrote: > breakpoint tests on the ARM 32-bit kernel are broken in several ways. > > The breakpoint length requested does not necessarily match whether the > function address has the Thumb bit (bit 0) set or not, and this does > matter to th

Re: [RFC][PATCH 03/14] arm64: function_graph: Remove use of FTRACE_NOTRACE_DEPTH

2018-11-27 Thread Will Deacon
Hi Steve, On Wed, Nov 21, 2018 at 08:27:11PM -0500, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > The curr_ret_stack is no longer set to -1 when not tracing a function. It is > now done differently, and the FTRACE_NOTRACE_DEPTH value is no longer used. > Remove the reference to it.

Re: [PATCH 1/7] arm64: capabilities: Merge entries for ARM64_WORKAROUND_CLEAN_CACHE

2018-11-27 Thread Will Deacon
On Mon, Nov 26, 2018 at 03:09:56PM +, Suzuki K Poulose wrote: > On Mon, Nov 26, 2018 at 02:06:04PM +, Will Deacon wrote: > > On Mon, Nov 05, 2018 at 11:55:11AM +, Suzuki K Poulose wrote: > > > We have two entries for ARM64_WORKAROUND_CLEAN_CACHE capability : > > > > > > 1) ARM Errata 8

Re: [LKP] [mm] ac5b2c1891: vm-scalability.throughput -61.3% regression

2018-11-27 Thread Vlastimil Babka
On 11/27/18 8:05 PM, Vlastimil Babka wrote: > On 11/27/18 6:08 PM, Linus Torvalds wrote: >> On Mon, Nov 26, 2018 at 10:24 PM kernel test robot >> wrote: >>> >>> FYI, we noticed a -61.3% regression of vm-scalability.throughput due >>> to commit ac5b2c18911f ("mm: thp: relax __GFP_THISNODE for >>> M

Re: [PATCH V2] clk: tegra: Return the exact clock rate from clk_round_rate

2018-11-27 Thread Dmitry Osipenko
On 17.10.2018 1:47, Stephen Boyd wrote: > Quoting Robert Yang (2018-09-25 14:49:40) >> The current behavior is that clk_round_rate would return the same clock >> rate passed to it for valid PLL configurations. This change will return >> the exact rate the PLL will provide in accordance with clk API

[PATCH 1/2] preempt: Move PREEMPT_NEED_RESCHED definition into arch code

2018-11-27 Thread Will Deacon
PREEMPT_NEED_RESCHED is never used directly, so move it into the arch code where it can potentially be implemented using either a different bit in the preempt count or as an entirely separate entity. Cc: Robert Love Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Martin Schwidefsky Signed-off-by: W

[PATCH 2/2] arm64: preempt: Provide our own implementation of asm/preempt.h

2018-11-27 Thread Will Deacon
The asm-generic/preempt.h implementation doesn't make use of the PREEMPT_NEED_RESCHED flag, since this can interact badly with load/store architectures which rely on the preempt_count word being unchanged across an interrupt. However, since we're a 64-bit architecture and the preempt count is only

[PATCH 0/2] arm64: Only call into preempt_schedule() if need_resched()

2018-11-27 Thread Will Deacon
Hi all, This pair of patches improves our preempt_enable() implementation slightly on arm64 by making the resulting call to preempt_schedule() conditional on need_resched(), which is tracked in bit 32 of the preempt count. The logic is inverted so that we can detect the preempt count going to zero

[tip:x86/cache] x86/resctrl: Use rdt_last_cmd_puts() where possible

2018-11-27 Thread tip-bot for Reinette Chatre
Commit-ID: 456824896de2b68df40b3ea5777ef49dc6cc8fda Gitweb: https://git.kernel.org/tip/456824896de2b68df40b3ea5777ef49dc6cc8fda Author: Reinette Chatre AuthorDate: Tue, 27 Nov 2018 11:19:36 -0800 Committer: Borislav Petkov CommitDate: Tue, 27 Nov 2018 20:39:02 +0100 x86/resctrl: Use rd

Re: [RFC PATCH v4 01/13] ktask: add documentation

2018-11-27 Thread Pavel Machek
Hi! > Motivates and explains the ktask API for kernel clients. > > Signed-off-by: Daniel Jordan > --- > Documentation/core-api/index.rst | 1 + > Documentation/core-api/ktask.rst | 213 +++ > 2 files changed, 214 insertions(+) > create mode 100644 Documentation/co

Re: [RFC][PATCH 03/14] arm64: function_graph: Remove use of FTRACE_NOTRACE_DEPTH

2018-11-27 Thread Steven Rostedt
On Tue, 27 Nov 2018 19:31:50 + Will Deacon wrote: > Hi Steve, > > On Wed, Nov 21, 2018 at 08:27:11PM -0500, Steven Rostedt wrote: > > From: "Steven Rostedt (VMware)" > > > > The curr_ret_stack is no longer set to -1 when not tracing a function. It is > > now done differently, and the FTRAC

<    1   2   3   4   5   6   7   8   >