View | Details | Raw Unified | Return to bug 194966
Collapse All | Expand All

(-)drmP.h (+3 lines)
Lines 1070-1075 Link Here
1070
extern unsigned int drm_timestamp_precision;
1070
extern unsigned int drm_timestamp_precision;
1071
extern unsigned int drm_timestamp_monotonic;
1071
extern unsigned int drm_timestamp_monotonic;
1072
1072
1073
extern unsigned int drm_force_sclk;
1074
extern unsigned int drm_force_mclk;
1075
1073
/* Device setup support (drm_drv.c) */
1076
/* Device setup support (drm_drv.c) */
1074
int	drm_probe(device_t kdev, drm_pci_id_list_t *idlist);
1077
int	drm_probe(device_t kdev, drm_pci_id_list_t *idlist);
1075
int	drm_attach(device_t kdev, drm_pci_id_list_t *idlist);
1078
int	drm_attach(device_t kdev, drm_pci_id_list_t *idlist);
(-)drm_drv.c (+5 lines)
Lines 56-61 Link Here
56
unsigned int drm_vblank_offdelay = 5000;    /* Default to 5000 msecs. */
56
unsigned int drm_vblank_offdelay = 5000;    /* Default to 5000 msecs. */
57
unsigned int drm_timestamp_precision = 20;  /* Default to 20 usecs. */
57
unsigned int drm_timestamp_precision = 20;  /* Default to 20 usecs. */
58
58
59
unsigned int drm_force_sclk = 0;            /* MHz units */
60
unsigned int drm_force_mclk = 0;            /* MHz units */
61
59
/*
62
/*
60
 * Default to use monotonic timestamps for wait-for-vblank and page-flip
63
 * Default to use monotonic timestamps for wait-for-vblank and page-flip
61
 * complete events.
64
 * complete events.
Lines 77-82 Link Here
77
	case MOD_LOAD:
80
	case MOD_LOAD:
78
		TUNABLE_INT_FETCH("drm.debug", &drm_debug_flag);
81
		TUNABLE_INT_FETCH("drm.debug", &drm_debug_flag);
79
		TUNABLE_INT_FETCH("drm.notyet", &drm_notyet_flag);
82
		TUNABLE_INT_FETCH("drm.notyet", &drm_notyet_flag);
83
		TUNABLE_INT_FETCH("drm.force_sclk", &drm_force_sclk);
84
		TUNABLE_INT_FETCH("drm.force_mclk", &drm_force_mclk);
80
		break;
85
		break;
81
	}
86
	}
82
	return (0);
87
	return (0);
(-)radeon/radeon_device.c (+9 lines)
Lines 1138-1143 Link Here
1138
	if (r)
1138
	if (r)
1139
		return r;
1139
		return r;
1140
1140
1141
	if (drm_force_sclk > 0) {
1142
		rdev->pm.default_sclk = drm_force_sclk * 100;
1143
		radeon_set_engine_clock(rdev, rdev->pm.default_sclk);
1144
	}
1145
	if (drm_force_mclk > 0) {
1146
		rdev->pm.default_mclk = drm_force_mclk * 100;
1147
		radeon_set_memory_clock(rdev, rdev->pm.default_mclk);
1148
	}
1149
1141
	r = radeon_ib_ring_tests(rdev);
1150
	r = radeon_ib_ring_tests(rdev);
1142
	if (r)
1151
	if (r)
1143
		DRM_ERROR("ib ring test failed (%d).\n", r);
1152
		DRM_ERROR("ib ring test failed (%d).\n", r);

Return to bug 194966