* VME on PC under Linux
@ 1997-05-28 4:00 Natalia Kruszynska-Straszewicz
0 siblings, 0 replies; 2+ messages in thread
From: Natalia Kruszynska-Straszewicz @ 1997-05-28 4:00 UTC (permalink / raw)
-----BEGIN PGP SIGNED MESSAGE-----
FOR IMMEDIATE RELEASE
VME bus driver VMEHB for Linux on PC's announced
Natalia Kruszynska from NIKHEF Holland ( Institute of Nuclear
and High Enenrgy Physics) announces the VME bus available on
Linux PC's equipped with the Model 617 PCI/VME adaptor produced
by Bit3 Computer Corporation (TM).
For this device the Linux driver vmehb is written, tested and
distributed to the benefit of Linux community under GNU access.
The driver was demonstrated on the BOF session "Non-system busses
on PC under Linux" on the last Linux Congress 22-23 May 97 in
Wurzburg, Germany.
In the design I was trying to follow the lines estabilished by SUN
in the times when VME was used as a system bus (Sun3), by creating
6 base VME spaces towards which the user can mmap and not worry about
the AM or swap features or another details. These detais are to be
estabilished once by the super user VME guru and not changed often.
This practice have been benficial for the use of VME slow control
in our Institute. In practice we do not use read/write access at all.
The base access via 6 nodes in estabilished swap/am was extended
to cover the possibilities of the device ( see vmehb_conf.h ).
The device offers DMA feature, working ~10 times quicker than the
mmapped access. This access is implemented with lseek read/write
feature. Lseek estabilishes the current offset ( start address) over
the node. Read/write accesses the VME space from this offset , doing
the choice between memory mapped (short) and DMA ( longer) access.
Alas, during the DMA no other activity is allowed along the adaptor
cable. It means that the mmap users have to be isolated from
the access of the adaptor cable during DMA. If that is done, the
mmap users read the last value and write nothing during their
discoupling. Moreover mapping back makes the performance of the
driver slower. Thus the compromis tools are made and left in the
hands of the super user. He can choose , whether the driver is
to be used for the slow controls, designing the use on base of mmap
system call or for the data acquisition. In the second case mmap is
not allowed. The super user can decide whether to unmap the slow
control window ( the unmapped job will read the last, write to no
effect ) or to kill all the active jobs which have already mapped to
the nodes. Extra check mode can be set by the super user , whenever
the VME addressing errors occur. Otherwise the rough position of the
VME error is reported .
>From the file_operations the following are included. Open and release
give node access to the user.Lseek was used to cover 32 bits VME
addressing (not needed in 2.1.x). Read/write use the DMA above the
configured minimal DMA length of node and does it's own mapping for
the short access. Mmap is allowed in slow control mode, as the most
useful tool for this purpose. The ioctl repertoire covers the tools
for the super user to estabilish the driver's mode, to resolve problem
with mmap /DMA conflict to switch the crate on/off, the tools for the
user to check in which mode the driver works what parameters are
set on his node and whether the crate os on or off.
The driver is serialized for the node access with the use of MUTEX
semaphore. Thus it is not recommended to use it for massive
multi-use under the systems lower than 2.0.27.
The distribution is in the file vmehb-1.0.tgz and contains all the
sources, Makefile ,README.vmehb installation manual and vmehb.8
unix/linux style manual and base test program.It also contains nice
VME hanoi towers, which you should fix to the VME devices you
can supply for tests.
- - --- xxx ---
All copyrights belong to the author on the base use but not sell.
Copyright (C) May 1997 Natalia Kruszynska <natalia@nikhef.nl>
The sources can be anonymously ftp'ed from the original site and from
sunsite.unc.edu :
nikhefh.nikhef.nl: /pub/projects/vmehb
sunsite.unc.edu: /pub/Linux/kernel/misc-cards
Contact: Natalia Kruszynska-Straszewicz
Computer Technologies
NIKHEF Amsterdam, Holland ( The Netherlands)
European Community
Tel: (31)(20) 592 5106 Fax: (31)(20) 592 5155
E-mail: natalia@nikhef.nl
Web: http://www.nikhef.nl/pub/departments/ct/po ( in preparation )
http://www.bit3.com/vmebusad.html ( hardware details )
_____________________________________________________________________________
- --
This article has been digitally signed by the moderator, using PGP.
http://www.iki.fi/liw/lars-public-key.asc has PGP key for validating signature.
Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov
PLEASE remember a short description of the software and the LOCATION.
This group is archived at http://www.iki.fi/liw/linux/cola.html
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
iQCVAwUBM4vNJoQRll5MupLRAQEp4QP9Gr8WK3kpQcO1gWJ9hTXTOWCeW+Zh8GGE
RtfDtZ0EZAP5Rh2Ov3szxn8iJ3Wm/lS19fJ64id7FhZCl3s5WzIt/8fLCK8rrr7t
Eh9pRjo6BA5/SNm+PfYH7TolKPm0h5LG/aOeEV6cpaLH5Fayxyl/SdfTNuVcaxT2
gSOJjkkbd9U=
=qzfE
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
* VME on PC under Linux
@ 1997-05-28 4:00 Natalia Kruszynska-Straszewicz
0 siblings, 0 replies; 2+ messages in thread
From: Natalia Kruszynska-Straszewicz @ 1997-05-28 4:00 UTC (permalink / raw)
-----BEGIN PGP SIGNED MESSAGE-----
FOR IMMEDIATE RELEASE
VME bus driver VMEHB for Linux on PC's announced
Natalia Kruszynska from NIKHEF Holland ( Institute of Nuclear
and High Enenrgy Physics) announces the VME bus available on
Linux PC's equipped with the Model 617 PCI/VME adaptor produced
by Bit3 Computer Corporation (TM).
For this device the Linux driver vmehb is written, tested and
distributed to the benefit of Linux community under GNU access.
The driver was demonstrated on the BOF session "Non-system busses
on PC under Linux" on the last Linux Congress 22-23 May 97 in
Wurzburg, Germany.
In the design I was trying to follow the lines estabilished by SUN
in the times when VME was used as a system bus (Sun3), by creating
6 base VME spaces towards which the user can mmap and not worry about
the AM or swap features or another details. These detais are to be
estabilished once by the super user VME guru and not changed often.
This practice have been benficial for the use of VME slow control
in our Institute. In practice we do not use read/write access at all.
The base access via 6 nodes in estabilished swap/am was extended
to cover the possibilities of the device ( see vmehb_conf.h ).
The device offers DMA feature, working ~10 times quicker than the
mmapped access. This access is implemented with lseek read/write
feature. Lseek estabilishes the current offset ( start address) over
the node. Read/write accesses the VME space from this offset , doing
the choice between memory mapped (short) and DMA ( longer) access.
Alas, during the DMA no other activity is allowed along the adaptor
cable. It means that the mmap users have to be isolated from
the access of the adaptor cable during DMA. If that is done, the
mmap users read the last value and write nothing during their
discoupling. Moreover mapping back makes the performance of the
driver slower. Thus the compromis tools are made and left in the
hands of the super user. He can choose , whether the driver is
to be used for the slow controls, designing the use on base of mmap
system call or for the data acquisition. In the second case mmap is
not allowed. The super user can decide whether to unmap the slow
control window ( the unmapped job will read the last, write to no
effect ) or to kill all the active jobs which have already mapped to
the nodes. Extra check mode can be set by the super user , whenever
the VME addressing errors occur. Otherwise the rough position of the
VME error is reported .
>From the file_operations the following are included. Open and release
give node access to the user.Lseek was used to cover 32 bits VME
addressing (not needed in 2.1.x). Read/write use the DMA above the
configured minimal DMA length of node and does it's own mapping for
the short access. Mmap is allowed in slow control mode, as the most
useful tool for this purpose. The ioctl repertoire covers the tools
for the super user to estabilish the driver's mode, to resolve problem
with mmap /DMA conflict to switch the crate on/off, the tools for the
user to check in which mode the driver works what parameters are
set on his node and whether the crate os on or off.
The driver is serialized for the node access with the use of MUTEX
semaphore. Thus it is not recommended to use it for massive
multi-use under the systems lower than 2.0.27.
The distribution is in the file vmehb-1.0.tgz and contains all the
sources, Makefile ,README.vmehb installation manual and vmehb.8
unix/linux style manual and base test program.It also contains nice
VME hanoi towers, which you should fix to the VME devices you
can supply for tests.
- - --- xxx ---
All copyrights belong to the author on the base use but not sell.
Copyright (C) May 1997 Natalia Kruszynska <natalia@nikhef.nl>
The sources can be anonymously ftp'ed from the original site and from
sunsite.unc.edu :
nikhefh.nikhef.nl: /pub/projects/vmehb
sunsite.unc.edu: /pub/Linux/kernel/misc-cards
Contact: Natalia Kruszynska-Straszewicz
Computer Technologies
NIKHEF Amsterdam, Holland ( The Netherlands)
European Community
Tel: (31)(20) 592 5106 Fax: (31)(20) 592 5155
E-mail: natalia@nikhef.nl
Web: http://www.nikhef.nl/pub/departments/ct/po ( in preparation )
http://www.bit3.com/vmebusad.html ( hardware details )
_____________________________________________________________________________
- --
This article has been digitally signed by the moderator, using PGP.
http://www.iki.fi/liw/lars-public-key.asc has PGP key for validating signature.
Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov
PLEASE remember a short description of the software and the LOCATION.
This group is archived at http://www.iki.fi/liw/linux/cola.html
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
iQCVAwUBM4vNJoQRll5MupLRAQEp4QP9Gr8WK3kpQcO1gWJ9hTXTOWCeW+Zh8GGE
RtfDtZ0EZAP5Rh2Ov3szxn8iJ3Wm/lS19fJ64id7FhZCl3s5WzIt/8fLCK8rrr7t
Eh9pRjo6BA5/SNm+PfYH7TolKPm0h5LG/aOeEV6cpaLH5Fayxyl/SdfTNuVcaxT2
gSOJjkkbd9U=
=qzfE
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-05-28 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-05-28 4:00 VME on PC under Linux Natalia Kruszynska-Straszewicz
-- strict thread matches above, loose matches on Subject: below --
1997-05-28 4:00 Natalia Kruszynska-Straszewicz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox