* [amdgpu] Is it possible to disable page tables and use the physical address directly in amdgpu
@ 2020-12-01 6:58 Smith John
2020-12-01 9:50 ` Christian König
0 siblings, 1 reply; 4+ messages in thread
From: Smith John @ 2020-12-01 6:58 UTC (permalink / raw)
To: amd-gfx
[-- Attachment #1.1: Type: text/plain, Size: 262 bytes --]
Hello!
I was trying to figure out the impact of gpu page tables on applications'
performance. I noticed that there are 16 vmids supported by the hardware *Vega
10*. Is it possible to use physical address directly in some vmids, or use
physical address globally?
[-- Attachment #1.2: Type: text/html, Size: 318 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [amdgpu] Is it possible to disable page tables and use the physical address directly in amdgpu
2020-12-01 6:58 [amdgpu] Is it possible to disable page tables and use the physical address directly in amdgpu Smith John
@ 2020-12-01 9:50 ` Christian König
2020-12-01 11:28 ` Smith John
0 siblings, 1 reply; 4+ messages in thread
From: Christian König @ 2020-12-01 9:50 UTC (permalink / raw)
To: Smith John, amd-gfx
[-- Attachment #1.1: Type: text/plain, Size: 634 bytes --]
Am 01.12.20 um 07:58 schrieb Smith John:
> Hello!
> I was trying to figure out the impact of gpu page tables on
> applications' performance. I noticed that there are 16 vmids supported
> by the hardware /Vega 10/. Is it possible to use physical address
> directly in some vmids, or use physical address globally?
No. VMID0 is used by the kernel for jobs like copying things from A to B
and even there we use the VM remapping functionality.
Regards,
Christian.
>
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[-- Attachment #1.2: Type: text/html, Size: 1636 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [amdgpu] Is it possible to disable page tables and use the physical address directly in amdgpu
2020-12-01 9:50 ` Christian König
@ 2020-12-01 11:28 ` Smith John
2020-12-01 12:06 ` Christian König
0 siblings, 1 reply; 4+ messages in thread
From: Smith John @ 2020-12-01 11:28 UTC (permalink / raw)
To: christian.koenig; +Cc: amd-gfx
[-- Attachment #1.1: Type: text/plain, Size: 1377 bytes --]
Hi Christian,
Thanks for your reply. I agree with you that the VMID0 is special and
remapping is important. I was not sure if different VIMDs could have
different settings, such as enable/disable page tables.
Or to put it another way, I was wondering if the hardware supports purely
physical addressing like the real mode in CPUs, or page tables are
essential for the hardware.
More specifically, assuming it supports "real mode", to copy things from A
to B, one could allocate rings which are accessible by MMIO and fill sdma
packets using physical address to transfer data.
Regards,
Smith
Christian König <ckoenig.leichtzumerken@gmail.com> 于2020年12月1日周二 下午5:50写道:
> Am 01.12.20 um 07:58 schrieb Smith John:
>
> Hello!
> I was trying to figure out the impact of gpu page tables on applications'
> performance. I noticed that there are 16 vmids supported by the hardware *Vega
> 10*. Is it possible to use physical address directly in some vmids, or
> use physical address globally?
>
>
> No. VMID0 is used by the kernel for jobs like copying things from A to B
> and even there we use the VM remapping functionality.
>
> Regards,
> Christian.
>
>
>
> _______________________________________________
> amd-gfx mailing listamd-gfx@lists.freedesktop.orghttps://lists.freedesktop.org/mailman/listinfo/amd-gfx
>
>
>
[-- Attachment #1.2: Type: text/html, Size: 2313 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [amdgpu] Is it possible to disable page tables and use the physical address directly in amdgpu
2020-12-01 11:28 ` Smith John
@ 2020-12-01 12:06 ` Christian König
0 siblings, 0 replies; 4+ messages in thread
From: Christian König @ 2020-12-01 12:06 UTC (permalink / raw)
To: Smith John, christian.koenig; +Cc: amd-gfx
[-- Attachment #1.1: Type: text/plain, Size: 2243 bytes --]
The page tables can be enabled/disabled on a per VMID basis, but memory
management in the core kernel works with pages.
So you need a relocation table just because of this. Additional to that
the TLB is more than big enough, so there isn't much performance gain if
you use huge pages.
Please note that the VM subsystem also supports giant pages, so if your
application manages to allocate things in chunks of at least 1GB you
only get a single page table entry for that.
Regards,
Christian.
Am 01.12.20 um 12:28 schrieb Smith John:
> Hi Christian,
> Thanks for your reply. I agree with you that the VMID0 is special and
> remapping is important. I was not sure if different VIMDs could have
> different settings, such as enable/disable page tables.
> Or to put it another way, I was wondering if the hardware supports
> purely physical addressing like the real mode in CPUs, or page tables
> are essential for the hardware.
> More specifically, assuming it supports "real mode", to copy things
> from A to B, one could allocate rings which are accessible by MMIO and
> fill sdma packets using physical address to transfer data.
>
> Regards,
> Smith
>
> Christian König <ckoenig.leichtzumerken@gmail.com
> <mailto:ckoenig.leichtzumerken@gmail.com>> 于2020年12月1日周二
> 下午5:50写道:
>
> Am 01.12.20 um 07:58 schrieb Smith John:
>> Hello!
>> I was trying to figure out the impact of gpu page tables on
>> applications' performance. I noticed that there are 16 vmids
>> supported by the hardware /Vega 10/. Is it possible to use
>> physical address directly in some vmids, or use physical address
>> globally?
>
> No. VMID0 is used by the kernel for jobs like copying things from
> A to B and even there we use the VM remapping functionality.
>
> Regards,
> Christian.
>
>>
>>
>> _______________________________________________
>> amd-gfx mailing list
>> amd-gfx@lists.freedesktop.org <mailto:amd-gfx@lists.freedesktop.org>
>> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[-- Attachment #1.2: Type: text/html, Size: 4325 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-12-01 12:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-01 6:58 [amdgpu] Is it possible to disable page tables and use the physical address directly in amdgpu Smith John
2020-12-01 9:50 ` Christian König
2020-12-01 11:28 ` Smith John
2020-12-01 12:06 ` Christian König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).