Re: [PATCH v2 05/14] clk: qcom: apcs-msm8916: get parent clock names from DT

2019-02-22 Thread Stephen Boyd
Quoting Jorge Ramirez-Ortiz (2019-01-28 10:32:52) > @@ -61,6 +65,25 @@ static int qcom_apcs_msm8916_clk_probe(struct > platform_device *pdev) > if (!a53cc) > return -ENOMEM; > > + /* check if the parent names are present in the device tree */ This looks odd. > +

Re: [PATCHv6 06/10] node: Add memory-side caching attributes

2019-02-22 Thread Keith Busch
On Fri, Feb 22, 2019 at 11:12:38AM +0100, Brice Goglin wrote: > Le 14/02/2019 à 18:10, Keith Busch a écrit : > > +What: > > /sys/devices/system/node/nodeX/memory_side_cache/indexY/size > > +Date: December 2018 > > +Contact: Keith Busch > > +Description: > > +

Re: [PATCH] iommu/vt-d: Handle hotplug devices' default identity mapping setting

2019-02-22 Thread Jis Ben
An NVMe device configured in static identity mapping should also cause this error when removed and rescanned. Essentially, a device that does a DMA when its driver inits, or one that you can force a DMA from. -Jis On Fri, Feb 22, 2019 at 12:28 AM James Dong wrote: > > Baolu: > > The

Re: [PATCH] sched/x86: Save [ER]FLAGS on context switch

2019-02-22 Thread Thomas Gleixner
On Thu, 21 Feb 2019, Linus Torvalds wrote: > On Thu, Feb 21, 2019 at 1:35 PM Thomas Gleixner wrote: > > > > IMNSHO any call inside a AC region is a bug lurking round the corner. The > > only thing which is tolerable is an exception of some sort. > > > > Enforce that with objtool. End of story. >

Re: [PATCH v2 02/14] mbox: qcom: add APCS child device for QCS404

2019-02-22 Thread Stephen Boyd
Quoting Jorge Ramirez-Ortiz (2019-01-28 10:32:49) > There is clock controller functionality in the APCS hardware block of > qcs404 devices similar to msm8916. > > Co-developed-by: Niklas Cassel > Signed-off-by: Niklas Cassel > Signed-off-by: Jorge Ramirez-Ortiz > --- >

Re: [PATCH v2 01/14] clk: qcom: gcc: limit GPLL0_AO_OUT operating frequency

2019-02-22 Thread Stephen Boyd
Quoting Jorge Ramirez-Ortiz (2019-01-28 10:32:48) > Limit the GPLL0_AO_OUT_MAIN operating frequency as per its hardware > specifications. > > Co-developed-by: Niklas Cassel > Signed-off-by: Niklas Cassel > Signed-off-by: Jorge Ramirez-Ortiz Acked-by: Stephen Boyd > diff --git

Re: [PATCH v2 07/14] clk: qcom: hfpll: register as clock provider

2019-02-22 Thread Stephen Boyd
Quoting Jorge Ramirez-Ortiz (2019-01-28 10:32:54) > Make the output of the high frequency pll a clock provider. > On the QCS404 this PLL controls cpu frequency scaling. > > Co-developed-by: Niklas Cassel > Signed-off-by: Niklas Cassel > Signed-off-by: Jorge Ramirez-Ortiz > --- Acked-by:

Re: [PATCH net] net: socket: set sock->sk to NULL after calling proto_ops::release()

2019-02-22 Thread Cong Wang
On Thu, Feb 21, 2019 at 2:14 PM Eric Biggers wrote: > > From: Eric Biggers > > Commit 9060cb719e61 ("net: crypto set sk to NULL when af_alg_release.") > fixed a use-after-free in sockfs_setattr() when an AF_ALG socket is > closed concurrently with fchownat(). However, it ignored that many >

Re: [PATCH 2/3] dt-bindings: net: btusb: add QCA6174A IDs

2019-02-22 Thread Matthias Kaehlcke
On Thu, Feb 21, 2019 at 04:34:02PM -0800, Brian Norris wrote: > There are two USB PID/VID variations I've seen for this chip, and I want > to utilize the 'interrupts' property defined here already. > > Signed-off-by: Brian Norris > --- > Documentation/devicetree/bindings/net/btusb.txt | 3 +++ >

Re: [PATCH] drm/bochs: Fix the ID mismatch error

2019-02-22 Thread Alistair Francis
On Thu, Feb 21, 2019 at 9:37 PM kra...@redhat.com wrote: > > On Thu, Feb 21, 2019 at 10:44:06AM -0800, Alistair Francis wrote: > > On Thu, Feb 21, 2019 at 3:52 AM kra...@redhat.com wrote: > > > > > > On Thu, Feb 21, 2019 at 12:33:03AM +, Alistair Francis wrote: > > > > When running RISC-V

[PATCH v5 2/8] ARM: trusted_foundations: Make prepare_idle call to take mode argument

2019-02-22 Thread Dmitry Osipenko
The Trusted Foundations firmware call varies depending on the required suspend-mode. Make the firmware API to take the mode argument in order to expose all of the modes to firmware user. Signed-off-by: Dmitry Osipenko --- arch/arm/firmware/trusted_foundations.c| 29 --

[PATCH v5 3/8] ARM: trusted_foundations: Provide information about whether firmware is registered

2019-02-22 Thread Dmitry Osipenko
Add a helper that provides information about whether Trusted Foundations firmware operations have been registered. Signed-off-by: Dmitry Osipenko --- arch/arm/firmware/trusted_foundations.c| 5 + arch/arm/include/asm/trusted_foundations.h | 7 +++ 2 files changed, 12 insertions(+)

[PATCH v5 8/8] ARM: tegra: Add firmware calls required for suspend-resume

2019-02-22 Thread Dmitry Osipenko
In order to resume CPU from suspend via trusted Foundations firmware, the LP1/LP2 boot vectors and CPU caches need to be set up using the firmware calls. Signed-off-by: Dmitry Osipenko --- arch/arm/mach-tegra/pm.c| 53 ++---

[PATCH v5 5/8] ARM: tegra: Don't apply CPU erratas in insecure mode

2019-02-22 Thread Dmitry Osipenko
CPU isn't allowed to touch secure registers while running under secure monitor. Hence skip applying of CPU erratas in the reset handler if Trusted Foundations firmware presents. Partially based on work done by Michał Mirosław [1]. [1] https://www.spinics.net/lists/arm-kernel/msg594768.html

[PATCH v2 2/3] riscv: io: Update __io_[p]ar() macros to take an argument

2019-02-22 Thread Will Deacon
The definitions of the __io_[p]ar() macros in asm-generic/io.h take the value returned by the preceding I/O read as an argument so that architectures can use this to create order with a subsequent delayX() routine using a dependency. Update the riscv barrier definitions to match, although the

[PATCH v5 7/8] ARM: tegra: Support L2 cache maintenance done via firmware

2019-02-22 Thread Dmitry Osipenko
Trusted Foundations firmware require MMU to be enabled for L2 cache maintenance on Tegra30, hence perform the maintenance early/late on suspend-resume respectively. Signed-off-by: Dmitry Osipenko --- arch/arm/mach-tegra/pm.c| 36

[PATCH v2 0/3] Ensure inX() is ordered wrt delay() routines

2019-02-22 Thread Will Deacon
Hi all, This is version two of the patches I previously posted here: https://lore.kernel.org/lkml/20190211174544.4302-1-will.dea...@arm.com/T/#u Changes since v2 include: * Incorporate riscv changes from Palmer * Update macro definitions as suggested by Geert * Extend to cover non-port

[PATCH v2 3/3] arm64: io: Hook up __io_par() for inX() ordering

2019-02-22 Thread Will Deacon
Ensure that inX() provides the same ordering guarantees as readX() by hooking up __io_par() so that it maps directly to __iormb(). Reported-by: Andrew Murray Signed-off-by: Will Deacon --- arch/arm64/include/asm/io.h | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 1/3] asm-generic/io: Pass result of I/O accessor to __io_[p]ar()

2019-02-22 Thread Will Deacon
The inX() and readX() I/O accessors must enforce ordering against subsequent calls to the delay() routines, so that a read-back from a device can be used to postpone a subsequent write to the same device. On some architectures, including arm64, this ordering can only be achieved by creating a

[PATCH v5 0/8] Support Trusted Foundations firmware on Tegra30

2019-02-22 Thread Dmitry Osipenko
Hello, This patchset adds support for the Trusted Foundations firmware on NVIDIA Tegra30. Pretty much all of Tegra30 consumer devices have that firmware and upstream kernel can't boot on those devices without the firmware support. Changelog: v5: - Fixed machine hanging on disabling D-cache

Re: [PATCH 1/3] Bluetooth: btusb: add QCA6174A compatible properties

2019-02-22 Thread Matthias Kaehlcke
On Thu, Feb 21, 2019 at 04:34:01PM -0800, Brian Norris wrote: > We may need to specify a GPIO wake pin for this device, so add a > compatible property for it. > > There are at least to USB PID/VID variations of this chip: one with a > Lite-On ID and one with an Atheros ID. > > Signed-off-by:

[PATCH v5 1/8] ARM: trusted_foundations: Implement L2 cache initialization callback

2019-02-22 Thread Dmitry Osipenko
Implement L2 cache initialization firmware callback that should be invoked early during boot in order to set up the required outer cache driver's callbacks. Partially based on work done by Michał Mirosław [1]. [1] https://www.spinics.net/lists/arm-kernel/msg594765.html Signed-off-by: Dmitry

[PATCH v5 4/8] ARM: tegra: Set up L2 cache using Trusted Foundations firmware

2019-02-22 Thread Dmitry Osipenko
On Tegra30 L2 cache should be initialized using firmware call if CPU is running in insecure mode. Initialize L2 cache and set up the outer-cache callbacks early during boot using the firmware API. Signed-off-by: Dmitry Osipenko --- arch/arm/mach-tegra/tegra.c | 10 ++ 1 file changed, 10

[PATCH v5 6/8] ARM: tegra: Always boot CPU in ARM-mode

2019-02-22 Thread Dmitry Osipenko
CPU always jumps into reset handler in ARM-mode from the Trusted Foundations firmware, hence let's make CPU to always jump into kernel in ARM-mode regardless of the firmware presence. This is required to make Thumb-2 kernel working with the Trusted Foundations firmware on Tegra30. Signed-off-by:

Re: [PATCH 4/5] mm/vmscan: remove unused lru_pages argument

2019-02-22 Thread Johannes Weiner
On Fri, Feb 22, 2019 at 08:43:36PM +0300, Andrey Ryabinin wrote: > The argument 'unsigned long *lru_pages' passed around with no purpose, > remove it. The reference to this was removed recently in 9092c71bb724 ("mm: use sc->priority for slab shrink targets"), might be worth pointing out for

Re: [PATCH v2] kernel/ucounts: expose count of inotify watches in use

2019-02-22 Thread Albert Vaca Cintora
On Fri, Feb 1, 2019 at 9:42 PM Albert Vaca Cintora wrote: > > Adds a readonly 'current_inotify_watches' entry to the user sysctl table. > The handler for this entry is a custom function that ends up calling > proc_dointvec. Said sysctl table already contains 'max_inotify_watches' > and it gets

Re: [PATCH 1/5] mm/workingset: remove unused @mapping argument in workingset_eviction()

2019-02-22 Thread Johannes Weiner
On Fri, Feb 22, 2019 at 08:43:33PM +0300, Andrey Ryabinin wrote: > workingset_eviction() doesn't use and never did use the @mapping argument. > Remove it. > > Signed-off-by: Andrey Ryabinin > Cc: Johannes Weiner > Cc: Michal Hocko > Cc: Vlastimil Babka > Cc: Rik van Riel > Cc: Mel Gorman

[PATCH RFC] mm/vmscan: try to protect active working set of cgroup from reclaim.

2019-02-22 Thread Andrey Ryabinin
In a presence of more than 1 memory cgroup in the system our reclaim logic is just suck. When we hit memory limit (global or a limit on cgroup with subgroups) we reclaim some memory from all cgroups. This is sucks because, the cgroup that allocates more often always wins. E.g. job that allocates a

Re: [PATCH v2] security: mark expected switch fall-throughs and add a missing break

2019-02-22 Thread James Morris
On Fri, 8 Feb 2019, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch > cases where we are expecting to fall through. > > This patch fixes the following warnings: > > security/integrity/ima/ima_template_lib.c:85:10: warning: this statement may > fall

Re: [PATCH net] net: socket: set sock->sk to NULL after calling proto_ops::release()

2019-02-22 Thread Eric Biggers
Hi Eric, On Fri, Feb 22, 2019 at 09:45:35AM -0800, Eric Dumazet wrote: > > > On 02/21/2019 02:13 PM, Eric Biggers wrote: > > From: Eric Biggers > > > > Commit 9060cb719e61 ("net: crypto set sk to NULL when af_alg_release.") > > fixed a use-after-free in sockfs_setattr() when an AF_ALG socket

[PATCH] docs/memory-barriers.txt: Rewrite "KERNEL I/O BARRIER EFFECTS" section

2019-02-22 Thread Will Deacon
The "KERNEL I/O BARRIER EFFECTS" section of memory-barriers.txt is vague, x86-centric, out-of-date, incomplete and demonstrably incorrect in places. This is largely because I/O ordering is a horrible can of worms, but also because the document has stagnated as our understanding has evolved.

Re: [PATCH v5] PM / sleep: measure the time of filesystem syncing

2019-02-22 Thread Pavel Machek
On Fri 2019-02-22 23:49:04, Harry Pan wrote: > This patch gives the reader an intuitive metric of the time cost by > the kernel issuing a filesystem sync during system sleep; although > developer can guess by the timestamp of next log or enable the ftrace > power event for manual calculation, this

Re: [PATCH v2] security: mark expected switch fall-throughs and add a missing break

2019-02-22 Thread James Morris
On Fri, 22 Feb 2019, Gustavo A. R. Silva wrote: > Hi James, > > I wonder if you can take this, please. Ok -- I had thought you were sending all of these upstream across the board. > > Thanks > -- > Gustavo > > On 2/18/19 8:53 PM, Gustavo A. R. Silva wrote: > > > > > > On 2/8/19 3:13 PM,

[PATCH v4 1/2] dt-bindings: drm: panel: Add Samsung s6e63m0 panel documentation

2019-02-22 Thread Paweł Chmiel
From: Jonathan Bakker This commit adds documentation for Samsung s6e63m0 AMOLED LCD panel driver. Signed-off-by: Jonathan Bakker Signed-off-by: Paweł Chmiel Reviewed-by: Rob Herring --- Changes from v2: - Added Reviewed-by Changes from v1: - Add missing subject prefix - Rename

[PATCH v4 2/2] drm/panel: Add driver for Samsung S6E63M0 panel

2019-02-22 Thread Paweł Chmiel
This patch adds Samsung S6E63M0 AMOLED LCD panel driver, connected over spi. It's based on already removed, non dt s6e63m0 driver and panel-samsung-ld9040. It can be found for example in some of Samsung Aries based phones. Signed-off-by: Paweł Chmiel Reviewed-by: Sam Ravnborg Reviewed-by:

Re: [PATCH] RDMA/cma: Make CM response timeout and # CM retries configurable

2019-02-22 Thread Doug Ledford
> On Feb 22, 2019, at 12:14 PM, Steve Wise wrote: > > > On 2/22/2019 10:36 AM, Jason Gunthorpe wrote: >> On Sun, Feb 17, 2019 at 06:09:09PM +0100, Håkon Bugge wrote: >>> During certain workloads, the default CM response timeout is too >>> short, leading to excessive retries. Hence, make it

Re: [PATCH 1/2 v2] kprobe: Do not use uaccess functions to access kernel memory that can fault

2019-02-22 Thread Andy Lutomirski
> On Feb 22, 2019, at 9:43 AM, Linus Torvalds > wrote: > >> On Fri, Feb 22, 2019 at 12:35 AM Masami Hiramatsu >> wrote: >> >> Or, can we do this? >> >> long __probe_user_read(void *dst, const void *src, size_t size) >> { > > Add a > >if (!access_ok(src, size)) >

Re: [PATCH net] net: socket: set sock->sk to NULL after calling proto_ops::release()

2019-02-22 Thread Eric Dumazet
On 02/21/2019 02:13 PM, Eric Biggers wrote: > From: Eric Biggers > > Commit 9060cb719e61 ("net: crypto set sk to NULL when af_alg_release.") > fixed a use-after-free in sockfs_setattr() when an AF_ALG socket is > closed concurrently with fchownat(). However, it ignored that many > other

Re: [PATCH v2] clk: imx: Refactor entire sccg pll clk

2019-02-22 Thread Stephen Boyd
Quoting Abel Vesa (2019-02-22 09:07:32) > Make the entire combination of plls to be one single clock. The parents used > for bypasses are specified each as an index in the parents list. > The determine_rate does a lookup throughout all the possible combinations > for all the divs and returns the

[PATCH] au0828: minor fix to a misleading comment in _close()

2019-02-22 Thread Shuah Khan
Fix misleading comment in _close() Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/au0828/au0828-video.c b/drivers/media/usb/au0828/au0828-video.c index 7876c897cc1d..08f566006a1f 100644

Re: [PATCH net-next v3 3/4] enetc: Add ENETC PF level external MDIO support

2019-02-22 Thread Andrew Lunn
On Fri, Feb 22, 2019 at 05:04:18PM +0200, Claudiu Manoil wrote: > Each ENETC PF has its own MDIO interface, the corresponding > MDIO registers are mapped in the ENETC's Port register block. > The current patch adds a driver for these PF level MDIO buses, > so that each PF can manage directly its

[PATCH 5/5] mm/vmscan: don't forcely shrink active anon lru list

2019-02-22 Thread Andrey Ryabinin
shrink_node_memcg() always forcely shrink active anon list. This doesn't seem like correct behavior. If system/memcg has no swap, it's absolutely pointless to rebalance anon lru lists. And in case we did scan the active anon list above, it's unclear why would we need this additional force scan. If

[PATCH 1/5] mm/workingset: remove unused @mapping argument in workingset_eviction()

2019-02-22 Thread Andrey Ryabinin
workingset_eviction() doesn't use and never did use the @mapping argument. Remove it. Signed-off-by: Andrey Ryabinin Cc: Johannes Weiner Cc: Michal Hocko Cc: Vlastimil Babka Cc: Rik van Riel Cc: Mel Gorman --- include/linux/swap.h | 2 +- mm/vmscan.c | 2 +- mm/workingset.c |

[PATCH 4/5] mm/vmscan: remove unused lru_pages argument

2019-02-22 Thread Andrey Ryabinin
The argument 'unsigned long *lru_pages' passed around with no purpose, remove it. Signed-off-by: Andrey Ryabinin Cc: Johannes Weiner Cc: Michal Hocko Cc: Vlastimil Babka Cc: Rik van Riel Cc: Mel Gorman --- mm/vmscan.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-)

[PATCH 2/5] mm: remove zone_lru_lock() function access ->lru_lock directly

2019-02-22 Thread Andrey Ryabinin
We have common pattern to access lru_lock from a page pointer: zone_lru_lock(page_zone(page)) Which is silly, because it unfolds to this: _DATA(page_to_nid(page))->node_zones[page_zonenum(page)]->zone_pgdat->lru_lock while we can simply do

[PATCH 3/5] mm/compaction: pass pgdat to too_many_isolated() instead of zone

2019-02-22 Thread Andrey Ryabinin
too_many_isolated() in mm/compaction.c looks only at node state, so it makes more sense to change argument to pgdat instead of zone. Signed-off-by: Andrey Ryabinin Cc: Johannes Weiner Cc: Michal Hocko Cc: Vlastimil Babka Cc: Rik van Riel Cc: Mel Gorman --- mm/compaction.c | 19

Re: [PATCH 1/2 v2] kprobe: Do not use uaccess functions to access kernel memory that can fault

2019-02-22 Thread Linus Torvalds
On Fri, Feb 22, 2019 at 12:35 AM Masami Hiramatsu wrote: > > Or, can we do this? > > long __probe_user_read(void *dst, const void *src, size_t size) > { Add a if (!access_ok(src, size)) ret = -EFAULT; else { .. do the pagefault_disable() etc .. } to

[GIT PULL] ARC updates for 5.0 final

2019-02-22 Thread Vineet Gupta
Hi Linus, Please pull bunch of fixes for ARC for 5.0, bunch of those are stable fodder anyways so sooner the better. Thx, -Vineet --> The following changes since commit f17b5f06cb92ef2250513a1e154c47b78df07d40: Linux 5.0-rc4 (2019-01-27 15:18:05 -0800) are available in the

Re: [PATCH V4 2/4] dt-bindings: irq: imx-irqsteer: add multi output interrupts support

2019-02-22 Thread Rob Herring
On Wed, 20 Feb 2019 11:40:43 +, Aisheng Dong wrote: > One irqsteer channel can support up to 8 output interrupts. > > Cc: Marc Zyngier > Cc: Rob Herring > Cc: Shawn Guo > Cc: devicet...@vger.kernel.org > Reviewed-by: Lucas Stach > Signed-off-by: Dong Aisheng > --- > ChangeLog: > v3->v4:

Re: [RFC PATCH] docs/memory-barriers.txt: Rewrite "KERNEL I/O BARRIER EFFECTS" section

2019-02-22 Thread Will Deacon
On Thu, Feb 21, 2019 at 05:22:03PM +1100, Michael Ellerman wrote: > Will Deacon writes: > > [+more ppc folks] > > > > On Mon, Feb 18, 2019 at 04:50:12PM +, Will Deacon wrote: > >> On Wed, Feb 13, 2019 at 10:27:09AM -0800, Linus Torvalds wrote: > >> > Note that even if mmiowb() is expensive

Re: [PATCH V4 1/4] dt-binding: irq: imx-irqsteer: use irq number instead of group number

2019-02-22 Thread Rob Herring
On Wed, 20 Feb 2019 11:40:40 +, Aisheng Dong wrote: > Not all 64 interrupts may be used in one group. e.g. most irqsteer in > imx8qxp and imx8qm subsystems supports only 32 interrupts. > > As the IP integration parameters are Channel number and interrupts number, > let's use fsl,irqs-num to

Re: [PATCH v4 1/3] dt-bindings: phy: Add Stingray USB PHY binding document

2019-02-22 Thread Srinath Mannam
Hi Rob, Thanks for the review, Please find my comments below in line. On Fri, Feb 22, 2019 at 10:50 PM Rob Herring wrote: > > On Wed, Feb 20, 2019 at 04:04:00PM +0530, Srinath Mannam wrote: > > Add DT binding document for Stingray USB PHY. > > > > Signed-off-by: Srinath Mannam > > Reviewed-by:

[PATCH v11 1/5] media: Media Device Allocator API

2019-02-22 Thread Shuah Khan
Media Device Allocator API to allows multiple drivers share a media device. This API solves a very common use-case for media devices where one physical device (an USB stick) provides both audio and video. When such media device exposes a standard USB Audio class, a proprietary Video class, two or

[PATCH v11 3/5] media: media.h: Enable ALSA MEDIA_INTF_T* interface types

2019-02-22 Thread Shuah Khan
Move PCM_CAPTURE, PCM_PLAYBACK, and CONTROL ALSA MEDIA_INTF_T* interface types back into __KERNEL__ scope to get ready for adding ALSA support for these to the media controller. Signed-off-by: Shuah Khan --- include/uapi/linux/media.h | 25 +++-- 1 file changed, 15

[PATCH v11 4/5] sound/usb: Use Media Controller API to share media resources

2019-02-22 Thread Shuah Khan
Media Device Allocator API to allows multiple drivers share a media device. This API solves a very common use-case for media devices where one physical device (an USB stick) provides both audio and video. When such media device exposes a standard USB Audio class, a proprietary Video class, two or

[PATCH v11 2/5] media: change au0828 to use Media Device Allocator API

2019-02-22 Thread Shuah Khan
Media Device Allocator API to allows multiple drivers share a media device. This API solves a very common use-case for media devices where one physical device (an USB stick) provides both audio and video. When such media device exposes a standard USB Audio class, a proprietary Video class, two or

[PATCH v11 5/5] au0828: fix enable and disable source audio and video inconsistencies

2019-02-22 Thread Shuah Khan
Enable and disable source interfaces aren't consistent in enforcing how video and audio share the tuner resource. Fix these issues to enforce the following rules and allow sharing between audio and video applications. - When DVB is streaming, audio/video/vbi/s-video/composite should find the

[PATCH v11 0/5] Media Device Allocator API

2019-02-22 Thread Shuah Khan
Media Device Allocator API to allows multiple drivers share a media device. This API solves a very common use-case for media devices where one physical device (an USB stick) provides both audio and video. When such media device exposes a standard USB Audio class, a proprietary Video class, two or

Re: [PATCH v2 0/2] Inject a PMI for KVM Guest when ToPA buffer is filled

2019-02-22 Thread Paolo Bonzini
On 19/02/19 01:26, Luwei Kang wrote: > Each intel processor trace table of physical addresses (ToPA) entry > has an INT bit. If this bit is set, the processor will signal a > performance-monitoring interrupt (PMI) when the corresponding trace > output region is filled. This patch set will inject a

Re: [PATCH 7/7] libnvdimm/pfn: Fix 'start_pad' implementation

2019-02-22 Thread Jeff Moyer
Dan Williams writes: >> Great! Now let's create another one. >> >> # ndctl create-namespace -m fsdax -s 132m >> libndctl: ndctl_pfn_enable: pfn1.1: failed to enable >> Error: namespace1.2: failed to enable >> >> failed to create namespace: No such device or address >> >> (along with a kernel

Re: [PATCH v7 00/23] locking/lockdep: Add support for dynamic keys

2019-02-22 Thread Bart Van Assche
On 2/22/19 8:26 AM, Peter Zijlstra wrote: I've gone over all and I think it looks ok now; I'll give it another round tomorrow^Wmonday and then queue bits. So far the only changes I've made are the below. I'm not entirely sure on the unconditional validity check on DEBUG_LOCKDEP, maybe I'll add

Re: [PATCH v4 1/3] dt-bindings: phy: Add Stingray USB PHY binding document

2019-02-22 Thread Rob Herring
On Wed, Feb 20, 2019 at 04:04:00PM +0530, Srinath Mannam wrote: > Add DT binding document for Stingray USB PHY. > > Signed-off-by: Srinath Mannam > Reviewed-by: Florian Fainelli > Reviewed-by: Scott Branden > --- > .../bindings/phy/brcm,stingray-usb-phy.txt | 62 >

Re: [PATCH] x86/kvm/mmu: make mmu->prev_roots cache work for NPT case

2019-02-22 Thread Paolo Bonzini
On 22/02/19 17:46, Vitaly Kuznetsov wrote: > I noticed that fast_cr3_switch() always fails when we switch back from L2 > to L1 as it is not able to find a cached root. This is odd: host's CR3 > usually stays the same, we expect to always follow the fast path. Turns > out the problem is that page

Re: [PATCH v2] security: mark expected switch fall-throughs and add a missing break

2019-02-22 Thread Gustavo A. R. Silva
Hi James, I wonder if you can take this, please. Thanks -- Gustavo On 2/18/19 8:53 PM, Gustavo A. R. Silva wrote: > > > On 2/8/19 3:13 PM, Mimi Zohar wrote: >> On Fri, 2019-02-08 at 14:54 -0600, Gustavo A. R. Silva wrote: >>> In preparation to enabling -Wimplicit-fallthrough, mark switch >>>

Re: [PATCH] RDMA/cma: Make CM response timeout and # CM retries configurable

2019-02-22 Thread Steve Wise
On 2/22/2019 10:36 AM, Jason Gunthorpe wrote: > On Sun, Feb 17, 2019 at 06:09:09PM +0100, Håkon Bugge wrote: >> During certain workloads, the default CM response timeout is too >> short, leading to excessive retries. Hence, make it configurable >> through sysctl. While at it, also make number of

Re: [PATCH] x86/kvm/mmu: fix switch between root and guest MMUs

2019-02-22 Thread Paolo Bonzini
On 22/02/19 17:45, Vitaly Kuznetsov wrote: > Commit 14c07ad89f4d ("x86/kvm/mmu: introduce guest_mmu") brought one subtle > change: previously, when switching back from L2 to L1, we were resetting > MMU hooks (like mmu->get_cr3()) in kvm_init_mmu() called from > nested_vmx_load_cr3() and now we do

Re: [PATCH 7/7] libnvdimm/pfn: Fix 'start_pad' implementation

2019-02-22 Thread Dan Williams
On Fri, Feb 22, 2019 at 7:42 AM Jeff Moyer wrote: > > Dan Williams writes: > > >> > However, to fix this situation a non-backwards compatible change > >> > needs to be made to the interpretation of the nd_pfn info-block. > >> > ->start_pad needs to be accounted in ->map.map_offset (formerly > >>

WARNING in xt_compat_add_offset

2019-02-22 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8a61716ff2ab Merge tag 'ceph-for-5.0-rc8' of git://github... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1456fa6cc0 kernel config: https://syzkaller.appspot.com/x/.config?x=7132344728e7ec3f

WARNING in rcu_check_gp_start_stall

2019-02-22 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8a61716ff2ab Merge tag 'ceph-for-5.0-rc8' of git://github... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1531dd3f40 kernel config: https://syzkaller.appspot.com/x/.config?x=7132344728e7ec3f

[PATCH v2] clk: imx: Refactor entire sccg pll clk

2019-02-22 Thread Abel Vesa
Make the entire combination of plls to be one single clock. The parents used for bypasses are specified each as an index in the parents list. The determine_rate does a lookup throughout all the possible combinations for all the divs and returns the best possible 'setup' which in turn is used by

[PATCH] Document: dt: binding: imx: Fix PAD_CTL_DSE_X*

2019-02-22 Thread Christina Quast
In the iMX7d datasheet, the PAD_CTL_DSE_X* values are different from the documentation. Signed-off-by: Christina Quast --- .../devicetree/bindings/pinctrl/fsl,imx7d-pinctrl.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

RE: [PATCH V3 1/10] X86/Hyper-V: Add parameter offset for hyperv_fill_flush_guest_mapping_list()

2019-02-22 Thread Stephen Hemminger
int hyperv_fill_flush_guest_mapping_list( struct hv_guest_mapping_flush_list *flush, - u64 start_gfn, u64 pages) + int offset, u64 start_gfn, u64 pages) { u64 cur = start_gfn; u64 additional_pages; - int gpa_n = 0; + int

Re: [PATCH] nvme: Enable acceleration feature of A64FX processor

2019-02-22 Thread Keith Busch
On Wed, Feb 20, 2019 at 06:46:11PM +0900, Takao Indoh wrote: > On Thu, Feb 14, 2019 at 08:44:48PM +, Elliott, Robert (Persistent Memory) > wrote: > > * how does this interact with an iommu, if there is one? Must the > > address with bit 56 also be granted permission, or is that > > stripped

Re: [PATCH v3] driver: platform: Support parsing GpioInt 0 in platform_get_irq()

2019-02-22 Thread Brian Norris
On Fri, Feb 22, 2019 at 1:03 AM Rafael J. Wysocki wrote: > > On Thu, Feb 21, 2019 at 8:34 PM wrote: > > > > From: Enrico Granata > > > > ACPI 5 added support for GpioInt resources as a way to provide > > information about interrupts mediated via a GPIO controller. > > > > Several device buses

Re: [PATCH v5 0/5] M_CAN Framework re-write

2019-02-22 Thread Dan Murphy
Wolfgang On 2/22/19 6:50 AM, Dan Murphy wrote: > Wolfgang > > On 2/22/19 3:38 AM, Wolfgang Grandegger wrote: >> Hello Dan, >> >> what kernel version is that patch series for. I have problems to apply it! >> > > It is based off of Master > > commit 2137397c92aec3713fa10be3c9b830f9a1674e60

Re: [PATCH v8 0/7] freezer for cgroup v2

2019-02-22 Thread Oleg Nesterov
On 02/21, Roman Gushchin wrote: > > > > Generally speaking, any process hanging in D-state > > > for a long time isn't the nicest object from the userspace's point of > > > view. > > > > Roman, this is unfair comparison ;) > > Why not? OK, you are trolling me, let me troll you back... So,

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

2019-02-22 Thread Ezequiel Garcia
On Fri, 2019-02-22 at 16:46 +0900, Tomasz Figa wrote: > Hi Maxime, > > On Wed, Feb 20, 2019 at 11:17 PM Maxime Ripard > wrote: > > From: Pawel Osciak > > > > Stateless video codecs will require both the H264 metadata and slices in > > order to be able to decode frames. > > > > This introduces

INFO: task hung in rtnetlink_rcv_msg

2019-02-22 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:64c0133eb88a Merge tag 'armsoc-fixes' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14976800c0 kernel config: https://syzkaller.appspot.com/x/.config?x=ee434566c893c7b1

Re: [PATCH RFC 00/39] x86/KVM: Xen HVM guest support

2019-02-22 Thread Paolo Bonzini
On 21/02/19 12:45, Joao Martins wrote: > On 2/20/19 9:09 PM, Paolo Bonzini wrote: >> On 20/02/19 21:15, Joao Martins wrote: >>> 2. PV Driver support (patches 17 - 39) >>> >>> We start by redirecting hypercalls from the backend to routines >>> which emulate the behaviour that PV backends expect

Re: [PATCH] btrfs: zstd ensure reclaim timer is properly cleaned up

2019-02-22 Thread Dennis Zhou
On Fri, Feb 22, 2019 at 02:17:41PM +0200, Nikolay Borisov wrote: > > > On 21.02.19 г. 22:25 ч., Dennis Zhou wrote: > > The timer function, zstd_reclaim_timer_fn(), reschedules itself under > > certain conditions. Switch to del_timer_sync() to ensure that the timer > > function hasn't rescheduled

Re: [PATCH v5 1/6] dt-bindings: usb: musb: Add support for MediaTek musb controller

2019-02-22 Thread Rob Herring
On Tue, Feb 19, 2019 at 03:36:30PM +0800, min@mediatek.com wrote: > From: Min Guo > > This adds support for MediaTek musb controller in > host, peripheral and otg mode. > > Signed-off-by: Min Guo > --- > changes in v5: > suggested by Rob: > 1. Modify compatible as > - compatible : should

Re: [PATCH -next] platform/chrome: Fix Kconfig dependencies for wilco_ec

2019-02-22 Thread Randy Dunlap
Add new driver for Wilco EC") >>> Signed-off-by: Nick Crews >> >> Reported-by: Randy Dunlap >> Acked-by: Randy Dunlap # build-tested >> > > As this is [-next] material I squashed that commit and queued for 5.1 Hi, on linux-next of 20190222, I n

Re: arm64 Kernel build for qemu-system-aarch64 ?

2019-02-22 Thread Pintu Agarwal
On Fri, Feb 22, 2019 at 7:41 PM Mark Rutland wrote: > > On Fri, Feb 22, 2019 at 07:17:00PM +0530, Pintu Agarwal wrote: > > Hi All, > > Hi, > > > I want to build Linux Kernel 4.20 for arm64 and use it on qemu-arm64. > > I see that there is a defconfig available in arch/arm64/configs/defconfig > >

[PATCH] x86/kvm/mmu: make mmu->prev_roots cache work for NPT case

2019-02-22 Thread Vitaly Kuznetsov
I noticed that fast_cr3_switch() always fails when we switch back from L2 to L1 as it is not able to find a cached root. This is odd: host's CR3 usually stays the same, we expect to always follow the fast path. Turns out the problem is that page role is always mismatched because kvm_mmu_get_page()

[PATCH] x86/kvm/mmu: fix switch between root and guest MMUs

2019-02-22 Thread Vitaly Kuznetsov
Commit 14c07ad89f4d ("x86/kvm/mmu: introduce guest_mmu") brought one subtle change: previously, when switching back from L2 to L1, we were resetting MMU hooks (like mmu->get_cr3()) in kvm_init_mmu() called from nested_vmx_load_cr3() and now we do that in nested_ept_uninit_mmu_context() when we

Re: [PATCH] KVM: Minor cleanups for kvm_main.c

2019-02-22 Thread Paolo Bonzini
On 22/02/19 09:10, Leo Yan wrote: > This patch contains two minor cleanups: firstly it puts exported symbol > for kvm_io_bus_write() by following the function definition; secondly it > removes a redundant blank line. > > Signed-off-by: Leo Yan > --- > virt/kvm/kvm_main.c | 3 +-- > 1 file

Re: [PATCH v6 1/4] dt-bindings: input: touchscreen: goodix: Document regulator properties

2019-02-22 Thread Rob Herring
On Tue, 19 Feb 2019 15:46:26 +0530, Jagan Teki wrote: > Goodix CTP controllers support analog, digital and gpio regulator > supplies on relevant controller pin configurations. > > Out of which AVDD28 and VDDIO regulators are required in few goodix CTP > chips during power-on sequence. > >

Re: [PATCH v7 1/2] pwm: sifive: Add DT documentation for SiFive PWM Controller

2019-02-22 Thread Rob Herring
On Thu, 21 Feb 2019 14:41:40 +0530, Yash Shah wrote: > DT documentation for PWM controller added. > > Signed-off-by: Wesley W. Terpstra > [Atish: Compatible string update] > Signed-off-by: Atish Patra > Signed-off-by: Yash Shah > --- > .../devicetree/bindings/pwm/pwm-sifive.txt | 33

[PATCH] tty/serial/imx.c: Rename URTX0 to UTXD0

2019-02-22 Thread Christina Quast
Rename to be coherent with the datasheet. Signed-off-by: Christina Quast --- drivers/tty/serial/imx.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index dff75dc94731..a405e0d21ec9 100644 ---

Re: [PATCH] RDMA/cma: Make CM response timeout and # CM retries configurable

2019-02-22 Thread Jason Gunthorpe
On Sun, Feb 17, 2019 at 06:09:09PM +0100, Håkon Bugge wrote: > During certain workloads, the default CM response timeout is too > short, leading to excessive retries. Hence, make it configurable > through sysctl. While at it, also make number of CM retries > configurable. > > The defaults are not

Re: [PATCH v8 0/7] freezer for cgroup v2

2019-02-22 Thread Oleg Nesterov
Hi, On 02/21, Tejun Heo wrote: > > So, I really wanna avoid allowing userspace to cause D state sleeps. ... > ptrace support is a lot less important than kill for sure but if at > all possible I think it'd be better to have it Tejun, I agree it would be better. I did not argue with that. The

[RESEND] [PATCH] Hold back_lock when calling iscsi_complete_task

2019-02-22 Thread Lee Duncan
From: Lee Duncan If there is an error queueing an iscsi command in iscsi_queuecommand(), for example if the transport fails to take the command in sessuin->tt->xmit_task(), then the error path can call iscsi_complete_task() without first aquiring the back_lock as required. This can lead to

Re: [PATCH 0/2] platform/x86: intel_cht_int33fe: Start using software nodes

2019-02-22 Thread Hans de Goede
Hi, On 2/19/19 12:59 PM, Heikki Krogerus wrote: Hi guys, The software nodes support node hierarchy. By using them with fusb302 we can add a separate fwnode also for the USB connector as a child of fusb302. We can then use the "standard" USB connector device properties with the connector node,

Re: [PATCH v7 00/23] locking/lockdep: Add support for dynamic keys

2019-02-22 Thread Peter Zijlstra
On Thu, Feb 21, 2019 at 02:02:05PM -0800, Bart Van Assche wrote: > On Thu, 2019-02-14 at 15:00 -0800, Bart Van Assche wrote: > > A known shortcoming of the current lockdep implementation is that it > > requires > > lock keys to be allocated statically. This forces certain unrelated > >

Re: [PATCH 1/2] drm/i2c: tda998x: adjust CTS_N audio pre-divider calculation

2019-02-22 Thread Russell King - ARM Linux admin
(Adding Mark, ASoC maintainer.) On Fri, Feb 22, 2019 at 10:47:35AM -0500, Sven Van Asbroeck wrote: > On Fri, Feb 22, 2019 at 8:21 AM Russell King - ARM Linux admin > wrote: > > > > On Thu, Feb 21, 2019 at 01:18:13PM -0500, Sven Van Asbroeck wrote: > > > > > [SNDRV_PCM_FORMAT_S24_LE] = { >

Re: [PATCH v3 2/2] x86: pcengines apuv2 gpio/leds/keys platform driver

2019-02-22 Thread Linus Walleij
On Thu, Feb 14, 2019 at 11:05 PM Enrico Weigelt, metux IT consult wrote: > Driver for PCengines APUv2 board's front LEDs and Button, > which are attached to AMD PCH GPIOs. Due to lack of dedicated > ACPI entry, detecting the board via DMI. > > Cc: linux-g...@vger.kernel.org > Cc:

Re: [PATCH v4 1/2] gpio: AMD G-Series PCH gpio driver

2019-02-22 Thread Linus Walleij
On Fri, Feb 22, 2019 at 10:54 AM Enrico Weigelt, metux IT consult wrote: > GPIO platform driver for the AMD G-series PCH (eg. on GX-412TC) > > This driver doesn't registers itself automatically, as it needs to > be provided with platform specific configuration, provided by some > board driver

Re: [PATCH v2 00/10] iio mount matrix - revitalize missing bindings documentation and provide code for bmc150, bmg160, bma180, itg3200, hmc584x

2019-02-22 Thread Linus Walleij
On Thu, Feb 21, 2019 at 6:03 PM H. Nikolaus Schaller wrote: > Fixes V2: > * make get_mount_matrix() functions more readable (use temp variable) > (suggested by Jonathan and Andy) > * add these readability improvements also for ak8975 and mpu6050 > (suggested by Jonathan and Andy) > * squash

Re: [PATCH] mm, oom: OOM killer use rss size without shmem

2019-02-22 Thread Johannes Weiner
On Fri, Feb 22, 2019 at 08:10:01AM +0100, Michal Hocko wrote: > On Fri 22-02-19 13:37:33, Junil Lee wrote: > > The oom killer use get_mm_rss() function to estimate how free memory > > will be reclaimed when the oom killer select victim task. > > > > However, the returned rss size by get_mm_rss()

Re: [PATCH] drivers: depend on HAS_IOMEM for devm_platform_ioremap_resource()

2019-02-22 Thread Linus Walleij
On Fri, Feb 22, 2019 at 3:22 PM Rob Herring wrote: > Just a drive by comment, but IMO we should just get rid of HAS_IOMEM > altogether. It is really just a !UML option as I think every other > arch enables it. If folks really want to disable drivers on UML, just > disable the subsystems. I just

<    1   2   3   4   5   6   7   8   9   >