[PATCH] MAINTAINERS: Update UBIFS entry

2016-03-03 Thread Richard Weinberger
...to represent the status quo. Signed-off-by: Richard Weinberger --- MAINTAINERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index da3e4d8..585ba02 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11161,12 +11161,13 @@ S:Maintained F: d

Upstream kernel 32 bit architecture

2016-03-03 Thread Dorin Barboiu (Cloudbase Solutions SRL)
Hi guys, There is a problem with Upstream kernel compilation on 32 bits architecture. I want to compile Linux-Next on a machine with 32 bits kernel. The problem is that after Linux-Next compiled successfully the VM won't  boot with new kernel, triggered a call trace. Tested on Ubuntu 14.04.3 and

[BUG ARM64/perf] Perf record on hardware breakpoint causes application to hang

2016-03-03 Thread Hekuang
This problem can be reproduced as follows: We know cat /proc/version will read the memory of symbol linux_proc_banner, then we make a hardware memory access breakpoint on that address. on terminal 1: $ perf record -e mem:0x$(cat /proc/kallsyms|grep linux_proc_banner|cut -d " " -f 1):rw --no-

Re: [v3 PATCH 1/3] panic: Change nmi_panic from macro to function

2016-03-03 Thread Borislav Petkov
On Thu, Mar 03, 2016 at 07:57:44PM +0900, Hidehiro Kawai wrote: > Change nmi_panic() macro to a normal function for the portability. portability? > Also, export it for modules. > > Changes since v2: > - Make nmi_panic receive a single string instead of printf style args > > Signed-off-by: Hideh

[PATCH] phy: remove documentation of removed member addr of phy_device structure

2016-03-03 Thread LABBE Corentin
Commit e5a03bfd873c ("phy: Add an mdio_device structure") removed the addr member of the phy_device structure. This patch remove the documentation about that member. Signed-off-by: LABBE Corentin --- include/linux/phy.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/phy.h b/inc

Re: [GIT PULL] ARM: EXYNOS: SROM driver for v4.6, 2nd try

2016-03-03 Thread Arnd Bergmann
On Thursday 03 March 2016 09:04:54 Krzysztof Kozlowski wrote: > On 01.03.2016 18:37, Krzysztof Kozlowski wrote: > > Hi, > > > > > > After Olof comments, second pull request with movement of SROM code > > to separate driver - under drivers/memory/samsung (more are planned for > > that directory).

[PATCH][v3] Enable livepatching on powerpc

2016-03-03 Thread Balbir Singh
Changelog v3: 1. Moved -ENOSYS to -EINVAL in klp_write_module_reloc 2. Moved klp_matchaddr to use ftrace_location_range Changelog v2: 1. Implement review comments by Michael 2. The previous version compared _NIP from the wrong location to check for whethe

Re: [PATCH 3/3] radix-tree: support locking of individual exception entries.

2016-03-03 Thread Jan Kara
Hi Neil, On Sun 28-02-16 16:09:29, NeilBrown wrote: > The least significant bit of an exception entry is used as a lock flag. > A caller can: > - create a locked entry by simply adding an entry with this flag set > - lock an existing entry with radix_tree_lookup_lock(). This may return > NU

[PULL for-4.5] virtio/vhost: minor fixes

2016-03-03 Thread Michael S. Tsirkin
The following changes since commit fc77dbd34c5c99bce46d40a2491937c3bcbd10af: Linux 4.5-rc6 (2016-02-28 08:41:20 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus for you to fetch changes up to e1f33be9186363da7955bcb5f0

Re: [PATCH 6/6] cpufreq: schedutil: New governor based on scheduler utilization data

2016-03-03 Thread Vincent Guittot
On 2 March 2016 at 18:58, Rafael J. Wysocki wrote: > On Wed, Mar 2, 2016 at 6:10 PM, Vincent Guittot > wrote: >> Hi Rafael, >> >> >> On 2 March 2016 at 03:27, Rafael J. Wysocki wrote: >>> From: Rafael J. Wysocki >>> >>> Add a new cpufreq scaling governor, called "schedutil", that uses >>> sched

[RFC] Re: [PATCHSET 0/8] perf tools: Support multiple keys in a single hierarchy level (v1)

2016-03-03 Thread Arnaldo Carvalho de Melo
Em Thu, Mar 03, 2016 at 08:16:36AM +0900, Namhyung Kim escreveu: > On Wed, Mar 02, 2016 at 01:25:07PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Thu, Mar 03, 2016 at 01:12:00AM +0900, Namhyung Kim escreveu: > > > This implements what Arnaldo suggested in previous discussion of > > > hierarchy pa

Re: [PATCH 02/17] irqchip: Add PLX Technology RPS IRQ Controller

2016-03-03 Thread Arnd Bergmann
On Thursday 03 March 2016 13:01:13 Marc Zyngier wrote: > > +/* Routines to acknowledge, disable and enable interrupts */ > > +static void rps_mask_irq(struct irq_data *d) > > +{ > > + u32 mask = BIT(d->hwirq); > > + > > + iowrite32(mask, rps_data.base + RPS_MASK); > > I do question the use

Re: [rtc-linux] Re: [RFC 09/15] media: platform: Add missing MFD_SYSCON dependency on HAS_IOMEM

2016-03-03 Thread Arnd Bergmann
On Thursday 03 March 2016 21:40:23 Krzysztof Kozlowski wrote: > >> select MFD_SYSCON > >> diff --git a/drivers/media/platform/exynos4-is/Kconfig > >> b/drivers/media/platform/exynos4-is/Kconfig > >> index 57d42c6172c5..c4317b99d257 100644 > >> --- a/drivers/media/platform/exynos4-is/Kconfi

[PATCH] mvumi: fix build warning

2016-03-03 Thread Sudip Mukherjee
While building tilepro allmodconfig we were getting build warning: drivers/scsi/mvumi.c:2632:12: warning: 'mvumi_suspend' defined but not used drivers/scsi/mvumi.c:2651:12: warning: 'mvumi_resume' defined but not used mvumi_suspend() and mvumi_resume() are only used when CONFIG_PM is defined as me

Re: [PATCH][v3] Enable livepatching on powerpc

2016-03-03 Thread Balbir Singh
On 03/03/16 23:46, Balbir Singh wrote: > Changelog v3: > 1. Removed spurious kgdb patch > 2. Moved -ENOSYS to -EINVAL in klp_write_module_reloc > 3. Moved klp_matchaddr to use ftrace_location_range > Please ignore -- wrong patch! Balbir

Re: [PATCH 1/6] cpufreq: Reduce cpufreq_update_util() overhead a bit

2016-03-03 Thread Peter Zijlstra
On Thu, Mar 03, 2016 at 11:47:01AM +, Juri Lelli wrote: > > +#ifdef CONFIG_LOCKDEP > > + WARN_ON(debug_locks && !rcu_read_lock_sched_held()); > > +#endif > > > > data = rcu_dereference(*this_cpu_ptr(&cpufreq_update_util_data)); > > I think you need to s/rcu_dereference/rcu_dereference

Re: [PATCH] rc: correctly handling failed allocation

2016-03-03 Thread Mauro Carvalho Chehab
Em Tue, 16 Feb 2016 10:54:54 + Sean Young escreveu: > On Mon, Feb 15, 2016 at 09:33:11PM -0500, Insu Yun wrote: > > Since rc_allocate_device() uses kmalloc, > > it can returns NULL, so need to check, > > otherwise, NULL derefenrece can be happened. > > Thanks for catching that. > > > Sig

Re: [RFCv7 PATCH 03/10] sched: scheduler-driven cpu frequency selection

2016-03-03 Thread Peter Zijlstra
On Tue, Mar 01, 2016 at 11:49:10PM -0800, Michael Turquette wrote: > > In my over-simplified view of the scheduler, it would be great if we > could have a backdoor mechanism to place the frequency transition > kthread onto a runqueue from within the schedule() context and dispense > with the irq_w

Re: [PATCH 02/17] irqchip: Add PLX Technology RPS IRQ Controller

2016-03-03 Thread Marc Zyngier
Neil, On 03/03/16 11:39, Neil Armstrong wrote: > Add PLX Technology RPS IRQ Controller as irqchip driver. > > CC: Ma Haijun > Signed-off-by: Neil Armstrong > --- > drivers/irqchip/Kconfig | 5 ++ > drivers/irqchip/Makefile | 1 + > drivers/irqchip/irq-rps.c | 128 >

[PATCH][v3] Enable livepatching on powerpc

2016-03-03 Thread Balbir Singh
Changelog v3: 1. Removed spurious kgdb patch 2. Moved -ENOSYS to -EINVAL in klp_write_module_reloc 3. Moved klp_matchaddr to use ftrace_location_range Changelog v2: 1. Implement review comments by Michael 2. The previous version compared _NIP from the

Re: [RFC 08/15] rtc: at91sam9: Add missing MFD_SYSCON dependency on HAS_IOMEM

2016-03-03 Thread Arnd Bergmann
On Thursday 03 March 2016 13:27:59 Geert Uytterhoeven wrote: > On Thu, Mar 3, 2016 at 11:55 AM, Arnd Bergmann wrote: > > On Thursday 03 March 2016 17:03:34 Krzysztof Kozlowski wrote: > >> index 0da40e2e4280..5c530b6b125d 100644 > >> --- a/drivers/rtc/Kconfig > >> +++ b/drivers/rtc/Kconfig > >> @@

Re: [PATCH 12/17] arm: Add new mach-oxnas

2016-03-03 Thread Arnd Bergmann
On Thursday 03 March 2016 12:40:05 Neil Armstrong wrote: > + > +config MACH_OX810SE > + bool "Support OX810SE Based Products" > + select CPU_ARM926T > + select PLXTECH_RPS > + select CLKSRC_RPS_TIMER > + select RESET_OXNAS > + select COMMON_CLK_OXNAS > + select PINCTRL_O

Re: [RFC qemu 2/4] virtio-balloon: Add a new feature to balloon device

2016-03-03 Thread Michael S. Tsirkin
On Thu, Mar 03, 2016 at 06:44:26PM +0800, Liang Li wrote: > Extend the virtio balloon device to support a new feature, this > new feature can help to get guest's free pages information, which > can be used for live migration optimzation. > > Signed-off-by: Liang Li I don't understand why we need

[GIT PULL] VFIO fixes for v4.5-rc7

2016-03-03 Thread Alex Williamson
The following changes since commit 81f70ba233d5f660e1ea5fe23260ee323af5d53a: Linux 4.5-rc5 (2016-02-20 13:39:35 -0800) are available in the git repository at: git://github.com/awilliam/linux-vfio.git tags/vfio-v4.5-rc7 for you to fetch changes up to 8160c4e455820d5008a1116d2dca35f0363bb062:

Re: Q: why didn't GCC warn about this uninitialized variable? (was: Re: [PATCH] perf tests: initialize sa.sa_flags)

2016-03-03 Thread Jakub Jelinek
On Thu, Mar 03, 2016 at 01:19:44PM +0100, Ingo Molnar wrote: > struct sigaction sa; > > ... > > sigfillset(&sa.sa_mask); > sa.sa_sigaction = segfault_handler; > sigaction(SIGSEGV, &sa, NULL); > > ... which uninitialized sa.sa_flags field GCC merrily accepted

Re: [PATCH v1] watchdog: sama5d4_wdt: Reset delay on start

2016-03-03 Thread Romain Izard
Hi Guenter, 2016-03-03 13:10 GMT+01:00 Guenter Roeck : > On 03/03/2016 02:29 AM, Romain Izard wrote: >> >> If the internal counter is not refreshed when the watchdog is started >> for the first time, the watchdog will trigger very rapidly. For >> example, opening /dev/watchdog without writing in i

Re: [PATCH v5 03/15] scsi: ufs: implement scsi host timeout handler

2016-03-03 Thread Hannes Reinecke
On 03/03/2016 05:10 PM, yga...@codeaurora.org wrote: >> On 03/01/2016 09:25 PM, yga...@codeaurora.org wrote: On 02/28/2016 09:32 PM, Yaniv Gardi wrote: > A race condition exists between request requeueing and scsi layer > error handling: > When UFS driver queuecommand returns a bus

[PATCH] iio: adc: imx25-gcq: fix do_div

2016-03-03 Thread Sudip Mukherjee
We are getting build failure with tilepro allmodconfig with the error: drivers/iio/adc/fsl-imx25-gcq.c:236:4: note: in expansion of macro 'do_div' do_div(priv->channel_vref_mv[reg], 1000); ^ include/asm-generic/div64.h:198:17: note: expected 'uint64_t * {aka long long unsigned int *}'

Re: [PATCH v3] kernel: sched: fix preempt_disable_ip recodring for preempt_disable()

2016-03-03 Thread Sebastian Andrzej Siewior
On 02/26/2016 08:11 PM, Daniel Bristot de Oliveira wrote: > > > On 02/26/2016 10:54 AM, Sebastian Andrzej Siewior wrote: >> -trace_preempt_off(CALLER_ADDR0, get_parent_ip(CALLER_ADDR1)); >> +trace_preempt_off(CALLER_ADDR0, get_lock_parent_ip()); > > If !lock_functions(CAL

Re: Q: why didn't GCC warn about this uninitialized variable?

2016-03-03 Thread Joe Perches
On Thu, 2016-03-03 at 13:43 +0100, Ingo Molnar wrote: > it would be absolutely fantastic if one of these solutions existed on GCC:> > >  - emit a warning if a structure is passed around uninitialized. A new GCC >    __attribute__((struct_fully_initialized)) could be used to annotate extern >    

Re: Suspicious error for CMA stress test

2016-03-03 Thread Hanjun Guo
On 2016/3/3 15:42, Joonsoo Kim wrote: > 2016-03-03 10:25 GMT+09:00 Laura Abbott : >> (cc -mm and Joonsoo Kim) >> >> >> On 03/02/2016 05:52 AM, Hanjun Guo wrote: >>> Hi, >>> >>> I came across a suspicious error for CMA stress test: >>> >>> Before the test, I got: >>> -bash-4.3# cat /proc/meminfo | g

Re: [PATCH 05/11] perf stat: Check existence of frontend/backed stalled cycles

2016-03-03 Thread Arnaldo Carvalho de Melo
Em Thu, Mar 03, 2016 at 09:49:00AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, Mar 03, 2016 at 09:28:18AM +0100, Ingo Molnar escreveu: > > > > * Arnaldo Carvalho de Melo wrote: > > > > > Before: > > > > > > $ perf stat ls > > > a.patch > > > > > > Performance counter stats for 'l

Re: [PATCH 05/11] perf stat: Check existence of frontend/backed stalled cycles

2016-03-03 Thread Arnaldo Carvalho de Melo
Em Thu, Mar 03, 2016 at 09:28:18AM +0100, Ingo Molnar escreveu: > > * Arnaldo Carvalho de Melo wrote: > > > Before: > > > > $ perf stat ls > > a.patch > > > > Performance counter stats for 'ls': > > > > 0.822067 task-clock (msec) # 0.873 CPUs utilized (82.26%) > >

Re: fs: uninterruptible hang in handle_userfault

2016-03-03 Thread Andrea Arcangeli
Hello, On Thu, Mar 03, 2016 at 08:46:41AM +0100, Sedat Dilek wrote: > One technical question: > How do I get the latest Linux version shipped userfaultfd first? > ( Maybe there exist more elegant ways I do. Always open to improve my > Git knowledge. ) Perhaps there are cleaner ways, I would do th

Re: [rtc-linux] [RFC 06/15] pinctrl: rockchip: Add missing MFD_SYSCON dependency on HAS_IOMEM

2016-03-03 Thread Krzysztof Kozlowski
2016-03-03 17:03 GMT+09:00 Krzysztof Kozlowski : > The MFD_SYSCON depends on HAS_IOMEM so when selecting it avoid unmet > direct dependencies. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/pinctrl/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/pinctrl/Kconfig b/

Re: [Qemu-devel] [RFC qemu 4/4] migration: filter out guest's free pages in ram bulk stage

2016-03-03 Thread Daniel P. Berrange
On Thu, Mar 03, 2016 at 06:44:28PM +0800, Liang Li wrote: > Get the free pages information through virtio and filter out the free > pages in the ram bulk stage. This can significantly reduce the total > live migration time as well as network traffic. > > Signed-off-by: Liang Li > --- > migration

Re: [PATCH 0/3] KASAN: clean stale poison upon cold re-entry to kernel

2016-03-03 Thread Ingo Molnar
* Mark Rutland wrote: > On Thu, Mar 03, 2016 at 01:02:27PM +0100, Ingo Molnar wrote: > > > > * Mark Rutland wrote: > > > > > Functions which the compiler has instrumented for ASAN place poison on > > > the stack shadow upon entry and remove this poison prior to returning. > > > > > > In some

Re: [rtc-linux] [RFC 07/15] pinctrl: mvebu: Add missing MFD_SYSCON dependency on HAS_IOMEM

2016-03-03 Thread Krzysztof Kozlowski
2016-03-03 17:03 GMT+09:00 Krzysztof Kozlowski : > The MFD_SYSCON depends on HAS_IOMEM so when selecting it avoid unmet > direct dependencies. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/pinctrl/mvebu/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/pinctrl/mveb

Re: Q: why didn't GCC warn about this uninitialized variable?

2016-03-03 Thread Ingo Molnar
* Måns Rullgård wrote: > > So the source of the bug was: > > > > struct sigaction sa; > > > > ... > > > > sigfillset(&sa.sa_mask); > > sa.sa_sigaction = segfault_handler; > > sigaction(SIGSEGV, &sa, NULL); > > > > ... which uninitialized sa.sa_flags field GCC

Re: [rtc-linux] [RFC 12/15] soc: qcom: Add missing MFD_SYSCON dependency on HAS_IOMEM

2016-03-03 Thread Krzysztof Kozlowski
2016-03-03 17:03 GMT+09:00 Krzysztof Kozlowski : > The MFD_SYSCON depends on HAS_IOMEM so when selecting it avoid unmet > direct dependencies. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/soc/qcom/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/soc/qcom/Kconfig

Re: [rtc-linux] [RFC 13/15] staging: media: omap4iss: Add missing MFD_SYSCON dependency on HAS_IOMEM

2016-03-03 Thread Krzysztof Kozlowski
2016-03-03 17:03 GMT+09:00 Krzysztof Kozlowski : > The MFD_SYSCON depends on HAS_IOMEM so when selecting it avoid unmet > direct dependencies. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/staging/media/omap4iss/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/sta

Re: [rtc-linux] Re: [RFC 09/15] media: platform: Add missing MFD_SYSCON dependency on HAS_IOMEM

2016-03-03 Thread Krzysztof Kozlowski
2016-03-03 19:57 GMT+09:00 Arnd Bergmann : > On Thursday 03 March 2016 17:03:35 Krzysztof Kozlowski wrote: >> diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig >> index 201f5c296a95..e5931e434fa2 100644 >> --- a/drivers/media/platform/Kconfig >> +++ b/drivers/media/platfo

Re: [PATCH] perf tools: explicitly declare inc_group_count as a void function

2016-03-03 Thread Jiri Olsa
On Thu, Mar 03, 2016 at 12:30:14PM +, Colin King wrote: > From: Colin Ian King > > The return type is not defined, so it defaults to int, however, > the function is not returning anything, so this is clearly not > correct. Make it a void function. Acked-by: Jiri Olsa thanks, jirka > > Si

Re: [PATCH 0/3] KASAN: clean stale poison upon cold re-entry to kernel

2016-03-03 Thread Mark Rutland
On Thu, Mar 03, 2016 at 01:02:27PM +0100, Ingo Molnar wrote: > > * Mark Rutland wrote: > > > Functions which the compiler has instrumented for ASAN place poison on > > the stack shadow upon entry and remove this poison prior to returning. > > > > In some cases (e.g. hotplug and idle), CPUs may

Re: [PATCH 12/17] arm: Add new mach-oxnas

2016-03-03 Thread Neil Armstrong
On 03/03/2016 12:49 PM, Russell King - ARM Linux wrote: > Looking at the current contents of oxnas.c, do you actually need it? > What happens if you boot your with your DT without this file being > built? > No, it's useless for now, it boots perfectly without. It was only a base for adding the re

Re: [PATCH 00/17] Add Initial support for PLX Technology OX810SE

2016-03-03 Thread Neil Armstrong
On 03/03/2016 01:23 PM, Arnd Bergmann wrote: > Looks very nice overall. I think with the timing, it's a way too > late for 4.6 now, but there should be no problem merging this for 4.7. > I assume it's not urgent on your end, as this seems to be a somewhat > historic platform. Yes, it's not urgent,

Re: [rtc-linux] Re: [RFC 11/15] power: reset: keystone: Add missing MFD_SYSCON dependency on HAS_IOMEM

2016-03-03 Thread Krzysztof Kozlowski
2016-03-03 21:33 GMT+09:00 Sebastian Reichel : > Hi, > > On Thu, Mar 03, 2016 at 12:00:14PM +0100, Arnd Bergmann wrote: >> On Thursday 03 March 2016 17:03:37 Krzysztof Kozlowski wrote: >> > diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig >> > index 0a6408a39c66..0f34846ae80d

Re: [PATCH 06/14] dma: sirf: use __maybe_unused to hide pm functions

2016-03-03 Thread Arnd Bergmann
On Thursday 03 March 2016 09:17:31 Vinod Koul wrote: > On Wed, Mar 02, 2016 at 04:58:58PM +0100, Arnd Bergmann wrote: > > The sirf dma driver uses #ifdef to check for CONFIG_PM_SLEEP > > for its suspend/resume code but then has no #ifdef for the > > respective runtime PM code, so we get a warning i

Re: [RFC 11/15] power: reset: keystone: Add missing MFD_SYSCON dependency on HAS_IOMEM

2016-03-03 Thread Sebastian Reichel
Hi, On Thu, Mar 03, 2016 at 12:00:14PM +0100, Arnd Bergmann wrote: > On Thursday 03 March 2016 17:03:37 Krzysztof Kozlowski wrote: > > diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig > > index 0a6408a39c66..0f34846ae80d 100644 > > --- a/drivers/power/reset/Kconfig > > +++ b/

Re: [rtc-linux] Re: [RFC 04/15] irqchip: st: Add missing MFD_SYSCON dependency on HAS_IOMEM

2016-03-03 Thread Krzysztof Kozłowski
2016-03-03 21:28 GMT+09:00 Arnd Bergmann : > On Thursday 03 March 2016 21:00:57 Krzysztof Kozlowski wrote: >> > >> > Not user visible. >> >> Hmmm... you are right (here and in other patches) but why am I getting >> all these errors: >> warning: (ST_IRQCHIP && HIP04_ETH && STMMAC_PLATFORM && DWMAC_I

Re: [PATCH 0/3] OOM detection rework v4

2016-03-03 Thread Michal Hocko
On Thu 03-03-16 01:54:43, Hugh Dickins wrote: > On Tue, 1 Mar 2016, Michal Hocko wrote: [...] > > So I have tried the following: > > diff --git a/mm/compaction.c b/mm/compaction.c > > index 4d99e1f5055c..7364e48cf69a 100644 > > --- a/mm/compaction.c > > +++ b/mm/compaction.c > > @@ -1276,6 +1276,9

Re: [PATCH 6/6] cpufreq: schedutil: New governor based on scheduler utilization data

2016-03-03 Thread Juri Lelli
On 03/03/16 13:20, Peter Zijlstra wrote: > On Wed, Mar 02, 2016 at 11:49:48PM +0100, Rafael J. Wysocki wrote: > > >>> + min_f = sg_policy->policy->cpuinfo.min_freq; > > >>> + max_f = sg_policy->policy->cpuinfo.max_freq; > > >>> + next_f = util > max ? max_f : min_f + util * (max_f

Re: Q: why didn't GCC warn about this uninitialized variable?

2016-03-03 Thread Måns Rullgård
Ingo Molnar writes: > * Arnaldo Carvalho de Melo wrote: > >> Em Wed, Mar 02, 2016 at 02:21:27PM +0100, Peter Zijlstra escreveu: >> > On Wed, Mar 02, 2016 at 10:03:50AM -0300, Arnaldo Carvalho de Melo wrote: >> > > > Would not something like: >> > > > >> > > >sa = (struct sigaction){ >>

[PATCH] perf tools: explicitly declare inc_group_count as a void function

2016-03-03 Thread Colin King
From: Colin Ian King The return type is not defined, so it defaults to int, however, the function is not returning anything, so this is clearly not correct. Make it a void function. Signed-off-by: Colin Ian King --- tools/perf/util/parse-events.y | 2 +- 1 file changed, 1 insertion(+), 1 delet

Re: [rtc-linux] Re: [RFC 04/15] irqchip: st: Add missing MFD_SYSCON dependency on HAS_IOMEM

2016-03-03 Thread Arnd Bergmann
On Thursday 03 March 2016 21:00:57 Krzysztof Kozlowski wrote: > > > > Not user visible. > > Hmmm... you are right (here and in other patches) but why am I getting > all these errors: > warning: (ST_IRQCHIP && HIP04_ETH && STMMAC_PLATFORM && DWMAC_IPQ806X > && DWMAC_LPC18XX && DWMAC_ROCKCHIP && DWM

Re: [RFC 09/15] media: platform: Add missing MFD_SYSCON dependency on HAS_IOMEM

2016-03-03 Thread Geert Uytterhoeven
On Thu, Mar 3, 2016 at 11:57 AM, Arnd Bergmann wrote: >> --- a/drivers/media/platform/exynos4-is/Kconfig >> +++ b/drivers/media/platform/exynos4-is/Kconfig >> @@ -17,6 +17,7 @@ config VIDEO_S5P_FIMC >> tristate "S5P/EXYNOS4 FIMC/CAMIF camera interface driver" >> depends on I2C >>

Re: [RFC PATCH] x86: Make sure verify_cpu has a good stack

2016-03-03 Thread Borislav Petkov
On Wed, Mar 02, 2016 at 02:32:54PM -0800, H. Peter Anvin wrote: > I'm trying to think of any reason why we couldn't simply have a symbol > at the top of the initial stack? Then a simple leaq would suffice; > this is for the BSP after all. How about something like this: --- From: Borislav Petkov

Re: [RFC 08/15] rtc: at91sam9: Add missing MFD_SYSCON dependency on HAS_IOMEM

2016-03-03 Thread Geert Uytterhoeven
On Thu, Mar 3, 2016 at 11:55 AM, Arnd Bergmann wrote: > On Thursday 03 March 2016 17:03:34 Krzysztof Kozlowski wrote: >> index 0da40e2e4280..5c530b6b125d 100644 >> --- a/drivers/rtc/Kconfig >> +++ b/drivers/rtc/Kconfig >> @@ -1302,6 +1302,7 @@ config RTC_DRV_AT91RM9200 >> config RTC_DRV_AT91SAM9

Re: [PATCH V2] ubifs: Add logging functions for ubifs_msg, ubifs_err and ubifs_warn

2016-03-03 Thread Joe Perches
On Thu, 2016-03-03 at 10:39 +0200, Artem Bityutskiy wrote: > On Wed, 2016-03-02 at 10:58 -0800, Joe Perches wrote: > > > >   > >  UBI FILE SYSTEM (UBIFS) > > -M: Artem Bityutskiy > > -M: Adrian Hunter > > +M: Richard Weinberger > >  L: linux-...@lists.infradead.org > >  T: git git://git.infrade

Re: [RFC PATCH] watchdog: s3c2410_wdt: Add max and min timeout values

2016-03-03 Thread Krzysztof Kozlowski
2016-03-03 20:55 GMT+09:00 Javier Martinez Canillas : > Hello Guenter, > > > On 03/03/2016 01:50 AM, Guenter Roeck wrote: >> A watchdog driver using a non-static clock must register a clock change >> notifier >> to handle the clock rate change and update its settings accordingly. >> >> I would also

Re: Q: why didn't GCC warn about this uninitialized variable?

2016-03-03 Thread Colin Ian King
On 03/03/16 12:19, Ingo Molnar wrote: > > * Arnaldo Carvalho de Melo wrote: > >> Em Wed, Mar 02, 2016 at 02:21:27PM +0100, Peter Zijlstra escreveu: >>> On Wed, Mar 02, 2016 at 10:03:50AM -0300, Arnaldo Carvalho de Melo wrote: > Would not something like: > > sa = (struct sigaction){

Re: [PATCH 00/17] Add Initial support for PLX Technology OX810SE

2016-03-03 Thread Arnd Bergmann
On Thursday 03 March 2016 12:39:53 Neil Armstrong wrote: > This serie adds initial support (IRQ, Timer, GPIO, Reset, Serial, Clocks) for > the PLX Technology OX810SE used in the well-known Western Digital My Book > World Edition Network Attached Storage device. > > Extended support for SATA, DMA a

Re: [rtc-linux] Re: [RFC 15/15] mfd: syscon: Fix build of missing ioremap on UM

2016-03-03 Thread Krzysztof Kozlowski
2016-03-03 19:50 GMT+09:00 Arnd Bergmann : > On Thursday 03 March 2016 17:03:41 Krzysztof Kozlowski wrote: >> Since commit c89c0114955a ("mfd: syscon: Set regmap max_register in >> of_syscon_register") the syscon uses ioremap so it fails on COMPILE_TEST >> without HAS_IOMEM: >> >> drivers/mfd/sysco

Re: [RFC qemu 2/4] virtio-balloon: Add a new feature to balloon device

2016-03-03 Thread Cornelia Huck
On Thu, 3 Mar 2016 18:44:26 +0800 Liang Li wrote: > Extend the virtio balloon device to support a new feature, this > new feature can help to get guest's free pages information, which > can be used for live migration optimzation. Do you have a spec for this, e.g. as a patch to the virtio spec?

Re: [PATCH 6/6] cpufreq: schedutil: New governor based on scheduler utilization data

2016-03-03 Thread Peter Zijlstra
On Wed, Mar 02, 2016 at 11:49:48PM +0100, Rafael J. Wysocki wrote: > >>> + min_f = sg_policy->policy->cpuinfo.min_freq; > >>> + max_f = sg_policy->policy->cpuinfo.max_freq; > >>> + next_f = util > max ? max_f : min_f + util * (max_f - min_f) / > >>> max; > In case a more formal

Q: why didn't GCC warn about this uninitialized variable? (was: Re: [PATCH] perf tests: initialize sa.sa_flags)

2016-03-03 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Em Wed, Mar 02, 2016 at 02:21:27PM +0100, Peter Zijlstra escreveu: > > On Wed, Mar 02, 2016 at 10:03:50AM -0300, Arnaldo Carvalho de Melo wrote: > > > > Would not something like: > > > > > > > > sa = (struct sigaction){ > > > > .sa_sig

Re: [v3 PATCH 3/3] hpwdt: Use nmi_panic() when kernel panics in NMI handler

2016-03-03 Thread Guenter Roeck
On 03/03/2016 02:57 AM, Hidehiro Kawai wrote: commit 1717f2096b54 ("panic, x86: Fix re-entrance problem due to panic on NMI") introduced nmi_panic() which prevents concurrent and recursive execution of panic(). It also saves registers for the crash dump on x86 by later commit 58c5661f2144 ("pani

Re: [RFC qemu 4/4] migration: filter out guest's free pages in ram bulk stage

2016-03-03 Thread Cornelia Huck
On Thu, 3 Mar 2016 18:44:28 +0800 Liang Li wrote: > Get the free pages information through virtio and filter out the free > pages in the ram bulk stage. This can significantly reduce the total > live migration time as well as network traffic. > > Signed-off-by: Liang Li > --- > migration/ram.

Re: [PATCH 14/17] arm: boot: dts: Add PLX Technology OX810SE dtsi

2016-03-03 Thread Arnd Bergmann
On Thursday 03 March 2016 12:40:07 Neil Armstrong wrote: > + > + aliases { > + serial0 = &uart0; > + serial1 = &uart1; > + serial2 = &uart2; > + serial3 = &uart3; > + gpio0 = &gpio0; > + gpio1 = &gpio1; > + }; > Please

Re: [PATCH v1] watchdog: sama5d4_wdt: Reset delay on start

2016-03-03 Thread Guenter Roeck
On 03/03/2016 02:29 AM, Romain Izard wrote: If the internal counter is not refreshed when the watchdog is started for the first time, the watchdog will trigger very rapidly. For example, opening /dev/watchdog without writing in it will immediately trigger a reboot, instead of waiting for the dela

Re: [RFC PATCH 1/4] mmc: core: add cap-enhanced-strobe support

2016-03-03 Thread Jaehoon Chung
Hi Shawn, On 03/03/2016 11:36 AM, Shawn Lin wrote: > This patch introduce cap-enhanced-strobe for platforms which > want to enable enhanced strobe function from DT if the mmc host > controller claims to support enhanced strobe. I don't know why need to add the capability and property. > > Signe

Re: [PATCH v9 3/3] add support for DWC UFS Host Controller

2016-03-03 Thread Arnd Bergmann
On Thursday 03 March 2016 11:39:05 Joao Pinto wrote: > Hi Arnd, > > On 3/2/2016 7:55 PM, Arnd Bergmann wrote: > > On Wednesday 02 March 2016 16:46:47 Joao Pinto wrote: > >> On 2/19/2016 3:03 PM, Arnd Bergmann wrote: > >>> On Thursday 18 February 2016 17:20:27 Joao Pinto wrote: > > Facts: > > - T

Re: linux-next: Tree for Mar 3

2016-03-03 Thread Guenter Roeck
On 03/03/2016 03:00 AM, Sudip Mukherjee wrote: On Thu, Mar 03, 2016 at 05:09:26PM +1100, Stephen Rothwell wrote: Hi all, Changes since 20160302: With next-20160301 and next-20160302 I am having problem in allmodconfig build of x86_64. The error being: In file included from builtin-check.c:32

[PATCH 1/2] lguest: read length of device_cap later

2016-03-03 Thread Paul Bolle
Read the length of the capability with type VIRTIO_PCI_CAP_DEVICE_CFG only when we're sure we're going to need it. Which is just before the check whether the virtio console actually has an emerg_wr field. Signed-off-by: Paul Bolle --- arch/x86/lguest/boot.c | 7 +++ 1 file changed, 3 inserti

[PATCH 0/2] lguest: Minor cleanups of boot code

2016-03-03 Thread Paul Bolle
Building arch/x86/lguest/boot.o triggers two warnings: arch/x86/lguest/boot.c: In function 'early_put_chars': arch/x86/lguest/boot.c:1300:5: warning: 'device_len' may be used uninitialized in this function [-Wmaybe-uninitialized] if (device_len < (offsetof(struct virtio_console_confi

[PATCH BlueZ v4] tools/btattach: add marvell support

2016-03-03 Thread Amitkumar Karwar
From: Ganapathi Bhat User needs to issue below command for Marvell devices btattach -P marvell -B /dev/ttyUSB# --- tools/btattach.c | 1 + tools/hciattach.h | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/btattach.c b/tools/btattach.c index a025bb0..7807e9f 100644 --- a/tools/btatt

[PATCH v4] Bluetooth: hci_uart: Support firmware download for Marvell

2016-03-03 Thread Amitkumar Karwar
From: Ganapathi Bhat This patch implement firmware download feature for Marvell Bluetooth devices. If firmware is already downloaded, it will skip downloading. Signed-off-by: Ganapathi Bhat Signed-off-by: Amitkumar Karwar --- v2: Fixed compilation warning reported by kbuild test robot v3: Addr

Re: [PATCH 0/3] KASAN: clean stale poison upon cold re-entry to kernel

2016-03-03 Thread Ingo Molnar
* Mark Rutland wrote: > Functions which the compiler has instrumented for ASAN place poison on > the stack shadow upon entry and remove this poison prior to returning. > > In some cases (e.g. hotplug and idle), CPUs may exit the kernel a number > of levels deep in C code. If there are any instr

Re: [PATCH 1/3] printk: Make printk() completely async

2016-03-03 Thread Jan Kara
On Thu 03-03-16 20:26:55, Tetsuo Handa wrote: > On 2016/03/03 0:59, Jan Kara wrote: > > This patch makes printk() completely asynchronous (similar to what > > printk_deferred() did until now). It appends message to the kernel > > printk buffer and queues work to do the printing to console. This has

Re: [rtc-linux] Re: [RFC 04/15] irqchip: st: Add missing MFD_SYSCON dependency on HAS_IOMEM

2016-03-03 Thread Krzysztof Kozlowski
2016-03-03 19:53 GMT+09:00 Arnd Bergmann : > On Thursday 03 March 2016 17:03:30 Krzysztof Kozlowski wrote: >> config ST_IRQCHIP >> bool >> select REGMAP >> + depends on HAS_IOMEM# For MFD_SYSCON >> select MFD_SYSCON >> help >> Enables SysCfg Cont

[PATCH 2/2] lguest: read offset of device_cap later

2016-03-03 Thread Paul Bolle
Read the offset of the capability with type VIRTIO_PCI_CAP_DEVICE_CFG only when we're sure we're going to need it. Which is when all checks have passed and we know we have a virtio console with an emerg_wr field. Signed-off-by: Paul Bolle --- arch/x86/lguest/boot.c | 12 +++- 1 file chan

Re: [PATCH v4 0/4] ACPI: parse the SPCR table

2016-03-03 Thread Aleksey Makarov
On 03/01/2016 06:31 PM, Peter Hurley wrote: > On 02/29/2016 04:02 AM, Aleksey Makarov wrote: >> 'ARM Server Base Boot Requirements' [1] mentions SPCR (Serial Port >> Console Redirection Table) [2] as a mandatory ACPI table that >> specifies the configuration of serial console. >> >> Introduce a n

Re: [PATCH] sched: Allow per-cpu kernel threads to run on online && !active

2016-03-03 Thread Thomas Gleixner
On Thu, 3 Mar 2016, Peter Zijlstra wrote: > > +++ b/kernel/sched/core.c > > @@ -5726,23 +5726,6 @@ static int sched_cpu_active(struct notif > > case CPU_STARTING: > > set_cpu_rq_start_time(); > > If we stick that in notify_starting() we can kill all of this. Yep. I'm going to kill

Re: [PATCH v2] thermal: Fix build error of missing devm_ioremap_resource on UM

2016-03-03 Thread Geert Uytterhoeven
Hi Krzysztof, On Thu, Mar 3, 2016 at 12:49 PM, Krzysztof Kozlowski wrote: > 2016-03-03 18:01 GMT+09:00 Geert Uytterhoeven : >> On Thu, Mar 3, 2016 at 9:44 AM, Krzysztof Kozlowski >> wrote: >> > --- a/drivers/thermal/Kconfig >> > +++ b/drivers/thermal/Kconfig >> > @@ -177,7 +177,7 @@ config THERM

Re: [PATCH] sched: Allow per-cpu kernel threads to run on online && !active

2016-03-03 Thread Peter Zijlstra
On Thu, Mar 03, 2016 at 12:43:53PM +0100, Thomas Gleixner wrote: > Subject: cpu/hotplug: Handle cpu active as last state > From: Thomas Gleixner > Date: Thu, 03 Mar 2016 12:33:37 +0100 > > We want to make sure that everything is initialized before we allow scheduling > of arbitrary work on a upc

[PATCH 2/8] perf session: Simplify tool stubs

2016-03-03 Thread Adrian Hunter
From: Adrian Hunter Some of the stubs are identical so just have one function for them. Signed-off-by: Adrian Hunter --- tools/perf/util/session.c | 40 +++- 1 file changed, 7 insertions(+), 33 deletions(-) diff --git a/tools/perf/util/session.c b/tools/per

Re: [RFC PATCH] watchdog: s3c2410_wdt: Add max and min timeout values

2016-03-03 Thread Javier Martinez Canillas
Hello Guenter, On 03/03/2016 01:50 AM, Guenter Roeck wrote: On 03/02/2016 06:14 PM, Javier Martinez Canillas wrote: Hello Krzysztof, On 03/02/2016 09:21 PM, Krzysztof Kozlowski wrote: On 03.03.2016 02:30, Javier Martinez Canillas wrote: [snip] +wdt->wdt_device.min_timeout = 1; +w

[PATCH 3/8] perf tools: Add time conversion event

2016-03-03 Thread Adrian Hunter
From: Adrian Hunter Intel PT uses the time members from the perf_event_mmap_page to convert between TSC and perf time. Due to a lack of foresight when Intel PT was implemented, those time members were recorded in the (implementation dependent) AUXTRACE_INFO event, the structure of which is gener

[PATCH 5/8] perf jit: Move clockid validation

2016-03-03 Thread Adrian Hunter
From: Adrian Hunter Move clockid validation into jit_process() so it can later be made conditional. Signed-off-by: Adrian Hunter --- tools/perf/builtin-inject.c | 24 tools/perf/util/jitdump.c | 23 +++ 2 files changed, 23 insertions(+), 24 deleti

[PATCH 7/8] perf intel-pt/bts: Define JITDUMP_USE_ARCH_TIMESTAMP

2016-03-03 Thread Adrian Hunter
From: Adrian Hunter For Intel PT / BTS, define the environment variable that selects TSC timestamps in the jitdump file. Signed-off-by: Adrian Hunter --- tools/perf/arch/x86/util/intel-bts.c | 5 + tools/perf/arch/x86/util/intel-pt.c | 5 + 2 files changed, 10 insertions(+) diff --gi

[PATCH 8/8] perf tools: Use 64-bit shifts with (TSC) time conversion

2016-03-03 Thread Adrian Hunter
Commit b9511cd761fa ("perf/x86: Fix time_shift in perf_event_mmap_page") altered the time conversion algorithms documented in the perf_event.h header file, to use 64-bit shifts. That was done to make the code more future-proof (i.e. some time in the future a 32-bit shift could be allowed). Reflec

[PATCH 4/8] perf jit: Let jit_process() return errors

2016-03-03 Thread Adrian Hunter
In preparation for moving clockid validation into jit_process(). Previously a return value of zero meant the processing had been done and non-zero meant either the processing was not done (i.e. not the jitdump file mmap event) or an error occurred. Change it so that zero means the processing was

[PATCH 0/8] perf tools: Add Intel PT support for jitdump

2016-03-03 Thread Adrian Hunter
Hi In order to use Intel PT with jitdump, changes are needed because Intel PT uses TSC as a timestamp not the monotonic clock. These patches enable TSC to be used which allows the following using a simple HelloWorld java app: perf record -e intel_pt//u -o java.perf.data java -agentpath:

[PATCH 6/8] perf jit: Add support for using TSC as a timestamp

2016-03-03 Thread Adrian Hunter
From: Adrian Hunter Intel PT uses TSC as a timestamp, so add support for using TSC instead of the monotonic clock. Use of TSC is selected by an environment variable "JITDUMP_USE_ARCH_TIMESTAMP" and flagged in the jitdump file with flag JITDUMP_FLAGS_ARCH_TIMESTAMP. Signed-off-by: Adrian Hunter

[PATCH 1/8] perf inject: Hit all DSOs for AUX data in JIT and other cases

2016-03-03 Thread Adrian Hunter
Currently, when injecting build ids, if there is AUX data then 'perf inject' hits all DSOs because it is not known which DSOs the trace data would hit. That needs to be done for JIT injection also, and in fact there is no reason to distinguish what kind of injection is being done. That is, any ti

[PATCH 07/17] dt-bindings: Add PLX Technology Reset Controller bindings

2016-03-03 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- .../devicetree/bindings/reset/plxtech,reset.txt| 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/plxtech,reset.txt diff --git a/Documentation/devicetree/bindings/reset/plxtech,reset.txt

[PATCH 00/17] Add Initial support for PLX Technology OX810SE

2016-03-03 Thread Neil Armstrong
This serie adds initial support (IRQ, Timer, GPIO, Reset, Serial, Clocks) for the PLX Technology OX810SE used in the well-known Western Digital My Book World Edition Network Attached Storage device. Extended support for SATA, DMA and Ethernet will come in further patches. Upstream support for fol

[PATCH 02/17] irqchip: Add PLX Technology RPS IRQ Controller

2016-03-03 Thread Neil Armstrong
Add PLX Technology RPS IRQ Controller as irqchip driver. CC: Ma Haijun Signed-off-by: Neil Armstrong --- drivers/irqchip/Kconfig | 5 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-rps.c | 128 ++ 3 files changed, 134 insertions(+) cre

Re: [PATCH] video: fbdev: sis: remove unused variable

2016-03-03 Thread Tomi Valkeinen
On 29/02/16 20:02, Sudip Mukherjee wrote: > The variables modeflag and resinfo were only assigned some value but > were never used. > > Signed-off-by: Sudip Mukherjee > --- > drivers/video/fbdev/sis/init301.c | 10 ++ > 1 file changed, 2 insertions(+), 8 deletions(-) Thanks, queued for

[PATCH 05/17] dt-bindings: Add PLX Technology RPS Timer bindings

2016-03-03 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- .../devicetree/bindings/timer/plxtech,rps-timer.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/plxtech,rps-timer.txt diff --git a/Documentation/devicetree/bindings/timer/plxtech,rps-t

<    4   5   6   7   8   9   10   11   12   >