mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
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:
committed by
Compute-Runtime-Automation
parent
ec19ce536a
commit
2b964254d6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user