diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2019-05-31 18:48:45 -0400 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-05-31 18:48:45 -0400 |
| commit | 24e8a2ca1f74574ad2ed1ac7af0260dd90fd911e (patch) | |
| tree | c863dd43c84579d853f3a2ae0ee6ead46c967703 /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | |
| parent | 66f61c92889ff3ca365161fb29dd36d6354682ba (diff) | |
| parent | d724c9e54939a597592de3659541da11fc7aa112 (diff) | |
Merge tag 'kvm-ppc-fixes-5.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc into kvm-master
PPC KVM fixes for 5.2
- Several bug fixes for the new XIVE-native code.
- Replace kvm->lock by other mutexes in several places where we hold a
vcpu mutex, to avoid lock order inversions.
- Fix a lockdep warning on guest entry for radix-mode guests.
- Fix a bug causing user-visible corruption of SPRG3 on the host.
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 05897b05766b..86cc24b2e0aa 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | |||
| @@ -877,13 +877,16 @@ static int psp_load_fw(struct amdgpu_device *adev) | |||
| 877 | if (!psp->cmd) | 877 | if (!psp->cmd) |
| 878 | return -ENOMEM; | 878 | return -ENOMEM; |
| 879 | 879 | ||
| 880 | ret = amdgpu_bo_create_kernel(adev, PSP_1_MEG, PSP_1_MEG, | 880 | /* this fw pri bo is not used under SRIOV */ |
| 881 | AMDGPU_GEM_DOMAIN_GTT, | 881 | if (!amdgpu_sriov_vf(psp->adev)) { |
| 882 | &psp->fw_pri_bo, | 882 | ret = amdgpu_bo_create_kernel(adev, PSP_1_MEG, PSP_1_MEG, |
| 883 | &psp->fw_pri_mc_addr, | 883 | AMDGPU_GEM_DOMAIN_GTT, |
| 884 | &psp->fw_pri_buf); | 884 | &psp->fw_pri_bo, |
| 885 | if (ret) | 885 | &psp->fw_pri_mc_addr, |
| 886 | goto failed; | 886 | &psp->fw_pri_buf); |
| 887 | if (ret) | ||
| 888 | goto failed; | ||
| 889 | } | ||
| 887 | 890 | ||
| 888 | ret = amdgpu_bo_create_kernel(adev, PSP_FENCE_BUFFER_SIZE, PAGE_SIZE, | 891 | ret = amdgpu_bo_create_kernel(adev, PSP_FENCE_BUFFER_SIZE, PAGE_SIZE, |
| 889 | AMDGPU_GEM_DOMAIN_VRAM, | 892 | AMDGPU_GEM_DOMAIN_VRAM, |
