From: Philippe CORNU <philippe.cornu@foss.st.com> To: Thomas Zimmermann <tzimmermann@suse.de>, Yannick Fertre <yannick.fertre@foss.st.com>, Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>, David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, <dri-devel@lists.freedesktop.org>, <linux-stm32@st-md-mailman.stormreply.com>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> Subject: Re: [PATCH] drm/stm: remove conflicting framebuffers Date: Tue, 14 Dec 2021 11:15:22 +0100 [thread overview] Message-ID: <58cc264b-7b46-7869-1c38-f6d79a4daafe@foss.st.com> (raw) In-Reply-To: <10c5672d-a228-ed9e-2f32-1ce9ae86dbcc@suse.de> On 12/6/21 3:23 PM, Thomas Zimmermann wrote: > Hi > > Am 06.12.21 um 14:47 schrieb Yannick Fertre: >> In case of using simplefb or another conflicting framebuffer, >> call drm_aperture_remove_framebuffers() to remove memory allocated. >> >> Signed-off-by: Yannick Fertre <yannick.fertre@foss.st.com> > > The patch should have contained a note that this is version 2 of the > change with a short changelog. Anyway > > Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> > > Best regards > Thomas > >> --- >> drivers/gpu/drm/stm/drv.c | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/drivers/gpu/drm/stm/drv.c b/drivers/gpu/drm/stm/drv.c >> index 222869b232ae..9f441aadf2d5 100644 >> --- a/drivers/gpu/drm/stm/drv.c >> +++ b/drivers/gpu/drm/stm/drv.c >> @@ -14,6 +14,7 @@ >> #include <linux/of_platform.h> >> #include <linux/pm_runtime.h> >> +#include <drm/drm_aperture.h> >> #include <drm/drm_atomic.h> >> #include <drm/drm_atomic_helper.h> >> #include <drm/drm_drv.h> >> @@ -183,6 +184,10 @@ static int stm_drm_platform_probe(struct >> platform_device *pdev) >> DRM_DEBUG("%s\n", __func__); >> + ret = drm_aperture_remove_framebuffers(false, &drv_driver); >> + if (ret) >> + return ret; >> + Hi Yannick, and many thanks for your patch. Acked-by: Philippe Cornu <philippe.cornu@foss.st.com> Philippe :-) >> dma_set_coherent_mask(dev, DMA_BIT_MASK(32)); >> ddev = drm_dev_alloc(&drv_driver, dev); >> >
WARNING: multiple messages have this Message-ID (diff)
From: Philippe CORNU <philippe.cornu@foss.st.com> To: Thomas Zimmermann <tzimmermann@suse.de>, Yannick Fertre <yannick.fertre@foss.st.com>, Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>, David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, <dri-devel@lists.freedesktop.org>, <linux-stm32@st-md-mailman.stormreply.com>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> Subject: Re: [PATCH] drm/stm: remove conflicting framebuffers Date: Tue, 14 Dec 2021 11:15:22 +0100 [thread overview] Message-ID: <58cc264b-7b46-7869-1c38-f6d79a4daafe@foss.st.com> (raw) In-Reply-To: <10c5672d-a228-ed9e-2f32-1ce9ae86dbcc@suse.de> On 12/6/21 3:23 PM, Thomas Zimmermann wrote: > Hi > > Am 06.12.21 um 14:47 schrieb Yannick Fertre: >> In case of using simplefb or another conflicting framebuffer, >> call drm_aperture_remove_framebuffers() to remove memory allocated. >> >> Signed-off-by: Yannick Fertre <yannick.fertre@foss.st.com> > > The patch should have contained a note that this is version 2 of the > change with a short changelog. Anyway > > Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> > > Best regards > Thomas > >> --- >> drivers/gpu/drm/stm/drv.c | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/drivers/gpu/drm/stm/drv.c b/drivers/gpu/drm/stm/drv.c >> index 222869b232ae..9f441aadf2d5 100644 >> --- a/drivers/gpu/drm/stm/drv.c >> +++ b/drivers/gpu/drm/stm/drv.c >> @@ -14,6 +14,7 @@ >> #include <linux/of_platform.h> >> #include <linux/pm_runtime.h> >> +#include <drm/drm_aperture.h> >> #include <drm/drm_atomic.h> >> #include <drm/drm_atomic_helper.h> >> #include <drm/drm_drv.h> >> @@ -183,6 +184,10 @@ static int stm_drm_platform_probe(struct >> platform_device *pdev) >> DRM_DEBUG("%s\n", __func__); >> + ret = drm_aperture_remove_framebuffers(false, &drv_driver); >> + if (ret) >> + return ret; >> + Hi Yannick, and many thanks for your patch. Acked-by: Philippe Cornu <philippe.cornu@foss.st.com> Philippe :-) >> dma_set_coherent_mask(dev, DMA_BIT_MASK(32)); >> ddev = drm_dev_alloc(&drv_driver, dev); >> > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-12-14 10:15 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-12-06 13:47 [PATCH] drm/stm: remove conflicting framebuffers Yannick Fertre 2021-12-06 13:47 ` Yannick Fertre 2021-12-06 14:23 ` Thomas Zimmermann 2021-12-06 14:23 ` Thomas Zimmermann 2021-12-14 10:15 ` Philippe CORNU [this message] 2021-12-14 10:15 ` Philippe CORNU 2022-01-04 13:52 ` Philippe CORNU 2022-01-04 13:52 ` Philippe CORNU -- strict thread matches above, loose matches on Subject: below -- 2021-12-03 8:55 Yannick Fertre 2021-12-03 8:55 ` Yannick Fertre 2021-12-03 9:35 ` Thomas Zimmermann 2021-12-03 9:35 ` Thomas Zimmermann 2021-12-06 13:42 ` yannick Fertre 2021-12-06 13:42 ` yannick Fertre
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=58cc264b-7b46-7869-1c38-f6d79a4daafe@foss.st.com \ --to=philippe.cornu@foss.st.com \ --cc=airlied@linux.ie \ --cc=alexandre.torgue@foss.st.com \ --cc=daniel@ffwll.ch \ --cc=dri-devel@lists.freedesktop.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-stm32@st-md-mailman.stormreply.com \ --cc=mcoquelin.stm32@gmail.com \ --cc=raphael.gallais-pou@foss.st.com \ --cc=tzimmermann@suse.de \ --cc=yannick.fertre@foss.st.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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.