Re: [PATCH v6 4/5] PCI: add PCI controller for keystone PCIe h/w

2014-07-22 Thread Murali Karicheri
On 07/22/2014 11:41 AM, Rob Herring wrote: On Mon, Jul 21, 2014 at 11:39 AM, Murali Karicheri wrote: On 07/20/2014 09:44 PM, Jingoo Han wrote: On Saturday, July 19, 2014 5:29 AM, Murali Karicheri wrote: On 07/18/2014 03:31 PM, Rob Herring wrote: On Fri, Jul 18, 2014 at 10:14 AM, Murali Karic

Re: [PATCH 1/2] resource: Add device-managed request/release_resource()

2014-07-22 Thread Tejun Heo
Hello, On Tue, Jul 22, 2014 at 12:50:02PM -0600, Bjorn Helgaas wrote: > [+cc Tejun, LKML] > > On Fri, Jul 11, 2014 at 09:08:24AM +0200, Thierry Reding wrote: > > From: Thierry Reding > > > > Provide device-managed implementations of the request_resource() and > > release_resource() functions. U

[PATCH 6/8] mm/highmem: make kmap cache coloring aware

2014-07-22 Thread Max Filippov
From: Leonid Yegoshin Provide hooks that allow architectures with aliasing cache to align mapping address of high pages according to their color. Such architectures may enforce similar coloring of low- and high-memory page mappings and reuse existing cache management functions to support highmem.

[PATCH 7/8] xtensa: support aliasing cache in kmap

2014-07-22 Thread Max Filippov
Define ARCH_PKMAP_COLORING and provide corresponding macro definitions on cores with aliasing data cache. Instead of single last_pkmap_nr maintain an array last_pkmap_nr_arr of pkmap counters for each page color. Make sure that kmap maps physical page at virtual address with color matching its phy

Re: [PATCH v6 4/5] PCI: add PCI controller for keystone PCIe h/w

2014-07-22 Thread Murali Karicheri
On 07/22/2014 11:37 AM, Rob Herring wrote: On Fri, Jul 18, 2014 at 2:50 PM, Arnd Bergmann wrote: On Friday 18 July 2014 14:31:39 Rob Herring wrote: + + Example: + pcie_msi_intc: msi-interrupt-controller { + interrupt-controller; + #interrupt-ce

[PATCH 4/8] xtensa: implement clear_user_highpage and copy_user_highpage

2014-07-22 Thread Max Filippov
Existing clear_user_page and copy_user_page cannot be used with highmem because they calculate physical page address from its virtual address and do it incorrectly in case of high memory page mapped with kmap_atomic. Also kmap is not needed, as most likely userspace mapping color would be different

[PATCH 8/8] xtensa: support highmem in aliasing cache flushing code

2014-07-22 Thread Max Filippov
Use __flush_invalidate_dcache_page_alias with alias set to color of the page physical address instead of __flush_invalidate_dcache_page: this works for high memory pages and mapping/unmapping to the TLBTEMP area is virtually free. Allow building configurations with aliasing cache and highmem enabl

[PATCH 5/8] xtensa: support aliasing cache in k[un]map_atomic

2014-07-22 Thread Max Filippov
Map high memory pages at virtual addresses with color that match color of their physical address. Existing cache alias management mechanisms may be used with such pages. Signed-off-by: Max Filippov --- arch/xtensa/include/asm/fixmap.h | 3 ++- arch/xtensa/include/asm/page.h | 2 ++ arch/xten

Re: [RFC][PATCH 0/3] ftrace: Add dynamically allocated trampolines

2014-07-22 Thread Steven Rostedt
On Tue, 22 Jul 2014 18:47:07 +0200 Oleg Nesterov wrote: > On 07/03, Steven Rostedt wrote: > > > > [ NOT READY FOR INCLUSION! ] > > > > Note, this is based off of my remove ftrace_start/stop() patch set. > > So I simply pulled your tree. I can't really comment these changes simply > because I do

[PATCH 2/8] xtensa: allow fixmap and kmap span more than one page table

2014-07-22 Thread Max Filippov
To support aliasing cache both kmap region sizes are multiplied by the number of data cache colors. After that expansion page tables that cover kmap regions may become larger than one page. Correctly allocate and initialize page tables in this case. Signed-off-by: Max Filippov --- arch/xtensa/mm

[PATCH 1/8] xtensa: make fixmap region addressing grow with index

2014-07-22 Thread Max Filippov
It's much easier to reason about alignment and coloring of regions located in the fixmap when fixmap index is just a PFN within the fixmap region. Change fixmap addressing so that index 0 corresponds to FIXADDR_START instead of the FIXADDR_TOP. Signed-off-by: Max Filippov --- arch/xtensa/include

[RFC] 3.16-rc6 -- fs/direct-io.c:1011 from and to uninitialized.

2014-07-22 Thread Ian Kumlien
This is a resend, try two... --- Hi, While playing around compiling the kernel i noticed the following: fs/direct-io.c: In function ‘do_blockdev_direct_IO’: fs/direct-io.c:1022:29: warning: ‘from’ may be used uninitialized in this function [-Wmaybe-uninitialized] ret = submit_page_section(di

[PATCH 3/8] xtensa: fix TLBTEMP_BASE_2 region handling in fast_second_level_miss

2014-07-22 Thread Max Filippov
Current definition of TLBTEMP_BASE_2 is always 32K above the TLBTEMP_BASE_1, whereas fast_second_level_miss handler for the TLBTEMP region analyzes virtual address bit (PAGE_SHIFT + DCACHE_ALIAS_ORDER) to determine TLBTEMP region where the fault happened. The size of the TLBTEMP region is also chec

[PATCH 0/8] xtensa: highmem support on cores with aliasing cache

2014-07-22 Thread Max Filippov
Hi, this series implements highmem support on xtensa cores with aliasing cache. It does so by making sure that high memory pages are always mapped at virtual addresses with color that match color of their physical address. This involves changing the generic kmap code to make it aware of cache col

Re: [PATCH 13/52] perf tools: Add perf_pmu__scan_file()

2014-07-22 Thread Jiri Olsa
On Tue, Jul 22, 2014 at 04:17:22PM +0300, Adrian Hunter wrote: SNIP > + > +static FILE *perf_pmu__open_file(struct perf_pmu *pmu, const char *name) > +{ > + struct stat st; > + char path[PATH_MAX]; > + const char *sysfs; > + > + sysfs = sysfs__mountpoint(); > + if (!sysfs) > +

Re: [RFC] 3.16-rc6 -- fs/direct-io.c:1011 from and to uninitialized.

2014-07-22 Thread Richard Weinberger
On Tue, Jul 22, 2014 at 9:03 PM, Ian Kumlien wrote: > This is a resend, try two... Please see "[PATCH v3] direct-io: fix uninitialized warning in do_direct_IO()". > --- > Hi, > > While playing around compiling the kernel i noticed the following: > fs/direct-io.c: In function ‘do_blockdev_direct_

Re: [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Jesse Barnes
On Tue, 22 Jul 2014 17:48:18 +0200 Daniel Vetter wrote: > On Tue, Jul 22, 2014 at 5:42 PM, Alex Deucher wrote: > >> Fence-based syncing between userspace queues submitted stuff through > >> doorbells and anything submitted by the general simply wont work. > >> Which is why I think the doorbell i

Re: [RFC] 3.16-rc6 -- fs/direct-io.c:1011 from and to uninitialized.

2014-07-22 Thread Ian Kumlien
On tis, 2014-07-22 at 21:12 +0200, Richard Weinberger wrote: > On Tue, Jul 22, 2014 at 9:03 PM, Ian Kumlien wrote: > > This is a resend, try two... > > Please see "[PATCH v3] direct-io: fix uninitialized warning in > do_direct_IO()". That looks like a better approach, couldn't find it before i

Re: [PATCH] edac: Remove fixmes in e7xxx_edac.c

2014-07-22 Thread Randy Dunlap
On 07/22/2014 11:25 AM, Nick Krause wrote: > On Tue, Jul 22, 2014 at 2:14 PM, Levente Kurusa wrote: >> 2014-07-22 19:40 GMT+02:00 Nick Krause : >>> [...] >>> >>> Tony, >>> >>> What is the value of Page shift then ? If you can tell me it would be >>> much easier for >>> me to fix this. >>> Cheers N

Re: [RFC] 3.16-rc6 -- fs/direct-io.c:1011 from and to uninitialized.

2014-07-22 Thread Randy Dunlap
On 07/22/2014 12:03 PM, Ian Kumlien wrote: > This is a resend, try two... > > --- > Hi, > > While playing around compiling the kernel i noticed the following: > fs/direct-io.c: In function ‘do_blockdev_direct_IO’: > fs/direct-io.c:1022:29: warning: ‘from’ may be used uninitialized in > this func

[PATCH] PNPACPI: check return value of pnpacpi_parse_allocated_resource() and pnpacpi_parse_resource_option_data()

2014-07-22 Thread Arjun Sreedharan
Handle error condition since pnpacpi_parse_allocated_resource() and pnpacpi_parse_resource_option_data() could return -EPERM. Signed-off-by: Arjun Sreedharan --- drivers/pnp/pnpacpi/core.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/pnp/pnpacpi/core.c b/d

Re: [PATCH 17/52] perf evlist: Add perf_evlist__set_tracking_event()

2014-07-22 Thread Jiri Olsa
On Tue, Jul 22, 2014 at 04:17:26PM +0300, Adrian Hunter wrote: SNIP > } > + > +int perf_evlist__set_tracking_event(struct perf_evlist *evlist, > + struct perf_evsel *tracking_evsel) > +{ > + struct perf_evsel *evsel; > + > + if (tracking_evsel->idx == 0) >

Re: [PATH v2] mxc_nand: use our own read_page function

2014-07-22 Thread Brian Norris
Hi Michael, On Tue, Jul 22, 2014 at 12:09:54PM +0200, Michael Grzeschik wrote: > I think your hints all make sense. I was poking around with the > functions we have and need to asign. Unfortunetly I ran into no clear > picture to fix it the correct way and came up with this hacky patch. Your patc

Re: checkpatch.pl false positive

2014-07-22 Thread Joe Perches
On Tue, 2014-07-22 at 17:30 +, Hartley Sweeten wrote: > Joe, > > I think this is a false positive, at least the check message appears > incorrect: > > CHECK: No space is necessary after a cast > #66: FILE: arch/arm/mach-ep93xx/include/mach/platform.h:66: > +static inline int crunch_init(void

Re: [RFC] 3.16-rc6 -- fs/direct-io.c:1011 from and to uninitialized.

2014-07-22 Thread Ian Kumlien
On tis, 2014-07-22 at 12:20 -0700, Randy Dunlap wrote: > On 07/22/2014 12:03 PM, Ian Kumlien wrote: > > This is a resend, try two... > > > > And while the fix is simple, something along the lines of: > > diff --git a/fs/direct-io.c b/fs/direct-io.c > > index 98040ba..64a8286 100644 > > --- a/fs/d

[PATCH v2 0/7] arm: dts: oma3-gta04: Various updates

2014-07-22 Thread Marek Belisko
Following patchset add various improvements to gta04 devicetree. Changes from v1: - added description to all patches Marek Belisko (7): arm: dts: omap3-gta04: Add nand support arm: dts: omap3-gta04: Fix magnetometer model arm: dts: omap3-gta04: Add wifi reset node arm: dts: omap3-gta04: M

[PATCH v2 1/7] arm: dts: omap3-gta04: Add nand support

2014-07-22 Thread Marek Belisko
Add the needed sections to enable nand support on gta04 board. Add nand partitions information. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dts | 54 +++ 1 file changed, 54 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dts b/ar

[PATCH v2 2/7] arm: dts: omap3-gta04: Fix magnetometer model

2014-07-22 Thread Marek Belisko
gta04 is using hmc5843l not hmc5843 so fix wrong compatible entry. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/omap3-gta04.dts b/arch/arm/boot/dts/omap3-gta04.dts index 7d7ddd7..6d1a8d8

[PATCH v2 6/7] arm: dts: omap3-gta04: Add display alias

2014-07-22 Thread Marek Belisko
Define alias for lcd display present on gta04 board. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dts b/arch/arm/boot/dts/omap3-gta04.dts index 370c08b..05fd4d2 100644 --- a/arch/arm/boot

[PATCH v2 5/7] arm: dts: omap3-gta04: Add USB host support

2014-07-22 Thread Marek Belisko
Define USB Host port mode and the PHY device. Also provide pin multiplexer information for USB host pins. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dts | 45 +++ 1 file changed, 45 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04

[PATCH v2 7/7] arm: dts: omap3-gta04: Add twl4030 regulators parameters

2014-07-22 Thread Marek Belisko
Define voltages and properties for various twl4030 regulators used on gta04 board. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dts | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dts b/arch/arm/boot/dts/omap3-gta04

[PATCH v2 3/7] arm: dts: omap3-gta04: Add wifi reset node

2014-07-22 Thread Marek Belisko
Define gpio node in tca6507 which will be used as wifi reset pin. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dts b/arch/arm/boot/dts/omap3-gta04.dts index 6d1a8d8..5b08d93 100644 --

[PATCH v2 4/7] arm: dts: omap3-gta04: Move spi gpio pins to pmx_core2

2014-07-22 Thread Marek Belisko
Because of commit: 3d495383648a7cda3ea51a1e2fa5d288581479aa spi_gpio_pins node isn't valid anymore. Move to pmx_core2 node. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dts | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/omap3-g

Re: [PATCH] edac: Remove fixmes in e7xxx_edac.c

2014-07-22 Thread Steven Rostedt
On Tue, Jul 22, 2014 at 02:25:24PM -0400, Nick Krause wrote: > > I understand what your saying and I should have searched for Page shift. > In addition I am already got commits in the kernel for fix mes so I feel > that your comment on fix mes is incorrect. After seeing your other solutions to "f

Re: [RFC PATCH 2/5] futex: add optimistic spinning to FUTEX_SPIN_LOCK

2014-07-22 Thread Waiman Long
On 07/21/2014 04:17 PM, Jason Low wrote: On Mon, 2014-07-21 at 11:24 -0400, Waiman Long wrote: This patch adds code to do optimistic spinning for the FUTEX_SPIN_LOCK primitive on the futex value when the lock owner is running. It is the same optimistic spinning technique that is done in the mute

Re: [PATCH 6/8] mm/highmem: make kmap cache coloring aware

2014-07-22 Thread Leonid Yegoshin
On 07/22/2014 12:01 PM, Max Filippov wrote: From: Leonid Yegoshin Provide hooks that allow architectures with aliasing cache to align mapping address of high pages according to their color. Such architectures may enforce similar coloring of low- and high-memory page mappings and reuse existing

Re: [RFC PATCH 0/5] futex: introduce an optimistic spinning futex

2014-07-22 Thread Waiman Long
On 07/21/2014 05:18 PM, Ingo Molnar wrote: * Waiman Long wrote: Testing done on a 4-socket Westmere-EX boxes with 40 cores (HT off) showed the following performance data (average kops/s) with various load factor (number of pause instructions) used in the critical section using an userspace mut

Re: [PATCH v3 0/8] Two-phase seccomp and x86 tracing changes

2014-07-22 Thread Kees Cook
On Mon, Jul 21, 2014 at 6:49 PM, Andy Lutomirski wrote: > [applies on jmorris's security-next tree] > > This is both a cleanup and a speedup. It reduces overhead due to > installing a trivial seccomp filter by 87%. The speedup comes from > avoiding the full syscall tracing mechanism for filters

Re: [RFC] sched_clock: Track monotonic raw clock

2014-07-22 Thread Richard Cochran
On Tue, Jul 22, 2014 at 05:17:29PM +0100, Pawel Moll wrote: > That approach has been also discussed, last time in the mentioned > thread: > > http://thread.gmane.org/gmane.linux.kernel/1611683/focus=1612554 > http://thread.gmane.org/gmane.linux.kernel/1611683/focus=1612554 > > With both Ingo and

Re: [PATCH 3/7] security: introduce kernel_fw_from_file hook

2014-07-22 Thread Luis R. Rodriguez
On Mon, Jul 14, 2014 at 3:31 PM, Kees Cook wrote: > On Mon, Jul 14, 2014 at 3:24 PM, Luis R. Rodriguez wrote: >> On Mon, Jul 14, 2014 at 02:38:13PM -0700, Kees Cook wrote: >>> +int security_kernel_fw_from_file(struct file *file, char *buf, size_t size) >>> +{ >>> + return security_ops->kernel

[BUG?] 3.16-rc6 ... at drivers/gpu/drm/i915/intel_pm.c:5997 intel_display_power_put+0x12d/0x160()

2014-07-22 Thread Ian Kumlien
Hi again, Playing some more with the new kernel release i noticed this: [ 9064.008821] WARNING: CPU: 3 PID: 22929 at drivers/gpu/drm/i915/intel_pm.c:5997 intel_display_power_put+0x12d/0x160() [ 9064.008822] Modules linked in: uas bnep b43 mac80211 cfg80211 snd_hda_codec_hdmi btusb bluetooth 6lo

RE: checkpatch.pl false positive

2014-07-22 Thread Hartley Sweeten
On Tuesday, July 22, 2014 12:23 PM, Joe Perches wrote: > On Tue, 2014-07-22 at 17:30 +, Hartley Sweeten wrote: >> Joe, >> >> I think this is a false positive, at least the check message appears >> incorrect: >> >> CHECK: No space is necessary after a cast >> #66: FILE: arch/arm/mach-ep93xx/in

Re: [PATCH 6/8] mm/highmem: make kmap cache coloring aware

2014-07-22 Thread Max Filippov
On Tue, Jul 22, 2014 at 11:35 PM, Leonid Yegoshin wrote: > On 07/22/2014 12:01 PM, Max Filippov wrote: >> >> From: Leonid Yegoshin >> >> Provide hooks that allow architectures with aliasing cache to align >> mapping address of high pages according to their color. Such architectures >> may enforce

Re: [PATCH v2 2/7] arm: dts: omap3-gta04: Fix magnetometer model

2014-07-22 Thread Peter Meerwald
> gta04 is using hmc5843l not hmc5843 so fix wrong compatible > entry. I guess you mean hmc5883l > Signed-off-by: Marek Belisko > --- > arch/arm/boot/dts/omap3-gta04.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/omap3-gta04.dts > b/arch/arm/b

Re: [PATCH 2/2] libata: Fix NULL pointer of scsi_host in ata_port

2014-07-22 Thread Peter Hurley
[ +cc Jesse Brandeburg - similar LKML report (but on x86_64) ] On 07/22/2014 10:51 AM, Mike Qiu wrote: > In ata_sas_port_alloc(), it haven't initialized scsi_host field in > ata_port, although scsi_host is in parameters list and unused in this > function. > > With commit 1871ee134b73 ("libata: su

Re: PANIC: ata_qc_new_init crashes at boot

2014-07-22 Thread Peter Hurley
[ +cc Tejun ] On 07/22/2014 03:26 PM, Jesse Brandeburg wrote: > This is a repeatable panic, happens every boot (and prevents starting my > system) > > .config attached, built from commit 15ba2236f3556fc01b9ca91394465152b5ea74b6 > > > > [8.732993] sd 6:0:1:0: [sdb] Attached SCSI disk > [

[PATCH v8 14/22] ext2: Remove ext2_xip_verify_sb()

2014-07-22 Thread Matthew Wilcox
Jan Kara pointed out that calling ext2_xip_verify_sb() in ext2_remount() doesn't make sense, since changing the XIP option on remount isn't allowed. It also doesn't make sense to re-check whether blocksize is supported since it can't change between mounts. Replace the call to ext2_xip_verify_sb()

[PATCH v8 11/22] Replace xip_truncate_page with dax_truncate_page

2014-07-22 Thread Matthew Wilcox
It takes a get_block parameter just like nobh_truncate_page() and block_truncate_page() Signed-off-by: Matthew Wilcox --- fs/dax.c | 44 fs/ext2/inode.c| 2 +- include/linux/fs.h | 4 ++-- mm/filemap_xip.c | 40 --

[PATCH v8 09/22] Replace ext2_clear_xip_target with dax_clear_blocks

2014-07-22 Thread Matthew Wilcox
This is practically generic code; other filesystems will want to call it from other places, but there's nothing ext2-specific about it. Make it a little more generic by allowing it to take a count of the number of bytes to zero rather than fixing it to a single page. Thanks to Dave Hansen for sug

[PATCH v8 22/22] brd: Rename XIP to DAX

2014-07-22 Thread Matthew Wilcox
From: Matthew Wilcox Since this is relating to FS_XIP, not KERNEL_XIP, it should be called DAX instead of XIP. Signed-off-by: Matthew Wilcox --- drivers/block/Kconfig | 13 +++-- drivers/block/brd.c | 14 +++--- fs/Kconfig| 4 ++-- 3 files changed, 16 insertions(

[PATCH v8 00/22] Support ext4 on NV-DIMMs

2014-07-22 Thread Matthew Wilcox
One of the primary uses for NV-DIMMs is to expose them as a block device and use a filesystem to store files on the NV-DIMM. While that works, it currently wastes memory and CPU time buffering the files in the page cache. We have support in ext2 for bypassing the page cache, but it has some races

Re: [PATCH] agp: remove read/write stubs

2014-07-22 Thread Mathias Krause
On 9 July 2014 08:52, Mathias Krause wrote: > On 9 July 2014 00:48, Dave Airlie wrote: >> On 2 July 2014 16:15, Mathias Krause wrote: >>> On 15 June 2014 23:02, Mathias Krause wrote: The VFS layer handles those in the very same way, if unset. No need for additional stubs. Si

[PATCH v8 07/22] Add copy_to_iter(), copy_from_iter() and iov_iter_zero()

2014-07-22 Thread Matthew Wilcox
From: Matthew Wilcox For DAX, we want to be able to copy between iovecs and kernel addresses that don't necessarily have a struct page. This is a fairly simple rearrangement for bvec iters to kmap the pages outside and pass them in, but for user iovecs it gets more complicated because we might t

[PATCH v8 02/22] Allow page fault handlers to perform the COW

2014-07-22 Thread Matthew Wilcox
Currently COW of an XIP file is done by first bringing in a read-only mapping, then retrying the fault and copying the page. It is much more efficient to tell the fault handler that a COW is being attempted (by passing in the pre-allocated page in the vm_fault structure), and allow the handler to

Re: [PATCH v2 2/7] arm: dts: omap3-gta04: Fix magnetometer model

2014-07-22 Thread Belisko Marek
On Tue, Jul 22, 2014 at 9:46 PM, Peter Meerwald wrote: > >> gta04 is using hmc5843l not hmc5843 so fix wrong compatible >> entry. > > I guess you mean hmc5883l Ah right. Thanks. I'll post update version. > >> Signed-off-by: Marek Belisko >> --- >> arch/arm/boot/dts/omap3-gta04.dts | 2 +- >> 1 f

[PATCH v8 06/22] Introduce IS_DAX(inode)

2014-07-22 Thread Matthew Wilcox
Use an inode flag to tag inodes which should avoid using the page cache. Convert ext2 to use it instead of mapping_is_xip(). Signed-off-by: Matthew Wilcox Reviewed-by: Jan Kara --- fs/ext2/inode.c| 9 ++--- fs/ext2/xip.h | 2 -- include/linux/fs.h | 6 ++ 3 files changed, 12 in

[PATCH v8 03/22] axonram: Fix bug in direct_access

2014-07-22 Thread Matthew Wilcox
The 'pfn' returned by axonram was completely bogus, and has been since 2008. Signed-off-by: Matthew Wilcox Reviewed-by: Jan Kara --- arch/powerpc/sysdev/axonram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/sysdev/axonram.c b/arch/powerpc/sysdev/axonram.c in

[PATCH v8 15/22] ext2: Remove ext2_use_xip

2014-07-22 Thread Matthew Wilcox
Replace ext2_use_xip() with test_opt(XIP) which expands to the same code Signed-off-by: Matthew Wilcox --- fs/ext2/ext2.h | 4 fs/ext2/inode.c | 2 +- fs/ext2/namei.c | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/fs/ext2/ext2.h b/fs/ext2/ext2.h index d9a17d0..5ec

[PATCH v8 01/22] Fix XIP fault vs truncate race

2014-07-22 Thread Matthew Wilcox
Pagecache faults recheck i_size after taking the page lock to ensure that the fault didn't race against a truncate. We don't have a page to lock in the XIP case, so use the i_mmap_mutex instead. It is locked in the truncate path in unmap_mapping_range() after updating i_size. So while we hold it

[PATCH v8 13/22] Remove get_xip_mem

2014-07-22 Thread Matthew Wilcox
All callers of get_xip_mem() are now gone. Remove checks for it, initialisers of it, documentation of it and the only implementation of it. Also remove mm/filemap_xip.c as it is now empty. Signed-off-by: Matthew Wilcox --- Documentation/filesystems/Locking | 3 --- fs/exofs/inode.c

[PATCH v8 08/22] Replace XIP read and write with DAX I/O

2014-07-22 Thread Matthew Wilcox
Use the generic AIO infrastructure instead of custom read and write methods. In addition to giving us support for AIO, this adds the missing locking between read() and truncate(). Signed-off-by: Matthew Wilcox Reviewed-by: Ross Zwisler Reviewed-by: Jan Kara --- fs/Makefile| 1 + fs/

[PATCH v8 18/22] ext2: Remove ext2_aops_xip

2014-07-22 Thread Matthew Wilcox
We shouldn't need a special address_space_operations any more Signed-off-by: Matthew Wilcox --- fs/ext2/ext2.h | 1 - fs/ext2/inode.c | 7 +-- fs/ext2/namei.c | 4 ++-- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/fs/ext2/ext2.h b/fs/ext2/ext2.h index b30c3bd..b8b1c11 1006

[PATCH v8 12/22] Replace XIP documentation with DAX documentation

2014-07-22 Thread Matthew Wilcox
From: Matthew Wilcox Based on the original XIP documentation, this documents the current state of affairs, and includes instructions on how users can enable DAX if their devices and kernel support it. Signed-off-by: Matthew Wilcox Reviewed-by: Randy Dunlap --- Documentation/filesystems/dax.tx

[PATCH v8 17/22] Remove CONFIG_EXT2_FS_XIP and rename CONFIG_FS_XIP to CONFIG_FS_DAX

2014-07-22 Thread Matthew Wilcox
The fewer Kconfig options we have the better. Use the generic CONFIG_FS_DAX to enable XIP support in ext2 as well as in the core. Signed-off-by: Matthew Wilcox --- fs/Kconfig | 21 ++--- fs/Makefile| 2 +- fs/ext2/Kconfig| 11 --- fs/ext2/ext2.h

[PATCH v8 20/22] xip: Add xip_zero_page_range

2014-07-22 Thread Matthew Wilcox
This new function allows us to support hole-punch for XIP files by zeroing a partial page, as opposed to the xip_truncate_page() function which can only truncate to the end of the page. Reimplement xip_truncate_page() as a macro that calls xip_zero_page_range(). Signed-off-by: Matthew Wilcox [po

[PATCH v8 10/22] Replace the XIP page fault handler with the DAX page fault handler

2014-07-22 Thread Matthew Wilcox
Instead of calling aops->get_xip_mem from the fault handler, the filesystem passes a get_block_t that is used to find the appropriate blocks. Signed-off-by: Matthew Wilcox Reviewed-by: Jan Kara --- fs/dax.c | 221 + fs/ext2/file.c

[PATCH v8 19/22] Get rid of most mentions of XIP in ext2

2014-07-22 Thread Matthew Wilcox
To help people transition, accept the 'xip' mount option (and report it in /proc/mounts), but print a message encouraging people to switch over to the 'dax' option. --- fs/ext2/ext2.h | 13 +++-- fs/ext2/file.c | 2 +- fs/ext2/inode.c | 6 +++--- fs/ext2/namei.c | 8 fs/ext2/

[PATCH v8 05/22] Add vm_replace_mixed()

2014-07-22 Thread Matthew Wilcox
From: Matthew Wilcox vm_insert_mixed() will fail if there is already a valid PTE at that location. The DAX code would rather replace the previous value with the new PTE. Signed-off-by: Matthew Wilcox --- include/linux/mm.h | 8 ++-- mm/memory.c| 34 +--

[PATCH v8 21/22] ext4: Add DAX functionality

2014-07-22 Thread Matthew Wilcox
From: Ross Zwisler This is a port of the DAX functionality found in the current version of ext2. Signed-off-by: Ross Zwisler Reviewed-by: Andreas Dilger [heavily tweaked] Signed-off-by: Matthew Wilcox --- Documentation/filesystems/dax.txt | 1 + Documentation/filesystems/ext4.txt | 2 ++

[PATCH v8 04/22] Change direct_access calling convention

2014-07-22 Thread Matthew Wilcox
In order to support accesses to larger chunks of memory, pass in a 'size' parameter (counted in bytes), and return the amount available at that address. Support partitioning the underlying block device through a new helper function, bdev_direct_access(), since partition handling should be done in

[PATCH v8 16/22] ext2: Remove xip.c and xip.h

2014-07-22 Thread Matthew Wilcox
These files are now empty, so delete them Signed-off-by: Matthew Wilcox --- fs/ext2/Makefile | 1 - fs/ext2/inode.c | 1 - fs/ext2/namei.c | 1 - fs/ext2/super.c | 1 - fs/ext2/xip.c| 15 --- fs/ext2/xip.h| 16 6 files changed, 35 deletions(-) delete

Re: [PATCH] PCI: Add device specific (non)reset for AMD GPUs

2014-07-22 Thread Bjorn Helgaas
On Wed, Jul 16, 2014 at 01:14:08PM -0600, Alex Williamson wrote: > There are numerous ATI/AMD GPUs available that report that they > support a PM reset (NoSoftRst-) but for which such a reset has no > apparent effect on the device. These devices continue to display the > same framebuffer across PM

[PATCH v2 2/7] arm: dts: omap3-gta04: Fix magnetometer model

2014-07-22 Thread Marek Belisko
gta04 is using hmc5883l not hmc5843 so fix wrong compatible entry. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/omap3-gta04.dts b/arch/arm/boot/dts/omap3-gta04.dts index 7d7ddd7..4067495

Re: [PATCH v8 02/11] power: reset: Add reboot driver for brcmstb

2014-07-22 Thread Brian Norris
On Tue, Jul 22, 2014 at 09:28:39AM +0200, Arnd Bergmann wrote: > On Monday 21 July 2014 14:07:57 Brian Norris wrote: > > diff --git a/arch/arm/mach-bcm/Kconfig b/arch/arm/mach-bcm/Kconfig > > index 0073633e7699..9782e8d80647 100644 > > --- a/arch/arm/mach-bcm/Kconfig > > +++ b/arch/arm/mach-bcm/Kco

[PATCH] staging: lustre: Fix sparse warnings

2014-07-22 Thread Matt Kurz
Declare several functions and variables as static in order to address the following sparse warnings drivers/staging/lustre/lnet/lnet/acceptor.c:49:3: warning: symbol 'lnet_acceptor_state' was not declared. Should it be static? drivers/staging/lustre/lnet/lnet/acceptor.c:79:1: warning: symbol 'ln

[PATCH 2/5] staging: vt6655:fix warning for unexported non-static functions

2014-07-22 Thread Guillaume Clement
There is one function in aes_ccmp.c which is exported, but sparse sees it unexported because it doesn't include the header that exports it. Signed-off-by: Guillaume Clement --- drivers/staging/vt6655/aes_ccmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/vt6655/aes_ccmp.c

Re: [RFC 2/2] prctl: PR_SET_MM -- Introduce PR_SET_MM_MAP operation

2014-07-22 Thread Kees Cook
On Fri, Jul 11, 2014 at 10:36 AM, Cyrill Gorcunov wrote: > On Wed, Jul 09, 2014 at 07:06:04PM +0400, Cyrill Gorcunov wrote: >> >> Thanks a lot for comments, Kees! I tend to agre, leaving off the @prctl_map >> variable out of macros should make code also shorter, I'll update that's >> not the probl

[PATCH] staging: cxt1e1: Fix static symbol sparse warnings for global vars in linux.c

2014-07-22 Thread Jeff Oczek
Put extern declarations in cxt1e1_common.h to reduce sparse warnings for linux.c: drivers/staging/cxt1e1/linux.c:86:13: warning: symbol 'error_flag' was not declared. Should it be static? drivers/staging/cxt1e1/linux.c:91:13: warning: symbol 'cxt1e1_max_mru' was not declared. Should it be stat

[PATCH 4/5] staging: vt6655: remove unused functions

2014-07-22 Thread Guillaume Clement
The IEEE11hbMgrRxAction is not exported and never used. Deleting it allows to delete other functions that were only used by IEEE11hbMgrRxAction. This allows to fix several warnings reported by sparse. Signed-off-by: Guillaume Clement --- drivers/staging/vt6655/IEEE11h.c | 175 --

[PATCH 5/5] staging: vt6655: Fix unused function warning

2014-07-22 Thread Guillaume Clement
Sparse reports that MimeThread is not used. Actually, it can be used if THREAD is defined. By enclosing the MimeThread function into the same #ifdef as the caller of MimeThread, this fixes the sparse warnings. Signed-off-by: Guillaume Clement --- drivers/staging/vt6655/device_main.c | 6 +-

[PATCH 3/5] staging: vt6655: statify some variables

2014-07-22 Thread Guillaume Clement
Some variables are used only in the context of their .c file, which gives warnings with sparse. Signed-off-by: Guillaume Clement --- drivers/staging/vt6655/baseband.c| 14 +++--- drivers/staging/vt6655/bssdb.c | 4 ++-- drivers/staging/vt6655/card.c| 6 +++--- drivers

[PATCH 1/5] staging: vt6655: change type of PortOffset to void __iomem *

2014-07-22 Thread Guillaume Clement
PortOffset was an unsigned long, but used as an pointer to io memory. Sometimes it was not properly cast before use, which caused many warning by sparse. By updating its type to void __iomem *, and reflecting the changes where it is needed, this removes most of those warnings. Signed-off-by: Guil

Re: [PATCH 2/2] libata: Fix NULL pointer of scsi_host in ata_port

2014-07-22 Thread Tejun Heo
Hello, Can you please test the following patch? diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index d19c37a7..773f4e6 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -4798,9 +4798,8 @@ void swap_buf_le16(u16 *buf, unsigned int buf_words) static stru

[PATCH 0/5] staging: vt6655: fix sparse issues

2014-07-22 Thread Guillaume Clement
Those patches fix warnings reported by sparse on the vt6655 driver. This will allow to more easily find real errors with sparse later if one appears. Note that checkpatch does return an error for patch 1 and 2 (line over 80 characters) but the line length was not increased by this patch. If neede

Re: [PATCH v5 1/3] arm64: ptrace: reload a syscall number after ptrace operations

2014-07-22 Thread Kees Cook
On Tue, Jul 22, 2014 at 2:14 AM, AKASHI Takahiro wrote: > Arm64 holds a syscall number in w8(x8) register. Ptrace tracer may change > its value either to: > * any valid syscall number to alter a system call, or > * -1 to skip a system call > > This patch implements this behavior by reloading t

Re: [PATCH v5 0/3] arm64: Add seccomp support

2014-07-22 Thread Kees Cook
On Tue, Jul 22, 2014 at 2:14 AM, AKASHI Takahiro wrote: > (Please apply this patch after my audit patch in order to avoid some > conflict on arm64/Kconfig.) > > This patch enables secure computing (system call filtering) on arm64. > System calls can be allowed or denied by loaded bpf-style rules.

Re: [PATCH] staging: cxt1e1: Fix static symbol sparse warnings for global vars in linux.c

2014-07-22 Thread Greg KH
On Tue, Jul 22, 2014 at 04:07:51PM -0400, Jeff Oczek wrote: > Put extern declarations in cxt1e1_common.h to reduce sparse warnings for > linux.c: > drivers/staging/cxt1e1/linux.c:86:13: warning: > symbol 'error_flag' was not declared. Should it be static? > drivers/staging/cxt1e1/linux.c:91:13:

Re: [PATCH 3/5] gpio: make gpiochip_get_desc() gpiolib-private

2014-07-22 Thread Guenter Roeck
On Tue, Jul 22, 2014 at 04:17:41PM +0900, Alexandre Courbot wrote: > As GPIO descriptors are not going to remain unique anymore, having this > function public is not safe. Restrain its use to gpiolib since we have > no user outside of it. > If I implement a gpio chip driver built as module, and I

Re: [RFC PATCH 0/5] futex: introduce an optimistic spinning futex

2014-07-22 Thread Waiman Long
On 07/21/2014 09:01 PM, Thomas Gleixner wrote: On Mon, 21 Jul 2014, Darren Hart wrote: On 7/21/14, 14:47, "Thomas Gleixner" wrote: On Mon, 21 Jul 2014, Andy Lutomirski wrote: On Mon, Jul 21, 2014 at 2:27 PM, Peter Zijlstra wrote: All this is predicated on the fact that syscalls are 'expensi

Re: [PATCH] PCI: Add device specific (non)reset for AMD GPUs

2014-07-22 Thread Alex Williamson
On Tue, 2014-07-22 at 13:55 -0600, Bjorn Helgaas wrote: > On Wed, Jul 16, 2014 at 01:14:08PM -0600, Alex Williamson wrote: > > There are numerous ATI/AMD GPUs available that report that they > > support a PM reset (NoSoftRst-) but for which such a reset has no > > apparent effect on the device. Th

Re: [RFC PATCH 0/5] futex: introduce an optimistic spinning futex

2014-07-22 Thread Waiman Long
On 07/22/2014 05:59 AM, Thomas Gleixner wrote: On Tue, 22 Jul 2014, Peter Zijlstra wrote: On Tue, Jul 22, 2014 at 10:39:17AM +0200, Thomas Gleixner wrote: On Tue, 22 Jul 2014, Peter Zijlstra wrote: Anyway, there is one big fail in the entire futex stack that we 'need' to sort some day and that

Re: [PATCH v2] ipv4: Make IP_MULTICAST_ALL and IP_MSFILTER work on raw sockets

2014-07-22 Thread David Miller
From: Quentin Armitage Date: Tue, 22 Jul 2014 09:10:10 +0100 > Currently, although IP_MULTICAST_ALL and IP_MSFILTER ioctl calls succeed on > raw sockets, there is no code to implement the functionality on received > packets; it is only implemented for UDP sockets. The raw(7) man page states: > "I

Re: [PATCH 00/15] atmel_mxt_ts - device tree, bootloader, etc

2014-07-22 Thread Stephen Warren
On 07/03/2014 09:01 AM, nick.d...@itdev.co.uk wrote: > Hi Dimitry- > > Here is another set of atmel_mxt_ts patches for upstream. There are some > really useful new features, but I hope nothing too controversial. Unfortunately, I still can't get these to work on my system. Per your "Re: atmel_mxt

Re: [PATCH v4 2/5] random: Add and use arch_get_rng_seed

2014-07-22 Thread Theodore Ts'o
On Thu, Jul 17, 2014 at 11:22:17AM -0700, Andy Lutomirski wrote: > Currently, init_std_data contains its own logic for using arch > random sources. This logic is a bit strange: it reads one long of > arch random data per byte of internal state. This isn't true. Check out the init_std_data() a bi

Re: [RFC 2/2] prctl: PR_SET_MM -- Introduce PR_SET_MM_MAP operation

2014-07-22 Thread Cyrill Gorcunov
On Tue, Jul 22, 2014 at 01:07:51PM -0700, Kees Cook wrote: > On Fri, Jul 11, 2014 at 10:36 AM, Cyrill Gorcunov wrote: > > On Wed, Jul 09, 2014 at 07:06:04PM +0400, Cyrill Gorcunov wrote: > >> > >> Thanks a lot for comments, Kees! I tend to agre, leaving off the @prctl_map > >> variable out of macr

Re: [PATCH 04/15] Input: atmel_mxt_ts - implement device tree support

2014-07-22 Thread Stephen Warren
On 07/03/2014 09:01 AM, nick.d...@itdev.co.uk wrote: > From: Stephen Warren > diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt > b/Documentation/devicetree/bindings/input/atmel,maxtouch.txt > + touch@4b { > + compatible = "atmel,maxtouch"; > +

Re: [PATCH RESEND] spin_lock_*(): Always evaluate second argument

2014-07-22 Thread Andrew Morton
On Tue, 22 Jul 2014 09:17:45 +0200 Bart Van Assche wrote: > Evaluating a macro argument only if certain configuration options > have been selected is confusing and error-prone. Hence always > evaluate the second argument of spin_lock_nested() and > spin_lock_nest_lock(). > > An intentional side

Re: [PATCH v8 00/11] ARM: brcmstb: Add Broadcom STB SoC support

2014-07-22 Thread Brian Norris
+ Sebastian On Tue, Jul 22, 2014 at 09:35:45AM +0200, Arnd Bergmann wrote: > On Monday 21 July 2014 14:07:55 Brian Norris wrote: > > I'm taking over the latest resubmission of this patch series. > > There are a few moderate changes for v8 (noted below), but we > > are waiting mostly for an Ack for

Re: [PATCH v4 2/5] random: Add and use arch_get_rng_seed

2014-07-22 Thread Andy Lutomirski
On Tue, Jul 22, 2014 at 6:59 AM, Theodore Ts'o wrote: > On Thu, Jul 17, 2014 at 11:22:17AM -0700, Andy Lutomirski wrote: >> Currently, init_std_data contains its own logic for using arch >> random sources. This logic is a bit strange: it reads one long of >> arch random data per byte of internal

Re: [RFC PATCH 0/5] futex: introduce an optimistic spinning futex

2014-07-22 Thread Thomas Gleixner
On Tue, 22 Jul 2014, Waiman Long wrote: > On 07/22/2014 05:59 AM, Thomas Gleixner wrote: > > On Tue, 22 Jul 2014, Peter Zijlstra wrote: > > > On Tue, Jul 22, 2014 at 10:39:17AM +0200, Thomas Gleixner wrote: > > > > On Tue, 22 Jul 2014, Peter Zijlstra wrote: > > > > > Anyway, there is one big fail

<    2   3   4   5   6   7   8   9   10   11   >