Commit Graph

17 Commits

Author SHA1 Message Date
johnbasha shaik 1598c1b46f Gmmlib uAPI Implemenetation to accept full comprehensive memory layout description
for the import path for both dmabuf and userptr.

Change-Id: Ie8dbcc740f942511ed8e9441fd453acc84924f78
2020-10-27 04:36:12 -07:00
johnbasha shaik bda1dcff73 Add new generic API in Clientcontext for getting DeviceCB
and saving this in clientcontext for later use.

unlink getting same info from the existing API's
CreatePageatlbMgrObject. use the saved info
from the ClientContext.

Change-Id: I477db65c161701d002880ab04f874c2761f4d3e3
2019-09-16 16:00:27 +05:30
johnbasha shaik a09c68fd32 Add Pagetable manager and auxtable support.
Change-Id: I429b52a70c77fc304c65d28d42b18f99b01116d5
2019-09-14 08:02:31 +05:30
johnbasha shaik b136069616 Add TGL_LP support
Change-Id: I522eeb8ea285eb900890ecf454ee12ed30f867f2
2019-09-13 22:48:13 -07:00
kmvadsar e3f34698be Refactor the legacy TileY/Yf/Ys code under FtrTileY
Change-Id: I3b5c2d8367f79ab9b3f12ee6469fd4a204166bba
2018-10-10 23:21:46 -07:00
drprajap 5b61c8a6b1 Use DLL interfaces for ULT
Adding two Exported APIs in DLL - GmmInit and GmmDestroy.
GmmInit initializes singleton global context and ClientContext.
This avoid the need for clients to fill up function table.

Change-Id: I3bab29d2c10fd4d06cf78e1f33c9479d536477da
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-09-17 11:07:00 -07:00
shankarp 3bbe741763 Fix Exception issue for shared resources
Change-Id: I65b4f1b0ae29e736ba3669b097feff2ae5516303
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-09-10 14:04:06 -07:00
shankarp b20e484a5b Add new member functions in GmmClientContext
These are equivalent C-wrappers which shall be deprecated.

Change-Id: Ic856c60348aec2adcd85f730cb538adc04d23ec3
2018-06-26 17:22:58 -07:00
shankarp 247673f8e4 Add a new member function in GmmClientContext class to return GpuVaRangeLimit needed for OCL client.
Change-Id: I75d07d3b009d409fca9955b9ff264a922989e83e
2018-05-14 00:01:23 -07:00
shankarp b32d2124aa Add GetLogicalTileShape to ClientContext class
Add typedef for GMM DLL exported fucntion

Change-Id: I1de0fdb4234c0a5974a41a49ea938f4e943ab947
2018-03-15 15:05:08 -07:00
shankarp aaaf72ffd0 GmmLib only DLL integration
- Add GMM lib DLL project in Cmake file.
- All code changes needed to make GMM lib DLL are under GMM_LIB_DLL macro.
- Add ProcessSingleton elements in DLL context.
- Establish a link between DLL singleton Data and Process Singleton data in ProcessContext in KMD for ProcessSingleton elements. This is needed when GMM lib exists in both static and DLL mode.
- Overloaded Create and Destroy GMM objects member fucntions of ClientContext to take memory Allocators and Deallocators from Clients. This is needed for Clients like VK.

Change-Id: Iab4e596723a0fa0eede262bdb26436ba8a7d5cc1
2018-03-14 13:13:34 -07:00
drprajap 31bfdee666 cleanup stale code
Change-Id: I0eef6f76af8085b7ab7f33e40135c251cdfc28e7
2018-03-14 09:51:58 -08:00
shankarp 4155f0604e Enable unified gmmlib target
- These changes are for enabling unified GMM lib target. Unified GMM lib target will not have any clients specific build macros.
- Addition of GMM Old API Translation Layer for backward compatibilty for all GMM APIs across ALL UMD clients.
- Creation of Global Client Context handle only for backward compatible clients. This shall be replaced by client handle by clients moving to new API.
- Add new definitions for GMM Device Callbacks structure.
- Add new definitions for KMDaf related macros only for GMM to be used bu unified GMM lib.
- Makes ClientContext class member of Resinfo class
- GmmLib cmake change to add new igfxgmmumd unified static lib project

Change-Id: I913192e0879e565fb369c364fcba573a18b3fe13
2018-02-21 15:30:15 -08:00
drprajap f7b5da59be Revert "Add new target to unify gmmlib"
This reverts commit d6c3b56745.

Change-Id: I55a7c86f0d9a834f546e497324c6d2d7f464ba87
2018-02-07 23:36:09 -08:00
shankarp d6c3b56745 Add new target to unify gmmlib
- Makes ClientContext class member of Resinfo and PageTableMgr class
- Addition of OCL Translation Layer
- GmmLib cmake change to add new igfxgmmumd unified static lib project

Change-Id: If155bafad29086ab5309c24f1f8a1862f92eb654
2018-01-29 12:03:41 -08:00
drprjap 6f565367e8 Coding style changes
Change-Id: I02149f509488243dc6a756a503603543c315acc0
2018-01-25 16:32:29 -08:00
drprajap b1451bbe4c Add ClientContext class
Special MOCS handling

Remove client specific definitions for GMM_ASSERT and GMM_DEBUG macros

Change-Id: I8360f07277678a67a68c311061fde3400726a874
2018-01-11 13:55:42 -08:00