-
Notifications
You must be signed in to change notification settings - Fork 26
Build radeon+amdgpu on aarch64 #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2091ebd
63e39af
0d4913f
bba285c
7fe2f58
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,6 @@ SRCDIR= ${.CURDIR:H}/drivers/gpu/drm | |
|
|
||
| KMOD= drm | ||
| SRCS= ati_pcigart.c \ | ||
| drm_agpsupport.c \ | ||
| drm_atomic.c \ | ||
| drm_atomic_helper.c \ | ||
| drm_atomic_state_helper.c \ | ||
|
|
@@ -86,6 +85,10 @@ SRCS= ati_pcigart.c \ | |
| tainted_linux_fb.c \ | ||
| linux_hdmi.c | ||
|
|
||
| .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing powerpc |
||
| SRCS+= drm_agpsupport.c | ||
| .endif | ||
|
|
||
| # Skip for now... | ||
| # drm_dp_cec.c | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,8 +5,7 @@ SRCDIR= ${.CURDIR:H}/drivers/gpu/drm/ttm | |||||||
| .PATH: ${SRCDIR} | ||||||||
|
|
||||||||
| KMOD= ttm | ||||||||
| SRCS= ttm_agp_backend.c \ | ||||||||
| ttm_bo.c \ | ||||||||
| SRCS= ttm_bo.c \ | ||||||||
| ttm_bo_manager.c \ | ||||||||
| ttm_bo_util.c \ | ||||||||
| ttm_bo_vm.c \ | ||||||||
|
|
@@ -17,6 +16,10 @@ SRCS= ttm_agp_backend.c \ | |||||||
| ttm_page_alloc_dma.c \ | ||||||||
| ttm_tt.c | ||||||||
|
|
||||||||
| .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think powerpc also needs this file.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think AGP was ever a thing on powerpc64? (and we don't yet run on 32-bit powerpc, right?) https://github.com/myfreeweb/kms-drm/blob/drm-v5.0-aarch64/drivers/gpu/drm/drm_os_config.h#L62-L64 — it is disabled
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That might be so.. Just don't want to break build on powerpc64. Did you try a powerpc64 cross build?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hm, is it possible to cross-build this? what are the args? // maybe someone with POWER can test? (just that this patch doesn't break powerpc64) /cc @chmeeedalf @mattmacy @bdragon28 @kev009
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Check the last entry here: https://forums.freebsd.org/threads/cross-compiling-a-kernel-module.45662/
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well that didn't work at all for powerpc :( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The early PowerMac G5s did have AGP. Only the last one or two generations had PCIe.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh, right. But AGP+powerpc is currently disabled here: kms-drm/drivers/gpu/drm/drm_os_config.h Lines 54 to 56 in dc414a9
I think the AGP files should be in sync with the |
||||||||
| SRCS+= ttm_agp_backend.c | ||||||||
| .endif | ||||||||
|
|
||||||||
| CLEANFILES+= ${KMOD}.ko.full ${KMOD}.ko.debug | ||||||||
|
|
||||||||
| CFLAGS+= -I${.CURDIR:H}/linuxkpi/gplv2/include | ||||||||
|
|
||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you remove all the powerpc stuff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've explained this in the commit message. This part of the code (DML) is not used on powerpc because
kms-drm/drivers/gpu/drm/drm_os_config.h
Lines 127 to 129 in 6e6a861
Upstream only builds it on amd64 torvalds/linux@bf2e2e2
IIUC, this code is only for Raven Ridge laptops