linux-next: build failure after merge of the gpio tree

2015-12-02 Thread Mark Brown
Hi Linus, After merging the gpio tree, today's linux-next build (x86 allmodconfig) failed like this: make[1]: Leaving directory '/home/broonie/next/x86_64_allmodconfig' /home/broonie/next/next/sound/soc/soc-ac97.c: In function 'snd_soc_ac97_init_gpio': /home/broonie/next/next/sound/soc/soc-ac97.

Re: [PATCH 01/28] serial: earlycon: allow MEM32 I/O for DT earlycon

2015-12-02 Thread Peter Hurley
On 11/30/2015 05:52 PM, Rob Herring wrote: > On Mon, Nov 30, 2015 at 10:21 AM, Paul Burton wrote: >> Read the reg-io-width property when earlycon is setup via device tree, >> and set the I/O type to UPIO_MEM32 when 4 is read. This behaviour >> matches that of the of_serial driver, and is needed fo

Re: [PATCH] rtc: Add Epson RX8010SJ RTC driver

2015-12-02 Thread Alexandre Belloni
On 11/11/2015 at 17:31:58 -0500, Akshay Bhat wrote : > diff --git a/drivers/rtc/rtc-rx8010.c b/drivers/rtc/rtc-rx8010.c > new file mode 100644 > index 000..9b8bd76 > --- /dev/null > +++ b/drivers/rtc/rtc-rx8010.c > @@ -0,0 +1,570 @@ > +/* > + * Driver for the Epson RTC module RX-8010 SJ > + * >

[PATCH 1/3] mtd: brcmnand: Add brcm,bcm6368-nand device tree binding

2015-12-02 Thread Simon Arlott
Add device tree binding for NAND on the BCM6368. The BCM6368 has a NAND interrupt register with combined status and enable registers. It also requires a clock, so add an optional clock to the common brcmnand binding. Signed-off-by: Simon Arlott --- Renamed from BCM63268, made clock a generic pro

Re: Skylake (XPS 13 9350) TSC is way off

2015-12-02 Thread Andy Lutomirski
On Wed, Dec 2, 2015 at 3:38 PM, John Stultz wrote: > On Wed, Dec 2, 2015 at 3:25 PM, Andy Lutomirski wrote: >> In case it's at all useful, adjtimex -p says: >> >> mode: 0 >>offset: 0 >> frequency: 135641 >> maxerror: 37498 >> esterror: 1532 >>status: 8192 >>

Re: Skylake (XPS 13 9350) TSC is way off

2015-12-02 Thread John Stultz
On Wed, Dec 2, 2015 at 3:38 PM, John Stultz wrote: > On Wed, Dec 2, 2015 at 3:25 PM, Andy Lutomirski wrote: >> In case it's at all useful, adjtimex -p says: >> >> mode: 0 >>offset: 0 >> frequency: 135641 >> maxerror: 37498 >> esterror: 1532 >>status: 8192 >>

[PATCH 2/3] mtd: brcmnand: Request and enable the clock if present

2015-12-02 Thread Simon Arlott
Attempt to enable a clock named "nand" as some SoCs have a clock for the controller that needs to be enabled. Signed-off-by: Simon Arlott --- drivers/mtd/nand/brcmnand/brcmnand.c | 69 1 file changed, 54 insertions(+), 15 deletions(-) diff --git a/drivers/mt

[PATCH 3/3] mtd: brcmnand: Add support for the BCM6368

2015-12-02 Thread Simon Arlott
The BCM6368 has a NAND interrupt register with combined status and enable registers. As the BCM6328, BCM6362 and BCM6368 all use v2.1 controllers, the first variant that will work with this driver is the BCM63268 using a v4.0 controller. Set up the device by disabling and acking all interrupts, t

Re: gigaset: freeing an active object

2015-12-02 Thread Peter Hurley
On 11/30/2015 01:01 PM, Paul Bolle wrote: > On ma, 2015-11-30 at 00:23 +0100, Paul Bolle wrote: >> Relevant part of dmesg attached at the end of this message. This >> should give me (and Tilman too?) an entry to get to bottom of this. >> Since this is relevant for anyone with just the ser-gigaset

Re: [PATCH v13 1/6] genalloc:support memory-allocation with bytes-alignment to genalloc

2015-12-02 Thread Andrew Morton
On Mon, 30 Nov 2015 10:48:52 +0800 Zhao Qiang wrote: > Bytes alignment is required to manage some special RAM, > so add gen_pool_first_fit_align to genalloc, > meanwhile add gen_pool_alloc_algo to pass algo in case user > layer using more than one algo, and pass data to > gen_pool_first_fit_align

Re: [PATCH] fs: clear file set[ug]id when writing via mmap

2015-12-02 Thread Kees Cook
On Mon, Nov 23, 2015 at 4:26 AM, Jan Kara wrote: > On Thu 19-11-15 16:10:43, Kees Cook wrote: >> Normally, when a user can modify a file that has setuid or setgid bits, >> those bits are cleared when they are not the file owner or a member of the >> group. This is enforced when using write() direc

Re: Skylake (XPS 13 9350) TSC is way off

2015-12-02 Thread John Stultz
On Wed, Dec 2, 2015 at 3:42 PM, Andy Lutomirski wrote: > On Wed, Dec 2, 2015 at 3:38 PM, John Stultz wrote: >> On Wed, Dec 2, 2015 at 3:25 PM, Andy Lutomirski wrote: >>> In case it's at all useful, adjtimex -p says: >>> >>> mode: 0 >>>offset: 0 >>> frequency: 135641 >>>

Re: Skylake (XPS 13 9350) TSC is way off

2015-12-02 Thread Andy Lutomirski
On Wed, Dec 2, 2015 at 3:42 PM, John Stultz wrote: > On Wed, Dec 2, 2015 at 3:38 PM, John Stultz wrote: >> On Wed, Dec 2, 2015 at 3:25 PM, Andy Lutomirski wrote: >>> In case it's at all useful, adjtimex -p says: >>> >>> mode: 0 >>>offset: 0 >>> frequency: 135641 >>> max

Re: [PATCH v2] mm, oom: Give __GFP_NOFAIL allocations access to memory reserves

2015-12-02 Thread David Rientjes
On Wed, 2 Dec 2015, Michal Hocko wrote: > From: Michal Hocko > > __GFP_NOFAIL is a big hammer used to ensure that the allocation > request can never fail. This is a strong requirement and as such > it also deserves a special treatment when the system is OOM. The > primary problem here is that th

Re: [PATCH 0/5] ARM: orion5x/dove/mv78xx0 multiplatform

2015-12-02 Thread Andrew Lunn
> > I agree. We have multiplatform dove already, it is in mach-mvebu. Do > > we really need both mach-dove and mach-mvebu dove in one kernel? > > I'm also fine with deleting mach-dove. Ah, maybe i worded that badly. By "in one kernel" i mean kernel binary. We should keep mach-dove, and allow a ma

[PATCH v2] fs: clear file privilege bits when mmap writing

2015-12-02 Thread Kees Cook
Normally, when a user can modify a file that has setuid or setgid bits, those bits are cleared when they are not the file owner or a member of the group. This is enforced when using write and truncate but not when writing to a shared mmap on the file. This could allow the file writer to gain privil

Re: [PATCH v2] ARM: mm: flip priority of CONFIG_DEBUG_RODATA

2015-12-02 Thread Laura Abbott
On 12/02/2015 12:27 PM, Kees Cook wrote: The use of CONFIG_DEBUG_RODATA is generally seen as an essential part of kernel self-protection: http://www.openwall.com/lists/kernel-hardening/2015/11/30/13 Additionally, its name has grown to mean things beyond just rodata. To get ARM closer to this, we

Re: [PATCH 1/2] regulator: Add brcm,bcm63xx-regulator device tree binding

2015-12-02 Thread Mark Brown
On Wed, Dec 02, 2015 at 08:26:36PM +, Simon Arlott wrote: > On 02/12/15 12:53, Mark Brown wrote: > > This is the sort of thing you can pick up from the SoC compatible > > strings. As things stand there is zero content in this driver that > > relates to this SoC. > There's always going to be

Re: linux-next: manual merge of the staging tree with the tree

2015-12-02 Thread Mark Brown
On Wed, Dec 02, 2015 at 02:07:50PM -0800, Greg KH wrote: > On Wed, Dec 02, 2015 at 08:17:43PM +, Mark Brown wrote: > > Hi Greg, > > Today's linux-next merge of the staging tree got a conflict in > > drivers/staging/rtl8188eu/include/phy.h between Linus' tree and commit > > "staging: rtl8188eu

[GIT PULL] spi fixes for v4.4

2015-12-02 Thread Mark Brown
The following changes since commit 31ade3b83e1821da5fbb2f11b5b3d4ab2ec39db8: Linux 4.4-rc3 (2015-11-29 18:58:26 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-fix-v4.4-rc3 for you to fetch changes up to a057d737d6ad64c4

Re: [PATCH 3/3] Addition of binding for firmware signals on peach-pi

2015-12-02 Thread Krzysztof Kozlowski
On 02.12.2015 18:36, Martyn Welch wrote: > > > On 01/12/15 23:51, Krzysztof Kozlowski wrote: >> On 02.12.2015 04:12, Martyn Welch wrote: >>> The peach pi has a GPIO connected to the firmware write protect, >>> developer >>> mode and recovery mode lines. This patch adds the required nodes to the >

Re: [PATCH V2 2/7] mm/gup: add gup trace points

2015-12-02 Thread Shi, Yang
On 12/2/2015 3:36 PM, Dave Hansen wrote: On 12/02/2015 02:53 PM, Yang Shi wrote: diff --git a/mm/gup.c b/mm/gup.c index deafa2c..10245a4 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -13,6 +13,9 @@ #include #include +#define CREATE_TRACE_POINTS +#include + #include #include This needs

Re: [PATCH 2/3] mtd: brcmnand: Request and enable the clock if present

2015-12-02 Thread Brian Norris
Hi Simon, On Wed, Dec 02, 2015 at 11:42:44PM +, Simon Arlott wrote: > Attempt to enable a clock named "nand" as some SoCs have a clock for the > controller that needs to be enabled. > > Signed-off-by: Simon Arlott > --- > drivers/mtd/nand/brcmnand/brcmnand.c | 69 >

RE: [PATCH v3] perf tools: Introduce perf_thread for backtrace

2015-12-02 Thread 平松雅巳 / HIRAMATU,MASAMI
>From: Namhyung Kim [mailto:namhy...@gmail.com] On Behalf Of Namhyung Kim > >Backtrace is a crucial info for debugging. And upcoming refcnt >tracking facility also wants to use it. Note that the refcnt backtrace symbol resolution will work at exit. This means that it can not depend on the feature

Re: [PATCH] Input: arizona-haptic: Correct disable of haptics device

2015-12-02 Thread Dmitry Torokhov
On Mon, Nov 30, 2015 at 06:02:20PM +, Charles Keepax wrote: > A small copy and paste error was preventing the haptics device being > disabled. This patch corrects the value written on disable. > > Signed-off-by: Charles Keepax Applied, thank you. > --- > drivers/input/misc/arizona-haptics.

linux-next: manual merge of the akpm-current tree with the vfs tree

2015-12-02 Thread Mark Brown
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in fs/adfs/adfs.h since it appears that "adfs: constify adfs_dir_ops structures" has been applied by Al Viro. There was no conflict to resolve but git still flagged it as a conflict for some reason. pgp35AjwPaPEu.pgp

Re: [PATCH v2] fs: clear file privilege bits when mmap writing

2015-12-02 Thread Andrew Morton
On Wed, 2 Dec 2015 16:03:42 -0800 Kees Cook wrote: > Normally, when a user can modify a file that has setuid or setgid bits, > those bits are cleared when they are not the file owner or a member > of the group. This is enforced when using write and truncate but not > when writing to a shared mmap

Re: [PATCH 1/2] mm, printk: introduce new format string for flags

2015-12-02 Thread yalin wang
> On Dec 2, 2015, at 13:04, Vlastimil Babka wrote: > > On 12/02/2015 06:40 PM, yalin wang wrote: > > (please trim your reply next time, no need to quote whole patch here) > >> i am thinking why not make %pg* to be more generic ? >> not restricted to only GFP / vma flags / page flags . >> so co

linux-next: manual merge of the akpm-current tree with the tree

2015-12-02 Thread Mark Brown
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in arch/x86/mm/pgtable.c between commit d6ccc3ec95251d8d327 ("x86/paravirt: Remove paravirt ops pmd_update[_defer] and pte_update_defer") from the tip tree and commit cc5bc0810343b ("x86, thp: remove infrastructure for han

[PATCH 1/2] watchdog: introduce touch_softlockup_watchdog_sched()

2015-12-02 Thread Tejun Heo
Hello, There haven't been too many workqueue stall bugs; however, good part of them have been pretty painful to track down because there's no lockup detection mechanism for workqueue and it isn't easy to tell what's going on with workqueues; furthermore, some requirements are tricky to get right -

[PATCH 2/2] workqueue: implement lockup detector

2015-12-02 Thread Tejun Heo
Workqueue stalls can happen from a variety of usage bugs such as missing WQ_MEM_RECLAIM flag or concurrency managed work item indefinitely staying RUNNING. These stalls can be extremely difficult to hunt down because the usual warning mechanisms can't detect workqueue stalls and the internal state

Re: [PATCH] clk: rockchip: rk3368: protect aclk_bus and aclk_peri clocks

2015-12-02 Thread Jianqun Xu
Hi heiko I can see the patches on your clk branch for next thanks 在 03/12/2015 07:31, Heiko Stübner 写道: Hi Jianqun, Am Mittwoch, 2. Dezember 2015, 21:22:31 schrieb jianqun.xu: From: Jianqun xu Add aclk_bus and aclk_peri to the list of rk3368 critical clocks, which are the base clocks that s

Re: [PATCH v4 06/10] thermal: rockchip: consistently use int for temperatures

2015-12-02 Thread Brian Norris
Hi Caesar, On Thu, Dec 03, 2015 at 08:42:38AM +0800, Caesar Wang wrote: > ? 2015?12?03? 02:38, Brian Norris ??: > > [.] > > if (thermal->tshut_temp > INT_MAX) { > > CID 1341498: Integer handling issues (CONSTANT_EXPRESSION_RESULT) > > "thermal->tshut_temp > 2147483647 /* (int)

Re: [PATCH V2 2/7] mm/gup: add gup trace points

2015-12-02 Thread Shi, Yang
On 12/2/2015 4:11 PM, Shi, Yang wrote: On 12/2/2015 3:36 PM, Dave Hansen wrote: On 12/02/2015 02:53 PM, Yang Shi wrote: diff --git a/mm/gup.c b/mm/gup.c index deafa2c..10245a4 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -13,6 +13,9 @@ #include #include +#define CREATE_TRACE_POINTS +#include

Re: + printk-do-cond_resched-between-lines-while-outputting-to-consoles.patch added to -mm tree

2015-12-02 Thread Sergey Senozhatsky
Hello, On (12/02/15 15:57), a...@linux-foundation.org wrote: [..] > @console_may_schedule tracks whether console_sem was acquired through lock > or trylock. If the former, we're inside a sleepable context and > console_conditional_schedule() performs cond_resched(). This allows > console drivers

Re: [PATCH v4 06/10] thermal: rockchip: consistently use int for temperatures

2015-12-02 Thread Caesar Wang
Hi Brain, 于 2015年12月03日 08:49, Brian Norris 写道: Hi Caesar, On Thu, Dec 03, 2015 at 08:42:38AM +0800, Caesar Wang wrote: ? 2015?12?03? 02:38, Brian Norris ??: [.] if (thermal->tshut_temp > INT_MAX) { CID 1341498: Integer handling issues (CONSTANT_EXPRESSION_RESULT) "

linux-next: Tree for 2nd December

2015-12-02 Thread Mark Brown
Hi all, Changes since 20151127: The block and gpio trees gained build failures so I used the versions from next-20151127. There were quite a lot of new conflicts from Arnd's arm multiplatform series which I fixed up, plus a few other new conflicts from other sources. I messed up using Stephen's

Re: [PATCH 0/2] Two fix for dwc2 gadget driver

2015-12-02 Thread John Youn
On 11/29/2015 9:29 PM, changbin...@intel.com wrote: > From: "Du, Changbin" > > With the first patch, enable a enabled ep will return -EBUSY. > The second patch forbid queuing on disabled ep to avoid panic. The usb_ep->enabled flag was added in 4.4. It looks like these same checks are also adde

Re: [PATCH v3] perf tools: Introduce perf_thread for backtrace

2015-12-02 Thread Namhyung Kim
On Thu, Dec 03, 2015 at 12:15:12AM +, 平松雅巳 / HIRAMATU,MASAMI wrote: > >From: Namhyung Kim [mailto:namhy...@gmail.com] On Behalf Of Namhyung Kim > > > >Backtrace is a crucial info for debugging. And upcoming refcnt > >tracking facility also wants to use it. > > Note that the refcnt backtrace s

Re: [PATCH 1/2] mm/page_alloc.c: use list_{first,last}_entry instead of list_entry

2015-12-02 Thread David Rientjes
On Wed, 2 Dec 2015, Geliang Tang wrote: > To make the intention clearer, use list_{first,last}_entry instead > of list_entry. > > Signed-off-by: Geliang Tang Acked-by: David Rientjes -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord..

Re: [PATCH 2/2] mm/page_alloc.c: use list_for_each_entry in mark_free_pages()

2015-12-02 Thread David Rientjes
On Wed, 2 Dec 2015, Geliang Tang wrote: > Use list_for_each_entry instead of list_for_each + list_entry to > simplify the code. > > Signed-off-by: Geliang Tang Acked-by: David Rientjes -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord

Re: memcg uncharge page counter mismatch

2015-12-02 Thread Minchan Kim
On Wed, Dec 02, 2015 at 11:16:43AM +0100, Michal Hocko wrote: > On Tue 01-12-15 22:34:55, Minchan Kim wrote: > > With new test on mmotm-2015-11-25-17-08, I saw below WARNING message > > several times. I couldn't see it with reverting new THP refcount > > redesign. > > Just a wild guess. What preve

[PATCH] ACPI: Add phylib support code for mdio

2015-12-02 Thread yankejian
Add support for getting the PHY devices on an MDIO bus by ACPI. Currently many of the ethernet drivers are open coding a solution for reading data out of ACPI to find the correct PHY device. This patch implements a set of common routines are similar to of_mdio.c Signed-off-by: yankejian --- driv

Re: [PATCH 1/6] cpufreq: ondemand: Update sampling rate only for concerned policies

2015-12-02 Thread Rafael J. Wysocki
On Thursday, October 29, 2015 05:57:20 PM Viresh Kumar wrote: > We are comparing policy->governor against cpufreq_gov_ondemand to make > sure that we update sampling rate only for the concerned CPUs. But that > isn't enough. > > In case of governor_per_policy, there can be multiple instances of >

[PATCH] RTC: RK808: Work around hardware bug on November 31st

2015-12-02 Thread Julius Werner
In Fuzhou, China, the month of November seems to be having 31 days. That's nice and all (I'm sure you can get a lot more done in a year that way), but back here in other parts of the world we are not so lucky. Therefore, if we read that date from the RTC we should correct it to December 1st. This

Re: [kbuild-all] [PATCH] locking_selftest: Save/restore migrate_disable_atomic in locking selftest

2015-12-02 Thread Fengguang Wu
Hi Sebastian, On Tue, Dec 01, 2015 at 06:59:44PM +0100, Sebastian Andrzej Siewior wrote: > On 11/23/2015 04:03 PM, Fengguang Wu wrote: > > Thanks! Yes, a stable branch name would be better than "linux-4.1.y-rt" > > that's like to become stable over time. > > finally. I got to it. > I pushed two b

Re: [RFC PATCH 7/9] drm/rockchip: force enable vop when do mode setting

2015-12-02 Thread Mark yao
On 2015年12月03日 06:17, Daniel Vetter wrote: On Wed, Dec 02, 2015 at 05:55:36PM +0100, Thierry Reding wrote: On Tue, Dec 01, 2015 at 11:32:01AM +0800, Mark Yao wrote: When do mode setting, mean that we want to enable display output, but sometimes, vop_crtc_enable is after mode_set, we can't allow

[PATCH] kconfig: allow kconfig to handle longer path names

2015-12-02 Thread Markus Mayer
The current (arbitrary) limit of 128 for path names has proven too short for Android builds, as longer path names are used there. Change conf.c, so it can handle path lengths up to PATH_MAX characters. Signed-off-by: Markus Mayer --- scripts/kconfig/conf.c | 7 --- 1 file changed, 4 inserti

RE: [V5 PATCH 3/4] kexec: Fix race between panic() and crash_kexec() called directly

2015-12-02 Thread 河合英宏 / KAWAI,HIDEHIRO
> On Wed, Dec 02, 2015 at 11:57:38AM +, 河合英宏 / KAWAI,HIDEHIRO wrote: > > We can do so, but I think resetting panic_cpu always would be > > simpler and safer. I'll state in detail. When we call crash_kexec() without entering panic() and return from it, panic() should be called eventually. But

Re: [PATCH v2 0/4] Add online file check feature

2015-12-02 Thread Gang He
Hello Pavel, >>> > On Wed 2015-10-28 14:25:57, Gang He wrote: >> When there are errors in the ocfs2 filesystem, >> they are usually accompanied by the inode number which caused the error. >> This inode number would be the input to fixing the file. >> One of these options could be considered: >>

Re: memcg uncharge page counter mismatch

2015-12-02 Thread Minchan Kim
On Thu, Dec 03, 2015 at 10:34:04AM +0900, Minchan Kim wrote: > On Wed, Dec 02, 2015 at 11:16:43AM +0100, Michal Hocko wrote: > > On Tue 01-12-15 22:34:55, Minchan Kim wrote: > > > With new test on mmotm-2015-11-25-17-08, I saw below WARNING message > > > several times. I couldn't see it with revert

Re: [PATCH] perf hists browser: Fix segfault if use symbol filter in cmdline

2015-12-02 Thread Wangnan (F)
On 2015/12/2 23:49, Namhyung Kim wrote: Hi, On Wed, Dec 02, 2015 at 11:28:52AM +, Wang Nan wrote: If feed perf a symbol filter in cmdline and the result is empty, pressing 'Enter' in the hist browser causes crash: # ./perf report perf.data <-- Common mistake for beginners Then press

[PATCH v3] clk: let of_clk_get_parent_name() fail for invalid clock-indices

2015-12-02 Thread Masahiro Yamada
Currently, of_clk_get_parent_name() returns a wrong parent clock name when "clock-indices" property exists and the target index is not found in the property. In this case, NULL should be returned. For example, oscillator { compatible = "myclocktype"; #cloc

RE: [V5 PATCH 2/4] panic/x86: Allow cpus to save registers even if they are looping in NMI context

2015-12-02 Thread 河合英宏 / KAWAI,HIDEHIRO
> @@ -357,7 +358,15 @@ static void default_do_nmi(struct pt_regs *regs) > } > > /* Non-CPU-specific NMI: NMI sources can be processed on any CPU */ > - raw_spin_lock(&nmi_reason_lock); > + > + /* > + * Another CPU may be processing panic routines with holding > + * nm

Re: [PATCH v5] sched/deadline: fix earliest_dl.next logic

2015-12-02 Thread Wanpeng Li
2015-12-02 22:08 GMT+08:00 Luca Abeni : > Hi, > > On 12/02/2015 02:33 PM, Wanpeng Li wrote: > [...] >>> >>> We updated leftmost above, can't we simply use that path for this thing >>> below? >> >> >> Do you mean something like below? >> >> @@ -195,6 +195,9 @@ static void dequeue_pushable_dl_task(st

Re: [PATCH v2] clk: let of_clk_get_parent_name() fail for invalid clock-indices

2015-12-02 Thread Masahiro Yamada
Hi Stephen, 2015-12-01 17:40 GMT+09:00 Stephen Boyd : >> >> >> Why do you insist on of_property_for_each_u32()? >> It no longer fits in here. >> > > Sure. The other problem is be32_to_cpup() usage. I'd rather that > we use the style of looping that of_property_for_each_u32 does. > It doesn't mak

[PATCH] regmap: speed up the regcache_init()

2015-12-02 Thread Xiubo Li
If the cache is not used by the device driver, there is not need to check the striding of the registers. It will just return 0 from regcache_init() and let the register striding be checked in proper place when needed. Signed-off-by: Xiubo Li --- drivers/base/regmap/regcache.c | 8 1 fil

Re: [PATCH 1/2] perf hists browser: Add NULL pointer check to prevent crash

2015-12-02 Thread Wangnan (F)
On 2015/12/2 23:59, Namhyung Kim wrote: On Wed, Dec 02, 2015 at 12:51:32PM +, Wang Nan wrote: Before this patch we can trigger a segfault by following steps: Step 1: perf report Step 2: Use UP/DOWN to select an entry, don't press 'ENTER' Step 3: Use '/' to filter symbols, use a fi

[PATCH v4 0/7] ACPICA / debugger: Add in-kernel AML debugger support

2015-12-02 Thread Lv Zheng
This patchset enables ACPICA debugger for Linux kernel and implements a userspace utility to access it. A. Build the AML debugger In order to build the kernel support of AML debugger, the following kconfig items should be enabled: CONFIG_ACPI_DEBUG=y CONFIG_ACPI_DEBUGGER=y CONFIG_DEBUG_FS=y CO

[PATCH v2 0/9] ARM: hisi: enable hi3519 soc

2015-12-02 Thread Jiancheng Xue
Hello, Hi3519 soc is mainly used for ip camera and sport DV solutions. This patchset adds initial support for Hi3519 soc. It includes clock driver, arch configuration, device tree and debug uart configuration. It has been tested on hi3519 reference board. Spi-nor flash driver and other peripher

[PATCH v4 6/7] ACPI / debugger: Add module support for ACPI debugger

2015-12-02 Thread Lv Zheng
This patch converts AML debugger into a loadable module. Note that, it implements driver unloading at the level dependent on the module reference count. Which means if ACPI debugger is being used by a userspace program, "rmmod acpi_dbg" should result in failure. Signed-off-by: Lv Zheng --- driv

[PATCH v4 4/7] ACPI / debugger: Add IO interface to access debugger functionalities

2015-12-02 Thread Lv Zheng
This patch adds /sys/kernel/debug/acpi/acpidbg, which can be used by userspace programs to access ACPICA debugger functionalities. Known issue: 1. IO flush support acpi_os_notify_command_complete() and acpi_os_wait_command_ready() can be used by acpi_dbg module to implement .flush() filesyst

[PATCH v4 3/7] ACPICA: Debugger: Fix runtime stub issues of ACPI_DEBUGGER_EXEC using different stub mechanism

2015-12-02 Thread Lv Zheng
ACPICA commit 11522d6b894054fc4d62dd4f9863ec151296b386 The ACPI_DEBUGGER_EXEC is a problem now when the debugger code is compiled but runtime disabled. They actually will get executed in this situation. Although such executions are harmless if we can correctly make acpi_db_single_step() a runtime

[PATCH v4 1/7] ACPICA: Debugger: Remove unnecessary status check

2015-12-02 Thread Lv Zheng
From: Colin Ian King ACPICA commit f9d5c6c9a25e9f5ac05458bfcd8b381e21bb2ba5 ACPICA BZ 1205. Colin Ian King. Link: https://bugs.acpica.org/show_bug.cgi?id=1205 Link: https://github.com/acpica/acpica/commit/f9d5c6c9 Signed-off-by: Colin Ian King Signed-off-by: Bob Moore Signed-off-by: Lv Zheng

Re: + printk-do-cond_resched-between-lines-while-outputting-to-consoles.patch added to -mm tree

2015-12-02 Thread Sergey Senozhatsky
On (12/03/15 10:11), Sergey Senozhatsky wrote: > On (12/02/15 15:57), a...@linux-foundation.org wrote: > [..] > > @console_may_schedule tracks whether console_sem was acquired through lock > > or trylock. If the former, we're inside a sleepable context and > > console_conditional_schedule() perfor

[PATCH v4 2/7] ACPICA: Debugger: Convert some mechanisms to OSPM specific

2015-12-02 Thread Lv Zheng
The following mechanisms are OSPM specific: 1. Redirect output destination to console: no file redirection will be needed by an in-kernel debugger, there is even no file can be accessed when the debugger is running in the kernel mode. 2. Output command prompts: programs other than acpiexec ca

[PATCH v4 5/7] tools/power/acpi: Add userspace AML interface support

2015-12-02 Thread Lv Zheng
This patch adds a userspace tool to access Linux kernel AML debugger interface. Tow modes are supported by this tool: 1. Interactive: Users are able to launch a debugging shell to talk with in-kernel AML debugger. Note that it's user duty to ensure kernel runtime integrity by using this d

Re: [PATCH] sched/core: Clear the root_domain cpumasks in init_rootdomain()

2015-12-02 Thread Xunlei Pang
Hi Peter, On 12/03/2015 at 12:25 AM, Peter Zijlstra wrote: > On Wed, Dec 02, 2015 at 09:12:30PM +0800, Xunlei Pang wrote: >> Hi Peter, >> >> On 12/02/2015 at 08:34 PM, Peter Zijlstra wrote: >>> On Wed, Dec 02, 2015 at 07:52:59PM +0800, Xunlei Pang wrote: The patch cleans the garbage by using

[PATCH v4 7/7] ACPI / x86: introduce acpi_os_readable() support

2015-12-02 Thread Lv Zheng
From: Chen Yu This patch implements acpi_os_readable(). The function is used by ACPICA AML debugger to validate user specified pointers for dumping the memory as ACPICA descriptor objects. Signed-off-by: Chen Yu Tested-by: Lv Zheng Signed-off-by: Lv Zheng --- arch/x86/Kconfig

[PATCH v2 1/9] clk: hi3519: add dt-binding document and header file

2015-12-02 Thread Jiancheng Xue
add dt-binding document and header file for hi3519 clock Signed-off-by: Jiancheng Xue --- .../devicetree/bindings/clock/hi3519-crg.txt | 46 +++ include/dt-bindings/clock/hi3519-clock.h | 51 ++ 2 files changed, 97 insertions(+) create mode 10

[PATCH v2 2/9] clk: hi3519: add CRG driver for hisilicon hi3519 soc

2015-12-02 Thread Jiancheng Xue
The CRG(Clock and Reset Generator) module provides clock and reset signals for other modules in hi3519 soc. Signed-off-by: Jiancheng Xue --- drivers/clk/hisilicon/Makefile | 1 + drivers/clk/hisilicon/clk-hi3519.c | 100 + drivers/clk/hisilicon/reset.c | 149 ++

Re: [dm-devel] [PATCH 0/2] Introduce the request handling for dm-crypt

2015-12-02 Thread Baolin Wang
On 3 December 2015 at 03:56, Alasdair G Kergon wrote: > On Wed, Dec 02, 2015 at 08:46:54PM +0800, Baolin Wang wrote: >> These are the benchmarks for request based dm-crypt. Please check it. > > Now please put request-based dm-crypt completely to one side and focus > just on the existing bio-based

[PATCH v2 3/9] ARM: hisi: enable Hi3519 soc

2015-12-02 Thread Jiancheng Xue
Hi3519 SOC is mainly used for ip camera and sport dv solutions. Signed-off-by: Jiancheng Xue --- arch/arm/mach-hisi/Kconfig | 9 + arch/arm/mach-hisi/hisilicon.c | 9 + 2 files changed, 18 insertions(+) diff --git a/arch/arm/mach-hisi/Kconfig b/arch/arm/mach-hisi/Kconfig ind

[PATCH v2 5/9] ARM: config: enable ARCH_HI3519

2015-12-02 Thread Jiancheng Xue
enable ARCH_HI3519 in hisi_defconfig Signed-off-by: Jiancheng Xue --- arch/arm/configs/hisi_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/hisi_defconfig b/arch/arm/configs/hisi_defconfig index b2e340b..321d020 100644 --- a/arch/arm/configs/hisi_defconfig +++ b/ar

[PATCH v2 6/9] ARM: debug: add Hi3519 debug uart

2015-12-02 Thread Jiancheng Xue
Add the support of Hisilicon Hi3519 debug uart. Signed-off-by: Jiancheng Xue --- arch/arm/Kconfig.debug | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 259c0ca..4d2ae2a 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfi

[PATCH v2 8/9] clk: hisilicon: rename ARCH_HI3xxx to ARCH_HI36xx

2015-12-02 Thread Jiancheng Xue
Rename ARCH_HI3xxx to ARCH_HI36xx. Signed-off-by: Jiancheng Xue --- drivers/clk/hisilicon/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/hisilicon/Makefile b/drivers/clk/hisilicon/Makefile index 9a601c0..5a1c195 100644 --- a/drivers/clk/hisilicon/Makefil

[PATCH v2 7/9] ARM: hisi: rename ARCH_HI3xxx to ARCH_HI36xx

2015-12-02 Thread Jiancheng Xue
ARCH_HI3xxx just represents hi36xx soc family. Signed-off-by: Jiancheng Xue --- arch/arm/Kconfig.debug | 4 ++-- arch/arm/boot/dts/Makefile | 2 +- arch/arm/configs/hisi_defconfig | 2 +- arch/arm/configs/multi_v7_defconfig | 2 +- arch/arm/mach-hisi/Kconfig |

[PATCH v2 9/9] dmaengine: Kconfig: rename ARCH_HI3xxx to ARCH_HI36xx

2015-12-02 Thread Jiancheng Xue
Rename ARCH_HI3xxx to ARCH_HI36xx. Signed-off-by: Jiancheng Xue --- drivers/dma/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index e6cd1a3..53d5676 100644 --- a/drivers/dma/Kconfig +++ b/drivers/dma/Kconfig @@ -279,7 +279,7

[PATCH v2 3/3] perf hists browser: Reset selection when refresh

2015-12-02 Thread Wang Nan
With following steps: Step 1: perf report Step 2: Use UP/DOWN to select an entry, don't press 'ENTER' Step 3: Use '/' to filter symbols, use a filter which returns empty result Step 4: Press 'ENTER' We see that, even if we have filter all symbols (and the main interface is empty),

[PATCH v2 2/3] perf hists browser: Add NULL pointer check to prevent crash

2015-12-02 Thread Wang Nan
Before this patch we can trigger a segfault by following steps: Step 0: Use 'perf record' to generate a perf.data without callchain Step 1: perf report Step 2: Use UP/DOWN to select an entry, don't press 'ENTER' Step 3: Use '/' to filter symbols, use a filter which returns empty re

[PATCH v2 0/3] perf hists browser: Avoid crash in some unusal operations

2015-12-02 Thread Wang Nan
When using symbol filter in hists browser, some unusal operations causes segfault. This patchset avoid those crashes. Cc: Arnaldo Carvalho de Melo Cc: Namhyung Kim Wang Nan (3): perf hists browser: Fix segfault if use symbol filter in cmdline perf hists browser: Add NULL pointer check to pr

[PATCH v2 1/3] perf hists browser: Fix segfault if use symbol filter in cmdline

2015-12-02 Thread Wang Nan
If feed perf a symbol filter in cmdline and the result is empty, pressing 'Enter' in the hist browser causes crash: # ./perf report perf.data <-- Common mistake for beginners Then press 'Enter': perf: Segmentation fault backtrace /home/wangnan/perf[0x53e578] /lib64/libc.

Re: [PATCH v6 7/7] PCI: hv: New paravirtual PCI front-end for Hyper-V VMs

2015-12-02 Thread Jiang Liu
On 2015/11/3 5:33, ja...@microsoft.com wrote: > From: Jake Oshins > > This patch introduces a new driver which exposes a root PCI bus whenever a PCI > Express device is passed through to a guest VM under Hyper-V. The device can > be single- or multi-function. The interrupts for the devices are ma

Re: [PATCH 2/2] perf hists browser: Reset selection when refresh

2015-12-02 Thread Wangnan (F)
On 2015/12/3 0:17, Namhyung Kim wrote: On Wed, Dec 02, 2015 at 12:51:33PM +, Wang Nan wrote: With following steps: Step 1: perf report Step 2: Use UP/DOWN to select an entry, don't press 'ENTER' Step 3: Use '/' to filter symbols, use a filter which returns empty result

[PATCH v2 4/9] ARM: dts: add dts files for hi3519-demb board

2015-12-02 Thread Jiancheng Xue
add dts files for hi3519-demb board Signed-off-by: Jiancheng Xue --- arch/arm/boot/dts/Makefile| 2 + arch/arm/boot/dts/hi3519-demb.dts | 55 arch/arm/boot/dts/hi3519.dtsi | 129 ++ 3 files changed, 186 insertions(+) create mod

RE: Skylake (XPS 13 9350) TSC is way off

2015-12-02 Thread Brown, Len
> >> [0.00] tsc: PIT calibration matches HPET. 2 loops > >> [0.00] tsc: Detected 2399.975 MHz processor > >> [0.090897] TSC deadline timer enabled > >> [1.960034] tsc: Refined TSC clocksource calibration: 2400.007 MHz > turbostat version 4.10 10 Dec, 2015 - Len Brown > CPU

Re: [PATCH V2 1/7] trace/events: Add gup trace events

2015-12-02 Thread Steven Rostedt
On Wed, 2 Dec 2015 14:53:27 -0800 Yang Shi wrote: > page-faults events record the invoke to handle_mm_fault, but the invoke > may come from do_page_fault or gup. In some use cases, the finer event count > mey be needed, so add trace events support for: > > __get_user_pages > __get_user_pages_fa

[PATCH V2 1/6] cpufreq: ondemand: Update sampling rate only for concerned policies

2015-12-02 Thread Viresh Kumar
We are comparing policy->governor against cpufreq_gov_ondemand to make sure that we update sampling rate only for the concerned CPUs. But that isn't enough. In case of governor_per_policy, there can be multiple instances of ondemand governor and we will always end up updating all of them with curr

[PATCH V2 2/6] cpufreq: ondemand: Work is guaranteed to be pending

2015-12-02 Thread Viresh Kumar
We are guaranteed to have works scheduled for policy->cpus, as the policy isn't stopped yet. And so there is no need to check that again. Drop it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq_ondemand.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/cpufreq/cpufreq_onde

[PATCH V2 3/6] cpufreq: governor: Pass policy as argument to ->gov_dbs_timer()

2015-12-02 Thread Viresh Kumar
Pass 'policy' as argument to ->gov_dbs_timer() instead of cdbs and dbs_data. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq_conservative.c | 6 +++--- drivers/cpufreq/cpufreq_governor.c | 2 +- drivers/cpufreq/cpufreq_governor.h | 3 +-- drivers/cpufreq/cpufreq_ondemand.c |

[PATCH V2 5/6] cpufreq: governor: replace per-cpu delayed work with timers

2015-12-02 Thread Viresh Kumar
cpufreq governors evaluate load at sampling rate and based on that they update frequency for a group of CPUs belonging to the same cpufreq policy. This is required to be done in a single thread for all policy->cpus, but because we don't want to wakeup idle CPUs to do just that, we use deferrable w

[PATCH V2 6/6] cpufreq: ondemand: update update_sampling_rate() to make it more efficient

2015-12-02 Thread Viresh Kumar
Currently update_sampling_rate() runs over each online CPU and cancels/queues timers on all policy->cpus every time. This should be done just once for any cpu belonging to a policy. Create a cpumask and keep on clearing it as and when we process policies, so that we don't have to traverse through

[PATCH v3] mm/compaction: __compact_pgdat() code cleanuup

2015-12-02 Thread Joonsoo Kim
This patch uses is_via_compact_memory() to distinguish compaction from sysfs or sysctl. And, this patch also reduces indentation on compaction_defer_reset() by filtering these cases first before checking watermark. There is no functional change. Acked-by: Yaowei Bai Acked-by: David Rientjes Sig

[PATCH] mm/compaction: restore COMPACT_CLUSTER_MAX to 32

2015-12-02 Thread Joonsoo Kim
Until now, COMPACT_CLUSTER_MAX is defined as SWAP_CLUSTER_MAX. Commit ("mm: increase SWAP_CLUSTER_MAX to batch TLB flushes") changes SWAP_CLUSTER_MAX from 32 to 256 to improve tlb flush performance so COMPACT_CLUSTER_MAX is also changed to 256. But, it has no justification on compaction-side and I

Re: [PATCH] mm/vmstat: retrieve more accurate vmstat value

2015-12-02 Thread Joonsoo Kim
On Thu, Nov 26, 2015 at 10:52:52AM +0900, Joonsoo Kim wrote: > On Wed, Nov 25, 2015 at 10:04:44AM -0600, Christoph Lameter wrote: > > > Although vmstat values aren't designed for accuracy, these are already > > > used by some sensitive places so it is better to be more accurate. > > > > The design

Re: [PATCH V2 2/7] mm/gup: add gup trace points

2015-12-02 Thread Steven Rostedt
On Wed, 2 Dec 2015 15:36:50 -0800 Dave Hansen wrote: > On 12/02/2015 02:53 PM, Yang Shi wrote: > > diff --git a/mm/gup.c b/mm/gup.c > > index deafa2c..10245a4 100644 > > --- a/mm/gup.c > > +++ b/mm/gup.c > > @@ -13,6 +13,9 @@ > > #include > > #include > > > > +#define CREATE_TRACE_POINTS >

[PATCH V2 4/6] cpufreq: governor: initialize/destroy timer_mutex with 'shared'

2015-12-02 Thread Viresh Kumar
timer_mutex is required to be initialized only while memory for 'shared' is allocated and in a similar way it is required to be destroyed only when memory for 'shared' is freed. There is no need to do the same every time we start/stop the governor. Move code to initialize/destroy timer_mutex to th

Re: [PATCH 2/2] mm/page_ref: add tracepoint to track down page reference manipulation

2015-12-02 Thread Joonsoo Kim
On Tue, Nov 24, 2015 at 10:45:28AM +0900, Joonsoo Kim wrote: > On Mon, Nov 23, 2015 at 09:26:04AM -0500, Steven Rostedt wrote: > > On Mon, 23 Nov 2015 17:28:05 +0900 > > Joonsoo Kim wrote: > > > > > On Fri, Nov 20, 2015 at 11:42:25AM -0500, Steven Rostedt wrote: > > > > On Fri, 20 Nov 2015 15:33:

RE: [PATCH 0/2] Two fix for dwc2 gadget driver

2015-12-02 Thread Du, Changbin
> On 11/29/2015 9:29 PM, changbin...@intel.com wrote: > > From: "Du, Changbin" > > > > With the first patch, enable a enabled ep will return -EBUSY. > > The second patch forbid queuing on disabled ep to avoid panic. > > > The usb_ep->enabled flag was added in 4.4. > > It looks like these same c

Re: [PATCH v4 11/27] mtd: nand: omap: Clean up device tree support

2015-12-02 Thread Brian Norris
Hi Roger, On Tue, Oct 06, 2015 at 01:35:48PM +0300, Roger Quadros wrote: > Move NAND specific device tree parsing to NAND driver. > > The NAND controller node must have a compatible id, register space > resource and interrupt resource. > > Signed-off-by: Roger Quadros This one's going to need

<    7   8   9   10   11   12   13   >