Re: [PATCH] x86/power/64: Do not refer to __PAGE_OFFSET from assembly code

2016-08-06 Thread Pavel Machek
Hi! > > >> Is similar patch needed for i386? > > > > > > Yes, it is, in general, for i386 hibernation to work with ASLR. > > > > > > But it doesn't work with it for other reasons ATM, AFAICS. > > > > > > Unfortunately, I won't really have the time to take care of this any time > > > soon. > > > >

Re: [PATCH 0/7] Minor DP aux transaction fixes

2016-08-06 Thread Christian König
Am 06.08.2016 um 02:30 schrieb Lyude: While I was investigating an unrelated bug on the radeon driver, I noticed that it's become rather difficult to actually read through dmesg with drm.debug turned on, on account of the huge number of messages we end up printing from failed DP aux transactions

Re: [RFC][PATCH] RANDOM: ATH9K RNG delivers zero bits of entropy

2016-08-06 Thread Jason Cooper
Hi Stephan, On Fri, Aug 05, 2016 at 05:08:14PM +0200, Stephan Mueller wrote: > Hi Ted, Herbert, > > I sent a question to the ATH9K RNG some time ago to the developers. > See https://www.mail-archive.com/linux-crypto@vger.kernel.org/msg19115.html > > I have not yet received a word and I think thi

Re: [PATCH] Revert "irqdomain: Don't set type when mapping an IRQ"

2016-08-06 Thread Marc Zyngier
On Sat, 6 Aug 2016 10:18:03 +0200 Linus Walleij wrote: > This reverts commit 1e2a7d78499ec8859d2b469051b7b80bad3b08aa. > > When using the APQ8060 Dragonboard I have lost all interrupts from > the PMIC after this commit: power button, keypad, RTC alarm and > all GPIOs. Reverting the commit solve

[PATCH v2 07/14] net: ethernet: ti: cpsw: replace pdev on dev

2016-08-06 Thread Ivan Khoronzhuk
No need to hold pdev link when only dev is needed. This allows to simplify a bunch of cpsw->pdev->dev now and farther. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 65 ++ 1 file changed, 34 insertions(+), 31 deletions(-) diff --git

[GIT PULL for v4.8-rc1] mailcap fixup for two entries

2016-08-06 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from my tree for a small fixup on my entry and Shuah's entry at .mailcap. Basically, those entries were with a syntax that makes get_maintainer.pl to do the wrong thing. Thanks! Mauro PS.: Andrew asked to handle this one via my tree, as he had some issued with some UTF-8 c

Re: [PATCH v2] perf probe: Support signedness casting

2016-08-06 Thread Masami Hiramatsu
On Fri, 5 Aug 2016 20:53:21 +0900 Naohiro Aota wrote: > Perf-probe detects a variable's type and use the detected type to add new > probe. Then, kprobes prints its variable in hexadecimal format if the > variable is unsigned and prints in decimal if it is signed. > > We sometimes want to see uns

Re: [PATCH v2 1/2] befs: remove unused BEFS_BT_MATCH

2016-08-06 Thread Luis de Bethencourt
On 06/08/16 19:34, Salah Triki wrote: > On Fri, Aug 05, 2016 at 01:41:20PM +0100, Luis de Bethencourt wrote: >> befs_btree_find(), the only caller of befs_find_key(), only cares about if >> the return from that function is BEFS_BT_MATCH or not. It never uses the >> partial match given with BEFS_BT_

Re: [PATCH 2/2] gpio: add Technologic I2C-FPGA gpio support

2016-08-06 Thread Paul Gortmaker
On Fri, Aug 5, 2016 at 10:41 AM, Lucile Quirion wrote: > This driver is generic and aims to support all Technologic Systems's > boards embedding FPGA GPIOs with an I2C interface. > > This driver supports TS-4900, TS-7970, TS-7990 and TS-4100 series. > > Signed-off-by: Lucile Quirion > --- > driv

Re: [PATCH v3] Coccinelle: Script to replace NULL test with IS_ERR test for devm_ioremap_resource

2016-08-06 Thread Julia Lawall
On Sat, 6 Aug 2016, SF Markus Elfring wrote: > > +@err depends on context || org || report@ > > +statement S; > > +expression e; > > +position j0; > > How do you think about to omit the number from this variable name? > > > > +@@ > > + > > + e = devm_ioremap_resource(...); > > +* if (!e@j0) S >

Re: [Documentation] State of CPU controller in cgroup v2

2016-08-06 Thread Mike Galbraith
On Fri, 2016-08-05 at 13:07 -0400, Tejun Heo wrote: > 2-2. Impact on CPU Controller > > As indicated earlier, the CPU controller's resource distribution graph > is the simplest. Every schedulable resource consumption can be > attributed to a specific task. In addition, for weight based control,

[PATCH v8 5/6] drm/i915: Move CRTC updating in atomic_commit into it's own hook

2016-08-06 Thread Lyude
Since we have to write ddb allocations at the same time as we do other plane updates, we're going to need to be able to control the order in which we execute modesets on each pipe. The easiest way to do this is to just factor this section of intel_atomic_commit_tail() (intel_atomic_commit() for sta

Re: [RFC][PATCH] RANDOM: ATH9K RNG delivers zero bits of entropy

2016-08-06 Thread Stephan Mueller
Am Samstag, 6. August 2016, 19:45:51 CEST schrieb Jason Cooper: Hi Jason, > Hi Stephan, > > On Fri, Aug 05, 2016 at 05:08:14PM +0200, Stephan Mueller wrote: > > Hi Ted, Herbert, > > > > I sent a question to the ATH9K RNG some time ago to the developers. > > See > > https://www.mail-archive.com/

Re: [RFC][PATCH 0/4] SRAM based reboot reason driver for HiKey

2016-08-06 Thread John Stultz
On Fri, Aug 5, 2016 at 3:37 PM, Rob Herring wrote: > On Fri, Aug 5, 2016 at 7:46 AM, Vladimir Zapolskiy > wrote: >> Hi John, >> >> On 08/04/2016 02:05 AM, John Stultz wrote: >>> >>> Now that Andy's reboot reason core driver has landed, I wanted >>> to resubmit a reworked version of my SRAM based

[PATCH v2 14/14] net: ethernet: ti: cpsw: move ale, cpts and drivers params under cpsw_common

2016-08-06 Thread Ivan Khoronzhuk
The ale, cpts, version, limit, freq, interrupt pacing parameters are common per net device that uses the same h/w. So, move them to common driver structure. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 237 ++--- 1 file changed, 106 inse

[PATCH v2 08/14] net: ethernet: ti: cpsw: move links on h/w registers to cpsw_common

2016-08-06 Thread Ivan Khoronzhuk
The pointers on h/w registers are common for every cpsw_private instance, so no need to hold them for every ndev. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 97 +++--- 1 file changed, 53 insertions(+), 44 deletions(-) diff --git a/dri

Re: [PATCH v2 2/2] imx53.dtsi : Add DMA configuration for UART

2016-08-06 Thread Fabio Estevam
On Thu, Aug 4, 2016 at 7:49 AM, Alexander Shiyan wrote: > Hello. > > UART SDMA has been tested by me for i.MX51. > So, on my opinion, In the first part of the patch, we just need to remove > is_imx6q_uart() > check on and always let the devicetree decide about DMA usage. Yes, agreed.

[PATCH] megaraid_sas: Fix probing cards without io port

2016-08-06 Thread Yinghai Lu
Found one megaraid_sas HBA probe fails, [ 187.235190] scsi host2: Avago SAS based MegaRAID driver [ 191.112365] megaraid_sas :89:00.0: BAR 0: can't reserve [io 0x-0x00ff] [ 191.120548] megaraid_sas :89:00.0: IO memory region busy! and the card has resource like, [ 125.097714] pc

[PATCH v8 0/6] Finally fix watermarks

2016-08-06 Thread Lyude
Latest version of https://patchwork.freedesktop.org/series/10276/ All patches are being resent to keep them in one place. Most of the changes are very minor, with the exception of patch 6. The patches that actually changed: - drm/i915/skl: Add support for the SAGV, fix underrun hangs - drm/i915

[PATCH v8 3/6] drm/i915/skl: Update plane watermarks atomically during plane updates

2016-08-06 Thread Lyude
Thanks to Ville for suggesting this as a potential solution to pipe underruns on Skylake. On Skylake all of the registers for configuring planes, including the registers for configuring their watermarks, are double buffered. New values written to them won't take effect until said registers are "ar

[PATCH v8 2/6] drm/i915/gen9: Only copy WM results for changed pipes to skl_hw

2016-08-06 Thread Lyude
From: Matt Roper When we write watermark values to the hardware, those values are stored in dev_priv->wm.skl_hw. However with recent watermark changes, the results structure we're copying from only contains valid watermark and DDB values for the pipes that are actually changing; the values for o

[PATCH v8 1/6] drm/i915/skl: Add support for the SAGV, fix underrun hangs

2016-08-06 Thread Lyude
Since the watermark calculations for Skylake are still broken, we're apt to hitting underruns very easily under multi-monitor configurations. While it would be lovely if this was fixed, it's not. Another problem that's been coming from this however, is the mysterious issue of underruns causing full

[PATCH v8 6/6] drm/i915/skl: Update DDB values atomically with wms/plane attrs

2016-08-06 Thread Lyude
Now that we can hook into update_crtcs and control the order in which we update CRTCs at each modeset, we can finish the final step of fixing Skylake's watermark handling by performing DDB updates at the same time as plane updates and watermark updates. The first major change in this patch is skl_

[GIT PULL] arch/sh updates for 4.8

2016-08-06 Thread Rich Felker
Hi Linus, Please pull these changes for arch/sh. They're based off a commit in your current tree to resolve conflicts with 726328d92a (locking/spinlock, arch: Update and fix spin_unlock_wait() implementations). The J-Core arch support is included here but to be usable it needs drivers that are wai

[PATCH v8 4/6] drm/i915/skl: Ensure pipes with changed wms get added to the state

2016-08-06 Thread Lyude
If we're enabling a pipe, we'll need to modify the watermarks on all active planes. Since those planes won't be added to the state on their own, we need to add them ourselves. Signed-off-by: Lyude Reviewed-by: Matt Roper Cc: sta...@vger.kernel.org Cc: Ville Syrjälä Cc: Daniel Vetter Cc: Radhak

Re: [GIT PULL for v4.8-rc1] mailcap fixup for two entries

2016-08-06 Thread Joe Perches
On Sat, 2016-08-06 at 07:35 -0300, Mauro Carvalho Chehab wrote: > Hi Linus, > > Please pull from my tree for a small fixup on my entry and Shuah's entry at > .mailcap. > > Basically, those entries were with a syntax that makes get_maintainer.pl to > do the wrong thing. > > Thanks! > Mauro .mail

Re: [PATCH 2/4] tools lib traceevent: Use USECS_PER_SEC instead of hardcoded number

2016-08-06 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 05, 2016 at 03:15:28PM -0400, Steven Rostedt escreveu: > On Fri, 5 Aug 2016 15:36:55 -0300 > Arnaldo Carvalho de Melo wrote: > > > > [acme@jouet linux]$ cat tools/include/linux/time64.h > > #ifndef _TOOLS_LINUX_TIME64_H > > #define _TOOLS_LINUX_TIME64_H > > > > #define MSEC_PER_SEC

[PATCH v2 11/14] net: ethernet: ti: cpsw: move data platform data and slaves info to cpsw_common

2016-08-06 Thread Ivan Khoronzhuk
These data are common per net dev. No need to hold it in every priv instance, so move them under cpsw_common. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 271 + 1 file changed, 140 insertions(+), 131 deletions(-) diff --git a/drive

[PATCH v2 05/14] net: ethernet: ti: cpsw: don't check slave num in runtime

2016-08-06 Thread Ivan Khoronzhuk
No need to check const slave num in runtime for every packet, and ndev for slaves w/o ndev is anyway NULL. So remove redundant check. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/ti/cp

Re: [RFC][PATCH] RANDOM: ATH9K RNG delivers zero bits of entropy

2016-08-06 Thread Jason Cooper
Hi Stephan, On Sat, Aug 06, 2016 at 10:03:58PM +0200, Stephan Mueller wrote: > Am Samstag, 6. August 2016, 19:45:51 CEST schrieb Jason Cooper: > > On Fri, Aug 05, 2016 at 05:08:14PM +0200, Stephan Mueller wrote: ... > > > diff --git a/drivers/net/wireless/ath/ath9k/rng.c > > > b/drivers/net/wirele

Re: [Patch v3 01/11] arch/powerpc/pci: Fix compiling error for mpc85xx_edac

2016-08-06 Thread york sun
On 08/04/2016 08:43 PM, Michael Ellerman wrote: > York Sun writes: > >> Two symbols are missing if mpc85xx_edac driver is compiled as module. >> >> Signed-off-by: York Sun >> >> --- >> Change log >> v3: Change subject tag >> v2: no change >> >> arch/powerpc/kernel/pci-common.c | 2 ++ >> 1 f

[PATCH v2 0/3] sched: Avoid that __wait_on_bit_lock() hangs

2016-08-06 Thread Bart Van Assche
Hello Ingo, This patch series addresses an issue that my SRP driver test software can trigger reproducibly, namely that __wait_on_bit_lock() hangs. Please review and apply these patches whenever this is convenient for you. The changes compared to the first version of this series are: * Rework

[PATCH 1/2] f2fs: clean up bio cache trace

2016-08-06 Thread Chao Yu
From: Chao Yu Trace info related to bio cache operation is out of format, clean up it. Before: <...>-28308 [002] 4781.052703: f2fs_submit_write_bio: dev = (251,1), WRITEWRITE_SYNC ^H, DATA, sector = 271424, size = 126976 <...>-28308 [002] 4781.052820: f2fs_submit_page_

[PATCH 2/2] Revert "f2fs: move i_size_write in f2fs_write_end"

2016-08-06 Thread Chao Yu
From: Chao Yu This reverts commit a2ee0a300344a6da76186129b078113354fe13d2. When testing with generic/032 of xfstest suit, failure message will be reported as below: generic/032 8s ... [failed, exit status 1] - output mismatch (see results/generic/032.out.bad) --- tests/generic/032.out 2

[PATCH v2 2/3] sched: Introduce a local variable in abort_exclusive_wait()

2016-08-06 Thread Bart Van Assche
This patch does not change any functionality. Signed-off-by: Bart Van Assche Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Oleg Nesterov Cc: Andrew Morton Cc: Johannes Weiner Cc: Neil Brown Cc: Michael Shaver --- kernel/sched/wait.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-

[PATCH v2 1/3] sched: Avoid that __wait_on_bit_lock() hangs

2016-08-06 Thread Bart Van Assche
If delivery of a signal and __wake_up_common() happen concurrently it is possible that the signal is delivered after __wake_up_common() woke up the affected task and before bit_wait_io() checks whether a signal is pending. Avoid that the next waiter is not woken up if this happens. This patch fixes

Re: [PATCH v2 03/44] x86/asm/head: rename 'stack_start' -> 'initial_stack'

2016-08-06 Thread Josh Poimboeuf
On Sat, Aug 06, 2016 at 07:25:21AM +0200, Borislav Petkov wrote: > On Fri, Aug 05, 2016 at 11:01:57AM -0500, Josh Poimboeuf wrote: > > The 8 should be changed to SIZEOF_PTREGS in a later patch > > ("x86/asm/head: standardize the end of the stack for idle tasks"). > > But SIZEOF_PTREGS is 21*8. I d

checkpatch.pl: how to run --fix-inplace for just only one warning/error

2016-08-06 Thread Xose Vazquez Perez
Hi, Maybe it's tricky, but could it be possible? For example for: ERROR: space prohibited after that open parenthesis '(' Any hint? Thank you.

Re: [PATCH v2 12/14] net: ethernet: ti: cpsw: fix int dbg message

2016-08-06 Thread Joe Perches
On Sat, 2016-08-06 at 13:48 +0300, Ivan Khoronzhuk wrote: > While poll handlers there is no possibility to figure out > which network device is handling packets, as cpdma channels > are common for both network devices in dual_emac mode. Currently, > the messages are printed only for one device, in

Filesystem slow write performance

2016-08-06 Thread Babu Moger
Hi, Seeing some terrible write performance with ext3/4 writes. Reads are fine. I have a created loop device and mounted as ext3(tried ext4 also). Here is iostat output. await time is pretty high most of the time. Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgq

[PATCH 2/7] drm/radeon: Don't print error on aux transaction timeouts

2016-08-06 Thread Lyude
Since it's normal for DRM to retry our aux transaction helpers multiple times in a row, up to 32 times for each attempted transaction, we're making a lot of noise that is no longer necessary now that DRM will just print the return code we give it. Signed-off-by: Lyude --- drivers/gpu/drm/radeon/

[PATCH 5/7] drm/amdgpu: Don't retry 7 times in amdgpu_atombios_dp_get_dpcd()

2016-08-06 Thread Lyude
When this code was written, we didn't retry DP aux transactions on any error, which required retrying important transactions like this in individual drivers. Since that's no longer the case, retrying here is not necessary. As well, we retry any aux transaction on any error 32 times. 7 * 32 = 224, w

[PATCH 3/7] drm/radeon: Don't retry 7 times in radeon_dp_dpcd()

2016-08-06 Thread Lyude
When this code was written, we didn't retry DP aux transactions on any error, which required retrying important transactions like this in individual drivers. Since that's no longer the case, retrying here is not necessary. As well, we retry any aux transaction on any error 32 times. 7 * 32 = 224, w

Re: checkpatch.pl: how to run --fix-inplace for just only one warning/error

2016-08-06 Thread Joe Perches
On Sat, 2016-08-06 at 22:24 +0200, Xose Vazquez Perez wrote: > Hi, > > Maybe it's tricky, but could it be possible? > For example for: ERROR: space prohibited after that open parenthesis > '(' > Any hint? try --types=SPACING

[PATCH 7/7] drm/dp_helper: Rate limit timeout errors from drm_dp_i2c_do_msg()

2016-08-06 Thread Lyude
Timeouts can be errors, but timeouts are also usually normal behavior and happen a lot. Since the kernel already lets us know when we're suppressing messages due to rate limiting, rate limit timeout errors so we don't make too much noise in the kernel log. Signed-off-by: Lyude --- drivers/gpu/dr

[PATCH 1/7] drm/dp_helper: Print first error received on failure in drm_dp_dpcd_access()

2016-08-06 Thread Lyude
Since we always retry in drm_dp_dpcd_access() regardless of the error, we're going to make a lot of noise if the aux->transfer function prints it's own errors (as is the case with radeon). If we can print the error code here, this reduces the need for drivers to do this. So instead of having to pri

Re: [Letux-kernel] [PATCH v2] musb: omap2430: do not assume balanced enable()/disable()

2016-08-06 Thread Tony Lindgren
* Andreas Kemnade [160805 08:35]: > I repeat the subject line of the patch: > [PATCH v2] musb: omap2430: do not assume balanced enable()/disable() > It is *not* fix charging. > > So you mean that the phy should magically know at which refcounter > it should power on and off if power on/off is not

[PATCH 4/7] drm/amdgpu: Don't print error on aux transaction timeouts

2016-08-06 Thread Lyude
Since it's normal for DRM to retry our aux transaction helpers multiple times in a row, up to 32 times for each attempted transaction, we're making a lot of noise that is no longer necessary now that DRM will just print the return code we give it. Signed-off-by: Lyude --- drivers/gpu/drm/amd/amd

[PATCH 0/7] Minor DP aux transaction fixes

2016-08-06 Thread Lyude
While I was investigating an unrelated bug on the radeon driver, I noticed that it's become rather difficult to actually read through dmesg with drm.debug turned on, on account of the huge number of messages we end up printing from failed DP aux transactions that happen every time we reprobe each c

[PATCH 1/1] x86/mm: kaslr: fix -Wformat-security warning

2016-08-06 Thread Nicolas Iooss
debug_putstr() is used to output strings without using printf-like formatting but debug_putstr(v) is defined as early_printk(v) in arch/x86/lib/kaslr.c. This makes clang reports the following warning when building with -Wformat-security: arch/x86/lib/kaslr.c:57:15: warning: format string is n

[PATCH 6/7] drm: Add ratelimited versions of the DRM_DEBUG* macros

2016-08-06 Thread Lyude
There's a couple of places where this would be useful for drivers (such as reporting DP aux transaction timeouts). Signed-off-by: Lyude --- include/drm/drmP.h | 30 ++ 1 file changed, 30 insertions(+) diff --git a/include/drm/drmP.h b/include/drm/drmP.h index d377865

Re: [PATCH v2 6/9] mtd: spi-nor: Support R/W for S25FS-S family flash

2016-08-06 Thread Jagan Teki
On 22 April 2016 at 12:09, Yunhui Cui wrote: > From: Yunhui Cui > > With the physical sectors combination, S25FS-S family flash > requires some special operations for read/write functions. > > Signed-off-by: Yunhui Cui > --- > drivers/mtd/spi-nor/spi-nor.c | 59 > ++

[PATCH v2 3/3] sched: Avoid that abort_exclusive_wait() triggers spurious wakeups

2016-08-06 Thread Bart Van Assche
Patch "sched: Avoid that __wait_on_bit_lock() hangs" made spurious wakeups possible. Avoid to trigger such spurious wakeups. Signed-off-by: Bart Van Assche Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Oleg Nesterov Cc: Andrew Morton Cc: Johannes Weiner Cc: Neil Brown Cc: Michael Shaver --- incl

Re: [PATCH 6/7] drm: Add ratelimited versions of the DRM_DEBUG* macros

2016-08-06 Thread Joe Perches
On Fri, 2016-08-05 at 20:30 -0400, Lyude wrote: > There's a couple of places where this would be useful for drivers (such > as reporting DP aux transaction timeouts). Maybe a single static _rs or one for each type would be better than an individual _rs per callsite.

Re: [PATCH 4/6] fs: befs: remove unnecessary *befs_sb variable

2016-08-06 Thread Salah Triki
On Mon, Aug 01, 2016 at 03:02:57PM +0100, Luis de Bethencourt wrote: > On 31/07/16 21:34, Salah Triki wrote: > > Remove *befs_sb and just call BEFS_SB(sb) directly, since the returned > > value by this function is only used once. > > > > Signed-off-by: Salah Triki > > --- > > fs/befs/datastream.

Re: [PATCH 2/6] fs: befs: remove in vain variable assignment

2016-08-06 Thread Salah Triki
On Mon, Aug 01, 2016 at 02:24:34PM +0100, Luis de Bethencourt wrote: > On 31/07/16 21:34, Salah Triki wrote: > > There is no need to set *value, it will be overwritten later. > > > > Signed-off-by: Salah Triki > > --- > > fs/befs/btree.c | 2 -- > > 1 file changed, 2 deletions(-) > > > > diff -

Re: [PATCH v2] perf probe: fix module name matching

2016-08-06 Thread Masami Hiramatsu
On Fri, 05 Aug 2016 15:22:36 +0300 Konstantin Khlebnikov wrote: > If module is "module" then dso->short_name is "[module]". > Substring comparing is't enough: "raid10" matches to "[raid1]". > This patch also checks terminating zero in module name. > > Signed-off-by: Konstantin Khlebnikov Looks

[PATCH 1/1] ASoc: simple-card-utils: add __printf attribute

2016-08-06 Thread Nicolas Iooss
asoc_simple_card_set_dailink_name() uses devm_kvasprintf() to format some of its arguments. Adding a __printf attribute to this function makes it possible to detect at compile-time errors related to format strings. Signed-off-by: Nicolas Iooss --- include/sound/simple_card_utils.h | 1 + 1 file

[PATCH v3] Coccinelle: Script to replace NULL test with IS_ERR test for devm_ioremap_resource

2016-08-06 Thread Amitoj Kaur Chawla
This script detects cases which have incorrect error handling for devm_ioremap_resource function, employing a NULL test instead of an IS_ERR() test. Acked-by: Julia Lawall Signed-off-by: Amitoj Kaur Chawla --- Changes in v2: -Changed script to correct error handling instead of just

Re: powerpc allyesconfig / allmodconfig linux-next next-20160729 - next-20160729 build failures

2016-08-06 Thread Nicholas Piggin
On Fri, 05 Aug 2016 21:16:00 +0200 Arnd Bergmann wrote: > On Saturday, August 6, 2016 2:16:42 AM CEST Nicholas Piggin wrote: > > > > > > diff --git a/include/asm-generic/vmlinux.lds.h > > > b/include/asm-generic/vmlinux.lds.h > > > index 0ec807d69f18..7a3ad269fa23 100644 > > > --- a/include/asm

Re: [lkdtm] 9a49a528dc: WARNING: CPU: 0 PID: 404 at kernel/trace/ftrace.c:2005 ftrace_bug

2016-08-06 Thread Kees Cook
; > git bisect start 5eb7f58ccb08a2822f20afb2f4341474e1dece30 > 523d939ef98fd712632d93a5a2b588e477a7565e -- > git bisect bad 3b760b613b1536578a4576a73e9ba9ac359d3dfd # 15:06151- > 59 Merge > 'linux-review/Wei-Yongjun/IB-core-Fix-possible-memory-leak-in-cma_resolve_iboe_route/20

Re: [PATCH v2 03/44] x86/asm/head: rename 'stack_start' -> 'initial_stack'

2016-08-06 Thread Borislav Petkov
On Fri, Aug 05, 2016 at 11:01:57AM -0500, Josh Poimboeuf wrote: > The 8 should be changed to SIZEOF_PTREGS in a later patch > ("x86/asm/head: standardize the end of the stack for idle tasks"). But SIZEOF_PTREGS is 21*8. I don't understand. -- Regards/Gruss, Boris. ECO tip #101: Trim your ma

Regression: commit 12549e2 clocksource/drivers/time-armada-370-xp: Convert init function to return error

2016-08-06 Thread Ralph Sennhauser
Dear list, dear Daniel Commit 12549e27c63c61d76bb059bfafce0a4ee05c7e90 breaks booting a Linksys WRT1900ACS for me. I filed bug [1] and John Stultz asked me to get the lists and in particular the author of the commit Daniel Lezcano's attention. More details in the original report [1]. Regards Ralp

Re: [PATCH v2 03/44] x86/asm/head: rename 'stack_start' -> 'initial_stack'

2016-08-06 Thread Josh Poimboeuf
On Sat, Aug 06, 2016 at 09:15:30AM -0400, Brian Gerst wrote: > On Sat, Aug 6, 2016 at 1:25 AM, Borislav Petkov wrote: > > On Fri, Aug 05, 2016 at 11:01:57AM -0500, Josh Poimboeuf wrote: > >> The 8 should be changed to SIZEOF_PTREGS in a later patch > >> ("x86/asm/head: standardize the end of the s

[PATCH] Map in physical addresses in efi_map_region_fixed

2016-08-06 Thread Alex Thorlton
This is a simple change to add in the physical mappings as well as the virtual mappings in efi_map_region_fixed. The motivation here is to get access to EFI runtime code that is only available via the 1:1 mappings on a kexec'd kernel. The added call is essentially the kexec analog of the first __

Re: [PATCH 3/4] KVM: arm/arm64: Check for broadcast TLBI support

2016-08-06 Thread kbuild test robot
Hi Matthias, [auto build test ERROR on arm64/for-next/core] [also build test ERROR on v4.7] [cannot apply to next-20160805] [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/linux/commits/Matthias-Brugger/arm64-

Re: [PATCH v3 2/3] drm: Add API for capturing frame CRCs

2016-08-06 Thread Daniel Stone
Hi Tomeu, On 22 July 2016 at 15:10, Tomeu Vizoso wrote: > +/** > + * DOC: CRC ABI > + * > + * DRM device drivers can provide to userspace CRC information of each frame > as > + * it reached a given hardware component (a "source"). > + * > + * Userspace can control generation of CRCs in a given C

[PATCH v2] clocksource: Defer override invalidation unless clock is unstable

2016-08-06 Thread Kyle Walker
Clocksources don't get the VALID_FOR_HRES flag until they have been checked by a watchdog. However, when using an override, the clocksource_select logic will clear the override value if the clocksource is not marked VALID_FOR_HRES during that inititial check. When using the boot arguments clocksour

Re: [PATCH v3 1/9] usb: gadget: fix usb_ep_align_maybe endianness and new usb_ep_align

2016-08-06 Thread Michal Nazarewicz
On Fri, Aug 05 2016, Felipe F. Tonello wrote: > USB spec specifies wMaxPacketSize to be little endian (as other properties), > so when using this variable in the driver we should convert to the current > CPU endianness if necessary. > > This patch also introduces usb_ep_align() which does always re

Re: [PATCH] x86/power/64: Do not refer to __PAGE_OFFSET from assembly code

2016-08-06 Thread Rafael J. Wysocki
On Friday, August 05, 2016 08:21:31 AM Thomas Garnier wrote: > On Fri, Aug 5, 2016 at 7:44 AM, Rafael J. Wysocki wrote: > > On Friday, August 05, 2016 12:37:13 PM Pavel Machek wrote: > >> On Wed 2016-08-03 01:19:26, Rafael J. Wysocki wrote: > >> > From: Rafael J. Wysocki > >> > > >> > When CONFIG

Re: [RFC][PATCH 0/4] SRAM based reboot reason driver for HiKey

2016-08-06 Thread Rob Herring
On Fri, Aug 5, 2016 at 7:46 AM, Vladimir Zapolskiy wrote: > Hi John, > > On 08/04/2016 02:05 AM, John Stultz wrote: >> >> Now that Andy's reboot reason core driver has landed, I wanted >> to resubmit a reworked version of my SRAM based reboot reason >> driver. >> >> This allows the kernel to commu

[GIT PULL] first round of SCSI updates for the 4.7+ merge window

2016-08-06 Thread James Bottomley
This is seven basic fixes (plus one MAINTAINERS update) which came in close to the merge window. The patch is available here: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-misc The short changelog is: Brian King (1): ipr: Wait to do async scan until scsi host is initial

Re: [PATCH v2 1/2] befs: remove unused BEFS_BT_MATCH

2016-08-06 Thread Salah Triki
On Fri, Aug 05, 2016 at 01:41:20PM +0100, Luis de Bethencourt wrote: > befs_btree_find(), the only caller of befs_find_key(), only cares about if > the return from that function is BEFS_BT_MATCH or not. It never uses the > partial match given with BEFS_BT_MATCH. Removing that return and don't set >

core.c:undefined reference to `fpu_save'

2016-08-06 Thread kbuild test robot
Hi Andrew, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0cbbc422d56668528f6efd1234fe908010284082 commit: c60f169202c7643991a8b4bfeea60e06843d5b5a arch/mn10300/kernel/fpu-nofpu.c: needs asm/elf.h d

Re: [PATCH v2 08/22] usb: chipidea: Remove locking in ci_udc_start()

2016-08-06 Thread Peter Chen
On Fri, Aug 05, 2016 at 02:53:56PM -0700, Stephen Boyd wrote: > Quoting Peter Chen (2016-07-08 02:45:28) > > On Thu, Jul 07, 2016 at 03:20:59PM -0700, Stephen Boyd wrote: > > > We don't call hw_device_reset() with the ci->lock held, so it > > > doesn't seem like this lock here is protecting anythin

Re: [PATCH v2 2/2] befs: fix typo in befs_find_key

2016-08-06 Thread Salah Triki
On Fri, Aug 05, 2016 at 01:41:21PM +0100, Luis de Bethencourt wrote: > Fixing skeep to skip. > > Signed-off-by: Luis de Bethencourt > --- > fs/befs/btree.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/befs/btree.c b/fs/befs/btree.c > index bc7efb0..784688c 100644

Re: [PATCH v2 06/22] usb: chipidea: Add platform flag for wrapper phy management

2016-08-06 Thread Peter Chen
On Fri, Aug 05, 2016 at 02:46:00PM -0700, Stephen Boyd wrote: > Quoting Peter Chen (2016-07-08 02:25:35) > > On Thu, Jul 07, 2016 at 03:20:57PM -0700, Stephen Boyd wrote: > > > The ULPI phy on qcom platforms needs to be initialized and > > > powered on after a USB reset and before we toggle the run

Re: [PATCH 3/6] fs: befs: remove useless initialization to zero

2016-08-06 Thread Salah Triki
On Mon, Aug 01, 2016 at 02:44:18PM +0100, Luis de Bethencourt wrote: > On 31/07/16 21:34, Salah Triki wrote: > > node_off is unconditionally set to bt_super.root_node_ptr, so no need to > > init it to zero. > > > > Signed-off-by: Salah Triki > > --- > > fs/befs/btree.c | 2 +- > > 1 file changed

Re: perf test BPF failing on f24: fix

2016-08-06 Thread Masami Hiramatsu
On Fri, 5 Aug 2016 11:35:32 -0300 Arnaldo Carvalho de Melo wrote: > Em Fri, Aug 05, 2016 at 06:45:50PM +0900, Masami Hiramatsu escreveu: > > On Thu, 4 Aug 2016 18:47:24 -0300 > > Arnaldo Carvalho de Melo wrote: > > > > > Em Thu, Aug 04, 2016 at 04:36:56PM -0300, Arnaldo Carvalho de Melo > > >

[PATCH] Added perf functionality to mmdc driver

2016-08-06 Thread Zhengyu Shen
$ perf stat -e mmdc/busy-cycles/,mmdc/read-accesses/,mmdc/read-bytes/,mmdc/total-cycles/,mmdc/write-accesses/,mmdc/write-bytes/ dd if=/dev/zero of=/dev/null bs=1M count=5000 Performance counter stats for 'dd if=/dev/zero of=/dev/null bs=1M count=5000': 898021787 mmdc/busy-cycles/

Re: [PATCH v3 4/9] usb: gadget: f_midi: defaults buflen sizes to 512

2016-08-06 Thread Michal Nazarewicz
On Fri, Aug 05 2016, Felipe F. Tonello wrote: > 512 is the value used by wMaxPacketSize, as specified by the USB Spec. This > makes sure this driver uses, by default, the most optimal value for IN and OUT > endpoint requests. > > Signed-off-by: Felipe F. Tonello Acked-by: Michal Nazarewicz > --

[PATCH] Staging: wlan-ng: fixed "block comments" warnings

2016-08-06 Thread Claudiu Beznea
This patch fix "block comments use *" warning returned by checkpatch.pl script. Signed-off-by: Claudiu Beznea --- drivers/staging/wlan-ng/hfa384x.h | 234 +++-- drivers/staging/wlan-ng/hfa384x_usb.c | 172 drivers/staging/wlan-ng/p80211n

Re: [RFC PATCH] softirq: fix tasklet_kill() usage and users

2016-08-06 Thread Santosh Shilimkar
ping !! On 8/1/2016 9:13 PM, Santosh Shilimkar wrote: Semantically the expectation from the tasklet init/kill API should be as below. tasklet_init() == Init and Enable scheduling tasklet_kill() == Disable scheduling and Destroy tasklet_init() API exibit above behavior but not the tasklet_kill(

Re: powerpc allyesconfig / allmodconfig linux-next next-20160729 - next-20160729 build failures

2016-08-06 Thread Arnd Bergmann
On Saturday, August 6, 2016 2:17:16 PM CEST Nicholas Piggin wrote: > On Fri, 05 Aug 2016 21:16:00 +0200 > Arnd Bergmann wrote: > > > On Saturday, August 6, 2016 2:16:42 AM CEST Nicholas Piggin wrote: > > > > > > > > diff --git a/include/asm-generic/vmlinux.lds.h > > > > b/include/asm-generic/vm

Re: [RFC][PATCH 5/7] cpufreq / sched: UUF_IO flag to indicate iowait condition

2016-08-06 Thread Rafael J. Wysocki
On Thursday, August 04, 2016 03:09:08 PM Steve Muckle wrote: > On Thu, Aug 04, 2016 at 11:19:00PM +0200, Rafael J. Wysocki wrote: [cut] > > > This is also an issue for the remote wakeup case where I currently have > > > another invocation of the hook in check_preempt_curr(), so I can know if > >

Re: [PATCH] asus-laptop: get rid of parse_arg()

2016-08-06 Thread Giedrius Statkevičius
On Fri, Aug 05, 2016 at 04:15:07PM -0700, Darren Hart wrote: > On Fri, Aug 05, 2016 at 11:57:10PM +0300, Giedrius Statkevičius wrote: > > parse_arg() duplicates the funcionality of kstrtoint() so use the latter > > function instead. There is no funcionality change except that in the > > case of inp

[PATCH v2 01/14] net: ethernet: ti: cpsw: simplify submit routine

2016-08-06 Thread Ivan Khoronzhuk
As second net dev is created only in case of dual_emac mode, port number can be figured out in simpler way. Also no need to pass redundant ndev struct. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) dif

Re: [PATCH v4 0/6] power: add power sequence library

2016-08-06 Thread Oscar
El 2016-08-02 05:30, Peter Chen escribió: Hi all, This is a follow-up for my last power sequence framework patch set [1]. According to Rob Herring and Ulf Hansson's comments[2], I use a generic power sequence library for parsing the power sequence elements on DT, and implement generic power s

[PATCH v2 06/14] net: ethernet: ti: cpsw: create common struct to hold shared driver data

2016-08-06 Thread Ivan Khoronzhuk
This patch simply create holder for common data and as a start moves pdev var to it. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 62 ++ 1 file changed, 39 insertions(+), 23 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b

Re: [GIT PULL] platform-drivers-x86 for 4.8-2

2016-08-06 Thread Linus Torvalds
On Fri, Aug 5, 2016 at 6:51 PM, Darren Hart wrote: > > Minor platform specific event handling updates and a Kconfig cleanup. No. You already sent a *different* copy of all of these except for the dell-wmi one in a previous pull requests. This pull request gets me four new commits, but three of t

Re: [PATCH v3] Coccinelle: Script to replace NULL test with IS_ERR test for devm_ioremap_resource

2016-08-06 Thread SF Markus Elfring
> +@err depends on context || org || report@ > +statement S; > +expression e; > +position j0; How do you think about to omit the number from this variable name? > +@@ > + > + e = devm_ioremap_resource(...); > +* if (!e@j0) S Are there any more functions to consider for such a source code searc

[PATCH v2 13/14] net: ethernet: ti: cpsw: move napi struct to cpsw_common

2016-08-06 Thread Ivan Khoronzhuk
The napi structs are common for both net devices in dual_emac mode, In order to not hold duplicate links to them, move to cpsw_common. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 50 +++--- 1 file changed, 22 insertions(+), 28 deletions

[PATCH v2 12/14] net: ethernet: ti: cpsw: fix int dbg message

2016-08-06 Thread Ivan Khoronzhuk
While poll handlers there is no possibility to figure out which network device is handling packets, as cpdma channels are common for both network devices in dual_emac mode. Currently, the messages are printed only for one device, in fact, there is two. So, better to print integrated num_tx value fo

Re: [Regression] "irqdomain: Don't set type when mapping an IRQ" breaks nexus7 gpio buttons

2016-08-06 Thread John Stultz
On Mon, Aug 1, 2016 at 3:26 AM, Jon Hunter wrote: > Hi John, > > On 30/07/16 05:39, John Stultz wrote: >> Hey Jon, >> So after rebasing my nexus7 patch stack onto pre-4.8-rc1 tree, I >> noticed the power/volume buttons stopped working. >> >> I did a manual rebased bisection and chased it down to

Re: [RFC][PATCH 7/7] cpufreq: intel_pstate: Change P-state selection algorithm for Core

2016-08-06 Thread Rafael J. Wysocki
On Wednesday, August 03, 2016 11:53:23 PM Doug Smythies wrote: > On 2016.08.03 21:19 Doug Smythies wrote: > > Re-sending without the previously attached graph. > > Hi Rafael, > > Hope this feedback and test results help. > > On 2016.07.31 16:49 Rafael J. Wysocki wrote: > > > The PID-base P-sta

Re: [PATCH 3/3] locking/rwsem: Scan the wait_list for readers only once

2016-08-06 Thread Ingo Molnar
* Davidlohr Bueso wrote: > When wanting to wakeup readers, __rwsem_mark_wakeup() currently > iterates the wait_list twice while looking to wakeup the first N > queued reader-tasks. While this can be quite inefficient, it was > there such that a awoken reader would be first and foremost > acknowl

[PATCH v2 10/14] net; ethernet: ti: cpsw: move irq stuff under cpsw_common

2016-08-06 Thread Ivan Khoronzhuk
The irq data are common per net device. So no need to hold these data per net dev, move it under cpsw_common. Also delete irq_num var, as after optimization it's not needed. Correct number of irqs to 2, as anyway, driver is using only 2, at least for now. Signed-off-by: Ivan Khoronzhuk --- drive

[PATCH v2 04/14] net: ethernet: ti: cpsw: remove clk var from priv

2016-08-06 Thread Ivan Khoronzhuk
There is no need to hold link to clk, it's used only once while probe. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 30e1ddb..7

[PATCH] proc: faster /proc/*/status

2016-08-06 Thread Alexey Dobriyan
top(1) opens the following files for every PID: /proc/*/stat /proc/*/statm /proc/*/status This patch switches /proc/*/status away from seq_printf(). The result is 13.5% speedup. Benchmark is open("/proc/self/status")+read+close 1.000.000 million times.

[PATCH v2 03/14] net: ethernet: ti: cpsw: remove priv from cpsw_get_slave_port() parameters list

2016-08-06 Thread Ivan Khoronzhuk
There is no need in priv here. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 85ee9f5..30e1ddb 100644 --- a/drivers/net/ethernet

  1   2   >