[PATCH 09/10] drm/tegra: Boot VIC in runtime resume

2017-11-05 Thread Mikko Perttunen
This ensures that there are no concurrency issues when multiple users are trying to use VIC concurrently, and also simplifies the code slightly. Signed-off-by: Mikko Perttunen --- drivers/gpu/drm/tegra/vic.c | 47 +++-- 1 file changed, 20 insertions(+), 27

[PATCH 01/10] gpu: host1x: Parameterize channel aperture size

2017-11-05 Thread Mikko Perttunen
The size of a single channel's aperture is different on Tegra186 vs. previous chips. Parameterize the value using a new define in the register definition headers. Signed-off-by: Mikko Perttunen --- drivers/gpu/host1x/hw/channel_hw.c | 3 +-- drivers/gpu/host1x/hw/hw_host1x01_channel.h |

[PATCH 03/10] gpu: host1x: Add lock around channel allocation

2017-11-05 Thread Mikko Perttunen
With the new channel allocation model, multiple threads can be allocating channels simultaneously. Therefore we need to add a lock around the code. Signed-off-by: Mikko Perttunen --- drivers/gpu/host1x/channel.c | 7 +++ drivers/gpu/host1x/channel.h | 2 ++ 2 files changed, 9 insertions(+)

[PATCH 02/10] gpu: host1x: Print MLOCK state in debug dumps on T186

2017-11-05 Thread Mikko Perttunen
Add support for dumping current MLOCK state in debug dumps also on T186, now that MLOCKs are used by the driver. Signed-off-by: Mikko Perttunen --- drivers/gpu/host1x/hw/debug_hw_1x06.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/host1x/hw/d

[PATCH 06/10] drm/tegra: Deliver job completion callback to client

2017-11-05 Thread Mikko Perttunen
To allow client drivers to free resources when jobs have completed, deliver job completion callbacks to them. This requires adding reference counting to context objects, as job completion can happen after the userspace application has closed the context. As such, also add kref-based refcounting for

[PATCH 08/10] drm/tegra: Implement dynamic channel allocation model

2017-11-05 Thread Mikko Perttunen
In the traditional channel allocation model, a single hardware channel was allocated for each client. This is simple from an implementation perspective but prevents use of hardware scheduling. This patch implements a channel allocation model where when a user submits a job for a context, a hardwar

[PATCH 04/10] gpu: host1x: Lock classes during job submission

2017-11-05 Thread Mikko Perttunen
Host1x has a feature called MLOCKs which allow a certain class (~HW unit) to be locked (in the mutex sense) and unlocked during command execution, preventing other channels from accessing the class while it is locked. This is necessary to prevent concurrent jobs from messing up class state. This h

[PATCH 05/10] gpu: host1x: Add job done callback

2017-11-05 Thread Mikko Perttunen
Allow job submitters to set a callback to be called when the job has completed. The jobs are stored and the callbacks called outside the CDMA lock area to allow the callbacks to do CDMA-requiring operations like freeing channels. Signed-off-by: Mikko Perttunen --- drivers/gpu/host1x/cdma.c | 44

[PATCH 07/10] drm/tegra: Make syncpoints be per-context

2017-11-05 Thread Mikko Perttunen
As a preparation for each context potentially being able to have a separate hardware channel, and thus requiring a separate syncpoint, move syncpoints to be stored inside each context instead of global client data. Signed-off-by: Mikko Perttunen --- drivers/gpu/drm/tegra/drm.c | 8 dri

[PATCH 10/10] gpu: host1x: Optionally block when acquiring channel

2017-11-05 Thread Mikko Perttunen
Add an option to host1x_channel_request to interruptibly wait for a free channel. This allows IOCTLs that acquire a channel to block the userspace. Signed-off-by: Mikko Perttunen --- drivers/gpu/drm/tegra/drm.c | 9 + drivers/gpu/drm/tegra/gr2d.c | 6 +++--- drivers/gpu/drm/tegra/gr3d

[PATCH 00/10] Dynamic Host1x channel allocation

2017-11-05 Thread Mikko Perttunen
Hi all, this adds support for a new model of hardware channel allocation for Host1x/TegraDRM. In the current model, one hardware channel is allocated for each client device at probe time. This is simple but does not allow for optimal use of hardware resources. In the new model, we allocate channe

[PATCH] backlight: ili922x: remove redundant variable len

2017-11-05 Thread Colin King
From: Colin Ian King The variable len is assigned but never read, therefore it is redundant and can be removed. Cleans up clang warning: drivers/video/backlight/ili922x.c:276:2: warning: Value stored to 'len' is never read Signed-off-by: Colin Ian King --- drivers/video/backlight/ili922x.c |

[PATCH] video: atmel_lcdfb: Use common error handling code in atmel_lcdfb_of_init()

2017-11-05 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 5 Nov 2017 14:00:52 +0100 Add a jump target so that a specific error message is stored only once at the end of this function implementation. Replace two calls of the function "dev_err" by goto statements. This issue was detected by using the Coccinelle software.

[Bug 103576] AMDgpu doesn't separate Radeon R5 M430 from M330

2017-11-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103576 --- Comment #1 from Christian König --- IIRC the ASIC is identical, just configuration parameter like amount of video memory and clocks are different. As you can see on the lspci output even the PCI-IDs are the same. So why should amdgpu differ

Re: [PATCH 04/22] drm/arm/hdlcd: Use drm_fb_cma_fbdev_init/fini()

2017-11-05 Thread Liviu Dudau
Hi Noralf, On Sat, Nov 04, 2017 at 02:03:58PM +0100, Noralf Trønnes wrote: > Use drm_fb_cma_fbdev_init() and drm_fb_cma_fbdev_fini() which relies on > the fact that drm_device holds a pointer to the drm_fb_helper structure. > This means that the driver doesn't have to keep track of that. > Also us

Re: [PATCH 19/22] drm/arm/mali: Use drm_fb_cma_fbdev_init/fini()

2017-11-05 Thread Liviu Dudau
On Sat, Nov 04, 2017 at 02:04:13PM +0100, Noralf Trønnes wrote: > Use drm_fb_cma_fbdev_init() and drm_fb_cma_fbdev_fini() which relies on > the fact that drm_device holds a pointer to the drm_fb_helper structure. > This means that the driver doesn't have to keep track of that. > Also use the drm_fb

[PATCH] video/fbdev/dnfb: Use common error handling code in dnfb_probe()

2017-11-05 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 5 Nov 2017 14:54:52 +0100 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/video/fbdev/dnfb.c | 13 +++

[gabbayo:amdkfd-next 5/8] drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c:540:3: error: dereferencing pointer to incomplete type 'struct cik_sdma_rlc_registers'

2017-11-05 Thread kbuild test robot
tree: git://people.freedesktop.org/~gabbayo/linux amdkfd-next head: c0307884529de823406fb17daf477f6af34ca5e5 commit: 88bd109688cf71dac908e5a06915996ee79fcef6 [5/8] drm/amdgpu: Add support for resuming SDMA queues w/o HWS config: i386-randconfig-s0-201745 (attached as .config) compiler: gcc-6 (

[Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)

2017-11-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102358 --- Comment #35 from har...@gmx.de --- (In reply to Thomas Hellström from comment #34) > (In reply to haro41 from comment #33) > > No freezes, works great for me. > > Want to add a Tested-by: tag? > > /Thomas ... if it helps, but where and how

[pull] amdgpu and ttm drm-next-4.15

2017-11-05 Thread Alex Deucher
Hi Dave, A few more fixes for 4.15. The following changes since commit bf6eb600e5b835a96d676b2b9df603362a1e714c: Merge branch 'linux-4.15' of git://github.com/skeggsb/linux into drm-next (2017-11-03 09:17:08 +1000) are available in the git repository at: git://people.freedesktop.org/~agd5

[Bug 103576] AMDgpu doesn't separate Radeon R5 M430 from M330

2017-11-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103576 Alex Deucher changed: What|Removed |Added Resolution|--- |NOTABUG Status|NEW

Re: [PATCH] backlight: ili922x: remove redundant variable len

2017-11-05 Thread Jingoo Han
On Sunday, November 5, 2017 6:53 AM, Colin King wrote: > > From: Colin Ian King > > The variable len is assigned but never read, therefore it is redundant > and can be removed. Cleans up clang warning: > > drivers/video/backlight/ili922x.c:276:2: warning: Value stored to 'len' > is never read >

[Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)

2017-11-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102358 --- Comment #36 from Thomas Hellström --- (In reply to haro41 from comment #35) > (In reply to Thomas Hellström from comment #34) > > (In reply to haro41 from comment #33) > > > No freezes, works great for me. > > > > Want to add a Tested-by: t

Re: [PATCH v4 5/9] drm/exynos: Add generic support for devices shared with V4L2 subsystem

2017-11-05 Thread Inki Dae
Hi Marek, 2017년 11월 03일 21:28에 Marek Szyprowski 이(가) 쓴 글: > Hi Inki, > > On 2017-11-01 07:26, Inki Dae wrote: >> 2017년 10월 23일 16:54에 Marek Szyprowski 이(가) 쓴 글: >>> Some hardware modules, like FIMC in Exynos4 series are shared between >>> V4L2 (camera support) and DRM (memory-to-memory processing

Re: [PATCH hwc] Android: add CleanSpec.mk

2017-11-05 Thread Chih-Wei Huang
2017-11-03 20:35 GMT+08:00 Rob Herring : > On Thu, Nov 2, 2017 at 11:45 PM, Chih-Wei Huang > wrote: >> The file contains rules that are executed on incremental builds. >> Since commit 4f7dc9b6 the library was moved to /vendor so >> the old file must be removed. >> >> Signed-off-by: Chih-Wei Huang

[Bug 102800] DRI_PRIME regression- radeon: Failed to allocate virtual address for buffer

2017-11-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102800 --- Comment #10 from higu...@gmx.net --- So will kernel 4.14 will bring any fix to this? or you need more info about my system? -- You are receiving this mail because: You are the assignee for the bug.___

Re: [PATCH 6/7] drm/drivers: drop redundant drm_edid_to_eld() calls

2017-11-05 Thread Archit Taneja
On 11/01/2017 07:51 PM, Jani Nikula wrote: drm_add_edid_modes() now fills in the ELD automatically, so the calls to drm_edid_to_eld() are redundant. Remove them. All the other places are obvious, but nv50 has detached drm_edid_to_eld() from the drm_add_edid_modes() call. For the bridge drive

Re: [radeon-alex:sound-for-next-stoney 1/3] acp-pcm-dma.c:undefined reference to `__umoddi3'

2017-11-05 Thread Agrawal, Akshu
Hi Vijendar, Below is the patch from Guenter Roeck to fix build errors on 32 bit. Regards, Akshu From 3aa3a8549e986d860300e0623d048ec93482da19 Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Fri, 22 Sep 2017 09:43:27 -0700 Subject: [PATCH] FIXUP: FROMLIST: ASoC: amd: Report accurate hw_p

[Bug 103544] Graphical glitches r600 in game this war of mine linux native

2017-11-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103544 --- Comment #10 from Ilia Mirkin --- (In reply to Ilia Mirkin from comment #9) > Created attachment 135237 [details] [review] > enable simple_float logic for blending > > Entirely untested (not even compiled) patch to force blending to be 0*NaN

Re: [PATCH] drm/amd/display: indent an if statement

2017-11-05 Thread Dan Carpenter
On Sat, Nov 04, 2017 at 10:16:23AM +0100, walter harms wrote: > > > Am 04.11.2017 07:12, schrieb Dan Carpenter: > > The if statement wasn't indented so it makes static analysis tools and > > probably very recent GCC versions complain. > > > > Signed-off-by: Dan Carpenter > > --- > > I went over

[PATCH] drm/amd/display: small cleanup in destruct()

2017-11-05 Thread Dan Carpenter
Static analysis tools get annoyed that we don't indent this if statement. Actually, the if statement isn't required because kfree() can handle NULL pointers just fine. The DCE110STRENC_FROM_STRENC() macro is a wrapper around container_of() but it's basically a no-op or a cast. Anyway, it's not r

Re: [PATCH v2 1/7] drm/bridge: tc358767: do no fail on hi-res displays

2017-11-05 Thread Andrzej Hajda
On 03.11.2017 18:01, Andrey Gusakov wrote: > Do not fail data rates higher than 2.7 and more than 2 lanes. > Try to fall back to 2.7Gbps and 2 lanes. > --- > drivers/gpu/drm/bridge/tc358767.c | 14 +- > 1 file changed, 9 insertions(+), 5 deletions(-) > > diff --git a/drivers/gpu/drm/

Re: [PATCH v2 2/7] drm/bridge: tc358767: filter out too high modes

2017-11-05 Thread Andrzej Hajda
On 03.11.2017 18:01, Andrey Gusakov wrote: > Minimum pixel clock period is 6.5 nS for DPI. Do not accept modes > with lower pixel clock period. > --- > drivers/gpu/drm/bridge/tc358767.c |5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/bridge/tc358767

Re: [PATCH 14/22] drm/sun4i: Use drm_fb_cma_fbdev_init/fini()

2017-11-05 Thread Maxime Ripard
On Sat, Nov 04, 2017 at 02:04:08PM +0100, Noralf Trønnes wrote: > Use drm_fb_cma_fbdev_init() and drm_fb_cma_fbdev_fini() which relies on > the fact that drm_device holds a pointer to the drm_fb_helper structure. > This means that the driver doesn't have to keep track of that. > Also use the drm_fb

[Bug 99843] Geometry Shader - Incorrect Output

2017-11-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99843 --- Comment #13 from d...@jerber.co.uk --- Hi, It is still a problem. I detailed the card in comment 8 (HD 4890). Could you advise what other information you would need about the GPU? Thanks. -- You are receiving this mail because: You are the

Re: [PATCH 4.9.y 1/3] drm/bridge: adv7511: Rework adv7511_power_on/off() so they can be reused internally

2017-11-05 Thread Greg KH
On Fri, Nov 03, 2017 at 10:10:26AM +0700, Nhan Nguyen wrote: > From: John Stultz > > commit 651e4769ba2a9f20c4b8a823ae2727bf7fa9c9f0 upstream. > > In chasing down issues with EDID probing, I found some > duplicated but incomplete logic used to power the chip on and > off. > > This patch refacto

Re: [PATCH v2 0/7] drm/bridge: tc358767: fixes and improvements (resend)

2017-11-05 Thread Andrzej Hajda
On 03.11.2017 18:01, Andrey Gusakov wrote: > This set of patches fixes several issues that was found during testing > tc358767 with desktop DisplayPort displays. > > Changes in V2: > - fixed maximum pixelclock frequency > - copyright patch added > > Andrey Gusakov (7): > drm/bridge: t