mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git
synced 2025-09-25 16:49:33 +10:00
drm/nouveau: remove unused memory target test
[ Upstream commit64c722b5e7
] The memory target check is a hold-over from a refactor. It's harmless but distracting, so just remove it. Fixes:2541626cfb
("drm/nouveau/acr: use common falcon HS FW code for ACR FWs") Signed-off-by: Timur Tabi <ttabi@nvidia.com> Link: https://lore.kernel.org/r/20250813001004.2986092-3-ttabi@nvidia.com Signed-off-by: Danilo Krummrich <dakr@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
32a4984456
commit
4de399767d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user