From: Mikko Perttunen <cyndis-/1wQRMveznE@public.gmane.org>
To: Nicolas Chauvet <kwizart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
amerilainen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org,
thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org
Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] arm: drm: tegra: Set MODULE_FIRMWARE for the VIC
Date: Mon, 10 Jul 2017 11:57:47 +0300 [thread overview]
Message-ID: <1a36594d-bb0a-87ef-c348-d05d64a100d2@kapsi.fi> (raw)
In-Reply-To: <20170705211523.17542-1-kwizart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
On 06.07.2017 00:15, Nicolas Chauvet wrote:
> The define is set anyway to prevent an empty string.
> The test for the soc is same as nouveau for the tegra gpu firmware
> (see drivers/gpu/drm/nouveau/nouveau_platform.c)
>
> Fixes: 0ae797a8ba05 ("drm/tegra: Add VIC support")
>
> Signed-off-by: Nicolas Chauvet <kwizart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> ---
> drivers/gpu/drm/tegra/vic.c | 15 +++++++++++++--
> 1 file changed, 13 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/tegra/vic.c b/drivers/gpu/drm/tegra/vic.c
> index cd804e404a11..b329c9368b74 100644
> --- a/drivers/gpu/drm/tegra/vic.c
> +++ b/drivers/gpu/drm/tegra/vic.c
> @@ -23,6 +23,17 @@
> #include "falcon.h"
> #include "vic.h"
>
> +#define NVIDIA_TEGRA_124_VIC_FIRMWARE "nvidia/tegra124/vic03_ucode.bin"
> +#define NVIDIA_TEGRA_210_VIC_FIRMWARE "nvidia/tegra210/vic04_ucode.bin"
> +
> +#if IS_ENABLED(CONFIG_ARCH_TEGRA_124_SOC)
> +MODULE_FIRMWARE(NVIDIA_TEGRA_124_VIC_FIRMWARE);
> +#endif
> +#if IS_ENABLED(CONFIG_ARCH_TEGRA_210_SOC)
> +MODULE_FIRMWARE(NVIDIA_TEGRA_210_VIC_FIRMWARE);
> +#endif
> +
> +
I'd prefer to have the defines above each chip's vic_config struct
definition, and the MODULE_FIRMWARE() part at the end of the file, like
MODULE_* macros usually are. With that,
Reviewed-by: Mikko Perttunen <mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> struct vic_config {
> const char *firmware;
> };
> @@ -259,11 +270,11 @@ static const struct tegra_drm_client_ops vic_ops = {
> };
>
> static const struct vic_config vic_t124_config = {
> - .firmware = "nvidia/tegra124/vic03_ucode.bin",
> + .firmware = NVIDIA_TEGRA_124_VIC_FIRMWARE,
> };
>
> static const struct vic_config vic_t210_config = {
> - .firmware = "nvidia/tegra210/vic04_ucode.bin",
> + .firmware = NVIDIA_TEGRA_210_VIC_FIRMWARE,
> };
>
> static const struct of_device_id vic_match[] = {
>
next prev parent reply other threads:[~2017-07-10 8:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-05 21:15 [PATCH] arm: drm: tegra: Set MODULE_FIRMWARE for the VIC Nicolas Chauvet
[not found] ` <20170705211523.17542-1-kwizart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-07-10 8:57 ` Mikko Perttunen [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-07-11 8:39 Nicolas Chauvet
[not found] ` <20170711083904.6969-1-kwizart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-17 15:23 ` Thierry Reding
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=1a36594d-bb0a-87ef-c348-d05d64a100d2@kapsi.fi \
--to=cyndis-/1wqrmvezne@public.gmane.org \
--cc=amerilainen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=kwizart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/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