Engineering:Apple M1

From HandWiki
Short description: Series of systems-on-a-chip designed by Apple Inc.
Apple M1
Apple M1 Pro
Apple M1 Max
Apple M1 Ultra
Illustration of an M1 processor
Illustration of an M1 (APL1102) processor
General Info
LaunchedM1: November 10, 2020[1]
M1 Pro and Max: October 18, 2021
M1 Ultra: March 8, 2022
Designed byApple Inc.
Common manufacturer(s)
Product codeM1: APL1102[2]
M1 Pro: APL1103
M1 Max: APL1105[3][verification needed]
M1 Ultra: APL1W06[citation needed]
Performance
Max. CPU clock rate3.2 GHz[1]
Cache
L1 cache192+128 KB per core (performance cores)
128+64 KB per core (efficient cores)
L2 cachePerformance Cores
M1: 12 MB
M1 Pro and M1 Max: 24 MB
M1 Ultra: 48 MB

Efficiency Cores
M1, M1 Pro, M1 Max: 4 MB
M1 Ultra: 8 MB 4 MB (M1, M1 Pro, M1 Max) or 4 MB (efficient cores)
Last level cacheM1: 8 MB
M1 Pro: 24 MB
M1 Max: 48 MB
M1 Ultra: 96 MB
Architecture and classification
ApplicationM1: Desktop (Mac Mini, iMac), notebook (MacBook family), tablet (iPad Pro and iPad Air)

M1 Pro: Notebook (MacBook Pro)

M1 Max: Notebook (MacBook Pro), desktop (Mac Studio)

M1 Ultra: Desktop (Mac Studio)
Min. feature size5 nm
Microarchitecture"Firestorm" and "Icestorm"[1]
Instruction setARMv8.5-A[4]
Physical specifications
Transistors
  • M1: 16 billion
    M1 Pro: 33.7 billion
    M1 Max: 57 billion[5]
    M1 Ultra: 114 billion
Cores
  • M1: 8 (4× high-performance + 4× high-efficiency)
    M1 Pro: 8 or 10 (6× or 8× high-performance + 2× high-efficiency)
    M1 Max: 10 (8× high-performance + 2× high-efficiency)
    M1 Ultra: 20 (16× high-performance + 4× high-efficiency)
GPU(s)Apple-designed integrated graphics

M1: 7- or 8-core GPU
M1 Pro: 14- or 16-core GPU
M1 Max: 24- or 32-core GPU

M1 Ultra: 48- or 64-core GPU
Products, models, variants
Variant(s)Apple A14
History
PredecessorIntel Core and Apple T2 chip (Mac)
Apple A12Z (iPad Pro)
Apple A14 (iPad Air)
SuccessorApple M2

Apple M1 is a series of ARM-based systems-on-a-chip (SoCs) designed by Apple Inc. as a central processing unit (CPU) and graphics processing unit (GPU) for its Macintosh desktops and notebooks, and the iPad Pro and iPad Air tablets.[6] The M1 chip initiated Apple's third change to the instruction set architecture used by Macintosh computers, switching from Intel to Apple silicon 14 years after they were switched from PowerPC to Intel, and 26 years after the transition from the original Motorola 68000 series to PowerPC. At the time of introduction in 2020, Apple said that the M1 had the world's fastest CPU core "in low power silicon" and the world's best CPU performance per watt.[6][7] Its successor, Apple M2, was announced on June 6, 2022 at WWDC.

The M1 was introduced in November 2020. The M1 was followed by the professional-focused M1 Pro and M1 Max chips in 2021. The M1 Max is a higher-powered version of the M1 Pro, with more GPU cores and memory bandwidth and a larger die size. Apple introduced the M1 Ultra in 2022, combining two M1 Max chips in one package. These chips differ largely in size and the number of functional units: for example, while the original M1 has about 16 billion transistors, the M1 Ultra has 114 billion.

Apple's macOS and iPadOS operating systems both run on the M1. Initial support for the M1 SoC in the Linux kernel was released in version 5.13 on June 27, 2021.[8] The initial versions of the M1 chips contain an architectural defect that permits sandboxed applications to exchange data, violating the security model, an issue that has been described as "mostly harmless".[9]

Design

CPU

The M1 has four high-performance "Firestorm" and four energy-efficient "Icestorm" cores, first seen on the A14 Bionic. It has a hybrid configuration similar to ARM DynamIQ and Intel's Lakefield, Alder Lake and Raptor Lake processors.[10] This combination allows power-use optimizations not possible with previous Apple–Intel architecture devices. Apple claims the energy-efficient cores use one-tenth the power of the high-performance ones.[11] The high-performance cores have an unusually large[12] 192 KB of L1 instruction cache and 128 KB of L1 data cache and share a 12 MB L2 cache; the energy-efficient cores have a 128 KB L1 instruction cache, 64 KB L1 data cache, and a shared 4 MB L2 cache. The SoC also has a 8MB System Level Cache shared by the GPU.

The M1 Pro and M1 Max use the same ARM big.LITTLE design as the M1, with eight high-performance "Firestorm" (six in the lower-binned variants of the M1 Pro) and two energy-efficient "Icestorm" cores, providing a total of ten cores (eight in the lower-binned variants of the M1 Pro).[13] The high-performance cores are clocked at 3228 MHz, and the high-efficiency cores are clocked at 2064 MHz. The eight high-performance cores are split into two clusters. Each high-performance cluster shares 12 MB of L2 cache. The two high-efficiency cores share 4 MB of L2 cache. The M1 Pro and M1 Max have 24 MB and 48 MB respectively of system level cache (SLC).[14]

The M1 Ultra combines two M1 Max chips in one package[15] for a total of 20 CPU cores and 96 MB system level cache (SLC).

GPU

The M1 integrates an Apple designed[16] eight-core (seven in some base models) graphics processing unit (GPU). Each GPU core is split into 16 Execution Units, which each contain eight Arithmetic Logic Units (ALUs). In total, the M1 GPU contains up to 128 Execution units or 1024 ALUs,[17] which Apple says can execute up to 24,576 threads simultaneously and which have a maximum floating point (FP32) performance of 2.6 TFLOPs.[10][18]

The M1 Pro integrates a 16-core (14 in some base models) graphics processing unit (GPU), while the M1 Max integrates a 32-core (24 in some base models) GPU. In total, the M1 Max GPU contains up to 512 execution units or 4096 ALUs, which have a maximum floating point (FP32) performance of 10.4 TFLOPs.

The M1 Ultra features a 48- or 64-core GPU.

Memory

Apple RAM (-MT/s) Width Data rate
M1 LPDDR4X-4266 0128 bit 068.3 GByte/s
M1 Pro LPDDR5-6400 0256 bit 204.8 GByte/s
M1 Max LPDDR5-6400 0512 bit 409.6 GByte/s
M1 Ultra LPDDR5-6400 1024 bit 819.2 GByte/s

The M1 uses a 128-bit LPDDR4X SDRAM[19] in a unified memory configuration shared by all the components of the processor. The SoC and RAM chips are mounted together in a system-in-a-package design. 8 GB and 16 GB configurations are available.

The M1 Pro has 256-bit LPDDR5 SDRAM memory, and the M1 Max has 512-bit LPDDR5 SDRAM memory. While the M1 SoC has 66.67GB/s memory bandwidth, the M1 Pro has 200GB/s bandwidth and the M1 Max has a 400GB/s bandwidth.[10] The M1 Pro comes in memory configurations of 16 GB and 32 GB, and the M1 Max comes in configurations of 32 GB and 64 GB.[20]

The M1 Ultra doubles the specs of the M1 Max for a 1024-bit (1 Kilobit or 1 Kbit or 1 Kb) memory bus with 800GB/s bandwidth in a 64 GB or 128 GB configuration.

Other features

The M1 contains dedicated neural network hardware in a 16-core Neural Engine, capable of executing 11 trillion operations per second.[10] Other components include an image signal processor, a PCIe storage controller, a USB4 controller that includes Thunderbolt 3 support, and a Secure Enclave. The M1 Pro, Max and Ultra support Thunderbolt 4.

Supported codecs on the M1 include H.264 and H.265 (8/10bit, up to 4:4:4), VP9, and JPEG.[citation needed] The M1 Pro's media engine introduces support for the Apple ProRes codec, and the M1 Max includes two engines,[21] increasing to four with the M1 Ultra.

The M1 Max supports High Power Mode on the 16-inch MacBook Pro for intensive tasks.[22] The M1 Pro supports two 6K displays at 60Hz over Thunderbolt, while the M1 Max supports a third 6K display over Thunderbolt and a 4K monitor over HDMI 2.0.[20] All parameters of the M1 Max processors are doubled in M1 Ultra processors, as they are essentially two M1 Max processors operating in parallel; they are in a single package (in size being bigger than Socket AM4 AMD Ryzen processor)[15] and seen as one processor in macOS.

Performance and efficiency

The M1 recorded competitive performance and efficiency in popular benchmarks (Geekbench 5, Cinebench R23).[23]

The 2020 M1-equipped Mac Mini draws 7 watts when idle and 39 watts at maximum load,[24] compared with 20 watts idle and 122 watts maximum load for the 2018, 6-core Intel i7 Mac mini.[25] The energy efficiency of the M1 increases battery life of M1-based MacBooks by 50% compared to previous Intel-based MacBooks.[26]

At release, the MacBook Air (M1, 2020) and MacBook Pro (M1, 2020) were praised by critics for its CPU performance and battery life, particularly compared to previous MacBooks.[27][28]

Products that use the Apple M1 series

M1

M1 Pro

  • MacBook Pro (14-inch and 16-inch, 2021)

M1 Max

  • MacBook Pro (14-inch and 16-inch, 2021)
  • Mac Studio (2022)

M1 Ultra

  • Mac Studio (2022)

Problems

USB power delivery bricking

After its release, some users who charged M1 devices through USB-C hubs reported bricking their device.[34] The devices that are reported to cause this issue were third-party USB-C hubs and non-Thunderbolt docks (excluding Apple's own dongle).[34] Apple handled this issue by replacing the logic board and by telling its customers not to charge through those hubs.[citation needed] macOS Big Sur 11.2.2 includes a fix to prevent 2019 or later MacBook Pro models and 2020 or later MacBook Air models from being damaged by certain third-party USB-C hubs and docks.[35][36]

Security vulnerabilities

M1racles

A flaw in M1 processors, given the name "M1racles", was announced in May 2021. Two sandboxed applications can exchange data without the system's knowledge by using an unintentionally writable processor register as a covert channel, violating the security model and constituting a minor vulnerability. It was discovered by Hector Martin, founder of the Asahi Linux project for Linux on Apple Silicon.[37]

Augury

In May 2022 a flaw termed "Augury" was announced involving the Data-Memory Dependent Prefetcher (DMP) in M1 chips, discovered by researchers at Tel Aviv University, the University of Illinois at Urbana Champaign, and the University of Washington. It was not considered a substantial security risk at the time.[38]

Pacman

In June 2022 MIT researchers announced they had found a speculative execution vulnerability in M1 chips which they called "Pacman" after pointer authentication codes (PAC).[39] Apple said they did not believe this posed a serious threat to users.[40]

Variants

The table below shows the various SoCs based on the "Firestorm" and "Icestorm" microarchitectures.[41][42]

Variant CPU

cores (P+E)*

GPU
cores
GPU
EU
Graphics
ALU
Neural Engine

cores

Memory (GB) Transistor
count
A14 6 (2+4) 4 64 512 16 4–6 11.8 billion
M1 8 (4+4) 7 112 896 16 8–16 16 billion
M1 8 128 1024 16
M1 Pro 8 (6+2) 14 224 1792 16 16–32 34 billion
M1 Pro 10 (8+2) 16
M1 Pro 16 256 2048 16
M1 Max 10 (8+2) 24 384 3072 16 32–64 57 billion
M1 Max 32 512 4096 16
M1 Ultra 20 (16+4) 48 768 6144 32 64–128 114 billion
M1 Ultra 64 1024 8192 32

* (Performance + Power efficiency)

Gallery

These images are illustrations only.

See also

  • Rosetta 2
  • Universal 2 binary
  • List of Macintosh models grouped by CPU type

References

  1. 1.0 1.1 1.2 Frumusanu, Andrei (November 17, 2020), The 2020 Mac Mini Unleashed: Putting Apple Silicon M1 To The Test, https://www.anandtech.com/show/16252/mac-mini-apple-m1-tested, retrieved 2020-11-18 
  2. (in en-US) [Teardown Late 2020 Mac mini: Apple Silicon M1, Thunderbolt...], https://egpu.io/forums/desktop-computing/teardown-late-2020-mac-mini-apple-silicon-m1-thunderbolt-4-usb4-pcie-4/, retrieved 2020-11-18 
  3. "APL1105 from @VadimYuryev on Twitter". https://twitter.com/vadimyuryev/status/1506018921232568320. 
  4. "llvm-project/AArch64TargetParser.def · llvm/lvm-project · GitHub". 17 July 2022. https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/Support/AArch64TargetParser.def. 
  5. Shankland, Stephen. "M1 Pro and M1 Max: Here's how Apple is kicking Intel out of the Mac computer" (in en). https://www.cnet.com/tech/computing/m1-pro-and-m1-max-heres-how-apple-is-kicking-intel-out-of-the-mac-computer/. 
  6. 6.0 6.1 "The Apple M1 is the first ARM-based chipset for Macs with the fastest CPU cores and top iGPU" (in en-US). https://www.gsmarena.com/the_apple_m1_is_the_first_armbased_chipset_for_macs_with_the_fastest_cpu_cores_and_top_igpu-news-46222.php. 
  7. Sohail, Omar (2020-11-10). "Apple's 5nm M1 Chip Is the First for ARM-Based Macs – Boasts 2x More Performance Than Latest Laptop CPU, Uses One-Fourth the Power" (in en-US). https://wccftech.com/apple-5nm-m1-chip-for-arm-macs-2x-performance/. 
  8. Adorno, José (2021-06-28). "Linux Kernel 5.13 officially launches with support for M1 Macs" (in en-US). https://9to5mac.com/2021/06/28/linux-kernel-5-13-officially-launches-with-support-for-m1-macs/. 
  9. Goodin, Dan (2021-05-28). "Covert channel in Apple's M1 is mostly harmless, but it sure is interesting" (in en-us). https://arstechnica.com/gadgets/2021/05/apples-m1-chip-has-a-security-bug-but-dont-worry-its-mostly-harmless/. 
  10. 10.0 10.1 10.2 10.3 "Apple M1 Chip". Apple. https://www.apple.com/mac/m1/. 
  11. "Here's what the future of Apple silicon Macs look like". 2020-11-10. https://www.imore.com/mac-apple-silicon-transition-everything-you-need-know. 
  12. "Apple Announces The Apple Silicon M1: Ditching x86 – What to Expect, Based on A14: Apple's Humongous CPU Microarchitecture". 2020-11-10. https://www.anandtech.com/show/16226/apple-silicon-m1-a14-deep-dive/2. 
  13. "Introducing M1 Pro and M1 Max: the most powerful chips Apple has ever built" (in en-US). https://www.apple.com/newsroom/2021/10/introducing-m1-pro-and-m1-max-the-most-powerful-chips-apple-has-ever-built/. 
  14. Frumusanu, Andrei. "Apple's M1 Pro, M1 Max SoCs Investigated: New Performance and Efficiency Heights". https://www.anandtech.com/show/17024/apple-m1-max-performance-review. 
  15. 15.0 15.1 "Apple M1 Ultra Chip Is Nearly 3 Times Bigger Than AMD's Ryzen CPUs, Benchmarks Show Desktop Intel & AMD CPUs Still Ahead". 2022-03-19. https://wccftech.com/apple-m1-ultra-chip-is-nearly-3-times-bigger-amd-ryzen-cpus-benchmarks-show-intel-amd-cpus-still-ahead/. 
  16. "Apple's M1 Pro, M1 Max SoCs Investigated: New Performance and Efficiency Heights. Page 6, "GPU Performance: 2-4x For Productivity, Mixed Gaming"". https://www.anandtech.com/show/17024/apple-m1-max-performance-review/6. 
  17. Frumusanu, Andrei. "The 2020 Mac Mini Unleashed: Putting Apple Silicon M1 To The Test". https://www.anandtech.com/show/16252/mac-mini-apple-m1-tested. 
  18. Kingsley-Hughes, Adrian (10 Nov 2020). "Apple Silicon M1 chip: Here's what we know". ZDnet (Red Ventures). https://www.zdnet.com/article/apple-silicon-m1-chip-heres-what-we-know/. 
  19. "M1 MacBook Air & Pro – EXCLUSIVE Apple Interview! | The Tech Chap – YouTube". https://www.youtube.com/watch?v=2lK0ySxQyrs. 
  20. 20.0 20.1 "MacBook Pro 14- and 16-inch – Teardown" (in en-US). https://www.ifixit.com/News/54122/macbook-pro-2021-teardown. 
  21. "Compared: M1 vs M1 Pro and M1 Max" (in en). https://appleinsider.com/articles/21/10/30/compared-m1-vs-m1-pro-and-m1-max. 
  22. "16-Inch MacBook Pro With M1 Max Has a 'High Power Mode'" (in en). https://www.pcmag.com/news/16-inch-macbook-pro-with-m1-max-has-a-high-power-mode. 
  23. Antoniadis, Anastasios (November 21, 2020). "Apple M1 Benchmarks Are Here – Apple Delivered Performance and Efficiency". https://borderpolar.com/tech/apple-m1-benchmarks/. 
  24. "Mac mini power consumption and thermal output (BTU) information" (in en). https://support.apple.com/en-us/HT201897. 
  25. Lovejoy, Ben (January 28, 2021). "M1 Mac mini power consumption and thermal output figures highlight Apple Silicon efficiency". https://9to5mac.com/2021/01/28/m1-mac-mini-power-consumption/. 
  26. "MacBook Air (Retina, 2020) vs MacBook Air (M1, 2020)" (in en-US). https://www.apple.com/mac/compare/?modelList=MacBook-Air-Retina%2CMacBook-Air-M1%2CMacBookPro-13-M2%2F. 
  27. Cunningham, Andrew (December 18, 2020). "The Best MacBooks". The New York Times. https://www.nytimes.com/wirecutter/reviews/best-macbooks/. 
  28. "Yeah, Apple's M1 MacBook Pro is powerful, but it's the battery life that will blow you away". 17 November 2020. https://techcrunch.com/2020/11/17/yeah-apples-m1-macbook-pro-is-powerful-but-its-the-battery-life-that-will-blow-you-away/?guccounter=1&guce_referrer=aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS8&guce_referrer_sig=AQAAABeLBZHnOMV_t9FP1lpBUkG2zCsuevue-T3_mbbnUoPjlcLlae35kI_TWXIHCryEOZOoqJUGNPy5wIJcH4IlgtbPLTv_793dD656F0Ca3Mna9EmCj0_RW0noMk0Tt3NpKupiXeZ94Rhq8GYSbrRBRHNAOPLY13ssUMbaXcWQGwIw. 
  29. "MacBook Air (M1, 2020) – Technical Specifications". https://support.apple.com/kb/SP825?locale=en_US. 
  30. "Mac mini (M1, 2020) – Technical specifications". https://support.apple.com/kb/SP823?locale=en_US. 
  31. "MacBook Pro (13-inch, M1, 2020) – Technical Specifications". https://support.apple.com/kb/SP824?locale=en_US. 
  32. "All-new iMac features stunning design in a spectrum of vibrant colors, the breakthrough M1 chip, and a brilliant 4.5K Retina display". Apple Newsroom (Press release). Archived from the original on 2021-04-20. Retrieved 2021-04-20.
  33. 33.0 33.1 "iPad Pro – Technical Specifications" (in en-US). https://www.apple.com/ipad-pro/specs/. 
  34. 34.0 34.1 "M1 MacBook Air won't power on". https://forums.macrumors.com/threads/m1-macbook-air-wont-power-on.2272304/. 
  35. Miller, Chance (February 25, 2021). "macOS Big Sur 11.2.2 released with fix for using MacBooks with 'non-compliant' USB-C hubs". https://9to5mac.com/2021/02/25/macos-big-sur-11-2-2-usb-c-charger-fix/. 
  36. "What's new in the updates for macOS Big Sur". February 25, 2021. macOS Big Sur 11.2.2. https://support.apple.com/en-us/HT211896#macos1122. 
  37. Goodin, Dan (30 May 2021). "Apple's M1 Chip Has a Fascinating Flaw". Wired (Condé Nast). https://www.wired.com/story/apples-m1-chip-has-fascinating-flaw/. Retrieved 1 July 2021. 
  38. Roman Loyola (May 3, 2022). "Newly discovered 'Augury' flaw in M1 and A14 chips doesn't pose a serious risk (yet)". macworld.com. https://www.macworld.com/article/697101/augury-flaw-apple-silicon-m1-a14-chips-risk.html. 
  39. Ravichandran, Joseph; Na, Weon Taek; Lang, Jay; Yan, Mengjia (2022). "PACMAN: Attacking ARM Pointer Authentication with Speculative Execution". 49th Annual International Symposium on Computer Architecture. New York: Association for Computing Machinery. doi:10.1145/3470496.3527429. ISBN 9781450386104. https://doi.org/10.1145/3470496.3527429. 
  40. Carly Page (June 10, 2022). "MIT researchers uncover 'unpatchable' flaw in Apple M1 chips". techcrunch.com. https://techcrunch.com/2022/06/10/apple-m1-unpatchable-flaw/. 
  41. "Apple M1 Chip: Everything You Need to Know" (in en). https://www.macrumors.com/guide/m1/. 
  42. "Apple's M1 Ultra Chip: Everything You Need to Know" (in en). https://www.macrumors.com/guide/m1-ultra/. 

External links