search for: nvkm_vmm_map

Displaying 20 results from an estimated 22 matches for "nvkm_vmm_map".

2019 May 17
4
drm/nouveau/core/memory: kmemleak 684 new suspected memory leaks
...e 68.076s) hex dump (first 16 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<0000000081f2894f>] nvkm_memory_tags_get+0x8e/0x130 [<000000007cd7c0bc>] gf100_vmm_valid+0x196/0x2f0 [<0000000070cc6d67>] nvkm_vmm_map+0xa8/0x360 [<00000000ab678644>] nvkm_vram_map+0x48/0x50 [<00000000d8176378>] nvkm_uvmm_mthd+0x658/0x770 [<00000000463fca5a>] nvkm_ioctl+0xdf/0x177 [<000000000afc4996>] nvif_object_mthd+0xd4/0x100 [<000000002f7a7385>] nvif_vmm_map...
2019 Sep 17
2
[PATCH 3/6] drm/nouveau: Remove bogus gk20a aperture callback
...6 @@ void gf100_vmm_flush(struct nvkm_vmm *, int); > void gf100_vmm_invalidate(struct nvkm_vmm *, u32 type); > void gf100_vmm_invalidate_pdb(struct nvkm_vmm *, u64 addr); > > -int gk20a_vmm_aper(enum nvkm_memory_target); > int gk20a_vmm_valid(struct nvkm_vmm *, void *, u32, struct nvkm_vmm_map *); > > int gm200_vmm_new_(const struct nvkm_vmm_func *, const struct nvkm_vmm_func *, > diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgk20a.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgk20a.c > index 16d7bf727292..999b953505b3 100644 > --- a/drivers/gpu/drm/nouveau/nvk...
2022 Dec 28
2
[REGRESSION] GM20B probe fails after commit 2541626cfb79
...e136d8 x7 : ffffffc008fd44c8 x6 : ffffff80803d0f00 [ 2.154034] x5 : 0000000000000000 x4 : ffffff8080f88c00 x3 : 0000000000000010 [ 2.154041] x2 : 000000000000000c x1 : 00000000ffffffea x0 : 00000000ffffffea [ 2.154050] Call trace: [ 2.154053] gf100_vmm_valid+0x2c4/0x390 [ 2.154061] nvkm_vmm_map_valid+0xd4/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 [...
2019 Sep 16
0
[PATCH 3/6] drm/nouveau: Remove bogus gk20a aperture callback
...u/vmm.h @@ -212,7 +212,6 @@ void gf100_vmm_flush(struct nvkm_vmm *, int); void gf100_vmm_invalidate(struct nvkm_vmm *, u32 type); void gf100_vmm_invalidate_pdb(struct nvkm_vmm *, u64 addr); -int gk20a_vmm_aper(enum nvkm_memory_target); int gk20a_vmm_valid(struct nvkm_vmm *, void *, u32, struct nvkm_vmm_map *); int gm200_vmm_new_(const struct nvkm_vmm_func *, const struct nvkm_vmm_func *, diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgk20a.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgk20a.c index 16d7bf727292..999b953505b3 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgk20a.c...
2019 Sep 17
0
[PATCH 3/6] drm/nouveau: Remove bogus gk20a aperture callback
...(struct nvkm_vmm *, int); > > void gf100_vmm_invalidate(struct nvkm_vmm *, u32 type); > > void gf100_vmm_invalidate_pdb(struct nvkm_vmm *, u64 addr); > > > > -int gk20a_vmm_aper(enum nvkm_memory_target); > > int gk20a_vmm_valid(struct nvkm_vmm *, void *, u32, struct nvkm_vmm_map *); > > > > int gm200_vmm_new_(const struct nvkm_vmm_func *, const struct nvkm_vmm_func *, > > diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgk20a.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgk20a.c > > index 16d7bf727292..999b953505b3 100644 > > --- a/dr...
2019 Feb 23
0
[Bug 101220] [NV137/GP107] xorg-server-1.19.3 crashes when trying to enable HDMI output
...0 ES: 0000 CR0: 0000000080050033 feb 23 17:21:08 dell-2017 kernel: CR2: 00007fab22c8d4a0 CR3: 000000000200a002 CR4: 00000000003606e0 feb 23 17:21:08 dell-2017 kernel: Call Trace: feb 23 17:21:08 dell-2017 kernel: nvkm_vmm_iter.constprop.15+0x2cf/0x7e0 [nouveau] feb 23 17:21:08 dell-2017 kernel: ? nvkm_vmm_map+0xb8/0x3e0 [nouveau] feb 23 17:21:08 dell-2017 kernel: nvkm_vmm_map+0x1a5/0x3e0 [nouveau] feb 23 17:21:08 dell-2017 kernel: ? gp100_vmm_pgt_sgl+0x180/0x180 [nouveau] feb 23 17:21:08 dell-2017 kernel: nvkm_vram_map+0x43/0x50 [nouveau] feb 23 17:21:08 dell-2017 kernel: nvkm_uvmm_mthd+0x71e/0x850...
2023 Dec 08
1
[PATCH] drm/nouveau: Fixup gk20a instobj hierarchy
...e.memory); nvkm_debug(&imem->base.subdev, "vaddr used: %x/%x\n", imem->vaddr_use, imem->vaddr_max); } @@ -283,7 +283,7 @@ gk20a_instobj_map(struct nvkm_memory *memory, u64 offset, struct nvkm_vmm *vmm, { struct gk20a_instobj *node = gk20a_instobj(memory); struct nvkm_vmm_map map = { - .memory = &node->memory, + .memory = &node->base.memory, .offset = offset, .mem = node->mn, }; @@ -391,8 +391,8 @@ gk20a_instobj_ctor_dma(struct gk20a_instmem *imem, u32 npages, u32 align, return -ENOMEM; *_node = &node->base; - nvkm_memory_ctor(&a...
2019 Sep 16
9
[PATCH 0/6] drm/nouveau: Preparatory work for GV11B support
From: Thierry Reding <treding at nvidia.com> Hi Ben, these are a couple of patches that are in preparation for adding GV11B support. The fundamental issue that these are trying to solve is that the GV11B is the first Tegra incarnation of the GPU where the aperture really matters. All prior generations would accept any of them. For dGPUs we usually allocate memory in VRAM, so the default
2019 Oct 09
3
[Bug 111940] New: frequent timeout warnings during normal operation
...: [410260.351312] nv50_instobj_release+0x2f/0xc0 [nouveau] [410260.351389] nvkm_vmm_iter.constprop.0+0x2bc/0x810 [nouveau] [410260.351397] ? do_invalid_op+0x37/0x40 [410260.351475] ? gp100_vmm_pgt_dma+0x200/0x200 [nouveau] [410260.351563] ? gp100_vmm_valid+0xf8/0x290 [nouveau] [410260.351661] nvkm_vmm_map+0x136/0x360 [nouveau] [410260.351678] ? gp100_vmm_pgt_dma+0x200/0x200 [nouveau] [410260.351678] nvkm_vram_map+0x56/0x80 [nouveau] [410260.351678] nvkm_uvmm_mthd+0x66a/0x780 [nouveau] [410260.351678] nvkm_ioctl+0xde/0x180 [nouveau] [410260.351678] nvif_object_mthd+0x104/0x130 [nouveau] [410260....
2019 May 17
0
drm/nouveau/core/memory: kmemleak 684 new suspected memory leaks
...(first 16 bytes): > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > backtrace: > [<0000000081f2894f>] nvkm_memory_tags_get+0x8e/0x130 > [<000000007cd7c0bc>] gf100_vmm_valid+0x196/0x2f0 > [<0000000070cc6d67>] nvkm_vmm_map+0xa8/0x360 > [<00000000ab678644>] nvkm_vram_map+0x48/0x50 > [<00000000d8176378>] nvkm_uvmm_mthd+0x658/0x770 > [<00000000463fca5a>] nvkm_ioctl+0xdf/0x177 > [<000000000afc4996>] nvif_object_mthd+0xd4/0x100 > [<000000002...
2023 Jan 15
3
[REGRESSION] GM20B probe fails after commit 2541626cfb79
...4c8 x6 : ffffff80803d0f00 > [ 2.154034] x5 : 0000000000000000 x4 : ffffff8080f88c00 x3 : 0000000000000010 > [ 2.154041] x2 : 000000000000000c x1 : 00000000ffffffea x0 : 00000000ffffffea > [ 2.154050] Call trace: > [ 2.154053] gf100_vmm_valid+0x2c4/0x390 > [ 2.154061] nvkm_vmm_map_valid+0xd4/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_su...
2020 Jul 01
0
[PATCH v3 3/5] nouveau: fix mapping 2MB sysmem pages
...mp;& (data & (3ULL << 1)) != 0) { + VMM_WO064(pt, vmm, ptei * 16, data & ~BIT_ULL(0)); + dma = true; + } + ptei++; + } + nvkm_done(pt->memory); + return dma; +} + +static void +gp100_vmm_pd0_pfn(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, + u32 ptei, u32 ptes, struct nvkm_vmm_map *map) +{ + struct device *dev = vmm->mmu->subdev.device->dev; + dma_addr_t addr; + + nvkm_kmap(pt->memory); + while (ptes--) { + u64 data = 0; + + if (!(*map->pfn & NVKM_VMM_PFN_W)) + data |= BIT_ULL(6); /* RO. */ + + if (!(*map->pfn & NVKM_VMM_PFN_VRAM)) { + addr =...
2023 Dec 14
1
[PATCH] drm/nouveau: Fixup gk20a instobj hierarchy
...gt;base.subdev, "vaddr used: %x/%x\n", imem->vaddr_use, > imem->vaddr_max); > } > @@ -283,7 +283,7 @@ gk20a_instobj_map(struct nvkm_memory *memory, u64 offset, struct nvkm_vmm *vmm, > { > struct gk20a_instobj *node = gk20a_instobj(memory); > struct nvkm_vmm_map map = { > - .memory = &node->memory, > + .memory = &node->base.memory, > .offset = offset, > .mem = node->mn, > }; > @@ -391,8 +391,8 @@ gk20a_instobj_ctor_dma(struct gk20a_instmem *imem, u32 npages, u32 align, > return -ENOMEM; > *_node...
2018 Mar 10
17
[RFC PATCH 00/13] SVM (share virtual memory) with HMM in nouveau
From: Jérôme Glisse <jglisse at redhat.com> (mm is cced just to allow exposure of device driver work without ccing a long list of peoples. I do not think there is anything usefull to discuss from mm point of view but i might be wrong, so just for the curious :)). git://people.freedesktop.org/~glisse/linux branch: nouveau-hmm-v00
2019 Sep 27
5
[Bug 111843] New: Resume fails after suspend with nouveau and Gtx 1050 ti
....931772] ? gp100_vmm_join+0x20/0x20 [nouveau] [ 469.931787] ? gf100_vmm_invalidate+0x122/0x1c0 [nouveau] [ 469.931803] nvkm_vmm_ptes_get_map+0x2e/0x70 [nouveau] [ 469.931818] ? nvkm_vmm_sparse_unref_ptes+0x70/0x70 [nouveau] [ 469.931833] ? gp100_vmm_join+0x20/0x20 [nouveau] [ 469.931848] nvkm_vmm_map+0x1cf/0x360 [nouveau] [ 469.931863] nvkm_mem_map_dma+0x56/0x80 [nouveau] [ 469.931878] nvkm_uvmm_mthd+0x66a/0x780 [nouveau] [ 469.931888] nvkm_ioctl+0xde/0x180 [nouveau] [ 469.931903] ? nvkm_uvmm_mthd+0x17f/0x780 [nouveau] [ 469.931912] nvif_object_mthd+0x104/0x130 [nouveau] [ 469.931921...
2018 Sep 03
4
[Bug 107818] New: linux-4.18.5 every boot some drivers errors
...ff9df6aecc0000(0000) knlGS:0000000000000000 [ 9.145372] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 9.145372] CR2: 000055bea020a000 CR3: 0000000257fe2005 CR4: 00000000003606e0 [ 9.145373] Call Trace: [ 9.145386] nvkm_vmm_iter.constprop.14+0x357/0x830 [nouveau] [ 9.145399] ? nvkm_vmm_map_choose+0xb0/0xb0 [nouveau] [ 9.145411] ? gp100_vmm_pgt_dma+0x200/0x200 [nouveau] [ 9.145422] nvkm_vmm_map+0x203/0x3f0 [nouveau] [ 9.145435] ? gp100_vmm_pgt_dma+0x200/0x200 [nouveau] [ 9.145436] ? wake_up_klogd+0x2b/0x30 [ 9.145447] nvkm_vram_map+0x51/0x70 [nouveau] [ 9.145460...
2020 Jul 01
8
[PATCH v3 0/5] mm/hmm/nouveau: add PMD system memory mapping
The goal for this series is to introduce the hmm_pfn_to_map_order() function. This allows a device driver to know that a given 4K PFN is actually mapped by the CPU using a larger sized CPU page table entry and therefore the device driver can safely map system memory using larger device MMU PTEs. The series is based on 5.8.0-rc3 and is intended for Jason Gunthorpe's hmm tree. These were
2019 Sep 16
15
[PATCH 00/11] drm/nouveau: Enable GP10B by default
From: Thierry Reding <treding at nvidia.com> Hi, the GPU on Jetson TX2 (GP10B) does not work properly on all devices. Why exactly is not clear, but there are slight differences between the SKUs that were tested. It turns out that the biggest issue is that on some devices (e.g. the one that I have), pulsing the GPU reset twice as is done in the current code (once as part of the power-ungate
2018 Apr 03
2
nouveau TRAP_M2MF still there on G98
...06e0 [18830.253544] handle_irq_event+0x25/0x50 [18830.260680] Call Trace: [18830.260706] nv50_instobj_release+0x30/0xc0 [nouveau] [18830.267914] ? apic_ack_edge+0x31/0x50 [18830.272387] nvkm_vmm_iter.constprop.14+0x549/0x7e0 [nouveau] [18830.279615] handle_edge_irq+0x6e/0x190 [18830.286792] ? nvkm_vmm_map_choose+0xb0/0xb0 [nouveau] [18830.291480] handle_irq+0x17/0x30 [18830.298670] ? nvkm_vmm_map_valid+0x50/0x200 [nouveau] [18830.298693] nvkm_vmm_map+0x20f/0x3f0 [nouveau] [18830.306900] do_IRQ+0x50/0xf0 [18830.311368] ? nv50_vmm_part+0x60/0x60 [nouveau] [18830.317205] common_interrupt+0xf/0xf...
2018 Nov 25
11
[Bug 108857] New: display becomes unresponsive and keyboard input fails
https://bugs.freedesktop.org/show_bug.cgi?id=108857 Bug ID: 108857 Summary: display becomes unresponsive and keyboard input fails Product: xorg Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: major Priority: medium Component: Driver/nouveau