Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1965853yba; Fri, 10 May 2019 04:13:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsaVwQN7r5ZrW6ySj0qqDbFv0Ll7h9S1GS/Ny1R4YZfTtTIUQsnriEtupqIVGCeCfXBZGI X-Received: by 2002:a17:902:7d8a:: with SMTP id a10mr12037849plm.167.1557486829604; Fri, 10 May 2019 04:13:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557486829; cv=none; d=google.com; s=arc-20160816; b=ZWOh1L+hFAOPYKQ/AXu8nUYOTjOwIHTFKXadVakTM/G9ooKMPO2TGsvKitw5A89rra ONaLRSI1N3CWfSMoVnIrEVsxNYzgHLsridEG1lPNEOEzhNh2gFsGORiITpq6OuKsFe2x xhXit7zF475M3rXgRocDP/XbP8rFxPK7e6HjYYebwANI2LS+ViBalQTPKsy+haMW/BwT gYL561QvgnL5V9fSOTcOr1dd9jrEvmiEIDNIYe5BvgoSR8mkGFp7n5SFSDiW8ZJHZpG1 HAXG9Dijecp6YCmos5xJVJMINwVggeUAkbUyUGAQLrdXi5mlcgNkWBeVHCV0cpkxB1Dy LxpA== 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; bh=8cUSne8kNKluNcK4t3XzoZWRo17hCDUkbBVQfkreSS4=; b=g2Uhqwx8ahCbUZPoIcTP+dWZ8OA3L8wBNeivNsdfgWeh/C1cDm95ocm++aOnvKxycQ B/AjvH9BLeX2b7THDNd0p3nALCVpwm4BluoiJWRmSXe0zICtcZZrc17nq0rVJFfX+zHh TIgIyEYHmjPqrFshNVBB3O2GQ1NQvI8RSufX2lsm1jZEjf5xAdOyG3+sLYsoNV69SpIL 8aSno92mli3B1YDk8JxN1FgZ2iI/V8iR+f/CRwXCKCZmhRCtg4lOq3eWC6Y+3x+ms4yJ 0lp2iuVZOzPKUxR2Qq/58Vu0qAVwUG5XTRxUhVWSR6+XKU1khX39XcLbWjXBomrO+6kH BSvA== 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 h90si7366055pfj.98.2019.05.10.04.13.33; Fri, 10 May 2019 04:13:49 -0700 (PDT) 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 S1727201AbfEJLE1 (ORCPT + 99 others); Fri, 10 May 2019 07:04:27 -0400 Received: from foss.arm.com ([217.140.101.70]:43640 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727052AbfEJLE1 (ORCPT ); Fri, 10 May 2019 07:04:27 -0400 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 0585F374; Fri, 10 May 2019 04:04:27 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3BDA23F738; Fri, 10 May 2019 04:04:26 -0700 (PDT) Date: Fri, 10 May 2019 12:04:18 +0100 From: Mark Rutland To: Catalin Marinas Cc: Salman Qazi , Linux Kernel Mailing List Subject: Re: icache_is_aliasing and big.LITTLE Message-ID: <20190510110418.GA51370@lakrids.cambridge.arm.com> References: <20190509085004.GE64514@C02TF0J2HF1T.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190509085004.GE64514@C02TF0J2HF1T.local> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 09, 2019 at 09:50:04AM +0100, Catalin Marinas wrote: > Hi, > > On Wed, May 08, 2019 at 11:45:03AM -0700, Salman Qazi wrote: > > What is the intention behind icache_is_aliasing on big.LITTLE systems > > where some icaches are VIPT and others are PIPT? Is it meant to be > > conservative in some sense or should it be made per-CPU? > > It needs to cover the worst case scenario across all CPUs, i.e. aliasing > VIPT if one of the CPUs has this. We can't make it per-CPU because a > thread performing cache maintenance might be migrated to another CPU > with different cache policy (e.g. sync_icache_aliases()). It's slightly more subtle than that -- for broadcast maintenance the policy of the CPU receiving the broadcast matters. So even if all i-cache maintenance were performed on a thread pinned to a CPU with PIPT caches, to correctly affect any VIPT i-caches in the system it would be necessary to perform maintenance as-if the CPU performing the maintenance had VIPT i-caches. Thanks, Mark.