Re: [PATCH v3] drm/msm: gpu: don't abuse dma_alloc for non-DMA allocations

2017-07-26 Thread Bjorn Andersson
On Wed 26 Jul 12:59 PDT 2017, Arnd Bergmann wrote: > In zap_shader_load_mdt(), we pass a pointer to a phys_addr_t > into dmam_alloc_coherent, which the compiler warns about: > > drivers/gpu/drm/msm/adreno/a5xx_gpu.c: In function 'zap_shader_load_mdt': > drivers/gpu/drm/msm/adreno/a5xx_gpu.c:54:50

[PATCH] selftests: capabilities: convert error output to TAP13 ksft framework

2017-07-26 Thread Shuah Khan
Convert errx() and err() usage to appropriate TAP13 ksft API. Signed-off-by: Shuah Khan --- tools/testing/selftests/capabilities/test_execve.c | 105 - .../testing/selftests/capabilities/validate_cap.c | 9 +- 2 files changed, 65 insertions(+), 49 deletions(-) diff --git

Re: [PATCH tip/core/rcu 02/15] rcu: Use timer as backstop for NOCB deferred wakeups

2017-07-26 Thread Steven Rostedt
On Tue, 25 Jul 2017 17:05:40 -0700 "Paul E. McKenney" wrote: > On Tue, Jul 25, 2017 at 06:17:10PM -0400, Steven Rostedt wrote: > > On Tue, 25 Jul 2017 12:18:14 -0700 > > "Paul E. McKenney" wrote: > > > > > On Tue, Jul 25, 2017 at 02:12:20PM -0400, Steven Rostedt wrote: > > > > On Mon, 24 Ju

Re: [PATCH tip/core/rcu 4/5] sys_membarrier: Add expedited option

2017-07-26 Thread Paul E. McKenney
On Wed, Jul 26, 2017 at 08:37:23PM +, Mathieu Desnoyers wrote: > - On Jul 26, 2017, at 2:30 PM, Paul E. McKenney > paul...@linux.vnet.ibm.com wrote: > > > On Wed, Jul 26, 2017 at 06:01:15PM +, Mathieu Desnoyers wrote: > >> - On Jul 26, 2017, at 11:42 AM, Paul E. McKenney > >> pau

Re: [PATCH 16/17] mem/memcg: cache rightmost node

2017-07-26 Thread Andrew Morton
On Wed, 19 Jul 2017 09:50:36 +0200 Michal Hocko wrote: > [CC Johannes and Vladimir - the whole series is > http://lkml.kernel.org/r/20170719014603.19029-1-d...@stgolabs.net] > > On Tue 18-07-17 18:46:02, Davidlohr Bueso wrote: > > Such that we can optimize __mem_cgroup_largest_soft_limit_node().

Re: [RFC PATCH 0/5] mm, memory_hotplug: allocate memmap from hotadded memory

2017-07-26 Thread Jerome Glisse
On Wed, Jul 26, 2017 at 10:33:28AM +0200, Michal Hocko wrote: > Hi, > this is another step to make the memory hotplug more usable. The primary > goal of this patchset is to reduce memory overhead of the hot added > memory (at least for SPARSE_VMEMMAP memory model). Currently we use > kmalloc to pop

[PATCH] clk: sunxi-ng: Fix header guard of ccu-sun8i-r.h

2017-07-26 Thread Matthias Kaehlcke
Remove trailing extra underscore in definition of _CCU_SUN8I_R_H Signed-off-by: Matthias Kaehlcke --- drivers/clk/sunxi-ng/ccu-sun8i-r.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-r.h b/drivers/clk/sunxi-ng/ccu-sun8i-r.h index a7a407f12b56

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-26 Thread David Daney
On 07/26/2017 01:08 PM, Greg KH wrote: On Wed, Jul 26, 2017 at 01:02:38PM -0700, David Daney wrote: On 07/26/2017 10:33 AM, Greg KH wrote: On Wed, Jul 26, 2017 at 06:30:49PM +0200, Borislav Petkov wrote: On Wed, Jul 26, 2017 at 09:19:49AM -0700, Greg KH wrote: On Wed, Jul 26, 2017 at 05:55:48

Re: [Eas-dev] [PATCH V3 1/3] sched: cpufreq: Allow remote cpufreq callbacks

2017-07-26 Thread Saravana Kannan
On 07/21/2017 06:03 AM, Peter Zijlstra wrote: On Thu, Jul 13, 2017 at 12:14:37PM +0530, Viresh Kumar wrote: diff --git a/drivers/cpufreq/cpufreq_governor.c b/drivers/cpufreq/cpufreq_governor.c index 47e24b5384b3..606b1a37a1af 100644 --- a/drivers/cpufreq/cpufreq_governor.c +++ b/drivers/cpufreq

Re: [PATCH v4.4.y] sched/cgroup: Move sched_online_group() back into css_online() to fix crash

2017-07-26 Thread Matt Fleming
On Wed, 26 Jul, at 07:35:51AM, Greg KH wrote: > > If it needs a backport and a simple cherry-pick does not work, yes > please. Oh, it turns out cherry-picking commit 96b777452d88 to 4.9-stable works just fine.

Re: [Eas-dev] [PATCH V3 2/3] cpufreq: schedutil: Process remote callback for shared policies

2017-07-26 Thread Saravana Kannan
On 07/20/2017 05:22 AM, Peter Zijlstra wrote: So the typical implementation of fast switching we're thinking of is the CPU writing the DVFS request into a machine register. Now machine registers are typically per logical CPU. Writing to a memory addressable register. AFAIK, ARM has no support f

Re: [PATCH] netpoll: Fix device name check in netpoll_setup()

2017-07-26 Thread Cong Wang
On Wed, Jul 26, 2017 at 11:44 AM, Doug Anderson wrote: > Hi, > > On Tue, Jul 25, 2017 at 11:36 AM, Matthias Kaehlcke wrote: >> Apparently netpoll_setup() assumes that netpoll.dev_name is a pointer >> when checking if the device name is set: >> >> if (np->dev_name) { >> ... >> >> However the fie

Re: [PATCH net-next v2 01/10] net: dsa: lan9303: Fixed MDIO interface

2017-07-26 Thread Egil Hjelmeland
Den 26. juli 2017 22:07, skrev David Miller: From: Andrew Lunn Date: Wed, 26 Jul 2017 19:52:24 +0200 So I really want to group the patches into only a few series in order to not spend months on the process. I strongly agree with Vivien here. Good patches get accepted in about 3 days. You sho

[PATCH] btrfs: Remove extra parentheses from condition in copy_items()

2017-07-26 Thread Matthias Kaehlcke
There is no need for the extra pair of parentheses, remove it. This fixes the following warning when building with clang: fs/btrfs/tree-log.c:3694:10: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((i == (nr - 1))) ~~^~~

Re: new objtool unreachable instruction warnings

2017-07-26 Thread Josh Poimboeuf
On Wed, Jul 26, 2017 at 09:52:36PM +0200, Arnd Bergmann wrote: > On Wed, Jul 26, 2017 at 9:10 PM, Josh Poimboeuf wrote: > > On Wed, Jul 26, 2017 at 04:46:40PM +0200, Arnd Bergmann wrote: > >> I only saw these warnings once, they are either very rare, or were > >> introduced > >> recently: > >> >

Re: [PATCH 0/3] memory: atmel-ebi: Fix setting EBI timings through dts

2017-07-26 Thread Alexandre Belloni
On 25/07/2017 at 14:00:21 +0200, Alexander Dahl wrote: > Hello, > > this small patch series based on v4.13-rc2 fixes three things I found > when trying to run the latest rc on an at91samg20 based platform with > a SRAM like memory connected to the EBI interface, for which the > timings should be s

Re: [PATCH tip/core/rcu 4/5] sys_membarrier: Add expedited option

2017-07-26 Thread Mathieu Desnoyers
- On Jul 26, 2017, at 2:30 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: > On Wed, Jul 26, 2017 at 06:01:15PM +, Mathieu Desnoyers wrote: >> - On Jul 26, 2017, at 11:42 AM, Paul E. McKenney >> paul...@linux.vnet.ibm.com >> wrote: >> >> > On Wed, Jul 26, 2017 at 09:46:56AM +

[PATCH] clk: meson: gxbb: add sd_emmc clk0 clocks

2017-07-26 Thread Jerome Brunet
Input source 0 of the mmc controllers are not the xtal, as currently described in DT, but composite clocks (the usual mux, divider and gate). The muxes can take the crytal (default) and any of the fclk_div clocks which should provide any rate an mmc/nand could request. The mux should also be able

Re: [PATCH v8 1/1] f2fs: dax: implement direct access

2017-07-26 Thread Dan Williams
On Wed, Jul 26, 2017 at 1:11 PM, Christoph Hellwig wrote: > On Wed, Jul 26, 2017 at 12:16:11PM -0700, Dan Williams wrote: >> Silently turn on DAX if HMAT says its ok? > > Yes, absolutely. I want my system to do the right thing by default, > and if HMAT says bypassing the page cache is a clear adv

Re: [PATCH 1/4] can: dev: Add support for limiting configured bitrate

2017-07-26 Thread Kurt Van Dijck
Hi, I know my response is late ... > Hi Oliver > On 07/20/2017 02:43 AM, Oliver Hartkopp wrote: > > Hi Franklin, > > > > On 07/20/2017 01:36 AM, Franklin S Cooper Jr wrote: > > > >> +#ifdef CONFIG_OF > >> +void of_transceiver_is_fixed(struct net_device *dev) > >> +{ > > > > (..) > > > >> +} >

Re: [REGRESSION] 28676d869bbb (scsi: sg: check for valid direction before starting the request) breaks mtx tape library control

2017-07-26 Thread Jason L Tibbitts III
> "JT" == Johannes Thumshirn writes: JT> It's probably best to just check for dxfer_len <= 2^28 to be valid JT> as Doug suggested: I can verify that patch on top of git head (as of a few hours ago) does function properly. It didn't apply directly on top of 4.12 but even I can handle fixing

Re: [PATCH v3 3/9] perf annotate: Fix wrong --show-total-period option showing number of samples

2017-07-26 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 26, 2017 at 08:57:13PM +0900, Taeung Song escreveu: > On 07/26/2017 01:17 AM, Arnaldo Carvalho de Melo wrote: > > Em Wed, Jul 26, 2017 at 12:53:28AM +0900, Taeung Song escreveu: > > > On 07/25/2017 11:42 PM, Arnaldo Carvalho de Melo wrote: > > > > > Moreover there is the below case that

[PATCH] rwsem: fix missed wakeup due to reordering of load

2017-07-26 Thread Prateek Sood
If a spinner is present, there is a chance that the load of rwsem_has_spinner() in rwsem_wake() can be reordered with respect to decrement of rwsem count in __up_write() leading to wakeup being missed. spinning writer up_write caller ---

Re: [PATCH v1] xen: get rid of paravirt op adjust_exception_frame

2017-07-26 Thread Andy Lutomirski
> On Jul 26, 2017, at 2:43 PM, Juergen Gross wrote: > >> On 26/07/17 19:57, Andy Lutomirski wrote: >> >> On Jul 26, 2017, at 11:50 AM, Juergen Gross wrote: > On 26/07/17 15:48, Andy Lutomirski wrote: > On Mon, Jul 24, 2017 at 7:28 AM, Juergen Gross wrote: > When runni

Re: [PATCH v8 1/1] f2fs: dax: implement direct access

2017-07-26 Thread Christoph Hellwig
On Wed, Jul 26, 2017 at 12:16:11PM -0700, Dan Williams wrote: > Silently turn on DAX if HMAT says its ok? Yes, absolutely. I want my system to do the right thing by default, and if HMAT says bypassing the page cache is a clear advatange it should be the default. > I think we would instead > want

Re: [PATCH 2/3] sparc64: Add 16GB hugepage support

2017-07-26 Thread David Miller
From: Nitin Gupta Date: Wed, 26 Jul 2017 11:35:28 -0700 > > > On 07/20/2017 01:04 PM, David Miller wrote: >> From: Nitin Gupta >> Date: Thu, 13 Jul 2017 14:53:24 -0700 >> >>> Testing: >>> >>> Tested with the stream benchmark which allocates 48G of >>> arrays backed by 16G hugepages and does R

Re: [PATCH net-next v2 01/10] net: dsa: lan9303: Fixed MDIO interface

2017-07-26 Thread David Miller
From: Andrew Lunn Date: Wed, 26 Jul 2017 19:52:24 +0200 >> > So I really want to group the patches into only a few series in order >> > to not spend months on the process. > > I strongly agree with Vivien here. Good patches get accepted in about > 3 days. You should expect feedback within a day

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-26 Thread Greg KH
On Wed, Jul 26, 2017 at 01:02:38PM -0700, David Daney wrote: > On 07/26/2017 10:33 AM, Greg KH wrote: > > On Wed, Jul 26, 2017 at 06:30:49PM +0200, Borislav Petkov wrote: > > > On Wed, Jul 26, 2017 at 09:19:49AM -0700, Greg KH wrote: > > > > On Wed, Jul 26, 2017 at 05:55:48PM +0200, Borislav Petkov

Re: [RFC Part1 PATCH v3 13/17] x86/io: Unroll string I/O when SEV is active

2017-07-26 Thread Brijesh Singh
On 07/26/2017 02:26 PM, H. Peter Anvin wrote: \ static inline void outs##bwl(int port, const void *addr, unsigned long count) \ { This will clash with a fix I did to add a "memory" clobber for the traditional imp

Re: [PATCH 3/3] dt-bindings: clock: amlogic,gxbb-aoclkc: Update bindings

2017-07-26 Thread Jerome Brunet
On Tue, 2017-07-25 at 17:48 -0700, Stephen Boyd wrote: > > > > Maybe it is time to investigate having the regmap clock from qcom available > > to > > every other platform ? > > I think we have regmap clk duplicated a couple times in the > drivers/clk/ directory now. Which is why we may start thi

Re: [PATCH] perf tool sort: Use default sort if evlist is empty

2017-07-26 Thread Arnaldo Carvalho de Melo
Em Thu, Jul 20, 2017 at 10:11:57PM -0700, David Carrillo-Cisneros escreveu: > Fixes bug noted by Jiri in https://lkml.org/lkml/2017/6/13/755 and caused > by commit d49dadea7862 ("perf tools: Make 'trace' or 'trace_fields' sort >key default for tracepoint events") > not taking into account that

Re: [PATCH 4.4 40/57] tpm: Provide strong locking for device removal

2017-07-26 Thread Jason Gunthorpe
On Wed, Jul 26, 2017 at 12:56:37PM -0700, Greg Kroah-Hartman wrote: > On Tue, Jul 25, 2017 at 11:56:01PM +0100, Ben Hutchings wrote: > > On Wed, 2017-07-19 at 13:12 +0200, Greg Kroah-Hartman wrote: > > > 4.4-stable review patch. If anyone has any objections, please let me > > > know. > > > > > >

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-26 Thread David Daney
On 07/26/2017 10:33 AM, Greg KH wrote: On Wed, Jul 26, 2017 at 06:30:49PM +0200, Borislav Petkov wrote: On Wed, Jul 26, 2017 at 09:19:49AM -0700, Greg KH wrote: On Wed, Jul 26, 2017 at 05:55:48PM +0200, Borislav Petkov wrote: On Wed, Jul 26, 2017 at 05:45:15PM +0200, Jan Glauber wrote: The PM

[PATCH v2] ARM: dts: bcm283x: Move the BCM2837 DT contents from arm64 to arm.

2017-07-26 Thread Eric Anholt
BCM2837 is somewhat unusual in that we build its DT on both arm32 and arm64. Most devices are being run in arm32 mode. Having the body of the DT for 2837 separate from 2835/6 has been a source of pain, as we often need to make changes that span both directories simultaneously (for example, the th

Re: bcache with existing ext4 filesystem

2017-07-26 Thread Pavel Machek
Hi! > > > > > > Unfortunately, that would mean shifting 400GB data 8KB forward, and > > > > > > compatibility problems. So I'd prefer adding bcache superblock into > > > > > > the reserved space, so I can have caching _and_ compatibility with > > > > > > grub2 etc (and avoid 400GB move): > > > > >

Re: [PATCH 2/2] drm/msm: gpu: don't abuse dma_alloc for non-DMA allocations

2017-07-26 Thread Arnd Bergmann
On Jul 26, 2017 6:35 PM, "Jordan Crouse" wrote: > > if (!IS_ENABLED(CONFIG_ARCH_QCOM)) > > return -EINVAL; > > > > + np = of_get_child_by_name(dev->of_node, "zap-shader"); > > + if (!np) > > + return -ENODEV; > > + > > + np = of_parse_phandle(dev->of_n

[PATCH v3] drm/msm: gpu: don't abuse dma_alloc for non-DMA allocations

2017-07-26 Thread Arnd Bergmann
In zap_shader_load_mdt(), we pass a pointer to a phys_addr_t into dmam_alloc_coherent, which the compiler warns about: drivers/gpu/drm/msm/adreno/a5xx_gpu.c: In function 'zap_shader_load_mdt': drivers/gpu/drm/msm/adreno/a5xx_gpu.c:54:50: error: passing argument 3 of 'dmam_alloc_coherent' from inc

Re: [PATCH] ARM: dts: bcm283x: Move the BCM2837 DT contents from arm64 to arm.

2017-07-26 Thread Eric Anholt
Scott Branden writes: > Hi Eric, > > suggestion inline > > > On 17-07-19 01:19 PM, Eric Anholt wrote: >> BCM2837 is somewhat unusual in that we build its DT on both arm32 and >> arm64. Most devices are being run in arm32 mode. >> >> Having the body of the DT for 2837 separate from 2835/6 has bee

Re: [PATCH] drivers/rxe: improve rxe loopback

2017-07-26 Thread Yuval Shaia
On Wed, Jul 26, 2017 at 05:52:48PM +0300, Marcel Apfelbaum wrote: > Currently a packet is marked for loopback only if the source and > destination address match. This is not enough when multiple > gids are present in rxe's gid table and the traffic is > from one gid to another. > > Fix it by marki

Re: [PATCH] drivers/rxe: improve rxe loopback

2017-07-26 Thread Yuval Shaia
> > + endfor_ifa(in_dev); > > The above endfor_ifa should move to below. Please ignore, my mistake. > > > +out:

Re: [PATCH 4.4 40/57] tpm: Provide strong locking for device removal

2017-07-26 Thread Greg Kroah-Hartman
On Tue, Jul 25, 2017 at 11:56:01PM +0100, Ben Hutchings wrote: > On Wed, 2017-07-19 at 13:12 +0200, Greg Kroah-Hartman wrote: > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Jason Gunthorpe > > > > commit 4e26195f240d73150

Re: [PATCH 4.9 000/125] 4.9.40-stable review

2017-07-26 Thread Greg Kroah-Hartman
On Wed, Jul 26, 2017 at 07:42:47PM +0530, Sumit Semwal wrote: > Hi Greg, > > On 26 July 2017 at 00:48, Greg Kroah-Hartman > wrote: > > This is the start of the stable review cycle for the 4.9.40 release. > > There are 125 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH 4.12 178/196] sched/cputime: Accumulate vtime on top of nsec clocksource

2017-07-26 Thread Greg Kroah-Hartman
On Wed, Jul 26, 2017 at 03:21:20PM +0100, Mel Gorman wrote: > I noticed relatively late and it hadn't occured on my own testing. I can > send it as a separate patch but I wanted to highlight that it would affect > a 4.12.4 release. > > ---8<--- > sched/cputime: Don't use smp_processor_id() in pree

Re: [PATCH v2] fortify: Use WARN instead of BUG for now

2017-07-26 Thread Josh Poimboeuf
On Wed, Jul 26, 2017 at 11:52:19AM -0700, Kees Cook wrote: > --- a/tools/objtool/check.c > +++ b/tools/objtool/check.c > @@ -156,7 +156,7 @@ static int __dead_end_function(struct objtool_file *file, > struct symbol *func, > "kvm_spurious_fault", > "__reiserfs_panic", >

Re: [RFC PATCH] mm/slub: fix a deadlock due to incomplete patching of cpusets_enabled()

2017-07-26 Thread Dima Zavin
On Wed, Jul 26, 2017 at 10:02 AM, Christopher Lameter wrote: > On Wed, 26 Jul 2017, Dima Zavin wrote: > >> The fix is to cache the value that's returned by cpusets_enabled() at the >> top of the loop, and only operate on the seqlock (both begin and retry) if >> it was true. > > I think the proper

Re: [PATCH 4.12 000/196] 4.12.4-stable review

2017-07-26 Thread Greg Kroah-Hartman
On Tue, Jul 25, 2017 at 07:57:56PM -0700, Guenter Roeck wrote: > On 07/25/2017 12:19 PM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.12.4 release. > > There are 196 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [PATCH net] net: phy: Run state machine to completion

2017-07-26 Thread Florian Fainelli
On 07/26/2017 12:34 PM, Florian Fainelli wrote: > On 07/26/2017 12:24 PM, Florian Fainelli wrote: >> Marc reported that he was not getting the PHY library adjust_link() >> callback function to run when calling phy_stop() + phy_disconnect() >> which does not indeed happen because we don't make sure

Re: new objtool unreachable instruction warnings

2017-07-26 Thread Arnd Bergmann
On Wed, Jul 26, 2017 at 9:10 PM, Josh Poimboeuf wrote: > On Wed, Jul 26, 2017 at 04:46:40PM +0200, Arnd Bergmann wrote: >> I only saw these warnings once, they are either very rare, or were introduced >> recently: >> >> arch/x86/kvm/vmx.o: warning: objtool: .altinstr_replacement+0x0: >> unreachabl

Re: [PATCH v2 2/4] mm: add file_fdatawait_range and file_write_and_wait

2017-07-26 Thread Bob Peterson
- Original Message - | From: Jeff Layton | | Some filesystem fsync routines will need these. | | Signed-off-by: Jeff Layton | --- | include/linux/fs.h | 7 ++- | mm/filemap.c | 56 | ++ | 2 files changed, 62 insertions(+),

Re: [PATCH 3/3] EDAC, ghes: Make it a proper module

2017-07-26 Thread Kani, Toshimitsu
On Wed, 2017-07-26 at 07:24 -0300, Mauro Carvalho Chehab wrote: > Em Wed, 26 Jul 2017 10:48:27 +0200 > Borislav Petkov escreveu: > > > From: Borislav Petkov > > > > Register with the GHES notifier chain so that there's no need to > > call into the module with ghes_edac_report_mem_error(). > >

Re: [RFC Part1 PATCH v3 13/17] x86/io: Unroll string I/O when SEV is active

2017-07-26 Thread H. Peter Anvin
,Eric Biederman ,Tejun Heo ,Paolo Bonzini ,Andrew Morton ,"Kirill A . Shutemov" ,Lu Baolu From: h...@zytor.com Message-ID: On July 26, 2017 9:24:45 PM GMT+02:00, Brijesh Singh wrote: > >Hi Arnd and David, > >On 07/26/2017 05:45 AM, Arnd Bergmann wrote: >> On Tue, Jul 25, 2017 at 11:51 AM, D

Re: [PATCH v1 2/3] ASoC: codecs: msm8916-analog: support jack detection

2017-07-26 Thread Damien Riegel
On Wed, Jul 26, 2017 at 05:44:14PM +0100, Srinivas Kandagatla wrote: > > > On 25/07/17 18:51, Damien Riegel wrote: > > The audio codec in the PM8916 has a feature called Multi-Button Headset > > Control (MBHC). It can support of up to five buttons on a headset, and > > jack insertion/removal dete

Re: [PATCH v3 00/10] ARM: sun8i: a83t: Add support for MMC controllers

2017-07-26 Thread Maxime Ripard
On Wed, Jul 26, 2017 at 10:09:41PM +0800, Chen-Yu Tsai wrote: > On Mon, Jul 24, 2017 at 9:58 PM, Chen-Yu Tsai wrote: > > Hi everyone, > > > > This is v3 of my MMC controller support series. > > > > [...] > > > Chen-Yu Tsai (10): > > clk: sunxi-ng: Add interface to query or configure MMC timing

Re: [PATCH] spi: document broadcom qspi driver as broken

2017-07-26 Thread Kamal Dasu
On Wed, Jul 26, 2017 at 3:03 AM, Arnd Bergmann wrote: > On Tue, Jul 25, 2017 at 11:39 PM, Kamal Dasu wrote: >> Arnd, Cyrille, >> >> I am working on fixing spi-bcm-qspi.c as per Cyrill's suggestion as >> mentioned here : https://patchwork.kernel.org/patch/9624585/. >> And remove the use of SPINOR

perf: bug in rdpmc/mmap accounting after exec

2017-07-26 Thread Vince Weaver
Hello so one last bug found by the PAPI testsuite. This one involves the rdpmc auto-disable on last unmap of an event feature. Failing test case: fd=perf_event_open(); addr=mmap(fd); exec() // without closing or unmapping the event fd=perf_event_open();

Re: [PATCH v2] include/linux/vfio.h: Guard powerpc-specific functions with CONFIG_VFIO_SPAPR_EEH

2017-07-26 Thread Alex Williamson
On Tue, 18 Jul 2017 14:22:20 -0300 Murilo Opsfelder Araujo wrote: > When CONFIG_EEH=y and CONFIG_VFIO_SPAPR_EEH=n, build fails with the > following: > > drivers/vfio/pci/vfio_pci.o: In function `.vfio_pci_release': > vfio_pci.c:(.text+0xa98): undefined reference to > `.vfio_spapr_pci_ee

Re: [PATCH] drivers/rxe: improve rxe loopback

2017-07-26 Thread Yuval Shaia
On Wed, Jul 26, 2017 at 05:52:48PM +0300, Marcel Apfelbaum wrote: > Currently a packet is marked for loopback only if the source and > destination address match. This is not enough when multiple > gids are present in rxe's gid table and the traffic is > from one gid to another. > > Fix it by marki

Re: [alsa-devel] [PATCH v1 5/6] ASoC: codecs: msm8916-wcd-analog: add MBHC support

2017-07-26 Thread Damien Riegel
[Sorry for breaking the thread, but I don't have the initial message to reply to.] I tried your patchset and faced some issues regarding removal detection: the driver detects headphone and microphone removal as soon as I press a button on the headset. evtest logs: [Headset insertion] Eve

Re: [PATCH net] net: phy: Run state machine to completion

2017-07-26 Thread Florian Fainelli
On 07/26/2017 12:24 PM, Florian Fainelli wrote: > Marc reported that he was not getting the PHY library adjust_link() > callback function to run when calling phy_stop() + phy_disconnect() > which does not indeed happen because we don't make sure we flush the > PHYLIB delayed work and let it run to

Re: [PATCH v2] hwmon: (it87) Reapply probe path chip registers settings after resume

2017-07-26 Thread Maciej S. Szmigiero
On 26.07.2017 04:17, Guenter Roeck wrote: On 07/24/2017 12:37 PM, Maciej S. Szmigiero wrote: After a suspend / resume cycle we possibly need to reapply chip registers settings that we had set or fixed in a probe path, since they might have been reset to default values or set incorrectly by a BIO

Re: [RFC Part1 PATCH v3 13/17] x86/io: Unroll string I/O when SEV is active

2017-07-26 Thread Brijesh Singh
Hi Arnd and David, On 07/26/2017 05:45 AM, Arnd Bergmann wrote: On Tue, Jul 25, 2017 at 11:51 AM, David Laight wrote: From: Brijesh Singh Sent: 24 July 2017 20:08 From: Tom Lendacky Secure Encrypted Virtualization (SEV) does not support string I/O, so unroll the string I/O operation into a

Re: [PATCH 3/3] EDAC, ghes: Make it a proper module

2017-07-26 Thread Kani, Toshimitsu
On Wed, 2017-07-26 at 15:17 -0300, Mauro Carvalho Chehab wrote: > Em Wed, 26 Jul 2017 17:27:12 + : > I didn't try to inject an error, as I'm not sure if EINJ feature is > enabled on this BIOS. Probably not. I believe it has EINJ support. > At least on this machine, I very much prefer to use

[PATCH net] net: phy: Run state machine to completion

2017-07-26 Thread Florian Fainelli
Marc reported that he was not getting the PHY library adjust_link() callback function to run when calling phy_stop() + phy_disconnect() which does not indeed happen because we don't make sure we flush the PHYLIB delayed work and let it run to completion. We also need to have a synchronous call to p

[PATCH] mm: memcontrol: Cast mismatched enum types passed to memcg state and event functions

2017-07-26 Thread Matthias Kaehlcke
In multiple instances enum values of an incorrect type are passed to mod_memcg_state() and other memcg functions. Apparently this is intentional, however clang rightfully generates tons of warnings about the mismatched types. Cast the offending values to the type expected by the called function. Th

Re: [PATCH v2 4/4] gfs2: convert to errseq_t based writeback error reporting for fsync

2017-07-26 Thread Matthew Wilcox
On Wed, Jul 26, 2017 at 01:55:38PM -0400, Jeff Layton wrote: > @@ -668,12 +668,14 @@ static int gfs2_fsync(struct file *file, loff_t start, > loff_t end, > if (ret) > return ret; > if (gfs2_is_jdata(ip)) > - filemap_write_and_wa

Re: bcache with existing ext4 filesystem

2017-07-26 Thread Eric Wheeler
On Wed, 26 Jul 2017, Austin S. Hemmelgarn wrote: > On 2017-07-26 13:41, Eric Wheeler wrote: > > On Wed, 26 Jul 2017, Pavel Machek wrote: > > > > > Hi! > > > > > > > > > > Unfortunately, that would mean shifting 400GB data 8KB forward, > > > > > > > and > > > > > > > compatibility problems. So I'd

Re: [PATCH] workqueue: Ensure that cpumask set for pools created after boot

2017-07-26 Thread Tejun Heo
On Wed, Jul 26, 2017 at 10:25:08AM -0500, Michael Bringmann wrote: > Hello, Tejun: > Do you need anything else from me regarding this patch? > Or are you good to commit it upstream? > Thanks. Hmmm... you were planning to try it and we wanted to convert it to WARN_ONCE? Thanks. -- tejun

Re: [PATCH v8 1/1] f2fs: dax: implement direct access

2017-07-26 Thread Dan Williams
On Wed, Jul 26, 2017 at 10:20 AM, Christoph Hellwig wrote: > On Wed, Jul 26, 2017 at 10:11:08AM -0700, Dan Williams wrote: >> Until HMAT came along we had no data in the kernel how to pick a sane >> default, but we could now very easily make a "if pmem performance < >> dram, disable dax by default

Re: [HMM 12/15] mm/migrate: new memory migration helper for use with device memory v4

2017-07-26 Thread Jerome Glisse
On Tue, Jul 25, 2017 at 03:45:14PM -0700, Evgeny Baskakov wrote: > On 7/20/17 6:33 PM, Jerome Glisse wrote: > > > So i pushed an updated hmm-next branch it should have all fixes so far, > > including > > something that should fix this issue. I still want to go over all emails > > again > > to ma

Re: [PATCH] ubi: pr_err() strings should end with newlines

2017-07-26 Thread Richard Weinberger
Ben, Am 26.07.2017 um 11:53 schrieb Ben Dooks: > In build.c, the following pr_err calls should be terminated with > a new-line to avoid other messages being concatenated onto the end. > > Signed-off-by: Ben Dooks Thank you for addressing this problem. One minor nit, I'll fold all three patches

Re: [PATCH v3] irqchip/tango: Don't use incorrect irq_mask_ack callback

2017-07-26 Thread Måns Rullgård
Florian Fainelli writes: > On 07/25/2017 06:29 AM, Måns Rullgård wrote: >> Marc Gonzalez writes: >> >>> On 25/07/2017 15:16, Måns Rullgård wrote: >>> What happened to the patch adding the proper combined function? >>> >>> It appears you're not CCed on v2. >>> >>> https://patchwork.kernel.o

Re: [PATCH v2 2/4] mm: add file_fdatawait_range and file_write_and_wait

2017-07-26 Thread Matthew Wilcox
On Wed, Jul 26, 2017 at 01:55:36PM -0400, Jeff Layton wrote: > +int file_write_and_wait(struct file *file) > +{ > + int err = 0, err2; > + struct address_space *mapping = file->f_mapping; > + > + if ((!dax_mapping(mapping) && mapping->nrpages) || > + (dax_mapping(mapping) && map

Re: [PATCH] ASoC: samsung: s3c2412: cleanups / fixes for preparation of clocks.

2017-07-26 Thread Krzysztof Kozlowski
On Thu, Jul 27, 2017 at 12:28:52AM +0530, Arvind Yadav wrote: > -Use devm_clk_get() to make cleanup paths more simple. > -clk_prepare_enable() can fail here and we must check its return value. > -Add s3c_i2sv2_remove cleanup function of s3c_i2sv2_probe. > -No need to iounmap. Here, mapping done by

Re: new objtool unreachable instruction warnings

2017-07-26 Thread Josh Poimboeuf
On Wed, Jul 26, 2017 at 04:46:40PM +0200, Arnd Bergmann wrote: > I only saw these warnings once, they are either very rare, or were introduced > recently: > > arch/x86/kvm/vmx.o: warning: objtool: .altinstr_replacement+0x0: > unreachable instruction > arch/x86/kvm/svm.o: warning: objtool: .altinst

Re: [PATCH 2/3] drivers: remoteproc: Add Hexagon Q6 - WCSS integrated core driver

2017-07-26 Thread Bjorn Andersson
On Thu 29 Jun 07:17 PDT 2017, Sricharan R wrote: > IPQ8074 has an integrated Hexagon dsp core Q6v5 and a wireless lan > (Lithium) IP. This patch adds the remoteproc driver to reset, load > and boot Q6 firmware. > There is a fair amount of code in this driver that seems to be equivalent to Avanee

Re: [PATCH v1 6/6] device property: Switch to use new generic UUID API

2017-07-26 Thread Rafael J. Wysocki
On Wednesday, July 26, 2017 01:03:03 PM Andy Shevchenko wrote: > On Wed, 2017-07-26 at 02:27 +0200, Rafael J. Wysocki wrote: > > On Wednesday, July 26, 2017 03:35:01 AM Andy Shevchenko wrote: > > > On Wed, Jul 26, 2017 at 3:21 AM, Rafael J. Wysocki > > t> wrote: > > > > > Andy, do you want me to

Re: [PATCH v7 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-07-26 Thread Casey Leedom
| From: Alexander Duyck | Sent: Wednesday, July 26, 2017 11:44 AM | | On Jul 26, 2017 11:26 AM, "Casey Leedom" wrote: | | | |     I think that the patch will need to be extended to modify | |     drivers/pci.c/iov.c:sriov_enable() to explicitly turn off | |     Relaxed Ordering Enable if the Roo

Re: [PATCH] mailbox: pcc: Fix crash when request PCC channel 0

2017-07-26 Thread Rafael J. Wysocki
On Monday, July 24, 2017 06:30:46 PM Prakash, Prashanth wrote: > > On 7/24/2017 2:32 PM, Rafael J. Wysocki wrote: > > On Friday, July 21, 2017 03:09:29 PM Hoan Tran wrote: > >> When PCCT is not available, kernel crashes as below when requests PCC > >> channel 0. This patch fixes this issue. > >> >

Re: [PATCH v6 1/1] acpi: apei: Enable APEI multiple GHES source to share a single external IRQ

2017-07-26 Thread Rafael J. Wysocki
On Sunday, July 23, 2017 12:01:10 AM Rafael J. Wysocki wrote: > On Saturday, July 22, 2017 07:59:54 AM Borislav Petkov wrote: > > On Fri, Jul 21, 2017 at 11:24:37AM -0700, Loc Ho wrote: > > > X-Gene platforms describe multiple GHES error sources with the same > > > hardware > > > error notificatio

Re: [RESEND PATCH 2/2] userfaultfd: selftest: Add tests for UFFD_FREATURE_SIGBUS

2017-07-26 Thread Prakash Sangappa
On 7/26/17 7:27 AM, Andrea Arcangeli wrote: On Tue, Jul 25, 2017 at 12:47:42AM -0400, Prakash Sangappa wrote: Signed-off-by: Prakash Sangappa --- tools/testing/selftests/vm/userfaultfd.c | 121 +- 1 files changed, 118 insertions(+), 3 deletions(-) Like Mike sa

Re: [PATCH v3 4/5] ACPI / boot: Not all platform require acpi_reduced_hw_init()

2017-07-26 Thread Rafael J. Wysocki
On Sunday, July 23, 2017 12:14:27 AM Rafael J. Wysocki wrote: > On Sun, Jul 23, 2017 at 12:13 AM, Andy Shevchenko > wrote: > > On Sun, Jul 23, 2017 at 1:02 AM, Rafael J. Wysocki > > wrote: > >> On Saturday, July 22, 2017 04:53:52 AM Andy Shevchenko wrote: > >>> On Sat, Jul 22, 2017 at 1:25 AM, R

Re: bcache with existing ext4 filesystem

2017-07-26 Thread Austin S. Hemmelgarn
On 2017-07-26 13:41, Eric Wheeler wrote: On Wed, 26 Jul 2017, Pavel Machek wrote: Hi! Unfortunately, that would mean shifting 400GB data 8KB forward, and compatibility problems. So I'd prefer adding bcache superblock into the reserved space, so I can have caching _and_ compatibility with grub

[PATCH] ASoC: samsung: s3c2412: cleanups / fixes for preparation of clocks.

2017-07-26 Thread Arvind Yadav
-Use devm_clk_get() to make cleanup paths more simple. -clk_prepare_enable() can fail here and we must check its return value. -Add s3c_i2sv2_remove cleanup function of s3c_i2sv2_probe. -No need to iounmap. Here, mapping done by devm_ioremap_resource. Signed-off-by: Arvind Yadav --- sound/soc/sa

[RFT 2/2] ASoC: samsung: Add proper error paths to s3c24xx I2S driver

2017-07-26 Thread Krzysztof Kozlowski
s3c2412_i2s_probe() might fail so driver has to revert work done by s3c_i2sv2_probe() (clock enabling). Missing doing this would lead to clock enable in-balance. Signed-off-by: Krzysztof Kozlowski --- Please, kindly test on S3C24xx hardware. --- sound/soc/samsung/s3c-i2s-v2.c | 9 +

[RFT 1/2] ASoC: samsung: Fix possible double iounmap on s3c24xx driver probe failure

2017-07-26 Thread Krzysztof Kozlowski
Commit 87b132bc0315 ("ASoC: samsung: s3c24{xx,12}-i2s: port to use generic dmaengine API") moved ioremap() call from s3c-i2s-v2.c:s3c_i2sv2_probe() to s3c2412-i2s.c:s3c2412_iis_dev_probe() and converted it to devm- resource managed interface. However the error path in first of them - s3c_i2sv2_pro

Re: [PATCH 1/2] MAINTAINERS: device property: acpi: add fwnode.h

2017-07-26 Thread Rafael J. Wysocki
On Friday, July 21, 2017 03:33:05 PM Frank Rowand wrote: > On 07/21/17 15:03, Rafael J. Wysocki wrote: > > On Thursday, July 20, 2017 12:13:24 PM frowand.l...@gmail.com wrote: > >> From: Frank Rowand > >> > >> ACPI is impacted by changes to fwnode.h, add a file entry > >> to ACPI > >> > >> Signed-

Re: [RESEND PATCH 2/2] userfaultfd: selftest: Add tests for UFFD_FREATURE_SIGBUS

2017-07-26 Thread Prakash Sangappa
On 7/26/17 12:53 AM, Mike Rapoport wrote: + /* * For non-cooperative userfaultfd test we fork() a process that will * generate pagefaults, will mremap the area monitored by the @@ -585,19 +598,54 @@ static int userfaultfd_open(int features) * The release of the pages currently genera

Re: [PATCH] netpoll: Fix device name check in netpoll_setup()

2017-07-26 Thread Doug Anderson
Hi, On Tue, Jul 25, 2017 at 11:36 AM, Matthias Kaehlcke wrote: > Apparently netpoll_setup() assumes that netpoll.dev_name is a pointer > when checking if the device name is set: > > if (np->dev_name) { > ... > > However the field is a character array, therefore the condition always > yields tru

[PATCH v2] fortify: Use WARN instead of BUG for now

2017-07-26 Thread Kees Cook
While CONFIG_FORTIFY_SOURCE continues to shake out, don't unconditionally use BUG(), opting instead for WARN(). This also renames fortify_panic() to fortify_overflow() which better matches what it is being called for. Cc: Daniel Micay Suggested-by: Linus Torvalds Signed-off-by: Kees Cook --- v2

Re: [RFC PATCH 3/3] mm: shm: Use new hugetlb size encoding definitions

2017-07-26 Thread Matthew Wilcox
On Wed, Jul 26, 2017 at 10:39:30AM -0700, Mike Kravetz wrote: > In the overview of this RFC, I mentioned still needing to address the > comment from Aneesh about splitting SHM_HUGE_* definitions into arch > specific header files. This is how it is done for mmap. If an arch > supports multiple hug

nowait aio return value

2017-07-26 Thread Jason Baron
Hi, In testing nowait aio on ext4, I found that when appending to a file the return value is EAGAIN/EWOULDBLOCK, because as mentioned in the commit this will potentially trigger an allocation. However, the EAGAIN, seems somewhat misleading to me, in that if I continuously try the write, it wil

Re: [PATCH v1] xen: get rid of paravirt op adjust_exception_frame

2017-07-26 Thread Juergen Gross
On 26/07/17 19:57, Andy Lutomirski wrote: > > >> On Jul 26, 2017, at 11:50 AM, Juergen Gross wrote: >> >>> On 26/07/17 15:48, Andy Lutomirski wrote: On Mon, Jul 24, 2017 at 7:28 AM, Juergen Gross wrote: When running as Xen pv-guest the exception frame on the stack contains %r11 a

Re: [patches] [PATCH 17/17] RISC-V: Build Infastructure

2017-07-26 Thread Jonathan Neuschäfer
On Tue, Jul 25, 2017 at 10:20:50PM -0700, Palmer Dabbelt wrote: > On Tue, 25 Jul 2017 19:57:17 PDT (-0700), j.neuschae...@gmx.net wrote: > > On Tue, Jul 11, 2017 at 06:31:30PM -0700, Palmer Dabbelt wrote: [...] > >> +config ISA_C > >> + bool "Emit compressed instructions when building Linux" > > >

Re: [PATCH 2/3] sparc64: Add 16GB hugepage support

2017-07-26 Thread Nitin Gupta
On 07/20/2017 01:04 PM, David Miller wrote: > From: Nitin Gupta > Date: Thu, 13 Jul 2017 14:53:24 -0700 > >> Testing: >> >> Tested with the stream benchmark which allocates 48G of >> arrays backed by 16G hugepages and does RW operation on >> them in parallel. > > It would be great if we starte

Re: [PATCH v2 04/22] fpga: mgr: add region_id to fpga_image_info

2017-07-26 Thread Alan Tull
On Sun, Jun 25, 2017 at 8:52 PM, Wu Hao wrote: Hi Hao, > This patch adds region_id to fpga_image_info data structure, it > allows driver to pass region id information to fpga-mgr via > fpga_image_info for fpga reconfiguration function. > > Signed-off-by: Wu Hao > --- > include/linux/fpga/fpga-

[PATCH] security: fix description of values returned by cap_inode_need_killpriv

2017-07-26 Thread Stefan Berger
cap_inode_need_killpriv returns 1 if security.capability exists, 0 otherwise. Fix the description of the return value to reflect this. Signed-off-by: Stefan Berger --- security/commoncap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/security/commoncap.c b/security/commo

Re: [PATCH 2/3] ACPI/DRM: rework ACPI_VIDEO Kconfig dependencies

2017-07-26 Thread Rafael J. Wysocki
On Wednesday, July 26, 2017 03:53:11 PM Arnd Bergmann wrote: > ACPI_VIDEO keeps causing problems with circular Kconfig dependencies, > as it depends on a couple of other symbols, and it gets selected by > drivers that may end up being depending on others. > > This is an attempt to simplify this by

Re: [PATCH tip/core/rcu 4/5] sys_membarrier: Add expedited option

2017-07-26 Thread Paul E. McKenney
On Wed, Jul 26, 2017 at 06:01:15PM +, Mathieu Desnoyers wrote: > - On Jul 26, 2017, at 11:42 AM, Paul E. McKenney > paul...@linux.vnet.ibm.com wrote: > > > On Wed, Jul 26, 2017 at 09:46:56AM +0200, Peter Zijlstra wrote: > >> On Tue, Jul 25, 2017 at 10:50:13PM +, Mathieu Desnoyers wrot

Re: [PATCH v2 2/4] can: fixed-transceiver: Add documentation for CAN fixed transceiver bindings

2017-07-26 Thread Franklin S Cooper Jr
On 07/26/2017 12:05 PM, Oliver Hartkopp wrote: > On 07/26/2017 06:41 PM, Andrew Lunn wrote: >> On Mon, Jul 24, 2017 at 06:05:19PM -0500, Franklin S Cooper Jr wrote: > >>> + >>> +Optional: >>> + max-arbitration-speed: a positive non 0 value that determines the max >>> +speed that CAN

Re: [PATCH 1/3] arm/syscalls: Move address limit check in loop

2017-07-26 Thread Thomas Garnier
On Wed, Jul 26, 2017 at 11:25 AM, Russell King - ARM Linux wrote: > On Wed, Jul 26, 2017 at 07:20:22AM -0700, Thomas Garnier wrote: >> On Wed, Jul 26, 2017 at 5:02 AM, Will Deacon wrote: >> > I looked to see what you've done for x86, but it looks like you check/clear >> > the flag before the work

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