Re: [rtc-linux] [PATCH 07/12] rtc: st: Update IP layout information to include Clocksource

2015-05-09 Thread Alexandre Belloni
On 07/05/2015 at 14:38:39 +0100, Lee Jones wrote : > Initial submission adding support for this IP only included Watchdog and > the Real-Time Clock. Now the third (and final) device is enabled this > trivial patch is required to update the comment in the RTC driver to > encompass Clocksource. >

Re: [watchdog] 952c8813073: BUG: unable to handle kernel NULL pointer dereference at (null)

2015-05-09 Thread Chris Metcalf
On 5/9/2015 8:50 AM, Fengguang Wu wrote: Hi Chris, FYI, we noticed the below changes on git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master commit 952c8813073ed240a610f8b44ecea9bdd60b62b4 ("watchdog: add watchdog_cpumask sysctl to assist nohz") [...] [0.079378] BUG:

Re: [RFC/PATCH] perf stat: Show sample events stat for a data file

2015-05-09 Thread Namhyung Kim
Hi Peter, On Fri, May 08, 2015 at 04:46:20PM +0200, Peter Zijlstra wrote: > On Wed, Apr 29, 2015 at 08:58:22PM +0900, Namhyung Kim wrote: > > > It would be nice if this thing could support 'perf record -s' which > > > enables perf_event_attr::inherit_stat, which in turn results in > > >

Re: [PATCH v3 3/3] proc: add kpageidle file

2015-05-09 Thread Minchan Kim
Hello, Vladimir On Fri, May 08, 2015 at 12:56:04PM +0300, Vladimir Davydov wrote: > On Mon, May 04, 2015 at 07:54:59PM +0900, Minchan Kim wrote: > > So, I guess once below compiler optimization happens in > > __page_set_anon_rmap, > > it could be corrupt in page_refernced. > > > >

RE: [x86/xsave] WARNING: CPU: 0 PID: 1 at arch/x86/kernel/xsave.c:306 save_xstate_sig()

2015-05-09 Thread Yu, Fenghua
> From: Wu, Fengguang > Sent: Saturday, May 09, 2015 5:31 AM > To: Hansen, Dave > Just in case this information will help: this patch adds one more warning > message. > > https://github.com/hansendc/linux.git github-mpx > > commit 3701f7533ba43e0aec12bf2dffd49855499fa524 > [3.058044]

[PATCH 1/3] perf tools: Document relation of per-thread event count feature

2015-05-09 Thread Namhyung Kim
The 'perf record -s' and 'perf report -T' should be used together to see per-thread event counts. Document the relation of these commands. Signed-off-by: Namhyung Kim --- tools/perf/Documentation/perf-record.txt | 3 ++- tools/perf/Documentation/perf-report.txt | 3 ++- 2 files changed, 4

[PATCH 2/3] perf report: Force tty output if -T/--thread option is given

2015-05-09 Thread Namhyung Kim
The -T/--thread option is supported only on --stdio mode (at least for now). So enforce the tty output if the option was requested. Signed-off-by: Namhyung Kim --- tools/perf/builtin-report.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/builtin-report.c

[PATCH 3/3] perf report: Do not restrict -T option by other options

2015-05-09 Thread Namhyung Kim
It seems there's no reason to suppress per-thread event stat by -T option when -s or -p option is used. Make it work with those options. Signed-off-by: Namhyung Kim --- tools/perf/builtin-report.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git

RE: [x86/xsaves] 4d90fc49c73: WARNING: CPU: 3 PID: 168 at arch/x86/kernel/xsave.c:306 save_xstate_sig+0x3a7/0x3d0()

2015-05-09 Thread Yu, Fenghua
> Here is another warning bisected to the same commit. > > https://github.com/hansendc/linux.git github-mpx commit > 4d90fc49c73730c09d7afd515f9c4e08d30229bd ("x86/xsaves: Define and use > user_xstate_size for xstate size in signal context") > [6.210858] WARNING: CPU: 3 PID: 168 at

RE: [x86/xsaves] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000b00

2015-05-09 Thread Yu, Fenghua
> From: Wu, Fengguang > Sent: Saturday, May 09, 2015 5:29 AM > To: Hansen, Dave > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://github.com/hansendc/linux.git github-mpx > > commit 4d90fc49c73730c09d7afd515f9c4e08d30229bd > [1.096425] Kernel panic - not

[PATCH 4/4] x86: Clean up IRQn_VECTOR macros

2015-05-09 Thread Brian Gerst
Since the ISA irqs are in a single block, use ISA_IRQ_VECTOR(irq) instead of individual macros. Signed-off-by: Brian Gerst --- arch/x86/include/asm/irq_vectors.h | 18 +- arch/x86/kernel/apic/io_apic.c | 4 ++-- arch/x86/kernel/apic/vector.c | 2 +-

[PATCH 0/4] x86: IRQ cleanups

2015-05-09 Thread Brian Gerst
The following are a few simple cleanups to the x86 IRQ code. arch/x86/include/asm/hw_irq.h | 35 --- arch/x86/include/asm/irq_vectors.h | 21 + arch/x86/kernel/apic/io_apic.c | 4 ++-- arch/x86/kernel/apic/vector.c | 2 +-

[PATCH 3/4] x86: Remove SYSCALL_VECTOR

2015-05-09 Thread Brian Gerst
Use IA32_SYSCALL_VECTOR for both compat and native. Signed-off-by: Brian Gerst --- arch/x86/include/asm/irq_vectors.h | 3 --- arch/x86/kernel/traps.c| 4 ++-- arch/x86/lguest/boot.c | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git

[PATCH 2/4] x86: Remove unused invalidate_interrupt prototypes

2015-05-09 Thread Brian Gerst
The invalidate_interrupt* functions no longer exist. Signed-off-by: Brian Gerst --- arch/x86/include/asm/hw_irq.h | 35 --- 1 file changed, 35 deletions(-) diff --git a/arch/x86/include/asm/hw_irq.h b/arch/x86/include/asm/hw_irq.h index e9571dd..014c638 100644

[PATCH 1/4] x86: Merge irq_regs & irq_stat

2015-05-09 Thread Brian Gerst
Move irq_regs and irq_stat definitions to irq.c. Signed-off-by: Brian Gerst --- arch/x86/kernel/irq.c| 6 ++ arch/x86/kernel/irq_32.c | 6 -- arch/x86/kernel/irq_64.c | 6 -- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/arch/x86/kernel/irq.c

Re: [PATCH v3 2/4] PM / Hibernate: prepare for SANITIZE_FREED_PAGES

2015-05-09 Thread Pavel Machek
Hi! > SANITIZE_FREED_PAGES feature relies on having all pages going through > the free_pages_prepare path in order to be cleared before being used. In > the hibernate use case, pages will automagically appear in the system > without being cleared. > > This patch will make sure free pages are

[PATCH] drm/nouveau/gr: Fix typo in nv10.c

2015-05-09 Thread Masanari Iida
This patch fix spelling typo in printk within nv10.c Signed-off-by: Masanari Iida --- drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c

Re: "Directly mapped persistent memory page cache"

2015-05-09 Thread Eric W. Biederman
Ingo Molnar writes: > * Rik van Riel wrote: > >> On 05/08/2015 11:54 AM, Linus Torvalds wrote: >> > On Fri, May 8, 2015 at 7:40 AM, John Stoffel wrote: >> >> >> >> Now go and look at your /home or /data/ or /work areas, where the >> >> endusers are actually keeping their day to day work.

Re: [linux-sunxi] [PATCH 0/6] ARM: sunxi: Introduce Allwinner H3 support

2015-05-09 Thread Hans de Goede
Hi, On 06-05-15 11:31, Jens Kuske wrote: Hi everyone, This patch series introduces basic kernel support for Allwinner's H3 SoC, mainly basic clocks and pinctrl. It also adds interrupts, timers, watchdog, RTC, dmaengine, MMC and UARTs, which are mostly compatible to those in earlier SoCs like

Re: [PATCH v3 1/7] bio: Introduce LightNVM payload

2015-05-09 Thread Christoph Hellwig
On Wed, Apr 22, 2015 at 04:26:50PM +0200, Matias Bj??rling wrote: > LightNVM integrates on both sides of the block layer. The lower layer > implements mapping of logical to physical addressing, while the layer > above can string together multiple LightNVM devices and expose them as a > single

[PATCH] drm/i915: Fix typo in intel_runtime_pm.c

2015-05-09 Thread Masanari Iida
This patch fix spelling typo in intel_runtime_pm.c Signed-off-by: Masanari Iida --- drivers/gpu/drm/i915/intel_runtime_pm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c index

Re: [PATCH v3 2/7] block: add REQ_NVM_GC for targets gc

2015-05-09 Thread Christoph Hellwig
On Wed, Apr 22, 2015 at 04:26:51PM +0200, Matias Bj??rling wrote: > In preparation for Open-Channel SSDs. We introduce a special request for > open-channel ssd targets that must perform garbage collection. > > Requests are divided into two types. The user and target specific. User > IOs are from

[PATCH] gpu: ipu-v3: ipu-csi: Use true/false for booleans

2015-05-09 Thread Fabio Estevam
From: Fabio Estevam Bool initializations should use true and false. Bool tests don't need comparisons. Based on contributions from Joe Perches, Rusty Russell and Bruce W Allan. The semantic patch that makes this change is available in scripts/coccinelle/misc/boolinit.cocci. More information

Re: [PATCH net-next] test: bpf: extend "load 64-bit immediate" testcase

2015-05-09 Thread Alexei Starovoitov
On 5/9/15 1:14 AM, Xi Wang wrote: Extend the testcase to catch a signedness bug in the arm64 JIT: test_bpf: #58 load 64-bit immediate jited:1 ret -1 != 1 FAIL (1 times) This is useful to ensure other JITs won't have a similar bug. Link: https://lkml.org/lkml/2015/5/8/458 Cc: Alexei

Re: [PATCH 1/3] perf tools: Document relation of per-thread event count feature

2015-05-09 Thread David Ahern
On 5/9/15 9:19 AM, Namhyung Kim wrote: diff --git a/tools/perf/Documentation/perf-report.txt b/tools/perf/Documentation/perf-report.txt index 896672badba3..610e1e2cd035 100644 --- a/tools/perf/Documentation/perf-report.txt +++ b/tools/perf/Documentation/perf-report.txt @@ -34,7 +34,8 @@ OPTIONS

Re: [PATCH V5] staging: goldfish: Fix pointer cast for 32 bits

2015-05-09 Thread Greg KH
On Mon, May 04, 2015 at 03:11:18PM +0200, Peter Senna Tschudin wrote: > As the first argument of gf_write64() was of type unsigned long, and as > some calls to gf_write64() were casting the first argument from void * > to u64 the compiler and/or sparse were printing warnings for casts of > wrong

Re: [GIT PULL] USB fixes for v4.1-rc1

2015-05-09 Thread Greg KH
On Fri, May 01, 2015 at 11:08:35AM -0500, Felipe Balbi wrote: > Hi Greg, > > Here's first pull request for this -rc series. Patches have been tested with > platforms I have access to and have also been cooking in linux-next for > a couple days. > > cheers > > The following changes since commit

Re: Re: [PATCH] staging: gdm724: adding kernel endianness header

2015-05-09 Thread Jaime Arrocha
On Sat, 09 May 2015 05:59:40 -0500 Dan Carpenter wrote > On Fri, May 08, 2015 at 06:29:24PM -0500, Jaime Arrocha wrote: > > >From TODO list: remove test for host endian > > Included header to gather information about host endianness. > > Please let me know if the code

Re: [PATCH v2 3/5] dmaengine: pxa: add pxa dmaengine driver

2015-05-09 Thread Robert Jarzmik
Vinod Koul writes: > On Fri, May 08, 2015 at 02:28:37PM +0200, Robert Jarzmik wrote: >> Sorry I don't get this comment, would you care to explain me please ? > Right now you are using very genric names which can conflict with others, so > makese sense to add PXA_DCMD_LENGTH with me lesser prone

Re: Hardware spec prevents optimal performance in device driver

2015-05-09 Thread One Thousand Gnomes
On Sat, 09 May 2015 12:22:43 +0200 Mason wrote: > Hello everyone, > > I'm writing a device driver for a serial-ish kind of device. > I'm interested in the TX side of the problem. (I'm working on > an ARM Cortex A9 system by the way.) > > There's a 16-byte TX FIFO. Data is queued to the FIFO by

[PATCH] Added another USB product ID for ELAN touchscreen quirks.

2015-05-09 Thread Logan Gunthorpe
I've had the same issue as described in commit c68929f75dfcb6354918862b91b5778585de1fa5 Except my touchscreen's ID is ID 04f3:0125 Elan Microelectronics Corp. Signed-off-by: Logan Gunthorpe --- drivers/usb/core/quirks.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [PATCH V3] cpuidle: Handle tick_broadcast_enter() failure gracefully

2015-05-09 Thread Rafael J. Wysocki
On Saturday, May 09, 2015 11:19:16 AM Preeti U Murthy wrote: > Hi Rafael, > > On 05/08/2015 07:48 PM, Rafael J. Wysocki wrote: > >> +/* > >> + * find_tick_valid_state - select a state where tick does not stop > >> + * @dev: cpuidle device for this cpu > >> + * @drv: cpuidle driver for this cpu >

Re: [PATCH V3] cpuidle: Handle tick_broadcast_enter() failure gracefully

2015-05-09 Thread Rafael J. Wysocki
On Saturday, May 09, 2015 08:46:20 PM Rafael J. Wysocki wrote: > On Saturday, May 09, 2015 11:19:16 AM Preeti U Murthy wrote: > > Hi Rafael, > > > > On 05/08/2015 07:48 PM, Rafael J. Wysocki wrote: > > >> +/* > > >> + * find_tick_valid_state - select a state where tick does not stop > > >> + *

Re: "Directly mapped persistent memory page cache"

2015-05-09 Thread Dan Williams
On Sat, May 9, 2015 at 1:45 AM, Ingo Molnar wrote: > > * Rik van Riel wrote: > >> On 05/08/2015 11:54 AM, Linus Torvalds wrote: >> > On Fri, May 8, 2015 at 7:40 AM, John Stoffel wrote: >> >> >> >> Now go and look at your /home or /data/ or /work areas, where the >> >> endusers are actually

[PATCH] alpha: Wire up missing syscalls

2015-05-09 Thread Chen Gang
The related warnings: CALLscripts/checksyscalls.sh :1238:2: warning: #warning syscall seccomp not implemented [-Wcpp] :1241:2: warning: #warning syscall getrandom not implemented [-Wcpp] :1244:2: warning: #warning syscall memfd_create not implemented [-Wcpp] :1247:2: warning:

Re: [PATCH v9] iio: acpi: Add support for ACPI0008 Ambient Light Sensor

2015-05-09 Thread Gabriele Mazzotta
On Saturday 02 May 2015 14:30:57 Gabriele Mazzotta wrote: > This driver adds the initial support for the ACPI Ambient Light Sensor > as defined in Section 9.2 of the ACPI specification (Revision 5.0) [1]. > > Sensors complying with the standard are exposed as ACPI devices with > ACPI0008 as

Re: [PATCH v9] iio: acpi: Add support for ACPI0008 Ambient Light Sensor

2015-05-09 Thread Daniel Baluta
On Sat, May 9, 2015 at 9:45 PM, Gabriele Mazzotta wrote: > On Saturday 02 May 2015 14:30:57 Gabriele Mazzotta wrote: >> This driver adds the initial support for the ACPI Ambient Light Sensor >> as defined in Section 9.2 of the ACPI specification (Revision 5.0) [1]. >> >> Sensors complying with

Re: [PATCH 00/12] [RFC] x86: Memory Protection Keys

2015-05-09 Thread Dr. David Alan Gilbert
* Vlastimil Babka (vba...@suse.cz) wrote: > On 05/07/2015 08:09 PM, Dave Hansen wrote: > >On 05/07/2015 10:57 AM, Ingo Molnar wrote: > There are two new instructions (RDPKRU/WRPKRU) for reading and > writing to the new register. The feature is only available in > 64-bit mode, even

[PATCH] iio: acpi-als: Fix Kconfig and remove unneeded pointer casting

2015-05-09 Thread Gabriele Mazzotta
Signed-off-by: Gabriele Mazzotta --- This patch fixes the issues of: [PATCH v9] iio: acpi: Add support for ACPI0008 Ambient Light Sensor Link: http://lkml.kernel.org/g/1430569857-31386-1-git-send-email-gabriele@gmail.com drivers/iio/light/Kconfig| 1 + drivers/iio/light/acpi-als.c | 3

Re: [PATCH V3] cpuidle: Handle tick_broadcast_enter() failure gracefully

2015-05-09 Thread Rafael J. Wysocki
On Saturday, May 09, 2015 11:19:16 AM Preeti U Murthy wrote: > Hi Rafael, > > On 05/08/2015 07:48 PM, Rafael J. Wysocki wrote: [cut] > >> > >> + /* Take note of the planned idle state. */ > >> + idle_set_state(smp_processor_id(), target_state); > > > > And I wouldn't do this either. > > >

Re: [PATCH] ipv6: Fixed source specific default route handling.

2015-05-09 Thread David Miller
From: Markus Stenberg Date: Tue, 5 May 2015 13:36:59 +0300 > If there are only IPv6 source specific default routes present, the > host gets -ENETUNREACH on e.g. connect() because ip6_dst_lookup_tail > calls ip6_route_output first, and given source address any, it fails, > and ip6_route_get_saddr

Re: [PATCH 1/1] suspend: delete sys_sync()

2015-05-09 Thread Alan Stern
On Fri, 8 May 2015, Rafael J. Wysocki wrote: > My current view on that is that whether or not to do a sync() before > suspending > ultimately is a policy decision and should belong to user space as such > (modulo > the autosleep situation when user space may not know when the suspend is going >

[GIT pull] timer updates for 4.1-rc3

2015-05-09 Thread Thomas Gleixner
Linus, please pull the latest timers-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-urgent-for-linus A simple fix to actually shut down a detached device instead of letting it active. Thanks, tglx --> Viresh Kumar

[GIT pull] irq updates for 4.1-rc3

2015-05-09 Thread Thomas Gleixner
Linus, please pull the latest irq-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus Two patches from the irq departement: - A simple fix to make dummy_irq_chip usable for wakeup scenarios - Removal of the gic arch_extn

Re: [PATCH v2 0/2] net/rds: RDS-TCP robustness fixes

2015-05-09 Thread David Miller
From: Sowmini Varadhan Date: Tue, 5 May 2015 15:20:50 -0400 > > This patch-set contains bug fixes for state-recovery at the RDS > layer when the underlying transport is TCP and the TCP state at one > of the endpoints is reset > > V2 changes: DaveM comments to reduce memory footprint, follow

Re: [PATCH] net: macb: Handle the RXUBR interrupt on all devices

2015-05-09 Thread David Miller
From: Nathan Sullivan Date: Tue, 5 May 2015 15:00:25 -0500 > The same hardware issue the at91 must work around applies to at least the > Zynq ethernet, and possibly more devices. The driver also needs to handle > the RXUBR interrupt since it turns it on with MACB_RX_INT_FLAGS anyway. > >

[PATCH] irqchip: tegra: fix wrong data being passed as the irqdomain chip data

2015-05-09 Thread Lucas Stach
The irq chip functions use the irq chipdata directly as the base register address of the controller, so this should be passed in instead of a pointer to the array address holding the base address. This fixes Tegra20 CPUidle as now the un-/masking of IRQs at the LIC level works again, but more

Re: [PATCH V3] cpuidle: Handle tick_broadcast_enter() failure gracefully

2015-05-09 Thread Rafael J. Wysocki
On Saturday, May 09, 2015 10:11:41 PM Rafael J. Wysocki wrote: > On Saturday, May 09, 2015 11:19:16 AM Preeti U Murthy wrote: > > Hi Rafael, > > > > On 05/08/2015 07:48 PM, Rafael J. Wysocki wrote: > > [cut] > > > >> > > >> +/* Take note of the planned idle state. */ > > >> +

[PATCH] staging: rtl8192e: Change cpu_to_le16 to le16_to_cpu

2015-05-09 Thread Arno Tiemersma
Since the function auth_parse returns a u16, and struct rtllib_authentication.status is defined as an __le16, it seems that return cpu_to_le16(a->status); should be return le16_to_cpu(a->status); This change silences the following sparse warnings:

Re: [PATCH 1/1] suspend: delete sys_sync()

2015-05-09 Thread Henrique de Moraes Holschuh
On Sat, 09 May 2015, Alan Stern wrote: > On Fri, 8 May 2015, Rafael J. Wysocki wrote: > > My current view on that is that whether or not to do a sync() before > > suspending > > ultimately is a policy decision and should belong to user space as such > > (modulo > > the autosleep situation when

[PATCH v2] staging: rtl8192e: Change cpu_to_le16 to le16_to_cpu

2015-05-09 Thread Arno Tiemersma
Since the function auth_parse returns a u16, and struct rtllib_authentication.status is defined as an __le16, it seems that return cpu_to_le16(a->status); should be return le16_to_cpu(a->status); This change silences the following sparse warnings:

[PATCH v6 01/12] irqdomain: Add non-hierarchy helper irq_domain_set_info

2015-05-09 Thread Stefan Agner
This adds the helper irq_domain_set_info() in a non-domain hierarchy variant. This allows to use the helper for generic chip since not all chips using generic chip support domain hierarchy. Signed-off-by: Stefan Agner --- include/linux/irqdomain.h | 8 kernel/irq/irqdomain.c| 21

[PATCH v6 05/12] ARM: ARMv7M: define size of vector table for Vybrid

2015-05-09 Thread Stefan Agner
Vybrids has 112 peripherial interrupts which can be routed to the Cortex-M4's NVIC interrupt controller. Signed-off-by: Stefan Agner --- arch/arm/mm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index 3937af0..527ea03 100644 ---

[PATCH v6 11/12] ARM: dts: add support for Vybrid running on Cortex-M4

2015-05-09 Thread Stefan Agner
This adds an initial device tree to run Linux on the Cortex-M4 on the Vybrid based Colibri VF61 module. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/Makefile| 1 + arch/arm/boot/dts/vf610m4-colibri.dts | 99 +++ arch/arm/boot/dts/vf610m4.dtsi

[PATCH v6 12/12] ARM: vf610m4: add defconfig for Linux on Vybrids Cortex-M4

2015-05-09 Thread Stefan Agner
Add defconfig for Linux on Vybrid (vf610) on the secondary Cortex- M4 CPU. The use of a XIP image has been tested which needs to be loaded (e.g. using the custom m4boot loader) to the end of the available RAM at address 0x8f00. The Cortex-M4 has a code-alias which makes sure that the

[PATCH v6 10/12] ARM: vf610: enable Cortex-M4 configuration on Vybrid SoC

2015-05-09 Thread Stefan Agner
This patch allows to build the Kernel for Vybrid (VF6xx) SoC when ARMv7-M CPU is selected. The resulting image runs on the secondary Cortex-M4 core. This core has equally access to all peripherals as the main Cortex-A5 core. However, there is no resource control mechanism, hence when both cores

[PATCH v6 09/12] ARM: efm32: use ARM_SINGLE_ARMV7M

2015-05-09 Thread Stefan Agner
Use the new config symbol ARM_SINGLE_ARMV7M which groups config symbols used by modern ARMv7-M platforms. It also support multiple ARMv7-M platforms in one kernel image. However, this only works if the combined platforms share the same (main) memory layout. Signed-off-by: Stefan Agner ---

[PATCH v6 03/12] irqchip: nvic: support hierarchy irq domain

2015-05-09 Thread Stefan Agner
Add support for hierarchy irq domains. This is required to stack the MSCM interrupt router and the NVIC controller found in Vybrid SoC. Signed-off-by: Stefan Agner --- drivers/irqchip/Kconfig| 1 + drivers/irqchip/irq-nvic.c | 28 +++- 2 files changed, 28

[PATCH v6 08/12] ARM: introduce ARM_SINGLE_ARMV7M for ARMv7-M platforms

2015-05-09 Thread Stefan Agner
This introduces a new top level config symbol ARM_SINGLE_ARMV7M for non-MMU, ARMv7-M platforms. It also support multiple ARMv7-M platforms in one kernel image since the cores share the same basic memory layout and interrupt controller. However, this works only if the combined platforms also have a

[PATCH v6 07/12] ARM: unify MMU/!MMU addruart calls

2015-05-09 Thread Stefan Agner
Remove the needless differences between MMU/!MMU addruart calls. This allows to use the same addruart macro on SoC level. Useful for SoC consisting of multiple CPUs with and without MMU such as Freescale Vybrid. Signed-off-by: Stefan Agner --- arch/arm/include/debug/efm32.S | 2 +-

[PATCH v6 06/12] clocksource: add dependencies for Vybrid pit clocksource

2015-05-09 Thread Stefan Agner
Add the minimal dependencies required to use the Vybrid PIT clocksource driver. Those are not part of the SoC dependencies. Acked-by: Daniel Lezcano Signed-off-by: Stefan Agner --- drivers/clocksource/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clocksource/Kconfig

[PATCH v6 02/12] genirq: generic chip: support hierarchy domain

2015-05-09 Thread Stefan Agner
Use the new helper function irq_domain_set_info to make sure the function irq_domain_set_hwirq_and_chip is being called, which is crucial to save irqdomain specific data to irq_data. Signed-off-by: Stefan Agner --- kernel/irq/generic-chip.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH v6 00/12] ARM: vf610m4: Add Vybrid Cortex-M4 support

2015-05-09 Thread Stefan Agner
It took me a bit longer than expected to come up with the 6th revision of the patchset. Support for irq domain hierarchy for generic chip turned out to be not as easy as thought, the changes lead to build errors when building without domain hierarchy, sorry about that Jason. However, in this

[GIT PULL] arm-soc fixes for 4.1-rc2

2015-05-09 Thread Arnd Bergmann
The following changes since commit 5ebe6afaf0057ac3eaeb98defd5456894b446d22: Linux 4.1-rc2 (2015-05-03 19:22:23 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git tags/fixes-for-linus for you to fetch changes up to

[PATCH v6 04/12] irqchip: vf610-mscm: support NVIC parent

2015-05-09 Thread Stefan Agner
Support the NVIC interrupt controller as node parent of the MSCM interrupt router. On the dual-core variants of Vybird (VF6xx), the NVIC interrupt controller is used by the Cortex-M4. To support running Linux on this core too, MSCM needs NVIC parent support too. Signed-off-by: Stefan Agner ---

Re: [PATCH] netxen_nic: use spin_[un]lock_bh around tx_clean_lock (2)

2015-05-09 Thread David Miller
From: Tony Camuso Date: Wed, 6 May 2015 09:09:18 -0400 > This patch should have been part of the previous patch having the > same summary. See http://marc.info/?l=linux-kernel=143039470103795=2 > Unfortunately, I didn't check to see where else this lock was used before > submitting that patch.

Re: Hardware spec prevents optimal performance in device driver

2015-05-09 Thread Mason
One Thousand Gnomes wrote: > Mason wrote: > >> I'm writing a device driver for a serial-ish kind of device. >> I'm interested in the TX side of the problem. (I'm working on >> an ARM Cortex A9 system by the way.) >> >> There's a 16-byte TX FIFO. Data is queued to the FIFO by writing >> {1,2,4}

[PATCH] net: fec: add support of ethtool get_regs

2015-05-09 Thread Philippe Reynes
This enables the ethtool's "-d" and "--register-dump" options for fec devices. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/freescale/fec_main.c | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec_main.c

[PATCH] imx27: dt: only map 1 Kbyte for fec registers

2015-05-09 Thread Philippe Reynes
According to the imx27 documentation, fec has a 1 Kbyte memory space map, spitted in two regions of 512 bytes. The first one for control/status registers, and the second one for event/statistic registers. So, we don't need to map 16 Kbyte for registers, 1 Kbyte is enough. Signed-off-by: Philippe

[PATCH] sh: Wire up missing syscalls

2015-05-09 Thread Chen Gang
The related warnings: CALLscripts/checksyscalls.sh :1229:2: warning: #warning syscall sched_setattr not implemented [-Wcpp] :1232:2: warning: #warning syscall sched_getattr not implemented [-Wcpp] :1235:2: warning: #warning syscall renameat2 not implemented [-Wcpp] :1238:2:

Re: [PATCH net-next] test: bpf: extend "load 64-bit immediate" testcase

2015-05-09 Thread Daniel Borkmann
On 05/09/2015 10:14 AM, Xi Wang wrote: Extend the testcase to catch a signedness bug in the arm64 JIT: test_bpf: #58 load 64-bit immediate jited:1 ret -1 != 1 FAIL (1 times) This is useful to ensure other JITs won't have a similar bug. Link: https://lkml.org/lkml/2015/5/8/458 Cc: Alexei

Re: [RFC] init.h: mark init functions hot instead of cold

2015-05-09 Thread Josh Triplett
On Sat, May 09, 2015 at 02:17:39AM -0700, Andi Kleen wrote: > On Sat, May 09, 2015 at 12:45:01AM +0200, Rasmus Villemoes wrote: > > attribute((cold)) causes gcc to optimize the function for size rather > > than speed. But since __init functions will be discarded anyway, I > > don't see why memory

Re: [PATCH] net: fec: add support of ethtool get_regs

2015-05-09 Thread Russell King - ARM Linux
On Sat, May 09, 2015 at 10:52:08PM +0200, Philippe Reynes wrote: > +static void fec_enet_get_regs(struct net_device *ndev, > + struct ethtool_regs *regs, void *regbuf) > +{ > + struct fec_enet_private *fep = netdev_priv(ndev); > + > + memcpy_fromio(regbuf,

[PATCH v3 00/33] staging: rtl8192e: Fix more checkpatch.pl warnings

2015-05-09 Thread Mateusz Kulikowski
This series applies some of review comments by Dan (thanks!) as well as does further cleanups. Further series will probably focus more on changing driver architecture into something that may get accepted into -wireless. This series should apply cleanly to staging-testing(7192a5dd5) branches. One

[PATCH v3 15/33] staging: rtl8192e: Remove RTLLIB_DEBUG_INFO()

2015-05-09 Thread Mateusz Kulikowski
Use pr_debug() instead. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h| 1 - drivers/staging/rtl8192e/rtllib_module.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h

[PATCH v3 23/33] staging: rtl8192e: Remove unimplemented iwpriv handlers

2015-05-09 Thread Mateusz Kulikowski
Remove the following private variables: - force_mic_error - changes force_mic_error that is not used - radio - changes sw_radio_on that is not used - adhoc_peer_list - unimplemented - firm_ver - unimplemented Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c |

[PATCH v3 07/33] staging: rtl8192e: Replace RTLLIB_DEBUG(DL_ERR) with netdev_*()

2015-05-09 Thread Mateusz Kulikowski
Replace all RTLLIB_DEBUG(RTLLIB_DL_ERR, *) calls with netdev_err() for errors that really should be reported to user. Use netdev_warn() for the rest. Rephrase some of the messages to make them more readable/compact. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl819x_BAProc.c

[PATCH v3 22/33] staging: rtl8192e: Fix LONG_LING in rtllib_parse_info_param()

2015-05-09 Thread Mateusz Kulikowski
Take out MIFE_TYPE_HT_CAP processing into separate function - rtllib_parse_mfie_ht_cap() Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib_rx.c | 49 +--- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git

[PATCH v3 25/33] staging: rtl8192e: Remove unused rtl_crypto.h

2015-05-09 Thread Mateusz Kulikowski
This header is not used - remove it to make driver code smaller. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/rtl_crypto.h | 382 - 1 file changed, 382 deletions(-) delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_crypto.h diff --git

[PATCH v3 26/33] staging: rtl8192e: Replace ?: with max_t

2015-05-09 Thread Mateusz Kulikowski
Improve readability and make checkpatch happy. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c index 2b337c4..5a08935

[PATCH v3 32/33] staging: rtl8192e: Fix trivial LONG_LINE errors

2015-05-09 Thread Mateusz Kulikowski
Reindent lines to make checkpatch happy. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 83 +++--- drivers/staging/rtl8192e/rtllib_rx.c | 18 --- 2 files changed, 65 insertions(+), 36 deletions(-) diff --git

[PATCH v3 33/33] staging: rtl8192e: rtl8192E_suspend(): Fix WOL reporting

2015-05-09 Thread Mateusz Kulikowski
WOL capability was reported in an awkward way - print it nicely. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/rtl_pm.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_pm.c

[PATCH v3 30/33] staging: rtl8192e: rtl8192_phy_checkBBAndRF(): Don't check MAC

2015-05-09 Thread Mateusz Kulikowski
This function never supported checking of MAC block. Instead of printing several warnings - print it once and exit. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git

[PATCH v3 24/33] staging: rtl8192e: Fix OOM_MESSAGE warnings

2015-05-09 Thread Mateusz Kulikowski
Remove alloc failed messages where not needed to make checkpatch.pl happy. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl819x_BAProc.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_BAProc.c

[PATCH v3 13/33] staging: rtl8192e: Remove RTLLIB_DEBUG_QOS()

2015-05-09 Thread Mateusz Kulikowski
- Pass extra argument (rtllib_device) to rtllib_parse_qos_info_param_IE() and update_network() - Replace RTLLIB_DEBUG_QOS() with netdev_dbg() - Remove RTLLIB_DEBUG_QOS() Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h| 1 - drivers/staging/rtl8192e/rtllib_rx.c |

[PATCH v3 31/33] staging: rtl8192e: Replace RT_TRACE(COMP_ERR, ...) with netdev_*

2015-05-09 Thread Mateusz Kulikowski
- Use netdev_* with log level depending on how serious error is - Rework some messages to be more readable - Pass net_device where needed for pretty prints Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c | 24 +++--

[PATCH v3 29/33] staging: rtl8192e: Remove unneeded RT_TRACE(COMP_ERR,...)

2015-05-09 Thread Mateusz Kulikowski
This messages are not needed, as failure is reported earlier in code. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c | 1 - drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c | 1 - 2 files changed, 2 deletions(-) diff --git

[PATCH v3 20/33] staging: rtl8192e: Fix PREFER_PR_LEVEL warnings

2015-05-09 Thread Mateusz Kulikowski
Fix most of remaining PREFER_PR_LEVEL warnings in rtllib. Replace printk() with netdev_* if possible, pr_* in other cases. All pr_* use __func__ to easily trace message back to rtllib Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib_crypt_ccmp.c | 2 +-

[PATCH v3 28/33] staging: rtl8192e: Replace ?: with max

2015-05-09 Thread Mateusz Kulikowski
Warninig is printed if precision is lost - it can't happen at moment as all get_key implementations return either -1 or small buffers. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib_wx.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v3 27/33] staging: rtl8192e: Replace ?: with min_t

2015-05-09 Thread Mateusz Kulikowski
Replace :? with min_t for readability. Remove check that is always false. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib_softmac_wx.c | 8 +--- drivers/staging/rtl8192e/rtllib_wx.c | 3 +-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git

[PATCH v3 21/33] staging: rtl8192e: Fix LONG_LINE warnings

2015-05-09 Thread Mateusz Kulikowski
Fix most of simple LONG_LINE warnings. None of the changes should affect behaviour of code, so several modifications are included in this patch: - Code is reindented where needed - Local variable names are compacted (priv -> p) - Unnecessary casts are removed - Nested ifs are replaced with logical

[PATCH v3 01/33] staging: rtl8192e: Declare ethernet addresses as __aligned(2)

2015-05-09 Thread Mateusz Kulikowski
Add __aligned(2) into ethernet addresses allocated on stack or in non-packed structures. Use ETH_ALEN as array length in places where it was hardcoded to 6. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 3 ++-

[PATCH v3 12/33] staging: rtl8192e: Remove RTLLIB_DEBUG_(FRAG|EAP|DROP|STATE|TX|RX)()

2015-05-09 Thread Mateusz Kulikowski
Use netdev_dbg() instead. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h| 6 drivers/staging/rtl8192e/rtllib_rx.c | 58 drivers/staging/rtl8192e/rtllib_tx.c | 5 ++-- 3 files changed, 35 insertions(+), 34 deletions(-)

[PATCH v3 19/33] staging: rtl8192e: Remove assert() macro

2015-05-09 Thread Mateusz Kulikowski
Assert macro printed warning message (and was used once). Remove it, and add netdev_warn() in place where it was called. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 5 +++-- drivers/staging/rtl8192e/rtllib_debug.h | 8 2 files changed, 3

[PATCH v3 18/33] staging: rtl8192e: Remove remains of RTLLIB_*_DEBUG() (including proc entry)

2015-05-09 Thread Mateusz Kulikowski
Remove rest of rtllib "debug" system - it is no longer used - proper netdev_* functions are used in most cases. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h| 45 -- drivers/staging/rtl8192e/rtllib_module.c | 55

[PATCH v3 17/33] staging: rtl8192e: Remove RTLLIB_DEBUG_DATA()

2015-05-09 Thread Mateusz Kulikowski
Use print_hex_dump_bytes() if VERBOSE_DEBUG is enabled. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl819x_BAProc.c | 20 drivers/staging/rtl8192e/rtl819x_HTProc.c | 7 +-- drivers/staging/rtl8192e/rtllib.h | 11 ---

[PATCH v3 14/33] staging: rtl8192e: Remove RTLLIB_DEBUG_MGMT()

2015-05-09 Thread Mateusz Kulikowski
- Use netdev_dbg() instead of RTLLIB_DEBUG_MGMT() - Remove RTLLIB_DEBUG_MGMT() - Pass net_device to auth_parse(), auth_rq_parse() and assoc_rq_parse() - Remove duplicated messages Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h | 2 -

[PATCH v3 16/33] staging: rtl8192e: Remove RTLLIB_DEBUG()

2015-05-09 Thread Mateusz Kulikowski
- Use netdev_dbg or netdev_vdbg instead of RTLLIB_DEBUG() - Reformat some messages for better readability - Remove RTLLIB_DEBUG messages that make no sense Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl819x_BAProc.c | 35 +

[PATCH v3 04/33] staging: rtl8192e: Fix DEEP_INDENTATION warning in rtllib_parse_info_param()

2015-05-09 Thread Mateusz Kulikowski
Move MFIE_TYPE_GENERIC handler to rtllib_parse_mife_generic() function. Code was not altered significantly, therefore in some places it generates LONG_LINE checkpatch.pl warnings. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib_rx.c | 364

[PATCH v3 11/33] staging: rtl8192e: Remove RTLLIB_DEBUG_SCAN()

2015-05-09 Thread Mateusz Kulikowski
Use netdev_dbg() instead, remove duplicated logs. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h| 1 - drivers/staging/rtl8192e/rtllib_rx.c | 101 --- drivers/staging/rtl8192e/rtllib_wx.c | 12 +++-- 3 files changed, 54

<    1   2   3   4   5   >