Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5af2c10d authored by Kent Russell's avatar Kent Russell Committed by Alex Deucher
Browse files

drm/amdgpu: Fix stolen typo



Change "stollen" to "stolen"

Signed-off-by: default avatarKent Russell <kent.russell@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7804fd1c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1424,7 +1424,7 @@ struct amdgpu_device {
	bool				is_atom_fw;
	bool				is_atom_fw;
	uint8_t				*bios;
	uint8_t				*bios;
	uint32_t			bios_size;
	uint32_t			bios_size;
	struct amdgpu_bo		*stollen_vga_memory;
	struct amdgpu_bo		*stolen_vga_memory;
	uint32_t			bios_scratch_reg_offset;
	uint32_t			bios_scratch_reg_offset;
	uint32_t			bios_scratch[AMDGPU_BIOS_NUM_SCRATCH];
	uint32_t			bios_scratch[AMDGPU_BIOS_NUM_SCRATCH];


+6 −6
Original line number Original line Diff line number Diff line
@@ -1234,7 +1234,7 @@ int amdgpu_ttm_init(struct amdgpu_device *adev)


	r = amdgpu_bo_create_kernel(adev, adev->mc.stolen_size, PAGE_SIZE,
	r = amdgpu_bo_create_kernel(adev, adev->mc.stolen_size, PAGE_SIZE,
				    AMDGPU_GEM_DOMAIN_VRAM,
				    AMDGPU_GEM_DOMAIN_VRAM,
				    &adev->stollen_vga_memory,
				    &adev->stolen_vga_memory,
				    NULL, NULL);
				    NULL, NULL);
	if (r)
	if (r)
		return r;
		return r;
@@ -1308,13 +1308,13 @@ void amdgpu_ttm_fini(struct amdgpu_device *adev)
	if (!adev->mman.initialized)
	if (!adev->mman.initialized)
		return;
		return;
	amdgpu_ttm_debugfs_fini(adev);
	amdgpu_ttm_debugfs_fini(adev);
	if (adev->stollen_vga_memory) {
	if (adev->stolen_vga_memory) {
		r = amdgpu_bo_reserve(adev->stollen_vga_memory, true);
		r = amdgpu_bo_reserve(adev->stolen_vga_memory, true);
		if (r == 0) {
		if (r == 0) {
			amdgpu_bo_unpin(adev->stollen_vga_memory);
			amdgpu_bo_unpin(adev->stolen_vga_memory);
			amdgpu_bo_unreserve(adev->stollen_vga_memory);
			amdgpu_bo_unreserve(adev->stolen_vga_memory);
		}
		}
		amdgpu_bo_unref(&adev->stollen_vga_memory);
		amdgpu_bo_unref(&adev->stolen_vga_memory);
	}
	}
	ttm_bo_clean_mm(&adev->mman.bdev, TTM_PL_VRAM);
	ttm_bo_clean_mm(&adev->mman.bdev, TTM_PL_VRAM);
	ttm_bo_clean_mm(&adev->mman.bdev, TTM_PL_TT);
	ttm_bo_clean_mm(&adev->mman.bdev, TTM_PL_TT);