Re: [EXT] Re: [PATCH net-next 0/1] Add BASE-T1 PHY support

2019-08-21 Thread Heiner Kallweit
On 20.08.2019 15:36, Christian Herber wrote: > On 19.08.2019 21:07, Heiner Kallweit wrote: >> Caution: EXT Email >> >> On 19.08.2019 08:32, Christian Herber wrote: >>> On 16.08.2019 22:59, Heiner Kallweit wrote: On 15.08.2019 17:32, Christian Herber wrote: > This patch adds basic support f

Re: [patch 07/44] posix-cpu-timers: Simplify sighand locking in run_posix_cpu_timers()

2019-08-21 Thread Thomas Gleixner
On Wed, 21 Aug 2019, Frederic Weisbecker wrote: > On Wed, Aug 21, 2019 at 03:25:01PM +0200, Thomas Gleixner wrote: > > On Wed, 21 Aug 2019, Frederic Weisbecker wrote: > > > > > On Mon, Aug 19, 2019 at 04:31:48PM +0200, Thomas Gleixner wrote: > > > > run_posix_cpu_timers() is called from the timer

Re: [PATCH RFC 0/4] ACPI: APEI: Add support to notify the vendor specific HW errors

2019-08-21 Thread James Morse
Hi, On 12/08/2019 11:11, Shiju Jose wrote: > Presently kernel does not support reporting the vendor specific HW errors, > in the non-standard format, to the vendor drivers for the recovery. 'non standard' here is probably a little jarring to the casual reader. You're referring to the UEFI spec's

Re: [PATCH RFC 2/4] ACPI: APEI: Add ghes_handle_memory_failure to the new notification method

2019-08-21 Thread James Morse
Hi, On 12/08/2019 11:11, Shiju Jose wrote: > This patch adds ghes_handle_memory_failure to the new error > notification method. The commit message doesn't answer the question: why? The existing code works. This just looks like additional churn. Given a user, I think the vendor specific example i

Re: [PATCH RFC 1/4] ACPI: APEI: Add support to notify the vendor specific HW errors

2019-08-21 Thread James Morse
Hi, On 12/08/2019 11:11, Shiju Jose wrote: > Presently the vendor specific HW errors, in the non-standard format, > are not reported to the vendor drivers for the recovery. > > This patch adds support to notify the vendor specific HW errors to the > registered kernel drivers. > diff --git a/driv

[PATCH] media: hantro: Enable VP8 decoding on RK3328

2019-08-21 Thread Jonas Karlman
RK3328 SoC has the same decoder IP block as RK3399, lets enable VP8 decoding on RK3328. Signed-off-by: Jonas Karlman --- drivers/staging/media/hantro/rk3399_vpu_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/hantro/rk3399_vpu_hw.c b/drivers/stagin

Re: [PATCH] mfd: cros_ec: Update cros_ec_commands.h

2019-08-21 Thread Enric Balletbo i Serra
Hi Lee, On 12/8/19 9:28, Lee Jones wrote: > On Mon, 22 Jul 2019, Enric Balletbo i Serra wrote: > >> Hi Lee, >> >> On 11/7/19 19:17, Gwendal Grignou wrote: >>> Reviewed-by: Gwendal Grignou >>> >>> Note there is a patch series that move cros_ec_commands.h from >>> nclude/linux/mfd/ to include/linu

Re: [PATCH 15/15] riscv: disable the EFI PECOFF header for M-mode

2019-08-21 Thread Atish Patra
On Tue, 2019-08-20 at 21:14 -0700, Troy Benjegerdes wrote: > > On Aug 13, 2019, at 8:47 AM, Christoph Hellwig wrote: > > > > No point in bloating the kernel image with a bootloader header if > > we run bare metal. > > I would say the same for S-mode. EFI booting should be an option, not > a requ

[PATCH] kbuild: remove unneeded comments and code from scripts/basic/Makefile

2019-08-21 Thread Masahiro Yamada
Kbuild descends into scripts/basic/ even before the Kconfig. I do not expect any other host programs added to this Makefile. Signed-off-by: Masahiro Yamada --- scripts/basic/Makefile | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/scripts/basic/Makefile b/scr

[PATCH] kbuild: remove unneeded dependency for $(DOC_TARGETS)

2019-08-21 Thread Masahiro Yamada
Commit 415008af3219 ("docs-rst: convert lsm from DocBook to ReST") stopped using if_changed_rule. No more users of if_changed* for the doc targets. Hence, fixdep is unneeded. Remove the dependency on scripts_basic. All the doc targets are phony. Depending on FORCE is odd. Signed-off-by: Masahiro

Re: [PATCH -next v2] sched/fair: fix -Wunused-but-set-variable warnings

2019-08-21 Thread bsegall
Qian Cai writes: > The linux-next commit "sched/fair: Fix low cpu usage with high > throttling by removing expiration of cpu-local slices" [1] introduced a > few compilation warnings, > > kernel/sched/fair.c: In function '__refill_cfs_bandwidth_runtime': > kernel/sched/fair.c:4365:6: warning: var

Re: [v2 PATCH] RISC-V: Optimize tlb flush path.

2019-08-21 Thread Atish Patra
On Wed, 2019-08-21 at 07:45 -0700, h...@infradead.org wrote: > Btw, for the next version it also might make sense to do one > optimization at a time. E.g. the empty cpumask one as the > first patch, the local cpu directly one next, and the threshold > based full flush as a third. ok sure. I will

RE: [PATCH 3/3] nvme: complete request in work queue on CPU with flooded interrupts

2019-08-21 Thread Long Li
>>>Subject: RE: [PATCH 3/3] nvme: complete request in work queue on CPU >>>with flooded interrupts >>> >>Subject: Re: [PATCH 3/3] nvme: complete request in work queue on >>>CPU >>with flooded interrupts >> >> >>> From: Long Li >>> >>> When a NVMe hardware queue is mappe

[GIT PULL] KVM fixes for Linux 5.3-rc6

2019-08-21 Thread Paolo Bonzini
Linus, The following changes since commit a738b5e75b4c13be3485c82eb62c30047aa9f164: Merge tag 'kvmarm-fixes-for-5.3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD (2019-08-09 16:53:50 +0200) are available in the git repository at: https://git.kernel.org/pub/s

[PATCH 05/13] fuse: Export fuse_send_init_request()

2019-08-21 Thread Vivek Goyal
This will be used by virtio-fs to send init request to fuse server after initialization of virt queues. Signed-off-by: Vivek Goyal --- fs/fuse/dev.c| 1 + fs/fuse/fuse_i.h | 1 + fs/fuse/inode.c | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/fuse/dev.c b/fs/fuse/d

[PATCH 12/13] virtio-fs: Do not provide abort interface in fusectl

2019-08-21 Thread Vivek Goyal
virtio-fs does not support aborting requests which are being processed. That is requests which have been sent to fuse daemon on host. So do not provide "abort" interface for virtio-fs in fusectl. Signed-off-by: Vivek Goyal --- fs/fuse/control.c | 4 ++-- fs/fuse/fuse_i.h| 4 fs/fuse/

[PATCH 02/13] fuse: Use default_file_splice_read for direct IO

2019-08-21 Thread Vivek Goyal
From: Miklos Szeredi --- fs/fuse/file.c | 15 ++- fs/splice.c| 3 ++- include/linux/fs.h | 2 ++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 5ae2828beb00..c45ffe6f1ecb 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/fi

[PATCH 13/13] init/do_mounts.c: add virtio_fs root fs support

2019-08-21 Thread Vivek Goyal
It is useful to mount the root file system via virtio_fs. During testing a monolithic kernel is more convenient than an initramfs but we'll need to teach the kernel how to boot directly from virtio_fs. Signed-off-by: Stefan Hajnoczi --- init/do_mounts.c | 10 ++ 1 file changed, 10 inser

[PATCH 06/13] fuse: export fuse_get_unique()

2019-08-21 Thread Vivek Goyal
From: Stefan Hajnoczi virtio-fs will need unique IDs for FORGET requests from outside fs/fuse/dev.c. Make the symbol visible. Signed-off-by: Stefan Hajnoczi --- fs/fuse/dev.c| 3 ++- fs/fuse/fuse_i.h | 5 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/fs/fuse/dev.c b/

[PATCH 11/13] virtio_fs: add skeleton virtio_fs.ko module

2019-08-21 Thread Vivek Goyal
From: Stefan Hajnoczi Add a basic file system module for virtio-fs. Signed-off-by: Stefan Hajnoczi Signed-off-by: Vivek Goyal Signed-off-by: Miklos Szeredi --- fs/fuse/Kconfig | 11 + fs/fuse/Makefile|1 + fs/fuse/fuse_i.h| 12 + fs/fus

[PATCH 03/13] fuse: export fuse_end_request()

2019-08-21 Thread Vivek Goyal
From: Stefan Hajnoczi virtio-fs will need to complete requests from outside fs/fuse/dev.c. Make the symbol visible. Signed-off-by: Stefan Hajnoczi --- fs/fuse/dev.c| 19 ++- fs/fuse/fuse_i.h | 5 + 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/fs/fuse

[PATCH 04/13] fuse: export fuse_len_args()

2019-08-21 Thread Vivek Goyal
From: Stefan Hajnoczi virtio-fs will need to query the length of fuse_arg lists. Make the symbol visible. Signed-off-by: Stefan Hajnoczi --- fs/fuse/dev.c| 7 --- fs/fuse/fuse_i.h | 5 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c i

[PATCH v3 00/13] virtio-fs: shared file system for virtual machines

2019-08-21 Thread Vivek Goyal
Hi, Here are the V3 patches for virtio-fs filesystem. This time I have broken the patch series in two parts. This is first part which does not contain DAX support. Second patch series will contain the patches for DAX support. I have also dropped RFC tag from first patch series as we believe its i

[PATCH 09/13] fuse: add fuse_iqueue_ops callbacks

2019-08-21 Thread Vivek Goyal
From: Stefan Hajnoczi The /dev/fuse device uses fiq->waitq and fasync to signal that requests are available. These mechanisms do not apply to virtio-fs. This patch introduces callbacks so alternative behavior can be used. Note that queue_interrupt() changes along these lines: spin_lock(&fiq

[PATCH 07/13] Export fuse_dequeue_forget() function

2019-08-21 Thread Vivek Goyal
File systems like virtio-fs need to do not have to play directly with forget list data structures. There is a helper function use that instead. Rename dequeue_forget() to fuse_dequeue_forget() and export it so that stacked filesystems can use it. Signed-off-by: Vivek Goyal --- fs/fuse/dev.c

[PATCH 10/13] fuse: Separate fuse device allocation and installation in fuse_conn

2019-08-21 Thread Vivek Goyal
As of now fuse_dev_alloc() both allocates a fuse device and installs it in fuse_conn list. fuse_dev_alloc() can fail if fuse_device allocation fails. virtio-fs needs to initialize multiple fuse devices (one per virtio queue). It initializes one fuse device as part of call to fuse_fill_super_common

[PATCH 08/13] fuse: extract fuse_fill_super_common()

2019-08-21 Thread Vivek Goyal
From: Stefan Hajnoczi fuse_fill_super() includes code to process the fd= option and link the struct fuse_dev to the fd's struct file. In virtio-fs there is no file descriptor because /dev/fuse is not used. This patch extracts fuse_fill_super_common() so that both classic fuse and virtio-fs can

[PATCH 01/13] fuse: delete dentry if timeout is zero

2019-08-21 Thread Vivek Goyal
From: Miklos Szeredi Don't hold onto dentry in lru list if need to re-lookup it anyway at next access. More advanced version of this patch would periodically flush out dentries from the lru which have gone stale. Signed-off-by: Miklos Szeredi --- fs/fuse/dir.c | 26 +++---

Re: [PATCH v5 08/11] mfd: cros_ec: Add convenience struct to define dedicated CrOS EC MCUs

2019-08-21 Thread Enric Balletbo i Serra
Hi Lee, On 12/8/19 9:16, Lee Jones wrote: > On Mon, 22 Jul 2019, Enric Balletbo i Serra wrote: > >> With the increasing use of dedicated CrOS EC MCUs, it takes a fair amount >> of boiler plate code to add those devices, add a struct that can be used >> to specify a dedicated CrOS EC MCU so we can

Re: [PATCH 3/3] watchdog/aspeed: add support for dual boot

2019-08-21 Thread Alexander Amelkin
21.08.2019 19:32, Guenter Roeck wrote: > On Wed, Aug 21, 2019 at 06:57:43PM +0300, Ivan Mikhaylov wrote: >> Set WDT_CLEAR_TIMEOUT_AND_BOOT_CODE_SELECTION into WDT_CLEAR_TIMEOUT_STATUS >> to clear out boot code source and re-enable access to the primary SPI flash >> chip while booted via wdt2 from t

Re: [PATCH 00/11] Face lift for bu21013_ts driver

2019-08-21 Thread Dmitry Torokhov
On Wed, Aug 21, 2019 at 02:39:41PM +0200, Linus Walleij wrote: > On Sat, Aug 10, 2019 at 2:20 AM Dmitry Torokhov > wrote: > > > So your patch has prompted me to take a look at the driver and > > try to clean it up. I am sure I screwed up somewhere, but you said > > you have the device, so please

Re: [PATCH] ARM: UNWINDER_FRAME_POINTER implementation for Clang

2019-08-21 Thread Nathan Huckleberry
On Tue, Aug 20, 2019 at 2:39 PM Nick Desaulniers wrote: > > On Tue, Aug 20, 2019 at 12:44 PM Nathan Huckleberry wrote: > > > > The stackframe setup when compiled with clang is different. > > Since the stack unwinder expects the gcc stackframe setup it > > fails to print backtraces. This patch add

Re: [PATCH 0/3] dt-bindings: Convert Arm Mali GPUs to DT schema

2019-08-21 Thread Rob Herring
On Wed, Aug 21, 2019 at 12:24 PM Heiko Stuebner wrote: > > Am Dienstag, 20. August 2019, 21:59:56 CEST schrieb Rob Herring: > > This series converts the various Arm Mali GPU bindings to use the DT > > schema format. > > > > The Midgard and Bifrost bindings generate warnings on 'interrupt-names' >

Re: [PATCH] ALSA: pcm: add support for 352.8KHz and 384KHz sample rate

2019-08-21 Thread Takashi Iwai
On Wed, 21 Aug 2019 12:27:05 +0200, Srinivas Kandagatla wrote: > > From: Vidyakumar Athota > > Most of the modern codecs supports 352.8KHz and 384KHz sample rates. > Currently HW params fails to set 352.8Kz and 384KHz sample rate > as these are not in known rates list. > Add these new rates to k

[PATCH v2] ARM: UNWINDER_FRAME_POINTER implementation for Clang

2019-08-21 Thread Nathan Huckleberry
The stackframe setup when compiled with clang is different. Since the stack unwinder expects the gcc stackframe setup it fails to print backtraces. This patch adds support for the clang stackframe setup. Link: https://github.com/ClangBuiltLinux/linux/issues/35 Cc: clang-built-li...@googlegroups.co

[PATCH] RDMA/iwpm: Delete unnecessary checks before the macro call “dev_kfree_skb”

2019-08-21 Thread Markus Elfring
From: Markus Elfring Date: Wed, 21 Aug 2019 19:30:09 +0200 The dev_kfree_skb() function performs also input parameter validation. Thus the test around the shown calls is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/infiniband/

Re: [PATCH 2/2] drivers: input: mouse: alps: drop unneeded likely() call around IS_ERR()

2019-08-21 Thread Dmitry Torokhov
Hi, On Wed, Aug 21, 2019 at 01:37:09PM +0200, Enrico Weigelt, metux IT consult wrote: > On 20.08.19 16:22, Pali Rohár wrote: > > Hi, > > > > In that case, wouldn't a comment be more suitable for that ? > > > > And why to add comment if current state of code is more-readable and > > does not ne

Re: [PATCH v5 10/11] mfd: cros_ec: Use mfd_add_hotplug_devices() helper

2019-08-21 Thread Enric Balletbo i Serra
Hi Lee, On 12/8/19 9:24, Lee Jones wrote: > On Mon, 22 Jul 2019, Enric Balletbo i Serra wrote: > >> Use mfd_add_hotplug_devices() helper to register the subdevices. > > You need to state why this change is useful/required. > The reason for this change is to avoid a bit of boiler plate and be c

Re: [PATCH v4] kasan: add memory corruption identification for software tag-based mode

2019-08-21 Thread Andrey Ryabinin
On 8/20/19 8:37 AM, Walter Wu wrote: > On Tue, 2019-08-06 at 13:43 +0800, Walter Wu wrote: >> This patch adds memory corruption identification at bug report for >> software tag-based mode, the report show whether it is "use-after-free" >> or "out-of-bound" error instead of "invalid-access" error

[RESEND PATCH] arm64: dts: rockchip: add rk3328 VPU node

2019-08-21 Thread Jonas Karlman
This patch add a VPU device node for rk3328. Signed-off-by: Jonas Karlman --- It would be great if this can be considered for v5.4, related dt-bindings commit has been merged in media tree for v5.4. Decoding using hantro driver has been tested on a Pine64 Rock64 RK3328 device. --- arch/arm64/bo

Re: [PATCH 15/15] riscv: disable the EFI PECOFF header for M-mode

2019-08-21 Thread Troy Benjegerdes
> On Aug 21, 2019, at 10:31 AM, Atish Patra wrote: > > On Tue, 2019-08-20 at 21:14 -0700, Troy Benjegerdes wrote: >>> On Aug 13, 2019, at 8:47 AM, Christoph Hellwig wrote: >>> >>> No point in bloating the kernel image with a bootloader header if >>> we run bare metal. >> >> I would say the

Re: [PATCH v1 03/63] Input: atmel_mxt_ts - only read messages in mxt_acquire_irq() when necessary

2019-08-21 Thread Dmitry Torokhov
On Wed, Aug 21, 2019 at 10:26:31PM +0900, Jiada Wang wrote: > Hi Dmitry > > On 2019/08/17 2:16, Dmitry Torokhov wrote: > > On Fri, Aug 16, 2019 at 05:28:52PM +0900, Jiada Wang wrote: > > > From: Nick Dyer > > > > > > The workaround of reading all messages until an invalid is received is a > > >

Re: [PATCH v6 3/4] dt-bindings: arm: fsl: Add Kontron i.MX6UL N6310 compatibles

2019-08-21 Thread Krzysztof Kozlowski
On Tue, Aug 20, 2019 at 03:27:39PM -0500, Rob Herring wrote: > > I see. If I understand the schema correctly, this should look like: > > Looks correct, but a couple of comments. > > > diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml > > b/Documentation/devicetree/bindings/arm/fsl.yaml

[v2 PATCH -mm] mm: account deferred split THPs into MemAvailable

2019-08-21 Thread Yang Shi
Available memory is one of the most important metrics for memory pressure. Currently, the deferred split THPs are not accounted into available memory, but they are reclaimable actually, like reclaimable slabs. And, they seems very common with the common workloads when THP is enabled. A simple ru

[PATCH 05/19] virtio: Implement get_shm_region for MMIO transport

2019-08-21 Thread Vivek Goyal
From: Sebastien Boeuf On MMIO a new set of registers is defined for finding SHM regions. Add their definitions and use them to find the region. Cc: k...@vger.kernel.org Signed-off-by: Sebastien Boeuf --- drivers/virtio/virtio_mmio.c | 32 include/uapi/linu

[PATCH 19/19] fuse: Take inode lock for dax inode truncation

2019-08-21 Thread Vivek Goyal
When a file is opened with O_TRUNC, we need to make sure that any other DAX operation is not in progress. DAX expects i_size to be stable. In fuse_iomap_begin() we check for i_size at multiple places and we expect i_size to not change. Another problem is, if we setup a mapping in fuse_iomap_begin

[PATCH 15/19] fuse: Maintain a list of busy elements

2019-08-21 Thread Vivek Goyal
This list will be used selecting fuse_dax_mapping to free when number of free mappings drops below a threshold. Signed-off-by: Vivek Goyal --- fs/fuse/file.c | 22 ++ fs/fuse/fuse_i.h | 8 fs/fuse/inode.c | 4 3 files changed, 34 insertions(+) diff --git a

[PATCH 17/19] fuse: Add logic to free up a memory range

2019-08-21 Thread Vivek Goyal
Add logic to free up a busy memory range. Freed memory range will be returned to free pool. Add a worker which can be started to select and free some busy memory ranges. In certain cases (write path), process can steal one of its busy dax ranges (inline reclaim) if free range is not available. If

[PATCH 01/19] dax: remove block device dependencies

2019-08-21 Thread Vivek Goyal
From: Stefan Hajnoczi Although struct dax_device itself is not tied to a block device, some DAX code assumes there is a block device. Make block devices optional by allowing bdev to be NULL in commonly used DAX APIs. When there is no block device: * Skip the partition offset calculation in bde

[PATCH 07/19] virtio_fs, dax: Set up virtio_fs dax_device

2019-08-21 Thread Vivek Goyal
From: Stefan Hajnoczi Setup a dax device. Use the shm capability to find the cache entry and map it. The DAX window is accessed by the fs/dax.c infrastructure and must have struct pages (at least on x86). Use devm_memremap_pages() to map the DAX window PCI BAR and allocate struct page. Signed

[PATCH 13/19] fuse: Define dax address space operations

2019-08-21 Thread Vivek Goyal
This is done along the lines of ext4 and xfs. I primarily wanted ->writepages hook at this time so that I could call into dax_writeback_mapping_range(). This in turn will decide which pfns need to be written back. Signed-off-by: Vivek Goyal --- fs/fuse/file.c | 19 +++ 1 file cha

[PATCH 12/19] fuse, dax: add DAX mmap support

2019-08-21 Thread Vivek Goyal
From: Stefan Hajnoczi Add DAX mmap() support. Signed-off-by: Stefan Hajnoczi --- fs/fuse/file.c | 64 +- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/fs/fuse/file.c b/fs/fuse/file.c index f323b7b04414..32870bb862e7 100644 --- a/f

[PATCH 04/19] virtio: Implement get_shm_region for PCI transport

2019-08-21 Thread Vivek Goyal
From: Sebastien Boeuf On PCI the shm regions are found using capability entries; find a region by searching for the capability. Cc: k...@vger.kernel.org Signed-off-by: Sebastien Boeuf Signed-off-by: Dr. David Alan Gilbert Signed-off-by: kbuild test robot --- drivers/virtio/virtio_pci_modern.

[PATCH 11/19] fuse, dax: Implement dax read/write operations

2019-08-21 Thread Vivek Goyal
This patch implements basic DAX support. mmap() is not implemented yet and will come in later patches. This patch looks into implemeting read/write. We make use of interval tree to keep track of per inode dax mappings. Do not use dax for file extending writes, instead just send WRITE message to d

[PATCH 14/19] fuse, dax: Take ->i_mmap_sem lock during dax page fault

2019-08-21 Thread Vivek Goyal
We need some kind of locking mechanism here. Normal file systems like ext4 and xfs seems to take their own semaphore to protect agains truncate while fault is going on. We have additional requirement to protect against fuse dax memory range reclaim. When a range has been selected for reclaim, we n

[PATCH 16/19] dax: Create a range version of dax_layout_busy_page()

2019-08-21 Thread Vivek Goyal
While reclaiming a dax range, we do not want to unamap whole file instead want to make sure pages in a certain range do not have references taken on them. Hence create a version of the function which allows to pass in a range. Cc: Dan Williams Signed-off-by: Vivek Goyal --- fs/dax.c

[PATCH 18/19] fuse: Release file in process context

2019-08-21 Thread Vivek Goyal
fuse_file_put(sync) can be called with sync=true/false. If sync=true, it waits for release request response and then calls iput() in the caller's context. If sync=false, it does not wait for release request response, frees the fuse_file struct immediately and req->end function does the iput(). ipu

[PATCH 08/19] fuse: Keep a list of free dax memory ranges

2019-08-21 Thread Vivek Goyal
Divide the dax memory range into fixed size ranges (2MB for now) and put them in a list. This will track free ranges. Once an inode requires a free range, we will take one from here and put it in interval-tree of ranges assigned to inode. Signed-off-by: Vivek Goyal Signed-off-by: Peng Tao --- f

[PATCH 09/19] fuse: implement FUSE_INIT map_alignment field

2019-08-21 Thread Vivek Goyal
The device communicates FUSE_SETUPMAPPING/FUSE_REMOVMAPPING alignment constraints via the FUST_INIT map_alignment field. Parse this field and ensure our DAX mappings meet the alignment constraints. We don't actually align anything differently since our mappings are already 2MB aligned. Just chec

Re: [PATCH v4 4/6] tpm: tpm_tis_spi: Export functionality to other drivers

2019-08-21 Thread Jarkko Sakkinen
On Mon, Aug 19, 2019 at 10:10:08AM -0700, Stephen Boyd wrote: > Quoting Jarkko Sakkinen (2019-08-19 09:40:05) > > On Mon, Aug 12, 2019 at 03:36:20PM -0700, Stephen Boyd wrote: > > > Export a new function, tpm_tis_spi_init(), and the associated > > > read/write/transfer APIs so that we can create va

[PATCH 06/19] fuse, dax: add fuse_conn->dax_dev field

2019-08-21 Thread Vivek Goyal
From: Stefan Hajnoczi A struct dax_device instance is a prerequisite for the DAX filesystem APIs. Let virtio_fs associate a dax_device with a fuse_conn. Classic FUSE and CUSE set the pointer to NULL, disabling DAX. Signed-off-by: Stefan Hajnoczi --- fs/fuse/cuse.c | 3 ++- fs/fuse/fuse_

[PATCH 03/19] virtio: Add get_shm_region method

2019-08-21 Thread Vivek Goyal
From: Sebastien Boeuf Virtio defines 'shared memory regions' that provide a continuously shared region between the host and guest. Provide a method to find a particular region on a device. Signed-off-by: Sebastien Boeuf Signed-off-by: Dr. David Alan Gilbert --- include/linux/virtio_config.h

Re: [PATCH v2 07/14] dt-bindings: dma: ti: Add document for K3 UDMA

2019-08-21 Thread Rob Herring
On Tue, Jul 30, 2019 at 12:34:43PM +0300, Peter Ujfalusi wrote: > New binding document for > Texas Instruments K3 NAVSS Unified DMA – Peripheral Root Complex (UDMA-P). > > UDMA-P is introduced as part of the K3 architecture and can be found on > AM654 and j721e. > > Signed-off-by: Peter Ujfalusi

[PATCH 10/19] fuse: Introduce setupmapping/removemapping commands

2019-08-21 Thread Vivek Goyal
Introduce two new fuse commands to setup/remove memory mappings. This will be used to setup/tear down file mapping in dax window. Signed-off-by: Vivek Goyal Signed-off-by: Peng Tao --- include/uapi/linux/fuse.h | 39 +++ 1 file changed, 39 insertions(+) diff

[PATCH 02/19] dax: Pass dax_dev to dax_writeback_mapping_range()

2019-08-21 Thread Vivek Goyal
Right now dax_writeback_mapping_range() is passed a bdev and dax_dev is searched from that bdev name. virtio-fs does not have a bdev. So pass in dax_dev also to dax_writeback_mapping_range(). If dax_dev is passed in, bdev is not used otherwise dax_dev is searched using bdev. Cc: Dan Williams Sig

[PATCH v3 00/19][RFC] virtio-fs: Enable DAX support

2019-08-21 Thread Vivek Goyal
Hi, This patch series enables DAX support for virtio-fs filesystem. Patches are based on 5.3-rc5 kernel and need first patch series posted for virtio-fs support with subject "virtio-fs: shared file system for virtual machines". https://www.redhat.com/archives/virtio-fs/2019-August/msg00281.html

Re: [PATCH 00/14] per memcg lru_lock

2019-08-21 Thread Daniel Jordan
Hi Alex, On 8/20/19 5:48 AM, Alex Shi wrote: In some data center, containers are used widely to deploy different kind of services, then multiple memcgs share per node pgdat->lru_lock which cause heavy lock contentions when doing lru operation. On my 2 socket * 6 cores E5-2630 platform, 24 conta

Re: [RFC PATCH v2 00/19] RDMA/FS DAX truncate proposal V1,000,002 ;-)

2019-08-21 Thread Ira Weiny
On Tue, Aug 20, 2019 at 08:55:15AM -0300, Jason Gunthorpe wrote: > On Tue, Aug 20, 2019 at 11:12:10AM +1000, Dave Chinner wrote: > > On Mon, Aug 19, 2019 at 09:38:41AM -0300, Jason Gunthorpe wrote: > > > On Mon, Aug 19, 2019 at 07:24:09PM +1000, Dave Chinner wrote: > > > > > > > So that leaves jus

[PATCH v5] kasan: add memory corruption identification for software tag-based mode

2019-08-21 Thread Andrey Ryabinin
From: Walter Wu This patch adds memory corruption identification at bug report for software tag-based mode, the report show whether it is "use-after-free" or "out-of-bound" error instead of "invalid-access" error. This will make it easier for programmers to see the memory corruption problem. We

Re: [PATCH v3 8/8] arm64: dts: qcom: sm8150: Add apps shared nodes

2019-08-21 Thread Vinod Koul
On 21-08-19, 14:13, Amit Kucheria wrote: > On Tue, Aug 20, 2019 at 10:55 PM Vinod Koul wrote: > > > > Add hwlock, pmu, smem, tcsr_mutex_regs, apss_shared mailbox, apps_rsc > > including the rpmhcc child nodes to the SM8150 DTSI > > + > > spmi_bus: spmi@c44 { > > Sort by addres

[PATCH] remoteproc: qcom: q6v5-mss: fixup q6v5_pds_enable error handling

2019-08-21 Thread Sibi Sankar
dev_pm_domain_attach_by_name will return NULL if the requested power-domain is not a part device node. This could result in NULL pointer de-reference in q6v5_pds_enable. Fix this by checking for IS_ERR_OR_NULL and forward the appropriate error code. Fixes: 4760a896be88e ("remoteproc: q6v5-mss: Vot

Re: [RFC] clk: Remove cached cores in parent map during unregister

2019-08-21 Thread Stephen Boyd
Quoting Stephen Boyd (2019-07-29 15:46:51) > Quoting Bjorn Andersson (2019-07-22 22:14:46) > > As clocks are registered their parents are resolved and the parent_map > > is updated to cache the clk_core objects of each existing parent. > > But in the event of a clock being unregistered this cache w

Re: [PATCH 3/3] watchdog/aspeed: add support for dual boot

2019-08-21 Thread Guenter Roeck
On Wed, Aug 21, 2019 at 08:42:24PM +0300, Alexander Amelkin wrote: > 21.08.2019 19:32, Guenter Roeck wrote: > > On Wed, Aug 21, 2019 at 06:57:43PM +0300, Ivan Mikhaylov wrote: > >> Set WDT_CLEAR_TIMEOUT_AND_BOOT_CODE_SELECTION into WDT_CLEAR_TIMEOUT_STATUS > >> to clear out boot code source and re-

Re: kernel panic in 5.3-rc5, nfsd_reply_cache_stats_show+0x11

2019-08-21 Thread jane . chu
Hi, Dan, On 8/20/19 8:48 PM, Dan Williams wrote: On Tue, Aug 20, 2019 at 6:39 PM wrote: Hi, Apology if there is a better channel reporting the issue, if so, please let me know. I just saw below regression in 5.3-rc5 kernel, but not in 5.2-rc7 or earlier kernels. Is the error stable enough

Re: [PATCH v4 2/6] tpm: tpm_tis_spi: Introduce a flow control callback

2019-08-21 Thread Jarkko Sakkinen
On Mon, Aug 19, 2019 at 10:06:40AM -0700, Stephen Boyd wrote: > > AFAIK the flow control is not part of the SPI standard itself but is > > proprietary for each slave device. Thus, the flow control should be > > documented to the source code. I do not want flow control mechanisms to > > be multiplie

Re: [RFC PATCH v2 00/19] RDMA/FS DAX truncate proposal V1,000,002 ;-)

2019-08-21 Thread Jason Gunthorpe
On Wed, Aug 21, 2019 at 11:02:00AM -0700, Ira Weiny wrote: > On Tue, Aug 20, 2019 at 08:55:15AM -0300, Jason Gunthorpe wrote: > > On Tue, Aug 20, 2019 at 11:12:10AM +1000, Dave Chinner wrote: > > > On Mon, Aug 19, 2019 at 09:38:41AM -0300, Jason Gunthorpe wrote: > > > > On Mon, Aug 19, 2019 at 07:2

re: Added Realtek rtl8192u driver to staging - static analysis report.

2019-08-21 Thread Colin Ian King
Hi, Static analysis of linux-next picked up an issue with the following commit: commit 8fc8598e61f6f384f3eaf1d9b09500c12af47b37 Author: Jerry Chuang Date: Tue Nov 3 07:17:11 2009 -0200 Staging: Added Realtek rtl8192u driver to staging In drivers/staging/rtl8192u/ieee80211/ieee80211_softm

Boot failure due to: x86/boot: Save fields explicitly, zero out everything else

2019-08-21 Thread John Hubbard
On 8/21/19 10:05 AM, Neil MacLeod wrote: Hi John The following bug might be of interest: https://bugzilla.kernel.org/show_bug.cgi?id=204645 Let me know if I can be of any help. Hi Neil, First of all, I'm pasting in the bug information so that it's directly available here:

Re: [PATCH] x86/apic: reset LDR in clear_local_APIC

2019-08-21 Thread Thomas Gleixner
Bandan, On Wed, 21 Aug 2019, Bandan Das wrote: > Thomas Gleixner writes: > So, in KVM: if we make sure that the logical destination map isn't filled up > if the virtual > apic is not enabled by software, it really doesn't matter whether the LDR for > an inactive CPU > has a stale value. > > In

Re: [PATCH v2 4/5] dt-bindings: usb-xhci: Add platform specific compatible for Stingray xHCI

2019-08-21 Thread Rob Herring
On Wed, 31 Jul 2019 15:49:54 +0530, Srinath Mannam wrote: > Add Platform specific compatible, because xHCI of this SoC has an issue > with HS port which has to reset on disconnect event. > > Signed-off-by: Srinath Mannam > --- > Documentation/devicetree/bindings/usb/usb-xhci.txt | 1 + > 1 file

Re: [RFC PATCH v2 00/19] RDMA/FS DAX truncate proposal V1,000,002 ;-)

2019-08-21 Thread John Hubbard
On 8/21/19 11:13 AM, Jason Gunthorpe wrote: On Wed, Aug 21, 2019 at 11:02:00AM -0700, Ira Weiny wrote: On Tue, Aug 20, 2019 at 08:55:15AM -0300, Jason Gunthorpe wrote: On Tue, Aug 20, 2019 at 11:12:10AM +1000, Dave Chinner wrote: On Mon, Aug 19, 2019 at 09:38:41AM -0300, Jason Gunthorpe wrote:

Re: [PATCH v2] dt-bindings: arm-boards: Update pointer to ARM CPU bindings

2019-08-21 Thread Rob Herring
On Wed, 31 Jul 2019 13:42:01 +0200, Geert Uytterhoeven wrote: > The ARM CPU DT bindings were converted from plain text to YAML, but not > all referrers were updated. > > Fixes: 672951cbd1b70a9e ("dt-bindings: arm: Convert cpu binding to > json-schema") > Signed-off-by: Geert Uytterhoeven > Acked

Re: OMAP DRM regression on N900

2019-08-21 Thread Laurent Pinchart
Hi Aaro, On Sun, Aug 18, 2019 at 05:08:38PM +0300, Aaro Koskinen wrote: > Hi, > > I haven't got display working on N900 since v5.1. Bisected to: > > d17eb4537a7eb16da9eafbfd5717e12b45b77251 is the first bad commit > commit d17eb4537a7eb16da9eafbfd5717e12b45b77251 > Author: Laurent Pinchart > Da

Re: [PATCH v3 bpf-next 1/4] tracing/probe: Add PERF_EVENT_IOC_QUERY_PROBE ioctl

2019-08-21 Thread Peter Zijlstra
On Wed, Aug 21, 2019 at 04:54:47PM +, Yonghong Song wrote: > Currently, in kernel/trace/bpf_trace.c, we have > > unsigned int trace_call_bpf(struct trace_event_call *call, void *ctx) > { > unsigned int ret; > > if (in_nmi()) /* not supported yet */ > return

[PATCH v3 00/17] arm64: MMU enabled kexec relocation

2019-08-21 Thread Pavel Tatashin
Changelog: v3: - Split changes to create_safe_exec_page() into several patches for easier review as request by Mark Rutland. This is why this series has 3 more patches. - Renamed trans_table to tans_pgd as agreed with Mark. The header comment in trans_p

[PATCH v3 03/17] arm64, hibernate: remove gotos in create_safe_exec_page

2019-08-21 Thread Pavel Tatashin
Usually, gotos are used to handle cleanup after exception, but in case of create_safe_exec_page there are no clean-ups. So, simply return the errors directly. Signed-off-by: Pavel Tatashin --- arch/arm64/kernel/hibernate.c | 28 +--- 1 file changed, 9 insertions(+), 19 de

[PATCH v3 02/17] arm64, hibernate: use get_safe_page directly

2019-08-21 Thread Pavel Tatashin
create_safe_exec_page is a local function that uses the get_safe_page() to allocate page table and pages and one pages that is getting mapped. Remove the allocator related arguments, and use get_safe_page directly, as it is done in other local functions in this file. Signed-off-by: Pavel Tatashin

Re: Boot failure due to: x86/boot: Save fields explicitly, zero out everything else

2019-08-21 Thread Neil MacLeod
Hi John I can test any patches given a link to the diff, and am happy to do so. If I've understood your suggestion correctly, I will try commenting out all of the entries, then add them back one-by-one until I get a non-booting situation. I'll let you know how I get on. The OS I'm testing is Lib

[PATCH v3 07/17] arm64, hibernate: move page handling function to new trans_pgd.c

2019-08-21 Thread Pavel Tatashin
Now, that we abstracted the required functions move them to a new home. Later, we will generalize these function in order to be useful outside of hibernation. Signed-off-by: Pavel Tatashin --- arch/arm64/Kconfig | 4 + arch/arm64/include/asm/trans_pgd.h | 20 +++ arch/arm64/ke

[PATCH v3 12/17] arm64, trans_pgd: complete generalization of trans_pgds

2019-08-21 Thread Pavel Tatashin
Make the last private functions in page table copy path generlized for use outside of hibernate. Switch to use the provided allocator, flags, and source page table. Also, unify all copy function implementations to reduce the possibility of bugs. All page table levels are implemented symmetrically.

[PATCH v3 17/17] arm64, kexec: enable MMU during kexec relocation

2019-08-21 Thread Pavel Tatashin
Now, that we have transitional page tables configured, temporarily enable MMU to allow faster relocation of segments to final destination. The performance data: for a moderate size kernel + initramfs: 25M the relocation was taking 0.382s, with enabled MMU it now takes 0.019s only or x20 improvemen

[PATCH v3 16/17] arm64, kexec: configure trans_pgd page table for kexec

2019-08-21 Thread Pavel Tatashin
Configure a page table located in kexec-safe memory that has the following mappings: 1. identity mapping for text of relocation function with executable permission. 2. identity mapping for argument for relocation function. 3. linear mappings for all source ranges 4. linear mappings for all dest

[PATCH v3 11/17] arm64, trans_pgd: add PUD_SECT_RDONLY

2019-08-21 Thread Pavel Tatashin
Thre is PMD_SECT_RDONLY that is used in pud_* function which is confusing. Signed-off-by: Pavel Tatashin --- arch/arm64/include/asm/pgtable-hwdef.h | 1 + arch/arm64/mm/trans_pgd.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/pgtable-h

[PATCH v3 14/17] arm64, kexec: move relocation function setup and clean up

2019-08-21 Thread Pavel Tatashin
Currently, kernel relocation function is configured in machine_kexec() at the time of kexec reboot by using control_code_page. This operation, however, is more logical to be done during kexec_load, and thus remove from reboot time. Move, setup of this function to newly added machine_kexec_post_loa

Re: [PATCH v1 1/2] dt-binding: net: document NPCM7xx EMC 10/100 DT bindings

2019-08-21 Thread Rob Herring
On Thu, Aug 01, 2019 at 10:26:10AM +0300, Avi Fishman wrote: > Added device tree binding documentation for > Nuvoton NPCM7xx Ethernet MAC Controller (EMC) 10/100 RMII > > Signed-off-by: Avi Fishman > --- > .../bindings/net/nuvoton,npcm7xx-emc.txt | 38 +++ > 1 file changed,

[PATCH v3 06/17] arm64, hibernate: add trans_pgd public functions

2019-08-21 Thread Pavel Tatashin
trans_pgd_create_copy() and trans_pgd_map_page() are going to be the basis for public interface of new subsystem that handles page tables for cases which are between kernels: kexec, and hibernate. Signed-off-by: Pavel Tatashin --- arch/arm64/kernel/hibernate.c | 94 ++

[PATCH v3 04/17] arm64, hibernate: rename dst to page in create_safe_exec_page

2019-08-21 Thread Pavel Tatashin
create_safe_exec_page() allocates a safe page and maps it at a specific location, also this function returns the physical address of newly allocated page. The destination VA, and PA are specified in arguments: dst_addr, phys_dst_addr However, within the function it uses "dst" which has unsigned l

Re: [PATCH 1/3] dt-bindings: fsl: dspi: Add fsl,ls1088a-dspi compatible string

2019-08-21 Thread Rob Herring
On Thu, 1 Aug 2019 16:31:03 +0800, Chuanhua Han wrote: > new compatible string: "fsl,ls1088a-dspi". > > Signed-off-by: Chuanhua Han > --- > Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Rob Herring

Re: [PATCH] mm: consolidate pgtable_cache_init() and pgd_cache_init()

2019-08-21 Thread Thomas Gleixner
On Wed, 21 Aug 2019, Mike Rapoport wrote: > diff --git a/arch/x86/include/asm/pgtable_32.h > b/arch/x86/include/asm/pgtable_32.h > index b9b9f8a..0dca7f7 100644 > --- a/arch/x86/include/asm/pgtable_32.h > +++ b/arch/x86/include/asm/pgtable_32.h > @@ -29,7 +29,6 @@ extern pgd_t swapper_pg_dir[1024]

Re: [PATCH] sched/fair: eliminate redundant code in sched_slice()

2019-08-21 Thread Peter Zijlstra
On Wed, Aug 21, 2019 at 04:15:24PM +0100, Qais Yousef wrote: > On 08/16/19 22:12, Peng Liu wrote: > > Since sched_slice() is used in high frequency, > > small change should also make sense. > > > > Signed-off-by: Peng Liu > > --- > > kernel/sched/fair.c | 11 --- > > 1 file changed, 4 in

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