drm/amdgpu: Set the bit of ip_block_mask correspond to the IP block define
Subsystems (2)
PATCH 1/1 drm/amdgpu: Set the bit of ip_block_mask correspond to the IP block define
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -1
@@ -1297,7 +1297,8 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) }for (i =0 ; i < adev->num_ip_blocks; i++) { -if ((amdgpu_ip_block_mask & (1 << i)) ==0 ) { +if ((amdgpu_ip_block_mask & + (1 << adev->ip_blocks[i].version->type)) ==0 ) {DRM_ERROR ("disabled ip block: %d <%s>\n" , i, adev->ip_blocks[i].version->funcs->name); adev->ip_blocks[i].status.valid = false;
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1517515830-27767-1-git-send-email-Shaoyun.Liu-5C7GfCeVMHo@public.gmane.org
Christian König
NAKNAK, there might be different blocks with the same type and we want to be able to disable/enable them individually.
But we could improve a bit printing which block has which number during startup.
Regards,
Christian.
Am 01.02.2018 um 21:10 schrieb Shaoyun Liu:
Quoted 11 lines
Change-Id I4bdc6dbcd82f32416f65e0a38fb9c3cb580684bfSigned-off-by Shaoyun Liu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) · line 1304
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2
-1@@ -1297,7 +1297,8 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) }for (i =0 ; i < adev->num_ip_blocks; i++) { -if ((amdgpu_ip_block_mask & (1 << i)) ==0 ) { +if ((amdgpu_ip_block_mask & + (1 << adev->ip_blocks[i].version->type)) ==0 ) {DRM_ERROR ("disabled ip block: %d <%s>\n" , i, adev->ip_blocks[i].version->funcs->name); adev->ip_blocks[i].status.valid = false;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 93c73f1e-dc22-b830-a7f0-823e2a3aebc2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Liu, Shaoyun
NAKCan you provide the example of which different block with the same type and why we want to do that ?
With the old implementation , the bit mask is depends on the order that driver call the amdgpu_device_ip_block_add(), they are not fixed . With this change ,at least developer can count out how to set the bit mask after check the ip type defines and they are fixed for amdgpu driver .
Regards
Shaoyun.liu
-----Original Message-----
From: Christian König [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:17 PM
To: Liu, Shaoyun; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit of ip_block_mask correspond to the IP block define
NAK, there might be different blocks with the same type and we want to be able to disable/enable them individually.
But we could improve a bit printing which block has which number during startup.
Regards,
Christian.
Am 01.02.2018 um 21:10 schrieb Shaoyun Liu:
Quoted 12 lines
Change-Id I4bdc6dbcd82f32416f65e0a38fb9c3cb580684bfSigned-off-by Shaoyun Liu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) · line 1304
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2
-1@@ -1297,7 +1297,8 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) }for (i =0 ; i < adev->num_ip_blocks; i++) { -if ((amdgpu_ip_block_mask & (1 << i)) ==0 ) { +if ((amdgpu_ip_block_mask & + (1 << adev->ip_blocks[i].version->type)) ==0 ) {DRM_ERROR ("disabled ip block: %d <%s>\n" , i, adev->ip_blocks[i].version->funcs->name); adev->ip_blocks[i].status.valid = false;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): BN6PR12MB1172B77324112FE0EBE3C81EF4FA0-/b2+HYfkarTft/[email protected]
Quoted 3 lines · Shaoyun
Can you provide the example of which different block with the same type and why we want to do that ?
With the old implementation , the bit mask is depends on the order that driver call theamdgpu_device_ip_block_add(), they are not fixed . With this change ,at least developer can count out how to set the bit mask after check the ip type defines and they are fixed for amdgpu driver .
We don't do it today, (although we could have structured SDMA that way on platforms that support two SDMA IPs). The idea was that you might have future designs that have multiple IPs on a single SoC. E.g., two different VCE blocks, potentially with different IP versions.
Alex
Quoted 32 lines
Regards
Shaoyun.liu-----Original Message-----
From: Christian König [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:17 PM
To: Liu, Shaoyun; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit ofip_block_maskcorrespond to the IP block defineNAK, there might be different blocks with the same type and we want to be able to disable/enable them individually.
But we could improve a bit printing which block has which number during startup.
Regards,
Christian.Am 01.02.2018 um 21:10 schrieb Shaoyun Liu:
Quoted 14 lines
Change-Id I4bdc6dbcd82f32416f65e0a38fb9c3cb580684bfSigned-off-by Shaoyun Liu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0@@ -1297,7 +1297,8 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) }
Quoted 12 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) · line 1304
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2
-1for (i =0 ; i < adev->num_ip_blocks; i++) { -if ((amdgpu_ip_block_mask & (1 << i)) ==0 ) { +if ((amdgpu_ip_block_mask & + (1 << adev->ip_blocks[i].version->type)) ==0 ) {DRM_ERROR ("disabled ip block: %d <%s>\n" , i, adev->ip_blocks[i].version->funcs->name); adev->ip_blocks[i].status.valid = false;_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): CADnq5_NsF7GqeiiS89jSqqB5ehMNW=4T3SoL8g5TS2swj1WqYg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
In that case , even existing implementation need to be changed and can we add VCE0 and VCE1 for ex as different IP type when necessary ?
Regards
Shaoyun.liu
-----Original Message-----
From: Alex Deucher [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:37 PM
To: Liu, Shaoyun
Cc: Koenig, Christian; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit of ip_block_mask correspond to the IP block define
Quoted 3 lines · Shaoyun
Can you provide the example of which different block with the same type and why we want to do that ?
With the old implementation , the bit mask is depends on the order that driver call theamdgpu_device_ip_block_add(), they are not fixed . With this change ,at least developer can count out how to set the bit mask after check the ip type defines and they are fixed for amdgpu driver .
We don't do it today, (although we could have structured SDMA that way on platforms that support two SDMA IPs). The idea was that you might have future designs that have multiple IPs on a single SoC. E.g., two different VCE blocks, potentially with different IP versions.
Alex
Quoted 33 lines
Regards
Shaoyun.liu-----Original Message-----
From: Christian König [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:17 PM
To: Liu, Shaoyun; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit ofip_block_maskcorrespond to the IP block defineNAK, there might be different blocks with the same type and we want to be able to disable/enable them individually.
But we could improve a bit printing which block has which number during startup.
Regards,
Christian.Am 01.02.2018 um 21:10 schrieb Shaoyun Liu:
Quoted 14 lines
Change-Id I4bdc6dbcd82f32416f65e0a38fb9c3cb580684bfSigned-off-by Shaoyun Liu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0@@ -1297,7 +1297,8 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) }
Quoted 13 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3
-1for (i =0 ; i < adev->num_ip_blocks; i++) { -if ((amdgpu_ip_block_mask & (1 << i)) ==0 ) { +if ((amdgpu_ip_block_mask & + (1 << adev->ip_blocks[i].version->type)) ==0 ) + {DRM_ERROR ("disabled ip block: %d <%s>\n" , i, adev->ip_blocks[i].version->funcs->name); adev->ip_blocks[i].status.valid = false;_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): BN6PR12MB11721A78FF1139FF2F46BA87F4FA0-/b2+HYfkarTft/[email protected]
Quoted 1 line · Shaoyun
In that case , even existing implementation need to be changed and can we add VCE0 and VCE1 for ex as different IP type when necessary ?
That kind of waters down the meaning of block type. Plus if we ever end up creating a chip with several instances, we'll end up with VCE0, VCE1, VCE2, etc. which will waste a lot of the ip address space.
Alex
Quoted 11 lines
Regards
Shaoyun.liu-----Original Message-----
From: Alex Deucher [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:37 PM
To: Liu, Shaoyun
Cc: Koenig, Christian; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit ofip_block_maskcorrespond to the IP block define
Quoted 55 lines
Quoted 3 lines · Shaoyun
Can you provide the example of which different block with the same type and why we want to do that ?
With the old implementation , the bit mask is depends on the order that driver call theamdgpu_device_ip_block_add(), they are not fixed . With this change ,at least developer can count out how to set the bit mask after check the ip type defines and they are fixed for amdgpu driver .We don't do it today, (although we could have structured SDMA that way on platforms that support two SDMA IPs). The idea was that you might have future designs that have multiple IPs on a single SoC. E.g., two different VCE blocks, potentially with different IP versions.
Alex
Quoted 46 lines
Regards
Shaoyun.liu-----Original Message-----
From: Christian König [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:17 PM
To: Liu, Shaoyun; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit ofip_block_maskcorrespond to the IP block defineNAK, there might be different blocks with the same type and we want to be able to disable/enable them individually.
But we could improve a bit printing which block has which number during startup.
Regards,
Christian.Am 01.02.2018 um 21:10 schrieb Shaoyun Liu:
Quoted 12 lines
Change-Id I4bdc6dbcd82f32416f65e0a38fb9c3cb580684bfSigned-off-by Shaoyun Liu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0drivers/gpu/drm/amd/amdgpu/amdgpu_device.c static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3
-1@@ -1297,7 +1297,8 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) }for (i =0 ; i < adev->num_ip_blocks; i++) { -if ((amdgpu_ip_block_mask & (1 << i)) ==0 ) { +if ((amdgpu_ip_block_mask & + (1 << adev->ip_blocks[i].version->type)) ==0 ) + {DRM_ERROR ("disabled ip block: %d <%s>\n" , i, adev->ip_blocks[i].version->funcs->name); adev->ip_blocks[i].status.valid = false;_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): CADnq5_PX0FzwpWhEVfbc7SO8TyqxnV68eLQ-OFxWfgfJCfWkFA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
So you guys prefer to add some print out message of the bit mapping and developer use that info to calculate the setting when load the module next time ?
Regards
Shaoyun.liu
-----Original Message-----
From: Alex Deucher [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:51 PM
To: Liu, Shaoyun
Cc: Koenig, Christian; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit of ip_block_mask correspond to the IP block define
Quoted 1 line · Shaoyun
In that case , even existing implementation need to be changed and can we add VCE0 and VCE1 for ex as different IP type when necessary ?
That kind of waters down the meaning of block type. Plus if we ever end up creating a chip with several instances, we'll end up with VCE0, VCE1, VCE2, etc. which will waste a lot of the ip address space.
Alex
Quoted 12 lines
Regards
Shaoyun.liu-----Original Message-----
From: Alex Deucher [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:37 PM
To: Liu, Shaoyun
Cc: Koenig, Christian; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit ofip_block_maskcorrespond to the IP block define
Quoted 55 lines
Quoted 3 lines · Shaoyun
Can you provide the example of which different block with the same type and why we want to do that ?
With the old implementation , the bit mask is depends on the order that driver call theamdgpu_device_ip_block_add(), they are not fixed . With this change ,at least developer can count out how to set the bit mask after check the ip type defines and they are fixed for amdgpu driver .We don't do it today, (although we could have structured SDMA that way on platforms that support two SDMA IPs). The idea was that you might have future designs that have multiple IPs on a single SoC. E.g., two different VCE blocks, potentially with different IP versions.
Alex
Quoted 46 lines
Regards
Shaoyun.liu-----Original Message-----
From: Christian König [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:17 PM
To: Liu, Shaoyun; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit ofip_block_maskcorrespond to the IP block defineNAK, there might be different blocks with the same type and we want to be able to disable/enable them individually.
But we could improve a bit printing which block has which number during startup.
Regards,
Christian.Am 01.02.2018 um 21:10 schrieb Shaoyun Liu:
Quoted 12 lines
Change-Id I4bdc6dbcd82f32416f65e0a38fb9c3cb580684bfSigned-off-by Shaoyun Liu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0drivers/gpu/drm/amd/amdgpu/amdgpu_device.c static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3
-1@@ -1297,7 +1297,8 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) }for (i =0 ; i < adev->num_ip_blocks; i++) { -if ((amdgpu_ip_block_mask & (1 << i)) ==0 ) { +if ((amdgpu_ip_block_mask & + (1 << adev->ip_blocks[i].version->type)) ==0 ) + {DRM_ERROR ("disabled ip block: %d <%s>\n" , i, adev->ip_blocks[i].version->funcs->name); adev->ip_blocks[i].status.valid = false;_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): BN6PR12MB1172070E872FA7FEAF84BF14F4FA0-/b2+HYfkarTft/[email protected]
Am 01.02.2018 um 22:05 schrieb Liu, Shaoyun:
Quoted 1 line
So you guys prefer to add some print out message of the bit mapping and developer use that info to calculate the setting when load the module next time ?
Yes, that would certainly help.
Christian.
Quoted 81 lines
Regards
Shaoyun.liu-----Original Message-----
From: Alex Deucher [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:51 PM
To: Liu, Shaoyun
Cc: Koenig, Christian; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit ofip_block_maskcorrespond to the IP block defineQuoted 1 line · Shaoyun
In that case , even existing implementation need to be changed and can we add VCE0 and VCE1 for ex as different IP type when necessary ?
That kind of waters down the meaning of block type. Plus if we ever end up creating a chip with several instances, we'll end up with VCE0, VCE1, VCE2, etc. which will waste a lot of the ip address space.
Alex
Quoted 11 lines
Regards
Shaoyun.liu-----Original Message-----
From: Alex Deucher [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:37 PM
To: Liu, Shaoyun
Cc: Koenig, Christian; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit ofip_block_maskcorrespond to the IP block defineQuoted 53 lines
Quoted 3 lines · Shaoyun
Can you provide the example of which different block with the same type and why we want to do that ?
With the old implementation , the bit mask is depends on the order that driver call theamdgpu_device_ip_block_add(), they are not fixed . With this change ,at least developer can count out how to set the bit mask after check the ip type defines and they are fixed for amdgpu driver .We don't do it today, (although we could have structured SDMA that way on platforms that support two SDMA IPs). The idea was that you might have future designs that have multiple IPs on a single SoC. E.g., two different VCE blocks, potentially with different IP versions.
Alex
Quoted 45 lines
Regards
Shaoyun.liu-----Original Message-----
From: Christian König [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:17 PM
To: Liu, Shaoyun; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit ofip_block_maskcorrespond to the IP block defineNAK, there might be different blocks with the same type and we want to be able to disable/enable them individually.
But we could improve a bit printing which block has which number during startup.
Regards,
Christian.Am 01.02.2018 um 21:10 schrieb Shaoyun Liu:
Quoted 12 lines
Change-Id I4bdc6dbcd82f32416f65e0a38fb9c3cb580684bfSigned-off-by Shaoyun Liu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0drivers/gpu/drm/amd/amdgpu/amdgpu_device.c static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3
-1@@ -1297,7 +1297,8 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) }for (i =0 ; i < adev->num_ip_blocks; i++) { -if ((amdgpu_ip_block_mask & (1 << i)) ==0 ) { +if ((amdgpu_ip_block_mask & + (1 << adev->ip_blocks[i].version->type)) ==0 ) + {DRM_ERROR ("disabled ip block: %d <%s>\n" , i, adev->ip_blocks[i].version->funcs->name); adev->ip_blocks[i].status.valid = false;_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 086d1e15-bca9-9848-5a10-f8bd150221e4-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Do you mind to change the DRM_DEBUG to DRM_INFO for this message ?
-----Original Message-----
From: Christian König [mailto:[email protected]]
Sent: Thursday, February 01, 2018 4:11 PM
To: Liu, Shaoyun; Alex Deucher; Bridgman, John
Cc: Koenig, Christian; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit of ip_block_mask correspond to the IP block define
Am 01.02.2018 um 22:05 schrieb Liu, Shaoyun:
Quoted 1 line
So you guys prefer to add some print out message of the bit mapping and developer use that info to calculate the setting when load the module next time ?
Yes, that would certainly help.
Christian.
Quoted 82 lines
Regards
Shaoyun.liu-----Original Message-----
From: Alex Deucher [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:51 PM
To: Liu, Shaoyun
Cc: Koenig, Christian; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit ofip_block_maskcorrespond to the IP block defineQuoted 1 line · Shaoyun
In that case , even existing implementation need to be changed and can we add VCE0 and VCE1 for ex as different IP type when necessary ?
That kind of waters down the meaning of block type. Plus if we ever end up creating a chip with several instances, we'll end up with VCE0, VCE1, VCE2, etc. which will waste a lot of the ip address space.
Alex
Quoted 11 lines
Regards
Shaoyun.liu-----Original Message-----
From: Alex Deucher [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:37 PM
To: Liu, Shaoyun
Cc: Koenig, Christian; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit ofip_block_maskcorrespond to the IP block defineQuoted 53 lines
Quoted 3 lines · Shaoyun
Can you provide the example of which different block with the same type and why we want to do that ?
With the old implementation , the bit mask is depends on the order that driver call theamdgpu_device_ip_block_add(), they are not fixed . With this change ,at least developer can count out how to set the bit mask after check the ip type defines and they are fixed for amdgpu driver .We don't do it today, (although we could have structured SDMA that way on platforms that support two SDMA IPs). The idea was that you might have future designs that have multiple IPs on a single SoC. E.g., two different VCE blocks, potentially with different IP versions.
Alex
Quoted 45 lines
Regards
Shaoyun.liu-----Original Message-----
From: Christian König [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:17 PM
To: Liu, Shaoyun; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit ofip_block_maskcorrespond to the IP block defineNAK, there might be different blocks with the same type and we want to be able to disable/enable them individually.
But we could improve a bit printing which block has which number during startup.
Regards,
Christian.Am 01.02.2018 um 21:10 schrieb Shaoyun Liu:
Quoted 12 lines
Change-Id I4bdc6dbcd82f32416f65e0a38fb9c3cb580684bfSigned-off-by Shaoyun Liu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0drivers/gpu/drm/amd/amdgpu/amdgpu_device.c static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3
-1@@ -1297,7 +1297,8 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) }for (i =0 ; i < adev->num_ip_blocks; i++) { -if ((amdgpu_ip_block_mask & (1 << i)) ==0 ) { +if ((amdgpu_ip_block_mask & + (1 << adev->ip_blocks[i].version->type)) == +0 ) {DRM_ERROR ("disabled ip block: %d <%s>\n" , i, adev->ip_blocks[i].version->funcs->name); adev->ip_blocks[i].status.valid = false;_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): BN6PR12MB1172137FA009DF96EFC503CCF4FA0-/b2+HYfkarTft/[email protected]
I don't care much, but the SRIOV guys are picky about how long we spend with the GPU in exclusive mode and printing messages affect that quite a bit.
Maybe print the config once after the whole initialization routine is done or something like that.
Regards,
Christian.
Am 01.02.2018 um 22:13 schrieb Liu, Shaoyun:
Quoted 96 lines
Do you mind to change the
DRM_DEBUGtoDRM_INFOfor this message ?-----Original Message-----
From: Christian König [mailto:[email protected]]
Sent: Thursday, February 01, 2018 4:11 PM
To: Liu, Shaoyun; Alex Deucher; Bridgman, John
Cc: Koenig, Christian; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit ofip_block_maskcorrespond to the IP block defineAm 01.02.2018 um 22:05 schrieb Liu, Shaoyun:
Quoted 1 line
So you guys prefer to add some print out message of the bit mapping and developer use that info to calculate the setting when load the module next time ?
Yes, that would certainly help.
Christian.
Quoted 81 lines
Regards
Shaoyun.liu-----Original Message-----
From: Alex Deucher [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:51 PM
To: Liu, Shaoyun
Cc: Koenig, Christian; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit ofip_block_maskcorrespond to the IP block defineQuoted 1 line · Shaoyun
In that case , even existing implementation need to be changed and can we add VCE0 and VCE1 for ex as different IP type when necessary ?
That kind of waters down the meaning of block type. Plus if we ever end up creating a chip with several instances, we'll end up with VCE0, VCE1, VCE2, etc. which will waste a lot of the ip address space.
Alex
Quoted 64 lines
Regards
Shaoyun.liu-----Original Message-----
From: Alex Deucher [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:37 PM
To: Liu, Shaoyun
Cc: Koenig, Christian; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit ofip_block_maskcorrespond to the IP block defineQuoted 3 lines · Shaoyun
Can you provide the example of which different block with the same type and why we want to do that ?
With the old implementation , the bit mask is depends on the order that driver call theamdgpu_device_ip_block_add(), they are not fixed . With this change ,at least developer can count out how to set the bit mask after check the ip type defines and they are fixed for amdgpu driver .We don't do it today, (although we could have structured SDMA that way on platforms that support two SDMA IPs). The idea was that you might have future designs that have multiple IPs on a single SoC. E.g., two different VCE blocks, potentially with different IP versions.
Alex
Quoted 45 lines
Regards
Shaoyun.liu-----Original Message-----
From: Christian König [mailto:[email protected]]
Sent: Thursday, February 01, 2018 3:17 PM
To: Liu, Shaoyun; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Set the bit ofip_block_maskcorrespond to the IP block defineNAK, there might be different blocks with the same type and we want to be able to disable/enable them individually.
But we could improve a bit printing which block has which number during startup.
Regards,
Christian.Am 01.02.2018 um 21:10 schrieb Shaoyun Liu:
Quoted 12 lines
Change-Id I4bdc6dbcd82f32416f65e0a38fb9c3cb580684bfSigned-off-by Shaoyun Liu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0drivers/gpu/drm/amd/amdgpu/amdgpu_device.c static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3
-1@@ -1297,7 +1297,8 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) }for (i =0 ; i < adev->num_ip_blocks; i++) { -if ((amdgpu_ip_block_mask & (1 << i)) ==0 ) { +if ((amdgpu_ip_block_mask & + (1 << adev->ip_blocks[i].version->type)) == +0 ) {DRM_ERROR ("disabled ip block: %d <%s>\n" , i, adev->ip_blocks[i].version->funcs->name); adev->ip_blocks[i].status.valid = false;_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 8 lines
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx