Design Guide
Page 3
23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide Contents Contents Revision History xi Introduction 1 Audience 1 Processor Models and Steppings 2 AMD-K6™E Embedded Processor 3 AMD-K6™-2 Processor 3 AMD-K6™-2E Embedded Processor 4 AMD-K6™-2E+ Embedded Processor 4 AMD-K6™-III Processor 5 AMD-K6™-IIIE+ Embedded Processor 5 BIOS Consideration Checklist 6 CPUID 6 CPU Speed Detection 6 Model-Specific Registers (MSRs 6 Cache Testing 7 SMM Issues 7 States after...
23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide Contents Contents Revision History xi Introduction 1 Audience 1 Processor Models and Steppings 2 AMD-K6™E Embedded Processor 3 AMD-K6™-2 Processor 3 AMD-K6™-2E Embedded Processor 4 AMD-K6™-2E+ Embedded Processor 4 AMD-K6™-III Processor 5 AMD-K6™-IIIE+ Embedded Processor 5 BIOS Consideration Checklist 6 CPUID 6 CPU Speed Detection 6 Model-Specific Registers (MSRs 6 Cache Testing 7 SMM Issues 7 States after...
Design Guide
Page 4
... Functions 61 Determining the Processor Signature 61 Identifying Supported Features 63 Determining Instruction Set Support 64 Detection Algorithm for Determining Instruction Set Support 65 AMD Processor Signature (Extended Function 66 Displaying the Processor's Name 66 Displaying Cache Information 67 Determining AMD PowerNow!™ Technology Information . . 67 Sample Code 67 New AMD-K6™ Processor Instructions 68 Additional Considerations...
... Functions 61 Determining the Processor Signature 61 Identifying Supported Features 63 Determining Instruction Set Support 64 Detection Algorithm for Determining Instruction Set Support 65 AMD Processor Signature (Extended Function 66 Displaying the Processor's Name 66 Displaying Cache Information 67 Determining AMD PowerNow!™ Technology Information . . 67 Sample Code 67 New AMD-K6™ Processor Instructions 68 Additional Considerations...
Design Guide
Page 5
23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide Software Timing Dependencies Relative to Memory Controller Setup 69 Pipelining Support 69 Read-Only Memory 70 Appendix A 71 CPUID 71 Standard Functions 72 Extended Functions 75 Cache Associativity Field Definitions 80 Appendix B 81 Values Returned by the CPUID Instruction 81 Index 83 Contents v
23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide Software Timing Dependencies Relative to Memory Controller Setup 69 Pipelining Support 69 Read-Only Memory 70 Appendix A 71 CPUID 71 Standard Functions 72 Extended Functions 75 Cache Associativity Field Definitions 80 Appendix B 81 Values Returned by the CPUID Instruction 81 Index 83 Contents v
Design Guide
Page 7
...) (Models 7 and 8/[7:0 20 Figure 4. L2 Data-EAX 42 Figure 15. L2 Cache Sector and Line Organization 41 Figure 13. 23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide List of Figures vii Extended Feature Enable Register (EFER) (Model 8/[F:8 24 Figure 6. Page Flush/Invalidate Register (PFIR) (Models 8/[F:8], 9, and D 36 Figure...
...) (Models 7 and 8/[7:0 20 Figure 4. L2 Data-EAX 42 Figure 15. L2 Cache Sector and Line Organization 41 Figure 13. 23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide List of Figures vii Extended Feature Enable Register (EFER) (Model 8/[F:8 24 Figure 6. Page Flush/Invalidate Register (PFIR) (Models 8/[F:8], 9, and D 36 Figure...
Design Guide
Page 8
... (Low-Power Model D 54 Figure 27. L2 Data-EAX (same as Figure 16 53 Figure 26. L2 Tag or Data Location (AMD-K6™-IIIE+ Processor)-EDX 50 Figure 22. Contents of EAX Register Returned by Extended Function 8000_0001h 66 viii List of EAX Register Returned by Function 1 .... . . . 62 Figure 30. Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide 23913A/0-November 2000 Figure 20. Bus Divisor and Voltage ID Control (BVC) Field (Low-Power Model D 56 Figure 29...
... (Low-Power Model D 54 Figure 27. L2 Data-EAX (same as Figure 16 53 Figure 26. L2 Tag or Data Location (AMD-K6™-IIIE+ Processor)-EDX 50 Figure 22. Contents of EAX Register Returned by Extended Function 8000_0001h 66 viii List of EAX Register Returned by Function 1 .... . . . 62 Figure 30. Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide 23913A/0-November 2000 Figure 20. Bus Divisor and Voltage ID Control (BVC) Field (Low-Power Model D 56 Figure 29...
Design Guide
Page 9
...(STAR) Definition (Models 8, 9, and D 22 Table 12. AMD-K6™ Processor (Model 8/[F:8]) and AMD-K6™-2E Processor (Model 8/[F:8]) State after RESET 9 Table 5. AMD-K6™E Processor (Model 7) and AMD-K6™ Processor (Model 8/[7:0]) State after RESET 8 Table 3. Extended Feature Enable ...11. Features of Tables Table 1. 23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide List of Tables List of the AMD-K6™ Processor Family 2 Table 2. Processor-to-Bus Clock Ratios (Models 8/[F:8] and 9) . . 35 ix...
...(STAR) Definition (Models 8, 9, and D 22 Table 12. AMD-K6™ Processor (Model 8/[F:8]) and AMD-K6™-2E Processor (Model 8/[F:8]) State after RESET 9 Table 5. AMD-K6™E Processor (Model 7) and AMD-K6™ Processor (Model 8/[7:0]) State after RESET 8 Table 3. Extended Feature Enable ...11. Features of Tables Table 1. 23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide List of Tables List of the AMD-K6™ Processor Family 2 Table 2. Processor-to-Bus Clock Ratios (Models 8/[F:8] and 9) . . 35 ix...
Design Guide
Page 10
...Feature Flag Descriptions 76 Table 33. ECX Format Returned by Model D 45 Table 23. Associativity Values for AMD-K6™ Processors 62 Table 30. Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide 23913A/0-November 2000 Table 18. Extended Feature Enable Register (EFER) Definition (Models 9 and... D 39 Table 21. CPUID Functions in AMD-K6™ Processors 60 Table 29. Enhanced Power Management Register (EPMR) Definition (Low-Power Model D 54 Table 26. Bus Divisor and ...
...Feature Flag Descriptions 76 Table 33. ECX Format Returned by Model D 45 Table 23. Associativity Values for AMD-K6™ Processors 62 Table 30. Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide 23913A/0-November 2000 Table 18. Extended Feature Enable Register (EFER) Definition (Models 9 and... D 39 Table 21. CPUID Functions in AMD-K6™ Processors 60 Table 29. Enhanced Power Management Register (EPMR) Definition (Low-Power Model D 54 Table 26. Bus Divisor and ...
Design Guide
Page 11
Revision History xi 23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide Revision History Date November 2000 Rev Description A Initial public release.
Revision History xi 23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide Revision History Date November 2000 Rev Description A Initial public release.
Design Guide
Page 12
Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide 23913A/0-November 2000 xii Revision History
Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide 23913A/0-November 2000 xii Revision History
Design Guide
Page 13
... following processors in the AMD-K6 family: s AMD-K6E embedded processor s AMD-K6-2 processor s AMD-K6-2E embedded processor s AMD-K6-2E+ embedded processor s AMD-K6-III processor s AMD-K6-IIIE+ embedded processor There can be more than one way to fully support the AMD-K6™ processors used by AMD's embedded customers. All referenced AMD-K6 processor documents can be found on the AMD website at http://www.amd.com/. 23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS...
... following processors in the AMD-K6 family: s AMD-K6E embedded processor s AMD-K6-2 processor s AMD-K6-2E embedded processor s AMD-K6-2E+ embedded processor s AMD-K6-III processor s AMD-K6-IIIE+ embedded processor There can be more than one way to fully support the AMD-K6™ processors used by AMD's embedded customers. All referenced AMD-K6 processor documents can be found on the AMD website at http://www.amd.com/. 23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS...
Design Guide
Page 14
... 4 (L2D) in Number 3DNow!™ 3DNow! Features of the AMD-K6™ Processor Family Processor AMD-K6E AMD-K6-2 AMD-K6-2 and AMD-K6-2E AMD-K6-2E+ AMD-K6-III AMD-K6-IIIE+ Model/ Process (in the EFER register, the bits and fields within the AMD-K6 family of each member. Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide 23913A/0-November 2000 Processor Models and Steppings Four models within these...
... 4 (L2D) in Number 3DNow!™ 3DNow! Features of the AMD-K6™ Processor Family Processor AMD-K6E AMD-K6-2 AMD-K6-2 and AMD-K6-2E AMD-K6-2E+ AMD-K6-III AMD-K6-IIIE+ Model/ Process (in the EFER register, the bits and fields within the AMD-K6 family of each member. Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide 23913A/0-November 2000 Processor Models and Steppings Four models within these...
Design Guide
Page 15
23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide AMD-K6™E Embedded Processor Model 7 Model 7 is the first processor manufactured in the 0.25-micron process. AMD-K6™-2 Processor Model 8/[7:0] Model 8/[F:8] Some important features supported by the AMD-K6-2 processor include the 3DNow!™ instruction set and a 100-MHz processor bus. Model 8/[F:8] is any of these six MSRs are not defined...
23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide AMD-K6™E Embedded Processor Model 7 Model 7 is the first processor manufactured in the 0.25-micron process. AMD-K6™-2 Processor Model 8/[7:0] Model 8/[F:8] Some important features supported by the AMD-K6-2 processor include the 3DNow!™ instruction set and a 100-MHz processor bus. Model 8/[F:8] is any of these six MSRs are not defined...
Design Guide
Page 16
...models 8/8, 8/9, 8/A, 8/B, 8/C, 8/D, 8/E, or 8/F. Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide 23913A/0-November 2000 AMD-K6™-2E Embedded Processor Model 8/[F:8] The A M D -K 6 -2 E p ro ...c e s s o r a l s o s u p p o r t s t h e 3 D N ow ! s Model D/[7:4] supports an additional MSR, the Level-2 Cache Array Access Register (L2AAR), for standard-power versions. instruction set and a 100-MHz processor bus. It also supports the 3DNow! AMD-K6™-2E+ Embedded Processor...
...models 8/8, 8/9, 8/A, 8/B, 8/C, 8/D, 8/E, or 8/F. Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide 23913A/0-November 2000 AMD-K6™-2E Embedded Processor Model 8/[F:8] The A M D -K 6 -2 E p ro ...c e s s o r a l s o s u p p o r t s t h e 3 D N ow ! s Model D/[7:4] supports an additional MSR, the Level-2 Cache Array Access Register (L2AAR), for standard-power versions. instruction set and a 100-MHz processor bus. It also supports the 3DNow! AMD-K6™-2E+ Embedded Processor...
Design Guide
Page 17
23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide AMD-K6™-III Processor Model 9/[3:0] In addition to supporting the 3DNow! instruction set and a 100MHz processor bus, the AMD-K6-III processor contains a 256Kbyte backside L2 cache. Low-power versions of four possible model...is manufactured in the EFER register, the bits and fields within these ten MSRs are defined identically. AMD-K6™-IIIE+ Embedded Processor Model D/[3:0] In addition to supporting the 3DNow! s Model 9/[3:0] implements the same ten MSRs as ...
23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide AMD-K6™-III Processor Model 9/[3:0] In addition to supporting the 3DNow! instruction set and a 100MHz processor bus, the AMD-K6-III processor contains a 256Kbyte backside L2 cache. Low-power versions of four possible model...is manufactured in the EFER register, the bits and fields within these ten MSRs are defined identically. AMD-K6™-IIIE+ Embedded Processor Model D/[3:0] In addition to supporting the 3DNow! s Model 9/[3:0] implements the same ten MSRs as ...
Design Guide
Page 18
... compare the result to the real-time clock (RTC) to properly identify the processor. s For the AMD-K6-2E, AMD-K6-2E+, AMD-K6-III, and AMD-K6-IIIE+ processors, utilize the information provided in the K86™ Processors Application Note, order# 21326 for more information. s Determine the processor model, stepping, and features using functions 0000_0001h and 8000_0001h of Write Allocate in...
... compare the result to the real-time clock (RTC) to properly identify the processor. s For the AMD-K6-2E, AMD-K6-2E+, AMD-K6-III, and AMD-K6-IIIE+ processors, utilize the information provided in the K86™ Processors Application Note, order# 21326 for more information. s Determine the processor model, stepping, and features using functions 0000_0001h and 8000_0001h of Write Allocate in...
Design Guide
Page 19
... Access Register (L2AAR)" on page 13 for testing of the L1 cache. BIOS Consideration Checklist 7 However, the AMD-K6-2E+, AMD-K6-III, and AMD-K6-IIIE+ processors do contain an MSR that allows for the IDT Base and possibly Pentium processor-reserved areas. See "System Management Mode (SMM)" on page 40. 23913A/0-November 2000 Preliminary Information Embedded...
... Access Register (L2AAR)" on page 13 for testing of the L1 cache. BIOS Consideration Checklist 7 However, the AMD-K6-2E+, AMD-K6-III, and AMD-K6-IIIE+ processors do contain an MSR that allows for the IDT Base and possibly Pentium processor-reserved areas. See "System Management Mode (SMM)" on page 40. 23913A/0-November 2000 Preliminary Information Embedded...
Design Guide
Page 20
... sampled during the falling transition of RESET. 8 States after RESET Register EDX EFER STAR2 WHCR RESET State 0000_05MSh1 0000_0000_0000_0000h 0000_0000_0000_0000h 0000_0000_0000_0000h Notes: 1. AMD-K6™ Processor (Model 8/[F:8]) and AMD-K6™-2E Processor (Model 8/[F:8]) State after RESET Register EDX EFER PFIR PSOR STAR UWCCR WHCR RESET State 0000_05MSh1 0000_0000_0000_0002h 0000_0000_0000_0000h 0000_0000_0000_01SBh1,2 0000_0000_0000_0000h 0000_0000_0000_0000h 0000_0000_0000_0000h Notes: 1. Preliminary...
... sampled during the falling transition of RESET. 8 States after RESET Register EDX EFER STAR2 WHCR RESET State 0000_05MSh1 0000_0000_0000_0000h 0000_0000_0000_0000h 0000_0000_0000_0000h Notes: 1. AMD-K6™ Processor (Model 8/[F:8]) and AMD-K6™-2E Processor (Model 8/[F:8]) State after RESET Register EDX EFER PFIR PSOR STAR UWCCR WHCR RESET State 0000_05MSh1 0000_0000_0000_0002h 0000_0000_0000_0000h 0000_0000_0000_01SBh1,2 0000_0000_0000_0000h 0000_0000_0000_0000h 0000_0000_0000_0000h Notes: 1. Preliminary...
Design Guide
Page 21
... FLUSH# and SMI# are handled accordingly after the initialization is enabled by default after RESET. 3. 23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide Table 4. Unlike RESET, the processor preserves the contents of its caches, the floating-point state, the SMM base, MSRs, and the CD and NW bits of...
... FLUSH# and SMI# are handled accordingly after the initialization is enabled by default after RESET. 3. 23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide Table 4. Unlike RESET, the processor preserves the contents of its caches, the floating-point state, the SMM base, MSRs, and the CD and NW bits of...
Design Guide
Page 22
... of RESET. If the contents of the test are non-zero, the BIST failed. If EAX contains 0000_0000h, then BIST was successful. Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide 23913A/0-November 2000 Built-In Self-Test (BIST) Fo r a l l m o d e l s o f t h e A M D -K 6 p ro c e ss o r, B I S T i s run unconditionally following : s L1 instruction and data caches s L2 unified...
... of RESET. If the contents of the test are non-zero, the BIST failed. If EAX contains 0000_0000h, then BIST was successful. Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide 23913A/0-November 2000 Built-In Self-Test (BIST) Fo r a l l m o d e l s o f t h e A M D -K 6 p ro c e ss o r, B I S T i s run unconditionally following : s L1 instruction and data caches s L2 unified...
Design Guide
Page 23
... users. Use this : s AMD-K6(tm)-III/450 Figure 1 on page 77 for more detailed information about using the CPUID instruction, see "Embedded AMD Processor Recognition" on page 79. Table 5. Recommended Boot Strings for AMD-K6™ Processors Model Recommended Boot String Display1 Model 7 AMD-K6(tm)/XXX All steppings of the processor. The recommended boot strings (or processor names) to implement...
... users. Use this : s AMD-K6(tm)-III/450 Figure 1 on page 77 for more detailed information about using the CPUID instruction, see "Embedded AMD Processor Recognition" on page 79. Table 5. Recommended Boot Strings for AMD-K6™ Processors Model Recommended Boot String Display1 Model 7 AMD-K6(tm)/XXX All steppings of the processor. The recommended boot strings (or processor names) to implement...