Skip to content

Commit 91b0fd2

Browse files
authored
adding comment for oc_maint (#62)
Signed-off-by: acastellane <alexandre.castellane@fr.ibm.com>
1 parent 6df263d commit 91b0fd2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

software/tools/oc_maint.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,14 @@ static void* snap_open (struct mdev_ctx* mctx)
113113
VERBOSE3 ("[%s] Exit %p\n", __func__, handle);
114114

115115
if (NULL == handle)
116-
VERBOSE0 ("Error: Can not open CAPI-SNAP Device: %s\n",
116+
{
117+
VERBOSE0 ("Error: Can not open CAPI-SNAP Device: %s\n",
117118
device);
119+
VERBOSE0(" => You might try sudo or adjust Root rights\n");
120+
VERBOSE0(" to set rights, you may permanently \n");
121+
VERBOSE0 (" create a /etc/udev/rules.d/20-ocaccel.rules file including:\n");
122+
VERBOSE0 (" SUBSYSTEM==\"ocxl\", DEVPATH==\"*/ocxl/IBM,oc-snap*\", MODE=\"666\", RUN=\"/bin/chmod 666 %%S/%\%p/global_mmio_area\" and reboot \n");
123+
}
118124

119125
return handle;
120126
}

0 commit comments

Comments
 (0)