Re: [PATCH V3] scsi: storvsc: Allow only one remove lun work item to be issued per lun

2017-11-03 Thread Martin K. Petersen
Cathy, > When running multipath on a VM if all available paths go down the > driver can schedule large amounts of storvsc_remove_lun work items to > the same lun. In response to the failing paths typically storvsc > responds by taking host->scan_mutex and issuing a TUR per lun. If > there has

Re: [PATCH v5 2/6] perf record: Get the first sample time and last sample time

2017-11-03 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 24, 2017 at 09:16:59AM +0200, Jiri Olsa escreveu: > On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: > > SNIP > > > > hum, could you still unset the sample if there's no time given? > > > and keep the speed in this case.. > > > > > > jirka > > > > > > > Hi Jiri, > > > >

RE: [PATCH v12 00/16] Introduce support for Dell SMBIOS over WMI

2017-11-03 Thread Mario.Limonciello
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Thursday, November 2, 2017 7:50 PM > To: Limonciello, Mario > Cc: Andy Shevchenko ; LKML ker...@vger.kernel.org>; platform-driver-...@vger.kernel.org; Andy Lutomirski > ; quasi...@google.com;

Re: Manual unbind of ATA devices causes use-after-free

2017-11-03 Thread Taras Kondratiuk
Quoting Tejun Heo (2017-11-03 06:19:37) > Hello, > > On Wed, Nov 01, 2017 at 04:24:47PM -0700, Taras Kondratiuk wrote: > > Manual unbind/remove unconditionally invokes devres_release_all which > > calls ata_host_release() and frees ata_host/ata_port memory while it is > > still being referenced

Re: [PATCH 00/13] mpt3sas driver NVMe support:

2017-11-03 Thread Martin K. Petersen
Suganath, > Ventura Series controller are Tri-mode. The controller and firmware > are capable of supporting NVMe devices and PCIe switches to be > connected with the controller. This patch set adds driver level > support for NVMe devices and PCIe switches. Applied to 4.15/scsi-queue. Thanks!

[PATCH 1/2] can: peak_usb: remove some 'struct timeval' users

2017-11-03 Thread Arnd Bergmann
We want to remove 'struct timeval' and related interfaces since this is generally not safe for use beyond 2038. For peak_usb, we can simplify the internal interface by using ktime_t directly. This should not change any behavior, but it avoids a few conversions. Signed-off-by: Arnd Bergmann ---

[PATCH 2/2] can: peak_usb: use ktime_t consistently

2017-11-03 Thread Arnd Bergmann
This changes the calculation of the timestamps to use ktime_t instead of struct timeval as the base. This gets rid of one of the few remaining users of the deprecated ktime_to_timeval() and timeval_to_ktime() helpers. The code should also get more efficient, as we have now removed all of the

Re: [PATCH v3] lib/dlock-list: Scale dlock_lists_empty()

2017-11-03 Thread Waiman Long
On 11/03/2017 10:22 AM, Davidlohr Bueso wrote: > Instead of the current O(N) implementation, at the cost > of adding an atomic counter, we can convert the call to > an atomic_read(). The counter only serves for accounting > empty to non-empty transitions, and vice versa; therefore > only modified

[PATCH] misc: mic: scif_nodeqp: use swap macro in scif_node_connect

2017-11-03 Thread Gustavo A. R. Silva
Make use of the swap macro and remove unnecessary variable tmppayload. This makes the code easier to read and maintain. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/misc/mic/scif/scif_nodeqp.c | 5 + 1 file changed, 1 insertion(+), 4

Re: [PATCH 2/6] shmem: rename functions that are memfd-related

2017-11-03 Thread Marc-André Lureau
Hi - Original Message - > On 11/03/2017 09:02 AM, Marc-André Lureau wrote: > > Hi > > > > - Original Message - > >> On 10/31/2017 11:40 AM, Marc-André Lureau wrote: > >>> Those functions are called for memfd files, backed by shmem or > >>> hugetlb (the next patches will handle

Re: [RFT][PATCH v2 2/2] PM / QoS: Fix device resume latency framework

2017-11-03 Thread Reinette Chatre
Hi Rafael, I started to test this but found myself triggering one of the warnings: On 11/3/2017 4:50 AM, Rafael J. Wysocki wrote: > --- linux-pm.orig/include/linux/pm_qos.h > +++ linux-pm/include/linux/pm_qos.h > @@ -28,16 +28,19 @@ enum pm_qos_flags_status { > PM_QOS_FLAGS_ALL, > }; >

Re: [PATCH] staging: comedi: usbduxfast: Improve unlocking of a mutex in usbduxfast_ai_insn_read()

2017-11-03 Thread SF Markus Elfring
>> @@ -838,6 +834,10 @@ static int usbduxfast_ai_insn_read(struct comedi_device >> *dev, >>   mutex_unlock(>mut); >>     return insn->n; > > Minor niggle: You could also remove that call to mutex_unlock() by replacing > the above three lines with: > > ret = insn->n; > > which will

Re: [PATCHv2 1/1] locking/qspinlock/x86: Avoid test-and-set when PV_DEDICATED is set

2017-11-03 Thread Eduardo Valentin
On Fri, Nov 03, 2017 at 11:09:53AM +0100, Paolo Bonzini wrote: > On 02/11/2017 19:43, Eduardo Valentin wrote: > > On Thu, Nov 02, 2017 at 07:24:16PM +0100, Paolo Bonzini wrote: > >> On 02/11/2017 19:08, Eduardo Valentin wrote: > >>> On Thu, Nov 02, 2017 at 06:56:46PM +0100, Paolo Bonzini wrote: >

[PATCH] scsi: lpfc_els: use swap macro in lpfc_plogi_confirm_nport

2017-11-03 Thread Gustavo A. R. Silva
Make use of the swap macro and remove unnecessary variable keep_nlp_flag. This makes the code easier to read and maintain. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/scsi/lpfc/lpfc_els.c | 6 ++ 1 file changed, 2 insertions(+), 4

[GIT PULL] SCSI fixes for 4.14-rc7

2017-11-03 Thread James Bottomley
One minor fix in the error leg of the qla2xxx driver (it oopses the system if we get an error trying to start the internal kernel thread).  The fix is minor because the problem isn't often encountered in the field (although it can be induced by inserting the module in a low memory environment).

[PATCH 0/2] ARM: dts: exynos: Updates for Odroid HDMI audio

2017-11-03 Thread Sylwester Nawrocki
These patches are intended for v4.16-rc1 as they depend on the HDMI codec patch which is going to be merged in coming merge window. Sylwester Nawrocki (2): ARM: dts: exynos: Switch to dedicated Odroid-XU3 sound card binding ARM: dts: exynos: Add sound support for Odroid XU4

[PATCH 1/2] ARM: dts: exynos: Switch to dedicated Odroid-XU3 sound card binding

2017-11-03 Thread Sylwester Nawrocki
The new sound card DT binding is used for Odroid XU3 in order to properly support the HDMI audio path. Clocks configuration is changed so the I2S controller is now the bit and the frame clock master with EPLL as the root clock source. Signed-off-by: Sylwester Nawrocki ---

[PATCH 2/2] ARM: dts: exynos: Add sound support for Odroid XU4

2017-11-03 Thread Sylwester Nawrocki
This patch adds support for Odroid XU4 audio. The main difference comparing to Odroid XU3 is a missing on-board audio CODEC, only HDMI output is supported on Odroid XU4. External CODEC could be optionally connected to the I2S port connector. Signed-off-by: Sylwester Nawrocki ---

Re: [PATCH 1/2] bpf: add a bpf_override_function helper

2017-11-03 Thread Daniel Borkmann
On 11/03/2017 03:31 PM, Josef Bacik wrote: On Fri, Nov 03, 2017 at 12:12:13AM +0100, Daniel Borkmann wrote: Hi Josef, one more issue I just noticed, see comment below: On 11/02/2017 03:37 PM, Josef Bacik wrote: [...] diff --git a/include/linux/filter.h b/include/linux/filter.h index

[PATCH] mISDN: l1oip_core: replace _manual_ swap with swap macro

2017-11-03 Thread Gustavo A. R. Silva
Make use of the swap macro and remove unnecessary variables skb and cnt. This makes the code easier to read and maintain. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/isdn/mISDN/l1oip_core.c | 10 ++ 1 file changed, 2 insertions(+),

Re: [PATCH v2] USB: add SPDX identifiers to all remaining files in drivers/usb/

2017-11-03 Thread Johan Hovold
On Fri, Nov 03, 2017 at 11:28:30AM +0100, Greg Kroah-Hartman wrote: > It's good to have SPDX identifiers in all files to make it easier to > audit the kernel tree for correct licenses. > > Update the drivers/usb/ and include/linux/usb* files with the correct > SPDX license identifier based on the

[PATCH v2 0/2] ARM: dts: exynos: Updates for Odroid HDMI audio

2017-11-03 Thread Sylwester Nawrocki
These patches are intended for v4.16-rc1 as they depend on the HDMI codec patch which is going to be merged in coming merge window. Sylwester Nawrocki (2): ARM: dts: exynos: Switch to dedicated Odroid-XU3 sound card binding ARM: dts: exynos: Add sound support for Odroid XU4

[PATCH v2 1/2] ARM: dts: exynos: Switch to dedicated Odroid-XU3 sound card binding

2017-11-03 Thread Sylwester Nawrocki
The new sound card DT binding is used for Odroid XU3 in order to properly support the HDMI audio path. Clocks configuration is changed so the I2S controller is now the bit and the frame clock master with EPLL as the root clock source. Signed-off-by: Sylwester Nawrocki ---

[PATCH v2 2/2] ARM: dts: exynos: Add sound support for Odroid XU4

2017-11-03 Thread Sylwester Nawrocki
This patch adds support for Odroid XU4 audio. The main difference comparing to Odroid XU3 is a missing on-board audio CODEC, only HDMI output is supported on Odroid XU4. External CODEC could be optionally connected to the I2S port connector. Signed-off-by: Sylwester Nawrocki ---

Re: [PATCH 1/4] x86/kvm/cpuid: Fix CPUID function for word 6 (80000001_ECX)

2017-11-03 Thread Borislav Petkov
On Wed, Nov 01, 2017 at 11:19:27AM -0500, Janakarajan Natarajan wrote: > The function for CPUID 8001 ECX is set to 0xc001. Set it to > 0x8001. > > Signed-off-by: Janakarajan Natarajan > --- > arch/x86/kvm/cpuid.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

[PATCH v3] xen: support priv-mapping in an HVM tools domain

2017-11-03 Thread Paul Durrant
If the domain has XENFEAT_auto_translated_physmap then use of the PV- specific HYPERVISOR_mmu_update hypercall is clearly incorrect. This patch adds checks in xen_remap_domain_gfn_array() and xen_unmap_domain_gfn_array() which call through to the approprate xlate_mmu function if the feature is

[PATCH] crypto: chcr - Replace _manual_ swap with swap macro

2017-11-03 Thread Gustavo A. R. Silva
Make use of the swap macro and remove unnecessary variable temp. This makes the code easier to read and maintain. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/crypto/chelsio/chcr_algo.c | 5 + 1 file changed, 1 insertion(+), 4

Re: [PATCH 00/35] perf annotate: Use generic annotation line

2017-11-03 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 02, 2017 at 01:16:32PM +0100, Jiri Olsa escreveu: > On Wed, Oct 11, 2017 at 05:01:23PM +0200, Jiri Olsa wrote: > > hi, > > I'm working on script profiling support and came up > > with some generic annotation code changes, which IMO > > make the code simpler and more generic. > > > >

RE: [PATCH v3] xen: support priv-mapping in an HVM tools domain

2017-11-03 Thread Paul Durrant
> -Original Message- > From: Paul Durrant [mailto:paul.durr...@citrix.com] > Sent: 03 November 2017 16:58 > To: x...@kernel.org; xen-de...@lists.xenproject.org; linux- > ker...@vger.kernel.org > Cc: Paul Durrant ; Boris Ostrovsky > ; Juergen Gross ; Thomas > Gleixner ; Ingo Molnar ; H.

Re: [PATCH v2 0/2] pinctrl: Allow indicating loss of state across suspend/resume

2017-11-03 Thread Florian Fainelli
On 11/03/2017 09:11 AM, Tony Lindgren wrote: > * Charles Keepax [171103 10:38]: >> On Thu, Nov 02, 2017 at 04:15:49PM -0700, Florian Fainelli wrote: >>> Hello Linus, >>> >>> It's me again, so I have been thinking about the problem originally >>> reported in: [PATCH fixes v3] pinctrl: Really force

Re: [PATCH v2 0/2] pinctrl: Allow indicating loss of state across suspend/resume

2017-11-03 Thread Florian Fainelli
On 11/03/2017 03:37 AM, Charles Keepax wrote: > On Thu, Nov 02, 2017 at 04:15:49PM -0700, Florian Fainelli wrote: >> Hello Linus, >> >> It's me again, so I have been thinking about the problem originally >> reported in: [PATCH fixes v3] pinctrl: Really force states during >> suspend/resume >> >>

Re: [PATCH 4/6] hugetlbfs: implement memfd sealing

2017-11-03 Thread David Herrmann
Hi On Tue, Oct 31, 2017 at 7:40 PM, Marc-André Lureau wrote: > Implements memfd sealing, similar to shmem: > - WRITE: deny fallocate(PUNCH_HOLE). mmap() write is denied in > memfd_add_seals(). write() doesn't exist for hugetlbfs. > - SHRINK: added similar check as shmem_setattr() > - GROW:

[PATCH v4] xen: support priv-mapping in an HVM tools domain

2017-11-03 Thread Paul Durrant
If the domain has XENFEAT_auto_translated_physmap then use of the PV- specific HYPERVISOR_mmu_update hypercall is clearly incorrect. This patch adds checks in xen_remap_domain_gfn_array() and xen_unmap_domain_gfn_array() which call through to the approprate xlate_mmu function if the feature is

Re: [PATCH 0/2] ARM: dts: exynos: Updates for Odroid HDMI audio

2017-11-03 Thread Sylwester Nawrocki
On 11/03/2017 05:43 PM, Sylwester Nawrocki wrote: > These patches are intended for v4.16-rc1 as they depend on the > HDMI codec patch which is going to be merged in coming merge > window. > > Sylwester Nawrocki (2): > ARM: dts: exynos: Switch to dedicated Odroid-XU3 sound card binding > ARM:

[PATCH v16 00/13] support "task_isolation" mode

2017-11-03 Thread Chris Metcalf
Here, finally, is a new spin of the task isolation work (v16), with changes based on the issues that were raised at last year's Linux Plumbers Conference and in the email discussion that followed. This version of the patch series cleans up a number of areas that were a little dodgy in the

[PATCH v16 01/13] vmstat: add quiet_vmstat_sync function

2017-11-03 Thread Chris Metcalf
In commit f01f17d3705b ("mm, vmstat: make quiet_vmstat lighter") the quiet_vmstat() function became asynchronous, in the sense that the vmstat work was still scheduled to run on the core when the function returned. For task isolation, we need a synchronous version of the function that guarantees

[PATCH v16 02/13] vmstat: add vmstat_idle function

2017-11-03 Thread Chris Metcalf
This function checks to see if a vmstat worker is not running, and the vmstat diffs don't require an update. The function is called from the task-isolation code to see if we need to actually do some work to quiet vmstat. Acked-by: Christoph Lameter Signed-off-by: Chris Metcalf ---

[PATCH v16 04/13] Add try_get_task_struct_on_cpu() to scheduler for task isolation

2017-11-03 Thread Chris Metcalf
Task isolation wants to be able to verify that a remote core is running an isolated task to determine if it should generate a diagnostic, and also possibly interrupt it. This API returns a pointer to the task_struct of the task that was running on the specified core at the moment of the request;

[PATCH v16 11/13] arch/tile: enable task isolation functionality

2017-11-03 Thread Chris Metcalf
We add the necessary call to task_isolation_start() in the prepare_exit_to_usermode() routine. We already unconditionally call into this routine if TIF_NOHZ is set, since that's where we do the user_enter() call. We add calls to task_isolation_interrupt() in places where exceptions may not

[PATCH v16 13/13] task_isolation self test

2017-11-03 Thread Chris Metcalf
This code tests various aspects of task_isolation. Signed-off-by: Chris Metcalf --- tools/testing/selftests/Makefile | 1 + tools/testing/selftests/task_isolation/Makefile| 6 + tools/testing/selftests/task_isolation/config | 1 +

[PATCH v16 12/13] arm, tile: turn off timer tick for oneshot_stopped state

2017-11-03 Thread Chris Metcalf
When the schedule tick is disabled in tick_nohz_stop_sched_tick(), we call hrtimer_cancel(), which eventually calls down into __remove_hrtimer() and thus into hrtimer_force_reprogram(). That function's call to tick_program_event() detects that we are trying to set the expiration to KTIME_MAX and

[PATCH v16 03/13] Revert "sched/core: Drop the unused try_get_task_struct() helper function"

2017-11-03 Thread Chris Metcalf
This reverts commit f11cc0760b8397e0d230122606421b6a96e9f869. We do need this function for try_get_task_struct_on_cpu(). Signed-off-by: Chris Metcalf --- include/linux/sched/task.h | 2 ++ kernel/exit.c | 13 + 2 files changed, 15 insertions(+) diff --git

[PATCH v16 06/13] task_isolation: userspace hard isolation from kernel

2017-11-03 Thread Chris Metcalf
The existing nohz_full mode is designed as a "soft" isolation mode that makes tradeoffs to minimize userspace interruptions while still attempting to avoid overheads in the kernel entry/exit path, to provide 100% kernel semantics, etc. However, some applications require a "hard" commitment from

[PATCH v16 05/13] Add try_stop_full_tick() API for NO_HZ_FULL

2017-11-03 Thread Chris Metcalf
This API checks to see if the scheduler tick can be stopped, and if so, stops it and returns 0; otherwise it returns an error. This is intended for use with task isolation, where we will want to be able to stop the tick synchronously when returning to userspace. Signed-off-by: Chris Metcalf ---

[PATCH v16 08/13] arch/x86: enable task isolation functionality

2017-11-03 Thread Chris Metcalf
In prepare_exit_to_usermode(), call task_isolation_start() for TIF_TASK_ISOLATION tasks. In syscall_trace_enter_phase1(), add the necessary support for reporting syscalls for task-isolation processes. Add task_isolation_remote() calls for the kernel exception types that do not result in signals,

Re: staging: comedi: usbduxfast: Improve unlocking of a mutex in usbduxfast_ai_insn_read()

2017-11-03 Thread SF Markus Elfring
> FYI, you are responding to someone who is on my blacklist I am curious if this communication setting will ever be adjusted. > and I never accept patches from. The history shows that our collaboration style changed over time. I got a few update suggestions integrated (also by you) because

RE: [PATCH 0/3] dts: Add the property of IB and OB

2017-11-03 Thread Leo Li
> -Original Message- > From: Bao Xiaowei [mailto:xiaowei@nxp.com] > Sent: Friday, November 03, 2017 4:31 AM > To: robh...@kernel.org; mark.rutl...@arm.com; catalin.mari...@arm.com; > will.dea...@arm.com; bhelg...@google.com; shawn...@kernel.org; > Madalin-cristian Bucur ; Sumit Garg

[PATCH v16 09/13] arch/arm64: enable task isolation functionality

2017-11-03 Thread Chris Metcalf
In do_notify_resume(), call task_isolation_start() for TIF_TASK_ISOLATION tasks. Add _TIF_TASK_ISOLATION to _TIF_WORK_MASK, and define a local NOTIFY_RESUME_LOOP_FLAGS to check in the loop, since we don't clear _TIF_TASK_ISOLATION in the loop. We tweak syscall_trace_enter() slightly to carry the

[PATCH v16 10/13] arch/arm: enable task isolation functionality

2017-11-03 Thread Chris Metcalf
From: Francis Giraldeau This patch is a port of the task isolation functionality to the arm 32-bit architecture. The task isolation needs an additional thread flag that requires to change the entry assembly code to accept a bitfield larger than one byte. The constants _TIF_SYSCALL_WORK and

[PATCH v16 07/13] Add task isolation hooks to arch-independent code

2017-11-03 Thread Chris Metcalf
This commit adds task isolation hooks as follows: - __handle_domain_irq() generates an isolation warning for the local task - irq_work_queue_on() generates an isolation warning for the remote task being interrupted for irq_work - generic_exec_single() generates a remote isolation warning

Business

2017-11-03 Thread Ms.Lev
I have a rather important business proposal for you, I shall provide you with details upon your response to my email.

[PATCH 05/15] scripts/mod: disable LTO for empty.c

2017-11-03 Thread Sami Tolvanen
With CONFIG_CLANG_LTO, clang generates LLVM IR instead of ELF object files. As empty.o is used for probing target properties, disable LTO for it to produce an object file instead. Signed-off-by: Sami Tolvanen --- scripts/mod/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 01/15] kbuild: add ld-name macro and support for GNU gold

2017-11-03 Thread Sami Tolvanen
GNU gold may require different flags than GNU ld. Add a macro for detecting the linker and conditionally add gold specific flags from LDFLAGS_GOLD. Signed-off-by: Sami Tolvanen --- Makefile | 5 + scripts/Kbuild.include | 4 2 files changed, 9 insertions(+) diff --git

Re: [PATCH 4/6] hugetlbfs: implement memfd sealing

2017-11-03 Thread Mike Kravetz
On 11/03/2017 10:03 AM, David Herrmann wrote: > Hi > > On Tue, Oct 31, 2017 at 7:40 PM, Marc-André Lureau > wrote: >> Implements memfd sealing, similar to shmem: >> - WRITE: deny fallocate(PUNCH_HOLE). mmap() write is denied in >> memfd_add_seals(). write() doesn't exist for hugetlbfs. >> -

[PATCH 13/15] arm64: add a workaround for GNU gold with ARM64_MODULE_PLTS

2017-11-03 Thread Sami Tolvanen
CONFIG_CLANG_LTO depends on GNU gold and due to a known bug, the linker crashes when ARM64_MODULE_PLTS is enabled: https://sourceware.org/bugzilla/show_bug.cgi?id=14592 To work around the problem, this change: 1) Enables ARM64_MODULE_PLTS only when it's needed, i.e. when

[PATCH 14/15] arm64: crypto: disable LTO for aes-ce-cipher.c

2017-11-03 Thread Sami Tolvanen
CONFIG_CLANG_LTO requires the use of clang's integrated assembler, which doesn't understand the inline assembly in aes-ce-cipher.c. Disable LTO for the file to work around the issue. Signed-off-by: Sami Tolvanen --- arch/arm64/crypto/Makefile | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH v5 2/3] KVM: nVMX: Validate the IA32_BNDCFGS on nested VM-entry

2017-11-03 Thread Krish Sadhukhan
On 11/02/2017 11:40 PM, Wanpeng Li wrote: 2017-11-03 14:31 GMT+08:00 Krish Sadhukhan : On 11/02/2017 05:50 PM, Wanpeng Li wrote: From: Wanpeng Li According to the SDM, if the "load IA32_BNDCFGS" VM-entry controls is 1, the following checks are performed on the field for the IA32_BNDCFGS

[PATCH 12/15] arm64: add a workaround for GNU gold with ARM64_MODULE_PLTS

2017-11-03 Thread Sami Tolvanen
CONFIG_CLANG_LTO depends on GNU gold and due to a known bug, the linker crashes when ARM64_MODULE_PLTS is enabled: https://sourceware.org/bugzilla/show_bug.cgi?id=14592 To work around the problem, this change: 1) Enables ARM64_MODULE_PLTS only when it's needed, i.e. when

[PATCH 13/15] arm64: fix mrs_s/msr_s macros for clang LTO

2017-11-03 Thread Sami Tolvanen
Clang's integrated assembler does not allow assembly macros defined in one inline asm block using the .macro directive to be used across separate asm blocks. LLVM developers consider this a feature and not a bug, recommending code refactoring: https://bugs.llvm.org/show_bug.cgi?id=19749 As

[PATCH 15/15] arm64: select ARCH_SUPPORTS_CLANG_LTO

2017-11-03 Thread Sami Tolvanen
Allow CONFIG_CLANG_LTO to be enabled for the architecture. Signed-off-by: Sami Tolvanen --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index a301fdc90319..6ae31f0c58ee 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@

[PATCH 10/15] arm64: disable ARM64_ERRATUM_843419 for clang LTO

2017-11-03 Thread Sami Tolvanen
CONFIG_CLANG_LTO depends on GNU gold, which can generate ADR_PREL_PG_HI21 relocations even with --fix-cortex-a53-843419. Since ARM64_ERRATUM_843419 disables kernel support for these relocations, disable the erratum when LTO is used. Signed-off-by: Sami Tolvanen --- arch/arm64/Kconfig | 1 + 1

[PATCH 11/15] arm64: fix mrs_s/msr_s macros for clang LTO

2017-11-03 Thread Sami Tolvanen
Clang's integrated assembler does not allow assembly macros defined in one inline asm block using the .macro directive to be used across separate asm blocks. LLVM developers consider this a feature and not a bug, recommending code refactoring: https://bugs.llvm.org/show_bug.cgi?id=19749 As

[PATCH 11/15] arm64: explicitly pass --no-fix-cortex-a53-843419 to GNU gold

2017-11-03 Thread Sami Tolvanen
Some versions of GNU gold are known to produce broken code with --fix-cortex-a53-843419 as explained in this bug: https://sourceware.org/bugzilla/show_bug.cgi?id=21491 If ARM64_ERRATUM_843419 is disabled and we're using GNU gold, pass --no-fix-cortex-a53-843419 to the linker to ensure the

[PATCH 12/15] arm64: explicitly pass --no-fix-cortex-a53-843419 to GNU gold

2017-11-03 Thread Sami Tolvanen
Some versions of GNU gold are known to produce broken code with --fix-cortex-a53-843419 as explained in this bug: https://sourceware.org/bugzilla/show_bug.cgi?id=21491 If ARM64_ERRATUM_843419 is disabled and we're using GNU gold, pass --no-fix-cortex-a53-843419 to the linker to ensure the

[PATCH 09/15] arm64: keep .altinstructions and .altinstr_replacement

2017-11-03 Thread Sami Tolvanen
Make sure the linker doesn't remove .altinstructions or .altinstr_replacement when CONFIG_LD_DEAD_CODE_DATA_ELIMINATION is enabled. Signed-off-by: Sami Tolvanen --- arch/arm64/kernel/vmlinux.lds.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 08/15] arm64: don't pass -maarch64linux to GNU gold

2017-11-03 Thread Sami Tolvanen
This change fixes the following error message when linking with GNU gold: ld.gold: error: unrecognized emulation aarch64linux Signed-off-by: Sami Tolvanen --- arch/arm64/Makefile | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index

[PATCH 03/15] kbuild: add support for clang LTO

2017-11-03 Thread Sami Tolvanen
This change adds the configuration option CONFIG_CLANG_LTO, and build system support for clang's Link Time Optimization (LTO). With -flto, instead of object files, clang produces LLVM bitcode, which is compiled into a native object at link time, allowing the final binary to be optimized globally.

[PATCH 07/15] arm64: use -mno-implicit-float instead of -mgeneral-regs-only

2017-11-03 Thread Sami Tolvanen
From: Greg Hackmann LLVM bug 30792 causes clang's AArch64 backend to crash compiling arch/arm64/crypto/aes-ce-cipher.c. Replacing -mgeneral-regs-only with -mno-implicit-float is the suggested workaround. Signed-off-by: Greg Hackmann Cc: Matthias Kaehlcke Signed-off-by: Sami Tolvanen ---

[PATCH 06/15] efi/libstub: disable LTO

2017-11-03 Thread Sami Tolvanen
With CONFIG_CLANG_LTO, we produce LLVM IR instead of object files. Since LTO is not really needed here and the Makefile assumes we produce an object file, disable LTO for libstub. Signed-off-by: Sami Tolvanen --- drivers/firmware/efi/libstub/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH 04/15] kbuild: fix dynamic ftrace with clang LTO

2017-11-03 Thread Sami Tolvanen
With CONFIG_CLANG_LTO enabled, LLVM IR won't be compiled into object files until modpost_link. This change postpones calls to recordmcount until after this step. In order to exclude ftrace_process_locs from inspection, we add a new code section .text..ftrace, which we tell recordmcount to ignore,

[PATCH 06/15] efi/libstub: disable clang LTO

2017-11-03 Thread Sami Tolvanen
With CONFIG_CLANG_LTO, we produce LLVM IR instead of object files. Since LTO is not really needed here and the Makefile assumes we produce an object file, disable LTO for libstub. Signed-off-by: Sami Tolvanen --- drivers/firmware/efi/libstub/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH 02/15] kbuild: fix LD_DEAD_CODE_DATA_ELIMINATION with GNU gold

2017-11-03 Thread Sami Tolvanen
Don't remove .head.text or .exitcall.exit when linking with --gc-sections, and include .init.text.* in .init.text and .init.rodata.* in .init.rodata. Signed-off-by: Sami Tolvanen --- include/asm-generic/vmlinux.lds.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 00/15] Add support for clang LTO

2017-11-03 Thread Sami Tolvanen
This series adds build system support for compiling the kernel with clang Link Time Optimization (LTO), using GNU gold with the LLVMgold plug-in for linking. Some background for clang's LTO support is available here: https://llvm.org/docs/LinkTimeOptimization.html With -flto, clang produces

Re: [PATCH v16 12/13] arm, tile: turn off timer tick for oneshot_stopped state

2017-11-03 Thread Mark Rutland
Hi Chris, On Fri, Nov 03, 2017 at 01:04:51PM -0400, Chris Metcalf wrote: > diff --git a/drivers/clocksource/arm_arch_timer.c > b/drivers/clocksource/arm_arch_timer.c > index fd4b7f684bd0..61ea7f907c56 100644 > --- a/drivers/clocksource/arm_arch_timer.c > +++

[PATCH v8 0/5] MIPS: Add virtual Ranchu board as a generic-based board

2017-11-03 Thread Aleksandar Markovic
From: Aleksandar Markovic v7->v8: - cleaned commit message for patch #2 - cleaned GPL licence text for patch #2 - revised Goldfish PIC error and info messages - simplified code around MIPS_MACHINE() for Ranchu - changed an instance of "__initdata" to "__initconst" in Ranchu

[PATCH v8 1/5] Documentation: Add device tree binding for Goldfish PIC driver

2017-11-03 Thread Aleksandar Markovic
From: Miodrag Dinic Add documentation for DT binding of Goldfish PIC driver. The compatible string used by OS for binding the driver is "google,goldfish-pic". Signed-off-by: Miodrag Dinic Signed-off-by: Goran Ferenc Signed-off-by: Aleksandar Markovic Acked-by: Rob Herring ---

[PATCH v8 2/5] irqchip/irq-goldfish-pic: Add Goldfish PIC driver

2017-11-03 Thread Aleksandar Markovic
From: Miodrag Dinic Add device driver for a virtual programmable interrupt controller The virtual PIC is designed as a device tree-based interrupt controller. The compatible string used by OS for binding the driver is "google,goldfish-pic". Signed-off-by: Miodrag Dinic Signed-off-by: Goran

[PATCH v8 3/5] Documentation: Add device tree binding for Goldfish FB driver

2017-11-03 Thread Aleksandar Markovic
From: Aleksandar Markovic Add documentation for DT binding of Goldfish FB driver. The compatible string used by OS for binding the driver is "google,goldfish-fb". Signed-off-by: Miodrag Dinic Signed-off-by: Goran Ferenc Signed-off-by: Aleksandar Markovic Acked-by: Rob Herring ---

[PATCH v8 4/5] video: goldfishfb: Add support for device tree bindings

2017-11-03 Thread Aleksandar Markovic
From: Aleksandar Markovic Add ability to the Goldfish FB driver to be recognized by OS via DT. Signed-off-by: Miodrag Dinic Signed-off-by: Goran Ferenc Signed-off-by: Aleksandar Markovic --- drivers/video/fbdev/goldfishfb.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff

[PATCH v8 5/5] MIPS: ranchu: Add Ranchu as a new generic-based board

2017-11-03 Thread Aleksandar Markovic
From: Miodrag Dinic Provide amendments to the MIPS generic platform framework so that the new generic-based board Ranchu can be chosen to be built. The Ranchu board is intended to be used by Android emulator. The name "Ranchu" originates from Android development community. "Goldfish" and

Re: [PATCH] i2c: designware: make *CNT values configurable

2017-11-03 Thread Shikhar Dogra (shidogra)
Hi On 10/26/17, 7:20 AM, "Jarkko Nikula" wrote: Hi On 10/25/2017 09:50 PM, Shikhar Dogra wrote: > The values are already configurable from ACPI. > > This patch makes the high count (HCNT) and low count (LCNT) > register values configurable through device tree.

Re: [PATCH v16 10/13] arch/arm: enable task isolation functionality

2017-11-03 Thread Russell King - ARM Linux
On Fri, Nov 03, 2017 at 01:04:49PM -0400, Chris Metcalf wrote: > From: Francis Giraldeau > > This patch is a port of the task isolation functionality to the arm 32-bit > architecture. The task isolation needs an additional thread flag that > requires to change the entry assembly code to accept a

Re: [PATCH][RFC] usb: hub: Cycle HUB power when initialization fails

2017-11-03 Thread Alan Stern
On Fri, 3 Nov 2017, Mike Looijmans wrote: > Sometimes the USB device gets confused about the state of the initialization > and > the connection fails. In particular, the device thinks that it's already set > up > and running while the host thinks the device still needs to be configured. To How

Re: [PATCH v16 10/13] arch/arm: enable task isolation functionality

2017-11-03 Thread Chris Metcalf
On 11/3/2017 1:23 PM, Russell King - ARM Linux wrote: On Fri, Nov 03, 2017 at 01:04:49PM -0400, Chris Metcalf wrote: From: Francis Giraldeau This patch is a port of the task isolation functionality to the arm 32-bit architecture. The task isolation needs an additional thread flag that

[PATCH] x86/kexec: Exclude GART aperture from vmcore

2017-11-03 Thread Jiri Bohac
On machines where the GART aperture is mapped over physical RAM /proc/vmcore contains the remapped range and reading it may cause hangs or reboots. This range needs to be excluded from /proc/vmcore. This has originally been implemented by commit dd5f726076cc ("kexec: support for kexec on panic

[PATCH] HID: Wacom: switch Dell canvas into highres mode

2017-11-03 Thread Benjamin Tissoires
The Dell Canvas exports 2 collections for the Pen part. The only difference between the 2 is that the default one has half the resolution of the second one. The Windows driver switches the tablet into the second mode, so we should behave the same. Signed-off-by: Benjamin Tissoires --- Hi,

Re: [PATCH v8 2/5] irqchip/irq-goldfish-pic: Add Goldfish PIC driver

2017-11-03 Thread Joe Perches
On Fri, 2017-11-03 at 18:21 +0100, Aleksandar Markovic wrote: > From: Miodrag Dinic [] > diff --git a/drivers/irqchip/irq-goldfish-pic.c > b/drivers/irqchip/irq-goldfish-pic.c [] > +static int __init goldfish_pic_of_init(struct device_node *of_node, > +struct

Re: [PATCH v16 09/13] arch/arm64: enable task isolation functionality

2017-11-03 Thread Mark Rutland
Hi Chris, On Fri, Nov 03, 2017 at 01:04:48PM -0400, Chris Metcalf wrote: > In do_notify_resume(), call task_isolation_start() for > TIF_TASK_ISOLATION tasks. Add _TIF_TASK_ISOLATION to _TIF_WORK_MASK, > and define a local NOTIFY_RESUME_LOOP_FLAGS to check in the loop, > since we don't clear

Re: Regression still in next for drop migrate type checks

2017-11-03 Thread Andrew Morton
On Fri, 3 Nov 2017 09:00:12 -0700 Tony Lindgren wrote: > Looks like I'm still carrying patch "mm: distinguish CMA and MOVABLE > isolation in has_unmovable_pages" from Michal [1] for commit e1d753dff0fa > ("mm: drop migrate type checks from has_unmovable_pages") and Linux next > has been broken

[PATCH 1/3] rtc: rx8010: Remove duplicate define

2017-11-03 Thread Akshay Bhat
Remove duplicate define for RX8010_YEAR Signed-off-by: Akshay Bhat --- drivers/rtc/rtc-rx8010.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/rtc/rtc-rx8010.c b/drivers/rtc/rtc-rx8010.c index 1ed3403..f948f75 100644 --- a/drivers/rtc/rtc-rx8010.c +++ b/drivers/rtc/rtc-rx8010.c @@

Re: [PATCH v2 1/2] kprobes: propagate error from arm_kprobe_ftrace()

2017-11-03 Thread Steven Rostedt
On Fri, 3 Nov 2017 09:53:37 -0500 Josh Poimboeuf wrote: > > > -static void arm_kprobe_ftrace(struct kprobe *p) > > > +static int arm_kprobe_ftrace(struct kprobe *p) > > > { > > > - int ret; > > > + int ret = 0; > > > > > > ret = ftrace_set_filter_ip(_ftrace_ops, > > >

[PATCH 2/3] rtc: rx8010: Specify correct address for RX8010_RESV31

2017-11-03 Thread Akshay Bhat
Define for reserved register 31 had the incorrect address. Specify the correct address. Reported-by: Jens-Peter Oswald Signed-off-by: Akshay Bhat --- drivers/rtc/rtc-rx8010.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-rx8010.c b/drivers/rtc/rtc-rx8010.c

[PATCH 3/3] rtc: rx8010: Fix for incorrect return value

2017-11-03 Thread Akshay Bhat
The err variable is not being reset after a successful read. Explicitly reset err variable to account for all return paths. Reported-by: Jens-Peter Oswald Signed-off-by: Akshay Bhat --- drivers/rtc/rtc-rx8010.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/rtc/rtc-rx8010.c

Re: [PATCH v2 0/2] pinctrl: Allow indicating loss of state across suspend/resume

2017-11-03 Thread Tony Lindgren
* Florian Fainelli [171103 17:04]: > On 11/03/2017 09:11 AM, Tony Lindgren wrote: > The pinctrl provider is losing its state, hence these two patches. OK > > Anyways, the context lost flag should be managed in the PM core for > > the device, so adding linux-pm and Rafael to Cc. > > I don't

[GIT PULL] arch/tile bugfixes for 4.14-rcN

2017-11-03 Thread Chris Metcalf
Linus, Please pull the following two commits for 4.14 from: git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile.git master These are both one-line bug fixes. Chris Metcalf (1): arch/tile: Implement ->set_state_oneshot_stopped() Luc Van Oostenryck (1): tile: pass

Re: [PATCH v16 12/13] arm, tile: turn off timer tick for oneshot_stopped state

2017-11-03 Thread Chris Metcalf
On 11/3/2017 1:18 PM, Mark Rutland wrote: Hi Chris, On Fri, Nov 03, 2017 at 01:04:51PM -0400, Chris Metcalf wrote: diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index fd4b7f684bd0..61ea7f907c56 100644 --- a/drivers/clocksource/arm_arch_timer.c +++

[PATCH] arch/tile: Implement ->set_state_oneshot_stopped()

2017-11-03 Thread Chris Metcalf
set_state_oneshot_stopped() is called by the clkevt core, when the next event is required at an expiry time of 'KTIME_MAX'. This normally happens with NO_HZ_{IDLE|FULL} in both LOWRES/HIGHRES modes. This patch makes the clockevent device to stop on such an event, to avoid spurious interrupts, as

Re: [PATCH 2/3] clk: hisilicon: Add support for Hi3660 stub clocks

2017-11-03 Thread Julien Thierry
Hi Kaihua, On 03/11/17 07:25, Kaihua Zhong wrote: Hi3660 has four stub clocks, which are big and LITTLE cluster clocks, GPU clock and DDR clock. These clocks ask MCU for frequency scaling by sending message through mailbox. This commit adds support for stub clocks, it requests the dedicated

Re: [ANNOUNCE] v4.13.10-rt3 (possible recursive locking warning)

2017-11-03 Thread Fernando Lopez-Lezcano
On 10/27/2017 03:27 PM, Sebastian Andrzej Siewior wrote: Dear RT folks! I'm pleased to announce the v4.13.10-rt3 patch set. Thanks!! Wonderful! I'm seeing this (old Lenovo T510 running Fedora 26): [ 54.942022] [ 54.942023] WARNING:

Re: [PATCH 4/6] hugetlbfs: implement memfd sealing

2017-11-03 Thread David Herrmann
Hi On Fri, Nov 3, 2017 at 6:12 PM, Mike Kravetz wrote: > On 11/03/2017 10:03 AM, David Herrmann wrote: >> Hi >> >> On Tue, Oct 31, 2017 at 7:40 PM, Marc-André Lureau >> wrote: >>> Implements memfd sealing, similar to shmem: >>> - WRITE: deny fallocate(PUNCH_HOLE). mmap() write is denied in >>>

<    10   11   12   13   14   15   16   17   18   >