mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: linux: pci calls vgpu power on for virt dev
VF driver shares same poweron function with legacy vgpu. Jira GVSCI-15779 Change-Id: I44381f7ebe1cfd6c72ff886aa9f54d54c189a8b6 Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2884178 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f9242c032e
commit
be7b4aac61
@@ -53,6 +53,7 @@
|
||||
#include "dmabuf_priv.h"
|
||||
|
||||
#include "vgpu/vf_linux.h"
|
||||
#include "vgpu/vgpu_common.h"
|
||||
|
||||
#if defined(CONFIG_NVGPU_HAL_NON_FUSA) && defined(CONFIG_NVGPU_NEXT)
|
||||
#include <nvgpu_next_chips.h>
|
||||
@@ -467,7 +468,10 @@ static int nvgpu_pci_init_support(struct pci_dev *pdev, bool is_pci_igpu)
|
||||
#ifdef CONFIG_PM
|
||||
static int nvgpu_pci_pm_runtime_resume(struct device *dev)
|
||||
{
|
||||
return gk20a_pm_finalize_poweron(dev);
|
||||
if (gk20a_gpu_is_virtual(dev))
|
||||
return vgpu_pm_finalize_poweron(dev);
|
||||
else
|
||||
return gk20a_pm_finalize_poweron(dev);
|
||||
}
|
||||
|
||||
static int nvgpu_pci_pm_runtime_suspend(struct device *dev)
|
||||
|
||||
Reference in New Issue
Block a user