mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 22:47:45 +07:00
drm/amdgpu: add to set navi ip blocks
Set the IPs for navi10 in early_init like other asics. Signed-off-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
bd1c0fdfc1
commit
0a5b8c7b94
@ -51,6 +51,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#include "vi.h"
|
#include "vi.h"
|
||||||
#include "soc15.h"
|
#include "soc15.h"
|
||||||
|
#include "nv.h"
|
||||||
#include "bif/bif_4_1_d.h"
|
#include "bif/bif_4_1_d.h"
|
||||||
#include <linux/pci.h>
|
#include <linux/pci.h>
|
||||||
#include <linux/firmware.h>
|
#include <linux/firmware.h>
|
||||||
@ -1528,6 +1529,13 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)
|
|||||||
if (r)
|
if (r)
|
||||||
return r;
|
return r;
|
||||||
break;
|
break;
|
||||||
|
case CHIP_NAVI10:
|
||||||
|
adev->family = AMDGPU_FAMILY_NV;
|
||||||
|
|
||||||
|
r = nv_set_ip_blocks(adev);
|
||||||
|
if (r)
|
||||||
|
return r;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
/* FIXME: not supported yet */
|
/* FIXME: not supported yet */
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user