1 /*
2 * Copyright (c) 2022, Intel Corporation
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included
12 * in all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
21 */
22 //!
23 //! \file mos_user_setting_specific.cpp
24 //! \brief This file defines the user settings keys for all components
25 //! \details Common OS debug across different platform
26 //!
27
28 #include "mos_user_setting.h"
29
InitMosUserSettingSpecific(MediaUserSettingSharedPtr userSettingPtr)30 MOS_STATUS MosUserSetting::InitMosUserSettingSpecific(MediaUserSettingSharedPtr userSettingPtr)
31 {
32 DeclareUserSettingKey(
33 userSettingPtr,
34 __MEDIA_USER_FEATURE_VALUE_ENABLE_SOFTPIN,
35 MediaUserSetting::Group::Device,
36 1,
37 true); //"Switch between softpin and relocation."
38
39 #if (_DEBUG || _RELEASE_INTERNAL)
40 DeclareUserSettingKeyForDebug(
41 userSettingPtr,
42 __MEDIA_USER_FEATURE_VALUE_DISABLE_KMD_WATCHDOG,
43 MediaUserSetting::Group::Device,
44 0,
45 true); //"Disable KMD Watchdog"
46 #endif
47
48 DeclareUserSettingKey(
49 userSettingPtr,
50 __MEDIA_USER_FEATURE_VALUE_ENABLE_VM_BIND,
51 MediaUserSetting::Group::Device,
52 0,
53 true); //"Enable VM Bind."
54
55 DeclareUserSettingKey(
56 userSettingPtr,
57 "INTEL MEDIA ALLOC MODE",
58 MediaUserSetting::Group::Device,
59 0,
60 false); //
61
62 #if (_DEBUG || _RELEASE_INTERNAL)
63 DeclareUserSettingKeyForDebug(
64 userSettingPtr,
65 __MEDIA_USER_FEATURE_VALUE_ENABLE_MEDIA_CCS,
66 MediaUserSetting::Group::Device,
67 1,
68 false); //
69 #endif
70
71 return MOS_STATUS_SUCCESS;
72 }
73