Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1717285rwd; Tue, 16 May 2023 23:44:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6XjI69X4ABh/ERx/7aoaJ1tHLuTQYdFWYHxWAm47lK9ADUWrx8kNFf1rKQFZ3Zg8WmRqRx X-Received: by 2002:a05:6a00:1691:b0:647:7ee8:6248 with SMTP id k17-20020a056a00169100b006477ee86248mr38589305pfc.14.1684305858635; Tue, 16 May 2023 23:44:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684305858; cv=none; d=google.com; s=arc-20160816; b=asQ4McFtt+Xl53QcvO5aalR7jCHmc8Nw1A8fv6NHli2zRsGqB0M0V6rDMxY9T8h1yB UDPBHBPzd/h8gJ+E3XbOs/HiSfQL3lVtVFWuf7VX2e/MsZA4Ws4PQ5iirXjMkOFiGsdI akUznfkmAvLqogs4ZY5Gwc8yttdT2NrsTrrgserfEjBfpzZlmXPwzXB3Bl4q67xKST/5 wtlHtRNLPoGaQQt+IwL9Z2uzPn6Wki+KZysCjRgTZSQuJ5VnJwrXJNkfAavpFAIRlUZY xrux0TYkNfQB4dowmOvUgJ7IWWfBhGdoQmQ0UBujMIUy3CdZSOgQrjGpPbwzPDSvKOMG su/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; bh=LyqwcPubn/JsQWHMskCZBu9QXpuNcB4Hd4xqTmLITsI=; b=nJPkbZGS0WkDwxXR68iKjNyoAfhhwGKuVDKyv8H0IIejG6UN8KUETIVGyhp51aoXC7 tUwm0o1NTMmK6lQNZVfQjB4oroj/kbuq1dxINE23UgdJi/oTU9sQ38jLqFspsCBEbcGx p633ERD1K/FCI+84f9AdwxMTWSQCSQ30q1qERGbxmdKejtGeBHNci0PYgUKxlnfhRzFZ Qabd4VUqSyeumzbMuHaluYMhhDepsS0T7i/9zs74XpOF02OOJmtMTcL9R3DkimJhPP9B I2l8IjUHprPYiL45Rl3JnRPR313hqyJJ2jA0jx1BKSqECPdUIA3V3qpz5iumhmne2sSx 3Dbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=eXV2qErw; 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 g15-20020aa79dcf000000b0063d24857c5bsi21566669pfq.43.2023.05.16.23.44.04; Tue, 16 May 2023 23:44:18 -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=@infradead.org header.s=bombadil.20210309 header.b=eXV2qErw; 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 S229520AbjEQGg3 (ORCPT + 99 others); Wed, 17 May 2023 02:36:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjEQGg1 (ORCPT ); Wed, 17 May 2023 02:36:27 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3444A30F7; Tue, 16 May 2023 23:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=LyqwcPubn/JsQWHMskCZBu9QXpuNcB4Hd4xqTmLITsI=; b=eXV2qErwJTXGUoa1Zbhw+gAMw0 GNVHvOiLHyJvuf62zEKGLEA9V8ORQo+Sl4BroKuAAfHbtj60Yeb1thb73fA2jXbgVOS2ahCdFJ+mE VBGPhrJlsTqEaUImKwoyge6oq6QxZSdBip10g6F8tqeDJ8i4+J6TKcBSzLDjh/O0ycop+SMQM+F2v ErLvWCCNmc0jDBcTsP3bs2DxNwF3y7u5/NtB9tkK7QEbMxlbzu7B1mE1w0hKm9KQZ8AhgR3r9IIZ6 Qq0G6b9ARjq5usIYdVJksLo3TS+jsz7aBPqlrnsXxU/iw0KvWkX9m2CiMY0l9RQBar9wTFPyr8Blg ptop//Zg==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pzAlr-008UZj-2Q; Wed, 17 May 2023 06:36:23 +0000 Date: Tue, 16 May 2023 23:36:23 -0700 From: Christoph Hellwig To: Baoquan He Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, arnd@arndb.de, christophe.leroy@csgroup.eu, hch@infradead.org, agordeev@linux.ibm.com, wangkefeng.wang@huawei.com, schnelle@linux.ibm.com, David.Laight@aculab.com, shorne@gmail.com, willy@infradead.org, deller@gmx.de, Gerald Schaefer , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , linux-s390@vger.kernel.org Subject: Re: [PATCH v5 RESEND 10/17] s390: mm: Convert to GENERIC_IOREMAP Message-ID: References: <20230515090848.833045-1-bhe@redhat.com> <20230515090848.833045-11-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230515090848.833045-11-bhe@redhat.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Mon, May 15, 2023 at 05:08:41PM +0800, Baoquan He wrote: > +#define ioremap_wc(addr, size) \ > + ioremap_prot((addr), (size), pgprot_val(pgprot_writecombine(PAGE_KERNEL))) I'd move this out of line and just apply mio_wb_bit_mask directly instead of the unbox/box/unbox/box dance. > +#define ioremap_wt(addr, size) \ > + ioremap_prot((addr), (size), pgprot_val(pgprot_writethrough(PAGE_KERNEL))) and just define this to ioremap_wc. Note that defining _wt to _wc is very odd and seems wrong, but comes from the existing code. Maybe the s390 maintainers can chime on on the background and we can add a comment while we're at it. Otherwise looks good: Reviewed-by: Christoph Hellwig