[PATCHv9 02/32] mm: do not pass mm_struct into handle_mm_fault

2016-06-06 Thread Kirill A. Shutemov
We always have vma->vm_mm around. Signed-off-by: Kirill A. Shutemov --- arch/alpha/mm/fault.c | 2 +- arch/arc/mm/fault.c | 2 +- arch/arm/mm/fault.c | 2 +- arch/arm64/mm/fault.c | 2 +- arch/avr32/mm/fault.c | 2 +- arch/cris/mm/fault.c

Re: kmemleak report after 9082e87bfbf8 ("block: remove struct bio_batch")

2016-06-06 Thread Christoph Hellwig
Hi Catalin, I've got a few reports of this over the weekend, but it still doesn't make much sense to me. Could it be that kmemleak can't deal with the bio_batch logic? I've tried to look at the various bio and biovec number entries in /proc/slabinfo, and while they keep changing a bit during the

Re: sound: use-after-free in hrtimer_cancel

2016-06-06 Thread Takashi Iwai
On Sat, 04 Jun 2016 20:27:50 +0200, Dmitry Vyukov wrote: > > On Sat, Jun 4, 2016 at 8:00 PM, Dmitry Vyukov wrote: > > Hello, > > > > The following program triggers use-after-free: > > Forget to mention that you need to run it in a tight parallel loop. It > takes around 5 minutes to reproduce for

[PATCHv9 28/32] shmem: make shmem_inode_info::lock irq-safe

2016-06-06 Thread Kirill A. Shutemov
We are going to need to call shmem_charge() under tree_lock to get accoutning right on collapse of small tmpfs pages into a huge one. The problem is that tree_lock is irq-safe and lockdep is not happy, that we take irq-unsafe lock under irq-safe[1]. Let's convert the lock to irq-safe. [1] https:

[PATCHv9 00/32] THP-enabled tmpfs/shmem using compound pages

2016-06-06 Thread Kirill A. Shutemov
This is rebased version of my implementation of huge pages support for tmpfs. There are few fixes by Hugh since v8. Rebase on v4.7-rc1 was somewhat painful, because of changes in radix-tree API, but everything looks fine now. Andrew, please consider applying the patchset to -mm tree. The patchse

Re: [PATCH 1/3] drm/arcpgu: Make ARC PGU usable on simulation platforms

2016-06-06 Thread Daniel Vetter
On Mon, Jun 06, 2016 at 01:56:23PM +0300, Alexey Brodkin wrote: > From: Ruud Derwig > > Initially ARC PGU required real encoder/trnasmitter to exist. > That was fine for real HW such as ARC SDP boards. > > But on some simulaiton platroms like ARC VDK or nSIM OSCI we have model > of the same ARC

Re: [PATCH] x86: include linux/ratelimit.h in nmi.c

2016-06-06 Thread Thomas Gleixner
On Mon, 6 Jun 2016, Arnd Bergmann wrote: > When building random configurations, we now occasionally get a new > build error: > >In file included from include/linux/kernel.h:13:0, > from include/linux/list.h:8, > from include/linux/preempt.h:10, >

[PATCHv9 23/32] shmem: get_unmapped_area align huge page

2016-06-06 Thread Kirill A. Shutemov
From: Hugh Dickins Provide a shmem_get_unmapped_area method in file_operations, called at mmap time to decide the mapping address. It could be conditional on CONFIG_TRANSPARENT_HUGEPAGE, but save #ifdefs in other places by making it unconditional. shmem_get_unmapped_area() first calls the usual

Re: [PATCH V5 4/9] genirq: Add runtime power management support for IRQ chips

2016-06-06 Thread Grygorii Strashko
On 06/06/2016 02:53 PM, Jon Hunter wrote: > Some IRQ chips may be located in a power domain outside of the CPU > subsystem and hence will require device specific runtime power > management. In order to support such IRQ chips, add a pointer for a > device structure to the irq_chip structure, and if

[PATCHv9 08/32] thp: support file pages in zap_huge_pmd()

2016-06-06 Thread Kirill A. Shutemov
split_huge_pmd() for file mappings (and DAX too) is implemented by just clearing pmd entry as we can re-fill this area from page cache on pte level later. This means we don't need deposit page tables when file THP is mapped. Therefore we shouldn't try to withdraw a page table on zap_huge_pmd() fil

Re: [PATCH v4 5/7] net: mdio-mux: Add MDIO mux driver for iProc SoCs

2016-06-06 Thread Andrew Lunn
On Mon, Jun 06, 2016 at 06:11:38PM +0530, Pramod Kumar wrote: > iProc based SoCs supports the integrated mdio multiplexer which > has the bus selection as well as mdio transaction generation logic > inside. > > This multiplexer has child buses for PCIe, SATA, USB and ETH. These > buses could be in

Re: [PATCH v4 1/7] mdio: mux: Enhanced MDIO mux framework for integrated multiplexers

2016-06-06 Thread Andrew Lunn
On Mon, Jun 06, 2016 at 06:11:34PM +0530, Pramod Kumar wrote: > An integrated multiplexer uses same address space for > "muxed bus selection" and "generation of mdio transaction" > hence its good to register parent bus from mux driver. > > Hence added a mechanism where mux driver could register a

[PATCH v3] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-06-06 Thread Mario Limonciello
Since this is a Realtek feature, I feel this shouldn't be moved into a platform MAC address lookup. The code should only be run when the correct Realtek device is plugged in. Changes from v2: * Only apply to RTL8153-AD w/ eFuse pass through mac address pass thru bit set. * Drop matching DMI

[PATCHv9 24/32] shmem: add huge pages support

2016-06-06 Thread Kirill A. Shutemov
Here's basic implementation of huge pages support for shmem/tmpfs. It's all pretty streight-forward: - shmem_getpage() allcoates huge page if it can and try to inserd into radix tree with shmem_add_to_page_cache(); - shmem_add_to_page_cache() puts the page onto radix-tree if there's

[PATCH v3] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-06-06 Thread Mario Limonciello
The RTL8153-AD supports a persistent system specific MAC address. This means a device plugged into two different systems with host side support will show different (but persistent) MAC addresses. This information for the system's persistent MAC address is burned in when the system HW is built and

[PATCHv9 31/32] shmem: split huge pages beyond i_size under memory pressure

2016-06-06 Thread Kirill A. Shutemov
Even if user asked to allocate huge pages always (huge=always), we should be able to free up some memory by splitting pages which are partly byound i_size if memory presure comes or once we hit limit on filesystem size (-o size=). In order to do this we maintain per-superblock list of inodes, whic

Re: [PATCH 3/5] ARM: sun8i: dt: Add DT bindings documentation for Allwinner sun8i-emac

2016-06-06 Thread Rob Herring
On Fri, Jun 03, 2016 at 11:56:28AM +0200, LABBE Corentin wrote: > This patch adds documentation for Device-Tree bindings for the > Allwinner sun8i-emac driver. > > Signed-off-by: LABBE Corentin > --- > .../bindings/net/allwinner,sun8i-emac.txt | 64 > ++ > 1 file ch

[PATCHv9 10/32] thp: handle file COW faults

2016-06-06 Thread Kirill A. Shutemov
File COW for THP is handled on pte level: just split the pmd. It's not clear how benefitial would be allocation of huge pages on COW faults. And it would require some code to make them work. I think at some point we can consider teaching khugepaged to collapse pages in COW mappings, but allocatin

[PATCHv9 06/32] mm: introduce do_set_pmd()

2016-06-06 Thread Kirill A. Shutemov
With postponed page table allocation we have chance to setup huge pages. do_set_pte() calls do_set_pmd() if following criteria met: - page is compound; - pmd entry in pmd_none(); - vma has suitable size and alignment; Signed-off-by: Kirill A. Shutemov --- include/linux/huge_mm.h | 2 ++ mm/

[PATCHv9 15/32] thp, mlock: do not mlock PTE-mapped file huge pages

2016-06-06 Thread Kirill A. Shutemov
As with anon THP, we only mlock file huge pages if we can prove that the page is not mapped with PTE. This way we can avoid mlock leak into non-mlocked vma on split. We rely on PageDoubleMap() under lock_page() to check if the the page may be PTE mapped. PG_double_map is set by page_add_file_rmap(

[PATCHv9 20/32] truncate: handle file thp

2016-06-06 Thread Kirill A. Shutemov
For shmem/tmpfs we only need to tweak truncate_inode_page() and invalidate_mapping_pages(). truncate_inode_pages_range() and invalidate_inode_pages2_range() are adjusted to use page_to_pgoff(). Signed-off-by: Kirill A. Shutemov --- mm/truncate.c | 28 +++- 1 file changed

[PATCHv9 09/32] thp: handle file pages in split_huge_pmd()

2016-06-06 Thread Kirill A. Shutemov
Splitting THP PMD is simple: just unmap it as in DAX case. This way we can avoid memory overhead on page table allocation to deposit. It's probably a good idea to try to allocation page table with GFP_ATOMIC in __split_huge_pmd_locked() to avoid refaulting the area, but clearing pmd should be good

[PATCHv9 29/32] khugepaged: add support of collapse for tmpfs/shmem pages

2016-06-06 Thread Kirill A. Shutemov
This patch extends khugepaged to support collapse of tmpfs/shmem pages. We share fair amount of infrastructure with anon-THP collapse. Few design points: - First we are looking for VMA which can be suitable for mapping huge page; - If the VMA maps shmem file, the rest scan/collapse opera

Re: [PATCH v2] sched/cputime: add steal clock warp handling

2016-06-06 Thread Rik van Riel
On Mon, 2016-06-06 at 15:44 +0200, Paolo Bonzini wrote: > > On 03/06/2016 15:10, Rik van Riel wrote: > > > > On Fri, 2016-06-03 at 13:21 +0800, Wanpeng Li wrote: > > > > > > From: Wanpeng Li > > > > > > I observed that sometimes st is 100% instantaneous, then idle is > > > 100%  > > > even if

[PATCHv9 13/32] thp: run vma_adjust_trans_huge() outside i_mmap_rwsem

2016-06-06 Thread Kirill A. Shutemov
vma_addjust_trans_huge() splits pmd if it's crossing VMA boundary. During split we munlock the huge page which requires rmap walk. rmap wants to take the lock on its own. Let's move vma_adjust_trans_huge() outside i_mmap_rwsem to fix this. Signed-off-by: Kirill A. Shutemov --- mm/mmap.c | 4 ++-

[PATCHv9 18/32] radix-tree: implement radix_tree_maybe_preload_order()

2016-06-06 Thread Kirill A. Shutemov
The new helper is similar to radix_tree_maybe_preload(), but tries to preload number of nodes required to insert (1 << order) continuous naturally-aligned elements. This is required to push huge pages into pagecache. Signed-off-by: Kirill A. Shutemov --- include/linux/radix-tree.h | 1 + lib/r

[PATCHv9 04/32] mm: postpone page table allocation until we have page to map

2016-06-06 Thread Kirill A. Shutemov
The idea (and most of code) is borrowed again: from Hugh's patchset on huge tmpfs[1]. Instead of allocation pte page table upfront, we postpone this until we have page to map in hands. This approach opens possibility to map the page as huge if filesystem supports this. Comparing to Hugh's patch I

Re: [PATCH v4 2/7] binding: Make "mdio-parent-bus" property from mandatory to optional

2016-06-06 Thread Andrew Lunn
On Mon, Jun 06, 2016 at 06:11:35PM +0530, Pramod Kumar wrote: > Change "mdio-parent-bus" from mandatory section to optional > as it won't be required by integrated MDIO multiplexer > which has bus selection and mdio transaction generation logic, > integrated inside. > > Signed-off-by: Pramod Kumar

[PATCHv9 14/32] thp: file pages support for split_huge_page()

2016-06-06 Thread Kirill A. Shutemov
Basic scheme is the same as for anon THP. Main differences: - File pages are on radix-tree, so we have head->_count offset by HPAGE_PMD_NR. The count got distributed to small pages during split. - mapping->tree_lock prevents non-lockless access to pages under split over radix-tree;

[PATCHv9 22/32] shmem: prepare huge= mount option and sysfs knob

2016-06-06 Thread Kirill A. Shutemov
This patch adds new mount option "huge=". It can have following values: - "always": Attempt to allocate huge pages every time we need a new page; - "never": Do not allocate huge pages; - "within_size": Only allocate huge page if it will be fully within i_size.

Re: [PATCH][RFC] x86, hotplug: Use zero page for monitor when resuming from hibernation

2016-06-06 Thread Peter Zijlstra
On Mon, Jun 06, 2016 at 10:19:09PM +0800, Chen Yu wrote: > @@ -1595,8 +1596,21 @@ static inline void mwait_play_dead(void) >* This should be a memory location in a cache line which is >* unlikely to be touched by other processors. The actual >* content is immaterial as it i

Re: [PATCH v4 1/5] sched/fair: Clean up attach_entity_load_avg()

2016-06-06 Thread Peter Zijlstra
On Mon, Jun 06, 2016 at 03:40:18PM +0200, Vincent Guittot wrote: > > What about when tasks are moved between groups on CONFIG_SMP=n ? > > Doesn't this change fail to age the load in that case? > > The load average stuff is only enable for SMP system but it's not used > for UP system. > To be hones

Re: [v1 PATCH 1/4] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-06-06 Thread Rob Herring
On Fri, Jun 03, 2016 at 11:15:08PM +0800, Chris Zhong wrote: > This patch adds a binding that describes the Rockchip USB Type-C PHY > for rk3399 > > Signed-off-by: Chris Zhong > > --- > > Changes in v1: > - add extcon node description > - move the registers in phy driver > - remove the suffix o

Re: [v1 PATCH 3/4] Documentation: bindings: add dt documentation for cdn DP controller

2016-06-06 Thread Rob Herring
On Fri, Jun 03, 2016 at 11:15:10PM +0800, Chris Zhong wrote: > This patch adds a binding that describes the cdn DP controller for > rk3399. > > Signed-off-by: Chris Zhong > > --- > > Changes in v1: > - add extcon node description > - add #sound-dai-cells description > > .../bindings/display/r

Re: [RFC PATCH v2 17/18] livepatch: change to a per-task consistency model

2016-06-06 Thread Josh Poimboeuf
On Mon, Jun 06, 2016 at 03:54:41PM +0200, Petr Mladek wrote: > On Thu 2016-04-28 15:44:48, Josh Poimboeuf wrote: > > Change livepatch to use a basic per-task consistency model. This is the > > foundation which will eventually enable us to patch those ~10% of > > security patches which change funct

[PATCH 4.5 102/128] gcov: disable tree-loop-im to reduce stack usage

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit c87bf431448b404a6ef5fbabd74c0e3e42157a7f upstream. Enabling CONFIG_GCOV_PROFILE_ALL produces us a lot of warnings like lib/lz4/lz4hc_compress.c: In function 'lz4_compressh

[PATCH 4.5 101/128] mm: thp: avoid false positive VM_BUG_ON_PAGE in page_move_anon_rmap()

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Kirill A. Shutemov commit 0798d3c022dc63eb0ec02b511e1f76ca8411ef8e upstream. If page_move_anon_rmap() is refiling a pmd-splitted THP mapped in a tail page from a pte, the "address" must be THP

[PATCH 4.5 100/128] scripts/package/Makefile: rpmbuild add support of RPMOPTS

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Srinivas Pandruvada commit 65a9f31c5042e5bb50d30ed8ae374044be561054 upstream. After commit 21a59991ce0c ("scripts/package/Makefile: rpmbuild is needed for rpm targets"), it is no longer possibl

[PATCH 4.5 097/128] nfs: avoid race that crashes nfs_init_commit

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Weston Andros Adamson commit ade8febde0271513360bac44883dbebad44276c3 upstream. Since the patch "NFS: Allow multiple commit requests in flight per file" we can run multiple simultaneous commits

Re: [PATCH V5 4/9] genirq: Add runtime power management support for IRQ chips

2016-06-06 Thread Jon Hunter
On 06/06/16 15:13, Grygorii Strashko wrote: > On 06/06/2016 02:53 PM, Jon Hunter wrote: >> Some IRQ chips may be located in a power domain outside of the CPU >> subsystem and hence will require device specific runtime power >> management. In order to support such IRQ chips, add a pointer for a >>

Re: [PATCH] char: Prefer pr_* instead of printk

2016-06-06 Thread Greg KH
On Mon, Jun 06, 2016 at 11:44:07AM +0530, jyoti singh wrote: > yes sir, > I have written a tty driver module there i had used printk and pr_*. > it is working fine with both. That's not the answer to my question, did you test _this_ driver with _these_ changes? Or at least I think that was what m

Re: [REGRESSION] Headphones no longer working on MacPro6,1 with 4.4

2016-06-06 Thread Takashi Iwai
On Thu, 02 Jun 2016 23:20:24 +0200, Laura Abbott wrote: > > On 05/24/2016 10:54 AM, Takashi Iwai wrote: > > On Tue, 24 May 2016 18:41:06 +0200, > > Laura Abbott wrote: > >> > >> Node 0x10 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out > >> Control: name="Headphone Playback Switch", index=0, device

[PATCH 4.5 093/128] ext4: fix check of dqget() return value in ext4_ioctl_setproject()

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Seth Forshee commit ff0bc08454917964291f72ee5b8eca66de4bc250 upstream. A failed call to dqget() returns an ERR_PTR() and not null. Fix the check in ext4_ioctl_setproject() to handle this correc

[PATCH 4.5 126/128] Btrfs: fix unexpected return value of fiemap

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Liu Bo commit 2d324f59f343967a03eeb2690f0ff178304d0687 upstream. btrfs's fiemap is supposed to return 0 on success and return < 0 on error. however, ret becomes 1 after looking up the last file

[PATCH 4.5 098/128] PM / sleep: Handle failures in device_suspend_late() consistently

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Rafael J. Wysocki commit 3a17fb329da68cb00558721aff876a80bba2fdb9 upstream. Grygorii Strashko reports: The PM runtime will be left disabled for the device if its .suspend_late() callback fai

[PATCH 4.5 110/128] btrfs: allow balancing to dup with multi-device

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Austin S. Hemmelgarn commit 88be159c905a2b4f6d59afa352bef410afb6af02 upstream. Currently, we don't allow the user to try and rebalance to a dup profile on a multi-device filesystem. In most ca

[PATCH 4.5 128/128] btrfs: make state preallocation more speculative in __set_extent_bit

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: David Sterba commit 059f791c6bbaba72dc3c1bd6e2657aacc8552849 upstream. Similar to __clear_extent_bit, do not fail if the state preallocation fails as we might not need it. One less BUG_ON. Sig

Re: [PATCH v2] sched/cputime: add steal clock warp handling

2016-06-06 Thread Paolo Bonzini
On 06/06/2016 16:22, Rik van Riel wrote: >> Sorry for being late---again, I'd like to give a shot to a fix in KVM >> guest code. > > This is in the guest code. The key word is "KVM" guest code, :) i.e. not in kernel/sched/cputime.c but in arch/x86/kernel/kvm.c. Thanks, Paolo > Do you mean a

[PATCH 4.5 119/128] btrfs: add write protection to SET_FEATURES ioctl

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: David Sterba commit 7ab19625a911f7568ec85302e3aa7a64186006c8 upstream. Perform the want_write check if we get far enough to do any writes. Signed-off-by: David Sterba Signed-off-by: Greg Kroa

[PATCH 4.5 109/128] Btrfs: do not create empty block group if we have allocated data

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Liu Bo commit cf25ce518e8ef9d59b292e51193bed2b023a32da upstream. Now we force to create empty block group to keep data profile alive, however, in the below example, we eventually get an empty b

[PATCH 4.5 096/128] ext4: silence UBSAN in ext4_mb_init()

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Nicolai Stange commit 935244cd54b86ca46e69bc6604d2adfb1aec2d42 upstream. Currently, in ext4_mb_init(), there's a loop like the following: do { ... offset += 1 << (sb->s_blocksize_bit

[PATCH 4.5 123/128] btrfs: pass the right error code to the btrfs_std_error

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Anand Jain commit ad8403df054c9b5dc3175a26c6179571b9cafa4e upstream. Also drop the newline from the message. Signed-off-by: Anand Jain Signed-off-by: David Sterba Signed-off-by: Greg Kroah-H

[PATCH 4.5 125/128] Btrfs: fix empty symlink after creating symlink and fsync parent dir

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Filipe Manana commit 3f9749f6e9edcf8ec569fb542efc3be35e06e84a upstream. If we create a symlink, fsync its parent directory, crash/power fail and mount the filesystem, we end up with an empty sy

[PATCH 4.5 118/128] btrfs: fix lock dep warning move scratch super outside of chunk_mutex

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Anand Jain commit 48b3b9d401ec86899a52003b37331190a35a81a6 upstream. Move scratch super outside of the chunk lock to avoid below lockdep warning. The better place to scratch super is in the fun

[PATCH 4.5 122/128] btrfs: fix memory leak during RAID 5/6 device replacement

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Scott Talbert commit 4673272f43ae790ab9ec04e38a7542f82bb8f020 upstream. A 'struct bio' is allocated in scrub_missing_raid56_pages(), but it was never freed anywhere. Signed-off-by: Scott Talbe

Re: [PATCH 1/2] xen-pciback: return proper values during BAR sizing

2016-06-06 Thread Boris Ostrovsky
On 06/06/2016 09:51 AM, Jan Beulich wrote: On 06.06.16 at 15:03, wrote: >> On 06/06/2016 04:11 AM, Jan Beulich wrote: >>> @@ -225,38 +225,42 @@ static inline void read_dev_bar(struct p >>>(PCI_BASE_ADDRESS_SPACE_MEMORY | >>> PCI_BASE_ADDRESS

[PATCH] perf test: Ignore .scale and other special files

2016-06-06 Thread Andi Kleen
From: Andi Kleen perf test tries to parse all entries in /sys/devices/cpu/events/. Ignore the special entries like '.scale', which cannot be directly parsed as an event. This patch assumes all files containing a '.' are special and can be ignored. Signed-off-by: Andi Kleen --- tools/perf/tests

Re: [PATCH 1/4] perf stat: Basic support for TopDown in perf stat

2016-06-06 Thread Andi Kleen
On Mon, Jun 06, 2016 at 11:11:40AM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Jun 06, 2016 at 11:00:03AM -0300, Arnaldo Carvalho de Melo escreveu: > > The kernel patches are in tip/perf/core now, so I applied the patches > > and they seem to work, but they broke one 'perf test' entry: > > >

[PATCH 4.5 115/128] btrfs: add check to sysfs handler of label

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: David Sterba commit 66ac9fe7bacf9fa76c472efc7a7aaa590c7bce6a upstream. Add a sanity check for the fs_info as we will dereference it, similar to what the 'store features' handler does. Signed-o

[PATCH 4.5 116/128] Btrfs: fix divide error upon chunks stripe_len

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Liu Bo commit 3d8da67817606380fdadfa483d4dba5c3a5446c6 upstream. The struct 'map_lookup' uses type int for @stripe_len, while btrfs_chunk_stripe_len() can return a u64 value, and it may end up

Re: [PATCH V5 4/9] genirq: Add runtime power management support for IRQ chips

2016-06-06 Thread Grygorii Strashko
On 06/06/2016 05:30 PM, Jon Hunter wrote: > > On 06/06/16 15:13, Grygorii Strashko wrote: >> On 06/06/2016 02:53 PM, Jon Hunter wrote: >>> Some IRQ chips may be located in a power domain outside of the CPU >>> subsystem and hence will require device specific runtime power >>> management. In order

[PATCH 4.5 117/128] Btrfs: remove BUG_ON()s in btrfs_map_block

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Josef Bacik commit e042d1ec4417981dfe9331e47b76f17929bc2ffe upstream. btrfs_map_block can go horribly wrong in the face of fs corruption, lets agree to not be assholes and panic at any possible

Re: [PATCH 3/2] xen-pciback: drop rom_init()

2016-06-06 Thread Boris Ostrovsky
On 06/06/2016 09:54 AM, Jan Beulich wrote: On 06.06.16 at 15:09, wrote: >> On 06/06/2016 04:47 AM, Jan Beulich wrote: >>> It's identical to bar_init() now. >>> >>> Signed-off-by: Jan Beulich >>> --- >>> I'm sorry for this 3/2 - I only now noticed that this additional >>> simplification is no

[PATCH 4.5 120/128] btrfs: fix int32 overflow in shrink_delalloc().

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Adam Borowski commit 8eb0dfdbda3f56bf7d248ed87fcc383df114ecbb upstream. UBSAN: Undefined behaviour in fs/btrfs/extent-tree.c:4623:21 signed integer overflow: 10808 * 262144 cannot be represente

Re: [PATCH v3] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-06-06 Thread Greg KH
On Mon, Jun 06, 2016 at 09:15:20AM -0500, Mario Limonciello wrote: > Since this is a Realtek feature, I feel this shouldn't be moved into a > platform > MAC address lookup. The code should only be run when the correct Realtek > device > is plugged in. > > Changes from v2: > * Only apply to RTL

[PATCH 4.5 112/128] btrfs: avoid overflowing f_bfree

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Luis de Bethencourt commit 41b34accb265e3a20211a7a8ef3625678f1c6ec7 upstream. Since mixed block groups accounting isn't byte-accurate and f_bree is an unsigned integer, it could overflow. Avoid

[PATCH 4.5 111/128] btrfs: fix mixed block count of available space

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Luis de Bethencourt commit ae02d1bd070767e109f4a6f1bb1f466e9698a355 upstream. Metadata for mixed block is already accounted in total data and should not be counted as part of the free metadata

[PATCH 4.5 114/128] btrfs: add read-only check to sysfs handler of features

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: David Sterba commit ee6111386a1b304f8bf589d36810d53e3b27ee20 upstream. We don't want to trigger the change on a read-only filesystem, similar to what the label handler does. Signed-off-by: Dav

[PATCH 4.5 095/128] ext4: address UBSAN warning in mb_find_order_for_block()

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Nicolai Stange commit b5cb316cdf3a3f5f6125412b0f6065185240cfdc upstream. Currently, in mb_find_order_for_block(), there's a loop like the following: while (order <= e4b->bd_blkbits + 1) {

Re: [PATCH v3] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-06-06 Thread Greg KH
On Mon, Jun 06, 2016 at 09:15:21AM -0500, Mario Limonciello wrote: > The RTL8153-AD supports a persistent system specific MAC address. > This means a device plugged into two different systems with host side > support will show different (but persistent) MAC addresses. > > This information for the

Re: [PATCH v3] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-06-06 Thread Andrew Lunn
> + /* returns _AUXMAC_#AABBCCDDEEFF# */ > + status = acpi_evaluate_object(NULL, "\\_SB.AMAC", NULL, &buffer); > + obj = (union acpi_object *)buffer.pointer; > + if (ACPI_SUCCESS(status)) { > + if (obj->type != ACPI_TYPE_BUFFER || > + obj->string.length !

[PATCH 4.5 113/128] btrfs: fix lock dep warning, move scratch dev out of device_list_mutex and uuid_mutex

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Anand Jain commit 779bf3fefa835cb52a07457c8acac6f2f66f2493 upstream. When the replace target fails, the target device will be taken out of fs device list, scratch + update_dev_time and freed. H

[PATCH RESEND 02/14] drm/armada: use drm_crtc_send_vblank_event()

2016-06-06 Thread Gustavo Padovan
From: Gustavo Padovan Replace the legacy drm_send_vblank_event() with the new helper function. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/armada/armada_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/armada/armada_crtc.c b/drivers/gpu/drm/arm

[PATCH] afs: remove redundant check

2016-06-06 Thread Luis de Bethencourt
last is already checked before the switch statement, if it is false it will return. A second check without the value possibly changing is redundant. Signed-off-by: Luis de Bethencourt --- fs/afs/cmservice.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/afs/cmservice.c b/fs/afs/cmservi

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-06-06 Thread Greg KH
On Mon, Jun 06, 2016 at 04:45:09PM +0300, Heikki Krogerus wrote: > Hi, > > On Fri, Jun 03, 2016 at 10:20:01PM +0200, Pavel Machek wrote: > > On Thu 2016-05-19 15:44:54, Heikki Krogerus wrote: > > > The purpose of this class is to provide unified interface for user > > > space to get the status and

[PATCH RESEND 03/14] drm/atmel: use drm_crtc_send_vblank_event()

2016-06-06 Thread Gustavo Padovan
From: Gustavo Padovan Replace the legacy drm_send_vblank_event() with the new helper function. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c b

[PATCH RESEND 06/14] drm/virtio: use drm_crtc_send_vblank_event()

2016-06-06 Thread Gustavo Padovan
From: Gustavo Padovan Replace the legacy drm_send_vblank_event() with the new helper function. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/virtio/virtgpu_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_display.c b/drivers/gpu

[PATCH RESEND 04/14] drm/qxl: use drm_crtc_send_vblank_event()

2016-06-06 Thread Gustavo Padovan
From: Gustavo Padovan Replace the legacy drm_send_vblank_event() with the new helper function. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/qxl/qxl_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_d

[PATCH 08/14] drm/amdgpu: use drm_crtc_vblank_{get,put}()

2016-06-06 Thread Gustavo Padovan
From: Gustavo Padovan Replace the legacy drm_vblank_{get,put}() with the new helper functions. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 2 +- driver

[PATCH 10/14] drm/atmel: use drm_crtc_vblank_{get,put}()

2016-06-06 Thread Gustavo Padovan
From: Gustavo Padovan Replace the legacy drm_vblank_{get,put}() with the new helper functions. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c b

[PATCH 14/14] drm/shmobile: use drm_crtc_vblank_{get,put}()

2016-06-06 Thread Gustavo Padovan
From: Gustavo Padovan Replace the legacy drm_vblank_{get,put}() with the new helper functions. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/shmobile/shmob_drm_crtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/shmobile/shmob_drm_crtc.c b/drive

[RFC PATCH 5/6] lightnvm: expose device geometry through sysfs

2016-06-06 Thread Matias Bjørling
From: Simon Lund For a host to access an Open-Channel SSD, it has to know its geometry, so that it writes and reads at the appropriate device bounds. The geometry information is kept within the kernel, and not exported to user-space for consumption. This patch exposes the configuration through s

[RFC PATCH 1/6] nvme: refactor namespaces to support non-gendisk devices

2016-06-06 Thread Matias Bjørling
With LightNVM enabled namespaces, the gendisk structure is not exposed to the user. This prevents LightNVM users from accessing the NVMe device driver specific sysfs entries, and LightNVM namespace geometry. Refactor the revalidation process, so that a namespace, instead of a gendisk, is revalidat

[PATCH 12/14] drm/qxl: use drm_crtc_vblank_{get,put}()

2016-06-06 Thread Gustavo Padovan
From: Gustavo Padovan Replace the legacy drm_vblank_{get,put}() with the new helper functions. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/qxl/qxl_display.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/

[RFC PATCH 0/6] sysfs support for LightNVM

2016-06-06 Thread Matias Bjørling
The common way to expose a storage device is to export it through the gendisk structure, which takes care of handling the visibility lifetime of the device to user-space and carries device driver and block layer specific sysfs entries. For LightNVM, no gendisk is exposed, which hides these entries

Re: [PATCH] Introducing kernel option to force all PCI memory resources to be page aligned. Fixes issues with uio based drivers.

2016-06-06 Thread gre...@linuxfoundation.org
On Mon, Jun 06, 2016 at 06:53:28AM +, Koehrer Mathias (ETAS/ESW5) wrote: > Some uio based PCI drivers (e.g. uio_cif) do not work if the assigned > PCI memory resources are not page aligned. > By using the kernel option "pci=resource_alignment" it is possible to force > single PCI boards to use

[PATCH RESEND 05/14] drm/udl: use drm_crtc_send_vblank_event()

2016-06-06 Thread Gustavo Padovan
From: Gustavo Padovan Replace the legacy drm_send_vblank_event() with the new helper function. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/udl/udl_modeset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/udl/udl_modeset.c b/drivers/gpu/drm/udl/udl_m

RE: [PATCH v3] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-06-06 Thread Mario_Limonciello
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Monday, June 6, 2016 9:40 AM > To: Limonciello, Mario > Cc: hayesw...@realtek.com; LKML ; Netdev > ; Linux USB ; > pali.ro...@gmail.com; anthony.w...@canonical.com > Subject: Re: [PATCH v3] r8152: Add support

[PATCH 07/14] drm: remove legacy drm_send_vblank_event()

2016-06-06 Thread Gustavo Padovan
From: Gustavo Padovan We don't have any user of this function anymore, let's remove it. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/drm_irq.c | 31 ++- include/drm/drmP.h| 2 -- 2 files changed, 6 insertions(+), 27 deletions(-) diff --git a/drivers/

[PATCH 01/14] drm/nouveau: use drm_crtc_send_vblank_event() v2

2016-06-06 Thread Gustavo Padovan
From: Gustavo Padovan Replace the legacy drm_send_vblank_event() with the new helper function. v2: add crtc to nouveau_page_flip_state (comment from Mario Kleiner) Cc: Mario Kleiner Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/nouveau/nouveau_display.c | 19 ++- drivers

[PATCH 13/14] drm/radeon: use drm_crtc_vblank_{get,put}()

2016-06-06 Thread Gustavo Padovan
From: Gustavo Padovan Replace the legacy drm_vblank_{get,put}() with the new helper functions. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/radeon/radeon_display.c | 6 +++--- drivers/gpu/drm/radeon/radeon_pm.c | 13 + 2 files changed, 12 insertions(+), 7 deletions(-)

[PATCH 09/14] drm/armada: use drm_crtc_vblank_{get,put}()

2016-06-06 Thread Gustavo Padovan
From: Gustavo Padovan Replace the legacy drm_vblank_{get,put}() with the new helper functions. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/armada/armada_crtc.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/armada/armada_crtc.c b/driver

[PATCH 11/14] drm/nouveau: use drm_crtc_vblank_{get,put}()

2016-06-06 Thread Gustavo Padovan
From: Gustavo Padovan Replace the legacy drm_vblank_{get,put}() with the new helper functions. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/nouveau/nouveau_display.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/d

[PATCH 4.5 127/128] btrfs: scrub: Set bbio to NULL before calling btrfs_map_block

2016-06-06 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Zhao Lei commit f1fee6534dcfbf468a159789aa202db2bce8c200 upstream. We usually call btrfs_put_bbio() when btrfs_map_block() failed, btrfs_put_bbio() works right whether bbio is a valid value, or

[PATCH] x86/efi: remove unused variable efi

2016-06-06 Thread Colin King
From: Colin Ian King Remove unused variable efi, it is never used. Fixes clang build warning: arch/x86/boot/compressed/eboot.c:803:2: warning: Value stored to 'efi' is never read Signed-off-by: Colin Ian King --- arch/x86/boot/compressed/eboot.c | 2 -- 1 file changed, 2 deletions(-) diff

Re: [PATCH v3] powerpc: spinlock: Fix spin_unlock_wait()

2016-06-06 Thread Peter Zijlstra
On Mon, Jun 06, 2016 at 10:17:25PM +1000, Michael Ellerman wrote: > On Mon, 2016-06-06 at 13:56 +0200, Peter Zijlstra wrote: > > On Mon, Jun 06, 2016 at 09:42:20PM +1000, Michael Ellerman wrote: > > > +static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) > > > +{ > > > + arch_spinlock_t

[RFC PATCH 4/6] lightnvm: let drivers control the lifetime of nvm_dev

2016-06-06 Thread Matias Bjørling
LightNVM does not currently expose the device driver sysfs specific entries to user-space, as the device driver skips the initialization of gendisk. To enable a device driver sysfs entries to be exposed, we need a struct device to attach it to. To allow both the device driver and LightNVM to acces

[RFC PATCH 3/6] blk-mq: register device instead of disk

2016-06-06 Thread Matias Bjørling
Enable devices without a gendisk instance to register itself with blk-mq and expose the associated multi-queue sysfs entries. Signed-off-by: Matias Bjørling --- block/blk-mq-sysfs.c | 13 + block/blk-sysfs.c | 4 ++-- drivers/md/dm.c| 2 +- include/linux/blk-mq.h |

[PATCH] drm: bridge: analogix/dp: Don't disable interrupts

2016-06-06 Thread Tomeu Vizoso
Regardless of the status of the bridge, we want to receive HPD events. Only disable it when suspending. Signed-off-by: Tomeu Vizoso Cc: Caesar Wang Cc: Douglas Anderson Cc: Heiko Stuebner Cc: Javier Martinez Canillas Cc: Yakir Yang --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 7

[RFC PATCH 2/6] null_blk: refactor to support non-gendisk devices

2016-06-06 Thread Matias Bjørling
With LightNVM enabled devices, the gendisk structure is not exposed to the user. This hides the device driver specific sysfs entries, and prevents binding of LightNVM geometry information to the device. Refactor the device registration process, so that gendisk and non-gendisk devices are easily ma

<    5   6   7   8   9   10   11   12   >