performance: debug key for adjust ULLS on battery

ULLS controller timeout settings will be adjusted based on ac line
status and lowest queue throttle from submissions.

Lowest queue throttle is reset when controller stops ULLS.

Related-To: NEO-10800

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2024-03-22 11:18:35 +00:00
committed by Compute-Runtime-Automation
parent ec19ce536a
commit 2b964254d6
23 changed files with 365 additions and 33 deletions

View File

@@ -219,6 +219,14 @@ class MockCommandStreamReceiver : public CommandStreamReceiver {
}
SubmissionStatus initializeDeviceWithFirstSubmission(Device &device) override { return SubmissionStatus::success; }
QueueThrottle getLastDirectSubmissionThrottle() override {
return getLastDirectSubmissionThrottleReturnValue;
}
bool getAcLineConnected(bool updateStatus) const override {
return getAcLineConnectedReturnValue;
}
static constexpr size_t tagSize = 256;
static volatile TagAddressType mockTagAddress[tagSize];
std::vector<char> instructionHeapReserveredData;
@@ -242,6 +250,8 @@ class MockCommandStreamReceiver : public CommandStreamReceiver {
WaitStatus waitForCompletionWithTimeoutReturnValue{WaitStatus::ready};
CommandStreamReceiverType commandStreamReceiverType = CommandStreamReceiverType::CSR_HW;
BatchBuffer latestFlushedBatchBuffer = {};
QueueThrottle getLastDirectSubmissionThrottleReturnValue = QueueThrottle::MEDIUM;
bool getAcLineConnectedReturnValue = true;
};
class MockCommandStreamReceiverWithFailingSubmitBatch : public MockCommandStreamReceiver {