Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3729403rwe; Mon, 17 Apr 2023 02:39:04 -0700 (PDT) X-Google-Smtp-Source: AKy350ZyLlbWExPks261SCA1p5BnSd6spJFCIsZjI83iJdGRmAk5+h547Y1pzXPUHs6Ht8fpXt+Y X-Received: by 2002:a17:90a:588c:b0:244:b000:d8e3 with SMTP id j12-20020a17090a588c00b00244b000d8e3mr14151217pji.45.1681724344240; Mon, 17 Apr 2023 02:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681724344; cv=none; d=google.com; s=arc-20160816; b=lYRdpzv5AMFUz0KptXZ/mLXgNL/0EKjBJk1dJ2yfI4l+pzc/DTPJhh+RjRbVqowS4L sLeXxSfX7EZTEkme56rH6as/afgHpnC5wGi4ZBepFzZvNU7T6y07GI3baTtkWXxTatHb QUx2Tim/AUXV0lkcAFlYIjl7ZACpoZyrkAsJ5eIq2rzechxlgA/qgYB1aJwik3W9JdRV yy9D6va18RprRR/D5YhMEoF1M5fDbCA6DnrI2oSYSpRH1MezciAVOC7ho98eCE4pIc/R R/M6RdqJtCdPehJlNNEBftqUr3dlQMoT8pK9FWUYel13JhIrj+qKMj2s051EyPpDjkDj SmSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=peYP/lOIqmvTTJ2GJZFK05PdIeVxfQrMTMTdWlxN2bY=; b=v71DHKwhhEnSqvErmvSHyC7/G3sm5OmkTXnLCro35giDLShAiKPOZOhngDNppm3YHP ttXMhmr2JAIg+5mGzKzJ9wY5G9VWDmYbipqekRCwW6NERXWMnop3XuC98Ts9wgk3MoeA Q7aIssB4YlBVITdd8DW3YgNFIemp3jFvbblkRVIDbw4Bf2DGw3pgup7DTK3T9hFH9r1K yQgkQpv9pA4TO3Tn1BBKHnWJOZngREgNK+e7vkLWhE0vXHjQ2muzGN0F+b0MEeZt+DVS IwObeg9KtHjIItJLi4w4mf8+hUG5QuTdK2oSfn14izBh5tX5b2BKwZYpvC3T+KOYjFj1 +isg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=hoxslnOK; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=MR4yxKuz; 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 v9-20020a17090abb8900b0024496072b1csi11180364pjr.73.2023.04.17.02.38.48; Mon, 17 Apr 2023 02:39: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; dkim=pass header.i=@arndb.de header.s=fm2 header.b=hoxslnOK; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=MR4yxKuz; 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 S230115AbjDQJcx (ORCPT + 99 others); Mon, 17 Apr 2023 05:32:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229655AbjDQJcv (ORCPT ); Mon, 17 Apr 2023 05:32:51 -0400 X-Greylist: delayed 538 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 17 Apr 2023 02:32:08 PDT Received: from wnew2-smtp.messagingengine.com (wnew2-smtp.messagingengine.com [64.147.123.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEE5F5FDF; Mon, 17 Apr 2023 02:32:07 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailnew.west.internal (Postfix) with ESMTP id DD2C02B066BA; Mon, 17 Apr 2023 05:22:47 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Mon, 17 Apr 2023 05:22:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1681723367; x=1681730567; bh=peYP/lOIqmvTTJ2GJZFK05PdIeVxfQrMTMT dWlxN2bY=; b=hoxslnOKq5L0fgq1KZ5uwFxkfCsDUbQoEitttD9Gb157/4VvDaL fzRTYgwNrKhMTGBEWYk5kV4pCoKxj3IQV0FpUtGeddLg5GfVlMhZex8QF6mhL8p9 gvwX4MSUzxesv1YcnaqKaa4Hf8aEonHOEB+LqYDIenoy4k9B5AvOOz7WXYv6rPww vauHxzq0EC93J9INj8HpYFP0uokUJZlvJ0DGwXpWQ8LUcqRJMmLECR08O/Gg7C4C FExoluX3ejusbKwfN3AFnDxBNc0Jh1L5n5E2k8MJ529jR2BSvuckTFMjwePw4/jA IVxKZIBctylYcZmrJ3YTpI6yusKyhHnhjmw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1681723367; x=1681730567; bh=peYP/lOIqmvTTJ2GJZFK05PdIeVxfQrMTMT dWlxN2bY=; b=MR4yxKuz3/tjr23pAzsFitwD0Txq7SZ+LasC5Fyh1rdL9W+5uLQ QWuTkcsnaN+XbFlYxewK49c7zL/ltjC0cAxyGzvY+pAqila9tzloSXls1fSGTLU8 83j+ql9LP2Am/jKxSL+2eFTD9s2a+pAHNF1s4l+85O8VFC4gAEQAX/IiexVaT7mA 1njCOrvD++JH4RDb7rqDNfo30GjQVpEJWnie2UNVdXN3+HoTO7VAHqni1UoK4zJb K0nmV8AH3mMhRqTjxdJcDOoA4dxU/4N4+juQYM/HVijErDhMcN+7kkXCY9vJtEKX A6hZ5WwaK7trmU2l173N30Rm9x+GYS13Hyg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeliedguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeegfeejhedvledvffeijeeijeeivddvhfeliedvleevheejleetgedukedt gfejveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2AD08B60086; Mon, 17 Apr 2023 05:22:46 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-334-g8c072af647-fm-20230330.001-g8c072af6 Mime-Version: 1.0 Message-Id: <55abd7af-acb8-47ce-89db-1722bcf0cb9c@app.fastmail.com> In-Reply-To: <2b4f75b8-aa83-8e41-7c99-7c8d573c0f31@suse.de> References: <20230406143019.6709-1-tzimmermann@suse.de> <20230406143019.6709-2-tzimmermann@suse.de> <2b4f75b8-aa83-8e41-7c99-7c8d573c0f31@suse.de> Date: Mon, 17 Apr 2023 11:22:24 +0200 From: "Arnd Bergmann" To: "Thomas Zimmermann" , "Geert Uytterhoeven" Cc: "Daniel Vetter" , "Helge Deller" , "Javier Martinez Canillas" , "Greg Kroah-Hartman" , Linux-Arch , 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 Subject: Re: [PATCH v2 01/19] fbdev: Prepare generic architecture helpers Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Mon, Apr 17, 2023, at 11:03, Thomas Zimmermann wrote: > Am 11.04.23 um 10:08 schrieb Geert Uytterhoeven: >> On Thu, Apr 6, 2023 at 4:30=E2=80=AFPM Thomas Zimmermann wrote: >>> +#ifndef fb_pgprotect >>> +#define fb_pgprotect fb_pgprotect >>> +static inline void fb_pgprotect(struct file *file, struct vm_area_s= truct *vma, >>> + unsigned long off) >>=20 >> Does this affect any noMMU platforms that relied on fb_pgprotect() >> doing nothing before? >> Perhaps the body below should be protected by "#ifdef CONFIG_MMU"? > > I cannot conclusively answer this question, but I did some grep'ing=20 > ('git grep ndef | grep CONFIG_MMU'): > > Only the architectures in this patchset provide but nothing=20 > anywhere uses yet. And of those architectures, only=20 > arm and m68k have !CONFIG_MMU cases. Those are handled in the rsp=20 > patches. I think we're good. Agreed. The generic version is just a more elaborate way to do nothing here, as the=20 vma->vm_page_prot =3D pgprot_writecombine(vma->vm_page_prot); line on nommu just turns into a self-assignment of the same member that was set the line before. Arnd