Re: [PATCH 32/50] whiteheat: switch to ->get_serial()

2018-09-14 Thread Johan Hovold
On Thu, Sep 13, 2018 at 03:40:31AM +0100, Al Viro wrote: > From: Al Viro > > ... and fix the return value - on success it used to have ioctl(2) > fill the user-supplied struct serial_struct and return -ENOTTY. > > Signed-off-by: Al Viro Reviewed-by: Johan Hovold

Re: [PATCH] kernel/hung_task.c: disable on suspend

2018-09-14 Thread Vitaly Kuznetsov
"Rafael J. Wysocki" writes: > On Thursday, September 13, 2018 6:08:51 PM CEST Vitaly Kuznetsov wrote: ... >> +static int hungtask_pm_notify(struct notifier_block *self, >> + unsigned long action, void *hcpu) >> +{ >> +switch (action) { >> +case

Re: [PATCH v8 1/2] x86/mm: add .bss..decrypted section to hold shared variables

2018-09-14 Thread Brijesh Singh
On 09/14/2018 09:12 AM, Borislav Petkov wrote: On Fri, Sep 14, 2018 at 02:17:05PM +0200, Thomas Gleixner wrote: The sme_encrypt_kernel() does not have access to pmd (after pointer fixup is applied). You can extend the sme_encrypt_kernel() to pass an additional arguments but then we start

Re: [PATCH 4.18 000/197] 4.18.8-stable review

2018-09-14 Thread Guenter Roeck
On Thu, Sep 13, 2018 at 03:29:09PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.18.8 release. > There are 197 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH v2 2/2] media: vsp1: Document max_width restriction on UDS

2018-09-14 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Friday, 14 September 2018 17:26:52 EEST Kieran Bingham wrote: > The UDS is currently restricted based on a partition size of 256 pixels. > Document the actual restrictions, but don't increase the implementation. > > The extended partition algorithm may

Re: [PATCH] perf/x86/intel/lbr: Optimize context switches for LBR

2018-09-14 Thread Liang, Kan
On 9/14/2018 10:27 AM, Andi Kleen wrote: On Fri, Sep 14, 2018 at 08:39:36AM -0400, Liang, Kan wrote: On 9/14/2018 5:22 AM, Alexey Budankov wrote: Hi Andi, On 14.09.2018 11:54, Andi Kleen wrote: In principle the LBRs need to be flushed between threads. So does current code. IMHO,

[PATCH 5/8] staging: rtl8188eu: fix comparsions to false

2018-09-14 Thread Michael Straube
Use if(!x) instead of if(x == false). Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c b/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c index

[PATCH 4/8] staging: rtl8188eu: fix comparsions to true

2018-09-14 Thread Michael Straube
Use if(x) instead of if(x == true). Signed-off-by: Michael Straube --- .../staging/rtl8188eu/core/rtw_ioctl_set.c| 26 +-- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c

[PATCH 7/8] staging: rtl8188eu: fix lines over 80 characters

2018-09-14 Thread Michael Straube
Wrap lines over 80 characters where appropriate to clear checkpatch warnings. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c

[PATCH 3/8] staging: rtl8188eu: remove whitespace

2018-09-14 Thread Michael Straube
Replace tabs with spaces or just remove spaces in declarations. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/core/rtw_ioctl_set.c| 34 +-- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c

[tip:x86/urgent] Revert "x86/mm/legacy: Populate the user page-table with user pgd's"

2018-09-14 Thread tip-bot for Joerg Roedel
Commit-ID: 61a6bd83abf2f14b2a917b6a0279c88d299267af Gitweb: https://git.kernel.org/tip/61a6bd83abf2f14b2a917b6a0279c88d299267af Author: Joerg Roedel AuthorDate: Fri, 14 Sep 2018 12:59:14 +0200 Committer: Thomas Gleixner CommitDate: Fri, 14 Sep 2018 17:08:45 +0200 Revert

Re: [PATCH 1/2] vfio: add edid api for display (vgpu) devices.

2018-09-14 Thread Alex Williamson
On Fri, 14 Sep 2018 14:25:52 +0200 Gerd Hoffmann wrote: > Hi, > > > Another possible implementation would be via a vfio region, we already > > support device specific regions via capabilities with vfio_region_info, > > so we could have an edid region which could handle both input and > >

[PATCH v2 2/2] ACPI/PPTT: Handle architecturally unknown cache types

2018-09-14 Thread Jeffrey Hugo
The type of a cache might not be specified by architectural mechanisms (ie system registers), but its type might be specified in the PPTT. In this case, we should populate the type of the cache, rather than leave it undefined. This fixes the issue where the cacheinfo driver will not populate

[PATCH v2 0/2] PPTT handle Handle architecturally unknown cache types

2018-09-14 Thread Jeffrey Hugo
The ARM Architecture Reference Manual allows for caches to be "invisible" and thus not specified in the system registers under some scenarios such as if the cache cannot be managed by set/way operations. However, such caches may be specified in the ACPI PPTT table for workload

[PATCH v2 1/2] drivers: base: cacheinfo: Do not populate sysfs for unknown cache types

2018-09-14 Thread Jeffrey Hugo
If a cache has an unknown type because neither the hardware nor the firmware told us, an entry in the sysfs tree will be made, but the type file will not be present. lscpu depends on the type file being present for every entry, and will error out without printing system information if lscpu

Re: [PATCH RFC LKMM 2/7] doc: Replace smp_cond_acquire() with smp_cond_load_acquire()

2018-09-14 Thread Will Deacon
On Wed, Aug 29, 2018 at 02:10:48PM -0700, Paul E. McKenney wrote: > From: Andrea Parri > > Amend commit 1f03e8d2919270 ("locking/barriers: Replace smp_cond_acquire() > with smp_cond_load_acquire()") by updating the documentation accordingly. > Also remove some obsolete information related to the

Re: [PATCH v8 1/2] x86/mm: add .bss..decrypted section to hold shared variables

2018-09-14 Thread Borislav Petkov
On Fri, Sep 14, 2018 at 02:17:05PM +0200, Thomas Gleixner wrote: > > The sme_encrypt_kernel() does not have access to pmd (after pointer > > fixup is applied). You can extend the sme_encrypt_kernel() to pass an > > additional arguments but then we start getting in include hell. The pmd > > is

Re: [PATCH 31/50] ti_usb_3410_5052: switch to ->[sg]et_serial()

2018-09-14 Thread Johan Hovold
On Thu, Sep 13, 2018 at 03:40:30AM +0100, Al Viro wrote: > From: Al Viro > > Signed-off-by: Al Viro Reviewed-by: Johan Hovold

Re: [PATCH 33/50] usb_wwan: switch to ->[sg]et_serial()

2018-09-14 Thread Johan Hovold
On Thu, Sep 13, 2018 at 03:40:32AM +0100, Al Viro wrote: > From: Al Viro > > Signed-off-by: Al Viro Reviewed-by: Johan Hovold

Re: [PATCH RFC LKMM 1/7] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-09-14 Thread Andrea Parri
On Thu, Sep 13, 2018 at 01:07:39PM -0400, Alan Stern wrote: > Not having received any responses to the question about usages of RCtso > locks, I have decided to post the newly updated version of the patch > description for commit c8c5779c854f ("tools/memory-model: Add extra > ordering for locks

Re: [PATCH 02/50] move compat handling of tty ioctls to tty_compat_ioctl()

2018-09-14 Thread Arnd Bergmann
On Thu, Sep 13, 2018 at 4:40 AM Al Viro wrote: > > From: Al Viro > > ioctls that are > * callable only via tty_ioctl() > * not driver-specific > * not demand data structure conversions > * either always need passing arg as is or always demand compat_ptr() > get

Re: [PATCHES] tty ioctls cleanups, compat and not only

2018-09-14 Thread Arnd Bergmann
On Fri, Sep 14, 2018 at 5:10 PM Al Viro wrote: > > On Fri, Sep 14, 2018 at 10:21:53AM +0200, Arnd Bergmann wrote: > > > This does sound very appealing, but there is a small downside: > > The difference between ".compat_ioctl = NULL" and > > ".compat_ioctl=native_ioctl" is now very subtle, and I

[PATCH] clk: mvebu: armada-37xx-tbg: Balance devm_clk_get in probe

2018-09-14 Thread Gregory CLEMENT
The parent clock is get only to have its name, and then the clock is no more used, so we can safely free it using devm_clk_put. Signed-off-by: Gregory CLEMENT --- drivers/clk/mvebu/armada-37xx-tbg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/mvebu/armada-37xx-tbg.c

Re: [RFC 00/60] Coscheduling for Linux

2018-09-14 Thread Jan H. Schönherr
On 09/14/2018 01:12 PM, Peter Zijlstra wrote: > On Fri, Sep 07, 2018 at 11:39:47PM +0200, Jan H. Schönherr wrote: >> This patch series extends CFS with support for coscheduling. The >> implementation is versatile enough to cover many different coscheduling >> use-cases, while at the same time

[PATCH net-next v4 16/20] zinc: Curve25519 x86_64 implementation

2018-09-14 Thread Jason A. Donenfeld
This implementation is the fastest available x86_64 implementation, and unlike Sandy2x, it doesn't requie use of the floating point registers at all. Instead it makes use of BMI2 and ADX, available on recent microarchitectures. The implementation was written by Armando Faz-Hernández with

[PATCH net-next v4 18/20] crypto: port ChaCha20 to Zinc

2018-09-14 Thread Jason A. Donenfeld
Now that ChaCha20 is in Zinc, we can have the crypto API code simply call into it. The crypto API expects to have a stored key per instance and independent nonces, so we follow suite and store the key and initialize the nonce independently. Signed-off-by: Jason A. Donenfeld Cc: Samuel Neves Cc:

[PATCH net-next v4 17/20] crypto: port Poly1305 to Zinc

2018-09-14 Thread Jason A. Donenfeld
Now that Poly1305 is in Zinc, we can have the crypto API code simply call into it. We have to do a little bit of book keeping here, because the crypto API receives the key in the first few calls to update. Signed-off-by: Jason A. Donenfeld Cc: Samuel Neves Cc: Andy Lutomirski Cc: Greg KH Cc:

Re: [PATCH 4.4 00/60] 4.4.156-stable review

2018-09-14 Thread Guenter Roeck
On Thu, Sep 13, 2018 at 03:30:07PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.156 release. > There are 60 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

[PATCH] bus: fsl-mc: use match_string() helper to simplify the code

2018-09-14 Thread zhong jiang
match_string() returns the index of an array for a matching string, which can be used intead of open coded implementation. Signed-off-by: zhong jiang --- drivers/bus/fsl-mc/fsl-mc-allocator.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

Re: [PATCH V2 0/6] VA to numa node information

2018-09-14 Thread Steven Sistare
On 9/14/2018 1:56 AM, Michal Hocko wrote: > On Thu 13-09-18 15:32:25, prakash.sangappa wrote: >> On 09/13/2018 01:40 AM, Michal Hocko wrote: >>> On Wed 12-09-18 13:23:58, Prakash Sangappa wrote: For analysis purpose it is useful to have numa node information corresponding mapped virtual

Re: [RFC][PATCH 06/11] asm-generic/tlb: Conditionally provide tlb_migrate_finish()

2018-09-14 Thread Will Deacon
On Thu, Sep 13, 2018 at 11:21:16AM +0200, Peter Zijlstra wrote: > Needed for ia64 -- alternatively we drop the entire hook. s/hook/architecture/ /me runs away for the weekend Will

Re: [PATCH v2 2/2] media: vsp1: Document max_width restriction on UDS

2018-09-14 Thread Sergei Shtylyov
Hello! On 09/14/2018 05:26 PM, Kieran Bingham wrote: > The UDS is currently restricted based on a partition size of 256 pixels. > Document the actual restrictions, but don't increase the implementation. > > The extended partition algorithm may later choose to utilise a larger > partition size

Re: [RFC][PATCH 04/11] asm-generic/tlb: Provide generic VIPT cache flush

2018-09-14 Thread Will Deacon
On Thu, Sep 13, 2018 at 11:21:14AM +0200, Peter Zijlstra wrote: > The one obvious thing SH and ARM want is a sensible default for > tlb_start_vma(). (also: https://lkml.org/lkml/2004/1/15/6 ) > > Avoid all VIPT architectures providing their own tlb_start_vma() > implementation and rely on

Re: [RFC][PATCH 02/11] asm-generic/tlb: Provide HAVE_MMU_GATHER_PAGE_SIZE

2018-09-14 Thread Will Deacon
On Thu, Sep 13, 2018 at 11:21:12AM +0200, Peter Zijlstra wrote: > Move the mmu_gather::page_size things into the generic code instead of > powerpc specific bits. > > Cc: Will Deacon > Cc: "Aneesh Kumar K.V" > Cc: Andrew Morton > Cc: Nick Piggin > Signed-off-by: Peter Zijlstra (Intel) > --- >

Re: [PATCH 4.18 000/197] 4.18.8-stable review

2018-09-14 Thread Guenter Roeck
On Fri, Sep 14, 2018 at 07:48:48AM -0700, Guenter Roeck wrote: > On Thu, Sep 13, 2018 at 03:29:09PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.18.8 release. > > There are 197 patches in this series, all will be posted as a response > > to this one.

[PATCH] sched: Fix a GCC compiled warning.

2018-09-14 Thread zhong jiang
Fix the following compile warning: kernel/sched/core.c: In function ‘update_rq_clock_task’: kernel/sched/core.c:139:6: warning: unused variable ‘steal’ [-Wunused-variable] s64 steal = 0, irq_delta = 0; Signed-off-by: zhong jiang --- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH] arm: common: use match_string() helper to simplify the code

2018-09-14 Thread zhong jiang
match_string() returns the index of an array for a matching string, which can be used instead of open coded implementation. Signed-off-by: zhong jiang --- arch/arm/plat-orion/common.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/arch/arm/plat-orion/common.c

Re: [PATCH v13] irqchip: Add driver for Cirrus Logic Madera codecs

2018-09-14 Thread Marc Zyngier
On Fri, 14 Sep 2018 16:28:09 +0100, Richard Fitzgerald wrote: > > The Cirrus Logic Madera codecs (Cirrus Logic CS47L35/85/90/91 and WM1840) > are highly complex devices containing up to 7 programmable DSPs and many > other internal sources of interrupts plus a number of GPIOs that can be > used

Re: [PATCH 05/50] tty_ioctl(): start taking TIOC[SG]SERIAL into separate methods

2018-09-14 Thread Johan Hovold
On Fri, Sep 14, 2018 at 04:18:54PM +0100, Al Viro wrote: > On Fri, Sep 14, 2018 at 03:22:16PM +0200, Johan Hovold wrote: > > On Thu, Sep 13, 2018 at 03:40:04AM +0100, Al Viro wrote: > > > From: Al Viro > > > > > > ->set_serial() and ->get_serial() resp., both taking tty and > > > a kernel

[PATCH net-next v4 08/20] zinc: Poly1305 ARM and ARM64 implementations

2018-09-14 Thread Jason A. Donenfeld
These NEON and non-NEON implementations come from Andy Polyakov's implementation. They are exactly the same as Andy Polyakov's original, with the following exceptions: - Entries and exits use the proper kernel convention macro. - CPU feature checking is done in C by the glue code, so that has

Re: [PATCH] sched: Fix a GCC compiled warning.

2018-09-14 Thread Miguel Ojeda
Hi Zhong, On Fri, Sep 14, 2018 at 4:49 PM, zhong jiang wrote: > Fix the following compile warning: > > kernel/sched/core.c: In function ‘update_rq_clock_task’: > kernel/sched/core.c:139:6: warning: unused variable ‘steal’ > [-Wunused-variable] > s64 steal = 0, irq_delta = 0; > Dou (and I,

Re: [PATCH] sched/core: Fix compiling warring in smp=n case

2018-09-14 Thread Miguel Ojeda
Hi, On Thu, Sep 13, 2018 at 11:55 AM, Dou Liyang wrote: > > > At 08/10/2018 10:35 AM, Dou Liyang wrote: >> >> When compiling kernel with SMP disabled, the build warns with: >> >> kernel/sched/core.c: In function ‘update_rq_clock_task’: >> kernel/sched/core.c:139:17: warning: unused variable

Re: [PATCH 26/50] mos7840: switch to ->get_serial()

2018-09-14 Thread Johan Hovold
On Thu, Sep 13, 2018 at 03:40:25AM +0100, Al Viro wrote: > From: Al Viro > > Signed-off-by: Al Viro > --- > drivers/usb/serial/mos7840.c | 40 +--- > 1 file changed, 17 insertions(+), 23 deletions(-) > > diff --git a/drivers/usb/serial/mos7840.c

Re: [RFC][PATCH 01/11] asm-generic/tlb: Provide a comment

2018-09-14 Thread Martin Schwidefsky
On Fri, 14 Sep 2018 15:02:07 +0200 Peter Zijlstra wrote: > On Fri, Sep 14, 2018 at 12:28:24PM +0200, Martin Schwidefsky wrote: > > > I spent some time to get s390 converted to the common mmu_gather code. > > There is one thing I would like to request, namely the ability to > > disable the page

Re: [PATCH v4 14/16] sched/core: uclamp: request CAP_SYS_ADMIN by default

2018-09-14 Thread Patrick Bellasi
On 14-Sep 13:10, Peter Zijlstra wrote: > On Thu, Sep 06, 2018 at 03:40:53PM +0100, Patrick Bellasi wrote: > > 1) _I think_ we don't want to depend on capable(CAP_SYS_NICE) but > >instead on capable(CAP_SYS_ADMIN) > > > >Does that make sense ? > > Neither of them really makes sense to me.

[PATCH v3 3/3] thermal: broadcom: Add Stingray thermal driver

2018-09-14 Thread Daniel Lezcano
On 09/08/2018 14:54, Srinath Mannam wrote: > From: Pramod Kumar > > Adds stingray thermal driver to monitor six > thermal zones temperature and trips at critical temperature. Hi Pramod, could you elaborate a bit more the description? As you are introducing a new driver it would be nice to give

Re: [PATCH 34/50] complete ->[sg]et_serial() switchover

2018-09-14 Thread Johan Hovold
On Thu, Sep 13, 2018 at 03:40:33AM +0100, Al Viro wrote: > From: Al Viro > > Signed-off-by: Al Viro Reviewed-by: Johan Hovold

[PATCH] drm: i2c: use match_string() helper to simplify the code

2018-09-14 Thread zhong jiang
match_string() returns the index of an array for a matching string, which can be used intead of open coded implementation. Signed-off-by: zhong jiang --- drivers/gpu/drm/i2c/ch7006_drv.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git

[PATCH v12] irqchip: Add driver for Cirrus Logic Madera codecs

2018-09-14 Thread Richard Fitzgerald
The Cirrus Logic Madera codecs (Cirrus Logic CS47L35/85/90/91 and WM1840) are highly complex devices containing up to 7 programmable DSPs and many other internal sources of interrupts plus a number of GPIOs that can be used as interrupt inputs. The large number (>150) of internal interrupt sources

Re: [PATCH ghak10 v5 1/2] audit: Add functions to log time adjustments

2018-09-14 Thread Richard Guy Briggs
On 2018-09-13 23:18, Paul Moore wrote: > On Fri, Aug 24, 2018 at 8:00 AM Ondrej Mosnacek wrote: > > This patch adds two auxiliary record types that will be used to annotate > > the adjtimex SYSCALL records with the NTP/timekeeping values that have > > been changed. > > > > Next, it adds two

Re: [PATCH] staging: rtl8188eu: remove code that is valid only for 5 GHz

2018-09-14 Thread Robert Węcławski
> On Thu, Sep 13, 2018 at 10:32:39PM +0200, Robert Węcławski wrote: > > diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c > > b/drivers/staging/rtl8188eu/core/rtw_mlme.c > > index eca06f05c0c4..b610443f2ac6 100644 > > --- a/drivers/staging/rtl8188eu/core/rtw_mlme.c > > +++

Re: [PATCH V4 00/27] C-SKY(csky) Linux Kernel Port

2018-09-14 Thread Arnd Bergmann
On Fri, Sep 14, 2018 at 6:02 PM Guo Ren wrote: > > On Fri, Sep 14, 2018 at 04:46:56PM +0200, Arnd Bergmann wrote: > > On Fri, Sep 14, 2018 at 4:37 PM Guo Ren wrote: > > > One level below that, you can of course choose to build > > a distro with only 64-bit time_t regardless of whether there > >

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

2018-09-14 Thread Jirka Hladky
Hi Mel, we have tried to revert following 2 commits: 305c1fac3225 2d4056fafa196e1ab We had to revert 10864a9e222048a862da2c21efa28929a4dfed15 as well. The performance of the kernel was better than when only 2d4056fafa196e1ab was reverted but still worse than the performance of 4.18 kernel.

Re: [PATCH v5 09/12] x86/kvm/nVMX: allow bare VMXON state migration

2018-09-14 Thread Jim Mattson
On Fri, Sep 14, 2018 at 12:49 AM, Vitaly Kuznetsov wrote: > Jim Mattson writes: > >> On Thu, Sep 13, 2018 at 10:05 AM, Vitaly Kuznetsov >> wrote: >>> It is perfectly valid for a guest to do VMXON and not do VMPTRLD. This >>> state needs to be preserved on migration. >>> >>> Signed-off-by:

Re: [PATCH 29/50] quatech2: switch to ->get_serial()

2018-09-14 Thread Johan Hovold
On Thu, Sep 13, 2018 at 03:40:28AM +0100, Al Viro wrote: > From: Al Viro > > Signed-off-by: Al Viro Reviewed-by: Johan Hovold

Re: [PATCH v5 5/7] mm, hmm: Use devm semantics for hmm_devmem_{add, remove}

2018-09-14 Thread Jerome Glisse
On Fri, Sep 14, 2018 at 03:18:38PM +0200, Christoph Hellwig wrote: > On Wed, Sep 12, 2018 at 07:22:27PM -0700, Dan Williams wrote: > > devm semantics arrange for resources to be torn down when > > device-driver-probe fails or when device-driver-release completes. > > Similar to

Re: [PATCH 42/50] remove fallback to drivers for TIOCGICOUNT

2018-09-14 Thread Johan Hovold
On Thu, Sep 13, 2018 at 03:40:41AM +0100, Al Viro wrote: > From: Al Viro > > none of them handles it anyway. > > Signed-off-by: Al Viro Reviewed-by: Johan Hovold

Re: [PATCH v4 14/16] sched/core: uclamp: request CAP_SYS_ADMIN by default

2018-09-14 Thread Peter Zijlstra
Just a quick reply because I have to run.. On Fri, Sep 14, 2018 at 03:07:32PM +0100, Patrick Bellasi wrote: > On 14-Sep 13:10, Peter Zijlstra wrote: > > I think the problem here is that the two are conflated in the very same > > interface. > > > > Would it make sense to move the available

Re: [PATCH v8 1/2] x86/mm: add .bss..decrypted section to hold shared variables

2018-09-14 Thread Tom Lendacky
On 09/14/2018 09:12 AM, Borislav Petkov wrote: > On Fri, Sep 14, 2018 at 02:17:05PM +0200, Thomas Gleixner wrote: >>> The sme_encrypt_kernel() does not have access to pmd (after pointer >>> fixup is applied). You can extend the sme_encrypt_kernel() to pass an >>> additional arguments but then we

Re: [SCHEDULER] Performance drop in 4.19 compared to 4.18 kernel

2018-09-14 Thread Jirka Hladky
Hi Peter and Srikar, > I have bounced the 5 patches to you, (one of the 6 has not been applied by > Peter) so I have skipped that. > They can also be fetched from > http://lore.kernel.org/lkml/1533276841-16341-1-git-send-email-sri...@linux.vnet.ibm.com I'm sorry for the delay, we have finally

Re: [PATCH 4.9 00/78] 4.9.127-stable review

2018-09-14 Thread Guenter Roeck
On Thu, Sep 13, 2018 at 03:30:47PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.127 release. > There are 78 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH v8 1/2] x86/mm: add .bss..decrypted section to hold shared variables

2018-09-14 Thread Thomas Gleixner
On Fri, 14 Sep 2018, Tom Lendacky wrote: > On 09/14/2018 09:12 AM, Borislav Petkov wrote: > > On Fri, Sep 14, 2018 at 02:17:05PM +0200, Thomas Gleixner wrote: > >>> The sme_encrypt_kernel() does not have access to pmd (after pointer > >>> fixup is applied). You can extend the sme_encrypt_kernel()

Re: [PATCH 4.14 000/115] 4.14.70-stable review

2018-09-14 Thread Guenter Roeck
On Thu, Sep 13, 2018 at 03:30:20PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.70 release. > There are 115 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

[PATCH 6/8] staging: rtl8188eu: add missing spaces around operators

2018-09-14 Thread Michael Straube
Add missing spaces around '|', '-', and '&' to follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH 8/8] staging: rtl8188eu: simplify function comments

2018-09-14 Thread Michael Straube
Simplify function comments to a single line. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c

[PATCH 2/8] staging: rtl8188eu: remove unnecessary parentheses

2018-09-14 Thread Michael Straube
Remove unnecessary parentheses as reported by checkpatch and from conditionals. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/core/rtw_ioctl_set.c| 50 +-- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git

[PATCH 1/8] staging: rtl8188eu: simplify calculation

2018-09-14 Thread Michael Straube
Simpliy calcualation: * 10 / 2 can be reduced to * 5 Also cleans missing spaces checkpatch issues. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v13] irqchip: Add driver for Cirrus Logic Madera codecs

2018-09-14 Thread Richard Fitzgerald
The Cirrus Logic Madera codecs (Cirrus Logic CS47L35/85/90/91 and WM1840) are highly complex devices containing up to 7 programmable DSPs and many other internal sources of interrupts plus a number of GPIOs that can be used as interrupt inputs. The large number (>150) of internal interrupt sources

Re: [PATCH v12] irqchip: Add driver for Cirrus Logic Madera codecs

2018-09-14 Thread Richard Fitzgerald
On 14/09/18 16:20, Richard Fitzgerald wrote: The Cirrus Logic Madera codecs (Cirrus Logic CS47L35/85/90/91 and WM1840) are highly complex devices containing up to 7 programmable DSPs and many other internal sources of interrupts plus a number of GPIOs that can be used as interrupt inputs. The

Re: [LKP] [tty] f26eb68a52: INFO:task_blocked_for_more_than#seconds

2018-09-14 Thread Dmitry Safonov
On Fri, 2018-09-14 at 17:01 +0800, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-4.9): Thanks, [..] > [ 245.080051] INFO: task lkp-setup-rootf:500 blocked for more than > 120 seconds. > [ 245.082850] Tainted: GW T 4.19.0-rc3-00014- >

Re: [PATCH V4 00/27] C-SKY(csky) Linux Kernel Port

2018-09-14 Thread Guo Ren
On Fri, Sep 14, 2018 at 04:46:56PM +0200, Arnd Bergmann wrote: > On Fri, Sep 14, 2018 at 4:37 PM Guo Ren wrote: > > On Wed, Sep 12, 2018 at 04:30:36PM +0200, Arnd Bergmann wrote: > > > On Wed, Sep 12, 2018 at 3:25 PM Guo Ren wrote: > > > > > > One big question for me is what to do about time_t.

[GIT PULL] arm64: fixes for -rc4

2018-09-14 Thread Will Deacon
Hi Linus, The trickle of arm64 fixes continues to come in. Nothing that's the end of the world, but we've got a fix for PCI IO port accesses, an accidental naked "asm goto" and a fix to the vmcoreinfo PT_NOTE merged this time around which we'd like to get sorted before it becomes ABI. Details in

Re: [PATCH] kernel/hung_task.c: disable on suspend

2018-09-14 Thread Oleg Nesterov
On 09/14, Vitaly Kuznetsov wrote: > > "Rafael J. Wysocki" writes: > > > On Thursday, September 13, 2018 6:08:51 PM CEST Vitaly Kuznetsov wrote: > ... > > >> +static int hungtask_pm_notify(struct notifier_block *self, > >> +unsigned long action, void *hcpu) > >> +{ > >> +

Re: [PATCH v2] sched/fair: fix 1 task per CPU

2018-09-14 Thread Vincent Guittot
On Fri, 14 Sep 2018 at 05:22, Valentin Schneider wrote: > > Hi, > > On 10/09/18 07:43, Vincent Guittot wrote: > > When CPUs have different capacity because of RT/DL tasks or > > micro-architecture or max frequency differences, there are situation where > > the imbalance is not correctly set to

Re: [PATCH v13] irqchip: Add driver for Cirrus Logic Madera codecs

2018-09-14 Thread Richard Fitzgerald
On 14/09/18 16:55, Marc Zyngier wrote: On Fri, 14 Sep 2018 16:28:09 +0100, Richard Fitzgerald wrote: The Cirrus Logic Madera codecs (Cirrus Logic CS47L35/85/90/91 and WM1840) are highly complex devices containing up to 7 programmable DSPs and many other internal sources of interrupts plus a

Re: [PATCH] i2c: aspeed: Acknowledge most interrupts early in interrupt handler

2018-09-14 Thread Jae Hyun Yoo
On 9/13/2018 8:30 PM, Guenter Roeck wrote: Commit 3e9efc3299dd ("i2c: aspeed: Handle master/slave combined irq events properly") moved interrupt acknowledgment to the end of the interrupt handler. In part this was done because the AST2500 datasheet says: I2CD10 Interrupt Status Register

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-14 Thread Jae Hyun Yoo
On 9/14/2018 6:23 AM, Guenter Roeck wrote: On 09/13/2018 10:38 PM, Cédric Le Goater wrote: That seems to suggest that none of the status bits auto-clears, and that the above code clearing intr_status should be removed entirely. Am I missing something ? You are right. I just pushed another

Re: [PATCH 30/50] ssu100: switch to ->get_serial()

2018-09-14 Thread Johan Hovold
On Thu, Sep 13, 2018 at 03:40:29AM +0100, Al Viro wrote: > From: Al Viro > > Signed-off-by: Al Viro Reviewed-by: Johan Hovold

KSM not working in 4.9 Kernel

2018-09-14 Thread Pintu Kumar
Hi All, Board: Hikey620 ARM64 Kernel: 4.9.20 I am trying to verify KSM (Kernel Same Page Merging) functionality on 4.9 Kernel using "mmap" and madvise user space test utility. But to my observation, it seems KSM is not working for me. CONFIG_KSM=y is enabled in kernel. ksm_init is also called

Re: [PATCH] mtd: rawnand: denali: fix a race condition when DMA is kicked

2018-09-14 Thread Miquel Raynal
Hello, Masahiro Yamada wrote on Thu, 13 Sep 2018 14:58:49 +0900: > I thought the read-back of the DMA_ENABLE register was unnecessary > (at least it is working on my boards), then deleted it in commit > 586a2c52909d ("mtd: nand: denali: squash denali_enable_dma() helper > into caller"). Sorry,

Re: [PATCH] perf/x86/intel/lbr: Optimize context switches for LBR

2018-09-14 Thread Andi Kleen
On Fri, Sep 14, 2018 at 08:39:36AM -0400, Liang, Kan wrote: > > > On 9/14/2018 5:22 AM, Alexey Budankov wrote: > > > > Hi Andi, > > > > On 14.09.2018 11:54, Andi Kleen wrote: > > > > > In principle the LBRs need to be flushed between threads. So does > > > > > current code. > > > > > > > >

Re: [PATCH 28/50] pl2303: switch to ->get_serial()

2018-09-14 Thread Johan Hovold
On Thu, Sep 13, 2018 at 03:40:27AM +0100, Al Viro wrote: > From: Al Viro > > Signed-off-by: Al Viro Reviewed-by: Johan Hovold

Re: [PATCH 27/50] opticon: switch to ->get_serial()

2018-09-14 Thread Johan Hovold
On Thu, Sep 13, 2018 at 03:40:26AM +0100, Al Viro wrote: > From: Al Viro > > Signed-off-by: Al Viro Reviewed-by: Johan Hovold

Re: [PATCH V4 00/27] C-SKY(csky) Linux Kernel Port

2018-09-14 Thread Guo Ren
On Wed, Sep 12, 2018 at 04:30:36PM +0200, Arnd Bergmann wrote: > On Wed, Sep 12, 2018 at 3:25 PM Guo Ren wrote: > > > > This is the 3th version patchset to add the Linux kernel port for > > C-SKY(csky). > > Thanks to everyone who provided feedback on the previous version. > > > > This patchset

Re: [PATCH v8 1/2] x86/mm: add .bss..decrypted section to hold shared variables

2018-09-14 Thread Borislav Petkov
On Fri, Sep 14, 2018 at 09:27:09AM -0500, Brijesh Singh wrote: > The above code will never get executed for the SEV case. > > See if (!sme_active()) check in the start of function. > > If we decide to go on this patch, then we have to do something like > this: > > sme_encrypt_kernel(...) > { >

Re: [PATCH v4 4/5] iio: fxas21002c: add ODR/Scale support

2018-09-14 Thread Afonso Bordado
Hi, Thanks for your help with this. > And I suspect it may be originating from your code snippet: > > #define FXAS21002C_SCALE(scale) (IIO_DEGREE_TO_RAD(62500U >> > (scale))) > > and looking at the implementation: > > include/linux/iio/iio.h > /** > * IIO_DEGREE_TO_RAD() - Convert degree to

Re: [PATCH 17/50] usb-serial: begin switching to ->[sg]et_serial()

2018-09-14 Thread Johan Hovold
On Fri, Sep 14, 2018 at 04:23:52PM +0100, Al Viro wrote: > On Fri, Sep 14, 2018 at 03:39:30PM +0200, Johan Hovold wrote: > > > + if (port->serial->type->get_serial) > > > + return port->serial->type->get_serial(tty, ss); > > > + return -ENOIOCTLCMD; > > > +} > > > + > > > +static int

Re: [RFC][PATCH 01/11] asm-generic/tlb: Provide a comment

2018-09-14 Thread Will Deacon
Hi Peter, On Thu, Sep 13, 2018 at 11:21:11AM +0200, Peter Zijlstra wrote: > Write a comment explaining some of this.. This comment is much-needed, thanks! Some comments inline. > + * The mmu_gather API consists of: > + * > + * - tlb_gather_mmu() / tlb_finish_mmu(); start and finish a

Re: [PATCH V4 00/27] C-SKY(csky) Linux Kernel Port

2018-09-14 Thread Arnd Bergmann
On Fri, Sep 14, 2018 at 4:37 PM Guo Ren wrote: > On Wed, Sep 12, 2018 at 04:30:36PM +0200, Arnd Bergmann wrote: > > On Wed, Sep 12, 2018 at 3:25 PM Guo Ren wrote: > > > > One big question for me is what to do about time_t. Deepa and I are > > in the process of finalizing the system call ABI for

Re: [PATCHES] tty ioctls cleanups, compat and not only

2018-09-14 Thread Al Viro
On Fri, Sep 14, 2018 at 10:21:53AM +0200, Arnd Bergmann wrote: > This does sound very appealing, but there is a small downside: > The difference between ".compat_ioctl = NULL" and > ".compat_ioctl=native_ioctl" is now very subtle, and I wouldn't > necessarily expect casual readers to understand

Re: [PATCH 05/50] tty_ioctl(): start taking TIOC[SG]SERIAL into separate methods

2018-09-14 Thread Al Viro
On Fri, Sep 14, 2018 at 03:22:16PM +0200, Johan Hovold wrote: > On Thu, Sep 13, 2018 at 03:40:04AM +0100, Al Viro wrote: > > From: Al Viro > > > > ->set_serial() and ->get_serial() resp., both taking tty and > > a kernel pointer to serial_struct. > > > > Signed-off-by: Al Viro > > --- > >

Re: [PATCH 17/50] usb-serial: begin switching to ->[sg]et_serial()

2018-09-14 Thread Al Viro
On Fri, Sep 14, 2018 at 03:39:30PM +0200, Johan Hovold wrote: > > + if (port->serial->type->get_serial) > > + return port->serial->type->get_serial(tty, ss); > > + return -ENOIOCTLCMD; > > +} > > + > > +static int serial_set_serial(struct tty_struct *tty, struct serial_struct > >

Re: [PATCH] arm64: lib: use C string functions with KASAN enabled.

2018-09-14 Thread Will Deacon
On Tue, Sep 11, 2018 at 04:01:28PM +0300, Andrey Ryabinin wrote: > > > On 09/10/2018 04:06 PM, Will Deacon wrote: > > On Mon, Sep 10, 2018 at 01:53:03PM +0100, Mark Rutland wrote: > >> On Mon, Sep 10, 2018 at 12:33:22PM +0100, Mark Rutland wrote: > >>> On Fri, Sep 07, 2018 at 06:48:10PM +0300,

Re: [PATCH RFC LKMM 1/7] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-09-14 Thread Alan Stern
On Fri, 14 Sep 2018, Andrea Parri wrote: > > There are several arguments both for and against this change. Let us > > refer to these enhanced ordering properties by saying that the LKMM > > would require locks to be RCtso (a bit of a misnomer, but analogous to > > RCpc and RCsc) and it would

Re: [PATCH RFC memory-model 0/7] Memory-model changes

2018-09-14 Thread Paul E. McKenney
On Wed, Aug 29, 2018 at 02:10:18PM -0700, Paul E. McKenney wrote: > Hello! > > This series contains memory-model updates, not yet ready for inclusion: Summarizing my current state for the week after next's planned for-inclusion series: ccc8b5139f65 tools/memory-model: Add litmus-test

Re: [PATCH 07/20] platform: goldfish: pipe: Replace an array of 1 with a variable

2018-09-14 Thread Roman Kiryanov
Yes, in the later change I am going to retire this variable completely. Could you please accept this patch as it? On Fri, Sep 14, 2018 at 6:30 AM Greg KH wrote: > > On Mon, Aug 27, 2018 at 11:23:02AM -0700, r...@google.com wrote: > > From: Roman Kiryanov > > > > There is no reason to have an

Re: [PATCH] staging: rtl8188eu: remove code that is valid only for 5 GHz

2018-09-14 Thread Dan Carpenter
On Fri, Sep 14, 2018 at 05:58:58PM +0200, Robert Węcławski wrote: > > On Thu, Sep 13, 2018 at 10:32:39PM +0200, Robert Węcławski wrote: > > > diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c > > > b/drivers/staging/rtl8188eu/core/rtw_mlme.c > > > index eca06f05c0c4..b610443f2ac6 100644 > >

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-14 Thread Andi Kleen
> In big picture this patchset adds perf record --threads > option that allows to create threads in following modes: > > 1) single thread mode (current) > > $ perf record ... > $ perf record --threads=1 ... > > - all maps are read/stored under process thread > > 2) mode with specific (X)

Re: [PATCH] x86/kvm/lapic: always disable MMIO interface in x2APIC mode

2018-09-14 Thread Paolo Bonzini
On 02/08/2018 17:08, Vitaly Kuznetsov wrote: > When VMX is used with flexpriority disabled (because of no support or > if disabled with module parameter) MMIO interface to lAPIC is still > available in x2APIC mode while it shouldn't be (kvm-unit-tests): > > PASS: apic_disable: Local apic enabled

Re: [PATCH v4 4/5] iio: fxas21002c: add ODR/Scale support

2018-09-14 Thread Himanshu Jha
On Fri, Sep 14, 2018 at 04:26:44PM +0100, Afonso Bordado wrote: > Hi, > > Thanks for your help with this. > > > And I suspect it may be originating from your code snippet: > > > > #define FXAS21002C_SCALE(scale) (IIO_DEGREE_TO_RAD(62500U >> > > (scale))) > > > > and looking at the

  1   2   3   4   5   6   7   8   9   10   >