Re: [PATCH v3 5/6] drm: Use mode_valid() in atomic modeset

2017-05-15 Thread Andrzej Hajda
On 11.05.2017 11:06, Jose Abreu wrote: > This patches makes use of the new mode_valid() callbacks introduced > previously to validate the full video pipeline when modesetting. > > This calls the encoder->mode_valid(), bridge->mode_valid() and > crtc->mode_valid() so that we can make sure that the m

Re: [PATCH] spi: SPI_TI_QSPI should depend on HAS_DMA

2017-05-15 Thread Geert Uytterhoeven
Hi Mark, On Sun, May 14, 2017 at 11:50 AM, Mark Brown wrote: > On Thu, May 04, 2017 at 09:37:18AM +0200, Geert Uytterhoeven wrote: >> If NO_DMA=y: >> >> ERROR: "bad_dma_ops" [drivers/spi/spi-ti-qspi.ko] undefined! >> >> Add a dependency on HAS_DMA to fix this. > > There's no progress on fixin

Re: handle_bad_irq and locking

2017-05-15 Thread Gregory Fong
On Fri, May 12, 2017 at 1:40 AM, Thomas Gleixner wrote: > On Thu, 11 May 2017, Gregory Fong wrote: >> Hi Thomas, >> >> I noticed that when you changed arm irq handling to use the generic >> implementation back in 2006 that you changed do_bad_IRQ() to the >> following: >> >> +#define do_bad_IRQ(irq

Re: [PATCH v4 0/7] ARM: Fix dma_alloc_coherent() and friends for NOMMU

2017-05-15 Thread Vladimir Murzin
Ping again... On 02/05/17 09:32, Vladimir Murzin wrote: > Gentle ping! > > On 24/04/17 11:16, Vladimir Murzin wrote: >> It seem that addition of cache support for M-class CPUs uncovered >> latent bug in DMA usage. NOMMU memory model has been treated as being >> always consistent; however, for R/M

[for-stable: PATCH] xen: adjust early dom0 p2m handling to xen hypervisor behavior

2017-05-15 Thread Juergen Gross
When booted as pv-guest the p2m list presented by the Xen is already mapped to virtual addresses. In dom0 case the hypervisor might make use of 2M- or 1G-pages for this mapping. Unfortunately while being properly aligned in virtual and machine address space, those pages might not be aligned properl

Re: [PATCH v3 6/6] drm: arc: Use crtc->mode_valid() callback

2017-05-15 Thread Daniel Vetter
On Thu, May 11, 2017 at 10:06:02AM +0100, Jose Abreu wrote: > Now that we have a callback to check if crtc supports a given mode > we can use it in arcpgu so that we restrict the number of probbed > modes to the ones we can actually display. > > This is specially useful because arcpgu crtc is resp

Re: [PATCH v3 6/6] drm: arc: Use crtc->mode_valid() callback

2017-05-15 Thread Andrzej Hajda
On 11.05.2017 11:06, Jose Abreu wrote: > Now that we have a callback to check if crtc supports a given mode > we can use it in arcpgu so that we restrict the number of probbed > modes to the ones we can actually display. > > This is specially useful because arcpgu crtc is responsible to set > a clo

[PATCH net-next] net: stmmac: use correct pointer when printing normal descriptor ring

2017-05-15 Thread Niklas Cassel
There are two pointers in sysfs_display_ring, one that increments if using normal dma descriptors, another if using extended dma descriptors. When printing the normal dma descriptors, the wrong pointer is used, thus the printed descriptor addresses are incorrect. Signed-off-by: Niklas Cassel ---

[PATCH -v4 0/14] mm: make movable onlining suck less

2017-05-15 Thread Michal Hocko
Hi, The last version of this series has been posted here [1]. The timing wasn't all that great so this is mostly a resubmit. I've added one additional patch to fix another pfn walker noticed by Joonsoo (this is patch 11) and also added a clarification for pfn_valid() and offline pages. There is st

[PATCH 01/14] mm: remove return value from init_currently_empty_zone

2017-05-15 Thread Michal Hocko
From: Michal Hocko init_currently_empty_zone doesn't have any error to return yet it is still an int and callers try to be defensive and try to handle potential error. Remove this nonsense and simplify all callers. This patch shouldn't have any visible effect Acked-by: Balbir Singh Acked-by: V

[PATCH 02/14] mm, memory_hotplug: use node instead of zone in can_online_high_movable

2017-05-15 Thread Michal Hocko
From: Michal Hocko the primary purpose of this helper is to query the node state so use the node id directly. This is a preparatory patch for later changes. This shouldn't introduce any functional change Acked-by: Vlastimil Babka Reviewed-by: Yasuaki Ishimatsu Signed-off-by: Michal Hocko ---

[tip:sched/core] sched/core: Call __schedule() from do_idle() without enabling preemption

2017-05-15 Thread tip-bot for Steven Rostedt (VMware)
Commit-ID: 8663effb24f9430394d3bf1ed2dac42a771421d1 Gitweb: http://git.kernel.org/tip/8663effb24f9430394d3bf1ed2dac42a771421d1 Author: Steven Rostedt (VMware) AuthorDate: Fri, 14 Apr 2017 08:48:09 -0400 Committer: Ingo Molnar CommitDate: Mon, 15 May 2017 10:09:12 +0200 sched/core: Call

[tip:sched/core] sched/cfs: Make util/load_avg more stable

2017-05-15 Thread tip-bot for Vincent Guittot
Commit-ID: 625ed2bf049d5a352c1bcca962d6e133454eaaff Gitweb: http://git.kernel.org/tip/625ed2bf049d5a352c1bcca962d6e133454eaaff Author: Vincent Guittot AuthorDate: Wed, 26 Apr 2017 08:27:56 +0200 Committer: Ingo Molnar CommitDate: Mon, 15 May 2017 10:15:13 +0200 sched/cfs: Make util/loa

[PATCH 03/14] mm: drop page_initialized check from get_nid_for_pfn

2017-05-15 Thread Michal Hocko
From: Michal Hocko c04fc586c1a4 ("mm: show node to memory section relationship with symlinks in sysfs") has added means to export memblock<->node association into the sysfs. It has also introduced get_nid_for_pfn which is a rather confusing counterpart of pfn_to_nid which checks also whether the

[PATCH 05/14] mm, memory_hotplug: split up register_one_node

2017-05-15 Thread Michal Hocko
From: Michal Hocko Memory hotplug (add_memory_resource) has to reinitialize node infrastructure if the node is offline (one which went through the complete add_memory(); remove_memory() cycle). That involves node registration to the kobj infrastructure (register_node), the proper association with

[PATCH 06/14] mm, memory_hotplug: consider offline memblocks removable

2017-05-15 Thread Michal Hocko
From: Michal Hocko is_pageblock_removable_nolock relies on having zone association to examine all the page blocks to check whether they are movable or free. This is just wasting of cycles when the memblock is offline. Later patch in the series will also change the time when the page is associated

[PATCH 07/14] mm: consider zone which is not fully populated to have holes

2017-05-15 Thread Michal Hocko
From: Michal Hocko __pageblock_pfn_to_page has two users currently, set_zone_contiguous which checks whether the given zone contains holes and pageblock_pfn_to_page which then carefully returns a first valid page from the given pfn range for the given zone. This doesn't handle zones which are not

[PATCH 12/14] mm, memory_hotplug: replace for_device by want_memblock in arch_add_memory

2017-05-15 Thread Michal Hocko
From: Michal Hocko arch_add_memory gets for_device argument which then controls whether we want to create memblocks for created memory sections. Simplify the logic by telling whether we want memblocks directly rather than going through pointless negation. This also makes the api easier to underst

Re: [PATCH v3] arm64: perf: Ignore exclude_hv when kernel is running in HYP

2017-05-15 Thread Ganapatrao Kulkarni
Hi Will, if this patch looks good, can it go in 4.12-rc2 as bug fix? or can it be queued for 4.13? On Tue, May 2, 2017 at 9:59 PM, Ganapatrao Kulkarni wrote: > commit d98ecdaca296 ("arm64: perf: Count EL2 events if the kernel is > running in HYP") returns -EINVAL when perf system call perf_event

Re: [PATCH 04/36] mutex, futex: adjust kernel-doc markups to generate ReST

2017-05-15 Thread Mauro Carvalho Chehab
Em Mon, 15 May 2017 09:03:48 +0200 Peter Zijlstra escreveu: > On Fri, May 12, 2017 at 03:19:17PM -0700, Darren Hart wrote: > > On Sat, May 13, 2017 at 12:11:09AM +0200, Peter Zijlstra wrote: > > > > And I really _really_ hate to see that rest crap spread here. Can't we > > > just delete all th

[PATCH 10/14] mm, vmstat: skip reporting offline pages in pagetypeinfo

2017-05-15 Thread Michal Hocko
From: Michal Hocko pagetypeinfo_showblockcount_print skips over invalid pfns but it would report pages which are offline because those have a valid pfn. Their migrate type is misleading at best. Now that we have pfn_to_online_page() we can use it instead of pfn_valid() and fix this. Noticed-by:

[PATCH 11/14] mm, memory_hotplug: do not associate hotadded memory to zones until online

2017-05-15 Thread Michal Hocko
From: Michal Hocko The current memory hotplug implementation relies on having all the struct pages associate with a zone/node during the physical hotplug phase (arch_add_memory->__add_pages->__add_section->__add_zone). In the vast majority of cases this means that they are added to ZONE_NORMAL. T

[PATCH 08/14] mm, compaction: skip over holes in __reset_isolation_suitable

2017-05-15 Thread Michal Hocko
From: Michal Hocko __reset_isolation_suitable walks the whole zone pfn range and it tries to jump over holes by checking the zone for each page. It might still stumble over offline pages, though. Skip those by checking pfn_to_online_page() Signed-off-by: Michal Hocko --- mm/compaction.c | 5 ++

[PATCH 13/14] mm, memory_hotplug: fix the section mismatch warning

2017-05-15 Thread Michal Hocko
From: Michal Hocko Tobias has reported following section mismatches introduced by "mm, memory_hotplug: do not associate hotadded memory to zones until online". WARNING: mm/built-in.o(.text+0x5a1c2): Section mismatch in reference from the function move_pfn_range_to_zone() to the function .memin

[PATCH 14/14] mm, memory_hotplug: remove unused cruft after memory hotplug rework

2017-05-15 Thread Michal Hocko
From: Michal Hocko zone_for_memory doesn't have any user anymore as well as the whole zone shifting infrastructure so drop them all. This shouldn't introduce any functional changes. Acked-by: Vlastimil Babka Signed-off-by: Michal Hocko --- include/linux/memory_hotplug.h | 2 - mm/memory_ho

[PATCH 09/14] mm: __first_valid_page skip over offline pages

2017-05-15 Thread Michal Hocko
From: Michal Hocko __first_valid_page skips over invalid pfns in the range but it might still stumble over offline pages. At least start_isolate_page_range will mark those set_migratetype_isolate. This doesn't represent any immediate AFAICS because alloc_contig_range will fail to isolate those pa

[PATCH 0/3] drm/omap: Support for hotplug detection

2017-05-15 Thread Peter Ujfalusi
Hi, this series will add support for HPD in omapdrm. Instead of polling for HPD changes we can use interrupts to be notified of HPD change, thus we can react to events faster. The series is based on top of 4.12-rc1 Regards, Peter --- Peter Ujfalusi (3): drm/omap: Support for HDMI hot plug dete

[PATCH 2/3] drm/omap: displays: connector-hdmi: Support for hot plug detection

2017-05-15 Thread Peter Ujfalusi
If the hpd_gpio is valid, use interrupt handler to react to HPD changes. In case the hpd_gpio is not valid, try to enable hpd detection on the encoder if it supports it. Signed-off-by: Peter Ujfalusi --- drivers/gpu/drm/omapdrm/displays/connector-hdmi.c | 104 ++ 1 file chang

[PATCH 3/3] drm/omap: displays: encoder-tpd12s015: Support for hot plug detection

2017-05-15 Thread Peter Ujfalusi
Use interrupt handler for hpd GPIO to react to HPD changes. Signed-off-by: Peter Ujfalusi --- .../gpu/drm/omapdrm/displays/encoder-tpd12s015.c | 81 ++ 1 file changed, 81 insertions(+) diff --git a/drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c b/drivers/gpu/drm/oma

[PATCH 1/3] drm/omap: Support for HDMI hot plug detection

2017-05-15 Thread Peter Ujfalusi
The HPD signal can be used for detecting HDMI cable plug and unplug event without the need for polling the status of the line. This will speed up detecting such event because we do not need to wait for the next poll event to notice the state change. Signed-off-by: Peter Ujfalusi --- drivers/gpu/

Re: [RFC][PATCH 0/5] perf/tracing/cpuhotplug: Fix locking order

2017-05-15 Thread Peter Zijlstra
On Sat, May 13, 2017 at 06:40:03AM -0700, Paul E. McKenney wrote: > On Fri, May 12, 2017 at 05:34:48PM -0400, Steven Rostedt wrote: > > On Fri, 12 May 2017 21:49:56 +0200 > > [ . . . ] > > > This means that text_mutex, which was taken by the alternative code, no > > longer is taken in cpu hotplug

[PATCH] drm/nouveau: Fix drm poll_helper handling

2017-05-15 Thread Peter Ujfalusi
Commit cae9ff036eea effectively disabled the drm poll_helper by checking the wrong flag to see if the driver should enable the poll or not: mode_config.poll_enabled is only set to true by poll_init and it is not indicating if the poll is enabled or not. nouveau_display_create() will initialize the

Re: [PATCH 10/13] sound: fix the comments that refers to kernel-doc

2017-05-15 Thread Takashi Iwai
On Sun, 14 May 2017 17:38:44 +0200, Mauro Carvalho Chehab wrote: > > The markup inside the #if 0 comment actually refers to a > kernel-doc markup. As we're getting rid of DocBook update it. > > Signed-off-by: Mauro Carvalho Chehab I guess you prefer taking it from your tree? Feel free to take

[PATCH 04/14] mm, memory_hotplug: get rid of is_zone_device_section

2017-05-15 Thread Michal Hocko
From: Michal Hocko device memory hotplug hooks into regular memory hotplug only half way. It needs memory sections to track struct pages but there is no need/desire to associate those sections with memory blocks and export them to the userspace via sysfs because they cannot be onlined anyway. Th

[tip:sched/core] sched/topology: Refactor function build_overlap_sched_groups()

2017-05-15 Thread tip-bot for Lauro Ramos Venancio
Commit-ID: 8c0334697dc37eb3d6d7632304d3a3662248daac Gitweb: http://git.kernel.org/tip/8c0334697dc37eb3d6d7632304d3a3662248daac Author: Lauro Ramos Venancio AuthorDate: Thu, 13 Apr 2017 10:56:07 -0300 Committer: Ingo Molnar CommitDate: Mon, 15 May 2017 10:15:22 +0200 sched/topology: Ref

Re: [PATCH v2 1/5] pinctrl: qcom: Add ipq8074 pinctrl driver

2017-05-15 Thread Varadarajan Narayanan
On 5/14/2017 9:53 AM, Bjorn Andersson wrote: On Thu 11 May 03:33 PDT 2017, Varadarajan Narayanan wrote: On 5/11/2017 4:13 AM, Bjorn Andersson wrote: On Thu 04 May 04:53 PDT 2017, Varadarajan Narayanan wrote: [..] +enum ipq8074_functions { Please keep these sorted alphabetically. Ok +

Re: [PATCH] socfpga_a10: reset CPU1 in socfpga_cpu_kill()

2017-05-15 Thread yjin
On 2017年05月12日 22:36, Mark Rutland wrote: On Wed, May 10, 2017 at 01:13:04AM -0400, yanjiang@windriver.com wrote: From: Yanjiang Jin Kexec's second kernel would hang if CPU1 isn't reset. Signed-off-by: Yanjiang Jin --- arch/arm/mach-socfpga/platsmp.c | 12 +++- 1 file changed

[tip:sched/core] sched/fair, cpumask: Export for_each_cpu_wrap()

2017-05-15 Thread tip-bot for Peter Zijlstra
Commit-ID: c743f0a5c50f2fcbc628526279cfa24f3dabe182 Gitweb: http://git.kernel.org/tip/c743f0a5c50f2fcbc628526279cfa24f3dabe182 Author: Peter Zijlstra AuthorDate: Fri, 14 Apr 2017 14:20:05 +0200 Committer: Ingo Molnar CommitDate: Mon, 15 May 2017 10:15:23 +0200 sched/fair, cpumask: Expo

[PATCH 1/6] interval-tree: Build unconditionally

2017-05-15 Thread Davidlohr Bueso
In preparation for range locking, this patch gets rid of CONFIG_INTERVAL_TREE option as we will unconditionally build it. Signed-off-by: Davidlohr Bueso --- drivers/gpu/drm/Kconfig | 2 -- drivers/gpu/drm/i915/Kconfig | 1 - lib/Kconfig | 14 -- lib/Kconfig.de

[PATCH 2/6] locking: Introduce range reader/writer lock

2017-05-15 Thread Davidlohr Bueso
This implements a sleepable range rwlock, based on interval tree, serializing conflicting/intersecting/overlapping ranges within the tree. The largest range is given by [0, ~0] (inclusive). Unlike traditional locks, range locking involves dealing with the tree itself and the range to be locked, nor

[PATCH 3/6] locking/locktorture: Fix rwsem reader_delay

2017-05-15 Thread Davidlohr Bueso
We should account for nreader threads, not writers in this callback. Could even trigger a div by 0 if the user explicitly disables writers. Signed-off-by: Davidlohr Bueso --- kernel/locking/locktorture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/locking/locktortu

[PATCH v3 -tip 0/6] locking: Introduce range reader/writer lock

2017-05-15 Thread Davidlohr Bueso
Changes from v2 (https://lwn.net/Articles/719182/): - Renamed to range_lock - Added lockdep support with rwsem semantics - Fix range_lock_set_reader() being overwritten - Improved documentation wrt ordering and fairness as well as overall description (less implementation details). Chan

[PATCH 5/6] locking/locktorture: Support range rwlocks

2017-05-15 Thread Davidlohr Bueso
Torture the reader/writer range locks. Each thread will attempt to lock+unlock a range of up to [0, 4096]. Signed-off-by: Davidlohr Bueso --- kernel/locking/locktorture.c | 221 +-- 1 file changed, 172 insertions(+), 49 deletions(-) diff --git a/kernel/lo

[PATCH 6/6] staging/lustre: Use generic range rwlock

2017-05-15 Thread Davidlohr Bueso
This replaces the in-house version, which is also derived from Jan's interval tree implementation. Cc: oleg.dro...@intel.com Cc: andreas.dil...@intel.com Cc: jsimm...@infradead.org Cc: lustre-de...@lists.lustre.org Signed-off-by: Davidlohr Bueso --- drivers/staging/lustre/lustre/llite/Makefile

[PATCH 1/2] ipack: Delete an error message for a failed memory allocation in ipack_device_read_id()

2017-05-15 Thread Samuel Iglesias Gonsálvez
From: Markus Elfring Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signed-off-by: Markus Elfring Acked-by: S

[tip:sched/core] sched/topology: Optimize build_group_mask()

2017-05-15 Thread tip-bot for Lauro Ramos Venancio
Commit-ID: f32d782e31bf079f600dcec126ed117b0577e85c Gitweb: http://git.kernel.org/tip/f32d782e31bf079f600dcec126ed117b0577e85c Author: Lauro Ramos Venancio AuthorDate: Thu, 20 Apr 2017 16:51:40 -0300 Committer: Ingo Molnar CommitDate: Mon, 15 May 2017 10:15:26 +0200 sched/topology: Opt

[PATCH 2/2] ipack: Improve a size determination in ipack_bus_register()

2017-05-15 Thread Samuel Iglesias Gonsálvez
From: Markus Elfring Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus Elfring Acked-by: Samuel Iglesias

[PATCH 4/6] locking/locktorture: Fix num reader/writer corner cases

2017-05-15 Thread Davidlohr Bueso
Things can explode for locktorture if the user does combinations of nwriters_stress=0 nreaders_stress=0. Fix this by not assuming we always want to torture writer threads. Signed-off-by: Davidlohr Bueso --- kernel/locking/locktorture.c | 76 +--- 1 file ch

[tip:sched/core] sched/topology: Move comment about asymmetric node setups

2017-05-15 Thread tip-bot for Lauro Ramos Venancio
Commit-ID: c20e1ea4b61c3d99a354d912f2d74822fd2a001d Gitweb: http://git.kernel.org/tip/c20e1ea4b61c3d99a354d912f2d74822fd2a001d Author: Lauro Ramos Venancio AuthorDate: Thu, 20 Apr 2017 16:51:42 -0300 Committer: Ingo Molnar CommitDate: Mon, 15 May 2017 10:15:27 +0200 sched/topology: Mov

Re: [PATCH 3/3] clk: hi3660: Set PPLL2 to 2880M

2017-05-15 Thread kbuild test robot
Hi Zhong, [auto build test WARNING on clk/clk-next] [also build test WARNING on v4.12-rc1 next-20170515] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Guodong-Xu/clk-hi3660-fix-wrong-parent

RE: [PATCH V8 4/5] PCI/ASPM: save power on values during bridge init

2017-05-15 Thread Patel, Mayurkumar
Hi Bjorn Thanks a lot for your reply and explanations. Sorry for my late reply due to some other emergencies. > >On Tue, May 02, 2017 at 12:02:53PM +, Patel, Mayurkumar wrote: >> >On Fri, Apr 21, 2017 at 2:46 AM, Patel, Mayurkumar >> > wrote: >> >>>On 4/17/2017 12:38 PM, Bjorn Helgaas wrote:

Re: [PATCH] iio: adc: sun4i-gpadc-iio: fix parent device being used in devm function

2017-05-15 Thread Maxime Ripard
On Mon, May 15, 2017 at 09:39:02AM +0200, Quentin Schulz wrote: > For the sake of DT binding stability, this IIO driver is a child of an > MFD driver for Allwinner A10, A13 and A31 because there already exists a > DT binding for this IP. The MFD driver has a DT node but the IIO driver > does not. >

[V2 PATCH] socfpga_a10: fix a kexec boot issue

2017-05-15 Thread yanjiang.jin
From: Yanjiang Jin V1->V2: 1. Add flush_cache_all() in cpu_die(); 2. Add more descriptive on the commit log; Also validate kexec and CPU_HOTPLUG as before. I guess socfpga's other boards may need this patch, but I have Arria10 board only. So add a new function socfpga_a10_cpu_kill(), keep the

[PATCH] socfpga_a10: reset CPU1 in socfpga_cpu_kill()

2017-05-15 Thread yanjiang.jin
From: Yanjiang Jin socfpga_cpu_die() just puts CPU in WFI, not actually off. So that Kexec's second kernel goes wrong since the kerenl text gets ovewritten. Now reset CPU1 in cpu_kill() to avoid this error. Also add flush_cache_all() to prevent data from being lost in cpu_die(). Signed-off-by: Y

Re: [RFC] NVMe Configuraiton using sysctl

2017-05-15 Thread Sagi Grimberg
Hi, Hi Oza, we are configuring interrupt coalesce for NVMe, but right now, it uses module param. so the same interrupt coalesce settings get applied for all the NVMEs connected to different RCs. ideally it should be with sysctl. If at all, I would place this in nvme-cli (via ioctl) instea

Re: [RFC/RFT PATCH 3/3] PCI/ACPI: Add ACPI pci_bus_find_numa_node() implementation

2017-05-15 Thread Lorenzo Pieralisi
On Mon, May 15, 2017 at 02:13:47PM +0800, Zhou Wang wrote: > On 2017/4/26 18:06, Lorenzo Pieralisi wrote: > > The introduction of pci_bus_find_numa_node(pci_bus) allows at PCI > > host bridge registration to detect the NUMA node for a given > > struct pci_bus.dev. Implement an ACPI method that, thr

[tip:sched/core] sched/fair: Use task_groups instead of leaf_cfs_rq_list to walk all cfs_rqs

2017-05-15 Thread tip-bot for Peter Zijlstra
Commit-ID: 502ce005ab95d5d9481768649dbab808845b24d7 Gitweb: http://git.kernel.org/tip/502ce005ab95d5d9481768649dbab808845b24d7 Author: Peter Zijlstra AuthorDate: Thu, 4 May 2017 15:31:22 +0200 Committer: Ingo Molnar CommitDate: Mon, 15 May 2017 10:15:35 +0200 sched/fair: Use task_group

Re: [PATCH 2/2] Revert "ACPI / button: Change default behavior to lid_init_state=open"

2017-05-15 Thread Rafael J. Wysocki
On Mon, May 15, 2017 at 9:45 AM, Benjamin Tissoires wrote: > On May 12 2017 or thereabouts, Rafael J. Wysocki wrote: >> On Friday, May 12, 2017 02:36:20 AM Zheng, Lv wrote: >> > Hi, >> > >> > > From: Benjamin Tissoires [mailto:benjamin.tissoi...@redhat.com] >> > > Subject: Re: [PATCH 2/2] Revert "

[tip:sched/core] sched/fair: Fix O(nr_cgroups) in load balance path

2017-05-15 Thread tip-bot for Tejun Heo
Commit-ID: d517a114fc478a61886c3fdf22db68b6d831 Gitweb: http://git.kernel.org/tip/d517a114fc478a61886c3fdf22db68b6d831 Author: Tejun Heo AuthorDate: Tue, 25 Apr 2017 17:43:50 -0700 Committer: Ingo Molnar CommitDate: Mon, 15 May 2017 10:15:36 +0200 sched/fair: Fix O(nr_cgroups)

Re: [PATCH 1/3] arm64: dts: hi3660: add pcie node

2017-05-15 Thread kbuild test robot
Hi Song, [auto build test ERROR on pci/next] [also build test ERROR on v4.12-rc1 next-20170515] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Song-Xiaowei/arm64-dts-hi3660-add-pcie-node

Re: [PATCH] iio: adc: sun4i-gpadc-iio: fix parent device being used in devm function

2017-05-15 Thread Quentin Schulz
Hi Maxime, On 15/05/2017 11:11, Maxime Ripard wrote: > On Mon, May 15, 2017 at 09:39:02AM +0200, Quentin Schulz wrote: >> For the sake of DT binding stability, this IIO driver is a child of an >> MFD driver for Allwinner A10, A13 and A31 because there already exists a >> DT binding for this IP. Th

Re: [patch 06/18] powerpc: Adjust system_state check

2017-05-15 Thread Michael Ellerman
Thomas Gleixner writes: > To enable smp_processor_id() and might_sleep() debug checks earlier, it's > required to add system states between SYSTEM_BOOTING and SYSTEM_RUNNING. > > Adjust the system_state check in smp_generic_cpu_bootable() to handle the > extra states. > > Signed-off-by: Thomas Gl

Re: [PATCH v3 3/9] dt-bindings: arm: mediatek: update for MT7623n SoC and relevant boards

2017-05-15 Thread Sean Wang
Hi Matthias, Appreciate your help on reviewing. Add my comments inline On Mon, 2017-05-15 at 09:53 +0200, Matthias Brugger wrote: > > On 12/05/17 09:56, sean.w...@mediatek.com wrote: > > From: Sean Wang > > > > Because there are two versions of MT7623 SoC that is MT7623a and MT7623n > > respe

Re: [PATCH v2 -tip 0/6] locking: Introduce range reader/writer lock

2017-05-15 Thread Davidlohr Bueso
On Thu, 20 Apr 2017, Peter Zijlstra wrote: For opt spinning we need to specifically know who would be next in order, again, doesn't matter how many, just who's next. I've sent a v3 with a more precise description of this, which I hope is to your satisfaction. Given a clear tree iteration/orde

Re: [PATCH v7 05/13] drm/sun4i: abstract a engine type

2017-05-15 Thread Maxime Ripard
On Mon, May 15, 2017 at 12:30:37AM +0800, Icenowy Zheng wrote: > As we are going to add support for the Allwinner DE2 engine in sun4i-drm > driver, we will finally have two types of display engines -- the DE1 > backend and the DE2 mixer. They both do some display blending and feed > graphics data t

[PATCH v2 0/3] arm64: dts: introduce QorIQ DPAA 1.x QBMan device tree nodes

2017-05-15 Thread Madalin Bucur
This patch set introduces the QorIQ Data Path Acceleration Arhitecture (DPAA) Queue Manager and Buffer Manager device tree nodes for the ARM based DPAA 1.x platforms. Changes since v1 - addressed feedback received from Shawn Guo: - renamed portal dtsi files - added required newlines - removed t

[PATCH v2 3/3] arm64: dts: add LS1046A DPAA QBMan nodes

2017-05-15 Thread Madalin Bucur
Add the QBMan device tree nodes for LS1046A devices. Signed-off-by: Roy Pledge Signed-off-by: Madalin Bucur --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 54 ++ 1 file changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi b/arch/a

[PATCH v2 1/3] arm64: dts: add DPAA QBMan portals

2017-05-15 Thread Madalin Bucur
Add the DPAA 1.x DPAA QMan and BMan portal nodes. Signed-off-by: Roy Pledge Signed-off-by: Madalin Bucur --- .../boot/dts/freescale/qoriq-bman-portals.dtsi | 71 +++ .../boot/dts/freescale/qoriq-qman-portals.dtsi | 80 ++ 2 files changed, 151 insertio

Re: [PATCH] ovl: select EXPORTFS

2017-05-15 Thread Miklos Szeredi
On Thu, May 11, 2017 at 1:34 PM, Arnd Bergmann wrote: > We get a link error when EXPORTFS is not enabled: > > ERROR: "exportfs_encode_fh" [fs/overlayfs/overlay.ko] undefined! > ERROR: "exportfs_decode_fh" [fs/overlayfs/overlay.ko] undefined! > > This adds a Kconfig 'select' statement for overlayfs

[PATCH v2 2/3] arm64: dts: add LS1043A DPAA QBMan nodes

2017-05-15 Thread Madalin Bucur
Add the DPAA 1.x QMan and BMan nodes in the LS1043A device tree. Signed-off-by: Roy Pledge Signed-off-by: Madalin Bucur --- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 53 ++ 1 file changed, 53 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dt

Re: [PATCH v7 03/13] dt-bindings: add bindings for DE2 on V3s SoC

2017-05-15 Thread Maxime Ripard
On Mon, May 15, 2017 at 12:30:35AM +0800, Icenowy Zheng wrote: > Allwinner V3s SoC have a display engine which have a different pipeline > with older SoCs. > > Add document for it (new compatibles and the new "mixer" part). > > Signed-off-by: Icenowy Zheng > Acked-by: Rob Herring Applied, than

Re: [PATCH v7 11/13] ARM: sun8i: v3s: add device nodes for DE2 display pipeline

2017-05-15 Thread Maxime Ripard
On Mon, May 15, 2017 at 12:30:43AM +0800, Icenowy Zheng wrote: > + de2_clocks: clock@100 { display_clocks would be better there, we don't have to dissociate de1 with de2 > + compatible = "allwinner,sun8i-v3s-de2-clk"; > + reg = <0x0100 0

Re: [PATCH v7 04/13] drm/sun4i: return only planes for layers created

2017-05-15 Thread Maxime Ripard
On Mon, May 15, 2017 at 12:30:36AM +0800, Icenowy Zheng wrote: > As we are going to add support for the Allwinner DE2 Mixer in sun4i-drm > driver, we will finally have two types of layers. > > Each layer is bound to a drm_plane that is CRTC-specific, so we create > them when initializing CRTC (cal

[PATCHv3 02/14] pinctrl: mcp23s08: add pinconf support

2017-05-15 Thread Sebastian Reichel
mcp23xxx device have configurable 100k pullup resistors. This adds support for enabling them using pinctrl's pinconf interface. Signed-off-by: Sebastian Reichel --- drivers/pinctrl/Kconfig| 1 + drivers/pinctrl/pinctrl-mcp23s08.c | 199 - 2 files

[PATCHv3 12/14] pinctrl: mcp23s08: simplify spi_present_mask handling

2017-05-15 Thread Sebastian Reichel
Signed-off-by: Sebastian Reichel --- arch/blackfin/mach-bf527/boards/tll6527m.c | 4 ++-- drivers/pinctrl/pinctrl-mcp23s08.c | 29 ++--- include/linux/spi/mcp23s08.h | 6 +- 3 files changed, 13 insertions(+), 26 deletions(-) diff --git a/arch/b

[PATCHv3 06/14] pinctrl: mcp23s08: irq mapping is already done

2017-05-15 Thread Sebastian Reichel
i2c-core and spi-core already assign the irq, so we can drop the additional call from the mcp driver. Signed-off-by: Sebastian Reichel --- drivers/pinctrl/pinctrl-mcp23s08.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/pinctrl/pinctrl-mcp23s08.c b/drivers/pinctrl/pinctrl-mcp23

[PATCHv3 10/14] pinctrl: mcp23s08: simplify spi pdata handling

2017-05-15 Thread Sebastian Reichel
Simplify spi pdata handling, so that it uses pdata when available and falls back to reading device properties otherwise. Signed-off-by: Sebastian Reichel --- drivers/pinctrl/pinctrl-mcp23s08.c | 67 ++ 1 file changed, 32 insertions(+), 35 deletions(-) diff --

[PATCHv3 07/14] pinctrl: mcp23s08: use managed kzalloc for mcp

2017-05-15 Thread Sebastian Reichel
Let's remove a few lines of code by using managed memory for mcp variable. Signed-off-by: Sebastian Reichel --- drivers/pinctrl/pinctrl-mcp23s08.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/pinctrl/pinctrl-mcp23s08.c b/drivers/pinctrl/pinctrl-mcp23s08

[PATCHv3 14/14] pinctrl: mcp23s08: fix comment for mcp23s08_platform_data.base

2017-05-15 Thread Sebastian Reichel
The comment does not match the driver, which actually supports automatic assignment. Fix this by updating the comment. Signed-off-by: Sebastian Reichel --- include/linux/spi/mcp23s08.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/linux/spi/mcp23s08.h b/i

[PATCHv3 00/14] mcp23s08 pinconf & cleanup

2017-05-15 Thread Sebastian Reichel
Hi, Here is a rebase of my PATCHv2 in combination with the second patchset, which migrates to regmap based register caching. I also added a few more patches, that do misc. cleanups in the driver and remove ~100 loc (that's 10%). The first patch and the 12th patch ("simplify spi_present_mask handl

[PATCHv3 03/14] pinctrl: mcp23s08: drop pullup config from pdata

2017-05-15 Thread Sebastian Reichel
mcp23s08 support configuration of the pullups using the pinconf framework. This removes the custom pullup configuration from platform data, which has no upstream users. Signed-off-by: Sebastian Reichel --- drivers/pinctrl/pinctrl-mcp23s08.c | 7 --- include/linux/spi/mcp23s08.h | 1 -

Re: [PATCH v2 2/2] dmaengine: dw: Remove AVR32 bits from the driver

2017-05-15 Thread Lars-Peter Clausen
On 05/15/2017 10:43 AM, Andy Shevchenko wrote: > On Sun, 2017-05-14 at 18:34 +0530, Vinod Koul wrote: >> On Tue, May 09, 2017 at 07:18:37PM +0300, Andy Shevchenko wrote: >>> AVR32 is gone. Now it's time to clean up the driver by removing >>> leftovers that was used by AVR32 related code. >> >> Sinc

[PATCHv3 11/14] pinctrl: mcp23s08: generalize irq property handling

2017-05-15 Thread Sebastian Reichel
This moves irq property handling from spi/i2c specific code into the generic mcp23s08_probe_one. This is possible because the device properties are named equally. As a side-effect this drops support for setting the properties via pdata, which has no mainline users. If boardcode wants to enable the

[PATCHv3 13/14] pinctrl: mcp23s08: drop comment about missing irq support

2017-05-15 Thread Sebastian Reichel
The driver supports using mcp23xxx as interrupt controller, so let's drop all comments stating otherwise. Signed-off-by: Sebastian Reichel --- drivers/pinctrl/pinctrl-mcp23s08.c | 19 ++- include/linux/spi/mcp23s08.h | 3 --- 2 files changed, 2 insertions(+), 20 deletions(

[PATCHv3 09/14] pinctrl: mcp23s08: simplify i2c pdata handling

2017-05-15 Thread Sebastian Reichel
Simplify i2c pdata handling, so that it uses pdata when available and falls back to reading device properties otherwise. Signed-off-by: Sebastian Reichel --- drivers/pinctrl/pinctrl-mcp23s08.c | 26 +++--- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/drivers

[PATCHv3 08/14] pinctrl: mcp23s08: switch to devm_gpiochip_add_data

2017-05-15 Thread Sebastian Reichel
Switching to devm_gpiochip_add_data simplifies the driver's cleanup routine and safes a few loc. Signed-off-by: Sebastian Reichel --- drivers/pinctrl/pinctrl-mcp23s08.c | 40 ++ 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/drivers/pinctrl/pin

Re: [PATCH] powerpc/modules: If mprofile-kernel is enabled add it to vermagic

2017-05-15 Thread Michael Ellerman
Jessica Yu writes: > +++ Michael Ellerman [10/05/17 16:57 +1000]: >>On powerpc we can build the kernel with two different ABIs for mcount(), which >>is used by ftrace. Kernels built with one ABI do not know how to load modules >>built with the other ABI. The new style ABI is called "mprofile-kern

[PATCHv3 05/14] pinctrl: mcp23s08: drop OF_GPIO dependency

2017-05-15 Thread Sebastian Reichel
The driver compiles & works perfectly fine without OF_GPIO on x86, so lets drop the dependency. Signed-off-by: Sebastian Reichel --- drivers/pinctrl/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 1dabd1d79c1d..1c80b970554e 10064

[PATCHv3 01/14] gpio: mcp23s08: move to pinctrl

2017-05-15 Thread Sebastian Reichel
This moves the mcp23s08 driver from gpio to pinctrl. Actual pinctrl support for configuration of the pull-up resistors follows in its own patch. Signed-off-by: Sebastian Reichel --- arch/arm/configs/lpc32xx_defconfig | 2 +- arch/blackfin/configs/BF609-EZKIT_defconfig

[PATCHv3 04/14] pinctrl: mcp23s08: switch to regmap caching

2017-05-15 Thread Sebastian Reichel
Instead of using custom caching, this switches to regmap based caching. Before the conversion the debugfs file used uncached values, so that it was easily possible to see power-loss related problems. The new code will check and recover at this place. The patch will also ensure, that irqs are not c

Re: [PATCH v3 4/6] drm: Use new mode_valid() helpers in connector probe helper

2017-05-15 Thread Daniel Vetter
On Mon, May 15, 2017 at 10:39:35AM +0200, Andrzej Hajda wrote: > On 11.05.2017 11:06, Jose Abreu wrote: > > This changes the connector probe helper function to use the new > > encoder->mode_valid(), bridge->mode_valid() and crtc->mode_valid() > > helper callbacks to validate the modes. > > > > The

Re: [PATCH v2] i2c: mux: only print failure message on error

2017-05-15 Thread Wolfram Sang
> Wolfram, you can take this one directly if you wish. You can also > take [1] (and optionally [2]) directly if you wish. Or just holler > and I'll send you a pull request with [1] and this patch for-current. Frankly, I'd prefer a pull-request. Less chances that I mix up things for patches which

Re: [PATCH v3 05/21] ARM: dts: at91: Add generic compatible string for I2C EEPROM

2017-05-15 Thread Alexandre Belloni
On 13/04/2017 at 22:04:29 -0300, Javier Martinez Canillas wrote: > The at24 driver allows to register I2C EEPROM chips using different vendor > and devices, but the I2C subsystem does not take the vendor into account > when matching using the I2C table since it only has device entries. > > But whe

Re: [PATCH 04/36] mutex, futex: adjust kernel-doc markups to generate ReST

2017-05-15 Thread Peter Zijlstra
On Mon, May 15, 2017 at 06:00:46AM -0300, Mauro Carvalho Chehab wrote: > > Well, I don't mind the '-' thing before return values too much, but the > > below chunk is just pure drivel. It makes a perfectly good comment > > worse. > > > > --- a/kernel/locking/mutex.c > > +++ b/kernel/locking/mutex.

[PATCH] Staging: rtl8723bs: core: rtw_mlme: Fix spelling issues

2017-05-15 Thread Ammly Fredrick
Fixed spelling warnings produced by scripts/checkpatch.pl Signed-off-by: Ammly Fredrick --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rt

Re: [linux-sunxi] Re: [PATCH v7 05/13] drm/sun4i: abstract a engine type

2017-05-15 Thread Icenowy Zheng
于 2017年5月15日 GMT+08:00 下午5:20:01, Maxime Ripard 写到: >On Mon, May 15, 2017 at 12:30:37AM +0800, Icenowy Zheng wrote: >> As we are going to add support for the Allwinner DE2 engine in >sun4i-drm >> driver, we will finally have two types of display engines -- the DE1 >> backend and the DE2 mixer.

Re: [PATCH] Use device_property_read instead of of_property_read in the dw_mmc driver

2017-05-15 Thread Ulf Hansson
On 25 April 2017 at 17:39, David Woods wrote: > Using the device_property interfaces allows the dw_mmc driver to work > on platforms which run on either device tree or ACPI. > > Signed-off-by: David Woods > Reviewed-by: Chris Metcalf > --- > drivers/mmc/core/host.c | 72 > +++

Re: [PATCH 2/2] Revert "ACPI / button: Change default behavior to lid_init_state=open"

2017-05-15 Thread Benjamin Tissoires
On May 15 2017 or thereabouts, Rafael J. Wysocki wrote: > On Mon, May 15, 2017 at 9:45 AM, Benjamin Tissoires > wrote: > > On May 12 2017 or thereabouts, Rafael J. Wysocki wrote: > >> On Friday, May 12, 2017 02:36:20 AM Zheng, Lv wrote: > >> > Hi, > >> > > >> > > From: Benjamin Tissoires [mailto:b

Re: [PATCH 1/3] arm64: dts: hi3660: add pcie node

2017-05-15 Thread Guodong Xu
ntainers review this patch in parallel? +Device tree maintainers. -Guodong > > On Mon, May 15, 2017 at 5:18 PM, kbuild test robot wrote: >> >> Hi Song, >> >> [auto build test ERROR on pci/next] >> [also build test ERROR on v4.12-rc1 next-20170515] >&g

Re: [PATCH] memory: atmel-ebi: mark PM ops as __maybe_unused

2017-05-15 Thread Alexandre Belloni
On 19/04/2017 at 19:48:07 +0200, Arnd Bergmann wrote: > We get a harmless warning without CONFIG_PM: > > drivers/memory/atmel-ebi.c:584:12: error: 'atmel_ebi_resume' defined but not > used [-Werror=unused-function] > > Marking the function as __maybe_unused does the right thing here > and drops

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