Commit Graph

319 Commits

Author SHA1 Message Date
johnbasha shaik 77699a1c8c Disable ULT for 32bit
Change-Id: I6f6f800311146bf334f970461cdc7cc0801d4c7c
2019-10-15 07:02:10 -07:00
johnbasha shaik 5c9a0c4233 Adding JSL Device IDs
Change-Id: Ib9b1de09bcf912df5824f30636fad2bfbdbb6c55
2019-10-11 11:10:02 -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
johnbasha shaik 19ab520741 Fix static MOCS table for Gen9 Atom platforms
Description: Static MOCS table for Gen9 Atom platforms had a bug where
it was setting LRUM/Age to 0 for MOCS index 2. This patch fixes this
issue.

Change-Id: I6acc9236b2ee65cded23402b2d322c72661051ee
2019-09-04 15:17:28 +05:30
johnbasha shaik 2d58b09a0a Fix FtrLLCByPass usage in cache policies for Displayable resource
Description: When FtrLLCByPass is on, GMM should appropriately set SCF as per Ftr
support for that platform. Fixing GMM MOCS table for #16/17 when Ftr is set -

Change-Id: I3edaf50263214eae8c4cb1e22870e3083ae5ff20
2019-08-29 22:54:51 -07:00
johnbasha shaik 3cef9080d4 Relaxing GMM restrictions to support VP9-VDEnc for higher resolutions for video buffers.
Adding ICL Device ID

Change-Id: I73a8c4ee851efac9c63b2ad309b8453393d505f8
2019-08-29 12:41:36 +05:30
drprajap e834bcd677 correct EHL product naming
Change-Id: I70a77401594f7697f291c7d481be848d95412779
2019-06-25 16:58:46 -07:00
drprajap 34e5067027 Add/update EHL device id and product family info
Change-Id: I7afef427e590118ed421a8738e8c9e7cb1536308
2019-06-25 13:56:23 -07:00
drprajap a235edeaf5 Adding EHL Device IDs
Change-Id: I78218f367a55842920d160151a521c7fa58077f4
2019-06-19 15:35:42 -07:00
drprajap 5384ab037e [GMM] Add cache policy for fix function encode and VP
[VP] Update cache policy for VPP to seprate it for FF/RCS

add cache policy for downscaled surface for fix function
encoder to seperate it from render engine cache config

Change-Id: Ieea67cbaa2001562cbbf77d30def5e5da311468a
2019-06-19 13:26:49 -07:00
johnbash 5a931e80d9 Fix for App crash in GmmLib Dll
Description:pGmmGlobalContext is null in the dump.
pGmmGlobalContext is getting destroyed before the completion
of the GmmCreateSingletonContext due to some race condition between the threads.
so here adding locking machanisim to avoide deleting the
pGmmGlobalContext before the GmmCreateSingletonContext function completion.

Change-Id: Idd6cf645bc7cbf2d033955dc88650b6233689dd4
2019-05-24 14:09:34 -07:00
Rengarajan, Janarthanan 2818bfb6f4 Add Cachebility for Two Encode Buffers
Change-Id: Id3c27503259f8fd2a242fca2bd01417426d5c91b
2019-05-23 14:45:29 -07:00
drprajap 03202a0208 Revert "Disable L3 caching for media resources"
I915 kernel patch is ready in drm-intel-internal,
media validation does not require this patch anymore

This reverts commit 50707fb182.

Change-Id: I17b75782a9964574ba609303a15922bbfce51c8d
2019-05-21 13:03:16 -07:00
Artur Harasimiuk 8feb8385a3 Fix GMMLIB_API_PATCH_VERSION setting when not defined as external
Fixes variable value dereference in cmake. Previously
PATCH_VERSION was used literally instead of variable value.

Change-Id: Ied1b2b86c94192c5493d89c8102ff765da2fae52
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2019-05-10 09:49:45 -07:00
Artur Harasimiuk dbfd6eef06 fix syntax for RPM package requirements
https://github.com/intel/gmmlib/issues/40

Change-Id: I622043b52aa52f706261aac0c6c03f938f573018
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2019-05-10 09:49:24 -07:00
Artur Harasimiuk 74b87a1759 cpack: adding postinst and postrm
Adding scripts to invoke ldconfig

Change-Id: Ifdd59304fa0342967477e608bdf5e2ca42eed844
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2019-05-09 14:09:38 -07:00
drprajap 0e5e49651e Adding ICL Device ID
Change-Id: I6d998b3c518f832ac2956f49435586e9745899b0
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2019-04-26 11:17:28 -07:00
johnbasha shaik 04a402ff9b Relaxing GMM restrictions to support VP9-VDEnc for higher resolutions.
Change-Id: I41abeea48bab6e58e332e3fcd5478464b8f63ac7
2019-04-16 18:18:39 +05:30
johnbasha shaik 50707fb182 Disable L3 caching for media resources
Change-Id: Ic75bbc7174a8320205784392d321b594c3cfea73
2019-04-10 23:41:17 -07:00
Artur Harasimiuk afd1548825 added new cmake parameter GMMLIB_API_PATCH_VERSION
adding this to allow creation of package with version independent from
API version used in shared library name.

Change-Id: I161755eb7e7680d02d018bc6531be96a1d97153b
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2019-04-05 16:22:13 -07:00
johnbasha shaik 8294f6851c Adding Comet lake PCH and DeviceId's
Change-Id: Id57a88b464a374cdeea465053ecb837bb37c3757
2019-03-27 21:31:26 -07:00
drprjap e65dff3842 Gen11 Fixed MOCS table
Change-Id: I8a357fcb00e3aa1414c7cfa7d6e2961d583fdec8
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2019-03-22 15:40:04 -07:00
johnbash ac68e2cebf Renaming Gmm flag for ApertureOnly
GMM_RESOURCE_FLAG::Info.ApertureOnly to GMM_RESOURCE_FLAG::Info.NonLocalOnly
Clients should use NonLocalOnly flag, ApertureOnly will be removed once
all clients switch to using new flag

Change-Id: I387a44dae87b111bb6aea8af3638909e8d6b92d3
2019-02-25 11:32:05 -08:00
drprjap 8bee050d28 Adding Lakefield support
Refactoring internal classes

Change-Id: Ifd38919c99e6414b0b63fb8c26ccb84c32e062de
Signed-off-by: drprjap <dimpalben.r.prajapati@intel.com>
2019-02-14 10:58:49 -08:00
johnbasha shaik 19fa8823c3 Correcting Valign and Halign value
Description:
Open source using different Valign values then closed source.
As per specifications valign value should not be zero.

Increment DLL version.
Change-Id: I966d4c81b737e622a0a7d56dc051084626648f32
2019-02-14 18:16:30 +05:30
johnbash bcac3f3833 Refactoring GMM internal Classes
Description: Refactoring GmmResourceInfo, PlatformInfo and TextureCalc
Classes.

Change-Id: Ic86a3c982737d2774ea481d1cb7977daceb21d3a
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2019-01-29 14:32:40 -08:00
Simon 001d32de21 [CM] CM cache policy entry for state heap
Change-Id: Ie7f588783ecc610a27f2ff139f344a6b6afccd2c
2019-01-23 11:04:11 -08:00
drprajap bd89465249 Remove static lib targets and switch ULT to use DLL
Change-Id: I395e0bc356ef917aeb3fe9230f11817a9564ffc4
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2019-01-15 15:18:39 -08:00
Prashanth Shankar 80dc72630f Title: [GMM DLL] Fix for Memory Leak in GMM Lib DLL
Risk: Low

Feature Impact: GMM LIB DLL

Description: This changes are for fixing the memory leak casued for not
freeing GMM ProcessSingletonCOntext.

Platforms:All

Change-Id: Ia315db53be5378c04c83fa005f02958fa8a047ea
2019-01-15 14:58:49 -08:00
johnbash 9e4aa143fb Linking pthread Library to GmmLib Dll
Change-Id: I81c09afb02a1869e0567393d99da5371c8c5d8cf
2019-01-15 13:37:03 -08:00
johnbasha shaik 413896ed8e Fix perftag mismatch issue
Add VPHAL_VEBOX_RESERVED1 to avoide the mismatch of perftag in open source

Change-Id: I1ab1007d867d2bf44e5e6743d68317cf6577ccb3
2018-12-06 18:19:44 +05:30
drprajap 10ad15adc3 Add memory config feature flag
Increment DLL version

Change-Id: I0c923b8d5f43ef39eb70630ed1920eb4d1d2cbdb
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-11-20 10:04:16 -08:00
drprajap fffd5a579e Add Gmm interface for memory config
Increment Dll Version

Change-Id: Ica11a2c7703eb1edf02eaf7cd758fda310f9bd17
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-11-19 23:09:11 -08:00
Artur Harasimiuk 5cd8dca50b cpack: Fix dependency setup for .rpm packages
we should use "intel-gmmlib(=<version>)" without space before (

Change-Id: Ie62e5df7b44e995d280c0fb132cd0ae7b1b3a680
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-10-31 17:51:22 +01:00
Artur Harasimiuk aedd82e2da cpack: fix dependency management for rpm
For rpm packages we should use <...>_REQUIRES instread of
<...>_DEPENDS.

Change-Id: I80f0caa069fbe4a7e2945dda619b4586a79df086
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-10-24 19:33:40 +02:00
drprajap 3e602a84dc Adding GMM interface for unified cp surface tracking
Bump up Major Version as new interface is added

Change-Id: I49081391db15652d37a1c055510407b830d0777c
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-10-18 10:01:57 -07:00
Artur Harasimiuk 6b14fa192e refactor package names to better match distro specific convention
Change-Id: I749c1871b25cfa63f058b0a1d77ec3ace7e94239
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-10-17 08:28:27 +02:00
Artur Harasimiuk d48db12155 separate GmmLib API version from package version
Change-Id: I645f9a631285d3e05de7b4f3aa2ab9a3d5d1a3ef
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-10-16 17:28:06 -07:00
kmvadsar 15ae0f7c59 Initialize variable and remove condition for Ftr check
Change-Id: Ie166aea0b96610518e27a4178174c2564b94e21c
2018-10-15 10:44:22 -07:00
drprajap 24c030f30b Remove spdlog from public interface
Fixes: #35

spdlog is needed internally for loggin and debug purpose,
no need to export it as part of public interface

Change-Id: Ide214e6a8da6661274d495432caf98d58b87ac5c
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-10-11 16:27:20 -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 456b7c0354 Install package with versioned library artifacts
- intel-gmmlib package contains .so.MAJOR_VERSION and so.MAJOR_MINOR_PATCH files.
- intel-gmmlib-devel contains .so file
- Change GMM_UMD_DLL to reflect MAJOR_VERSION in DLL naming.

Change-Id: I4c199e963e9b4e8f9f376e31225c6b46f94d6faf
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-10-10 14:53:30 -07:00
kmvadsar 859ed24441 Add gmm flag Gpu.ColorDiscard for tile pass color discard
Change-Id: I76682181a1f44e19da8dd3cb83076e8359f074c1
2018-10-02 23:25:14 -07:00
Dmitry Rogozhkin e52096b67a Build dynamic library with a linux-qualified name
Fixes: #28

By convention on Linux if library is going to be linked against it should have:
 * real name, which is usually libigdgmm.so.x.y.z, x.y.z is a library version
 * soname which is libigdgmm.so.x, usually that's a symbolic link to real name
 * linker name which is libigdgmm.so, usually that's a symbolic link to soname
Building library without the above convention is applicable only if library is
supposed to be dlopen(), i.e. for drivers and similar things.

Since gmmlib will be linked against rahter than dlopen-ed it should qualify to
the above Linux convention. This fix makes exactly that. CMake will automatically
create required symbolc links (soname and linker name).

This commit also bumps up the version of gmmlib.

Change-Id: I55f4bc30ba4e556a5cf6ac61609aa70939a9bdfc
Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
2018-09-28 11:59:39 -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
kmvadsar 96c72ed94c Add Legacy TileY feature flag
Change-Id: I1a9cbc1e2dd37ce661bf7f27102e8065812df890
2018-09-14 16:26:04 -07:00
dvrogozh a08160a9e6 Do not wipe out compiler flags given by user
PR #33
Fixes: #31

Change-Id: I3224dc9e625a0eeaf8c957059a2ac747045564a0
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-09-13 16:06:59 -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