<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/MdeModulePkg/Bus/Ata, branch dependabot/github_actions/actions/github-script-9</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fgithub-script-9</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fgithub-script-9'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-05-06T10:43:05+00:00</updated>
<entry>
<title>MdeModulePkg: Cleanup debug print readability</title>
<updated>2026-05-06T10:43:05+00:00</updated>
<author>
<name>Benjamin Doron</name>
<email>benjamin.doron00@gmail.com</email>
</author>
<published>2023-04-01T20:27:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=8add400a8be81ad493f4bd6f4f8dadebb01388e7'/>
<id>urn:sha1:8add400a8be81ad493f4bd6f4f8dadebb01388e7</id>
<content type='text'>
All debug prints should end in a newline character.

Signed-off-by: Benjamin Doron &lt;benjamin.doron00@gmail.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Replace include guards with #pragma once</title>
<updated>2026-02-23T21:01:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2026-02-03T18:48:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=7a934d0befca7d10f361c76af6d2fcb6eb48c835'/>
<id>urn:sha1:7a934d0befca7d10f361c76af6d2fcb6eb48c835</id>
<content type='text'>
Replace traditional `#ifndef`/`#define`/`#endif` include guards with
`#pragma` once.

`#pragma once` is a widely supported preprocessor directive that
prevents header files from being included multiple times. It is
supported by all toolchains used to build edk2: GCC, Clang/LLVM, and
MSVC.

Compared to macro-based include guards, `#pragma once`:

- Eliminates the risk of macro name collisions or copy/paste errors
  where two headers inadvertently use the same guard macro.
- Eliminate inconsistency in the way include guard macros are named
  (e.g., some files use `__FILE_H__`, others use `FILE_H_`, etc.).
- Reduces boilerplate (three lines replaced by one).
- Avoids polluting the macro namespace with guard symbols.
- Can improve build times as the preprocessor can skip re-opening the
  file entirely, rather than re-reading it to find the matching
  `#endif` ("multiple-include optimization").
  - Note that some compilers may already optimize traditional include
    guards, by recognzining the idiomatic pattern.

This change is made acknowledging that overall portability of the
code will technically be reduced, as `#pragma once` is not part of the
C/C++ standards.

However, this is considered acceptable given:

1. edk2 already defines a subset of supported compilers in
   BaseTools/Conf/tools_def.template, all of which have supported
   `#pragma once` for over two decades.
2. There have been concerns raised to the project about inconsistent
   include guard naming and potential macro collisions.

Approximate compiler support dates:

- MSVC: Supported since Visual C++ 4.2 (1996)
- GCC: Supported since 3.4 (2004)
  (http://gnu.ist.utl.pt/software/gcc/gcc-3.4/changes.html)
- Clang (LLVM based): Since initial release in 2007

Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Define PCD for SATA ready for operation timeout.</title>
<updated>2025-11-22T17:01:23+00:00</updated>
<author>
<name>gapandya</name>
<email>gaurav.pandya@amd.com</email>
</author>
<published>2025-10-18T09:42:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=56032225e36403f4f33bd4f8283aa512fd28699d'/>
<id>urn:sha1:56032225e36403f4f33bd4f8283aa512fd28699d</id>
<content type='text'>
Some large capacity SATA HDD requires more time from power on
to ready state.
Making timeout value configurable by defining PCD
PcdSataDeviceReadyTimeout will allow platform.dsc to serve these
devices.
Defining gEfiMdeModulePkgTokenSpaceGuid.PcdSataDeviceReadyTimeout
with default value 16 Seconds in MdeModulePkg.dec.

Signed-off-by: gapandya &lt;gaurav.pandya@amd.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Update AtaPassThru to UEFI 2.10A</title>
<updated>2025-01-09T04:40:45+00:00</updated>
<author>
<name>INDIA\sachinganesh</name>
<email>sachinganesh@ami.com</email>
</author>
<published>2024-10-23T13:09:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=1a23fe74725da5e268f9782834fe83c85dcb4250'/>
<id>urn:sha1:1a23fe74725da5e268f9782834fe83c85dcb4250</id>
<content type='text'>
UEFI 2.10A Specification has added a new error case to
EFI_ATA_PASS_THRU_PROTOCOL.GetNextDevice API which handles
port multiplier not being connected to the Port.

Signed-off-by: Sachin Ganesh &lt;sachinganesh@ami.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Update ReceiveData and SendData function description</title>
<updated>2024-03-13T02:48:38+00:00</updated>
<author>
<name>Qingyu Shang</name>
<email>qingyu.shang@intel.com</email>
</author>
<published>2024-02-26T03:05:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=6f67ed45e03b554337daba2599a24b3352ad3438'/>
<id>urn:sha1:6f67ed45e03b554337daba2599a24b3352ad3438</id>
<content type='text'>
AtaBusDxe, NvmExpressDxe, ScsiDiskDxe and EmmcDxe is used to back the
EFI_STORAGE_SECURITY_COMMAND_PROTOCOL, update the parameter 'MediaId'
description for the protocol function ReceiveData and SendData as
described in UEFI Spec 2.10 section 13.14.

Cc: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Signed-off-by: Qingyu Shang &lt;qingyu.shang@intel.com&gt;
Reviewed-by: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/Bus/Ata/AtaBusDxe: Fix SIGN_EXTENSION Coverity issue</title>
<updated>2023-09-20T05:47:00+00:00</updated>
<author>
<name>Ranbir Singh</name>
<email>Ranbir.Singh3@Dell.com</email>
</author>
<published>2023-07-17T11:59:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=4fb69c2bee3006b08ca2abba58843f7573e0c5c6'/>
<id>urn:sha1:4fb69c2bee3006b08ca2abba58843f7573e0c5c6</id>
<content type='text'>
Line number 365 does contain a typecast with UINT32, but it is after
all the operations (16-bit left shift followed by OR'ing) are over.
To avoid any SIGN_EXTENSION, typecast the intermediate result after
16-bit left shift operation immediately with UINT32.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4209

Cc: Hao A Wu &lt;hao.a.wu@intel.com&gt;
Cc: Ray Ni &lt;ray.ni@intel.com&gt;
Signed-off-by: Ranbir Singh &lt;Ranbir.Singh3@Dell.com&gt;
Signed-off-by: Ranbir Singh &lt;rsingh@ventanamicro.com&gt;
Reviewed-by: Hao A Wu &lt;hao.a.wu@intel.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/Bus/Ata/AtaAtapiPassThru: Fix UNUSED_VALUE Coverity issue</title>
<updated>2023-08-02T03:13:36+00:00</updated>
<author>
<name>Ranbir Singh</name>
<email>Ranbir.Singh3@Dell.com</email>
</author>
<published>2023-07-17T04:24:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=d11968fcc56cbbffef7d906048b00faea9415447'/>
<id>urn:sha1:d11968fcc56cbbffef7d906048b00faea9415447</id>
<content type='text'>
The return value stored in Status after call to SetDriveParameters
is not made of any use thereafter and hence it remains as UNUSED.

Based on Hao's findings (https://edk2.groups.io/g/devel/message/106844),
the successful execution of SetDriveParameters() is not mandatory for
initializing IDE mode of a hard disk device. Hence remove the 'Status'
assignment of the return value from SetDriveParameters() and instead add
error checks &amp; DEBUG_WARN level messages within SetDriveParameters()
function after sending INIT_DRIVE_PARAM &amp; SET_MULTIPLE_MODE ATA commands.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4204

Cc: Hao A Wu &lt;hao.a.wu@intel.com&gt;
Cc: Ray Ni &lt;ray.ni@intel.com&gt;
Signed-off-by: Ranbir Singh &lt;Ranbir.Singh3@Dell.com&gt;
Signed-off-by: Ranbir Singh &lt;rsingh@ventanamicro.com&gt;
Reviewed-by: Hao A Wu &lt;hao.a.wu@intel.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/Bus/Ata/AtaAtapiPassThru: Fix SIGN_EXTENSION Coverity issue</title>
<updated>2023-08-02T03:13:36+00:00</updated>
<author>
<name>Ranbir Singh</name>
<email>Ranbir.Singh3@Dell.com</email>
</author>
<published>2023-07-17T04:24:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=c7c1170a4568ecc0f63e14ca6a844d40f47519a9'/>
<id>urn:sha1:c7c1170a4568ecc0f63e14ca6a844d40f47519a9</id>
<content type='text'>
Line number 1348 does contain a typecast with UINT32, but it is after
all the operations (16-bit left shift followed by OR'ing) are over.
To avoid any SIGN_EXTENSION, typecast the intermediate result after
16-bit left shift operation immediately with UINT32.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4204

Cc: Hao A Wu &lt;hao.a.wu@intel.com&gt;
Cc: Ray Ni &lt;ray.ni@intel.com&gt;
Signed-off-by: Ranbir Singh &lt;Ranbir.Singh3@Dell.com&gt;
Signed-off-by: Ranbir Singh &lt;rsingh@ventanamicro.com&gt;
Reviewed-by: Hao A Wu &lt;hao.a.wu@intel.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/Bus: Fix port multiplier port in AhciPei PEIM</title>
<updated>2023-06-07T03:13:56+00:00</updated>
<author>
<name>Neo Hsueh</name>
<email>Hong-Chih.Hsueh@amd.com</email>
</author>
<published>2023-06-02T18:05:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=67fc78d026490ea4c375eeb19724abb40e7be8f2'/>
<id>urn:sha1:67fc78d026490ea4c375eeb19724abb40e7be8f2</id>
<content type='text'>
If there is no port multiplier, PortMultiplierPort should be converted
to 0 to follow AHCI spec.
The same logic already applied in AtaAtapiPassThruDxe driver.

Signed-off-by: Neo Hsueh &lt;Hong-Chih.Hsueh@amd.com&gt;
Acked-by: Abner Chang &lt;abner.chang@amd.com&gt;
Reviewed-by: Hao A Wu &lt;hao.a.wu@intel.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Update code to be more C11 compliant by using __func__</title>
<updated>2023-04-10T14:19:57+00:00</updated>
<author>
<name>Rebecca Cran</name>
<email>rebecca@bsdio.com</email>
</author>
<published>2023-04-06T19:50:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=7b82da70edf7dda2c6f4e853f100df620bd5c0f3'/>
<id>urn:sha1:7b82da70edf7dda2c6f4e853f100df620bd5c0f3</id>
<content type='text'>
__FUNCTION__ is a pre-standard extension that gcc and Visual C++ among
others support, while __func__ was standardized in C99.

Since it's more standard, replace __FUNCTION__ with __func__ throughout
MdeModulePkg.

Signed-off-by: Rebecca Cran &lt;rebecca@bsdio.com&gt;
Reviewed-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Reviewed-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
</feed>
