[PATCH net 3/3] net: stmmac: tc: Do not return a fragment entry

2019-08-06 Thread Jose Abreu
Do not try to return a fragment entry from TC list. Otherwise we may not clean properly allocated entries. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mail

[PATCH net 2/3] net: stmmac: Fix issues when number of Queues >= 4

2019-08-06 Thread Jose Abreu
When queues >= 4 we use different registers but we were not subtracting the offset of 4. Fix this. Found out by Coverity. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-

[PATCH net 1/3] net: stmmac: xgmac: Fix XGMAC selftests

2019-08-06 Thread Jose Abreu
Fixup the XGMAC selftests by correctly finishing the implementation of set_filter callback. Result: $ ethtool -t enp4s0 The test result is PASS The test extra info: 1. MAC Loopback 0 2. PHY Loopback -95 3. MMC Counters -95 4. EEE

[PATCH net 0/3] net: stmmac: Fixes for -net

2019-08-06 Thread Jose Abreu
Couple of fixes for -net. More info in commit log. --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.ke

Re: [PATCH] scsi: snic: remove redundant assignment to variable ret

2019-08-06 Thread Dan Carpenter
On Wed, Jul 31, 2019 at 11:49:50PM +0100, Colin King wrote: > From: Colin Ian King > > Variable ret is being assigned with a value that is never read as > there is return statement immediately afterwards. The assignment > is redundant and hence can be removed. > > Addresses-Coverity: ("Unused v

Re: [GIT PULL] regulator fixes for v5.3

2019-08-06 Thread Mark Brown
On Mon, Aug 05, 2019 at 11:42:29AM -0700, Linus Torvalds wrote: Adding Konstantin. > these got marked as spam once again, because > >dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org > > and I think it's because you have > >DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=rel

Re: [PATCH v1 2/2] net: npcm: add NPCM7xx EMC 10/100 Ethernet driver

2019-08-06 Thread Avi Fishman
Thanks for the input Willem, Before I will submit a new version please help me with some questions: On Thu, Aug 1, 2019 at 8:26 PM Willem de Bruijn wrote: > > On Thu, Aug 1, 2019 at 3:28 AM Avi Fishman wrote: > > > > EMC Ethernet Media Access Controller supports 10/100 Mbps and > > RMII. > > Th

Machine specific static mappings iotable_init(), are they required ?

2019-08-06 Thread Suniel Mahesh
Hi, I am trying to port a machine based on arm926 with MMU, having 64MB of RAM. I am trying to understand the difference between: machine specific static I/O mappings which are done via iotable_init() (done via callback .map_io in DT_MACHINE_START) and dynamic I/O mappings done via ioremap()

[PATCH v1] tracing: Be more clever when dumping hex in __print_hex()

2019-08-06 Thread Andy Shevchenko
Hex dump as many as 16 bytes at once in trace_print_hex_seq() instead of byte-by-byte approach. Signed-off-by: Andy Shevchenko --- kernel/trace/trace_output.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c index

[PATCH] Use kvmalloc in cgroups-v1

2019-08-06 Thread Marc Koderer
Instead of using its own logic for k-/vmalloc rely on kvmalloc which is actually doing quite the same. Signed-off-by: Marc Koderer --- kernel/cgroup/cgroup-v1.c | 27 --- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/kernel/cgroup/cgroup-v1.c b/kernel/cgr

Re: [RESEND V2 1/2] dt-bindings: Document the DesignWare IP reset bindings

2019-08-06 Thread Philipp Zabel
Hi Luis, On Tue, 2019-07-23 at 17:17 +0200, Luis Oliveira wrote: > This adds documentation of device tree bindings for the > DesignWare IP reset controller. > > Signed-off-by: Gustavo Pimentel > Signed-off-by: Luis Oliveira > Reviewed-by: Rob Herring Thank you, both applied to reset/next. re

Re: [PATCH 1/3] mm/migrate: clean up useless code in migrate_vma_collect_pmd()

2019-08-06 Thread Matthew Wilcox
This needs something beyond the subject line. Maybe ... After these assignments, we either restart the loop with a fresh variable, or we assign to the variable again without using the value we've assigned. Reviewed-by: Matthew Wilcox (Oracle) > goto next; >

Re: [PATCH 3/5] PCI / PM: Check for error when reading PME status

2019-08-06 Thread Bjorn Helgaas
On Mon, Aug 05, 2019 at 11:02:51PM +0200, Rafael J. Wysocki wrote: > On Mon, Aug 5, 2019 at 10:52 PM Bjorn Helgaas wrote: > > > > pci_check_pme_status() reads the Power Management capability to determine > > whether a device has generated a PME. The capability is in config space, > > which is acc

Re: [PATCH V2 7/9] vhost: do not use RCU to synchronize MMU notifier with worker

2019-08-06 Thread Michael S. Tsirkin
On Tue, Aug 06, 2019 at 08:53:17AM -0300, Jason Gunthorpe wrote: > On Sun, Aug 04, 2019 at 04:07:17AM -0400, Michael S. Tsirkin wrote: > > > > > Also, why can't this just permanently GUP the pages? In fact, where > > > > > does it put_page them anyhow? Worrying that 7f466 adds a get_user page > > >

Re: [PATCH V2 7/9] vhost: do not use RCU to synchronize MMU notifier with worker

2019-08-06 Thread Jason Gunthorpe
On Tue, Aug 06, 2019 at 09:36:58AM -0400, Michael S. Tsirkin wrote: > On Tue, Aug 06, 2019 at 08:53:17AM -0300, Jason Gunthorpe wrote: > > On Sun, Aug 04, 2019 at 04:07:17AM -0400, Michael S. Tsirkin wrote: > > > > > > Also, why can't this just permanently GUP the pages? In fact, where > > > > > >

Re: [PATCH] bonding: Add vlan tx offload to hw_enc_features

2019-08-06 Thread Jay Vosburgh
YueHaibing wrote: >As commit 30d8177e8ac7 ("bonding: Always enable vlan tx offload") >said, we should always enable bonding's vlan tx offload, pass the >vlan packets to the slave devices with vlan tci, let them to handle >vlan implementation. > >Now if encapsulation protocols like VXLAN is used,

[PATCH net-next v2 00/10] net: stmmac: Improvements for -next

2019-08-06 Thread Jose Abreu
Couple of improvements for -next tree. More info in commit logs. --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.infradead.org Cc: linux-

[PATCH net-next v2 08/10] net: stmmac: Implement Safety Features in XGMAC core

2019-08-06 Thread Jose Abreu
XGMAC also supports Safety Features. This patch implements the configuration and handling of this feature in XGMAC core. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st

[PATCH net-next v2 05/10] net: stmmac: selftests: Add RSS test

2019-08-06 Thread Jose Abreu
Add a test for RSS in the stmmac selftests. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.infradead.org Cc:

[PATCH net-next v2 02/10] net: stmmac: xgmac: Implement set_mtl_tx_queue_weight()

2019-08-06 Thread Jose Abreu
Implement the TX Queue Weight callback. In order for this to be active we also need to set ETS algorithm when configuring Queue. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc:

[PATCH net-next v2 10/10] net: stmmac: selftests: Add a selftest for Flexible RX Parser

2019-08-06 Thread Jose Abreu
Add a selftest for the Flexible RX Parser feature. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.infradead.

[PATCH net-next v2 04/10] net: stmmac: Implement RSS and enable it in XGMAC core

2019-08-06 Thread Jose Abreu
Implement the RSS functionality and add the corresponding callbacks in XGMAC core. Changes from v1: - Do not use magic constants (Jakub) - Use ethtool_rxfh_indir_default() (Jakub) Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "Da

[PATCH net-next v2 09/10] net: stmmac: Add Flexible RX Parser support in XGMAC

2019-08-06 Thread Jose Abreu
XGMAC cores also support the Flexible RX Parser feature. Add the support for it in the XGMAC core. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stor

[PATCH net-next v2 01/10] net: stmmac: xgmac: Implement MMC counters

2019-08-06 Thread Jose Abreu
Implement the MMC counters feature in XGMAC core. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.infradead.o

[PATCH net-next v2 07/10] net: stmmac: selftests: Add test for VLAN and Double VLAN Filtering

2019-08-06 Thread Jose Abreu
Add a selftest for VLAN and Double VLAN Filtering in stmmac. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.

[PATCH net-next v2 03/10] net: stmmac: xgmac: Implement tx_queue_prio()

2019-08-06 Thread Jose Abreu
Implement the TX Queue Priority callback in XGMAC core. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.infra

[PATCH net-next v2 06/10] net: stmmac: Implement VLAN Hash Filtering in XGMAC

2019-08-06 Thread Jose Abreu
Implement the VLAN Hash Filtering feature in XGMAC core. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.infr

Re: [PATCH] ata: rb532_cf: Fix unused variable warning in rb532_pata_driver_probe

2019-08-06 Thread Jens Axboe
On 8/6/19 1:08 AM, Gustavo A. R. Silva wrote: > Fix the following warning (Building: rb532_defconfig mips): > > drivers/ata/pata_rb532_cf.c: In function ‘rb532_pata_driver_remove’: > drivers/ata/pata_rb532_cf.c:161:24: warning: unused variable ‘info’ > [-Wunused-variable] >struct rb532_cf_inf

인사말

2019-08-06 Thread Mrs Jaimy Puno Pinto
-- 선의로 150 만 달러를 기부했습니다. 저는 Jaimy Puno Pinto 부인입니다. 자세한 내용은 여기로 문의 [jaimypu...@gmail.com]

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-08-06 Thread Aaron Lu
On Tue, Aug 06, 2019 at 08:24:17AM -0400, Vineeth Remanan Pillai wrote: > > > > > > I also think a way to make fairness per cookie per core, is this what you > > > want to propose? > > > > Yes, that's what I meant. > > I think that would hurt some kind of workloads badly, especially if > one tenan

Re: [PATCH net-next] net: can: Fix compiling warning

2019-08-06 Thread Dan Carpenter
On Fri, Aug 02, 2019 at 10:10:20AM +0200, Oliver Hartkopp wrote: > On 02/08/2019 05.36, Mao Wenan wrote: > > There are two warings in net/can, fix them by setting bcm_sock_no_ioctlcmd > > and raw_sock_no_ioctlcmd as static. > > > > net/can/bcm.c:1683:5: warning: symbol 'bcm_sock_no_ioctlcmd' was n

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-08-06 Thread Aaron Lu
On Mon, Aug 05, 2019 at 04:09:15PM -0400, Phil Auld wrote: > Hi, > > On Fri, Aug 02, 2019 at 11:37:15AM -0400 Julien Desfossez wrote: > > We tested both Aaron's and Tim's patches and here are our results. > > > > Test setup: > > - 2 1-thread sysbench, one running the cpu benchmark, the other one

Re: [PATCH 1/3] drm: add gem ttm helpers

2019-08-06 Thread Daniel Vetter
On Tue, Aug 06, 2019 at 03:34:52PM +0200, Gerd Hoffmann wrote: > Now with ttm_buffer_object being a subclass of drm_gem_object we can > easily lookup ttm_buffer_object for a given drm_gem_object, which in > turm allows to create common helper functions. This patch starts off > with dump mmap helpe

Re: [PATCH] sched: use rq_lock/unlock in online_fair_sched_group

2019-08-06 Thread Phil Auld
On Tue, Aug 06, 2019 at 03:03:34PM +0200 Peter Zijlstra wrote: > On Thu, Aug 01, 2019 at 09:37:49AM -0400, Phil Auld wrote: > > Enabling WARN_DOUBLE_CLOCK in /sys/kernel/debug/sched_features causes > > ISTR there were more issues; but it sure is good to start picking them > off. I haven't hit any

Re: [PATCH v9 04/11] x86/entry/64: Adapt assembly for PIE support

2019-08-06 Thread Steven Rostedt
On Mon, Aug 05, 2019 at 07:28:54PM +0200, Borislav Petkov wrote: > > 1: > > @@ -1571,7 +1572,8 @@ nested_nmi: > > pushq %rdx > > pushfq > > pushq $__KERNEL_CS > > - pushq $repeat_nmi > > + leaqrepeat_nmi(%rip), %rdx > > + pushq %rdx > > > > /* Put stack back */

RE: [Regression] Commit "nvme/pci: Use host managed power state for suspend" has problems

2019-08-06 Thread Mario.Limonciello
> -Original Message- > From: Rafael J. Wysocki > Sent: Monday, August 5, 2019 4:29 PM > To: Kai-Heng Feng > Cc: Rafael J. Wysocki; Limonciello, Mario; Keith Busch; Keith Busch; Christoph > Hellwig; Sagi Grimberg; linux-nvme; Linux PM; Linux Kernel Mailing List; > Rajat Jain > Subject: R

Re: [Regression] pcie_wait_for_link_delay (1132.853 ms @ 5039.414431)

2019-08-06 Thread Paul Menzel
Dear Mika, On 06.08.19 13:31, Mika Westerberg wrote: > On Tue, Aug 06, 2019 at 11:57:26AM +0200, Paul Menzel wrote: >> On 06.08.19 11:36, Mika Westerberg wrote: >>> +Nicholas and Matthias >>> >>> On Tue, Aug 06, 2019 at 11:20:37AM +0200, Paul Menzel wrote: >> Commit c2bf1fc2 (PCI: Add missi

[PATCH] sched/core: decrease rq->nr_uninterruptible before set_task_cpu

2019-08-06 Thread Cheng Jian
Migration may occur when wake up a process, so we must update the rq->nr_uninterruptible before set_task_cpu, otherwise we will decrease the nr_interuptible of the incorrect rq. Over time, it cause some rq accounting according to be too large, but others are negative. Also change the type of rq->n

Re: Regression due to d98849aff879 (dma-direct: handle DMA_ATTR_NO_KERNEL_MAPPING in common code)

2019-08-06 Thread Lucas Stach
Am Dienstag, den 06.08.2019, 16:04 +0200 schrieb Christoph Hellwig: > Ok, does this work? > > -- > From 34d35f335a98f515f2516b515051e12eae744c8d Mon Sep 17 00:00:00 2001 > > From: Christoph Hellwig > Date: Tue, 6 Aug 2019 14:33:23 +0300 > Subject: dma-direct: fix DMA_ATTR_NO_KERNEL_MAPPING > > T

Re: [PATCH] phy: ti: am654-serdes: fix an use-after-free in serdes_am654_clk_register()

2019-08-06 Thread Roger Quadros
On 08/07/2019 09:19, Wen Yang wrote: > The regmap_node variable is still being used in the syscon_node_to_regmap() > call after the of_node_put() call, which may result in use-after-free. > > Fixes: 71e2f5c5c224 ("phy: ti: Add a new SERDES driver for TI's AM654x SoC") > Signed-off-by: Wen Yang

[PATCH] PCI: use PCI_SRIOV_NUM_BARS in loops instead of PCI_IOV_RESOURCE_END

2019-08-06 Thread Denis Efremov
It's a general pattern to write loops with 'i < PCI_SRIOV_NUM_BARS' condition. This patch fixes remaining loops which violates this implicit agreement. Signed-off-by: Denis Efremov --- drivers/pci/iov.c | 4 ++-- drivers/pci/setup-bus.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletio

Re: [PATCH] locking/percpu_rwsem: Rewrite to not use rwsem

2019-08-06 Thread Boqun Feng
On Mon, Aug 05, 2019 at 05:43:28PM +0200, Peter Zijlstra wrote: > On Mon, Aug 05, 2019 at 10:58:13PM +0800, Boqun Feng wrote: > > On Mon, Aug 05, 2019 at 10:43:18PM +0800, Boqun Feng wrote: > > > On Mon, Aug 05, 2019 at 04:02:41PM +0200, Peter Zijlstra wrote: > > > [...] > > > > > > > > static i

Re: [Regression] pcie_wait_for_link_delay (1132.853 ms @ 5039.414431)

2019-08-06 Thread Mika Westerberg
On Tue, Aug 06, 2019 at 04:02:42PM +0200, Paul Menzel wrote: > >> How can I read out the delay from the system as done in? > > > > The delay is not system wide so it depends on the device. Typically it > > is 100ms but there is a way to shorten it using ACPI _DSM. > > Yeah, I know. I was wonderin

Re: [PATCH 1/4] pinctrl: samsung: Fix device node refcount leaks in Exynos wakeup controller init

2019-08-06 Thread Linus Walleij
On Mon, Aug 5, 2019 at 6:27 PM Krzysztof Kozlowski wrote: > In exynos_eint_wkup_init() the for_each_child_of_node() loop is used > with a break to find a matching child node. Although each iteration of > for_each_child_of_node puts the previous node, but early exit from loop > misses it. This l

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-08-06 Thread Peter Zijlstra
On Tue, Aug 06, 2019 at 08:24:17AM -0400, Vineeth Remanan Pillai wrote: > Peter's rebalance logic actually takes care of most of the runq > imbalance caused > due to cookie tagging. What we have found from our testing is, fairness issue > is > caused mostly due to a Hyperthread going idle and not

[PATCH] nfc: st-nci: Fix an incorrect skb_buff size in 'st_nci_i2c_read()'

2019-08-06 Thread Christophe JAILLET
In 'st_nci_i2c_read()', we allocate a sk_buff with a size of ST_NCI_I2C_MIN_SIZE + len. However, later on, we first 'skb_reserve()' ST_NCI_I2C_MIN_SIZE bytes, then we 'skb_put()' ST_NCI_I2C_MIN_SIZE bytes. Finally, if 'len' is not 0, we 'skb_put()' 'len' bytes. So we use ST_NCI_I2C_MIN_SIZE*2 + l

Re: [PATCH 2/3] core vruntime comparison

2019-08-06 Thread Peter Zijlstra
On Thu, Jul 25, 2019 at 10:32:49PM +0800, Aaron Lu wrote: > +bool cfs_prio_less(struct task_struct *a, struct task_struct *b) > +{ > + struct sched_entity *sea = &a->se; > + struct sched_entity *seb = &b->se; > + bool samecpu = task_cpu(a) == task_cpu(b); > + struct task_struct *p;

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-08-06 Thread Phil Auld
On Tue, Aug 06, 2019 at 09:54:01PM +0800 Aaron Lu wrote: > On Mon, Aug 05, 2019 at 04:09:15PM -0400, Phil Auld wrote: > > Hi, > > > > On Fri, Aug 02, 2019 at 11:37:15AM -0400 Julien Desfossez wrote: > > > We tested both Aaron's and Tim's patches and here are our results. > > > > > > Test setup: >

[PATCH v1 0/2] Simplify mtty driver and mdev core

2019-08-06 Thread Parav Pandit
Currently mtty sample driver uses mdev state and UUID in convoluated way to generate an interrupt. It uses several translations from mdev_state to mdev_device to mdev uuid. After which it does linear search of long uuid comparision to find out mdev_state in mtty_trigger_interrupt(). mdev_state is a

[PATCH v1 1/2] vfio-mdev/mtty: Simplify interrupt generation

2019-08-06 Thread Parav Pandit
While generating interrupt, mdev_state is already available for which interrupt is generated. Instead of doing indirect way from state->device->uuid-> to searching state linearly in linked list on every interrupt generation, directly use the available state. Hence, simplify the code to use mdev_st

[PATCH v1 2/2] vfio/mdev: Removed unused and redundant API for mdev UUID

2019-08-06 Thread Parav Pandit
There is no single production driver who is interested in mdev device uuid. Currently UUID is mainly used to derive a device name. Additionally mdev device name is already available using core kernel API dev_name(). Hence removed unused exported symbol. Signed-off-by: Parav Pandit --- Changelog:

Re: [PATCH] sched/core: decrease rq->nr_uninterruptible before set_task_cpu

2019-08-06 Thread Peter Zijlstra
On Tue, Aug 06, 2019 at 10:12:50PM +0800, Cheng Jian wrote: > Migration may occur when wake up a process, so we must update > the rq->nr_uninterruptible before set_task_cpu, otherwise we > will decrease the nr_interuptible of the incorrect rq. Over > time, it cause some rq accounting according to b

[PATCH] auxdisplay: Fix a typo in cfag12864b-example.c

2019-08-06 Thread Masanari Iida
This patch fix a spelling typo in cfag12864b-example.c Signed-off-by: Masanari Iida --- samples/auxdisplay/cfag12864b-example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/auxdisplay/cfag12864b-example.c b/samples/auxdisplay/cfag12864b-example.c index 85571e90191

Re: [PATCH] gpiolib: never report open-drain/source lines as 'input' to user-space

2019-08-06 Thread Linus Walleij
On Tue, Aug 6, 2019 at 1:41 PM Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > If the driver doesn't support open-drain/source config options, we > emulate this behavior when setting the direction by calling > gpiod_direction_input() if the default value is 0 (open-source) or > 1 (ope

Re: [PATCH 1/4] pinctrl: samsung: Fix device node refcount leaks in Exynos wakeup controller init

2019-08-06 Thread Krzysztof Kozlowski
On Tue, 6 Aug 2019 at 16:15, Linus Walleij wrote: > > On Mon, Aug 5, 2019 at 6:27 PM Krzysztof Kozlowski wrote: > > > In exynos_eint_wkup_init() the for_each_child_of_node() loop is used > > with a break to find a matching child node. Although each iteration of > > for_each_child_of_node puts th

Re: Let's talk about the elephant in the room - the Linux kernel's inability to gracefully handle low memory pressure

2019-08-06 Thread Johannes Weiner
On Tue, Aug 06, 2019 at 11:36:48AM +0200, Vlastimil Babka wrote: > On 8/6/19 3:08 AM, Suren Baghdasaryan wrote: > >> @@ -1280,3 +1285,50 @@ static int __init psi_proc_init(void) > >> return 0; > >> } > >> module_init(psi_proc_init); > >> + > >> +#define OOM_PRESSURE_LEVEL 80 > >> +#de

Re: [PATCH v6 0/7] perf, intel: Add support for PEBS output to Intel PT

2019-08-06 Thread Peter Zijlstra
On Tue, Aug 06, 2019 at 11:45:59AM +0300, Alexander Shishkin wrote: > Seventh attempt at the PEBS-via-PT feature. The previous ones were [1], [2], > [3], [4], [5], [6]. This one finalizes the 'aux_output' naming in the code. > Alexander Shishkin (2): > perf: Allow normal events to output AUX da

Re: [PATCH] ubifs: limit the number of pages in shrink_liability

2019-08-06 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "Liu Song" > An: "richard" , "Artem Bityutskiy" , > "Adrian Hunter" > CC: "linux-mtd" , "linux-kernel" > , "liu song11" > > Gesendet: Dienstag, 6. August 2019 16:21:40 > Betreff: [PATCH] ubifs: limit the number of pages in shrink_liability > From: Liu Son

Realtek r8822be wireless card fails to work with new rtw88 kernel module

2019-08-06 Thread 고준
Hello, I recently reported a bug to Ubuntu regarding a regression in wireless driver support for the Realtek r8822be wireless chipset. The issue link on launchpad is: https://bugs.launchpad.net/bugs/1838133 After Canonical developers triaged the bug they determined that the problem lies upstream

Re: [PATCH] perf record: Add an option to take an AUX snapshot on exit

2019-08-06 Thread Alexander Shishkin
Alexander Shishkin writes: > It is sometimes useful to generate a snapshot when perf record exits; > I've been using a wrapper script around the workload that would do a > killall -USR2 perf when the workload exits. > > This patch makes it easier and also works when perf record is attached > to a

Re: Let's talk about the elephant in the room - the Linux kernel's inability to gracefully handle low memory pressure

2019-08-06 Thread Michal Hocko
On Tue 06-08-19 10:27:28, Johannes Weiner wrote: > On Tue, Aug 06, 2019 at 11:36:48AM +0200, Vlastimil Babka wrote: > > On 8/6/19 3:08 AM, Suren Baghdasaryan wrote: > > >> @@ -1280,3 +1285,50 @@ static int __init psi_proc_init(void) > > >> return 0; > > >> } > > >> module_init(psi_proc_in

[PATCH net-next v5] net: can: Fix sparse warnings for two functions

2019-08-06 Thread Mao Wenan
There are two warnings in net/can, fix them by setting bcm_sock_no_ioctlcmd and raw_sock_no_ioctlcmd as static. net/can/bcm.c:1683:5: warning: symbol 'bcm_sock_no_ioctlcmd' was not declared. Should it be static? net/can/raw.c:840:5: warning: symbol 'raw_sock_no_ioctlcmd' was not declared. Should

Re: [PATCH] asm-generic: fix variable 'p4d' set but not used

2019-08-06 Thread Jason Gunthorpe
On Fri, Aug 02, 2019 at 03:41:22PM -0400, Qian Cai wrote: > GCC throws a warning on an arm64 system since the commit 9849a5697d3d > ("arch, mm: convert all architectures to use 5level-fixup.h"), > > mm/kasan/init.c: In function 'kasan_free_p4d': > mm/kasan/init.c:344:9: warning: variable 'p4d' set

Re: [PATCH v2 6/6] tpm: Add driver for cr50 on I2C

2019-08-06 Thread Stephen Boyd
Quoting Alexander Steffen (2019-07-17 08:19:19) > On 17.07.2019 00:45, Stephen Boyd wrote: > > From: Duncan Laurie > > > > Add TPM 2.0 compatible I2C interface for chips with cr50 firmware. > > > > The firmware running on the currently supported H1 MCU requires a > > special driver to handle its

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-08-06 Thread Aaron Lu
On 2019/8/6 22:17, Phil Auld wrote: > On Tue, Aug 06, 2019 at 09:54:01PM +0800 Aaron Lu wrote: >> On Mon, Aug 05, 2019 at 04:09:15PM -0400, Phil Auld wrote: >>> Hi, >>> >>> On Fri, Aug 02, 2019 at 11:37:15AM -0400 Julien Desfossez wrote: We tested both Aaron's and Tim's patches and here are ou

[PATCH v1] perf record: Add an option to take an AUX snapshot on exit

2019-08-06 Thread Alexander Shishkin
It is sometimes useful to generate a snapshot when perf record exits; I've been using a wrapper script around the workload that would do a killall -USR2 perf when the workload exits. This patch makes it easier and also works when perf record is attached to a pre-existing task. A new snapshot optio

Re: [PATCH] dt-bindings: arm: amlogic: fix x96-max/sei510 section in amlogic.yaml

2019-08-06 Thread Rob Herring
On Tue, Aug 6, 2019 at 1:55 AM Neil Armstrong wrote: > > From: Christian Hewitt > > Move amediatech,x96-max and seirobotics,sei510 to the S905D2 section and > update the S905D2 description to S905D2/X2/Y2. > > Signed-off-by: Christian Hewitt > Signed-off-by: Neil Armstrong > --- > Documentatio

Re: [PATCH v6 0/7] perf, intel: Add support for PEBS output to Intel PT

2019-08-06 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 06, 2019 at 04:30:32PM +0200, Peter Zijlstra escreveu: > On Tue, Aug 06, 2019 at 11:45:59AM +0300, Alexander Shishkin wrote: > > > Seventh attempt at the PEBS-via-PT feature. The previous ones were [1], [2], > > [3], [4], [5], [6]. This one finalizes the 'aux_output' naming in the code

Re: [PATCH v3] tracing: Function stack size and its name mismatch in arm64

2019-08-06 Thread Joel Fernandes
On Mon, Aug 05, 2019 at 12:25:25PM +0100, Will Deacon wrote: > [+Akashi, since he may remember more of the gory details here] > > On Sat, Aug 03, 2019 at 04:26:42AM -0400, Joel Fernandes wrote: > > On Fri, Aug 02, 2019 at 11:22:59AM -0400, Steven Rostedt wrote: > > [snip] > > > > There is not PC i

Re: [PATCH v2] arm64: dts: rockchip: Add dts for Leez RK3399 P710 SBC

2019-08-06 Thread Rob Herring
On Mon, Aug 5, 2019 at 6:40 AM Andy Yan wrote: > > P710 is a RK3399 based SBC, designed by Leez [0]. > > Specification > - Rockchip RK3399 > - 4/2GB LPDDR4 > - TF sd scard slot > - eMMC > - M.2 B-Key for 4G LTE > - AP6256 for WiFi + BT > - Gigabit ethernet > - HDMI out > - 40 pin header > - USB 2.

Re: [PATCH V13 12/12] PCI: tegra: Add Tegra194 PCIe support

2019-08-06 Thread Lorenzo Pieralisi
On Mon, Aug 05, 2019 at 10:24:42PM +0530, Vidya Sagar wrote: [...] > > > > IRQs are enabled when you call a suspend_noirq() callback, so the > > > > blocking API can be used as long as the IRQ descriptor backing > > > > the IRQ that will wake-up the blocked call is marked as > > > > IRQF_NO_SUSPE

Re: oom-killer

2019-08-06 Thread Pankaj Suryawanshi
On Tue, 6 Aug, 2019, 1:46 AM Michal Hocko, wrote: > > On Mon 05-08-19 21:04:53, Pankaj Suryawanshi wrote: > > On Mon, Aug 5, 2019 at 5:35 PM Michal Hocko wrote: > > > > > > On Mon 05-08-19 13:56:20, Vlastimil Babka wrote: > > > > On 8/5/19 1:24 PM, Michal Hocko wrote: > > > > >> [ 727.954355] CP

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-08-06 Thread Phil Auld
On Tue, Aug 06, 2019 at 10:41:25PM +0800 Aaron Lu wrote: > On 2019/8/6 22:17, Phil Auld wrote: > > On Tue, Aug 06, 2019 at 09:54:01PM +0800 Aaron Lu wrote: > >> On Mon, Aug 05, 2019 at 04:09:15PM -0400, Phil Auld wrote: > >>> Hi, > >>> > >>> On Fri, Aug 02, 2019 at 11:37:15AM -0400 Julien Desfossez

[PATCH 5/8] irqchip/ixp4xx: Register the base PA instead of its VA in fwnode

2019-08-06 Thread Marc Zyngier
Do not expose the base VA (it appears in debugfs). Instead, record the PA, which at least can be used to precisely identify the associated irqchip and domain. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-ixp4xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

[PATCH 4/8] irqchip/gic-v2m: Register the frame's PA instead of its VA in fwnode

2019-08-06 Thread Marc Zyngier
Do not expose the frame's VA (it appears in debugfs). Instead, record the PA, which at least can be used to precisely identify the associated irqchip and domain. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v2m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driv

[PATCH 0/8] irqdomain/debugfs: Fix uses of irq_domain_alloc_fwnode

2019-08-06 Thread Marc Zyngier
I recently noticed that all irq_domain_alloc_fwnode were passing a VA to it, which is unfortunate as this is designed to appear in debugfs (and we don't like to leak VAs). Disaster was avoided thanks to our ptrval friend, but it remains that the whole thing is pretty useless if you have mor

[PATCH 1/8] irqchip/gic-v3: Register the distributor's PA instead of its VA in fwnode

2019-08-06 Thread Marc Zyngier
Do not expose the distributor's VA (it appears in debugfs). Instead, record the PA, which at least can be used to precisely identify the associated irqchip and domain. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH 2/8] irqchip/gic-v3-its: Register the ITS' PA instead of its VA in fwnode

2019-08-06 Thread Marc Zyngier
Do not expose the ITS' VA (it appears in debugfs). Instead, record the PA, which at least can be used to precisely identify the associated irqchip and domain. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3-its.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driv

[PATCH 6/8] gpio/ixp4xx: Register the base PA instead of its VA in fwnode

2019-08-06 Thread Marc Zyngier
Do not expose the base VA (it appears in debugfs). Instead, record the PA, which at least can be used to precisely identify the associated irqchip and domain. Signed-off-by: Marc Zyngier --- drivers/gpio/gpio-ixp4xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gp

[PATCH 3/8] irqchip/gic: Register the distributor's PA instead of its VA in fwnode

2019-08-06 Thread Marc Zyngier
Do not expose the distributor's VA (it appears in debugfs). Instead, record the PA, which at least can be used to precisely identify the associated irqchip and domain. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dr

[PATCH 8/8] irqdomain/debugfs: Use PAs to generate fwnode names

2019-08-06 Thread Marc Zyngier
Booting a large arm64 server (HiSi D05) leads to the following shouting at boot time: [ 20.722132] debugfs: File 'irqchip@(ptrval)-3' in directory 'domains' already present! [ 20.730851] debugfs: File 'irqchip@(ptrval)-3' in directory 'domains' already present! [ 20.739560]

[PATCH 7/8] PCI: hv: Allocate a named fwnode instead of an address-based one

2019-08-06 Thread Marc Zyngier
To allocate its fwnode that is then used to allocate an irqdomain, the driver uses irq_domain_alloc_fwnode(), passing it a VA as an identifier. This is a rather bad idea, as this address ends up published in debugfs (and we want to move away from VAs there anyway). Instead, let's allocate a named

Re: [Regression] Commit "nvme/pci: Use host managed power state for suspend" has problems

2019-08-06 Thread Rafael J. Wysocki
On Tue, Aug 6, 2019 at 4:02 PM wrote: > > > > > -Original Message- > > From: Rafael J. Wysocki > > Sent: Monday, August 5, 2019 4:29 PM > > To: Kai-Heng Feng > > Cc: Rafael J. Wysocki; Limonciello, Mario; Keith Busch; Keith Busch; > > Christoph > > Hellwig; Sagi Grimberg; linux-nvme; Lin

Re: [PATCH 16/16] dt-bindings: net: add bindings for ADIN PHY driver

2019-08-06 Thread Rob Herring
On Mon, Aug 5, 2019 at 7:55 AM Alexandru Ardelean wrote: > > This change adds bindings for the Analog Devices ADIN PHY driver, detailing > all the properties implemented by the driver. > > Signed-off-by: Alexandru Ardelean > --- > .../devicetree/bindings/net/adi,adin.yaml | 93 ++

Re: oom-killer

2019-08-06 Thread Michal Hocko
On Tue 06-08-19 20:24:03, Pankaj Suryawanshi wrote: > On Tue, 6 Aug, 2019, 1:46 AM Michal Hocko, wrote: > > > > On Mon 05-08-19 21:04:53, Pankaj Suryawanshi wrote: > > > On Mon, Aug 5, 2019 at 5:35 PM Michal Hocko wrote: > > > > > > > > On Mon 05-08-19 13:56:20, Vlastimil Babka wrote: > > > > > O

Re: oom-killer

2019-08-06 Thread Pankaj Suryawanshi
On Tue, Aug 6, 2019 at 8:37 PM Michal Hocko wrote: > > On Tue 06-08-19 20:24:03, Pankaj Suryawanshi wrote: > > On Tue, 6 Aug, 2019, 1:46 AM Michal Hocko, wrote: > > > > > > On Mon 05-08-19 21:04:53, Pankaj Suryawanshi wrote: > > > > On Mon, Aug 5, 2019 at 5:35 PM Michal Hocko wrote: > > > > > >

Re: oom-killer

2019-08-06 Thread Michal Hocko
On Tue 06-08-19 20:25:51, Pankaj Suryawanshi wrote: [...] > lowmem reserve ? it is min_free_kbytes or something else. Nope. Lowmem rezerve is a measure to protect from allocations targetting higher zones (have a look at setup_per_zone_lowmem_reserve). The value for each zone depends on the amount

[PATCH v3 2/5] ASoC: fsl_sai: Update Tx/Rx channel enable mask

2019-08-06 Thread Daniel Baluta
Tx channel enable (TCE) / Rx channel enable (RCE) bits enable corresponding data channel for Tx/Rx operation. Because SAI supports up the 8 channels TCE/RCE occupy up the 8 bits inside TCR3/RCR3 registers we need to extend the mask to reflect this. Signed-off-by: Daniel Baluta --- sound/soc/fsl

[PATCH v3 4/5] ASoC: fsl_sai: Add support for imx7ulp/imx8mq

2019-08-06 Thread Daniel Baluta
SAI module on imx7ulp/imx8m features 2 new registers (VERID and PARAM) at the beginning of register address space. On imx7ulp FIFOs can held up to 16 x 32 bit samples. On imx8mq FIFOs can held up to 128 x 32 bit samples. Signed-off-by: Daniel Baluta Acked-by: Nicolin Chen --- sound/soc/fsl/fsl

[PATCH v3 3/5] ASoC: fsl_sai: Add support for SAI new version

2019-08-06 Thread Daniel Baluta
New IP version introduces Version ID and Parameter registers and optionally added Timestamp feature. VERID and PARAM registers are placed at the top of registers address space and some registers are shifted according to the following table: Tx/Rx data registers and Tx/Rx FIFO registers keep their

[PATCH v3 5/5] ASoC: dt-bindings: Introduce compatible strings for 7ULP and 8MQ

2019-08-06 Thread Daniel Baluta
For i.MX7ULP and i.MX8MQ register map is changed. Add two new compatbile strings to differentiate this. Signed-off-by: Daniel Baluta --- Documentation/devicetree/bindings/sound/fsl-sai.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sou

[PATCH v3 1/5] ASoC: fsl_sai: Add registers definition for multiple datalines

2019-08-06 Thread Daniel Baluta
SAI IP supports up to 8 data lines. The configuration of supported number of data lines is decided at SoC integration time. This patch adds definitions for all related data TX/RX registers: * TDR0..7, Transmit data register * TFR0..7, Transmit FIFO register * RDR0..7, Recei

[PATCH v3 0/5] Add support for new SAI IP version

2019-08-06 Thread Daniel Baluta
So far SAI IPs integrated with imx6 only supported one data line. Starting with imx7 and imx8 SAI integration support up to 8 data lines. First patch introduce register definition to support this. New SAI IP version introduces two new registers (Version and Parmeter registers) which are placed at

Re: oom-killer

2019-08-06 Thread Michal Hocko
On Tue 06-08-19 20:39:22, Pankaj Suryawanshi wrote: > On Tue, Aug 6, 2019 at 8:37 PM Michal Hocko wrote: > > > > On Tue 06-08-19 20:24:03, Pankaj Suryawanshi wrote: > > > On Tue, 6 Aug, 2019, 1:46 AM Michal Hocko, wrote: > > > > > > > > On Mon 05-08-19 21:04:53, Pankaj Suryawanshi wrote: > > > >

[PATCH 2/2] mfd: madera: Add support for requesting the supply clocks

2019-08-06 Thread Charles Keepax
Add the ability to get the clock for each clock input pin of the chip and enable MCLK2 since that is expected to be a permanently enabled 32kHz clock. Signed-off-by: Charles Keepax --- drivers/mfd/madera-core.c | 24 +++- include/linux/mfd/madera/core.h | 11 +++

[PATCH 1/2] mfd: madera: Update DT binding document to support clock supplies

2019-08-06 Thread Charles Keepax
Add the 3 input clock sources for the chip into the device tree binding document. Signed-off-by: Charles Keepax --- Documentation/devicetree/bindings/mfd/madera.txt | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/madera.txt b/Documentation/devic

[PATCH v2] tracing: Be more clever when dumping hex in __print_hex()

2019-08-06 Thread Andy Shevchenko
Hex dump as many as 16 bytes at once in trace_print_hex_seq() instead of byte-by-byte approach. Signed-off-by: Andy Shevchenko --- v2: fix length calculation, so, when buf_len=16 it won't indefinitely loop kernel/trace/trace_output.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) d

Re: [PATCH v2 2/2] dt-bindings: net: meson-dwmac: convert to yaml

2019-08-06 Thread Rob Herring
On Tue, Aug 6, 2019 at 6:50 AM Neil Armstrong wrote: > > Now that we have the DT validation in place, let's convert the device tree > bindings for the Synopsys DWMAC Glue for Amlogic SoCs over to a YAML schemas. > > Signed-off-by: Neil Armstrong > --- > .../bindings/net/amlogic,meson-dwmac.yaml

[PATCH] mm/compaction: remove unnecessary zone parameter in isolate_migratepages()

2019-08-06 Thread Pengfei Li
Like commit 40cacbcb3240 ("mm, compaction: remove unnecessary zone parameter in some instances"), remove unnecessary zone parameter. No functional change. Signed-off-by: Pengfei Li --- mm/compaction.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/mm/compactio

Re: [PATCH v3 6/6] virtio-balloon: Add support for providing unused page reports to host

2019-08-06 Thread Alexander Duyck
On Tue, 2019-08-06 at 07:31 -0400, Michael S. Tsirkin wrote: > On Mon, Aug 05, 2019 at 09:27:16AM -0700, Alexander Duyck wrote: > > On Mon, 2019-08-05 at 12:00 -0400, Nitesh Narayan Lal wrote: > > > On 8/1/19 6:38 PM, Alexander Duyck wrote: > > > > From: Alexander Duyck > > > > > > > > Add suppor

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