Message ID | 20221126000401.25302-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp4367809wrr; Fri, 25 Nov 2022 16:14:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf5pK8Q2R+jFJjnSxNp+ODTnF7NXItjDz7aUyZJqqvOQtd3Svrq8+5WwbG3lgd7Lo0Nc1Tqy X-Received: by 2002:a17:90a:fb89:b0:218:ec4a:782e with SMTP id cp9-20020a17090afb8900b00218ec4a782emr14445526pjb.7.1669421671868; Fri, 25 Nov 2022 16:14:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669421671; cv=none; d=google.com; s=arc-20160816; b=OlUt5rTxMobIfKQfr6zNVkh6Vx1TU7QcQCtAl2Z5nYQM2ld9y/KfjI1yMSsePCybaS iOTEGqQJo47cnurobojcJDgpjsiJNhUcmxhjY/yuGaUumfwnjrnkF49oLeO6HQk7VCh+ rowt36NyMYfQRonTsQn/G6niuHT7Tabk4k8fT1zJxRCofxFesL1h5ne2DHR2/KMy1u/7 kMDL/FKQCy0lRlh6dEnfGWG8da/a+yjLVdG8Jx+B89+AK+soq9dypS/FcADJp5h9DevW B1v9K91dUMVyufhrHn1tTy2dbDQ4X401dVrJkmVX3Cida5s3+wUECVYQU6Iz4cPIhw2z bZaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=fCEpozuQZzSMlmSX68RJLiCk4zrpL6chfzTq9T/Cx5k=; b=BOHouIFrZwk/1iXaeRWVsqoknRrofQjTCC56iaVFj6D087OS8qexQTU3p4tR9wK237 cvq2AxmT3CB+rvkHiuNUbTaZEshqc6NxVw1IaHzNaZ2OxAIjOnFOGoF+EFR0lyrX1r0j 3nd5EUKLeryzwBxWS52aUl51bUJLTzjL04/KsF0GXdsRRdJnY9j/yJYY1/iAt3Ri8Fa8 OV/dF3caoumLtJl7531FcTalw6csKcO7SQcYOHwD9NoKyG61Fibjipikp2Kg3r+iw9Uu TKbPR/6rd8QFKdyR4B8rqmS+ZaB8xRwvcErHXXvbL9eCiDgvhmCkVaslLEo4O41QKSk1 SO+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=EsUHG75+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l7-20020a170902f68700b00172f32450b7si5846573plg.197.2022.11.25.16.14.18; Fri, 25 Nov 2022 16:14:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=EsUHG75+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230086AbiKZAEP (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Fri, 25 Nov 2022 19:04:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbiKZAEN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 25 Nov 2022 19:04:13 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D9B13054E; Fri, 25 Nov 2022 16:04:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=fCEpozuQZzSMlmSX68RJLiCk4zrpL6chfzTq9T/Cx5k=; b=EsUHG75+oID3GB27Y6g35LNJqk uHV7H16V2AyNE9Jjrx5LcQPqA/7lRSatnFyjSsmv79n+xloLV5EdP5ct+xZ8ruRygleiDumHWKfzK S+rH5/exa9VjcJqkwLGnH5bXeUy2Ml//sDH2MHlDC/gr7vmLxer2HPFg8MXv0UNcqlpjPLnuXG6r7 7fSvb5ynnF2yi9bVA3b4w+xqb27ZKPhojSap/CmdWytflOHw1QyNS2X8mSUzNBne+FEZPapvec5ZE dVG2zaTgtidnqvc9J5awYuFTWkQ10LI6xLfBytJmpKoTvn4L6ytYKPXLHHkIXFvDSUoAb3Lru3zad ll2nv8yA==; Received: from [2601:1c2:d80:3110::a2e7] (helo=casper.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oyig1-00A0ud-R3; Sat, 26 Nov 2022 00:04:14 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, Arnd Bergmann <arnd@arndb.de>, Masahiro Yamada <masahiroy@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>, =?utf-8?q?Michal_Such=C3=A1nek?= <msuchanek@suse.de>, linuxppc-dev@lists.ozlabs.org, Daniel Vetter <daniel@ffwll.ch>, Helge Deller <deller@gmx.de>, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH] fbdev: make offb driver tristate Date: Fri, 25 Nov 2022 16:04:01 -0800 Message-Id: <20221126000401.25302-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750515498816461204?= X-GMAIL-MSGID: =?utf-8?q?1750515498816461204?= |
Series |
fbdev: make offb driver tristate
|
|
Commit Message
Randy Dunlap
Nov. 26, 2022, 12:04 a.m. UTC
Make the offb (Open Firmware frame buffer) driver tristate,
i.e., so that it can be built as a loadable module.
However, it still depends on the setting of DRM_OFDRM
so that both of these drivers cannot be builtin at the same time
nor can one be builtin and the other one a loadable module.
Build-tested successfully with all combination of DRM_OFDRM and FB_OF.
This fixes a build issue that Michal reported when FB_OF=y and
DRM_OFDRM=m:
powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x58): undefined reference to `cfb_fillrect'
powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x60): undefined reference to `cfb_copyarea'
powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x68): undefined reference to `cfb_imageblit'
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Michal Suchánek <msuchanek@suse.de>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Helge Deller <deller@gmx.de>
Cc: linux-fbdev@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
---
drivers/video/fbdev/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
Am 26.11.22 um 01:04 schrieb Randy Dunlap: > Make the offb (Open Firmware frame buffer) driver tristate, > i.e., so that it can be built as a loadable module. > > However, it still depends on the setting of DRM_OFDRM > so that both of these drivers cannot be builtin at the same time > nor can one be builtin and the other one a loadable module. > > Build-tested successfully with all combination of DRM_OFDRM and FB_OF. > > This fixes a build issue that Michal reported when FB_OF=y and > DRM_OFDRM=m: > > powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x58): undefined reference to `cfb_fillrect' > powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x60): undefined reference to `cfb_copyarea' > powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x68): undefined reference to `cfb_imageblit' > > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > Suggested-by: Arnd Bergmann <arnd@arndb.de> > Cc: Masahiro Yamada <masahiroy@kernel.org> > Cc: Thomas Zimmermann <tzimmermann@suse.de> > Cc: Michal Suchánek <msuchanek@suse.de> > Cc: linuxppc-dev@lists.ozlabs.org > Cc: Daniel Vetter <daniel@ffwll.ch> > Cc: Helge Deller <deller@gmx.de> > Cc: linux-fbdev@vger.kernel.org > Cc: dri-devel@lists.freedesktop.org Acked-by: Thomas Zimmermann <tzimmermann@suse.de> > > --- > drivers/video/fbdev/Kconfig | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff -- a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig > --- a/drivers/video/fbdev/Kconfig > +++ b/drivers/video/fbdev/Kconfig > @@ -456,8 +456,8 @@ config FB_ATARI > chipset found in Ataris. > > config FB_OF > - bool "Open Firmware frame buffer device support" > - depends on (FB = y) && PPC && (!PPC_PSERIES || PCI) > + tristate "Open Firmware frame buffer device support" > + depends on FB && PPC && (!PPC_PSERIES || PCI) > depends on !DRM_OFDRM > select APERTURE_HELPERS > select FB_CFB_FILLRECT -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev
On 11/26/22 14:40, Thomas Zimmermann wrote: > Am 26.11.22 um 01:04 schrieb Randy Dunlap: >> Make the offb (Open Firmware frame buffer) driver tristate, >> i.e., so that it can be built as a loadable module. >> >> However, it still depends on the setting of DRM_OFDRM >> so that both of these drivers cannot be builtin at the same time >> nor can one be builtin and the other one a loadable module. >> >> Build-tested successfully with all combination of DRM_OFDRM and FB_OF. >> >> This fixes a build issue that Michal reported when FB_OF=y and >> DRM_OFDRM=m: >> >> powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x58): undefined reference to `cfb_fillrect' >> powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x60): undefined reference to `cfb_copyarea' >> powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x68): undefined reference to `cfb_imageblit' >> >> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> >> Suggested-by: Arnd Bergmann <arnd@arndb.de> >> Cc: Masahiro Yamada <masahiroy@kernel.org> >> Cc: Thomas Zimmermann <tzimmermann@suse.de> >> Cc: Michal Suchánek <msuchanek@suse.de> >> Cc: linuxppc-dev@lists.ozlabs.org >> Cc: Daniel Vetter <daniel@ffwll.ch> >> Cc: Helge Deller <deller@gmx.de> >> Cc: linux-fbdev@vger.kernel.org >> Cc: dri-devel@lists.freedesktop.org > > Acked-by: Thomas Zimmermann <tzimmermann@suse.de> applied. Thanks! Helge >> >> --- >> drivers/video/fbdev/Kconfig | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff -- a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig >> --- a/drivers/video/fbdev/Kconfig >> +++ b/drivers/video/fbdev/Kconfig >> @@ -456,8 +456,8 @@ config FB_ATARI >> chipset found in Ataris. >> config FB_OF >> - bool "Open Firmware frame buffer device support" >> - depends on (FB = y) && PPC && (!PPC_PSERIES || PCI) >> + tristate "Open Firmware frame buffer device support" >> + depends on FB && PPC && (!PPC_PSERIES || PCI) >> depends on !DRM_OFDRM >> select APERTURE_HELPERS >> select FB_CFB_FILLRECT >
On Sat, Dec 10, 2022 at 05:35:06PM +0100, Helge Deller wrote: > On 11/26/22 14:40, Thomas Zimmermann wrote: > > Am 26.11.22 um 01:04 schrieb Randy Dunlap: > > > Make the offb (Open Firmware frame buffer) driver tristate, > > > i.e., so that it can be built as a loadable module. > > > > > > However, it still depends on the setting of DRM_OFDRM > > > so that both of these drivers cannot be builtin at the same time > > > nor can one be builtin and the other one a loadable module. > > > > > > Build-tested successfully with all combination of DRM_OFDRM and FB_OF. > > > > > > This fixes a build issue that Michal reported when FB_OF=y and > > > DRM_OFDRM=m: > > > > > > powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x58): undefined reference to `cfb_fillrect' > > > powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x60): undefined reference to `cfb_copyarea' > > > powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x68): undefined reference to `cfb_imageblit' > > > > > > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > > > Suggested-by: Arnd Bergmann <arnd@arndb.de> > > > Cc: Masahiro Yamada <masahiroy@kernel.org> > > > Cc: Thomas Zimmermann <tzimmermann@suse.de> > > > Cc: Michal Suchánek <msuchanek@suse.de> > > > Cc: linuxppc-dev@lists.ozlabs.org > > > Cc: Daniel Vetter <daniel@ffwll.ch> > > > Cc: Helge Deller <deller@gmx.de> > > > Cc: linux-fbdev@vger.kernel.org > > > Cc: dri-devel@lists.freedesktop.org > > > > Acked-by: Thomas Zimmermann <tzimmermann@suse.de> > > applied. Is this going to make it to Linus soon? We are now seeing this error in our CI, which has the configuration describe in this commit. https://github.com/ClangBuiltLinux/continuous-integration2/actions/runs/3785609002/jobs/6437398666#step:5:149 https://storage.tuxsuite.com/public/clangbuiltlinux/continuous-integration2/builds/2JUMSmjAoSJoKfl6PPjfU66JGit/build.log Cheers, Nathan > > > --- > > > drivers/video/fbdev/Kconfig | 4 ++-- > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > diff -- a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig > > > --- a/drivers/video/fbdev/Kconfig > > > +++ b/drivers/video/fbdev/Kconfig > > > @@ -456,8 +456,8 @@ config FB_ATARI > > > chipset found in Ataris. > > > config FB_OF > > > - bool "Open Firmware frame buffer device support" > > > - depends on (FB = y) && PPC && (!PPC_PSERIES || PCI) > > > + tristate "Open Firmware frame buffer device support" > > > + depends on FB && PPC && (!PPC_PSERIES || PCI) > > > depends on !DRM_OFDRM > > > select APERTURE_HELPERS > > > select FB_CFB_FILLRECT > > > >
On 12/27/22 19:48, Nathan Chancellor wrote: > On Sat, Dec 10, 2022 at 05:35:06PM +0100, Helge Deller wrote: >> On 11/26/22 14:40, Thomas Zimmermann wrote: >>> Am 26.11.22 um 01:04 schrieb Randy Dunlap: >>>> Make the offb (Open Firmware frame buffer) driver tristate, >>>> i.e., so that it can be built as a loadable module. >>>> >>>> However, it still depends on the setting of DRM_OFDRM >>>> so that both of these drivers cannot be builtin at the same time >>>> nor can one be builtin and the other one a loadable module. >>>> >>>> Build-tested successfully with all combination of DRM_OFDRM and FB_OF. >>>> >>>> This fixes a build issue that Michal reported when FB_OF=y and >>>> DRM_OFDRM=m: >>>> >>>> powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x58): undefined reference to `cfb_fillrect' >>>> powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x60): undefined reference to `cfb_copyarea' >>>> powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x68): undefined reference to `cfb_imageblit' >>>> >>>> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> >>>> Suggested-by: Arnd Bergmann <arnd@arndb.de> >>>> Cc: Masahiro Yamada <masahiroy@kernel.org> >>>> Cc: Thomas Zimmermann <tzimmermann@suse.de> >>>> Cc: Michal Suchánek <msuchanek@suse.de> >>>> Cc: linuxppc-dev@lists.ozlabs.org >>>> Cc: Daniel Vetter <daniel@ffwll.ch> >>>> Cc: Helge Deller <deller@gmx.de> >>>> Cc: linux-fbdev@vger.kernel.org >>>> Cc: dri-devel@lists.freedesktop.org >>> >>> Acked-by: Thomas Zimmermann <tzimmermann@suse.de> >> >> applied. > > Is this going to make it to Linus soon? We are now seeing this error in > our CI, which has the configuration describe in this commit. > > https://github.com/ClangBuiltLinux/continuous-integration2/actions/runs/3785609002/jobs/6437398666#step:5:149 > > https://storage.tuxsuite.com/public/clangbuiltlinux/continuous-integration2/builds/2JUMSmjAoSJoKfl6PPjfU66JGit/build.log It didn't applied cleanly earlier. I've now added it to the fbdev for-next branch, and if no problems show up in the next few days I'll push it before next weekend. https://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev.git/log/?h=for-next Helge > Cheers, > Nathan > >>>> --- >>>> drivers/video/fbdev/Kconfig | 4 ++-- >>>> 1 file changed, 2 insertions(+), 2 deletions(-) >>>> >>>> diff -- a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig >>>> --- a/drivers/video/fbdev/Kconfig >>>> +++ b/drivers/video/fbdev/Kconfig >>>> @@ -456,8 +456,8 @@ config FB_ATARI >>>> chipset found in Ataris. >>>> config FB_OF >>>> - bool "Open Firmware frame buffer device support" >>>> - depends on (FB = y) && PPC && (!PPC_PSERIES || PCI) >>>> + tristate "Open Firmware frame buffer device support" >>>> + depends on FB && PPC && (!PPC_PSERIES || PCI) >>>> depends on !DRM_OFDRM >>>> select APERTURE_HELPERS >>>> select FB_CFB_FILLRECT >>> >> >>
diff -- a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig --- a/drivers/video/fbdev/Kconfig +++ b/drivers/video/fbdev/Kconfig @@ -456,8 +456,8 @@ config FB_ATARI chipset found in Ataris. config FB_OF - bool "Open Firmware frame buffer device support" - depends on (FB = y) && PPC && (!PPC_PSERIES || PCI) + tristate "Open Firmware frame buffer device support" + depends on FB && PPC && (!PPC_PSERIES || PCI) depends on !DRM_OFDRM select APERTURE_HELPERS select FB_CFB_FILLRECT