Re: [PATCH] mm/memblock: add missing include

2018-06-15 Thread Luck, Tony
This both compiles and boots on ia64. Builds OK on x86_64 with an Enterprise OS .config that includes: CONFIG_HAVE_MEMBLOCK=y CONFIG_NO_BOOTMEM=y -Tony diff --git a/mm/memblock.c b/mm/memblock.c index cc16d70b8333..0a54d488f767 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -1225,6

[PATCH] sysfs: Fix internal_create_group() for named group updates

2018-06-15 Thread Rajat Jain
There are a couple of problems with named group updates in the code today: * sysfs_update_group() will always fail for a named group, because internal_create_group() will try to create a new sysfs directory unconditionally, which will ofcourse fail with -EEXIST. * We can leak the kernfs_node

Re: OpenAFS module libafs.ko uses GPL-only symbol '__put_devmap_managed_page'

2018-06-15 Thread Dan Williams
On Fri, Jun 15, 2018 at 9:43 PM, John Hubbard wrote: > On 06/13/2018 12:51 PM, Dan Williams wrote: >> [ adding Andrew, Christoph, and linux-mm ] >> >> On Wed, Jun 13, 2018 at 12:33 PM, Joe Gorse wrote: >>> Greetings, >>> >>> Please CC answers & comments to this email. Thanks! =) >>> >>> Our

Re: [PATCH v1 0/2] perf: Drop leaked kernel samples

2018-06-15 Thread Kyle Huey
On Fri, Jun 15, 2018 at 5:50 PM, Jin, Yao wrote: > Hi All, > > This patch raised many questions, I was prepared. :) > > I'd like to try another proposal that it adds a special flag in the returned > perf_sample_data to indicate the perf binary that this sample is a leaked > sample. > > For

Re: [PATCH 01/11] staging: lustre: simplify use of interval-tree.

2018-06-15 Thread James Simmons
> Lustre has a private interval-tree implementation. This > implementation (inexplicably) refuses to insert an interval if an > identical interval already exists. It is OK with all sorts of > overlapping intervals, but identical intervals are rejected. I talked to Oleg about this since this

Re: [PATCH 1/2] staging: rtl8192e: remove brace for single statement

2018-06-15 Thread 김현일
Thanks greg. Let me check and send again regards Hyunil Kim On Fri, Jun 15, 2018 at 8:08 PM, Greg KH wrote: > On Sat, Jun 09, 2018 at 03:05:56PM +0900, thtlwlsmsgk...@gmail.com wrote: >> * fix checkpatch.pl warning: >> WARNING: braces { are not necessary for single statement blocks >> >>

Re: OpenAFS module libafs.ko uses GPL-only symbol '__put_devmap_managed_page'

2018-06-15 Thread John Hubbard
On 06/15/2018 10:22 PM, Dan Williams wrote: > On Fri, Jun 15, 2018 at 9:43 PM, John Hubbard wrote: >> On 06/13/2018 12:51 PM, Dan Williams wrote: >>> [ adding Andrew, Christoph, and linux-mm ] >>> >>> On Wed, Jun 13, 2018 at 12:33 PM, Joe Gorse wrote: [snip] P.S. The build failure, for

[RFC PATCH 1/8] x86/cpufeatures: Enumerate MOVDIRI instruction

2018-06-15 Thread Fenghua Yu
MOVDIRI moves doubleword or quadword from register to memory through direct store which is implemented by using write combining (WC) for writing data directly into memory without caching the data. Availability of the MOVDIRI instruction is indicated by the presence of the CPUID feature flag

[RFC PATCH 2/8] x86/cpufeatures: Enumerate MOVDIR64B instruction

2018-06-15 Thread Fenghua Yu
MOVDIR64B moves 64-bytes as direct-store with 64-bytes write atomicity. Direct store is implemented by using write combining (WC) for writing data directly into memory without caching the data. Availability of the MOVDIR64B instruction is indicated by the presence of the CPUID feature flag

[RFC PATCH 6/8] x86/lib_direct_store.h: Add APIs for direct store instructions

2018-06-15 Thread Fenghua Yu
Direct store instructions MOVDIRI and MOVDIR64B are published in the latest Intel Instruction Set Extensions document. Define the APIs for user or kernel to use the instructions. If feature enabled GCC is available in the future, implementation of the APIs will be changed to call the intrinsic

[RFC PATCH 5/8] x86/umwait.c: Add sysfs interface to show tsc_khz

2018-06-15 Thread Fenghua Yu
User wait process or any other process wants to know tsc frequency to convert seconds to tsc ticks. Kernel already gets tsc freqency in kernel internal variable tsc_khz. The sysfs interface /sys/devices/system/cpu/ user_mwait/tsc_khz exposes the internal variable tsc_khz in decimal to user.

[RFC PATCH 3/8] x86/cpufeatures: Enumerate UMONITOR, UMWAIT, and TPAUSE instructions

2018-06-15 Thread Fenghua Yu
UMONITOR, UMWAIT, and TPAUSE are a set of user wait instructions. UMONITOR arms address monitoring hardware using an address. A store to an address within the specified address range triggers the monitoring hardware to wake up the processor waiting in umwait. UMWAIT instructs the processor to

Re: OpenAFS module libafs.ko uses GPL-only symbol '__put_devmap_managed_page'

2018-06-15 Thread John Hubbard
On 06/13/2018 12:51 PM, Dan Williams wrote: > [ adding Andrew, Christoph, and linux-mm ] > > On Wed, Jun 13, 2018 at 12:33 PM, Joe Gorse wrote: >> Greetings, >> >> Please CC answers & comments to this email. Thanks! =) >> >> Our build is breaking as of >> commit

Re: [RFC PATCH 5/5] fsi/scom: Major overhaul

2018-06-15 Thread Joel Stanley
On 12 June 2018 at 14:49, Benjamin Herrenschmidt wrote: > This was too hard to split ... this adds a number of features > to the SCOM user interface: > > - Support for indirect SCOMs > > - read()/write() interface now handle errors and retries > > - New ioctl() "raw" interface for use by

[git pull] vfs.git - more aio followups

2018-06-15 Thread Al Viro
Assorted AIO followups and fixes. The following changes since commit 9a6d9a62e0fd4b9927c3124db0f25fc6b4fb6576: fs: aio ioprio use ioprio_check_cap ret val (2018-06-04 14:20:39 -0400) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git

Re: [PATCH v1 1/2] perf/core: Use sysctl to turn on/off dropping leaked kernel samples

2018-06-15 Thread Linus Torvalds
On Fri, Jun 15, 2018 at 8:36 PM Mark Rutland wrote: > > At least for sampling the GPRs, we could do something like below > unconditionally, which seems sufficient for my test cases. Ack. The PEBS case may need checking, but maybe PEBS doesn't even have this issue? Linus

[CFT][PATCH] proc: Simplify and fix proc by removing the kernel mount

2018-06-15 Thread Eric W. Biederman
Today there are three users of proc_mnt. - The legacy sysctl system call implementation. - The uml mconsole driver. - The process cleanup function proc_flush_task. The first two are slow path and for the sysctl code there is even a case for removing it. A new wrapper file_open_proc to mount

Re: [PATCH v2] nds32: Fix build error caused by configuration flag rename

2018-06-15 Thread Greentime Hu
James Hogan 於 2018年6月15日 週五 下午8:34寫道: > > On Fri, Jun 15, 2018 at 02:12:58PM +0800, Greentime Hu wrote: > > Thank you James and Guenter. > > Should I pick it in my tree? It will be ok to put in your tree. :) > > > > Acked-by: Greentime Hu > > I think your tree makes most sense for this patch,

Re: [PATCH 2/2] staging: rtl8192e: fix line over 80 characters

2018-06-15 Thread 김현일
Hi Joe. Thanks to your notice. i will check again. Regards, Hyunil Kim. On Sat, Jun 9, 2018 at 3:45 PM, Joe Perches wrote: > On Sat, 2018-06-09 at 15:07 +0900, thtlwlsmsgk...@gmail.com wrote: >> *fix checkpatch.pl warnings: >> WARNING: line over 80 characters > > Consider using a temporary

Re: [PATCH 1/2] staging: mt7621-spi: change indentation from space to tab

2018-06-15 Thread 김준환
Hi greg, I didn't noticed that. :( Thank you for your attention! Sincerely, JoonHwan 2018-06-15 20:02 GMT+09:00 Greg KH : > On Sat, Jun 09, 2018 at 03:03:27PM +0900, JoonHwan.Kim wrote: >> * fix checkpatch.pl error: >> ERROR: code indent should use tabs where possible >> >> Signed-off-by:

Re: [PATCH v1 0/2] perf: Drop leaked kernel samples

2018-06-15 Thread Jin, Yao
Hi All, This patch raised many questions, I was prepared. :) I'd like to try another proposal that it adds a special flag in the returned perf_sample_data to indicate the perf binary that this sample is a leaked sample. For example, create a new PERF_SAMPLE_RETURN_LEAKAGE in

Re: [PATCH v1 0/2] perf: Drop leaked kernel samples

2018-06-15 Thread Jin, Yao
On 6/16/2018 8:56 AM, Kyle Huey wrote: On Fri, Jun 15, 2018 at 5:50 PM, Jin, Yao wrote: Hi All, This patch raised many questions, I was prepared. :) I'd like to try another proposal that it adds a special flag in the returned perf_sample_data to indicate the perf binary that this sample

[PATCH v4] staging: rtl8192u: add error handling for usb_alloc_urb

2018-06-15 Thread Zhouyang Jia
When usb_alloc_urb fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling usb_alloc_urb. Signed-off-by: Zhouyang Jia --- v1->v2: - Fix memory leak. v2->v3: - Release memory in error path. v3->v4: - Use kcalloc instead of

[RFC PATCH 7/8] x86/lib_user_wait.h: Add APIs for user wait instructions

2018-06-15 Thread Fenghua Yu
A few new user wait instructions UMONITOR, UMWAIT, and TPAUSE are published in the latest Intel Instruction Set Extensions document. Define the APIs for user or kernel to use the instructions. If feature enabled GCC is available in the future, implementation of the APIs will be changed to call

[RFC PATCH 8/8] selftests/x86: Self test for the APIs in lib_direct_store.h and lib_user_wait.h

2018-06-15 Thread Fenghua Yu
The self test checks APIs defined in arch/x86/include/uapi/asm/ lib_direct_store.h and arch/x86/include/uapi/asm/lib_user_wait.h Limited by testing environment, this test suit only tests simple cases. More test cases may be added later. Signed-off-by: Fenghua Yu ---

[RFC PATCH 4/8] cpuidle: Set up maximum umwait time and umwait states

2018-06-15 Thread Fenghua Yu
UMWAIT or TPAUSE called by user process makes processor to reside in a light-weight power/performance optimized state (C0.1 state) or an improved power/performance optimized state (C0.2 state). IA32_UMAIT_CONTROL MSR register control allows OS to set maximum umwait time and disable C0.2 on the

[RFC PATCH 0/8] x86: Enable a few new instructions

2018-06-15 Thread Fenghua Yu
A few new instructions including direct stores (movdiri and movdir64b) and user wait (umwait, umonitor, and tpause) and IA32_MWAIT_CONTROL MSR to control umwait/umonitor/tpause behaviors will be available in Tremont and other future x86 processors. This patch set enumerates the instructions, adds

[git pull] vfs.git - misc compat stuff

2018-06-15 Thread Al Viro
Some biarch patches - getting rid of assorted compat_alloc_user_space() (mis)uses. Not much in that area this cycle... The following changes since commit 4faa99965e027cc057c5145ce45fa772caa04e8d: fix io_destroy()/aio_complete() race (2018-05-23 22:53:22 -0400) are available in the

Re: [PATCH] mm: skip invalid pages block at a time in zero_resv_unresv

2018-06-15 Thread Pavel Tatashin
On Fri, Jun 15, 2018 at 5:48 PM Andrew Morton wrote: > > On Fri, 15 Jun 2018 11:57:33 -0400 Pavel Tatashin > wrote: > > > The role of zero_resv_unavail() is to make sure that every struct page that > > is allocated but is not backed by memory that is accessible by kernel is > > zeroed and not

[git pull] vfs.git afs stuff from dhowells (mostly procfs followups)

2018-06-15 Thread Al Viro
Assorted AFS stuff - ended up in vfs.git since most of that consists of David's AFS-related followups to Christoph's procfs series. The following changes since commit 96362fb474bad694812c18cbc9943fe0f7e2ce31: isdn/gigaset: add back gigaset_procinfo assignment (2018-05-17 19:59:55

Re: [PATCH] kvm: x86: mmu: Add cast to negated bitmasks in update_permission_bitmask()

2018-06-15 Thread kbuild test robot
Hi Matthias, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on kvm/linux-next] [also build test WARNING on v4.17 next-20180615] [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

[PATCH] staging: rtl8712: Adjust if statements to reduce indentation level

2018-06-15 Thread JoonHwan.Kim
Merge two condition of if statements in r8712_surveydone_event_callback() Signed-off-by: Joonhwan Kim --- drivers/staging/rtl8712/rtl871x_mlme.c | 51 +- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/drivers/staging/rtl8712/rtl871x_mlme.c

RE: [PATCH 4.4 10/24] x86/fpu: Hard-disable lazy FPU mode

2018-06-15 Thread Daniel Sangorrin
> -Original Message- > From: 'Greg Kroah-Hartman' [mailto:gre...@linuxfoundation.org] > Sent: Friday, June 15, 2018 4:06 PM > To: Daniel Sangorrin > Cc: linux-kernel@vger.kernel.org; sta...@vger.kernel.org; 'Andy Lutomirski' > ; 'Rik van Riel' ; 'Borislav Petkov' > ; 'Brian Gerst' ; 'Dave

RE: [PATCH 1/4] arm: dts: add support for Laird WB45N cpu module and DVK

2018-06-15 Thread Ben Whitten
> On 14/06/2018 at 10:51, Ben Whitten wrote: > > Signed-off-by: Ben Whitten > > --- > > arch/arm/boot/dts/Makefile| 3 +- > > arch/arm/boot/dts/at91-wb45n.dts | 66 +++ > > arch/arm/boot/dts/at91-wb45n.dtsi | 169 > ++ > > 3 files

Re: [PATCH v4 02/26] arm64: cpufeature: Add cpufeature for IRQ priority masking

2018-06-15 Thread Suzuki K Poulose
On 12/06/18 14:46, Julien Thierry wrote: On 25/05/18 11:48, Julien Thierry wrote: On 25/05/18 11:41, Suzuki K Poulose wrote: On 25/05/18 11:39, Julien Thierry wrote: On 25/05/18 11:36, Suzuki K Poulose wrote: On 25/05/18 11:17, Julien Thierry wrote: On 25/05/18 11:04, Suzuki K

[PATCH 10/11] mfd: 88pm860x-i2c: switch to i2c_lock_segment

2018-06-15 Thread Peter Rosin
Locking the root adapter for __i2c_transfer will deadlock if the device sits behind a mux-locked I2C mux. Switch to the finer-grained i2c_lock_segment. If the device does not sit behind a mux-locked mux, the two locking variants are equivalent. Signed-off-by: Peter Rosin ---

Re: [PATCH 5/5] KVM: nVMX: optimize prepare_vmcs02{,_full} for Enlightened VMCS case

2018-06-15 Thread Vitaly Kuznetsov
Liran Alon writes: > - vkuzn...@redhat.com wrote: > >> When Enlightened VMCS is in use by L1 hypervisor we can avoid >> vmwriting >> VMCS fields which did not change. >> >> Our first goal is to achieve minimal impact on traditional VMCS case >> so >> we're not wrapping each vmwrite() with

Re: [PATCH 4/4] rseq/selftests: Implement MIPS support

2018-06-15 Thread James Hogan
On Thu, Jun 14, 2018 at 04:52:10PM -0700, Paul Burton wrote: > +#define __RSEQ_ASM_DEFINE_TABLE(version, flags, start_ip, > \ Nit: technically all these \'s are on 81st column... > +#define __RSEQ_ASM_DEFINE_ABORT(table_label, label, teardown, >

[PATCH 0/5] pinctrl fixes for generic functions and groups

2018-06-15 Thread Tony Lindgren
Hi, Here are fixes to the race issues for generic group and functions reported by H. Nikolaus Schaller . I have not seen the issue here myself, so please test to see if this is sufficient. I've also fixed rza1 in addition to pinctrl-single. Please also check the drivers pinctrl-mt7622.c and

[PATCH 2/5] pinctrl: pinmux: Return selector to the pinctrl driver

2018-06-15 Thread Tony Lindgren
We must return the selector from pinmux_generic_add_function() so pin controller device drivers can remove the right group if needed for deferred probe for example. Note that fixes are also needed for the pin controller drivers to use the selector value. Fixes: a76edc89b100 ("pinctrl: core: Add

Lazy FPU restoration / moving kernel_fpu_end() to context switch

2018-06-15 Thread Jason A. Donenfeld
Hi Andy & folks, Lots of crypto routines look like this: kernel_fpu_begin(); encrypt(); kernel_fpu_end(); If you call such a routine twice, you get: kernel_fpu_begin(); encrypt(); kernel_fpu_end(); kernel_fpu_begin(); encrypt(); kernel_fpu_end(); In a loop this looks like: for (thing) {

Re: [PATCH v4 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ FW bindings

2018-06-15 Thread Sudeep Holla
On 14/06/18 19:24, Taniya Das wrote: > Hello Sudeep, > > Thanks for your comments. > > On 6/14/2018 4:17 PM, Sudeep Holla wrote: >> >> >> On 13/06/18 19:13, Taniya Das wrote: >>> Hello Sudeep, >>> >>> Thanks for review comments. >>> >>> On 6/13/2018 4:56 PM, Sudeep Holla wrote: >>

Re: [PATCH v3] lib/test_printf.c: accept "ptrval" as valid result for plain 'p' tests

2018-06-15 Thread Petr Mladek
On Wed 2018-06-13 19:18:40, Thierry Escande wrote: > If the test_printf module is loaded before the crng is initialized, the > plain 'p' tests will fail because the printed address will not be hashed > and the buffer will contain "(ptrval)" or "(ptrval)" instead > (64-bit vs 32-bit). >

Re: what trees/branches to test on syzbot

2018-06-15 Thread Dmitry Vyukov
On Mon, Jun 11, 2018 at 3:22 AM, Theodore Y. Ts'o wrote: > On Sun, Jun 10, 2018 at 08:11:05AM +0200, Dmitry Vyukov wrote: >> >> The set of trees where a crash happened is visible on dashboard, so >> one can see if it's only linux-next or whole set of trees. Potentially >> syzbot can act

Vanity Gods and the LKML attitude problem.

2018-06-15 Thread Email
A bit futher renaming of our projects. We seem to have hit the main problem of the LKML attitude discussion. It seems indeed the classic problem of vanity gods. A Richard/Linus/Andrew Trinity, results in a 1000 hz timer, and 10ms filter in sched.c. And facistic attitudes with swearing and

[PATCH] drm/xen-front: Replace NULL with error value in xen_drm_front_gem_get_sg_table

2018-06-15 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Dan Carpenter has reported that there is the following static checker warning: drivers/gpu/drm/drm_prime.c:317 drm_gem_map_dma_buf() warn: 'sgt' can also be NULL 314 sgt = obj->dev->driver->gem_prime_get_sg_table(obj); 315 316 if

[PATCH 1/5] pinctrl: core: Return selector to the pinctrl driver

2018-06-15 Thread Tony Lindgren
We must return the selector from pinctrl_generic_add_group() so pin controller device drivers can remove the right group if needed for deferred probe for example. Note that fixes are also needed for the pin controller drivers to use the selector value. Fixes: c7059c5ac70a ("pinctrl: core: Add

Re: [PATCH V4] platform/x86: intel_pmc_core: Add CNP SLPS0 debug registers

2018-06-15 Thread Rajneesh Bhardwaj
On Thu, Jun 14, 2018 at 03:13:02PM -0700, David E. Box wrote: > From: > > Adds debugfs access to registers in the Cannonlake PCH PMC that are > useful for debugging #SLP_S0 signal assertion and other low power > related activities. Device pm states are latched in these registers > whenever the

Re: [PATCH v6 03/11] sched/rt: add rt_rq utilization tracking

2018-06-15 Thread Dietmar Eggemann
On 06/08/2018 02:09 PM, Vincent Guittot wrote: > schedutil governor relies on cfs_rq's util_avg to choose the OPP when cfs > tasks are running. When the CPU is overloaded by cfs and rt tasks, cfs tasks > are preempted by rt tasks and in this case util_avg reflects the remaining > capacity but not

Re: [PATCH v4 2/6] mfd: bd71837: Devicetree bindings for ROHM BD71837 PMIC

2018-06-15 Thread Matti Vaittinen
On Thu, Jun 07, 2018 at 02:12:18PM +0300, Matti Vaittinen wrote: > On Wed, Jun 06, 2018 at 10:16:37AM -0500, Rob Herring wrote: > > On Wed, Jun 6, 2018 at 2:34 AM, Matti Vaittinen > > wrote: > > > On Tue, Jun 05, 2018 at 10:46:14AM -0500, Rob Herring wrote: > > >> On Mon, Jun 4, 2018 at 6:32 AM,

Re: [PATCH] staging: rtl8192u: add error handling for usb_alloc_urb

2018-06-15 Thread Greg Kroah-Hartman
On Mon, Jun 11, 2018 at 04:31:11PM +0800, Zhouyang Jia wrote: > When usb_alloc_urb fails, the lack of error-handling code may > cause unexpected results. > > This patch adds error-handling code after calling usb_alloc_urb. > > Signed-off-by: Zhouyang Jia > --- >

[PATCH 4/5] pinctrl: rza1: Fix selector use for groups and functions

2018-06-15 Thread Tony Lindgren
We must use a mutex around the generic_add functions and save the function and group selector in case we need to remove them. Otherwise the selector use will be racy for deferred probe at least. Fixes: 5a49b644b307 ("pinctrl: Renesas RZ/A1 pin and gpio controller") Reported-by: H. Nikolaus

[RFC] replace comments for bvl_vec with bio_vec

2018-06-15 Thread Gioh Kim
I think bvl_vec means bio_vec_list that was replaced with bio_vec long time ago. If I am correct, I think some comments for blk_vec need to be replaced with bio_vec. Signed-off-by: Gioh Kim --- include/linux/blk_types.h | 2 +- include/linux/bvec.h | 2 +- 2 files changed, 2 insertions(+),

Re: BUG: drivers/pinctrl/core: races in pinctrl_groups and deferred probing

2018-06-15 Thread H. Nikolaus Schaller
Hi Tony, > Am 15.06.2018 um 13:13 schrieb Tony Lindgren : > > * Tony Lindgren [180615 07:00]: >> * H. Nikolaus Schaller [180614 12:15]: >>> Hi Tony, >>> Am 14.06.2018 um 14:01 schrieb Tony Lindgren : * H. Nikolaus Schaller [180613 12:41]: > > Now if I look into

[PATCH 5/5] pinctrl: core: Remove broken remove_last group and pinmux functions

2018-06-15 Thread Tony Lindgren
With no users left for these functions let's remove them. Reported-by: H. Nikolaus Schaller Cc: Haojian Zhuang Cc: Jacopo Mondi Cc: Paul Cercueil Cc: Sean Wang Signed-off-by: Tony Lindgren --- drivers/pinctrl/core.h | 6 -- drivers/pinctrl/pinmux.h | 7 --- 2 files changed, 13

Re: [linux-sunxi] Re: [PATCH] crypto: sun4i-ss: prevent deadlock on emulated hardware

2018-06-15 Thread Maxime Ripard
On Fri, Jun 15, 2018 at 11:16:50AM +0200, Corentin Labbe wrote: > On Fri, Jun 15, 2018 at 11:04:12AM +0200, Maxime Ripard wrote: > > On Fri, Jun 15, 2018 at 10:15:54AM +0200, Corentin Labbe wrote: > > > On Fri, Jun 15, 2018 at 09:57:54AM +0200, Maxime Ripard wrote: > > > > On Thu, Jun 14, 2018 at

Re: [PATCH 1/4] Staging:rtl8192e Replace function names by using __func__ identifier

2018-06-15 Thread Greg Kroah-Hartman
On Wed, Jun 13, 2018 at 02:22:59AM -0400, Janani Sankara Babu wrote: > Sorry , Kindly ignore this patch. I'm dropping this whole series as I can not tell what should, and what should not, be applied. Please fix them all up and resend, as a properly threaded patch series. thanks, greg k-h

Re: [PATCH 1/2] staging: rtl8192e: remove brace for single statement

2018-06-15 Thread Greg KH
On Sat, Jun 09, 2018 at 03:05:56PM +0900, thtlwlsmsgk...@gmail.com wrote: > * fix checkpatch.pl warning: > WARNING: braces { are not necessary for single statement blocks > > Signed-off-by: Hyunil Kim This does not match your "From:" line in your email headers :(

Re: [PATCH v4 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ FW bindings

2018-06-15 Thread Amit Kucheria
On Thu, Jun 14, 2018 at 9:24 PM, Taniya Das wrote: >>> Sorry Sudeep I missed replying to your earlier query. >>> The High level OS(HLOS) would require to access only these specific >>> registers from this IP block and just mapping the whole block(huge >>> region) is unnecessary from the OS point

Re: [PATCH v4 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ FW bindings

2018-06-15 Thread Amit Kucheria
On Tue, Jun 12, 2018 at 2:02 PM, Taniya Das wrote: > Add QCOM cpufreq firmware device bindings for Qualcomm Technology Inc's > SoCs. This is required for managing the cpu frequency transitions which are > controlled by firmware. > > Signed-off-by: Taniya Das > + qcom,cpufreq-fw { > +

[PATCH v6 1/4] mfd: bd71837: mfd driver for ROHM BD71837 PMIC

2018-06-15 Thread Matti Vaittinen
ROHM BD71837 PMIC MFD driver providing interrupts and support for two subsystems: - clk - Regulators Signed-off-by: Matti Vaittinen --- drivers/mfd/Kconfig | 13 ++ drivers/mfd/Makefile| 1 + drivers/mfd/bd71837.c | 249 ++

[RFC][PATCH 4/6] serial: add uart port locking helpers

2018-06-15 Thread Sergey Senozhatsky
UART port spin_lock is one of the locks that can cause a printk-recursion deadlock, thus we need to lock it from printk_safe context. An example of a possible deadlock: IRQ foo_console_handle_IRQ() spin_lock(_port->lock) tty_wakeup() printk() call_console_drivers()

[PATCH v9] Refactor part of the oom report in dump_header

2018-06-15 Thread ufo19890607
From: yuzhoujian Some users complains that system-wide oom report does not print memcg's name which contains the task killed by the oom-killer. The current system wide oom report prints the task's command, gfp_mask, order ,oom_score_adj and shows the memory info, but misses some important

Re: [PATCH 3/5] KVM: nVMX: add enlightened VMCS state

2018-06-15 Thread Vitaly Kuznetsov
Liran Alon writes: > - vkuzn...@redhat.com wrote: > >> Adds hv_evmcs pointer and implement copy_enlightened_to_vmcs12() and >> copy_enlightened_to_vmcs12(). >> >> prepare_vmcs02()/prepare_vmcs02_full() separation is not valid for >> Enlightened VMCS, do full sync for now. >> >>

Re: [PATCH 2/5] KVM: nVMX: add KVM_CAP_HYPERV_ENLIGHTENED_VMCS capability

2018-06-15 Thread Vitaly Kuznetsov
Liran Alon writes: > - vkuzn...@redhat.com wrote: > >> Enlightened VMCS is opt-in. The current version does not contain all >> fields supported by nested VMX so we must not advertise the >> corresponding VMX features if enlightened VMCS is enabled. >> >> Userspace is given the enlightened

Herzliche Glückwünsche

2018-06-15 Thread Euro Millions
Herzlichen Glückwunsch, Sie haben €650.000,00 bei den monatlichen Gewinnspielen von Euro Millions / Google Promo am 9. Juni 2018 gewonnen. Kontaktieren Sie unseren Schadenregulierungsbeauftragten mit den folgenden Informationen Vollständiger Name Heimatadresse Geschlecht Alter Besetzung

Re: BUG: drivers/pinctrl/core: races in pinctrl_groups and deferred probing

2018-06-15 Thread Tony Lindgren
* Tony Lindgren [180615 07:00]: > * H. Nikolaus Schaller [180614 12:15]: > > Hi Tony, > > > > > Am 14.06.2018 um 14:01 schrieb Tony Lindgren : > > > > > > * H. Nikolaus Schaller [180613 12:41]: > > >> > > >> Now if I look into pinctrl_generic_add_group() and > > >>

Re: [PATCH 1/2] x86: x86_64_defconfig: Enable KSM.

2018-06-15 Thread Austin S. Hemmelgarn
On 2018-06-14 18:50, Daniel Díaz wrote: As per the documentation, Kernel Samepage Merging (available since 2.6.32) is a memory-saving de-duplication feature, enabled by CONFIG_KSM=y and activated via sysfs. More information can be found here:

[PATCH] ARM: add missing of_node_put()

2018-06-15 Thread Nicholas Mc Guire
The call to of_find_compatible_node() returns a node pointer with refcount incremented thus it must be explicitly decremented here after the last usage. (see drivers/of/base.c:of_find_compatible_node()) Signed-off-by: Nicholas Mc Guire --- Problem located with an experimental coccinelle script

Re: ThinkPad T480s & LED_MUTE, LED_MICMUTE

2018-06-15 Thread Henrique de Moraes Holschuh
On Fri, 15 Jun 2018, Pali Rohár wrote: > Henrique, any idea why there are no exported led classes for mute and > micmute? And how are suppose to be controlled? I have to look into the code, it was contributed by someone who had access to the proper hardware to test it. But the way *I* would like

Re: [PATCHv3 07/17] x86/mm: Preserve KeyID on pte_modify() and pgprot_modify()

2018-06-15 Thread Kirill A. Shutemov
On Wed, Jun 13, 2018 at 06:13:03PM +, Dave Hansen wrote: > On 06/12/2018 07:39 AM, Kirill A. Shutemov wrote: > > Encrypted VMA will have KeyID stored in vma->vm_page_prot. This way we > > "An encrypted VMA..." > > > don't need to do anything special to setup encrypted page table entries > >

[RFC] mm/vmalloc: keep track of free blocks for allocation

2018-06-15 Thread Uladzislau Rezki (Sony)
Hello, please RFC. Initial discussion was here: https://patchwork.kernel.org/patch/10244733/ Currently an allocation of the new VA area is done over busy list iteration until a suitable hole is found between two busy areas. Therefore each new allocation causes the list being grown. Due to long

Re: [PATCH v2] bitfield: fix *_encode_bits()

2018-06-15 Thread Andy Shevchenko
On Fri, Jun 15, 2018 at 12:30 PM, Johannes Berg wrote: > On Fri, 2018-06-15 at 11:51 +0300, Andy Shevchenko wrote: >> On Fri, Jun 15, 2018 at 12:26 AM, Johannes Berg >> wrote: >> > There's a bug in *_encode_bits() in using ~field_multiplier() for >> > the check whether or not the constant value

[RFC][PATCH 6/6] tty: 8250: switch to uart_port locking helpers

2018-06-15 Thread Sergey Senozhatsky
Do not directly lock/unlock uart_port->lock, but use uart_port_lock helper macros. Signed-off-by: Sergey Senozhatsky --- drivers/tty/serial/8250/8250_core.c | 8 ++-- drivers/tty/serial/8250/8250_dma.c | 4 +- drivers/tty/serial/8250/8250_port.c | 74 ++--- 3 files

[RFC][PATCH 0/6] Use printk_safe context for TTY and UART port locks

2018-06-15 Thread Sergey Senozhatsky
Hello, RFC printk_safe buffers help us to avoid printk() deadlocks that are caused by recursive printk() calls, e.g. printk() vprintk_emit() spin_lock(_lock) vsnprintf() format_decode() warn_slowpath_fmt() vprintk_emit() spin_lock(_lock) <<

Re: [PATCH 1/2] staging: mt7621-spi: change indentation from space to tab

2018-06-15 Thread Greg KH
On Sat, Jun 09, 2018 at 03:03:27PM +0900, JoonHwan.Kim wrote: > * fix checkpatch.pl error: > ERROR: code indent should use tabs where possible > > Signed-off-by: Joonhwan Kim > --- > drivers/staging/mt7621-spi/spi-mt7621.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Someone else

[PATCH 3/5] pinctrl: single: Fix group and function selector use

2018-06-15 Thread Tony Lindgren
We must use a mutex around the generic_add functions and save the function and group selector in case we need to remove them. Otherwise the selector use will be racy for deferred probe at least. Note that struct device_node *np is unused in pcs_add_function() we remove that too and fix a

Re: [PATCH v6 3/8] x86/microcode/AMD: Check microcode container data in the early loader

2018-06-15 Thread Borislav Petkov
On Thu, Jun 14, 2018 at 10:56:07PM +0200, Maciej S. Szmigiero wrote: > At this point we don't know the CPU family the particular patch is for > since the patch header contains only CPU rev_id, not an explicit family > number. patch_fam = 0xf + (mc->processor_rev_id >> 12); which means,

[PATCH RFC 2/2] regulator: pfuze100: add pfuze3001 support

2018-06-15 Thread Stefan Wahren
This extends the pfuze100 driver with pfuze3001 support. Latest datasheet: https://www.nxp.com/docs/en/data-sheet/PF3001.pdf Signed-off-by: Robin Gong Signed-off-by: Stefan Wahren --- drivers/regulator/Kconfig | 4 +- drivers/regulator/pfuze100-regulator.c | 78

Re: [PATCH v4 2/2] cpufreq: qcom-fw: Add support for QCOM cpufreq FW driver

2018-06-15 Thread Amit Kucheria
On Tue, Jun 12, 2018 at 2:02 PM, Taniya Das wrote: > The CPUfreq FW present in some QCOM chipsets offloads the steps necessary > for changing the frequency of CPUs. The driver implements the cpufreq > driver interface for this firmware. > > Signed-off-by: Saravana Kannan > Signed-off-by: Taniya

Re: [PATCH v2] nds32: Fix build error caused by configuration flag rename

2018-06-15 Thread James Hogan
On Fri, Jun 15, 2018 at 02:12:58PM +0800, Greentime Hu wrote: > Thank you James and Guenter. > Should I pick it in my tree? It will be ok to put in your tree. :) > > Acked-by: Greentime Hu I think your tree makes most sense for this patch, since it only touches nds32 code and it was nds32 that

Re: [PATCH 03/11] spi: Add a driver for the Freescale/NXP QuadSPI controller

2018-06-15 Thread Boris Brezillon
On Tue, 12 Jun 2018 08:51:25 + Yogesh Narayan Gaur wrote: > > I am working on lsxxx platform. With further debugging, I found that my erase > operation for second flash device is not working properly. > Need to have debugging for this in Frieder Patch. Did you find the problem? Could it

[PATCH v6 0/4] mfd/regulator/clk/input: bd71837: ROHM BD71837 PMIC driver

2018-06-15 Thread Matti Vaittinen
Patch series adding support for ROHM BD71837 PMIC. BD71837 is a programmable Power Management IC for powering single-core, dual-core, and quad-core SoC’s such as NXP-i.MX 8M. It is optimized for low BOM cost and compact solution footprint. It integrates 8 buck regulators and 7 LDO’s to provide

Re: [PATCH v4 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ FW bindings

2018-06-15 Thread Sudeep Holla
On 15/06/18 12:59, Amit Kucheria wrote: > On Thu, Jun 14, 2018 at 9:24 PM, Taniya Das wrote: > [...] >> >> Yes I do understand the intent of mapping the whole register space, but as >> per the HW specs these 3 registers would be the only ones required for now. >> I do not think this

[RFC][PATCH 5/6] serial: switch to uart_port locking helpers

2018-06-15 Thread Sergey Senozhatsky
Do not directly lock/unlock uart_port->lock, but use uart_port_lock helper macros. The patch also renames serial_core internal macros uart_port_lock() and uart_port_unlock() to uart_port_ref_lock() and to uart_port_unlock_deref() correspondingly. Signed-off-by: Sergey Senozhatsky ---

[RFC][PATCH 3/6] tty/pty: switch to tty_port helpers

2018-06-15 Thread Sergey Senozhatsky
Do not directly lock/unlock tty_port->lock, but use tty_port_lock helper macros. Signed-off-by: Sergey Senozhatsky --- drivers/tty/pty.c| 4 ++-- drivers/tty/serial/serial_core.c | 8 +++ drivers/tty/tty_port.c | 38 3 files

[RFC][PATCH 1/6] printk: move printk_safe macros to printk header

2018-06-15 Thread Sergey Senozhatsky
Make printk_safe_enter_irqsave()/etc macros available to the rest of the kernel, so we can use them in TTY and UART code. Signed-off-by: Sergey Senozhatsky --- include/linux/printk.h | 40 kernel/printk/internal.h | 37

[RFC][PATCH 2/6] tty: add tty_port locking helpers

2018-06-15 Thread Sergey Senozhatsky
TTY port spin_lock is one of the locks that can cause a printk-recursion deadlock, thus we need to lock it from printk_safe context. E.g. ioctl() tty_ioctl() spin_lock(_port->lock) printk() call_console_drivers() foo_console_write() spin_lock(_port->lock) tty_wakeup()

Re: [RFC PATCH 6/8] dts: coresight: Clean up the device tree graph bindings

2018-06-15 Thread Suzuki K Poulose
On 14/06/18 14:59, Rob Herring wrote: On Thu, Jun 14, 2018 at 2:53 AM, Suzuki K Poulose wrote: On 13/06/18 22:07, Matt Sealey wrote: -Original Message- From: Mathieu Poirier So, if the suggestion is to use an existing property "unit", I am fine with it, if people agree to it.

[PATCH] vfs: Support FALLOC_FL_NO_HIDE_STALE flag with fallocate

2018-06-15 Thread Sig Shen
FALLOC_FL_NO_HIDE_STALE flag must be set if user want to issue a discard request for block devices. But vfs_fallocate() will return with an error -EOPNOTSUPP indicating lack of support if this flag is set. fix it by allowing FALLOC_FL_NO_HIDE_STALE flag in vfs_fallocate Fixes: 25f4c41415e5

Re: [4.17 regression] Performance drop on kernel-4.17 visible on Stream, Linpack and NAS parallel benchmarks

2018-06-15 Thread Mel Gorman
On Fri, Jun 15, 2018 at 01:07:32AM +0200, Jirka Hladky wrote: > > > > In terms of the speed of migration, it may be worth checking how often the > > mm_numa_migrate_ratelimit tracepoint is triggered with bonus points for > > using > > the nr_pages to calculate how many pages get throttled from

Re: [PATCH 5/6] arm64: dts: rockchip: Add missing cooling device properties for CPUs

2018-06-15 Thread Heiko Stübner
Am Freitag, 25. Mai 2018, 07:40:05 CEST schrieb Viresh Kumar: > The cooling device properties, like "#cooling-cells" and > "dynamic-power-coefficient", should either be present for all the CPUs > of a cluster or none. If these are present only for a subset of CPUs of > a cluster then things will

Re: [PATCH v4 4/5] sched/core: Prevent race condition between cpuset and __sched_setscheduler()

2018-06-15 Thread Juri Lelli
On 15/06/18 09:01, Juri Lelli wrote: [...] > I'll try harder to find alternatives, but suggestions are welcome! :-) I wonder if something like the following might actually work. IIUC cpuset.c comment [1], callback_lock is the one to actually take if one needs to only query cpusets. [1]

[PATCH] rpmsg: core: add support to power domains for devices

2018-06-15 Thread Srinivas Kandagatla
Some of the rpmsg devices need to switch on power domains to communicate with remote processor. For example on Qualcomm DB820c platform LPASS power domain needs to switched on for any kind of audio services. This patch adds the missing power domain support in rpmsg core. Without this patch

[PATCH v2] cpufreq / CPPC: Add cpuinfo_cur_freq support for CPPC

2018-06-15 Thread George Cherian
Per Section 8.4.7.1.3 of ACPI 6.2, The platform provides performance feedback via set of performance counters. To determine the actual performance level delivered over time, OSPM may read a set of performance counters from the Reference Performance Counter Register and the Delivered Performance

[PATCH] PM / devfreq: Fix devfreq_add_device() when drivers are built as modules.

2018-06-15 Thread Enric Balletbo i Serra
When the devfreq driver and the governor driver are built as modules, the call to devfreq_add_device() fails because the governor driver is not loaded at the time the devfreq driver loads. The devfreq driver has a build dependency on the governor but also should have a runtime dependency. We need

[PATCH 2/3 v2] perf alias: Rebuild alias expression string to make it comparable

2018-06-15 Thread Thomas Richter
PMU alias definitions in sysfs files may have spaces, newlines and numbers with leading zeroes. Some alias definitions may also appear in JSON files without spaces, etc. Scan alias definitions and remove leading zeroes, spaces, newlines, etc and rebuild string to make alias->str member

[PATCH 1/3 v2] perf alias: Remove trailing newline when reading sysfs files

2018-06-15 Thread Thomas Richter
Remove a trailing newline when reading sysfs file contents such as /sys/devices/cpum_cf/events/TX_NC_TEND. This shows when verbose option -v is used. Output before: tx_nc_tend -> 'cpum_cf'/'event=0x008d '/ Output after: tx_nc_tend -> 'cpum_cf'/'event=0x8d'/ Signed-off-by: Thomas Richter

[PATCH 3/3 v2] perf stat: Remove duplicate event counting

2018-06-15 Thread Thomas Richter
Perf stat shows a mismatch in perf stat regarding counter names on s390: Run command [root@s35lp76 perf]# ./perf stat -e tx_nc_tend -v -- ~/mytesttx 1 >/tmp/111 tx_nc_tend: 1 573146 573146 tx_nc_tend: 1 573146 573146 Performance counter stats for '/root/mytesttx 1':

Re: [PATCH v2] regulator: core: Enable voltage balancing

2018-06-15 Thread Tony Lindgren
Hi, * Maciej Purski [180613 10:39]: > Call regulator_balance_voltage() instead of set_voltage_rdev() > in set_voltage_unlocked() and in enabling and disabling functions, > but only if the regulator is coupled. > > Signed-off-by: Maciej Purski > > --- > Changes in v2: > - fix compile errors >

  1   2   3   4   5   6   7   8   >