[PATCH for-next 09/10] IB/hns: Fix two bugs for rdma cm connecting

2016-09-01 Thread Salil Mehta
From: Lijun Ou This patch mainly modify the value of HNS_ROCE_SL_SHIFT and delete the lines for assigning for the field of local_enable_e2e_credit in QP1C. Signed-off-by: Lijun Ou Reviewed-by: Wei Hu Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_device.h |2 +- driver

Re: [v10,2/2] PCI: Rockchip: Add Rockchip PCIe controller support

2016-09-01 Thread Heiko Stübner
Am Donnerstag, 1. September 2016, 10:14:01 schrieb Brian Norris: > On Thu, Sep 01, 2016 at 11:34:55AM -0500, Bjorn Helgaas wrote: > > In the interest of making progress, I made most of the changes Guenter > > suggested (thanks very much, Guenter!) and made some more of my own on > > top of those. >

[PATCH for-next 10/10] IB/hns: Add node_guid definition to the bindings document

2016-09-01 Thread Salil Mehta
From: Lijun Ou This patch adds node_guid definition in bindings document. The value of node_guid will be used during RDMA connection. Signed-off-by: Lijun Ou Reviewed-by: Wei Hu Signed-off-by: Salil Mehta --- .../bindings/infiniband/hisilicon-hns-roce.txt |2 ++ 1 file changed, 2 ins

Re: [PATCH v3 2/2] regulator: pwm: Prevent falling too fast

2016-09-01 Thread Mark Brown
On Tue, Aug 30, 2016 at 09:21:16PM -0700, Douglas Anderson wrote: > In this patch we actually block returning from the set_voltage() call > until we've finished delaying. A future patch atop this one might > choose to return more immediately and let the voltages fall in the > background. That wo

Re: [PATCH] ASoC: rockchip: use SPI dependency for rt5514

2016-09-01 Thread Mark Brown
On Fri, Aug 26, 2016 at 05:50:55PM +0200, Arnd Bergmann wrote: > Signed-off-by: Arnd Bergmann > Fixes: c6eac8a36a84 ("ASoC: rockchip: Add machine driver for RK3399 GRU > Boards") The Fixes is usually sorted before everything else, looks a bit odd like that especially as more signoffs get added.

[PATCH v2 2/8] sched: Extend scheduler's asym packing

2016-09-01 Thread Srinivas Pandruvada
From: Tim Chen We generalize the scheduler's asym packing to provide an ordering of the cpu beyond just the cpu number. This allows the use of the ASYM_PACKING scheduler machinery to move loads to preferred CPU in a sched domain. The preference is defined with the cpu priority given by arch_asym

Re: [PATCH v2 1/7] [media] rc-main: assign driver type during allocation

2016-09-01 Thread Sean Young
On Fri, Sep 02, 2016 at 02:16:23AM +0900, Andi Shyti wrote: > The driver type can be assigned immediately when an RC device > requests to the framework to allocate the device. > > This is an 'enum rc_driver_type' data type and specifies whether > the device is a raw receiver or scancode receiver.

[PATCH 0/2] constify watchdog_ops structures

2016-09-01 Thread Julia Lawall
Constify watchdog_ops structures. --- drivers/watchdog/bcm7038_wdt.c |2 +- drivers/watchdog/cadence_wdt.c |2 +- drivers/watchdog/kempld_wdt.c |2 +- drivers/watchdog/rn5t618_wdt.c |2 +- drivers/watchdog/softdog.c |2 +- drivers/watchdog/tegra_wdt.c|2 +-

[PATCH for-next 07/10] IB/hns: Change the logic for allocating uar registers

2016-09-01 Thread Salil Mehta
From: Lijun Ou This patch mainly modifies the logic for allocating uar registers. In HiP06 SoC, HW has 8 group of uar registers for kernel and user space application. The uar index is assigned as follows: 0 -- for kernel 1~7 -- for user space application Signed-off-by: Lijun Ou

Re: [PATCH 2/2] clk: samsung: exynos5410: Use samsung_cmu_register_one() to simplify code

2016-09-01 Thread Sylwester Nawrocki
On 08/22/2016 04:49 AM, Chanwoo Choi wrote: > This patch uses the samsung_cmu_register_one() to simplify code > and move the pll/mux/div/gate data to initconst section. > > Signed-off-by: Chanwoo Choi Applied, thanks.

[PATCH for-next 08/10] IB/hns: Fix the bug of rdma cm connecting on user mode

2016-09-01 Thread Salil Mehta
From: Lijun Ou Fix bug of modify qp from init to init on user mode. Otherwise, it will oops when rmda cm established. Signed-off-by: Lijun Ou Reviewed-by: Wei Hu Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 41 ++-- 1 file changed, 14

[PATCH for-next 01/10] IB/hns: Register HNS RoCE Driver get_netdev() with IB Core

2016-09-01 Thread Salil Mehta
From: Lijun Ou This patch adds get_netdev() function to the IB device. This shall be used to fetch netdev corresponding to the port number. This function would be called by IB core(Generic CM Agent) for example, when the RDMA connection is being established. Signed-off-by: Lijun Ou Reviewed-by:

[PATCH 1/2] watchdog: tegra: constify watchdog_ops structures

2016-09-01 Thread Julia Lawall
Check for watchdog_ops structures that are only stored in the ops field of a watchdog_device structure. This field is declared const, so watchdog_ops structures that have this property can be declared as const also. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.

[RFT PATCH v4 1/3] usb: dwc2: gadget: Only initialize device if in device mode

2016-09-01 Thread John Youn
In dwc2_hsotg_udc_start(), don't initialize the controller for device mode unless we are actually in device mode. Tested-by: Heiko Stuebner Signed-off-by: John Youn --- drivers/usb/dwc2/gadget.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc2/gadget.c

RE: [PATCH v5 5/8] char: rpmb: add RPMB simulation device

2016-09-01 Thread Winkler, Tomas
> > On Mon, Jul 18, 2016 at 11:27:50PM +0300, Tomas Winkler wrote: > > This is a simple platform device used for testing the RPMB subsystem. > > > > The module currently supports two configuration options: > > 1. max_wr_blks: for specifying max blocks that can be written in a > > single command 2.

Re: [PATCH 1/2] clk: samsung: exynos5260: Move struct samsung_cmu_info to init section

2016-09-01 Thread Sylwester Nawrocki
On 08/22/2016 04:49 AM, Chanwoo Choi wrote: > This patch moves the all samsung_cmu_info struct to initconst section > because they are used only in initconst section. > > Signed-off-by: Chanwoo Choi Applied with the commit message changed as below, thanks. 8< clk: samsung: exyno

Re: [PATCH] sunrpc: queue work on system_power_efficient_wq

2016-09-01 Thread Anna Schumaker
On 09/01/2016 03:30 AM, Chunyan Zhang wrote: > From: Ke Wang > > sunrpc uses workqueue to clean cache regulary. There is no real dependency > of executing work on the cpu which queueing it. > > On a idle system, especially for a heterogeneous systems like big.LITTLE, > it is observed that the bi

Re: [PATCH V2] sched/fair: Fix that tasks are not constrained by cfs_b->quota on hotplug core, when hotplug core is offline and then online.

2016-09-01 Thread bsegall
Peter Zijlstra writes: > You forgot to Cc Ben, who gave you feedback on v1, which is rather poor > style. Also, I don't see how kernel-janitors is relevant to this patch. > This is very much not a janitorial thing. > > (also, why send it twice?) > > On Tue, Aug 30, 2016 at 10:12:40PM +0900, Jeeho

Re: [PATCH 2/2] sched/wait: avoid abort_exclusive_wait() in __wait_on_bit_lock()

2016-09-01 Thread Peter Zijlstra
On Fri, Aug 26, 2016 at 02:45:52PM +0200, Oleg Nesterov wrote: > We do not need anything tricky to avoid the race, The race being: CPU0CPU1CPU2 __wait_on_bit_lock() bit_wait_io()

Re: [PATCH 9/9] serial/arc: constify uart_ops structures

2016-09-01 Thread Vineet Gupta
On 09/01/2016 10:51 AM, Julia Lawall wrote: > Check for uart_ops structures that are only stored in the ops field of a > uart_port structure. This field is declared const, so uart_ops structures > that have this property can be declared as const also. > > The semantic patch that makes this change

[PATCH v2 1/4] acpi: cppc: Allow build with ACPI_CPU_FREQ_PSS config

2016-09-01 Thread Srinivas Pandruvada
Some newer x86 platforms have support for both _CPC and _PSS object. So kernel config can have both ACPI_CPU_FREQ_PSS and ACPI_CPPC_LIB. So remove restriction for ACPI_CPPC_LIB to build only when ACPI_CPU_FREQ_PSS is not defined. Also for legacy systems with only _PSS, we shouldn't bail out if acpi

Re: [RFC] PCI: Unassigned Expansion ROM BARs

2016-09-01 Thread Myron Stowe
Here it is a year later and there has basically been no progress on this ongoing situation. I still often encounter bugs raised against the kernel w.r.t. unmet resource allocations - here is the most recent example, I'll attach the 'dmesg' log from the platform at https://bugzilla.kernel.org/show_

[PATCH v2 2/4] acpi: cppc: Don't return on CPPC probe failure

2016-09-01 Thread Srinivas Pandruvada
It is still possible to continue even CPPC data is invalid or missing. Suggested-by: Alexey Klimov Signed-off-by: Srinivas Pandruvada --- drivers/acpi/processor_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_

[PATCH v2 0/4] CPPC only changes for supporting ITMT 3.0

2016-09-01 Thread Srinivas Pandruvada
This patchset is CPPC only changes from original "Support Intel® Turbo Boost Max Technology 3.0" series. v2 - Rebased on top of bleeding edge branch of Linux-pm git - Instead of #ifdef in cppc_acpi using __weak attribute for functions implemented in arch/x86/kernel/acpi/ - Removed integer support

[PATCH v2 8/8] cpufreq: intel_pstate: Use CPPC to get max performance

2016-09-01 Thread Srinivas Pandruvada
This change uses acpi cppc_lib interface to get CPPC performance limits. Once CPPC limits of all online cores are read, first check if there is difference in max performance. If there is a difference, then the scheduler interface is called to update per cpu priority. After updating priority of all

[PATCH v2 3/8] x86, cpu: provide a function topology_num_packages to enumerate #packages

2016-09-01 Thread Srinivas Pandruvada
From: Tim Chen We compute the the number of active packages during boot and topology update. Provide a function to export this info for functions that need this topology info. Signed-off-by: Tim Chen Signed-off-by: Srinivas Pandruvada --- arch/x86/include/asm/topology.h | 1 + arch/x86/kerne

Re: [PATCHv4 6/6] x86/signal: add SA_{X32,IA32}_ABI sa_flags

2016-09-01 Thread Oleg Nesterov
On 09/01, Dmitry Safonov wrote: > > And the biggest problem in this approach would be not the size of > code changes to CRIU (which are already quite large with this > patches set), but AFAICS, it will have big performance penalty: > we would need to bounce process tree, processes properties > from

Re: [PATCH v2 2/2] ARM64: dts: meson-gxbb: Add PWM pinctrl nodes

2016-09-01 Thread Kevin Hilman
Neil Armstrong writes: > Add DT nodes for PWMs in EE and AO domains. > > Acked-by: Linus Walleij > Signed-off-by: Neil Armstrong Appled. Thanks, Kevin

Re: fanotify: unkillable hanged processes

2016-09-01 Thread Dmitry Vyukov
On Thu, Sep 1, 2016 at 8:04 PM, Peter Zijlstra wrote: > On Thu, Sep 01, 2016 at 07:53:44PM +0200, Dmitry Vyukov wrote: >> Hello, >> >> The following program: >> >> https://gist.githubusercontent.com/dvyukov/0952eeac71069b46b3fe0e28bd1a02bf/raw/396b9dcce2636cecab1a4161c15d3f066e6ef639/gistfile1.txt

Re: [PATCH] staging: android: lowmemorykiller.c: Fix checkpatch warning

2016-09-01 Thread Joe Perches
On Thu, 2016-09-01 at 20:33 +0200, Greg Kroah-Hartman wrote: > On Thu, Sep 01, 2016 at 11:19:41AM -0700, Joe Perches wrote: > > On Thu, 2016-09-01 at 17:36 +0200, Greg Kroah-Hartman wrote: > > > On Thu, Aug 25, 2016 at 06:26:48PM +0300, Andrey Utkin wrote: > > > > On Thu, Aug 25, 2016 at 11:10:25AM

Re: [v10,2/2] PCI: Rockchip: Add Rockchip PCIe controller support

2016-09-01 Thread Bjorn Helgaas
On Thu, Sep 01, 2016 at 09:57:58AM -0700, Brian Norris wrote: > On Thu, Sep 01, 2016 at 11:34:55AM -0500, Bjorn Helgaas wrote: > > I can't conveniently build it, so I'm sure I've broken things. I > > Indeed, you have :) > > > pushed the current work-in-progress branch to pci/host-rockchip-wip. >

Re: pull-request: wireless-drivers 2016-08-29

2016-09-01 Thread David Miller
From: Kalle Valo Date: Mon, 29 Aug 2016 22:02:08 +0300 > I'm quite backlogged after coming back from my vacation but luckily it > has been pretty quiet. Here is the first batch of patches for 4.8, quite > simple actually and not really anything special to mention. More to come > later, most proba

[PATCH v2 0/8] Support Intel® Turbo Boost Max Technology 3.0

2016-09-01 Thread Srinivas Pandruvada
v2 - The patchset is split into two parts so that CPPC changes can be merged first 1. Only ACPI CPPC changes (It is posted separately) 2. ITMT changes (scheduler and Intel P-State) - Changes in patch: sched,x86: Enable Turbo Boost Max Technology 1. Use arch_update_cpu_topology to indicate need

Re: [writeback] 8bc4ad9498: INFO: suspicious RCU usage. ]

2016-09-01 Thread Jens Axboe
On 09/01/2016 04:21 AM, kernel test robot wrote: FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git wb-buf-throttle commit 8bc4ad9498f81d6689da42457615db0989e720d3 ("writeback: throttle buffered writeback") in testcase: boot on test m

[PATCH v2 4/8] sched, x86: use arch_update_cpu_topology to indicate x86 need sched domain rebuild

2016-09-01 Thread Srinivas Pandruvada
From: Tim Chen Provides x86 with arch_update_cpu_topology function. This function allows us to indicate that a condition is detected that the sched domain of x86 needs a complete rebuild. This is done by setting the x86_topology_update flag. Signed-off-by: Tim Chen Signed-off-by: Srinivas Pand

Re: [PATCH] spi: qup: skip clk_disable_unprepare if the device is already runtime suspended

2016-09-01 Thread Mark Brown
On Thu, Aug 25, 2016 at 01:33:28PM +0100, Sudeep Holla wrote: > If the spi device is already runtime suspended, if spi_qup_suspend is > executed during suspend-to-idle or suspend-to-ram it will result in the > following splat: > > WARNING: CPU: 3 PID: 1593 at drivers/clk/clk.c:476 > clk_core_unpr

Applied "ASoC: arizona: Wait for resume before enabling FLL" to the asoc tree

2016-09-01 Thread Mark Brown
The patch ASoC: arizona: Wait for resume before enabling FLL has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Re: [RFC] spi: Prevent unexpected SPI time out due to arithmetic overflow

2016-09-01 Thread Mark Brown
On Mon, Aug 29, 2016 at 09:02:47AM -0500, Sien Wu wrote: > When reading SPI flash as MTD device, the transfer length is > directly passed to the spi driver. If the requested data size > exceeds 512KB, it will cause the time out calculation to This doesn't apply against current code, please check a

Re: [PATCH v3 1/2] regulator: pwm: Add support for a fixed delay after duty cycle changes

2016-09-01 Thread Mark Brown
On Tue, Aug 30, 2016 at 09:21:15PM -0700, Douglas Anderson wrote: > A change of the duty cycle doesn't necessarily cause an immediate switch > to the target voltage. On many PWM regulators there is a fixed "settle > time" (irrespective of the jump size) that we need to wait after an > upward jump

[RFT PATCH v4 3/3] usb: dwc2: Properly account for the force mode delays

2016-09-01 Thread John Youn
When a force mode bit is set and the IDDIG debounce filter is enabled, there is a delay for the forced mode to take effect. This delay is due to the IDDIG debounce filter and is variable depending on the platform's PHY clock speed. To account for this delay we can poll for the expected mode. On a

[RFT PATCH v4 2/3] usb: dwc2: Add delay to core soft reset

2016-09-01 Thread John Youn
Add a delay to the core soft reset function to account for the IDDIG debounce filter. If the current mode is host, either due to the force mode bit being set (which persists after core reset) or the connector id pin, a core soft reset will temporarily reset the mode to device and a delay from the

Re: [PATCH] fs:Fix kmemleak leak warning in getname_flags about working on unitialized memory

2016-09-01 Thread Eric Sandeen
On 9/1/16 12:16 PM, Al Viro wrote: > On Thu, Sep 01, 2016 at 08:10:44AM -0500, Eric Sandeen wrote: >> On 8/4/16 8:57 AM, Al Viro wrote: >> >>> Don't feed the troll. On all paths leading to that place we have >>> result->name = kname; >>> len = strncpy_from_user(kname, filename, EMB

Re: [PATCH 3/4] dt-binding: remoteproc: venus rproc dt binding document

2016-09-01 Thread Andy Gross
On Thu, Sep 01, 2016 at 05:58:17PM +0300, Stanimir Varbanov wrote: > Hi, > > Cc: Marek > > On 08/30/2016 08:17 PM, Bjorn Andersson wrote: > > On Mon 29 Aug 04:48 PDT 2016, Stanimir Varbanov wrote: > > > > [..] > >>> Trying to wrap my head around how the iommu part works here. The > >>> downstrea

[RFT PATCH v4 0/3] usb: dwc2: Fix core reset and force mode delays

2016-09-01 Thread John Youn
This series accounts for the delay from the IDDIG debounce filter when switching modes. This delay is a function of the PHY clock speed and can range from 5-50 ms. This delay must be taken into account on core reset and force modes. A full explanation is provided in the patch commit log and code co

[PATCH v2 5/8] sched,x86: Enable Turbo Boost Max Technology

2016-09-01 Thread Srinivas Pandruvada
From: Tim Chen On some Intel cores, they can boosted to a higher turbo frequency than the other cores on the same die. So we prefer processes to be run on them vs other lower frequency ones for extra performance. We extend the asym packing feature in the scheduler to support packing task to the

Re: [PATCH] fs:Fix kmemleak leak warning in getname_flags about working on unitialized memory

2016-09-01 Thread Al Viro
On Thu, Sep 01, 2016 at 08:10:44AM -0500, Eric Sandeen wrote: > On 8/4/16 8:57 AM, Al Viro wrote: > > > Don't feed the troll. On all paths leading to that place we have > > result->name = kname; > > len = strncpy_from_user(kname, filename, EMBEDDED_NAME_MAX); > > or > >

Re: [PATCH 0/9] PCI: rockchip: Cleanups against v10

2016-09-01 Thread Arnd Bergmann
On Thursday, September 1, 2016 11:43:52 AM CEST Bjorn Helgaas wrote: > These are cleanups against 2098142ae87d, the current pci/host-rockchip > head in my tree. This is basically the v10 driver posting (it's not > identical because I had already tweaked a few things and squashed in > Brian's bug f

[PATCH v2 7/8] acpi: bus: Set _OSC for diverse core support

2016-09-01 Thread Srinivas Pandruvada
Set the OSC_SB_CPC_DIVERSE_HIGH_SUPPORT (bit 12) to enable diverse core support. Signed-off-by: Srinivas Pandruvada --- drivers/acpi/bus.c | 3 +++ include/linux/acpi.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 1001b92..eacd4be 100644 -

Re: [PATCH v2 3/8] regulator: axp20x: support AXP806 variant

2016-09-01 Thread Mark Brown
On Sat, Aug 27, 2016 at 03:55:39PM +0800, Chen-Yu Tsai wrote: > The X-Powers AXP806 PMIC has a new set of buck and LDO regulators, and > also a switch. The buck regulators support teaming into multi-phase > groups, with A+B, A+B+C, D+E groupings. Acked-by: Mark Brown signature.asc Description:

Re: [PATCH V2 00/22] Replace the CFQ I/O Scheduler with BFQ

2016-09-01 Thread Eric Wheeler
On Wed, 31 Aug 2016, Mark Brown wrote: [...] > I personally feel that given that it looks like this is all going to > take a while it'd still be good to merge BFQ at least as an alternative > scheduler so that people can take advantage of it while the work on > modernising everything to use blk-mq

cmsg newgroup alt.sex.fetish.bool (was Re: [PATCH] arch: all: include: asm: bitops: Use bool instead of int for all bit test functions)

2016-09-01 Thread Al Viro
On Tue, Aug 30, 2016 at 05:49:05AM +0800, Chen Gang wrote: > Could you provide the related proof? > > Or shall I try to analyze about it and get proof? Can you show a proof that it actually improves anything? He who proposes a patch gets to defend it, not the other way round... Al, bloody anno

[PATCH v2 1/8] sched, x86: Add SD_ASYM_PACKING flags to x86 cpu topology for ITMT

2016-09-01 Thread Srinivas Pandruvada
From: Tim Chen We uses ASYM_PACKING feature in the scheduler to move tasks to more capable cpus that can be boosted to higher frequency. This is enabled by Intel Turbo Boost Max Technology 3.0 (ITMT). We mark the sched domain topology level with SD_ASYM_PACKING flag for such systems to indicate

Applied "spi: qup: skip clk_disable_unprepare if the device is already runtime suspended" to the spi tree

2016-09-01 Thread Mark Brown
The patch spi: qup: skip clk_disable_unprepare if the device is already runtime suspended has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in

Re: [PATCH] ARM: dts: meson-gxbb: Add support for the Nexbox A95X Board

2016-09-01 Thread Kevin Hilman
Hi Neil, Neil Armstrong writes: > Signed-off-by: Neil Armstrong > --- > arch/arm64/boot/dts/amlogic/Makefile | 1 + > .../boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts| 79 > ++ > 2 files changed, 80 insertions(+) > create mode 100644 arch/arm64/boot/dts/

Re: [PATCH v2 17/26] irqchip: mips-cpu: Introduce IPI IRQ domain support

2016-09-01 Thread Jason Cooper
Hi Paul, On Tue, Aug 30, 2016 at 06:29:20PM +0100, Paul Burton wrote: > Introduce support for registering an IPI IRQ domain suitable for use by > systems using the MIPS MT (multithreading) ASE within a single core. > This will allow for such systems to be supported generically, without > the curre

Re: [PATCH] ptrace: clear TIF_SYSCALL_TRACE on ptrace detach

2016-09-01 Thread Ales Novak
On Thu, Sep 01, 2016 at 06:46:13PM +0200, Oleg Nesterov wrote: > On 09/01, Ales Novak wrote: > > > > On ptrace_detach(), the TIF_SYSCALL_TRACE in thread->flags of the tracee > > is not cleared up. This results in the tracehook_report_syscall_* being > > called (though there's no longer a tracer lis

Re: [PATCH 1/2] sched/wait: abort_exclusive_wait() should pass TASK_NORMAL to wake_up()

2016-09-01 Thread Oleg Nesterov
On 09/01, Peter Zijlstra wrote: > > So mixing INTERRUPTIBLE and UNINTERRUPTIBLE and then not using > TASK_NORMAL for wakeups is a mis-feature/abuse of waitqueues IMO. Heh, agreed. When I was doing this fix I suddenly realize that I do not understand why do we have, say, wake_up_interruptible(). I

Re: [PATCH v5 4/8] char: rpmb: provide a user space interface

2016-09-01 Thread Greg Kroah-Hartman
On Thu, Sep 01, 2016 at 08:05:26PM +, Winkler, Tomas wrote: > > > > > On Sun, Aug 07, 2016 at 09:44:03AM +, Winkler, Tomas wrote: > > > > > > > > On Mon 2016-07-18 23:27:49, Tomas Winkler wrote: > > > > > The user space API is achieved via two synchronous IOCTL. > > > > > > > > IOCTLs? >

Re: [PATCH] staging: android: lowmemorykiller.c: Fix checkpatch warning

2016-09-01 Thread Greg Kroah-Hartman
On Thu, Sep 01, 2016 at 11:19:41AM -0700, Joe Perches wrote: > On Thu, 2016-09-01 at 17:36 +0200, Greg Kroah-Hartman wrote: > > On Thu, Aug 25, 2016 at 06:26:48PM +0300, Andrey Utkin wrote: > > > > > > On Thu, Aug 25, 2016 at 11:10:25AM -0400, Anson Jacob wrote: > > > > > > > > Fix checkpatch.pl

Re: [PATCH v3 5/5] net: asix: autoneg will set WRITE_MEDIUM reg

2016-09-01 Thread Eric Dumazet
On Thu, 2016-09-01 at 12:47 -0400, Robert Foss wrote: > I'm not quite sure how the first From line was added, it > should not have been. > Grant Grundler is most definitely the author. > > Would you like me to resubmit in v++ and make sure that it has been > corrected? This is too late, patches

Re: [PATCH] android: binder: use VM_ALLOC to get vm area.

2016-09-01 Thread Arve Hjønnevåg
On Thu, Sep 1, 2016 at 12:02 PM, Greg KH wrote: > On Thu, Sep 01, 2016 at 02:41:04PM +0800, Ganesh Mahendran wrote: >> VM_IOREMAP is used to access hardware through a mechanism called >> I/O mapped memory. Android binder is a IPC machanism which will >> not access I/O memory. >> >> Also VM_IOREMAP

[PATCH] ptrace: clear TIF_SYSCALL_TRACE on ptrace detach

2016-09-01 Thread Ales Novak
On __ptrace_detach(), called from do_exit()->exit_notify()-> forget_original_parent()->exit_ptrace(), the TIF_SYSCALL_TRACE in thread->flags of the tracee is not cleared up. This results in the tracehook_report_syscall_* being called (though there's no longer a tracer listening to that) upon its fu

Re: [PATCH v5 5/8] char: rpmb: add RPMB simulation device

2016-09-01 Thread Greg Kroah-Hartman
On Thu, Sep 01, 2016 at 08:25:28PM +, Winkler, Tomas wrote: > > On Mon, Jul 18, 2016 at 11:27:50PM +0300, Tomas Winkler wrote: > > > This is a simple platform device used for testing the RPMB subsystem. > > > +static struct platform_device *rpmb_sim_pdev; > > > > A platform device? Ick, no pl

[PATCH] rapidio/tsi721: fix incorrect detection of address translation condition

2016-09-01 Thread Alexandre Bounine
Fix incorrect condition to identify involvment of a address translation mechanism. This bug results in NULL pointer kernel crash dump in cases when mapping of inbound RapidIO address range is requested within existing aprture. This patch is applicable to kernel versions >= v4.6. Signed-off-by: A

Re: [PATCH 7/8] wbt: add general throttling mechanism

2016-09-01 Thread Jens Axboe
On 09/01/2016 12:05 PM, Omar Sandoval wrote: diff --git a/lib/Kconfig b/lib/Kconfig index d79909dc01ec..5a65a1f91889 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -550,4 +550,8 @@ config STACKDEPOT bool select STACKTRACE +config WBT + bool + select SCALE_BITMAP Look

[PATCH] f2fs: check free_sections for defragmentation

2016-09-01 Thread Jaegeuk Kim
Fix wrong condition check for defragmentation of a file. Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 37c24be..a8aa6fd 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -2037,7 +2037,7 @@

Re: [PATCH 2/2] sched/wait: avoid abort_exclusive_wait() in __wait_on_bit_lock()

2016-09-01 Thread Peter Zijlstra
On Thu, Sep 01, 2016 at 09:01:41PM +0200, Peter Zijlstra wrote: > > test_and_set_bit() implies mb() so > > the lockless list_empty_careful() case is fine, we can not miss the > > condition if we race with unlock_page(). > > You're talking about this ordering?: > > finish_wait()

Re: [PATCH v1 00/10] Optimize sched avgs computation and implement flat util hierarchy

2016-09-01 Thread Dietmar Eggemann
On 29/08/16 02:37, Yuyang Du wrote: > On Tue, Aug 23, 2016 at 04:39:51PM +0100, Dietmar Eggemann wrote: >> On 23/08/16 15:45, Vincent Guittot wrote: >>> On 23 August 2016 at 16:13, Peter Zijlstra wrote: On Tue, Aug 23, 2016 at 03:28:19PM +0200, Vincent Guittot wrote: > I still wonder if u

Re: [PATCH v4 0/3] nvmem: rockchip-efuse: support more rockchip SoCs

2016-09-01 Thread Srinivas Kandagatla
Hi Finley, On 29/08/16 10:50, Finley Xiao wrote: As the timing and organization of efuse may be different between rockchip SoCs, so their read function may be different. We add different device tree compatible string for rockchip SoCs to match their own read function. V3->V4: - 3/3 change the

Re: [PATCH v3] memory-hotplug: fix store_mem_state() return value

2016-09-01 Thread Andrew Morton
On Thu, 1 Sep 2016 10:29:37 -0500 Reza Arbab wrote: > If store_mem_state() is called to online memory which is already online, > it will return 1, the value it got from device_online(). > > This is wrong because store_mem_state() is a device_attribute .store > function. Thus a non-negative retu

Re: [PATCH 7/8] wbt: add general throttling mechanism

2016-09-01 Thread Omar Sandoval
On Wed, Aug 31, 2016 at 11:05:50AM -0600, Jens Axboe wrote: > We can hook this up to the block layer, to help throttle buffered > writes. Or NFS can tap into it, to accomplish the same. > > wbt registers a few trace points that can be used to track what is > happening in the system: > > wbt_lat:

Re: [PATCH] perf tools: Fix static building

2016-09-01 Thread Vineet Gupta
On 08/31/2016 12:21 AM, Jiri Olsa wrote: > On Mon, Aug 22, 2016 at 08:33:42PM +0300, Alexey Brodkin wrote: >> With commit e3d09ec8126f ("tools lib traceevent: Export dynamic symbols >> used by traceevent plugins") we started to add "--dynamic-list" in >> LDFLAGS. One side-effect of that was inabili

Re: [PATCH v11 3/4] tee: add OP-TEE driver

2016-09-01 Thread Andrew F. Davis
On 09/01/2016 04:22 AM, Jens Wiklander wrote: > On Wed, Aug 31, 2016 at 11:40:20AM -0500, Andrew F. Davis wrote: >> On 08/31/2016 08:50 AM, Jens Wiklander wrote: >>> On Tue, Aug 30, 2016 at 03:23:24PM -0500, Andrew F. Davis wrote: On 08/22/2016 08:00 AM, Jens Wiklander wrote: > +static str

[PATCH 15/19] perf symbols: Check symbol_conf.allow_aliases for kallsyms loading too

2016-09-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We can allow aliases to be kept, but we were checking this just when loading vmlinux files, be consistent, do it for any symbol table loading code that calls symbol__fixup_duplicate() by making this function check .allow_aliases instead. Cc: Adrian Hunter Cc: Davi

[PATCH 13/19] perf test vmlinux: Avoid printing headers for empty lists

2016-09-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Before: # perf test -F -v 1 1: vmlinux symtab matches kallsyms: --- start --- WARN: Maps only in vmlinux: b7d7d000-b7eeaac8 117d000 [kernel].init.text b7eeaac8-c03ad000 12eaac8 [kernel].exit.text WARN: Maps in vmlin

Re: [PATCH] qed: fix kzalloc-simple.cocci warnings

2016-09-01 Thread David Miller
From: Yuval Mintz Date: Thu, 1 Sep 2016 07:37:13 + >> drivers/net/ethernet/qlogic/qed/qed_dcbx.c:1230:13-20: WARNING: kzalloc >> should be used for dcbx_info, instead of kmalloc/memset >> drivers/net/ethernet/qlogic/qed/qed_dcbx.c:1192:13-20: WARNING: kzalloc >> should be used for dcbx_info,

[PATCH 12/19] perf test vmlinux: Clarify which -v lines are errors or warning

2016-09-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When the 'perf test -v vmlinux' test fails, it is not clear which of the lines are errors or warnings, clarify that adding ERR/WARN prefixes: # perf test -F -v 1 1: vmlinux symtab matches kallsyms : --- start --- Looking at the vml

[PATCH 14/19] perf test vmlinux: Tolerate symbol aliases

2016-09-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The algorithms used to prune aliases in symbols__fixup_duplicate() uses information available on ELF symtabs that are not present on /proc/kallsyms, so it picks different aliases as "best" for vmlinux and kallsyms. We could probably improve a bit this by having a l

[PATCH 16/19] perf symbols: Fixup symbol sizes before picking best ones

2016-09-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When we call symbol__fixup_duplicate() we use algorithms to pick the "best" symbols for cases where there are various functions/aliases to an address, and those check zero size symbols, which, before calling symbol__fixup_end() are _all_ symbols in a just parsed kal

[PATCH 17/19] perf probe: Add helper function to check if probe with variable

2016-09-01 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria Introduce helper function instead of inline code and replace hardcoded strings "$vars" and "$params" with their corresponding macros. perf_probe_with_var() is not declared as static since it will be called from different file in subsequent patch. Signed-off-by: Ravi Bangoria

[PATCH 08/19] perf probe: Show trace event definition

2016-09-01 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Add --definition/-D option for showing the trace-event definition in stdout. This can be useful in debugging or combined with a shell script. e.g. # perf probe --definition 'do_sys_open $params' p:probe/do_sys_open _text+2261728 dfd=%di:s32 filename=%si:u64 flag

[PATCH 01/19] perf probe: Remove unused tracing_dir variable

2016-09-01 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Remove unused tracing_dir variable from open_probe_events(). Signed-off-by: Masami Hiramatsu Cc: Jiri Olsa Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/147201827792.5713.4165387506020511920.stgit@devbox Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util

Re: [PATCH v3 5/5] net: asix: autoneg will set WRITE_MEDIUM reg

2016-09-01 Thread Robert Foss
On 2016-09-01 12:43 PM, Eric Dumazet wrote: On Mon, 2016-08-29 at 09:32 -0400, robert.f...@collabora.com wrote: From: Robert Foss From: Grant Grundler The miii_nway_restart() causes a PHY link change activity and ax88772_link_reset will be called. link_reset will set AX_CMD_WRITE_MEDIUM_MO

[PATCH 18/19] perf uprobe: Skip prologue if program compiled without optimization

2016-09-01 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria The function prologue prepares stack and registers before executing function logic. When target program is compiled without optimization, function parameter information is only valid after the prologue. When we probe entrypc of the function, and try to record a function para

[PATCH 4/9] Rename struct rockchip_pcie_port to struct rockchip_pcie.

2016-09-01 Thread Bjorn Helgaas
--- drivers/pci/host/pcie-rockchip.c | 46 +++--- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/drivers/pci/host/pcie-rockchip.c b/drivers/pci/host/pcie-rockchip.c index 3cfb47a..63fb0ebc 100644 --- a/drivers/pci/host/pcie-rockchip.c +++ b/drive

[GIT PULL 00/19] perf/core improvements and fixes

2016-09-01 Thread Arnaldo Carvalho de Melo
ailable in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-20160901 for you to fetch changes up to 6243b9dc4c991fe8bdc53a0e029908aef3ddb101: perf probe: Move dwarf specific functions to dwarf-aux.c (2016-09-01 12:42

[PATCH 3/9] Always use "rockchip" as the pointer to per-device struct.

2016-09-01 Thread Bjorn Helgaas
--- drivers/pci/host/pcie-rockchip.c | 488 +++--- 1 file changed, 244 insertions(+), 244 deletions(-) diff --git a/drivers/pci/host/pcie-rockchip.c b/drivers/pci/host/pcie-rockchip.c index c9d0799..3cfb47a 100644 --- a/drivers/pci/host/pcie-rockchip.c +++ b/driv

[PATCH 7/9] Simplify the confusing HIWORD_UPDATE scheme.

2016-09-01 Thread Bjorn Helgaas
--- drivers/pci/host/pcie-rockchip.c | 69 +- 1 file changed, 23 insertions(+), 46 deletions(-) diff --git a/drivers/pci/host/pcie-rockchip.c b/drivers/pci/host/pcie-rockchip.c index 33bf2e1..7f6fe7d 100644 --- a/drivers/pci/host/pcie-rockchip.c +++ b/driver

[PATCH 07/19] perf config: Show default report configuration in example and docs

2016-09-01 Thread Arnaldo Carvalho de Melo
From: Milian Wolff Signed-off-by: Milian Wolff LPU-Reference: 20160830134106.21240-2-milian.wo...@kdab.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Documentation/perf-config.txt| 8 tools/perf/Documentation/perfconfig.example | 9 + 2 files changed, 17 insert

Re: [PATCH] ptrace: clear TIF_SYSCALL_TRACE on ptrace detach

2016-09-01 Thread Oleg Nesterov
On 09/01, Ales Novak wrote: > > On ptrace_detach(), the TIF_SYSCALL_TRACE in thread->flags of the tracee > is not cleared up. This results in the tracehook_report_syscall_* being > called (though there's no longer a tracer listening to that) upon its > further syscalls. > > Example scenario - attac

[PATCH 5/9] Use a local "dev" to avoid repetition of "rockchip->dev".

2016-09-01 Thread Bjorn Helgaas
--- drivers/pci/host/pcie-rockchip.c | 95 -- 1 file changed, 50 insertions(+), 45 deletions(-) diff --git a/drivers/pci/host/pcie-rockchip.c b/drivers/pci/host/pcie-rockchip.c index 63fb0ebc..17612e5 100644 --- a/drivers/pci/host/pcie-rockchip.c +++ b/drive

[PATCH 6/9] Add comment about why 32-bit read/modify/write isn't safe.

2016-09-01 Thread Bjorn Helgaas
--- drivers/pci/host/pcie-rockchip.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/pci/host/pcie-rockchip.c b/drivers/pci/host/pcie-rockchip.c index 17612e5..33bf2e1 100644 --- a/drivers/pci/host/pcie-rockchip.c +++ b/drivers/pci/host/pcie-rockchip.c @@ -282,6 +282,11 @@ sta

[PATCH 19/19] perf probe: Move dwarf specific functions to dwarf-aux.c

2016-09-01 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria Move generic dwarf related functions from util/probe-finder.c to util/dwarf-aux.c. Functions name and their prototype are also changed accordingly. No functionality changes. Suggested-and-Acked-by: Masami Hiramatsu Signed-off-by: Ravi Bangoria Cc: Alexander Shishkin Cc: He

[PATCH 9/9] Move msleeps to address Guenter's comments.

2016-09-01 Thread Bjorn Helgaas
--- drivers/pci/host/pcie-rockchip.c | 34 +++--- 1 file changed, 7 insertions(+), 27 deletions(-) diff --git a/drivers/pci/host/pcie-rockchip.c b/drivers/pci/host/pcie-rockchip.c index 61b0630..6623598 100644 --- a/drivers/pci/host/pcie-rockchip.c +++ b/drivers/pci

[PATCH 02/19] perf tools: Fix error handling of lzma decompression

2016-09-01 Thread Arnaldo Carvalho de Melo
From: Shawn Lin lzma_decompress_to_file() never actually closes the file pointer, let's fix it. Signed-off-by: Shawn Lin Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1471766253-1964-1-git-send-email-shawn@rock-chips.com [ Make err = -1, the common case, set it to 0 before the error l

[PATCH 8/9] Simplify testing of link status and speed testing.

2016-09-01 Thread Bjorn Helgaas
--- drivers/pci/host/pcie-rockchip.c | 46 +- 1 file changed, 20 insertions(+), 26 deletions(-) diff --git a/drivers/pci/host/pcie-rockchip.c b/drivers/pci/host/pcie-rockchip.c index 7f6fe7d..61b0630 100644 --- a/drivers/pci/host/pcie-rockchip.c +++ b/driver

Re: [PATCH v2] drm/sun4i: Clear encoder->bridge if a bridge is not found

2016-09-01 Thread Maxime Ripard
On Thu, Sep 01, 2016 at 02:13:32PM +0800, Chen-Yu Tsai wrote: > The KMS helpers (drm_atomic_helper_check_modeset/mode_fixup) pass > encoder->bridge directly to drm_bridge_mode_fixup, which expects a > valid pointer, or NULL (in which case it just returns). > > Clear encoder->bridge if a bridge is

Re: [PATCH 2/2] arm64: regard FDT_SW_MAGIC as good fdt magic

2016-09-01 Thread Mark Rutland
On Fri, Sep 02, 2016 at 12:03:58AM +0800, zijun_hu wrote: > On 09/01/2016 07:21 PM, Mark Rutland wrote: > > On Thu, Sep 01, 2016 at 06:58:29PM +0800, zijun_hu wrote: > >> From: zijun_hu > >> > >> regard FDT_SW_MAGIC as good fdt magic during mapping fdt area > >> see fdt_check_header() for details

Re: [linux-sunxi] Re: [PATCH v9 1/2] ASoC: sun4i-codec: Distinguish sun4i from sun7i

2016-09-01 Thread Maxime Ripard
Hi Danny, On Wed, Aug 31, 2016 at 10:14:02PM +0200, Danny Milosavljevic wrote: > Hi Maxime, > > On Wed, 31 Aug 2016 19:46:23 +0200 > Maxime Ripard wrote: > > > > -#define SUN4I_CODEC_AC_SYS_VERI (0x38) > > > -#define SUN4I_CODEC_AC_MIC_PHONE_CAL (0x3c) > > > + > > >

[PATCH 06/19] perf symbols: Demangle symbols for synthesized @plt entries.

2016-09-01 Thread Arnaldo Carvalho de Melo
From: Milian Wolff The symbols in the synthesized @plt entries where not demangled before, i.e. we could end up with entries such as: $ perf report Samples: 7K of event 'cycles:ppp', Event count (approx.): 6223833141 Children Self Command Shared Object Symbol

<    1   2   3   4   5   6   7   8   9   >