Re: Dirty page-tacking with TTM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Thomas,

yeah we had implemented something similar for the close source driver 
once as well.

Just feel free to go ahead with providing the VM ops by the driver.

Christian.

Am 11.10.2018 um 19:17 schrieb Thomas Hellstrom:
> Hi, Christian,
>
> I'm looking at adding a utility for tracking dirty pages for TTM. It's 
> usable for non-coherent drivers to emulate coherent memory, for 
> example for fbdev or if vmwgfx were to emulate coherent mappings, like 
> required by Vulkan or by user-space dma-buf mappings.
>
> Basically one would need to hook up the vm_ops page_mkwrite() and 
> pfn_mkwrite() into ttm_bo_vm.c. That can be done with small stubs in 
> ttm_bo_vm.c which call new functions in the ttm_bo driver. 
> Alternatively we could have the driver provide the TTM vm ops, with 
> the current as the default. I figure the rest can be done with helpers 
> that initially can be part of vmwgfx and moved to TTM should other 
> drivers be interested.
>
> Does this sound OK with you?
>
> /Thomas
>
>
>

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux