Re: [PATCH V7 1/2] arm64: dtsi: Fix SDMMC address range

2019-01-10 Thread Thierry Reding
On Wed, Jan 02, 2019 at 11:36:47AM -0800, Sowjanya Komatineni wrote: > This patch fixes the SDMMC Controllers address space to be exact > defined register address range as per the design. > > SDMMC Controller supporting Command Queue has CQHCI registers at > offset 0xF000. > > This fix helps to

Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged

2019-01-10 Thread Matthew Wilcox
On Wed, Jan 09, 2019 at 09:26:41PM -0800, Andy Lutomirski wrote: > Since direct IO has been brought up, I have a question. I've wondered > for years why direct IO works the way it does. If I were implementing > it from scratch, my first inclination would be to use the page cache > instead of

Re: [PATCH] vfio_pci: set TRACE_INCLUDE_PATH to fix the build error

2019-01-10 Thread Steven Rostedt
On Tue, Jan 08, 2019 at 12:08:03PM +0900, Masahiro Yamada wrote: > --- > > drivers/vfio/pci/trace.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/vfio/pci/trace.h b/drivers/vfio/pci/trace.h > index 228ccdb..4d13e51 100644 > --- a/drivers/vfio/pci/trace.h > +++

Re: Question about qspinlock nest

2019-01-10 Thread Waiman Long
On 01/10/2019 03:02 AM, Zhenzhong Duan wrote: > Hi Maintainer, > > > There is a question confused me for days. Appreciate an answer. > > In below code, the comment says we never have more than 4 nested > contexts. > > What happen if debug and mce exceptions nest with the four, or we > ensure it

`SATA_AHCI` not selected by default with `make olddefconfig`

2019-01-10 Thread Paul Menzel
Dear Linux folks, There were some PCI Kconfig changes, which seem to cause problems with components depending on PCI. With the attached minimal config, running `make olddefconfig` on Linux 4.20 and older caused `SATA_AHCI` to be selected. But, with Linux 5.0-rc1 it is not selected. Kind

Re: [PATCH RFC LKMM 7/7] tools/memory-model: Dynamically check SRCU lock-to-unlock matching

2019-01-10 Thread Paul E. McKenney
On Thu, Jan 10, 2019 at 10:41:31AM +0100, Andrea Parri wrote: > On Wed, Jan 09, 2019 at 01:07:48PM -0800, Paul E. McKenney wrote: > > From: Luc Maranget > > > > This commit checks that the return value of srcu_read_lock() is passed > > to the matching srcu_read_unlock(), where "matching" is

[PATCH 2/2] ARM: config: spear3xx: Activate PL111 DRM driver

2019-01-10 Thread Linus Walleij
This disables the old FBDEV driver and enables the PL111 DRM driver on the SPEAr3xx. There are some device trees in the kernel that switches the DT node for the PL110 to "okay" but none of these have any display defined, so we can safely switch to this driver before we get any users starting to

Re: general protection fault in fuse_dev_do_write

2019-01-10 Thread Miklos Szeredi
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git 9c6432f41365

Re: [PATCH v5 2/5] Bluetooth: hci_qca: Deassert RTS while baudrate change command

2019-01-10 Thread Johan Hovold
On Thu, Jan 10, 2019 at 08:04:12PM +0530, Balakrishna Godavarthi wrote: > Hi Johan, > > On 2019-01-09 20:22, Johan Hovold wrote: > > On Thu, Dec 20, 2018 at 08:16:36PM +0530, Balakrishna Godavarthi wrote: > >> This patch will help to stop frame reassembly errors while changing > >> the baudrate.

[PATCH 1/2] ARM: config: Update SPEAr 3xx defconfig

2019-01-10 Thread Linus Walleij
This config is updates to the latest structure of the Kconfig menus so we can apply DRM driver changes on top. Signed-off-by: Linus Walleij --- arch/arm/configs/spear3xx_defconfig | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git

Re: [PATCH] USB: quirks: add NO_LPM quirk for Logitech Flare|Meetup|Brio|Rally

2019-01-10 Thread Kyle Williams
On Mon, Dec 10, 2018 at 03:50:17PM +0200, Mathias Nyman wrote: > On 08.12.2018 00:18, Kyle Williams wrote: > > On Tue, Dec 04, 2018 at 04:36:18PM -0500, Alan Stern wrote: > > > On Tue, 4 Dec 2018, Kyle Williams wrote: > > > > > > > Description: Some USB device / host controller combinations seem

Re: [PATCH] net/core/neighbour: tell kmemleak about hash tables

2019-01-10 Thread David Miller
From: Konstantin Khlebnikov Date: Tue, 08 Jan 2019 12:30:00 +0300 > This fixes false-positive kmemleak reports about leaked neighbour entries: ... > Signed-off-by: Konstantin Khlebnikov Applied.

Re: [PATCH v5 2/5] Bluetooth: hci_qca: Deassert RTS while baudrate change command

2019-01-10 Thread Balakrishna Godavarthi
Hi Johan, On 2019-01-09 20:22, Johan Hovold wrote: On Thu, Dec 20, 2018 at 08:16:36PM +0530, Balakrishna Godavarthi wrote: This patch will help to stop frame reassembly errors while changing the baudrate. This is because host send a change baudrate request command to the chip with 115200 bps,

Re: [PATCH RFC memory-model 0/6] LKMM updates

2019-01-10 Thread Paul E. McKenney
On Thu, Jan 10, 2019 at 09:40:24AM +0100, Andrea Parri wrote: > > > > > It seems that > > > > > > > > > > 1b52d0186177 ("tools/memory-model: Model > > > > > smp_mb__after_unlock_lock()") > > > > > > > > > > from linux-rcu/dev got lost; this also needs an ack (probably yours! > > > > > ;D,

Re: [PATCH] net: cxgb4: fix various indentation issues

2019-01-10 Thread David Miller
From: Colin King Date: Mon, 7 Jan 2019 23:48:09 + > From: Colin Ian King > > There are some lines that have indentation issues, fix these. > > Signed-off-by: Colin Ian King Applied.

Re: [PATCH] net: cxgb3: fix various indentation issues

2019-01-10 Thread David Miller
From: Colin King Date: Mon, 7 Jan 2019 23:39:24 + > From: Colin Ian King > > There are handful of lines that have indentation issues, fix these. > > Signed-off-by: Colin Ian King Definitely makes the code impossible to properly audit. Applied, thanks for fixing this.

[PATCH v1] : Switch to use new generic UUID API

2019-01-10 Thread Andy Shevchenko
There are new types and helpers that are supposed to be used in new code. As a preparation to get rid of legacy types and API functions do the conversion here. Signed-off-by: Andy Shevchenko --- drivers/lightnvm/pblk.h | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

Re: [PATCH v2 4/4] hwrng: add OP-TEE based rng driver

2019-01-10 Thread Daniel Thompson
On Thu, Jan 10, 2019 at 05:54:57PM +0530, Sumit Garg wrote: > On ARM SoC's with TrustZone enabled, peripherals like entropy sources > might not be accessible to normal world (linux in this case) and rather > accessible to secure world (OP-TEE in this case) only. So this driver > aims to provides a

Re: [PATCH 4.19 000/170] 4.19.14-stable review

2019-01-10 Thread Guenter Roeck
On 1/10/19 5:17 AM, Greg Kroah-Hartman wrote: On Thu, Jan 10, 2019 at 07:52:07AM +0100, Greg Kroah-Hartman wrote: On Wed, Jan 09, 2019 at 11:40:48AM -0800, Guenter Roeck wrote: On Wed, Jan 09, 2019 at 03:38:11PM +0100, Greg Kroah-Hartman wrote: On Tue, Jan 08, 2019 at 03:07:31PM -0800,

[PATCH] perf/core: don't WARN for impossible rb sizes

2019-01-10 Thread Mark Rutland
The perf tool uses /proc/sys/kernel/perf_event_mlock_kb to determine how large its ringbuffer mmap should be. This can be configured to arbitrary values, which can be larger than the maximum possible allocation from kmalloc. When this is configured to a suitably large value (e.g. thanks to the

Re: [PATCH 0/3] Fix virtio-blk issue with SWIOTLB

2019-01-10 Thread Joerg Roedel
Hi Christoph, On Thu, Jan 10, 2019 at 02:59:52PM +0100, Christoph Hellwig wrote: > On Thu, Jan 10, 2019 at 02:44:30PM +0100, Joerg Roedel wrote: > > The problem is a limitation of the SWIOTLB implementation, > > which does not support allocations larger than 256kb. When > > the virtio-blk driver

[PATCH v2] vmbus: Switch to use new generic UUID API

2019-01-10 Thread Andy Shevchenko
There are new types and helpers that are supposed to be used in new code. As a preparation to get rid of legacy types and API functions do the conversion here. Cc: "K. Y. Srinivasan" Cc: Haiyang Zhang Cc: Stephen Hemminger Cc: de...@linuxdriverproject.org Signed-off-by: Andy Shevchenko ---

Re: [PATCH v2 3/4] tee: add supp_nowait flag in tee_context struct

2019-01-10 Thread Daniel Thompson
On Thu, Jan 10, 2019 at 05:54:56PM +0530, Sumit Garg wrote: > This flag indicates that requests in this context should not wait for > tee-supplicant daemon to be started if not present and just return > with an error code. It is needed for requests which should be > non-blocking in nature like

Re: [PATCH v2 02/11] thermal: add irq-mode configuration for trip point

2019-01-10 Thread Zhang Rui
Hi, Lukasz, On 四, 2018-12-06 at 20:55 +0100, Lukasz Luba wrote: > > On 12/6/18 8:18 PM, Lukasz Luba wrote: > > > > Hi Rui, > > > > On 12/5/18 4:09 PM, Zhang Rui wrote: > > > > > > On 三, 2018-11-07 at 18:09 +0100, Lukasz Luba wrote: > > > > > > > > This patch adds support irq mode in trip

Re: Possible use of RCU while in extended QS: idle vs RCU read-side in interrupt vs rcu_eqs_exit

2019-01-10 Thread Paul E. McKenney
On Thu, Jan 10, 2019 at 01:30:05AM -0500, Mathieu Desnoyers wrote: > - On Jan 9, 2019, at 8:13 PM, paulmck paul...@linux.ibm.com wrote: > > > On Wed, Jan 09, 2019 at 08:38:51PM -0500, Mathieu Desnoyers wrote: > >> Hi Paul, > >> > >> I've had a user report that trace_sched_waking() appears to

Re: [PATCH v10 0/8] Introduce on-chip interconnect API

2019-01-10 Thread Georgi Djakov
Hi Greg, On 12/17/18 13:17, Georgi Djakov wrote: > Hi Greg, > > On 12/11/18 08:58, Greg Kroah-Hartman wrote: >> On Mon, Dec 10, 2018 at 04:50:00PM +0200, Georgi Djakov wrote: >>> On 12/10/18 13:00, Rafael J. Wysocki wrote: On Mon, Dec 10, 2018 at 11:18 AM Georgi Djakov wrote: >

Re: [PATCH v2 2/4] tee: optee: add TEE bus device enumeration support

2019-01-10 Thread Daniel Thompson
On Thu, Jan 10, 2019 at 05:54:55PM +0530, Sumit Garg wrote: > OP-TEE provides a pseudo TA to enumerate TAs which can act as devices/ > services for TEE bus. So implement device enumeration using invoke > function: PTA_CMD_GET_DEVICES provided by pseudo TA to fetch array of > device UUIDs. Also

Re: [PATCH 4/4] usb: musb: Add support for MediaTek musb controller

2019-01-10 Thread Bin Liu
Hi Min, Please briefly summarize the controller differences in the commit log, such as - WIC interrupt registers; - data toggle bit; - no dedicated DMA interrupt line; so that we can quickly understand the core driver is modified accordingly to handle the differences. On Thu, Jan 10, 2019 at

Free Will Offer

2019-01-10 Thread M.M. Fridman
I, Mikhail Fridman have selected you specifically as one of my beneficiaries for my Charitable Donation of $5 Million Dollars, Check the link below for confirmation: https://www.rt.com/business/343781-mikhail-fridman-will-charity/ I await your earliest response for further directives. Best

Re: [PATCH v3 4/7] arm64: add sysfs vulnerability show for meltdown

2019-01-10 Thread Julien Thierry
On 10/01/2019 14:10, Jeremy Linton wrote: > Hi Julien, > > On 01/10/2019 03:23 AM, Julien Thierry wrote: >> Hi Jeremy, >> >> On 09/01/2019 23:55, Jeremy Linton wrote: >>> Display the mitigation status if active, otherwise >>> assume the cpu is safe unless it doesn't have CSV3 >>> and isn't in

Re: [PATCH 2/2] arm64: mm: make use of new memblocks_present() helper

2019-01-10 Thread Will Deacon
On Wed, Jan 09, 2019 at 01:21:00PM -0700, Logan Gunthorpe wrote: > Cleanup the arm64_memory_present() function seeing it's very > similar to other arches. > > memblocks_present() is a direct replacement of arm64_memory_present() > > Signed-off-by: Logan Gunthorpe > Acked-by: Catalin Marinas >

[PATCH] drm/msm: avoid unused function warning

2019-01-10 Thread Anders Roxell
From: Arnd Bergmann drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c:368:13: error: 'dpu_plane_danger_signal_ctrl' defined but not used [-Werror=unused-function] Fixes: 7b2e7adea732 ("drm/msm/dpu: Make dpu_plane_danger_signal_ctrl void") Signed-off-by: Arnd Bergmann Signed-off-by: Anders Roxell ---

Re: [RESEND PATCH 00/12] eeprom: at24: remove platform_data

2019-01-10 Thread Sekhar Nori
Hi Bartosz, On 08/01/19 2:45 PM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Hi Sekhar, > > now that all dependencies are in and v5.0-rc1 is tagged, please consider > picking up the second batch of davinci-specific changes into your tree. > Once that's done, please provide me

Re: [PATCH 1/1] MAINTAINERS: fix bad file reference into Documentation

2019-01-10 Thread Rob Herring
On Thu, Jan 10, 2019 at 2:23 AM Łukasz Stelmach wrote: > > It was <2019-01-09 śro 20:35>, when Joe Perches wrote: > > On Wed, 2019-01-09 at 20:09 +0100, Otto Sabart wrote: > >> There is no `samsung,exynos5250-trng.txt` file in the documentation and > >> I do not think it ever existed. > > > >

Re: [PATCH 1/2] mmc: sdhci: Properly set DMA mask

2019-01-10 Thread Adrian Hunter
On 4/01/19 12:47 PM, Thierry Reding wrote: > From: Thierry Reding > > The implementation of sdhci_set_dma_mask() is conflating two things: on > one hand it uses the SDHCI_USE_64_BIT_DMA flag to determine whether or > not to use the 64-bit addressing capability of the controller and on the >

Re: [PATCH v3 4/7] arm64: add sysfs vulnerability show for meltdown

2019-01-10 Thread Jeremy Linton
Hi Julien, On 01/10/2019 03:23 AM, Julien Thierry wrote: Hi Jeremy, On 09/01/2019 23:55, Jeremy Linton wrote: Display the mitigation status if active, otherwise assume the cpu is safe unless it doesn't have CSV3 and isn't in our whitelist. Signed-off-by: Jeremy Linton ---

Re: [PATCH RFC 1/4] include/linux/compiler*.h: fix OPTIMIZER_HIDE_VAR

2019-01-10 Thread Michael S. Tsirkin
On Thu, Jan 10, 2019 at 04:41:39PM +0300, Dan Carpenter wrote: > On Wed, Jan 09, 2019 at 09:36:41PM -0500, Michael S. Tsirkin wrote: > > On Wed, Jan 09, 2019 at 11:35:52AM +0100, Miguel Ojeda wrote: > > > On Tue, Jan 8, 2019 at 6:44 PM Nick Desaulniers > > > wrote: > > > > > > > > Also for more

Re: [PATCH net V2] vhost: log dirty page correctly

2019-01-10 Thread Michael S. Tsirkin
On Thu, Jan 10, 2019 at 08:37:17PM +0800, Jason Wang wrote: > > On 2019/1/9 下午10:25, Michael S. Tsirkin wrote: > > On Wed, Jan 09, 2019 at 03:29:47PM +0800, Jason Wang wrote: > > > Vhost dirty page logging API is designed to sync through GPA. But we > > > try to log GIOVA when device IOTLB is

[PATCH] tty/serial: emit CR before NL in RISC-V SBL console

2019-01-10 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- drivers/tty/serial/earlycon-riscv-sbi.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/earlycon-riscv-sbi.c b/drivers/tty/serial/earlycon-riscv-sbi.c index e1a551aae3..9c51b945b5 100644 ---

Re: [PATCH v2 1/4] tee: add bus driver framework for TEE based devices

2019-01-10 Thread Daniel Thompson
On Thu, Jan 10, 2019 at 05:54:54PM +0530, Sumit Garg wrote: > Introduce a generic TEE bus driver concept for TEE based kernel drivers > which would like to communicate with TEE based devices/services. > > In this TEE bus concept, devices/services are identified via Universally > Unique Identifier

Re: [PATCH v2] ARM: dts: imx: Add Y Soft IOTA Draco, Hydra and Ursa boards

2019-01-10 Thread Vokáč Michal
On 10.1.2019 14:57, Shawn Guo wrote: > @Vokáč, > > Please generate your patches against my for-next branch with dt-bindings > being separate patch from dts one. OK, thank you Shawn. Michal

Re: [PATCH v4 1/2] crypto: talitos - reorder code in talitos_edesc_alloc()

2019-01-10 Thread Herbert Xu
On Tue, Jan 08, 2019 at 06:56:46AM +, Christophe Leroy wrote: > This patch moves the mapping of IV after the kmalloc(). This > avoids having to unmap in case kmalloc() fails. > > Signed-off-by: Christophe Leroy > --- > new in v4 > > drivers/crypto/talitos.c | 25 +++--

Re: [PATCH v9 14/27] pwm: jz4740: Improve algorithm of clock calculation

2019-01-10 Thread Paul Cercueil
Adding Stephen to the discussion. Adding Stephen to the discussion. On Sat, Jan 5, 2019 at 6:27 PM, Uwe Kleine-König wrote: Hello Paul, On Sat, Jan 05, 2019 at 06:05:38PM -0300, Paul Cercueil wrote: On Sat, Jan 5, 2019 at 4:57 PM, Uwe Kleine-König wrote: > You are assuming stuff here

Re: [PATCH v3 2/6] static_call: Add basic static call infrastructure

2019-01-10 Thread Edward Cree
On 09/01/19 22:59, Josh Poimboeuf wrote: > Static calls are a replacement for global function pointers. They use > code patching to allow direct calls to be used instead of indirect > calls. They give the flexibility of function pointers, but with > improved performance. This is especially

Re: [PATCH 0/3] Fix virtio-blk issue with SWIOTLB

2019-01-10 Thread Christoph Hellwig
On Thu, Jan 10, 2019 at 02:44:30PM +0100, Joerg Roedel wrote: > Hi, > > there is a problem with virtio-blk driven devices when > virtio-ring uses SWIOTLB through the DMA-API. This happens > for example in AMD-SEV enabled guests, where the guest RAM > is mostly encrypted and all emulated DMA has

[PATCH RESEND] crypto: caam - move shared symbols in a common location

2019-01-10 Thread Horia Geantă
There are several issues with symbols shared b/w: -caam/jr and caam/qi drivers on one hand -caam/qi2 driver on the other hand Commit 52813ab24959 ("crypto: caam/qi2 - avoid double export") fixed some of them, however compilation still fails for CRYPTO_DEV_FSL_CAAM=m and

Re: [RFC PATCH V2 3/4] crypto: Add Xilinx SHA3 driver

2019-01-10 Thread Corentin Labbe
On Wed, Jan 09, 2019 at 02:56:24PM +0530, Kalyani Akula wrote: > This patch adds SHA3 driver support for the Xilinx > ZynqMP SoC. > > Signed-off-by: Kalyani Akula > --- > drivers/crypto/Kconfig | 10 ++ > drivers/crypto/Makefile |1 + > drivers/crypto/zynqmp-sha.c | 305 >

Re: [PATCH v2] ARM: dts: imx: Add Y Soft IOTA Draco, Hydra and Ursa boards

2019-01-10 Thread Shawn Guo
On Tue, Jan 08, 2019 at 12:11:50PM -0600, Rob Herring wrote: > Humm, I thought Shawn had applied to his tree as there were some conflicts. > > Shawn, do you need me to resend? Sorry. I was actually dropping the conflicting changes from my tree and expecting you send the json-schema patch via

[GIT PULL] sound fixes for 5.0-rc2

2019-01-10 Thread Takashi Iwai
Linus, please pull sound fixes for v5.0-rc2 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-5.0-rc2 The topmost commit is d1dd42110d2727e81b9265841a62bc84c454c3a2 sound fixes for 5.0-rc2 A

Re: [PATCH v15 10/11] livepatch: Remove ordering (stacking) of the livepatches

2019-01-10 Thread Miroslav Benes
On Wed, 9 Jan 2019, Petr Mladek wrote: > The atomic replace and cumulative patches were introduced as a more secure > way to handle dependent patches. They simplify the logic: > > + Any new cumulative patch is supposed to take over shadow variables > and changes made by callbacks from

Re: [Tee-dev] [PATCH v2 4/4] hwrng: add OP-TEE based rng driver

2019-01-10 Thread Joakim Bech
On Thu, Jan 10, 2019 at 05:54:57PM +0530, Sumit Garg wrote: > On ARM SoC's with TrustZone enabled, peripherals like entropy sources > might not be accessible to normal world (linux in this case) and rather > accessible to secure world (OP-TEE in this case) only. So this driver > aims to provides a

[PATCH v5 11/12] x86: perf/core: strengthen exclude checks with PERF_PMU_CAP_NO_EXCLUDE

2019-01-10 Thread Andrew Murray
For x86 PMUs that do not support context exclusion let's advertise the PERF_PMU_CAP_NO_EXCLUDE capability. This ensures that perf will prevent us from handling events where any exclusion flags are set. Let's also remove the now unnecessary check for exclusion flags. This change means that

[PATCH v5 12/12] perf/core: remove unused perf_flags

2019-01-10 Thread Andrew Murray
Now that perf_flags is not used we remove it. Signed-off-by: Andrew Murray --- include/uapi/linux/perf_event.h | 2 -- tools/include/uapi/linux/perf_event.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index

[PATCH v5 10/12] x86: perf/core: use PERF_PMU_CAP_NO_EXCLUDE for exclude incapable PMUs

2019-01-10 Thread Andrew Murray
For drivers that do not support context exclusion let's advertise the PERF_PMU_CAP_NOEXCLUDE capability. This ensures that perf will prevent us from handling events where any exclusion flags are set. Let's also remove the now unnecessary check for exclusion flags. PMU drivers that support at

[PATCH v5 07/12] drivers/perf: perf/core: use PERF_PMU_CAP_NO_EXCLUDE for exclude incapable PMUs

2019-01-10 Thread Andrew Murray
For drivers that do not support context exclusion let's advertise the PERF_PMU_CAP_NO_EXCLUDE capability. This ensures that perf will prevent us from handling events where any exclusion flags are set. Let's also remove the now unnecessary check for exclusion flags. Signed-off-by: Andrew Murray

[PATCH v5 05/12] arm: perf: conditionally use PERF_PMU_CAP_NO_EXCLUDE

2019-01-10 Thread Andrew Murray
The ARM PMU driver can be used to represent a variety of ARM based PMUs. Some of these PMUs do not provide support for context exclusion, where this is the case we advertise the PERF_PMU_CAP_NO_EXCLUDE capability to ensure that perf prevents us from handling events where any exclusion flags are

[PATCH v5 09/12] powerpc: perf/core: use PERF_PMU_CAP_NO_EXCLUDE for exclude incapable PMUs

2019-01-10 Thread Andrew Murray
For PowerPC PMUs that do not support context exclusion let's advertise the PERF_PMU_CAP_NO_EXCLUDE capability. This ensures that perf will prevent us from handling events where any exclusion flags are set. Let's also remove the now unnecessary check for exclusion flags. Signed-off-by: Andrew

[PATCH v5 08/12] drivers/perf: perf/core: strengthen exclude checks with PERF_PMU_CAP_NO_EXCLUDE

2019-01-10 Thread Andrew Murray
For drivers that do not support context exclusion let's advertise the PERF_PMU_CAP_NO_EXCLUDE capability. This ensures that perf will prevent us from handling events where any exclusion flags are set. Let's also remove the now unnecessary check for exclusion flags. This change means that

[PATCH v5 06/12] arm: perf/core: use PERF_PMU_CAP_NO_EXCLUDE for exclude incapable PMUs

2019-01-10 Thread Andrew Murray
For drivers that do not support context exclusion let's advertise the PERF_PMU_CAP_NO_EXCLUDE capability. This ensures that perf will prevent us from handling events where any exclusion flags are set. Let's also remove the now unnecessary check for exclusion flags. Signed-off-by: Andrew Murray

[PATCH v5 03/12] perf/core: add PERF_PMU_CAP_NO_EXCLUDE for exclusion incapable PMUs

2019-01-10 Thread Andrew Murray
Many PMU drivers do not have the capability to exclude counting events that occur in specific contexts such as idle, kernel, guest, etc. These drivers indicate this by returning an error in their event_init upon testing the events attribute flags. This approach is error prone and often

[PATCH v5 02/12] perf/core: add function to test for event exclusion flags

2019-01-10 Thread Andrew Murray
Add a function that tests if any of the perf event exclusion flags are set on a given event. Signed-off-by: Andrew Murray --- include/linux/perf_event.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 1d5c551..54a78d2

[PATCH v5 01/12] perf/doc: update design.txt for exclude_{host|guest} flags

2019-01-10 Thread Andrew Murray
Update design.txt to reflect the presence of the exclude_host and exclude_guest perf flags. Signed-off-by: Andrew Murray --- tools/perf/design.txt | 4 1 file changed, 4 insertions(+) diff --git a/tools/perf/design.txt b/tools/perf/design.txt index a28dca2..0453ba2 100644 ---

[PATCH v5 04/12] alpha: perf/core: strengthen exclude checks with PERF_PMU_CAP_NO_EXCLUDE

2019-01-10 Thread Andrew Murray
As the Alpha PMU doesn't support context exclusion let's advertise the PERF_PMU_CAP_NO_EXCLUDE capability. This ensures that perf will prevent us from handling events where any exclusion flags are set. Let's also remove the now unnecessary check for exclusion flags. This change means that

[PATCH v5 00/12] perf/core: Generalise event exclusion checking

2019-01-10 Thread Andrew Murray
Many PMU drivers do not have the capability to exclude counting events that occur in specific contexts such as idle, kernel, guest, etc. These drivers indicate this by returning an error in their event_init upon testing the events attribute flags. However this approach requires that each time a

Re: [PATCH v1 0/3] reduce tty latency

2019-01-10 Thread Greg Kroah-Hartman
On Thu, Jan 10, 2019 at 11:12:29AM +0100, Oleksij Rempel wrote: > This patch set is reducing latency on tty path. > For testing I used hackbench running on all cores of 4 core system and > high prioritized application sending and receiving packets over tty interface > with loop-back adapter. Odd,

[PATCH v2 3/3] rpmsg: virtio: allocate buffer from parent

2019-01-10 Thread Loic Pallardy
Remoteproc is now capable to create one specific sub-device per virtio link to associate a dedicated memory pool. This implies to change device used by virtio_rpmsg for buffer allocation from grand-parent to parent. Signed-off-by: Loic Pallardy Reviewed-by: Anup Patel Tested-by: Anup Patel ---

[PATCH v2 2/3] remoteproc: st: add reserved memory support

2019-01-10 Thread Loic Pallardy
ST remote processor needs some specified memory regions for firmware and IPC. Memory regions are defined as reserved memory and should be registered in remoteproc core thanks to rproc_add_carveout function before rproc_start. For this, st rproc driver implements prepare ops. Signed-off-by: Loic

[PATCH v2 1/3] remoteproc: create vdev subdevice with specific dma memory pool

2019-01-10 Thread Loic Pallardy
This patch creates a dedicated vdev subdevice for each vdev declared in firmware resource table and associates carveout named "vdev%dbuffer" (with %d vdev index in resource table) if any as dma coherent memory pool. Then vdev subdevice is used as parent for virtio device. Signed-off-by: Loic

[PATCH v2 0/3] remoteproc: complete fixed memory region support

2019-01-10 Thread Loic Pallardy
This new series corresponds to the remaining patches from [1] addressing fixed memory region support for remote processor. The three remaining patches allow to: - assign a specific memory region to vdev sub device. As all virtio based services are using virtio device parent for memory

[PATCH v2 3/7] remoteproc: fix rproc_alloc_carveout() bad variable cast

2019-01-10 Thread Loic Pallardy
As dma member of struct rproc_mem_entry is dma_addr_t, no need to cast in u32. Fixes: d7c51706d095 ("remoteproc: add alloc ops in rproc_mem_entry struct") Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 7/7] remoteproc: fix rproc_check_carveout_da() returned error and comments

2019-01-10 Thread Loic Pallardy
Fix typo in comments. Change returned error from ENOMEM to EINVAL as not dealing with memory allocation. Remove carveout forced da update and return an error when no configuration match Fixes: c874bf59add0 ("remoteproc: add helper function to check carveout device address") Signed-off-by: Loic

[PATCH v2 4/7] remoteproc: add warning on resource table cast

2019-01-10 Thread Loic Pallardy
Today resource table supports only 32bit address fields. This is not compliant with 64bit platform for which addresses are cast in 32bit. This patch adds warn messages when address cast is done. Signed-off-by: Loic Pallardy --- Changes from v1: - modify implementation to display warning message

[PATCH v2 6/7] remoteproc: fix trace buffer va initialization

2019-01-10 Thread Loic Pallardy
With rproc_alloc_registered_carveouts() introduction, carveouts are allocated after resource table parsing. rproc_da_to_va() may return NULL at trace resource registering. This patch modifies trace debufs registering to provide device address (da) instead of va. da to va translation is done at

[PATCH v2 5/7] remoteproc: fix rproc_alloc_carveout() for rproc with iommu domain

2019-01-10 Thread Loic Pallardy
Correct remoteproc core behavior when memory carveout device address is fixed in resource table and rproc device doesn't have associated IOMMU. Current returned error is breaking legacy on TI platforms. This patch restores previous behavior. It adds a warn message when allocation doesn't fit

[PATCH v2 2/7] remoteproc: fix rproc_da_to_va in case of unallocated carveout

2019-01-10 Thread Loic Pallardy
With introduction of rproc_alloc_registered_carveouts() which delays carveout allocation just before the start of the remote processor, rproc_da_to_va() could be called before all carveouts are allocated. This patch adds a check in rproc_da_to_va() to return NULL if carveout is not allocated.

[PATCH v2 1/7] remoteproc: correct rproc_mem_entry_init() comments

2019-01-10 Thread Loic Pallardy
Add alloc parameter description and correct comment about release one. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index

[PATCH v2 0/7] remoteproc: Fixes for memoy carveout management

2019-01-10 Thread Loic Pallardy
These patches fix the comments sent on remoteproc mailing list after acceptation of memory carveout patch series [1]. In few words, series corrects: - memory carveout allocation for rproc without iommu - rproc_da_to_va and trace buffer access to take into account late carveout allocation -

[PATCH v2 4/4] usb: musb: Kconfig: Drop dependency on CONFIG_USB for jz4740

2019-01-10 Thread Paul Cercueil
The Kconfig entry previously depended on USB_OTG_BLACKLIST_HUB unconditionally, which is an option that is only available when CONFIG_USB is enabled. However, the USB IP in the JZ4740 SoC does not support host mode, only gadget mode, so it makes sense to allow it to build when CONFIG_USB is not

[PATCH v1] fs/jfs: Switch to use new generic UUID API

2019-01-10 Thread Andy Shevchenko
There are new types and helpers that are supposed to be used in new code. As a preparation to get rid of legacy types and API functions do the conversion here. Signed-off-by: Andy Shevchenko --- - not tested on real FS fs/jfs/jfs_incore.h | 6 -- fs/jfs/jfs_logmgr.c | 17

[PATCH 3/3] virtio-blk: Consider virtio_max_dma_size() for maximum segment size

2019-01-10 Thread Joerg Roedel
From: Joerg Roedel Segments can't be larger than the maximum DMA allocation size supported by virtio on the platform. Take that into account when setting the maximum segment size for a block device. Signed-off-by: Joerg Roedel --- drivers/block/virtio_blk.c | 10 ++ 1 file changed, 6

[PATCH v2 2/4] usb: musb: jz4740: Add support for devicetree

2019-01-10 Thread Paul Cercueil
Add support for probing the driver from devicetree. Signed-off-by: Paul Cercueil --- v2: Add MODULE_DEVICE_TABLE and wrap inside CONFIG_OF drivers/usb/musb/jz4740.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/musb/jz4740.c b/drivers/usb/musb/jz4740.c index

[PATCH 2/3] virtio: Introduce virtio_max_dma_size()

2019-01-10 Thread Joerg Roedel
From: Joerg Roedel This function returns the maximum segment size for a single dma transaction of a virtio device. The possible limit comes from the SWIOTLB implementation in the Linux kernel, that has an upper limit of (currently) 256kb of contiguous memory it can map. The functions return the

Re: [PATCH v15 08/11] livepatch: Remove Nop structures when unused

2019-01-10 Thread Miroslav Benes
On Wed, 9 Jan 2019, Petr Mladek wrote: > Replaced patches are removed from the stack when the transition is > finished. It means that Nop structures will never be needed again > and can be removed. Why should we care? > > + Nop structures give the impression that the function is patched >

Re: [PATCH RFC 1/4] include/linux/compiler*.h: fix OPTIMIZER_HIDE_VAR

2019-01-10 Thread Dan Carpenter
On Wed, Jan 09, 2019 at 09:36:41PM -0500, Michael S. Tsirkin wrote: > On Wed, Jan 09, 2019 at 11:35:52AM +0100, Miguel Ojeda wrote: > > On Tue, Jan 8, 2019 at 6:44 PM Nick Desaulniers > > wrote: > > > > > > Also for more context, see: > > > commit 7829fb09a2b4 ("lib: make memzero_explicit more

[PATCH 1/3] swiotlb: Export maximum allocation size

2019-01-10 Thread Joerg Roedel
From: Joerg Roedel The SWIOTLB implementation has a maximum size it can allocate dma-handles for. This needs to be exported so that device drivers don't try to allocate larger chunks. This is especially important for block device drivers like virtio-blk, that might do DMA through SWIOTLB.

Re: [PATCH 1/2] perf powerpc: Rework syscall table generation

2019-01-10 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 10, 2019 at 03:19:35PM +0530, Ravi Bangoria escreveu: > Commit aff850393200 ("powerpc: add system call table generation support") > changed how systemcall table is generated for powerpc. Incorporate these > changes into perf as well. Thanks, applied and performed the following tests,

Re: [PATCH v5 2/2] dt-bindings: spi: Document Renesas R-Car RPC-IF controller bindings

2019-01-10 Thread Marek Vasut
On 1/10/19 10:31 AM, masonccy...@mxic.com.tw wrote: > Hi Marek, Hi, >> "Marek Vasut" >> 2019/01/08 下午 08:06 >> > diff --git a/Documentation/devicetree/bindings/spi/spi-renesas- >> rpc.txt b/Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt >> > new file mode 100644 >> > index

[PATCH rdma-rc 1/3] RDMA/hns: Fix the Oops during rmmod or insmod ko when reset occurs

2019-01-10 Thread Wei Hu (Xavier)
In the reset process, the hns3 NIC driver notifies the RoCE driver to perform reset related processing by calling the .reset_notify() interface registered by the RoCE driver in hip08 SoC. In the current version, if a reset occurs simultaneously during the execution of rmmod or insmod ko, there

[PATCH 0/3] Fix virtio-blk issue with SWIOTLB

2019-01-10 Thread Joerg Roedel
Hi, there is a problem with virtio-blk driven devices when virtio-ring uses SWIOTLB through the DMA-API. This happens for example in AMD-SEV enabled guests, where the guest RAM is mostly encrypted and all emulated DMA has to happen to/from the SWIOTLB aperture. The problem is a limitation of the

Re: [PATCH v2 18/34] dt-bindings: arm: Convert FSL board/soc bindings to json-schema

2019-01-10 Thread Shawn Guo
On Thu, Jan 10, 2019 at 10:44:03AM +, Vokáč Michal wrote: ... > > What happened to this? It seems the patch did not hit v5.0-rc1. > > Hi Shawn, > Rob actually asked you a similar question two days ago.. > > https://lkml.org/lkml/2019/1/8/754 Oops, it seems there were some miscommunication

[PATCH v2 3/4] usb: musb: Kconfig: Drop dependency on MACH_JZ4740 for jz4740

2019-01-10 Thread Paul Cercueil
Depending on MACH_INGENIC prevent us from creating a generic kernel that works on more than one MIPS board. Instead, we just depend on MIPS being set. Signed-off-by: Paul Cercueil --- v2: Remove info about adding COMPILE_TEST in commit message, as it was there before

[PATCH v2 1/4] Documentation: dt: Add binding info for jz4740-musb driver

2019-01-10 Thread Paul Cercueil
This commit adds documentation for the device-tree bindings of the jz4740-musb driver, which provides support for the USB gadget mode of the JZ4740 and similar SoCs from Ingenic. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring --- v2: No change .../bindings/usb/ingenic,jz4740-musb.txt

Re: [PATCH v2 1/2] media: uapi: Add H264 low-level decoder API compound controls.

2019-01-10 Thread ayaka
I forget a important thing, for the rkvdec and rk hevc decoder, it would requests cabac table, scaling list, picture parameter set and reference picture storing in one or various of DMA buffers. I am not talking about the data been parsed, the decoder would requests a raw data. For the pps

Re: [linux-sunxi] [PATCH v2 1/2] media: v4l: Add definitions for the HEVC slice format and controls

2019-01-10 Thread ayaka
I forget a important thing, for the rkvdec and rk hevc decoder, it would requests cabac table, scaling list, picture parameter set and reference picture storing in one or various of DMA buffers. I am not talking about the data been parsed, the decoder would requests a raw data. For the pps

Re: [PATCH 2/2] i2c: Clear client->irq in i2c_device_remove

2019-01-10 Thread Charles Keepax
On Thu, Jan 10, 2019 at 12:47:56AM +0300, Yauhen Kharuzhy wrote: > On Fri, Oct 19, 2018 at 09:59:58AM +0100, Charles Keepax wrote: > > The IRQ will be mapped in i2c_device_probe only if client->irq is zero and > > i2c_device_remove does not clear this. When rebinding an I2C device, > > whos IRQ

[PATCH] scsi: hisi_sas: Set protection parameters prior to adding SCSI host

2019-01-10 Thread John Garry
Currently we set the protection parameters after calling scsi_add_host() for v3 hw. They should be set beforehand, so make this change. Appearantly this fixes our DIX issue (not mainline yet) also, but more testing required. Fixes: d6a9000b81be ("scsi: hisi_sas: Add support for DIF feature for

Re: [PATCH] wireless: ath: return error code upstream

2019-01-10 Thread Kalle Valo
Kangjie Lu wrote: > ath6kl_wmi_cmd_send could fail, so let's return its error code upstream. > > Signed-off-by: Kangjie Lu > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. fc6a6521556c ath6kl: return error code in ath6kl_wmi_set_roam_lrssi_cmd() --

Re: [GIT PULL] csky fixup for linux-5.0-rc1

2019-01-10 Thread Guo Ren
On Thu, Jan 10, 2019 at 08:26:13AM -0500, Konstantin Ryabitsev wrote: > On Thu, Jan 10, 2019 at 04:02:03PM +0800, Guo Ren wrote: > > Can I take back this pull request and send a new pull request with > > https:// URLs ? > > It's not necessary at this point, as the pull request has already been >

Re: [PATCH] [v2] hwrng: core: Fix missing check during driver release

2019-01-10 Thread Herbert Xu
On Sun, Jan 06, 2019 at 11:26:12AM -0600, Aditya Pakki wrote: > devres_release can return -ENOENT if the device is not freed. The fix > throws a warning consistent with other invocations. > > Signed-off-by: Aditya Pakki > --- > drivers/char/hw_random/core.c | 3 ++- > 1 file changed, 2

Re: [GIT PULL] csky fixup for linux-5.0-rc1

2019-01-10 Thread Konstantin Ryabitsev
On Thu, Jan 10, 2019 at 04:02:03PM +0800, Guo Ren wrote: > Can I take back this pull request and send a new pull request with > https:// URLs ? It's not necessary at this point, as the pull request has already been processed. However, your future emails should have the public URL of the git

<    4   5   6   7   8   9   10   11   12   >