Commit 64c722b5 authored by Timur Tabi's avatar Timur Tabi Committed by Danilo Krummrich
Browse files

drm/nouveau: remove unused memory target test



The memory target check is a hold-over from a refactor.  It's harmless
but distracting, so just remove it.

Fixes: 2541626c ("drm/nouveau/acr: use common falcon HS FW code for ACR FWs")
Signed-off-by: default avatarTimur Tabi <ttabi@nvidia.com>
Link: https://lore.kernel.org/r/20250813001004.2986092-3-ttabi@nvidia.com


Signed-off-by: default avatarDanilo Krummrich <dakr@kernel.org>
parent f529b891
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -249,9 +249,11 @@ int
gm200_flcn_fw_load(struct nvkm_falcon_fw *fw)
{
	struct nvkm_falcon *falcon = fw->falcon;
	int target, ret;
	int ret;

	if (fw->inst) {
		int target;

		nvkm_falcon_mask(falcon, 0x048, 0x00000001, 0x00000001);

		switch (nvkm_memory_target(fw->inst)) {
@@ -285,15 +287,6 @@ gm200_flcn_fw_load(struct nvkm_falcon_fw *fw)
	}

	if (fw->boot) {
		switch (nvkm_memory_target(&fw->fw.mem.memory)) {
		case NVKM_MEM_TARGET_VRAM: target = 4; break;
		case NVKM_MEM_TARGET_HOST: target = 5; break;
		case NVKM_MEM_TARGET_NCOH: target = 6; break;
		default:
			WARN_ON(1);
			return -EINVAL;
		}

		ret = nvkm_falcon_pio_wr(falcon, fw->boot, 0, 0,
					 IMEM, falcon->code.limit - fw->boot_size, fw->boot_size,
					 fw->boot_addr >> 8, false);