[tip:x86/urgent] x86/mm: Make set_pmd_at() paravirt aware

2019-02-09 Thread tip-bot for Juergen Gross
Commit-ID: 20e55bc17dd01f13cec0eb17e76e9511b23963ef Gitweb: https://git.kernel.org/tip/20e55bc17dd01f13cec0eb17e76e9511b23963ef Author: Juergen Gross AuthorDate: Sun, 10 Feb 2019 08:40:56 +0100 Committer: Thomas Gleixner CommitDate: Sun, 10 Feb 2019 08:47:12 +0100 x86/mm: Make set_pmd_

[PATCH] x86: make set_pmd_at() paravirt aware

2019-02-09 Thread Juergen Gross
set_pmd_at() calls native_set_pmd() unconditionally on x86. This was fine as long as only huge page entries were written via set_pmd_at(), as Xen pv guests don't support those. Commit 2c91bd4a4e2e53 ("mm: speed up mremap by 20x on large regions") introduced a usage of set_pmd_at() possible on pv g

Re: [PATCH] kbuild: Disable extra debugging info in .s output

2019-02-09 Thread Masahiro Yamada
On Wed, Feb 6, 2019 at 7:49 PM Borislav Petkov wrote: > > On Sat, Feb 02, 2019 at 03:42:27PM +0100, Borislav Petkov wrote: > > On Sat, Feb 02, 2019 at 10:48:00PM +0900, Masahiro Yamada wrote: > > > '?=' is the same as '=' here. > > > > Sure but if the slowdown disappears, then make does something

[PATCH] irqchip/gic-v3-its: Avoid parsing _indirect_ twice for Device table

2019-02-09 Thread Zenghui Yu
In current logic, its_parse_indirect_baser() will be invoked twice when allocating Device tables. Add a *break* to omit the unnecessary and annoying (might be ...) invoking. Signed-off-by: Zenghui Yu --- drivers/irqchip/irq-gic-v3-its.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drive

Re: [GIT PULL] Thermal-SoC management fixes for v5.0-rc6

2019-02-09 Thread pr-tracker-bot
The pull request you sent on Sat, 9 Feb 2019 20:17:23 -0800: > git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/7ad915f5ebf5b9e7ca98a7048d8f84a631fe388b Thank you! -- Deet-doot-dot, I am a

Re: [PATCH net-next 10/16] rocker: Handle SWITCHDEV_PORT_ATTR_SET

2019-02-09 Thread Florian Fainelli
Le 2/9/19 à 10:21 AM, Jiri Pirko a écrit : > Sat, Feb 09, 2019 at 01:32:42AM CET, f.faine...@gmail.com wrote: >> Following patches will change the way we communicate getting or setting > > Just "setting", no "getting". > > >> a port's attribute and use a blocking notifier to perform those tasks.

[GIT PULL] Thermal-SoC management fixes for v5.0-rc6

2019-02-09 Thread Eduardo Valentin
Hello Linus, Please consider pulling from git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal fixes to receive Thermal-SoC Management fixes for v5.0-rc6 with top-most bf78f133cd39e0ed41551150909e41513958a738: thermal: cpu_cooling: Clarify error message (2019-02-05 15:5

Re: [PATCH] net/packet: fix 4gb buffer limit due to overflow check

2019-02-09 Thread David Miller
From: Kal Conley Date: Sat, 9 Feb 2019 21:37:00 +0100 > When calculating rb->frames_per_block * req->tp_block_nr the result > can overflow. Check it for overflow without limiting the total buffer > size to UINT_MAX. > > This change fixes support for packet ring buffers >= UINT_MAX. Please resu

[PATCH v7 12/13] selftests/resctrl: Disable MBA and MBM tests for AMD

2019-02-09 Thread Fenghua Yu
From: Babu Moger For now, disable MBA and MBM tests for AMD. Deciding test pass/fail is not clear right now. We can enable when we have some clarity. Signed-off-by: Babu Moger Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/cat_test.c | 2 +- tools/testing/selftests/resctrl

[PATCH v7 06/13] selftests/resctrl: Add MBM test

2019-02-09 Thread Fenghua Yu
From: Arshiya Hayatkhan Pathan MBM (Memory Bandwidth Monitoring) test is the first implemented selftest. It starts a stressful memory bandwidth benchmark and assigns the bandwidth pid in a resctrl monitoring group. Read and compare perf IMC counter and MBM total bytes for the benchmark. The numbe

[PATCH v7 00/13] selftests/resctrl: Add resctrl selftest

2019-02-09 Thread Fenghua Yu
With more and more resctrl features are being added by Intel, AMD and ARM, a test tool is becoming more and more useful to validate that both hardware and software functionalities work as expected. We introduce resctrl selftest to cover resctrl features on both X86 and ARM architectures. It first

[PATCH v7 03/13] selftests/resctrl: Read memory bandwidth from perf IMC counter and from resctrl file system

2019-02-09 Thread Fenghua Yu
From: Sai Praneeth Prakhya Total memory bandwidth can be monitored from perf IMC counter and from resctrl file system. Later the two will be compared to verify the total memory bandwidth read from resctrl is correct. Signed-off-by: Sai Praneeth Prakhya Signed-off-by: Arshiya Hayatkhan Pathan S

[PATCH v7 04/13] selftests/resctrl: Add callback to start a benchmark

2019-02-09 Thread Fenghua Yu
From: Sai Praneeth Prakhya The callback starts a child process and puts the child pid in created resctrl group with specified memory bandwidth in schemata. The child starts running benchmark. Signed-off-by: Sai Praneeth Prakhya Signed-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Fenghua Yu

[PATCH v7 11/13] selftests/resctrl: Use cache index3 id for AMD schemata masks

2019-02-09 Thread Fenghua Yu
From: Babu Moger AMD uses the cache l3 boundary for schemata masks. Update it accordigly. Signed-off-by: Babu Moger Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/resctrlfs.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/re

[PATCH v7 05/13] selftests/resctrl: Add built in benchmark

2019-02-09 Thread Fenghua Yu
From: Sai Praneeth Prakhya Built-in benchmark fill_buf generates stressful memory bandwidth and cache traffic. Later it will be used as a default benchmark by various resctrl tests such as MBA (Memory Bandwidth Allocation) and MBM (Memory Bandwidth Monitoring) tests. Signed-off-by: Sai Praneeth

[PATCH v7 01/13] selftests/resctrl: Add README for resctrl tests

2019-02-09 Thread Fenghua Yu
resctrl tests will be implemented. README is added for the tool first. Signed-off-by: Fenghua Yu Signed-off-by: Babu Moger --- tools/testing/selftests/resctrl/README | 54 ++ 1 file changed, 54 insertions(+) create mode 100644 tools/testing/selftests/resctrl/REA

[PATCH v7 13/13] selftests/resctrl: Add the test in MAINTAINERS

2019-02-09 Thread Fenghua Yu
The resctrl selftest will be maintained by RDT maintainers. Signed-off-by: Fenghua Yu Signed-off-by: Babu Moger --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9919840d54cd..40893bf1a083 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12826,6 +

[PATCH v7 09/13] selftests/resctrl: Add Cache Allocation Technology (CAT) selftest

2019-02-09 Thread Fenghua Yu
From: Arshiya Hayatkhan Pathan Cache Allocation Technology (CAT) selftest allocates a portion of last level cache and starts a benchmark to read each cache line in this portion of cache. Measure the cache misses in perf and the misses should be equal to the number of cache lines in this portion o

[PATCH v7 07/13] selftests/resctrl: Add MBA test

2019-02-09 Thread Fenghua Yu
From: Arshiya Hayatkhan Pathan MBA (Memory Bandwidth Allocation) test starts a stressful memory bandwidth benchmark and allocates memory bandwidth from 100% down to 10% for the benchmark process. For each allocation, compare perf IMC counter and mbm total bytes from resctrl. The difference betwee

[PATCH v7 10/13] selftests/resctrl: Add vendor detection mechanism

2019-02-09 Thread Fenghua Yu
From: Babu Moger RESCTRL feature is supported both on Intel and AMD now. Some features are implemented differently. Add vendor detection mechanism. Use the vendor check where there are differences. Signed-off-by: Babu Moger Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/resctrl

[PATCH v7 08/13] selftests/resctrl: Add Cache QoS Monitoring (CQM) selftest

2019-02-09 Thread Fenghua Yu
From: Arshiya Hayatkhan Pathan Cache QoS Monitoring (CQM) selftest starts stressful cache benchmark with specified size of memory to access the cache. Last Level cache occupancy reported by CQM should be close to the size of the memory. Signed-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Sai

[PATCH v7 02/13] selftests/resctrl: Add basic resctrl file system operations and data

2019-02-09 Thread Fenghua Yu
From: Sai Praneeth Prakhya The basic resctrl file system operations and data are added for future usage by resctrl selftest tool. Signed-off-by: Sai Praneeth Prakhya Signed-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Fenghua Yu Signed-off-by: Babu Moger --- tools/testing/selftests/resct

[PATCH] regulator: lp8788-buck: Convert to linear range

2019-02-09 Thread Axel Lin
linear range is suitable for this driver, let's convert it to linear range. Signed-off-by: Axel Lin --- drivers/regulator/lp8788-buck.c | 38 + 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/drivers/regulator/lp8788-buck.c b/drivers/regulator/lp87

Re: [RFC PATCH 4/4] mm: Add merge page notifier

2019-02-09 Thread Michael S. Tsirkin
On Mon, Feb 04, 2019 at 10:15:58AM -0800, Alexander Duyck wrote: > From: Alexander Duyck > > Because the implementation was limiting itself to only providing hints on > pages huge TLB order sized or larger we introduced the possibility for free > pages to slip past us because they are freed as so

Re: [RFC PATCH 0/4] kvm: Report unused guest pages to host

2019-02-09 Thread Michael S. Tsirkin
On Mon, Feb 04, 2019 at 10:15:33AM -0800, Alexander Duyck wrote: > This patch set provides a mechanism by which guests can notify the host of > pages that are not currently in use. Using this data a KVM host can more > easily balance memory workloads between guests and improve overall system > perf

Re: [PATCH tip/core/rcu 0/19] SPDX changes for v5.1

2019-02-09 Thread Paul E. McKenney
On Sat, Feb 09, 2019 at 08:47:48AM +0100, Thomas Gleixner wrote: > On Wed, 6 Feb 2019, Paul E. McKenney wrote: > > > > This series makes SPDX and email-address changes to RCU source files. > > Reviewed-by: Thomas Gleixner Applied, thank you! > > 26 files changed, 56 insertions(+), 394 deletio

Re: [RFC PATCH 3/4] kvm: Add guest side support for free memory hints

2019-02-09 Thread Michael S. Tsirkin
On Mon, Feb 04, 2019 at 10:15:52AM -0800, Alexander Duyck wrote: > From: Alexander Duyck > > Add guest support for providing free memory hints to the KVM hypervisor for > freed pages huge TLB size or larger. I am restricting the size to > huge TLB order and larger because the hypercalls are too e

Re: [RFC PATCH 2/4] kvm: Add host side support for free memory hints

2019-02-09 Thread Michael S. Tsirkin
On Mon, Feb 04, 2019 at 10:15:46AM -0800, Alexander Duyck wrote: > From: Alexander Duyck > > Add the host side of the KVM memory hinting support. With this we expose a > feature bit indicating that the host will pass the messages along to the > new madvise function. > > This functionality is mut

Re: [RFC][Patch v8 6/7] KVM: Enables the kernel to isolate and report free pages

2019-02-09 Thread Michael S. Tsirkin
On Fri, Feb 08, 2019 at 02:05:09PM -0800, Alexander Duyck wrote: > On Fri, Feb 8, 2019 at 1:38 PM Michael S. Tsirkin wrote: > > > > On Fri, Feb 08, 2019 at 03:41:55PM -0500, Nitesh Narayan Lal wrote: > > > >> I am also planning to try Michael's suggestion of using MAX_ORDER - 1. > > > >> However I

Re: [PATCH 1/3] x86/mpx: tweak header name

2019-02-09 Thread Michael S. Tsirkin
On Fri, Feb 08, 2019 at 10:52:32PM +0100, Borislav Petkov wrote: > On Fri, Feb 08, 2019 at 04:43:37PM -0500, Michael S. Tsirkin wrote: > > Coding style violation: if a linux/foo.h exists then it must > > be included in preference to asm/foo.h > > > > And the specific issue is that a follow-up patc

Re: [PATCH] iio:potentiostat:lmp91000: solve codestyle WARNINGs and CHECKs

2019-02-09 Thread Lucas Oshiro
Thanks! I'll send those changes in my next patchset. On 02/02/2019 08:00, Jonathan Cameron wrote: On Fri, 1 Feb 2019 12:29:11 -0200 LSO wrote: Thanks for the review! On 29/01/2019 20:48, Joe Perches wrote: On Tue, 2019-01-29 at 16:36 -0200, Lucas Oshiro wrote: Solve most of the checkpatch.

Re: [Breakage] Git v2.21.0-rc0 - t5318 (NonStop)

2019-02-09 Thread Jeff King
On Sat, Feb 09, 2019 at 09:39:43AM +0100, Johannes Sixt wrote: > > Great. Since it sounds like you're preparing some patches to deal with > > /dev/zero elsewhere, do you want to wrap it up in a patch as part of > > that? > > Please do not use yes to generate an infinite amount of bytes. Our > imp

Re: [PATCH net] sctp: make sctp_setsockopt_events() less strict about the option length

2019-02-09 Thread David Miller
From: Marcelo Ricardo Leitner Date: Wed, 6 Feb 2019 18:37:54 -0200 > On Wed, Feb 06, 2019 at 12:14:30PM -0800, Julien Gomes wrote: >> Make sctp_setsockopt_events() able to accept sctp_event_subscribe >> structures longer than the current definitions. >> >> This should prevent unjustified setsock

[PATCH v2 5/5] ARM: warn if divided syntax assembler is used

2019-02-09 Thread Stefan Agner
Remove the -mno-warn-deprecated assembler flag to make sure the GNU assembler warns in case non-unified syntax is used. Signed-off-by: Stefan Agner --- Changes in v2: - Remove AFLAGS_NOWARN from CFLAGS_ISA arch/arm/Makefile | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --gi

[PATCH v2 3/5] ARM: use unified assembler in assembly files

2019-02-09 Thread Stefan Agner
Use unified assembler syntax (UAL) in assembly files. Divided syntax is considered deprecated. This will also allow to build the kernel using LLVM's integrated assembler. Signed-off-by: Stefan Agner --- arch/arm/boot/bootp/init.S| 2 +- arch/arm/boot/compressed/ll_char_wr.S

[PATCH v2 4/5] ARM: use unified assembler in c files

2019-02-09 Thread Stefan Agner
Use unified assembler syntax (UAL) in inline assembler. Divided syntax is considered deprecated. This will also allow to build the kernel using LLVM's integrated assembler. Signed-off-by: Stefan Agner --- Changes in v2: - Force unified syntax for inline assembler using .syntax unified arch/arm/

[PATCH v2 0/5] ARM: convert to unified syntax

2019-02-09 Thread Stefan Agner
This patchset converts all assembly code to unified assembler language (UAL) compatible assembly code. From what I can tell, this mainly boils down to using conditional infixes instead of postfixes. Most of the conversion has been done using the following regular expression: find ./arch/arm/ -na

[PATCH v2 2/5] ARM: use unified assembler in headers

2019-02-09 Thread Stefan Agner
Use unified assembler syntax (UAL) in headers. Divided syntax is considered deprecated. This will also allow to build the kernel using LLVM's integrated assembler. Signed-off-by: Stefan Agner --- Changes in v2: - Remove excessive null tokens - Move t token before conditional token arch/arm/incl

[PATCH v2 1/5] ARM: use unified assembler in macros

2019-02-09 Thread Stefan Agner
Use unified assembler syntax (UAL) in macros. Divided syntax is considered deprecated. This will also allow to build the kernel using LLVM's integrated assembler. Signed-off-by: Stefan Agner --- Changes in v2: - Remove excessive null tokens arch/arm/lib/copy_from_user.S | 2 +- arch/arm/lib/cop

Re: [PATCH 2/5] ARM: use unified assembler in headers

2019-02-09 Thread Stefan Agner
On 07.02.2019 17:10, Nicolas Pitre wrote: > On Thu, 7 Feb 2019, Stefan Agner wrote: > >> Use unified assembler syntax (UAL) in headers. Divided syntax is >> considered depricated. This will also allow to build the kernel >> using LLVM's integrated assembler. >> >> Signed-off-by: Stefan Agner >> -

[PATCH 2/2] mfd: Add leds MFD cell for intel_soc_pmic_chtwc

2019-02-09 Thread Yauhen Kharuzhy
Add MFD cell for LEDs driver to the Intel Cherry Trail Whiskey Cove PMIC mfd device driver. Signed-off-by: Yauhen Kharuzhy --- drivers/mfd/intel_soc_pmic_chtwc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/intel_soc_pmic_chtwc.c b/drivers/mfd/intel_soc_pmic_chtwc.c index 6

[PATCH 1/2] leds: Add Intel Cherry Trail Whiskey Cove PMIC LEDs

2019-02-09 Thread Yauhen Kharuzhy
Add support for LEDs connected to the Intel Cherry Trail Whiskey Cove PMIC. Charger and general-purpose leds are supported. Hardware blinking is implemented, breathing is not. This driver was tested with Lenovo Yoga Book notebook. Signed-off-by: Yauhen Kharuzhy --- drivers/leds/Kconfig

[PATCH 0/2] Intel Cherry Trail Whiskey Cove LEDs support

2019-02-09 Thread Yauhen Kharuzhy
This patch series introduces new driver for controlling LEDs connected to Intel Cherry Trail Whiskey Cove PMIC (general-purpose LED and charger status led). Only simple 'always on' and blinking modes are supported for now, no breathing. Driver was tested only with Lenovo Yoga Book notebook, and I

Re: [PATCH 0/4] crypto: caam - add ecb mode support

2019-02-09 Thread Eric Biggers
Hi Iuliana, On Fri, Feb 08, 2019 at 03:50:06PM +0200, Iuliana Prodan wrote: > This patch set adds ecb mode support for aes, des, 3des and arc4 ciphers. > skcipher implementation is reused, making sure to handle the no IV case. > > While here: > -fix a DMA API issue where initial src/dst_nents are

Re: [PULL REQUEST] i2c for v5.0

2019-02-09 Thread pr-tracker-bot
The pull request you sent on Sat, 9 Feb 2019 22:32:59 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-current has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/df3865f8f56879b7e9f0ca47fa7bc5f2252df6d3 Thank you! -- Deet-doot-dot, I am a bot

Re: [RFC PATCH 1/4] X.509: Parse public key parameters from x509 for akcipher

2019-02-09 Thread Vitaly Chikunov
On Sun, Jan 06, 2019 at 04:36:05PM +0300, Vitaly Chikunov wrote: > Some public key algorithms (like ECDSA) keep in parameters field > important data such as digest and curve OIDs (possibly more for > different ECDSA variants). Thus, just setting a public key (as > for RSA) is not enough. > > Intro

Re: [PATCH v3 0/5]

2019-02-09 Thread Andrew Lunn
On Fri, Feb 08, 2019 at 05:11:56PM +0100, Federico Vaga wrote: > This patch set provides improvements to the i2c-ocore driver. Hi Federico Please could you fixup the SPDX patch, add my review/tested by tags, and i think we are good to go. Thanks Andrew

[PULL REQUEST] i2c for v5.0

2019-02-09 Thread Wolfram Sang
Linus, I2C has for you: one PM related driver bugfix and a MAINTAINERS update. Please pull. Thanks, Wolfram The following changes since commit 8834f5600cf3c8db365e18a3d5cac2c2780c81e5: Linux 5.0-rc5 (2019-02-03 13:48:04 -0800) are available in the git repository at: git://git.kerne

Re: [PATCH v3 3/5] i2c:ocores: add polling interface

2019-02-09 Thread Andrew Lunn
> +static int ocores_poll_wait(struct ocores_i2c *i2c) > +{ > + u8 mask; > + int err; > + > + if (i2c->state == STATE_DONE || i2c->state == STATE_ERROR) { > + /* transfer is over */ > + mask = OCI2C_STAT_BUSY; > + } else { > + /* on going transfer

Re: [PATCH v2 03/33] ARM: davinci: select GENERIC_IRQ_MULTI_HANDLER

2019-02-09 Thread David Lechner
On 2/8/19 11:34 AM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski In order to support SPARSE_IRQ we first need to make davinci use the generic irq handler for ARM. Translate the legacy assembly to C and put the irq handlers into their respective drivers (aintc and cp-intc). Signed-of

[PATCH 1/2] parport: daisy: use new parport device model

2019-02-09 Thread Sudip Mukherjee
Modify parport daisy driver to use the new parallel port device model. Signed-off-by: Sudip Mukherjee --- drivers/parport/daisy.c | 32 +++- drivers/parport/probe.c | 2 +- drivers/parport/share.c | 14 +- include/linux/parport.h | 3 +++ 4 files changed

[PATCH 2/2] parport_pc: fix find_superio io compare code, should use equal test.

2019-02-09 Thread Sudip Mukherjee
From: QiaoChong In the original code before 181bf1e815a2 the loop was continuing until it finds the first matching superios[i].io and p->base. But after 181bf1e815a2 the logic changed and the loop now returns the pointer to the first mismatched array element which is then used in get_superio_dma(

Re: [PATCH net-next 15/16] net: switchdev: Replace port attr set SDO with a notification

2019-02-09 Thread Jiri Pirko
Sat, Feb 09, 2019 at 01:36:18AM CET, f.faine...@gmail.com wrote: >On 2/8/19 4:32 PM, Florian Fainelli wrote: >> Drop switchdev_ops.switchdev_port_attr_set. Drop the uses of this field >> from all clients, which were migrated to use switchdev notification in >> the previous patches. >> >> Add a new

Re: [GIT PULL] MIPS fixes for 5.0

2019-02-09 Thread pr-tracker-bot
The pull request you sent on Sat, 9 Feb 2019 19:42:37 +: > git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git > tags/mips_fixes_5.0_3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e8b50608f666cf5c314a9df3dc4b85789a6aeaa5 Thank you! -- Deet-doot-dot,

Re: [GIT PULL] mtd: Fixes for 5.0-rc6

2019-02-09 Thread pr-tracker-bot
The pull request you sent on Sat, 9 Feb 2019 11:14:54 +0100: > git://git.infradead.org/linux-mtd.git tags/mtd/fixes-for-5.0-rc6 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5610789ad08dacfd96fd684b53d7acd9e628ca20 Thank you! -- Deet-doot-dot, I am a bot. https://k

Re: [GIT PULL] xen: fixes for 5.0-rc6

2019-02-09 Thread pr-tracker-bot
The pull request you sent on Sat, 9 Feb 2019 15:35:32 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git > for-linus-5.0-rc6-tag has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/3e5e692fcd6ce0d63d8c9bd8677d9aaeec61d70e Thank you! -- Deet-doot-dot, I

[PATCH] net/packet: fix 4gb buffer limit due to overflow check

2019-02-09 Thread Kal Conley
When calculating rb->frames_per_block * req->tp_block_nr the result can overflow. Check it for overflow without limiting the total buffer size to UINT_MAX. This change fixes support for packet ring buffers >= UINT_MAX. --- net/packet/af_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

Re: [PATCH] s390/jump_label: Correct asm contraint

2019-02-09 Thread Laura Abbott
On 2/5/19 12:43 PM, Heiko Carstens wrote: On Tue, Jan 29, 2019 at 08:25:58AM +0100, Laura Abbott wrote: On 1/23/19 5:24 AM, Heiko Carstens wrote: On Wed, Jan 23, 2019 at 01:55:13PM +0100, Laura Abbott wrote: There's a build failure with gcc9: ./arch/s390/include/asm/jump_label.h: Assembler

Re: [PATCH 0/3] Clean the new GCC 9 -Wmissing-attributes warnings

2019-02-09 Thread Laura Abbott
On 2/9/19 12:08 AM, Miguel Ojeda wrote: The upcoming GCC 9 release extends the -Wmissing-attributes warnings (enabled by -Wall) to C and aliases: it warns when particular function attributes are missing in the aliases but not in their target, e.g.: void __cold f(void) {} void __alias("

Re: [PATCH v4 0/2] tpm: Unify send() callbacks

2019-02-09 Thread Jerry Snitselaar
On Fri Feb 08 19, Jarkko Sakkinen wrote: From: Jarkko Sakkinen A portion of send() callbacks have returned length, in many cases just returning back what was given as an argument, and tpm_crb has returned 0 on success. This patch set fixes and unifies the behaviour. v4: * Return zero already i

Re: [PATCH v4 1/2] tpm: Unify the send callback behaviour

2019-02-09 Thread Jerry Snitselaar
On Sat, Feb 9, 2019 at 11:20 AM Jerry Snitselaar wrote: > > On Fri Feb 08 19, Jarkko Sakkinen wrote: > >The send() callback should never return length as it does not in every > >driver except tpm_crb in the success case. The reason is that the main > >transmit functionality only cares about whethe

Re: [Xen-devel] Linux 5.0 regression: BUG: unable to handle kernel paging request at ffff888023e26778

2019-02-09 Thread Andrew Cooper
On 09/02/2019 18:54, Linus Torvalds wrote: > On Sat, Feb 9, 2019 at 12:24 AM Sander Eikelenboom > wrote: >> I haven't got a reproducer so i might be hard to hit it again, >> system is AMD and this is from the host kernel running under >> the Xen hypervisor might it matter. > I think this is a Xen

I NEED A TRUSTWORTHY PARTNER.

2019-02-09 Thread MRS. PRISCA LAMBERTH
-- Hello, Compliment of the season. My name is Mrs.Prisca Lamberth. i work with one of the reputable banks here in West Africa.I have a lucrative and profitable business to discuse with you. Reply if you are intersted for more details. Regards, Mrs.Prisca Lamberth

[GIT PULL] MIPS fixes for 5.0

2019-02-09 Thread Paul Burton
Hi Linus, Here's a batch of MIPS fixes for 5.0; my apologies that these have built up over a few busy weeks. Please pull. Thanks, Paul The following changes since commit 49a57857aeea06ca831043acbb0fa5e0f50602fd: Linux 5.0-rc3 (2019-01-21 13:14:44 +1300) are available in the Git repositor

Re: Linux 5.0-rc1

2019-02-09 Thread Paul Bolle
Linus Torvalds schreef op zo 06-01-2019 om 18:14 [-0800]: > Nothing particular stands out, although I do like > seeing how some ancient drivers are getting put out to pasture > (*cought*isdn*cough*). Just to let people know: the gigaset drivers will get my palliative care until a few weeks before

Re: [RFC] On the Current Troubles of Mainlining Loongson Platform Drivers

2019-02-09 Thread Paul Burton
Hi Tom, On Sat, Feb 09, 2019 at 06:11:33PM +0800, Tom Li wrote: > > To address the particular quote you give from Dmitry Torokhov on the > > yeeloong_hotkey driver - just because the driver as-is includes a bunch > > of non-input related things doesn't mean that it should or has to. From > > a loo

[PATCH v4 8/9] mtd: rawnand: ingenic: Add support for the JZ4725B

2019-02-09 Thread Paul Cercueil
The boot ROM of the JZ4725B SoC expects a specific OOB layout on the NAND, so we use it unconditionally in the ingenic-nand driver. Also add the jz4725b-bch driver to support the JZ4725B-specific BCH hardware. Signed-off-by: Paul Cercueil --- Changes: v2: Instead of forcing the OOB layout, lea

[PATCH v4 9/9] mtd: rawnand: ingenic: Add ooblayout for the Qi Ben Nanonote

2019-02-09 Thread Paul Cercueil
The Ben Nanonote from Qi Hardware expects a specific OOB layout on its NAND. Signed-off-by: Paul Cercueil --- Changes: v2: New patch v3: Use the qi,lb60 layout unconditionally if we detect that we're running on that board. v4: No change drivers/mtd/nand/raw/ingenic/ingenic_nand.c | 41 +

[PATCH v4 3/9] mtd: rawnand: Move drivers for Ingenic SoCs to subfolder

2019-02-09 Thread Paul Cercueil
Before adding support for more SoCs and seeing the number of files for these drivers grow, we move them to their own subfolder to keep it tidy. Signed-off-by: Paul Cercueil --- Changes: v2: New patch v3: No change v4: No change drivers/mtd/nand/raw/Kconfig | 14 +

[PATCH v4 4/9] mtd: rawnand: ingenic: Use SPDX license notifiers

2019-02-09 Thread Paul Cercueil
Use SPDX license notifiers instead of GPLv2 license text in the headers. Signed-off-by: Paul Cercueil Reviewed-by: Boris Brezillon --- v2: No changes v3: No changes v4: No changes drivers/mtd/nand/raw/ingenic/jz4780_bch.c | 5 + drivers/mtd/nand/raw/ingenic/jz4780_bch.h | 5 + dri

[PATCH v4 6/9] mtd: rawnand: ingenic: Separate top-level and SoC specific code

2019-02-09 Thread Paul Cercueil
The ingenic-nand driver uses an API provided by the jz4780-bch driver. This makes it difficult to support other SoCs in the jz4780-bch driver. To work around this, we separate the API functions from the SoC-specific code, so that these API functions are SoC-agnostic. Signed-off-by: Paul Cercueil

[PATCH v4 7/9] mtd: rawnand: ingenic: Add support for the JZ4740

2019-02-09 Thread Paul Cercueil
Add support for probing the ingenic-nand driver on the JZ4740 SoC from Ingenic, and the jz4740-ecc driver to support the JZ4740-specific ECC hardware. Signed-off-by: Paul Cercueil --- Changes: v2: New patch v3: Also add support for the hardware ECC of the JZ4740 in this patch v4: - Fix format

[PATCH v4 5/9] mtd: rawnand: ingenic: Rename jz4780_nand driver to ingenic_nand

2019-02-09 Thread Paul Cercueil
The jz4780_nand driver will be modified to handle all the Ingenic JZ47xx SoCs that the upstream Linux kernel supports (JZ4740, JZ4725B, JZ4770, JZ4780), so it makes sense to rename it. Signed-off-by: Paul Cercueil --- v3: New patch v4: No changes drivers/mtd/nand/raw/ingenic/Makefile

[PATCH v4 2/9] dt-bindings: mtd: ingenic: Change 'BCH' to 'ECC' in documentation

2019-02-09 Thread Paul Cercueil
The JZ4740 ECC hardware is not BCH but Reed-Solomon, so it makes more sense to use the more generic ECC term. Signed-off-by: Paul Cercueil --- Changes: v3: New patch v4: No change .../devicetree/bindings/mtd/ingenic,jz4780-nand.txt| 18 +- 1 file changed, 9 insertions(+),

[PATCH v4 1/9] dt-bindings: mtd: ingenic: Add compatible strings for JZ4740 and JZ4725B

2019-02-09 Thread Paul Cercueil
Add compatible strings to probe the jz4780-nand and jz4780-bch drivers from devicetree on the JZ4725B and JZ4740 SoCs from Ingenic. Signed-off-by: Paul Cercueil --- Changes: v2: - Change 'ingenic,jz4725b-nand' compatible string to 'ingenic,jz4740-nand' to reflect driver change - Add '

[PATCH] gpio: fix of_table.cocci warnings

2019-02-09 Thread Julia Lawall
From: kbuild test robot Make sure (of/i2c/platform)_device_id tables are NULL terminated Generated by: scripts/coccinelle/misc/of_table.cocci Fixes: cfa6215225c6 ("gpio: Add a Gateworks PLD GPIO driver") Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- tree: https://git.ke

Re: [PATCH][next] can: at91_can: mark expected switch fall-throughs

2019-02-09 Thread Sergei Shtylyov
On 02/08/2019 09:55 PM, Sergei Shtylyov wrote: >> In preparation to enabling -Wimplicit-fallthrough, mark switch >> cases where we are expecting to fall through. >> >> Notice that, in this particular case, the /* fall through */ >> comments are placed at the bottom of the case statement, which >>

Re: [PATCH] coccinelle: semantic patch for missing put_device()

2019-02-09 Thread Julia Lawall
On Sat, 9 Feb 2019, Wen Yang wrote: > The of_find_device_by_node() takes a reference to the underlying device > structure, we should release that reference. > Use this semantic patch, we've found some object reference leaks, > such as: > 11907e9d3533 ("ASoC: fsl-asoc-card: fix object reference

Re: Linux 5.0 regression: BUG: unable to handle kernel paging request at ffff888023e26778 RIP: e030:move_page_tables+0x7c1/0xae0

2019-02-09 Thread Juergen Gross
On 09/02/2019 19:51, Sander Eikelenboom wrote: > On 09/02/2019 19:48, Juergen Gross wrote: >> On 09/02/2019 19:45, Sander Eikelenboom wrote: >>> On 09/02/2019 09:26, Sander Eikelenboom wrote: L.S., While testing a Linux 5.0-rc5-ish kernel (pull of yesterday) with some addi

[PATCH AUTOSEL 4.20 09/42] cpufreq: check if policy is inactive early in __cpufreq_get()

2019-02-09 Thread Sasha Levin
From: Sudeep Holla [ Upstream commit 2f66196208c98b3d1b4294edffb2c5a8197be899 ] cpuinfo_cur_freq gets current CPU frequency as detected by hardware while scaling_cur_freq last known CPU frequency. Some platforms may not allow checking the CPU frequency of an offline CPU or the associated resourc

[PATCH AUTOSEL 4.20 13/42] irqchip/csky: fixup handle_irq_perbit break irq

2019-02-09 Thread Sasha Levin
From: Guo Ren [ Upstream commit 56752b21755aef598709d143684cb363db98a7d2 ] The handle_irq_perbit function loop every bit in hwirq local variable. handle_irq_perbit(hwirq) { for_everyt_bit_in(hwirq) { handle_domain_irq() ->irq_exit() ->invoke_softirq()

[PATCH AUTOSEL 4.20 11/42] csky: fixup CACHEV1 store instruction fast retire

2019-02-09 Thread Sasha Levin
From: Guo Ren [ Upstream commit 96354ad79e2e59f9d620669c8e1ac2452440c260 ] For I/O access, 810/807 store instruction fast retire will cause wrong primitive. For example: stw (clear interrupt source) stw (unmask interrupt controller) enable interrupt stw is fast retire i

[PATCH AUTOSEL 4.20 15/42] drm/bridge: tc358767: add bus flags

2019-02-09 Thread Sasha Levin
From: Tomi Valkeinen [ Upstream commit 4842379cbe6e851de914a7132f76f4e200b9a98b ] tc358767 driver does not set DRM bus_flags, even if it does configures the polarity settings into its registers. This means that the DPI source can't configure the polarities correctly. Add sync flags accordingly.

[PATCH AUTOSEL 4.20 14/42] drm/amd/powerplay: avoid possible buffer overflow

2019-02-09 Thread Sasha Levin
From: Evan Quan [ Upstream commit fff0d3f7686942bd544b53a48d1b76bd62c46946 ] Make sure the clock level enforced is within the allowed ranges. Signed-off-by: Evan Quan Reviewed-by: Alex Deucher Reviewed-by: Likun Gao Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/dr

[PATCH AUTOSEL 4.20 07/42] tools uapi: fix RISC-V 64-bit support

2019-02-09 Thread Sasha Levin
From: Aurelien Jarno [ Upstream commit d0df00e30e4bf9bc27ddbd092ad683ff6121b360 ] The BPF library is not built on 64-bit RISC-V, as the BPF feature is not detected. Looking more in details, feature/test-bpf.c fails to build with the following error: | In file included from /tmp/linux-4.19.12/t

[PATCH AUTOSEL 4.20 10/42] csky: fixup relocation error with 807 & 860

2019-02-09 Thread Sasha Levin
From: Guo Ren [ Upstream commit f553aa1c13cbc29aaf420349a28fc33ca98440e5 ] 810 doesn't support jsri instruction and csky-as will leave jsri + nop for relocation. Module-probe need replace them with lrw + jsr. Signed-off-by: Guo Ren Cc: Hui Kai Signed-off-by: Sasha Levin --- arch/csky/kernel

[PATCH AUTOSEL 4.20 05/42] perf test shell: Use a fallback to get the pathname in vfs_getname

2019-02-09 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit 03fa483821c0b4db7c2b1453d3332f397d82313f ] Some kernels, like 4.19.13-300.fc29.x86_64 in fedora 29, fail with the existing probe definition asking for the contents of result->name, working when we ask for the 'filename' variable instead, so add a

[PATCH AUTOSEL 4.20 06/42] soc: renesas: r8a774c0-sysc: Fix initialization order of 3DG-{A,B}

2019-02-09 Thread Sasha Levin
From: Biju Das [ Upstream commit a64597227d0de5610407fcc95dc835745a53f5d0 ] The workaround for the wrong hierarchy of the 3DG-{A,B} power domains on RZ/G2E ES1.0 corrected the parent domains. However, the 3DG-{A,B} power domains were still initialized and powered in the wrong order, causing 3DG

[PATCH AUTOSEL 4.20 03/42] perf stat: Fix endless wait for child process

2019-02-09 Thread Sasha Levin
From: Jin Yao [ Upstream commit 8a99255a50c0b4c2a449b96fd8d45fcc8d72c701 ] We hit a 'perf stat' issue by using following script: #!/bin/bash sleep 1000 & exec perf stat -a -e cycles -I1000 -- sleep 5 Since "perf stat" is launched by exec, the "sleep 1000" would be the child process of "

[PATCH AUTOSEL 4.20 18/42] drm/bridge: tc358767: fix initial DP0/1_SRCCTRL value

2019-02-09 Thread Sasha Levin
From: Tomi Valkeinen [ Upstream commit 9a63bd6fe1b5590ffa42ae2ed22ee21363293e31 ] Initially DP0_SRCCTRL is set to a static value which includes DP0_SRCCTRL_LANES_2 and DP0_SRCCTRL_BW27, even when only 1 lane of 1.62Gbps speed is used. DP1_SRCCTRL is configured to a magic number. This patch chan

[PATCH AUTOSEL 4.20 17/42] drm/bridge: tc358767: fix single lane configuration

2019-02-09 Thread Sasha Levin
From: Tomi Valkeinen [ Upstream commit 4d9d54a730434cc068dd3515ba6116697196f77b ] PHY_2LANE bit is always set in DP_PHY_CTRL, breaking 1 lane use. Set PHY_2LANE only when 2 lanes are used. Signed-off-by: Tomi Valkeinen Reviewed-by: Andrzej Hajda Signed-off-by: Andrzej Hajda Link: https://p

Re: [PATCH] iio: adc: ti-ads7950: add GPIO support

2019-02-09 Thread David Lechner
On 2/9/19 11:00 AM, Jonathan Cameron wrote: Nope. This is a state lock used to protect against transitions between different modes of the IIO device (buffered vs polled), it isn't suitable for general use. The driver should be modified to handle that correctly. We have iio_claim_direct_mode etc

[PATCH AUTOSEL 4.20 21/42] nvme-pci: use the same attributes when freeing host_mem_desc_bufs.

2019-02-09 Thread Sasha Levin
From: Liviu Dudau [ Upstream commit cc667f6d5de023ee131e96bb88e5cddca23272bd ] When using HMB the PCIe host driver allocates host_mem_desc_bufs using dma_alloc_attrs() but frees them using dma_free_coherent(). Use the correct dma_free_attrs() function to free the buffers. Signed-off-by: Liviu D

[PATCH AUTOSEL 4.20 19/42] drm/bridge: tc358767: reject modes which require too much BW

2019-02-09 Thread Sasha Levin
From: Tomi Valkeinen [ Upstream commit 51b9e62eb6950c762162ab7eb8390990179be067 ] The current driver accepts any videomode with pclk < 154MHz. This is not correct, as with 1 lane and/or 1.62Mbps speed not all videomodes can be supported. Add code to reject modes that require more bandwidth that

[PATCH AUTOSEL 4.20 22/42] nvme-pci: fix out of bounds access in nvme_cqe_pending

2019-02-09 Thread Sasha Levin
From: Hongbo Yao [ Upstream commit dcca1662727220d18fa351097ddff33f95f516c5 ] There is an out of bounds array access in nvme_cqe_peding(). When enable irq_thread for nvme interrupt, there is racing between the nvmeq->cq_head updating and reading. nvmeq->cq_head is updated in nvme_update_cq_hea

[PATCH AUTOSEL 4.20 26/42] drm/amdgpu: fix CPDMA hang in PRT mode for VEGA20

2019-02-09 Thread Sasha Levin
From: Tao Zhou [ Upstream commit 3e958fe67720b37d04ab8ef81b9d507a56a09bbc ] Fix CPDMA hang in PRT mode for both VEGA10 and VEGA20 Signed-off-by: Tao Zhou Tested-by: Yukun.Li Acked-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/gfx_v9

[PATCH AUTOSEL 4.20 28/42] drm/amdgpu: disable system memory page tables for now

2019-02-09 Thread Sasha Levin
From: Christian König [ Upstream commit 1c1eba86339c8517814863bc7dd21e2661a84e77 ] We hit a problem with IOMMU with that. Disable until we have time to debug further. Signed-off-by: Christian König Reviewed-by: Michel Dänzer Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- driver

[PATCH AUTOSEL 4.20 23/42] nvme-multipath: zero out ANA log buffer

2019-02-09 Thread Sasha Levin
From: Hannes Reinecke [ Upstream commit c7055fd15ff46d92eb0dd1c16a4fe010d58224c8 ] When nvme_init_identify() fails the ANA log buffer is deallocated but _not_ set to NULL. This can cause double free oops when this controller is deleted without ever being reconnected. Signed-off-by: Hannes Reine

[PATCH AUTOSEL 4.20 27/42] drm/amdgpu: set WRITE_BURST_LENGTH to 64B to workaround SDMA1 hang

2019-02-09 Thread Sasha Levin
From: Jim Qu [ Upstream commit 0c6c8125582714e1fd3544983eba3d750db0f5b8 ] effect asics: VEGA10 and VEGA12 Signed-off-by: Jim Qu Acked-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 3 ++- 1 file changed, 2 insertions(+),

[PATCH AUTOSEL 4.20 30/42] ARM: dts: da850-evm: Correct the sound card name

2019-02-09 Thread Sasha Levin
From: Peter Ujfalusi [ Upstream commit 7fca69d4e43fa1ae9cb4f652772c132dc5a659c6 ] To avoid the following error: asoc-simple-card sound: ASoC: Failed to create card debugfs directory Which is because the card name contains '/' character, which can not be used in file or directory names. Signed

  1   2   3   4   >