Displaying 20 results from an estimated 67 matches for "default_caching".
2017 Aug 27
7
[Bug 102430] New: nv4x - memory problems when starting graphical application - logs included
...]=0x00070002 (1)
[ 124.936978] [TTM] has_type: 1
[ 124.940283] [TTM] use_type: 1
[ 124.943590] [TTM] flags: 0x0000000A
[ 124.947423] [TTM] gpu_offset: 0x00000000
[ 124.951679] [TTM] size: 131072
[ 124.955074] [TTM] available_caching: 0x00070000
[ 124.959940] [TTM] default_caching: 0x00010000
[ 124.967291] [TTM] Failed to find memory space for buffer 0xffff97a0c738d000
eviction
[ 124.975042] [TTM] No space for ffff97a0c738d000 (1366 pages, 5464K, 5M)
[ 124.981657] [TTM] placement[0]=0x00070002 (1)
[ 124.986176] [TTM] has_type: 1
[ 124.989482] [TTM] use_type: 1...
2020 Feb 18
5
[PATCH 8/8] drm/ttm: do not keep GPU dependent addresses
...uot;??? gpu_offset: 0x%08llX\n", man->gpu_offset);
>>> ????? drm_printf(p, "??? size: %llu\n", man->size);
>>> ????? drm_printf(p, "??? available_caching: 0x%08X\n",
>>> man->available_caching);
>>> ????? drm_printf(p, "??? default_caching: 0x%08X\n",
>>> man->default_caching);
>>> @@ -345,12 +344,6 @@ static int ttm_bo_handle_move_mem(struct
>>> ttm_buffer_object *bo,
>>> ? moved:
>>> ????? bo->evicted = false;
>>> ? -??? if (bo->mem.mm_node)
>>> -???????...
2020 Feb 18
2
[PATCH 8/8] drm/ttm: do not keep GPU dependent addresses
...t;, man->gpu_offset);
>>>>> ????? drm_printf(p, "??? size: %llu\n", man->size);
>>>>> ????? drm_printf(p, "??? available_caching: 0x%08X\n",
>>>>> man->available_caching);
>>>>> ????? drm_printf(p, "??? default_caching: 0x%08X\n",
>>>>> man->default_caching);
>>>>> @@ -345,12 +344,6 @@ static int ttm_bo_handle_move_mem(struct
>>>>> ttm_buffer_object *bo,
>>>>> ? moved:
>>>>> ????? bo->evicted = false;
>>>>> ? -...
2014 May 19
2
[RFC] drm/nouveau: disable caching for VRAM BOs on ARM
.../nouveau/nouveau_bo.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bo.c
@@ -552,7 +552,11 @@ nouveau_bo_init_mem_type(struct ttm_bo_device *bdev, uint32_t type,
TTM_MEMTYPE_FLAG_MAPPABLE;
man->available_caching = TTM_PL_FLAG_UNCACHED |
TTM_PL_FLAG_WC;
+#if defined(__arm__)
+ man->default_caching = TTM_PL_FLAG_UNCACHED;
+#else
man->default_caching = TTM_PL_FLAG_WC;
+#endif
break;
case TTM_PL_TT:
if (nv_device(drm->device)->card_type >= NV_50)
--
1.9.2
2020 Feb 18
2
[PATCH 8/8] drm/ttm: do not keep GPU dependent addresses
...t;>>>> ?????? drm_printf(p, "??? size: %llu\n", man->size);
>>>>>>> ?????? drm_printf(p, "??? available_caching: 0x%08X\n",
>>>>>>> man->available_caching);
>>>>>>> ?????? drm_printf(p, "??? default_caching: 0x%08X\n",
>>>>>>> man->default_caching);
>>>>>>> @@ -345,12 +344,6 @@ static int ttm_bo_handle_move_mem(struct
>>>>>>> ttm_buffer_object *bo,
>>>>>>> ?? moved:
>>>>>>> ?????? bo->...
2020 Feb 18
0
[PATCH 8/8] drm/ttm: do not keep GPU dependent addresses
...et: 0x%08llX\n", man->gpu_offset);
>>>> ????? drm_printf(p, "??? size: %llu\n", man->size);
>>>> ????? drm_printf(p, "??? available_caching: 0x%08X\n",
>>>> man->available_caching);
>>>> ????? drm_printf(p, "??? default_caching: 0x%08X\n",
>>>> man->default_caching);
>>>> @@ -345,12 +344,6 @@ static int ttm_bo_handle_move_mem(struct
>>>> ttm_buffer_object *bo,
>>>> ? moved:
>>>> ????? bo->evicted = false;
>>>> ? -??? if (bo->mem.mm_nod...
2020 Feb 18
0
[PATCH 8/8] drm/ttm: do not keep GPU dependent addresses
...set: 0x%08llX\n", man->gpu_offset);
>>>> ????? drm_printf(p, "??? size: %llu\n", man->size);
>>>> ????? drm_printf(p, "??? available_caching: 0x%08X\n",
>>>> man->available_caching);
>>>> ????? drm_printf(p, "??? default_caching: 0x%08X\n",
>>>> man->default_caching);
>>>> @@ -345,12 +344,6 @@ static int ttm_bo_handle_move_mem(struct
>>>> ttm_buffer_object *bo,
>>>> ? moved:
>>>> ????? bo->evicted = false;
>>>> ? -??? if (bo->mem.mm_node)...
2020 Feb 18
0
[PATCH 8/8] drm/ttm: do not keep GPU dependent addresses
...offset);
>>>>>> ?????? drm_printf(p, "??? size: %llu\n", man->size);
>>>>>> ?????? drm_printf(p, "??? available_caching: 0x%08X\n",
>>>>>> man->available_caching);
>>>>>> ?????? drm_printf(p, "??? default_caching: 0x%08X\n",
>>>>>> man->default_caching);
>>>>>> @@ -345,12 +344,6 @@ static int ttm_bo_handle_move_mem(struct
>>>>>> ttm_buffer_object *bo,
>>>>>> ?? moved:
>>>>>> ?????? bo->evicted = false;
>&...
2020 Feb 18
0
[PATCH 8/8] drm/ttm: do not keep GPU dependent addresses
...intf(p, "??? size: %llu\n", man->size);
> > > > > > > > ?????? drm_printf(p, "??? available_caching: 0x%08X\n",
> > > > > > > > man->available_caching);
> > > > > > > > ?????? drm_printf(p, "??? default_caching: 0x%08X\n",
> > > > > > > > man->default_caching);
> > > > > > > > @@ -345,12 +344,6 @@ static int ttm_bo_handle_move_mem(struct
> > > > > > > > ttm_buffer_object *bo,
> > > > > > > > ?? moved:...
2009 Aug 19
1
[PATCH] drm/nouveau: Add a MM for mappable VRAM that isn't usable as scanout.
...TM_PL_FLAG_PRIV0;
+ }
/* Some of the tile_flags have a periodic structure of 24*4096 bytes,
* align to to that as well as the page size. Overallocate memory to
@@ -271,6 +274,21 @@ nouveau_bo_init_mem_type(struct ttm_bo_device *bdev, uint32_t type,
man->available_caching =
man->default_caching = 0;
break;
+ case TTM_PL_PRIV1: /* Mappable but unusable as scanout. */
+ {
+ man->flags = TTM_MEMTYPE_FLAG_FIXED |
+ TTM_MEMTYPE_FLAG_MAPPABLE |
+ TTM_MEMTYPE_FLAG_NEEDS_IOREMAP;
+ man->available_caching = TTM_PL_FLAG_UNCACHED |
+ TTM_PL_FLAG_WC;
+ man->default_c...
2014 May 19
0
[RFC] drm/nouveau: disable caching for VRAM BOs on ARM
...ivers/gpu/drm/nouveau/nouveau_bo.c
> @@ -552,7 +552,11 @@ nouveau_bo_init_mem_type(struct ttm_bo_device *bdev, uint32_t type,
> TTM_MEMTYPE_FLAG_MAPPABLE;
> man->available_caching = TTM_PL_FLAG_UNCACHED |
> TTM_PL_FLAG_WC;
> +#if defined(__arm__)
> + man->default_caching = TTM_PL_FLAG_UNCACHED;
> +#else
> man->default_caching = TTM_PL_FLAG_WC;
> +#endif
> break;
> case TTM_PL_TT:
> if (nv_device(drm->device)->card_type >= NV_50)
--
Pengutronix e.K. | Lucas Stach |
Industrial Linux Solutions |...
2014 Jun 27
5
[PATCH 1/2] drm/nouveau/bar: add noncached ioremap property
...vers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c
index b6dc85c614be..4db886f9f793 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bo.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bo.c
@@ -500,18 +500,25 @@ nouveau_bo_init_mem_type(struct ttm_bo_device *bdev, uint32_t type,
man->default_caching = TTM_PL_FLAG_CACHED;
break;
case TTM_PL_VRAM:
+ man->flags = TTM_MEMTYPE_FLAG_FIXED |
+ TTM_MEMTYPE_FLAG_MAPPABLE;
+ man->available_caching = TTM_PL_FLAG_UNCACHED |
+ TTM_PL_FLAG_WC;
+ man->default_caching = TTM_PL_FLAG_WC;
+
if (nv_device(drm->device)->card_t...
2014 Jun 27
3
[PATCH v3 0/2] drm: nouveau: memory coherency for ARM
v2 was doing some pretty nasty things with the DMA API, so I took a different
approach for this v3.
As suggested, this version uses ttm_dma_populate() to populate BOs. The reason
for doing this was that it would entitle us to using the DMA sync functions,
but since the memory returned is already coherent anyway, we do not even
need to call these functions anymore.
So this series has turned into
2019 Apr 09
0
[PATCH 13/15] drm/vboxvideo: Convert vboxvideo driver to Simple TTM
...int
> -vbox_bo_init_mem_type(struct ttm_bo_device *bdev, u32 type,
> - struct ttm_mem_type_manager *man)
> -{
> - switch (type) {
> - case TTM_PL_SYSTEM:
> - man->flags = TTM_MEMTYPE_FLAG_MAPPABLE;
> - man->available_caching = TTM_PL_MASK_CACHING;
> - man->default_caching = TTM_PL_FLAG_CACHED;
> - break;
> - case TTM_PL_VRAM:
> - man->func = &ttm_bo_manager_func;
> - man->flags = TTM_MEMTYPE_FLAG_FIXED | TTM_MEMTYPE_FLAG_MAPPABLE;
> - man->available_caching = TTM_PL_FLAG_UNCACHED | TTM_PL_FLAG_WC;
> - man->default_caching = TTM...
2019 Apr 24
0
[PATCH v2 07/17] drm/ast: Convert AST driver to VRAM MM
...ast_private, ttm.bdev);
-}
-
-static int
-ast_bo_init_mem_type(struct ttm_bo_device *bdev, uint32_t type,
- struct ttm_mem_type_manager *man)
-{
- switch (type) {
- case TTM_PL_SYSTEM:
- man->flags = TTM_MEMTYPE_FLAG_MAPPABLE;
- man->available_caching = TTM_PL_MASK_CACHING;
- man->default_caching = TTM_PL_FLAG_CACHED;
- break;
- case TTM_PL_VRAM:
- man->func = &ttm_bo_manager_func;
- man->flags = TTM_MEMTYPE_FLAG_FIXED |
- TTM_MEMTYPE_FLAG_MAPPABLE;
- man->available_caching = TTM_PL_FLAG_UNCACHED |
- TTM_PL_FLAG_WC;
- man->default_caching = TTM_PL_FLAG_WC;
- break;...
2019 May 06
0
[PATCH v4 12/19] drm/bochs: Convert bochs driver to VRAM MM
...ochs_device, ttm.bdev);
-}
-
-static int bochs_bo_init_mem_type(struct ttm_bo_device *bdev, uint32_t type,
- struct ttm_mem_type_manager *man)
-{
- switch (type) {
- case TTM_PL_SYSTEM:
- man->flags = TTM_MEMTYPE_FLAG_MAPPABLE;
- man->available_caching = TTM_PL_MASK_CACHING;
- man->default_caching = TTM_PL_FLAG_CACHED;
- break;
- case TTM_PL_VRAM:
- man->func = &ttm_bo_manager_func;
- man->flags = TTM_MEMTYPE_FLAG_FIXED |
- TTM_MEMTYPE_FLAG_MAPPABLE;
- man->available_caching = TTM_PL_FLAG_UNCACHED |
- TTM_PL_FLAG_WC;
- man->default_caching = TTM_PL_FLAG_WC;
- break;...
2014 Jun 09
2
[PATCH 4/4] drm/nouveau: introduce CPU cache flushing macro
...buf kickoff anyways.
I tried to go that way, and something interesting happened.
What I did: remove this patch and instead set the following caching
parameters for the TTM_PL_TT case in nouveau_bo_init_mem_type():
man->available_caching = TTM_PL_FLAG_UNCACHED | TTM_PL_FLAG_WC;
man->default_caching = TTM_PL_FLAG_WC;
What happened: no runtime errors as what happened when caching is
enabled. However, many of the vertex and texture buffers seem to be
partially corrupted. In glmark2 the 3d models had many vertices (but
not all) at the wrong position. Note that not all the scenes ended up
being c...
2019 Apr 24
0
[PATCH v2 05/17] drm: Add VRAM MM, a simple memory manager for dedicated VRAM
...e(tt);
+ return NULL;
+}
+
+static int bo_driver_init_mem_type(struct ttm_bo_device *bdev, uint32_t type,
+ struct ttm_mem_type_manager *man)
+{
+ switch (type) {
+ case TTM_PL_SYSTEM:
+ man->flags = TTM_MEMTYPE_FLAG_MAPPABLE;
+ man->available_caching = TTM_PL_MASK_CACHING;
+ man->default_caching = TTM_PL_FLAG_CACHED;
+ break;
+ case TTM_PL_VRAM:
+ man->func = &ttm_bo_manager_func;
+ man->flags = TTM_MEMTYPE_FLAG_FIXED |
+ TTM_MEMTYPE_FLAG_MAPPABLE;
+ man->available_caching = TTM_PL_FLAG_UNCACHED |
+ TTM_PL_FLAG_WC;
+ man->default_caching = TTM_PL_FLAG_WC;
+...
2014 Mar 26
2
[PATCH 00/12] drm/nouveau: support for GK20A, cont'd
...uveau_drm_ioctl) from [<c00ea5ec>]
(do_vfs_ioctl+0x3f0/0x5bc)
[ 78.440277] [<c00ea5ec>] (do_vfs_ioctl) from [<c00ea7ec>]
(SyS_ioctl+0x34/0x5c)
[ 78.453918] [<c00ea7ec>] (SyS_ioctl) from [<c000e5a0>]
(ret_fast_syscall+0x0/0x30)
To avoid these I need to set the VRAM default_caching to
TTM_PL_FLAG_UNCACHED. It is not clear to me why this is needed. The BO
being accessed through the BAR, they are correctly considered as IO
memory and mapped using ttm_bo_ioremap(), so it really seems to be
unhappy with the WC mapping itself.
Note that if I go ahead and force the use of pgprot_w...
2019 Apr 08
1
selftest, help with a single test
On 4/8/2019 12:49 AM, Manfred wrote:
>> Hi,
>>
>> Yes, you're right, the problems are due to the selftest environment
>> failing to start up. In this case, you could just reproduce the same
>> problem with:
>> SELFTEST_TESTENV=s4member:local make testenv
>
> This actually reveals something:
> [user at s4member samba]$ ping