Source Level Debugger fixes

when SLD is active:
- make Sip Kernel Resident
- program GPGPU_CSR_BASE_ADDRESS
- Disable Preemption

- adjust getDebuggerOption input param,
value passed has to be at least 2 bytes in size
change unit test behaviour accordingly

Change-Id: I4ec87d0e8dfcf02437fdeeffc5363314eea5dd07
This commit is contained in:
Hoppe, Mateusz
2018-05-11 13:30:07 +02:00
committed by sys_ocldev
parent 749d89a9bf
commit 47f1abe543
11 changed files with 109 additions and 9 deletions

View File

@ -343,7 +343,7 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
if (preemptionCsrAllocation)
makeResident(*preemptionCsrAllocation);
if (dispatchFlags.preemptionMode == PreemptionMode::MidThread) {
if (dispatchFlags.preemptionMode == PreemptionMode::MidThread || device->isSourceLevelDebuggerActive()) {
auto sipType = SipKernel::getSipKernelType(device->getHardwareInfo().pPlatform->eRenderCoreFamily, device->isSourceLevelDebuggerActive());
makeResident(*BuiltIns::getInstance().getSipKernel(sipType, *device).getSipAllocation());
}