Skip to contentSkip to conversation

RFC: TTM extra bo space

DISCUSSION Pekka Paalanen 3 participants 3 messages Nov 5, 2009 – Nov 7, 2009 4 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1257350332.2829.8.camel@localhost

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 53E09666-8D2D-4DFD-AE06-DCDD963B6114-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org

#3 lore raw
Quoted 11 lines · On Wed, 4 Nov 2009 17:42:26 +0000 Jakob Bornecrantz…

Hi Jerome

Quoted 7 lines · Jerome Glisse

Note: For reference my issue is with cursor on old radeon hw, cursor must be in the next 128M from the crtc scanout buffer. We got issue when someone start to resize their screen at which point the scanout buffer can endup after the cursor in vram. Other solution would be to add multiple bo adjacent validation function to ttm (likely less ttm change).

Quoted 7 lines

Can you solve your problem by being able to place the buffer at certain location? We had the same need but managed to work around it with a quick and dirty hack.

Implementing that would mostly be about changing drm_mm.c to handle placing buffers at certain locations. And in TTM core being able to evict buffers that are in that place.

That sounds like something that could solve an issue in Nouveau with nv04 card family. The following is hearsay, but I try to describe it.

Of 32 MB of VRAM, the scanout buffer must reside within the first 16 MB. Any(?) other buffers do not have this limitation e.g. textures. Setting up separate memory spaces for these halves, say, TTM VRAM and TTM PRIV1, would be inconvenient, because buffers could not be laid accross the boundary.

Does this make sense?
Nouveau people, did I get this right?

Signature · 2 lines
Pekka Paalanen
http://www.iki.fi/pq/

A message that is not in the archive (sent off-list or not yet received): 20091105200436.47e28b79-cxYvVS3buNOdIgDiPM52R8c4bpwCjbIv@public.gmane.org

#5 lore raw
Quoted 26 lines · Pekka Paalanen
Quoted 11 lines · On Wed, 4 Nov 2009 17:42:26 +0000 Jakob Bornecrantz…

Hi Jerome

Quoted 7 lines · Jerome Glisse

Note: For reference my issue is with cursor on old radeon hw, cursor must be in the next 128M from the crtc scanout buffer. We got issue when someone start to resize their screen at which point the scanout buffer can endup after the cursor in vram. Other solution would be to add multiple bo adjacent validation function to ttm (likely less ttm change).

Quoted 7 lines

Can you solve your problem by being able to place the buffer at certain location? We had the same need but managed to work around it with a quick and dirty hack.

Implementing that would mostly be about changing drm_mm.c to handle placing buffers at certain locations. And in TTM core being able to evict buffers that are in that place.

That sounds like something that could solve an issue in Nouveau with nv04 card family. The following is hearsay, but I try to describe it.

Quoted 9 lines

Of 32 MB of VRAM, the scanout buffer must reside within the first 16 MB. Any(?) other buffers do not have this limitation e.g. textures. Setting up separate memory spaces for these halves, say, TTM VRAM and TTM PRIV1, would be inconvenient, because buffers could not be laid accross the boundary.

Does this make sense?
Nouveau people, did I get this right?

Here is the API i was thinking of:

ttm_bo_validate_in_range(usualvalidateparameter,
unsigned long minoffset, unsigned long maxoffset)

This function will try to validate the buffer at an offset btw min & max. Will either fail of succeed and could return -EINVAL if max-min < bo->size.

I think it's flexible enough and should full feel nouveau, radeon & poulsbo needs.

Cheers,
Jerome

I am bit busy with bugs right now but i will look into doing the actual code soon (one my bug need this).

#6 lore raw
Quoted 35 lines · Jerome Glisse
Quoted 33 lines · Pekka Paalanen
Quoted 11 lines · On Wed, 4 Nov 2009 17:42:26 +0000 Jakob Bornecrantz…

Hi Jerome

Quoted 7 lines · Jerome Glisse

Note: For reference my issue is with cursor on old radeon hw, cursor must be in the next 128M from the crtc scanout buffer. We got issue when someone start to resize their screen at which point the scanout buffer can endup after the cursor in vram. Other solution would be to add multiple bo adjacent validation function to ttm (likely less ttm change).

Quoted 8 lines

Can you solve your problem by being able to place the buffer at certain location? We had the same need but managed to work around it with a quick and dirty hack.

Implementing that would mostly be about changing drm_mm.c to handle placing buffers at certain locations. And in TTM core being able to evict buffers that are in that place.

That sounds like something that could solve an issue in Nouveau with nv04 card family. The following is hearsay, but I try to describe it.

Of 32 MB of VRAM, the scanout buffer must reside within the first 16 MB. Any(?) other buffers do not have this limitation e.g. textures. Setting up separate memory spaces for these halves, say, TTM VRAM and TTM PRIV1, would be inconvenient, because buffers could not be laid accross the boundary.

Quoted 4 lines
Quoted 4 lines

Does this make sense?
Nouveau people, did I get this right?

Sorry for the late response to this. I'm mostly changing diapers nowadays...

I think this would be excellent. There is a priv member of an mm block that can be a bo reference if needed.

I think the semantics should be such that the call would fail with -EBUSY if it can not succeed due to pinned buffers in the way, and otherwise sleep until it succeeds.

/Thomas

Quoted 15 lines

I am bit busy with bugs right now but i will look into doing the actual code soon (one my bug need this).

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
--
_______________________________________________
Dri-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel