Skip to content

Commit 6bbfbe2

Browse files
Merge pull request #9 from neuron-code-sharing-robot/pr-aws-neuron-aws-neuron-driver-master
[master][09-20-2025] Squash merge of RPM aws-neuronx-dkms-2.24.7.0.noarch.rpm contents
2 parents 6a0791d + 7c0d02c commit 6bbfbe2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+24438
-2341
lines changed

Kbuild

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
11
obj-m += neuron.o
22

3-
neuron-objs := neuron_module.o neuron_pci.o neuron_mempool.o neuron_dma.o neuron_ring.o
4-
neuron-objs += neuron_core.o neuron_cdev.o
5-
neuron-objs += udma/udma_iofic.o udma/udma_m2m.o udma/udma_main.o v1/fw_io.o
3+
neuron-objs := neuron_arch.o neuron_dhal.o
4+
neuron-objs += neuron_reg_access.o
5+
neuron-objs += neuron_module.o neuron_pci.o neuron_mempool.o neuron_dma.o neuron_ring.o neuron_ds.o
6+
neuron-objs += neuron_core.o neuron_crwl.o neuron_cdev.o neuron_topsp.o neuron_pid.o
7+
neuron-objs += neuron_reset.o neuron_cinit.o neuron_mmap.o neuron_p2p.o
8+
neuron-objs += neuron_nq.o
9+
neuron-objs += neuron_mc_handle.o
10+
neuron-objs += neuron_metrics.o neuron_sysfs_metrics.o
11+
neuron-objs += udma/udma_iofic.o udma/udma_m2m.o udma/udma_main.o
12+
neuron-objs += neuron_fw_io.o
13+
neuron-objs += neuron_dmabuf.o
14+
neuron-objs += neuron_log.o
15+
neuron-objs += neuron_power.o
16+
neuron-objs += vc/neuron_dhal_vc.o
17+
neuron-objs += v1/fw_io.o v1/putils.o v1/neuron_dhal_v1.o
18+
neuron-objs += v2/notific.o v2/neuron_dhal_v2.o
19+
neuron-objs += v3/notific.o v3/neuron_dhal_v3.o v3/neuron_pelect.o
620

721
ccflags-y += -O3 -Wall -Werror -Wno-declaration-after-statement -Wunused-macros -Wunused-local-typedefs
822
ccflags-y += -I$(src)/
23+
ccflags-y += $(call cc-option,-march=armv8.2-a)

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
ARCH ?= x86_64
21
KERNEL_SRC_DIR ?= /lib/modules/$(shell uname -r)/build
32

43
all:
5-
make -C $(KERNEL_SRC_DIR) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) M=$(PWD) modules
4+
make -C $(KERNEL_SRC_DIR) M=$(PWD) modules
65

76
clean:
8-
make -C $(KERNEL_SRC_DIR) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) M=$(PWD) clean
7+
make -C $(KERNEL_SRC_DIR) M=$(PWD) clean
98

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ Neuron Devices implement a communication channel (FWIO) that allows the driver a
4444
* neuron_dma.[ch] - Provides APIs to copy data from/to device memory.
4545
* neuron_mempool.[ch] - Provides API to allocate host and device memory.
4646
* neuron_cdev.c - char device interface.
47+
* fw_io.[ch] - Communication channel
4748
* udma/* - DMA engines and queues HAL
4849
* v1/address_map.h - Neuron Device address space
49-
* v1/fw_io.[ch] - Communication channel
5050
* v1/putils.h - Notification HAL
5151
* v1/tdma.h - Additional DMA HAL functionality
5252

aws-neuronx-dkms-mkdeb/Makefile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#/usr/bin/make
2+
SRC = $(DESTDIR)/usr/src
3+
SHARE = $(DESTDIR)/usr/share/$(NAME)-dkms
4+
5+
all:
6+
7+
clean:
8+
9+
install:
10+
11+
#source tree
12+
ifeq ("$(wildcard $(NAME)-$(VERSION))", "$(NAME)-$(VERSION)")
13+
install -d "$(SRC)"
14+
cp -a $(NAME)-$(VERSION) $(SRC)
15+
chmod 644 -R "$(SRC)/$(NAME)-$(VERSION)"
16+
chmod +x "$(SRC)/$(NAME)-$(VERSION)/preinstall"
17+
chmod +x "$(SRC)/$(NAME)-$(VERSION)/postinstall"
18+
chmod +x "$(SRC)/$(NAME)-$(VERSION)/postremove"
19+
endif
20+
21+
#tarball, possibly with binaries
22+
ifeq ("$(wildcard $(NAME)-$(VERSION).dkms.tar.gz)", "$(NAME)-$(VERSION).dkms.tar.gz")
23+
install -d "$(SHARE)"
24+
install -m 644 $(NAME)-$(VERSION).dkms.tar.gz "$(SHARE)"
25+
endif
26+
27+
#postinst, only if we are supporting legacy mode
28+
ifeq ("$(wildcard common.postinst)", "common.postinst")
29+
install -d "$(SHARE)"
30+
install -m 755 $(PREFIX)/usr/lib/dkms/common.postinst $(SHARE)/postinst
31+
endif
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
MODULE_NAME DKMS module for Debian
2+
3+
This package was automatically generated by the DKMS system,
4+
for distribution on Debian based operating systems.
5+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
DEBIAN_PACKAGE-dkms (MODULE_VERSION) stable; urgency=low
2+
3+
* Automatically packaged by DKMS.
4+
5+
-- Dynamic Kernel Modules Support Team <[email protected]> DATE_STAMP
6+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Source: DEBIAN_PACKAGE-dkms
2+
Section: misc
3+
Priority: optional
4+
Maintainer: Dynamic Kernel Modules Support Team <[email protected]>
5+
Build-Depends: debhelper (>= 7), dkms
6+
Standards-Version: 3.8.1
7+
8+
Package: DEBIAN_PACKAGE-dkms
9+
Architecture: DEBIAN_BUILD_ARCH
10+
Depends: dkms (>= 1.95), ${misc:Depends}
11+
Description: DEBIAN_PACKAGE driver in DKMS format.
12+
Conflicts: aws-neuron-dkms
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
This copyright has not been completed by the author of this package.

aws-neuronx-dkms-mkdeb/debian/dirs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/src

0 commit comments

Comments
 (0)