Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp429224rwb; Thu, 6 Oct 2022 21:48:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Du5dvApioUvmR1bsemUbLI83G++G+ARK7c3/HFTUMR8U90lPfZLOR9F5SM3DXaUgvqOPW X-Received: by 2002:a05:6a00:1591:b0:562:543a:8097 with SMTP id u17-20020a056a00159100b00562543a8097mr3393425pfk.38.1665118130186; Thu, 06 Oct 2022 21:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665118130; cv=none; d=google.com; s=arc-20160816; b=lA1wIx0RId4MFysCXwcZ86n7KDBXxIYQPeinQL3rbzqrmn6eOD5ghX7oySeaz4NJ8w PP+8XGYWV+FgdRv5/t3z/jyJcTia4kuqju2GlRhD6qn7xXp17CNPOCAhJ4DrjtzKTazg 7HObuzSeVlx2GlKfHHVEv7eRy/sg0VRJiPeSOzPsBuv/AxwPNW1UBG/u0mVcH8GE6DgU V8mAsz3eq+SfstnmiKOLeuj8W/rzeztvuYmkn/REb/V4EXybyAmUGtnWxDGJn/418Uh9 psr58VZI3ScfpTYraeghCuR1vR99BY+m+RQanWAX+pSEKBPzGf+hR5clm395YKNYpybq U2yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=QJV+qm5YFFiznBqhy0lPgYnioHuBBK2LI/jJC4Wt6/0=; b=0P2Ea1DEeeXzRJdtJrzcOTieTHJQnRE6JURUWEERMlcdF+UlXiZOTAM6h1DGbyxboG TpDJ3FWp+5awGT7kBasH2KBGOdnZhsM4fIGlaI0T/qgdLpEsK2G/J+qXH6/mTqP5Ygzs xqL01x03Uvjrg8HUiekPOXvCNNJ8MOyjGh1NfYY/8t9ITB1vnbU/N1HFECThuEbBVgZ+ o40LXiyorCBT6XuqdnjfWS8iC6tqffryFFMH/w3xae6HxCzNgiZPn3ZT6lkLjtaClMqH t44r8SsLDUPhzqUK9ueD/v//9ZTFPqG5hrD5ac1R13QrryMA0QyGSH6wdyolPQRtPonO ktsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=K7FtXe2l; 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 lw10-20020a17090b180a00b0020a8db1db79si8527883pjb.155.2022.10.06.21.48.30; Thu, 06 Oct 2022 21:48:50 -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=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=K7FtXe2l; 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 S229569AbiJGDuK (ORCPT + 99 others); Thu, 6 Oct 2022 23:50:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbiJGDuG (ORCPT ); Thu, 6 Oct 2022 23:50:06 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3128B1FCD4 for ; Thu, 6 Oct 2022 20:50:01 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id e11-20020a17090a77cb00b00205edbfd646so6137017pjs.1 for ; Thu, 06 Oct 2022 20:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=QJV+qm5YFFiznBqhy0lPgYnioHuBBK2LI/jJC4Wt6/0=; b=K7FtXe2lgnfARccniRXk8NU9SjejL3DLeQ9TGBThaSeXN+j8P0jRiZ2Z4vExivTKii fB8kLmh6BDHs78+SLNoP+ZT7uyZn7VwYUSg3uDOV+Ccsa9LPSK7LKchYu3q082wfTXTc kAXeY7Ck3lM8pqsfGwSVYssedBc8P4uZb4dXvdlSwOGpF7GtBypu74pobADDkbDQJfS9 pbr3NQMEzoD+4vhQc2AmoPeiYvJcjnhsTcnCxevdNlXlrjrpeHeuFnoG1fkO3UxaCMr4 1OKknIlOqRIPrgp8V/ddnBpD9dTcNduOMnWd7AzmxTCeDcSbw5ncZNubkXyFQvydxg/7 se/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QJV+qm5YFFiznBqhy0lPgYnioHuBBK2LI/jJC4Wt6/0=; b=CLjYDfIeIXPWSD4XB/NVtdUtdukhZOIfNEyMPce46SzcSUsQCUf/fFlBO4+iYqDSnA kpQM/nTsoDEa9+VfQmN5WATexXVbVZmvT8JRoBHCh0lTQd1rIXdUEHOITup+qhdAQXb1 js57fIIBPfcwdgECjIFa/T8f8BgMVTkmmIczGyNX23njYEpN1WG5LudPuh1M2/Ve0gok SFoqgqR9HvvabteU8wqAR4bpxhBCPAB18Mrj9Q6/hWH+GOdw8dThOhMgZL4AwM0T3CoU L7OVjTaPeClv65Z8tPAXHFoX2J6SlrSn89ksy3AYbMEzHkKdg+359IrWW+JygfdzEZ6T Rrhg== X-Gm-Message-State: ACrzQf331IYbF6iVAUmEY2tWZCjeCD6YTt647ywuDZkmFgdOP2wXyZqM ylr2+r7QSOQYlMcTuztqKCKeSA== X-Received: by 2002:a17:90b:4d05:b0:202:ec78:9d73 with SMTP id mw5-20020a17090b4d0500b00202ec789d73mr3115970pjb.103.1665114601298; Thu, 06 Oct 2022 20:50:01 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id h12-20020a170902f7cc00b001781a7c28b9sm380109plw.240.2022.10.06.20.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 20:50:00 -0700 (PDT) Date: Thu, 06 Oct 2022 20:50:00 -0700 (PDT) X-Google-Original-Date: Thu, 06 Oct 2022 20:49:53 PDT (-0700) Subject: Re: [PATCH v2 1/4] RISC-V: Fix ioremap_cache() and ioremap_wc() for systems with Svpbmt In-Reply-To: CC: apatel@ventanamicro.com, Paul Walmsley , atishp@atishpatra.org, heiko@sntech.de, anup@brainfault.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, mchitale@ventanamicro.com From: Palmer Dabbelt To: Christoph Hellwig Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Wed, 28 Sep 2022 05:14:30 PDT (-0700), Christoph Hellwig wrote: > On Thu, Sep 22, 2022 at 09:35:56AM -0700, Palmer Dabbelt wrote: >> Sorry I missed this, I thought it was just part of the rest of this patch >> set. That said, I'm not actually sure this is a critical fix: sure it's a >> performance problem, and if some driver is expecting ioremap_cache() to go >> fast then possibly a pretty big one, but the only Svpmbt hardware that > > More importantly nothing should be using ioremap_cache at all. It is > an API that has long been deprecated in favor of memremap. There's a few uses of it, I just send along a patch to make it arch-specific and make the users depend on it. That should let us stop adding this to ports just to get the drivers building.