From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Andy Yan <andyshrk@163.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH] package/linux-firmware: Add Arm mali CSF firmwares
Date: Fri, 12 Jul 2024 09:20:41 +0200 [thread overview]
Message-ID: <20240712092041.38bab6ac@windsurf> (raw)
In-Reply-To: <20240628121740.2810640-1-andyshrk@163.com>
Hello Andy,
Thanks for your patch, I applied it after adjusting some small things.
See below.
On Fri, 28 Jun 2024 20:17:40 +0800
Andy Yan <andyshrk@163.com> wrote:
> +menu "GPU Firmware"
> +
> +config BR2_PACKAGE_LINUX_FIRMWARE_ARM_MALI_CSF
> + bool "Arm Mali CSF firmware"
> + help
> + Firmware files for Arm Mali 10th generation GPU
> + needed by the linux panthor kernel driver.
This last line was indented with spaces instead of a tab. This was
pointed out by "make check-package":
WARNING: package/linux-firmware/Config.in:700: help text: <tab><2 spaces><62 chars> (https://nightly.buildroot.org/#writing-rules-config-in)
> diff --git a/package/linux-firmware/linux-firmware.mk b/package/linux-firmware/linux-firmware.mk
> index 13dbc6d98c..6a1b99f438 100644
> --- a/package/linux-firmware/linux-firmware.mk
> +++ b/package/linux-firmware/linux-firmware.mk
> @@ -883,6 +883,11 @@ LINUX_FIRMWARE_FILES += intel/ipu/shisp_2401a0_v21.bin
> LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENSE.ivsc
> endif
>
> +ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_ARM_MALI_CSF),y)
> +LINUX_FIRMWARE_DIRS += arm
I wasn't a big fan of including the full arm/ directory, because while
it for now only contains this GPU firmware, it might contain other
things in the future. Since the panthor driver loads this:
snprintf(fw_path, sizeof(fw_path), "arm/mali/arch%d.%d/%s",
(u32)GPU_ARCH_MAJOR(ptdev->gpu_info.gpu_id),
(u32)GPU_ARCH_MINOR(ptdev->gpu_info.gpu_id),
CSF_FW_NAME);
I changed linux-firmware.mk to this:
LINUX_FIRMWARE_FILES += arm/mali/arch*/mali_csffw.bin
so that it only installs the CSF firmware.
Applied with those changes. Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-07-12 7:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-28 12:17 [Buildroot] [PATCH] package/linux-firmware: Add Arm mali CSF firmwares Andy Yan
2024-07-12 7:20 ` Thomas Petazzoni via buildroot [this message]
2024-07-16 3:24 ` Andy Yan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240712092041.38bab6ac@windsurf \
--to=buildroot@buildroot.org \
--cc=andyshrk@163.com \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox