From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 98327C61DA4 for ; Thu, 9 Mar 2023 11:30:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=i+2M6VYRYIU+utKDYChAlDzx4Ef9On9c4jbhV0YuTqY=; b=Ss4CqQ0gmnTXXs We9aJJ4O6DE3elVb3K8PYatRfb7vruubPvLrFS2BSJcgskAIn5O7tIgAbxR6OkWaQWx31gc83TuQo JqH+s9Pa59JT9FadZE9O7Yt9XIhvDt2vISVg/Qp9/Y4rXdpF7PbYfYfMr/wVS7MjGl53SWJuxXAYE ywE3ldjLchMWns+cikb/MM9O3PgbBS4OJX5r3LF8lhEnJBkrPyH1i9uFWkS9ixbxnOEwjKQ+IGc+8 OX+8nua6/AAUkXDc3huKAH68NS9nka9VjBrJg9AE5nN91nW4t9Gtz70gkp5+wWr0oDDbEg3fy73kl UwCsfNIQ5pGgBy+8pJgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paESs-009Vuq-5m; Thu, 09 Mar 2023 11:29:43 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paEEP-009Ns8-2P for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 11:14:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678360483; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fOclMsW6Dcq/qmgrbzDRG9ABG8aYqQLYxxYoBc5QR74=; b=baxC9t6eyk3IKhfv0QWWRuL+z9o1x5ObjJinAnDevrCwiLR4J+EdPGw+aLpSTwUIJeQ33a +nsJObcda/838lrLS4ETkgRyacyS2GmZAX3YSLHS9U+90fpSKDwdueG6/Ynu3eiE55uaL5 oGvY9C4cggX3fRonL50zU7kNToYeGyg= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-227-RA3h-ibCM6G7VdNyqlSy3g-1; Thu, 09 Mar 2023 06:14:42 -0500 X-MC-Unique: RA3h-ibCM6G7VdNyqlSy3g-1 Received: by mail-wr1-f71.google.com with SMTP id q7-20020a05600000c700b002cd9188abe5so344535wrx.3 for ; Thu, 09 Mar 2023 03:14:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678360481; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fOclMsW6Dcq/qmgrbzDRG9ABG8aYqQLYxxYoBc5QR74=; b=MilwIQftneIHKLBY4KNR9aRSPKBzIoB9hnH439+QTXflucFxeVf8DrRLI+y3VBdr29 GXjMo7SAG//IQn/UUHrPqn1vc0OgvHmB3f6gwUNQigtzifPC2H+EiBc+j2pyzAl9ByoL nY1WUth1XNhT9oxG3l7C2kYEmrQ6Btg3RUA11rYEPE4ZNbwoiTfYEDvvwMEI8y/1/QKz 2+MqbuMOrlkJC2nX4WrzffoSJ/sWdSnmRhKXLlF8mCLjoO30Z3D9p1nmCMzJmxN0Ub2O m4hormO7DLIKM/QPTFD7kTImOFKaItRANkpwWAxomql5DO7j+gU7BSP/8oNawGjclZge T/7A== X-Gm-Message-State: AO0yUKWIFsLHdZ0exhAR90fVMzD6nMvdpH+FwutlLtJzvduHjsFp/Cq8 XQPQGyDCYuxKJEXs3OuOaQmwtXjE+JnLr2qOM0QIq+/Nay7EsLpm4yEsAIZXZOygBHJbq/9WlCJ srFlsCw6ny3AamQgpMyvIuV2SWDY2RhAxxec= X-Received: by 2002:a5d:52c4:0:b0:2c7:390e:163c with SMTP id r4-20020a5d52c4000000b002c7390e163cmr15389438wrv.47.1678360480886; Thu, 09 Mar 2023 03:14:40 -0800 (PST) X-Google-Smtp-Source: AK7set915u9SxlnTzfz8tGdDVQASzd1E75MhTfa6AFkSAnvLaeMrUwPtQlpNR4g2GraOjyd7bJsXiA== X-Received: by 2002:a5d:52c4:0:b0:2c7:390e:163c with SMTP id r4-20020a5d52c4000000b002c7390e163cmr15389414wrv.47.1678360480580; Thu, 09 Mar 2023 03:14:40 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id q1-20020a1ce901000000b003eb5a531232sm2198602wmc.38.2023.03.09.03.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 03:14:40 -0800 (PST) From: Javier Martinez Canillas To: Thomas Zimmermann , maarten.lankhorst@linux.intel.com, mripard@kernel.org, airlied@gmail.com, daniel@ffwll.ch, andrew@aj.id.au, laurentiu.palcu@oss.nxp.com, l.stach@pengutronix.de, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, p.zabel@pengutronix.de, anitha.chrisanthus@intel.com, edmund.j.dea@intel.com, khilman@baylibre.com, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com, alain.volmat@foss.st.com, yannick.fertre@foss.st.com, raphael.gallais-pou@foss.st.com, philippe.cornu@foss.st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, jernej.skrabec@gmail.com, samuel@sholland.org, jyri.sarha@iki.fi, tomba@kernel.org, linus.walleij@linaro.org, hyun.kwon@xilinx.com, laurent.pinchart@ideasonboard.com Cc: dri-devel@lists.freedesktop.org, linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, Thomas Zimmermann Subject: Re: [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> Date: Thu, 09 Mar 2023 12:14:39 +0100 Message-ID: <871qlydvmo.fsf@minerva.mail-host-address-is-not-set> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_031445_244261_BB021D37 X-CRM114-Status: GOOD ( 12.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel