[PATCH 2/3] arm64: assign __NR_*_Linux_syscalls generated by the scripts

2019-01-03 Thread Firoz Khan
Assign the generated values - __NR_C32_Linux_syscalls and __NR_64_Linux_syscalls instead of __NR_compat_syscalls and __NR_syscalls respectively. It is better than hard coding it. One of the patch in the patch series will generate the headers and calculate the total number of syscalls that can be a

[PATCH 3/3] arm64: generate uapi and kapi headers

2019-01-03 Thread Firoz Khan
Unified system call table generation script need to be invoked to generated the uapi and kapi headers. The Makefile changes present in this patch will invoke the scripts and generate uapi and kapi header files. The generated files - unistd_*.h and syscall_table_*.h files will be included by unistd

Re: [RFC PATCH 2/2] PCI/portdrv Hisilicon PCIe transport layer Port PMU driver.

2019-01-03 Thread Will Deacon
On Tue, Dec 18, 2018 at 10:21:27AM +, Jonathan Cameron wrote: > On Mon, 17 Dec 2018 12:19:15 -0600 > Bjorn Helgaas wrote: > > Agreed. I could imagine a drivers/pci/pmu/ directory sort of like > > drivers/pci/switch/. > > That might work. Mark, Will what do you think? As long as you and Bjor

Re: tpm_tis TPM2.0 not detected on cold boot

2019-01-03 Thread Michael Niewöhner
On Thu, 2019-01-03 at 17:04 +0200, Jarkko Sakkinen wrote: > On Thu, Jan 03, 2019 at 02:38:11PM +0100, Michael Niewöhner wrote: > > On Thu, 2019-01-03 at 15:27 +0200, Jarkko Sakkinen wrote: > > > On Sun, Dec 23, 2018 at 12:55:12PM +0100, Michael Niewöhner wrote: > > > > There is another issue but I

Re: [PATCH v2 1/3] kasan, arm64: use ARCH_SLAB_MINALIGN instead of manual aligning

2019-01-03 Thread Will Deacon
On Wed, Jan 02, 2019 at 12:14:36PM -0800, Andrew Morton wrote: > On Wed, 2 Jan 2019 18:36:06 +0100 Andrey Konovalov > wrote: > > > Instead of changing cache->align to be aligned to KASAN_SHADOW_SCALE_SIZE > > in kasan_cache_create() we can reuse the ARCH_SLAB_MINALIGN macro. > > > > ... > > >

Re: [PATCH v4 0/5] BCM2835 PM driver

2019-01-03 Thread Stefan Wahren
Hi Eric, Am 13.12.2018 um 00:51 schrieb Eric Anholt: v4 adds the system-power-controller node to the binding as requested by Stefan. No driver changes are added to make the power controller behavior optional yet, since it's really unrelated to this series. apologize for my late reply. This wh

Re: [PATCH] tty/n_hdlc: fix sleep in !TASK_RUNNING state warning

2019-01-03 Thread Paul Fulghum
> On Jan 3, 2019, at 3:32 AM, Tetsuo Handa > wrote: > > On 2019/01/03 18:09, Jiri Slaby wrote: >> On 02. 01. 19, 16:04, Tetsuo Handa wrote: >>> + if (wait_event_interruptible(tty->read_wait, >>> +(ret = -EIO, test_bit(TTY_OTHER_CLOSED, &tty->flags)) || >>> +(ret = 0, tty_hun

Re: [RFC PATCH] ASoC: fsl: Add Audio Mixer CPU DAI driver

2019-01-03 Thread Viorel Suman
Hi Nicolin, Thank you for your feedback, same here - just back from vacation. On Jo, 2018-12-27 at 01:24 +0800, Nicolin Chen wrote: > Hi Viorel, > > Sorry for the late response, having been on a long vacation. > > The code looks pretty clean. Just some small concerns/questions > below. > > On

Re: [PATCH 0/4] Add driver for globaltop GNSS receivers

2019-01-03 Thread Loys Ollivier
As suggested by Neil Armstrong - this GNSS device seems to behave like most generic GNSS receivers. I'll send a v2 with a generic driver that works for both GlobalTop and u-blox. Please ignore this serie. Thanks, Loys Loys Ollivier writes: Hello ! This patch series adds a new GNSS dri

Re: [RFC,5/5] mfd: cros_ec: add EC host command support using rpmsg.

2019-01-03 Thread Enric Balletbo Serra
Hi, Many thanks for sending this. Please, add Guenter and me for next versions, we are interested in it, thanks :) Missatge de Pi-Hsun Shih del dia dc., 26 de des. 2018 a les 8:57: > > Add EC host command support through rpmsg. > > Signed-off-by: Pi-Hsun Shih > --- > drivers/mfd/cros_ec_dev.c

[PATCH 0/2] virtio: virtio_config_ops documentation

2019-01-03 Thread Cornelia Huck
After the latest virtio-balloon changes, it became clear that it is not obvious that some of the virtio operations (e.g. reading or writing the config space) cannot be done from an atomic context for all transports. At least try to document that, and also fix some inconsistencies I noticed along t

[PATCH 1/2] virtio: fix virtio_config_ops description

2019-01-03 Thread Cornelia Huck
- get_features has returned 64 bits since commit d025477368792 ("virtio: add support for 64 bit features.") - properly mark all optional callbacks Signed-off-by: Cornelia Huck --- include/linux/virtio_config.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/

[PATCH 2/2] virtio: document virtio_config_ops restrictions

2019-01-03 Thread Cornelia Huck
Some transports (e.g. virtio-ccw) implement virtio operations that seem to be a simple read/write as something more involved that cannot be done from an atomic context. Give at least a hint about that. Signed-off-by: Cornelia Huck --- include/linux/virtio_config.h | 5 + 1 file changed, 5 i

Re: [RFC,5/5] mfd: cros_ec: add EC host command support using rpmsg.

2019-01-03 Thread Guenter Roeck
On Thu, Jan 3, 2019 at 8:06 AM Enric Balletbo Serra wrote: > > Hi, > > Many thanks for sending this. Please, add Guenter and me for next > versions, we are interested in it, thanks :) > > Missatge de Pi-Hsun Shih del dia dc., 26 de des. > 2018 a les 8:57: > > > > Add EC host command support throu

[PATCH v2] memcg: localize memcg_kmem_enabled() check

2019-01-03 Thread Shakeel Butt
Move the memcg_kmem_enabled() checks into memcg kmem charge/uncharge functions, so, the users don't have to explicitly check that condition. This is purely code cleanup patch without any functional change. Only the order of checks in memcg_charge_slab() can potentially be changed but the functional

Re: [PATCH v3] driver core: platform: Add an error message to platform_get_irq*()

2019-01-03 Thread Stephen Boyd
Quoting Rafael J. Wysocki (2019-01-03 01:40:26) > On Wed, Jan 2, 2019 at 7:51 PM Stephen Boyd wrote: > > @@ -130,6 +125,22 @@ int platform_get_irq(struct platform_device *dev, > > unsigned int num) > > return r ? r->start : -ENXIO; > > #endif > > } > > + > > +/** > > + * platform_get_ir

[PATCH 2/2] tools iio: Override CFLAGS assignments

2019-01-03 Thread Jiri Olsa
So user could specify outside CFLAGS values. Cc: Andy Shevchenko Cc: Jonathan Cameron Cc: Hartmut Knaack Cc: Lars-Peter Clausen Signed-off-by: Jiri Olsa --- tools/iio/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/iio/Makefile b/tools/iio/Makefile index 33

[PATCH 1/2] tools thermal tmon: Use -O3 instead of -O1 if available

2019-01-03 Thread Jiri Olsa
Using -O3 instead of -O1 if it's supported by compiler. Cc: Brian Norris Cc: Zhang Rui Cc: Markus Mayer Signed-off-by: Jiri Olsa --- tools/thermal/tmon/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/thermal/tmon/Makefile b/tools/thermal/tmon/Makefile index

[PATCHv3 0/2] tools: Various build flags fixes

2019-01-03 Thread Jiri Olsa
hi, while hardening some of the tools rpm, we noticed we can't pass build flags to some of them. Sending separate tools fixes for what we found. It's mostly override for CFLAGS and adding LDFLAGS to the build commands. Any additional reviews would be great.. ;-) v3 changes: - 4 more patches a

Re: [PATCH ghak90 (was ghak32) V4 00/10] audit: implement container identifier

2019-01-03 Thread Guenter Roeck
Hi, On Tue, Jul 31, 2018 at 04:07:35PM -0400, Richard Guy Briggs wrote: > Implement kernel audit container identifier. > I don't see a follow-up submission of this patch series. Has it been abandoned, or do I use the wrong search terms ? Thanks, Guenter > This patchset is a fourth based on the

[PATCH fieldbus v6 0/6] Add Fieldbus subsystem + support HMS Profinet card

2019-01-03 Thread Sven Van Asbroeck
This patch: 1. adds a Fieldbus subsystem 2. adds support for the HMS Industrial Networks AB Profinet card. 1. Fieldbus subsystem - Fieldbus device (client) adapters allow data exchange with a PLC aka. "Fieldbus Controller" over a fieldbus (Profinet, FLNet, etc.) They are t

[PATCH fieldbus v6 1/6] fieldbus_dev: add Fieldbus Device subsystem.

2019-01-03 Thread Sven Van Asbroeck
Fieldbus device (client) adapters allow data exchange with a PLC aka. "Fieldbus Controller" over a fieldbus (Profinet, FLNet, etc.) They are typically used when a Linux device wants to expose itself as an actuator, motor, console light, switch, etc. over the fieldbus. This framework is designed t

[PATCH fieldbus v6 5/6] dt-bindings: Add vendor prefix for arcx / Archronix

2019-01-03 Thread Sven Van Asbroeck
From: Sven Van Asbroeck arcx Inc. is an engineering company which provides advanced embedded systems and consulting services. Archronix is a technology design and product engineering firm specializing in hardware control systems and enabling software. Clients include OEM's in the transportation,

[PATCH fieldbus v6 6/6] fieldbus_dev: support HMS Profinet IRT industrial controller

2019-01-03 Thread Sven Van Asbroeck
The Anybus-S PROFINET IRT communication module provides instant integration to any Ethernet based LAN via SMTP, FTP, HTTP as well as PROFINET and Modbus-TCP. Additional protocols can be implemented on top of TCP/IP or UDP using the transparent socket interface. Official documentation: https://www.

[PATCH fieldbus v6 4/6] dt-bindings: anybus-controller: document devicetree binding

2019-01-03 Thread Sven Van Asbroeck
From: Sven Van Asbroeck This patch adds devicetree binding documentation for the Arcx anybus controller. Signed-off-by: Sven Van Asbroeck --- .../fieldbus/arcx,anybus-controller.txt | 71 +++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/b

[PATCH fieldbus v6 2/6] anybus-s: support HMS Anybus-S bus

2019-01-03 Thread Sven Van Asbroeck
The Anybus-S/Anybus-M is a series of interchangeable fieldbus communication modules featuring on board memory and processing power. All software and hardware functionality required to communicate on the fieldbus is incorporated in the module itself, allowing the application to focus on other tasks.

[PATCH fieldbus v6 3/6] anybus-s: support the Arcx anybus controller

2019-01-03 Thread Sven Van Asbroeck
Add a driver for the Arcx anybus controller. This device implements two Anybus-S hosts (buses), and connects to the SoC via a parallel memory bus. There is also a CAN power readout, unrelated to the Anybus, modelled as a regulator. Signed-off-by: Sven Van Asbroeck --- drivers/fieldbus/Makefile

[PATCH] staging: wilc1000: define wilc_get_stats_async as static

2019-01-03 Thread Juan Manuel Torres Palma
Declare wilc_get_stats_async as static since it's only used within the definition file scope. Signed-off-by: Juan Manuel Torres Palma --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/dri

Re: [PATCH v2] netfilter: account ebt_table_info to kmemcg

2019-01-03 Thread Shakeel Butt
On Thu, Jan 3, 2019 at 2:15 AM William Kucharski wrote: > > > > > On Jan 2, 2019, at 8:14 PM, Shakeel Butt wrote: > > > > countersize = COUNTER_OFFSET(tmp.nentries) * nr_cpu_ids; > > - newinfo = vmalloc(sizeof(*newinfo) + countersize); > > + newinfo = __vmalloc(sizeof(*newinfo) + co

Re: [PATCH] Docs/kernel-api.rst: Remove removed blk-tag.c reference

2019-01-03 Thread Jonathan Corbet
On Tue, 1 Jan 2019 22:40:14 -0200 Marcos Paulo de Souza wrote: > After 7ca01926463a, legacy rq tagging was removed, so block/blk-tag.c > does not exists anymore. When generating pdfdocs, sphinx complains about > this missing file: > > Error: Cannot open file ./block/blk-tag.c > Error: Cannot op

Re: [PATCH] Documentation: rename addr_in_gen_pool to gen_pool_has_addr

2019-01-03 Thread Jonathan Corbet
On Sat, 29 Dec 2018 09:59:14 +0800 Huang Shijie wrote: > Update the document, since we have renamed addr_in_gen_pool to > gen_pool_has_addr. > > Signed-off-by: Huang Shijie So I was looking to apply this, but I don't see anywhere in mainline or -next where this change has been made...? Thanks

Re: [PATCH 2/2] virtio: document virtio_config_ops restrictions

2019-01-03 Thread Michael S. Tsirkin
On Thu, Jan 03, 2019 at 05:08:04PM +0100, Cornelia Huck wrote: > Some transports (e.g. virtio-ccw) implement virtio operations that > seem to be a simple read/write as something more involved that > cannot be done from an atomic context. > > Give at least a hint about that. > > Signed-off-by: Cor

Re: [alsa-devel] [PATCH v5 08/11] ASoC: Intel: atom: Make PCI dependency explicit

2019-01-03 Thread Pierre-Louis Bossart
arch/ia64/Kconfig:126:error: recursive dependency detected! arch/ia64/Kconfig:126:choice contains symbol IA64_HP_SIM arch/ia64/Kconfig:200:symbol IA64_HP_SIM is part of choice PM kernel/power/Kconfig:144:symbol PM is selected by PM_SLEEP kernel/power/Kconfig:104:symbol PM_SLEEP

Re: [PATCH v5 1/2] drm/amd: validate user pitch alignment

2019-01-03 Thread Michel Dänzer
On 2018-12-30 2:00 a.m., Yu Zhao wrote: > Userspace may request pitch alignment that is not supported by GPU. > Some requests 32, but GPU ignores it and uses default 64 when cpp is > 4. If GEM object is allocated based on the smaller alignment, GPU > DMA will go out of bound. > > Cc: sta...@vger.k

Re: possible deadlock in __wake_up_common_lock

2019-01-03 Thread Mel Gorman
On Wed, Jan 02, 2019 at 07:29:43PM +0100, Dmitry Vyukov wrote: > > > This wakeup_kswapd is new due to Mel's 1c30844d2dfe ("mm: reclaim small > > > amounts of memory when an external fragmentation event occurs") so CC Mel. > > > > > > > New year new bugs :( > > Old too :( > https://syzkaller.appspo

Re: [PATCH v2 1/7] sysfs/cpu: Add "Unknown" vulnerability state

2019-01-03 Thread Jeremy Linton
On 01/03/2019 03:38 AM, Greg Kroah-Hartman wrote: On Wed, Jan 02, 2019 at 06:49:15PM -0600, Jeremy Linton wrote: There is a lot of variation in the Arm ecosystem. Because of this, there exist possible cases where the kernel cannot authoritatively determine if a machine is vulnerable. Really?

Re: [PATCH v2 1/7] sysfs/cpu: Add "Unknown" vulnerability state

2019-01-03 Thread Dave Martin
On Wed, Jan 02, 2019 at 06:49:15PM -0600, Jeremy Linton wrote: > There is a lot of variation in the Arm ecosystem. Because of this, > there exist possible cases where the kernel cannot authoritatively > determine if a machine is vulnerable. > > Rather than guess the vulnerability status in cases w

Re: [PATCH v3] mm/page_owner: fix for deferred struct page init

2019-01-03 Thread Qian Cai
On 1/3/19 6:51 AM, Michal Hocko wrote: > On Thu 20-12-18 15:31:56, Qian Cai wrote: >> When booting a system with "page_owner=on", >> >> start_kernel >> page_ext_init >> invoke_init_callbacks >> init_section_page_ext >> init_page_owner >> init_early_allocated_pages >>

Re: [RFC,5/5] mfd: cros_ec: add EC host command support using rpmsg.

2019-01-03 Thread Enric Balletbo Serra
Hi Guenter, Missatge de Guenter Roeck del dia dj., 3 de gen. 2019 a les 17:08: > > On Thu, Jan 3, 2019 at 8:06 AM Enric Balletbo Serra > wrote: > > > > Hi, > > > > Many thanks for sending this. Please, add Guenter and me for next > > versions, we are interested in it, thanks :) > > > > Missatge

Re: [alsa-devel] [PATCH v1 3/3] ASoC: soc-core: fix platform name vs. of_node assignement

2019-01-03 Thread Jon Hunter
Hi Mark, Kuninori On 18/12/2018 17:40, Matthias Reichl wrote: > Hi Mark, > > On Sun, Oct 21, 2018 at 12:23:01PM +0100, Mark Brown wrote: >> On Fri, Oct 19, 2018 at 11:22:46AM +0100, Jon Hunter wrote: >> >>> Looking at snd_soc_init_platform(), it seems that the platform pointer >>> can be allocate

Re: [PATCH v1 1/2] virtio-balloon: tweak config_changed implementation

2019-01-03 Thread Michael S. Tsirkin
On Thu, Jan 03, 2019 at 01:31:01PM +0800, Wei Wang wrote: > virtio-ccw has deadlock issues with reading config registers inside the > interrupt context, so we tweak the virtballoon_changed implementation > by moving the config read operations into the related workqueue contexts. > > Signed-off-by:

Re: Shaohua Li

2019-01-03 Thread Jens Axboe
On 1/2/19 7:38 PM, Guoqing Jiang wrote: >> As you know, Shaohua acted as the maintainer for md. He remained >> dedicated to that through the difficult times. With his passing, we >> obviously have a void that needs to be filled. > > It is better if there is a small team to maintain md in future si

[PATCH] microblaze: no need to check return value of debugfs_create functions

2019-01-03 Thread Greg Kroah-Hartman
When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Cc: Michal Simek Cc: Rob Herring Signed-off-by: Greg Kroah-Hartman --- arch/microblaze/kernel/setup.c | 13 ++---

Re: [PATCH v2 1/7] sysfs/cpu: Add "Unknown" vulnerability state

2019-01-03 Thread Jeremy Linton
Hi, On 01/03/2019 10:37 AM, Dave Martin wrote: On Wed, Jan 02, 2019 at 06:49:15PM -0600, Jeremy Linton wrote: There is a lot of variation in the Arm ecosystem. Because of this, there exist possible cases where the kernel cannot authoritatively determine if a machine is vulnerable. Rather than

[PATCH] scsi: smartpqi_init: fix boolean expression in pqi_device_remove_start

2019-01-03 Thread Gustavo A. R. Silva
Fix boolean expression by using logical AND operator '&&' instead of bitwise operator '&'. This issue was detected with the help of Coccinelle. Fixes: 1e46731efd9c ("scsi: smartpqi: check for null device pointers") Signed-off-by: Gustavo A. R. Silva --- drivers/scsi/smartpqi/smartpqi_init.c | 2

Re: [PATCH] backlight: (adp8870) fix a missing check for adp8870_write

2019-01-03 Thread Daniel Thompson
On Tue, Dec 25, 2018 at 12:21:09AM -0600, Kangjie Lu wrote: > adp8870_write() may fail. This fix checks if adp8870_write fails, and if > so, returns its error code. > > Signed-off-by: Kangjie Lu > --- > drivers/video/backlight/adp8870_bl.c | 11 --- > 1 file changed, 8 insertions(+), 3 d

Re: [PATCH v2 1/7] sysfs/cpu: Add "Unknown" vulnerability state

2019-01-03 Thread Greg Kroah-Hartman
On Thu, Jan 03, 2019 at 10:38:16AM -0600, Jeremy Linton wrote: > On 01/03/2019 03:38 AM, Greg Kroah-Hartman wrote: > > On Wed, Jan 02, 2019 at 06:49:15PM -0600, Jeremy Linton wrote: > > > There is a lot of variation in the Arm ecosystem. Because of this, > > > there exist possible cases where the k

[PATCH] usercopy: Improve comments after reorder

2019-01-03 Thread Kees Cook
This updates the comments to better reflect the order and purpose of the checks. Signed-off-by: Kees Cook --- mm/usercopy.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mm/usercopy.c b/mm/usercopy.c index e9e9325f7638..726e570c9b9e 100644 --- a/mm/usercopy.c +++ b

Re: [PATCH v2] kmemleak: survive in a low-memory situation

2019-01-03 Thread Qian Cai
On 1/3/19 4:32 AM, Michal Hocko wrote: > On Wed 02-01-19 13:06:19, Qian Cai wrote: > [...] >> diff --git a/mm/kmemleak.c b/mm/kmemleak.c >> index f9d9dc250428..9e1aa3b7df75 100644 >> --- a/mm/kmemleak.c >> +++ b/mm/kmemleak.c >> @@ -576,6 +576,16 @@ static struct kmemleak_object *create_object(unsi

Re: [PATCH] arm64: Mirror arm for small unimplemented compat syscalls

2019-01-03 Thread Will Deacon
On Thu, Jan 03, 2019 at 11:50:12AM +, Dave Martin wrote: > On Thu, Jan 03, 2019 at 03:45:47PM +0800, Pi-Hsun Shih wrote: > > For syscall number smaller than 0xf, arm calls sys_ni_syscall > > instead of arm_syscall in arch/arm/kernel/entry-common.S, which returns > > -ENOSYS instead of raisi

Re: commit 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 breaks timer

2019-01-03 Thread H.J. Lu
On Sun, Dec 30, 2018 at 6:07 PM H.J. Lu wrote: > > On 4.19 branch, > > commit 82c8dbb376b9fa9b831c157cbb15664cb4a343e3 > Author: Thomas Gleixner > Date: Mon Dec 17 13:31:05 2018 +0100 > > posix-timers: Fix division by zero bug > > commit 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 upstream

Re: [RFC,5/5] mfd: cros_ec: add EC host command support using rpmsg.

2019-01-03 Thread Guenter Roeck
On Thu, Jan 3, 2019 at 8:39 AM Enric Balletbo Serra wrote: > > Hi Guenter, > > Missatge de Guenter Roeck del dia dj., 3 de gen. > 2019 a les 17:08: > > > > On Thu, Jan 3, 2019 at 8:06 AM Enric Balletbo Serra > > wrote: > > > > > > Hi, > > > > > > Many thanks for sending this. Please, add Guente

Re: [PATCH 2/3] mm: memcontrol: do not try to do swap when force empty

2019-01-03 Thread Yang Shi
On 1/2/19 1:45 PM, Shakeel Butt wrote: On Wed, Jan 2, 2019 at 12:06 PM Yang Shi wrote: The typical usecase of force empty is to try to reclaim as much as possible memory before offlining a memcg. Since there should be no attached tasks to offlining memcg, the tasks anonymous pages would hav

[PATCH] clk: imx: Remove Kconfig duplicate include

2019-01-03 Thread Abel Vesa
Commit d360b130e210f2 ("clk: imx: Make the i.MX8MQ CCM clock driver CLK_IMX8MQ dependant") introduced this dupplicate (and wrongfuly ordered). Fixes: d360b130e210f2 ("clk: imx: Make the i.MX8MQ CCM clock driver CLK_IMX8MQ dependant") Signed-off-by: Abel Vesa --- drivers/clk/Kconfig | 1 - 1 fi

Re: [PATCH v3] mm/page_owner: fix for deferred struct page init

2019-01-03 Thread Michal Hocko
On Thu 03-01-19 11:38:31, Qian Cai wrote: > On 1/3/19 6:51 AM, Michal Hocko wrote: > > On Thu 20-12-18 15:31:56, Qian Cai wrote: > >> When booting a system with "page_owner=on", > >> > >> start_kernel > >> page_ext_init > >> invoke_init_callbacks > >> init_section_page_ext > >>

Re: [PATCH v6 1/3] dt-bindings: thermal: Add binding document for SR thermal

2019-01-03 Thread Rob Herring
On Thu, 3 Jan 2019 14:25:32 +0530, Srinath Mannam wrote: > From: Pramod Kumar > > Add binding document for supported thermal implementation > in Stingray. > > Signed-off-by: Pramod Kumar > Signed-off-by: Srinath Mannam > Reviewed-by: Ray Jui > Reviewed-by: Scott Branden > --- > .../binding

Re: [PATCH] RCU/torture.txt: remove section MODULE PARAMETERS

2019-01-03 Thread Paul E. McKenney
On Thu, Jan 03, 2019 at 10:24:51PM +0800, Junchang Wang wrote: > The supported module parameters are detailed in both RCU/torture.txt and > admin-guide/kernel-parameters.txt, and the latter is actively maintained. > So this patch removes section MODULE PARAMETERS in torture.txt and > adds a refere

Re: [PATCH 2/3] mm: memcontrol: do not try to do swap when force empty

2019-01-03 Thread Shakeel Butt
On Thu, Jan 3, 2019 at 8:57 AM Yang Shi wrote: > > > > On 1/2/19 1:45 PM, Shakeel Butt wrote: > > On Wed, Jan 2, 2019 at 12:06 PM Yang Shi wrote: > >> The typical usecase of force empty is to try to reclaim as much as > >> possible memory before offlining a memcg. Since there should be no > >> a

Re: [PATCH 1/3] arm64: kprobes: Move extable address check into arch_prepare_kprobe()

2019-01-03 Thread James Morse
Hi! On 17/12/2018 06:40, Masami Hiramatsu wrote: > Move extable address check into arch_prepare_kprobe() from > arch_within_kprobe_blacklist(). I'm trying to work out the pattern for what should go in the blacklist, and what should be rejected by the arch code. It seems address-ranges should be

Re: [PATCH 2/3] arm64: kprobes: Remove unneeded RODATA check

2019-01-03 Thread James Morse
Hi! On 17/12/2018 06:41, Masami Hiramatsu wrote: > Remove unneeded RODATA check from arch_prepare_kprobe(). > > Since check_kprobe_address_safe() already ensured that > the probe address is in kernel text, we don't need to > check whether the address in RODATA or not. That must > be always false.

Re: [PATCH v2] kmemleak: survive in a low-memory situation

2019-01-03 Thread Michal Hocko
On Thu 03-01-19 11:51:57, Qian Cai wrote: > On 1/3/19 4:32 AM, Michal Hocko wrote: > > On Wed 02-01-19 13:06:19, Qian Cai wrote: > > [...] > >> diff --git a/mm/kmemleak.c b/mm/kmemleak.c > >> index f9d9dc250428..9e1aa3b7df75 100644 > >> --- a/mm/kmemleak.c > >> +++ b/mm/kmemleak.c > >> @@ -576,6 +5

Re: [v4 PATCH 1/2] mm: swap: check if swap backing device is congested or not

2019-01-03 Thread Yang Shi
On 1/2/19 3:00 PM, Daniel Jordan wrote: On Sun, Dec 30, 2018 at 12:49:34PM +0800, Yang Shi wrote: The test on my virtual machine with congested HDD shows long tail latency is reduced significantly. Without the patch page_fault1_thr-1490 [023] 129.311706: funcgraph_entry: #57377.796

Re: [v4 PATCH 2/2] mm: swap: add comment for swap_vma_readahead

2019-01-03 Thread Yang Shi
On 1/2/19 11:41 PM, Huang, Ying wrote: Yang Shi writes: swap_vma_readahead()'s comment is missed, just add it. Cc: Huang Ying Cc: Tim Chen Cc: Minchan Kim Signed-off-by: Yang Shi --- mm/swap_state.c | 17 + 1 file changed, 17 insertions(+) diff --git a/mm/swap_state

Re: [v4 PATCH 1/2] mm: swap: check if swap backing device is congested or not

2019-01-03 Thread Daniel Jordan
On Thu, Jan 03, 2019 at 09:10:13AM -0800, Yang Shi wrote: > How about the below description: > > The test with page_fault1 of will-it-scale (sometimes tracing may just show > runtest.py that is the wrapper script of page_fault1), which basically > launches NR_CPU threads to generate 128MB anonymou

Re: Bug report: unaligned access with ext4 encryption

2019-01-03 Thread Eric Biggers
On Sun, Dec 30, 2018 at 06:29:06PM +0200, Aaro Koskinen wrote: > Hi, > > When using ext4 encryption on SPARC, there's plenty of dmesg noise about > unaligned access: > > [ 167.269526] Kernel unaligned access at TPC[5497a0] > find_and_lock_process_key+0x80/0x120 > [ 167.270152] Kernel unaligned

Re: [PATCH v4 04/10] KVM/x86: intel_pmu_lbr_enable

2019-01-03 Thread Andi Kleen
> Yes, but then what happens? > > Fast forward to, say, 2021. You're decommissioning all Broadwell > servers in your data center. You have to migrate the running VMs off > of those Broadwell systems onto newer hardware. But, with the current > implementation, the migration cannot happen. So, what

RE: [RFC v4 0/3] pstore/rom: new support logger for block devices

2019-01-03 Thread Luck, Tony
I'm curious why you call this "pstore/rom" rather than the more descriptive "pstore/block". It looks to be a really good idea. I think you need to document how the "write" function for the block device must be written. Since pstore calls this at "panic" time, the write path: + Cannot allocate

Re: [PATCH v3] regmap: regmap-irq/gpio-max77620: add level-irq support

2019-01-03 Thread Charles Keepax
On Wed, Jan 02, 2019 at 09:42:51AM +0200, Matti Vaittinen wrote: > On Mon, Dec 31, 2018 at 07:11:27PM +, Mark Brown wrote: > > On Fri, Dec 28, 2018 at 10:05:33AM +0200, Matti Vaittinen wrote: > > > > > Last night - just when I was about to get some sleep - it stroke me. I > > > think the corre

Re: [PATCH] regmap: irq: Make IRQ type support optional

2019-01-03 Thread Charles Keepax
On Fri, Dec 28, 2018 at 12:16:17PM +, Vaittinen, Matti wrote: > Hello Charles, > > Sending this mail form outlook web interface - so I won't inline any code :/ > > From: Charles Keepax [ckee...@opensource.cirrus.com] > Sent: Friday, December 28, 2018 1:55 PM > > > On Fri, Dec 28, 2018 at 11:

Re: [PATCH v3] driver core: platform: Add an error message to platform_get_irq*()

2019-01-03 Thread Rafael J. Wysocki
On Thu, Jan 3, 2019 at 5:12 PM Stephen Boyd wrote: > > Quoting Rafael J. Wysocki (2019-01-03 01:40:26) > > On Wed, Jan 2, 2019 at 7:51 PM Stephen Boyd wrote: > > > @@ -130,6 +125,22 @@ int platform_get_irq(struct platform_device *dev, > > > unsigned int num) > > > return r ? r->start : -

RE: [PATCH] scsi: smartpqi_init: fix boolean expression in pqi_device_remove_start

2019-01-03 Thread Don.Brace
-Original Message- From: Gustavo A. R. Silva [mailto:gust...@embeddedor.com] Sent: Thursday, January 3, 2019 10:48 AM To: Mahesh Rajashekhara ; Don Brace ; James E.J. Bottomley ; Martin K. Petersen Cc: esc.storage...@microsemi.com; linux-s...@vger.kernel.org; linux-kernel@vger.kernel.o

Re: [PATCH v3] driver core: platform: Add an error message to platform_get_irq*()

2019-01-03 Thread Stephen Boyd
Quoting Rafael J. Wysocki (2019-01-03 09:22:56) > On Thu, Jan 3, 2019 at 5:12 PM Stephen Boyd wrote: > > > > I don't see much benefit to seeing -ENXIO or -EINVAL printed here, so I > > left out the error code. > > OK, so the value of the message is to tell the user that some driver > asked for an

Re: [PATCH] regmap: regmap-irq: silently ignore unsupported type settings

2019-01-03 Thread Charles Keepax
On Thu, Dec 27, 2018 at 10:44:43AM +0200, Matti Vaittinen wrote: > Do not return error if irq-type setting is requested for > controlloer which does not support this. This is how > regmap-irq has previously handled the undupported type > settings and existing drivers seem to be upset if failure > i

Re: [PATCH 2/2] virtio: document virtio_config_ops restrictions

2019-01-03 Thread Halil Pasic
On Thu, 3 Jan 2019 17:08:04 +0100 Cornelia Huck wrote: > Some transports (e.g. virtio-ccw) implement virtio operations that > seem to be a simple read/write as something more involved that > cannot be done from an atomic context. > > Give at least a hint about that. > > Signed-off-by: Cornelia

[PATCH] drm/amdgpu_vm: fix boolean expressions

2019-01-03 Thread Gustavo A. R. Silva
Fix boolean expressions by using logical AND operator '&&' instead of bitwise operator '&'. This issue was detected with the help of Coccinelle. Fixes: c8c5e569c5b0 ("drm/amdgpu: Consolidate visible vs. real vram check v2.") Cc: sta...@vger.kernel.org Signed-off-by: Gustavo A. R. Silva --- driv

Re: [RFC PATCH 0/3] mm: memcontrol: delayed force empty

2019-01-03 Thread Yang Shi
On 1/3/19 2:12 AM, Michal Hocko wrote: On Thu 03-01-19 04:05:30, Yang Shi wrote: Currently, force empty reclaims memory synchronously when writing to memory.force_empty. It may take some time to return and the afterwards operations are blocked by it. Although it can be interrupted by signal

Re: [PATCH 02/15] swiotlb: remove dma_mark_clean

2019-01-03 Thread Tony Luck
On Wed, Jan 2, 2019 at 11:23 PM Christoph Hellwig wrote: > I think something like the patch below should fix it: > > diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig > index ccd56f5df8cd..8d7396bd1790 100644 > --- a/arch/ia64/Kconfig > +++ b/arch/ia64/Kconfig > @@ -31,7 +31,7 @@ config IA64 >

Re: [PATCH ghak90 (was ghak32) V4 00/10] audit: implement container identifier

2019-01-03 Thread Richard Guy Briggs
On 2019-01-03 08:15, Guenter Roeck wrote: > Hi, > > On Tue, Jul 31, 2018 at 04:07:35PM -0400, Richard Guy Briggs wrote: > > Implement kernel audit container identifier. > > I don't see a follow-up submission of this patch series. Has it been > abandoned, > or do I use the wrong search terms ? G

Re: [PATCH v3] driver core: platform: Add an error message to platform_get_irq*()

2019-01-03 Thread Rafael J. Wysocki
On Thu, Jan 3, 2019 at 6:25 PM Stephen Boyd wrote: > > Quoting Rafael J. Wysocki (2019-01-03 09:22:56) > > On Thu, Jan 3, 2019 at 5:12 PM Stephen Boyd wrote: > > > > > > I don't see much benefit to seeing -ENXIO or -EINVAL printed here, so I > > > left out the error code. > > > > OK, so the value

Re: [PATCH v3] mm/page_owner: fix for deferred struct page init

2019-01-03 Thread Qian Cai
On 1/3/19 11:59 AM, Michal Hocko wrote: >> As mentioned above, "If deselected DEFERRED_STRUCT_PAGE_INIT, it is still >> better >> to call page_ext_init() earlier, so page owner could catch more early page >> allocation call sites." > > Do you have any numbers to show how many allocation are we lo

Re: [PATCH 1/2] dt-bindings: reset: Add document for Broadcom STB reset controller

2019-01-03 Thread Rob Herring
On Thu, Dec 20, 2018 at 05:34:08PM -0800, Florian Fainelli wrote: > Add a binding document for the Broadcom STB reset controller, also known > as SW_INIT-style reset controller. > > Signed-off-by: Florian Fainelli > --- > .../devicetree/bindings/reset/brcm,reset.txt | 27 +++ >

Re: [PATCH net-next] svcrdma: Fix an uninitialized variable false warning

2019-01-03 Thread Bart Van Assche
On Fri, 2018-12-28 at 10:36 -0500, Chuck Lever wrote: > > On Dec 20, 2018, at 4:49 AM, YueHaibing wrote: > > > > smatch warning this: > > net/sunrpc/xprtrdma/svc_rdma_rw.c:351 svc_rdma_post_chunk_ctxt() error: > > uninitialized symbol 'bad_wr' > > net/sunrpc/xprtrdma/verbs.c:1569 rpcrdma_post_re

Re: [PATCH net-next] net: hns3: Config NIC port speed same as that of optical module

2019-01-03 Thread dann frazier
On Wed, Jan 02, 2019 at 08:45:36PM +0800, lipeng (Y) wrote: > > > On 2019/1/1 9:22, dann frazier wrote: > > On Mon, Nov 26, 2018 at 06:43:00PM +, Salil Mehta wrote: > > > From: Peng Li > > > > > > Port 0/1 of HiP08 supports 10G and 25G. This patch adds a > > > change to configure NIC port s

[PATCH] soc: qcom: rpmh: Avoid accessing freed memory from batch API

2019-01-03 Thread Stephen Boyd
Using the batch API from the interconnect driver sometimes leads to a KASAN error due to an access to freed memory. This is easier to trigger with threadirqs on the kernel commandline. BUG: KASAN: use-after-free in rpmh_tx_done+0x114/0x12c Read of size 1 at addr fff51414ad84 by task irq/110-

Re: [PATCH 2/3] soc: qcom: Add AOSS QMP communication driver

2019-01-03 Thread Arun Kumar Neelakantam
On 12/27/2018 1:58 AM, Bjorn Andersson wrote: On Tue 20 Nov 04:22 PST 2018, Arun Kumar Neelakantam wrote: Thanks for the review Arun. On 11/12/2018 1:35 PM, Bjorn Andersson wrote: [..] +int qmp_send(struct qmp *qmp, const void *data, size_t len) +{ + int ret; + + if (WARN_ON(le

Re: [PATCH v3] driver core: platform: Add an error message to platform_get_irq*()

2019-01-03 Thread Andy Shevchenko
On Wed, Jan 2, 2019 at 8:51 PM Stephen Boyd wrote: > > A grep of the kernel shows that many drivers print an error message if > they fail to get the irq they're looking for. Furthermore, those drivers > all decide to print the device name, or not, and the irq they were > requesting, or not, etc. L

Re: [PATCH] arm64: Mirror arm for small unimplemented compat syscalls

2019-01-03 Thread Will Deacon
On Thu, Jan 03, 2019 at 04:51:44PM +, Will Deacon wrote: > On Thu, Jan 03, 2019 at 11:50:12AM +, Dave Martin wrote: > > On Thu, Jan 03, 2019 at 03:45:47PM +0800, Pi-Hsun Shih wrote: > > > For syscall number smaller than 0xf, arm calls sys_ni_syscall > > > instead of arm_syscall in arch/

Re: [PATCH] dma-mapping: remove unused attrs parameter to dma_common_get_sgtable

2019-01-03 Thread Stefano Stabellini
On Thu, 3 Jan 2019, Huaisheng Ye wrote: > From: Huaisheng Ye > > dma_common_get_sgtable has parameter attrs which is not used at all. > Remove it. > > Signed-off-by: Huaisheng Ye Acked-by: Stefano Stabellini FYI the patch doesn't apply cleanly to master. > --- > drivers/xen/swiotlb-xen.c

[PATCH 3/3] ASoC: xlnx: enable SPDIF driver build

2019-01-03 Thread Maruthi Srinivas Bayyavarapu
Added SPDIF driver build related changes. Signed-off-by: Maruthi Srinivas Bayyavarapu --- sound/soc/xilinx/Kconfig | 7 +++ sound/soc/xilinx/Makefile | 2 ++ 2 files changed, 9 insertions(+) diff --git a/sound/soc/xilinx/Kconfig b/sound/soc/xilinx/Kconfig index ac48d6a..47f606b9 100644 --

[PATCH 1/3] dt-bindings: ASoC: xlnx,spdif: Document spdif bindings

2019-01-03 Thread Maruthi Srinivas Bayyavarapu
Added documentation for SPDIF IP DT bindings. Signed-off-by: Maruthi Srinivas Bayyavarapu --- .../devicetree/bindings/sound/xlnx,spdif.txt | 28 ++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/xlnx,spdif.txt diff --git a

[PATCH 2/3] ASoC: xlnx: add SPDIF audio driver

2019-01-03 Thread Maruthi Srinivas Bayyavarapu
Added SPDIF audio driver. This provides playback and capture of AES audio over SPDIF interface. Signed-off-by: Maruthi Srinivas Bayyavarapu --- sound/soc/xilinx/xlnx_spdif.c | 339 ++ 1 file changed, 339 insertions(+) create mode 100644 sound/soc/xilinx/

[PATCH 0/3] add Xilinx SPDIF audio driver

2019-01-03 Thread Maruthi Srinivas Bayyavarapu
SPDIF IP supports playback and capture of audio in AES format. Each IP instance can only work in either transmit or receive mode exclusively. The patchset adds support for playback and capture functionality. Maruthi Srinivas Bayyavarapu (3): dt-bindings: ASoC: xlnx,spdif: Document spdif bindings

Re: [RFC v2 0/6] x86: dynamic indirect branch promotion

2019-01-03 Thread Josh Poimboeuf
On Mon, Dec 31, 2018 at 07:53:06PM +, Nadav Amit wrote: > > On Dec 31, 2018, at 11:51 AM, Andy Lutomirski wrote: > > > > On Sun, Dec 30, 2018 at 11:20 PM Nadav Amit wrote: > >> This is a revised version of optpolines (formerly named retpolines) for > >> dynamic indirect branch promotion in o

Re: [PATCH 0/1] RFC: Revamp admin-guide/tainted-kernels.rst to make it more comprehensible

2019-01-03 Thread Jonathan Corbet
Sorry for the delay in responding to this ... $EXCUSES ... On Fri, 21 Dec 2018 16:26:31 +0100 Thorsten Leemhuis wrote: > > Here's an idea if you feel like improving this: rather than putting an > > inscrutable program inline, add a taint_status script to scripts/ that > > prints out the status

Re: [RFC PATCH 0/3] mm: memcontrol: delayed force empty

2019-01-03 Thread Michal Hocko
On Thu 03-01-19 09:33:14, Yang Shi wrote: > > > On 1/3/19 2:12 AM, Michal Hocko wrote: > > On Thu 03-01-19 04:05:30, Yang Shi wrote: > > > Currently, force empty reclaims memory synchronously when writing to > > > memory.force_empty. It may take some time to return and the afterwards > > > opera

Re: [PATCH 2/3] mm: memcontrol: do not try to do swap when force empty

2019-01-03 Thread Yang Shi
On 1/3/19 9:03 AM, Shakeel Butt wrote: On Thu, Jan 3, 2019 at 8:57 AM Yang Shi wrote: On 1/2/19 1:45 PM, Shakeel Butt wrote: On Wed, Jan 2, 2019 at 12:06 PM Yang Shi wrote: The typical usecase of force empty is to try to reclaim as much as possible memory before offlining a memcg. Sinc

Re: [RFC PATCH] ASoC: fsl: Add Audio Mixer CPU DAI driver

2019-01-03 Thread Rob Herring
On Thu, Jan 3, 2019 at 9:59 AM Viorel Suman wrote: > > Hi Nicolin, > > Thank you for your feedback, same here - just back from vacation. > > On Jo, 2018-12-27 at 01:24 +0800, Nicolin Chen wrote: > > Hi Viorel, > > > > Sorry for the late response, having been on a long vacation. > > > > The code lo

Re: [PATCH] printk: Add caller information to printk() output.

2019-01-03 Thread Dmitry Vyukov
On Wed, Jan 2, 2019 at 5:09 PM Dmitry Vyukov wrote: > > On Tue, Dec 18, 2018 at 9:58 AM Sergey Senozhatsky > wrote: > > > > On (12/18/18 09:39), Petr Mladek wrote: > > > > > > Sergey, are you okay with this squashed patch, please? > > > > > > > Yeah. There are several minor nitpicks, but here is

Re: [PATCH v2 5/7] Input: dt-bindings: tm2-touchkey: Document new keycodes property

2019-01-03 Thread Rob Herring
On Fri, Dec 28, 2018 at 4:52 PM Dmitry Torokhov wrote: > > On Fri, Dec 28, 2018 at 2:47 PM Rob Herring wrote: > > > > On Fri, 28 Dec 2018 16:46:07 +0100, =?UTF-8?q?Pawe=C5=82=20Chmiel?= wrote: > > > From: Jonathan Bakker > > > > > > Document new optional property for setting custom keycodes. > >

Re: [RFC v2 0/6] x86: dynamic indirect branch promotion

2019-01-03 Thread Nadav Amit
> On Jan 3, 2019, at 10:10 AM, Josh Poimboeuf wrote: > > On Mon, Dec 31, 2018 at 07:53:06PM +, Nadav Amit wrote: >>> On Dec 31, 2018, at 11:51 AM, Andy Lutomirski wrote: >>> >>> On Sun, Dec 30, 2018 at 11:20 PM Nadav Amit wrote: This is a revised version of optpolines (formerly named

<    1   2   3   4   5   6   7   >