Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36963253rwd; Tue, 11 Jul 2023 07:50:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlEbdhcs0ZCBsyRly+L3JOa3WH//hunWxSEyN8jeapR62V8PRPRIDMqtK0FrRqO7TbpgVB7V X-Received: by 2002:a17:906:64d2:b0:993:da0b:8780 with SMTP id p18-20020a17090664d200b00993da0b8780mr13633777ejn.1.1689087045493; Tue, 11 Jul 2023 07:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689087045; cv=none; d=google.com; s=arc-20160816; b=rWfIlkFDA54zFyTfXMOrtUUzIKR/Ch8aN+zrE+EKz25p/y3QVjur/dH3e34EKqgvX8 uQeXO0xmL/SBmphqtfjAzI8hxAv50cAU/8czhifRIcI/UnfjXD7KvQN/NXD1diAjWUq0 ELxqtm6yNi7LQgtT10+cqGYrflaqE6MTyo0ABqBSdrN/rpk8Coklx3ys3PhyRiguzPpE dWL9PFUiRLG8f3wiTUYkZWElRAa5qKTquX0hmJs5nsBD8XYh1+2uitrAalD84MiKmUXS Kr1G6Q/GnUh6eGD54leLIsSYb34VEEz/bj/dMWpfCqJkGx2aLZZd8/nz76vlQGR5NzjU Q4Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=IzJnH7tearuxnA6Z+6SlVNN7/HpdHXO6OvjidkyffDc=; fh=H8UBWZOkMNFXexrdH6066P2KbCo9BsNQn5DjVOWs7OM=; b=RUXe2+9yeTL3HcOab9SunYpz24TvT251bNg371dxYpfd7qJDM3CjKoTPhTss+vFW3U LShFaCGJWFMW8mSqYFv7NeBdKyT3kDi0GxlR8YNBrROTndPE6n7fAGXfghSQXygbpH5F onfBDZlzcBkWz1R0GUQC+iG1b3kc6/Aw9omqEwsSf40i5kI+Yso1xVBZjoaygO98DxD5 2nCRqj1Zgc0MG64e716dFva8QG/QJb5bUALT8q0/e605Ju/fh+EU3yQSe7gHvpZM/tYB z/jEhlBgWH+O3p7G5q6WoZ485uRP3u6Nze50NTlPU3NNKiEsd1y0kL8YHMacX69jMl9p RaGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=t1UZoY+O; dkim=neutral (no key) header.i=@ravnborg.org; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jr6-20020a170906a98600b00992a36ceca1si2281451ejb.35.2023.07.11.07.50.19; Tue, 11 Jul 2023 07:50:45 -0700 (PDT) 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=@ravnborg.org header.s=rsa1 header.b=t1UZoY+O; dkim=neutral (no key) header.i=@ravnborg.org; 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 S232353AbjGKOr5 (ORCPT + 99 others); Tue, 11 Jul 2023 10:47:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232376AbjGKOrz (ORCPT ); Tue, 11 Jul 2023 10:47:55 -0400 X-Greylist: delayed 77322 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 11 Jul 2023 07:47:49 PDT Received: from mailrelay6-1.pub.mailoutpod2-cph3.one.com (mailrelay6-1.pub.mailoutpod2-cph3.one.com [IPv6:2a02:2350:5:405::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34D5310EB for ; Tue, 11 Jul 2023 07:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=IzJnH7tearuxnA6Z+6SlVNN7/HpdHXO6OvjidkyffDc=; b=t1UZoY+OgZB4qloOKAGoPzdxKiYC17C9++ltdd9VkKKSSJf/R5HyAsdaxr5chXo+LcqtCqMpEj2TA b8Z7yF6JHKQOlU7blN+narui79FThKq8hj2VwanKmhandBBtpyfKAhsU889SFEdFbXrVkiKx3hcR7H QKjso83LwxpCtsl1H23jeJIFNxLM2fJZpqpYaWgVJBzgpvhQLjm/hOp65N2Nj7rNyOZMvrxGPI6czh YS0MtrmIYLsQmwRyf7YF8HR5nxe+n7cXTvsKENehLpNtWPbi2L0wAhskoQ5ZCvD2WrQtbyYxsEJ/AP CUbin2WAzk67odxeRHKtnqDopCvMHJA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=IzJnH7tearuxnA6Z+6SlVNN7/HpdHXO6OvjidkyffDc=; b=KzzqHm8tLnuEHjgNWidySCjTk6o2+jW4abV9LJjbJcqDWTbuxi74O9whyYkZn2CXMR1EK8Adpr0Tp 1xeW/n7CQ== X-HalOne-ID: e4c9d52a-1ff9-11ee-be66-6f01c1d0a443 Received: from ravnborg.org (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay6 (Halon) with ESMTPSA id e4c9d52a-1ff9-11ee-be66-6f01c1d0a443; Tue, 11 Jul 2023 14:47:46 +0000 (UTC) Date: Tue, 11 Jul 2023 16:47:44 +0200 From: Sam Ravnborg To: Thomas Zimmermann Cc: deller@gmx.de, javierm@redhat.com, linux-fbdev@vger.kernel.org, kvm@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-sh@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, linux-geode@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-input@vger.kernel.org, linux-nvidia@lists.surfsouth.com, linux-omap@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Subject: Re: [PATCH 00/17] fbdev: Remove FBINFO_DEFAULT and FBINFO_FLAG_DEFAULT flags Message-ID: <20230711144744.GA117276@ravnborg.org> References: <20230710130113.14563-1-tzimmermann@suse.de> <20230710171903.GA14712@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, On Tue, Jul 11, 2023 at 08:24:40AM +0200, Thomas Zimmermann wrote: > Hi Sam > > Am 10.07.23 um 19:19 schrieb Sam Ravnborg: > > Hi Thomas, > > > > On Mon, Jul 10, 2023 at 02:50:04PM +0200, Thomas Zimmermann wrote: > > > Remove the unused flags FBINFO_DEFAULT and FBINFO_FLAG_DEFAULT from > > > fbdev and drivers, as briefly discussed at [1]. Both flags were maybe > > > useful when fbdev had special handling for driver modules. With > > > commit 376b3ff54c9a ("fbdev: Nuke FBINFO_MODULE"), they are both 0 > > > and have no further effect. > > > > > > Patches 1 to 7 remove FBINFO_DEFAULT from drivers. Patches 2 to 5 > > > split this by the way the fb_info struct is being allocated. All flags > > > are cleared to zero during the allocation. > > > > > > Patches 8 to 16 do the same for FBINFO_FLAG_DEFAULT. Patch 8 fixes > > > an actual bug in how arch/sh uses the tokne for struct fb_videomode, > > > which is unrelated. > > > > > > Patch 17 removes both flag constants from > > > > We have a few more flags that are unused - should they be nuked too? > > FBINFO_HWACCEL_FILLRECT > > FBINFO_HWACCEL_ROTATE > > FBINFO_HWACCEL_XPAN > > It seems those are there for completeness. Nothing sets _ROTATE, the others > are simply never checked. According to the comments, some are required, some > are optional. I don't know what that means. > > IIRC there were complains about performance when Daniel tried to remove > fbcon acceleration, so not all _HWACCEL_ flags are unneeded. > > Leaving them in for reference/completeness might be an option; or not. I > have no strong feelings about those flags. > > > > > Unused as in no references from fbdev/core/* > > > > I would rather see one series nuke all unused FBINFO flags in one go. > > Assuming my quick grep are right and the above can be dropped. > > I would not want to extend this series. I'm removing _DEFAULT as it's > absolutely pointless and confusing. OK, makes sense and thanks for the explanation. The series is: Acked-by: Sam Ravnborg