[RFC dma-buf 2/3] dma-buf: add DMA_BUF_{GET,SET}_NAME ioctls

2019-02-27 Thread Chenbo Feng
From: Greg Hackmann This patch adds complimentary DMA_BUF_SET_NAME and DMA_BUF_GET_NAME ioctls, which lets userspace processes attach a free-form name to each buffer. This information can be extremely helpful for tracking and accounting shared buffers. For example, on Android, we know what

[PATCH 7/9] drm/bridge: tc358767: Introduce tc_set_syspllparam()

2019-02-27 Thread Andrey Smirnov
Move common code converting clock rate to an appropriate constant and configuring SYS_PLLPARAM register into a separate routine and convert the rest of the code to use it. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc:

Re: [RFC PATCH 1/2] ASoC: simple-card: add support for bclk_ratio

2019-02-27 Thread Sven Van Asbroeck
On Tue, Feb 26, 2019 at 4:11 AM Russell King - ARM Linux admin wrote: > > Given that it is normal to talk about I2S being clocked at "64fs", > "32fs" etc, wouldn't it just be much neater to specify _this_ value > in DT, rather than half that value? > Would we be able to reach consensus on

[PATCH 6/9] drm/bridge: tc358767: Simplify error check in tc_aux_linx_setup()

2019-02-27 Thread Andrey Smirnov
Tc_poll_timeout() can only return -ETIMEDOUT, so checking for other errors is not necessary. Drop it. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Chris Healy Cc: Lucas Stach Cc: dri-devel@lists.freedesktop.org Cc:

[PATCH] Revert "dma-contiguous: do not allocate a single page from CMA area"

2019-02-27 Thread Nicolin Chen
This reverts commit d222e42e88168fd67e6d131984b86477af1fc256. The original change breaks omap dss: omapdss_dispc 58001000.dispc: dispc_errata_i734_wa_init: dma_alloc_writecombine failed Let's revert it first and then find a safer solution instead. Reported-by: Tony Lindgren

[PATCH 5/9] drm/bridge: tc358767: Simplify polling in tc_link_training()

2019-02-27 Thread Andrey Smirnov
Replace explicit polling in tc_link_training() with equivalent call to regmap_read_poll_timeout() for simplicity. No functional change intended (not including slightly altered debug output). Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Chris Healy

Re: [PATCH] drm/i915/fence: Do not use TIMER_IRQSAFE

2019-02-27 Thread Sebastian Andrzej Siewior
On 2019-02-12 17:28:57 [+0100], To linux-ker...@vger.kernel.org wrote: > The timer is initialized with TIMER_IRQSAFE flag. It does look like the > timer callback requires this flag at all. Its sole purpose is to ensure > synchronisation in the workqueue code. > > Remove TIMER_IRQSAFE flag because

Regression in Linux next with dma cma changes

2019-02-27 Thread Tony Lindgren
Hi, Looks like commit d222e42e8816 ("dma-contiguous: do not allocate a single page from CMA area") caused a regression at least for omap dss where we now get the following error on init: omapdss_dispc 58001000.dispc: dispc_errata_i734_wa_init: dma_alloc_writecombine failed Any ideas what might

Re: [RFC PATCH 1/2] ASoC: simple-card: add support for bclk_ratio

2019-02-27 Thread Sven Van Asbroeck
On Tue, Feb 26, 2019 at 10:45 AM Russell King - ARM Linux admin wrote: > > > I can't see how you'd extend a single I2S setup to support multi- > channel audio without either adding more I2S data lines or adding > additional WS signals (so making it e.g., a binary number). > That's a very good

[PATCH 9/9] drm/bridge: tc358767: Drop tc_read() macro

2019-02-27 Thread Andrey Smirnov
There's only one place where tc_read() is used, so it doesn't save us much. Drop it. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Chris Healy Cc: Lucas Stach Cc: dri-devel@lists.freedesktop.org Cc:

Re: [RFC PATCH 1/2] ASoC: simple-card: add support for bclk_ratio

2019-02-27 Thread Sven Van Asbroeck
On Tue, Feb 26, 2019 at 4:11 AM Russell King - ARM Linux admin wrote: > > This code actually requires a lot more thought - while it may solve > Sven's issue, it isn't generic. Wholeheartedly agree. My patches are marked RFC in the hope that they will be picked apart by folks much more in touch

[PATCH 0/9] tc358767 driver improvements

2019-02-27 Thread Andrey Smirnov
Everyone: This series contains various improvements (at least in my mind) that I made to tc358767 while working with the code of the driver. Hopefuly each patch is self explanatory. Feedback is welcome! Thanks, Andrey Smirnov Andrey Smirnov (9): drm/bridge: tc358767: Simplify

Re: [PATCH] Revert "dma-contiguous: do not allocate a single page from CMA area"

2019-02-27 Thread Tony Lindgren
* Robin Murphy [190226 23:36]: > On 2019-02-26 8:23 pm, Nicolin Chen wrote: > > This reverts commit d222e42e88168fd67e6d131984b86477af1fc256. > > > > The original change breaks omap dss: > > omapdss_dispc 58001000.dispc: > > dispc_errata_i734_wa_init: dma_alloc_writecombine failed

[PATCH 2/9] drm/bridge: tc358767: Simplify tc_stream_clock_calc()

2019-02-27 Thread Andrey Smirnov
Drop the use of tc_write() as well as "magicly" used "ret" and "err:" and replace it with a simple call to regmap_write(). No functional change intended. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Chris Healy Cc: Lucas Stach Cc:

[RFC dma-buf 1/3] dma-buf: give each buffer a full-fledged inode

2019-02-27 Thread Chenbo Feng
From: Greg Hackmann By traversing /proc/*/fd and /proc/*/map_files, processes with CAP_ADMIN can get a lot of fine-grained data about how shmem buffers are shared among processes. stat(2) on each entry gives the caller a unique ID (st_ino), the buffer's size (st_size), and even the number of

[PATCH 3/9] drm/bridge: tc358767: Simplify tc_set_video_mode()

2019-02-27 Thread Andrey Smirnov
Simplify tc_set_video_mode() by replacing repreated calls to tc_write()/regmap_write() with a single call regmap_multi_reg_write(). No functional change intended. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Chris Healy Cc: Lucas Stach Cc:

[PATCH 1/9] drm/bridge: tc358767: Simplify tc_poll_timeout()

2019-02-27 Thread Andrey Smirnov
Implementation of tc_poll_timeout() is almost a 100% copy-and-paste of the code for regmap_read_poll_timeout(). Replace copied code with a call to the original. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Chris

[RFC dma-buf 3/3] dma-buf: add show_fdinfo handler

2019-02-27 Thread Chenbo Feng
From: Greg Hackmann The show_fdinfo handler exports the same information available through debugfs on a per-buffer basis. Signed-off-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c | 15 +++ 1 file changed, 15 insertions(+) diff --git

Re: [PATCH] Revert "dma-contiguous: do not allocate a single page from CMA area"

2019-02-27 Thread Nicolin Chen
On Tue, Feb 26, 2019 at 11:35:44PM +, Robin Murphy wrote: > On 2019-02-26 8:23 pm, Nicolin Chen wrote: > > This reverts commit d222e42e88168fd67e6d131984b86477af1fc256. > > > > The original change breaks omap dss: > > omapdss_dispc 58001000.dispc: > > dispc_errata_i734_wa_init:

Re: [PATCH] Revert "dma-contiguous: do not allocate a single page from CMA area"

2019-02-27 Thread Krzysztof Kozlowski
On Tue, 26 Feb 2019 at 21:25, Nicolin Chen wrote: > > This reverts commit d222e42e88168fd67e6d131984b86477af1fc256. > > The original change breaks omap dss: > omapdss_dispc 58001000.dispc: > dispc_errata_i734_wa_init: dma_alloc_writecombine failed > > Let's revert it first and then

[Bug 109790] [ 11.594966] [drm:r600_ring_test [radeon]] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xCAFEDEAD)

2019-02-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109790 Christian König changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

<    1   2