Re: [PATCH] sysctl: redefine zero as a unsigned long

2019-04-05 Thread Hou Tao
Hi, Cc Andrew for patch inclusion On 2019/4/6 0:27, Matthew Wilcox wrote: > On Fri, Apr 05, 2019 at 02:52:17PM +0800, Hou Tao wrote: >> We have got KASAN splat when tried to set /proc/sys/fs/file-max: > > Matteo Croce already has a patch in-flight for this. > > Yes, I find it now:

Re: [PATCH 1/2] x86/mm/KASLR: Fix the wrong calculation of memory region initial size

2019-04-05 Thread Borislav Petkov
On Sat, Apr 06, 2019 at 09:51:19AM +0800, Baoquan He wrote: > It's KASLR happened in kernel_randomize_memory() of arch/x86/mm/kaslr.c . What is "KASLR happened in"? This doesn't make any sense. When you look at that function, there's a comment above it: /* Initialize base and padding for each

stable/linux-4.19.y boot bisection: v4.19.34 on meson-gxl-s905x-libretech-cc

2019-04-05 Thread kernelci.org bot
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This automated bisection report was sent to you on the basis * * that you may be involved with the breaking commit it has * * found. No manual investigation has been done to verify it, * * and the root cause of the

Re: [PATCH 2/2] dt-bindings: cpufreq: Document operating-points-v2-sunxi-cpu

2019-04-05 Thread Samuel Holland
On 4/5/19 9:55 AM, Maxime Ripard wrote: > Hi, > > On Fri, Apr 05, 2019 at 06:24:55AM -0400, Yangtao Li wrote: >> Allwinner Process Voltage Scaling Tables defines the voltage and >> frequency value based on the speedbin blown in the efuse combination. >> The sunxi-cpufreq-nvmem driver reads the

Re: [rcu:dev.2019.04.04a 35/54] ERROR: "kfd_processes_srcu" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!

2019-04-05 Thread Paul E. McKenney
On Sat, Apr 06, 2019 at 10:17:05AM +0800, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > dev.2019.04.04a > head: 6f1d86fa5cd6dc95118310607a6bc6f3c6e3092a > commit: 07366215c9b454bb6ee5648e18ee91a5c4fd0ea6 [35/54] drivers/gpu/drm/amd:

[PATCH -next] staging: rtlwifi: base: Remove set but not used variables

2019-04-05 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/staging/rtlwifi/base.c: In function 'rtl_tx_agg_stop': drivers/staging/rtlwifi/base.c:1733:23: warning: variable 'tid_data' set but not used [-Wunused-but-set-variable] drivers/staging/rtlwifi/base.c: In function 'rtl_check_beacon_key':

[PATCH -next] staging: rtl8192e: Remove set but not used variable 'VenderID'

2019-04-05 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/staging/rtl8192e/rtl8192e/rtl_pci.c: In function 'rtl92e_check_adapter': drivers/staging/rtl8192e/rtl8192e/rtl_pci.c:36:6: warning: variable 'VenderID' set but not used [-Wunused-but-set-variable] u16 VenderID; ^ It's never used and

[PATCH -next] staging: rtlwifi: rtl8822be: Remove set but not used variable 'curtxbw_40mhz'

2019-04-05 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/staging/rtlwifi/rtl8822be/hw.c: In function 'rtl8822be_update_hal_rate_mask': drivers/staging/rtlwifi/rtl8822be/hw.c:2144:5: warning: variable 'curtxbw_40mhz' set but not used [-Wunused-but-set-variable] It's never used and can be removed.

[PATCH -next] staging: comedi: dyna_pci10xx: remove set but not used variables 'chan' and range'

2019-04-05 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/staging/comedi/drivers/dyna_pci10xx.c: In function 'dyna_pci10xx_insn_write_ao': drivers/staging/comedi/drivers/dyna_pci10xx.c:109:21: warning: variable 'range' set but not used [-Wunused-but-set-variable] unsigned int chan, range;

Hello

2019-04-05 Thread Mr.Ahmed Owain
Good Day, Please accept my apologies for writing you a surprise letter.I am Mr.Ahmed Owain, account Manager with an investment bank here in Burkina Faso.I have a very important business I want to discuss with you.There is a draft account opened in my firm by a long-time client of our bank.I have

Re: [PATCH 1/2] x86/mm/KASLR: Fix the wrong calculation of memory region initial size

2019-04-05 Thread Baoquan He
On 04/05/19 at 07:22pm, Thomas Gleixner wrote: > On Fri, 5 Apr 2019, Borislav Petkov wrote: > > On Thu, Apr 04, 2019 at 10:03:13AM +0800, Baoquan He wrote: > > > In memory region KASLR, __PHYSICAL_MASK_SHIFT is taken to calculate > > > > What is "memory region KASLR"? > > > > > the initial size

Re: [PATCH 1/2] x86/mm/KASLR: Fix the wrong calculation of memory region initial size

2019-04-05 Thread Baoquan He
On 04/05/19 at 06:58pm, Borislav Petkov wrote: > On Thu, Apr 04, 2019 at 10:03:13AM +0800, Baoquan He wrote: > > In memory region KASLR, __PHYSICAL_MASK_SHIFT is taken to calculate > > What is "memory region KASLR"? It's KASLR happened in kernel_randomize_memory() of arch/x86/mm/kaslr.c . In

Re: [PATCH v3 0/3] Add restrictions for kexec/kdump jumping between 5-level and 4-level kernel

2019-04-05 Thread Baoquan He
On 03/12/19 at 06:30pm, Baoquan He wrote: > This is v3 post. > > The original v1 post can be found here: > http://lkml.kernel.org/r/20180829141624.13985-1-...@redhat.com > > Later a v1 RESEND version: > http://lkml.kernel.org/r/20190125022817.29506-1-...@redhat.com > > V2 post is here: >

Re: [PATCH v3 1/3] x86/boot: Add xloadflags bits for 5-level kernel checking

2019-04-05 Thread Baoquan He
On 04/05/19 at 10:23pm, Thomas Gleixner wrote: > On Tue, 12 Mar 2019, Baoquan He wrote: > > > Add two bits XLF_5LEVEL and XLF_5LEVEL_ENABLED for 5-level kernel. > > Bit XLF_5LEVEL indicates if 5-level related code is contained > > in this kernel. > > Bit XLF_5LEVEL_ENABLED indicates if

Re: [GIT PULL] VFIO fixes for v5.1-rc4

2019-04-05 Thread pr-tracker-bot
The pull request you sent on Fri, 5 Apr 2019 08:46:48 -0600: > git://github.com/awilliam/linux-vfio.git tags/vfio-v5.1-rc4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/3e28fb0fcb69dbedfe254939143198b46d83bfa1 Thank you! -- Deet-doot-dot, I am a bot.

Re: [PATCH v3 2/3] x86/kexec/64: Error out if try to jump to old 4-level kernel from 5-level kernel

2019-04-05 Thread Baoquan He
On 04/05/19 at 10:38pm, Thomas Gleixner wrote: > On Tue, 12 Mar 2019, Baoquan He wrote: > > > In relocate_kernel() CR4.LA57 flag is set before kexec jumping if > > the kernel has 5-level paging enabled. Then in boot/compressed/head_64.S, > > it will check if the booting kernel is in 4-level or

Re: [RFC][PATCH 15/16] sched: Trivial forced-newidle balancer

2019-04-05 Thread Aubrey Li
On Thu, Apr 4, 2019 at 4:31 PM Aubrey Li wrote: > > On Fri, Feb 22, 2019 at 12:42 AM Peter Zijlstra wrote: > > > > On Thu, Feb 21, 2019 at 04:19:46PM +, Valentin Schneider wrote: > > > Hi, > > > > > > On 18/02/2019 16:56, Peter Zijlstra wrote: > > > [...] > > > > +static bool

mmotm 2019-04-05-18-28 uploaded

2019-04-05 Thread akpm
The mm-of-the-moment snapshot 2019-04-05-18-28 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

Re: Adding plain accesses and detecting data races in the LKMM

2019-04-05 Thread Andrea Parri
> > I'd have: > > > > *x = 1; /* A */ > > smp_mb__before_atomic(); > > r0 = xchg_relaxed(x, 2); /* B (read or write part) */ > > > > => (A ->barrier B) > > Perhaps so. It wasn't clear initially how these should be treated, so > I just ignored them. For example, what should

Re: [PATCH 3/3] perf/x86/intel: force resched when TFA sysctl is modified

2019-04-05 Thread Stephane Eranian
On Fri, Apr 5, 2019 at 1:26 PM Peter Zijlstra wrote: > > On Fri, Apr 05, 2019 at 10:00:03AM -0700, Stephane Eranian wrote: > > > > > +static void update_tfa_sched(void *ignored) > > > > +{ > > > > + struct cpu_hw_events *cpuc = this_cpu_ptr(_hw_events); > > > > + struct pmu *pmu =

Thoughts on simple scanner approach for free page hinting

2019-04-05 Thread Alexander Duyck
So I am starting this thread as a spot to collect my thoughts on the current guest free page hinting design as well as point out a few possible things we could do to improve upon it. 1. The current design isn't likely going to scale well to multiple VCPUs. The issue specifically is that the zone

Re: [GIT PULL] arm64 fixes for -rc4

2019-04-05 Thread pr-tracker-bot
The pull request you sent on Fri, 5 Apr 2019 18:17:21 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/arm64-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/2f9e10acfa1243a7d0ad323873f4a193144a25c3 Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] KVM fixes for Linux 5.1-rc4

2019-04-05 Thread pr-tracker-bot
The pull request you sent on Sat, 6 Apr 2019 00:45:47 +0200: > https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/bc5725f97408ce78e61735858a113f514738ba3b Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] tracing/syscalls: Remove args i and n from syscall_get_arguments()

2019-04-05 Thread pr-tracker-bot
The pull request you sent on Fri, 5 Apr 2019 10:18:32 -0400: > git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git > trace-5.1-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/970b766cfd3f3cb7275bf51144b1678c547882fc Thank you! --

Re: [PATCH-tip v2 00/12] locking/rwsem: Rwsem rearchitecture part 2

2019-04-05 Thread Linus Torvalds
On Fri, Apr 5, 2019 at 9:22 AM Waiman Long wrote: > > v2: > - Move the negative reader count checking patch (patch 12->10) > forward to before the merge owner to count patch as suggested by > Linus & expand the comment. All looks good to me now. I didn't apply and _test_ any of the

Re: [PATCH] iio: accel: add missing sensor for some 2-in-1 based ultrabooks

2019-04-05 Thread Luís Ferreira
Hi, > Basically we need to come up with a convention to (optionally) indicate > the sensors location with a udev attribute set by: > /lib/udev/hwdb.d/60-sensor.hwdb So should we start adding `ACCEL_LOCATION=display` and `ACCEL_LOCATION=keyboard` attributes to that file and patch iio-sensor-proxy

Re: [greybus-dev] [PATCH] Staging: greybus: Fix spinlock_t definition without comment

2019-04-05 Thread Alex Elder
On 4/5/19 3:53 PM, Dan Carpenter wrote: > On Fri, Apr 05, 2019 at 03:00:46PM -0500, Madhumitha Prabakaran > wrote: >> Fix spinlock_t definition without comment. >> >> Signed-off-by: Madhumitha Prabakaran Madhumitha, the reason one would want a comment associated with a lock field in a structure

[PATCH 0/2] KVM: x86: nVMX bugs

2019-04-05 Thread Paolo Bonzini
These patches fix issues with the nested VMX MSR bitmap. I have already sent them to Linus. Paolo Marc Orr (2): KVM: x86: nVMX: close leak of L0's x2APIC MSRs (CVE-2019-3887) KVM: x86: nVMX: fix x2APIC VTPR read intercept arch/x86/kvm/vmx/nested.c | 74

[PATCH 1/2] KVM: x86: nVMX: close leak of L0's x2APIC MSRs (CVE-2019-3887)

2019-04-05 Thread Paolo Bonzini
From: Marc Orr The nested_vmx_prepare_msr_bitmap() function doesn't directly guard the x2APIC MSR intercepts with the "virtualize x2APIC mode" MSR. As a result, we discovered the potential for a buggy or malicious L1 to get access to L0's x2APIC MSRs, via an L2, as follows. 1. L1 executes

[PATCH 2/2] KVM: x86: nVMX: fix x2APIC VTPR read intercept

2019-04-05 Thread Paolo Bonzini
From: Marc Orr Referring to the "VIRTUALIZING MSR-BASED APIC ACCESSES" chapter of the SDM, when "virtualize x2APIC mode" is 1 and "APIC-register virtualization" is 0, a RDMSR of 808H should return the VTPR from the virtual APIC page. However, for nested, KVM currently fails to disable the read

[GIT PULL] KVM fixes for Linux 5.1-rc4

2019-04-05 Thread Paolo Bonzini
Linus, The following changes since commit 79a3aaa7b82e3106be97842dedfd8429248896e6: Linux 5.1-rc3 (2019-03-31 14:39:29 -0700) are available in the git repository at: https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes up to

[PATCH 2/2] power_supply: wilco_ec: Add charging config driver for Wilco EC

2019-04-05 Thread Nick Crews
Add control of the charging algorithm used on Wilco devices. See Documentation/ABI/testing/sysfs-class-power-wilco for the userspace interface and other info. Signed-off-by: Nick Crews --- .../ABI/testing/sysfs-class-power-wilco | 30 +++ drivers/platform/chrome/wilco_ec/Kconfig |

[PATCH 1/2] power_supply: Add more charge types and CHARGE_CONTROL_* properties

2019-04-05 Thread Nick Crews
Add "Standard", "Adaptive", and "Custom" modes to the charge_type property, to expand the existing "Trickle" and "Fast" modes. In addition, add POWER_SUPPLY_PROP_CHARGE_CONTROL_START_THRESHOLD and POWER_SUPPLY_PROP_CHARGE_CONTROL_END_THRESHOLD properties, to expand the existing CHARGE_CONTROL_*

Re: [PATCH] PCI/IOV: update num_VFs earlier

2019-04-05 Thread Bjorn Helgaas
On Fri, Mar 29, 2019 at 09:00:58AM +0100, Pierre Crégut wrote: > Ensure that iov->num_VFs is set before a netlink message is sent > when the number of VFs is changed. Only the path for num_VFs > 0 > is affected. The path for num_VFs = 0 is already correct. > > Monitoring programs can relie on

Re: [PATCH v3 2/2] driver: clocksource: Add nxp system counter timer driver support

2019-04-05 Thread Thomas Gleixner
On Wed, 3 Apr 2019, Jacky Bai wrote: > From: Bai Ping > > The system counter (sys_ctr) is a programmable system counter > which provides a shared time base to the Cortex A15, A7, A53 etc cores. > It is intended for use in applications where the counter is always > powered on and supports

Re: [PATCH] PCI: Fix issue with "pci=disable_acs_redir" parameter being ignored

2019-04-05 Thread Logan Gunthorpe
On 2019-04-05 3:39 p.m., Bjorn Helgaas wrote: >> -static const char *disable_acs_redir_param; >> +static char disable_acs_redir_param[COMMAND_LINE_SIZE]; > > I certainly acknowledge the problem, but I'm a little hesitant to add > a static buffer of 256-4096 bytes (2048 on x86, arm64, powerpc,

Re: [patch V2 17/29] x86/exceptions: Disconnect IST index and stack order

2019-04-05 Thread Thomas Gleixner
On Fri, 5 Apr 2019, Josh Poimboeuf wrote: > On Fri, Apr 05, 2019 at 05:07:15PM +0200, Thomas Gleixner wrote: > > +/* > > + * The exception stack ordering in [cea_]exception_stacks > > + */ > > +enum exception_stack_ordering { > > + ISTACK_DF, > > + ISTACK_NMI, > > + ISTACK_DB, > > +

Re: [PATCH 1/3] x86/microcode/intel: Refactor Intel microcode blob loading

2019-04-05 Thread Thomas Gleixner
On Fri, 5 Apr 2019, Borislav Petkov wrote: > From: Jann Horn > > Change generic_load_microcode() to use the iov_iter API instead of a > clumsy open-coded version which has to pay attention to __user data > or kernel data, depending on the loading method. This allows to avoid > explicit casting

[no subject]

2019-04-05 Thread Marilyn Johnson
Hello, I want to set up a social project in town to help the less privileged and physically challenged. I will give you details about this project and the reason behind it upon your response.

Re: [patch V2 20/29] x86/dumpstack/64: Speedup in_exception_stack()

2019-04-05 Thread Thomas Gleixner
On Fri, 5 Apr 2019, Josh Poimboeuf wrote: > On Fri, Apr 05, 2019 at 05:07:18PM +0200, Thomas Gleixner wrote: > > The current implementation of in_exception_stack() iterates over the > > exception stacks array. Most of the time this is an useless exercise, but > > even for the actual use cases

Re: [patch V2 17/29] x86/exceptions: Disconnect IST index and stack order

2019-04-05 Thread Josh Poimboeuf
On Fri, Apr 05, 2019 at 05:07:15PM +0200, Thomas Gleixner wrote: > +/* > + * The exception stack ordering in [cea_]exception_stacks > + */ > +enum exception_stack_ordering { > + ISTACK_DF, > + ISTACK_NMI, > + ISTACK_DB, > + ISTACK_MCE, > + N_EXCEPTION_STACKS > +}; While

get_mm_cmdline and userspace (Perl) changing argv0

2019-04-05 Thread Jakub Jankowski
Starting with 4.18 we noticed changing own commandline in Perl by setting $0 leads to (a bit) surprising results. As long as we're setting $0 to something longer than the initial argv0, everything works (almost) as expected: reading from /proc/$$/cmdline yields what we set $0 to, followed by

Re: [patch V2 20/29] x86/dumpstack/64: Speedup in_exception_stack()

2019-04-05 Thread Josh Poimboeuf
On Fri, Apr 05, 2019 at 05:07:18PM +0200, Thomas Gleixner wrote: > The current implementation of in_exception_stack() iterates over the > exception stacks array. Most of the time this is an useless exercise, but > even for the actual use cases (perf and ftrace) it takes at least 2 > iterations to

Re: [PATCH 2/3] x86/microcode: Fix the ancient deprecated microcode loading method

2019-04-05 Thread Thomas Gleixner
On Fri, 5 Apr 2019, Borislav Petkov wrote: > From: Borislav Petkov > > The commit in Fixes: added the new define UCODE_NEW to denote that an That reads odd. What's wrong with: Commit 2613f36ed965 added or A recent commit added mm? > update should happen only when newer microcode

Re: [PATCH 3/3] x86/microcode: Deprecate MICROCODE_OLD_INTERFACE

2019-04-05 Thread Thomas Gleixner
On Fri, 5 Apr 2019, Borislav Petkov wrote: > From: Borislav Petkov > > This is the ancient loading interface which requires special tools to be > used. The bigger problem with it is that it is as inadequate for proper > loading of microcode as the late microcode loading interface is because >

Re: [PATCH V2 2/2] trace,x86: Add nmi to the irq_vectors class

2019-04-05 Thread Thomas Gleixner
On Mon, 1 Apr 2019, Daniel Bristot de Oliveira wrote: > Currently, the irq_vector class of tracepoints does not include the NMI > entry. The NMI was in the first set of tracepoints for IRQs, but it was > dropped off because of the logic of switching IDT when enabling trace[1]. > However, as the

[PATCH 1/4] kernel-doc: Revert "scripts/kernel-doc: Processing -nofunc for functions only"

2019-04-05 Thread Sean Christopherson
Now that Docbook has been deprecated in favor of Sphinx, the -nofunction option in kernel-doc is defunct, e.g. Sphinx doesn't currently support it. Furthermore, "functions only" behavior was used by Docproc to avoid duplicating exported symbols, which is now handled by -export and -internal. The

[PATCH 2/4] kernel-doc: Rename -nofunction option to -nosymbol

2019-04-05 Thread Sean Christopherson
...now that it applies to all symbol types. Do the rename before Sphinx starts using the existing option. Signed-off-by: Sean Christopherson --- scripts/kernel-doc | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/kernel-doc b/scripts/kernel-doc index

[PATCH 3/4] kernel-doc: Rename -function to -symbol

2019-04-05 Thread Sean Christopherson
The -function option applies to all symbol types, not just functions. Rename it and update its help text and comments to reflect reality. Signed-off-by: Sean Christopherson --- Documentation/sphinx/kerneldoc.py | 4 ++-- scripts/kernel-doc| 8 2 files changed, 6

Re: [PATCH 1/1] rtc: ds3232: get SRAM access using NVMEM Framework

2019-04-05 Thread Alexandre Belloni
Hi, On 05/04/2019 11:14:35+, Han Nandor wrote: > DS3232 RTC has 236 bytes of persistent memory. > > Add RTC SRAM read and write access using > the NVMEM Framework. > > Signed-off-by: Nandor Han > --- > > Description > --- > Provides DS3232 RTC SRAM access using NVMEM framework. >

Re: [PATCH 1/2] platform/chrome: Add CrOS USB PD logging driver

2019-04-05 Thread Enric Balletbo Serra
Missatge de Guenter Roeck del dia dv., 5 d’abr. 2019 a les 23:38: > > On Fri, Apr 5, 2019 at 2:09 PM Enric Balletbo Serra > wrote: > > > > Hi Guenter, > > > > Missatge de Guenter Roeck del dia dv., 5 d’abr. > > 2019 a les 21:59: > > > > > > Hi Enric, > > > > > > On Wed, Apr 3, 2019 at 6:54 AM

Re: [PATCH 1/3] platform/chrome: wilco_ec: Standardize mailbox interface

2019-04-05 Thread Nick Crews
> > Now I'm confused, isn't this the same patch I picked this morning from > you and is already applied in chrome-platform for-next? > Sorry, I didn't see that it was already applied in for-next. Just ignore this patch and assume that the next two in this series are based off the current state of

Re: [PATCH] watchdog: alim7101: Mark expected switch fall-through

2019-04-05 Thread Gustavo A. R. Silva
On 4/5/19 3:55 PM, Guenter Roeck wrote: > On Fri, Apr 05, 2019 at 01:04:27PM -0500, Gustavo A. R. Silva wrote: >> Hi all, >> >> Friendly ping: >> >> Who can take this? > > I added it to my watchdog-next branch. Usually Wim will pick it up from there. > Awesome. :) Thanks, Guenter. --

Re: [PATCH] PCI: Fix issue with "pci=disable_acs_redir" parameter being ignored

2019-04-05 Thread Bjorn Helgaas
On Mon, Apr 01, 2019 at 01:33:02PM -0600, Logan Gunthorpe wrote: > In most cases, kmalloc will not be available early in boot when > pci_setup() is called. Thus, the kstrdup call that was added to fix the > __initdata bug with the disable_acs_redir parameter usually returns > NULL. Thus the

Re: [PATCH 1/2] platform/chrome: Add CrOS USB PD logging driver

2019-04-05 Thread Guenter Roeck
On Fri, Apr 5, 2019 at 2:09 PM Enric Balletbo Serra wrote: > > Hi Guenter, > > Missatge de Guenter Roeck del dia dv., 5 d’abr. > 2019 a les 21:59: > > > > Hi Enric, > > > > On Wed, Apr 3, 2019 at 6:54 AM Enric Balletbo i Serra > > wrote: > > > > > > From: Guenter Roeck > > > > > > The CrOS USB

[Patch (resend) 2/5] cifs: smbd: Return EINTR when interrupted

2019-04-05 Thread Long Li
From: Long Li When packets are waiting for outbound I/O and interrupted, return the proper error code to user process. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c index

[Patch (resend) 1/5] cifs: smbd: Don't destroy transport on RDMA disconnect

2019-04-05 Thread Long Li
From: Long Li Now upper layer is handling the transport shutdown and reconnect, remove the code that handling transport shutdown on RDMA disconnect. Signed-off-by: Long Li --- fs/cifs/cifs_debug.c | 8 ++-- fs/cifs/smbdirect.c | 120 +++

[Patch (resend) 3/5] cifs: smbd: Indicate to retry on transport sending failure

2019-04-05 Thread Long Li
From: Long Li Failure to send a packet doesn't mean it's a permanent failure, it can't be returned to user process. This I/O should be retried or failed based on server packet response and transport health. This logic is handled by the upper layer. Give this decision to upper layer.

[Patch (resend) 4/5] cifs: smbd: Retry on memory registration failure

2019-04-05 Thread Long Li
From: Long Li Memory registration failure doesn't mean this I/O has failed, it means the transport is hitting I/O error or needs reconnect. This error is not from the server. Indicate this error to upper layer, and let upper layer decide how to reconnect and proceed with this I/O.

[Patch (resend) 5/5] cifs: Call MID callback before destroying transport

2019-04-05 Thread Long Li
From: Long Li When transport is being destroyed, it's possible that some processes may hold memory registrations that need to be deregistred. Call them first so nobody is using transport resources, and it can be destroyed. Signed-off-by: Long Li --- fs/cifs/connect.c | 36

Re: [PATCH 1/3] platform/chrome: wilco_ec: Standardize mailbox interface

2019-04-05 Thread Enric Balletbo Serra
Hi Nick, Missatge de Nick Crews del dia dv., 5 d’abr. 2019 a les 22:09: > > The current API for the wilco EC mailbox interface is bad. > > It assumes that most messages sent to the EC follow a similar structure, > with a command byte in MBOX[0], followed by a junk byte, followed by > actual

Re: [PATCH v3] RISC-V: Fix Maximum Physical Memory 2GiB option for 64bit systems

2019-04-05 Thread Palmer Dabbelt
On Thu, 04 Apr 2019 23:01:11 PDT (-0700), a...@brainfault.org wrote: On Fri, Apr 5, 2019 at 11:24 AM Christoph Hellwig wrote: On Fri, Apr 05, 2019 at 05:49:34AM +, Anup Patel wrote: > The Maximum Physical Memory 2GiB option for 64bit systems is currently > broken because kernel hangs at

Re: [PATCH V2 1/2] trace,x86: Add external_interrupts to the irq_vectors class

2019-04-05 Thread Thomas Gleixner
On Mon, 1 Apr 2019, Daniel Bristot de Oliveira wrote: > Currently, the irq_vectors is showing the entry and exit events for > the interrupts of the architecture, but not for external interrupts. Those are covered by the irq tracepoints. Is there a really good reason why we need both? Thanks,

Re: [PATCH] x86/reboot: Use efi reboot for Acer TravelMate X514-51T

2019-04-05 Thread Thomas Gleixner
On Mon, 1 Apr 2019, Jian-Hong Pan wrote: > +/* > + * Some machines require the "reboot=e" commandline options > + */ > +static int __init set_efi_reboot(const struct dmi_system_id *d) > +{ > + if (reboot_type != BOOT_EFI) { > + reboot_type = BOOT_EFI; So if EFI is disabled in the

Re: [PATCH] PCI: Add function 1 DMA alias quirk for Marvell 9170 SATA controller

2019-04-05 Thread Bjorn Helgaas
On Fri, Apr 05, 2019 at 04:20:47PM +0100, Andre Przywara wrote: > There is a Marvell 88SE9170 PCIe SATA controller I found on a board > here. Some quick testing with the ARM SMMU enabled reveals that it > suffers from the same requester ID mixup problems as the other Marvell > chips listed

Re: [PATCH 1/2] platform/chrome: Add CrOS USB PD logging driver

2019-04-05 Thread Enric Balletbo Serra
Hi Guenter, Missatge de Guenter Roeck del dia dv., 5 d’abr. 2019 a les 21:59: > > Hi Enric, > > On Wed, Apr 3, 2019 at 6:54 AM Enric Balletbo i Serra > wrote: > > > > From: Guenter Roeck > > > > The CrOS USB PD logging feature is logically separate functionality of > > the charge manager,

Re: [patch V2 19/29] x86/exceptions: Split debug IST stack

2019-04-05 Thread Thomas Gleixner
On Fri, 5 Apr 2019, Sean Christopherson wrote: > On Fri, Apr 05, 2019 at 05:07:17PM +0200, Thomas Gleixner wrote: > > + /* > > +* Note, this covers the guard page between DB and DB1 as well to > > +* avoid two checks. But by all means @addr can never point into > > +* the guard page.

Re: [patch V2 09/29] x86/exceptions: Add structs for exception stacks

2019-04-05 Thread Thomas Gleixner
On Fri, 5 Apr 2019, Sean Christopherson wrote: > On Fri, Apr 05, 2019 at 05:07:07PM +0200, Thomas Gleixner wrote: > > +#ifdef CONFIG_X86_64 > > + > > +/* Macro to enforce the same ordering and stack sizes */ > > +#define ESTACKS_MEMBERS(guardsize) \ > > + char

Re: [PATCH] watchdog: alim7101: Mark expected switch fall-through

2019-04-05 Thread Guenter Roeck
On Fri, Apr 05, 2019 at 01:04:27PM -0500, Gustavo A. R. Silva wrote: > Hi all, > > Friendly ping: > > Who can take this? I added it to my watchdog-next branch. Usually Wim will pick it up from there. Guenter > > Thanks > -- > Gustavo > > On 3/20/19 7:15 PM, Gustavo A. R. Silva wrote: > > >

[tip:irq/core] genirq/timings: Add array suffix computation code

2019-04-05 Thread tip-bot for Daniel Lezcano
Commit-ID: bbba0e7c5cdadb47a91edea1d5cd0caadbbb016f Gitweb: https://git.kernel.org/tip/bbba0e7c5cdadb47a91edea1d5cd0caadbbb016f Author: Daniel Lezcano AuthorDate: Thu, 28 Mar 2019 16:13:36 +0100 Committer: Thomas Gleixner CommitDate: Fri, 5 Apr 2019 22:51:29 +0200 genirq/timings: Add

Re: [patch V2 19/29] x86/exceptions: Split debug IST stack

2019-04-05 Thread Sean Christopherson
On Fri, Apr 05, 2019 at 05:07:17PM +0200, Thomas Gleixner wrote: > The debug IST stack is actually two separate debug stacks to handle #DB > recursion. This is required because the CPU starts always at top of stack > on exception entry, which means on #DB recursion the second #DB would > overwrite

[tip:irq/core] genirq/timings: Remove variance computation code

2019-04-05 Thread tip-bot for Daniel Lezcano
Commit-ID: bfe83844987a52dc1f71f757b60523811502dc93 Gitweb: https://git.kernel.org/tip/bfe83844987a52dc1f71f757b60523811502dc93 Author: Daniel Lezcano AuthorDate: Thu, 28 Mar 2019 16:13:35 +0100 Committer: Thomas Gleixner CommitDate: Fri, 5 Apr 2019 22:51:29 +0200 genirq/timings:

Re: linux-next: Tree for Apr 3 (objtool)

2019-04-05 Thread Randy Dunlap
On 4/4/19 1:51 PM, Randy Dunlap wrote: > On 4/4/19 10:16 AM, Josh Poimboeuf wrote: >> On Wed, Apr 03, 2019 at 03:29:17PM -0700, Randy Dunlap wrote: >>> On 4/3/19 1:53 PM, Josh Poimboeuf wrote: On Wed, Apr 03, 2019 at 08:02:43AM -0700, Randy Dunlap wrote: > On 4/3/19 1:24 AM, Stephen

Re: [PATCH] Staging: greybus: Fix spinlock_t definition without comment

2019-04-05 Thread Dan Carpenter
On Fri, Apr 05, 2019 at 03:00:46PM -0500, Madhumitha Prabakaran wrote: > Fix spinlock_t definition without comment. > > Signed-off-by: Madhumitha Prabakaran > --- > drivers/staging/greybus/connection.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [patch V2 09/29] x86/exceptions: Add structs for exception stacks

2019-04-05 Thread Sean Christopherson
On Fri, Apr 05, 2019 at 01:48:38PM -0700, Sean Christopherson wrote: > On Fri, Apr 05, 2019 at 05:07:07PM +0200, Thomas Gleixner wrote: > > At the moment everything assumes a full linear mapping of the various > > exception stacks. Adding guard pages to the cpu entry area mapping of the > >

Re: [patch V2 09/29] x86/exceptions: Add structs for exception stacks

2019-04-05 Thread Sean Christopherson
On Fri, Apr 05, 2019 at 05:07:07PM +0200, Thomas Gleixner wrote: > At the moment everything assumes a full linear mapping of the various > exception stacks. Adding guard pages to the cpu entry area mapping of the > exception stacks will break that assumption. > > As a preparatory step convert

[PATCH v2 3/3] ASoC: rt5677: fall back to DT prop names on error

2019-04-05 Thread Fletcher Woodruff
The rt5677 driver uses ACPI-style property names to read from the device API. However, these do not match the property names in _DSD used on the Chromebook Pixel 2015, which are closer to the Device Tree style. Unify the two functions for reading from the device API so that they try ACPI-style

[PATCH v2 2/3] ASoC: rt5677: handle concurrent interrupts

2019-04-05 Thread Fletcher Woodruff
From: Ben Zhang The rt5677 driver writes to the IRQ control register within the IRQ handler in order to flip the polarity of the interrupts that have been signalled. If an interrupt fires in the interval between the regmap_read and the regmap_write, it will not trigger a new call to rt5677_irq.

[PATCH v2 1/3] ASoC: rt5677: allow multiple interrupt sources

2019-04-05 Thread Fletcher Woodruff
From: Ben Zhang This patch allows headphone plug detect and mic present detect to be enabled at the same time. This patch implements an irq_chip with irq_domain directly instead of using regmap_irq, so that interrupt source line polarities can be flipped to support irq sharing. Signed-off-by:

[PATCH v2 0/3] Fix jack detection for Chromebook Pixel

2019-04-05 Thread Fletcher Woodruff
Headphone/mic jack detection doesn't work on the Chromebook Pixel 2015. This patch changes the irq implementation to support polarity flipping and fixes the configuration code so that correct GPIO pins are read from ACPI. With this series, plugging and unplugging the headphone jack switches

Re: [PATCH 1/4] clk: meson: mpll: add init callback and regs

2019-04-05 Thread Stephen Boyd
Quoting Michael Turquette (2019-04-05 08:43:40) > Hi Jerome, > > On Fri, Mar 29, 2019 at 3:58 PM Jerome Brunet wrote: > > > > On Fri, 2019-03-29 at 15:14 -0700, Stephen Boyd wrote: > > > > > We actively discourage using init callbacks. Can you do this some > > > > > other > > > > > way? > > > >

Re: [PATCH v3 2/3] x86/kexec/64: Error out if try to jump to old 4-level kernel from 5-level kernel

2019-04-05 Thread Thomas Gleixner
On Tue, 12 Mar 2019, Baoquan He wrote: > In relocate_kernel() CR4.LA57 flag is set before kexec jumping if > the kernel has 5-level paging enabled. Then in boot/compressed/head_64.S, > it will check if the booting kernel is in 4-level or 5-level paging > mode, and handle accordingly. However, the

Re: [PATCH v3 1/7] clkdev: Hold clocks_mutex while iterating clocks list

2019-04-05 Thread Stephen Boyd
Quoting Vaittinen, Matti (2019-04-04 23:51:43) > On Thu, 2019-04-04 at 14:53 -0700, Stephen Boyd wrote: > > We recently introduced a change to support devm clk lookups. That > > change > > introduced a code-path that used clk_find() without holding the > > 'clocks_mutex'. Unfortunately, clk_find()

[PATCH v3 2/3] platform/x86: intel_pmc_core: Allow to dump debug registers on S0ix failure

2019-04-05 Thread Rajat Jain
Add a module parameter which when enabled, will check on resume, if the last S0ix attempt was successful. If not, the driver would warn and provide helpful debug information (which gets latched during the failed suspend attempt) to debug the S0ix failure. This information is very useful to debug

[PATCH v3 1/3] platform/x86: intel_pmc_core: Convert to a platform_driver

2019-04-05 Thread Rajat Jain
Convert the intel_pmc_core driver to a platform driver, and attach using the ACPI enumeration method (via the ACPI device "INT33A1"). Signed-off-by: Rajat Jain --- v3: Don't instantiate the platform_device. Use ACPI enumeration. v2: Rephrase the commit log. No code changes.

[PATCH v3 3/3] platform/x86: intel_pmc_core: Instantiate pmc_core device on legacy platforms

2019-04-05 Thread Rajat Jain
Add code to instantiate the pmc_core platform device and thus attach to the driver, if the ACPI device for the same ("INT33A1") is not present in a system where it should be. This was discussed here: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1966991.html Signed-off-by: Rajat

Re: [PATCH v13 2/3] x86,/proc/pid/status: Add AVX-512 usage elapsed time

2019-04-05 Thread Jann Horn
On Fri, Apr 5, 2019 at 10:02 PM Aubrey Li wrote: > AVX-512 components use could cause core turbo frequency drop. So > it's useful to expose AVX-512 usage elapsed time as a heuristic hint > for the user space job scheduler to cluster the AVX-512 using tasks > together. > > Tensorflow example: > $

Re: [PATCH 3/3] perf/x86/intel: force resched when TFA sysctl is modified

2019-04-05 Thread Peter Zijlstra
On Fri, Apr 05, 2019 at 10:00:03AM -0700, Stephane Eranian wrote: > > > +static void update_tfa_sched(void *ignored) > > > +{ > > > + struct cpu_hw_events *cpuc = this_cpu_ptr(_hw_events); > > > + struct pmu *pmu = x86_get_pmu(); > > > + struct perf_cpu_context *cpuctx = > > >

Re: [PATCH v3 1/3] x86/boot: Add xloadflags bits for 5-level kernel checking

2019-04-05 Thread Thomas Gleixner
On Tue, 12 Mar 2019, Baoquan He wrote: > Add two bits XLF_5LEVEL and XLF_5LEVEL_ENABLED for 5-level kernel. > Bit XLF_5LEVEL indicates if 5-level related code is contained > in this kernel. > Bit XLF_5LEVEL_ENABLED indicates if CONFIG_X86_5LEVEL=y is set. > > They are being used in later patch

[tip:x86/mm] x86/mm/KASLR: Use only one PUD entry for real mode trampoline

2019-04-05 Thread tip-bot for Baoquan He
Commit-ID: 0925dda5962e9b55e4d38a72eba93858f24bac41 Gitweb: https://git.kernel.org/tip/0925dda5962e9b55e4d38a72eba93858f24bac41 Author: Baoquan He AuthorDate: Fri, 8 Mar 2019 10:56:15 +0800 Committer: Thomas Gleixner CommitDate: Fri, 5 Apr 2019 22:13:00 +0200 x86/mm/KASLR: Use only

[tip:x86/mm] x86/mm/KASLR: Reduce randomization granularity for 5-level paging to 1GB

2019-04-05 Thread tip-bot for Baoquan He
Commit-ID: b569c18434987163a05f05a12cdf6a9975c55ff3 Gitweb: https://git.kernel.org/tip/b569c18434987163a05f05a12cdf6a9975c55ff3 Author: Baoquan He AuthorDate: Fri, 8 Mar 2019 10:56:16 +0800 Committer: Thomas Gleixner CommitDate: Fri, 5 Apr 2019 22:13:52 +0200 x86/mm/KASLR: Reduce

Re: [PATCH v5 2/3] platform/chrome: Add Wilco EC keyboard backlight LEDs support

2019-04-05 Thread Guenter Roeck
On Thu, Apr 04, 2019 at 11:10:08AM -0600, Nick Crews wrote: > The EC is in charge of controlling the keyboard backlight on > the Wilco platform. We expose a standard LED class device at > /sys/class/leds/platform::kbd_backlight. This driver is modeled > after the standard Chrome OS keyboard

[PATCH] Staging: greybus: Cleanup in header file control.h

2019-04-05 Thread Madhumitha Prabakaran
Fix a blank line after function/struct/union/enum declarations. Also, convert to_gb_control() macro into an inline function in order to maintain Linux kernel coding style based on which the inline function is preferable over the macro. Signed-off-by: Madhumitha Prabakaran ---

Re: [PATCH v3 05/25] leds: core: Add support for composing LED class device names

2019-04-05 Thread Jacek Anaszewski
Hi Dan, Thank you for the review. On 4/5/19 1:45 PM, Dan Murphy wrote: Jacek On 3/31/19 12:54 PM, Jacek Anaszewski wrote: Add generic support for composing LED class device name basing on fwnode_handle data. The function composes device name according to either a new pattern or the legacy

[PATCH 2/3] platform/chrome: wilco_ec: Add USB PowerShare Policy control

2019-04-05 Thread Nick Crews
USB PowerShare is a policy which affects charging via the special USB PowerShare port (marked with a small lightning bolt or battery icon) when in low power states: - In S0, the port will always provide power. - In S0ix, if power_share is enabled, then power will be supplied to the port when on

[PATCH 1/3] platform/chrome: wilco_ec: Standardize mailbox interface

2019-04-05 Thread Nick Crews
The current API for the wilco EC mailbox interface is bad. It assumes that most messages sent to the EC follow a similar structure, with a command byte in MBOX[0], followed by a junk byte, followed by actual data. This doesn't happen in several cases, such as setting the RTC time, using the raw

[PATCH 3/3] platform/chrome: wilco_ec: Add Boot on AC support

2019-04-05 Thread Nick Crews
Boot on AC is a policy which makes the device boot from S5 when AC power is connected. This is useful for users who want to run their device headless or with a dock. Signed-off-by: Nick Crews --- drivers/platform/chrome/wilco_ec/sysfs.c | 52 1 file changed, 52

Re: [PATCH v5 3/3] platform/chrome: Standardize Chrome OS keyboard backlight name

2019-04-05 Thread Jacek Anaszewski
Hi all, On 4/5/19 10:42 AM, Enric Balletbo i Serra wrote: Hi, On 5/4/19 0:42, Guenter Roeck wrote: On Thu, Apr 4, 2019 at 3:05 PM Pavel Machek wrote: On Thu 2019-04-04 14:48:35, Dmitry Torokhov wrote: On Thu, Apr 4, 2019 at 1:42 PM Pavel Machek wrote: Hi! And what to do if internal

[PATCH] Staging: greybus: Fix spinlock_t definition without comment

2019-04-05 Thread Madhumitha Prabakaran
Fix spinlock_t definition without comment. Signed-off-by: Madhumitha Prabakaran --- drivers/staging/greybus/connection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/connection.h b/drivers/staging/greybus/connection.h index

Re: [PATCH 1/2] platform/chrome: Add CrOS USB PD logging driver

2019-04-05 Thread Guenter Roeck
Hi Enric, On Wed, Apr 3, 2019 at 6:54 AM Enric Balletbo i Serra wrote: > > From: Guenter Roeck > > The CrOS USB PD logging feature is logically separate functionality of > the charge manager, hence has its own driver. The driver logs the event > data for the USB PD charger available in some

  1   2   3   4   5   6   >