[PATCH V2 1/5] csky: Init pmu as a device

2019-05-26 Thread Mao Han
This patch change the csky pmu initialization from arch init to device init. The pmu can be configued with information from device tree(pmu device name, irq number and etc.). Signed-off-by: Mao Han CC: Guo Ren CC: linux-c...@vger.kernel.org --- arch/csky/kernel/perf_event.c | 58 +++

[PATCH V2 2/5] csky: Add reg-io-width property for csky pmu

2019-05-26 Thread Mao Han
csky pmu counter may have different io width. When the counter is smaller then 64 bits and counter value is smaller than the old value, it will result to a extremely large delta value. So the sampled value should be extend to 64 bits to avoid this, the extension bits base on the reg-io-width proper

[PATCH V2 4/5] dt-bindings: csky: Add csky PMU bindings

2019-05-26 Thread Mao Han
This patch adds the documentation to describe that how to add pmu node in dts. Signed-off-by: Mao Han CC: Rob Herring CC: Guo Ren CC: linux-c...@vger.kernel.org --- Documentation/devicetree/bindings/csky/pmu.txt | 38 ++ 1 file changed, 38 insertions(+) create mode 100

[PATCH V2 3/5] csky: Add pmu interrupt support

2019-05-26 Thread Mao Han
This patch add interrupt request and handler for csky pmu. perf can record on hardware event with this patch applied. Signed-off-by: Mao Han CC: Guo Ren CC: linux-c...@vger.kernel.org --- arch/csky/kernel/perf_event.c | 283 +++--- 1 file changed, 265 inserti

[PATCH V2 0/5] csky: Add pmu hardware sampling support

2019-05-26 Thread Mao Han
This patch set add hardware sampling support for csky-pmu, and also add some properties to pmu node definition. perf can record on hardware event with this patch applied. Changes since v1: - do not enable/disable irq at start/stop(may lose irq) - do not update hpcr when event type is invalid

[PATCH V2 5/5] csky: Fixup some error count in 810 & 860.

2019-05-26 Thread Mao Han
From: Guo Ren ck810 pmu only support event with index 0-8 and 0xd; ck860 only support event 1~4, 0xa~0x1b. So do not register unsupport event to hardware cache event, which may leader to unknown behavior. Signed-off-by: Guo Ren Signed-off-by: Mao Han CC: Guo Ren CC: linux-c...@vger.kernel.org

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

2019-05-26 Thread Anshuman Khandual
On 05/27/2019 12:07 PM, Ard Biesheuvel wrote: > On Mon, 27 May 2019 at 06:02, Anshuman Khandual > wrote: >> There are no callers for the functions which will pass unaligned physical >> addresses. Hence just drop these BUG_ON() checks which are not required. >> > This might change in the future,

Re: [PATCH] dmaengine: use to_platform_device()

2019-05-26 Thread Vinod Koul
On 26-05-19, 15:13, Weitao Hou wrote: > Use to_platform_device() instead of open-coding it. Applied after adding stm32 driver tag, thanks -- ~Vinod

Re: [PATCH] dt-bindings: gpio: Convert Arm PL061 to json-schema

2019-05-26 Thread Viresh Kumar
On 24-05-19, 13:38, Linus Walleij wrote: > On Tue, May 14, 2019 at 2:50 AM Rob Herring wrote: > > > Convert the Arm PL061 GPIO controller binding to json-schema format. > > > > As I'm the author for all but the gpio-ranges line, make the schema dual > > GPL/BSD license. > > > > Cc: Linus Walleij

Re: [PATCH 2/2] serial: 8250-mtk: modify uart DMA rx

2019-05-26 Thread Vinod Koul
On 23-05-19, 15:35, Long Cheng wrote: > Modify uart rx and complete for DMA Reviewed-by: Vinod Koul -- ~Vinod

Re: [RFC PATCH 2/2] rtl8xxxu: Add watchdog to update rate mask by signal strength

2019-05-26 Thread Chris Chiu
On Wed, May 22, 2019 at 2:38 AM Daniel Drake wrote: > > On Fri, May 10, 2019 at 2:37 AM Chris Chiu wrote: > > I've verified that multiple virtual interface can not work simultaneously in > > STA mode. I assigned different mac address for different vifs, I can only > > bring only one interface up.

[PATCH] kvm: memunmap() also needs HAS_IOMEM

2019-05-26 Thread Michal Kubecek
Commit d30b214d1d0a ("kvm: fix compilation on s390") addresses link error (undefined reference to memremap) without HAS_IOMEM but memunmap() is also only available with HAS_IOMEM enabled so that we need similar fix in kvm_vcpu_unmap(). Fixes: e45adf665a53 ("KVM: Introduce a new guest mapping API")

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

2019-05-26 Thread Ard Biesheuvel
On Mon, 27 May 2019 at 06:02, Anshuman Khandual wrote: > > There are no callers for the functions which will pass unaligned physical > addresses. Hence just drop these BUG_ON() checks which are not required. > This might change in the future, right? Should we perhaps switch to VM_BUG_ON() instead

Re: [PATCH v4 3/3] mtd: spinand: Add support for GigaDevice GD5F1GQ4UFxxG

2019-05-26 Thread Schrempf Frieder
Hi Jeff, On 24.05.19 02:12, Jeff Kletsky wrote: > (reduced direct addressees, though still on lists) > > On 5/22/19 11:42 PM, Schrempf Frieder wrote: > >> On 23.05.19 00:05, Jeff Kletsky wrote: >>> From: Jeff Kletsky >>> >>> The GigaDevice GD5F1GQ4UFxxG SPI NAND is in current production devices

Re: [PATCH v1 4/6] dmaengine: fsl-edma: add i.mx7ulp edma2 version support

2019-05-26 Thread Vinod Koul
On 10-05-19, 10:14, Robin Gong wrote: > Add edma2 for i.mx7ulp by version v3, since v2 has already > been used by mcf-edma. > The big changes based on v1 are belows: > 1. only one dmamux. > 2. another clock dma_clk except dmamux clk. > 3. 16 independent interrupts instead of only one interr

Re: [Qemu-devel] Running linux on qemu omap

2019-05-26 Thread Tony Lindgren
Hi, * Philippe Mathieu-Daudé [190523 12:01]: > What I use as reference for testing ARM boards [*] is the work of > Guenter Roeck: > https://github.com/groeck/linux-build-test/blob/master/rootfs/arm/run-qemu-arm.sh I think Guenter also has v2.3.50-local-linaro branch in his github repo that has s

Re: [PATCH v2 1/3] kselftest/cgroup: fix unexpected testing failure on test_memcontrol

2019-05-26 Thread Alex Shi
On 2019/5/25 8:06 上午, shuah wrote: > Alex, > > patches 1/3 and 2/3 failed checkpatch. Could you please the warns > and send v3. Go ahead and send all v3 for all 3 patches fixed and rent. Thanks a lot! Alex

Re: [Qemu-devel] Running linux on qemu omap

2019-05-26 Thread Thomas Huth
On 24/05/2019 20.59, Aaro Koskinen wrote: > Hi, > > On Fri, May 24, 2019 at 06:00:18PM +0300, Aaro Koskinen wrote: >> Please don't delete OMAP boards quite yet :) In the mainline kernel >> they are not orphaned, they frequently get tested using actual hardware, >> and QEMU would help in additional

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

2019-05-26 Thread Peng Fan
Hi Andre, > Subject: Re: [PATCH 0/2] mailbox: arm: introduce smc triggered mailbox > > 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 P

[PATCH v3 3/3] kselftest/cgroup: fix incorrect test_core skip

2019-05-26 Thread Alex Shi
The test_core will skip the test_cgcore_no_internal_process_constraint_on_threads test case if the 'cpu' controller missing in root's subtree_control. In fact we need to set the 'cpu' in subtree_control, to make the testing meaningful. ./test_core ... ok 4 # skip test_cgcore_no_internal_process_co

[PATCH v3 1/3] kselftest/cgroup: fix unexpected testing failure on test_memcontrol

2019-05-26 Thread Alex Shi
The cgroup testing relies on the root cgroup's subtree_control setting, If the 'memory' controller isn't set, all test cases will be failed as following: $ sudo ./test_memcontrol not ok 1 test_memcg_subtree_control not ok 2 test_memcg_current ok 3 # skip test_memcg_min not ok 4 test_memcg_low not

RE: [PATCH v2 1/2] dt-bindings: iio: adc: add adi,ad7780.yaml binding

2019-05-26 Thread Hennerich, Michael
> -Original Message- > From: Jonathan Cameron [mailto:ji...@kernel.org] > Sent: Sonntag, 26. Mai 2019 18:39 > To: Renato Lui Geh > Cc: l...@metafoo.de; Hennerich, Michael ; > knaac...@gmx.de; pme...@pmeerw.net; > gre...@linuxfoundation.org; Popa, Stefan Serban > ; Ardelean, Alexandru

[PATCH v3 2/3] kselftest/cgroup: fix unexpected testing failure on test_core

2019-05-26 Thread Alex Shi
The cgroup testing relys on the root cgroup's subtree_control setting, If the 'memory' controller isn't set, some test cases will be failed as following: $sudo ./test_core not ok 1 test_cgcore_internal_process_constraint ok 2 test_cgcore_top_down_constraint_enable not ok 3 test_cgcore_top_down_co

[GIT PULL] tee subsys for v5.3

2019-05-26 Thread Jens Wiklander
Hello arm-soc maintainers, Please pull this update of MAINTAINERS with a mailing list for TEE subsystem. Thanks, Jens The following changes since commit cd6c84d8f0cdc911df435bb075ba22ce3c605b07: Linux 5.2-rc2 (2019-05-26 16:49:19 -0700) are available in the Git repository at: https://git.

Re: [PATCH] MAINTAINERS: Add mailing list for the TEE subsystem

2019-05-26 Thread Jens Wiklander
On Thu, May 9, 2019 at 11:33 AM Sumit Garg wrote: > > On Wed, 8 May 2019 at 15:44, Sumit Garg wrote: > > > > Add a mailing list for patch reviews and discussions related to TEE > > subsystem. > > > > Signed-off-by: Sumit Garg > > I forgot to include following tag as this change was suggested by

Re: [PATCH v3 4/4] arm64: mm: Implement pte_devmap support

2019-05-26 Thread Anshuman Khandual
On 05/24/2019 11:38 PM, Will Deacon wrote: > On Thu, May 23, 2019 at 04:03:16PM +0100, Robin Murphy wrote: >> diff --git a/arch/arm64/include/asm/pgtable.h >> b/arch/arm64/include/asm/pgtable.h >> index 2c41b04708fe..a6378625d47c 100644 >> --- a/arch/arm64/include/asm/pgtable.h >> +++ b/arch/ar

Re: 5.1 and 5.1.1: BUG: unable to handle kernel paging request at ffffea0002030000

2019-05-26 Thread Oleksandr Natalenko
On Fri, May 24, 2019 at 01:31:46PM +0100, Mel Gorman wrote: > On Fri, May 24, 2019 at 01:43:29PM +0200, Oleksandr Natalenko wrote: > > > Please use the offset 0xb9 > > > > > > addr2line -i -e /usr/src/linux/vmlinux `printf "0x%lX" $((0x$ADDR+0xb9)) > > > > > > -- > > > Mel Gorman > > > SUSE Labs

[PATCH 6/7] sched/fair: Remove sgs->sum_weighted_load

2019-05-26 Thread Dietmar Eggemann
Since sg_lb_stats::sum_weighted_load is now identical with sg_lb_stats::group_load remove it and replace its use case (calculating load per task) with the latter. Signed-off-by: Dietmar Eggemann --- kernel/sched/fair.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel

[PATCH 7/7] sched/fair: Rename weighted_cpuload() to cpu_load()

2019-05-26 Thread Dietmar Eggemann
This is done to align the per cpu (i.e. per rq) load with the util counterpart (cpu_util(int cpu)). The term 'weighted' is not needed since there is no 'unweighted' load to distinguish it from. Signed-off-by: Dietmar Eggemann --- kernel/sched/fair.c | 44 -

[PATCH 3/7] sched/debug: Remove sd->*_idx range on sysctl

2019-05-26 Thread Dietmar Eggemann
This reverts commit 201c373e8e48 ("sched/debug: Limit sd->*_idx range on sysctl"). Load indexes (sd->*_idx) are no longer needed without rq->cpu_load[]. The range check for load indexes can be removed as well. Get rid of it before the rq->cpu_load[] since it uses CPU_LOAD_IDX_MAX. At the same tim

[PATCH 4/7] sched: Remove rq->cpu_load[]

2019-05-26 Thread Dietmar Eggemann
The per rq load array values also disappear from the cpu#X sections in /proc/sched_debug. Signed-off-by: Dietmar Eggemann --- kernel/sched/core.c | 6 +- kernel/sched/debug.c | 5 - kernel/sched/sched.h | 2 -- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/kernel/sched/

[PATCH 2/7] sched/fair: Replace source_load() & target_load() w/ weighted_cpuload()

2019-05-26 Thread Dietmar Eggemann
With LB_BIAS disabled, source_load() & target_load() return weighted_cpuload(). Replace both with calls to weighted_cpuload(). The function to obtain the load index (sd->*_idx) for an sd, get_sd_load_idx(), can be removed as well. Finally, get rid of the sched feature LB_BIAS. Signed-off-by: Die

[PATCH 0/7] sched: Remove per rq load array

2019-05-26 Thread Dietmar Eggemann
Since commit fdf5f315d5cf "sched/fair: Disable LB_BIAS by default" (v4.20) the scheduler feature LB_BIAS is disabled, i.e. the scheduler has been only using rq->cpu_load[0] for the cpu load values since then. Tests back then (result are listed in the header of the patch mentioned above) haven't sh

[PATCH 5/7] sched: Remove sd->*_idx

2019-05-26 Thread Dietmar Eggemann
The sched domain per rq load index files also disappear from the /proc/sys/kernel/sched_domain/cpuX/domainY directories. Signed-off-by: Dietmar Eggemann --- include/linux/sched/topology.h | 5 - kernel/sched/debug.c | 25 ++--- kernel/sched/topology.c|

[PATCH 1/7] sched: Remove rq->cpu_load[] update code

2019-05-26 Thread Dietmar Eggemann
With LB_BIAS disabled, there is no need to update the rq->cpu_load[idx] any more. Signed-off-by: Dietmar Eggemann --- include/linux/sched/nohz.h | 8 -- kernel/sched/core.c| 1 - kernel/sched/fair.c| 255 - kernel/sched/sched.h | 6

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

2019-05-26 Thread Peng Fan
Hi Sudeep, > Subject: Re: [PATCH 0/2] mailbox: arm: introduce smc triggered mailbox > > 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://eur01.

[PATCH v2 3/3] math-emu: Use statement expressions to fix Wshift-count-overflow warning

2019-05-26 Thread Vincent Chen
To avoid "shift count >= width of type" warning, using statement expressions to implement the conditional controlling before constant shift The modification in op-2.h is taken from the glibc commit 'sysdeps/unix/sysv/lin ("fe0b1e854ad32")'. Signed-off-by: Vincent Chen --- Changes in v2 - This

[PATCH v2 0/3] nds32: Prevent FPU emulator from incorrectly modifying IEX status

2019-05-26 Thread Vincent Chen
In order for kernel to capture each denormalized output, the UDF trapping enable bit is always raised in $fpcsr. Because underflow case will issue not an underflow exception but also an inexact exception, it causes that the IEX, IEX cumulative exception, flag in $fpcsr to be raised in each denorm

[PATCH v2 2/3] nds32: add new emulations for floating point instruction

2019-05-26 Thread Vincent Chen
The existing floating point emulations is only available for floating instruction that possibly issue denormalized input and underflow exceptions. These existing FPU emulations are not sufficient when IEx Trap is enabled because some floating point instructions only issue inexact exception. This pa

[PATCH v2 1/3] nds32: Avoid IEX status being incorrectly modified

2019-05-26 Thread Vincent Chen
In order for kernel to capture each denormalized output, the UDF trapping enable bit is always raised in $fpcsr. Because underflow case will issue not an underflow exception but also an inexact exception, it causes that the IEX, IEX cumulative exception, flag in $fpcsr to be raised in each denorm

[PATCH 4/3] perf tools: Remove const from thread read accessors

2019-05-26 Thread Namhyung Kim
The namespaces and comm fields of a thread are protected by rwsem and require write access for it. So it ended up using a cast to remove the const qualifier. Let's get rid of the const then. Signed-off-by: Namhyung Kim --- tools/perf/util/hist.c | 2 +- tools/perf/util/thread.c | 12 ++-

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

2019-05-26 Thread Greg KH
On Mon, May 27, 2019 at 10:06:08AM +0800, Shaokun Zhang wrote: > 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

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

2019-05-26 Thread Greg Kroah-Hartman
On Mon, May 27, 2019 at 10:06:07AM +0800, Shaokun Zhang wrote: > 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. Wyso

[PATCH v1] mm: hugetlb: soft-offline: fix wrong return value of soft offline

2019-05-26 Thread Naoya Horiguchi
Soft offline events for hugetlb pages return -EBUSY when page migration succeeded and dissolve_free_huge_page() failed, which can happen when there're surplus hugepages. We should judge pass/fail of soft offline by checking whether the raw error page was finally contained or not (i.e. the result of

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 imp

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 get

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 > KA

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&m=155860816602506&w=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 the

[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 manag

[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). Signed-off-

[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 Acked-by

[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: Morit

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). > > Later

[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 patchse

[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 mor

[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 f

[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 --- drivers/fpga/dfl-fme-mgr.

[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 Signe

[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 i

[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 cr

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 request_firmware_in

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 MI

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 > rnel.org%2Fpat

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 assi

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 fdt_nop

[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 deletions(

[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 the

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: e

[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. Fo

[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 addi

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 V

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 Thu,

[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 1006

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 ge

[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: https://github.com/0day-ci/l

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, M

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 ma

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 a

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 C

[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 us

  1   2   3   >