mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
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: 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>
This commit is contained in:
parent
f529b89155
commit
64c722b5e7
@ -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