diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/Kconfig | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/Makefile | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 8 |
3 files changed, 11 insertions, 2 deletions
diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig index ea283894a12a..308c104ccdbd 100644 --- a/drivers/gpu/drm/Kconfig +++ b/drivers/gpu/drm/Kconfig | |||
@@ -110,7 +110,6 @@ config DRM_RADEON | |||
110 | select HWMON | 110 | select HWMON |
111 | select BACKLIGHT_CLASS_DEVICE | 111 | select BACKLIGHT_CLASS_DEVICE |
112 | select INTERVAL_TREE | 112 | select INTERVAL_TREE |
113 | select MMU_NOTIFIER | ||
114 | help | 113 | help |
115 | Choose this option if you have an ATI Radeon graphics card. There | 114 | Choose this option if you have an ATI Radeon graphics card. There |
116 | are both PCI and AGP versions. You don't need to choose this to | 115 | are both PCI and AGP versions. You don't need to choose this to |
diff --git a/drivers/gpu/drm/radeon/Makefile b/drivers/gpu/drm/radeon/Makefile index f9dab1cb85ba..4605633e253b 100644 --- a/drivers/gpu/drm/radeon/Makefile +++ b/drivers/gpu/drm/radeon/Makefile | |||
@@ -80,9 +80,11 @@ radeon-y += radeon_device.o radeon_asic.o radeon_kms.o \ | |||
80 | r600_dpm.o rs780_dpm.o rv6xx_dpm.o rv770_dpm.o rv730_dpm.o rv740_dpm.o \ | 80 | r600_dpm.o rs780_dpm.o rv6xx_dpm.o rv770_dpm.o rv730_dpm.o rv740_dpm.o \ |
81 | rv770_smc.o cypress_dpm.o btc_dpm.o sumo_dpm.o sumo_smc.o trinity_dpm.o \ | 81 | rv770_smc.o cypress_dpm.o btc_dpm.o sumo_dpm.o sumo_smc.o trinity_dpm.o \ |
82 | trinity_smc.o ni_dpm.o si_smc.o si_dpm.o kv_smc.o kv_dpm.o ci_smc.o \ | 82 | trinity_smc.o ni_dpm.o si_smc.o si_dpm.o kv_smc.o kv_dpm.o ci_smc.o \ |
83 | ci_dpm.o dce6_afmt.o radeon_vm.o radeon_ucode.o radeon_ib.o radeon_mn.o \ | 83 | ci_dpm.o dce6_afmt.o radeon_vm.o radeon_ucode.o radeon_ib.o \ |
84 | radeon_sync.o radeon_audio.o | 84 | radeon_sync.o radeon_audio.o |
85 | 85 | ||
86 | radeon-$(CONFIG_MMU_NOTIFIER) += radeon_mn.o | ||
87 | |||
86 | # add async DMA block | 88 | # add async DMA block |
87 | radeon-y += \ | 89 | radeon-y += \ |
88 | r600_dma.o \ | 90 | r600_dma.o \ |
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index d15e3c0c09f5..93e407b7e7a7 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h | |||
@@ -1780,8 +1780,16 @@ void radeon_test_syncing(struct radeon_device *rdev); | |||
1780 | /* | 1780 | /* |
1781 | * MMU Notifier | 1781 | * MMU Notifier |
1782 | */ | 1782 | */ |
1783 | #if defined(CONFIG_MMU_NOTIFIER) | ||
1783 | int radeon_mn_register(struct radeon_bo *bo, unsigned long addr); | 1784 | int radeon_mn_register(struct radeon_bo *bo, unsigned long addr); |
1784 | void radeon_mn_unregister(struct radeon_bo *bo); | 1785 | void radeon_mn_unregister(struct radeon_bo *bo); |
1786 | #else | ||
1787 | static inline int radeon_mn_register(struct radeon_bo *bo, unsigned long addr) | ||
1788 | { | ||
1789 | return -ENODEV; | ||
1790 | } | ||
1791 | static inline void radeon_mn_unregister(struct radeon_bo *bo) {} | ||
1792 | #endif | ||
1785 | 1793 | ||
1786 | /* | 1794 | /* |
1787 | * Debugfs | 1795 | * Debugfs |