Skip to contentSkip to conversation

drm/radeon: stop re-init the TTM page pool

PATCH In review Christian König 5 participants 13 messages Jan 5, 2021 – Jan 12, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 drm/radeon: stop re-init the TTM page pool

Drivers are not supposed to init the page pool directly any more.

---
 drivers/gpu/drm/radeon/radeon_ttm.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/radeon/radeon_ttm.c +0 -3
index d4328ff57757..35b715f82ed8 100644
@@ -729,9 +729,6 @@ int radeon_ttm_init(struct radeon_device *rdev)
 	}
 	rdev->mman.initialized = true;
 
-	ttm_pool_init(&rdev->mman.bdev.pool, rdev->dev, rdev->need_swiotlb,
-		      dma_addressing_limited(&rdev->pdev->dev));
-
 	r = radeon_ttm_init_vram(rdev);
 	if (r) {
 		DRM_ERROR("Failed initializing VRAM heap.\n");
Signature · 6 lines
2.25.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

PATCH 2/2 drm/ttm: unexport ttm_pool_init/fini

Drivers are not supposed to use this directly any more.

---
 drivers/gpu/drm/ttm/ttm_pool.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/ttm/ttm_pool.c +0 -2
index c81e6eb72da1..9089a047cb51 100644
@@ -526,7 +526,6 @@ void ttm_pool_init(struct ttm_pool *pool, struct device *dev,
 						   pool, i, j);
 	}
 }
-EXPORT_SYMBOL(ttm_pool_init);
 
 /**
  * ttm_pool_fini - Cleanup a pool
@@ -546,7 +545,6 @@ void ttm_pool_fini(struct ttm_pool *pool)
 				ttm_pool_type_fini(&pool->caching[i].orders[j]);
 	}
 }
-EXPORT_SYMBOL(ttm_pool_fini);
 
 /* As long as pages are available make sure to release at least one */
 static unsigned long ttm_pool_shrinker_scan(struct shrinker *shrink,
Signature · 6 lines
2.25.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#2 lore raw
In reply to Christian König
Quoted 3 lines · Christian König

Drivers are not supposed to init the page pool directly any more.

Series are Reviewed-by: Huang Rui <[email protected]>

Quoted 21 lines
---
 drivers/gpu/drm/radeon/radeon_ttm.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/radeon/radeon_ttm.c +0 -3
index d4328ff57757..35b715f82ed8 100644
@@ -729,9 +729,6 @@ int radeon_ttm_init(struct radeon_device *rdev)
 	}
 	rdev->mman.initialized = true;
 
-	ttm_pool_init(&rdev->mman.bdev.pool, rdev->dev, rdev->need_swiotlb,
-		      dma_addressing_limited(&rdev->pdev->dev));
-
 	r = radeon_ttm_init_vram(rdev);
 	if (r) {
 		DRM_ERROR("Failed initializing VRAM heap.\n");
Signature · 1 line
2.25.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#3 lore raw
In reply to Christian König
Quoted 3 lines · Christian König

Drivers are not supposed to init the page pool directly any more.

Please include reported-by credits and link to the bug reports on lore.kernel.org when merging this. Also I guess this should have a Fixes:
line?

And maybe some words on how/why stuff blows up.
-Daniel

Quoted 25 lines
---
 drivers/gpu/drm/radeon/radeon_ttm.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/radeon/radeon_ttm.c +0 -3
index d4328ff57757..35b715f82ed8 100644
@@ -729,9 +729,6 @@ int radeon_ttm_init(struct radeon_device *rdev)
 	}
 	rdev->mman.initialized = true;
 
-	ttm_pool_init(&rdev->mman.bdev.pool, rdev->dev, rdev->need_swiotlb,
-		      dma_addressing_limited(&rdev->pdev->dev));
-
 	r = radeon_ttm_init_vram(rdev);
 	if (r) {
 		DRM_ERROR("Failed initializing VRAM heap.\n");
Signature · 6 lines
2.25.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw

Am 07.01.21 um 19:07 schrieb Daniel Vetter:

Quoted 7 lines · Christian König
Quoted 3 lines

Drivers are not supposed to init the page pool directly any more.

Please include reported-by credits and link to the bug reports on lore.kernel.org when merging this. Also I guess this should have a Fixes:
line?

I'm not aware of a bug report, but the reported-by/Fixes lines are indeed missing.

BTW: Any idea why dim add-link doesn't work?

Quoted 1 line

And maybe some words on how/why stuff blows up.

Just a typo. I've forgot to remove two lines in radeon while rebasing and still had the symbols exported so never noticed this.

Christian.

Quoted 23 lines

-Daniel

Quoted 21 lines
---
  drivers/gpu/drm/radeon/radeon_ttm.c | 3 ---
  1 file changed, 3 deletions(-)
drivers/gpu/drm/radeon/radeon_ttm.c +0 -3
index d4328ff57757..35b715f82ed8 100644
@@ -729,9 +729,6 @@ int radeon_ttm_init(struct radeon_device *rdev)
  	}
  	rdev->mman.initialized = true;
 
-	ttm_pool_init(&rdev->mman.bdev.pool, rdev->dev, rdev->need_swiotlb,
-		      dma_addressing_limited(&rdev->pdev->dev));
-
  	r = radeon_ttm_init_vram(rdev);
  	if (r) {
  		DRM_ERROR("Failed initializing VRAM heap.\n");
Signature · 1 line
2.25.1
Quoted 4 lines
Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#5 lore raw
Quoted 11 lines · Christian König

Am 07.01.21 um 19:07 schrieb Daniel Vetter:

Quoted 7 lines · Christian König
Quoted 3 lines

Drivers are not supposed to init the page pool directly any more.

Please include reported-by credits and link to the bug reports on lore.kernel.org when merging this. Also I guess this should have a Fixes:
line?

I'm not aware of a bug report, but the reported-by/Fixes lines are indeed missing.

This one here:

https://lore.kernel.org/dri-devel/[email protected]/

Or did I get confused, and the above is yet another bug?

Quoted 1 line

BTW: Any idea why dim add-link doesn't work?

Hm we occasionally have fun with email parsing (it's hard) and especially python changes in how encodings are handled differently between python2 and python3. If you have a specific example I can try and take a look why it doesn't work.
-Daniel

Quoted 34 lines
Quoted 1 line

And maybe some words on how/why stuff blows up.

Just a typo. I've forgot to remove two lines in radeon while rebasing and still had the symbols exported so never noticed this.

Christian.

Quoted 26 lines

-Daniel

Quoted 24 lines
---
  drivers/gpu/drm/radeon/radeon_ttm.c | 3 ---
  1 file changed, 3 deletions(-)
drivers/gpu/drm/radeon/radeon_ttm.c +0 -3
index d4328ff57757..35b715f82ed8 100644
@@ -729,9 +729,6 @@ int radeon_ttm_init(struct radeon_device *rdev)
  	}
  	rdev->mman.initialized = true;
-	ttm_pool_init(&rdev->mman.bdev.pool, rdev->dev, rdev->need_swiotlb,
-		      dma_addressing_limited(&rdev->pdev->dev));
-
  	r = radeon_ttm_init_vram(rdev);
  	if (r) {
  		DRM_ERROR("Failed initializing VRAM heap.\n");
Signature · 6 lines
2.25.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
maintainer
#6 lore raw

Am 08.01.21 um 15:31 schrieb Daniel Vetter:

Quoted 9 lines · Christian König
Quoted 8 lines

Am 07.01.21 um 19:07 schrieb Daniel Vetter:

Quoted 7 lines · Christian König
Quoted 3 lines

Drivers are not supposed to init the page pool directly any more.

Please include reported-by credits and link to the bug reports on lore.kernel.org when merging this. Also I guess this should have a Fixes:
line?

Quoted 7 lines
Quoted 2 lines

I'm not aware of a bug report, but the reported-by/Fixes lines are indeed missing.

This one here:

https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fdri-devel%2F20201231104020.GA4504%40zn.tnic%2F&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7C3aede203348b4f32ea3108d8b3e224ec%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637457131179258488%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=bHVw4lj1f8g4ohVTeuKNkb0LAbLwY6N4KWortr3VtAo%3D&amp;reserved=0

Or did I get confused, and the above is yet another bug?

Yeah, but that was just reported by mail. The bug tracker I've saw was opened after the patch was already pushed.

Quoted 6 lines
Quoted 2 lines

BTW: Any idea why dim add-link doesn't work?

Hm we occasionally have fun with email parsing (it's hard) and especially python changes in how encodings are handled differently between python2 and python3. If you have a specific example I can try and take a look why it doesn't work.

It just looks up and doesn't seem to do anything. I'm not familiar with python so I can just describe the symptoms.

Christian.

Quoted 30 lines

-Daniel

Quoted 28 lines
Quoted 1 line

And maybe some words on how/why stuff blows up.

Just a typo. I've forgot to remove two lines in radeon while rebasing and still had the symbols exported so never noticed this.

Christian.

Quoted 22 lines

-Daniel

Quoted 20 lines
---
   drivers/gpu/drm/radeon/radeon_ttm.c | 3 ---
   1 file changed, 3 deletions(-)
drivers/gpu/drm/radeon/radeon_ttm.c +0 -3
index d4328ff57757..35b715f82ed8 100644
@@ -729,9 +729,6 @@ int radeon_ttm_init(struct radeon_device *rdev)
   	}
   	rdev->mman.initialized = true;
-	ttm_pool_init(&rdev->mman.bdev.pool, rdev->dev, rdev->need_swiotlb,
-		      dma_addressing_limited(&rdev->pdev->dev));
-
   	r = radeon_ttm_init_vram(rdev);
   	if (r) {
   		DRM_ERROR("Failed initializing VRAM heap.\n");
Signature · 1 line
2.25.1
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fdri-devel&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7C3aede203348b4f32ea3108d8b3e224ec%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637457131179258488%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=pHzuAsJcXf5HlAfJ7wYYc%2BsizZhSLBGWXBhCyVNRCfo%3D&amp;reserved=0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
Quoted 13 lines · Christian König

Am 08.01.21 um 15:31 schrieb Daniel Vetter:

Quoted 11 lines · Christian König
Quoted 10 lines

Am 07.01.21 um 19:07 schrieb Daniel Vetter:

Quoted 7 lines · Christian König
Quoted 3 lines

Drivers are not supposed to init the page pool directly any more.

Please include reported-by credits and link to the bug reports on lore.kernel.org when merging this. Also I guess this should have a Fixes:
line?

I'm not aware of a bug report, but the reported-by/Fixes lines are indeed missing.

Quoted 8 lines
Quoted 5 lines

This one here:

https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fdri-devel%2F20201231104020.GA4504%40zn.tnic%2F&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7C3aede203348b4f32ea3108d8b3e224ec%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637457131179258488%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=bHVw4lj1f8g4ohVTeuKNkb0LAbLwY6N4KWortr3VtAo%3D&amp;reserved=0

Or did I get confused, and the above is yet another bug?

Yeah, but that was just reported by mail. The bug tracker I've saw was opened after the patch was already pushed.

Still good to give reported-by credits for mailing list reports and link to lore.kernel.org for the report, that's not just useful for bugzilla reports.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

BTW: Any idea why dim add-link doesn't work?

Hm we occasionally have fun with email parsing (it's hard) and especially python changes in how encodings are handled differently between python2 and python3. If you have a specific example I can try and take a look why it doesn't work.

It just looks up and doesn't seem to do anything. I'm not familiar with python so I can just describe the symptoms.

I meant tell me which mail (patchwork or lore) and I'll try to reproduce and see what's maybe up.
-Daniel

Quoted 38 lines

Christian.

Quoted 34 lines

-Daniel

Quoted 32 lines
Quoted 1 line

And maybe some words on how/why stuff blows up.

Just a typo. I've forgot to remove two lines in radeon while rebasing and still had the symbols exported so never noticed this.

Christian.

Quoted 26 lines

-Daniel

Quoted 24 lines
---
   drivers/gpu/drm/radeon/radeon_ttm.c | 3 ---
   1 file changed, 3 deletions(-)
drivers/gpu/drm/radeon/radeon_ttm.c +0 -4
index d4328ff57757..35b715f82ed8 100644
@@ -729,9 +729,6 @@ int radeon_ttm_init(struct radeon_device *rdev)
           }
           rdev->mman.initialized = true;
-  ttm_pool_init(&rdev->mman.bdev.pool, rdev->dev, rdev->need_swiotlb,
-                dma_addressing_limited(&rdev->pdev->dev));
-
           r = radeon_ttm_init_vram(rdev);
           if (r) {
                   DRM_ERROR("Failed initializing VRAM heap.\n");
--

2.25.1

_______________________________________________
dri-devel mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fdri-devel&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7C3aede203348b4f32ea3108d8b3e224ec%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637457131179258488%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=pHzuAsJcXf5HlAfJ7wYYc%2BsizZhSLBGWXBhCyVNRCfo%3D&amp;reserved=0

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#8 lore raw

Am 08.01.21 um 16:53 schrieb Daniel Vetter:

Quoted 15 lines · Christian König
Quoted 14 lines

Am 08.01.21 um 15:31 schrieb Daniel Vetter:

Quoted 13 lines · Christian König
Quoted 10 lines

Am 07.01.21 um 19:07 schrieb Daniel Vetter:

Quoted 7 lines · Christian König
Quoted 3 lines

Drivers are not supposed to init the page pool directly any more.

Please include reported-by credits and link to the bug reports on lore.kernel.org when merging this. Also I guess this should have a Fixes:
line?

I'm not aware of a bug report, but the reported-by/Fixes lines are indeed missing.

This one here:

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fdri-devel%2F20201231104020.GA4504%40zn.tnic%2F&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7C3aede203348b4f32ea3108d8b3e224ec%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637457131179258488%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=bHVw4lj1f8g4ohVTeuKNkb0LAbLwY6N4KWortr3VtAo%3D&amp;reserved=0

Or did I get confused, and the above is yet another bug?

Yeah, but that was just reported by mail. The bug tracker I've saw was opened after the patch was already pushed.

Still good to give reported-by credits for mailing list reports and link to lore.kernel.org for the report, that's not just useful for bugzilla reports.

That's indeed true, but I was distracted by the fact that drm-misc-fixes wasn't up to date :)

Going to add that earlier next time.

Quoted 9 lines
Quoted 7 lines
Quoted 5 lines
Quoted 1 line

BTW: Any idea why dim add-link doesn't work?

Hm we occasionally have fun with email parsing (it's hard) and especially python changes in how encodings are handled differently between python2 and python3. If you have a specific example I can try and take a look why it doesn't work.

It just looks up and doesn't seem to do anything. I'm not familiar with python so I can just describe the symptoms.

I meant tell me which mail (patchwork or lore) and I'll try to reproduce and see what's maybe up.

It doesn't seem to work in general. E.g. any patch I try I just don't get any progress in over 10 Minutes.

Maybe some server is not responding?

Christian.

Quoted 34 lines

-Daniel

Quoted 32 lines

Christian.

Quoted 30 lines

-Daniel

Quoted 28 lines
Quoted 1 line

And maybe some words on how/why stuff blows up.

Just a typo. I've forgot to remove two lines in radeon while rebasing and still had the symbols exported so never noticed this.

Christian.

Quoted 22 lines

-Daniel

Quoted 20 lines
---
    drivers/gpu/drm/radeon/radeon_ttm.c | 3 ---
    1 file changed, 3 deletions(-)
drivers/gpu/drm/radeon/radeon_ttm.c +0 -4
index d4328ff57757..35b715f82ed8 100644
@@ -729,9 +729,6 @@ int radeon_ttm_init(struct radeon_device *rdev)
            }
            rdev->mman.initialized = true;
-  ttm_pool_init(&rdev->mman.bdev.pool, rdev->dev, rdev->need_swiotlb,
-                dma_addressing_limited(&rdev->pdev->dev));
-
            r = radeon_ttm_init_vram(rdev);
            if (r) {
                    DRM_ERROR("Failed initializing VRAM heap.\n");
--

2.25.1

Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fdri-devel&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7C3aede203348b4f32ea3108d8b3e224ec%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637457131179258488%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=pHzuAsJcXf5HlAfJ7wYYc%2BsizZhSLBGWXBhCyVNRCfo%3D&amp;reserved=0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#9 lore raw
Quoted 37 lines · Christian König

Am 08.01.21 um 16:53 schrieb Daniel Vetter:

Quoted 15 lines · Christian König
Quoted 14 lines

Am 08.01.21 um 15:31 schrieb Daniel Vetter:

Quoted 13 lines · Christian König
Quoted 10 lines

Am 07.01.21 um 19:07 schrieb Daniel Vetter:

Quoted 7 lines · Christian König
Quoted 3 lines

Drivers are not supposed to init the page pool directly any more.

Please include reported-by credits and link to the bug reports on lore.kernel.org when merging this. Also I guess this should have a Fixes:
line?

I'm not aware of a bug report, but the reported-by/Fixes lines are indeed missing.

This one here:

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fdri-devel%2F20201231104020.GA4504%40zn.tnic%2F&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7C3aede203348b4f32ea3108d8b3e224ec%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637457131179258488%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=bHVw4lj1f8g4ohVTeuKNkb0LAbLwY6N4KWortr3VtAo%3D&amp;reserved=0

Or did I get confused, and the above is yet another bug?

Yeah, but that was just reported by mail. The bug tracker I've saw was opened after the patch was already pushed.

Still good to give reported-by credits for mailing list reports and link to lore.kernel.org for the report, that's not just useful for bugzilla reports.

That's indeed true, but I was distracted by the fact that drm-misc-fixes wasn't up to date :)

Going to add that earlier next time.

Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
Quoted 1 line

BTW: Any idea why dim add-link doesn't work?

Hm we occasionally have fun with email parsing (it's hard) and especially python changes in how encodings are handled differently between python2 and python3. If you have a specific example I can try and take a look why it doesn't work.

It just looks up and doesn't seem to do anything. I'm not familiar with python so I can just describe the symptoms.

Quoted 7 lines
Quoted 2 lines

I meant tell me which mail (patchwork or lore) and I'll try to reproduce and see what's maybe up.

It doesn't seem to work in general. E.g. any patch I try I just don't get any progress in over 10 Minutes.

Maybe some server is not responding?

Uh dim add-link pretty similar to dim apply-patch, it takes the mbox on stdin and does only local git stuff with it.
-Daniel

Quoted 43 lines

Christian.

Quoted 39 lines

-Daniel

Quoted 36 lines

Christian.

Quoted 34 lines

-Daniel

Quoted 32 lines
Quoted 1 line

And maybe some words on how/why stuff blows up.

Just a typo. I've forgot to remove two lines in radeon while rebasing and still had the symbols exported so never noticed this.

Christian.

Quoted 26 lines

-Daniel

Quoted 24 lines
---
    drivers/gpu/drm/radeon/radeon_ttm.c | 3 ---
    1 file changed, 3 deletions(-)
drivers/gpu/drm/radeon/radeon_ttm.c +0 -4
index d4328ff57757..35b715f82ed8 100644
@@ -729,9 +729,6 @@ int radeon_ttm_init(struct radeon_device *rdev)
            }
            rdev->mman.initialized = true;
-  ttm_pool_init(&rdev->mman.bdev.pool, rdev->dev, rdev->need_swiotlb,
-                dma_addressing_limited(&rdev->pdev->dev));
-
            r = radeon_ttm_init_vram(rdev);
            if (r) {
                    DRM_ERROR("Failed initializing VRAM heap.\n");
--

2.25.1

_______________________________________________
dri-devel mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fdri-devel&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7C3aede203348b4f32ea3108d8b3e224ec%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637457131179258488%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=pHzuAsJcXf5HlAfJ7wYYc%2BsizZhSLBGWXBhCyVNRCfo%3D&amp;reserved=0

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
maintainer
#10 lore raw

Am 11.01.21 um 17:17 schrieb Daniel Vetter:

Quoted 37 lines · Christian König
Quoted 36 lines

Am 08.01.21 um 16:53 schrieb Daniel Vetter:

Quoted 15 lines · Christian König
Quoted 14 lines

Am 08.01.21 um 15:31 schrieb Daniel Vetter:

Quoted 13 lines · Christian König
Quoted 10 lines

Am 07.01.21 um 19:07 schrieb Daniel Vetter:

Quoted 7 lines · Christian König
Quoted 3 lines

Drivers are not supposed to init the page pool directly any more.

Please include reported-by credits and link to the bug reports on lore.kernel.org when merging this. Also I guess this should have a Fixes:
line?

I'm not aware of a bug report, but the reported-by/Fixes lines are indeed missing.

This one here:

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fdri-devel%2F20201231104020.GA4504%40zn.tnic%2F&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7Cff77249040634cf2750308d8b64c616d%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637459786459556204%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=m8tjDXFtsEwtcv9byq5r1sbUuqb8q%2BAn63r4aKMpcaM%3D&amp;reserved=0

Or did I get confused, and the above is yet another bug?

Yeah, but that was just reported by mail. The bug tracker I've saw was opened after the patch was already pushed.

Still good to give reported-by credits for mailing list reports and link to lore.kernel.org for the report, that's not just useful for bugzilla reports.

That's indeed true, but I was distracted by the fact that drm-misc-fixes wasn't up to date :)

Going to add that earlier next time.

Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
Quoted 1 line

BTW: Any idea why dim add-link doesn't work?

Hm we occasionally have fun with email parsing (it's hard) and especially python changes in how encodings are handled differently between python2 and python3. If you have a specific example I can try and take a look why it doesn't work.

It just looks up and doesn't seem to do anything. I'm not familiar with python so I can just describe the symptoms.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

I meant tell me which mail (patchwork or lore) and I'll try to reproduce and see what's maybe up.

It doesn't seem to work in general. E.g. any patch I try I just don't get any progress in over 10 Minutes.

Maybe some server is not responding?

Uh dim add-link pretty similar to dim apply-patch, it takes the mbox on stdin and does only local git stuff with it.

AH! Since it was getting a branch parameter I was assuming that it looks at patches on that branch!

Thanks for the explanation,
Christian.

Quoted 38 lines

-Daniel

Quoted 36 lines

Christian.

Quoted 34 lines

-Daniel

Quoted 32 lines

Christian.

Quoted 30 lines

-Daniel

Quoted 28 lines
Quoted 1 line

And maybe some words on how/why stuff blows up.

Just a typo. I've forgot to remove two lines in radeon while rebasing and still had the symbols exported so never noticed this.

Christian.

Quoted 22 lines

-Daniel

Quoted 20 lines
---
     drivers/gpu/drm/radeon/radeon_ttm.c | 3 ---
     1 file changed, 3 deletions(-)
drivers/gpu/drm/radeon/radeon_ttm.c +0 -4
index d4328ff57757..35b715f82ed8 100644
@@ -729,9 +729,6 @@ int radeon_ttm_init(struct radeon_device *rdev)
             }
             rdev->mman.initialized = true;
-  ttm_pool_init(&rdev->mman.bdev.pool, rdev->dev, rdev->need_swiotlb,
-                dma_addressing_limited(&rdev->pdev->dev));
-
             r = radeon_ttm_init_vram(rdev);
             if (r) {
                     DRM_ERROR("Failed initializing VRAM heap.\n");
--

2.25.1

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fdri-devel&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7Cff77249040634cf2750308d8b64c616d%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637459786459556204%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=nBl4CRoSoA3t%2Bd4sZ4My4L27GiCiJwRenoILGU9LbO4%3D&amp;reserved=0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
Quoted 43 lines · Christian König

Am 11.01.21 um 17:17 schrieb Daniel Vetter:

Quoted 42 lines · Christian König
Quoted 41 lines

Am 08.01.21 um 16:53 schrieb Daniel Vetter:

Quoted 15 lines · Christian König
Quoted 14 lines

Am 08.01.21 um 15:31 schrieb Daniel Vetter:

Quoted 13 lines · Christian König
Quoted 10 lines

Am 07.01.21 um 19:07 schrieb Daniel Vetter:

Quoted 7 lines · Christian König
Quoted 3 lines

Drivers are not supposed to init the page pool directly any more.

Please include reported-by credits and link to the bug reports on lore.kernel.org when merging this. Also I guess this should have a Fixes:
line?

I'm not aware of a bug report, but the reported-by/Fixes lines are indeed missing.

This one here:

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fdri-devel%2F20201231104020.GA4504%40zn.tnic%2F&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7Cff77249040634cf2750308d8b64c616d%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637459786459556204%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=m8tjDXFtsEwtcv9byq5r1sbUuqb8q%2BAn63r4aKMpcaM%3D&amp;reserved=0

Or did I get confused, and the above is yet another bug?

Yeah, but that was just reported by mail. The bug tracker I've saw was opened after the patch was already pushed.

Still good to give reported-by credits for mailing list reports and link to lore.kernel.org for the report, that's not just useful for bugzilla reports.

That's indeed true, but I was distracted by the fact that drm-misc-fixes wasn't up to date :)

Going to add that earlier next time.

Quoted 9 lines
Quoted 7 lines
Quoted 5 lines
Quoted 1 line

BTW: Any idea why dim add-link doesn't work?

Hm we occasionally have fun with email parsing (it's hard) and especially python changes in how encodings are handled differently between python2 and python3. If you have a specific example I can try and take a look why it doesn't work.

It just looks up and doesn't seem to do anything. I'm not familiar with python so I can just describe the symptoms.

I meant tell me which mail (patchwork or lore) and I'll try to reproduce and see what's maybe up.

It doesn't seem to work in general. E.g. any patch I try I just don't get any progress in over 10 Minutes.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Maybe some server is not responding?

Uh dim add-link pretty similar to dim apply-patch, it takes the mbox on stdin and does only local git stuff with it.

AH! Since it was getting a branch parameter I was assuming that it looks at patches on that branch!

Yeah the branch parameter is just so it knows where it should add the
Link: Since the link is presumably not there yet we can't fish out the original mbox from archives anyway.
-Daniel

Quoted 47 lines

Thanks for the explanation,
Christian.

Quoted 42 lines

-Daniel

Quoted 40 lines

Christian.

Quoted 38 lines

-Daniel

Quoted 36 lines

Christian.

Quoted 34 lines

-Daniel

Quoted 32 lines
Quoted 1 line

And maybe some words on how/why stuff blows up.

Just a typo. I've forgot to remove two lines in radeon while rebasing and still had the symbols exported so never noticed this.

Christian.

Quoted 26 lines

-Daniel

Quoted 24 lines
---
     drivers/gpu/drm/radeon/radeon_ttm.c | 3 ---
     1 file changed, 3 deletions(-)
drivers/gpu/drm/radeon/radeon_ttm.c +0 -4
index d4328ff57757..35b715f82ed8 100644
@@ -729,9 +729,6 @@ int radeon_ttm_init(struct radeon_device *rdev)
             }
             rdev->mman.initialized = true;
-  ttm_pool_init(&rdev->mman.bdev.pool, rdev->dev, rdev->need_swiotlb,
-                dma_addressing_limited(&rdev->pdev->dev));
-
             r = radeon_ttm_init_vram(rdev);
             if (r) {
                     DRM_ERROR("Failed initializing VRAM heap.\n");
--

2.25.1

_______________________________________________
dri-devel mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fdri-devel&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7Cff77249040634cf2750308d8b64c616d%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637459786459556204%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=nBl4CRoSoA3t%2Bd4sZ4My4L27GiCiJwRenoILGU9LbO4%3D&amp;reserved=0

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Tested-by on v1 1/2
#12 lore raw
In reply to Christian König
Quoted 13 lines · Christian König

Drivers are not supposed to init the page pool directly any more.

---
 drivers/gpu/drm/radeon/radeon_ttm.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/radeon/radeon_ttm.c +0 -0
index d4328ff57757..35b715f82ed8 100644

drivers/gpu/drm/radeon/radeon_ttm.c int radeon_ttm_init(struct radeon_device *rdev) · line 734

Quoted 9 lines
drivers/gpu/drm/radeon/radeon_ttm.c +0 -3
@@ -729,9 +729,6 @@ int radeon_ttm_init(struct radeon_device *rdev)
 	}
 	rdev->mman.initialized = true;
 
-	ttm_pool_init(&rdev->mman.bdev.pool, rdev->dev, rdev->need_swiotlb,
-		      dma_addressing_limited(&rdev->pdev->dev));
-
 	r = radeon_ttm_init_vram(rdev);
 	if (r) {
 		DRM_ERROR("Failed initializing VRAM heap.\n");

Was finally able to test those during workstation hw maintenance so I was able to install a new kernel and reboot.

Thanks for the fixes!

Signature · 8 lines
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel