Skip to contentSkip to conversation

TTM pinning and LRU lists

DISCUSSION Thomas Hellström 2 participants 2 messages Aug 29, 2024

lore
Share & tools
lore
#0 lore raw

Hi, Christian,

I noticed that calling ttm_bo_pin() doesn't seem to move the resource to the pinned list, but keeping it on its manager's LRU.

Is it the driver's responsibility to call ttm_bo_move_to_lru_tail() to move it to the pinned list after pinning?

/Thomas

#1 lore raw

Hi Thomas,

that got removed at some point because it cause a problem, but I really can't remember what it was. Need to dig through the git logs and mailing list.

I wouldn't mind adding it back, IIRC removing it was one of those temporary workarounds which became a long term solution because of lack of time.

Regards,
Christian.

Am 29.08.24 um 12:30 schrieb Thomas Hellström:

Quoted 10 lines

Hi, Christian,

I noticed that calling ttm_bo_pin() doesn't seem to move the resource to the pinned list, but keeping it on its manager's LRU.

Is it the driver's responsibility to call ttm_bo_move_to_lru_tail() to move it to the pinned list after pinning?

/Thomas