* [PATCH -next 0/3] drm: Enable module autoloading
@ 2024-09-02 11:33 Liao Chen
2024-09-02 11:33 ` [PATCH -next 1/3] drm/bridge: it6505: " Liao Chen
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Liao Chen @ 2024-09-02 11:33 UTC (permalink / raw)
To: dri-devel, linux-kernel, linux-tegra
Cc: andrzej.hajda, neil.armstrong, rfoss, Laurent.pinchart, jonas,
jernej.skrabec, maarten.lankhorst, mripard, tzimmermann, airlied,
daniel, linus.walleij, thierry.reding, mperttunen, jonathanh,
liaochen4
This patch enables the autoloading feature of drm module. By registering
MDT, the kernel is allowed to automatically bind modules to devices that
match the specified compatible strings.
Liao Chen (3):
drm/bridge: it6505: Enable module autoloading
drm/tegra: Enable module autoloading
drm/mcde: Enable module autoloading
drivers/gpu/drm/bridge/ite-it6505.c | 1 +
drivers/gpu/drm/mcde/mcde_drv.c | 1 +
drivers/gpu/drm/tegra/drm.c | 1 +
3 files changed, 3 insertions(+)
--
2.34.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH -next 1/3] drm/bridge: it6505: Enable module autoloading
2024-09-02 11:33 [PATCH -next 0/3] drm: Enable module autoloading Liao Chen
@ 2024-09-02 11:33 ` Liao Chen
2024-09-13 7:45 ` neil.armstrong
2024-09-02 11:33 ` [PATCH -next 2/3] drm/tegra: " Liao Chen
` (2 subsequent siblings)
3 siblings, 1 reply; 9+ messages in thread
From: Liao Chen @ 2024-09-02 11:33 UTC (permalink / raw)
To: dri-devel, linux-kernel, linux-tegra
Cc: andrzej.hajda, neil.armstrong, rfoss, Laurent.pinchart, jonas,
jernej.skrabec, maarten.lankhorst, mripard, tzimmermann, airlied,
daniel, linus.walleij, thierry.reding, mperttunen, jonathanh,
liaochen4
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based
on the alias from of_device_id table.
Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
drivers/gpu/drm/bridge/ite-it6505.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/bridge/ite-it6505.c b/drivers/gpu/drm/bridge/ite-it6505.c
index 1e1c06fdf206..eef5ad449c16 100644
--- a/drivers/gpu/drm/bridge/ite-it6505.c
+++ b/drivers/gpu/drm/bridge/ite-it6505.c
@@ -3498,6 +3498,7 @@ static const struct of_device_id it6505_of_match[] = {
{ .compatible = "ite,it6505" },
{ }
};
+MODULE_DEVICE_TABLE(of, it6505_of_match);
static struct i2c_driver it6505_i2c_driver = {
.driver = {
--
2.34.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH -next 2/3] drm/tegra: Enable module autoloading
2024-09-02 11:33 [PATCH -next 0/3] drm: Enable module autoloading Liao Chen
2024-09-02 11:33 ` [PATCH -next 1/3] drm/bridge: it6505: " Liao Chen
@ 2024-09-02 11:33 ` Liao Chen
2024-09-23 4:21 ` Dmitry Baryshkov
2024-09-02 11:33 ` [PATCH -next 3/3] drm/mcde: " Liao Chen
2024-10-21 12:59 ` (subset) [PATCH -next 0/3] drm: " Neil Armstrong
3 siblings, 1 reply; 9+ messages in thread
From: Liao Chen @ 2024-09-02 11:33 UTC (permalink / raw)
To: dri-devel, linux-kernel, linux-tegra
Cc: andrzej.hajda, neil.armstrong, rfoss, Laurent.pinchart, jonas,
jernej.skrabec, maarten.lankhorst, mripard, tzimmermann, airlied,
daniel, linus.walleij, thierry.reding, mperttunen, jonathanh,
liaochen4
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based
on the alias from of_device_id table.
Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
drivers/gpu/drm/tegra/drm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c
index 03d1c76aec2d..1a12f2eaad86 100644
--- a/drivers/gpu/drm/tegra/drm.c
+++ b/drivers/gpu/drm/tegra/drm.c
@@ -1390,6 +1390,7 @@ static const struct of_device_id host1x_drm_subdevs[] = {
{ .compatible = "nvidia,tegra234-nvdec", },
{ /* sentinel */ }
};
+MODULE_DEVICE_TABLE(of, host1x_drm_subdevs);
static struct host1x_driver host1x_drm_driver = {
.driver = {
--
2.34.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH -next 3/3] drm/mcde: Enable module autoloading
2024-09-02 11:33 [PATCH -next 0/3] drm: Enable module autoloading Liao Chen
2024-09-02 11:33 ` [PATCH -next 1/3] drm/bridge: it6505: " Liao Chen
2024-09-02 11:33 ` [PATCH -next 2/3] drm/tegra: " Liao Chen
@ 2024-09-02 11:33 ` Liao Chen
2024-09-02 12:39 ` Linus Walleij
2024-10-21 12:59 ` (subset) [PATCH -next 0/3] drm: " Neil Armstrong
3 siblings, 1 reply; 9+ messages in thread
From: Liao Chen @ 2024-09-02 11:33 UTC (permalink / raw)
To: dri-devel, linux-kernel, linux-tegra
Cc: andrzej.hajda, neil.armstrong, rfoss, Laurent.pinchart, jonas,
jernej.skrabec, maarten.lankhorst, mripard, tzimmermann, airlied,
daniel, linus.walleij, thierry.reding, mperttunen, jonathanh,
liaochen4
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based
on the alias from of_device_id table.
Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
drivers/gpu/drm/mcde/mcde_drv.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/mcde/mcde_drv.c b/drivers/gpu/drm/mcde/mcde_drv.c
index 10c06440c7e7..f1bb38f4e673 100644
--- a/drivers/gpu/drm/mcde/mcde_drv.c
+++ b/drivers/gpu/drm/mcde/mcde_drv.c
@@ -473,6 +473,7 @@ static const struct of_device_id mcde_of_match[] = {
},
{},
};
+MODULE_DEVICE_TABLE(of, mcde_of_match);
static struct platform_driver mcde_driver = {
.driver = {
--
2.34.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH -next 3/3] drm/mcde: Enable module autoloading
2024-09-02 11:33 ` [PATCH -next 3/3] drm/mcde: " Liao Chen
@ 2024-09-02 12:39 ` Linus Walleij
0 siblings, 0 replies; 9+ messages in thread
From: Linus Walleij @ 2024-09-02 12:39 UTC (permalink / raw)
To: Liao Chen
Cc: dri-devel, linux-kernel, linux-tegra, andrzej.hajda,
neil.armstrong, rfoss, Laurent.pinchart, jonas, jernej.skrabec,
maarten.lankhorst, mripard, tzimmermann, airlied, daniel,
thierry.reding, mperttunen, jonathanh
On Mon, Sep 2, 2024 at 1:41 PM Liao Chen <liaochen4@huawei.com> wrote:
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based
> on the alias from of_device_id table.
>
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH -next 1/3] drm/bridge: it6505: Enable module autoloading
2024-09-02 11:33 ` [PATCH -next 1/3] drm/bridge: it6505: " Liao Chen
@ 2024-09-13 7:45 ` neil.armstrong
0 siblings, 0 replies; 9+ messages in thread
From: neil.armstrong @ 2024-09-13 7:45 UTC (permalink / raw)
To: Liao Chen, dri-devel, linux-kernel, linux-tegra
Cc: andrzej.hajda, rfoss, Laurent.pinchart, jonas, jernej.skrabec,
maarten.lankhorst, mripard, tzimmermann, airlied, daniel,
linus.walleij, thierry.reding, mperttunen, jonathanh
On 02/09/2024 13:33, Liao Chen wrote:
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based
> on the alias from of_device_id table.
>
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
> ---
> drivers/gpu/drm/bridge/ite-it6505.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/bridge/ite-it6505.c b/drivers/gpu/drm/bridge/ite-it6505.c
> index 1e1c06fdf206..eef5ad449c16 100644
> --- a/drivers/gpu/drm/bridge/ite-it6505.c
> +++ b/drivers/gpu/drm/bridge/ite-it6505.c
> @@ -3498,6 +3498,7 @@ static const struct of_device_id it6505_of_match[] = {
> { .compatible = "ite,it6505" },
> { }
> };
> +MODULE_DEVICE_TABLE(of, it6505_of_match);
>
> static struct i2c_driver it6505_i2c_driver = {
> .driver = {
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH -next 2/3] drm/tegra: Enable module autoloading
2024-09-02 11:33 ` [PATCH -next 2/3] drm/tegra: " Liao Chen
@ 2024-09-23 4:21 ` Dmitry Baryshkov
2024-09-25 13:45 ` Thierry Reding
0 siblings, 1 reply; 9+ messages in thread
From: Dmitry Baryshkov @ 2024-09-23 4:21 UTC (permalink / raw)
To: Liao Chen
Cc: dri-devel, linux-kernel, linux-tegra, andrzej.hajda,
neil.armstrong, rfoss, Laurent.pinchart, jonas, jernej.skrabec,
maarten.lankhorst, mripard, tzimmermann, airlied, daniel,
linus.walleij, thierry.reding, mperttunen, jonathanh
On Mon, Sep 02, 2024 at 11:33:19AM GMT, Liao Chen wrote:
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based
> on the alias from of_device_id table.
>
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
> ---
> drivers/gpu/drm/tegra/drm.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c
> index 03d1c76aec2d..1a12f2eaad86 100644
> --- a/drivers/gpu/drm/tegra/drm.c
> +++ b/drivers/gpu/drm/tegra/drm.c
> @@ -1390,6 +1390,7 @@ static const struct of_device_id host1x_drm_subdevs[] = {
> { .compatible = "nvidia,tegra234-nvdec", },
> { /* sentinel */ }
> };
> +MODULE_DEVICE_TABLE(of, host1x_drm_subdevs);
I don't think it is correct. See how subdevs are handled in
host1x_device_parse_dt(). I'll pick up two other patches though.
>
> static struct host1x_driver host1x_drm_driver = {
> .driver = {
> --
> 2.34.1
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH -next 2/3] drm/tegra: Enable module autoloading
2024-09-23 4:21 ` Dmitry Baryshkov
@ 2024-09-25 13:45 ` Thierry Reding
0 siblings, 0 replies; 9+ messages in thread
From: Thierry Reding @ 2024-09-25 13:45 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Liao Chen, dri-devel, linux-kernel, linux-tegra, andrzej.hajda,
neil.armstrong, rfoss, Laurent.pinchart, jonas, jernej.skrabec,
maarten.lankhorst, mripard, tzimmermann, airlied, daniel,
linus.walleij, mperttunen, jonathanh
[-- Attachment #1: Type: text/plain, Size: 1154 bytes --]
On Mon, Sep 23, 2024 at 07:21:21AM GMT, Dmitry Baryshkov wrote:
> On Mon, Sep 02, 2024 at 11:33:19AM GMT, Liao Chen wrote:
> > Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based
> > on the alias from of_device_id table.
> >
> > Signed-off-by: Liao Chen <liaochen4@huawei.com>
> > ---
> > drivers/gpu/drm/tegra/drm.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c
> > index 03d1c76aec2d..1a12f2eaad86 100644
> > --- a/drivers/gpu/drm/tegra/drm.c
> > +++ b/drivers/gpu/drm/tegra/drm.c
> > @@ -1390,6 +1390,7 @@ static const struct of_device_id host1x_drm_subdevs[] = {
> > { .compatible = "nvidia,tegra234-nvdec", },
> > { /* sentinel */ }
> > };
> > +MODULE_DEVICE_TABLE(of, host1x_drm_subdevs);
>
> I don't think it is correct. See how subdevs are handled in
> host1x_device_parse_dt(). I'll pick up two other patches though.
Agreed. This shouldn't be needed since all of these compatible strings
should show up in the OF device ID table of their corresponding drivers,
which is where the export should happen.
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: (subset) [PATCH -next 0/3] drm: Enable module autoloading
2024-09-02 11:33 [PATCH -next 0/3] drm: Enable module autoloading Liao Chen
` (2 preceding siblings ...)
2024-09-02 11:33 ` [PATCH -next 3/3] drm/mcde: " Liao Chen
@ 2024-10-21 12:59 ` Neil Armstrong
3 siblings, 0 replies; 9+ messages in thread
From: Neil Armstrong @ 2024-10-21 12:59 UTC (permalink / raw)
To: dri-devel, linux-kernel, linux-tegra, Liao Chen
Cc: andrzej.hajda, rfoss, Laurent.pinchart, jonas, jernej.skrabec,
maarten.lankhorst, mripard, tzimmermann, airlied, linus.walleij,
thierry.reding, mperttunen, jonathanh, Simona Vetter
Hi,
On Mon, 02 Sep 2024 11:33:17 +0000, Liao Chen wrote:
> This patch enables the autoloading feature of drm module. By registering
> MDT, the kernel is allowed to automatically bind modules to devices that
> match the specified compatible strings.
>
>
> Liao Chen (3):
> drm/bridge: it6505: Enable module autoloading
> drm/tegra: Enable module autoloading
> drm/mcde: Enable module autoloading
>
> [...]
Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-next)
[1/3] drm/bridge: it6505: Enable module autoloading
https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/d9c12481f980bdad9cf6fdb742e49c5b50622795
--
Neil
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-10-21 12:59 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-02 11:33 [PATCH -next 0/3] drm: Enable module autoloading Liao Chen
2024-09-02 11:33 ` [PATCH -next 1/3] drm/bridge: it6505: " Liao Chen
2024-09-13 7:45 ` neil.armstrong
2024-09-02 11:33 ` [PATCH -next 2/3] drm/tegra: " Liao Chen
2024-09-23 4:21 ` Dmitry Baryshkov
2024-09-25 13:45 ` Thierry Reding
2024-09-02 11:33 ` [PATCH -next 3/3] drm/mcde: " Liao Chen
2024-09-02 12:39 ` Linus Walleij
2024-10-21 12:59 ` (subset) [PATCH -next 0/3] drm: " Neil Armstrong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).