From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754210AbeCGKES (ORCPT ); Wed, 7 Mar 2018 05:04:18 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:48394 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751127AbeCGKEQ (ORCPT ); Wed, 7 Mar 2018 05:04:16 -0500 Date: Wed, 7 Mar 2018 10:04:20 +0000 From: Will Deacon To: Shanker Donthineni Cc: Philip Elcan , Marc Zyngier , Catalin Marinas , linux-kernel , Robin Murphy , kvmarm , linux-arm-kernel Subject: Re: [PATCH v6] arm64: Add support for new control bits CTR_EL0.DIC and CTR_EL0.IDC Message-ID: <20180307100419.GA9111@arm.com> References: <1519877640-11944-1-git-send-email-shankerd@codeaurora.org> <20180306134405.GB18080@arm.com> <20180306152318.GE17454@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 06, 2018 at 01:33:00PM -0600, Shanker Donthineni wrote: > > I also confirmed with Thomas Speier, we can skip __flush_icache_all() if DIC=1. Thanks, > Planning to patch __flush_icache_all() itself instead of changing the callers. This > way we can avoid "ic ialluis" completely. Is this okay for you? > > static inline void __flush_icache_all(void) > { > /* Instruction cache invalidation is not required for I/D coherence? */ > if (!cpus_have_const_cap(ARM64_HAS_CACHE_DIC)) { > asm("ic ialluis"); > dsb(ish); > } > } Yup, that's what I meant, cheers. Will