Re: [PATCH 1/1] arm64: fix flush_cache_range

2016-05-24 Thread Leizhen (ThunderTown)
On 2016/5/25 9:20, Leizhen (ThunderTown) wrote: > > > On 2016/5/24 21:02, Catalin Marinas wrote: >> On Tue, May 24, 2016 at 08:19:05PM +0800, Leizhen (ThunderTown) wrote: >>> On 2016/5/24 19:37, Mark Rutland wrote: On Tue, May 24, 2016 at 07:16:37PM +0800, Zhen Lei wrote: > When we ran

Re: [PATCH v2 4/5] thermal: bang-bang governor: act on lower trip boundary

2016-05-24 Thread Caesar Wang
On 2016年05月25日 01:34, Peter Feuerer wrote: Hi, 24. Mai 2016 15:06 Uhr, "Javi Merino" schrieb: Ccing Peter Feuerer, author of the bang bang governor. On Tue, May 03, 2016 at 05:33:32PM +0800, Caesar Wang wrote: From: Sascha Hauer With interrupt driven thermal zones we pass the lower and u

Re: [PATCH] powerpc: inline current_stack_pointer()

2016-05-24 Thread Paul Mackerras
On Mon, May 23, 2016 at 07:17:38PM +0200, Gabriel Paubert wrote: > On Mon, May 23, 2016 at 10:46:02AM +0200, Christophe Leroy wrote: > > current_stack_pointeur() is a single instruction function. it > > It is not worth breaking the execution flow with a bl/blr for a > > single instruction > > Are

linux-next: Tree for May 25

2016-05-24 Thread Stephen Rothwell
Hi all, Please do not add any v4.8 destined material to your linux-next included branches until after v4.7-rc1 has been released. Changes since 20160524: Non-merge commits (relative to Linus' tree): 978 876 files changed, 29717 insertions(+), 8810 dele

[PATCH 11/24] staging: unisys: visorbus: Remove unnecessary EXPORT_SYMBOL statements

2016-05-24 Thread David Kershner
From: Bryan Thompson The driver that is now visorbus started out as multiple separate drivers, and when they were merged the EXPORT_SYMBOL statements that were required for separate drivers were left in the code. This patch removes those now unnecessary exports. Signed-off-by: Bryan Thompson Si

[PATCH 14/24] staging: unisys: visorbus: vbusdeviceinfo function descriptions more kerneldoc-like

2016-05-24 Thread David Kershner
From: David Binder Per audit feedback from Thomas Gleixner, function descriptions in vbusdeviceinfo.h now utilize a more kerneldoc-like formatting. The affected comments do not implement other kerneldoc requirements. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/stagin

[PATCH 04/24] staging: unisys: visornic: Correct comment spelling mistake

2016-05-24 Thread David Kershner
From: David Binder Fixes a comment spelling mistake in visornic. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/unisys/visornic/visornic_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/unisys/visornic/visornic_main.c b

[PATCH 09/24] staging: unisys: visorbus: remove periodic_work.h/.c

2016-05-24 Thread David Kershner
From: Tim Sell These files were made no-longer-necessary by recent commits. Signed-off-by: Tim Sell Signed-off-by: David Kershner --- drivers/staging/unisys/include/periodic_work.h | 40 - drivers/staging/unisys/visorbus/Makefile| 1 - drivers/staging/unisys/visorbus/periodic_

[PATCH 22/24] include: linux: visorbus: Add visorbus to include/linux directory

2016-05-24 Thread David Kershner
Update include/linux to include the s-Par associated common include header files needed for the s-Par visorbus. Since we have now moved the include directories over to include/linux/visorbus this patch makes all of the visor drivers visorbus, visorinput, visornic, and visorhba use the new include

[PATCH 10/24] staging: unisys: visorbus: Make visordriver_callback_lock a mutex

2016-05-24 Thread David Kershner
From: Bryan Thompson visordriver_callback_lock is just a binary semaphore that logically makes more sense as a mutex. Signed-off-by: Bryan Thompson Signed-off-by: David Kershner --- drivers/staging/unisys/include/visorbus.h | 3 ++- drivers/staging/unisys/visorbus/visorbus_main.c | 10

[PATCH 18/24] staging: unisys: visorbus: make visorchipset function descriptions more kerneldoc-like

2016-05-24 Thread David Kershner
From: David Binder Per audit feedback from Thomas Gleixner, function descriptions in visorchipset.c now utilize a more kerneldoc-like formatting. The affected comments do not implement other kerneldoc requirements. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/

[PATCH 24/24] drivers: Add visorbus to the drivers directory

2016-05-24 Thread David Kershner
visorbus is currently located at drivers/staging/visorbus, this patch moves it to drivers/virt. Signed-off-by: David Kershner --- drivers/staging/unisys/Kconfig| 3 +-- drivers/staging/unisys/Makefile | 1 - drivers/vi

[PATCH v3 3/5] thermal: streamline get_trend callbacks

2016-05-24 Thread Caesar Wang
From: Sascha Hauer The .get_trend callback in struct thermal_zone_device_ops has the prototype: int (*get_trend) (struct thermal_zone_device *, int, enum thermal_trend *); whereas the .get_trend callback in struct thermal_zone_of_device_ops has: int (*get

[PATCH v3 2/5] thermal: of: implement .set_trips for device tree thermal zones

2016-05-24 Thread Caesar Wang
From: Sascha Hauer This patch implemnets .set_trips for device tree thermal zones. As the hardware-tracked trip points is supported by thermal core patch[0]. patch[0] "thermal: Add support for hardware-tracked trip points". Signed-off-by: Sascha Hauer Signed-off-by: Caesar Wang Cc: Zhang Rui

[PATCH v3 4/5] thermal: bang-bang governor: act on lower trip boundary

2016-05-24 Thread Caesar Wang
From: Sascha Hauer With interrupt driven thermal zones we pass the lower and upper temperature on which shall be acted, so in the governor we have to act on the exact lower temperature to be consistent. Otherwise an interrupt maybe generated on the exact lower temperature, but the bang bang gover

[PATCH v3 5/5] thermal: rockchip: add the set_trips function

2016-05-24 Thread Caesar Wang
Whenever the current temperature is updated, the trip points immediately below and above the current temperature are found. A sensor driver callback `set_trips' is then called with the temperatures. Lastly, The sensor will trigger the hardware high temperature interrupts to increase the sampleing r

RE: fsl-dcu not works on latest "drm-next"

2016-05-24 Thread Meng Yi
I found that its regmap endianness issue, so I want to replace the "regmap". Hi Stefan, Do you have any idea about this? Hi Mark, Regmap endianness issue had caused some other drivers not work, like SPI etc. Or this is fixed and I just don't know? Thanks, Meng -

[PATCH 21/24] staging: unisys: Move vbushelper.h to visorbus directory

2016-05-24 Thread David Kershner
Only visorbus needs this header file so move it to visorbus directory. Signed-off-by: David Kershner --- drivers/staging/unisys/{include => visorbus}/vbushelper.h | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename drivers/staging/unisys/{include => visorbus}/vbushelper.h (100%) diff -

[PATCH 15/24] staging: unisys: visorbus: make function descriptions more kerneldoc-like

2016-05-24 Thread David Kershner
From: David Binder Per audit feedback from Thomas Gleixner, function descriptions in visorbus_main.c now utilize a more kerneldoc-like formatting. The affected comments do not implement other kerneldoc requirements. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging

[PATCH v3 1/5] thermal: Add support for hardware-tracked trip points

2016-05-24 Thread Caesar Wang
From: Sascha Hauer This adds support for hardware-tracked trip points to the device tree thermal sensor framework. The framework supports an arbitrary number of trip points. Whenever the current temperature is updated, the trip points immediately below and above the current temperature are found

[PATCH 08/24] staging: unisys: visorbus: use kernel timer instead of workqueue

2016-05-24 Thread David Kershner
From: Tim Sell A kernel timer is now used as the vehicle to periodically call the channel_interrupt function of registered visor drivers, instead of a workqueue. This simplifies a lot of things by making periodic_work.c and periodic_work.h no longer necessary. This change also means that the ch

[PATCH v3 0/5] Thermal: Support for hardware-tracked trip points

2016-05-24 Thread Caesar Wang
series does exactly that. This series patches rebase the conflicts. Note that the hardware-tracked trip points are very well tested currently. Verified and tested on https://github.com/Caesar-github/rockchip/tree/wip/fixes-thermal-0525 That's based on linux-kernel 20160524. Changes in v3: - as

[PATCH 20/24] staging: unisys: visorbus: Add kerneldoc-style comments for visorbus API

2016-05-24 Thread David Kershner
From: David Binder Adds kerneldoc-style comments for those functions which may be used outside of the visorbus driver. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/unisys/include/visorbus.h | 127 drivers/staging/unisys/visorbus/

[PATCH 16/24] staging: unisys: visorbus: make visorbus_private.h function descriptions more kerneldoc-like

2016-05-24 Thread David Kershner
From: David Binder Per audit feedback from Thomas Gleixner, function descriptions in visorbus_private.h now utilize a more kerneldoc-like formatting. The affected comments do not implement other kerneldoc requirements. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/stag

[PATCH 12/24] staging: unisys: visorbus: Remove unused functions

2016-05-24 Thread David Kershner
From: Bryan Thompson Remove visorbus_clear_channel, visorchannel_signalqueue_slots_avail, visorchannel_signalqueue_max_slots, visorchannel_clear, and visorchannel_debug which are no longer called by any driver. Signed-off-by: Bryan Thompson Signed-off-by: David Kershner --- drivers/staging/un

[PATCH 06/24] staging: unisys: visorbus: removed unused periodic_test_workqueue

2016-05-24 Thread David Kershner
From: Tim Sell periodic_test_workqueue was an unused relic from the past, and was removed. Signed-off-by: Tim Sell Signed-off-by: David Kershner --- drivers/staging/unisys/visorbus/visorbus_main.c | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/staging/unisys/visor

[PATCH 17/24] staging: unisys: visorbus: make visorchannel function descriptions more kerneldoc-like

2016-05-24 Thread David Kershner
From: David Binder Per audit feedback from Thomas Gleixner, function descriptions in visorchannel.c now utilize a more kerneldoc-like formatting. The affected comments do not implement other kerneldoc requirements. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/

[PATCH 13/24] staging: unisys: Remove reference to unused STANDALONE_CLIENT

2016-05-24 Thread David Kershner
From: Bryan Thompson The STANDALONE_CLIENT define is no longer used by Unisys driver code. Signed-off-by: Bryan Thompson Signed-off-by: David Kershner --- drivers/staging/unisys/include/visorbus.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/unisys/include/visorbus.h

[PATCH 19/24] staging: unisys: visorbus: Move visorbus-unique functions to private header

2016-05-24 Thread David Kershner
From: David Binder Moves function prototypes that are unique to visorbus from include/visorbus.h to visorbus/visorbus_private.h. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/unisys/include/visorbus.h | 25 drivers/staging/unisys/v

RE: [PATCH v8 08/14] usb: otg: add OTG/dual-role core

2016-05-24 Thread Jun Li
> -Original Message- > From: Peter Chen [mailto:hzpeterc...@gmail.com] > Sent: Wednesday, May 25, 2016 10:44 AM > To: Roger Quadros > Cc: peter.c...@freescale.com; ba...@kernel.org; t...@atomide.com; > gre...@linuxfoundation.org; dan.j.willi...@intel.com; > mathias.ny...@linux.intel.com;

[PATCH 05/24] staging: unisys: include: Remove thread-related enum members

2016-05-24 Thread David Kershner
From: David Binder Code relating to ktheads was previously removed from s-Par driver code. This patch cleans up lingering remnants of kthreads by removing thread- related enum types. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/unisys/include/guestlinuxdebug.h

[PATCH 00/24] Fixes comments made by tglx, then move visorbus to drivers/virt

2016-05-24 Thread David Kershner
tglx: The following patchset fixes issues you raised during your code review of visorbus on 5/18. Greg: I understand that you aren't currently accepting new patces for staging-next, I just wanted to get the following patches out for review. This patchset requires additiional patches that have been

[PATCH 01/24] staging: unisys: visorbus: remove unused module parameters

2016-05-24 Thread David Kershner
From: David Binder Removes unused module parameters from visorbus_main.c, in response to findings by SonarQube. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/unisys/visorbus/visorbus_main.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --g

[PATCH 07/24] staging: unisys: visorinput: remove unnecessary locking

2016-05-24 Thread David Kershner
From: Tim Sell Locking in the _interrupt() function is NOT necessary so long as we ensure that interrupts have been stopped whenever we need to pause or resume the device, which we now do. While a device is paused, we ensure that interrupts stay disabled, i.e. that the _interrupt() function will

[PATCH 23/24] Documentation: Move visorbus documentation from staging to Documentation/

2016-05-24 Thread David Kershner
This patch simple does a git mv of the drivers/staging/unisys/Documentation directory to Documentation. Renames overview.txt to visorbus.txt and renames sysfs-platform-visorchipset to the correct name sysfs-bus-visorbus. Signed-off-by: David Kershner --- .../ABI/stable/sysfs-bus-visorbus

Re: [PATCH 0/7] x86: uaccess hardening, easy part

2016-05-24 Thread Brian Gerst
On Tue, May 24, 2016 at 6:48 PM, Andy Lutomirski wrote: > This series hardens x86's uaccess code a bit. It adds warnings for > some screwups, adds an OOPS for a major exploitable screwup, and it > improves debuggability a bit by indicating non-default fs in oopses. > > It shouldn't cause any new

[PATCH 03/24] staging: unisys: visorbus: modify format string to match argument

2016-05-24 Thread David Kershner
From: David Binder Modifies the format string of snprintf to expect an unsigned int instead of a signed one, per the supplied argument. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/unisys/visorbus/visorbus_main.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

[PATCH 02/24] staging: unisys: visorbus: remove unused struct

2016-05-24 Thread David Kershner
From: David Binder Removes unused struct definition, channel_size_info, in response to findings by SonarQube. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/unisys/visorbus/visorbus_main.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/

RE:Custom bags

2016-05-24 Thread Jack
Hi, Ronta(Xiamen)Co.,LTD, is a well established company working with bags, lanyards and other textile products for many experiences. With many years in this industry, we can offer the right products as what you requested in a short time, no matter it is a big or small order. Please don't hes

[PATCH] ARM64: dts: rockchip: add thermal zone node for rk3399 SoCs

2016-05-24 Thread Caesar Wang
This adds thermal zone node to rk3399 dtsi, rk3399 thermal data is including the cpu and gpu sensor zone node. At the moment, remove the rk3368 thermal data from rk399 dtsi. The thermal zone node is the node containing all the required info for describing a thermal zone, including its cooling devi

Re: [PATCH v2 08/12] irqchip: add J-Core AIC driver

2016-05-24 Thread Rich Felker
On Fri, May 20, 2016 at 09:15:56AM +0100, Marc Zyngier wrote: > On 20/05/16 03:53, Rich Felker wrote: > > Signed-off-by: Rich Felker > > --- > > My previous post of the patch series accidentally omitted omitted > > Cc'ing of subsystem maintainers for the necessary clocksource, > > irqchip, and spi

[RESEND][PATCH] drivers: of: of_reserved_mem: fixup the CMA alignment not to affect dma-coherent

2016-05-24 Thread Jaewon Kim
From: Jaewon There was an alignment mismatch issue for CMA and it was fixed by commit 1cc8e3458b51 ("drivers: of: of_reserved_mem: fixup the alignment with CMA setup"). However the way of the commit considers not only dma-contiguous(CMA) but also dma-coherent which has no that requirement. This

Re: [RFC][PATCH 1/3] locking: Introduce smp_acquire__after_ctrl_dep

2016-05-24 Thread Paul E. McKenney
On Tue, May 24, 2016 at 11:01:21PM -0400, Waiman Long wrote: > On 05/24/2016 10:27 AM, Peter Zijlstra wrote: > >Introduce smp_acquire__after_ctrl_dep(), this construct is not > >uncommen, but the lack of this barrier is. > > > >Signed-off-by: Peter Zijlstra (Intel) > >--- > > include/linux/compile

Re: [PATCH][v7] x86, suspend: Save/restore extra MSR registers for suspend

2016-05-24 Thread Chen Yu
Hi Len, On Wed, May 25, 2016 at 12:09 AM, Len Brown wrote: > +mjg59, who may be seeing this issue on a skylake laptop > > Chen-yu, > > Great debugging, but I think there is a more general fix possible than > this DMI quirk. > > I agree that in this example, a grantley server, it seems the BIOS is

[PATCH v5 4/8] perf record: Introduce rec->overwrite_evlist for overwritable events

2016-05-24 Thread Wang Nan
Create an auxiliary evlist for overwritable events. Before mmap, build this evlist and set 'overwrite' and 'backward' attribute. Since perf_evlist__mmap_ex() only maps events when evsel->overwrite matches evlist's corresponding attributes, with these two evlists an event goes to either rec->evlist

[PATCH v5 3/8] perf tests: Add testcase for auxiliary evlist

2016-05-24 Thread Wang Nan
Improve test backward-ring-buffer, trace both enter and exit event of prctl() syscall, utilize auxiliary evlist to mmap enter and exit event into separated mmaps. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: He Kuan

[PATCH v5 8/8] perf tools: Check write_backward during evlist config

2016-05-24 Thread Wang Nan
Before this patch, when using overwritable ring buffer on an old kernel, error message is misleading: # ~/perf record -m 1 -e raw_syscalls:*/overwrite/ -a Error: The raw_syscalls:sys_enter event is not supported. This patch output clear error message to tell user his/her kernel is too old: #

[PATCH v5 1/8] perf tools: Check 'base' pointer before checking refcnt when put a mmap

2016-05-24 Thread Wang Nan
evlist->mmap[i]->refcnt could be 0 if an evlist has no evsel or all evsels don't match the evlist during mmap. For example, when all evsels are overwritable but the evlist itself is normal. To avoid crashing, perf should check 'base' pointer before checking refcnt, and raise bug only when base is n

[PATCH v5 6/8] perf tools: Enable overwrite settings

2016-05-24 Thread Wang Nan
This patch allows following config terms and option: Globally setting events to overwrite; # perf record --overwrite ... Set specific events to be overwrite or no-overwrite. # perf record --event cycles/overwrite/ ... # perf record --event cycles/no-overwrite/ ... Add missing config terms a

[PATCH v5 0/8] perf tools: Support overwritable ring buffer

2016-05-24 Thread Wang Nan
This patch set enables daemonized perf recording by utilizing overwritable backward ring buffer. With this feature one can put perf background, and dump ring buffer records by a SIGUSR2 when he/she find something unusual. For example, following command record system calls, schedule events and sampl

[PATCH v5 5/8] perf record: Toggle overwrite ring buffer for reading

2016-05-24 Thread Wang Nan
overwrite_evt_state is introduced to reflect the state of overwritable ring buffers. It is a state machine with 3 states: RUNNING --(1)--> DATA_PENDING --(2)--> EMPTY ^ ^ | | |___(disallow)___/| ||

Re: [PATCH v4 08/10] powerpc/powernv: Add platform support for stop instruction

2016-05-24 Thread Gautham R Shenoy
Hi Shreyas, On Tue, May 24, 2016 at 06:45:12PM +0530, Shreyas B. Prabhu wrote: > POWER ISA v3 defines a new idle processor core mechanism. In summary, > a) new instruction named stop is added. This instruction replaces > instructions like nap, sleep, rvwinkle. > b) new per thread SPR named

Re: [PATCH 4/4] MAINTAINERS: mark bcache as orphan

2016-05-24 Thread Jiri Kosina
On Tue, 24 May 2016, Joe Perches wrote: > > The submitted patches are not being reacted upon, and Jens is only picking  > > up stable fixes on an rather ad-hoc basis. > > > > Link: lkml.kernel.org/r/574462c5.40...@kernel.dk > > Signed-off-by: Jiri Kosina > > --- > >  MAINTAINERS | 2 +- > >  1 fi

[PATCH v5 7/8] perf tools: Don't warn about out of order event if write_backward is used

2016-05-24 Thread Wang Nan
If write_backward attribute is set, records are written into kernel ring buffer from end to beginning, but read from beginning to end. To avoid 'XX out of order events recorded' warning message (timestamps of records is in reverse order when using write_backward), suppress the warning message if wr

[PATCH v5 2/8] perf tools: Choose correct reading direction according to evlist->backward

2016-05-24 Thread Wang Nan
Now we have evlist->backward to indicate the mmap direction. Make perf_evlist__mmap_read() choose right direction automatically. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: He Kuang --- tools/perf/util/evlist.c |

[PATCH] pinctrl: copy per-pin driver private data to struct pin_desc

2016-05-24 Thread Masahiro Yamada
Currently, struct pinctrl_pin_desc can have per-pin driver private data, but it is not copied to struct pin_desc. For a driver with sparse pin space, for-loop search like below would be necessary in order to get the driver-specific data for a desired pin number. for (i = 0; i < pctldev->desc->n

Re: [PATCH v6 11/12] zsmalloc: page migration support

2016-05-24 Thread Minchan Kim
Hello Sergey, On Tue, May 24, 2016 at 03:28:01PM +0900, Minchan Kim wrote: > > hm... zsmalloc is getting sooo complex now. > > > > `system_wq' -- can we have problems here when the system is getting > > low on memory and workers are getting increasingly busy trying to > > allocate the memory fo

Re: [PATCH] ACPI / Thermal / video: fix max_level incorrect value

2016-05-24 Thread Aaron Lu
Valdis, can you please give the patch a try? Thanks. -Aaron On Sat, May 21, 2016 at 03:55:00PM +0800, Aaron Lu wrote: > I think I have found the problem, please give the patch a test, thanks. > > From: Aaron Lu > Date: Sat, 21 May 2016 15:30:46 +0800 > Subject: [PATCH] ACPI / Thermal / video: f

Re: [RFC PATCH] drivers/pinctrl: Add pinctrl-ast2400

2016-05-24 Thread Andrew Jeffery
Hi Linus, On Mon, 2016-05-23 at 14:38 +0200, Linus Walleij wrote: > Hi sorry for taking so long before reviewing. Too busy, what can I say. No worries, I expected as much. Thanks for taking the time! > > On Fri, May 6, 2016 at 8:20 AM, Andrew Jeffery wrote: > > > > > Add pinctrl/pinmux suppo

Re: [PATCH] net: alx: use custom skb allocator

2016-05-24 Thread Feng Tang
Hi Jarod, On Fri, May 20, 2016 at 02:26:57PM -0400, Jarod Wilson wrote: > On Fri, May 20, 2016 at 03:56:23PM +0800, Feng Tang wrote: > > Hi, > > > > Please ignore this patch. > > > > I found the problem and made the patch with kernel 4.4 with Ubuntu 12.04 > > on Lenovo Y580. > > > > After sub

Re: [RFC][PATCH 1/3] locking: Introduce smp_acquire__after_ctrl_dep

2016-05-24 Thread Boqun Feng
On Tue, May 24, 2016 at 09:53:29PM -0700, Paul E. McKenney wrote: > On Tue, May 24, 2016 at 11:01:21PM -0400, Waiman Long wrote: > > On 05/24/2016 10:27 AM, Peter Zijlstra wrote: > > >Introduce smp_acquire__after_ctrl_dep(), this construct is not > > >uncommen, but the lack of this barrier is. > >

[PATCH v3 07/12] sh: add AT_HWCAP flag for J-Core cas.l instruction

2016-05-24 Thread Rich Felker
Signed-off-by: Rich Felker --- arch/sh/include/uapi/asm/cpu-features.h | 1 + arch/sh/kernel/cpu/sh2/probe.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/sh/include/uapi/asm/cpu-features.h b/arch/sh/include/uapi/asm/cpu-features.h index 694abe4..2f1bc85 100644 --- a/arch/

[PATCH v3 01/12] of: add vendor prefix for J-Core

2016-05-24 Thread Rich Felker
The J-Core project (j-core.org) produces open source cpu and SoC peripheral cores synthesizable as FPGA bitstreams or ASICs. Signed-off-by: Rich Felker --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/

[PATCH v3 11/12] sh: add defconfig for J-Core J2

2016-05-24 Thread Rich Felker
This defconfig is intended not to be specific to a particular board; it enables drivers for all currently-supported hardware, and should be updated to include additional drivers as they are added. Signed-off-by: Rich Felker --- arch/sh/configs/j2_defconfig | 38 ++

[PATCH v3 08/12] irqchip: add J-Core AIC driver

2016-05-24 Thread Rich Felker
There are two versions of the J-Core interrupt controller in use, aic1 which generates interrupts with programmable priorities, but only supports 8 irq lines and maps them to cpu traps in the range 17 to 24, and aic2 which uses traps in the range 64-127 and supports up to 128 irqs, with priorities

[PATCH v3 05/12] of: add J-Core SPI master bindings

2016-05-24 Thread Rich Felker
Signed-off-by: Rich Felker --- .../devicetree/bindings/spi/jcore,spi.txt | 23 ++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/jcore,spi.txt diff --git a/Documentation/devicetree/bindings/spi/jcore,spi.txt b/Documentatio

[PATCH v3 10/12] spi: add driver for J-Core SPI controller

2016-05-24 Thread Rich Felker
The J-Core "spi2" device is a PIO-based SPI master controller. It differs from "bitbang" devices in that that it's clocked in hardware rather than via soft clock modulation over gpio, and performs byte-at-a-time transfers between the cpu and SPI controller. This driver will be extended to support

[PATCH v3 12/12] sh: add device tree source for J2 FPGA on Mimas v2 board

2016-05-24 Thread Rich Felker
Signed-off-by: Rich Felker --- arch/sh/boot/dts/j2_mimas_v2.dts | 87 1 file changed, 87 insertions(+) create mode 100755 arch/sh/boot/dts/j2_mimas_v2.dts diff --git a/arch/sh/boot/dts/j2_mimas_v2.dts b/arch/sh/boot/dts/j2_mimas_v2.dts new file mode 1007

[PATCH v3 00/12] J-core J2 cpu and SoC peripherals support

2016-05-24 Thread Rich Felker
The following patchset adds support for the J-core J2, an open-source VHDL reimplementation of the SH-2 ISA, and drivers for the associated SoC devices (interrupt controller, clocksource, and SPI). As arch/sh co-maintainer my intent is to include as much as possible in my pull request for the linu

[PATCH v3 03/12] of: add J-Core interrupt controller bindings

2016-05-24 Thread Rich Felker
Signed-off-by: Rich Felker --- .../bindings/interrupt-controller/jcore,aic.txt| 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/jcore,aic.txt diff --git a/Documentation/devicetree/bindings/interrupt-cont

Re: [PATCH 1/5] PCI: Add a new PCI_BUS_FLAGS_MSI_REMAP flag

2016-05-24 Thread Yongji Xie
On 2016/5/25 4:55, Bjorn Helgaas wrote: On Wed, Apr 27, 2016 at 08:43:26PM +0800, Yongji Xie wrote: We introduce a new pci_bus_flags, PCI_BUS_FLAGS_MSI_REMAP which indicates all devices on the bus are protected by the hardware which supports IRQ remapping(intel naming). This changelog is ambig

[PATCH v3 06/12] sh: add support for J-Core J2 processor

2016-05-24 Thread Rich Felker
At the CPU/ISA level, the J2 is compatible with SH-2, and thus the changes to add J2 support build on existing SH-2 support. However, J2 does not duplicate the memory-mapped SH-2 features like the cache interface. Instead, the cache interfaces is described in the device tree, and new code is added

[PATCH v3 02/12] of: add J-Core cpu bindings

2016-05-24 Thread Rich Felker
Signed-off-by: Rich Felker --- Documentation/devicetree/bindings/jcore/cpus.txt | 92 1 file changed, 92 insertions(+) create mode 100644 Documentation/devicetree/bindings/jcore/cpus.txt diff --git a/Documentation/devicetree/bindings/jcore/cpus.txt b/Documentation/devi

[PATCH v3 04/12] of: add J-Core timer bindings

2016-05-24 Thread Rich Felker
Signed-off-by: Rich Felker --- .../devicetree/bindings/timer/jcore,pit.txt| 28 ++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/jcore,pit.txt diff --git a/Documentation/devicetree/bindings/timer/jcore,pit.txt b/Document

[PATCH v3 09/12] clocksource: add J-Core timer/clocksource driver

2016-05-24 Thread Rich Felker
At the hardware level, the J-Core PIT is integrated with the interrupt controller, but it is represented as its own device and has an independent programming interface. It provides a 12-bit countdown timer, which is not presently used, and a periodic timer. The interval length for the latter is pro

Re: [PATCH 3/5] PCI: Set PCI_BUS_FLAGS_MSI_REMAP if MSI controller supports IRQ remapping

2016-05-24 Thread Yongji Xie
On 2016/5/25 5:04, Bjorn Helgaas wrote: On Wed, Apr 27, 2016 at 08:43:28PM +0800, Yongji Xie wrote: On ARM HW the capability of IRQ remapping is abstracted on MSI controller side. MSI_FLAG_IRQ_REMAPPING is used to advertise this [1]. To have a universal flag to test this capability for differe

Re: [PATCH 2/5] iommu: Set PCI_BUS_FLAGS_MSI_REMAP if IOMMU have capability of IRQ remapping

2016-05-24 Thread Yongji Xie
On 2016/5/25 5:11, Bjorn Helgaas wrote: On Wed, Apr 27, 2016 at 08:43:27PM +0800, Yongji Xie wrote: The capability of IRQ remapping is abstracted on IOMMU side on some archs. There is a existing flag IOMMU_CAP_INTR_REMAP for this. To have a universal flag to test this capability for different

Re: [PATCH v2 05/10] drm/rockchip: analogix_dp: add rk3399 eDP support

2016-05-24 Thread Yakir Yang
On 05/25/2016 02:23 AM, Heiko Stuebner wrote: Am Dienstag, 24. Mai 2016, 11:12:20 schrieb Doug Anderson: Hi, On Tue, May 24, 2016 at 3:17 AM, Heiko Stuebner wrote: --- a/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt +++ b/Documentation/devicetree/bindings/display/bridge/an

Re: [PATCH v2 05/10] drm/rockchip: analogix_dp: add rk3399 eDP support

2016-05-24 Thread Yakir Yang
On 05/24/2016 06:17 PM, Heiko Stuebner wrote: Am Dienstag, 24. Mai 2016, 14:57:23 schrieb Yakir Yang: [] diff --git a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c index 29c4105..d5d4e04 100644 --- a/drivers/gpu/drm/rockchip/analogix_

[PATCH] pinctrl: digicolor: add missing platform_set_drvdata() call

2016-05-24 Thread Masahiro Yamada
gc_pinctrl_remove() calls platform_get_drvdata(), but I see neither platform_set_drvdata() nor dev_set_drvdata() anywhere in this driver. Signed-off-by: Masahiro Yamada --- drivers/pinctrl/pinctrl-digicolor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/pinctrl-digicolo

Re: [PATCH] clk: samsung: exynos7: Don't gate CMU_{CCORE, FSYS0} blocks clock

2016-05-24 Thread Alim Akhtar
Hi Sylwester, On 04/15/2016 10:04 PM, Sylwester Nawrocki wrote: On 04/15/2016 02:37 PM, Alim Akhtar wrote: On 04/14/2016 01:20 PM, Krzysztof Kozlowski wrote: On 04/14/2016 06:42 AM, Alim Akhtar wrote: This patch adds CLK_IS_CRITICAL flag to ACLK_CCORE_133 and ACLK_FSYS0_200 clocks. These cloc

Re: [mm] 23047a96d7: vm-scalability.throughput -23.8% regression

2016-05-24 Thread Ye Xiaolong
On Mon, May 23, 2016 at 04:46:05PM -0400, Johannes Weiner wrote: >Hi, > >thanks for your report. > >On Tue, May 17, 2016 at 12:58:05PM +0800, kernel test robot wrote: >> FYI, we noticed vm-scalability.throughput -23.8% regression due to commit: >> >> commit 23047a96d7cfcfca1a6d026ecaec526ea4803e9e

Re: [PATCHv2 2/3] drm/imx: convey the pixelclk-active and de-active flags from DT to the ipu-di driver

2016-05-24 Thread Lothar Waßmann
Hi, On Tue, 24 May 2016 16:16:40 +0200 Philipp Zabel wrote: > Hi Lothar, > > thank you for rebasing. I have applied the other two patches. > With this one, I'd like to avoid the duplicated code. See below: > > Am Dienstag, den 24.05.2016, 08:31 +0200 schrieb Lothar Waßmann: > > Currently these f

[PATCH] pv-qspinlock: Try to re-hash the lock after spurious_wakeup

2016-05-24 Thread Pan Xinhui
In pv_wait_head_or_lock, if there is a spurious_wakeup, and it fails to get the lock as there is lock stealing, then after a short spin, we need hash the lock again and enter pv_wait to yield. Currently after a spurious_wakeup, as l->locked is not _Q_SLOW_VAL, pv_wait might do nothing and return d

[RFC 0/3] Introduce the bulk mode method when sending request to crypto layer

2016-05-24 Thread Baolin Wang
This patchset will check if the cipher can support bulk mode, then dm-crypt will handle different ways to send requests to crypto layer according to cipher mode. Looking forward to any comments and suggestions. Thanks. Baolin Wang (3): block: Introduce blk_bio_map_sg() to map one bio crypto:

[RFC 2/3] crypto: Introduce CRYPTO_ALG_BULK flag

2016-05-24 Thread Baolin Wang
Now some cipher hardware engines prefer to handle bulk block rather than one sector (512 bytes) created by dm-crypt, cause these cipher engines can handle the intermediate values (IV) by themselves in one bulk block. This means we can increase the size of the request by merging request rather than

[RFC 3/3] md: dm-crypt: Introduce the bulk mode method when sending request

2016-05-24 Thread Baolin Wang
In now dm-crypt code, it is ineffective to map one segment (always one sector) of one bio with just only one scatterlist at one time for hardware crypto engine. Especially for some encryption mode (like ecb or xts mode) cooperating with the crypto engine, they just need one initial IV or null IV in

[RFC 1/3] block: Introduce blk_bio_map_sg() to map one bio

2016-05-24 Thread Baolin Wang
In dm-crypt, it need to map one bio to scatterlist for improving the hardware engine encryption efficiency. Thus this patch introduces the blk_bio_map_sg() function to map one bio with scatterlists. Signed-off-by: Baolin Wang --- block/blk-merge.c | 45

RE: fsl-dcu not works on latest "drm-next"

2016-05-24 Thread Stefan Agner
On 2016-05-24 19:14, Meng Yi wrote: > I found that its regmap endianness issue, so I want to replace the "regmap". Hm, replace with what? Note that we need some kind of endianness convertion since the IP is big endian on LS1021a and little endian on Vybrid (vf610). Is it maybe just an issue with r

Re: Regression in 4.6.0-git - bisected to commit dd254f5a382c

2016-05-24 Thread Al Viro
On Wed, May 25, 2016 at 12:41:33AM +0100, Al Viro wrote: > On Tue, May 24, 2016 at 05:31:51PM -0500, Matthew McClintock wrote: > > > > > On May 24, 2016, at 2:36 PM, Larry Finger > > > wrote: > > > > > > On 05/24/2016 02:25 PM, Matthew McClintock wrote: > > >> On May 24, 2016, at 2:16 PM, Larry

Re: [x86/cpufeature] 7b5e74e637: BUG: unable to handle kernel paging request at 6b636170

2016-05-24 Thread Ingo Molnar
* Dave Jones wrote: > On Wed, May 25, 2016 at 03:58:10AM +0800, kernel test robot wrote: > > > 0day kernel testing robot got the below dmesg and the first bad commit is > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > > > commit 7b5e74e637e4a977c7cf4

[Patch v4 3/9] iommu/amd: Detect pre enabled translation

2016-05-24 Thread Baoquan He
Add functions to check whether translation is already enabled in IOMMU. Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu_init.c | 25 + drivers/iommu/amd_iommu_types.h | 4 2 files changed, 29 insertions(+) diff --git a/drivers/iommu/amd_iommu_init.c b/driver

[Patch v4 0/9] *** Fix kdump failure in system with amd iommu***

2016-05-24 Thread Baoquan He
Hi Joerg, Recently I have time to continue the work of fixing AMD IOMMU faults in kdump kernel. The situation is I tried to make change at the time point as Intel iommu has done, but still Ethernet NIC will trigger the printing of IO_PAGE_FAULT. I got 2 machines with AMD IOMMU v1 and v2 separately

[Patch v4 4/9] iommu/amd: add early_enable_iommu() helper function

2016-05-24 Thread Baoquan He
From: Baoquan HE This can make later kdump change easier. Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu_init.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c index 9e1dfcb..9

[Patch v4 9/9] iommu/amd: Check the validation of irq table and domain id

2016-05-24 Thread Baoquan He
From: Baoquan HE If not valid just skip reserving the old domain id. Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu.c | 4 drivers/iommu/amd_iommu_init.c | 5 +++-- drivers/iommu/amd_iommu_types.h | 5 + 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/driv

[Patch v4 8/9] iommu/amd: Do not initialize dev tables again in kdump

2016-05-24 Thread Baoquan He
From: Baoquan HE The init should have been done in normal kernel, skip it in kdump kernel. And clean up the function comments. Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu_init.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/amd_iommu_init.

[Patch v4 6/9] iommu/amd: Add function copy_dev_tables

2016-05-24 Thread Baoquan He
Add function copy_dev_tables to copy old DTE of the 1st kernel to the new DTE table. Since all iommu share the same DTE table the copy only need be done once as long as the physical address of old DTE table is retrieved from iommu reg. Besides the old domain id occupied in 1st kernel need be reserv

Re: [PATCH] hwrng: stm32 - fix build warning

2016-05-24 Thread Sudip Mukherjee
On Tuesday 24 May 2016 02:50 PM, Maxime Coquelin wrote: 2016-05-24 10:58 GMT+02:00 Arnd Bergmann : On Tuesday, May 24, 2016 10:50:17 AM CEST Maxime Coquelin wrote: diff --git a/drivers/char/hw_random/stm32-rng.c b/drivers/char/hw_random/stm32-rng.c index 92a810648bd0..2a0fc90e4dc3 100644 --- a/

[Patch v4 5/9] iommu/amd: Define bit fields for DTE particularly

2016-05-24 Thread Baoquan He
In amd-vi spec several bits of IO PTE fields and DTE fields are similar so that both of them can share the same MACRO definition. However defining their respecitve bit fields can make code more read-able. So do it in this patch. Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu.c | 10

[Patch v4 7/9] iommu/amd: copy old trans table from old kernel

2016-05-24 Thread Baoquan He
From: Baoquan HE Here several things need be done: 1) Initialize amd_iommu_dev_table because it was set several times since kdump kernel reboot. We don't need the set because we will copy the content from old kernel. 2) Re-enable event/cmd buffer 3) Install the DTE table to reg 4) Flush all

<    3   4   5   6   7   8   9   >