Re: [PATCH] drm/amdgpu/gmc: use PCI BARs for APUs in passthrough

2022-03-16 Thread Michel Dänzer
On 2022-03-16 08:18, Christian König wrote: > Am 15.03.22 um 19:13 schrieb Alex Deucher: >> If the GPU is passed through to a guest VM, use the PCI >> BAR for CPU FB access rather than the physical address of >> carve out.  The physical address is not valid in a guest. >> >> v2: Fix HDP handing as

Re: [PATCH] drm/amdgpu/gmc: use PCI BARs for APUs in passthrough

2022-03-16 Thread Michel Dänzer
On 2022-03-16 16:55, Alex Deucher wrote: > On Wed, Mar 16, 2022 at 11:52 AM Michel Dänzer > wrote: >> >> On 2022-03-11 18:43, Michel Dänzer wrote: >>> On 2022-03-11 11:32, Christian König wrote: Am 11.03.22 um 11:24 schrieb Michel Dänzer: > On 2022-03-10 19:06, Alex Deucher wrote: >>

Re: [PATCH] drm/amdgpu/gmc: use PCI BARs for APUs in passthrough

2022-03-16 Thread Alex Deucher
On Wed, Mar 16, 2022 at 11:52 AM Michel Dänzer wrote: > > On 2022-03-11 18:43, Michel Dänzer wrote: > > On 2022-03-11 11:32, Christian König wrote: > >> Am 11.03.22 um 11:24 schrieb Michel Dänzer: > >>> On 2022-03-10 19:06, Alex Deucher wrote: > If the GPU is passed through to a guest VM, use

Re: [PATCH] drm/amdgpu/gmc: use PCI BARs for APUs in passthrough

2022-03-16 Thread Michel Dänzer
On 2022-03-11 18:43, Michel Dänzer wrote: > On 2022-03-11 11:32, Christian König wrote: >> Am 11.03.22 um 11:24 schrieb Michel Dänzer: >>> On 2022-03-10 19:06, Alex Deucher wrote: If the GPU is passed through to a guest VM, use the PCI BAR for CPU FB access rather than the physical addres

Re: [PATCH] drm/amdgpu/gmc: use PCI BARs for APUs in passthrough

2022-03-16 Thread Christian König
Am 15.03.22 um 19:13 schrieb Alex Deucher: If the GPU is passed through to a guest VM, use the PCI BAR for CPU FB access rather than the physical address of carve out. The physical address is not valid in a guest. v2: Fix HDP handing as suggested by Michel Signed-off-by: Alex Deucher Might

[PATCH] drm/amdgpu/gmc: use PCI BARs for APUs in passthrough

2022-03-15 Thread Alex Deucher
If the GPU is passed through to a guest VM, use the PCI BAR for CPU FB access rather than the physical address of carve out. The physical address is not valid in a guest. v2: Fix HDP handing as suggested by Michel Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 +

Re: [PATCH] drm/amdgpu/gmc: use PCI BARs for APUs in passthrough

2022-03-11 Thread Michel Dänzer
On 2022-03-11 11:32, Christian König wrote: > Am 11.03.22 um 11:24 schrieb Michel Dänzer: >> On 2022-03-10 19:06, Alex Deucher wrote: >>> If the GPU is passed through to a guest VM, use the PCI >>> BAR for CPU FB access rather than the physical address of >>> carve out.  The physical address is not

Re: [PATCH] drm/amdgpu/gmc: use PCI BARs for APUs in passthrough

2022-03-11 Thread Christian König
Am 10.03.22 um 19:06 schrieb Alex Deucher: If the GPU is passed through to a guest VM, use the PCI BAR for CPU FB access rather than the physical address of carve out. The physical address is not valid in a guest. Signed-off-by: Alex Deucher Reviewed-by: Christian König --- drivers/gpu/

Re: [PATCH] drm/amdgpu/gmc: use PCI BARs for APUs in passthrough

2022-03-11 Thread Christian König
Am 11.03.22 um 11:24 schrieb Michel Dänzer: On 2022-03-10 19:06, Alex Deucher wrote: If the GPU is passed through to a guest VM, use the PCI BAR for CPU FB access rather than the physical address of carve out. The physical address is not valid in a guest. I think amdgpu_device_flush_hdp & amdg

Re: [PATCH] drm/amdgpu/gmc: use PCI BARs for APUs in passthrough

2022-03-11 Thread Michel Dänzer
On 2022-03-10 19:06, Alex Deucher wrote: > If the GPU is passed through to a guest VM, use the PCI > BAR for CPU FB access rather than the physical address of > carve out. The physical address is not valid in a guest. I think amdgpu_device_flush_hdp & amdgpu_device_invalidate_hdp need to be modi

[PATCH] drm/amdgpu/gmc: use PCI BARs for APUs in passthrough

2022-03-10 Thread Alex Deucher
If the GPU is passed through to a guest VM, use the PCI BAR for CPU FB access rather than the physical address of carve out. The physical address is not valid in a guest. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 5 ++