Multicore Applications

Slides:



Advertisements
Similar presentations
Yaron Doweck Yael Einziger Supervisor: Mike Sumszyk Spring 2011 Semester Project.
Advertisements

Extended Memory Controller and the MPAX registers And Cache
KeyStone Training Multicore Applications Literature Number: SPRP805
Protocol Configuration in Horner OCS
The 8085 Microprocessor Architecture
Keystone Bootloader.
KeyStone Training Multicore Navigator Overview. Overview Agenda What is Navigator? – Definition – Architecture – Queue Manager Sub-System (QMSS) – Packet.
Keystone PCIe Usage Eric Ding.
Chapter 9 Bootloader. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2002 Chapter 9, Slide 2 Learning Objectives  Need for a bootloader.
NS Training Hardware. System Controller Module.
Keystone PCIe Usage Eric Ding.
3-1 System peripherals & Bus Structure Memory map of the LPC2300 device is one contiguous 32-bit address range. However, the device itself is made up of.
Multicore Navigator: Queue Manager Subsystem (QMSS)
Shell and Flashing Images Commands and upgrades. RS-232 Driver chip – ST3232C Driver chip is ST3232C Provides electrical interface between UART port and.
MODES OF Details of Pins Pin 1 –Connected Ground Pins 2-16 –acts as both input/output. Outputs address at the first part of the cycle and outputs.
Configuring the MagicInfo Pro Display
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 Clock Generator.
AT91RM9200 Boot strategies This training module describes the boot strategies on the AT91RM9200 including the internal Boot ROM and the U-Boot program.
KeyStone Training Network Coprocessor (NETCP) Overview.
LPC2148 Programming Using BLUEBOARD
Extended Memory Controller and the MPAX registers
MICROPROCESSOR INPUT/OUTPUT
C66x KeyStone Training HyperLink. Agenda 1.HyperLink Overview 2.Address Translation 3.Configuration 4.Example and Demo.
Keystone PCIe Usage Eric Ding.
Virtual Memory Review Goal: give illusion of a large memory Allow many processes to share single memory Strategy Break physical memory up into blocks (pages)
KeyStone Training Multicore Navigator: Packet DMA (PKTDMA)
Challenges in KeyStone Workshop Getting Ready for Hawking, Moonshot and Edison.
Keystone Family PCIE Eric Ding. TI Information – Selective Disclosure Agenda PCIE Overview Address Translation Configuration PCIE boot demo.
Keystone Bootloader. Keystone ROM Boot Loader (RBL) RBL is a code used for the device startup. RBL also transfers application code from memory or host.
Class ID: Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Implementing Bootloaders on Renesas MCUs.
By: Daniel BarskyNatalie Pistunovich Supervisors: Rolf HilgendorfInna Rivkin 10/06/2010.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
EEPROM Hex File Generation with SigCon Architect SVA – Datapath Solutions Nov
Network Protocols and Standards (Part 2). The OSI Model In 1984, the International Organization for Standardization (ISO) defined a standard, or set of.
Electronic Analog Computer Dr. Amin Danial Asham by.
12/16/  List the elements of 8255A Programmable Peripheral Interface (PPI)  Explain its various operating modes  Develop a simple program to.
EFLAG Register of The The only new flag bit is the AC alignment check, used to indicate that the microprocessor has accessed a word at an odd.
NS Training Hardware Traffic Flow Note: Traffic direction in the 1284 is classified as either forward or reverse. The forward direction is.
Network Coprocessor (NETCP) Overview
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
Lecture 4 General-Purpose Input/Output NCHUEE 720A Lab Prof. Jichiang Tsai.
بسم الله الرحمن الرحيم MEMORY AND I/O.
KeyStone SoC Training SRIO Demo: Board-to-Board Multicore Application Team.
WINLAB Open Cognitive Radio Platform Architecture v1.0 WINLAB – Rutgers University Date : July 27th 2009 Authors : Prasanthi Maddala,
Chap. 4 ARM Boot Loader Internals. 2 S3C2500 ARM940T Core module ARM9TDMI CoreIC.
Memory Management.
© 2002, Cisco Systems, Inc. All rights reserved.
The 8085 Microprocessor Architecture
Refer to Chapter 5 in the reference book
Chapter 11: Inter-Integrated Circuit (I2C) Interface
Chapter 2: System Structures
The 8085 Microprocessor Architecture
Chapter 5: Switch Configuration
Introduction of microprocessor
Chapter 6: Network Layer
RX 8-Bit Timer (TMR) 4/20/2011 Rev. 1.00
Modbus with the AKD Using Modbus Poll and Wireshark Rev. F Dec
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
AT91RM9200 Boot strategies This training module describes the boot strategies on the AT91RM9200 including the internal Boot ROM and the U-Boot program.
Network Core and QoS.
NetSilicon & Digi Confidential
Implementing an OpenFlow Switch on the NetFPGA platform
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
The 8085 Microprocessor Architecture
CCE1030 Computer Networking
Chapter 9 Bootloader.
Chapter 13: I/O Systems.
The Programmable Peripheral Interface (8255A)
Network Core and QoS.
Presentation transcript:

Multicore Applications KeyStone Bootloader Multicore Applications

Agenda Remote Boot Loader (RBL) Reset (Trigger) Types Boot Methods Boot Process Second Stage Bootload Option Intermediate Boot Loader (IBL)

Remote Boot Loader (RBL) Reset (Trigger) Types Boot Methods Boot Process Second Stage Bootload Option Intermediate Boot Loader (IBL)

Remote Boot Loader (RBL): Purpose RBL enables user to transfer application code from memory or host to high speed internal memory or DDR3. RBL provides multiple choices to the user to boot the device. These boot choices can be broadly divided into two groups: Memory boot where the application code is stored in a slow external memory and DSP acts as a master and drives the boot process. Host Boot where the DSP is configured as a slave and driven by a host device connected through fast transport.

Remote Boot Loader (RBL): Definition Software code used for device startup. Burned in ROM (non-modifiable) during manufacture Has a base address of 0x20B00000 ROM C66x CorePac ARM CorePac RBL can be executed by C66x core or the ARM core. The boot behavior varies depending on the core type that initiates the boot process.

Boot Requirements Selecting the method of booting. Updating the configuration. Trigger to use the configuration to prepare for booting. Load the image of the executable into the device. Trigger the device to run the executable.

Terminology (1/2) Boot Parameter Table is a configuration table that contains two parts: Common set of parameters for system configuration Unique parameter settings for each boot method Boot Table contains code that needs to be loaded into the device. Boot Configuration Table is a register configuration table that is used to manipulate memory map register.

Terminology (2/2) Triggers are mechanisms that initiates the execution of the RBL. KeyStone devices use resets as triggers. Four types of resets: Power on Reset (PoR) Reset Full Reset Local Reset

Reset (Trigger) Types Remote Boot Loader (RBL) Reset (Trigger) Types Boot Methods Boot Process Second Stage Bootload Option Intermediate Boot Loader (IBL)

Reset Types Power on Reset (POR) (Cold Reboot) RESETFULL (Warm Reboot) Resets everything Latches the boot strap pins Initiates RBL process RESETFULL (Warm Reboot) RESET (Configurable as Hard Reset or Soft Reset) Resets everything except EMU and reset-isolated peripherals No latching of the boot strap pins For software reset, PCIe, EMIF16, DDR3 and EMIF MMRs are also preserved. LRESET (Local Reset) Mostly used by watchdog timer Only the CorePac is reset; All memory is preserved. Does NOT initiate RBL process

Device Startup from Hard/Soft Reset For hard resets, the boot code must determine the hibernation state. Hibernation is the process of shutting down unused CorePacs and IP blocks to reduce overall system power consumption. It is the responsibility of the application to save all relevant configurations and register values based on the selected hibernation mode. Hibernation1: Values stored in MSMC SRAM. Hibernation2: Values stored in DDR3. The application is also responsible for setting the appropriate hibernation mode in the PWRSTATECTL register. The Application will also set the branch address in the PWRSTATECTL register.

Hibernation Explained Hibernation 1: The application needs to ensure that the chip control register is set correctly to avoid MSMC reset. Hibernation 2: MSMC is reinitialized to default values. For both modes, the application is responsible for shutdown of all desired IP blocks. A hard or soft reset can be configured to bring a hibernating device out of hibernation: After the reset, the boot loader code checks the PWRSTATECTL register to identify the hibernation mode and branch address. Subsequent actions: Peripherals and CorePacs are powered on. The awakened device branches to the application code, which utilizes the values stored in MSMC or DDR3 prior to hibernation.

Setting up the Boot Configuration A set of GPIO pins are used to provide the boot configuration; Refer to the Data Manual for your device. The logical levels of these pins can be controlled by an external pull-up/pull down resistor or external host (FPGA/CPLD). These pins are sampled during the power on reset and written to DEVSTAT register. The RBL uses the values in the register to execute the boot process.

RBL Flow The RBL uses the Device Status (DEVSTAT) register and generates a configuration table (Boot Parameter Table). The RBL uses the Boot Parameter Table to configure the device to boot. Depending on the boot method and the trigger type, the boot image is loaded into the device. After the complete image download into the device memory, the RBL initiates the code to execute.

RBL Flow Diagram

Common Boot Configuration PLL settings Boot method Boot-related configuration PCIe-Subsystem enable (PCIESSEN) Identify master that is driving the boot

Boot Methods Remote Boot Loader (RBL) Reset (Trigger) Types Boot Process Second Stage Bootload Option Intermediate Boot Loader (IBL)

Boot Methods The available boot methods vary according to the device: I2C boot I2C passive mode SPI boot NAND boot XIP boot [EMIF NOR boot] UART boot Ethernet boot SRIO boot HyperLink boot PCIe boot For more information, refer to the Data Manual for your device.

PLL Clock O/P = (Input Clock x (Clkf + 1))/(2 * (Clkr + 1)) PLL Configuration The boot code sets the PLL multiplier based on the core frequency set in the EFUSE register. The boot configuration specifies the reference clock used in the system: PLL Clock O/P = (Input Clock x (Clkf + 1))/(2 * (Clkr + 1)) Refer to the data manual for your device to determine the exact PLL configuration.

Boot Configuration Format Boot Parameter Table: Provides a “map” for the boot process The boot process copies a default Boot Parameter Table into a reserved L2 of Core 0. The first 10-byte offsets of the Boot Parameter Table are common across all the boot modes: Length Checksum Boot Mode Port Num PLL configuration (most significant bits) PLL configuration (least significant bits) The rest of the Boot Parameter Table is boot-mode dependent.

Boot Image Format Boot Table: Block of data that contains the code and data section The block is loaded from the host or external memory to the internal memory or DDR by the RBL. The first 8 bytes of the Boot Table form the header: 32-bit section bytes count 32 bit section address where the block has to be moved The end of table is identified by writing 0s.

Register Configuration Format Boot Configuration Table: Provides read/modify/write capabilities to any memory on the device. Each entry has three 32-bit-wide elements. First element is the address to be modified Second element is the set mask Third element is the clear mask If all three elements are 0s, this indicates the end of the Boot Configuration Table.

Boot Process Remote Boot Loader (RBL) Reset (Trigger) Types Boot Methods Boot Process Second Stage Bootload Option Intermediate Boot Loader (IBL)

Boot Process Boot Process Depends on boot method Broadly divided into two methods: Direct image boot process Boot table boot process

Boot Process: Direct Image The device will be configured as slave. Master has the knowledge over memory map of the device. DirectIO SRIO boot PCIe Boot HyperLink Boot The RBL configures the peripheral and set the device to get the image. The host will send the data one section at a time. The host will also update the Boot Magic Address (BMA) Wake the master core in the device which will triiger the core to jump to BMA and execute the image.

Boot Process: Boot Table (1/2) In this mode the image will be converted into the boot table using hex6x. The the image is sent by the host one section at a time in case of the host boot method. Messaging SRIO boot Ethernet boot UART boot The master core running the RBL will read sections from the memory in case of mem boot I2C boot SPI boot NAND boot

Boot Process: Boot Table (2/2) The RBL also reads the start address and populate the BMA Once all the sections are loaded, the master core jumps to the address specified in BMA and start executing.

XIP Boot The XIP boot mode does not fit in either the direct image or boot table mode of booting. After the initialization, the master core jumps to the 0x70000000 address and starts executing.

I2C Boot PLL is in bypass mode. Can be used to run a work-around before running the main boot method Can modify the boot parameter table that is used by RBL. After running the work-around, can modify the boot parameter table to boot in another boot method. Images are stored in the EEPROM in two pages that are divided into blocks of 0x80 bytes.

I2C Passive Mode Passive mode The I2C device configuration uses 5 bits of device configuration instead of the 7 bits used in master mode. The device does not drive the clock, but simply acks data received on the specified address. The I2C address is calculated by adding 0x19 to the I2C address specified in the device configuration. Header format: (0x19 + I2C address) xx xx yy yy zz zz where: xx xx = length yy yy = checksum zz zz = boot option

Utilities To Go To access the boot table: Hex6x (available in CGT) Need an rmd file to provide details to hex6x The output file is in the boot table format If the EVM is set in little endian mode, convert the boot table to big endian mode (used by the RBL) using the bconvert64x utility (available in MCSDK). Convert to an I2C format (to be loaded into the EEPROM) using the b2i2c utility (available in MCSDK). Append the boot parameter table to the boot table using romparse (Available in MCSDK), which uses a map file to retrieve the boot parameter tables.

SPI Boot Same as I2C mode The only difference is that instead of pages, the NOR flash is selected based on the chip select.

Ethernet boot The RBL configures the SERDES, NETCP (if available on the device), and starts transmitting the Ethernet-ready packet. The PHY is NOT configured. The host can use the Ethernet-ready packet to generate the image packets to transmits into the device.

SRIO Boot RBL configures the SRIO to operate both in messaging mode and DirectIO mode. In messaging mode, the SRIO boot is similar to the Ethernet boot. In DirectIO mode, the master core is in poll mode, polling the BMA. Once the host loaded all the sections of the image, it should populate the BMA.

PCIe Boot RBL configures the device in Endpoint mode. RC mode is NOT supported. The PCIe boot process is similar to DirectIO SRIO boot. One difference is that the master core is in idle state and the RC should wake the core by sending a legacy or MSI interrupt after loading the image and BMA.

HyperLink Boot The process is same as PCIe boot.

Booting Multiple Cores During the boot process, the boot loader code is loaded into the L2 of CorePac 0 from the ROM. The high 0xD23F (52K) bytes of L2 in all CorePacs are reserved for the boot code. User should not overwrite this area. All the other cores will execute an IDLE. User should load the image into the L2 of CorePacs they want to boot. Before setting the Boot Complete register, the user should also set the start address of the code in the respective BOOT MAGIC ADDRESS of the CorePac L2. Finally, the user image should also write the IPC Interrupt register to bring the required CorePacs out of IDLE.

Second Stage Bootload Option Remote Boot Loader (RBL) Reset (Trigger) Types Boot Methods Boot Process Second Stage Bootload Option Intermediate Boot Loader (IBL)

Second Stage Boot Load Process Q: What if more boot parameters are needed than can be specified in the boot pins? A: Other parameter values can be updated through the I2C boot mode. In this case, the I2C boot starts with an I2C boot parameter table which in turn loads a custom updated parameter table for a specific boot mode. Once the default parameter table is updated, the boot code executes using the updated boot parameter structure, following the same process as the primary boot mode.

Second Stage Boot Load Specifics The loaded EEPROM image has two boot parameter table blocks. The first block is an I2C boot parameter table, which sets the core clock and the address of the next block. The next block includes the requested boot mode-specific boot parameter table with user-specified values. After loading this image into the EEPROM, the boot mode in the boot strap is set for I2C master boot. After POR, the I2C boot code is executed as a first-stage boot load, which updates the default boot parameter table and re-enters the boot code, executing the boot code utilizing the user-specific parameters.

Intermediate Boot Loader (IBL) Remote Boot Loader (RBL) Reset (Trigger) Types Boot Methods Boot Process Second Stage Bootload Option Intermediate Boot Loader (IBL)

Intermediate Boot Loader (IBL) Originally created as a work-around for a PLL locking issue in the C667x PG1.0 version. Same process as second stage boot loading. Also provides additional boot features: TFTP boot NAND boot NOR boot In the EVM, the FPGA is programmed to boot IBL, execute the PLL fix, and then jump right back to RBL for the set boot mode.

For More Information For more information, refer to the Bootloader for KeyStone Devices User's Guide. For questions regarding topics covered in this training, visit the support forums at the TI E2E Community website.

EVM Specifics and IBL

Boot Runtime – Ethernet The SERDES, SGMII and switch are not configured if the options field of the Ethernet boot parameter table indicate initialization is bypassed. This will be the default case when the boot is initiated by hard or soft reset, reset isolation has been enabled, and the devices are powered up and enabled. SERDES: The boot ROM programs the SGMII_SERDES_CFGPLL register, the SGMII_SERDES_CFGRX registers (both lanes) and SGMII_SERDES_CFGTX register (both lanes). SGMII: The SGMII is enabled in full duplex mode, gigabit rate. Broadcast packet reception is enabled based on the boot parameter table. QMSS: The QMSS is configured to manage descriptors using a single memory region. Each descriptor is sized to 48 bytes with extended packet information block present. PASS: A custom firmware load is used for PASS. This load simple directs all received packets to the CPDMA, using flow configuration 0. Interrupt System: Polling is used to detect packet arrival in queue 896, so interrupts are not configured After initialization, the device will broadcast a ready frame containing its device ID and MAC address. The Ethernet Host is responsible to receive the ready frame and follow up with the boot packets to the DSP using the device’s MAC address or ID. If Broadcast Rx is configured, then the host can broadcast a common image to all DSPs. The image is converted into a boot table and sent in packets from host to the DSP where the boot code reconstructs the image.

Boot Runtime – Serial RapidIO SRIO boot behaves as supported on previous devices for DirectIO mode. For Nyquist-Shannon, boot using Messaging Mode is supported as well, provided the host sends Ethernet IP messages. The boot ROM will not configure the SERDES or SRIO if the boot options in the SRIO boot parameter table show that configuration bypass is enabled. This will be the case in hard or soft reset when reset isolation is enabled and the SRIO and SERDES have already been enabled. SERDES and SRIO register configurations are based on templates. Basic values are taken from the template and modified to match the provided input frequency, number of lanes, and output frequency. SERDES: The SERDES is configured before the SRIO. The boot ROM programs the SRIO_SERDES_CFGPLL register, the SRIO_SERDES_CFGRX registers, and the SRIO_SERDES_CFGTX registers. The values programmed into these registers are based on the configurable parameters in the SRIO boot parameter tables. In addition, for message booting over SRIO, the RIO_RXU_MAP00, RIO_RXU_MAP00_H and RIO_RXU_MAP00_QID registers are programmed. They are programmed to route all messages (promiscuous) to queue 896 using flow ID 0. QMSS: The QMSS is configured to manage descriptors using a single memory region. Each descriptor is sized to 48 bytes with extended packet information block present (EInfo). The receive configuration is identical to that of Ethernet and a single function is used for both configurations. For DirectIO mode, the DSP will poll the boot magic address. Once this address is populated, the DSP branches to the address specified in the boot magic address. For Messaging Mode, the operation is equivalent to Ethernet Boot

Boot Runtime – SPI The SPI is configured as directed by the boot parameter table. The SPI is operated through direct register reads and write. The boot ROM initializes the peripheral and begins reading blocks of data starting at the address specified in the boot parameter table (see Table 34). The ROM reads the data in blocks. Each block consists of two 16 bit word headers. The data in the blocks must contain boot table data. The data might also start with new boot parameter table. The new boot parameter block would specify a higher clock speed and a new boot address for the actual boot data.

Boot Configuration – PCI Express The bootloader configures the base address registers, the number of windows, and their size. The PCIe power-up is configured through the external pin. If the PCIe boot is the primary boot, the BAR size configuration is driven by the BAR config fields as below. Once the BAR configurations are done, the host can access to the memory map of the DSP and image is loaded into the memory. At the end the boot magic address is also set to the entry point of the image. The DSP is brought out of IDLE by either a MSI interrupt or a legacy interrupt. (See PCIe user guide for further details.)

Device Startup Summary

Boot Runtime: I2C Master Mode Master Mode: In master mode the boot ROM reads blocks from the I2C EEPROM. The first 4 bytes are the header with the size of the block and the checksum. The first block will be a Boot Parameter Table. They will set the proper PLL configuration for the core clock settings. Each block will be 128 bytes in size and the boot parameter table will specify the next block to read. The next block can be another boot parameter table or a boot table or a boot config table. In case of Boot Table Mode, blocks are read from the I2C, the 4 byte header is stripped, and the data is passed to the boot table processing function. The boot code will parse the boot table and determines the start address. The code then populates the BOOT_ADDRESS register. Once the boot table is completely parsed the boot code branches to the address in the BOOT ADDRESS register and brings the DSP corePAC out of idle and execute the code. In Config Table Mode, the data read from the I2C contain configuration tables. Each element in the table consists of three 32 bit fields. This mode is typically used to poke registers needed before boot can be run, or to execute functions from a previously loaded boot. Each entry in the table falls into one of three types. Standard Entry for read-modify-write of an address Branch entry for a function call to the specified address Table Terminate to end and re-run boot

Boot Runtime I2C Master-Broadcast Mode Master-Broadcast: If enabled, the DSP will re-broadcast the boot image loaded from I2C to all passive devices. This is used in case we have multiple DSPs in a same system and one DSP acts as a master driving the other DSPs.

Boot Runtime I2C Passive Mode Passive Mode: the boot ROM operates the I2C device in receiver mode. The header format for passive mode is 19 xx xx yy yy zz zz . Where 19 is the I2C slave address, xxxx is the length, yyyy is Checksum and zzzz is the boot option. The boot option can be again boot parameter table, boot table or a boot config table.