mbox series

[0/2] hw/ufs: Add temperature event support and test cases

Message ID 20250225064001epcms2p81497a6cf84a0c06e54cbce0360053bf8@epcms2p8 (mailing list archive)
Headers show
Series hw/ufs: Add temperature event support and test cases | expand

Message

Keoseong Park Feb. 25, 2025, 6:40 a.m. UTC
This patch series introduces temperature event notification support in
the UFS emulation and adds corresponding test cases to validate the feature.

The first patch enables the UFS emulation to generate temperature-related 
events, including high and low temperature notifications, following the
UFS specification. This feature allows UFS drivers to handle temperature
exception events during testing and development, improving validation and
debugging capabilities for thermal event handling.

The second patch adds test cases to verify the correctness of query
attribute results related to the temperature feature. These tests ensure
that querying temperature attributes returns expected values, helping
to validate the implementation and maintain correctness in 
temperature-related operations.

Keoseong Park (2):
  hw/ufs: Add temperature event notification support
  tests/qtest/ufs-test: Add test code for the temperature feature

 hw/ufs/ufs.c           | 78 +++++++++++++++++++++++++++++++++++++++++-
 hw/ufs/ufs.h           |  2 ++
 include/block/ufs.h    | 13 ++++++-
 tests/qtest/ufs-test.c | 24 +++++++++++++
 4 files changed, 115 insertions(+), 2 deletions(-)