Re: [PATCH v2 20/45] drivers: tty: serial: msm_serial: use devm_* functions

2019-05-26 Thread Bjorn Andersson
On Thu 14 Mar 15:33 PDT 2019, Enrico Weigelt, metux IT consult wrote: > Use the safer devm versions of memory mapping functions. > > Signed-off-by: Enrico Weigelt, metux IT consult As pointed out by others, this resource does not follow the life cycle of the port->dev, so I don't think this

Re: [PATCH v2 0/8] Add matching device node validation in DMA engine core

2019-05-26 Thread Vinod Koul
On 20-05-19, 19:32, Baolin Wang wrote: > Hi, > > This patch set adds a device node validation in DMA engine core, that will > help some drivers to remove the duplicate device node validation in each > driver. Applied all, thanks -- ~Vinod

Re: 5.2-rc1 on droid4: spi crash

2019-05-26 Thread Tony Lindgren
Hi, * Sebastian Reichel [190523 09:33]: > Hi, > > On Thu, May 23, 2019 at 11:09:26AM +0200, Pavel Machek wrote: > > This was greeting me overnight... I don't yet know how reproducible it > > is, it happened once so far. > > Please pipe the stacktrace into ./scripts/decode_stacktrace.sh > to

Re: [PATCH v7 11/12] x86/paravirt: Adapt assembly for PIE support

2019-05-26 Thread Juergen Gross
On 21/05/2019 01:19, Thomas Garnier wrote: > From: Thomas Garnier > > if PIE is enabled, switch the paravirt assembly constraints to be > compatible. The %c/i constrains generate smaller code so is kept by > default. > > Position Independent Executable (PIE) support will allow to extend the >

Re: [Ocfs2-devel] [PATCH V3 2/2] ocfs2: add locking filter debugfs file

2019-05-26 Thread Gang He
Hello Wengang, Another patch will do the thing you mentioned. The patch link is here, https://marc.info/?l=ocfs2-devel=155860816602506=2 Thanks Gang >>> On 2019/5/25 at 3:52, in message , Wengang Wang wrote: > Hi Gang, > > OK, I was thinking you are dumping the new last access time field

[PATCH v3 04/16] fpga: dfl: fme: support 512bit data width PR

2019-05-26 Thread Wu Hao
In early partial reconfiguration private feature, it only supports 32bit data width when writing data to hardware for PR. 512bit data width PR support is an important optimization for some specific solutions (e.g. XEON with FPGA integrated), it allows driver to use AVX512 instruction to improve

[PATCH v3 05/16] Documentation: fpga: dfl: add descriptions for virtualization and new interfaces.

2019-05-26 Thread Wu Hao
This patch adds virtualization support description for DFL based FPGA devices (based on PCIe SRIOV), and introductions to new interfaces added by new dfl private feature drivers. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull --- v2: update description for thermal/power

[PATCH v3 03/16] fpga: dfl: fme: align PR buffer size per PR datawidth

2019-05-26 Thread Wu Hao
Current driver checks if input bitstream file size is aligned or not per PR data width (default 32bits). It requires one additional step for end user when they generate the bitstream file, padding extra zeros to bitstream file to align its size per PR data width, but they don't have to as hardware

[PATCH v3 08/16] fpga: dfl: afu: add AFU state related sysfs interfaces

2019-05-26 Thread Wu Hao
This patch introduces more sysfs interfaces for Accelerated Function Unit (AFU). These interfaces allow users to read current AFU Power State (APx), read / clear AFU Power (APx) events which are sticky to identify transient APx state, and manage AFU's LTR (latency tolerance reporting).

[PATCH v3 11/16] fpga: dfl: afu: export __port_enable/disable function.

2019-05-26 Thread Wu Hao
As these two functions are used by other private features. e.g. in error reporting private feature, it requires to check port status and reset port for error clearing. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by: Alan Tull --- drivers/fpga/dfl-afu-main.c |

[PATCH v3 13/16] fpga: dfl: afu: add STP (SignalTap) support

2019-05-26 Thread Wu Hao
STP (SignalTap) is one of the private features under the port for debugging. This patch adds private feature driver support for it to allow userspace applications to mmap related mmio region and provide STP service. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Moritz Fischer

[PATCH v3 07/16] fpga: dfl: pci: enable SRIOV support.

2019-05-26 Thread Wu Hao
This patch enables the standard sriov support. It allows user to enable SRIOV (and VFs), then user could pass through accelerators (VFs) into virtual machine or use VFs directly in host. Signed-off-by: Zhang Yi Z Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull Acked-by:

Re: [PATCH] mm, compaction: Make sure we isolate a valid PFN

2019-05-26 Thread Anshuman Khandual
On 05/24/2019 09:01 PM, Suzuki K Poulose wrote: > When we have holes in a normal memory zone, we could endup having > cached_migrate_pfns which may not necessarily be valid, under heavy memory > pressure with swapping enabled ( via __reset_isolation_suitable(), triggered > by kswapd). > >

[PATCH v3 02/16] fpga: dfl: fme: remove copy_to_user() in ioctl for PR

2019-05-26 Thread Wu Hao
This patch removes copy_to_user() code in partial reconfiguration ioctl, as it's useless as user never needs to read the data structure after ioctl. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by: Alan Tull --- v2: clean up code split from patch 2 in v1

[PATCH v3 16/16] fpga: dfl: fme: add performance reporting support

2019-05-26 Thread Wu Hao
This patch adds support for performance reporting private feature for FPGA Management Engine (FME). Actually it supports 4 categories performance counters, 'clock', 'cache', 'iommu' and 'fabric', user could read the performance counter via exposed sysfs interfaces. Please refer to sysfs doc for

[PATCH v3 06/16] fpga: dfl: fme: add DFL_FPGA_FME_PORT_RELEASE/ASSIGN ioctl support.

2019-05-26 Thread Wu Hao
In order to support virtualization usage via PCIe SRIOV, this patch adds two ioctls under FPGA Management Engine (FME) to release and assign back the port device. In order to safely turn Port from PF into VF and enable PCIe SRIOV, it requires user to invoke this PORT_RELEASE ioctl to release port

[PATCH v3 01/16] fpga: dfl-fme-mgr: fix FME_PR_INTFC_ID register address.

2019-05-26 Thread Wu Hao
FME_PR_INTFC_ID is used as compat_id for fpga manager and region, but high 64 bits and low 64 bits of the compat_id are swapped by mistake. This patch fixes this problem by fixing register address. Signed-off-by: Wu Hao Acked-by: Alan Tull Acked-by: Moritz Fischer ---

[PATCH v3 09/16] fpga: dfl: afu: add userclock sysfs interfaces.

2019-05-26 Thread Wu Hao
This patch introduces userclock sysfs interfaces for AFU, user could use these interfaces for clock setting to AFU. Please note that, this is only working for port header feature with revision 0, for later revisions, userclock setting is moved to a separated private feature, so one revision sysfs

[PATCH v3 15/16] fpga: dfl: fme: add global error reporting support

2019-05-26 Thread Wu Hao
This patch adds support for global error reporting for FPGA Management Engine (FME), it introduces sysfs interfaces to report different error detected by the hardware, and allow user to clear errors or inject error for testing purpose. Signed-off-by: Luwei Kang Signed-off-by: Ananda Ravuri

[PATCH v3 14/16] fpga: dfl: fme: add capability sysfs interfaces

2019-05-26 Thread Wu Hao
This patch adds 3 read-only sysfs interfaces for FPGA Management Engine (FME) block for capabilities including cache_size, fabric_version and socket_id. Signed-off-by: Luwei Kang Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull --- v3: replace scnprintf with sprintf in sysfs

[PATCH v3 10/16] fpga: dfl: add id_table for dfl private feature driver

2019-05-26 Thread Wu Hao
This patch adds id_table for each dfl private feature driver, it allows to reuse same private feature driver to match and support multiple dfl private features. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by: Alan Tull --- drivers/fpga/dfl-afu-main.c | 14

[PATCH v3 12/16] fpga: dfl: afu: add error reporting support.

2019-05-26 Thread Wu Hao
Error reporting is one important private feature, it reports error detected on port and accelerated function unit (AFU). It introduces several sysfs interfaces to allow userspace to check and clear errors detected by hardware. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull

[PATCH v3 00/16] add new features for FPGA DFL drivers

2019-05-26 Thread Wu Hao
This patchset adds more features support for FPGA Device Feature List (DFL) drivers, including PR enhancement, virtualization support based on PCIe SRIOV, private features to Port, private features to FME, and enhancement to DFL framework. Please refer to details in below list. This patchset is

Re: [PATCH 3/3] soc: qcom: mdt_loader: add offset to request_firmware_into_buf

2019-05-26 Thread Bjorn Andersson
On Thu 23 May 09:56 PDT 2019, Greg Kroah-Hartman wrote: > On Thu, May 23, 2019 at 09:41:49AM -0700, Scott Branden wrote: > > Hi Greg, > > > > On 2019-05-22 10:52 p.m., Greg Kroah-Hartman wrote: > > > On Wed, May 22, 2019 at 07:51:13PM -0700, Scott Branden wrote: > > > > Adjust

Re: [PATCH v2 00/15] soundwire: corrections to ACPI/DisCo/Intel support

2019-05-26 Thread Vinod Koul
On 22-05-19, 14:47, Pierre-Louis Bossart wrote: > Now that we are done with cleanups, we can start fixing the code with > actual semantic or functional changes. > > This patchset corrects issues with Intel BIOS and hardware properties > that prevented a successful init, aligns the code with the

RE: [PATCH 0/2] mailbox: arm: introduce smc triggered mailbox

2019-05-26 Thread Peng Fan
Hi Florian, > Subject: Re: [PATCH 0/2] mailbox: arm: introduce smc triggered mailbox > > Hi, > > On 5/22/19 10:50 PM, Peng Fan wrote: > > This is a modified version from Andre Przywara's patch series > > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.ke >

Re: [PATCH net-next] cxgb4: Make t4_get_tp_e2c_map static

2019-05-26 Thread David Miller
From: YueHaibing Date: Sat, 25 May 2019 20:45:10 +0800 > Fix sparse warning: > > drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:6216:14: > warning: symbol 't4_get_tp_e2c_map' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Applied.

Re: [PATCH net-next v2 2/2] net: phy: sfp: enable i2c-bus detection on ACPI based systems

2019-05-26 Thread David Miller
From: Ruslan Babayev Date: Fri, 24 May 2019 17:53:02 -0700 > Lookup I2C adapter using the "i2c-bus" device property on ACPI based > systems similar to how it's done with DT. > > An example DSD describing an SFP on an ACPI based system: I don't see patch #1. Please repost with both patches and

Re: [PATCH][next] ipv4: remove redundant assignment to n

2019-05-26 Thread David Miller
From: Colin King Date: Fri, 24 May 2019 22:56:58 +0100 > From: Colin Ian King > > The pointer n is being assigned a value however this value is > never read in the code block and the end of the code block > continues to the next loop iteration. Clean up the code by > removing the redundant

Re: [PATCH] soundwire: cdns: Fix compilation error on arm64

2019-05-26 Thread Vinod Koul
On 04-04-19, 09:12, Jan Kotas wrote: > On arm64 the cadence_master.c file doesn't compile. > > readl and writel are undefined. > This patch fixes that by including io.h. Applied, thanks -- ~Vinod

Re: [PATCH] soundwire: stream: fix out of boundary access on port properties

2019-05-26 Thread Vinod Koul
On 22-05-19, 17:24, Srinivas Kandagatla wrote: > Assigning local iterator to array element and using it again for > indexing would cross the array boundary. > Fix this by directly referring array element without using the local > variable. Applied, thanks -- ~Vinod

[PATCH] serial: Fix an invalid comparing statement

2019-05-26 Thread Sugaya Taichi
Drop the if-statement which refers to 8th bit field of u8 variable. The bit field is no longer used. Fixes: ba44dc043004 ("serial: Add Milbeaut serial control") Reported-by: Colin Ian King Signed-off-by: Sugaya Taichi --- drivers/tty/serial/milbeaut_usio.c | 15 +-- 1 file changed,

Re: [PATCH -next] xen/pvcalls: Remove set but not used variable

2019-05-26 Thread Juergen Gross
On 25/05/2019 16:21, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/xen/pvcalls-front.c: In function pvcalls_front_sendmsg: > drivers/xen/pvcalls-front.c:543:25: warning: variable bedata set but not used > [-Wunused-but-set-variable] > drivers/xen/pvcalls-front.c:

Re: [PATCH] net: tulip: de4x5: Drop redundant MODULE_DEVICE_TABLE()

2019-05-26 Thread David Miller
From: Kees Cook Date: Fri, 24 May 2019 13:20:19 -0700 > Building with Clang reports the redundant use of MODULE_DEVICE_TABLE(): > > drivers/net/ethernet/dec/tulip/de4x5.c:2110:1: error: redefinition of > '__mod_eisa__de4x5_eisa_ids_device_table' > MODULE_DEVICE_TABLE(eisa, de4x5_eisa_ids); > ^

[PATCH v5 2/3] fdt: add support for rng-seed

2019-05-26 Thread Hsin-Yi Wang
Introducing a chosen node, rng-seed, which is an entropy that can be passed to kernel called very early to increase initial device randomness. Bootloader should provide this entropy and the value is read from /chosen/rng-seed in DT. Signed-off-by: Hsin-Yi Wang --- change log v4->v5: * use

[PATCH v5 3/3] arm64: kexec_file: add rng-seed support

2019-05-26 Thread Hsin-Yi Wang
Adding "rng-seed" to dtb. It's fine to add this property if original fdt doesn't contain it. Since original seed will be wiped after read, so use a default size 128 bytes here. Signed-off-by: Hsin-Yi Wang --- arch/arm64/kernel/machine_kexec_file.c | 22 +- 1 file changed, 21

[PATCH v5 1/3] arm64: map FDT as RW for early_init_dt_scan()

2019-05-26 Thread Hsin-Yi Wang
Currently in arm64, FDT is mapped to RO before it's passed to early_init_dt_scan(). However, there might be some codes (eg. commit "fdt: add support for rng-seed") that need to modify FDT during init. Map FDT to RO after early fixups are done. Signed-off-by: Hsin-Yi Wang --- change log v4->v5: *

[PATCH] arm64/mm: Drop BUG_ON() from [pmd|pud]_set_huge()

2019-05-26 Thread Anshuman Khandual
There are no callers for the functions which will pass unaligned physical addresses. Hence just drop these BUG_ON() checks which are not required. Signed-off-by: Anshuman Khandual Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland --- arch/arm64/mm/mmu.c | 2 -- 1 file changed, 2

[PATCH] arm64/mm: Simplify protection flag creation for kernel huge mappings

2019-05-26 Thread Anshuman Khandual
Even though they have got the same value, PMD_TYPE_SECT and PUD_TYPE_SECT get used for kernel huge mappings. But before that first the table bit gets cleared using leaf level PTE_TABLE_BIT. Though functionally they are same, we should use page table level specific macros to be consistent as per

RE: [PATCH v2 08/10] Input: elan_i2c - export true width/height

2019-05-26 Thread 廖崇榮
Hi -Original Message- From: Benjamin Tissoires [mailto:benjamin.tissoi...@redhat.com] Sent: Friday, May 24, 2019 5:37 PM To: Dmitry Torokhov; KT Liao; Rob Herring; Aaron Ma; Hans de Goede Cc: open list:HID CORE LAYER; lkml; devicet...@vger.kernel.org Subject: Re: [PATCH v2 08/10] Input:

[v6 PATCH 2/2] mm: vmscan: correct some vmscan counters for THP swapout

2019-05-26 Thread Yang Shi
Since commit bd4c82c22c36 ("mm, THP, swap: delay splitting THP after swapped out"), THP can be swapped out in a whole. But, nr_reclaimed and some other vm counters still get inc'ed by one even though a whole THP (512 pages) gets swapped out. This doesn't make too much sense to memory reclaim.

[v6 PATCH 1/2] mm: vmscan: remove double slab pressure by inc'ing sc->nr_scanned

2019-05-26 Thread Yang Shi
The commit 9092c71bb724 ("mm: use sc->priority for slab shrink targets") has broken up the relationship between sc->nr_scanned and slab pressure. The sc->nr_scanned can't double slab pressure anymore. So, it sounds no sense to still keep sc->nr_scanned inc'ed. Actually, it would prevent from

Re: [PATCH 10/10] venus: dec: make decoder compliant with stateful codec API

2019-05-26 Thread Tomasz Figa
On Tue, May 21, 2019 at 9:27 PM Hans Verkuil wrote: > > On 5/21/19 11:09 AM, Tomasz Figa wrote: > > Hi Stan, > > > > On Mon, May 20, 2019 at 11:47 PM Stanimir Varbanov > > wrote: > >> > >> Hi Tomasz, > >> > >> On 4/24/19 3:39 PM, Tomasz Figa wrote: > >>> On Wed, Apr 24, 2019 at 9:15 PM Stanimir

Re: [PATCH 1/1] i2c: iproc: Add multi byte read-write support for slave mode

2019-05-26 Thread Rayagonda Kokatanur
Hi All, Please review the patch and let me know your review comments if any. Best regards, Rayagonda On Wed, May 15, 2019 at 9:58 PM Rayagonda Kokatanur wrote: > > No change, it's just duplicate, please ignore first patch and review > second patch. > > Best regards > Rayagonda > > > > On

[PATCH] mdesc: fix a missing-check bug in get_vdev_port_node_info()

2019-05-26 Thread Gen Zhang
In get_vdev_port_node_info(), 'node_info->vdev_port.name' is allcoated by kstrdup_const(), and it returns NULL when fails. So 'node_info->vdev_port.name' should be checked. Signed-off-by: Gen Zhang --- diff --git a/arch/sparc/kernel/mdesc.c b/arch/sparc/kernel/mdesc.c index 9a26b44..8e645dd

Re: [RESEND v5 PATCH 2/2] mm: vmscan: correct some vmscan counters for THP swapout

2019-05-26 Thread Yang Shi
On 5/27/19 10:58 AM, Huang, Ying wrote: Yang Shi writes: On 5/27/19 10:11 AM, Huang, Ying wrote: Yang Shi writes: Since commit bd4c82c22c36 ("mm, THP, swap: delay splitting THP after swapped out"), THP can be swapped out in a whole. But, nr_reclaimed and some other vm counters still

[v3, PATCH] net: stmmac: add support for hash table size 128/256 in dwmac4

2019-05-26 Thread Biao Huang
1. get hash table size in hw feature reigster, and add support for taller hash table(128/256) in dwmac4. 2. only clear GMAC_PACKET_FILTER bits used in this function, to avoid side effect to functions of other bits. Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/common.h

[v3, PATCH] add some features in stmmac

2019-05-26 Thread Biao Huang
Changes in v3: rewrite the patch base on serire in https://patchwork.ozlabs.org/project/netdev/list/?series=109699

Re: [PATCH 1/1] eventfd new tag EFD_VPOLL: generate epoll events

2019-05-26 Thread kbuild test robot
Hi Renzo, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.2-rc2 next-20190524] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH v5 4/6] usb: roles: add API to get usb_role_switch by node

2019-05-26 Thread Chunfeng Yun
Hi Heikki & Biju, On Fri, 2019-05-24 at 15:44 +0300, Heikki Krogerus wrote: > On Wed, May 22, 2019 at 02:57:33PM +, Biju Das wrote: > > Hi Heikki, > > > > Thanks for the patch > > > > > Subject: Re: [PATCH v5 4/6] usb: roles: add API to get usb_role_switch by > > > node > > > > > > On Wed,

Re: [PATCH v5 4/6] usb: roles: add API to get usb_role_switch by node

2019-05-26 Thread Chunfeng Yun
On Fri, 2019-05-24 at 14:40 +0300, Heikki Krogerus wrote: > On Thu, May 23, 2019 at 06:16:10PM +0800, Chunfeng Yun wrote: > > Hi Heikki, > > On Wed, 2019-05-22 at 17:26 +0300, Heikki Krogerus wrote: > > > On Wed, May 22, 2019 at 10:55:17AM +, Biju Das wrote: > > > > Hi Chunfeng Yun, > > > > >

Re: [PATCH v6 4/4] x86/acrn: Add hypercall for ACRN guest

2019-05-26 Thread Zhao, Yakui
On 2019年05月15日 15:37, Borislav Petkov wrote: On Tue, Apr 30, 2019 at 11:45:26AM +0800, Zhao Yakui wrote: When the ACRN hypervisor is detected, the hypercall is needed so that the ACRN guest can query/config some settings. For example: it can be used to query the resources in hypervisor and

Re: [RESEND v5 PATCH 2/2] mm: vmscan: correct some vmscan counters for THP swapout

2019-05-26 Thread Yang Shi
On 5/27/19 10:47 AM, Yang Shi wrote: On 5/27/19 10:11 AM, Huang, Ying wrote: Yang Shi writes: Since commit bd4c82c22c36 ("mm, THP, swap: delay splitting THP after swapped out"), THP can be swapped out in a whole.  But, nr_reclaimed and some other vm counters still get inc'ed by one even

Re: [RESEND v5 PATCH 2/2] mm: vmscan: correct some vmscan counters for THP swapout

2019-05-26 Thread Huang, Ying
Yang Shi writes: > On 5/27/19 10:11 AM, Huang, Ying wrote: >> Yang Shi writes: >> >>> Since commit bd4c82c22c36 ("mm, THP, swap: delay splitting THP after >>> swapped out"), THP can be swapped out in a whole. But, nr_reclaimed >>> and some other vm counters still get inc'ed by one even though

Re: [RESEND PATCH] usb: mtu3: fix up undefined reference to usb_debug_root

2019-05-26 Thread Chunfeng Yun
On Fri, 2019-05-24 at 13:33 +0200, Greg Kroah-Hartman wrote: > On Fri, May 24, 2019 at 05:25:51PM +0800, Chunfeng Yun wrote: > > On Fri, 2019-05-24 at 09:45 +0200, Greg Kroah-Hartman wrote: > > > On Fri, May 24, 2019 at 02:11:33PM +0800, Chunfeng Yun wrote: > > > > When CONFIG_USB is not set, and

[PATCH v3 1/5] power: supply: max17040: Add IRQ handler for low SOC alert

2019-05-26 Thread Matheus Castello
According datasheet max17040 has a pin for alert host for low SOC. This pin can be used as external interrupt, so we need to check for interrupts assigned for device and handle it. In handler we are checking and storing fuel gauge registers values and send an uevent to notificate user space, so

[PATCH v3 5/5] power: supply: max17040: Send uevent in SOC and status change

2019-05-26 Thread Matheus Castello
Notify core through power_supply_changed() in case of changes in state of charge and power supply status. This is useful for user-space to efficiently update current battery level. Signed-off-by: Matheus Castello --- drivers/power/supply/max17040_battery.c | 14 ++ 1 file changed,

Re: [RESEND v5 PATCH 2/2] mm: vmscan: correct some vmscan counters for THP swapout

2019-05-26 Thread Yang Shi
On 5/27/19 10:11 AM, Huang, Ying wrote: Yang Shi writes: Since commit bd4c82c22c36 ("mm, THP, swap: delay splitting THP after swapped out"), THP can be swapped out in a whole. But, nr_reclaimed and some other vm counters still get inc'ed by one even though a whole THP (512 pages) gets

[PATCH v3 3/5] power: supply: max17040: Config alert SOC low level threshold from FDT

2019-05-26 Thread Matheus Castello
For configuration of fuel gauge alert for a low level state of charge interrupt we add a function to config level threshold and a device tree binding property to set it in flatned device tree node. Now we can use "maxim,alert-low-soc-level" property with the values from 1% up to 32% to configure

[PATCH v3 2/5] dt-bindings: power: supply: Max17040: Add low level SOC alert threshold

2019-05-26 Thread Matheus Castello
For configure low level state of charge threshold alert signaled from max17040 we add "maxim,alert-low-soc-level" property. Signed-off-by: Matheus Castello --- .../power/supply/max17040_battery.txt | 28 +++ 1 file changed, 28 insertions(+) create mode 100644

[PATCH v3 0/5] power: supply: MAX17040: Add IRQ for low level and alert SOC changes

2019-05-26 Thread Matheus Castello
This series add IRQ handler for low level SOC alert, define a devicetree binding attribute to configure the alert level threshold and check for changes in SOC and power supply status for send uevents. Max17040 have a pin for alert host about low level state of charge and this alert can be

[PATCH v3 4/5] power: supply: max17040: Clear ALRT bit when the SOC are above threshold

2019-05-26 Thread Matheus Castello
In order to not generate duplicate interrupts we clear the ALRT bit when the SOC is in a state that shows that the battery is charged above the set threshold for the SOC low level alert. Signed-off-by: Matheus Castello --- drivers/power/supply/max17040_battery.c | 11 +++ 1 file

Re: [PATCH net] staging: Remove set but not used variable ‘status’

2019-05-26 Thread maowenan
On 2019/5/25 20:59, Sven Van Asbroeck wrote: > On Sat, May 25, 2019 at 12:20 AM Mao Wenan wrote: >> >> The variable 'status' is not used any more, remve it. > >> /* do the transfers for this message */ >> list_for_each_entry(transfer, >transfers, transfer_list) { >> if

Re: [PATCH v6 3/4] x86/acrn: Use HYPERVISOR_CALLBACK_VECTOR for ACRN guest upcall vector

2019-05-26 Thread Zhao, Yakui
On 2019年05月16日 01:23, Borislav Petkov wrote: On Tue, Apr 30, 2019 at 11:45:25AM +0800, Zhao Yakui wrote: @@ -30,6 +36,29 @@ static bool acrn_x2apic_available(void) return false; } +static void (*acrn_intr_handler)(void); + +__visible void __irq_entry

Re: [RESEND v5 PATCH 2/2] mm: vmscan: correct some vmscan counters for THP swapout

2019-05-26 Thread Huang, Ying
Yang Shi writes: > Since commit bd4c82c22c36 ("mm, THP, swap: delay splitting THP after > swapped out"), THP can be swapped out in a whole. But, nr_reclaimed > and some other vm counters still get inc'ed by one even though a whole > THP (512 pages) gets swapped out. > > This doesn't make too

Re: [PATCH net 1/4] net/udp_gso: Allow TX timestamp with UDP GSO

2019-05-26 Thread Willem de Bruijn
On Sun, May 26, 2019 at 8:30 PM Willem de Bruijn wrote: > > On Sat, May 25, 2019 at 1:47 PM Fred Klassen wrote: > > > > > > > > > On May 25, 2019, at 8:20 AM, Willem de Bruijn > > > wrote: > > > > > > On Fri, May 24, 2019 at 6:01 PM Fred Klassen wrote: > > >> > > >> > > >> > > >>> On May 24,

[PATCH v3 1/2] drivers: base: cacheinfo: Add variable to record max cache line size

2019-05-26 Thread Shaokun Zhang
Add coherency_max_size variable to record the maximum cache line size for different cache levels. We will synchronize it with CTR_EL0.CWG reporting in cache_line_size() for arm64. Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Cc: Sudeep Holla Cc: Catalin Marinas Cc: Jeremy Linton Cc: Will

[PATCH v3 2/2] arm64: cacheinfo: Update cache_line_size detected from DT or PPTT

2019-05-26 Thread Shaokun Zhang
cache_line_size is derived from CTR_EL0.CWG field and is called mostly for I/O device drivers. For HiSilicon certain plantform, like the Kunpeng920 server SoC, cache line sizes are different between L1/2 cache and L3 cache while L1 cache line size is 64-byte and L3 is 128-byte, but CTR_EL0.CWG is

RE: [PATCH 0/2] mailbox: arm: introduce smc triggered mailbox

2019-05-26 Thread Peng Fan
Hi Jassi, > Subject: Re: [PATCH 0/2] mailbox: arm: introduce smc triggered mailbox > > On Thu, May 23, 2019 at 12:50 AM Peng Fan wrote: > > > > This is a modified version from Andre Przywara's patch series > > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.ke >

[RESEND v5 PATCH 1/2] mm: vmscan: remove double slab pressure by inc'ing sc->nr_scanned

2019-05-26 Thread Yang Shi
The commit 9092c71bb724 ("mm: use sc->priority for slab shrink targets") has broken up the relationship between sc->nr_scanned and slab pressure. The sc->nr_scanned can't double slab pressure anymore. So, it sounds no sense to still keep sc->nr_scanned inc'ed. Actually, it would prevent from

[RESEND v5 PATCH 2/2] mm: vmscan: correct some vmscan counters for THP swapout

2019-05-26 Thread Yang Shi
Since commit bd4c82c22c36 ("mm, THP, swap: delay splitting THP after swapped out"), THP can be swapped out in a whole. But, nr_reclaimed and some other vm counters still get inc'ed by one even though a whole THP (512 pages) gets swapped out. This doesn't make too much sense to memory reclaim.

Re: [PATCH 0/2] mailbox: arm: introduce smc triggered mailbox

2019-05-26 Thread Jassi Brar
On Thu, May 23, 2019 at 12:50 AM Peng Fan wrote: > > This is a modified version from Andre Przywara's patch series > https://lore.kernel.org/patchwork/cover/812997/. > Can you please specify exact modifications on top of Andre's last submission? As in "Changes since v1: " Thanks.

[PATCH net-next] net: link_watch: prevent starvation when processing linkwatch wq

2019-05-26 Thread Yunsheng Lin
When user has configured a large number of virtual netdev, such as 4K vlans, the carrier on/off operation of the real netdev will also cause it's virtual netdev's link state to be processed in linkwatch. Currently, the processing is done in a work queue, which may cause worker starvation problem

Re: [PATCH net v2 1/1] net/udp_gso: Allow TX timestamp with UDP GSO

2019-05-26 Thread Willem de Bruijn
On Sun, May 26, 2019 at 10:37 AM Fred Klassen wrote: > > Fixes an issue where TX Timestamps are not arriving on the error queue > when UDP_SEGMENT CMSG type is combined with CMSG type SO_TIMESTAMPING. > This can be illustrated with an updated updgso_bench_tx program which > includes the '-T'

Re: [PATCH net 1/4] net/udp_gso: Allow TX timestamp with UDP GSO

2019-05-26 Thread Willem de Bruijn
On Sat, May 25, 2019 at 1:47 PM Fred Klassen wrote: > > > > > On May 25, 2019, at 8:20 AM, Willem de Bruijn > > wrote: > > > > On Fri, May 24, 2019 at 6:01 PM Fred Klassen wrote: > >> > >> > >> > >>> On May 24, 2019, at 12:29 PM, Willem de Bruijn > >>> wrote: > >>> > >>> It is the last

[PATCH] sg: fix a double-fetch bug in sg_write()

2019-05-26 Thread Gen Zhang
In sg_write(), the opcode of the command is fetched the first time from the userspace by __get_user(). Then the whole command, the opcode included, is fetched again from userspace by __copy_from_user(). However, a malicious user can change the opcode between the two fetches. This can cause

[PATCH v2] scsi: smartpqi: properly set both the DMA mask and the coherent DMA mask in pqi_pci_init()

2019-05-26 Thread Lianbo Jiang
When SME is enabled, the smartpqi driver won't work on the HP DL385 G10 machine, which causes the failure of kernel boot because it fails to allocate pqi error buffer. Please refer to the kernel log: [9.431749] usbcore: registered new interface driver uas [9.441524] Microsemi PQI

[PATCH] mpt3sas_ctl: fix double-fetch bug in _ctl_ioctl_main()

2019-05-26 Thread Gen Zhang
In _ctl_ioctl_main(), 'ioctl_header' is fetched the first time from userspace. 'ioctl_header.ioc_number' is then checked. The legal result is saved to 'ioc'. Then, in condition MPT3COMMAND, the whole struct is fetched again from the userspace. Then _ctl_do_mpt_command() is called, 'ioc' and

Re: [PATCH] sched/fair: fix variable "done" set but not used

2019-05-26 Thread Qian Cai
> On May 26, 2019, at 7:56 PM, Valentin Schneider > wrote: > > Hi, > > On 25/05/2019 17:18, Qian Cai wrote: >> The commit f643ea220701 ("sched/nohz: Stop NOHZ stats when decayed") >> introduced a compilation warning if CONFIG_NO_HZ_COMMON=n, >> >> kernel/sched/fair.c: In function

Re: [LKP] [btrfs] 302167c50b: fio.write_bw_MBps -12.4% regression

2019-05-26 Thread Huang, Ying
Josef Bacik writes: > On Fri, May 24, 2019 at 03:46:17PM +0800, Huang, Ying wrote: >> "Huang, Ying" writes: >> >> > "Huang, Ying" writes: >> > >> >> Hi, Josef, >> >> >> >> kernel test robot writes: >> >> >> >>> Greeting, >> >>> >> >>> FYI, we noticed a -12.4% regression of fio.write_bw_MBps

Linux 5.2-rc2

2019-05-26 Thread Linus Torvalds
Hey, what's to say? Fairly normal rc2, no real highlights - I think most of the diff is the SPDX updates. Who am I kidding? The highlight of the week was clearly Finland winning the ice hockey world championships. So once you sober up from the celebration, go test, Linus ---

Re: [PATCH 0/2] mailbox: arm: introduce smc triggered mailbox

2019-05-26 Thread André Przywara
On 24/05/2019 18:56, Sudeep Holla wrote: > On Thu, May 23, 2019 at 10:30:50AM -0700, Florian Fainelli wrote: Hi, >> On 5/22/19 10:50 PM, Peng Fan wrote: >>> This is a modified version from Andre Przywara's patch series >>> https://lore.kernel.org/patchwork/cover/812997/. >>> [1] is a draft

Re: [PATCH] sched/fair: fix variable "done" set but not used

2019-05-26 Thread Valentin Schneider
Hi, On 25/05/2019 17:18, Qian Cai wrote: > The commit f643ea220701 ("sched/nohz: Stop NOHZ stats when decayed") > introduced a compilation warning if CONFIG_NO_HZ_COMMON=n, > > kernel/sched/fair.c: In function 'update_blocked_averages': > kernel/sched/fair.c:7750:7: warning: variable 'done' set

Re: [PATCH v2 2/4] dt-bindings: power: supply: Max17040: Add low level SOC alert threshold

2019-05-26 Thread Matheus Castello
On 4/29/19 7:13 PM, Rob Herring wrote: On Sun, Apr 14, 2019 at 10:26:33PM -0300, Matheus Castello wrote: For configure low level state of charge threshold alert signaled from max17040 we add "maxim,alert-soc-level" property. Signed-off-by: Matheus Castello ---

[PATCH v2 03/10] ARM: dts: sunxi: prefer A31 instead of A13 for ir

2019-05-26 Thread Clément Péron
Since A31, memory mapping of the IR driver has changed. Prefer the A31 bindings instead of A13. Signed-off-by: Clément Péron --- arch/arm/boot/dts/sun6i-a31.dtsi | 2 +- arch/arm/boot/dts/sun8i-a83t.dtsi | 2 +- arch/arm/boot/dts/sun9i-a80.dtsi | 2 +- arch/arm/boot/dts/sunxi-h3-h5.dtsi |

[PATCH v2 09/10] arm64: dts: allwinner: h6: Enable IR on H6 boards

2019-05-26 Thread Clément Péron
Beelink GS1, OrangePi H6 boards and Pine H64 have an IR receiver. Enable it in their device-tree. Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 4 arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 4

[PATCH v2 06/10] arm64: dts: allwinner: a64: Enable IR on Orange Pi Win

2019-05-26 Thread Clément Péron
From: Jernej Skrabec OrangePi Win board contains IR receiver. Enable it. Signed-off-by: Jernej Skrabec Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v2 01/10] dt-bindings: media: sunxi-ir: add A31 compatible

2019-05-26 Thread Clément Péron
Allwinner A31 has introduced a new memory mapping and a reset line. The difference in memory mapping are : - In the configure register there is a new sample bit and Allwinner has introduced the active threshold feature. - In the status register a new STAT bit is present. Note: CGPO and

[PATCH v2 08/10] arm64: dts: allwinner: h6: Add IR receiver node

2019-05-26 Thread Clément Péron
Allwinner H6 IR is similar to A31 and can use same driver. Add support for it. Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi

[PATCH v2 05/10] arm64: dts: allwinner: a64: Add IR node

2019-05-26 Thread Clément Péron
From: Igors Makejevs IR peripheral is completely compatible with A31 one. Signed-off-by: Igors Makejevs Signed-off-by: Jernej Skrabec Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git

[PATCH v2 07/10] dt-bindings: media: sunxi-ir: Add H6 compatible

2019-05-26 Thread Clément Péron
There are some minor differences between A31 or A64 with H6 IR peripheral. But A31 IR driver is compatible with H6. Signed-off-by: Clément Péron --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 02/10] media: rc: sunxi: Add A31 compatible

2019-05-26 Thread Clément Péron
Allwiner A31 has a different memory mapping so add the compatible we will need it later. Signed-off-by: Clément Péron --- drivers/media/rc/sunxi-cir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/rc/sunxi-cir.c b/drivers/media/rc/sunxi-cir.c index 307e44714ea0..29ac33b68596

[PATCH v2 00/10] Allwinner A64/H6 IR support

2019-05-26 Thread Clément Péron
Hi, A64 IR support series[1] pointed out that an A31 bindings should be introduced. This series introduce the A31 compatible bindings, then switch it on the already existing board. Finally introduce A64 and H6 support. Regards, Clément [1]

[PATCH v2 04/10] dt-bindings: media: sunxi-ir: Add A64 compatible

2019-05-26 Thread Clément Péron
There are some minor differences between A31 and A64 driver. But A31 IR driver is compatible with A64. Signed-off-by: Clément Péron --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/sunxi-ir.txt

[PATCH v2 10/10] arm64: defconfig: enable IR SUNXI option

2019-05-26 Thread Clément Péron
Enable CONFIG_IR_SUNXI option for ARM64, so that Allwinner A64/H6 SoCs can use their IR receiver controller. Signed-off-by: Clément Péron --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index

[PATCH v2 1/1] eventfd new tag EFD_VPOLL: generate epoll events

2019-05-26 Thread Renzo Davoli
This patch implements an extension of eventfd to define file descriptors whose I/O events can be generated at user level. These file descriptors trigger notifications for [p]select/[p]poll/epoll. This feature is useful for user-level implementations of network stacks or virtual device drivers as

[PATCH v2 2/4] mm/vmap: preload a CPU with one object for split purpose

2019-05-26 Thread Uladzislau Rezki (Sony)
Refactor the NE_FIT_TYPE split case when it comes to an allocation of one extra object. We need it in order to build a remaining space. Introduce ne_fit_preload()/ne_fit_preload_end() functions for preloading one extra vmap_area object to ensure that we have it available when fit type is

[PATCH v2 3/4] mm/vmap: get rid of one single unlink_va() when merge

2019-05-26 Thread Uladzislau Rezki (Sony)
It does not make sense to try to "unlink" the node that is definitely not linked with a list nor tree. On the first merge step VA just points to the previously disconnected busy area. On the second step, check if the node has been merged and do "unlink" if so, because now it points to an object

[PATCH v2 1/4] mm/vmap: remove "node" argument

2019-05-26 Thread Uladzislau Rezki (Sony)
Remove unused argument from the __alloc_vmap_area() function. Signed-off-by: Uladzislau Rezki (Sony) --- mm/vmalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index c42872ed82ac..ea1b65fac599 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c

[PATCH v2 4/4] mm/vmap: move BUG_ON() check to the unlink_va()

2019-05-26 Thread Uladzislau Rezki (Sony)
Move the BUG_ON()/RB_EMPTY_NODE() check under unlink_va() function, it means if an empty node gets freed it is a BUG thus is considered as faulty behaviour. Signed-off-by: Uladzislau Rezki (Sony) --- mm/vmalloc.c | 24 +--- 1 file changed, 9 insertions(+), 15 deletions(-)

  1   2   3   >