Lines Matching +full:static +full:- +full:enable

57  * - 2.0.0 - initial interface
58 * - 2.1.0 - add square tiling interface
59 * - 2.2.0 - add r6xx/r7xx const buffer support
60 * - 2.3.0 - add MSPOS + 3D texture + r500 VAP regs
61 * - 2.4.0 - add crtc id query
62 * - 2.5.0 - add get accel 2 to work around ddx breakage for evergreen
63 * - 2.6.0 - add tiling config query (r6xx+), add initial HiZ support (r300->r500)
64 * 2.7.0 - fixups for r600 2D tiling support. (no external ABI change), add eg dyn gpr regs
65 …* 2.8.0 - pageflip support, r500 US_FORMAT regs. r500 ARGB2101010 colorbuf, r300->r500 CMASK, cl…
66 * 2.9.0 - r600 tiling (s3tc,rgtc) working, SET_PREDICATION packet 3 on r600 + eg, backend query
67 * 2.10.0 - fusion 2D tiling
68 * 2.11.0 - backend map, initial compute support for the CS checker
69 * 2.12.0 - RADEON_CS_KEEP_TILING_FLAGS
70 * 2.13.0 - virtual memory support, streamout
71 * 2.14.0 - add evergreen tiling informations
72 * 2.15.0 - add max_pipes query
73 * 2.16.0 - fix evergreen 2D tiled surface calculation
74 * 2.17.0 - add STRMOUT_BASE_UPDATE for r7xx
75 * 2.18.0 - r600-eg: allow "invalid" DB formats
76 * 2.19.0 - r600-eg: MSAA textures
77 * 2.20.0 - r600-si: RADEON_INFO_TIMESTAMP query
78 * 2.21.0 - r600-r700: FMASK and CMASK
79 * 2.22.0 - r600 only: RESOLVE_BOX allowed
80 * 2.23.0 - allow STRMOUT_BASE_UPDATE on RS780 and RS880
81 * 2.24.0 - eg only: allow MIP_ADDRESS=0 for MSAA textures
82 * 2.25.0 - eg+: new info request for num SE and num SH
83 * 2.26.0 - r600-eg: fix htile size computation
84 * 2.27.0 - r600-SI: Add CS ioctl support for async DMA
85 * 2.28.0 - r600-eg: Add MEM_WRITE packet support
86 * 2.29.0 - R500 FP16 color clear registers
87 * 2.30.0 - fix for FMASK texturing
88 * 2.31.0 - Add fastfb support for rs690
89 * 2.32.0 - new info request for rings working
90 * 2.33.0 - Add SI tiling mode array query
91 * 2.34.0 - Add CIK tiling mode array query
92 * 2.35.0 - Add CIK macrotile mode array query
93 * 2.36.0 - Fix CIK DCE tiling setup
94 * 2.37.0 - allow GS ring setup on r6xx/r7xx
95 * 2.38.0 - RADEON_GEM_OP (GET_INITIAL_DOMAIN, SET_INITIAL_DOMAIN),
97 * 2.39.0 - Add INFO query for number of active CUs
98 * 2.40.0 - Add RADEON_GEM_GTT_WC/UC, flush HDP cache before submitting
100 * 2.41.0 - evergreen/cayman: Add SET_BASE/DRAW_INDIRECT command parsing support
101 * 2.42.0 - Add VCE/VUI (Video Usability Information) support
102 * 2.43.0 - RADEON_INFO_GPU_RESET_COUNTER
103 * 2.44.0 - SET_APPEND_CNT packet3 support
104 * 2.45.0 - Allow setting shader registers using DMA/COPY packet3 on SI
105 * 2.46.0 - Add PFP_SYNC_ME support on evergreen
106 * 2.47.0 - Add UVD_NO_OP register support
107 * 2.48.0 - TA_CS_BC_BASE_ADDR allowed on SI
108 * 2.49.0 - DRM_RADEON_GEM_INFO ioctl returns correct vram_size/visible values
109 * 2.50.0 - Allows unaligned shader loads on CIK. (needed by OpenGL)
164 static inline void radeon_register_atpx_handler(void) {} in radeon_register_atpx_handler()
165 static inline void radeon_unregister_atpx_handler(void) {} in radeon_unregister_atpx_handler()
166 static inline bool radeon_has_atpx_dgpu_power_cntl(void) { return false; } in radeon_has_atpx_dgpu_power_cntl()
167 static inline bool radeon_is_atpx_hybrid(void) { return false; } in radeon_is_atpx_hybrid()
171 int radeon_modeset = -1;
172 int radeon_dynclks = -1;
174 int radeon_agpmode = -1;
176 int radeon_gart_size = -1; /* auto */
181 int radeon_audio = -1;
184 int radeon_pcie_gen2 = -1;
185 int radeon_msi = -1;
188 int radeon_dpm = -1;
189 int radeon_aspm = -1;
190 int radeon_runtime_pm = -1;
193 int radeon_vm_block_size = -1;
196 int radeon_bapm = -1;
197 int radeon_backlight = -1;
198 int radeon_auxch = -1;
206 MODULE_PARM_DESC(modeset, "Disable/Enable modesetting");
209 MODULE_PARM_DESC(dynclks, "Disable/Enable dynamic clocks");
212 MODULE_PARM_DESC(r4xx_atom, "Enable ATOMBIOS modesetting for R4xx");
218 MODULE_PARM_DESC(agpmode, "AGP Mode (-1 == PCI)");
221 MODULE_PARM_DESC(gartsize, "Size of PCIE/IGP gart to setup in megabytes (32, 64, etc., -1 = auto)");
233 MODULE_PARM_DESC(tv, "TV enable (0 = disable)");
236 MODULE_PARM_DESC(audio, "Audio enable (-1 = auto, 0 = disable, 1 = enable)");
242 MODULE_PARM_DESC(hw_i2c, "hw i2c engine enable (0 = disable)");
245 MODULE_PARM_DESC(pcie_gen2, "PCIE Gen2 mode (-1 = auto, 0 = disable, 1 = enable)");
248 MODULE_PARM_DESC(msi, "MSI support (1 = enable, 0 = disable, -1 = auto)");
254 MODULE_PARM_DESC(fastfb, "Direct FB access for IGP chips (0 = disable, 1 = enable)");
257 MODULE_PARM_DESC(dpm, "DPM support (1 = enable, 0 = disable, -1 = auto)");
260 MODULE_PARM_DESC(aspm, "ASPM support (1 = enable, 0 = disable, -1 = auto)");
263 MODULE_PARM_DESC(runpm, "PX runtime pm (1 = force enable, 0 = disable, -1 = PX only default)");
266 MODULE_PARM_DESC(hard_reset, "PCI config reset (1 = force enable, 0 = disable (default))");
275 MODULE_PARM_DESC(deep_color, "Deep Color support (1 = enable, 0 = disable (default))");
281 MODULE_PARM_DESC(bapm, "BAPM support (1 = enable, 0 = disable, -1 = auto)");
284 MODULE_PARM_DESC(backlight, "backlight support (1 = enable, 0 = disable, -1 = auto)");
287 MODULE_PARM_DESC(auxch, "Use native auxch experimental support (1 = enable, 0 = disable, -1 = auto)…
290 MODULE_PARM_DESC(mst, "DisplayPort MST experimental support (1 = enable, 0 = disable)");
293 MODULE_PARM_DESC(uvd, "uvd enable/disable uvd support (1 = enable, 0 = disable)");
296 MODULE_PARM_DESC(vce, "vce enable/disable vce support (1 = enable, 0 = disable)");
307 static struct pci_device_id pciidlist[] = {
313 static struct drm_driver kms_driver;
317 static int radeon_pci_probe(struct pci_dev *pdev, in radeon_pci_probe()
325 return -ENODEV; /* Avoid NULL-ptr deref in drm_get_pci_dev */ in radeon_pci_probe()
327 flags = ent->driver_data; in radeon_pci_probe()
336 dev_info(&pdev->dev, in radeon_pci_probe()
338 return -ENODEV; in radeon_pci_probe()
348 dev_info(&pdev->dev, in radeon_pci_probe()
350 return -ENODEV; in radeon_pci_probe()
355 return -EPROBE_DEFER; in radeon_pci_probe()
362 dev = drm_dev_alloc(&kms_driver, &pdev->dev); in radeon_pci_probe()
370 dev->pdev = pdev; in radeon_pci_probe()
372 dev->hose = pdev->sysdata; in radeon_pci_probe()
377 if (pci_find_capability(dev->pdev, PCI_CAP_ID_AGP)) in radeon_pci_probe()
378 dev->agp = drm_agp_init(dev); in radeon_pci_probe()
379 if (dev->agp) { in radeon_pci_probe()
380 dev->agp->agp_mtrr = arch_phys_wc_add( in radeon_pci_probe()
381 dev->agp->agp_info.aper_base, in radeon_pci_probe()
382 dev->agp->agp_info.aper_size * in radeon_pci_probe()
386 ret = drm_dev_register(dev, ent->driver_data); in radeon_pci_probe()
393 if (dev->agp) in radeon_pci_probe()
394 arch_phys_wc_del(dev->agp->agp_mtrr); in radeon_pci_probe()
395 kfree(dev->agp); in radeon_pci_probe()
402 static void
410 static void
425 * some non-power boards. in radeon_pci_shutdown()
431 static int radeon_pmops_suspend(struct device *dev) in radeon_pmops_suspend()
437 static int radeon_pmops_resume(struct device *dev) in radeon_pmops_resume()
451 static int radeon_pmops_freeze(struct device *dev) in radeon_pmops_freeze()
457 static int radeon_pmops_thaw(struct device *dev) in radeon_pmops_thaw()
463 static int radeon_pmops_runtime_suspend(struct device *dev) in radeon_pmops_runtime_suspend()
471 return -EBUSY; in radeon_pmops_runtime_suspend()
474 drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in radeon_pmops_runtime_suspend()
485 drm_dev->switch_power_state = DRM_SWITCH_POWER_DYNAMIC_OFF; in radeon_pmops_runtime_suspend()
490 static int radeon_pmops_runtime_resume(struct device *dev) in radeon_pmops_runtime_resume()
497 return -EINVAL; in radeon_pmops_runtime_resume()
499 drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in radeon_pmops_runtime_resume()
512 drm_dev->switch_power_state = DRM_SWITCH_POWER_ON; in radeon_pmops_runtime_resume()
516 static int radeon_pmops_runtime_idle(struct device *dev) in radeon_pmops_runtime_idle()
523 return -EBUSY; in radeon_pmops_runtime_idle()
526 list_for_each_entry(crtc, &drm_dev->mode_config.crtc_list, head) { in radeon_pmops_runtime_idle()
527 if (crtc->enabled) { in radeon_pmops_runtime_idle()
528 DRM_DEBUG_DRIVER("failing to power off - crtc active\n"); in radeon_pmops_runtime_idle()
529 return -EBUSY; in radeon_pmops_runtime_idle()
535 /* we don't want the main rpm_idle to call suspend - we want to autosuspend */ in radeon_pmops_runtime_idle()
542 struct drm_file *file_priv = filp->private_data; in radeon_drm_ioctl()
545 dev = file_priv->minor->dev; in radeon_drm_ioctl()
546 ret = pm_runtime_get_sync(dev->dev); in radeon_drm_ioctl()
548 pm_runtime_put_autosuspend(dev->dev); in radeon_drm_ioctl()
554 pm_runtime_mark_last_busy(dev->dev); in radeon_drm_ioctl()
555 pm_runtime_put_autosuspend(dev->dev); in radeon_drm_ioctl()
560 static long radeon_kms_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in radeon_kms_compat_ioctl()
574 static const struct dev_pm_ops radeon_pm_ops = {
586 static const struct file_operations radeon_driver_kms_fops = {
599 static struct drm_driver kms_driver = {
637 static struct drm_driver *driver;
638 static struct pci_driver *pdriver;
640 static struct pci_driver radeon_kms_pci_driver = {
649 static int __init radeon_init(void) in radeon_init()
651 if (vgacon_text_force() && radeon_modeset == -1) { in radeon_init()
656 if (radeon_modeset == -1) in radeon_init()
663 driver->driver_features |= DRIVER_MODESET; in radeon_init()
664 driver->num_ioctls = radeon_max_kms_ioctl; in radeon_init()
669 return -EINVAL; in radeon_init()
675 static void __exit radeon_exit(void) in radeon_exit()