From: Jai Luthra <jai.luthra@ideasonboard.com>
To: Florian Fainelli <florian.fainelli@broadcom.com>,
Krzysztof Kozlowski <krzk@kernel.org>,
Raspberry Pi Kernel Maintenance <kernel-list@raspberrypi.com>,
bcm-kernel-feedback-list@broadcom.com
Cc: "Dave Stevenson" <dave.stevenson@raspberrypi.com>,
"Phil Elwell" <phil@raspberrypi.com>,
"Stefan Wahren" <wahrenst@gmx.net>,
"Laurent Pinchart" <laurent.pinchart@ideasonboard.com>,
"Kieran Bingham" <kieran.bingham@ideasonboard.com>,
"Sumit Semwal" <sumit.semwal@linaro.org>,
"Christian König" <christian.koenig@amd.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 13/13] platform/raspberrypi: vchiq: Register vc-sm-cma as a platform driver
Date: Mon, 03 Nov 2025 19:37:28 +0530 [thread overview]
Message-ID: <176217884879.8690.13419980100895110857@freya> (raw)
In-Reply-To: <176217826196.8690.15955501577381404885@freya>
Quoting Jai Luthra (2025-11-03 19:27:41)
> Quoting Krzysztof Kozlowski (2025-11-02 15:03:55)
> > On 31/10/2025 18:27, Jai Luthra wrote:
> > > From: Dave Stevenson <dave.stevenson@raspberrypi.com>
> > >
> > > Register the vc-sm-cma driver as a platform driver under vchiq.
> > >
> > > Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
> > > Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
> > > ---
> > > drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c | 3 +++
> > > 1 file changed, 3 insertions(+)
> > >
> > > diff --git a/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c b/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c
> > > index 6a7b96d3dae6275a483ef15dc619c5510454765e..09d33bec46ec45175378fff8dd1084d0a8a12dd6 100644
> > > --- a/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c
> > > +++ b/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c
> > > @@ -63,6 +63,7 @@
> > > * the interface.
> > > */
> > > static struct vchiq_device *bcm2835_audio;
> > > +static struct vchiq_device *vcsm_cma;
> >
> > Please don't write singletons. How do you handle probe of two devices?
>
> This driver instantiates all the devices under the vchiq bus during its
> probe.
>
> The VCHIQ firmware doesn't support device enumeration, hence we have to
> list out the supported devices here.
And as Laurent just pointed out to me, yes these shouldn't be globally
defined singletons.
I'll move them inside struct vchiq_drv_mgmt in v2.
>
> >
> > >
> > > static const struct vchiq_platform_info bcm2835_info = {
> > > .cache_line_size = 32,
> > > @@ -1421,6 +1422,7 @@ static int vchiq_probe(struct platform_device *pdev)
> >
> >
> > Best regards,
> > Krzysztof
>
> Thanks,
> Jai
prev parent reply other threads:[~2025-11-03 14:07 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-31 17:27 [PATCH 00/13] platform/raspberrypi: Add Broadcom Videocore shared memory support Jai Luthra
2025-10-31 17:27 ` [PATCH 01/13] platform/raspberrypi: vchiq-mmal: Avoid use of bool in structures Jai Luthra
2025-11-02 9:20 ` Krzysztof Kozlowski
2025-11-03 11:09 ` Christian König
2025-11-03 13:22 ` Jai Luthra
2025-10-31 17:27 ` [PATCH 02/13] platform/raspberrypi: vchiq-mmal: Add support for event callbacks Jai Luthra
2025-11-01 14:03 ` Stefan Wahren
2025-10-31 17:27 ` [PATCH 03/13] platform/raspberrypi: vchiq-mmal: Support sending data to MMAL ports Jai Luthra
2025-10-31 17:27 ` [PATCH 04/13] platform/raspberrypi: vchiq-mmal: Fix client_component for 64 bit kernel Jai Luthra
2025-10-31 17:27 ` [PATCH 05/13] platform/raspberrypi: vchiq-mmal: Add in the bayer and gray formats Jai Luthra
2025-10-31 17:27 ` [PATCH 06/13] platform/raspberrypi: vchiq-mmal: Update video parameters Jai Luthra
2025-10-31 17:27 ` [PATCH 07/13] platform/raspberrypi: vchiq-mmal: Free the event context for control ports Jai Luthra
2025-11-02 9:20 ` Krzysztof Kozlowski
2025-10-31 17:27 ` [PATCH 08/13] platform/raspberrypi: vchiq-mmal: Fix memory leak in error path Jai Luthra
2025-10-31 17:27 ` [PATCH 09/13] platform/raspberrypi: Add new vc-sm-cma driver Jai Luthra
2025-11-02 9:30 ` Krzysztof Kozlowski
2025-11-03 13:49 ` Jai Luthra
2025-11-03 14:00 ` Krzysztof Kozlowski
2025-10-31 17:27 ` [PATCH 10/13] platform/raspberrypi: vchiq-mmal: Use vc-sm-cma to support zero copy Jai Luthra
2025-10-31 17:27 ` [PATCH 11/13] platform/raspberrypi: vchiq-mmal: Reset buffers_with_vpu on port_enable Jai Luthra
2025-10-31 17:27 ` [PATCH 12/13] platform/raspberrypi: vchiq-mmal: Add defines for mmal_es_format flags Jai Luthra
2025-11-02 9:33 ` Krzysztof Kozlowski
2025-10-31 17:27 ` [PATCH 13/13] platform/raspberrypi: vchiq: Register vc-sm-cma as a platform driver Jai Luthra
2025-11-02 9:33 ` Krzysztof Kozlowski
2025-11-03 13:57 ` Jai Luthra
2025-11-03 14:01 ` Krzysztof Kozlowski
2025-11-03 14:07 ` Jai Luthra [this message]
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=176217884879.8690.13419980100895110857@freya \
--to=jai.luthra@ideasonboard.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=christian.koenig@amd.com \
--cc=dave.stevenson@raspberrypi.com \
--cc=florian.fainelli@broadcom.com \
--cc=kernel-list@raspberrypi.com \
--cc=kieran.bingham@ideasonboard.com \
--cc=krzk@kernel.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=phil@raspberrypi.com \
--cc=sumit.semwal@linaro.org \
--cc=wahrenst@gmx.net \
/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