Skip to contentSkip to conversation

amdkfd build regression if HSA_AMD is disabled

DISCUSSION StDenis, Tom 3 participants 3 messages Dec 10, 2018 2 messages not in the archive

lore
Share & tools
lore

StDenis, Tom

author Reviewed-by Eric Huang Acked-by Alex Deucher
#0 lore raw

Hi All,

The commit:

commit 62f65d3cb34a8300bf1e07fc478e03c3c02634d4

Refs: v4.20-rc3-524-g62f65d3cb34a
Author:     Felix Kuehling <[email protected]>
AuthorDate: Mon Nov 19 20:05:54 2018 -0500
Commit:     Felix Kuehling <[email protected]>
CommitDate: Fri Dec 7 17:17:11 2018 -0500

drm/amdgpu: Add KFD VRAM limit checking

We don't want KFD processes evicting each other over VRAM usage. Therefore prevent overcommitting VRAM among KFD applications with a per-GPU limit. Also leave enough room for page tables on top of the application memory usage.

Breaks the build if HSA_AMD is not enabled:

scripts/kconfig/conf --syncconfig Kconfig
DESCEND objtool
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
Building modules, stage 2.
MODPOST 63 modules
Kernel: arch/x86/boot/bzImage is ready (#58)
ERROR: "amdgpu_amdkfd_unreserve_memory_limit" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! make[1]: *** [scripts/Makefile.modpost:92: __modpost] Error 1
make: *** [Makefile:1271: modules] Error 2

This is because the function being used is not included in the build (the previous function called was part of amdgpu_amdkfd.c which is unconditionally built).

Cheers,
Tom
_______________________________________________
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): 83a3516c-b517-97d8-6ccf-b439e3ec742e-5C7GfCeVMHo@public.gmane.org

Reviewed-by Eric Huang Acked-by Alex Deucher
#2 lore raw

Do we still need the HSA_AMD option ?

Seems to me that KFD stopped being "something we only sometimes include" a long time ago.

Thanks,
John

________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of StDenis, Tom <[email protected]>
Sent: December 10, 2018 10:02 AM
To: Kuehling, Felix
Cc: Huang, JinHuiEric; Deucher, Alexander; amd-gfx mailing list
Subject: amdkfd build regression if HSA_AMD is disabled

Hi All,

The commit:

commit 62f65d3cb34a8300bf1e07fc478e03c3c02634d4

Refs: v4.20-rc3-524-g62f65d3cb34a
Author:     Felix Kuehling <[email protected]>
AuthorDate: Mon Nov 19 20:05:54 2018 -0500
Commit:     Felix Kuehling <[email protected]>
CommitDate: Fri Dec 7 17:17:11 2018 -0500

drm/amdgpu: Add KFD VRAM limit checking

We don't want KFD processes evicting each other over VRAM usage. Therefore prevent overcommitting VRAM among KFD applications with a per-GPU limit. Also leave enough room for page tables on top of the application memory usage.

Breaks the build if HSA_AMD is not enabled:

scripts/kconfig/conf --syncconfig Kconfig
DESCEND objtool
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
Building modules, stage 2.
MODPOST 63 modules
Kernel: arch/x86/boot/bzImage is ready (#58)
ERROR: "amdgpu_amdkfd_unreserve_memory_limit" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! make[1]: *** [scripts/Makefile.modpost:92: __modpost] Error 1
make: *** [Makefile:1271: modules] Error 2

This is because the function being used is not included in the build (the previous function called was part of amdgpu_amdkfd.c which is unconditionally built).

Cheers,
Tom
_______________________________________________
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): BLUPR12MB0417CFE7A884631B15F60C3FE8A50-7LeqcoF/hwowb/[email protected]

#4 lore raw

KFD only works with x86_64. So we still need the switch to disable KFD on i386 and other architectures that are not (yet) supported.

I'll look into a fix as soon as I can. Thanks for the heads up.

Regards,
  Felix

Quoted 60 lines · John

Do we still need the HSA_AMD option ?

Seems to me that KFD stopped being "something we only sometimes include" a long time ago.

Thanks,
John

------------------------------------------------------------------------
*From:* amd-gfx <[email protected]> on behalf of StDenis, Tom <[email protected]>
*Sent:* December 10, 2018 10:02 AM
*To:* Kuehling, Felix
*Cc:* Huang, JinHuiEric; Deucher, Alexander; amd-gfx mailing list *Subject:* amdkfd build regression if HSA_AMD is disabled
Hi All,

The commit:

commit 62f65d3cb34a8300bf1e07fc478e03c3c02634d4
Refs: v4.20-rc3-524-g62f65d3cb34a
Author:     Felix Kuehling <[email protected]>
AuthorDate: Mon Nov 19 20:05:54 2018 -0500 Commit:     Felix Kuehling <[email protected]>
CommitDate: Fri Dec 7 17:17:11 2018 -0500

     drm/amdgpu: Add KFD VRAM limit checking

     We don't want KFD processes evicting each other over VRAM usage. Therefore prevent overcommitting VRAM among KFD applications with a per-GPU limit. Also leave enough room for page tables on top of the application memory usage.

Breaks the build if HSA_AMD is not enabled:

scripts/kconfig/conf  --syncconfig Kconfig
   DESCEND  objtool
   CALL    scripts/checksyscalls.sh
   CHK     include/generated/compile.h
   Building modules, stage 2.
   MODPOST 63 modules
Kernel: arch/x86/boot/bzImage is ready  (#58)
ERROR: "amdgpu_amdkfd_unreserve_memory_limit" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! make[1]: *** [scripts/Makefile.modpost:92: __modpost] Error 1
make: *** [Makefile:1271: modules] Error 2

This is because the function being used is not included in the build (the previous function called was part of amdgpu_amdkfd.c which is unconditionally built).

Quoted 6 lines

Cheers,
Tom
_______________________________________________
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