linux/pci: the new esrf beamline control system · 2019. 9. 20. · motorola 68000 33 mhz / os9 10...

15
Linux/PCI: The new ESRF beamline control system Alejandro HOMS-PURON BLISS Group ESRF

Upload: others

Post on 18-Aug-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Linux/PCI: The new ESRF beamline control system · 2019. 9. 20. · Motorola 68000 33 MHz / OS9 10 MBps Ethernet Modernization project PCI & cPCI Pentium III 1 GHz / Linux 100 MBps

Linux/PCI:The new ESRF beamline control system

Alejandro HOMS-PURONBLISS Group

ESRF

Page 2: Linux/PCI: The new ESRF beamline control system · 2019. 9. 20. · Motorola 68000 33 MHz / OS9 10 MBps Ethernet Modernization project PCI & cPCI Pentium III 1 GHz / Linux 100 MBps

Talk outline

IntroductionBus couplersPrototype setup for ID31New featuresConclusions

Page 3: Linux/PCI: The new ESRF beamline control system · 2019. 9. 20. · Motorola 68000 33 MHz / OS9 10 MBps Ethernet Modernization project PCI & cPCI Pentium III 1 GHz / Linux 100 MBps

Introduction

ESRF todayVMEbus Motorola 68000 33 MHz / OS910 MBps Ethernet

Modernization projectPCI & cPCIPentium III 1 GHz / Linux100 MBps Ethernet

Page 4: Linux/PCI: The new ESRF beamline control system · 2019. 9. 20. · Motorola 68000 33 MHz / OS9 10 MBps Ethernet Modernization project PCI & cPCI Pentium III 1 GHz / Linux 100 MBps

Bus couplers

PCI – VME Bus coupler (Bit-3)SBS Model 620, Fiber optic link

Transfer rate: 35 Mbyte/s (DMA)

PCI – cPCI Bus Extender (MXI-3)NI PXI-PCI8330, Cooper link

Transfer rate: 84 Mbytes/s

Page 5: Linux/PCI: The new ESRF beamline control system · 2019. 9. 20. · Motorola 68000 33 MHz / OS9 10 MBps Ethernet Modernization project PCI & cPCI Pentium III 1 GHz / Linux 100 MBps

Mai

n PC

Lin

ux

B I T 3

NI

FlexMot

M X I 3

PCI B

us

cPC

Icra

te

NI

FlexMot

M X I 3

Mot

or d

rive

rs

C P U

Eth

erne

t

cPC

IBus

B I T 3

B I T 3

Setu

p w

ith

PC

I, c

PC

I an

d V

ME

boar

ds

Fibe

r op

tic li

nks

to V

ME

cra

tes

VM

E c

rate

co

ntro

lled

by B

it3

(cra

te 0

)

V P A P

B I T 3

VM

EBu

s

g

M V M E

VM

EBu

s

B I T 3

V C T 6

V P A P

D A C

A D C

V P A P

V C T 6

Eth

erne

t

CC 1 3 3

PCI b

us

exte

nder

VM

E c

rate

co

ntro

lled

by

MV

ME

run

nin

Lin

ux a

nd B

it3

(cra

te 2

)

Page 6: Linux/PCI: The new ESRF beamline control system · 2019. 9. 20. · Motorola 68000 33 MHz / OS9 10 MBps Ethernet Modernization project PCI & cPCI Pentium III 1 GHz / Linux 100 MBps

Instrumentation control setup

connecting PCI, cPCI&

VME busses

Page 7: Linux/PCI: The new ESRF beamline control system · 2019. 9. 20. · Motorola 68000 33 MHz / OS9 10 MBps Ethernet Modernization project PCI & cPCI Pentium III 1 GHz / Linux 100 MBps

Industrial PC and cPCI crate

Page 8: Linux/PCI: The new ESRF beamline control system · 2019. 9. 20. · Motorola 68000 33 MHz / OS9 10 MBps Ethernet Modernization project PCI & cPCI Pentium III 1 GHz / Linux 100 MBps

VME crates controlled by PCI & MVME Linux

Page 9: Linux/PCI: The new ESRF beamline control system · 2019. 9. 20. · Motorola 68000 33 MHz / OS9 10 MBps Ethernet Modernization project PCI & cPCI Pentium III 1 GHz / Linux 100 MBps

General features

Scalable functionality:

Direct access to boards from SPEC (very fast)

SPEC + device servers (TACO) on the same PC

SPEC controlling remote device servers

(network traffic)

Page 10: Linux/PCI: The new ESRF beamline control system · 2019. 9. 20. · Motorola 68000 33 MHz / OS9 10 MBps Ethernet Modernization project PCI & cPCI Pentium III 1 GHz / Linux 100 MBps

Hook facility

Buffer for storing the experiment dataRun-time configurableVME, PCI & cPCI boards includedKernel mechanism good-performance:

30 – 50 µs interrupt latency time3 µs VME single access time

Triggered by software or hardware

Page 11: Linux/PCI: The new ESRF beamline control system · 2019. 9. 20. · Motorola 68000 33 MHz / OS9 10 MBps Ethernet Modernization project PCI & cPCI Pentium III 1 GHz / Linux 100 MBps

VME features

No limitation in the number of boards per crate Full access to VME board functionalitiesVME crates can be switched Off/On, and boards can be added/removedSame code works on Intel x86 and Motorola 68k

Page 12: Linux/PCI: The new ESRF beamline control system · 2019. 9. 20. · Motorola 68000 33 MHz / OS9 10 MBps Ethernet Modernization project PCI & cPCI Pentium III 1 GHz / Linux 100 MBps

PCI boards Enumeration

Problem:

Plug & Play boards enumerated at boot time

Most of the boards are indistinguishable

Board added/removed enumeration changes

This also applies to VME crates!

Page 13: Linux/PCI: The new ESRF beamline control system · 2019. 9. 20. · Motorola 68000 33 MHz / OS9 10 MBps Ethernet Modernization project PCI & cPCI Pentium III 1 GHz / Linux 100 MBps

PCI boards Enumeration

Solution:To keep track the position of the boards in the bus

Page 14: Linux/PCI: The new ESRF beamline control system · 2019. 9. 20. · Motorola 68000 33 MHz / OS9 10 MBps Ethernet Modernization project PCI & cPCI Pentium III 1 GHz / Linux 100 MBps

TACO

Hook device server

Define a model for exporting channel

and/or board devices

Optimize local calls

Page 15: Linux/PCI: The new ESRF beamline control system · 2019. 9. 20. · Motorola 68000 33 MHz / OS9 10 MBps Ethernet Modernization project PCI & cPCI Pentium III 1 GHz / Linux 100 MBps

Conclusions

The project supports the VME/PCI transition at the ESRFNew features will allow faster experiments and more flexible configurationsLinux kernel provides the necessary functionality and stability