Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Kopeć <[email protected]>
  • Loading branch information
mkopec committed Oct 27, 2021
2 parents 9a432d9 + d06c091 commit e52a91d
Show file tree
Hide file tree
Showing 920 changed files with 9,967 additions and 5,073 deletions.
2 changes: 1 addition & 1 deletion Documentation/RFC/chip.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

\section{Scope}
This document defines how LinuxBIOS programmers can specify chips that
are used, specified, and initalized. The current scope is for superio
are used, specified, and initialized. The current scope is for superio
chips, but the architecture should allow for specification of other chips such
as southbridges. Multiple chips of same or different type are supported.

Expand Down
2 changes: 1 addition & 1 deletion Documentation/acpi/devicetree.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
ACPI exposes a platform-independent interface for operating systems to perform
power management and other platform-level functions. Some operating systems
also use ACPI to enumerate devices that are not immediately discoverable, such
as those behind I2C or SPI busses (in contrast to PCI). This document discusses
as those behind I2C or SPI buses (in contrast to PCI). This document discusses
the way that coreboot uses the concept of a "device tree" to generate ACPI
tables for usage by the operating system.

Expand Down
4 changes: 2 additions & 2 deletions Documentation/arch/x86/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ Here's a list of known issues:
page tables in ROM will be loaded and used, which breaks code and data as
the page table doesn't contain the expected data. This in turn leads to
undefined behaviour whenever the 'wrong' address is being read.
* Disabling paging in compability mode crashes the CPU.
* Returning from long mode to compability mode crashes the CPU.
* Disabling paging in compatibility mode crashes the CPU.
* Returning from long mode to compatibility mode crashes the CPU.
* Entering long mode crashes on AMD host platforms.
4 changes: 3 additions & 1 deletion Documentation/community/forums.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ We also have a real time chat room on [IRC](ircs://irc.libera.chat/#coreboot),
also bridged to [Matrix](https://matrix.to/#/#coreboot:libera.chat) and a
[Discord](https://discord.gg/JqT8NM5Zbg) presence. You can also find us on
[OSF Slack](https://osfw.slack.com/), which has channels on many open source
firmware related topics.
firmware related topics. Slack requires that people come from specific domains
or are explicitly invited. To work around that, there's an
[invite bot](https://slack.osfw.dev/) to let people in.

## Fortnightly coreboot leadership meeting

Expand Down
2 changes: 1 addition & 1 deletion Documentation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
enable_auto_toc_tree = True

class MyCommonMarkParser(CommonMarkParser):
# remove this hack once upsteam RecommonMark supports inline code
# remove this hack once upstream RecommonMark supports inline code
def visit_code(self, mdnode):
from docutils import nodes
n = nodes.literal(mdnode.literal, mdnode.literal)
Expand Down
4 changes: 2 additions & 2 deletions Documentation/contributing/coding_style.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Coding Style

This is a short document describing the preferred coding style for the
This document describes the preferred C coding style for the
coreboot project. It is in many ways exactly the same as the Linux
kernel coding style. In fact, most of this document has been copied from
the [Linux kernel coding style](http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/plain/Documentation/CodingStyle?id=HEAD)
Expand Down Expand Up @@ -801,7 +801,7 @@ There are a LOT of cpu cycles that can go into these 5 milliseconds.

A reasonable rule of thumb is to not put inline at functions that have
more than 3 lines of code in them. An exception to this rule are the
cases where a parameter is known to be a compiletime constant, and as a
cases where a parameter is known to be a compile time constant, and as a
result of this constantness you *know* the compiler will be able to
optimize most of your function away at compile time. For a good example
of this later case, see the kmalloc() inline function.
Expand Down
4 changes: 2 additions & 2 deletions Documentation/contributing/project_ideas.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ Build an open source replacement written in Golang using existing tools
and libraries, consisting of a backend, a frontend and client side
scripts. The backend should connect to an SQL database with can be
controlled using a RESTful API. The RESTful API should have basic authentication
for managment tasks and new board status uploads.
for management tasks and new board status uploads.

At least one older test result should be keept in the database.
At least one older test result should be kept in the database.

The frontend should use established UI libraries or frameworks (for example
Angular) to display the current board status, that is if it's working or not
Expand Down
2 changes: 1 addition & 1 deletion Documentation/drivers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The drivers can be found in `src/drivers`. They are intended for onboard
and plugin devices, significantly reducing integration complexity and
they allow to easily reuse existing code accross platforms.
they allow to easily reuse existing code across platforms.

* [Intel DPTF](dptf.md)
* [IPMI KCS](ipmi_kcs.md)
Expand Down
2 changes: 1 addition & 1 deletion Documentation/flash_tutorial/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ flash IC.

## Contents

* [Flashing internaly](int_flashrom.md)
* [Flashing internally](int_flashrom.md)
* [Flashing firmware standalone](ext_standalone.md)
* [Flashing firmware externally supplying direct power](ext_power.md)
* [Flashing firmware externally without supplying direct power](no_ext_power.md)
Expand Down
2 changes: 1 addition & 1 deletion Documentation/gcov.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ time). The file gcov-io.c is unchanged.
+#define BITS_PER_UNIT 8
+#define LONG_LONG_TYPE_SIZE 64
+
+/* There are many gcc_assertions. Set the vaule to 1 if we want a warning
+/* There are many gcc_assertions. Set the value to 1 if we want a warning
+ message if the assertion fails. */
+#ifndef ENABLE_ASSERT_CHECKING
+#define ENABLE_ASSERT_CHECKING 1
Expand Down
4 changes: 2 additions & 2 deletions Documentation/getting_started/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The bootblock loads the romstage or the verstage if verified boot is enabled.

### Cache-As-Ram
The *Cache-As-Ram*, also called Non-Eviction mode, or *CAR* allows to use the
CPU cache like regular SRAM. This is particullary usefull for high level
CPU cache like regular SRAM. This is particullary useful for high level
languages like `C`, which need RAM for heap and stack.

The CAR needs to be activated using vendor specific CPU instructions.
Expand Down Expand Up @@ -85,7 +85,7 @@ The ramstage does the main device init:
* CPU init (like set up SMM)

After initialization tables are written to inform the payload or operating system
about the current hardware existance and state. That includes:
about the current hardware existence and state. That includes:

* ACPI tables (x86 specific)
* SMBIOS tables (x86 specific)
Expand Down
2 changes: 1 addition & 1 deletion Documentation/getting_started/writing_documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
That said please always try to write documentation! One problem in the
firmware development is the missing documentation. In this document
you will get a brief introduction how to write, submit and publish
documenation to coreboot.
documentation to coreboot.

## Preparations

Expand Down
2 changes: 1 addition & 1 deletion Documentation/lib/payloads/fit.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The section must be named in order to be found by the FIT parser:

## Architecture specifics

The FIT parser needs architecure support.
The FIT parser needs architecture support.

### aarch32
The source code can be found in `src/arch/arm/fit_payload.c`.
Expand Down
2 changes: 1 addition & 1 deletion Documentation/lib/timestamp.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ exist and an entry structure to hold variable number of entries.

### entries

This field holds the details of each timestamp entry, upto a maximum
This field holds the details of each timestamp entry, up to a maximum
of `MAX_TIMESTAMP_CACHE` which is defined as 16 entries. Each entry is
defined by:

Expand Down
2 changes: 1 addition & 1 deletion Documentation/mainboard/amd/padmelon/padmelon.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Three items are marked in this picture
+---------------------+--------------------+
| Size | 8 MiB |
+---------------------+--------------------+
| Flash programing | dediprog header |
| Flash programming | dediprog header |
+---------------------+--------------------+
| Package | SOIC-8 |
+---------------------+--------------------+
Expand Down
2 changes: 1 addition & 1 deletion Documentation/mainboard/emulation/qemu-aarch64.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# QEMU AArch64 emulator
This page discribes how to build and run coreboot for QEMU/AArch64.
This page describes how to build and run coreboot for QEMU/AArch64.
You can use LinuxBoot via `make menuconfig` or an arbitrary FIT image
as a payload for QEMU/AArch64.

Expand Down
2 changes: 1 addition & 1 deletion Documentation/mainboard/lenovo/Ivy_Bridge_series.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ region. The update is then written into the EC once.

[fl]: flashlayout_Ivy_Bridge.svg

## Reducing Intel Managment Engine firmware size
## Reducing Intel Management Engine firmware size

It is possible to reduce the Intel ME firmware size to free additional
space for the `bios` region. This is usually referred to as *cleaning the ME* or
Expand Down
2 changes: 1 addition & 1 deletion Documentation/mainboard/lenovo/Sandy_Bridge_series.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ region. The update is then written into the EC once.

[fl]: flashlayout_Sandy_Bridge.svg

## Reducing Intel Managment Engine firmware size
## Reducing Intel Management Engine firmware size

It is possible to reduce the Intel ME firmware size to free additional
space for the `bios` region. This is usually referred to as *cleaning the ME* or
Expand Down
2 changes: 1 addition & 1 deletion Documentation/mainboard/lenovo/vboot.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ to boot and flash a working image to the A/B partition.

## 8 MiB ROM limitation
*Lenovo* devices with 8 MiB ROM only have a `RO`+`A` partition enabled in the
default FMAP. They are missing the `B` partition, due to size constaints.
default FMAP. They are missing the `B` partition, due to size constraints.
You can still provide your own FMAP if you need `RO`+`A`+`B` partitions.

## CMOS
Expand Down
2 changes: 1 addition & 1 deletion Documentation/mainboard/ocp/tiogapass.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ To connect to console through SOL (Serial Over Lan):

## Known issues / feature gaps
- C6 state is not supported. Workaround is to disable C6 support through
target OS and Linuxboot kernel paramter, such as "cpuidle.off=1".
target OS and Linuxboot kernel parameter, such as "cpuidle.off=1".
- SMI handlers are not implemented.
- xSDT tables are not fully populated, such as processor/socket devices,
PCIe bridge devices.
Expand Down
6 changes: 3 additions & 3 deletions Documentation/mainboard/up/squared/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
+---------------------+------------+
| Internal flashing | No |
+---------------------+------------+
| In curcuit flashing | Yes |
| In circuit flashing | Yes |
+---------------------+------------+
```

Expand All @@ -67,8 +67,8 @@ The GPIO header is located on the **bottom** side (see [here][overview_bottom_li
The SPI header is located on the **bottom** side (see [here][overview_bottom_link]).
![][header_cn22]

### Preperations
In order to build coreboot, it's neccessary to extract some files from the vendor firmware. Make sure that you have a fully working dump.
### Preparations
In order to build coreboot, it's necessary to extract some files from the vendor firmware. Make sure that you have a fully working dump.
```bash
[upsquared]$ ls
firmware_vendor.rom
Expand Down
37 changes: 0 additions & 37 deletions Documentation/mainboard_io_trap_handler_sample.c

This file was deleted.

4 changes: 2 additions & 2 deletions Documentation/northbridge/intel/sandybridge/nri.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The memory initialization code has to take care of lots of duties:
+---------+-------------------------------------------------------------------+------------+--------------+
```

## (Unoffical) register documentation
## (Unofficial) register documentation
- [Sandy Bridge - Register documentation](nri_registers.md)

## Frequency selection
Expand Down Expand Up @@ -101,7 +101,7 @@ is stored to MRC cache.
As of writing the only supported error handling is to disable the failing
channel and restart the memory training sequence. It's very likely to succeed,
as memory channels operate independent of each other.
In case no DIMM could be initilized coreboot will halt. The screen will stay
In case no DIMM could be initialized coreboot will halt. The screen will stay
black until you power of your device. On some platforms there's additional
feedback to indicate such an event.

Expand Down
2 changes: 1 addition & 1 deletion Documentation/northbridge/intel/sandybridge/nri_freq.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Only **XMP profile 1** is being used in case it advertises:
* 1.5V operating voltage
* The channel's installed DIMM count doesn't exceed the XMP coded limit

In case the XMP profile doesn't fullfill those limits, the regular SPD will be
In case the XMP profile doesn't fulfill those limits, the regular SPD will be
used.
> **Note:** XMP Profiles are supported since coreboot 4.4.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1947,7 +1947,7 @@ Please handle with care!
+-----------+------------------------------------------------------------------+
| Bit | Description |
+===========+==================================================================+
| 0:7| OREF_RI, Rank idle period that defines an oppertunity for |
| 0:7| OREF_RI, Rank idle period that defines an opportunity for |
| | refresh |
+-----------+------------------------------------------------------------------+
| 8:11| Refresh_HP_WM, tREFI count level that turns the refresh |
Expand Down
2 changes: 1 addition & 1 deletion Documentation/releases/coreboot-4.11-relnotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ removed soon after release.

### `TSEG` and `cbmem_top()` mapping

Significant refactoring has bee done to achieve some consistency across platforms
Significant refactoring has been done to achieve some consistency across platforms
and to reduce code duplication.

### Build system amenities ###
Expand Down
2 changes: 1 addition & 1 deletion Documentation/releases/coreboot-4.13-relnotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ a bug in the more involved code to query options.
### Resource allocator v4

A new revision of resource allocator v4 is now added to coreboot that supports
mutiple ranges for allocating resources. Unlike the previous allocator (v3), it does
multiple ranges for allocating resources. Unlike the previous allocator (v3), it does
not use the topmost available window for allocation. Instead, it uses the first
window within the address space that is available and satisfies the resource request.
This allows utilization of the entire available address space and also allows
Expand Down
11 changes: 11 additions & 0 deletions Documentation/releases/coreboot-4.15-relnotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,16 @@ Previously, the default behaviour for Intel chipset lockdown was to let the FSP
do it. Since all related mainboards used the coreboot mechanisms for chipset
lockdown, the default behaviour was changed to that.

### Payloads unit testing

Libpayload now supports the mock architecture, which can be used for unit testing
payloads. (For examples see
[depthcharge](https://chromium.googlesource.com/chromiumos/platform/depthcharge/)
payload)

### Unit testing infrastructure

Unit testing of libpayload is now possible in the same fashion as in the main
coreboot tree.

### Add significant changes here
2 changes: 1 addition & 1 deletion Documentation/releases/coreboot-4.3-relnotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ X86
Areas with significant work on updates and fixes
------------------------------------------------
* cpu/amd/model_fxx
* intel/fsp1_x: Fix timestanps & postcodes, add native CAR & microcode
* intel/fsp1_x: Fix timestamps & postcodes, add native CAR & microcode
* nb/amd/amdfam10: Add S3, voltage & ACPI, speed fixes & MANY other
changes
* nb/amd/amdmct: Add S3, mem voltage, Fix performance & MANY other
Expand Down
2 changes: 1 addition & 1 deletion Documentation/security/intel/txt.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ More details can be found in the [Intel TXT IBB] chapter.

### Measurements
The IBBs (Initial Boot Blocks) are measured into TPM's PCR0 by the BIOS [ACM]
before the CPU reset vector is executed. To indentify the regions that need
before the CPU reset vector is executed. To identify the regions that need
to be measured, the [FIT] contains one ore multiple *Type 7* entries, that
point to the IBBs.

Expand Down
4 changes: 2 additions & 2 deletions Documentation/security/smm.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# x86 System Managment Mode
# x86 System Management Mode

## Introduction

The code running in System Management Mode (SMM) provides runtime services
to applications running in [ring0]. It has a higher privilege level than
[ring0] and resides in the SMRAM region which cannot be accessed from [ring0].

SMM can be entered by issuing System Managment Interrupts (SMIs).
SMM can be entered by issuing System Management Interrupts (SMIs).

## Secure data exchange

Expand Down
2 changes: 1 addition & 1 deletion Documentation/security/vboot/measured_boot.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The "Initial Boot Block" or "Core Root of Trust for Measurement" is the first
code block loaded at reset vector and measured by a DRTM solution.
In case SRTM mode is active, the IBB measures itself before measuring the next
code block. In coreboot, cbfs files which are part of the IBB are identified
by a metatdata tag. This makes it possible to have platform specific IBB
by a metadata tag. This makes it possible to have platform specific IBB
measurements without hardcoding them.

## Known Limitations
Expand Down
2 changes: 1 addition & 1 deletion Documentation/soc/cavium/cn81xx/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The SOC folder contains functions for:
* Secondary CPUs
* PCI

All other hardware is initilized by the BDK code, which is invoked from
All other hardware is initialized by the BDK code, which is invoked from
ramstage.

## Notes about the hardware
Expand Down
4 changes: 2 additions & 2 deletions Documentation/superio/common/ssdt.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ end
The following methods are generated for each SuperIO:
## AMTX()
Acquire the global mutex and enter config mode.
It's called this at the begining of an atomic operation to make sure
It's called this at the beginning of an atomic operation to make sure
no other ACPI code messes with the config space while working on it.

## RMTX()
Expand All @@ -63,7 +63,7 @@ This method isn't guarded with the global mutex.

## DLDN(Arg0)
Disables the (virtual) LDN given as Arg0.
This method aquires the global mutex.
This method acquires the global mutex.

## QLDN(Arg0)
Queries the state of the (virtual) LDN given as Arg0.
Expand Down
Loading

0 comments on commit e52a91d

Please sign in to comment.