mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-04-29 02:31:44 +00:00
525.53
This commit is contained in:
@@ -109,8 +109,10 @@ NV_STATUS __nvoc_objCreate_RsShared(RsShared**, Dynamic*, NvU32);
|
||||
__nvoc_objCreate_RsShared((ppNewObj), staticCast((pParent), Dynamic), (createFlags))
|
||||
|
||||
NV_STATUS shrConstruct_IMPL(struct RsShared *arg_pShared);
|
||||
|
||||
#define __nvoc_shrConstruct(arg_pShared) shrConstruct_IMPL(arg_pShared)
|
||||
void shrDestruct_IMPL(struct RsShared *pShared);
|
||||
|
||||
#define __nvoc_shrDestruct(pShared) shrDestruct_IMPL(pShared)
|
||||
#undef PRIVATE_FIELD
|
||||
|
||||
@@ -184,10 +186,13 @@ static inline void sessionRemoveDependency_DISPATCH(struct RsSession *pSession,
|
||||
}
|
||||
|
||||
NV_STATUS sessionConstruct_IMPL(struct RsSession *arg_pSession);
|
||||
|
||||
#define __nvoc_sessionConstruct(arg_pSession) sessionConstruct_IMPL(arg_pSession)
|
||||
void sessionDestruct_IMPL(struct RsSession *pSession);
|
||||
|
||||
#define __nvoc_sessionDestruct(pSession) sessionDestruct_IMPL(pSession)
|
||||
NV_STATUS sessionAddDependant_IMPL(struct RsSession *pSession, RsResourceRef *pResourceRef);
|
||||
|
||||
#ifdef __nvoc_rs_server_h_disabled
|
||||
static inline NV_STATUS sessionAddDependant(struct RsSession *pSession, RsResourceRef *pResourceRef) {
|
||||
NV_ASSERT_FAILED_PRECOMP("RsSession was disabled!");
|
||||
@@ -198,6 +203,7 @@ static inline NV_STATUS sessionAddDependant(struct RsSession *pSession, RsResour
|
||||
#endif //__nvoc_rs_server_h_disabled
|
||||
|
||||
NV_STATUS sessionAddDependency_IMPL(struct RsSession *pSession, RsResourceRef *pResourceRef);
|
||||
|
||||
#ifdef __nvoc_rs_server_h_disabled
|
||||
static inline NV_STATUS sessionAddDependency(struct RsSession *pSession, RsResourceRef *pResourceRef) {
|
||||
NV_ASSERT_FAILED_PRECOMP("RsSession was disabled!");
|
||||
@@ -208,6 +214,7 @@ static inline NV_STATUS sessionAddDependency(struct RsSession *pSession, RsResou
|
||||
#endif //__nvoc_rs_server_h_disabled
|
||||
|
||||
NV_STATUS sessionCheckLocksForAdd_IMPL(struct RsSession *pSession, RsResourceRef *pResourceRef);
|
||||
|
||||
#ifdef __nvoc_rs_server_h_disabled
|
||||
static inline NV_STATUS sessionCheckLocksForAdd(struct RsSession *pSession, RsResourceRef *pResourceRef) {
|
||||
NV_ASSERT_FAILED_PRECOMP("RsSession was disabled!");
|
||||
@@ -218,6 +225,7 @@ static inline NV_STATUS sessionCheckLocksForAdd(struct RsSession *pSession, RsRe
|
||||
#endif //__nvoc_rs_server_h_disabled
|
||||
|
||||
void sessionCheckLocksForRemove_IMPL(struct RsSession *pSession, RsResourceRef *pResourceRef);
|
||||
|
||||
#ifdef __nvoc_rs_server_h_disabled
|
||||
static inline void sessionCheckLocksForRemove(struct RsSession *pSession, RsResourceRef *pResourceRef) {
|
||||
NV_ASSERT_FAILED_PRECOMP("RsSession was disabled!");
|
||||
@@ -284,6 +292,10 @@ struct RsServer
|
||||
/// If true, control call param copies will be performed outside the top/api lock
|
||||
NvBool bUnlockedParamCopy;
|
||||
|
||||
// If true, calls annotated with ROUTE_TO_PHYISCAL will not grab global gpu locks
|
||||
// (and the readonly API lock).
|
||||
NvBool bRouteToPhysicalLockBypass;
|
||||
|
||||
/**
|
||||
* Setting this flag to false disables any attempts to
|
||||
* automatically acquire access rights or to control access to resources by
|
||||
@@ -302,6 +314,7 @@ struct RsServer
|
||||
RsShareList globalInternalSharePolicyList;
|
||||
|
||||
NvU32 internalHandleBase;
|
||||
NvU32 clientHandleBase;
|
||||
|
||||
NvU32 activeClientCount;
|
||||
NvU64 activeResourceCount;
|
||||
@@ -469,6 +482,14 @@ RS_SHARE_ITERATOR serverShareIter(RsServer *pServer, NvU32 internalClassId);
|
||||
*/
|
||||
NvBool serverShareIterNext(RS_SHARE_ITERATOR*);
|
||||
|
||||
/**
|
||||
* Set fixed client handle base in case clients wants to use a different
|
||||
* base for client allocations
|
||||
* @param[in] pServer
|
||||
* @param[in] clientHandleBase
|
||||
*/
|
||||
NV_STATUS serverSetClientHandleBase(RsServer *pServer, NvU32 clientHandleBase);
|
||||
|
||||
|
||||
/**
|
||||
* Allocate a resource. Assumes top-level lock has been taken.
|
||||
|
||||
Reference in New Issue
Block a user