Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1347416rwa; Sun, 21 Aug 2022 06:37:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Hi4oHriF+Ly9cI7qTa1iY8t9otMiPsTg6Gvvao7iiBKf/kWrDMELV3bPS+6S3sDVXJML8 X-Received: by 2002:a63:d94a:0:b0:412:6e04:dc26 with SMTP id e10-20020a63d94a000000b004126e04dc26mr13448589pgj.539.1661089046266; Sun, 21 Aug 2022 06:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661089046; cv=none; d=google.com; s=arc-20160816; b=VDlm9Xe/JqxD/W8QnFqlKN+D+nOd1vKbdKIOPsgbbnCPhgFuCwDnXXKnAr2Ny7cHaI f1p7CHGgwjCXSpOMYLxDO92q13tqf6gfwzDCu8cHJDwq2LfWznIxG4XRCoC2eTnNgqW4 o3ZNVirHs5ei6wAs0fd8B0SZrjQtspzzDXEgAUjZTlgb+YJDvs8NerJz3PsRwKCgXr8g 25c4JM/uKAAzJtBYy3XnfAb4ZfjspYsQm93BuWGf2DPj25pdL6wDR9anTB6w8hQjiKpn MY1BdyYC85jH+558svJq2wrwlxQrtZi3JBPiVybqC4DoBk8UHpHwsRAK/Dv0Helx9+yH CPPQ== 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=wh63hAobc1uVljLnJ+kI643Y5QH17ip9W3Tm3J/v7dA=; b=dNQp/dvxBXQujb6Zo10b7XncAioVkK0pgr3ykYXKg3RPBweBQuw9lyGwDAP4Xg0CIT L/36zZFcVHLIzMuVe1BLMzlBGLsqYiQNwaqmxOrixJgrKP8qvj3tSu/DhDaEuda30kHL mIz1F7en4zu2MEScYVwdI9TxGO2mnAUWsbQpAKRB87GJurwKc8cefd49/69mi2wDaGjd uHKwOQcKmTlVGgZGSXdm7kL8IBy3ONdFJaR4s7DbG6DSEipujrLjr4pOywQ6Px+uc2B5 LLb8J8Qc/E3j0f+dd667XvakuuagRIxY0kc87gtvMkzWE/71ySUOY5mufFDe4WjPbXRI 5J3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=lxj1L3R2; 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 q15-20020a17090aa00f00b001f229bc3dc3si7409127pjp.104.2022.08.21.06.37.16; Sun, 21 Aug 2022 06:37: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=@infradead.org header.s=bombadil.20210309 header.b=lxj1L3R2; 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 S229653AbiHUNX7 (ORCPT + 99 others); Sun, 21 Aug 2022 09:23:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbiHUNXz (ORCPT ); Sun, 21 Aug 2022 09:23:55 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59CA615716; Sun, 21 Aug 2022 06:23:52 -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=wh63hAobc1uVljLnJ+kI643Y5QH17ip9W3Tm3J/v7dA=; b=lxj1L3R2YRxu87z0ZJ+bgooI9o NW+gwuzuGaPN6AVBGJEnno6SRG/SZI/L7Mw92tlmqNgofzA+R2NxMM+1vvkWneixst24iTCG0fLE2 QAEPW+mAidZGlp+z3Ly5puWR6vbkyF8qYSz6k7Ozu1t8BmOEKwnxuofPKfBvwIIKc3v/agPHJGayN BZY2G/GdiNbcqH9CeHCKs8WEl5y68hpqBECAriNXK4baid8DOFkJPre9Z2XXKjZKdSO+gQI9MQDPk X7YqXRbYA7+bW18hThXnPobhomG40fhktnPgkeBrwzmznPSWIyH8dOwn/9pCr5Ir2XjbvCA9FePGG LHySku4Q==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPkvP-00Ac7b-7l; Sun, 21 Aug 2022 13:23:35 +0000 Date: Sun, 21 Aug 2022 06:23:35 -0700 From: Christoph Hellwig To: Huacai Chen Cc: Arnd Bergmann , Huacai Chen , loongarch@lists.linux.dev, linux-arch@vger.kernel.org, Xuefeng Li , Guo Ren , Xuerui Wang , Jiaxun Yang , linux-kernel@vger.kernel.org Subject: Re: [PATCH] LoongArch: Use TLB for ioremap() Message-ID: References: <20220815124612.3328670-1-chenhuacai@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220815124612.3328670-1-chenhuacai@loongson.cn> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html 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_NONE, SPF_NONE,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 On Mon, Aug 15, 2022 at 08:46:12PM +0800, Huacai Chen wrote: > We can support more cache attributes (CC, SUC and WUC) and page > protection when we use TLB for ioremap(). Please build this on top of the series that extents the generic ioremap code for these use cases instead of duplicating the generic ioremap code.