Massive x86 Update - Bring x86 in line with ARM and PPC
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest36 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/36 | x86 - Fix definition of global_data struct for asm-offsets.carch/ | +1 | 0 replies | |
| 2/36 | x86 - Fix mangled umlautsarch/ arch/ | +2 | 0 replies | |
| 3/36 | x86 - Move config.mk options to arch/i386/config.mkarch/ arch/ board/ | +8 | 0 replies | |
| 4/36 | x86 - move linker script into arch folderarch/ arch/ board/ | +106 | 0 replies | |
| 5/36 | x86 - Paramatize link locationsarch/ arch/ board/ | +14 | 0 replies | |
| 6/36 | x86 - Add stack dump to register dumparch/ | +16 | 0 replies | |
| 7/36 | x86 - Parametize location of Real Mode codearch/ arch/ arch/ | +5 | 0 replies | |
| 8/36 | x86 - Move Global Descriptor Table defines to processor.harch/ arch/ | +7 | 0 replies | |
| 9/36 | x86 - Add processor flags header from linuxarch/ arch/ arch/ +3 more | +121 | 0 replies | |
| 10/36 | x86 - Call early_board_init when warm bootingarch/ | +5 | 0 replies | |
| 11/36 | x86 - Make cpu init functions weakarch/ arch/ arch/ +1 more | +16 | 0 replies | |
| 12/36 | sc520 - Sort Makefilearch/ | +1 | 1 reply | |
| 12/36 | sc520 - Sort Makefile | +0 | 1 reply | |
| 13/36 | sc520 - Define MMCR address in include filearch/ arch/ arch/ +1 more | +54 | 0 replies | |
| 14/36 | sc520 - Move board specific settings to board init functionarch/ board/ | +9 | 0 replies | |
| 15/36 | sc520 - Remove printf calls from cpu_init_farch/ | +0 | 0 replies | |
| 16/36 | eNET - Remove --no-warn when compiling dlmalloc.cboard/ | +0 | 0 replies | |
| 17/36 | eNET - Fix eNET Interrupt Setup for Linuxboard/ | +9 | 0 replies | |
| 18/36 | eNET - Add RTC support to eNETdrivers/ include/ | +8 | 0 replies | |
| 19/36 | eNET - Update board configurationsboard/ boards.cfg | +2 | 0 replies | |
| 20/36 | eNET - Define MMCR values in config.hboard/ include/ | +39 | 0 replies | |
| 21/36 | eNET - Define PAR settings in board configuration fileboard/ board/ include/ | +78 | 0 replies | |
| 22/36 | eNET - Rearrange PAR assignmentsboard/ include/ | +79 | 0 replies | |
| 23/36 | sc520 - Init SDRAM PAR earlyboard/ board/ | +13 | 0 replies | |
| 24/36 | x86 - Move initial gd to fixed locationarch/ arch/ arch/ +1 more | +37 | 0 replies | |
| 25/36 | x86 - Use Cache-As-RAM for initial stackarch/ arch/ arch/ +2 more | +133 | 0 replies | |
| 26/36 | sc520 - Move RAM sizing code from asm to Carch/ arch/ arch/ +8 more | +580 | 0 replies | |
| 27/36 | x86 - Defer setup of final stackarch/ arch/ | +33 | 0 replies | |
| 28/36 | x86 - Move call to dram_init_f into board_init_farch/ arch/ | +5 | 0 replies | |
| 29/36 | x86 - Move test for cold boot into init functionsarch/ arch/ | +11 | 0 replies | |
| 30/36 | x86 - Move console initialisation into board_init_farch/ | +12 | 0 replies | |
| 31/36 | x86 - Fix incorrect usage of relocation offsetarch/ arch/ | +6 | 0 replies | |
| 32/36 | x86 - Split board_init_f() into init_fnc_t compatible functionsarch/ arch/ | +74 | 0 replies | |
| 33/36 | x86 - Rearrange function calls in board_init_farch/ | +8 | 0 replies | |
| 34/36 | x86 - Convert board_init_f to use an init_sequencearch/ | +30 | 0 replies | |
| 35/36 | sc520 - Release CAR and enable cachingarch/ | +11 | 0 replies | |
| 36/36 | eNET - Move initial Global Data into CARinclude/ | +1 | 0 replies |
Reviews trailers per patch
None of the 37 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Wolfgang Denk |
|---|---|
| Series | A-b |
| 1/36 | |
| 2/36 | |
| 3/36 | |
| 4/36 | |
| 5/36 | |
| 6/36 | |
| 7/36 | |
| 8/36 | |
| 9/36 | |
| 10/36 | |
| 11/36 | |
| 12/36 | |
| 12/36 | |
| 13/36 | |
| 14/36 | |
| 15/36 | |
| 16/36 | |
| 17/36 | |
| 18/36 | |
| 19/36 | |
| 20/36 | |
| 21/36 | |
| 22/36 | |
| 23/36 | |
| 24/36 | |
| 25/36 | |
| 26/36 | |
| 27/36 | |
| 28/36 | |
| 29/36 | |
| 30/36 | |
| 31/36 | |
| 32/36 | |
| 33/36 | |
| 34/36 | |
| 35/36 | |
| 36/36 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [U-Boot] [PATCH 00/36] Massive x86 Update - Bring x86 in line with ARM and PPC
It's been a while since I've posted a patch (missed the last release cycle entirely). I've been working on bringing x86 into line with ARM and PowerPC with the init sequence running in flash. Currently, the SDRAM gets initialised in asm before jumping into C and the first thing the C code did was copy U-Boot to RAM.
The breakthrough came when I discovered that the sc520 CPU can be configured to enable the 16kB cache to be used as Cache-As-RAM (Thanks to Juergen Beisert). The 'big' changes in this series are:
- Memory initialisation is done in C (26)
- The initial global data is placed in CAR (Patches 24 & 36) - These are interesting and could be used to get rid of the fixed register for global data, but that would break the standalone API which uses it
- Board initialisation moved into RAM (patches 27 - 34)
The fist 22 patches are mostly cleanups to make the remaining patches a little simpler.
Regards,
Graeme
Graeme Russ (36):
x86 - Fix definition of global_data struct for asm-offsets.c x86 - Fix mangled umlauts
x86 - Move config.mk options to arch/i386/config.mk x86 - move linker script into arch folder
x86 - Paramatize link locations
x86 - Add stack dump to register dump
x86 - Parametize location of Real Mode code
x86 - Move Global Descriptor Table defines to processor.h x86 - Add processor flags header from linux
x86 - Call early_board_init when warm booting
x86 - Make cpu init functions weak
sc520 - Sort Makefile
sc520 - Define MMCR address in include file
sc520 - Move board specific settings to board init function sc520 - Remove printf calls from cpu_init_f
eNET - Remove --no-warn when compiling dlmalloc.c eNET - Fix eNET Interrupt Setup for Linux
eNET - Add RTC support to eNET
eNET - Update board configurations
eNET - Define MMCR values in config.h
eNET - Define PAR settings in board configuration file eNET - Rearrange PAR assignments
sc520 - Init SDRAM PAR early
x86 - Move initial gd to fixed location
x86 - Use Cache-As-RAM for initial stack
sc520 - Move RAM sizing code from asm to C
x86 - Defer setup of final stack
x86 - Move call to dram_init_f into board_init_f
x86 - Move test for cold boot into init functions
x86 - Move console initialisation into board_init_f x86 - Fix incorrect usage of relocation offset
x86 - Split board_init_f() into init_fnc_t compatible functions x86 - Rearrange function calls in board_init_f
x86 - Convert board_init_f to use an init_sequence sc520 - Release CAR and enable caching
eNET - Move initial Global Data into CAR
arch/i386/config.mk | 13 +- arch/i386/cpu/config.mk | 9 +- arch/i386/cpu/cpu.c | 35 ++- arch/i386/cpu/interrupts.c | 19 +- arch/i386/cpu/sc520/Makefile | 5 +- arch/i386/cpu/sc520/sc520.c | 146 +------- arch/i386/cpu/sc520/sc520_asm.S | 615 ------------------------------- arch/i386/cpu/sc520/sc520_car.S | 94 +++++ arch/i386/cpu/sc520/sc520_sdram.c | 522 ++++++++++++++++++++++++++ arch/i386/cpu/start.S | 107 +++--- arch/i386/cpu/start16.S | 5 +- arch/i386/cpu/u-boot.lds | 96 +++++ arch/i386/include/asm/global_data.h | 21 +- arch/i386/include/asm/ic/sc520.h | 70 ++++- arch/i386/include/asm/processor-flags.h | 100 +++++ arch/i386/include/asm/processor.h | 9 +- arch/i386/include/asm/u-boot-i386.h | 2 + arch/i386/lib/board.c | 148 +++++--- arch/i386/lib/realmode.c | 7 +- board/eNET/config.mk | 6 +- board/eNET/eNET.c | 120 ++++--- board/eNET/eNET_start.S | 3 +- board/eNET/eNET_start16.S | 16 +- board/eNET/u-boot.lds | 104 ------ boards.cfg | 3 +- drivers/rtc/mc146818.c | 6 + include/configs/eNET.h | 147 ++++++++- 27 files changed, 1351 insertions(+), 1077 deletions(-) delete mode 100644 arch/i386/cpu/sc520/sc520_asm.S create mode 100644 arch/i386/cpu/sc520/sc520_car.S create mode 100644 arch/i386/cpu/sc520/sc520_sdram.c create mode 100644 arch/i386/cpu/u-boot.lds create mode 100644 arch/i386/include/asm/processor-flags.h delete mode 100644 board/eNET/u-boot.lds