[PATCH][V2] of: overlay: fix memory leak of ovcs on error exit path

2017-11-30 Thread Colin King
From: Colin Ian King Currently if the call to of_resolve_phandles fails then then ovcs is not kfree'd on the error exit path. Rather than try and make the clean up exit path more convoluted, fix this by just kfree'ing ovcs at the point of error detection and exit via the same exit path. Detecte

Re: [PATCH v3 26/26] kfifo: DECLARE_KIFO_PTR(fifo, u64) does not work on arm 32 bit

2017-11-30 Thread Stefani Seibold
On Thu, 2017-11-30 at 10:29 -0200, Mauro Carvalho Chehab wrote: > Em Tue, 10 Oct 2017 09:59:42 +0200 > Sean Young escreveu: > > > If you try to store u64 in a kfifo (or a struct with u64 members), > > then the buf member of __STRUCT_KFIFO_PTR will cause 4 bytes > > padding due to alignment (note

Re: [PATCH] of: overlay: fix memory leak of ovcs on error exit path

2017-11-30 Thread Colin Ian King
On 30/11/17 12:50, Dan Carpenter wrote: > On Thu, Nov 30, 2017 at 07:14:45AM -0500, Frank Rowand wrote: >> On 11/29/17 14:17, Colin King wrote: >>> From: Colin Ian King >>> >>> Currently if the call to of_resolve_phandles fails then then ovcs >>> is not kfree'd on the error exit path. Rather than

Re: [PATCH v4] component: add debugfs support

2017-11-30 Thread Russell King - ARM Linux
On Thu, Nov 30, 2017 at 01:48:32PM +0100, Maciej Purski wrote: > Currently there is no information in any vfs about which devices > a master component consists of, what makes debugging hard if > one of the component devices fails to register. > > Add 'device_component' directory to debugfs. Create

Re: [PATCH] vfio/iommu_type1: report the IOMMU aperture info

2017-11-30 Thread Jean-Philippe Brucker
Hello, On 30/11/17 11:34, Pierre Morel wrote: [...] > +/** > + * vfio_get_aperture - report minimal aperture of a vfio_iommu > + * @iommu: the current vfio_iommu > + * @start: a pointer to the aperture start > + * @end : a pointer to the aperture end > + * > + * This function iterate on the domai

RE: [PATCH] PM / runtime: Drop children check from __pm_runtime_set_status()

2017-11-30 Thread Yoshihiro Shimoda
Hi, > From: Ulf Hansson, Sent: Wednesday, November 29, 2017 6:59 PM > > On 29 November 2017 at 10:43, Geert Uytterhoeven wrote: > > Hi Ulf, > Okay, so the problem remains no matter which solution for wakeup you > pick in genpd. Yes. Today I could reproduce this issue without usb host driver. -

Re: [PATCH] staging: xgifb: remove unused macro XGIPART3

2017-11-30 Thread Josh Abraham
On Thu, Nov 30, 2017 at 08:55:44AM +0300, Dan Carpenter wrote: > On Wed, Nov 29, 2017 at 09:53:48PM -0500, Joshua Abraham wrote: > > Signed-off-by: Joshua Abraham > > > > This patch removes the unused macro XGIPART3. > > > > The Signed-off-by line goes after the changelog. > > > --- > > drive

Re: [PATCH] of: overlay: fix memory leak of ovcs on error exit path

2017-11-30 Thread Dan Carpenter
On Thu, Nov 30, 2017 at 07:14:45AM -0500, Frank Rowand wrote: > On 11/29/17 14:17, Colin King wrote: > > From: Colin Ian King > > > > Currently if the call to of_resolve_phandles fails then then ovcs > > is not kfree'd on the error exit path. Rather than try and make > > the clean up exit path m

Re: [PATCH, RESEND 1/2] dvb-frontends: fix i2c access helpers for KASAN

2017-11-30 Thread Mauro Carvalho Chehab
Hi Arnd, Em Thu, 30 Nov 2017 12:08:04 +0100 Arnd Bergmann escreveu: > A typical code fragment was copied across many dvb-frontend drivers and > causes large stack frames when built with with CONFIG_KASAN on gcc-5/6/7: > > drivers/media/dvb-frontends/cxd2841er.c:3225:1: error: the frame size of

[PATCH v4] component: add debugfs support

2017-11-30 Thread Maciej Purski
Currently there is no information in any vfs about which devices a master component consists of, what makes debugging hard if one of the component devices fails to register. Add 'device_component' directory to debugfs. Create a new file for each component master, when it has been added. Remove it

Re: [RFC 0/2] of: Add whitelist

2017-11-30 Thread Frank Rowand
On 11/29/17 11:11, Alan Tull wrote: > On Wed, Nov 29, 2017 at 7:31 AM, Rob Herring wrote: >> On Wed, Nov 29, 2017 at 3:20 AM, Frank Rowand wrote: >>> On 11/27/17 15:58, Alan Tull wrote: Here's a proposal for a whitelist to lock down the dynamic device tree. For an overlay to be acc

Re: [PATCH v2] clk: stm32-h7: fix copyright

2017-11-30 Thread Benjamin Gaignard
2017-11-30 12:28 GMT+01:00 Philippe Ombredanne : > On Thu, Nov 30, 2017 at 9:41 AM, Benjamin Gaignard > wrote: >> Uniformize STMicroelectronics copyrights header >> Add SPDX identifier >> >> Signed-off-by: Benjamin Gaignard >> Acked-by: Alexandre TORGUE >> CC: Gabriel Fernandez >> --- >> drive

Re: [PATCH 6/6] x86/mm/kaiser: Optimize __native_flush_tlb

2017-11-30 Thread Peter Zijlstra
On Wed, Nov 29, 2017 at 11:33:07AM +0100, Peter Zijlstra wrote: > static inline void __native_flush_tlb(void) > { > + flush_user_asid(this_cpu_read(cpu_tlbstate.loaded_mm_asid)); > > /* > + * If current->mm == NULL then we borrow a mm > + * which may change during a task sw

Re: [PATCH] x86/unwind_guess: Prevent using UNWINDER_GUESS=y with STACKDEPOT=y

2017-11-30 Thread Dmitry Vyukov
On Thu, Nov 30, 2017 at 1:35 PM, Andrey Ryabinin wrote: > Stackdepot doesn't work well with CONFIG_UNWINDER_GUESS=y. > The 'guess' unwinder generate awfully large and inaccurate stacktraces, > thus stackdepot can't deduplicate stacktraces because they all look like > unique. Eventually stackdepot

[PATCH] x86/unwind_guess: Prevent using UNWINDER_GUESS=y with STACKDEPOT=y

2017-11-30 Thread Andrey Ryabinin
Stackdepot doesn't work well with CONFIG_UNWINDER_GUESS=y. The 'guess' unwinder generate awfully large and inaccurate stacktraces, thus stackdepot can't deduplicate stacktraces because they all look like unique. Eventually stackdepot reaches its capacity limit: WARNING: CPU: 0 PID: 545 at lib/stac

Applied "ASoC: codecs: msm8916-wcd: Fix supported formats" to the asoc tree

2017-11-30 Thread Mark Brown
The patch ASoC: codecs: msm8916-wcd: Fix supported formats has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Re: [PATCH net v2] tipc: call tipc_rcv() only if bearer is up in tipc_udp_recv()

2017-11-30 Thread Tommi Rantala
On 30.11.2017 12:57, Ying Xue wrote: On 11/29/2017 06:48 PM, Tommi Rantala wrote: Remove the second tipc_rcv() call in tipc_udp_recv(). We have just checked that the bearer is not up, and calling tipc_rcv() with a bearer that is not up leads to a TIPC div-by-zero crash in tipc_node_calculate_tim

Re: [PATCH RFC 1/2] sched: Minimize the idle cpu selection race window.

2017-11-30 Thread Uladzislau Rezki
On Wed, Nov 29, 2017 at 07:15:21PM +0100, Mike Galbraith wrote: > On Wed, 2017-11-29 at 11:41 +0100, Uladzislau Rezki wrote: > > On Tue, Nov 28, 2017 at 11:49:11AM +0100, Mike Galbraith wrote: > > > On Tue, 2017-11-28 at 10:34 +0100, Uladzislau Rezki wrote: > > > > On Fri, Nov 24, 2017 at 07:46:30P

Re: [PATCH v2 01/19] ASoC: tlv320aic31xx: File header and copyright cleanup

2017-11-30 Thread Mark Brown
On Wed, Nov 29, 2017 at 03:32:42PM -0600, Andrew F. Davis wrote: > Fix header copyright tags, while we are here, also switch to SPDX > and fixup MODULE tags to match. > - * The TLV320AIC31xx series of audio codec is a low-power, highly integrated > - * high performance codec which provides a stere

Re: [PATCH v3 26/26] kfifo: DECLARE_KIFO_PTR(fifo, u64) does not work on arm 32 bit

2017-11-30 Thread Mauro Carvalho Chehab
Em Tue, 10 Oct 2017 09:59:42 +0200 Sean Young escreveu: > If you try to store u64 in a kfifo (or a struct with u64 members), > then the buf member of __STRUCT_KFIFO_PTR will cause 4 bytes > padding due to alignment (note that struct __kfifo is 20 bytes > on 32 bit). > > That in turn causes the _

Re: [BUILD FAILURE] nfs4state.c fails to compile with gcc 4.5.4

2017-11-30 Thread Arnd Bergmann
On Thu, Nov 30, 2017 at 4:39 AM, Andrew Morton wrote: > On Wed, 29 Nov 2017 19:27:45 -0800 Linus Torvalds > wrote: > >> On Wed, Nov 29, 2017 at 6:58 PM, Steven Rostedt wrote: >> > >> > Seems it can't handle the initialization of an anonymous struct within >> > an anonymous union. >> >> I think

Re: [PATCH v3 0/9] Intel Processor Trace virtulization enabling

2017-11-30 Thread Paolo Bonzini
On 27/11/2017 21:23, Luwei Kang wrote: > From v2: > - replace *_PT_SUPPRESS_PIP to *_PT_CONCEAL_PIP; > - clean SECONDARY_EXEC_PT_USE_GPA, VM_EXIT_CLEAR_IA32_RTIT_CTL and > VM_ENTRY_LOAD_IA32_RTIT_CTL in SYSTEM mode. These bits must be all set or all > clean; > - move processor tracing out of s

Re: [PATCH v3 02/15] soundwire: Add SoundWire bus type

2017-11-30 Thread Vinod Koul
On Thu, Nov 30, 2017 at 12:42:30PM +0100, Philippe Ombredanne wrote: > On Thu, Nov 30, 2017 at 10:56 AM, Vinod Koul wrote: > [] > > diff --git a/drivers/soundwire/bus.h b/drivers/soundwire/bus.h > > new file mode 100644 > > index ..2af05b21961e > > --- /dev/null > > +++ b/drivers/sound

Re: [PATCH v3 9/9] KVM: x86: Implement Intel Processor Trace context switch

2017-11-30 Thread Paolo Bonzini
On 27/11/2017 21:24, Luwei Kang wrote: > + if (pt_mode == PT_MODE_HOST_GUEST) { > + u32 eax, ebx, ecx, edx; > + > + cpuid_count(0x14, 1, &eax, &ebx, &ecx, &edx); Since it's used in many places, it's better if you cache CPUID[14,1].EAX. Thanks, Paolo > + m

Re: [PATCH v3 3/9] KVM: x86: Add Intel Processor Trace virtualization mode

2017-11-30 Thread Paolo Bonzini
On 27/11/2017 21:23, Luwei Kang wrote: > +/* Default is host guest mode. */ > +static int __read_mostly pt_mode = PT_MODE_HOST_GUEST; > +module_param(pt_mode, int, S_IRUGO); > + This will cause a slowdown on new processors. Please make the default PT_SYSTEM until that is addressed (with a combina

Re: Missing version line in System.map file?

2017-11-30 Thread Lee Strobel
> What does not having that line in the System.map file break? > Should klogd be looking in the System.map file for a kernel version > number? Can you make a good argument for this change? > OTOH, all it does is add an integer variable to the kernel and one > line to the System.map file, so if it

Re: [PATCH v3 8/9] KVM: x86: Disable Intel Processor Trace when VMXON in L1 guest

2017-11-30 Thread Paolo Bonzini
On 27/11/2017 21:24, Luwei Kang wrote: > > + if (pt_mode == PT_MODE_HOST_GUEST) { > + vmx->pt_desc.guest.ctl &= ~RTIT_CTL_TRACEEN; > + pt_disable_intercept_for_msr(FALSE); > + vmcs_write64(GUEST_IA32_RTIT_CTL, vmx->pt_desc.guest.ctl); > + } > + Using v

Re: [PATCH 2/3] kbuild: add cc-if-name-version and compiler-specific variants

2017-11-30 Thread Masahiro Yamada
2017-11-29 9:00 GMT+09:00 Sami Tolvanen : > This change adds macros for testing both compiler name and > version. Current cc-version, cc-ifversion etc. macros that test > gcc version are left unchanged to prevent compatibility issues > with existing tests. > > Signed-off-by: Sami Tolvanen > --- >

Re: [PATCH v5 next 3/5] modules:capabilities: automatic module loading restriction

2017-11-30 Thread Djalal Harouni
On Thu, Nov 30, 2017 at 2:23 AM, Luis R. Rodriguez wrote: > On Mon, Nov 27, 2017 at 06:18:36PM +0100, Djalal Harouni wrote: >> diff --git a/include/linux/module.h b/include/linux/module.h >> index 5cbb239..c36aed8 100644 >> --- a/include/linux/module.h >> +++ b/include/linux/module.h >> @@ -261,7

Re: [RFC PATCH v2 1/7] ASoC: Intel: Fix Kconfig with top-level selector

2017-11-30 Thread Vinod Koul
On Wed, Nov 29, 2017 at 08:52:58AM -0600, Pierre-Louis Bossart wrote: > On 11/29/17 4:27 AM, Vinod Koul wrote: > >On Tue, Nov 28, 2017 at 07:45:45PM -0600, Pierre-Louis Bossart wrote: > > > >I am not sure about top level being default to Y... > > It's standard procedure apparently, see Linus/Mark/

Re: [PATCH v3 7/9] KVM: x86: Implement Intel Processor Trace MSRs read/write

2017-11-30 Thread Paolo Bonzini
On 27/11/2017 21:24, Luwei Kang wrote: > + case MSR_IA32_RTIT_ADDR0_A ... MSR_IA32_RTIT_ADDR3_B: { > + u32 eax, ebx, ecx, edx; > + > + cpuid_count(0x14, 1, &eax, &ebx, &ecx, &edx); Please cache the cpuid_count result, or do the cpuid_count after

Re: [PATCH v2 2/2] ASoC: codecs: Add initial PCM1862/63/64/65 universal ADC driver

2017-11-30 Thread Mark Brown
On Wed, Nov 29, 2017 at 12:50:15PM -0600, Andrew F. Davis wrote: > + case SND_SOC_BIAS_STANDBY: > + pcm186x_power_on(codec); > + break; > + case SND_SOC_BIAS_OFF: > + pcm186x_power_off(codec); > + break; > + } > +/* > + * The PCM186x's p

Re: general protection fault in show_timer

2017-11-30 Thread Alexey Dobriyan
[cc security@] 100% oops with interrupts disabled by nobody or kernel memory read On 11/30/17, Dmitry Vyukov wrote: > On Thu, Nov 30, 2017 at 12:31 PM, Dmitry Vyukov wrote: >> On Thu, Nov 30, 2017 at 12:08 PM, Alexey Dobriyan >> wrote: >>> On 11/30/17, syzbot >>> >>> wrote: Hello, >

Re: [RFC PATCH] ipc, mqueue: lazy call kern_mount_data in new namespaces

2017-11-30 Thread Giuseppe Scrivano
Andrew Morton writes: > On Wed, 29 Nov 2017 11:33:28 +0100 Giuseppe Scrivano > wrote: > >> Andrew Morton writes: >> >> > OK, but this simply moves the expense so it happens later on. Why is >> > that better? >> >> the optimization is for new IPC namespaces that don't use mq_open. In >> thi

Re: [RFC 0/2] of: Add whitelist

2017-11-30 Thread Frank Rowand
On 11/29/17 08:31, Rob Herring wrote: > On Wed, Nov 29, 2017 at 3:20 AM, Frank Rowand wrote: >> On 11/27/17 15:58, Alan Tull wrote: >>> Here's a proposal for a whitelist to lock down the dynamic device tree. >>> >>> For an overlay to be accepted, all of its targets are required to be >>> on a targ

Re: [PATCH] of: overlay: fix memory leak of ovcs on error exit path

2017-11-30 Thread Colin Ian King
On 30/11/17 12:14, Frank Rowand wrote: > On 11/29/17 14:17, Colin King wrote: >> From: Colin Ian King >> >> Currently if the call to of_resolve_phandles fails then then ovcs >> is not kfree'd on the error exit path. Rather than try and make >> the clean up exit path more convoluted, fix this by j

Re: [PATCH v3 4/9] KVM: x86: Add Intel Processor Trace cpuid emulation

2017-11-30 Thread Paolo Bonzini
On 27/11/2017 21:23, Luwei Kang wrote: > + int t, times = entry->eax & 0x; This AND is not necessary. Paolo > + > + if (!f_intel_pt) > + break; > + > + entry->flags |= KVM_CPUID_FLAG_SIGNIFCANT_INDEX; > + for (t = 1; t <

[PATCH] btrfs: make function update_share_count static

2017-11-30 Thread Colin King
From: Colin Ian King The function update_share_count is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: fs/btrfs/backref.c:219:6: warning: symbol 'update_share_count' was not declared. Should it be static? Signed-off-by: Colin Ian King

Re: [PATCH v3 4/9] KVM: x86: Add Intel Processor Trace cpuid emulation

2017-11-30 Thread Paolo Bonzini
On 27/11/2017 21:23, Luwei Kang wrote: > From: Chao Peng > > Expose Intel Processor Trace to guest only when PT work in > HOST_GUEST mode. > > Signed-off-by: Chao Peng > Signed-off-by: Luwei Kang > Signed-off-by: Paolo Bonzini > --- > arch/x86/include/asm/cpufeatures.h | 2 +- > arch/x86/in

Re: [PATCH] of: overlay: fix memory leak of ovcs on error exit path

2017-11-30 Thread Frank Rowand
On 11/29/17 14:17, Colin King wrote: > From: Colin Ian King > > Currently if the call to of_resolve_phandles fails then then ovcs > is not kfree'd on the error exit path. Rather than try and make > the clean up exit path more convoluted, fix this by just kfree'ing > ovcs at the point of error de

Re: [PATCH 1/3] kbuild: add clang-version.sh

2017-11-30 Thread Masahiro Yamada
2017-11-30 2:39 GMT+09:00 Nick Desaulniers : > +# clang-version [-p] clang-command > +# > +# Prints the compiler version of `command' in a canonical 4-digit form > > small nit: `command` should be `clang-command`, but its just a comment > (maybe the maintainer can make that change when/if applying)

[PATCH] KVM: x86: MMU: make array audit_point_name static

2017-11-30 Thread Colin King
From: Colin Ian King The array audit_point_name is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: arch/x86/kvm/mmu_audit.c:22:12: warning: symbol 'audit_point_name' was not declared. Should it be static? Signed-off-by: Colin Ian King -

Re: [GIT pull] x86 APIC updates for 4.15

2017-11-30 Thread Maarten Lankhorst
Op 30-11-17 om 10:18 schreef Thomas Gleixner: > Maarten, > > On Wed, 29 Nov 2017, Maarten Lankhorst wrote: >> The changes to interrupts bring down our CI during hibernate, see: >> >> https://bugs.freedesktop.org/show_bug.cgi?id=103712 >> >> I created a bug report at https://bugzilla.kernel.org/show

[PATCH] bus: simple-pm-bus: convert bool SIMPLE_PM_BUS to tristate

2017-11-30 Thread Geert Uytterhoeven
From: Paul Gortmaker The Kconfig currently controlling compilation of this code is: config SIMPLE_PM_BUS bool "Simple Power-Managed Bus Driver" ...meaning that it currently is not being built as a module by anyone. In removing the orphaned modular support in a previous patch set, Geert

[PATCH v2] PM / Domains: Remove obsolete "samsung,power-domain" check

2017-11-30 Thread Geert Uytterhoeven
Currently the generic PM Domain code code checks for the presence of both (generic) "power-domains" and (Samsung Exynos legacy) "samsung,power-domain" properties in all device tree nodes representing devices. There are two issues with this: 1. This imposes a small boot-time penalty on all platfo

[PATCH v3 4/6] sched/rt: fast switch to maximum frequency when RT tasks are scheduled

2017-11-30 Thread Patrick Bellasi
Currently schedutil updates are triggered for the RT class using a single call place, which is part of the rt::update_curr_rt() used in: - dequeue_task_rt: but it does not make sense to set the schedutil's SCHED_CPUFREQ_RT in case the next task should not be an RT one - put_prev_task_rt: li

[PATCH v3 2/6] cpufreq: schedutil: ensure max frequency while running RT/DL tasks

2017-11-30 Thread Patrick Bellasi
The policy in use for RT/DL tasks sets the maximum frequency when a task in these classes calls for a cpufreq_update_util(). However, the current implementation might cause a frequency drop while a RT/DL task is still running, just because for example a FAIR task wakes up and it's enqueued in the

[PATCH v3 6/6] cpufreq: schedutil: ignore sugov kthreads

2017-11-30 Thread Patrick Bellasi
In system where multiple CPUs shares the same frequency domain a small workload on a CPU can still be subject to frequency spikes, generated by the activation of the sugov's kthread. Since the sugov kthread is a special RT task, which goal is just that to activate a frequency transition, it does n

[PATCH v3 5/6] cpufreq: schedutil: relax rate-limiting while running RT/DL tasks

2017-11-30 Thread Patrick Bellasi
The policy in use for RT/DL tasks sets the maximum frequency when a task in these classes calls for a cpufreq_update_util(). However, the current implementation is still enforcing a frequency switch rate limiting when these tasks are running. This is potentially working against the goal to switch

[PATCH v3 3/6] cpufreq: schedutil: update CFS util only if used

2017-11-30 Thread Patrick Bellasi
Currently the utilization of the FAIR class is collected before locking the policy. Although that should not be a big issue for most cases, we also don't really know how much latency there can be between the utilization reading and its usage. Let's get the FAIR utilization right before its usage t

[PATCH v3 0/6] cpufreq: schedutil: fixes for flags updates

2017-11-30 Thread Patrick Bellasi
This is a re-spin of a previous posting [1], rebased on v4.15-rc1. A detailed description of the series, as well as experimental results, is available in the cover letter of the previous posting. Here is a resume of the main results: - reduces energy consumption by ~50% by ensuring that a small t

[PATCH v3 1/6] cpufreq: schedutil: reset sg_cpus's flags at IDLE enter

2017-11-30 Thread Patrick Bellasi
Currently, sg_cpu's flags are set to the value defined by the last call of the cpufreq_update_util(); for RT/DL classes this corresponds to the SCHED_CPUFREQ_{RT/DL} flags always being set. When multiple CPUs share the same frequency domain it might happen that a CPU which executed an RT task, rig

Re: [BUILD FAILURE] nfs4state.c fails to compile with gcc 4.5.4

2017-11-30 Thread Trond Myklebust
On Wed, 2017-11-29 at 23:05 -0500, Steven Rostedt wrote: > On Wed, 29 Nov 2017 19:44:33 -0800 > Linus Torvalds wrote: > > I keep older compilers around to test ftrace before -mfentry was > introduced. > > I wonder if I should just add a config to force the use without > -mfentry even if the comp

Re: [PATCH] mmc: block: make function mmc_cqe_issue_type static

2017-11-30 Thread Adrian Hunter
On 30/11/17 13:37, Colin King wrote: > From: Colin Ian King > > The function mmc_cqe_issue_type is local to the source and does > not need to be in global scope, so make it static. > > Cleans up sparse warning: > drivers/mmc/core/queue.c:62:21: warning: symbol 'mmc_cqe_issue_type' > was not decl

Re: [PATCH v2 1/8] ASoC: tlv320aic31xx: Fix typo in DT binding documentation

2017-11-30 Thread Mark Brown
On Wed, Nov 29, 2017 at 11:13:52AM -0600, Andrew F. Davis wrote: > The property used to specify a GPIO intended for reset is "reset-gpios", > this binding uses "gpio-reset", as almost all other bindings use the > former name this use of the latter was certainly not intended. It is not > compatible

Re: [PATCH v3 02/15] soundwire: Add SoundWire bus type

2017-11-30 Thread Philippe Ombredanne
On Thu, Nov 30, 2017 at 10:56 AM, Vinod Koul wrote: [] > diff --git a/drivers/soundwire/bus.h b/drivers/soundwire/bus.h > new file mode 100644 > index ..2af05b21961e > --- /dev/null > +++ b/drivers/soundwire/bus.h > @@ -0,0 +1,57 @@ > +/* > + * This file is provided under a dual BSD/G

Re: [PATCH 1/2] powerpc/lib/code-patching: refactor patch_instruction()

2017-11-30 Thread Balbir Singh
On Fri, Nov 24, 2017 at 6:31 PM, Christophe Leroy wrote: > patch_instruction() uses almost the same sequence as > __patch_instruction() > > This patch refactor it so that patch_instruction() uses > __patch_instruction() instead of duplicating code. > > Signed-off-by: Christophe Leroy > --- Acked

Re: general protection fault in show_timer

2017-11-30 Thread Dmitry Vyukov
On Thu, Nov 30, 2017 at 12:31 PM, Dmitry Vyukov wrote: > On Thu, Nov 30, 2017 at 12:08 PM, Alexey Dobriyan wrote: >> On 11/30/17, syzbot >> >> wrote: >>> Hello, >>> >>> syzkaller hit the following crash on >>> 43570f0383d6d5879ae585e6c3cf027ba321546f >>> git://git.kernel.org/pub/scm/linux/kernel

[PATCH] mmc: block: make function mmc_cqe_issue_type static

2017-11-30 Thread Colin King
From: Colin Ian King The function mmc_cqe_issue_type is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: drivers/mmc/core/queue.c:62:21: warning: symbol 'mmc_cqe_issue_type' was not declared. Should it be static? Signed-off-by: Colin Ian

[PATCH] vfio/iommu_type1: report the IOMMU aperture info

2017-11-30 Thread Pierre Morel
When userland VFIO defines a new IOMMU for a guest it may want to specify to the guest the physical limits of the underlying host IOMMU to avoid access to forbidden memory ranges. Currently, the vfio_iommu_type1 driver does not report this information to userland. Let's extend the vfio_iommu_type

Re: [PATCH V11 0/5] hash addresses printed with %p

2017-11-30 Thread Alexey Dobriyan
On 11/30/17, Alexey Dobriyan wrote: >> Currently there exist approximately 14 000 places >> in the Kernel where addresses are being printed >> using an unadorned %p. > > Some of them are printing userpace pointers, > so audit is necessary anyway: > > show_timer: >seq_printf(m, "signal: %d/%p\n

Re: [PATCH] riscv/ftrace: Add basic support

2017-11-30 Thread Philippe Ombredanne
On Thu, Nov 30, 2017 at 9:53 AM, Alan Kao wrote: [] > diff --git a/arch/riscv/include/asm/ftrace.h b/arch/riscv/include/asm/ftrace.h > new file mode 100644 > index ..38beadb07ad5 > --- /dev/null > +++ b/arch/riscv/include/asm/ftrace.h > @@ -0,0 +1,23 @@ > +/* > + * Copyright (C) 2017 A

[PATCH 3/3] f2fs: allocate full free nat block in prior

2017-11-30 Thread Chao Yu
In this patch, during alloc_nid, we start to allocate free nid from nat block which contains the most free nids, it will make all dirty nat entries locating in the same nat block, result in reducing nat writes during checkpoint. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 2 ++ fs/f2fs/node.c |

[PATCH 1/3] f2fs: avoid unneeded free nid building

2017-11-30 Thread Chao Yu
This patch adds nm_i::valid_bitmap_count to count current valid free nid bitmap, with it we can skip running into __build_free_nids more early. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 1 + fs/f2fs/node.c | 14 ++ 2 files changed, 15 insertions(+) diff --git a/fs/f2fs/f2fs.h b/f

[PATCH 2/3] f2fs: refactor __build_free_nids

2017-11-30 Thread Chao Yu
Previously, in __build_free_nids we try to load bitmap from next_scan_nid pointed NAT block, but actually, due to nat_bits bitmap, current NAT blocks readed can be already ran out, so it makes __build_free_nids low efficiency. This patch refactors __build_free_nids a bit to search nat_block_bitmap

[PATCH] crypto: chelsio: make arrays sgl_ent_len and dsgl_ent_len static

2017-11-30 Thread Colin King
From: Colin Ian King The arrays sgl_ent_len and dsgl_ent_len are local to the source and do not need to be in global scope, so make them static. Also re-format the declarations to match the following round_constant array declaration style. Cleans up sparse warnings: drivers/crypto/chelsio/chcr_a

[PATCH v4] f2fs: obsolete free nid list approach

2017-11-30 Thread Chao Yu
Previously, we use free nid list to manage free nid entry, so during nid allocation, we can just pick up one entry from list header, which has quite low overhead. But sadly, during initialization of free nid list, we should do lookup combining with lots of different inner caches, including NAT pag

Re: general protection fault in show_timer

2017-11-30 Thread Dmitry Vyukov
On Thu, Nov 30, 2017 at 12:08 PM, Alexey Dobriyan wrote: > On 11/30/17, syzbot > > wrote: >> Hello, >> >> syzkaller hit the following crash on >> 43570f0383d6d5879ae585e6c3cf027ba321546f >> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master >> compiler: gcc (GCC) 7.1.1 201706

[PATCH 6/7] f2fs: clean up f2fs_map_blocks

2017-11-30 Thread Chao Yu
f2fs_map_blocks(): if (blkaddr == NEW_ADDR || blkaddr == NULL_ADDR) { if (create) { ... } else { ... if (flag == F2FS_GET_BLOCK_FIEMAP && blkaddr == NULL_ADDR) { ...

[PATCH 4/7] f2fs: fix error handling in fill_super

2017-11-30 Thread Chao Yu
In fill_super, if we fail to call f2fs_build_stats(), it needs to detach from global f2fs shrink list, otherwise once system starts to shrink slab cache, we will encounter below panic: BUG: unable to handle kernel paging request at 7d35 Oops: 0002 [#1] PREEMPT SMP EIP: __lock_acquire+0x70/0x12

[PATCH 1/7] f2fs: inject fault to kzalloc

2017-11-30 Thread Chao Yu
This patch introduces f2fs_kzalloc based on f2fs_kmalloc in order to support error injection for kzalloc(). Signed-off-by: Chao Yu --- fs/f2fs/checkpoint.c | 2 +- fs/f2fs/debug.c | 2 +- fs/f2fs/f2fs.h | 6 ++ fs/f2fs/namei.c | 2 +- fs/f2fs/node.c | 7 --- fs

[PATCH 7/7] f2fs: don't return value in truncate_data_blocks_range

2017-11-30 Thread Chao Yu
There is no caller cares about return value of truncate_data_blocks_range, remove it. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 2 +- fs/f2fs/file.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index b4796f064580..d92eba66263c 100644 -

Re: general protection fault in proc_flush_task

2017-11-30 Thread Dmitry Vyukov
On Thu, Nov 30, 2017 at 12:21 PM, Alexey Dobriyan wrote: > On 11/30/17, syzbot > > wrote: >> Hello, >> >> syzkaller hit the following crash on >> 0c86a6bd85ff0629cd2c5141027fc1c8bb6cde9c >> git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master >> compiler: gcc (GCC) 7.1.1 201706

Re: [PATCH v2] clk: stm32-h7: fix copyright

2017-11-30 Thread Philippe Ombredanne
On Thu, Nov 30, 2017 at 9:41 AM, Benjamin Gaignard wrote: > Uniformize STMicroelectronics copyrights header > Add SPDX identifier > > Signed-off-by: Benjamin Gaignard > Acked-by: Alexandre TORGUE > CC: Gabriel Fernandez > --- > drivers/clk/clk-stm32h7.c | 19 +++ > 1 file chang

[PATCH 3/7] f2fs: spread f2fs_k{m,z}alloc

2017-11-30 Thread Chao Yu
Use f2fs_k{m,z}alloc as much as possible to increase fault injection points. Signed-off-by: Chao Yu --- fs/f2fs/segment.c | 2 +- fs/f2fs/super.c | 16 +--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index ce6bf4290dbe..17

[PATCH 2/7] f2fs: inject fault to kvmalloc

2017-11-30 Thread Chao Yu
This patch supports to inject fault into kvmalloc/kvzalloc. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h| 19 +++ fs/f2fs/file.c| 6 -- fs/f2fs/node.c| 6 +++--- fs/f2fs/segment.c | 16 +--- fs/f2fs/super.c | 1 + 5 files changed, 36 insertions(+), 1

[PATCH 5/7] f2fs: clean up hash codes

2017-11-30 Thread Chao Yu
f2fs_chksum and f2fs_crc32 use the same 'crc32' crypto engine, also their implementation are almost the same, except with different shash description context. Introduce __f2fs_crc32 to wrap the common codes, and reuse it in f2fs_chksum and f2fs_crc32. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h |

Re: [RFC v2 2/2] backlight: pwm_bl: compute brightness of LED linearly to human eye.

2017-11-30 Thread Daniel Thompson
On 30/11/17 00:44, Doug Anderson wrote: Hi, On Thu, Nov 16, 2017 at 6:11 AM, Enric Balletbo i Serra wrote: When you want to change the brightness using a PWM signal, one thing you need to consider is how human perceive the brightness. Human perceive the brightness change non-linearly, we hav

Re: [PATCH 3/3] trace-cmd: Making stat to report when the stack tracer is ON

2017-11-30 Thread Vladislav Valtchev
On Wed, 2017-11-29 at 11:18 -0500, Steven Rostedt wrote: > > In other words, I expect a tool to behave like: > > "I don't know what is that, so I cannot take any decisions. > >Here's the detailed problem (err msg, data). Now only a human may help > > now". > > > > The other approach is inst

[PATCH] crypto: cryptd: make cryptd_max_cpu_qlen module parameter static

2017-11-30 Thread Colin King
From: Colin Ian King The cryptd_max_cpu_qlen module parameter is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: crypto/cryptd.c:35:14: warning: symbol 'cryptd_max_cpu_qlen' was not declared. Should it be static? Signed-off-by: Colin Ian

Re: [PATCH] rtc: add mxc driver for i.MX53

2017-11-30 Thread Lothar Waßmann
Hi, On Tue, 28 Nov 2017 08:39:27 +0100 linux-kernel-...@beckhoff.com wrote: > From: Patrick Bruenn [...] > +/*! > + * This function is the RTC interrupt service routine. > + * > + * @param irq RTC IRQ number > + * @param dev_id device ID which is not used > + * > + * @return IRQ_

Re: BSOD with [PATCH 00/13] mmu_notifier kill invalidate_page callback

2017-11-30 Thread Paolo Bonzini
On 30/11/2017 10:33, Fabian Grünbichler wrote: > > It was reverted in 785373b4c38719f4af6775845df6be1dfaea120f after which > the symptoms disappeared until this series was merged, which contains > > 369ea8242c0fb5239b4ddf0dc568f694bd244de4 mm/rmap: update to new mmu_notifier > semantic v2 > > W

Re: general protection fault in proc_flush_task

2017-11-30 Thread Alexey Dobriyan
On 11/30/17, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 0c86a6bd85ff0629cd2c5141027fc1c8bb6cde9c > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is attached. > > syzkall

Problem with a notebook keyboard after plug into dock station

2017-11-30 Thread Aleš Kapica
After the last dist upgrade my system (I use Debian unstable amd64), was encountered a problem, that begined from the kernel 4.13 and probably concerns the wmi module. Kernel version 4.12 and lower is ok. I have a HP ProBook 6475b notebook. When I plug-in it in the 'HP 230W Advanced Docking S

Re: [PATCH] crypto: stm32: fix module device table name

2017-11-30 Thread Fabien DESSENNE
Hi Corentin Thank you for the patch. On 30/11/17 12:04, Corentin Labbe wrote: > This patch fix the following build failure: >CC [M] drivers/crypto/stm32/stm32-cryp.o > In file included from drivers/crypto/stm32/stm32-cryp.c:11:0: > drivers/crypto/stm32/stm32-cryp.c:1049:25: error: 'sti_dt_

[PATCH, RESEND 1/2] dvb-frontends: fix i2c access helpers for KASAN

2017-11-30 Thread Arnd Bergmann
A typical code fragment was copied across many dvb-frontend drivers and causes large stack frames when built with with CONFIG_KASAN on gcc-5/6/7: drivers/media/dvb-frontends/cxd2841er.c:3225:1: error: the frame size of 3992 bytes is larger than 3072 bytes [-Werror=frame-larger-than=] drivers/medi

[PATCH, RESEND 2/2] r820t: fix r820t_write_reg for KASAN

2017-11-30 Thread Arnd Bergmann
With CONFIG_KASAN, we get an overly long stack frame due to inlining the register access functions: drivers/media/tuners/r820t.c: In function 'generic_set_freq.isra.7': drivers/media/tuners/r820t.c:1334:1: error: the frame size of 2880 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]

Re: general protection fault in show_timer

2017-11-30 Thread Alexey Dobriyan
On 11/30/17, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 43570f0383d6d5879ae585e6c3cf027ba321546f > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is attached. > > Unfortu

RE: [PATCH 1/2] mm: NUMA stats code cleanup and enhancement

2017-11-30 Thread Wang, Kemi
Of course, we should do that AFAP. Thanks for your comments :) -Original Message- From: owner-linux...@kvack.org [mailto:owner-linux...@kvack.org] On Behalf Of Michal Hocko Sent: Thursday, November 30, 2017 5:45 PM To: Wang, Kemi Cc: Greg Kroah-Hartman ; Andrew Morton ; Vlastimil Babka

[PATCH] crypto: stm32: fix module device table name

2017-11-30 Thread Corentin Labbe
This patch fix the following build failure: CC [M] drivers/crypto/stm32/stm32-cryp.o In file included from drivers/crypto/stm32/stm32-cryp.c:11:0: drivers/crypto/stm32/stm32-cryp.c:1049:25: error: 'sti_dt_ids' undeclared here (not in a function) MODULE_DEVICE_TABLE(of, sti_dt_ids); Let's repl

Re: [PATCH v3] doc: add maintainer book

2017-11-30 Thread Mauro Carvalho Chehab
Em Thu, 30 Nov 2017 21:47:44 +1100 "Tobin C. Harding" escreveu: > On Thu, Nov 30, 2017 at 07:01:19AM -0200, Mauro Carvalho Chehab wrote: > > Em Thu, 30 Nov 2017 12:55:07 +1100 > > "Tobin C. Harding" escreveu: > > > +So, by way of an example, Greg gives; a pull request with miscellaneous > >

Re: [PATCH net v2] tipc: call tipc_rcv() only if bearer is up in tipc_udp_recv()

2017-11-30 Thread Ying Xue
On 11/29/2017 06:48 PM, Tommi Rantala wrote: > Remove the second tipc_rcv() call in tipc_udp_recv(). We have just > checked that the bearer is not up, and calling tipc_rcv() with a bearer > that is not up leads to a TIPC div-by-zero crash in > tipc_node_calculate_timer(). The crash is rare in pract

Re: [PATCH v2 27/35] irqchip: Andestech Internal Vector Interrupt Controller driver

2017-11-30 Thread Marc Zyngier
On Wed, Nov 29 2017 at 11:23:34 pm GMT, Greentime Hu wrote: Hi Greentime, >>> +} >>> + >>> +static void ativic32_mask_ack_irq(struct irq_data *data) >>> +{ >>> + unsigned long int_mask2 = __nds32__mfsr(NDS32_SR_INT_MASK2); >>> + __nds32__mtsr_dsb(int_mask2 & (~(1 << data->hwirq)), >>> NDS32_

Re: [PATCH v3 0/4] Fixes for omapdrm on OpenPandora and GTA04

2017-11-30 Thread Tomi Valkeinen
On 28/11/17 17:48, H. Nikolaus Schaller wrote: > Changes V3: > * stay compatible with old DTB files which still use "toppoly" (suggested by > Tomi Valkeinen) > * replaced MODULE_ALIAS entries by MODULE_DEVICE_TABLE (suggested by Andrew > F. Davis) > * removed DSI VDDS patch as it has already been

Re: linux-next: Signed-off-by missing for commits in the mfd-fixes tree

2017-11-30 Thread Johan Hovold
On Wed, Nov 29, 2017 at 04:31:42PM +, Lee Jones wrote: > On Wed, 29 Nov 2017, Johan Hovold wrote: > > > On Thu, Nov 30, 2017 at 01:43:05AM +1100, Stephen Rothwell wrote: > > > Hi Lee, > > > > > > Commits > > > > > > 5f6bf7b9f96e ("mfd: twl4030-audio: Fix sibling-node lookup") > > > 38c02

Re: [PATCH] rtc: add mxc driver for i.MX53

2017-11-30 Thread Lothar Waßmann
Hi, On Thu, 30 Nov 2017 10:50:47 +0100 Sascha Hauer wrote: > On Tue, Nov 28, 2017 at 08:39:27AM +0100, linux-kernel-...@beckhoff.com wrote: [...] > > +/*! MXC RTC Power management control */ > > +static int mxc_rtc_probe(struct platform_device *pdev) > > +{ > > + struct timespec tv; > > + stru

RE: [patch v12 2/4] drivers: jtag: Add Aspeed SoC 24xx and 25xx families JTAG master driver

2017-11-30 Thread Oleksandr Shamray
Thnaks for point Best Regards, Oleksandr Shamray > -Original Message- > From: Philippe Ombredanne [mailto:pombreda...@nexb.com] > Sent: Thursday, November 30, 2017 10:21 AM > To: Kun Yi > Cc: Oleksandr Shamray ; Greg Kroah-Hartman > ; a...@arndb.de; system-sw-low-level sw-low-le...@mel

Re: [alsa-devel] Applied "ALSA: pcm: add SNDRV_PCM_FORMAT_{S, U}20" to the asoc tree

2017-11-30 Thread Takashi Iwai
On Thu, 30 Nov 2017 11:41:59 +0100, Mark Brown wrote: > > On Wed, Nov 29, 2017 at 10:23:23PM +0100, Takashi Iwai wrote: > > > Mark, I already took this into my tree, as it's a change in ALSA core > > stuff. As mentioned in another mail, the branch was exposed to > > topic/pcm-20bit branch, so th

Re: [PATCH v3] doc: add maintainer book

2017-11-30 Thread Tobin C. Harding
On Thu, Nov 30, 2017 at 07:01:19AM -0200, Mauro Carvalho Chehab wrote: > Em Thu, 30 Nov 2017 12:55:07 +1100 > "Tobin C. Harding" escreveu: > > > There is currently very little documentation in the kernel on maintainer > > level tasks. In particular there are no documents on creating pull > > requ

[PATCH] kernel-docs.rst: update broken linuxjournal links

2017-11-30 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- Documentation/process/kernel-docs.rst | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Documentation/process/kernel-docs.rst b/Documentation/process/kernel-docs.rst index b8cac85a4001..66040404ac9f 100644 --- a/Documentati

<    5   6   7   8   9   10   11   12   >