aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-12-25 14:48:26 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2018-12-25 14:48:26 -0500
commit4971f090aa7f6ce5daa094ce4334f6618f93a7eb (patch)
tree45d75782b7dedbec76a3ab82d2769f7707668071 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentc76cd634eb5bfd497617ea224a54a03b545c8c4d (diff)
parent2a3c83f5fe0770d13bbb71b23674886ff4111f44 (diff)
Merge tag 'drm-next-2018-12-14' of git://anongit.freedesktop.org/drm/drm
Pull drm updates from Dave Airlie: "Core: - shared fencing staging removal - drop transactional atomic helpers and move helpers to new location - DP/MST atomic cleanup - Leasing cleanups and drop EXPORT_SYMBOL - Convert drivers to atomic helpers and generic fbdev. - removed deprecated obj_ref/unref in favour of get/put - Improve dumb callback documentation - MODESET_LOCK_BEGIN/END helpers panels: - CDTech panels, Banana Pi Panel, DLC1010GIG, - Olimex LCD-O-LinuXino, Samsung S6D16D0, Truly NT35597 WQXGA, - Himax HX8357D, simulated RTSM AEMv8. - GPD Win2 panel - AUO G101EVN010 vgem: - render node support ttm: - move global init out of drivers - fix LRU handling for ghost objects - Support for simultaneous submissions to multiple engines scheduler: - timeout/fault handling changes to help GPU recovery - helpers for hw with preemption support i915: - Scaler/Watermark fixes - DP MST + powerwell fixes - PSR fixes - Break long get/put shmemfs pages - Icelake fixes - Icelake DSI video mode enablement - Engine workaround improvements amdgpu: - freesync support - GPU reset enabled on CI, VI, SOC15 dGPUs - ABM support in DC - KFD support for vega12/polaris12 - SDMA paging queue on vega - More amdkfd code sharing - DCC scanout on GFX9 - DC kerneldoc - Updated SMU firmware for GFX8 chips - XGMI PSP + hive reset support - GPU reset - DC trace support - Powerplay updates for newer Polaris - Cursor plane update fast path - kfd dma-buf support virtio-gpu: - add EDID support vmwgfx: - pageflip with damage support nouveau: - Initial Turing TU104/TU106 modesetting support msm: - a2xx gpu support for apq8060 and imx5 - a2xx gpummu support - mdp4 display support for apq8060 - DPU fixes and cleanups - enhanced profiling support - debug object naming interface - get_iova/page pinning decoupling tegra: - Tegra194 host1x, VIC and display support enabled - Audio over HDMI for Tegra186 and Tegra194 exynos: - DMA/IOMMU refactoring - plane alpha + blend mode support - Color format fixes for mixer driver rcar-du: - R8A7744 and R8A77470 support - R8A77965 LVDS support imx: - fbdev emulation fix - multi-tiled scalling fixes - SPDX identifiers rockchip - dw_hdmi support - dw-mipi-dsi + dual dsi support - mailbox read size fix qxl: - fix cursor pinning vc4: - YUV support (scaling + cursor) v3d: - enable TFU (Texture Formatting Unit) mali-dp: - add support for linear tiled formats sun4i: - Display Engine 3 support - H6 DE3 mixer 0 support - H6 display engine support - dw-hdmi support - H6 HDMI phy support - implicit fence waiting - BGRX8888 support meson: - Overlay plane support - implicit fence waiting - HDMI 1.4 4k modes bridge: - i2c fixes for sii902x" * tag 'drm-next-2018-12-14' of git://anongit.freedesktop.org/drm/drm: (1403 commits) drm/amd/display: Add fast path for cursor plane updates drm/amdgpu: Enable GPU recovery by default for CI drm/amd/display: Fix duplicating scaling/underscan connector state drm/amd/display: Fix unintialized max_bpc state values Revert "drm/amd/display: Set RMX_ASPECT as default" drm/amdgpu: Fix stub function name drm/msm/dpu: Fix clock issue after bind failure drm/msm/dpu: Clean up dpu_media_info.h static inline functions drm/msm/dpu: Further cleanups for static inline functions drm/msm/dpu: Cleanup the debugfs functions drm/msm/dpu: Remove dpu_irq and unused functions drm/msm: Make irq_postinstall optional drm/msm/dpu: Cleanup callers of dpu_hw_blk_init drm/msm/dpu: Remove unused functions drm/msm/dpu: Remove dpu_crtc_is_enabled() drm/msm/dpu: Remove dpu_crtc_get_mixer_height drm/msm/dpu: Remove dpu_dbg drm/msm: dpu: Remove crtc_lock drm/msm: dpu: Remove vblank_requested flag from dpu_crtc drm/msm: dpu: Separate crtc assignment from vblank enable ...
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index 74b611e8a1b1..9c77eaa45982 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -454,9 +454,10 @@ module_param_named(cntl_sb_buf_per_se, amdgpu_cntl_sb_buf_per_se, int, 0444);
454 454
455/** 455/**
456 * DOC: param_buf_per_se (int) 456 * DOC: param_buf_per_se (int)
457 * Override the size of Off-Chip Pramater Cache per Shader Engine in Byte. The default is 0 (depending on gfx). 457 * Override the size of Off-Chip Parameter Cache per Shader Engine in Byte.
458 * The default is 0 (depending on gfx).
458 */ 459 */
459MODULE_PARM_DESC(param_buf_per_se, "the size of Off-Chip Pramater Cache per Shader Engine (default depending on gfx)"); 460MODULE_PARM_DESC(param_buf_per_se, "the size of Off-Chip Parameter Cache per Shader Engine (default depending on gfx)");
460module_param_named(param_buf_per_se, amdgpu_param_buf_per_se, int, 0444); 461module_param_named(param_buf_per_se, amdgpu_param_buf_per_se, int, 0444);
461 462
462/** 463/**
@@ -1227,9 +1228,6 @@ static struct drm_driver kms_driver = {
1227 .patchlevel = KMS_DRIVER_PATCHLEVEL, 1228 .patchlevel = KMS_DRIVER_PATCHLEVEL,
1228}; 1229};
1229 1230
1230static struct drm_driver *driver;
1231static struct pci_driver *pdriver;
1232
1233static struct pci_driver amdgpu_kms_pci_driver = { 1231static struct pci_driver amdgpu_kms_pci_driver = {
1234 .name = DRIVER_NAME, 1232 .name = DRIVER_NAME,
1235 .id_table = pciidlist, 1233 .id_table = pciidlist,
@@ -1259,16 +1257,14 @@ static int __init amdgpu_init(void)
1259 goto error_fence; 1257 goto error_fence;
1260 1258
1261 DRM_INFO("amdgpu kernel modesetting enabled.\n"); 1259 DRM_INFO("amdgpu kernel modesetting enabled.\n");
1262 driver = &kms_driver; 1260 kms_driver.num_ioctls = amdgpu_max_kms_ioctl;
1263 pdriver = &amdgpu_kms_pci_driver;
1264 driver->num_ioctls = amdgpu_max_kms_ioctl;
1265 amdgpu_register_atpx_handler(); 1261 amdgpu_register_atpx_handler();
1266 1262
1267 /* Ignore KFD init failures. Normal when CONFIG_HSA_AMD is not set. */ 1263 /* Ignore KFD init failures. Normal when CONFIG_HSA_AMD is not set. */
1268 amdgpu_amdkfd_init(); 1264 amdgpu_amdkfd_init();
1269 1265
1270 /* let modprobe override vga console setting */ 1266 /* let modprobe override vga console setting */
1271 return pci_register_driver(pdriver); 1267 return pci_register_driver(&amdgpu_kms_pci_driver);
1272 1268
1273error_fence: 1269error_fence:
1274 amdgpu_sync_fini(); 1270 amdgpu_sync_fini();
@@ -1280,7 +1276,7 @@ error_sync:
1280static void __exit amdgpu_exit(void) 1276static void __exit amdgpu_exit(void)
1281{ 1277{
1282 amdgpu_amdkfd_fini(); 1278 amdgpu_amdkfd_fini();
1283 pci_unregister_driver(pdriver); 1279 pci_unregister_driver(&amdgpu_kms_pci_driver);
1284 amdgpu_unregister_atpx_handler(); 1280 amdgpu_unregister_atpx_handler();
1285 amdgpu_sync_fini(); 1281 amdgpu_sync_fini();
1286 amdgpu_fence_slab_fini(); 1282 amdgpu_fence_slab_fini();