Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: Use amdgpu by default for CIK APUs too

CIK APUs are: Kaveri, Kabini and Mullins from 2013~2015,
which all have a second generation GCN based integrated GPU.

The amdgpu driver has been working well on CIK APUs for years.
Features which were previously missing have been added recently,
specifically DC support for analog connectors and DP bridge
encoders. Now amdgpu is at feature parity with the old radeon
driver on CIK APUs.

Enabling the amdgpu driver by default for CIK APUs has the
following benefits:

- More stable OpenGL support through RadeonSI
- Vulkan support through RADV
- Improved performance
- Better display features through DC

Users who want to keep using the old driver can do so using:
amdgpu.cik_support=0 radeon.cik_support=1

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Timur Kristóf and committed by
Alex Deucher
d1f188b1 a097dd70

+3 -7
+2 -5
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
··· 641 641 * CIK (Sea Islands) are second generation GCN GPUs, supported by both 642 642 * drivers: radeon (old) and amdgpu (new). This parameter controls whether 643 643 * amdgpu should support CIK. 644 - * By default: 645 - * - CIK dedicated GPUs are supported by amdgpu. 646 - * - CIK APUs are supported by radeon (except when radeon is not built). 644 + * By default, CIK dedicated GPUs and APUs are supported by amdgpu. 647 645 * Only relevant when CONFIG_DRM_AMDGPU_CIK is enabled to build CIK support in amdgpu. 648 646 * See also radeon.cik_support which should be disabled when amdgpu.cik_support is 649 647 * enabled, and vice versa. ··· 2321 2323 2322 2324 case CHIP_BONAIRE: 2323 2325 case CHIP_HAWAII: 2324 - support_by_default = true; 2325 - fallthrough; 2326 2326 case CHIP_KAVERI: 2327 2327 case CHIP_KABINI: 2328 2328 case CHIP_MULLINS: ··· 2328 2332 param = "cik_support"; 2329 2333 module_param = amdgpu_cik_support; 2330 2334 amdgpu_support_built = IS_ENABLED(CONFIG_DRM_AMDGPU_CIK); 2335 + support_by_default = true; 2331 2336 break; 2332 2337 2333 2338 default:
+1 -2
drivers/gpu/drm/radeon/radeon_drv.c
··· 278 278 279 279 case CHIP_BONAIRE: 280 280 case CHIP_HAWAII: 281 - support_by_default = false; 282 - fallthrough; 283 281 case CHIP_KAVERI: 284 282 case CHIP_KABINI: 285 283 case CHIP_MULLINS: 286 284 gen = "CIK"; 287 285 module_param = radeon_cik_support; 288 286 amdgpu_support_built &= IS_ENABLED(CONFIG_DRM_AMDGPU_CIK); 287 + support_by_default = false; 289 288 break; 290 289 291 290 default: