<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/MdeModulePkg/Bus/Ata/AtaAtapiPassThru, branch master</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-08-05T02:13:24+00:00</updated>
<entry>
<title>MdeModulePkg: Fix comparison with wider widths</title>
<updated>2026-08-05T02:13:24+00:00</updated>
<author>
<name>Aaron Pop</name>
<email>aaronpop@microsoft.com</email>
</author>
<published>2025-10-22T18:33:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=bf0dc7d78701c93a2edeeadcb0daca58f4af91a6'/>
<id>urn:sha1:bf0dc7d78701c93a2edeeadcb0daca58f4af91a6</id>
<content type='text'>
https://codeql.github.com/codeql-query-help/cpp/cpp-comparison-with-wider-type

If the narrow type (smaller range) is compared against a wide type
(larger range), the narrow value may overflow before reaching the wide
value. This can cause unexpected behavior, such as:

Infinite loops (loop condition never becomes false).
Incorrect logic (comparison results are misleading).

Signed-off-by: Aaron Pop &lt;aaronpop@microsoft.com&gt;
</content>
</entry>
<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/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: Consume new alignment-related macros</title>
<updated>2023-04-01T23:11:44+00:00</updated>
<author>
<name>Marvin Häuser</name>
<email>mhaeuser@posteo.de</email>
</author>
<published>2023-03-22T07:02:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=495809a614083bd8c43eb3323b65df36985f4a50'/>
<id>urn:sha1:495809a614083bd8c43eb3323b65df36985f4a50</id>
<content type='text'>
This patch substitutes the macros that were renamed in the first
patch with the new, shared alignment macros.

Cc: Jian J Wang &lt;jian.j.wang@intel.com&gt;
Cc: Hao A Wu &lt;hao.a.wu@intel.com&gt;
Cc: Ray Ni &lt;ray.ni@intel.com&gt;
Cc: Vitaly Cheptsov &lt;vit9696@protonmail.com&gt;
Signed-off-by: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Reviewed-by: Hao A Wu &lt;hao.a.wu@intel.com&gt;
Reviewed-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Rename IS_ALIGNED macros to avoid name collisions</title>
<updated>2023-04-01T23:11:44+00:00</updated>
<author>
<name>Marvin Häuser</name>
<email>mhaeuser@posteo.de</email>
</author>
<published>2023-03-22T07:02:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=583f1aba8b97695ebba8a9f03de0883e6d2dcd1f'/>
<id>urn:sha1:583f1aba8b97695ebba8a9f03de0883e6d2dcd1f</id>
<content type='text'>
This patch is a preparation for the patches that follow. The
subsequent patches will introduce and integrate new alignment-related
macros, which collide with existing definitions in MdeModulePkg.
Temporarily rename them to avoid build failure, till they can be
substituted with the new, shared definitions.

Cc: Jian J Wang &lt;jian.j.wang@intel.com&gt;
Cc: Hao A Wu &lt;hao.a.wu@intel.com&gt;
Cc: Ray Ni &lt;ray.ni@intel.com&gt;
Signed-off-by: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Reviewed-by: Hao A Wu &lt;hao.a.wu@intel.com&gt;
Reviewed-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/Ahci: Skip retry for non-transient errors</title>
<updated>2023-03-31T21:01:13+00:00</updated>
<author>
<name>Albecki, Mateusz</name>
<email>mateusz.albecki@intel.com</email>
</author>
<published>2023-03-27T21:37:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=eb6a74827200eedc81b8f45f332d6e9f3b3d2906'/>
<id>urn:sha1:eb6a74827200eedc81b8f45f332d6e9f3b3d2906</id>
<content type='text'>
bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=4011

Currently AHCI driver will try to retry all failed packets
regardless of the failure cause. This is a problem in password
unlock flow where number of password retries is tracked by the
device. If user passes a wrong password Ahci driver will try
to send the wrong password multiple times which will exhaust
number of password retries and force the user to restart the
machine. This commit introduces a logic to check for the cause
of packet failure and only retry packets which failed due to
transient conditions on the link. With this patch only packets for
which CRC error is flagged are retried.

Cc: Hao A Wu &lt;hao.a.wu@intel.com&gt;
Cc: Ray Ni &lt;ray.ni@intel.com&gt;
Cc: Hunter Chang &lt;hunter.chang@intel.com&gt;
Cc: Baraneedharan Anbazhagan &lt;anbazhagan@hp.com&gt;
Signed-off-by: Mateusz Albecki &lt;mateusz.albecki@intel.com&gt;
Reviewed-by: Hao A Wu &lt;hao.a.wu@intel.com&gt;
Reviewed-by: Baraneedharan Anbazhagan &lt;anbazhagan@hp.com&gt;
</content>
</entry>
</feed>
