Skip to contentSkip to conversation

accel: Build sub-directories based on config options

PATCH In review Stanislaw Gruszka 3 participants 5 messages Mar 1, 2023 – Mar 13, 2023 DRM compute accelerators drivers and framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 accel: Build sub-directories based on config options

When accel drivers are disabled do not process into sub-directories and create built-in archives:

AR drivers/accel/habanalabs/built-in.a
AR drivers/accel/ivpu/built-in.a

---
 drivers/accel/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/accel/Makefile +2 -2
index 07aa77aed1c8..f22fd44d586b 100644
@@ -1,4 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0-only
 
-obj-y	+= habanalabs/
-obj-y	+= ivpu/
+obj-$(CONFIG_DRM_ACCEL_HABANALABS)	+= habanalabs/
+obj-$(CONFIG_DRM_ACCEL_IVPU)		+= ivpu/
Signature · 1 line
2.25.1
#2 lore raw
Quoted 11 lines · Jeffrey Hugo
Quoted 7 lines · Stanislaw Gruszka

When accel drivers are disabled do not process into sub-directories and create built-in archives:

AR drivers/accel/habanalabs/built-in.a
AR drivers/accel/ivpu/built-in.a

Should there be a fixes tag? Feels like something that should be back-ported.

This tag could be added:

Fixes 35b137630f08 ("accel/ivpu: Introduce a new DRM driver for Intel VPU")

but since then Makefile changed with habanalabs addition.

I expect this will go to drm-misc-fixes and then to linux 6.3-rcX from there, so (stable) back-port will not be needed.

Regards
Stanislaw

#3 lore raw
Quoted 13 lines · Stanislaw Gruszka
Quoted 11 lines · Jeffrey Hugo
Quoted 7 lines · Stanislaw Gruszka

When accel drivers are disabled do not process into sub-directories and create built-in archives:

AR drivers/accel/habanalabs/built-in.a
AR drivers/accel/ivpu/built-in.a

Should there be a fixes tag? Feels like something that should be back-ported.

Quoted 8 lines

This tag could be added:

Fixes 35b137630f08 ("accel/ivpu: Introduce a new DRM driver for Intel VPU")

but since then Makefile changed with habanalabs addition.

I expect this will go to drm-misc-fixes and then to linux 6.3-rcX from there, so (stable) back-port will not be needed.

Makes sense. I thought this would apply to 6.2 as well, but it looks like no.

-Jeff

#4 lore raw
In reply to Stanislaw Gruszka

Thanks. Applied to drm-misc-next and cherry-picked to drm-misc-fixes.

Quoted 24 lines · Stanislaw Gruszka
Quoted 11 lines · Jeffrey Hugo
Quoted 7 lines · Stanislaw Gruszka

When accel drivers are disabled do not process into sub-directories and create built-in archives:

AR drivers/accel/habanalabs/built-in.a
AR drivers/accel/ivpu/built-in.a

Should there be a fixes tag? Feels like something that should be back-ported.

This tag could be added:

Fixes 35b137630f08 ("accel/ivpu: Introduce a new DRM driver for Intel VPU")

but since then Makefile changed with habanalabs addition.

I expect this will go to drm-misc-fixes and then to linux 6.3-rcX from there, so (stable) back-port will not be needed.

Regards
Stanislaw