Received: by 10.223.185.111 with SMTP id b44csp331934wrg; Fri, 9 Mar 2018 05:49:41 -0800 (PST) X-Google-Smtp-Source: AG47ELu4Ai/BndHovYFe9nfR3eSKxRvPdeA5I7R4RDwlHJ9Va8FY7MPfc+f+sbXswLHHiLEKIh1m X-Received: by 10.99.115.68 with SMTP id d4mr1605099pgn.145.1520603381347; Fri, 09 Mar 2018 05:49:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520603381; cv=none; d=google.com; s=arc-20160816; b=VVswo70/8m7njs2ZUP0KTx1G7xi/YSiqOKqQDFb7sIjNjIyiOIUjfRxEyUoW6/lVEx u2oe1YahD/HJP+iyL3KI92urCNsMXwEtzY7M8T+ul10qSHvxZ2MnVQUzQP1mJp1iXCpo fVY3VHhj65SSj09VHsq/OC5oKgj1iNQu89fpT+cwx6YL64VU3wxquGGFg6plXsn2iwev vYPkrn4sxtsgxBqcyTKe6HT1axdvk2TkDWEqylIm+hH6DnecW1QVIOmsiWP9dca+4dVK YydNZMAqHsJwfV6Bo4M0bre0+MQpoWact5nTlKeEDkEVmA3sWvI/kAIBDCFcyMHHevsl punw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=DYbLFL6B9nkX0COQK5xsTnf4ONmcGHoe1+2nz15RE/0=; b=TALffnlwONIIjzemqL99Y1ztkuzD16AQ5Psh3kw51deNy94zqDrIIBdlBGFErr/iDV 7Uuncak+at6STTXAD7X9ZXsvko9YIM1XARuv/1Mz8PquiI+X51DtkTFi0cxUVQK6urm+ yH7cF6Bw7QbD8trvooyX2OSukwIFSiA4VXWbSZ+8GMv4nsVPoOj0GIotUqaWskNdAiAB /Ew8kfpzvVAuRQoB2TgAZz65t3NjrTZvD9jaHqxN4F/hEDHcO+CQYcYAhTcFUMssaTlH QWfLG+sPFtOql7Vegdqsl0ey5wBKFV2kY5JtSOMRbA0mCkq4Ja8OXkqtI/X3YORdKShH MIEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2si761227pgr.693.2018.03.09.05.49.27; Fri, 09 Mar 2018 05:49:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932165AbeCINsL (ORCPT + 99 others); Fri, 9 Mar 2018 08:48:11 -0500 Received: from foss.arm.com ([217.140.101.70]:51968 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932135AbeCINsJ (ORCPT ); Fri, 9 Mar 2018 08:48:09 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D0E1A1529; Fri, 9 Mar 2018 05:48:08 -0800 (PST) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A2B393F25C; Fri, 9 Mar 2018 05:48:08 -0800 (PST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id D1B7C1AE53CA; Fri, 9 Mar 2018 13:48:13 +0000 (GMT) Date: Fri, 9 Mar 2018 13:48:13 +0000 From: Will Deacon To: Shanker Donthineni Cc: Robin Murphy , Mark Rutland , linux-kernel , linux-arm-kernel , Catalin Marinas , kvmarm , Marc Zyngier , Vikram Sethi , Philip Elcan Subject: Re: [PATCH v7] arm64: Add support for new control bits CTR_EL0.DIC and CTR_EL0.IDC Message-ID: <20180309134813.GD15537@arm.com> References: <1520434808-29703-1-git-send-email-shankerd@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1520434808-29703-1-git-send-email-shankerd@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 07, 2018 at 09:00:08AM -0600, Shanker Donthineni wrote: > The DCache clean & ICache invalidation requirements for instructions > to be data coherence are discoverable through new fields in CTR_EL0. > The following two control bits DIC and IDC were defined for this > purpose. No need to perform point of unification cache maintenance > operations from software on systems where CPU caches are transparent. > > This patch optimize the three functions __flush_cache_user_range(), > clean_dcache_area_pou() and invalidate_icache_range() if the hardware > reports CTR_EL0.IDC and/or CTR_EL0.IDC. Basically it skips the two > instructions 'DC CVAU' and 'IC IVAU', and the associated loop logic > in order to avoid the unnecessary overhead. Cheers, I've queued this for 4.17. Will