Revert "Merge branch 'pr-12'"
This reverts commit dfe104bbb96b52f47943462c296ecbcb046dffdf, reversing
changes made to 45683a4034
.
This commit is contained in:
parent
a6c9177ad1
commit
f9f311c014
1 changed files with 1 additions and 21 deletions
|
@ -45,8 +45,6 @@ NvResult nvhost_ctrl_gpu::Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8>
|
||||||
return WrapFixed(this, &nvhost_ctrl_gpu::GetActiveSlotMask, input, output);
|
return WrapFixed(this, &nvhost_ctrl_gpu::GetActiveSlotMask, input, output);
|
||||||
case 0x1c:
|
case 0x1c:
|
||||||
return WrapFixed(this, &nvhost_ctrl_gpu::GetGpuTime, input, output);
|
return WrapFixed(this, &nvhost_ctrl_gpu::GetGpuTime, input, output);
|
||||||
case 0x13:
|
|
||||||
return WrapFixed(this, &nvhost_ctrl_gpu::GetTpcMasks2, input, output);
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -73,23 +71,6 @@ NvResult nvhost_ctrl_gpu::Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8>
|
||||||
case 0x6:
|
case 0x6:
|
||||||
return WrapFixedInlOut(this, &nvhost_ctrl_gpu::GetTPCMasks3, input, output,
|
return WrapFixedInlOut(this, &nvhost_ctrl_gpu::GetTPCMasks3, input, output,
|
||||||
inline_output);
|
inline_output);
|
||||||
case 0x13: {
|
|
||||||
// NVGPU_GPU_IOCTL_NUM_VSMS
|
|
||||||
struct Parameters {
|
|
||||||
u32 num_vsms; // Output: number of SM units
|
|
||||||
u32 reserved; // Output: reserved/padding
|
|
||||||
};
|
|
||||||
static_assert(sizeof(Parameters) == 8, "Parameters is incorrect size");
|
|
||||||
|
|
||||||
// The Tegra X1 used in Switch has 2 SM units
|
|
||||||
Parameters params{
|
|
||||||
.num_vsms = 2,
|
|
||||||
.reserved = 0
|
|
||||||
};
|
|
||||||
|
|
||||||
std::memcpy(output.data(), ¶ms, sizeof(Parameters));
|
|
||||||
return NvResult::Success;
|
|
||||||
}
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -97,8 +78,7 @@ NvResult nvhost_ctrl_gpu::Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8>
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}, group={:01X}, command={:01X}", command.raw,
|
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
|
||||||
command.group, command.cmd);
|
|
||||||
return NvResult::NotImplemented;
|
return NvResult::NotImplemented;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue