[PATCH v5 09/11] loop: Rework lo_ioctl() __user argument casting

2020-05-13 Thread Martijn Coenen
In preparation for a new ioctl that needs to copy_from_user(); makes the code easier to read as well. Reviewed-by: Christoph Hellwig Signed-off-by: Martijn Coenen --- drivers/block/loop.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/block/loop.c

[PATCH v5 03/11] loop: Factor out setting loop device size

2020-05-13 Thread Martijn Coenen
This code is used repeatedly. Reviewed-by: Christoph Hellwig Signed-off-by: Martijn Coenen --- drivers/block/loop.c | 30 +- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 00de7fec0ed5..e69ff3c19eff

Re: [RFC PATCH v3 2/3] docs: scheduler: Add scheduler overview documentation

2020-05-13 Thread John Mathew
On Fri, May 8, 2020 at 1:58 PM Dietmar Eggemann wrote: > > On 07/05/2020 23:15, Valentin Schneider wrote: > > > > On 07/05/20 19:05, John Mathew wrote: > > [...] > > > It would also be an opportunity to have one place to (at least briefly) > > describe what the different sched classes do wrt

[PATCH v5 07/11] loop: Factor out configuring loop from status

2020-05-13 Thread Martijn Coenen
Factor out this code into a separate function, so it can be reused by other code more easily. Reviewed-by: Christoph Hellwig Signed-off-by: Martijn Coenen --- drivers/block/loop.c | 117 +-- 1 file changed, 67 insertions(+), 50 deletions(-) diff --git

[PATCH v5 04/11] loop: Switch to set_capacity_revalidate_and_notify()

2020-05-13 Thread Martijn Coenen
This was recently added to block/genhd.c, and takes care of both updating the capacity and notifying userspace of the new size. Reviewed-by: Christoph Hellwig Signed-off-by: Martijn Coenen --- drivers/block/loop.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

Re: [RFC PATCH v3 2/3] docs: scheduler: Add scheduler overview documentation

2020-05-13 Thread John Mathew
On Fri, May 8, 2020 at 1:19 PM Dietmar Eggemann wrote: > > On 07/05/2020 20:05, John Mathew wrote: > > [...] > > > diff --git a/Documentation/scheduler/cfs-overview.rst > > b/Documentation/scheduler/cfs-overview.rst > > new file mode 100644 > > index ..b717f2d3e340 > > --- /dev/null

[PATCH v5 08/11] loop: Move loop_set_status_from_info() and friends up

2020-05-13 Thread Martijn Coenen
So we can use it without forward declaration. This is a separate commit to make it easier to verify that this is just a move, without functional modifications. Reviewed-by: Christoph Hellwig Signed-off-by: Martijn Coenen --- drivers/block/loop.c | 206

[PATCH v5 00/11] Add a new LOOP_CONFIGURE ioctl

2020-05-13 Thread Martijn Coenen
This series introduces a new ioctl that makes it possible to atomically configure a loop device. Previously, if you wanted to set parameters such as the offset on a loop device, this required calling LOOP_SET_FD to set the backing file, and then LOOP_SET_STATUS to set the offset. However, in

[PATCH v5 05/11] loop: Refactor loop_set_status() size calculation

2020-05-13 Thread Martijn Coenen
figure_loop_size() calculates the loop size based on the passed in parameters, but at the same time it updates the offset and sizelimit parameters in the loop device configuration. That is a somewhat unexpected side effect of a function with this name, and it is only only needed by one of the two

Re: [PATCH v2] dt-bindings: timer: renesas: tmu: Convert to json-schema

2020-05-13 Thread Geert Uytterhoeven
On Tue, May 5, 2020 at 5:50 PM Geert Uytterhoeven wrote: > Convert the Renesas R-Mobile/R-Car Timer Unit (TMU) Device Tree binding > documentation to json-schema. > > Document missing properties. > Update the example to match reality. > > Signed-off-by: Geert Uytterhoeven > Reviewed-by: Rob

Re: [PATCH] perf evsel: Fix 2 memory leaks

2020-05-13 Thread Arnaldo Carvalho de Melo
Em Tue, May 12, 2020 at 04:59:18PM -0700, Ian Rogers escreveu: > If allocated, perf_pkg_mask and metric_events need freeing. Applied, were those found with some tool? Or just by visual inspection? Also I noticed that evsel->metric_events is correctly initialized to NULL in evsel__init(), but

[PATCH v5 05/38] drm: prime: use sgtable iterators in drm_prime_sg_to_page_addr_arrays()

2020-05-13 Thread Marek Szyprowski
Replace the current hand-crafted code for extracting pages and DMA addresses from the given scatterlist by the much more robust code based on the generic scatterlist iterators and recently introduced sg_table-based wrappers. The resulting code is simple and easy to understand, so the comment

[PATCH v5 13/38] drm: lima: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 11/38] drm: exynos: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

Re: [PATCH] x86/hyperv: Properly suspend/resume reenlightenment notifications

2020-05-13 Thread Tianyu Lan
On 5/13/2020 12:01 AM, Vitaly Kuznetsov wrote: Errors during hibernation with reenlightenment notifications enabled were reported: [ 51.730435] PM: hibernation entry [ 51.737435] PM: Syncing filesystems ... ... [ 54.102216] Disabling non-boot CPUs ... [ 54.106633] smpboot: CPU

[PATCH v5 02/38] scatterlist: add generic wrappers for iterating over sgtable objects

2020-05-13 Thread Marek Szyprowski
struct sg_table is a common structure used for describing a memory buffer. It consists of a scatterlist with memory pages and DMA addresses (sgl entry), as well as the number of scatterlist entries: CPU pages (orig_nents entry) and DMA mapped pages (nents entry). It turned out that it was a

Re: [PATCH] kgdb: Fix broken handling of printk() in NMI context

2020-05-13 Thread Sumit Garg
On Tue, 12 May 2020 at 19:55, Daniel Thompson wrote: > > On Tue, May 12, 2020 at 02:18:34PM +0530, Sumit Garg wrote: > > Since commit 42a0bb3f7138 ("printk/nmi: generic solution for safe printk > > in NMI"), kgdb entry in NMI context defaults to use safe NMI printk() > > I didn't see the author

Re: [PATCH v6 1/6] arch/x86/kvm: Refactor l1d flush lifecycle management

2020-05-13 Thread Thomas Gleixner
Balbir Singh writes: > Subject: [PATCH v6 1/6] arch/x86/kvm: Refactor arch/x86/kvm: is really not the correct subsystem prefix... I'll fix it up this time.

[PATCH v5 09/38] drm: etnaviv: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 15/38] drm: mediatek: use common helper for extracting pages array

2020-05-13 Thread Marek Szyprowski
Use common helper for converting a sg_table object into struct page pointer array. Signed-off-by: Marek Szyprowski --- For more information, see '[PATCH v5 00/38] DRM: fix struct sg_table nents vs. orig_nents misuse' thread:

[PATCH v5 08/38] drm: armada: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 20/38] drm: radeon: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 22/38] drm: rockchip: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 19/38] drm: panfrost: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 21/38] drm: rockchip: use common helper for a scatterlist contiguity check

2020-05-13 Thread Marek Szyprowski
Use common helper for checking the contiguity of the imported dma-buf. Signed-off-by: Marek Szyprowski --- For more information, see '[PATCH v5 00/38] DRM: fix struct sg_table nents vs. orig_nents misuse' thread:

[PATCH v5 31/38] staging: ion: remove dead code

2020-05-13 Thread Marek Szyprowski
ion_heap_pages_zero() function is not used at all, so remove it to simplify the ion_heap_sglist_zero() function later. Signed-off-by: Marek Szyprowski --- For more information, see '[PATCH v5 00/38] DRM: fix struct sg_table nents vs. orig_nents misuse' thread:

[PATCH v5 12/38] drm: i915: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 24/38] drm: v3d: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 28/38] drm: host1x: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 23/38] drm: tegra: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 10/38] drm: exynos: use common helper for a scatterlist contiguity check

2020-05-13 Thread Marek Szyprowski
Use common helper for checking the contiguity of the imported dma-buf. Signed-off-by: Marek Szyprowski --- For more information, see '[PATCH v5 00/38] DRM: fix struct sg_table nents vs. orig_nents misuse' thread:

[PATCH v5 30/38] dmabuf: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 14/38] drm: mediatek: use common helper for a scatterlist contiguity check

2020-05-13 Thread Marek Szyprowski
Use common helper for checking the contiguity of the imported dma-buf and do this check before allocating resources, so the error path is simpler. Signed-off-by: Marek Szyprowski --- For more information, see '[PATCH v5 00/38] DRM: fix struct sg_table nents vs. orig_nents misuse' thread:

Re: [RFC PATCH v3 2/3] docs: scheduler: Add scheduler overview documentation

2020-05-13 Thread John Mathew
On Fri, May 8, 2020 at 12:15 AM Valentin Schneider wrote: > > > On 07/05/20 19:05, John Mathew wrote: > > Add documentation for > > -scheduler overview > > -scheduler state transtion > > -CFS overview > > -scheduler data structs > > > > Add rst for scheduler APIs and modify sched/core.c > >

[PATCH v5 06/38] drm: core: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 27/38] xen: gntdev: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 35/38] rapidio: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 29/38] drm: rcar-du: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 37/38] media: pci: fix common ALSA DMA-mapping related codes

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents

Re: [PATCH v6 6/6] Documentation: Add L1D flushing Documentation

2020-05-13 Thread Thomas Gleixner
Balbir Singh writes: > +With an increasing number of vulnerabilities being reported around data > +leaks from L1D, a new user space mechanism to flush the L1D cache on > +context switch is added to the kernel. This should help address is added to the kernel? This is documentation of an existing

[PATCH v5 16/38] drm: msm: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 33/38] staging: tegra-vde: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 34/38] misc: fastrpc: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 38/38] videobuf2: use sgtable-based scatterlist wrappers

2020-05-13 Thread Marek Szyprowski
Use recently introduced common wrappers operating directly on the struct sg_table objects and scatterlist page iterators to make the code a bit more compact, robust, easier to follow and copy/paste safe. No functional change, because the code already properly did all the scaterlist related calls.

[PATCH v5 32/38] staging: ion: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 26/38] drm: vmwgfx: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 18/38] drm: omapdrm: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 25/38] drm: virtio: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 17/38] drm: omapdrm: use common helper for extracting pages array

2020-05-13 Thread Marek Szyprowski
Use common helper for converting a sg_table object into struct page pointer array. Signed-off-by: Marek Szyprowski --- For more information, see '[PATCH v5 00/38] DRM: fix struct sg_table nents vs. orig_nents misuse' thread:

[PATCH v5 36/38] samples: vfio-mdev/mbochs: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 07/38] drm: amdgpu: fix common struct sg_table related issues

2020-05-13 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the

[PATCH v5 03/38] iommu: add generic helper for mapping sgtable objects

2020-05-13 Thread Marek Szyprowski
struct sg_table is a common structure used for describing a memory buffer. It consists of a scatterlist with memory pages and DMA addresses (sgl entry), as well as the number of scatterlist entries: CPU pages (orig_nents entry) and DMA mapped pages (nents entry). It turned out that it was a

[PATCH v5 01/38] dma-mapping: add generic helpers for mapping sgtable objects

2020-05-13 Thread Marek Szyprowski
struct sg_table is a common structure used for describing a memory buffer. It consists of a scatterlist with memory pages and DMA addresses (sgl entry), as well as the number of scatterlist entries: CPU pages (orig_nents entry) and DMA mapped pages (nents entry). It turned out that it was a

[PATCH v5 04/38] drm: prime: add common helper to check scatterlist contiguity

2020-05-13 Thread Marek Szyprowski
It is a common operation done by DRM drivers to check the contiguity of the DMA-mapped buffer described by a scatterlist in the sg_table object. Let's add a common helper for this operation. Signed-off-by: Marek Szyprowski --- For more information, see '[PATCH v5 00/38] DRM: fix struct sg_table

Re: [PATCH] perf parse-events: Avoid free on non malloc-ed memory

2020-05-13 Thread Arnaldo Carvalho de Melo
Em Tue, May 12, 2020 at 04:52:02PM -0700, Ian Rogers escreveu: > Caught by libfuzzer, there is a segfault with: > $ perf stat -e i/bs,tsc,L2/o sleep 1 > As a config_term is added that isn't a string. Yeah, I've just applied a similar patch after looking at your private report, added the same

[PATCH 0/3] mmc: Adding support for Microchip Sparx5 SoC

2020-05-13 Thread Lars Povlsen
This is an add-on series to the main SoC Sparx5 series (Message-ID: <20200513125532.24585-1-lars.povl...@microchip.com>). It adds eMMC support for Sparx5, by adding a driver for the SoC SDHCI controller, DT configuration and DT binding documentation. Lars Povlsen (3): dt-bindings: mmc: Add

[PATCH 2/3] sdhci: sparx5: Add Sparx5 SoC eMMC driver

2020-05-13 Thread Lars Povlsen
This adds the eMMC driver for the Sparx5 SoC. It is based upon the designware IP, but requires some extra initialization and quirks. Reviewed-by: Alexandre Belloni Signed-off-by: Lars Povlsen --- drivers/mmc/host/Kconfig | 13 ++ drivers/mmc/host/Makefile | 1 +

Re: [PATCH v2] sched/fair: enqueue_task_fair optimization

2020-05-13 Thread Phil Auld
On Wed, May 13, 2020 at 03:25:29PM +0200 Vincent Guittot wrote: > On Wed, 13 May 2020 at 15:18, Phil Auld wrote: > > > > On Wed, May 13, 2020 at 03:15:53PM +0200 Vincent Guittot wrote: > > > On Wed, 13 May 2020 at 15:13, Phil Auld wrote: > > > > > > > > On Wed, May 13, 2020 at 03:10:28PM +0200

Re: [PATCH v1] net: phy: at803x: add cable test support

2020-05-13 Thread Andrew Lunn
On Wed, May 13, 2020 at 02:06:48PM +0200, Oleksij Rempel wrote: > The cable test seems to be support by all of currently support Atherso > PHYs, so add support for all of them. This patch was tested only on > AR9331 PHY with following results: > - No cable is detected as short > - A 15m long cable

[PATCH 3/3] arm64: dts: sparx5: Add Sparx5 eMMC support

2020-05-13 Thread Lars Povlsen
This adds eMMC support to the applicable Sparx5 board configuration files. Reviewed-by: Alexandre Belloni Signed-off-by: Lars Povlsen --- arch/arm64/boot/dts/microchip/sparx5.dtsi | 24 +++ .../boot/dts/microchip/sparx5_pcb125.dts | 23 ++

[PATCH 1/3] dt-bindings: mmc: Add Sparx5 SDHCI controller bindings

2020-05-13 Thread Lars Povlsen
The Sparx5 SDHCI controller is based on the Designware controller IP. Reviewed-by: Alexandre Belloni Signed-off-by: Lars Povlsen --- .../mmc/microchip,dw-sparx5-sdhci.yaml| 57 +++ 1 file changed, 57 insertions(+) create mode 100644

Thank you for your anticipated co-operation.

2020-05-13 Thread REJOY
DEAR FRIEND. YOU MAY BE WONDERING WHYI CONTACT YOU BUT SOMEONE LUCKY HAS TO BE CHOSEN WHICH IS YOU. I WANT YOU TO HANDLE THIS BUSINESS TRASACTION WITH ME IF CHANCE YOU TO DO INTERNATION BUSINESS I GO YOUR CONTACT FROM A RELIABLE WEB DIRECTORY. I RECEIVE YOUR CONTENT OF YOUR EMAIL FROM THIS

Re: [tracing] 06e0a548ba: WARNING:at_kernel/trace/ring_buffer.c:#ring_buffer_iter_peek

2020-05-13 Thread Steven Rostedt
On Wed, 13 May 2020 11:19:06 +0200 Sven Schnelle wrote: > Did you had a chance to look into this? I can easily reproduce this both on > x86 > and s390 by doing: > > cd /sys/kernel/tracing > cat /dev/zero >/dev/null & # generate some load > echo function >current_tracer > # wait a few seconds

Re: [PATCH v11 00/13] SMMUv3 Nested Stage Setup (IOMMU part)

2020-05-13 Thread Auger Eric
Hi Shameer, On 5/7/20 8:59 AM, Shameerali Kolothum Thodi wrote: > Hi Eric, > >> -Original Message- >> From: Shameerali Kolothum Thodi >> Sent: 30 April 2020 10:38 >> To: 'Auger Eric' ; Zhangfei Gao >> ; eric.auger@gmail.com; >> io...@lists.linux-foundation.org;

Re: [PATCH v4 03/38] iommu: add generic helper for mapping sgtable objects

2020-05-13 Thread Robin Murphy
On 2020-05-12 10:00 am, Marek Szyprowski wrote: struct sg_table is a common structure used for describing a memory buffer. It consists of a scatterlist with memory pages and DMA addresses (sgl entry), as well as the number of scatterlist entries: CPU pages (orig_nents entry) and DMA mapped pages

Re: [PATCH 06/33] net: add sock_set_timestamps

2020-05-13 Thread David Howells
Christoph Hellwig wrote: > Add a helper to directly set the SO_TIMESTAMP* sockopts from kernel space > without going through a fake uaccess. > > Signed-off-by: Christoph Hellwig Reviewed-by: David Howells

Re: [PATCH] MIPS: dts: mscc: Updated changed name for miim pinctrl function

2020-05-13 Thread Alexandre Belloni
On 13/05/2020 15:23:47+0200, Lars Povlsen wrote: > This is an add-on patch to the main SoC Sparx5 series > (Message-ID: <20200513125532.24585-1-lars.povl...@microchip.com>). > > This changes the miim pinctrl function name from "miim1" to "miim" due > to refactoring in the driver, obsoleting the

[PATCH net-next 1/2] ethernet: ti: am65-cpts: add routines to support taprio offload

2020-05-13 Thread Murali Karicheri
From: Ivan Khoronzhuk TAPRIO/EST offload support in CPSW2G requires EST scheduler function enabled in CPTS. So this patch add a function to set cycle time for EST scheduler. It also add a function for getting time in ns of PHC clock for taprio qdisc configuration. Mostly to verify if timer

[PATCH v2] USB: host: ehci-mxc: Add error handling in ehci_mxc_drv_probe()

2020-05-13 Thread Tang Bin
The function ehci_mxc_drv_probe() does not perform sufficient error checking after executing platform_get_irq(), thus fix it. Fixes: 7e8d5cd93fa ("USB: Add EHCI support for MX27 and MX31 based boards") Signed-off-by: Zhang Shengju Signed-off-by: Tang Bin --- Changes from v1 - fix the subject.

[PATCH net-next 2/2] ethernet: ti: am65-cpsw-qos: add TAPRIO offload support

2020-05-13 Thread Murali Karicheri
From: Ivan Khoronzhuk AM65 CPSW h/w supports Enhanced Scheduled Traffic (EST – defined in P802.1Qbv/D2.2 that later got included in IEEE 802.1Q-2018) configuration. EST allows express queue traffic to be scheduled (placed) on the wire at specific repeatable time intervals. In Linux kernel, EST

[PATCH net-next 0/2] am65-cpsw: add taprio/EST offload support

2020-05-13 Thread Murali Karicheri
AM65 CPSW h/w supports Enhanced Scheduled Traffic (EST – defined in P802.1Qbv/D2.2 that later got included in IEEE 802.1Q-2018) configuration. EST allows express queue traffic to be scheduled (placed) on the wire at specific repeatable time intervals. In Linux kernel, EST configuration is done

Re: [PATCH v2] sched/fair: enqueue_task_fair optimization

2020-05-13 Thread Vincent Guittot
On Wed, 13 May 2020 at 15:18, Phil Auld wrote: > > On Wed, May 13, 2020 at 03:15:53PM +0200 Vincent Guittot wrote: > > On Wed, 13 May 2020 at 15:13, Phil Auld wrote: > > > > > > On Wed, May 13, 2020 at 03:10:28PM +0200 Vincent Guittot wrote: > > > > On Wed, 13 May 2020 at 14:45, Phil Auld

Re: [PATCH 23/33] ipv6: add ip6_sock_set_recverr

2020-05-13 Thread David Howells
Christoph Hellwig wrote: > Add a helper to directly set the IPV6_RECVERR sockopt from kernel space > without going through a fake uaccess. > > Signed-off-by: Christoph Hellwig Reviewed-by: David Howells

Re: [PATCH v5 00/18] Rework READ_ONCE() to improve codegen

2020-05-13 Thread Peter Zijlstra
On Wed, May 13, 2020 at 03:15:55PM +0200, Marco Elver wrote: > So far so good, except: both __no_sanitize_or_inline and > __no_kcsan_or_inline *do* avoid KCSAN instrumenting plain accesses, it > just doesn't avoid explicit kcsan_check calls, like those in > READ/WRITE_ONCE if KCSAN is enabled for

Re: [PATCH 20/33] ipv4: add ip_sock_set_recverr

2020-05-13 Thread David Howells
Christoph Hellwig wrote: > Add a helper to directly set the IP_RECVERR sockopt from kernel space > without going through a fake uaccess. It looks like if this is an AF_INET6 socket, it will just pass the message straight through to AF_INET4, so: Reviewed-by: David Howells

Re: [PATCH v4 02/38] scatterlist: add generic wrappers for iterating over sgtable objects

2020-05-13 Thread Robin Murphy
On 2020-05-12 10:00 am, Marek Szyprowski wrote: struct sg_table is a common structure used for describing a memory buffer. It consists of a scatterlist with memory pages and DMA addresses (sgl entry), as well as the number of scatterlist entries: CPU pages (orig_nents entry) and DMA mapped pages

Re: [PATCH v4 01/38] dma-mapping: add generic helpers for mapping sgtable objects

2020-05-13 Thread Robin Murphy
On 2020-05-12 10:00 am, Marek Szyprowski wrote: struct sg_table is a common structure used for describing a memory buffer. It consists of a scatterlist with memory pages and DMA addresses (sgl entry), as well as the number of scatterlist entries: CPU pages (orig_nents entry) and DMA mapped pages

[PATCH] MIPS: dts: mscc: Updated changed name for miim pinctrl function

2020-05-13 Thread Lars Povlsen
This is an add-on patch to the main SoC Sparx5 series (Message-ID: <20200513125532.24585-1-lars.povl...@microchip.com>). This changes the miim pinctrl function name from "miim1" to "miim" due to refactoring in the driver, obsoleting the instance number. The change in the driver was to better fit

[PATCH v5 00/38] DRM: fix struct sg_table nents vs. orig_nents misuse

2020-05-13 Thread Marek Szyprowski
Dear All, During the Exynos DRM GEM rework and fixing the issues in the. drm_prime_sg_to_page_addr_arrays() function [1] I've noticed that most drivers in DRM framework incorrectly use nents and orig_nents entries of the struct sg_table. In case of the most DMA-mapping implementations exchanging

RE: [PATCH v5 00/18] Rework READ_ONCE() to improve codegen

2020-05-13 Thread David Laight
From: Will Deacon > Sent: 13 May 2020 13:40 > On Wed, May 13, 2020 at 02:32:43PM +0200, Peter Zijlstra wrote: > > On Wed, May 13, 2020 at 01:48:41PM +0200, Marco Elver wrote: > > > > > Disabling most instrumentation for arch/x86 is reasonable. Also fine > > > with the __READ_ONCE/__WRITE_ONCE

Re: [RFC v1 2/3] drivers: nvmem: Add driver for QTI qfprom-efuse support

2020-05-13 Thread Srinivas Kandagatla
On 12/05/2020 19:17, Ravi Kumar Bokka wrote: This patch adds new driver for QTI qfprom-efuse controller. This driver can access the raw qfprom regions for fuse blowing. QTI? The current existed qfprom driver is only supports for cpufreq, thermal sensors drivers by read out calibration

Re: [PATCH v2] sched/fair: enqueue_task_fair optimization

2020-05-13 Thread Phil Auld
On Wed, May 13, 2020 at 03:15:53PM +0200 Vincent Guittot wrote: > On Wed, 13 May 2020 at 15:13, Phil Auld wrote: > > > > On Wed, May 13, 2020 at 03:10:28PM +0200 Vincent Guittot wrote: > > > On Wed, 13 May 2020 at 14:45, Phil Auld wrote: > > > > > > > > Hi Vincent, > > > > > > > > On Wed, May

Re: [PATCH 21/33] ipv4: add ip_sock_set_mtu_discover

2020-05-13 Thread David Howells
Christoph Hellwig wrote: > + ip_sock_set_mtu_discover(conn->params.local->socket->sk, > + IP_PMTUDISC_DONT); Um... The socket in question could be an AF_INET6 socket, not an AF_INET4 socket - I presume it will work in that case. If so: Reviewed-by:

Re: [PATCH v3 5/5] lib/test_sysctl: support testing of sysctl. boot parameter

2020-05-13 Thread Luis Chamberlain
On Wed, May 13, 2020 at 7:15 AM Luis Chamberlain wrote: > > On Wed, May 13, 2020 at 10:58:16AM +0200, Vlastimil Babka wrote: > > On 5/11/20 8:31 PM, Luis Chamberlain wrote: > > > On Mon, May 11, 2020 at 01:05:22PM +0200, Vlastimil Babka wrote: > > >> 8< > > >> From

Add support for the X1830 and fix bugs for X1000 v8.

2020-05-13 Thread Zhou Yanjie
v7->v8: 1.Rebase [3/6] on top of linux-next, because "ingenic,cgu.txt" has been converted to "ingenic,cgu.yaml".

[PATCH v8 4/6] clk: Ingenic: Add CGU driver for X1830.

2020-05-13 Thread Zhou Yanjie
Add support for the clocks provided by the CGU in the Ingenic X1830 SoC, making use of the cgu code to do the heavy lifting. Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: 1.Use two fields (pll_reg & bypass_reg) instead of the 2-values array (reg[2]). 2.Remove the

[PATCH v8 3/6] dt-bindings: clock: Add X1830 bindings.

2020-05-13 Thread Zhou Yanjie
Add the clock bindings for the X1830 Soc from Ingenic. Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Rob Herring --- Notes: v1->v2: Change my Signed-off-by from "Zhou Yanjie " to "周琰杰 (Zhou Yanjie) " because the old mailbox is in an unstable state. v2->v3: Adjust

[PATCH v8 5/6] dt-bindings: clock: Add and reorder ABI for X1000.

2020-05-13 Thread Zhou Yanjie
1.The SSI clock of X1000 not like JZ4770 and JZ4780, they are not directly derived from the output of SSIPLL, but from the clock obtained by dividing the frequency by 2. "X1000_CLK_SSIPLL_DIV2" is added for this purpose, it must between "X1000_CLK_SSIPLL" and "X1000_CLK_SSIMUX", otherwise

[PATCH v8 1/6] clk: Ingenic: Remove unnecessary spinlock when reading registers.

2020-05-13 Thread Zhou Yanjie
It is not necessary to use spinlock when reading registers, so remove it from cgu.c. Suggested-by: Paul Cercueil Suggested-by: Paul Burton Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Paul Cercueil --- Notes: v2: New patch. v2->v3: Adjust order from [5/5] in v2 to [1/5]

[PATCH v8 2/6] clk: Ingenic: Adjust cgu code to make it compatible with X1830.

2020-05-13 Thread Zhou Yanjie
The PLL of X1830 Soc from Ingenic has been greatly changed, the bypass control is placed in another register, so now two registers may needed to control the PLL. To this end, a new "bypass_reg" was introduced. In addition, when calculating rate, the PLL of X1830 introduced an extra 2x multiplier,

[PATCH v8 6/6] clk: X1000: Add FIXDIV for SSI clock of X1000.

2020-05-13 Thread Zhou Yanjie
1.The SSI clock of X1000 not like JZ4770 and JZ4780, they are not directly derived from the output of SSIPLL, but from the clock obtained by dividing the frequency by 2. "X1000_CLK_SSIPLL_DIV2" is added for this purpose, and ensure that it initialized before "X1000_CLK_SSIMUX" when

[PATCH v8 0/6] Add support for the X1830 and fix bugs for X1000

2020-05-13 Thread Zhou Yanjie
v7->v8: 1.Rebase [3/6] on top of linux-next, because "ingenic,cgu.txt" has been converted to "ingenic,cgu.yaml". 周琰杰 (Zhou Yanjie) (6): clk: Ingenic: Remove unnecessary spinlock when reading registers. clk: Ingenic: Adjust cgu code to make it compatible with X1830. dt-bindings: clock: Add

Re: [v1,1/1] watchdog: (nct7904) Fix enable watchdog incorrectly

2020-05-13 Thread Guenter Roeck
On 5/13/20 4:00 AM, yuechao.z...@advantech.com.cn wrote: > From: Yuechao Zhao > > Use incorrect register to enable watchdog in nct7904_wdt_ping() > I assume you mean 'correct'. Guenter > Signed-off-by: Yuechao Zhao > --- > drivers/hwmon/nct7904.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH v5 00/18] Rework READ_ONCE() to improve codegen

2020-05-13 Thread Marco Elver
On Wed, 13 May 2020 at 14:40, Will Deacon wrote: > > On Wed, May 13, 2020 at 02:32:43PM +0200, Peter Zijlstra wrote: > > On Wed, May 13, 2020 at 01:48:41PM +0200, Marco Elver wrote: > > > > > Disabling most instrumentation for arch/x86 is reasonable. Also fine > > > with the

Re: [PATCH v2] sched/fair: enqueue_task_fair optimization

2020-05-13 Thread Vincent Guittot
On Wed, 13 May 2020 at 15:13, Phil Auld wrote: > > On Wed, May 13, 2020 at 03:10:28PM +0200 Vincent Guittot wrote: > > On Wed, 13 May 2020 at 14:45, Phil Auld wrote: > > > > > > Hi Vincent, > > > > > > On Wed, May 13, 2020 at 02:33:35PM +0200 Vincent Guittot wrote: > > > > enqueue_task_fair

Re: [PATCH v3 5/5] lib/test_sysctl: support testing of sysctl. boot parameter

2020-05-13 Thread Luis Chamberlain
On Wed, May 13, 2020 at 10:58:16AM +0200, Vlastimil Babka wrote: > On 5/11/20 8:31 PM, Luis Chamberlain wrote: > > On Mon, May 11, 2020 at 01:05:22PM +0200, Vlastimil Babka wrote: > >> 8< > >> From a999e993a89e521b152bbd4b1466f69e62879c30 Mon Sep 17 00:00:00 2001 > >> From: Vlastimil Babka

[PATCH] x86/ftrace: Have ftrace trampolines turn read-only at the end of system boot up

2020-05-13 Thread Steven Rostedt
[ I just finished all my testing on this patch. I'm sending this out one more time to let people see it, before I send a pull request to Linus to take it. Peter, you gave your ack on it earlier, so I included that. ] From: "Steven Rostedt (VMware)" Booting one of my machines, it

Re: [PATCH v2 2/2] fs: avoid fdput() after failed fdget() in kernel_read_file_from_fd()

2020-05-13 Thread Luis Chamberlain
On Wed, May 13, 2020 at 06:49:50AM +0100, Al Viro wrote: > On Tue, May 12, 2020 at 01:43:05PM -0600, Shuah Khan wrote: > > diff --git a/fs/exec.c b/fs/exec.c > > index 06b4c550af5d..ea24bdce939d 100644 > > --- a/fs/exec.c > > +++ b/fs/exec.c > > @@ -1021,8 +1021,8 @@ int

Re: [PATCH v2] sched/fair: enqueue_task_fair optimization

2020-05-13 Thread Phil Auld
On Wed, May 13, 2020 at 03:10:28PM +0200 Vincent Guittot wrote: > On Wed, 13 May 2020 at 14:45, Phil Auld wrote: > > > > Hi Vincent, > > > > On Wed, May 13, 2020 at 02:33:35PM +0200 Vincent Guittot wrote: > > > enqueue_task_fair jumps to enqueue_throttle label when cfs_rq_of(se) is > > >

Re: [PATCH 29/33] rxrpc_sock_set_min_security_level

2020-05-13 Thread David Howells
Christoph Hellwig wrote: > +int rxrpc_sock_set_min_security_level(struct sock *sk, unsigned int val); > + Looks good - but you do need to add this to Documentation/networking/rxrpc.txt also, thanks. David

<    5   6   7   8   9   10   11   12   13   14   >