Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1346525rwr; Wed, 26 Apr 2023 13:39:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ZxFlzrTNrBLlL/gpopVc1Farl+BTX+ZDvQCREnidkU0FbfvnRWugPFvy4EPCOrTILN5FI X-Received: by 2002:a17:903:22c7:b0:1a9:98ae:5975 with SMTP id y7-20020a17090322c700b001a998ae5975mr4418216plg.30.1682541566322; Wed, 26 Apr 2023 13:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682541566; cv=none; d=google.com; s=arc-20160816; b=M02J9WwdXPxFmFT+Zse1OpDoqsVD7gT4OGtVm+d9D4lqqdNzwhE8GPyyRZBlT7sOQk yDthbnMxvyk4lTuKTp/YJ6WamYy+dgOKrBOAwCpHBk6uwDbGH12fHif4qeNTfuPX5XZE lgerSthXl4ATtx/BZ1Cj0oBwuArWT2w3xK/11/FPSwJp6Xl8HGeQAC9ZjyaENibTgzSE MiH4DJfBVZDXPXKG3uH0stbYXAb3opVIW4aGu7IaBVUd+kRTM0FBLfkQJjVRDD1hbcUN rCeaskXbPEKr7oWJJNWXaKXCZ6vxdr0+peHBfK8xJOvOb+Q/Fl6IE8UnixnoaMnBJ8nD 46/g== 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=eVeo2+G0wfE7Th9mpMzqAlZwNjPXsqF5qhbG8BjXhfs=; b=nlpTw2OlDc2Oc3Z3gAsl41ORhtPZP1X+13DfuqUwm986Qg2QY+Ek0V5SHfV9VKm57O begI9rzjSGBKsD8mxKyUOYogiceYzXMKzG3GKEJI6FRYT8clyB35Jlo8DFgOon6y/fC1 Yyq/RgX93nKbbzBg3tLnxJBVHw3FmAbVenu1DuuMXIF5ThcjFnfMsC/VTGNCoge/cNm+ MGi0/1sdbX7vubAlW5Ycy5QManaOeQIplkptMMQh4XExSc1vF2rGJppYMdqo98XtKs0j YitlR6LSCagwfSsgwgMA3LR1bLWQc/6EyNE1pL3Qo4nrtvMzKEMIDM/j3CM9oDKVPQNU 72Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=cAOCLgpY; dkim=neutral (no key) header.i=@ravnborg.org header.s=ed1 header.b="do/hY8c+"; 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 z16-20020a170902d55000b0019aa0d010eesi16964725plf.308.2023.04.26.13.39.12; Wed, 26 Apr 2023 13:39:26 -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=cAOCLgpY; dkim=neutral (no key) header.i=@ravnborg.org header.s=ed1 header.b="do/hY8c+"; 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 S232584AbjDZUiH (ORCPT + 99 others); Wed, 26 Apr 2023 16:38:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239738AbjDZUiD (ORCPT ); Wed, 26 Apr 2023 16:38:03 -0400 Received: from mailrelay6-1.pub.mailoutpod2-cph3.one.com (mailrelay6-1.pub.mailoutpod2-cph3.one.com [46.30.211.181]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C033213F for ; Wed, 26 Apr 2023 13:37:58 -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=eVeo2+G0wfE7Th9mpMzqAlZwNjPXsqF5qhbG8BjXhfs=; b=cAOCLgpYeIgd+SmmPnle/bw2nmkoV/Wcu/JfousxXCWTrIQvRkzjoJkXzUu5C1+v5pjh9PiCe2CkM Qhz+tS62TbtvfjoewZNnQsVIohf5Lh6j3eeLb8oGMplSAWtWY4RmGoC8NWdegN1XZLMnR9ogqNkoQQ uXc2S1EUvclv9hfY33OezLtHys0IF70fCqjzu+pHztUy/Iv8rfBGvFIDt/l34oUk1uqmoZp0TRedDb n3a+nAhUaclrLH2tNkgZu49/49pwlw+NVupLOTPMnq2rs+LzYaCkGqNPvf12SGaHEpL638nDRGgYoM zGAQT7MBPP3QhvGMAQLLL8egMyK3MZg== 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=eVeo2+G0wfE7Th9mpMzqAlZwNjPXsqF5qhbG8BjXhfs=; b=do/hY8c+tmgFEa4FnPVB0BzaGeCw1ybrSgm/bAII+A4jObIR152O0J//1DGI4vY4Rp4c904oVYBoa GD/PMttDA== X-HalOne-ID: 7fc0ec5f-e467-11ed-9e8c-6f01c1d0a443 Received: from ravnborg.org (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay6 (Halon) with ESMTPSA id 7fc0ec5f-e467-11ed-9e8c-6f01c1d0a443; Wed, 26 Apr 2023 19:21:11 +0000 (UTC) Date: Wed, 26 Apr 2023 21:21:10 +0200 From: Sam Ravnborg To: Thomas Zimmermann Cc: deller@gmx.de, geert@linux-m68k.org, javierm@redhat.com, daniel@ffwll.ch, vgupta@kernel.org, chenhuacai@kernel.org, kernel@xen0n.name, davem@davemloft.net, James.Bottomley@hansenpartnership.com, arnd@arndb.de, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arch@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, sparclinux@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-parisc@vger.kernel.org Subject: Re: [PATCH 0/5] fbdev: Move framebuffer I/O helpers to Message-ID: <20230426192110.GA3791243@ravnborg.org> References: <20230426130420.19942-1-tzimmermann@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230426130420.19942-1-tzimmermann@suse.de> 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_NONE, RCVD_IN_MSPIKE_H2,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 Wed, Apr 26, 2023 at 03:04:15PM +0200, Thomas Zimmermann wrote: > Fbdev provides helpers for framebuffer I/O, such as fb_readl(), > fb_writel() or fb_memcpy_to_fb(). The implementation of each helper > depends on the architecture. It's still all located in fbdev's main > header file . Move all of it into each archtecture's > , with shared code in . For once I think this cleanup is moving things in the wrong direction. The fb_* helpers predates the generic io.h support and try to add a generic layer for read read / write operations. The right fix would be to migrate fb_* to use the io helpers we have today - so we use the existing way to handle the architecture specific details. From a quick look there seems to be some challenges but the current helpers that re-do part of io.h is not the way forward and hiding them in arch/include/asm/fb.h seems counter productive. Sam