All of lore.kernel.org
 help / color / mirror / Atom feed
* Making a GDS Allocation for NGG
@ 2018-08-14 13:30 Jakub Okoński
       [not found] ` <CADTJRYdMXzoFN75JF9VBcWmB+ee85PQFJ6UsCKC=Pep4sJUN4Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Jakub Okoński @ 2018-08-14 13:30 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Hi folks,

I was trying to play around with NGG on Vega using the open source AMDVLK stack.
After fetching all the code, I disabled an override in PAL, under
gfx9SettingsLoader.cpp
that disables the NGG setting. I've put a new option in my
amdPalSettings.cfg: `NggMode,7` and that was enough to enable it.

When I ran a small vulkan application, it crashed with a "Not implemented" error
in Pal::Linux::Device::AllocateGds. The comment there says:

    // TODO: implement it once amdgpu is ready.

I couldn't find anything specific to GDS allocation in upstream
kernel, so I looked at
agd5f/amd-staging-drm-next and found some code related to
AMDGPU_GEM_DOMAIN_GDS and allocating a bo object. This is in
amdgpu_gem_create_ioctl, so I think it's accessible to userspace, with
a small change
in libdrm, probably.

Is this what is needed to make a GDS allocation that NGG would accept, or is it
unrelated? Do you know if there are any other blockers for NGG besides this?

Regards,
Jakub
_______________________________________________
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: Making a GDS Allocation for NGG
       [not found] ` <CADTJRYdMXzoFN75JF9VBcWmB+ee85PQFJ6UsCKC=Pep4sJUN4Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2018-08-15  6:36   ` Jin, Jian-Rong
       [not found]     ` <DM5PR12MB15291FF96F65867EC066903FAB3F0-2J9CzHegvk9c1F9zY4ibCgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Jin, Jian-Rong @ 2018-08-15  6:36 UTC (permalink / raw)
  To: Jakub Okoński, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Hi Jakub。
Both KMD and LLPC are not ready to support NGG for gfx9. We are going to support NGG in amdvlk for next generation GPU.

Thanks
Jian-Rong JIN

-----Original Message-----
From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of Jakub Okoński
Sent: 2018年8月14日 21:31
To: amd-gfx@lists.freedesktop.org
Subject: Making a GDS Allocation for NGG

Hi folks,

I was trying to play around with NGG on Vega using the open source AMDVLK stack.
After fetching all the code, I disabled an override in PAL, under gfx9SettingsLoader.cpp that disables the NGG setting. I've put a new option in my
amdPalSettings.cfg: `NggMode,7` and that was enough to enable it.

When I ran a small vulkan application, it crashed with a "Not implemented" error in Pal::Linux::Device::AllocateGds. The comment there says:

    // TODO: implement it once amdgpu is ready.

I couldn't find anything specific to GDS allocation in upstream kernel, so I looked at agd5f/amd-staging-drm-next and found some code related to AMDGPU_GEM_DOMAIN_GDS and allocating a bo object. This is in amdgpu_gem_create_ioctl, so I think it's accessible to userspace, with a small change in libdrm, probably.

Is this what is needed to make a GDS allocation that NGG would accept, or is it unrelated? Do you know if there are any other blockers for NGG besides this?

Regards,
Jakub
_______________________________________________
amd-gfx mailing list
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Making a GDS Allocation for NGG
       [not found]     ` <DM5PR12MB15291FF96F65867EC066903FAB3F0-2J9CzHegvk9c1F9zY4ibCgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
@ 2018-08-15 12:33       ` Jakub Okoński
       [not found]         ` <CADTJRYe5e83_DOh8S_W=ZLgHkoGEneUHv0CpA+X0HAfRfe_TOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Jakub Okoński @ 2018-08-15 12:33 UTC (permalink / raw)
  To: Jin, Jian-Rong; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 2060 bytes --]

Hey Jian-Rong,

Will gfx9 get support from KMD and LLPC by the time gfx10 releases, or is
it only going to be a gfx10-and-forward feature?

If not, is there something missing in gfx9 hardware? Are you allowed to say?

Thanks,
Jakub

On Wed, 15 Aug 2018 at 08:36 Jin, Jian-Rong <Jian-Rong.Jin-5C7GfCeVMHo@public.gmane.org> wrote:

> Hi Jakub。
> Both KMD and LLPC are not ready to support NGG for gfx9. We are going to
> support NGG in amdvlk for next generation GPU.
>
> Thanks
> Jian-Rong JIN
>
> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> On Behalf Of Jakub
> Okoński
> Sent: 2018年8月14日 21:31
> To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
> Subject: Making a GDS Allocation for NGG
>
> Hi folks,
>
> I was trying to play around with NGG on Vega using the open source AMDVLK
> stack.
> After fetching all the code, I disabled an override in PAL, under
> gfx9SettingsLoader.cpp that disables the NGG setting. I've put a new option
> in my
> amdPalSettings.cfg: `NggMode,7` and that was enough to enable it.
>
> When I ran a small vulkan application, it crashed with a "Not implemented"
> error in Pal::Linux::Device::AllocateGds. The comment there says:
>
>     // TODO: implement it once amdgpu is ready.
>
> I couldn't find anything specific to GDS allocation in upstream kernel, so
> I looked at agd5f/amd-staging-drm-next and found some code related to
> AMDGPU_GEM_DOMAIN_GDS and allocating a bo object. This is in
> amdgpu_gem_create_ioctl, so I think it's accessible to userspace, with a
> small change in libdrm, probably.
>
> Is this what is needed to make a GDS allocation that NGG would accept, or
> is it unrelated? Do you know if there are any other blockers for NGG
> besides this?
>
> Regards,
> Jakub
> _______________________________________________
> amd-gfx mailing list
> amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>

[-- Attachment #1.2: Type: text/html, Size: 2860 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: Making a GDS Allocation for NGG
       [not found]         ` <CADTJRYe5e83_DOh8S_W=ZLgHkoGEneUHv0CpA+X0HAfRfe_TOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2018-08-15 13:23           ` Jin, Jian-Rong
  0 siblings, 0 replies; 4+ messages in thread
From: Jin, Jian-Rong @ 2018-08-15 13:23 UTC (permalink / raw)
  To: Jakub Okoński; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 2177 bytes --]

GFX9 will not be supported.

Thanks,
Jian-Rong Jin

在 2018年8月15日,下午8:33,Jakub Okoński <jakub@okonski.org<mailto:jakub@okonski.org>> 写道:

Hey Jian-Rong,

Will gfx9 get support from KMD and LLPC by the time gfx10 releases, or is it only going to be a gfx10-and-forward feature?

If not, is there something missing in gfx9 hardware? Are you allowed to say?

Thanks,
Jakub

On Wed, 15 Aug 2018 at 08:36 Jin, Jian-Rong <Jian-Rong.Jin@amd.com<mailto:Jian-Rong.Jin@amd.com>> wrote:
Hi Jakub。
Both KMD and LLPC are not ready to support NGG for gfx9. We are going to support NGG in amdvlk for next generation GPU.

Thanks
Jian-Rong JIN

-----Original Message-----
From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org<mailto:amd-gfx-bounces@lists.freedesktop.org>> On Behalf Of Jakub Okoński
Sent: 2018年8月14日 21:31
To: amd-gfx@lists.freedesktop.org<mailto:amd-gfx@lists.freedesktop.org>
Subject: Making a GDS Allocation for NGG

Hi folks,

I was trying to play around with NGG on Vega using the open source AMDVLK stack.
After fetching all the code, I disabled an override in PAL, under gfx9SettingsLoader.cpp that disables the NGG setting. I've put a new option in my
amdPalSettings.cfg: `NggMode,7` and that was enough to enable it.

When I ran a small vulkan application, it crashed with a "Not implemented" error in Pal::Linux::Device::AllocateGds. The comment there says:

    // TODO: implement it once amdgpu is ready.

I couldn't find anything specific to GDS allocation in upstream kernel, so I looked at agd5f/amd-staging-drm-next and found some code related to AMDGPU_GEM_DOMAIN_GDS and allocating a bo object. This is in amdgpu_gem_create_ioctl, so I think it's accessible to userspace, with a small change in libdrm, probably.

Is this what is needed to make a GDS allocation that NGG would accept, or is it unrelated? Do you know if there are any other blockers for NGG besides this?

Regards,
Jakub
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org<mailto:amd-gfx@lists.freedesktop.org>
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

[-- Attachment #1.2: Type: text/html, Size: 3179 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:[~2018-08-15 13:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-14 13:30 Making a GDS Allocation for NGG Jakub Okoński
     [not found] ` <CADTJRYdMXzoFN75JF9VBcWmB+ee85PQFJ6UsCKC=Pep4sJUN4Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-08-15  6:36   ` Jin, Jian-Rong
     [not found]     ` <DM5PR12MB15291FF96F65867EC066903FAB3F0-2J9CzHegvk9c1F9zY4ibCgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-08-15 12:33       ` Jakub Okoński
     [not found]         ` <CADTJRYe5e83_DOh8S_W=ZLgHkoGEneUHv0CpA+X0HAfRfe_TOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-08-15 13:23           ` Jin, Jian-Rong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.