mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-27 06:50:37 +00:00

The following commit:
288a4ff0ad
("x86/msr: Move rdtsc{,_ordered}() to <asm/tsc.h>")
removed the <asm/msr.h> include from the accel/habanalabs driver, which broke
the build on UML:
drivers/accel/habanalabs/common/habanalabs_ioctl.c:326:23: error: call to undeclared function 'rdtsc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Make the driver depend on 'X86 && X86_64', instead of just 'X86_64',
thus it won't be built on UML.
Suggested-by: Johannes Berg <johannes.berg@intel.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Cc: Ofir Bitton <obitton@habana.ai>
Cc: Oded Gabbay <ogabbay@kernel.org>
Link: https://lore.kernel.org/r/202505080003.0t7ewxGp-lkp@intel.com
30 lines
796 B
Plaintext
30 lines
796 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# HabanaLabs AI accelerators driver
|
|
#
|
|
|
|
config DRM_ACCEL_HABANALABS
|
|
tristate "HabanaLabs AI accelerators"
|
|
depends on DRM_ACCEL
|
|
depends on X86 && X86_64
|
|
depends on PCI && HAS_IOMEM
|
|
select GENERIC_ALLOCATOR
|
|
select HWMON
|
|
select DMA_SHARED_BUFFER
|
|
select CRC32
|
|
select FW_LOADER
|
|
help
|
|
Enables PCIe card driver for Habana's AI Processors (AIP) that are
|
|
designed to accelerate Deep Learning inference and training workloads.
|
|
|
|
The driver manages the PCIe devices and provides IOCTL interface for
|
|
the user to submit workloads to the devices.
|
|
|
|
The user-space interface is described in
|
|
include/uapi/drm/habanalabs_accel.h
|
|
|
|
If unsure, say N.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called habanalabs.
|