Attachment 'gpu-klmirqd-liblitmus-rt-ecrts12.patch'

Download

   1 From 46e1995ef071f61cd1e21e61857c7ce66cac2022 Mon Sep 17 00:00:00 2001
   2 From: Glenn Elliott <gelliott@cs.unc.edu>
   3 Date: Thu, 2 Jun 2011 16:12:13 -0400
   4 Subject: [PATCH] LibLitmus2010 changes to support klitirqd and Nvidia GPUs.  Changes mostly related to k-FMLP.
   5 
   6 ---
   7  include/litmus.h |   12 +++++++++++-
   8  src/syscalls.c   |   10 ++++++++++
   9  2 files changed, 21 insertions(+), 1 deletions(-)
  10 
  11 diff --git a/include/litmus.h b/include/litmus.h
  12 index 52435d8..035d1c3 100644
  13 --- a/include/litmus.h
  14 +++ b/include/litmus.h
  15 @@ -49,7 +49,8 @@ int sporadic_task_ns(
  16  /* file descriptor attached shared objects support */
  17  typedef enum  {
  18  	FMLP_SEM	= 0,
  19 -	SRP_SEM		= 1,
  20 +	KFMLP_SEM	= 1,
  21 +	SRP_SEM		= 2,
  22  } obj_type_t;
  23  
  24  int od_openx(int fd, obj_type_t type, int obj_id, void* config);
  25 @@ -64,6 +65,10 @@ static inline int od_open(int fd, obj_type_t type, int obj_id)
  26  int litmus_lock(int od);
  27  int litmus_unlock(int od);
  28  
  29 +/* nvidia graphics cards */
  30 +int register_nv_device(int nv_device_id);
  31 +int unregister_nv_device(int nv_device_id);
  32 +
  33  /* job control*/
  34  int get_job_no(unsigned int* job_no);
  35  int wait_for_job_release(unsigned int job_no);
  36 @@ -120,6 +125,11 @@ static inline int open_fmlp_sem(int fd, int name)
  37  	return od_open(fd, FMLP_SEM, name);
  38  }
  39  
  40 +static inline int open_kfmlp_sem(int fd, int name, void* arg)
  41 +{
  42 +	return od_openx(fd, KFMLP_SEM, name, arg);
  43 +}
  44 +
  45  static inline int open_srp_sem(int fd, int name)
  46  {
  47  	return od_open(fd, SRP_SEM, name);
  48 diff --git a/src/syscalls.c b/src/syscalls.c
  49 index d800141..b0fee23 100644
  50 --- a/src/syscalls.c
  51 +++ b/src/syscalls.c
  52 @@ -88,3 +88,13 @@ int null_call(cycles_t *timestamp)
  53  {
  54  	return syscall(__NR_null_call, timestamp);
  55  }
  56 +
  57 +int register_nv_device(int nv_device_id)
  58 +{
  59 +	return syscall(__NR_register_nv_device, nv_device_id, 1);
  60 +}
  61 +
  62 +int unregister_nv_device(int nv_device_id)
  63 +{
  64 +	return syscall(__NR_register_nv_device, nv_device_id, 0);
  65 +}
  66 -- 
  67 1.7.0.4

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2015-06-04 21:22:59, 244.8 KB) [[attachment:MC2-liblitmus-imx6-rtss15.patch]]
  • [get | view] (2016-05-12 14:35:37, 51.9 KB) [[attachment:MC2-liblitmus-rtss16.patch]]
  • [get | view] (2016-05-12 14:36:06, 190.4 KB) [[attachment:MC2-litmus-rt-rtss16.patch]]
  • [get | view] (2015-07-19 10:27:52, 1119.9 KB) [[attachment:MC2-litmut-rt-imx6-rtss15.patch]]
  • [get | view] (2014-05-27 20:46:19, 58.3 KB) [[attachment:MC2_liblitmus_ipdps15.patch]]
  • [get | view] (2014-05-27 20:45:43, 1044.3 KB) [[attachment:MC2_litmusrt_ipdps15.patch]]
  • [get | view] (2017-04-07 21:48:09, 6099.5 KB) [[attachment:buff_sharing.tar]]
  • [get | view] (2015-01-08 14:20:07, 61.0 KB) [[attachment:feather-trace-patch-against-sched-deadline-v8.patch]]
  • [get | view] (2014-04-01 23:10:10, 38.9 KB) [[attachment:gedf-mp-rtas14.patch]]
  • [get | view] (2012-03-02 20:13:59, 1.9 KB) [[attachment:gpu-klmirqd-liblitmus-rt-ecrts12.patch]]
  • [get | view] (2012-03-02 20:14:25, 389.8 KB) [[attachment:gpu-klmirqd-litmus-rt-ecrts12.patch]]
  • [get | view] (2012-05-26 21:41:34, 418.0 KB) [[attachment:gpusync-rtss12.patch]]
  • [get | view] (2012-05-26 21:42:20, 8.6 KB) [[attachment:gpusync_liblitmus-rtss12.patch]]
  • [get | view] (2013-05-21 15:32:08, 208.6 KB) [[attachment:gpusync_rtss13_liblitmus.patch]]
  • [get | view] (2013-05-21 15:31:32, 779.5 KB) [[attachment:gpusync_rtss13_litmus.patch]]
  • [get | view] (2012-05-26 21:42:41, 71.4 KB) [[attachment:klt_tracker_v1.0.litmus.tgz]]
  • [get | view] (2016-10-13 21:14:05, 19.6 KB) [[attachment:liblitmus-rtas17.patch]]
  • [get | view] (2017-05-01 20:46:22, 90.0 KB) [[attachment:liblitmus-rtns17.patch]]
  • [get | view] (2018-12-11 01:38:53, 49.1 KB) [[attachment:liblitmus-semi-part-with-edfos.patch]]
  • [get | view] (2017-10-09 19:16:09, 304.0 KB) [[attachment:litmus-rt-os-isolation.patch]]
  • [get | view] (2016-10-13 21:13:27, 207.6 KB) [[attachment:litmus-rt-rtas17.patch]]
  • [get | view] (2017-05-01 20:46:40, 207.6 KB) [[attachment:litmus-rt-rtns17.patch]]
  • [get | view] (2018-12-11 01:39:04, 100.5 KB) [[attachment:litmus-rt-semi-part-with-edfos.patch]]
  • [get | view] (2018-06-26 04:31:48, 7.0 KB) [[attachment:mc2_liblitmus_2015.1-rtns18.patch]]
  • [get | view] (2018-06-26 04:31:33, 292.7 KB) [[attachment:mc2_litmus-rt_2015.1-rtns18.patch]]
  • [get | view] (2017-05-01 20:45:10, 2596.9 KB) [[attachment:mcp_study.zip]]
  • [get | view] (2013-07-13 14:11:53, 58.0 KB) [[attachment:omip-ecrts13.patch]]
  • [get | view] (2014-02-19 21:48:33, 17.2 KB) [[attachment:pgmrt-liblitmus-ecrts14.patch]]
  • [get | view] (2014-02-19 21:47:57, 87.8 KB) [[attachment:pgmrt-litmusrt-ecrts14.patch]]
  • [get | view] (2015-01-08 14:22:32, 61.0 KB) [[attachment:sched-deadline-v8-feather-trace-rtas14.patch]]
  • [get | view] (2018-06-26 04:32:13, 2545.1 KB) [[attachment:sched_study_rtns2018.tar.gz]]
  • [get | view] (2017-04-07 21:53:39, 5969.5 KB) [[attachment:seminal.tar]]
  • [get | view] (2017-04-07 21:51:13, 6064.0 KB) [[attachment:shared_libraries.tar]]
  • [get | view] (2013-07-13 13:58:25, 42.7 KB) [[attachment:tracing-and-dflp-rtas13.patch]]
 All files | Selected Files: delete move to page

You are not allowed to attach a file to this page.