Re: [GIT PULL rcu/next] RCU commits for 4.18

2018-05-16 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello, Ingo! > > This pull request contains the following changes: > > 1.Updates to the handling of expedited grace periods, perhaps most > notably parallelizing their initialization. Other changes > include fixes from Boqun Feng. > > http://

Re: [PATCH v2 2/2] ARM: dts: r8a7740: Add CEU0

2018-05-16 Thread Geert Uytterhoeven
Hi Jacopo, On Thu, Apr 26, 2018 at 8:24 PM, Jacopo Mondi wrote: > Describe CEU0 peripheral for Renesas R-Mobile A1 R8A7740 Soc. > > Reported-by: Geert Uytterhoeven > Signed-off-by: Jacopo Mondi Thanks for your patch! Reviewed-by: Geert Uytterhoeven Minor question below. > --- a/arch/arm/bo

Re: [Intel-gfx] [PATCH v2 2/5] drm/i915: hdmi: add CEC notifier to intel_hdmi

2018-05-16 Thread Neil Armstrong
On 16/05/2018 09:31, Neil Armstrong wrote: > Hi Ville, > > On 15/05/2018 17:35, Ville Syrjälä wrote: >> On Tue, May 15, 2018 at 04:42:19PM +0200, Neil Armstrong wrote: >>> This patchs adds the cec_notifier feature to the intel_hdmi part >>> of the i915 DRM driver. It uses the HDMI DRM connector na

[PATCH] irqchip: dw-apb-ictl: switch to SPDX license identifier

2018-05-16 Thread Jisheng Zhang
Use the appropriate SPDX license identifier and drop the previous license text. Signed-off-by: Jisheng Zhang --- drivers/irqchip/irq-dw-apb-ictl.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-dw-apb-ictl.c b/drivers/irqchip/irq-dw-apb-ictl.c index

Re: [PATCH v7] mtd: rawnand: use bit-wise majority to recover the contents of ONFI parameter

2018-05-16 Thread Miquel Raynal
Hi Chris, > >>> +static void nand_bit_wise_majority(const void **srcbufs, > >>> +unsigned int nsrcbufs, > >>> +void *dstbuf, > >>> +unsigned int bufsize) > >>> +{ > >>> + int i, j, k; > >>> + > >>> + for (i = 0; i

Re: [PATCH v2 4/5] mfd: cros_ec_dev: Add CEC sub-device registration

2018-05-16 Thread Neil Armstrong
Hi Enric, On 15/05/2018 18:40, Enric Balletbo Serra wrote: > Hi Neil, > > I suspect that this patch will conflict with some patches that will be > queued for 4.18 that also introduces new devices, well, for now I > don't see these merged in the Lee's tree. Indeed, I found your patches, I'll reba

Re: [RFC/RFT] [PATCH 08/10] cpufreq: intel_pstate: Dyanmically update busy pct

2018-05-16 Thread Peter Zijlstra
On Tue, May 15, 2018 at 09:49:09PM -0700, Srinivas Pandruvada wrote: > +static inline void intel_pstate_update_busy_threshold(struct cpudata *cpu) > +{ > + /* P1 percent out of total range of P-states */ > + if (cpu->pstate.max_freq != cpu->pstate.turbo_freq) { > + hwp_boost_pst

Re: [PATCH 09/14] net: sched: don't release reference on action overwrite

2018-05-16 Thread Jiri Pirko
Mon, May 14, 2018 at 04:27:10PM CEST, vla...@mellanox.com wrote: >Return from action init function with reference to action taken, >even when overwriting existing action. > >Action init API initializes its fourth argument (pointer to pointer to >tc action) to either existing action with same index

Re: [PATCH 3/3] arm64: dts: renesas: r8a7795: add ccree binding

2018-05-16 Thread Simon Horman
On Tue, May 15, 2018 at 04:50:44PM +0200, Geert Uytterhoeven wrote: > Hi Gilad, > > On Tue, May 15, 2018 at 2:29 PM, Gilad Ben-Yossef wrote: > > Add bindings for CryptoCell instance in the SoC. > > > > Signed-off-by: Gilad Ben-Yossef > > Thanks for your patch! > > > --- a/arch/arm64/boot/dts/r

Re: [PATCH v2 3/5] mfd: cros-ec: Introduce CEC commands and events definitions.

2018-05-16 Thread Neil Armstrong
Hi Hans, On 15/05/2018 17:28, Hans Verkuil wrote: > On 05/15/2018 04:42 PM, Neil Armstrong wrote: >> The EC can expose a CEC bus, this patch adds the CEC related definitions >> needed by the cros-ec-cec driver. >> Having a 16 byte mkbp event size makes it possible to send CEC >> messages from the

Re: [PATCH v10 00/27] ARM: davinci: convert to common clock framework​

2018-05-16 Thread Bartosz Golaszewski
2018-05-16 0:44 GMT+02:00 Adam Ford : > On Tue, May 15, 2018 at 4:25 AM, Bartosz Golaszewski wrote: >> 2018-05-14 2:40 GMT+02:00 Adam Ford : >>> On Wed, May 9, 2018 at 12:25 PM, David Lechner wrote: This series converts mach-davinci to use the common clock framework. The series wor

Re: [RFC/RFT] [PATCH 08/10] cpufreq: intel_pstate: Dyanmically update busy pct

2018-05-16 Thread Peter Zijlstra
On Tue, May 15, 2018 at 09:49:09PM -0700, Srinivas Pandruvada wrote: > +static inline void intel_pstate_update_busy_threshold(struct cpudata *cpu) > +{ > + if (!hwp_boost_threshold_busy_pct) { > + int min_freq, max_freq; > + > + min_freq = cpu->pstate.min_pstate * cpu-

Re: [PATCH 09/14] net: sched: don't release reference on action overwrite

2018-05-16 Thread Vlad Buslov
On Wed 16 May 2018 at 07:43, Jiri Pirko wrote: > Mon, May 14, 2018 at 04:27:10PM CEST, vla...@mellanox.com wrote: >>Return from action init function with reference to action taken, >>even when overwriting existing action. >> >>Action init API initializes its fourth argument (pointer to pointer to

Re: [PATCH v5 06/13] KVM: s390: interfaces to manage guest's AP matrix

2018-05-16 Thread Pierre Morel
On 15/05/2018 18:07, Tony Krowiak wrote: On 05/15/2018 10:55 AM, Pierre Morel wrote: On 07/05/2018 17:11, Tony Krowiak wrote: Provides interfaces to manage the AP adapters, usage domains and control domains assigned to a KVM guest. The guest's SIE state description has a satellite structure ca

Re: [PATCH 1/3] dt-bindings: media: rcar-vin: Add R8A77995 support

2018-05-16 Thread Simon Horman
On Tue, May 15, 2018 at 10:36:27AM +0200, jacopo mondi wrote: > Hi Simon, > > On Fri, May 11, 2018 at 03:35:14PM +0200, Simon Horman wrote: > > On Fri, May 11, 2018 at 12:00:00PM +0200, Jacopo Mondi wrote: > > > Add compatible string for R-Car D3 R8A7795 to list of SoCs supported by > > > rcar-vin

Re: [RFC/RFT] [PATCH 10/10] cpufreq: intel_pstate: enable boost for SKX

2018-05-16 Thread Peter Zijlstra
On Tue, May 15, 2018 at 09:49:11PM -0700, Srinivas Pandruvada wrote: > Enable HWP boost on Skylake server platform. Why not unconditionally enable it on everything HWP ?

Re: [RFC][PATCH 06/10] tracing: Add trigger file for trace_markers tracefs/ftrace/print

2018-05-16 Thread Namhyung Kim
Hi Steve, On Mon, May 14, 2018 at 11:04:36AM -0400, Steven Rostedt wrote: > On Mon, 14 May 2018 12:13:22 +0900 > Namhyung Kim wrote: > > > On Fri, May 11, 2018 at 03:49:33PM -0400, Steven Rostedt wrote: > > > From: "Steven Rostedt (VMware)" > > > > > > Allow writing to the trace_markers file i

Re: [PATCH 3/3] types: use fixed width types without double-underscore prefix

2018-05-16 Thread Greg Kroah-Hartman
On Wed, May 16, 2018 at 03:59:01PM +0900, Masahiro Yamada wrote: > 2018-05-16 15:26 GMT+09:00 Greg Kroah-Hartman : > > On Wed, May 16, 2018 at 10:07:50AM +0900, Masahiro Yamada wrote: > >> Hi Andrew, > >> > >> 2018-05-16 7:59 GMT+09:00 Andrew Morton : > >> > On Tue, 15 May 2018 11:22:05 +0900 Masah

Re: [PATCH v2] powerpc: kvm: Change return type to vm_fault_t

2018-05-16 Thread Souptick Joarder
On Wed, May 16, 2018 at 12:38 PM, Paul Mackerras wrote: > On Wed, May 16, 2018 at 10:11:11AM +0530, Souptick Joarder wrote: >> On Thu, May 10, 2018 at 11:57 PM, Souptick Joarder >> wrote: >> > Use new return type vm_fault_t for fault handler >> > in struct vm_operations_struct. For now, this is

Re: [PATCH v7] mtd: rawnand: use bit-wise majority to recover the contents of ONFI parameter

2018-05-16 Thread Boris Brezillon
On Wed, 16 May 2018 09:32:57 +0200 Chris Moore wrote: > Hi, > > Le 15/05/2018 à 09:34, Boris Brezillon a écrit : > > On Tue, 15 May 2018 06:45:51 +0200 > > Chris Moore wrote: > > > >> Hi, > >> > >> Le 13/05/2018 à 06:30, Wan, Jane (Nokia - US/Sunnyvale) a écrit : > >>> Per ONFI specificatio

RE: [PATCH 4/4] scsi: ufs: make ufshcd_config_pwr_mode of non-static func

2018-05-16 Thread Avri Altman
> -Original Message- > From: linux-scsi-ow...@vger.kernel.org > On Behalf Of Alim Akhtar > Sent: Sunday, May 06, 2018 1:14 PM > To: linux-s...@vger.kernel.org; linux-kernel@vger.kernel.org > Cc: j...@linux.vnet.ibm.com; martin.peter...@oracle.com; > vivek.gau...@codeaurora.org; subha...@

Re: [PATCH 09/14] net: sched: don't release reference on action overwrite

2018-05-16 Thread Jiri Pirko
Wed, May 16, 2018 at 09:47:32AM CEST, vla...@mellanox.com wrote: > >On Wed 16 May 2018 at 07:43, Jiri Pirko wrote: >> Mon, May 14, 2018 at 04:27:10PM CEST, vla...@mellanox.com wrote: >>>Return from action init function with reference to action taken, >>>even when overwriting existing action. >>> >

[PATCH] phy: berlin: switch to SPDX license identifier

2018-05-16 Thread Jisheng Zhang
Use the appropriate SPDX license identifier and drop the previous license text. Signed-off-by: Jisheng Zhang --- drivers/phy/marvell/phy-berlin-sata.c | 5 + drivers/phy/marvell/phy-berlin-usb.c | 5 + 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/phy/marvell/ph

Re: [PATCH 4.14 49/62] Bluetooth: btusb: Only check needs_reset_resume DMI table for QCA rome chipsets

2018-05-16 Thread gre...@linuxfoundation.org
On Tue, May 15, 2018 at 12:42:36PM -0700, Guenter Roeck wrote: > On Tue, May 15, 2018 at 10:07:02AM -0700, Brian Norris wrote: > > + Guenter > > > > On Mon, May 14, 2018 at 08:49:05AM +0200, Greg Kroah-Hartman wrote: > > > 4.14-stable review patch. If anyone has any objections, please let me > >

Re: [PATCH 4/6] drm/panel: simple: Add support for Banana Pi 7" S070WV20-CT16 panel

2018-05-16 Thread Chen-Yu Tsai
On Wed, May 16, 2018 at 12:20 AM, Jagan Teki wrote: > On Wed, May 16, 2018 at 12:12 PM, Chen-Yu Tsai wrote: >> On Mon, May 14, 2018 at 11:03 AM, Jagan Teki >> wrote: >>> On Thu, Apr 19, 2018 at 3:02 PM, Chen-Yu Tsai wrote: This panel is marketed as Banana Pi 7" LCD display. On the back is

Re: [PATCH 10/14] net: sched: extend act API for lockless actions

2018-05-16 Thread Jiri Pirko
Mon, May 14, 2018 at 04:27:11PM CEST, vla...@mellanox.com wrote: >Implement new action API function to atomically delete action with >specified index and to atomically insert unique action. These functions are >required to implement init and delete functions for specific actions that >do not rely o

Re: [RESEND PATCH] clk: stm32: fix: stm32 clock drivers are not compiled by default

2018-05-16 Thread Stephen Boyd
Quoting gabriel.fernan...@st.com (2018-05-02 23:40:09) > From: Gabriel Fernandez > > Clock driver is mandatory if the machine is selected. > Then don't use 'bool' and 'depends on' commands, but 'def_bool' > with the machine(s). > > Fixes: da32d3539fca ("clk: stm32: add configuration flags for ea

Re: [RESEND PATCH] clk: stm32: fix: stm32 clock drivers are not compiled by default

2018-05-16 Thread Stephen Boyd
Quoting Alexandre Torgue (2018-05-16 00:34:21) > >> > >> Sorry I don't understand. Clock driver is mandatory to boot each > >> platform and depends on machine type. Do you see a use case where we > >> could need to disable the clock driver? (it would impose to change > >> devicetree to use fixed cl

Re: [PATCH 4/4] staging: lustre: obdclass: change object lookup to no wait mode

2018-05-16 Thread Dan Carpenter
On Tue, May 15, 2018 at 04:02:55PM +0100, James Simmons wrote: > > > > /* > > >* Allocate new object. This may result in rather complicated > > >* operations, including fld queries, inode loading, etc. > > >*/ > > > o = lu_object_alloc(env, dev, f, conf); > > > - if (IS_ERR(o)) > >

Re: [PATCH v2 0/9] iommu/vt-d: Improve PASID id and table management

2018-05-16 Thread Lu Baolu
Hi Joerg, Thank you for looking at my patches. On 05/15/2018 10:11 PM, Joerg Roedel wrote: > On Fri, May 04, 2018 at 09:41:15AM +0800, Lu Baolu wrote: >> PATCH 4~9 implement per domain PASID table. Current per IOMMU >> PASID table implementation is insecure in the cases where >> multiple devices

[PATCHv2 1/2] x86/boot/compressed/64: Set up GOT for paging_prepare() and cleanup_trampoline()

2018-05-16 Thread Kirill A. Shutemov
Eric and Hugh have reported instant reboot due to my recent changes in decompression code. The root cause is that I didn't realize that we need to adjust GOT to be able to run C code that early. The problem is only visible with an older toolchain. Binutils >= 2.24 is able to eliminate GOT referen

Re: [RESEND PATCH] clk: stm32: fix: stm32 clock drivers are not compiled by default

2018-05-16 Thread Alexandre Torgue
On 05/16/2018 09:57 AM, Stephen Boyd wrote: Quoting Alexandre Torgue (2018-05-16 00:34:21) Sorry I don't understand. Clock driver is mandatory to boot each platform and depends on machine type. Do you see a use case where we could need to disable the clock driver? (it would impose to change d

[PATCHv2 2/2] x86/boot/compressed/64: Fix moving page table out of trampoline memory

2018-05-16 Thread Kirill A. Shutemov
cleanup_trampoline() relocates the top-level page table out of trampoline memory. We use 'top_pgtable' as our new top-level page table. But if the 'top_pgtable' would be referenced from C in a usual way, the address of the table will be calculated relative to RIP. After kernel gets relocated, the

[PATCHv2 for v4.17 0/2] Fix two crashes in the decomression code

2018-05-16 Thread Kirill A. Shutemov
Here's an updated version of two crash fixes in early boot code. Kirill A. Shutemov (2): x86/boot/compressed/64: Set up GOT for paging_prepare() and cleanup_trampoline() x86/boot/compressed/64: Fix moving page table out of trampoline memory arch/x86/boot/compressed/head_64.S| 79

Re: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370

2018-05-16 Thread Greg KH
On Tue, May 15, 2018 at 06:47:37PM +0200, Paul Menzel wrote: > Dear Greg, > > > As always, thank you for the prompt response. > > > On 05/15/18 18:00, Greg KH wrote: > > On Tue, May 15, 2018 at 04:34:03PM +0200, Paul Menzel wrote: > > > > Linux 4.17-rc5 shows the error below on the Dell XPS 13

linux-next: Tree for May 16

2018-05-16 Thread Stephen Rothwell
Hi all, News: I will not be doing any linux-next releases between Friday 18 May and Friday 25 May inclusive. Changes since 20180515: New trees: samsung-krzk-fixes pinctrl-samsung-fixes The kbuild tree still had its build failure for which I applied a patch. The mips-james tree gained a

Re: [PATCH v5 11/13] KVM: s390: implement mediated device open callback

2018-05-16 Thread Pierre Morel
On 07/05/2018 17:11, Tony Krowiak wrote: Implements the open callback on the mediated matrix device. The function registers a group notifier to receive notification of the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the vfio_ap device driver will get access to the guest's kvm structure. With

Re: [PATCH -mm] mm, hugetlb: Pass fault address to no page handler

2018-05-16 Thread Kirill A. Shutemov
On Wed, May 16, 2018 at 12:42:43AM +, Huang, Ying wrote: > >> + unsigned long address = faddress & huge_page_mask(h); > > > > faddress? I would rather keep it address and rename maked out variable to > > 'haddr'. We use 'haddr' for the cause in other places. > > I found haddr is popular in hu

[PATCH 3/4] x86/boot/compressed/64: Fix trampoline page table address calculation

2018-05-16 Thread Kirill A. Shutemov
Hugh noticied that I calculate address of trampoline page table wrong in cleanup_trampoline(). TRAMPOLINE_32BIT_PGTABLE_OFFSET has to be divided by sizeof(unsigned long) since trampoline_32bit is unsigned long pointer. TRAMPOLINE_32BIT_PGTABLE_OFFSET is zero so the bug doesn't have a visible effec

[PATCH 4/4] x86/mm: Introduce 'no5lvl' kernel parameter

2018-05-16 Thread Kirill A. Shutemov
The kernel parameter allows to force kernel to use 4-level paging even if hardware and kernel support 5-level paging. The option may be useful to workaround regressions related to 5-level paging. Signed-off-by: Kirill A. Shutemov --- Documentation/admin-guide/kernel-parameters.txt | 3 +++ arc

[PATCH] clk: berlin: switch to SPDX license identifier

2018-05-16 Thread Jisheng Zhang
Use the appropriate SPDX license identifier and drop the previous license text. Signed-off-by: Jisheng Zhang --- drivers/clk/berlin/berlin2-avpll.c | 13 + drivers/clk/berlin/berlin2-avpll.h | 13 + drivers/clk/berlin/berlin2-div.c | 13 + drivers/clk/berlin

Re: [RESEND PATCH v5 0/6] Add support for PWM input capture on STM32

2018-05-16 Thread Lee Jones
On Wed, 16 May 2018, Fabrice Gasnier wrote: > This series adds support for capture to stm32-pwm driver. > Capture is based on DMAs. > - First two patches add support for requesting DMAs to MFD core > - Next three patches add support for capture to stm32-pwm driver > - This has been tested on stm32

Re: [PATCH 3/4] x86/boot/compressed/64: Fix trampoline page table address calculation

2018-05-16 Thread Kirill A. Shutemov
Ouch. Please ignore this and the next patch. It was sent by mistake. Sorry. -- Kirill A. Shutemov

Re: [PATCH V5 3/3] mmc: sdhci: Add MSI interrupt support for O2 SD host

2018-05-16 Thread Adrian Hunter
On 20/04/18 19:39, ernest.zhang wrote: > Add MSI interrupt support if the SD host device can support MSI interrupt. > > Changes in V5: The change log goes below the --- line or in a separate cover email. > 1. Because pci_enable_msi is marked as deprecated and should not be > used in

Re: [PATCH v6 09/17] media: rkisp1: add rockchip isp1 core driver

2018-05-16 Thread Tomasz Figa
Hi Jacob, Shunqian, On Thu, Mar 8, 2018 at 6:49 PM Jacob Chen wrote: [snip] > +static const struct of_device_id rkisp1_plat_of_match[] = { > + { > + .compatible = "rockchip,rk3288-cif-isp", > + .data = &rk3288_isp_clk_data, > + }, { > + .compa

Re: linux-next: build failure after merge of the drm tree

2018-05-16 Thread Oded Gabbay
On Wed, May 16, 2018 at 9:53 AM, Stephen Rothwell wrote: > Hi all, > > After merging the drm tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c: In function > 'init_user_pages': > drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_

INFO: rcu detected stall in sctp_packet_transmit

2018-05-16 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:961423f9fcbc Merge branch 'sctp-Introduce-sctp_flush_ctx' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=1366aea780 kernel config: https://syzkaller.appspot.com/x/.config?x=51fb0a6913f757db dashb

Re: [PATCH v5 10/13] s390: vfio-ap: sysfs interface to view matrix mdev matrix

2018-05-16 Thread Pierre Morel
On 07/05/2018 17:11, Tony Krowiak wrote: Provides a sysfs interface to view the AP matrix configured for the mediated matrix device. The relevant sysfs structures are: /sys/devices/vfio_ap ... [matrix] .. [mdev_supported_types] . [vfio_ap-passthrough] [devices]

Re: [RFC/RFT] [PATCH 06/10] cpufreq / sched: Add interface to get utilization values

2018-05-16 Thread Peter Zijlstra
On Tue, May 15, 2018 at 09:49:07PM -0700, Srinivas Pandruvada wrote: > --- a/kernel/sched/cpufreq.c > +++ b/kernel/sched/cpufreq.c > @@ -60,3 +60,26 @@ void cpufreq_remove_update_util_hook(int cpu) > rcu_assign_pointer(per_cpu(cpufreq_update_util_data, cpu), NULL); > } > EXPORT_SYMBOL_GPL(c

Re: [PATCH 10/14] net: sched: extend act API for lockless actions

2018-05-16 Thread Vlad Buslov
On Wed 16 May 2018 at 07:50, Jiri Pirko wrote: > Mon, May 14, 2018 at 04:27:11PM CEST, vla...@mellanox.com wrote: >>Implement new action API function to atomically delete action with >>specified index and to atomically insert unique action. These functions are >>required to implement init and del

Re: [PATCH] Makefile: disable PIE before testing asm goto

2018-05-16 Thread Peter Zijlstra
On Wed, May 16, 2018 at 07:51:36AM +0200, Michal Kubecek wrote: > Since commit e501ce957a78 ("x86: Force asm-goto"), aarch64 build on > distributions which enable PIE by default (e.g. openSUSE Tumbleweed) does > not detect support for asm goto correctly. The problem is that ARM specific > part of s

Re: [PATCH v16 8/9] PCI/DPC: Unify and plumb error handling into DPC

2018-05-16 Thread poza
On 2018-05-16 05:26, Bjorn Helgaas wrote: On Fri, May 11, 2018 at 05:22:08PM +0530, p...@codeaurora.org wrote: On 2018-05-11 16:13, Oza Pawandeep wrote: > DPC driver implements link_reset callback, and calls > pci_do_fatal_recovery(). > > Which follows standard path of ERR_FATAL recovery. > > Si

[GIT PULL] Immutable branch between MFD and PWM due for the v4.18 merge window

2018-05-16 Thread Lee Jones
Enjoy! The following changes since commit 60cc43fc888428bb2f18f08997432d426a243338: Linux 4.17-rc1 (2018-04-15 18:24:20 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git ib-mfd-pwm-v4.18 for you to fetch changes up to ab3a897847834bf3e

[PATCH 01/24] arm64: signal: Make parse_user_sigframe() independent of rt_sigframe layout

2018-05-16 Thread Yury Norov
From: Dave Martin ILP32 uses the same struct sigcontext as the native ABI (i.e., LP64), but a different layout for the rest of the signal frame (since siginfo_t and ucontext_t are both ABI-dependent). Since the purpose of parse_user_sigframe() is really to parse sigcontext and not the whole sign

[PATCH v9 00/24] ILP32 for ARM64

2018-05-16 Thread Yury Norov
This series enables AARCH64 with ILP32 mode. As supporting work, it introduces ARCH_32BIT_OFF_T configuration option that is enabled for existing 32-bit architectures but disabled for new arches (so 64-bit off_t userspace type is used by new userspace). Also it deprecates getrlimit and setrlimit s

[PATCH 02/24] ptrace: Add compat PTRACE_{G,S}ETSIGMASK handlers

2018-05-16 Thread Yury Norov
From: James Morse compat_ptrace_request() lacks handlers for PTRACE_{G,S}ETSIGMASK, instead using those in ptrace_request(). The compat variant should read a compat_sigset_t from userspace instead of ptrace_request()s sigset_t. While compat_sigset_t is the same size as sigset_t, it is defined as

[PATCH 04/24] 32-bit userspace ABI: introduce ARCH_32BIT_OFF_T config option

2018-05-16 Thread Yury Norov
All new 32-bit architectures should have 64-bit userspace off_t type, but existing architectures has 32-bit ones. To enforce the rule, new config option is added to arch/Kconfig that defaults ARCH_32BIT_OFF_T to be disabled for new 32-bit architectures. All existing 32-bit architectures enable it

[PATCH 03/24] compat ABI: use non-compat openat and open_by_handle_at variants

2018-05-16 Thread Yury Norov
The only difference between native and compat openat and open_by_handle_at is that non-compat version forces O_LARGEFILE, and it should be the default behaviour for all architectures, as we are going to drop the support of 32-bit userspace off_t. The exception is tile32 that continues with compat

[PATCH] ARM: berlin: switch to SPDX license identifier

2018-05-16 Thread Jisheng Zhang
Use the appropriate SPDX license identifier and drop the previous boilerplate license text. Signed-off-by: Jisheng Zhang --- arch/arm/mach-berlin/berlin.c | 5 + arch/arm/mach-berlin/headsmp.S | 5 + arch/arm/mach-berlin/platsmp.c | 5 + 3 files changed, 3 insertions(+), 12 deletion

[PATCH 07/24] arm64: ilp32: add documentation on the ILP32 ABI for ARM64

2018-05-16 Thread Yury Norov
Based on Andrew Pinski's patch-series. Signed-off-by: Yury Norov --- Documentation/arm64/ilp32.txt | 45 +++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/arm64/ilp32.txt diff --git a/Documentation/arm64/ilp32.txt b/Documentation/arm64/ilp32.

[PATCH 08/24] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2018-05-16 Thread Yury Norov
From: Andrew Pinski In this patchset ILP32 ABI support is added. Additionally to AARCH32, which is binary-compatible with ARM, ILP32 is (mostly) ABI-compatible. >From now, AARCH32_EL0 (former COMPAT) config option means the support of AARCH32 userspace, and ARM64_ILP32 - support of ILP32 ABI (se

[PATCH 09/24] arm64: rename functions that reference compat term

2018-05-16 Thread Yury Norov
The ILP32 for ARM64 patch series introduces another 'compat' mode for arm64. So to avoid confusing, aarch32-only functions renamed in according to it. Signed-off-by: Yury Norov --- arch/arm64/include/asm/ptrace.h | 10 ++-- arch/arm64/include/asm/signal32.h| 13 ++-- arch/arm64/kernel/a

[PATCH 06/24] thread: move thread bits accessors to separated file

2018-05-16 Thread Yury Norov
Thread bits may be accessed from low-level code, so isolating is a measure to avoid circular dependencies in header files. The exact reason for circular dependency is WARN_ON() macro added in patch edd63a27 "set_restore_sigmask() is never called without SIGPENDING (and never should be)" Signed-of

[PATCH 15/24] arm64: ilp32: introduce binfmt_ilp32.c

2018-05-16 Thread Yury Norov
Like binfmt_elf32.c for AARCH32, binfmt_ilp32.c is needed to handle ILP32 binaries. Signed-off-by: Yury Norov Signed-off-by: Bamvor Jian Zhang --- arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/binfmt_ilp32.c | 87 2 files changed, 88 insertions(+)

[PATCH 12/24] arm64: ilp32: add is_ilp32_compat_{task,thread} and TIF_32BIT_AARCH64

2018-05-16 Thread Yury Norov
ILP32 tasks are needed to be distinguished from LP64 and AARCH32. This patch adds helper functions is_ilp32_compat_{task,thread} and thread flag TIF_32BIT_AARCH64 to address it. This is a preparation for following patches in ILP32 patchset. For consistency, SET_PERSONALITY is changed here accordin

[PATCH 13/24] arm64: introduce binfmt_elf32.c

2018-05-16 Thread Yury Norov
As we support more than one compat formats, it looks more reasonable to not use fs/compat_binfmt.c. Custom binfmt_elf32.c allows to move aarch32 specific definitions there and make code more maintainable and readable. Signed-off-by: Yury Norov --- arch/arm64/Kconfig | 1 - arch/ar

[PATCH 17/24] arm64: ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2018-05-16 Thread Yury Norov
From: Andrew Pinski Add a separate syscall-table for ILP32, which dispatches either to native LP64 system call implementation or to compat-syscalls, as appropriate. Signed-off-by: Andrew Pinski Signed-off-by: Yury Norov Signed-off-by: Bamvor Jian Zhang --- arch/arm64/include/asm/unistd.h

Re: [PATCH] MAINTAINERS: Add entry for STM32 timer and lptimer drivers

2018-05-16 Thread Lee Jones
On Tue, 15 May 2018, Fabrice Gasnier wrote: > Add an entry to make myself a maintainer of STM32 timer and lptimer > drivers. > > Signed-off-by: Fabrice Gasnier > --- > MAINTAINERS | 10 ++ > 1 file changed, 10 insertions(+) Applied, thanks. -- Lee Jones [李琼斯] Linaro Services Technica

Re: [PATCH v5 1/2] clk: x86: Add ST oscout platform clock

2018-05-16 Thread Rafael J. Wysocki
On Tue, May 15, 2018 at 11:14 PM, Stephen Boyd wrote: > Quoting Agrawal, Akshu (2018-05-15 02:39:08) >> >> >> On 5/15/2018 3:02 PM, Rafael J. Wysocki wrote: >> > On Wednesday, May 9, 2018 11:59:00 AM CEST Akshu Agrawal wrote: >> >> Stoney SoC provides oscout clock. This clock can support 25Mhz and

[PATCH 21/24] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32

2018-05-16 Thread Yury Norov
ILP32 has context-related structures different from both aarch32 and aarch64/lp64. In this patch compat_arch_ptrace() renamed to compat_a32_ptrace(), and compat_arch_ptrace() only makes choice between compat_a32_ptrace() and new compat_ilp32_ptrace() handler. compat_ilp32_ptrace() calls generic co

[PATCH 20/24] arm64: ilp32: introduce ilp32-specific sigframe and ucontext

2018-05-16 Thread Yury Norov
From: Yury Norov ILP32 uses AARCH32 compat structures and syscall handlers for signals. But ILP32 rt_sigframe and ucontext structures differ from both LP64 and AARCH32. >From software point of view ILP32 is typical 32-bit compat ABI, and from hardware point of view, it's just like LP64. struct r

[PATCH 18/24] arm64: signal: share lp64 signal structures and routines to ilp32

2018-05-16 Thread Yury Norov
Following patches of the series introduce ILP32-specific structures and handlers for signal subsystem. In this patch, functions and structures that common for LP64 and ILP32 are moved to arch/arm64/include/asm/signal_common.h to let ILP32 code reuse them. Some functions work with struct rt_sigframe

[PATCH 23/24] arm64:ilp32: add ARM64_ILP32 to Kconfig

2018-05-16 Thread Yury Norov
From: Andrew Pinski This patch adds the config option for ILP32. Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Reviewed-by: David Daney --- arch/arm64/Kconfig | 9 - 1 file changed, 8 insertions(+), 1 deletio

[PATCH 24/24] arm64: ilp32: Make the Kconfig option default y

2018-05-16 Thread Yury Norov
From: Catalin Marinas The intention of the ILP32 branches is to enable ILP32 by default. This default is to be revisited for upstream merging. Signed-off-by: Catalin Marinas Signed-off-by: Yury Norov --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig

[PATCH 22/24] arm64:ilp32: add vdso-ilp32 and use for signal return

2018-05-16 Thread Yury Norov
From: Philipp Tomsich ILP32 VDSO exports following symbols: __kernel_rt_sigreturn; __kernel_gettimeofday; __kernel_clock_gettime; __kernel_clock_getres. What shared object to use, kernel selects depending on result of is_ilp32_compat_task() in arch/arm64/kernel/vdso.c, so it substitutes corr

Re: [PATCH v9 05/12] ACPI/PPTT: Add Processor Properties Topology Table parsing

2018-05-16 Thread Rafael J. Wysocki
On Tue, May 15, 2018 at 11:42 PM, Jeremy Linton wrote: > Hi, > > > On 05/12/2018 05:09 AM, Rafael J. Wysocki wrote: >> >> On Sat, May 12, 2018 at 1:58 AM, Jeremy Linton >> wrote: >>> [cut] >> >> >> I don't think you really need the explicit type cast here and above, >> but that's very minor. >>

Re: [PATCH v3 3/3] driver-core: print bus registration error value

2018-05-16 Thread kbuild test robot
://github.com/0day-ci/linux/commits/Florian-Schmaus/return-EINVAL-error-instead-of-BUG_ON/20180516-141149 config: i386-tinyconfig (attached as .config) compiler: gcc-7 (Debian 7.3.0-16) 7.3.0 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones

[PATCH 19/24] arm64: signal32: move ilp32 and aarch32 common code to separated file

2018-05-16 Thread Yury Norov
ILP32 needs to mix 32bit struct siginfo and 64bit sigframe for its signal handlers. Move the existing compat code for copying siginfo to user space and manipulating signal masks into signal32_common.c so it can be used to deliver aarch32 and ilp32 signals. Signed-off-by: Yury Norov --- arch/arm6

Re: [PATCH v5 04/13] s390: vfio-ap: base implementation of VFIO AP device driver

2018-05-16 Thread Pierre Morel
On 07/05/2018 17:11, Tony Krowiak wrote: Introduces a new AP device driver. This device driver is built on the VFIO mediated device framework. The framework provides sysfs interfaces that facilitate passthrough access by guests to devices installed on the linux host. ...snip... +static int vfio

[PATCH 16/24] arm64: ilp32: share aarch32 syscall handlers

2018-05-16 Thread Yury Norov
According to userspace/kernel ABI, userspace off_t is passed in register pair just like in aarch32. In this patch corresponding aarch32 handlers are shared to ilp32 code. Signed-off-by: Yury Norov --- arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/entry32.S| 80 ---

[PATCH 14/24] arm64: change compat_elf_hwcap and compat_elf_hwcap2 prefix to a32

2018-05-16 Thread Yury Norov
ILP32 patch series introduces new type of binaries which is also compat. So rename existung aarch32 compat_elf_hwcap's helps to avoid confusing. Signed-off-by: Yury Norov --- arch/arm64/include/asm/hwcap.h | 2 +- arch/arm64/kernel/binfmt_elf32.c | 4 ++-- arch/arm64/kernel/cpufeatur

[PATCH 11/24] arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat)

2018-05-16 Thread Yury Norov
Based on patch of Andrew Pinski. This patch introduces is_a32_compat_task and is_a32_thread so it is easier to say this is a a32 specific thread or a generic compat thread/task. Corresponding functions are located in to avoid mess in headers. Some files include both and , and this is wrong bec

[PATCH 10/24] arm64: uapi: set __BITS_PER_LONG correctly for ILP32 and LP64

2018-05-16 Thread Yury Norov
From: Andrew Pinski Define __BITS_PER_LONG depending on the ABI used (i.e. check whether __ILP32__ or __LP64__ is defined). This is necessary for glibc to determine the appropriate type definitions for the system call interface. Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Sign

Re: [PATCH] clk: meson: use SPDX license identifiers consistently

2018-05-16 Thread Jerome Brunet
On Tue, 2018-05-15 at 10:58 -0700, Stephen Boyd wrote: > Quoting Jerome Brunet (2018-05-15 09:42:29) > > diff --git a/drivers/clk/meson/clk-audio-divider.c > > b/drivers/clk/meson/clk-audio-divider.c > > index f7ab5b1db342..ac0743cd0f2f 100644 > > --- a/drivers/clk/meson/clk-audio-divider.c > > ++

RE: [External] Re: [RFC PATCH v1 0/6] use mm to manage NVDIMM (pmem) zone

2018-05-16 Thread Huaisheng HS1 Ye
> From: Dan Williams [mailto:dan.j.willi...@intel.com] > Sent: Wednesday, May 16, 2018 10:49 AM > On Tue, May 15, 2018 at 7:05 PM, Huaisheng HS1 Ye wrote: > >> From: Matthew Wilcox [mailto:wi...@infradead.org] > >> Sent: Wednesday, May 16, 2018 12:20 AM> > >> > > > > Then there's the problem of re

Re: [PATCH v3 3/3] driver-core: print bus registration error value

2018-05-16 Thread kbuild test robot
://github.com/0day-ci/linux/commits/Florian-Schmaus/return-EINVAL-error-instead-of-BUG_ON/20180516-141149 config: i386-randconfig-a0-201819 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors

[RFC v4 0/5] virtio: support packed ring

2018-05-16 Thread Tiwei Bie
Hello everyone, This RFC implements packed ring support in virtio driver. Some simple functional tests have been done with Jason's packed ring implementation in vhost: https://lkml.org/lkml/2018/4/23/12 Both of ping and netperf worked as expected (with EVENT_IDX disabled). TODO: - Refinements

Re: [PATCH v9 07/11] arm64: kexec_file: add crash dump support

2018-05-16 Thread James Morse
Hi Akashi, On 15/05/18 18:11, James Morse wrote: > On 25/04/18 07:26, AKASHI Takahiro wrote: >> Enabling crash dump (kdump) includes >> * prepare contents of ELF header of a core dump file, /proc/vmcore, >> using crash_prepare_elf64_headers(), and >> * add two device tree properties, "linux,usab

[RFC v4 2/5] virtio_ring: support creating packed ring

2018-05-16 Thread Tiwei Bie
This commit introduces the support for creating packed ring. All split ring specific functions are added _split suffix. Some necessary stubs for packed ring are also added. Signed-off-by: Tiwei Bie --- drivers/virtio/virtio_ring.c | 764 +++ include/linux/virtio_r

[PATCH v2] media: helene: add I2C device probe function

2018-05-16 Thread Katsuhiro Suzuki
This patch adds I2C probe function to use dvb_module_probe() with this driver. Signed-off-by: Katsuhiro Suzuki --- Changes since v1: - Add documents for dvb_frontend member of helene_config --- drivers/media/dvb-frontends/helene.c | 88 ++-- drivers/media/dvb-frontend

Re: [PATCH] nvmem: Don't let a NULL cell_id for nvmem_cell_get() crash us

2018-05-16 Thread Srinivas Kandagatla
On 15/05/18 22:16, Douglas Anderson wrote: In commit ca04d9d3e1b1 ("phy: qcom-qusb2: New driver for QUSB2 PHY on Qcom chips") you can see a call like: devm_nvmem_cell_get(dev, NULL); Note that the cell ID passed to the function is NULL. This is because the qcom-qusb2 driver is expected to

[RFC v4 3/5] virtio_ring: add packed ring support

2018-05-16 Thread Tiwei Bie
This commit introduces the basic support (without EVENT_IDX) for packed ring. Signed-off-by: Tiwei Bie --- drivers/virtio/virtio_ring.c | 491 ++- 1 file changed, 481 insertions(+), 10 deletions(-) diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio

[RFC v4 5/5] virtio_ring: enable packed ring

2018-05-16 Thread Tiwei Bie
Signed-off-by: Tiwei Bie --- drivers/virtio/virtio_ring.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index de3839f3621a..b158692263b0 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -1940,6 +194

[RFC v4 4/5] virtio_ring: add event idx support in packed ring

2018-05-16 Thread Tiwei Bie
This commit introduces the event idx support in packed ring. Signed-off-by: Tiwei Bie --- drivers/virtio/virtio_ring.c | 75 +--- 1 file changed, 70 insertions(+), 5 deletions(-) diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index c6c5d

[RFC v4 1/5] virtio: add packed ring definitions

2018-05-16 Thread Tiwei Bie
Signed-off-by: Tiwei Bie --- include/uapi/linux/virtio_config.h | 12 +- include/uapi/linux/virtio_ring.h | 36 ++ 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/virtio_config.h b/include/uapi/linux/virtio_config.h index 30

[PATCH] media: helene: fix xtal frequency setting at power on

2018-05-16 Thread Katsuhiro Suzuki
This patch fixes crystal frequency setting when power on this device. Signed-off-by: Katsuhiro Suzuki --- drivers/media/dvb-frontends/helene.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/helene.c b/drivers/media/dvb-frontends/helene.c inde

[PATCH] media: helene: fix tuning frequency of satellite

2018-05-16 Thread Katsuhiro Suzuki
This patch fixes tuning frequency of satellite to kHz. That as same as terrestrial one. Signed-off-by: Katsuhiro Suzuki --- drivers/media/dvb-frontends/helene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/helene.c b/drivers/media/dvb-frontends

Re: [PATCH v2]: perf/x86: store user space frame-pointer value on a sample

2018-05-16 Thread Alexey Budankov
Hi, On 15.05.2018 19:30, Andy Lutomirski wrote: > >> On May 15, 2018, at 1:08 AM, Alexey Budankov >> wrote: >> >> >> Hi Andy, >> >>> On 09.05.2018 17:54, Peter Zijlstra wrote: On Tue, May 08, 2018 at 06:21:36PM +0300, Alexey Budankov wrote: Store user space frame-pointer value (BP

Re: [RESEND PATCH v5 0/6] Add support for PWM input capture on STM32

2018-05-16 Thread Fabrice Gasnier
On 05/16/2018 10:06 AM, Lee Jones wrote: > On Wed, 16 May 2018, Fabrice Gasnier wrote: > >> This series adds support for capture to stm32-pwm driver. >> Capture is based on DMAs. >> - First two patches add support for requesting DMAs to MFD core >> - Next three patches add support for capture to s

Re: [PATCH v2 0/9] Input: support for latest Lenovo thinkpads (series 80)

2018-05-16 Thread Aaron Ma
On 05/16/2018 03:09 PM, Teika Kazura wrote: > From: Aaron Ma > Date: Tue, 17 Apr 2018 19:42:27 +0800 > >> Could you apply my patch too? >> >> It add LEN0096 that Benjamin's patch doesn't include. >> >> +"LEN0096", /* X280 */ > Aaron, in your original patch in last Oct [1], both *LEN0092 and

<    1   2   3   4   5   6   7   8   9   10   >