Stories
Slash Boxes
Comments

SoylentNews is people

posted by Fnord666 on Sunday June 06 2021, @05:51PM   Printer-friendly
from the 640k-is-more-memory-than-anyone-will-ever-need dept.

Linux x86/x86_64 Will Now Always Reserve The First 1MB Of RAM - Phoronix:

The Linux x86/x86_64 kernel code already had logic in place for reserving portions of the first 1MB of RAM to avoid the BIOS or kernel potentially clobbering that space among other reasons while now Linux 5.13 is doing away with that "wankery" and will just unconditionally always reserve the first 1MB of RAM.

[...] The motivation now for Linux 5.13 in getting that 1MB unconditional reservation in place for Linux x86/x86_64 stems from a bug report around an AMD Ryzen system being unbootable on Linux 5.13 since the change to consolidate their early memory reservations handling. Just unconditionally doing the first 1MB makes things much simpler to handle.

The change was sent in this morning as part of x86/urgent. "Do away with all the wankery of reserving X amount of memory in the first megabyte to prevent BIOS corrupting it and simply and unconditionally reserve the whole first megabyte."

no more wankery


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 5, Insightful) by Mojibake Tengu on Sunday June 06 2021, @06:18PM (4 children)

    by Mojibake Tengu (8598) on Sunday June 06 2021, @06:18PM (#1142424) Journal

    AMD Ryzen system being unbootable on Linux 5.13

    To me it is on the contrary: Linux 5.13 unbootable on AMD Ryzen system.

    This indicates how effective is the current political reality inversion on minds of people and even on minds of engineers.

    Perhaps the kernel devs should read more of AMD AGESA documentation and AMD BKDG guide instead of naively relying on ancient intelism.

    --
    Respect Authorities. Know your social status. Woke responsibly.
    Starting Score:    1  point
    Moderation   +3  
       Insightful=3, Total=3
    Extra 'Insightful' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   5  
  • (Score: 3, Interesting) by Anonymous Coward on Sunday June 06 2021, @06:35PM (1 child)

    by Anonymous Coward on Sunday June 06 2021, @06:35PM (#1142433)

    Do you have a source for documentation which definitively states how to calculate at runtime how much memory to reserve? AMD and Intel are both notorious for withholding processor documentation for low level functionality. Just ask the coreboot project.

    • (Score: 5, Interesting) by Anonymous Coward on Sunday June 06 2021, @07:21PM

      by Anonymous Coward on Sunday June 06 2021, @07:21PM (#1142443)

      It's not a processor problem, the problem is EFI runtime services, out-of-band service processors and trusted platform insecurities. Looking at the processor only, it boots with the interrupt descriptor table at 0x00, other than that no memory is unavailable to the operating system (technically, since all interrupts are masked at bootup, even the memory at 0x00 is usable).

      But when you have other services running on a PC that can access main memory without going through the OS, all bets are off. In ancient times this included BIOS and VESA memory stores, DMA transfers before IOMMU, and any other peripheral processing offload. The subversion of the OS continued with Intel's trusted computing platform, the SMM extensions, and the idiocy that is EFI runtime services. And let's not even consider that coprocessor running Minix alongside your OS...

  • (Score: 3, Insightful) by JoeMerchant on Sunday June 06 2021, @08:55PM

    by JoeMerchant (3937) on Sunday June 06 2021, @08:55PM (#1142471)

    In some sense, it is the duty of the smaller player to conform to the larger one, and in this case there's a clear case for Linux 5.13 being much more significant than the AMD Ryzen systems.

    --
    🌻🌻 [google.com]
  • (Score: 5, Funny) by srobert on Monday June 07 2021, @02:34AM

    by srobert (4803) on Monday June 07 2021, @02:34AM (#1142599)

    "This indicates how effective is the current political reality inversion on minds of people and even on minds of engineers."

    Yes, it affects both people AND engineers.