search for: nvkm_subdev_init

Displaying 20 results from an estimated 49 matches for "nvkm_subdev_init".

2017 Jul 04
2
[PATCH] secboot/acr352: reset PMU after secboot
...(struct acr_r352 *acr, struct nvkm_secboot *sb) } } + /* reset the PMU if needed */ + if (acr->base.boot_falcon == NVKM_SECBOOT_FALCON_PMU && + !nvkm_secboot_is_managed(sb, NVKM_SECBOOT_FALCON_PMU)) { + struct nvkm_pmu *pmu = subdev->device->pmu; + if (pmu) { + ret = nvkm_subdev_init(&pmu->subdev); + if (ret < 0) { + nvkm_error(subdev, "Failed to reset PMU\n"); + return ret; + } + } + } + return 0; } -- 2.13.2
2020 Oct 07
0
[RFC] fifo: only reboot engines if they have a ref
...+++ b/drm/nouveau/nvkm/engine/fifo/gk104.c @@ -292,8 +292,12 @@ gk104_fifo_recover_work(struct work_struct *w) for (todo = engm; engn = __ffs(todo), todo; todo &= ~BIT(engn)) { if ((engine = fifo->engine[engn].engine)) { - nvkm_subdev_fini(&engine->subdev, false); - WARN_ON(nvkm_subdev_init(&engine->subdev)); + mutex_lock(&engine->subdev.mutex); + if (engine->usecount) { + nvkm_subdev_fini(&engine->subdev, false); + WARN_ON(nvkm_subdev_init(&engine->subdev)); + } + mutex_unlock(&engine->subdev.mutex); } } -- 2.26.2
2022 Dec 28
2
[REGRESSION] GM20B probe fails after commit 2541626cfb79
.../0x204 [ 2.154069] nvkm_vmm_map_locked+0xa4/0x344 [ 2.154076] nvkm_vmm_map+0x50/0x84 [ 2.154083] nvkm_firmware_mem_map+0x84/0xc4 [ 2.154094] nvkm_falcon_fw_oneinit+0xc8/0x320 [ 2.154101] nvkm_acr_oneinit+0x428/0x5b0 [ 2.154109] nvkm_subdev_oneinit_+0x50/0x104 [ 2.154114] nvkm_subdev_init_+0x3c/0x12c [ 2.154119] nvkm_subdev_init+0x60/0xa0 [ 2.154125] nvkm_device_init+0x14c/0x2a0 [ 2.154133] nvkm_udevice_init+0x60/0x9c [ 2.154140] nvkm_object_init+0x48/0x1b0 [ 2.154144] nvkm_ioctl_new+0x168/0x254 [ 2.154149] nvkm_ioctl+0xd0/0x220 [ 2.154153] nvkm_client_io...
2019 Aug 23
1
[PATCH] drm/nouveau: Fix memory leak in nvkm_ram_get()
...1/0x250 [<00000000edb7beaa>] nvkm_ram_get+0xb0/0x1d0 [nouveau] [<000000004ecaa918>] gt215_ram_init+0xc5/0x2f0 [nouveau] [<00000000007ba1a0>] nvkm_ram_init+0x1a/0x20 [nouveau] [<0000000050abf84b>] nvkm_fb_init+0x27/0xe0 [nouveau] [<00000000fae7fedc>] nvkm_subdev_init+0xbc/0x210 [nouveau] [<00000000a67b86e4>] nvkm_device_init+0x12a/0x280 [nouveau] [<00000000c02ac03e>] nvkm_udevice_init+0x48/0x60 [nouveau] [<0000000048f35641>] nvkm_object_init+0x43/0x110 [nouveau] [<00000000c6f92dc0>] nvkm_object_init+0x74/0x110 [nouveau]...
2017 Dec 02
0
nouveau: refcount_t splat on 4.15-rc1 on nv50
...arse+0x8d7/0xcf0 [nouveau] [ 9.937218] ? kmem_cache_alloc+0x1f0/0x2d0 [ 9.941624] nvkm_memory_new+0x4b/0xc0 [nouveau] [ 9.946461] ? nvkm_longopt+0x17/0x60 [nouveau] [ 9.951208] gf100_fb_oneinit+0x7b/0x1c0 [nouveau] [ 9.956218] nvkm_fb_oneinit+0x89/0x2e0 [nouveau] [ 9.961144] nvkm_subdev_init+0x92/0x600 [nouveau] [ 9.966085] ? ktime_get+0x64/0x110 [ 9.969815] nvkm_device_init+0x169/0x2a0 [nouveau] [ 9.974922] nvkm_udevice_init+0x7e/0xf0 [nouveau] [ 9.979924] nvkm_object_init+0x6a/0x2e0 [nouveau] [ 9.984932] nvkm_ioctl_new+0x198/0x430 [nouveau] [ 9.989846] ? nvif_...
2017 Jun 02
0
Kernel panic on nouveau during boot on NVIDIA NV118 (GM108)
...ffff8a306f914e00 FS: 00007f456d052900(0000) GS:ffff8a307fd80000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fefceb1c020 CR3: 000000026fbc5000 CR4: 00000000003406e0 Call Trace: gm107_ltc_oneinit+0x7c/0x90 [nouveau] nvkm_ltc_oneinit+0x13/0x20 [nouveau] nvkm_subdev_init+0x50/0x210 [nouveau] nvkm_device_init+0x151/0x270 [nouveau] nvkm_udevice_init+0x48/0x60 [nouveau] nvkm_object_init+0x40/0x190 [nouveau] nvkm_ioctl_new+0x179/0x290 [nouveau] ? nvkm_client_notify+0x30/0x30 [nouveau] ? nvkm_udevice_rd08+0x30/0x30 [nouveau] nvkm_ioctl+0x168/0x240 [nouveau] ? nv...
2017 Jul 05
0
[PATCH] secboot/acr352: reset PMU after secboot
...b) > } > } > > + /* reset the PMU if needed */ > + if (acr->base.boot_falcon == NVKM_SECBOOT_FALCON_PMU && > + !nvkm_secboot_is_managed(sb, NVKM_SECBOOT_FALCON_PMU)) { > + struct nvkm_pmu *pmu = subdev->device->pmu; > + if (pmu) { > + ret = nvkm_subdev_init(&pmu->subdev); > + if (ret < 0) { > + nvkm_error(subdev, "Failed to reset PMU\n"); > + return ret; > + } > + } > + } > + > return 0; > } > > -------------- next part -------------- A non-text attachment was scrubbed... Name: sig...
2018 Oct 18
0
kmemleak in nvkm_iccsense_oneinit
...5965.560s) hex dump (first 32 bytes): 02 05 00 6b 6b 6b 6b 6b 6b 6b 10 00 02 15 6b 6b ...kkkkkkk....kk 6b 6b 6b 6b 6b 6b 6b 6b 00 00 00 6b 6b 6b 6b 6b kkkkkkkk...kkkkk backtrace: [<000000000f9caea9>] nvkm_iccsense_oneinit+0x231/0x1cf0 [nouveau] [<00000000d7f5cb68>] nvkm_subdev_init+0x155/0x9a0 [nouveau] [<00000000b2b0e9d8>] nvkm_device_init+0x332/0x5a0 [nouveau] [<000000003b736a7c>] nvkm_udevice_init+0x93/0xe0 [nouveau] [<00000000cc1011dc>] nvkm_object_init+0xcb/0x610 [nouveau] [<0000000006253ff8>] nvkm_ioctl_new+0x412/0x9a0 [nouveau]...
2018 Oct 18
0
kmemleak in nvkm_iccsense_oneinit
...5965.560s) hex dump (first 32 bytes): 02 05 00 6b 6b 6b 6b 6b 6b 6b 10 00 02 15 6b 6b ...kkkkkkk....kk 6b 6b 6b 6b 6b 6b 6b 6b 00 00 00 6b 6b 6b 6b 6b kkkkkkkk...kkkkk backtrace: [<000000000f9caea9>] nvkm_iccsense_oneinit+0x231/0x1cf0 [nouveau] [<00000000d7f5cb68>] nvkm_subdev_init+0x155/0x9a0 [nouveau] [<00000000b2b0e9d8>] nvkm_device_init+0x332/0x5a0 [nouveau] [<000000003b736a7c>] nvkm_udevice_init+0x93/0xe0 [nouveau] [<00000000cc1011dc>] nvkm_object_init+0xcb/0x610 [nouveau] [<0000000006253ff8>] nvkm_ioctl_new+0x412/0x9a0 [nouveau]...
2020 Oct 19
0
[PATCH] drm/nouveau: fix memory leak in iccsense/base.c
...00 00 a0 86 00 00 00 00 00 00 00 00 ................ backtrace: [<000000007c0d0ac3>] __kmalloc+0x337/0x500 [<00000000551bfaeb>] nvbios_iccsense_parse+0xf7/0x280 [nouveau] [<00000000e3e8968b>] nvkm_iccsense_oneinit+0x6c/0x4e0 [nouveau] [<00000000287e7701>] nvkm_subdev_init+0x58/0xd0 [nouveau] [<0000000008e4793e>] nvkm_device_init+0x118/0x1a0 [nouveau] [<000000008cd3afa3>] nvkm_udevice_init+0x48/0x60 [nouveau] [<000000007e047aee>] nvkm_object_init+0x43/0x110 [nouveau] [<000000006c56b3a4>] nvkm_ioctl_new+0x184/0x210 [nouveau]...
2023 Jan 15
3
[REGRESSION] GM20B probe fails after commit 2541626cfb79
...m_map_locked+0xa4/0x344 > [ 2.154076] nvkm_vmm_map+0x50/0x84 > [ 2.154083] nvkm_firmware_mem_map+0x84/0xc4 > [ 2.154094] nvkm_falcon_fw_oneinit+0xc8/0x320 > [ 2.154101] nvkm_acr_oneinit+0x428/0x5b0 > [ 2.154109] nvkm_subdev_oneinit_+0x50/0x104 > [ 2.154114] nvkm_subdev_init_+0x3c/0x12c > [ 2.154119] nvkm_subdev_init+0x60/0xa0 > [ 2.154125] nvkm_device_init+0x14c/0x2a0 > [ 2.154133] nvkm_udevice_init+0x60/0x9c > [ 2.154140] nvkm_object_init+0x48/0x1b0 > [ 2.154144] nvkm_ioctl_new+0x168/0x254 > [ 2.154149] nvkm_ioctl+0xd0/0x220...
2017 Jun 06
14
[Bug 101322] New: GM108/NV118: 0 MiB DDR3 and boot crash in gf100_ltc_oneinit_tag_ram
...000 [ 20.837874] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 20.839935] CR2: 00007fefceb1c020 CR3: 000000026fbc5000 CR4: 00000000003406e0 [ 20.841918] Call Trace: [ 20.843972] gm107_ltc_oneinit+0x7c/0x90 [nouveau] [ 20.845952] nvkm_ltc_oneinit+0x13/0x20 [nouveau] [ 20.847991] nvkm_subdev_init+0x50/0x210 [nouveau] [ 20.849977] nvkm_device_init+0x151/0x270 [nouveau] [ 20.851997] nvkm_udevice_init+0x48/0x60 [nouveau] [ 20.853944] nvkm_object_init+0x40/0x190 [nouveau] [ 20.855924] nvkm_ioctl_new+0x179/0x290 [nouveau] [ 20.857838] ? nvkm_client_notify+0x30/0x30 [nouveau] [ 2...
2019 Mar 21
2
Nouveau dmem NULL Pointer deref (SVM)
...au] [ 1102.005073]  acr_r352_reset+0x21/0x190 [nouveau] [ 1102.005105]  gf100_gr_init_ctxctl_ext+0x59/0x500 [nouveau] [ 1102.005136]  gf100_gr_init_ctxctl+0x19/0x270 [nouveau] [ 1102.005167]  ? gf100_gr_init+0x533/0x570 [nouveau] [ 1102.005181]  nvkm_engine_init+0xa2/0x120 [nouveau] [ 1102.005196]  nvkm_subdev_init+0x8d/0xc0 [nouveau] [ 1102.005226]  nvkm_device_init+0x107/0x190 [nouveau] [ 1102.005255]  nvkm_udevice_init+0x3c/0x60 [nouveau] [ 1102.005269]  nvkm_object_init+0x39/0x100 [nouveau] [ 1102.005284]  nvkm_object_init+0x6c/0x100 [nouveau] [ 1102.005299]  nvkm_object_init+0x6c/0x100 [nouveau] [ 1102.0...
2017 Dec 03
0
nouveau: refcount_t splat on 4.15-rc1 on nv50
...ap_choose+0xb0/0xb0 [nouveau] [ 8.209348] ? kvmalloc_node+0x3e/0x70 [ 8.209381] ? nvkm_vmm_ctor+0x1ce/0x250 [nouveau] [ 8.209413] nvkm_vmm_ptes_get+0x2e/0x80 [nouveau] [ 8.209446] nvkm_vmm_boot+0x3e/0x80 [nouveau] [ 8.209475] nv50_bar_oneinit+0xe8/0x310 [nouveau] [ 8.209504] nvkm_subdev_init+0x4b/0x1f0 [nouveau] [ 8.209538] nvkm_device_init+0x12c/0x260 [nouveau] [ 8.209573] nvkm_udevice_init+0x41/0x60 [nouveau] [ 8.209602] nvkm_object_init+0x3a/0x180 [nouveau] [ 8.209630] nvkm_ioctl_new+0x19d/0x260 [nouveau] [ 8.209658] ? nvkm_client_notify+0x30/0x30 [nouveau] [...
2017 Jun 02
3
Kernel panic on nouveau during boot on NVIDIA NV118 (GM108)
We are working with new desktop that have the NVIDIA NV118 chipset. During boot, the display becomes unusable at the point where the nouveau driver loads. We have reproduced on 4.8, 4.11 and linux master (4.12-rc3). Dmesg log is attached. Is this a known issue? Anything we can do to help? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL:
2020 Oct 23
0
kvm+nouveau induced lockdep gripe
...de+0x114/0x170 [ 70.135297] kthread_create_on_node+0x37/0x40 [ 70.135306] setup_irq_thread+0x37/0x90 [ 70.135312] __setup_irq+0x4e0/0x7c0 [ 70.135318] request_threaded_irq+0xf8/0x160 [ 70.135371] nvkm_pci_oneinit+0x4c/0x70 [nouveau] [ 70.135399] nvkm_subdev_init+0x60/0x1e0 [nouveau] [ 70.135449] nvkm_device_init+0x10b/0x240 [nouveau] [ 70.135506] nvkm_udevice_init+0x49/0x70 [nouveau] [ 70.135531] nvkm_object_init+0x3d/0x180 [nouveau] [ 70.135555] nvkm_ioctl_new+0x1a1/0x260 [nouveau] [ 70.135578] nvkm_ioctl+0x10a...
2015 Apr 08
3
[PATCH V2] pmu/gk20a: PMU boot support.
...object *object) { - struct nvkm_pmu *pmu = (void *)object; - struct gk20a_pmu_priv *priv = (void *)pmu; + struct nvkm_pmu *ppmu = (void *)object; + struct nvkm_mc *pmc = nvkm_mc(object); + struct gk20a_pmu_priv *pmu = to_gk20a_priv(ppmu); + const struct firmware *pmufw = NULL; int ret; - ret = nvkm_subdev_init(&pmu->base); + nv_subdev(ppmu)->intr = gk20a_pmu_intr; + + mutex_init(&pmu->isr_mutex); + mutex_init(&pmu->pmu_copy_lock); + + if (pmufw == NULL) { + ret = gk20a_pmu_load_firmware(ppmu, &pmufw); + if (ret < 0) { + nv_error(ppmu, "failed to load pmu fimware\n&...
2024 Apr 26
3
[PATCH 1/2] drm/nouveau/firmware: Fix SG_DEBUG error with nvkm_firmware_ctor()
...t+0xb3/0x15f0 [nouveau] ? srso_return_thunk+0x5/0x5f ? srso_return_thunk+0x5/0x5f ? nvkm_udevice_new+0x95/0x140 [nouveau] ? srso_return_thunk+0x5/0x5f ? srso_return_thunk+0x5/0x5f ? ktime_get+0x47/0xb0 ? srso_return_thunk+0x5/0x5f nvkm_subdev_oneinit_+0x4f/0x120 [nouveau] nvkm_subdev_init_+0x39/0x140 [nouveau] ? srso_return_thunk+0x5/0x5f nvkm_subdev_init+0x44/0x90 [nouveau] nvkm_device_init+0x166/0x2e0 [nouveau] nvkm_udevice_init+0x47/0x70 [nouveau] nvkm_object_init+0x41/0x1c0 [nouveau] nvkm_ioctl_new+0x16a/0x290 [nouveau] ? __pfx_nvkm_client_child_new+0x10/0x1...
2015 Apr 13
3
[PATCH v4] pmu/gk20a: PMU boot support
...b(struct nvkm_pmu *pmu, bool enable) +{ } static int gk20a_pmu_init(struct nvkm_object *object) { - struct nvkm_pmu *pmu = (void *)object; - struct gk20a_pmu_priv *priv = (void *)pmu; + struct gk20a_pmu_priv *priv = (void *)object; + struct nvkm_mc *pmc = nvkm_mc(object); int ret; - ret = nvkm_subdev_init(&pmu->base); + ret = nvkm_subdev_init(&priv->base.base); if (ret) return ret; - pmu->pgob = nvkm_pmu_pgob; + priv->pmu_state = PMU_STATE_STARTING; + ret = gk20a_init_pmu_setup_hw1(priv, pmc); + if (ret) + return ret; + + nv_wr32(priv, 0x10a504 + (BUSY_SLOT * 0x10), 0x002...
2019 May 17
4
drm/nouveau/core/memory: kmemleak 684 new suspected memory leaks
Hello, 5.1.0-next-20190517 I'm looking at quite a lot of kmemleak reports coming from drm/nouveau/core/memory, all of which are: unreferenced object 0xffff8deec27c4ac0 (size 16): comm "Web Content", pid 5309, jiffies 4309675011 (age 68.076s) hex dump (first 16 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: