Secure data processing system using commodity devices

Abstract: A secure system includes a secure central processor unit, an input/output emulator, a number of commodity controller boards and a number of commodity memory boards. Apparatus in the secure CPU and firmware in the I/O emulator maintain the security of the overall system.

Description: BACKGROUND OF THE INVENTION Scope of the Invention This invention relates principally to the field of secure computers, and more particularly to apparatus for assuring that commodity controllers do not communicate directly with a secure memory. Description of the Prior Art Many personal computers are made up of commercially available commodity boards. These boards include a base processor board, memory commodity boards and controller commodity boards, all coupled together by a common bus. The common bus includes address lines and data lines. Any commodity board may write into and read from the memory in competition with each other. This presented problems since under some conditions, mostly malfunctioning conditions, data would be lost due to overwriting. To prevent this condition, an I/O processor was placed between the commodity controller and commodity memory. This alleviated the problem somewhat, however since the commodity controller could bypass the I/O processor and write into or read from memory directly, the management of memory became difficult. This presents particular problems when a secure computer operates with commercially available commodity controller boards and commodity memory boards. An integrated and distributed input/output system for a computer according to the US patent 4,245,300 permits a peripheral device and its associated peripheral processor to be connected either (a) directly to the central processor, or (b) to a remote hardware peripheral control device which permits the central processor to directly control the peripheral processor, or (c) to a remote input/output controller which controls the peripheral processor independently of the central processor. This input/output system permits the use of the same software set stored in memory to control the input/output operations of a selected peripheral device regardless of where the peripheral device is connected. It is the object of this invention to have an improved secure computer made up of commercially available commodity boards, but having a secure memory, thereby reducing the cost of the system. This and other objects are achieved by providing an apparatus having circuit elements and features as defined in the characterizing part of claim 1. SUMMARY OF THE INVENTION The secure computer system includes a base secure CPU board, a number of memory commodity boards, a number of commodity controllers with their respective devices and an input/output emulator board. The commodity controllers communicate with the I/O emulator which in turn communicates with commodity memory. Similarly commodity memory communicates with the I/O emulator which in turn communicates with the commodity controller. The CPU board initiates a data transfer to memory by sending a first read command to the I/O emulator. The I/O emulator in turn sends a second read command to the commodity controller. The commodity controller fetches the data from a specified device and sends it to the I/O emulator where it is stored in a random access memory (RAM). When RAM stores the entire response to the first command, the I/O emulator sends a write command which include a channel number of an address register counter, an indication of a read operation and a commodity memory address location. In addition the I/O emulator generates a data enable signal. The channel number is decoded to generate an address enable signal. The address register counter is responsive to the address enable signal for storing the starting address of the commodity memory into which the first data word is stored. The transceivers that couple the I/O emulator to the commodity memory are enabled by the data enable signal and a R/W signal to transfer the data from the I/O emulator RAM to the commodity address. The address register counter is incremented each I/O cycle so that the data is written into successive commodity memory locations. For the read from memory operation, the I/O emulator sends a read command to the CPU board. The read command includes the channel number of the address register counter and a read indication, as well as the starting commodity address. Again the channel number is decoded to generate the address enable signal and the R/W signal is generated and applied to the XCVRS to conduct in the opposite direction to the above write operation. Again the data enable signal enables the XCVRS for the transfer of data from the specified commodity memory location to the I/O emulator RAM. The address register counter is incremented for each I/O cycle and the stream of data words is sent to the I/O emulator RAM. In both the read and write operations, the DMA logic in the I/O emulator generates the RAM address. BRIEF DESCRIPTION OF THE DRAWINGS The manner in which the apparatus of the present invention is constructed and its mode of operation can best be understood in light of the following detailed description together with the accompanying drawings in which like reference numbers identify like elements in the several figures and in which: Figure 1 shows a block diagram of the overall secure system. Figure 2 shows a block diagram of the secure central processing unit. Figure 3 shows a block diagram of the Input/Output emulator. Figure 4 shows a firmware block diagram of a typical commodity controller-I/O emulator operation. DESCRIPTION OF THE PREFERRED EMBODIMENT Figure 1 shows an overall block diagram of the Secure Workstation System 1. System 1 includes a secure central processor unit (CPU) 2, a number of commodity memory boards 14, 16, 18 and 20, an I/O emulator board 4, and a number of commodity controller boards 30 through 32. Commodity boards are typically printed circuit logic boards which are commercially available and may be ordered through advertisements in computer trade newspapers and magazines. This invention allows the secure CPU 2 to operate with the commodity memories 14 through 20 and the commodity controllers 30 through 32 and to maintain the security of the overall system 1. The secure operating system running on CPU 2 and the special hardware and firmware of the CPU 2 and the I/O Emulator 4 are not a part of the invention and therefore not described further. CPU 2 communicates with memories 14, 16, 18 and 20 via a unidirectional 32 bit address bus 40, and bidirectional 32 bit data busses 38, 42 and 44. Since this typical embodiment includes 1 megabyte by 16 bit memory boards and System 1 requires 32 bit words, memories 14 and 16 store 32 bit words in even address locations and memories 18 and 20 store 32 bit words in odd address locations. The least significant bit signal (LSB) 31 applied to a transceiver (XCVR) 6 selects either the even data bus 44 or the odd data bus 42. Devices 31 through 33 are coupled to commodity controllers 30 through 32 respectively. Devices 31 through 33 may include any or any number of peripheral devices that are compatible with their respective controllers. Typical devices include personal computers, mass storage, unit record equipment, printers and the like. The controllers 30 through 32 communicate with the I/O emulator 4 or CPU 2 in either a byte, word or batch mode via a 23 bit address bus 34 and a bidirectional 16 bit data bus 36. The controllers 30 through 32 do not communicate with memories 14 through 20 directly but rather through the I/O emulator 4. As an example, data in byte, word or batch mode is transferred from device 33 for storage in I/O emulator 4 via commodity controller 32 and data bus 36. The I/O emulator 4, on each bus cycle, will generate a data enable (DEN) signal which is applied to a decoder 26 and the secure memory is addressed which generates a signal to enable a transceiver (XCVR) 24. The I/O emulator 4 then transfers the data to memories 14 and 16 via a XCVR 24, a XCVR 8 and data bus 44, or to memories 18 and 20 via XCVR 24, a XCVR 10 and data bus 42. Since none of the commodity controllers 30 through 32 can generate the Data Enable signal, they cannot communicate directly with memories 14 through 20. Address information is sent by controller 32 to I/O emulator 4. I/O emulator 4 loads the address information into a register counter 12 for the data transfer between memories 14 through 20 and I/O emulator 4. If the least significant bit (LSB) signal indicates an even address which is applied to decoder 22, then XCVR 8 is enabled to send the 16 data bits from XCVR 24 to the even data bus 44 for storage on memory 14. Similarly if signal LSB indicates an odd address, the XCVR 10 is enabled and the 16 data bits are stored in memory 20. Referring to Figure 2, the secure CPU 2 operates in a conventional manner. Operating System and Application Programs as well as operands are stored in memories 14 through 20. A next address latch 2-2 addresses a read only store (ROS) 2-4 which applies microword signals to a microprocessor 2-8 and decode registers 2-6 in a conventional manner. Microprocessor 2-8 generates address signals which are applied to memories 14 through 20 via an address register 2-14, bus drivers 2-20 and address bus A 40. Data is sent to or received from memories 14 through 20 via data bus A 38, bus XCVRS 2-24 and input/output data registers 2-10. If the information received by microprocessor 2-8 from data bus A 38 is an instruction, then it is executed by the microprocessor 2-8 sending signals to the next address latch 2-2, which in turn sends address signals to ROS 2-4. ROS 2-4 sends out microword signals to cause the CPU 2 to execute the instruction. The instruction may call for the microprocessor 2-8 to fetch operands from or write operands into memories 14 through 20 at an address sent over address bus A 40 and operands sent over data bus A 38. The CPU 2 communicates with the I/O emulator 4 via address bus B 34 and data bus B 32. The address signals from address bus B 34 are applied to a data register decoder 2-16 which generates an I/O register select signal. The input/output data registers are responsive to the I/O register select signal to receive data from or send data to the I/O emulator 4 when enabled by the data select signal from the I/O emulator 4. The data enable signal is also applied to decoder 26, Figure 1, to enable XCVR 24 to write data into or read data from memories 14 through 20. The I/O emulator 4 sends a command which includes the channel number of the address register/counter 12 when the I/O emulator wants to communicate with memories 14 through 20. The channel number is decoded by the data register decoder 2-16 to generate the ADDRESS ENABLE signal. The address register/counter 12 is responsive to the ADDRESS ENABLE signal for storing the starting address of memories 14 through 20 which it receives from the data bus B 36. The memory-I/O emulator command includes the channel number in the portion of the command received over the address bus B 34 and the starting memory address in the portion of the command received over data bus B 36. Note that the byte swap tranceiver 28 is also enabled by the data enable signal and in conjunction with the byte swap signal BYTE SWAP to swap the positions of the two 8 bit bytes within the word received from or written into memories 14 through 20. Figure 3 is a block diagram of the I/O emulator 4 which is located in a slot so as to be the first board to receive signals from or send signals to CPU 2 via address bus B 34 and data bus B 36. Commodity controllers 30 through 32 are in slot locations further down the busses 34 and 36 from the CPU 2 than is the I/O emulator 4. A read only store (ROS) 4-2 contains the firmware that has the security features built into the firmware. These security features assure that one of the commodity controllers 30 through 32 cannot communicate directly with memories 14 through 20 by controlling the information flow on busses 34 and 36. The firmware also controls the address locations of memories 14 through 20 into which the information from controllers 30 and 32 are loaded by storing a starting address in address register/counter 12. Random Access Memory (RAM) 4-4 stores the data received from controllers 30 through 32 for subsequent transfer to memories 14 through 20; and for data received from memories 14 through 20 for subsequent transfer to controllers 30 through 32. RAM 4-4 is organized into areas, portions of which are used for control functions and other portions are used as data buffers. Each controller 30 through 32 has its dedicated data buffer. The RAM 4-2 structure is organized by the firmware in ROS 4-2. Microprocessor 4-6 executes instructions from the ROS 4-2. This prevents the loading of a message in RAM 4-4 and executing the instructions in the message. Interrupt 4-12 interrupts the microprocessor 4-6 based on interrupts from both the commodity controllers 30 through 32 and from the secure CPU 2. The interrupt 4-12 is conventional logic made up of commercially available interrupt logic circuits. The direct memory access (DMA) control 4-10 is made up of a commercially available DMA chip and conventional logic. DMA control 4-10 is loaded solely by the microprocessor 4-6. None of the controllers 30 through 32 can gain access to the DMA control 4-10. That is, it is the DMA control 4-10 that indicates the locations of memories 14 through 20 that are involved in the data transfer and not the controllers 30 through 32 as is normally done. A bus interface 4-14 is coupled to address bus A 34 and data bus B 36 for receiving and sending signals out on the busses. Each controller 30 through 32 has a similar bus interface. However, in addition, bus interface 4-14 generates a data enable signal every time the microprocessor 4-6 generates a request for the busses 34 and 36. The bus request logic is a conventional design and is not described further. The data enable signal is applied to decoders 22 and 26 to enable their respective XCVR's 8 and 10, and XCVR's 24 and 28. If the secure CPU 2 is also addressed by the I/O emulator 4, then the XCVR's would be operative to pass information. If the CPU 2 is not addressed by the I/O emulator 4, then the XCVR's would remain in a high impedance state and not pass information. When the I/O emulator 4 is addressing the other controllers 30 through 32 for the transfer of information, then it is not able to address the CPU 2. A timing and control 4-8 is the logic which coordinates and resolves contentions between the various logic elements of the I/O emulator 4. This is a conventional operation. Figure 4 shows a flowchart of a typical disk read from one of the devices 31 through 33 that is connected to busses 34 and 36 via the disk commodity controller 30 through 32. Note that the devices 31 through 33 and their commodity controllers 30 through 32 are shown symbolically. Controllers 30 through 32 represent any number and any kind of controller. Devices 31 through 33 represent any number of devices coupled to their respective controllers. The secure CPU 2 may send an I/O request command to the I/O emulator 4 in block 4-4 K requesting a disk read. The command is conventional in nature and includes a disk identifier, a sector number, a cylinder number, a range and a starting memories 14 through 20 address. Microprocessor 4-6 is operative with ROS 4-2 to execute the following instruction sequence. Block 4-4 A sends the disk I/O read command to the designated disk controller. This information includes the disk channel number, the sector number, the head number and the range. Then in block 4-4 B, the I/O emulator 4 waits for the disk interrupt which is received by interrupt 4-12 bus interface 4-14. This interrupt operation is conventional in nature. During this wait period the I/O emulator 4 may perform other operations. When the interrupt is received by the microprocessor 4-6 via the interrupt 4-12, a block 4-4 C the microprocessor sends a command to the disk controller to read the status of the disk controller and in decision block 4-4 D determines that the read was executed correctly or that there was a problem in finding the sector. If the addressed sector was located and the sector information transferred to the sector buffer in the commodity disk controller, then block 4-4 F transfers the contents of the sector buffer of the commodity disk controller into a specified area of RAM 4-4 in a conventional manner. If the requested information was not found, then block 4-4 E initiates an error handler routine. Decision block 4-4 G determines if the entire disk read operation is complete. If the operation requested by the CPU disk read command is not completed, then block 4-4 A sends the next command to the disk controller to read the next sector of requested information. If decision block 4-4 G indicates that the operation is completed, then block 4-4 J sends an I/O command to the CPU 2 and block 4-4 H transfers the data from the buffer area in RAM 4-4 to memories 14 through 20. This is accomplished by the I/O emulator 4 generating the data enable signal and loading the address register/counter 12 with the address in memories 14 through 16 in which the first data word is stored. The address register/counter 12 may only be loaded when the I/O emulator 4 specifies a predetermined address.

Claims: Apparatus for providing secure access to a system data store (14, 16, 18, 2⊘) in a data processing system which includes a central processor unit (CPU) (2), a first bus (4⊘, 42, 44), said system data store and said CPU being coupled to said first bus, said data processing system comprising at least one peripheral controller (3⊘, 32) for controlling a plurality of peripheral data stores (31, 33); said apparatus providing said secure access by isolating said system data store from direct access by said peripheral controllers, said apparatus being characterized by: a controller processor (4), said controller processor having an associated memory (4-4); a second bus (34, 36), said CPU, said controller processor and said at least one peripheral controller being coupled to said second bus; a transceiver means (8, 1⊘, 24, 28) coupled to said first and second buses for transferring data between said buses when controlled by a first signal (R/W) applied thereto; a decoder means (2-16) coupled to said second bus and responsive to a first-type command on said second bus for generating said first signal, said first signal denoting whether data is to be read (R) from said system data store or to be written (W) into said system data store; a register means (12) coupled to said second bus and first bus and responsive to said first-type command for storing an address of said system data store; said controller processor generating said first-type command when data is to be transferred between said system data store and a peripheral data store; wherein, when data is to be transferred between said system data store and a peripheral data store, (i) said CPU generates and applies to said second bus a second-type command which identifies the one of system or peripheral data store from which said data is to be read, and the other one of system or peripheral data store into which said data so read is to be written, (ii) said controller processor, in response to said second-type command, generating said first-type command and a third-type command, said third-type command being transmitted on said second bus to the peripheral data store identified by said second-type command, (iii) said controller processor receiving from said second bus the data read from said one of system or peripheral data store identified for reading and entering said received data into said associated memory, and (iv) said controller processor transmitting the data stored in said associated memory over said second bus for writing into said other one of system or peripheral data store identified for writing. The apparatus of claim 1, further characterized by: said transceiver means controllable by said first signal denoting a read (R) operation for transferring data read from said system data store onto said first bus to said second bus for entry into said associated memory. The apparatus of claim 1, further characterized by: said transceiver means controllable by said first signal denoting a write (W) operation for transferring data read from said associated memory onto said second bus to said first bus for entry into said system data store.

Inventors: DICHIARA JOSEPH G, WEBSTER RAYMOND J JR, DICHIARA, JOSEPH G., WEBSTER, RAYMOND J., JR.
Applicants: BULL HN INFORMATION SYST, BULL HN INFORMATION SYSTEMS INC.
Application year: 1988
Main classification: G06F13
IPC codes: G06F13