File tree Expand file tree Collapse file tree 3 files changed +136
-137
lines changed Expand file tree Collapse file tree 3 files changed +136
-137
lines changed Original file line number Diff line number Diff line change 1
1
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
2
2
/*
3
3
* Copyright (c) 2021 Google, Inc. All rights reserved.
4
+ * Copyright (c) 2022 Computer Architecture and VLSI Systems (CARV)
5
+ * Laboratory, ICS Forth. All rights reserved.
4
6
* $COPYRIGHT$
5
7
*
6
8
* Additional copyrights may follow
@@ -76,10 +78,7 @@ static int mca_smsc_xpmem_component_open(void)
76
78
77
79
static int mca_smsc_xpmem_component_close (void )
78
80
{
79
- if (mca_smsc_xpmem_module .vma_module ) {
80
- OBJ_RELEASE (mca_smsc_xpmem_module .vma_module );
81
- }
82
-
81
+ /* nothing to do */
83
82
return OPAL_SUCCESS ;
84
83
}
85
84
@@ -161,7 +160,5 @@ static mca_smsc_module_t *mca_smsc_xpmem_component_enable(void)
161
160
mca_smsc_xpmem_component .log_attach_align
162
161
= opal_min (opal_max (mca_smsc_xpmem_component .log_attach_align , 12 ), 25 );
163
162
164
- mca_smsc_xpmem_module .vma_module = mca_rcache_base_vma_module_alloc ();
165
-
166
163
return & mca_smsc_xpmem_module .super ;
167
164
}
Original file line number Diff line number Diff line change 1
1
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
2
2
/*
3
3
* Copyright (c) 2021 Google, Inc. All rights reserved.
4
+ * Copyright (c) 2022 Computer Architecture and VLSI Systems (CARV)
5
+ * Laboratory, ICS Forth. All rights reserved.
4
6
* $COPYRIGHT$
5
7
*
6
8
* Additional copyrights may follow
@@ -42,6 +44,8 @@ struct mca_smsc_xpmem_endpoint_t {
42
44
xpmem_apid_t apid ;
43
45
/** maximum address we can attach to on this peer */
44
46
uintptr_t address_max ;
47
+ /** cache of xpmem attachments created using this endpoint */
48
+ mca_rcache_base_vma_module_t * vma_module ;
45
49
};
46
50
47
51
typedef struct mca_smsc_xpmem_endpoint_t mca_smsc_xpmem_endpoint_t ;
@@ -67,10 +71,6 @@ typedef struct mca_smsc_xpmem_component_t mca_smsc_xpmem_component_t;
67
71
68
72
struct mca_smsc_xpmem_module_t {
69
73
mca_smsc_module_t super ;
70
-
71
- /** cache of xpmem attachments. this cache holds attachments for all peers. the registrations
72
- * are differentiated by the alloc_base which is set to the endpoint. */
73
- mca_rcache_base_vma_module_t * vma_module ;
74
74
};
75
75
76
76
typedef struct mca_smsc_xpmem_module_t mca_smsc_xpmem_module_t ;
You can’t perform that action at this time.
0 commit comments