[RFC] improve memory placement for radeon

2012-11-30 Thread Marek Olšák
On Thu, Nov 29, 2012 at 4:35 PM, wrote: > So as a followup is 2 patch. The first one just stop trying to move > object at each cs ioctl i believe it could be included in 3.7 as it > improve performances (especialy with vram change from userspace). > > The second one implement a vram eviction poli

[GIT PULL v2] exynos-drm-next

2012-11-30 Thread Inki Dae
Inki Dae -Daniel > -- > Daniel Vetter > Software Engineer, Intel Corporation > +41 (0) 79 365 57 48 - http://blog.ffwll.ch > -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121130/4ef44130/attachment.html>

[RFC,v2,3/8] video: tegra: host: Add channel and client support

2012-11-30 Thread Mark Zhang
On 11/29/2012 06:46 PM, Terje Bergstr?m wrote: > On 29.11.2012 12:01, Mark Zhang wrote: >> >> Just for curious, why "pb->mapped + 1K" is the end of a 4K pushbuffer? > > pb->mapped is u32 *, so compiler will take care of multiplying by > sizeof(u32). > Ah, yes. Sorry, I must be insane at that tim

[RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-30 Thread Terje Bergström
On 29.11.2012 20:34, Stephen Warren wrote: > On 11/29/2012 03:21 AM, Terje Bergstr?m wrote: >> True. I might also as well delete the general interrupt altogether, as >> we don't use it for any real purpose. > > Do make sure the interrupts still are part of the DT binding though, so > that the bind

[RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-30 Thread Thierry Reding
a module shouldn't > require this. Yes, that's true. But it still makes things more complicated since each of the maintainers will have to do extra work to test the changes. Anyway we'll see how this plays out. The ideal case would of course be to get the API right from the start. =) Thierry -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121130/6cb2861d/attachment.pgp>

[RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-30 Thread Thierry Reding
. > > So I think we have a solution that resonates with all proposals. Yes, that sounds good to me. Thierry -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121130/6b030934/attachment.pgp>

[RFC v2 2/8] video: tegra: Add syncpoint wait and interrupts

2012-11-30 Thread Thierry Reding
gt;> + writel(BIT_MASK(id), sync_regs + > >> + host1x_sync_syncpt_thresh_cpu0_int_status_r() + reg); > >> +} > > > > So this disables all interrupts and is called from the syncpt interrupt > > handler. Where are the interrupts reenabled? Do host1x clients have to > > do that manually? > > The thread re-enables once it's done. It checks the next value we're > interested in, and programs that to host1x syncpt threshold. Okay, that does make sense now. I think I'm indeed beginning to understand how the hardware works... > > Okay, so this is where syncpoint interrupts are reenabled. The rest of > > this whole wait queue code looks overly complex. I'll need to go through > > that separately and more thoroughly. > > Thanks. If we move responsibility of managing the workqueue out of host1x as I proposed above, maybe a lot of this code can be removed. Maybe you can explain a bit what they are used for exactly in your write-up. Thierry -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121130/fd1e020b/attachment.pgp>

[RFC v2 2/8] video: tegra: Add syncpoint wait and interrupts

2012-11-30 Thread Thierry Reding
t;< 2" with "* > REGISTER_STRIDE" here. Given that it is a very common pattern, << 2 seems enough documentation to me, but sure, if you prefer to be extra explicit that's fine with me. Thierry ------ next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121130/1109d9de/attachment-0001.pgp>

[RFC v2 2/8] video: tegra: Add syncpoint wait and interrupts

2012-11-30 Thread Terje Bergström
Just replying to part of your mail. On 30.11.2012 09:22, Thierry Reding wrote: > Actually for the display controller we want just a notification when the > VBLANK happens. I'm not sure if we want to do that with syncpoints at > all since it works quite well using regular interrupts. VBLANK isn't

[RFC v2 8/8] drm: tegra: Add gr2d device

2012-11-30 Thread Terje Bergström
On 29.11.2012 14:14, Thierry Reding wrote: > On Thu, Nov 29, 2012 at 10:09:13AM +0100, Lucas Stach wrote: >> This way you would also be able to construct different handles (like GEM >> obj or V4L2 buffers) from the same backing nvhost object. Note that I'm >> not sure how useful this would be, but

[RFC v2 3/8] video: tegra: host: Add channel and client support

2012-11-30 Thread Thierry Reding
) would be clearer. > Thanks. I've collected a massive amount of feedback already. v3 will > take quite a while to appear after we've finished all the reviews of v2. Yes, that should keep you busy for quite a while. =) But I also think we've made good progress so far. Thierry -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121130/b507fe64/attachment.pgp>

[RFC v2 8/8] drm: tegra: Add gr2d device

2012-11-30 Thread Lucas Stach
Am Freitag, den 30.11.2012, 09:44 +0200 schrieb Terje Bergstr?m: > On 29.11.2012 14:14, Thierry Reding wrote: > > On Thu, Nov 29, 2012 at 10:09:13AM +0100, Lucas Stach wrote: > >> This way you would also be able to construct different handles (like GEM > >> obj or V4L2 buffers) from the same backin

[PATCH] drm/ttm: do not check if list is empty in ttm_bo_force_list_clean, v2

2012-11-30 Thread Maarten Lankhorst
Just use the return error from ttm_mem_evict_first instead. Changes since v1: - Add warning if list is not empty, nothing else we can do here. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/ttm/ttm_bo.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(

[PATCH] drm/vmwgfx: always use ttm_bo_is_reserved

2012-11-30 Thread Maarten Lankhorst
This was missed during the initial conversion, most likely due to the refactoring here. Signed-off-by: Maarten Lankhorst --- diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c index 93dffe3..783a448 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_resourc

[PATCH, FIXED] drm/vmwgfx: always use ttm_bo_is_reserved

2012-11-30 Thread Maarten Lankhorst
This was missed during the initial conversion, most likely due to the refactoring here. Signed-off-by: Maarten Lankhorst --- Woops, forgot to stg refresh before sending, fixed. :-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c index 93dffe3..d

[PATCH] drm/ttm: add minimum residency constraint for bo eviction

2012-11-30 Thread Thomas Hellstrom
On 11/29/2012 10:58 PM, Marek Ol??k wrote: > On Thu, Nov 29, 2012 at 9:33 PM, Thomas Hellstrom > wrote: >> On 11/29/2012 01:52 PM, Marek Ol??k wrote: >>> On Thu, Nov 29, 2012 at 9:04 AM, Thomas Hellstrom >>> wrote: On 11/29/2012 03:15 AM, Marek Ol??k wrote: > On Thu, Nov 29, 2012 at 12:

[RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-30 Thread Lucas Stach
Am Donnerstag, den 29.11.2012, 11:38 -0700 schrieb Stephen Warren: > On 11/29/2012 04:47 AM, Thierry Reding wrote: > > I agree. But I also fear that there will be changes eventually and > > having both go in via different tree requires those trees to be > > merged in a specific order to avoid brea

[RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-30 Thread Terje Bergström
On 29.11.2012 13:47, Thierry Reding wrote: > On Thu, Nov 29, 2012 at 12:21:04PM +0200, Terje Bergstr?m wrote: >> Tegra20 and Tegra30 are compatible, but future chips are not. I was >> hoping we would be ready in upstream kernel for future chips. > > I think we should ignore that problem for now. G

[PATCH, FIXED] drm/vmwgfx: always use ttm_bo_is_reserved

2012-11-30 Thread Thomas Hellstrom
Reviewed-by: Thomas Hellstrom On 11/30/2012 09:18 AM, Maarten Lankhorst wrote: > This was missed during the initial conversion, most likely due to the > refactoring here. > > Signed-off-by: Maarten Lankhorst > --- > Woops, forgot to stg refresh before sending, fixed. :-) > > diff --git a/driver

[RFC v1] drm: add reference count of gem object name

2012-11-30 Thread Inki Dae
Hello, all. This patch introduces reference count of gem object name and resolves the below issue. In case that proces A shares its own gem object with process B, process B opens a gem object name from process A to get its own gem handle. But if process A closes the gem handle, the gem object nam

Asynchronous eviction [WAS Re: [PATCH] drm/ttm: add minimum residency constraint for bo eviction]

2012-11-30 Thread Thomas Hellstrom
On 11/29/2012 10:58 PM, Marek Ol??k wrote: > > What I tried to point out was that the synchronization shouldn't be > needed, because the CPU shouldn't do anything with the contents of > evicted buffers. The GPU moves the buffers, not the CPU. What does the > CPU do besides updating some kernel stru

[PATCH] drm/ttm: do not check if list is empty in ttm_bo_force_list_clean, v2

2012-11-30 Thread Thomas Hellstrom
On 11/30/2012 09:05 AM, Maarten Lankhorst wrote: > Just use the return error from ttm_mem_evict_first instead. > > Changes since v1: > - Add warning if list is not empty, nothing else we can do here. Marten, when this function is called, all cross-device reservers have been shut out with the TTM

[PATCH] drm/ttm: do not check if list is empty in ttm_bo_force_list_clean, v2

2012-11-30 Thread Maarten Lankhorst
Op 30-11-12 10:04, Thomas Hellstrom schreef: > On 11/30/2012 09:05 AM, Maarten Lankhorst wrote: >> Just use the return error from ttm_mem_evict_first instead. >> >> Changes since v1: >> - Add warning if list is not empty, nothing else we can do here. > > Marten, when this function is called, all cr

[RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-30 Thread Thierry Reding
s, as they have the means to > enable it. > > sysfs is a place for actual APIs as you mention, and user space can rely > on them as proper APIs. That's what the values were exported for. But I don't see how that's relevant here. Let me quote what you said originally: >

[PATCH] drm/ttm: do not check if list is empty in ttm_bo_force_list_clean, v2

2012-11-30 Thread Thomas Hellstrom
On 11/30/2012 11:16 AM, Maarten Lankhorst wrote: > Op 30-11-12 10:04, Thomas Hellstrom schreef: >> On 11/30/2012 09:05 AM, Maarten Lankhorst wrote: >>> Just use the return error from ttm_mem_evict_first instead. >>> >>> Changes since v1: >>> - Add warning if list is not empty, nothing else we can d

[PATCH 0/6] drm/ttm: lru lock atomicity removal

2012-11-30 Thread Maarten Lankhorst
With all the previous patches there shouldn't be anything lying on the reservations being atomic with removal of the bo's from the lru lists any more. As such we can finally fix the locking primitives and make it act like normal mutex calls. Patch 1 is the actual removal of the guarantee in ttm

[PATCH 1/6] drm/ttm: remove lru_lock around ttm_bo_reserve

2012-11-30 Thread Maarten Lankhorst
There should no longer be assumptions that reserve will always succeed with the lru lock held, so we can safely break the whole atomic reserve/lru thing. As a bonus this fixes most lockdep annotations for reservations. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/ttm/ttm_bo.c |

[PATCH 2/6] drm/ttm: cleanup ttm_eu_reserve_buffers handling

2012-11-30 Thread Maarten Lankhorst
With the lru lock no longer required for protecting reservations we can just do a ttm_bo_reserve_nolru on -EBUSY, and handle all errors in a single path. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/ttm/ttm_execbuf_util.c | 53 ++ 1 file changed, 21 insert

[PATCH 3/6] drm/ttm: add ttm_bo_reserve_slowpath

2012-11-30 Thread Maarten Lankhorst
Instead of dropping everything, waiting for the bo to be unreserved and trying over, a better strategy would be to do a blocking wait. This can be mapped a lot better to a mutex_lock-like call. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/ttm/ttm_bo.c| 47 +++

[PATCH 4/6] drm/ttm: use ttm_bo_reserve_slowpath_nolru in ttm_eu_reserve_buffers

2012-11-30 Thread Maarten Lankhorst
This requires re-use of the seqno, which increases fairness slightly. Instead of spinning with a new seqno every time we keep the current one, but still drop all other reservations we hold. Only when we succeed, we try to get back our other reservations again. This should increase fairness slightl

[PATCH 5/6] drm/nouveau: use ttm_bo_reserve_slowpath in validate_init

2012-11-30 Thread Maarten Lankhorst
Similar rationale to the identical commit in drm/ttm. Instead of only waiting for unreservation, we make sure we actually own the reservation, then retry to get the rest. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/nouveau/nouveau_gem.c | 19 +++ 1 file changed, 15 inser

[PATCH 6/6] drm/ttm: unexport ttm_bo_wait_unreserved

2012-11-30 Thread Maarten Lankhorst
All legitimate users of this function outside ttm_bo.c are gone, now it's only an implementation detail. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/ttm/ttm_bo.c| 4 ++-- include/drm/ttm/ttm_bo_driver.h | 12 2 files changed, 2 insertions(+), 14 deletions(-) diff --gi

[RFC v1] drm: add reference count of gem object name

2012-11-30 Thread Inki Dae
c_t handle_count; /* number of handles on this object */ > > + /* > +* Name count of this object. > +* > +* This count is initialized as 0 with drm_gem_object_init or > +* drm_gem_private_object_init call. After that, this count is > +* increased if the name of this object exists already > +* otherwise is set to 1 at flink. And finally, the name of > +* this object will be released when this count reaches 0 > +* by gem close. > +*/ > + atomic_t obj_name_count; > + > /** Related drm device */ > struct drm_device *dev; > > -- > 1.7.4.1 > > ___ > dri-devel mailing list > dri-devel at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/dri-devel > -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121130/8df39b7e/attachment-0001.html>

[RESEND][RFC v1] drm: add reference count of gem object name

2012-11-30 Thread inki....@samsung.com
From: Inki Dae Hello, all. This patch introduces reference count of gem object name and resolves the below issue. In case that proces A shares its own gem object with process B, process B opens a gem object name from process A to get its own gem handle. But if process A closes the gem handle, t

[PATCH 0/6] drm/ttm: lru lock atomicity removal

2012-11-30 Thread Thomas Hellstrom
On 11/30/2012 01:11 PM, Maarten Lankhorst wrote: > With all the previous patches there shouldn't be anything lying on the > reservations being atomic > with removal of the bo's from the lru lists any more. > > As such we can finally fix the locking primitives and make it act like normal > mutex c

[Bug 57741] New: [regression] Resolution crippled for HD4870X2

2012-11-30 Thread bugzilla-dae...@freedesktop.org
the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121130/c9ffa7ee/attachment.html>

[Bug 57741] [regression] Resolution crippled for HD4870X2

2012-11-30 Thread bugzilla-dae...@freedesktop.org
You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121130/0323b622/attachment.html>

[RFC v1] drm: add reference count of gem object name

2012-11-30 Thread Daniel Vetter
Hi, tbh I don't follow what exactly you're trying to fix, but the rules is: The flink name stays around as long as there's a userspace handle, and will be deleted once the last userspace handle is closed. Which means that for process->process gem passing the sender _must_ keep the bo handle open

[GIT PULL v2] exynos-drm-next

2012-11-30 Thread Daniel Vetter
On Fri, Nov 30, 2012 at 6:27 AM, Inki Dae wrote: > I agree with you and also I think it's better to use common infoframe > helpers. > But Rahul'a patch set had been posted prior to the common infoframe helpers > so > first we could merge this patch and then change it to common infoframe > helpers

Asynchronous eviction [WAS Re: [PATCH] drm/ttm: add minimum residency constraint for bo eviction]

2012-11-30 Thread Jerome Glisse
On Fri, Nov 30, 2012 at 4:39 AM, Thomas Hellstrom wrote: > On 11/29/2012 10:58 PM, Marek Ol??k wrote: >> >> >> What I tried to point out was that the synchronization shouldn't be >> needed, because the CPU shouldn't do anything with the contents of >> evicted buffers. The GPU moves the buffers, n

[Bug 42627] Hibernation fails to resume - Toshiba Satellite L755-161 notebook

2012-11-30 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=42627 --- Comment #25 from Harald Brennich 2012-11-30 16:41:04 --- After installing openSuse 12.2 with kernel 3.4.11-2.16-desktop, resume from s2disk works with the nouveau driver. There is one (small) drawback compared to the nvidia driver: durin

Asynchronous eviction [WAS Re: [PATCH] drm/ttm: add minimum residency constraint for bo eviction]

2012-11-30 Thread Thomas Hellstrom
On 11/30/2012 05:30 PM, Jerome Glisse wrote: > On Fri, Nov 30, 2012 at 4:39 AM, Thomas Hellstrom > wrote: >> On 11/29/2012 10:58 PM, Marek Ol??k wrote: >>> >>> What I tried to point out was that the synchronization shouldn't be >>> needed, because the CPU shouldn't do anything with the contents o

some drm cleanups to pull

2012-11-30 Thread Rob Clark
Hi Dave, I've rebased the patch series to remove usage of and drop the legacy connector-property functions and replace w/ object-property which can be pulled from: git://github.com/robclark/kernel-omap4.git connector-to-object-prop There was one additional connector->object rename needed in i9

Asynchronous eviction [WAS Re: [PATCH] drm/ttm: add minimum residency constraint for bo eviction]

2012-11-30 Thread Jerome Glisse
On Fri, Nov 30, 2012 at 12:08 PM, Thomas Hellstrom wrote: > On 11/30/2012 05:30 PM, Jerome Glisse wrote: >> >> On Fri, Nov 30, 2012 at 4:39 AM, Thomas Hellstrom >> wrote: >>> >>> On 11/29/2012 10:58 PM, Marek Ol??k wrote: What I tried to point out was that the synchronization shou

Asynchronous eviction [WAS Re: [PATCH] drm/ttm: add minimum residency constraint for bo eviction]

2012-11-30 Thread Thomas Hellstrom
On 11/30/2012 06:18 PM, Jerome Glisse wrote: > On Fri, Nov 30, 2012 at 12:08 PM, Thomas Hellstrom > wrote: >> On 11/30/2012 05:30 PM, Jerome Glisse wrote: >>> On Fri, Nov 30, 2012 at 4:39 AM, Thomas Hellstrom >>> wrote: On 11/29/2012 10:58 PM, Marek Ol??k wrote: > > What I tried to

Asynchronous eviction [WAS Re: [PATCH] drm/ttm: add minimum residency constraint for bo eviction]

2012-11-30 Thread Jerome Glisse
On Fri, Nov 30, 2012 at 06:43:36PM +0100, Thomas Hellstrom wrote: > On 11/30/2012 06:18 PM, Jerome Glisse wrote: > >On Fri, Nov 30, 2012 at 12:08 PM, Thomas Hellstrom > >wrote: > >>On 11/30/2012 05:30 PM, Jerome Glisse wrote: > >>>On Fri, Nov 30, 2012 at 4:39 AM, Thomas Hellstrom > >>>wrote: > >

Asynchronous eviction [WAS Re: [PATCH] drm/ttm: add minimum residency constraint for bo eviction]

2012-11-30 Thread Thomas Hellstrom
On 11/30/2012 07:07 PM, Jerome Glisse wrote: > On Fri, Nov 30, 2012 at 06:43:36PM +0100, Thomas Hellstrom wrote: >> On 11/30/2012 06:18 PM, Jerome Glisse wrote: >>> On Fri, Nov 30, 2012 at 12:08 PM, Thomas Hellstrom >>> wrote: On 11/30/2012 05:30 PM, Jerome Glisse wrote: > On Fri, Nov 30

Asynchronous eviction [WAS Re: [PATCH] drm/ttm: add minimum residency constraint for bo eviction]

2012-11-30 Thread Jerome Glisse
On Fri, Nov 30, 2012 at 07:31:04PM +0100, Thomas Hellstrom wrote: > On 11/30/2012 07:07 PM, Jerome Glisse wrote: > >On Fri, Nov 30, 2012 at 06:43:36PM +0100, Thomas Hellstrom wrote: > >>On 11/30/2012 06:18 PM, Jerome Glisse wrote: > >>>On Fri, Nov 30, 2012 at 12:08 PM, Thomas Hellstrom >>>shipmail

Asynchronous eviction [WAS Re: [PATCH] drm/ttm: add minimum residency constraint for bo eviction]

2012-11-30 Thread Thomas Hellstrom
On 11/30/2012 08:25 PM, Jerome Glisse wrote: > On Fri, Nov 30, 2012 at 07:31:04PM +0100, Thomas Hellstrom wrote: >> On 11/30/2012 07:07 PM, Jerome Glisse wrote: >>> On Fri, Nov 30, 2012 at 06:43:36PM +0100, Thomas Hellstrom wrote: On 11/30/2012 06:18 PM, Jerome Glisse wrote: > On Fri, Nov

WARNING: at drivers/gpu/drm/i915/intel_display.c:1009 ironlake_crtc_disable+0xaf/0x8e0

2012-11-30 Thread Meelis Roos
> I tried 3.7-rc5 on an ironlale PC and got the warning in subject. The > computer last ran 3.6.0 without any warnings. Second reboot showed the > same warning plus a couple of EDID warnings (also below). Still there with 3.7.0-rc7-00113-gcc19528 and 100% reproducible: [0.646574] WARNING: a

WARNING: at drivers/gpu/drm/i915/intel_display.c:1009 ironlake_crtc_disable+0xaf/0x8e0

2012-11-30 Thread Daniel Vetter
On Fri, Nov 30, 2012 at 9:49 PM, Meelis Roos wrote: >> I tried 3.7-rc5 on an ironlale PC and got the warning in subject. The >> computer last ran 3.6.0 without any warnings. Second reboot showed the >> same warning plus a couple of EDID warnings (also below). > > Still there with 3.7.0-rc7-00113-g

Asynchronous eviction [WAS Re: [PATCH] drm/ttm: add minimum residency constraint for bo eviction]

2012-11-30 Thread Jerome Glisse
On Fri, Nov 30, 2012 at 09:35:49PM +0100, Thomas Hellstrom wrote: > On 11/30/2012 08:25 PM, Jerome Glisse wrote: > >On Fri, Nov 30, 2012 at 07:31:04PM +0100, Thomas Hellstrom wrote: > >>On 11/30/2012 07:07 PM, Jerome Glisse wrote: > >>>On Fri, Nov 30, 2012 at 06:43:36PM +0100, Thomas Hellstrom wrot

Asynchronous eviction [WAS Re: [PATCH] drm/ttm: add minimum residency constraint for bo eviction]

2012-11-30 Thread Thomas Hellstrom
On 11/30/2012 10:07 PM, Jerome Glisse wrote: > On Fri, Nov 30, 2012 at 09:35:49PM +0100, Thomas Hellstrom wrote: >> On 11/30/2012 08:25 PM, Jerome Glisse wrote: >>> On Fri, Nov 30, 2012 at 07:31:04PM +0100, Thomas Hellstrom wrote: On 11/30/2012 07:07 PM, Jerome Glisse wrote: > On Fri, Nov

Asynchronous eviction [WAS Re: [PATCH] drm/ttm: add minimum residency constraint for bo eviction]

2012-11-30 Thread Jerome Glisse
On Fri, Nov 30, 2012 at 10:36:01PM +0100, Thomas Hellstrom wrote: > On 11/30/2012 10:07 PM, Jerome Glisse wrote: > >On Fri, Nov 30, 2012 at 09:35:49PM +0100, Thomas Hellstrom wrote: > >>On 11/30/2012 08:25 PM, Jerome Glisse wrote: > >>>On Fri, Nov 30, 2012 at 07:31:04PM +0100, Thomas Hellstrom wrot

[PATCH 0/6] drivers: convert struct spinlock to spinlock_t

2012-11-30 Thread Arend van Spriel
On 11/29/2012 09:45 PM, Luis R. Rodriguez wrote: > From: "Luis R. Rodriguez" > > Turns out a few drivers have strayed away from using the > spinlock_t typedef and decided to use struct spinlock > directly. This series converts these drivers to use > spinlock_t. Each change has been compile tested

[RFC v2 2/5] video: panel: Add DPI panel support

2012-11-30 Thread Philipp Zabel
Hi Laurent, Am Donnerstag, den 22.11.2012, 22:45 +0100 schrieb Laurent Pinchart: > From: Laurent Pinchart > > Signed-off-by: Laurent Pinchart > --- > drivers/video/display/Kconfig | 13 +++ > drivers/video/display/Makefile|1 + > drivers/video/display/panel-dpi.c | 147 > ++

[RFC v2 3/5] video: display: Add MIPI DBI bus support

2012-11-30 Thread Tomi Valkeinen
t was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 899 bytes Desc: OpenPGP digital signature URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121130/21120530/attachment-0001.pgp>

[PATCH 0/6] drivers: convert struct spinlock to spinlock_t

2012-11-30 Thread Luis R. Rodriguez
On Fri, Nov 30, 2012 at 12:38 AM, Arend van Spriel wrote: > So what is the rationale here. During mainlining our drivers we had to > remove all uses of 'typedef struct foo foo_t;'. The Linux CodingStyle > (chapter 5 Typedefs) is spending a number of lines explaining why. > > So is spinlock_t an e

[PATCH 0/6] drivers: convert struct spinlock to spinlock_t

2012-11-30 Thread Luis R. Rodriguez
On Fri, Nov 30, 2012 at 11:18 AM, Luis R. Rodriguez wrote: > On Fri, Nov 30, 2012 at 12:38 AM, Arend van Spriel > wrote: >> So what is the rationale here. During mainlining our drivers we had to >> remove all uses of 'typedef struct foo foo_t;'. The Linux CodingStyle >> (chapter 5 Typedefs) is s

[PATCH 0/6] drivers: convert struct spinlock to spinlock_t

2012-11-30 Thread Arend van Spriel
On 11/30/2012 09:25 PM, Luis R. Rodriguez wrote: > On Fri, Nov 30, 2012 at 11:18 AM, Luis R. Rodriguez > wrote: >> On Fri, Nov 30, 2012 at 12:38 AM, Arend van Spriel >> wrote: >>> So what is the rationale here. During mainlining our drivers we had to >>> remove all uses of 'typedef struct foo fo

Re: [RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-30 Thread Terje Bergström
On 29.11.2012 20:34, Stephen Warren wrote: > On 11/29/2012 03:21 AM, Terje Bergström wrote: >> True. I might also as well delete the general interrupt altogether, as >> we don't use it for any real purpose. > > Do make sure the interrupts still are part of the DT binding though, so > that the bind

Re: [RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-30 Thread Thierry Reding
On Thu, Nov 29, 2012 at 11:38:11AM -0700, Stephen Warren wrote: > On 11/29/2012 04:47 AM, Thierry Reding wrote: > > On Thu, Nov 29, 2012 at 12:21:04PM +0200, Terje Bergström wrote: > >> On 28.11.2012 23:23, Thierry Reding wrote: > >>> This could be problematic. Since drivers/video and > >>> drivers

Re: [RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-30 Thread Thierry Reding
On Fri, Nov 30, 2012 at 08:54:32AM +0200, Terje Bergström wrote: > On 29.11.2012 20:34, Stephen Warren wrote: > > On 11/29/2012 03:21 AM, Terje Bergström wrote: > >> True. I might also as well delete the general interrupt altogether, as > >> we don't use it for any real purpose. > > > > Do make su

Re: [RFC v2 2/8] video: tegra: Add syncpoint wait and interrupts

2012-11-30 Thread Thierry Reding
On Thu, Nov 29, 2012 at 12:39:23PM +0200, Terje Bergström wrote: > On 29.11.2012 10:44, Thierry Reding wrote: > >> diff --git a/drivers/video/tegra/host/dev.c > >> b/drivers/video/tegra/host/dev.c > >> index 98c9c9f..025a820 100644 > >> --- a/drivers/video/tegra/host/dev.c > >> +++ b/drivers/video

Re: [RFC v2 2/8] video: tegra: Add syncpoint wait and interrupts

2012-11-30 Thread Thierry Reding
On Thu, Nov 29, 2012 at 11:41:50AM -0700, Stephen Warren wrote: > On 11/29/2012 01:44 AM, Thierry Reding wrote: > > On Mon, Nov 26, 2012 at 03:19:08PM +0200, Terje Bergstrom wrote: > > >> diff --git a/drivers/video/tegra/host/host1x/host1x_intr.c > >> b/drivers/video/tegra/host/host1x/host1x_intr.

Re: [RFC v2 2/8] video: tegra: Add syncpoint wait and interrupts

2012-11-30 Thread Terje Bergström
Just replying to part of your mail. On 30.11.2012 09:22, Thierry Reding wrote: > Actually for the display controller we want just a notification when the > VBLANK happens. I'm not sure if we want to do that with syncpoints at > all since it works quite well using regular interrupts. VBLANK isn't

Re: [RFC v2 8/8] drm: tegra: Add gr2d device

2012-11-30 Thread Terje Bergström
On 29.11.2012 14:14, Thierry Reding wrote: > On Thu, Nov 29, 2012 at 10:09:13AM +0100, Lucas Stach wrote: >> This way you would also be able to construct different handles (like GEM >> obj or V4L2 buffers) from the same backing nvhost object. Note that I'm >> not sure how useful this would be, but

Re: [RFC v2 3/8] video: tegra: host: Add channel and client support

2012-11-30 Thread Thierry Reding
On Thu, Nov 29, 2012 at 01:00:40PM +0200, Terje Bergström wrote: > On 29.11.2012 12:04, Thierry Reding wrote: > > Looking some more at how this is used, I'm starting to think that it > > might be easier to export the various handlers and allow them to be > > passed to the nvhost_intr_add_action() e

Re: [RFC v2 8/8] drm: tegra: Add gr2d device

2012-11-30 Thread Lucas Stach
Am Freitag, den 30.11.2012, 09:44 +0200 schrieb Terje Bergström: > On 29.11.2012 14:14, Thierry Reding wrote: > > On Thu, Nov 29, 2012 at 10:09:13AM +0100, Lucas Stach wrote: > >> This way you would also be able to construct different handles (like GEM > >> obj or V4L2 buffers) from the same backin

[PATCH] drm/ttm: do not check if list is empty in ttm_bo_force_list_clean, v2

2012-11-30 Thread Maarten Lankhorst
Just use the return error from ttm_mem_evict_first instead. Changes since v1: - Add warning if list is not empty, nothing else we can do here. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/ttm/ttm_bo.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(

[PATCH] drm/vmwgfx: always use ttm_bo_is_reserved

2012-11-30 Thread Maarten Lankhorst
This was missed during the initial conversion, most likely due to the refactoring here. Signed-off-by: Maarten Lankhorst --- diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c index 93dffe3..783a448 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_resourc

[PATCH, FIXED] drm/vmwgfx: always use ttm_bo_is_reserved

2012-11-30 Thread Maarten Lankhorst
This was missed during the initial conversion, most likely due to the refactoring here. Signed-off-by: Maarten Lankhorst --- Woops, forgot to stg refresh before sending, fixed. :-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c index 93dffe3..d

Re: [PATCH] drm/ttm: add minimum residency constraint for bo eviction

2012-11-30 Thread Thomas Hellstrom
On 11/29/2012 10:58 PM, Marek Olšák wrote: On Thu, Nov 29, 2012 at 9:33 PM, Thomas Hellstrom wrote: On 11/29/2012 01:52 PM, Marek Olšák wrote: On Thu, Nov 29, 2012 at 9:04 AM, Thomas Hellstrom wrote: On 11/29/2012 03:15 AM, Marek Olšák wrote: On Thu, Nov 29, 2012 at 12:44 AM, Alan Swanson

Re: [RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-30 Thread Lucas Stach
Am Donnerstag, den 29.11.2012, 11:38 -0700 schrieb Stephen Warren: > On 11/29/2012 04:47 AM, Thierry Reding wrote: > > I agree. But I also fear that there will be changes eventually and > > having both go in via different tree requires those trees to be > > merged in a specific order to avoid brea

Re: [RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-30 Thread Terje Bergström
On 29.11.2012 13:47, Thierry Reding wrote: > On Thu, Nov 29, 2012 at 12:21:04PM +0200, Terje Bergström wrote: >> Tegra20 and Tegra30 are compatible, but future chips are not. I was >> hoping we would be ready in upstream kernel for future chips. > > I think we should ignore that problem for now. G

Re: [PATCH, FIXED] drm/vmwgfx: always use ttm_bo_is_reserved

2012-11-30 Thread Thomas Hellstrom
Reviewed-by: Thomas Hellstrom On 11/30/2012 09:18 AM, Maarten Lankhorst wrote: This was missed during the initial conversion, most likely due to the refactoring here. Signed-off-by: Maarten Lankhorst --- Woops, forgot to stg refresh before sending, fixed. :-) diff --git a/drivers/gpu/drm/vm

[RFC v1] drm: add reference count of gem object name

2012-11-30 Thread Inki Dae
Hello, all. This patch introduces reference count of gem object name and resolves the below issue. In case that proces A shares its own gem object with process B, process B opens a gem object name from process A to get its own gem handle. But if process A closes the gem handle, the gem object nam

Asynchronous eviction [WAS Re: [PATCH] drm/ttm: add minimum residency constraint for bo eviction]

2012-11-30 Thread Thomas Hellstrom
On 11/29/2012 10:58 PM, Marek Olšák wrote: What I tried to point out was that the synchronization shouldn't be needed, because the CPU shouldn't do anything with the contents of evicted buffers. The GPU moves the buffers, not the CPU. What does the CPU do besides updating some kernel structures?

Re: [PATCH] drm/ttm: do not check if list is empty in ttm_bo_force_list_clean, v2

2012-11-30 Thread Thomas Hellstrom
On 11/30/2012 09:05 AM, Maarten Lankhorst wrote: Just use the return error from ttm_mem_evict_first instead. Changes since v1: - Add warning if list is not empty, nothing else we can do here. Marten, when this function is called, all cross-device reservers have been shut out with the TTM lock

Re: [PATCH] drm/ttm: do not check if list is empty in ttm_bo_force_list_clean, v2

2012-11-30 Thread Maarten Lankhorst
Op 30-11-12 10:04, Thomas Hellstrom schreef: > On 11/30/2012 09:05 AM, Maarten Lankhorst wrote: >> Just use the return error from ttm_mem_evict_first instead. >> >> Changes since v1: >> - Add warning if list is not empty, nothing else we can do here. > > Marten, when this function is called, all cr

Re: [RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-30 Thread Thierry Reding
On Fri, Nov 30, 2012 at 10:56:39AM +0200, Terje Bergström wrote: > On 29.11.2012 13:47, Thierry Reding wrote: > > On Thu, Nov 29, 2012 at 12:21:04PM +0200, Terje Bergström wrote: > >> Tegra20 and Tegra30 are compatible, but future chips are not. I was > >> hoping we would be ready in upstream kerne

Re: [PATCH] drm/ttm: do not check if list is empty in ttm_bo_force_list_clean, v2

2012-11-30 Thread Thomas Hellstrom
On 11/30/2012 11:16 AM, Maarten Lankhorst wrote: Op 30-11-12 10:04, Thomas Hellstrom schreef: On 11/30/2012 09:05 AM, Maarten Lankhorst wrote: Just use the return error from ttm_mem_evict_first instead. Changes since v1: - Add warning if list is not empty, nothing else we can do here. Marten,

[PATCH 0/6] drm/ttm: lru lock atomicity removal

2012-11-30 Thread Maarten Lankhorst
With all the previous patches there shouldn't be anything lying on the reservations being atomic with removal of the bo's from the lru lists any more. As such we can finally fix the locking primitives and make it act like normal mutex calls. Patch 1 is the actual removal of the guarantee in ttm

[PATCH 1/6] drm/ttm: remove lru_lock around ttm_bo_reserve

2012-11-30 Thread Maarten Lankhorst
There should no longer be assumptions that reserve will always succeed with the lru lock held, so we can safely break the whole atomic reserve/lru thing. As a bonus this fixes most lockdep annotations for reservations. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/ttm/ttm_bo.c |

[PATCH 2/6] drm/ttm: cleanup ttm_eu_reserve_buffers handling

2012-11-30 Thread Maarten Lankhorst
With the lru lock no longer required for protecting reservations we can just do a ttm_bo_reserve_nolru on -EBUSY, and handle all errors in a single path. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/ttm/ttm_execbuf_util.c | 53 ++ 1 file changed, 21 insert

[PATCH 3/6] drm/ttm: add ttm_bo_reserve_slowpath

2012-11-30 Thread Maarten Lankhorst
Instead of dropping everything, waiting for the bo to be unreserved and trying over, a better strategy would be to do a blocking wait. This can be mapped a lot better to a mutex_lock-like call. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/ttm/ttm_bo.c| 47 +++

[PATCH 4/6] drm/ttm: use ttm_bo_reserve_slowpath_nolru in ttm_eu_reserve_buffers

2012-11-30 Thread Maarten Lankhorst
This requires re-use of the seqno, which increases fairness slightly. Instead of spinning with a new seqno every time we keep the current one, but still drop all other reservations we hold. Only when we succeed, we try to get back our other reservations again. This should increase fairness slightl

[PATCH 5/6] drm/nouveau: use ttm_bo_reserve_slowpath in validate_init

2012-11-30 Thread Maarten Lankhorst
Similar rationale to the identical commit in drm/ttm. Instead of only waiting for unreservation, we make sure we actually own the reservation, then retry to get the rest. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/nouveau/nouveau_gem.c | 19 +++ 1 file changed, 15 inser

[PATCH 6/6] drm/ttm: unexport ttm_bo_wait_unreserved

2012-11-30 Thread Maarten Lankhorst
All legitimate users of this function outside ttm_bo.c are gone, now it's only an implementation detail. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/ttm/ttm_bo.c| 4 ++-- include/drm/ttm/ttm_bo_driver.h | 12 2 files changed, 2 insertions(+), 14 deletions(-) diff --gi

Re: [RFC v1] drm: add reference count of gem object name

2012-11-30 Thread Inki Dae
2012/11/30 Inki Dae > Hello, all. > > This patch introduces reference count of gem object name and resolves > the below issue. > > In case that proces A shares its own gem object with process B, > process B opens a gem object name from process A to get its own > gem handle. But if process A close

[RESEND][RFC v1] drm: add reference count of gem object name

2012-11-30 Thread inki . dae
From: Inki Dae Hello, all. This patch introduces reference count of gem object name and resolves the below issue. In case that proces A shares its own gem object with process B, process B opens a gem object name from process A to get its own gem handle. But if process A closes the gem handle, t

Re: [PATCH 0/6] drm/ttm: lru lock atomicity removal

2012-11-30 Thread Thomas Hellstrom
On 11/30/2012 01:11 PM, Maarten Lankhorst wrote: With all the previous patches there shouldn't be anything lying on the reservations being atomic with removal of the bo's from the lru lists any more. As such we can finally fix the locking primitives and make it act like normal mutex calls. Pa

[Bug 57741] New: [regression] Resolution crippled for HD4870X2

2012-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=57741 Priority: medium Bug ID: 57741 Assignee: dri-devel@lists.freedesktop.org Summary: [regression] Resolution crippled for HD4870X2 Severity: major Classification: Unclassified O

[Bug 57741] [regression] Resolution crippled for HD4870X2

2012-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=57741 --- Comment #1 from Alex Deucher --- SHould be fixed with: http://cgit.freedesktop.org/~agd5f/linux/commit/?h=drm-fixes-3.7&id=fc58acdbf153f12783b80cb19c04cc9de121b518 Which will be upstream soon. -- You are receiving this mail because: You are

Re: [RFC v1] drm: add reference count of gem object name

2012-11-30 Thread Daniel Vetter
Hi, tbh I don't follow what exactly you're trying to fix, but the rules is: The flink name stays around as long as there's a userspace handle, and will be deleted once the last userspace handle is closed. Which means that for process->process gem passing the sender _must_ keep the bo handle open

Re: [GIT PULL v2] exynos-drm-next

2012-11-30 Thread Daniel Vetter
On Fri, Nov 30, 2012 at 6:27 AM, Inki Dae wrote: > I agree with you and also I think it's better to use common infoframe > helpers. > But Rahul'a patch set had been posted prior to the common infoframe helpers > so > first we could merge this patch and then change it to common infoframe > helpers

Re: Asynchronous eviction [WAS Re: [PATCH] drm/ttm: add minimum residency constraint for bo eviction]

2012-11-30 Thread Jerome Glisse
On Fri, Nov 30, 2012 at 4:39 AM, Thomas Hellstrom wrote: > On 11/29/2012 10:58 PM, Marek Olšák wrote: >> >> >> What I tried to point out was that the synchronization shouldn't be >> needed, because the CPU shouldn't do anything with the contents of >> evicted buffers. The GPU moves the buffers, no

[Bug 42627] Hibernation fails to resume - Toshiba Satellite L755-161 notebook

2012-11-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=42627 --- Comment #25 from Harald Brennich 2012-11-30 16:41:04 --- After installing openSuse 12.2 with kernel 3.4.11-2.16-desktop, resume from s2disk works with the nouveau driver. There is one (small) drawback compared to the nvidia driver: durin

Re: Asynchronous eviction [WAS Re: [PATCH] drm/ttm: add minimum residency constraint for bo eviction]

2012-11-30 Thread Thomas Hellstrom
On 11/30/2012 05:30 PM, Jerome Glisse wrote: On Fri, Nov 30, 2012 at 4:39 AM, Thomas Hellstrom wrote: On 11/29/2012 10:58 PM, Marek Olšák wrote: What I tried to point out was that the synchronization shouldn't be needed, because the CPU shouldn't do anything with the contents of evicted buffe

some drm cleanups to pull

2012-11-30 Thread Rob Clark
Hi Dave, I've rebased the patch series to remove usage of and drop the legacy connector-property functions and replace w/ object-property which can be pulled from: git://github.com/robclark/kernel-omap4.git connector-to-object-prop There was one additional connector->object rename needed in i9

  1   2   >