Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4053132rwe; Mon, 17 Apr 2023 07:21:04 -0700 (PDT) X-Google-Smtp-Source: AKy350ZCdSJr09nCW7N+xvbKQP3fJ09p/ytXqbQ6dOfW4ivW7VcAW263Y4CrcWYk9/bTa7iMfcxM X-Received: by 2002:a05:6a00:148f:b0:63d:2382:4948 with SMTP id v15-20020a056a00148f00b0063d23824948mr3964073pfu.25.1681741264323; Mon, 17 Apr 2023 07:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681741264; cv=none; d=google.com; s=arc-20160816; b=gh6JRbHykXHZ9jBbGPTtIL2h48tXZaKkWqc8TjL/u7d5Z16/jVY7Mkh6Y/RSVPZwiJ PJKn+BTPTTK8MWQQcIHjGNKZRHEAnTJIlTENSPP/fiSsZKlrB3aaS+8n6CkSwnL688AF cb0Udu9LADIFgRF2EanI5BVnQOSX2wc8ZJILm8NeSe5OwHJgpNZc9zwOzfR+jlr8tLFj yPoix7qK3BPutPX+4ktNWyDrraI7R+37ZSKap+30G8JRqymKHPqhoryQenQqML80YOR8 wlOoEzWKkR0O8s/H3wz2PM1fmy1k0ytauYr80eABfWNTWBJcQC7nrGTJ+kCX7EujzFkF smCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=35O4Od9m8FQEhUPvm67QHvpGVxe/TZ5iDrX49CWxArI=; b=EIKk94kwN9GeukbcApYLyeqpsJsfj/CuOigH7xd0QH6XBgH480wcYYVGRvXPkDT4DA cpQwG8t/bbbftf/Pe2Ii0hiuj0yQc3cVZlUzvo63h+HYEHoIgDkZ5ravg+N4edUPDuDc pJZ+i/xInYHkpNgY2LNqNpSYAtSN0aSQq7n+gTAjG26JKyBbHJCDUu3pM/IVR3H+Oort tg2ZhYoWe6euTiidFM4IT+5CQu3usnQt6Jnz+Lyj1rs/u/Z0a7y+1/YP9Aap4hi8oNFT +R/BwqC70V4PXLOBym+JDK6flx7Y37Pkjgi5zp/1TTCz0RXV5qSAyJyeICwG4YOX95Zx Yt3g== ARC-Authentication-Results: i=1; mx.google.com; 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 v1-20020a631501000000b0050c10cfd6f8si11954071pgl.198.2023.04.17.07.20.47; Mon, 17 Apr 2023 07:21:04 -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; 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 S231183AbjDQONt convert rfc822-to-8bit (ORCPT + 99 others); Mon, 17 Apr 2023 10:13:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231139AbjDQONp (ORCPT ); Mon, 17 Apr 2023 10:13:45 -0400 Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 950D686AC; Mon, 17 Apr 2023 07:13:42 -0700 (PDT) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.95) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1poPbr-002HuW-Kt; Mon, 17 Apr 2023 16:13:35 +0200 Received: from p5b13a017.dip0.t-ipconnect.de ([91.19.160.23] helo=[192.168.178.81]) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1poPbr-0043co-Cy; Mon, 17 Apr 2023 16:13:35 +0200 Message-ID: <0b07fbadce4512e4696750cf69cf3fbbf38355a3.camel@physik.fu-berlin.de> Subject: Re: [PATCH v3 16/19] arch/sh: Implement with generic helpers From: John Paul Adrian Glaubitz To: Thomas Zimmermann , arnd@arndb.de, daniel.vetter@ffwll.ch, deller@gmx.de, javierm@redhat.com, gregkh@linuxfoundation.org Cc: linux-arch@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org, Yoshinori Sato , Rich Felker Date: Mon, 17 Apr 2023 16:13:33 +0200 In-Reply-To: <132f1185-d61f-b8c7-8d6e-4e4280a1a4ad@suse.de> References: <20230417125651.25126-1-tzimmermann@suse.de> <20230417125651.25126-17-tzimmermann@suse.de> <3c188e948506dc97112dcc070cf16e36209c6cc5.camel@physik.fu-berlin.de> <132f1185-d61f-b8c7-8d6e-4e4280a1a4ad@suse.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.0 MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 91.19.160.23 X-ZEDAT-Hint: PO X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas! On Mon, 2023-04-17 at 16:06 +0200, Thomas Zimmermann wrote: > Hi > > Am 17.04.23 um 15:02 schrieb John Paul Adrian Glaubitz: > > Hi Thomas! > > > > On Mon, 2023-04-17 at 14:56 +0200, Thomas Zimmermann wrote: > > > Replace the architecture's fbdev helpers with the generic > > > ones from . No functional changes. > > > > > > v2: > > > * use default implementation for fb_pgprotect() (Arnd) > > > > > > Signed-off-by: Thomas Zimmermann > > > Cc: Yoshinori Sato > > > Cc: Rich Felker > > > Cc: John Paul Adrian Glaubitz > > > --- > > > arch/sh/include/asm/fb.h | 15 +-------------- > > > 1 file changed, 1 insertion(+), 14 deletions(-) > > > > > > diff --git a/arch/sh/include/asm/fb.h b/arch/sh/include/asm/fb.h > > > index 9a0bca2686fd..19df13ee9ca7 100644 > > > --- a/arch/sh/include/asm/fb.h > > > +++ b/arch/sh/include/asm/fb.h > > > @@ -2,19 +2,6 @@ > > > #ifndef _ASM_FB_H_ > > > #define _ASM_FB_H_ > > > > > > -#include > > > -#include > > > -#include > > > - > > > -static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, > > > - unsigned long off) > > > -{ > > > - vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot); > > > -} > > > > Looking at the macro in asm-generic/fb.h, fb_pgprotect() is being replaced with > > a no-op function. Is that intentional? Can you briefly explain the background > > for this change? > > Patch 01 of this patchset changes the generic fb_pgprotect() to set > pgprot_writecombine(). So on SH, there should be no change at all. > Ah, I missed that, thanks for the explanation. Let me check and Ack your patch then. I assume you will be taking this patch as part of the whole series through your own tree? Thanks, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913