linux-next: build failure after merge of the drm tree
Subsystems (4)
Hi Dave,
After merging the drm tree, today's linux-next build (x86_64 allmodconfig) failed like this:
drivers/gpu/drm/amd/amdkfd/kfd_device.c: In function 'kgd2kfd_device_init':drivers/gpu/drm/amd/amdkfd/kfd_device.c:193:11: error: 'max_num_of_processes' undeclared (first use in this function)
size += (max_num_of_processes * sizeof(struct pm4_map_process) +
^
drivers/gpu/drm/amd/amdkfd/kfd_device.c:193:11: note: each undeclared identifier is reported only once for each function it appears in
drivers/gpu/drm/amd/amdkfd/kfd_device.c:194:26: error: 'max_num_of_queues_per_process' undeclared (first use in this function)
max_num_of_processes * max_num_of_queues_per_process *
^Caused by commit b8cbab042cd6 ("drm/amdkfd: Allow user to limit only queues per device") from Linus' tree interacting with commit e18e794e6ba0 ("drm/amdkfd: Fixed calculation of gart buffer size") from the drm tree.
I couldn't easily figure out how to fix this, so I just disabled the driver using the patch below. Please let me know when it is fixed, or provide me with a merge fix patch.
From: Stephen Rothwell <[email protected]>
Date: Thu, 29 Jan 2015 13:34:22 +1100
Subject: [PATCH] drm/amdkfd: disable driver due to interaction with a bug fix
--- drivers/gpu/drm/amd/amdkfd/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdkfd/Kconfig +1 -0
@@ -5,5 +5,6 @@ config HSA_AMD tristate "HSA kernel driver for AMD GPU devices" depends on DRM_RADEON && AMD_IOMMU_V2 && X86_64 + depends on BROKEN help Enable this if you want to use HSA features on AMD GPU devices.
Signature · 5 lines
2.1.4 -- Cheers, Stephen Rothwell [email protected]
Quoted 11 lines · Stephen Rothwell
After merging the drm tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/gpu/drm/amd/amdkfd/kfd_device.c: In function 'kgd2kfd_device_init':drivers/gpu/drm/amd/amdkfd/kfd_device.c:193:11: error: 'max_num_of_processes' undeclared (first use in this function)
size += (max_num_of_processes*sizeof(struct pm4_map_process)+^
drivers/gpu/drm/amd/amdkfd/kfd_device.c:193:11: note: each undeclared identifier is reported only once for each function it appears indrivers/gpu/drm/amd/amdkfd/kfd_device.c:194:26: error: 'max_num_of_queues_per_process' undeclared (first use in this function)
max_num_of_processes*max_num_of_queues_per_process*
^
So I think that Dave's drm-next now contains the correct code.
Will you merge it again, or do you do it daily anyway ? I fear I'm entirely clear with the details of the linux-next process.
Oded
Hi Oded,
Quoted 4 lines · On Thu, 29 Jan 2015 10:21:04 +0200 Oded Gabbay <[email protected]> wrote:
So I think that Dave's drm-next now contains the correct code. Will you merge it again, or do you do it daily anyway ? I fear I'm entirely clear with the details of the linux-next process.
I fetch all the trees again each morning and then merge them, so tomorrow all will be well.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]