Re: [PATCH v2 4/6] drm/virtio: params struct for virtio_gpu_cmd_create_resource_3d()

2019-02-01 Thread Gerd Hoffmann
On Thu, Jan 31, 2019 at 11:47:38AM +0100, Noralf Trønnes wrote: > > > Den 30.01.2019 10.43, skrev Gerd Hoffmann: > > Add 3d resource parameters to virtio_gpu_object_params struct. With > > that in place we can use it for virtio_gpu_cmd_resource_create_3d() > > calls. > > > > Signed-off-by:

latest RT patches for the latest 4.20.6 release

2019-02-01 Thread Michael Umansky
Hello, I found linux-stable-rt-4.20.2.tar.gz but the latest official patches are for 4.19.15 (in the rt directory). While I can run the diffs against the regular 4.20.2 tree I'm curious if there will be official patches released against that version, or better yet, against current 4.20.6 stable

Re: use generic DMA mapping code in powerpc V4

2019-02-01 Thread Christoph Hellwig
On Thu, Jan 31, 2019 at 01:48:26PM +0100, Christian Zigotzky wrote: > Hi Christoph, > > I compiled kernels for the X5000 and X1000 from your branch 'powerpc-dma.6' > today. > > Gitweb: > http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/powerpc-dma.6 > > git clone

Re: [PATCH v3 2/8] clk: samsung: add new clocks for DMC for Exynos5422 SoC

2019-02-01 Thread Chanwoo Choi
Hi, When I reviewed this patch, the almost changes are wrong. Frankly, I can't believe that you had tested and verified it on real board. Please check my comments. If I misunderstood, please let me know. On 19. 1. 31. 오후 5:49, Lukasz Luba wrote: > This patch provides support for clocks needed

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

2019-02-01 Thread Christoph Hellwig
For some reason patch 5 didn't make it to my inbox, but assuming nothing has changed this whole series looks good to me now.

Re: [PATCH v2 2/6] drm/virtio: use struct to pass params to virtio_gpu_object_create()

2019-02-01 Thread Gerd Hoffmann
> > - ret = virtio_gpu_gem_create(file_priv, dev, args->size, , > > + params.pinned = false, > > You have a comma here, but assigning to false isn't really necessary > since the struct is zeroed. Same goes for the same assignment further down. Hmm, yes, but it likewise isn't used, so I think

Re: [PATCH] mmc: mmc: Fix HS setting in mmc_hs400_to_hs200()

2019-02-01 Thread Ulf Hansson
On Fri, 1 Feb 2019 at 02:38, Chaotian Jing wrote: > > On Thu, 2019-01-31 at 16:58 +0100, Ulf Hansson wrote: > > On Thu, 31 Jan 2019 at 08:53, Chaotian Jing > > wrote: > > > > > > mmc_hs400_to_hs200() begins with the card and host in HS400 mode. > > > Therefore, any commands sent to the card

Re: [PATCH] perf record: Add doc for bpf event selection

2019-02-01 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 01, 2019 at 03:06:41AM +, Changbin Du escreveu: > Add document for how to pass bpf program with perf. That is a good start, see some comments below. > Signed-off-by: Changbin Du > --- > tools/perf/Documentation/perf-record.txt | 13 + > 1 file changed, 13

Re: [PATCH] swiotlb: Return error from swiotlb_init_with_tbl()

2019-02-01 Thread Christoph Hellwig
On Thu, Jan 31, 2019 at 05:24:24PM +0100, Joerg Roedel wrote: > From: Joerg Roedel > > The only reason why swiotlb_init_with_tbl() can fail is an > allocation failure in the memblock_alloc() function. But > this function just calls panic() in case it can't fulfill > the request and never returns

Re: Getting weird TPM error after rebasing my tree to security/next-general

2019-02-01 Thread Jarkko Sakkinen
On Thu, Jan 31, 2019 at 07:47:19PM +, Winkler, Tomas wrote: > > > > > On Thu, Jan 31, 2019 at 10:52 AM Linus Torvalds > foundation.org> wrote: > > > > > > I think what I should do is to just make "memcpy_*io()" do the "align > > > naturally" thing. > > > > > > Let me cook up a patch for you

Re: Linux Kernel Regression: HAPS quirk breaks PCIe on i.MX6QP

2019-02-01 Thread Lukas Hartmann
Hi Thinh, this is in a taped out i.MX6QP 1.2GHz SoC, I also confirmed it with the 1.0GHz version, it has the same 0xabcd device id integrated. I will try your patch ASAP. Cheers Lukas > On 1. Feb 2019, at 00:46, Thinh Nguyen wrote: > > Hi Lukas, > > Thinh Nguyen wrote: >> Bjorn Helgaas

Re: [PATCH] staging: android: ion: fix sys heap pool's gfp_flags

2019-02-01 Thread Dan Carpenter
On Fri, Feb 01, 2019 at 02:59:46PM +0800, Qing Xia wrote: > In the first loop, gfp_flags will be modified to high_order_gfp_flags, > and there will be no chance to change back to low_order_gfp_flags. > > Fixes: e7f63771 ("ION: Sys_heap: Add cached pool to spead up cached buffer > alloc") Huh...

Re: [PATCH v3 1/4] dt-bindings: Add vendor prefix for "GlobalTop Technology, Inc."

2019-02-01 Thread Loys Ollivier
On Wed 30 Jan 2019 at 15:48, Rob Herring wrote: > On Mon, 28 Jan 2019 17:37:58 +0100, Loys Ollivier wrote: >> Add globaltop vendor definition. >> >> Signed-off-by: Loys Ollivier >> --- >> >> v3: No changes >> >> v2: Alphabetical order >> >>

Re: [PATCH v3 2/4] Input: goodix - Add AVDD28-supply regulator support

2019-02-01 Thread Dmitry Torokhov
On Thu, Jan 31, 2019 at 12:00 PM Jagan Teki wrote: > > On Wed, Jan 9, 2019 at 1:10 PM Dmitry Torokhov > wrote: > > > > Hi Jagan, > > > > On Sat, Dec 15, 2018 at 08:48:00PM +0530, Jagan Teki wrote: > > > Goodix CTP controllers have AVDD28 pin connected to voltage > > > regulator which may not be

[GIT PULL] Immutable branch between MFD and Platform due for the v5.1 merge window

2019-02-01 Thread Lee Jones
Enjoy! The following changes since commit 49a57857aeea06ca831043acbb0fa5e0f50602fd: Linux 5.0-rc3 (2019-01-21 13:14:44 +1300) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git ib-mfd-platform-v5.1 for you to fetch changes up to

Re: [PATCH v5 0/7] mfd / platform: cros_ec: move cros_ec sysfs attributes to its own drivers.

2019-02-01 Thread Lee Jones
On Thu, 31 Jan 2019, Enric Balletbo Serra wrote: > Missatge de Lee Jones del dia dc., 16 de gen. > 2019 a les 19:31: > > On Wed, 12 Dec 2018, Enric Balletbo i Serra wrote: > > > This is another patchset to try to cleanup a bit more the crossed > > > references for cros-ec driver between the MFD

Re: [PATCH] x86/boot: minor improvement in kaslr

2019-02-01 Thread Kees Cook
On Fri, Feb 1, 2019 at 6:51 PM Cao jin wrote: > > comments fix: input_size is ZO image size which just don't count .bss > in, but has .text, .data, etc; > drop unecessary alignment: minimum is either 512M or output, both are > CONFIG_PHYSICAL_ALIGN aligned(output is aligned in head_32/64.S). But

Re: [PATCH v3 08/12] clk: mediatek: Add MT8183 clock support

2019-02-01 Thread Weiyi Lu
On Fri, 2018-12-14 at 13:59 -0800, Stephen Boyd wrote: > Quoting Weiyi Lu (2018-12-09 23:32:36) > > + "apll2_ck" > > +}; > > + > > +static const struct mtk_mux top_muxes[] = { > > + /* CLK_CFG_0 */ > > + MUX_GATE_CLR_SET_UPD_FLAGS(CLK_TOP_MUX_AXI, "axi_sel", > > +

Re: [PATCH v3 12/12] clk: mediatek: Allow changing PLL rate when it is off

2019-02-01 Thread Weiyi Lu
On Fri, 2018-12-14 at 14:01 -0800, Stephen Boyd wrote: > Quoting Weiyi Lu (2018-12-09 23:32:40) > > From: James Liao > > > > Some modules may need to change its clock rate before turn on it. > > So changing PLL's rate when it is off should be allowed. > > This patch removes PLL enabled check

Re: [PATCH v3 01/12] clk: mediatek: fixup: Disable tuner_en before change PLL rate

2019-02-01 Thread Weiyi Lu
On Fri, 2018-12-14 at 13:57 -0800, Stephen Boyd wrote: > Why is "fixup" in the subject of this patch? > I'll fix in next version. > Quoting Weiyi Lu (2018-12-09 23:32:29) > > From: Owen Chen > > > > PLLs with tuner_en bit, such as APLL1, need to disable > > tuner_en before apply new

Re: [PATCH v3 02/12] clk: mediatek: add new clkmux register API

2019-02-01 Thread Weiyi Lu
On Mon, 2018-12-10 at 20:30 +0800, Nicolas Boichat wrote: > On Mon, Dec 10, 2018 at 3:33 PM Weiyi Lu wrote: > > > > From: Owen Chen > > > > On both MT8183 & MT6765, there add "set/clr" register for > > each clkmux setting, and one update register to trigger value change. > > It is designed to

Re: [PATCH v3 03/12] clk: mediatek: add configurable pcwibits and fmin to mtk_pll_data

2019-02-01 Thread Weiyi Lu
On Fri, 2018-12-14 at 14:02 -0800, Stephen Boyd wrote: > Quoting Weiyi Lu (2018-12-09 23:32:31) > > diff --git a/drivers/clk/mediatek/clk-pll.c b/drivers/clk/mediatek/clk-pll.c > > index f0ff5f535c7e..81400601f107 100644 > > --- a/drivers/clk/mediatek/clk-pll.c > > +++

Re: [PATCH v3 08/12] clk: mediatek: Add MT8183 clock support

2019-02-01 Thread Weiyi Lu
On Tue, 2018-12-11 at 09:00 +0800, Nicolas Boichat wrote: > On Mon, Dec 10, 2018 at 3:32 PM Weiyi Lu wrote: > > > > Add MT8183 clock support, include topckgen, apmixedsys, > > infracfg, mcucfg and subsystem clocks. > > > > Signed-off-by: Weiyi Lu > > --- > > drivers/clk/mediatek/Kconfig

Re: [PATCH v6 15/27] compiler: Option to default to hidden symbols

2019-02-01 Thread Adrian Hunter
On 31/01/19 9:24 PM, Thomas Garnier wrote: > Provide an option to default visibility to hidden except for key > symbols. This option is disabled by default and will be used by x86_64 > PIE support to remove errors between compilation units. > > The default visibility is also enabled for external

Re: [PATCH v2] sched: Use READ_ONCE()/WRITE_ONCE() in move_queued_task()/task_rq_lock()

2019-02-01 Thread Peter Zijlstra
On Mon, Jan 21, 2019 at 04:52:40PM +0100, Andrea Parri wrote: > move_queued_task() synchronizes with task_rq_lock() as follows: > > move_queued_task() task_rq_lock() > > [S] ->on_rq = MIGRATING [L] rq = task_rq() > WMB (__set_task_cpu()) ACQUIRE

Re: [Xen-devel] xen/mem-reservation API and out-of-tree kernel modules

2019-02-01 Thread Christoph Hellwig
On Thu, Jan 31, 2019 at 01:44:15PM -0800, Stefano Stabellini wrote: > The alternative would be to turn xenmem_reservation_scrub_page into a > regular function (not a static inline)? All that is a moot point until said currently out of tree module gets submitted for inclusion anyway.

Re: [PATCH v6 3/4] tee: optee: add TEE bus device enumeration support

2019-02-01 Thread Jens Wiklander
On Tue, Jan 29, 2019 at 11:19:37AM +0530, Sumit Garg wrote: > OP-TEE provides a pseudo TA to enumerate TAs which can act as devices/ > services for TEE bus. So implement device enumeration using invoke > function: PTA_CMD_GET_DEVICES provided by pseudo TA to fetch array of > device UUIDs. Also

[PATCH v4 04/12] soc: mediatek: add new flow for mtcmos power.

2019-02-01 Thread Weiyi Lu
From: Owen Chen Both MT8183 & MT6765 add more bus protect node than previous project, therefore we add two more register for setup bus protect, which reside at INFRA_CFG & SMI_COMMON. With the following change 1. bus protect need not only infracfg but smi_common registers involved to setup.

[PATCH v4 03/12] clk: mediatek: add configurable pcwibits and fmin to mtk_pll_data

2019-02-01 Thread Weiyi Lu
From: Owen Chen 1. pcwibits: The integer bits of pcw for plls is extend to 8 bits, add a variable to indicate this change and backward-compatible. 2. fmin: The pll freqency lower-bound is vary from 1GMhz to 1.5Ghz, add a variable to indicate platform-dependent. Signed-off-by: Owen Chen

[PATCH v4 00/12] Mediatek MT8183 clock and scpsys support

2019-02-01 Thread Weiyi Lu
This series is based on v5.0-rc1 and most of changes are extracted from series below (clock/scpsys common changes for both MT8183 & MT6765) https://patchwork.kernel.org/patch/10528495/ (clock support of MT8183) https://patchwork.kernel.org/patch/10549891/ The whole series is composed of clock

[PATCH v4 08/12] clk: mediatek: Add MT8183 clock support

2019-02-01 Thread Weiyi Lu
Add MT8183 clock support, include topckgen, apmixedsys, infracfg, mcucfg and subsystem clocks. Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/Kconfig | 75 ++ drivers/clk/mediatek/Makefile | 12 + drivers/clk/mediatek/clk-gate.h| 14 +

[PATCH v4 11/12] soc: mediatek: Add MT8183 scpsys support

2019-02-01 Thread Weiyi Lu
Add scpsys driver for MT8183 Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 226 ++ 1 file changed, 226 insertions(+) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c index 53a16fa327cf..09795caf4547 100644 ---

Re: general protection fault in debugfs_create_files

2019-02-01 Thread Kees Cook
On Thu, Jan 31, 2019 at 7:53 AM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:02495e76ded5 Add linux-next specific files for 20190130 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=172ed528c0 > kernel config:

[PATCH v4 10/12] dt-bindings: soc: Add MT8183 power dt-bindings

2019-02-01 Thread Weiyi Lu
Add power dt-bindings for MT8183. Signed-off-by: Weiyi Lu --- .../bindings/soc/mediatek/scpsys.txt | 14 ++ include/dt-bindings/power/mt8183-power.h | 26 +++ 2 files changed, 40 insertions(+) create mode 100644 include/dt-bindings/power/mt8183-power.h

[PATCH v4 09/12] dt-bindings: soc: fix typo of MT8173 power dt-bindings

2019-02-01 Thread Weiyi Lu
fix incorrect IC name that will affect the MT8183 power dt-bindings Signed-off-by: Weiyi Lu --- include/dt-bindings/power/mt8173-power.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/dt-bindings/power/mt8173-power.h b/include/dt-bindings/power/mt8173-power.h

[PATCH v4 00/12] Mediatek MT8183 clock and scpsys support

2019-02-01 Thread Weiyi Lu
This series is based on v5.0-rc1 and most of changes are extracted from series below (clock/scpsys common changes for both MT8183 & MT6765) https://patchwork.kernel.org/patch/10528495/ (clock support of MT8183) https://patchwork.kernel.org/patch/10549891/ The whole series is composed of clock

[PATCH v4 01/12] clk: mediatek: Disable tuner_en before change PLL rate

2019-02-01 Thread Weiyi Lu
From: Owen Chen PLLs with tuner_en bit, such as APLL1, need to disable tuner_en before apply new frequency settings, or the new frequency settings (pcw) will not be applied. The tuner_en bit will be disabled during changing PLL rate and be restored after new settings applied. Another minor

[PATCH v4 05/12] dt-bindings: ARM: Mediatek: Document bindings for MT8183

2019-02-01 Thread Weiyi Lu
This patch adds the binding documentation for apmixedsys, audiosys, camsys, imgsys, infracfg, mcucfg, mfgcfg, mmsys, topckgen, vdecsys, vencsys and ipu for Mediatek MT8183. Signed-off-by: Weiyi Lu Reviewed-by: Rob Herring Acked-by: Stephen Boyd --- .../arm/mediatek/mediatek,apmixedsys.txt

[PATCH v4 02/12] clk: mediatek: add new clkmux register API

2019-02-01 Thread Weiyi Lu
From: Owen Chen On both MT8183 & MT6765, there add "set/clr" register for each clkmux setting, and one update register to trigger value change. It is designed to prevent read-modify-write racing issue. The sw design need to add a new API to handle this hw change with a new mtk_clk_mux/mtk_mux

[PATCH v4 06/12] clk: mediatek: Add dt-bindings for MT8183 clocks

2019-02-01 Thread Weiyi Lu
Add MT8183 clock dt-bindings, include topckgen, apmixedsys, infracfg, mcucfg and subsystem clocks. Signed-off-by: Weiyi Lu Reviewed-by: Rob Herring --- include/dt-bindings/clock/mt8183-clk.h | 422 + 1 file changed, 422 insertions(+) create mode 100644

[PATCH v4 07/12] clk: mediatek: Add flags support for mtk_gate data

2019-02-01 Thread Weiyi Lu
On some Mediatek platforms, there are critical clocks of clock gate type. To register clock gate with flags CLK_IS_CRITICAL, we need to add the flags field in mtk_gate data and register APIs. Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/clk-gate.c | 5 +++-- drivers/clk/mediatek/clk-gate.h

[PATCH v4 12/12] clk: mediatek: Allow changing PLL rate when it is off

2019-02-01 Thread Weiyi Lu
From: James Liao Some modules may need to change its clock rate before turn on it. So changing PLL's rate when it is off should be allowed. This patch removes PLL enabled check before set rate, so that PLLs can set new frequency even if they are off. On MT8173 for example, ARMPLL's enable bit

Re: [PATCH] staging: android: ion: fix sys heap pool's gfp_flags

2019-02-01 Thread Xiaqing (A)
On 2019/2/1 16:15, Dan Carpenter wrote: On Fri, Feb 01, 2019 at 02:59:46PM +0800, Qing Xia wrote: In the first loop, gfp_flags will be modified to high_order_gfp_flags, and there will be no chance to change back to low_order_gfp_flags. Fixes: e7f63771 ("ION: Sys_heap: Add cached pool to

Re: [PATCH] powerpc: drop page_is_ram() and walk_system_ram_range()

2019-02-01 Thread Christoph Hellwig
On Thu, Jan 31, 2019 at 07:28:49PM +, Christophe Leroy wrote: > Since commit c40dd2f76644 ("powerpc: Add System RAM to /proc/iomem") > it is possible to use the generic walk_system_ram_range() and > the generic page_is_ram(). > > Fixes: c40dd2f76644 ("powerpc: Add System RAM to /proc/iomem")

Re: [Xen-devel] xen/mem-reservation API and out-of-tree kernel modules

2019-02-01 Thread Oleksandr Andrushchenko
On 2/1/19 10:27 AM, Christoph Hellwig wrote: > On Thu, Jan 31, 2019 at 01:44:15PM -0800, Stefano Stabellini wrote: >> The alternative would be to turn xenmem_reservation_scrub_page into a >> regular function (not a static inline)? > All that is a moot point until said currently out of tree module

Re: [Xen-devel] xen/mem-reservation API and out-of-tree kernel modules

2019-02-01 Thread Oleksandr Andrushchenko
On 1/31/19 11:44 PM, Stefano Stabellini wrote: > On Thu, 31 Jan 2019, Oleksandr Andrushchenko wrote: >> Hello, >> >> I am working on porting an out-of-tree kernel driver to the kernel >> 5.0 and that driver uses functionality provided by >> drivers/xen/mem-reservation.c >> module.  Since commit

Re: [PATCH v7 0/3] clk: clkdev add managed lookup registrations

2019-02-01 Thread Matti Vaittinen
On Thu, Jan 31, 2019 at 11:38:37AM -0800, Stephen Boyd wrote: > Quoting Russell King - ARM Linux admin (2019-01-31 07:21:47) > > On Thu, Jan 31, 2019 at 03:24:52PM +0200, Matti Vaittinen wrote: > > > Hello All, > > > > > > On Fri, Dec 07, 2018 at 01:09:00PM +0200, Matti Vaittinen wrote: > > > >

[GIT PULL] i3c: Fixes for 5.0-rc5

2019-02-01 Thread Boris Brezillon
Hello Linus, Here is the I3C fixes PR for 5.0-rc5. Regards, Boris The following changes since commit 49a57857aeea06ca831043acbb0fa5e0f50602fd: Linux 5.0-rc3 (2019-01-21 13:14:44 +1300) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux.git

Re: [PATCH v6 3/4] tee: optee: add TEE bus device enumeration support

2019-02-01 Thread Sumit Garg
On Fri, 1 Feb 2019 at 13:58, Jens Wiklander wrote: > > On Tue, Jan 29, 2019 at 11:19:37AM +0530, Sumit Garg wrote: > > OP-TEE provides a pseudo TA to enumerate TAs which can act as devices/ > > services for TEE bus. So implement device enumeration using invoke > > function: PTA_CMD_GET_DEVICES

Re: [PATCH 0/5] Add initial Bitmain BM1880 SoC/Board support

2019-02-01 Thread Arnd Bergmann
On Fri, Feb 1, 2019, 04:50 Manivannan Sadhasivam On Sun, Jan 27, 2019 at 10:24:09AM +0100, Arnd Bergmann wrote: > > On Sat, Jan 26, 2019 at 5:11 AM Manivannan Sadhasivam > > wrote: > > > > > > This patchset adds initial support for Bitmain BM1880 SoC and Sophon > > > Edge board. BM1880 SoC

Re: [PATCH v3 3/8] clk: samsung: add BPLL rate table for Exynos 5422 SoC

2019-02-01 Thread Chanwoo Choi
Hi, On 19. 1. 31. 오후 5:49, Lukasz Luba wrote: > Add new table rate for BPLL for Exynos5422 SoC supporting Dynamic Memory > Controller frequencies for driver's DRAM timings. > > CC: Sylwester Nawrocki > CC: Chanwoo Choi > CC: Michael Turquette > CC: Stephen Boyd > CC: Kukjin Kim > CC:

[PATCH] mic: vop: Fix crash on remove

2019-02-01 Thread Vincent Whitchurch
The remove path contains a hack which depends on internal structures in other source files, similar to the one which was recently removed from the registration path. Since commit 1ce9e6055fa0 ("virtio_ring: introduce packed ring support"), this leads to a crash when vop devices are removed. The

Re: [Xen-devel] xen/mem-reservation API and out-of-tree kernel modules

2019-02-01 Thread Christoph Hellwig
On Fri, Feb 01, 2019 at 08:38:43AM +, Oleksandr Andrushchenko wrote: > On 2/1/19 10:27 AM, Christoph Hellwig wrote: > > On Thu, Jan 31, 2019 at 01:44:15PM -0800, Stefano Stabellini wrote: > >> The alternative would be to turn xenmem_reservation_scrub_page into a > >> regular function (not a

Re: [RFC PATCH 3/3] sched/Documentation: Point out use of preempt_schedule_irq()

2019-02-01 Thread Julien Thierry
Hi Valentin, On 31/01/2019 18:23, Valentin Schneider wrote: > Since there are a few archs out there that call preempt_schedule_irq() > within a need_resched() loop, point out that it's not needed. > > Signed-off-by: Valentin Schneider > Cc: Jonathan Corbet > Cc: Ingo Molnar > Cc: Peter

Re: [RFC PATCH 1/3] arm64: entry: Remove unneeded need_resched() loop

2019-02-01 Thread Julien Thierry
Hi Valentin, On 31/01/2019 18:23, Valentin Schneider wrote: > Since the enabling and disabling of IRQs within preempt_schedule_irq() > is contained in a need_resched() loop, we don't need the outer arch > code loop. > > Reported-by: Julien Thierry > Reported-by: Will Deacon > Signed-off-by:

[PATCH 07/18] pxa168_eth: pass struct device to DMA API functions

2019-02-01 Thread Christoph Hellwig
The DMA API generally relies on a struct device to work properly, and only barely works without one for legacy reasons. Pass the easily available struct device from the platform_device to remedy this. Note that this driver seems to entirely lack dma_map_single error handling, but that is left

[PATCH 03/18] net: caif: pass struct device to DMA API functions

2019-02-01 Thread Christoph Hellwig
The DMA API generally relies on a struct device to work properly, and only barely works without one for legacy reasons. Pass the easily available struct device from the platform_device to remedy this. Also use the proper Kconfig symbol to check for DMA API availability. Signed-off-by: Christoph

[PATCH 02/18] dmaengine: imx-sdma: pass struct device to DMA API functions

2019-02-01 Thread Christoph Hellwig
The DMA API generally relies on a struct device to work properly, and only barely works without one for legacy reasons. Pass the easily available struct device from the platform_device to remedy this. Signed-off-by: Christoph Hellwig --- drivers/dma/imx-sdma.c | 10 +- 1 file changed,

[PATCH 05/18] macb_main: pass struct device to DMA API functions

2019-02-01 Thread Christoph Hellwig
The DMA API generally relies on a struct device to work properly, and only barely works without one for legacy reasons. Pass the easily available struct device from the platform_device to remedy this. Signed-off-by: Christoph Hellwig --- drivers/net/ethernet/cadence/macb_main.c | 8 1

[PATCH 14/18] da8xx-fb: pass struct device to DMA API functions

2019-02-01 Thread Christoph Hellwig
The DMA API generally relies on a struct device to work properly, and only barely works without one for legacy reasons. Pass the easily available struct device from the platform_device to remedy this. Signed-off-by: Christoph Hellwig --- drivers/video/fbdev/da8xx-fb.c | 13 +++-- 1

[PATCH 10/18] smc911x: pass struct device to DMA API functions

2019-02-01 Thread Christoph Hellwig
The DMA API generally relies on a struct device to work properly, and only barely works without one for legacy reasons. Pass the easily available struct device from the platform_device to remedy this. Signed-off-by: Christoph Hellwig --- drivers/net/ethernet/smsc/smc911x.c | 4 ++-- 1 file

[PATCH 11/18] parport_ip32: pass struct device to DMA API functions

2019-02-01 Thread Christoph Hellwig
The DMA API generally relies on a struct device to work properly, and only barely works without one for legacy reasons. Pass the easily available struct device from the platform_device to remedy this. Signed-off-by: Christoph Hellwig --- drivers/parport/parport_ip32.c | 18 ++

[PATCH 13/18] fotg210-udc: pass struct device to DMA API functions

2019-02-01 Thread Christoph Hellwig
The DMA API generally relies on a struct device to work properly, and only barely works without one for legacy reasons. Pass the easily available struct device from the platform_device to remedy this. Signed-off-by: Christoph Hellwig --- drivers/usb/gadget/udc/fotg210-udc.c | 7 --- 1 file

Re: [RFC PATCH 2/3] ARM: entry: Remove unneeded need_resched() loop

2019-02-01 Thread Julien Thierry
Hi Valentin, On 31/01/2019 18:23, Valentin Schneider wrote: > Since the enabling and disabling of IRQs within preempt_schedule_irq() > is contained in a need_resched() loop, we don't need the outer arch > code loop. > > Signed-off-by: Valentin Schneider > Cc: Russell King > Cc: Thomas Gleixner

[PATCH 12/18] fotg210-udc: remove a bogus dma_sync_single_for_device call

2019-02-01 Thread Christoph Hellwig
dma_map_single already transfers ownership to the device. Signed-off-by: Christoph Hellwig --- drivers/usb/gadget/udc/fotg210-udc.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/usb/gadget/udc/fotg210-udc.c b/drivers/usb/gadget/udc/fotg210-udc.c index

[PATCH 09/18] meth: pass struct device to DMA API functions

2019-02-01 Thread Christoph Hellwig
The DMA API generally relies on a struct device to work properly, and only barely works without one for legacy reasons. Pass the easily available struct device from the platform_device to remedy this. Also use GFP_KERNEL instead of GFP_ATOMIC as the gfp_t for the memory allocation, as we aren't

don't pass a NULL struct device to DMA API functions

2019-02-01 Thread Christoph Hellwig
We still have a few drivers which pass a NULL struct device pointer to DMA API functions, which generally is a bad idea as the API implementations rely on the device not only for ops selection, but also the dma mask and various other attributes. This series contains all easy conversions to pass a

[PATCH 08/18] moxart_ether: pass struct device to DMA API functions

2019-02-01 Thread Christoph Hellwig
The DMA API generally relies on a struct device to work properly, and only barely works without one for legacy reasons. Pass the easily available struct device from the platform_device to remedy this. Signed-off-by: Christoph Hellwig --- drivers/net/ethernet/moxa/moxart_ether.c | 11

[PATCH 17/18] ALSA: hal2: pass struct device to DMA API functions

2019-02-01 Thread Christoph Hellwig
The DMA API generally relies on a struct device to work properly, and only barely works without one for legacy reasons. Pass the easily available struct device from the platform_device to remedy this. Signed-off-by: Christoph Hellwig --- sound/mips/hal2.c | 31 +--

[PATCH 18/18] ALSA: pass struct device to DMA API functions

2019-02-01 Thread Christoph Hellwig
The DMA API generally relies on a struct device to work properly, and only barely works without one for legacy reasons. Pass the easily available struct device from the platform_device to remedy this. Also use GFP_KERNEL instead of GFP_USER as the gfp_t for the memory allocation, as we should

[PATCH 16/18] pxa3xx-gcu: pass struct device to dma_mmap_coherent

2019-02-01 Thread Christoph Hellwig
Just like we do for all other DMA operations. Signed-off-by: Christoph Hellwig --- drivers/video/fbdev/pxa3xx-gcu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/video/fbdev/pxa3xx-gcu.c b/drivers/video/fbdev/pxa3xx-gcu.c index 69cfb337c857..047a2fa4b87e 100644

[PATCH 15/18] gbefb: switch to managed version of the DMA allocator

2019-02-01 Thread Christoph Hellwig
gbefb uses managed resources, so it should do the same for DMA allocations. Signed-off-by: Christoph Hellwig --- drivers/video/fbdev/gbefb.c | 24 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/drivers/video/fbdev/gbefb.c b/drivers/video/fbdev/gbefb.c

[PATCH 01/18] MIPS: lantiq: pass struct device to DMA API functions

2019-02-01 Thread Christoph Hellwig
The DMA API generally relies on a struct device to work properly, and only barely works without one for legacy reasons. Pass the easily available struct device from the platform_device to remedy this. Also use GFP_KERNEL instead of GFP_ATOMIC as the gfp_t for the memory allocation, as we aren't

[PATCH v2] virtio_net: Introduce extended RSC feature

2019-02-01 Thread Yuri Benditovich
VIRTIO_NET_F_RSC_EXT feature bit indicates that the device is able to provide extended RSC information. When the feature is active and 'gso_type' field in received packet is not GSO_NONE, the device reports number of coalesced packets in 'csum_start' field and number of duplicated acks in

[PATCH 04/18] au1000_eth: pass struct device to DMA API functions

2019-02-01 Thread Christoph Hellwig
The DMA API generally relies on a struct device to work properly, and only barely works without one for legacy reasons. Pass the easily available struct device from the platform_device to remedy this. Signed-off-by: Christoph Hellwig --- drivers/net/ethernet/amd/au1000_eth.c | 6 +++--- 1 file

Re: [PATCH -next] drm/xen-front: Drop pointless static qualifier in fb_destroy()

2019-02-01 Thread Oleksandr Andrushchenko
On 1/28/19 8:36 AM, Oleksandr Andrushchenko wrote: > On 1/26/19 2:05 PM, YueHaibing wrote: >> There is no need to have the 'struct drm_framebuffer *fb' variable >> static since new value always be assigned before use it. >> >> Signed-off-by: YueHaibing > Good catch, thank you! > Reviewed-by:

[PATCH 06/18] lantiq_etop: pass struct device to DMA API functions

2019-02-01 Thread Christoph Hellwig
The DMA API generally relies on a struct device to work properly, and only barely works without one for legacy reasons. Pass the easily available struct device from the platform_device to remedy this. Note this driver seems to lack dma_unmap_* calls entirely, but fixing that is left for another

Re: [PATCH 1/3] mm/mincore: make mincore() more conservative

2019-02-01 Thread Vlastimil Babka
Here's updated version with Michal's suggestion, and acks: I think this patch is fine to go, less sure about 2/3 and 3/3. 8< >From 49f17d9f6a42ecc2a508125b0c880ff0402a6f49 Mon Sep 17 00:00:00 2001 From: Jiri Kosina Date: Wed, 16 Jan 2019 20:53:17 +0100 Subject: [PATCH v2] mm/mincore:

Re: [Xen-devel][PATCH] drm/xen-front: Fix mmap attributes for display buffers

2019-02-01 Thread Oleksandr Andrushchenko
On 1/30/19 11:09 AM, Oleksandr Andrushchenko wrote: > On 1/29/19 9:07 PM, Julien Grall wrote: >> Hi Oleksandr, >> >> On 1/29/19 3:04 PM, Oleksandr Andrushchenko wrote: >>> From: Oleksandr Andrushchenko >>> >>> When GEM backing storage is allocated those are normal pages, >>> so there is no point

Re: [PATCH v2] arm64: dts: qcom: sdm845: Add clocks and iommus to WCN3990 WLAN node

2019-02-01 Thread Sibi Sankar
On 2019-01-31 10:44, Bjorn Andersson wrote: From: Douglas Anderson When commit be7019103469 ("dts: arm64/sdm845: Add WCN3990 WLAN module device node") was posted upstream no clocks were specified. However, when the pack was picked into the Chrome OS kernel tree (allegedly directly from the

Re: Linux Kernel Regression: HAPS quirk breaks PCIe on i.MX6QP

2019-02-01 Thread Lukas Wunner
On Thu, Jan 31, 2019 at 11:46:23PM +, Thinh Nguyen wrote: > --- a/drivers/pci/quirks.c > +++ b/drivers/pci/quirks.c > @@ -629,6 +629,9 @@ static void quirk_synopsys_haps(struct pci_dev *pdev) > { > u32 class = pdev->class; > > + if (class != PCI_CLASS_SERIAL_USB_XHCI) > +

Re: latest RT patches for the latest 4.20.6 release

2019-02-01 Thread Greg KH
On Fri, Feb 01, 2019 at 12:04:40AM -0800, Michael Umansky wrote: > Hello, > > I found linux-stable-rt-4.20.2.tar.gz but the latest official patches > are for 4.19.15 (in the rt directory). > > While I can run the diffs against the regular 4.20.2 tree I'm curious > if there will be official

Re: [PATCH v3 0/2] Support for eMMC in AM65x-evm

2019-02-01 Thread Tero Kristo
On 24/01/2019 14:40, Nishanth Menon wrote: On 13:43-20190124, Faiz Abbas wrote: Hi, On 17/01/19 3:14 PM, Faiz Abbas wrote: The following patches add eMMC support on TI's AM65x-evm. v3: 1. Fixed patch titles to only include eMMC 2. Added dma-coherent to the sdhci0 node. v2: 1. The SD

Re: [PATCH] zcrypt: handle AP Info notification from CHSC SEI command

2019-02-01 Thread Heiko Carstens
On Thu, Jan 31, 2019 at 06:28:39PM -0500, Tony Krowiak wrote: > On 1/30/19 1:32 PM, Sebastian Ott wrote: > >On Wed, 30 Jan 2019, Tony Krowiak wrote: > >>+#if IS_ENABLED(CONFIG_ZCRYPT) > >>+void ap_bus_cfg_chg(void); > >>+#else > >>+#error "no CONFIG_ZCRYPT" > >^ > >I don't think that's the

Re: [PATCH] dma: debug: no need to check return value of debugfs_create functions

2019-02-01 Thread Christoph Hellwig
On Tue, Jan 22, 2019 at 07:48:47PM +0100, Greg Kroah-Hartman wrote: > > Does this actually need to be at file scope, or could it be punted to a > > local in dma_debug_fs_init() while we're here? > > It can be moved to the function scope if you want me to, I was trying to > do the least needed

[PATCH] mic: vop: Fix use-after-free on remove

2019-02-01 Thread Vincent Whitchurch
KASAN detects a use-after-free when vop devices are removed. This problem was introduced by commit 0063e8bbd2b62d136 ("virtio_vop: don't kfree device on register failure"). That patch moved the freeing of the struct _vop_vdev to the release function, but failed to ensure that vop holds a

Re: [PATCH 3/3] mm/mincore: provide mapped status when cached status is not allowed

2019-02-01 Thread Vlastimil Babka
On 1/31/19 11:09 AM, Michal Hocko wrote: > On Wed 30-01-19 13:44:20, Vlastimil Babka wrote: >> After "mm/mincore: make mincore() more conservative" we sometimes restrict >> the >> information about page cache residency, which we have to do without breaking >> existing userspace, if possible. We

Re: latest RT patches for the latest 4.20.6 release

2019-02-01 Thread Michael Umansky
Oops, very sorry, I forgot to add -rt to stable email :) Michael On Fri, Feb 1, 2019 at 1:00 AM Greg KH wrote: > > On Fri, Feb 01, 2019 at 12:04:40AM -0800, Michael Umansky wrote: > > Hello, > > > > I found linux-stable-rt-4.20.2.tar.gz but the latest official patches > > are for 4.19.15 (in the

Re: [PATCH v2 0/9] driver core: Fix some device links issues and add "consumer autoprobe" flag

2019-02-01 Thread Greg Kroah-Hartman
On Fri, Feb 01, 2019 at 01:44:59AM +0100, Rafael J. Wysocki wrote: > Hi Greg at al, > > This is a combination of the two device links series I have posted > recently (https://lore.kernel.org/lkml/2493187.oiopcwj...@aspire.rjw.lan/ > and

Re: [PATCH v2] mic: vop: Fix broken virtqueues

2019-02-01 Thread Vincent Whitchurch
On Wed, Jan 30, 2019 at 08:40:23PM +0100, Greg KH wrote: > This patch is already in my tree, can you just send a "fixup" patch > instead of me having to revert the old one and then adding this one > again? I've now posted the fixup patch separately as "mic: vop: Fix crash on remove". Thanks.

Re: general protection fault in relay_open_buf

2019-02-01 Thread Greg KH
On Fri, Feb 01, 2019 at 03:57:48AM +, Al Viro wrote: > On Thu, Jan 31, 2019 at 11:51:52AM +0100, Greg KH wrote: > > Can you test the patch below? > > > > thanks, > > > > greg k-h > > > > > @@ -461,7 +463,7 @@ static struct rchan_buf *relay_open_buf(struct rchan > > *chan, unsigned int

Re: fix a layering violation in videobuf2 and improve dma_map_resource v2

2019-02-01 Thread Christoph Hellwig
On Fri, Feb 01, 2019 at 08:05:21AM +0100, Marek Szyprowski wrote: > Works fine on older Exynos based boards with IOMMU and CMA disabled. > > Tested-by: Marek Szyprowski Thanks. I've merged the ѕeries into the dma-mapping tree, and I've also made a stable branch available at:

Re: [PATCH v2] dma-debug: add dumping facility via debugfs

2019-02-01 Thread Christoph Hellwig
Thanks! I had to adjust the patch a bit for the debugfs cleanups form Greg that I applied before, can you check the result here: http://git.infradead.org/users/hch/dma-mapping.git/commitdiff/0a3b192c26da198fce38e1ee242a34f558670246

Re: [PATCH/RFC 0/5] HW accel subsystem

2019-02-01 Thread Kenneth Lee
On Fri, Jan 25, 2019 at 10:16:11AM -0800, Olof Johansson wrote: > Date: Fri, 25 Jan 2019 10:16:11 -0800 > From: Olof Johansson > To: linux-kernel@vger.kernel.org > CC: ogab...@habana.ai, Greg Kroah-Hartman , > jgli...@redhat.com, Andrew Donnellan , > Frederic Barrat , airl...@redhat.com, >

Re: [PATCH v2 12/13] input: max77650: add onkey support

2019-02-01 Thread Lee Jones
On Thu, 31 Jan 2019, Dmitry Torokhov wrote: > On Thu, Jan 31, 2019 at 4:28 AM Mark Brown wrote: > > > > On Thu, Jan 31, 2019 at 09:15:01AM +0100, Bartosz Golaszewski wrote: > > > > > I'm not sure what the policy is on merging MFD drivers, but I'm seeing > > > that Mark Brown has already picked

Re: [PATCH] qspinlock: no need to check return value of debugfs_create functions

2019-02-01 Thread Greg Kroah-Hartman
Sorry for the delay, got stuck with other things... On Wed, Jan 23, 2019 at 09:14:41AM +0100, Peter Zijlstra wrote: > On Tue, Jan 22, 2019 at 04:21:43PM +0100, Greg Kroah-Hartman wrote: > > When calling debugfs functions, there is no need to ever check the > > return value. The function can work

Re: [PATCH v2 3/3] dt-bindings: iio: chemical: pms7003: add device tree support

2019-02-01 Thread Johan Hovold
On Thu, Jan 31, 2019 at 09:40:04PM +0100, Tomasz Duszynski wrote: > On Wed, Jan 30, 2019 at 10:12:54AM +0100, Johan Hovold wrote: > > On Mon, Jan 28, 2019 at 07:43:33PM +0100, Tomasz Duszynski wrote: > > > On Mon, Jan 28, 2019 at 08:58:19AM +0100, Johan Hovold wrote: > > > > On Sun, Jan 27, 2019

Re: [PATCH 3/3] mm/mincore: provide mapped status when cached status is not allowed

2019-02-01 Thread Michal Hocko
On Fri 01-02-19 10:04:23, Vlastimil Babka wrote: > The side channel exists anyway as long as process can e.g. check if > its rss shrinked, and I doubt we are going to remove that possibility. Well, but rss update will not tell you that the page has been faulted in which is the most interesting

Re: [PATCH] dma: debug: no need to check return value of debugfs_create functions

2019-02-01 Thread Greg Kroah-Hartman
On Fri, Feb 01, 2019 at 10:04:02AM +0100, Christoph Hellwig wrote: > On Tue, Jan 22, 2019 at 07:48:47PM +0100, Greg Kroah-Hartman wrote: > > > Does this actually need to be at file scope, or could it be punted to a > > > local in dma_debug_fs_init() while we're here? > > > > It can be moved to

Re: [Xen-devel] xen/mem-reservation API and out-of-tree kernel modules

2019-02-01 Thread Juergen Gross
On 01/02/2019 09:39, Oleksandr Andrushchenko wrote: > On 1/31/19 11:44 PM, Stefano Stabellini wrote: >> On Thu, 31 Jan 2019, Oleksandr Andrushchenko wrote: >>> Hello, >>> >>> I am working on porting an out-of-tree kernel driver to the kernel >>> 5.0 and that driver uses functionality provided by

  1   2   3   4   5   6   7   8   9   10   >