Skip to content
Snippets Groups Projects
Commit 2a76b632 authored by Tomeu Vizoso's avatar Tomeu Vizoso
Browse files

fixup: drm/panfrost: Expose raw GPU ID to userspace

parent 0e210c37
No related branches found
No related tags found
No related merge requests found
......@@ -23,17 +23,7 @@ static int panfrost_ioctl_get_param(struct drm_device *ddev, void *data, struct
switch(param->param) {
case PANFROST_PARAM_GPU_ID:
switch (pfdev->features.id) {
case 0x0750:
param->value = PANFROST_PARAM_GPU_ID_MALI_T760;
break;
case 0x0860:
case 0x0880:
param->value = PANFROST_PARAM_GPU_ID_MALI_T860;
break;
default:
return -ENODEV;
}
param->value = pfdev->features.id;
break;
default:
return -EINVAL;
......
......@@ -19,9 +19,6 @@ struct drm_panfrost_timespec {
__s64 tv_nsec; /* nanoseconds */
};
#define PANFROST_PARAM_GPU_ID_MALI_T760 0x00
#define PANFROST_PARAM_GPU_ID_MALI_T860 0x01
#define PANFROST_PARAM_GPU_ID 0x01
struct drm_panfrost_get_param {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment