From mboxrd@z Thu Jan 1 00:00:00 1970 From: Javier Martinez Canillas Date: Thu, 09 Mar 2023 12:14:39 +0100 Subject: [PATCH 01/22] drm/fbdev-dma: Implement fbdev emulation for GEM DMA helpers In-Reply-To: <87o7p2p4n4.fsf@minerva.mail-host-address-is-not-set> References: <87o7p2p4n4.fsf@minerva.mail-host-address-is-not-set> Message-ID: <871qlydvmo.fsf@minerva.mail-host-address-is-not-set> List-Id: To: linux-aspeed@lists.ozlabs.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Javier Martinez Canillas writes: [...] >> + drm_fb_helper_prepare(dev, fb_helper, preferred_bpp, &drm_fbdev_dma_helper_funcs); >> + >> + ret = drm_client_init(dev, &fb_helper->client, "fbdev", &drm_fbdev_dma_client_funcs); >> + if (ret) { >> + drm_err(dev, "Failed to register client: %d\n", ret); >> + goto err_drm_client_init; >> + } >> + >> + ret = drm_fbdev_dma_client_hotplug(&fb_helper->client); >> + if (ret) >> + drm_dbg_kms(dev, "client hotplug ret=%d\n", ret); >> + >> + drm_client_register(&fb_helper->client); >> + >> + return; >> + >> +err_drm_client_init: >> + drm_fb_helper_unprepare(fb_helper); >> + kfree(fb_helper); >> +} >> +EXPORT_SYMBOL(drm_fbdev_dma_setup); > > And this one could also be shared AFAICT if drm_fbdev_client_hotplug() > is used instead. > Scratch this one, you need the custom setup function to pass the drm_fbdev_dma_helper_funcs to drm_client_init(). But I think the other comments this apply. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat