Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4796700imm; Tue, 21 Aug 2018 00:49:58 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw4X6ie31qncxeg6ybPPAfSTDWSi3FU+d+KseS9HGrBiAOZmeRX3bpkjAuFtXPHcJzOq1q1 X-Received: by 2002:a62:d113:: with SMTP id z19-v6mr51281205pfg.98.1534837797995; Tue, 21 Aug 2018 00:49:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534837797; cv=none; d=google.com; s=arc-20160816; b=VHUiqgBlN/b7JNq0kh2TiqiCCXUlAXk0CeZkD0xWRaJhvr0ws/bhqrOEDfFM6QxnFn fgwFIFuUGdKWzCC4MhsW/QWgIZVWzj8yl1j2/SsVPxA5SWSUnJwKh7eMzI3I2IsVT6Eq bQDKwcO2Mb0Ne+XopK4QzVZWLD7TBM/koqJEuWlPPd9OFanyEX5bzmxgm09zKRysSq1s cNvhJSUyWRBP9vnnNw45Vs04c6phUX2JSSiRyDHZfGrw6n7kRKlgRaQTBO5UNFm+4vsg bhEb8zPlkFPMdE8r0X09v1Qe+yYIsJLAJWBE7/LVEMslYg+IkUqwKRGT+S4px9fralOd SAyQ== 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:dkim-signature:arc-authentication-results; bh=UZ2rJodlNxBae6WT+b2Zm7gQ8wbHY5V/Sm3rvAG+giM=; b=nBrMVQU20yQBCqdAwTGK4yl/90yb9A2YD9skHhBV2rsT3k5qunlF44DxrCoFPEMVwm BrI/hb5G5blCuhSoylGztI8L6o3gqMgNQzIHeQaB4fI9+nvOViBw4vC/CL0kbgVDIXUs xE1W9mLMOhSe+l2Hf/jt9NYp71oWI71kImkEe50Tv1mecDHIIh07LnL7vMMWc3b315dS aF+vKHmnLHQBVRBuxXQRwuhuwRiDvJX3Ulp0Ori3X+A66AFWQo54zA/U1eA/BypVxC9F i+BfXQrpYQcv1NKX1nAmEal/xxwlaKOXx+cuJCc0WR2f3EykFQnqFCohsxOE03E9QM75 HJPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=GgfyM9rN; 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 s185-v6si12037620pgs.499.2018.08.21.00.49.40; Tue, 21 Aug 2018 00:49:57 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=GgfyM9rN; 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 S1726651AbeHULHd (ORCPT + 99 others); Tue, 21 Aug 2018 07:07:33 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:41992 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726413AbeHULHc (ORCPT ); Tue, 21 Aug 2018 07:07:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; 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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=UZ2rJodlNxBae6WT+b2Zm7gQ8wbHY5V/Sm3rvAG+giM=; b=GgfyM9rNqjuIbnQqK7N1UZfAr nhMhNOVnHMm5F5/mFZE7tEEM8JJWsdv9cjjBhX4WMlkLspcNgEVxFS8HyDW2J/iHokRLXn8sRYekd ocXfa0uSuJpNaRLavCKfloeAHyV9h6bLkf1UcOlenYGrZxhpyiQrHuEcwhy6DLsbu8RbTWmK50Yay q6KNLXx2V9uvJbpxBSsR8eugCNFvBS3aQHU45ex1Dy3zc76qBtBspBZ/Lwe9EoP1hF8Wjp5WmFviv SvwulNzBlF7pmnCzXLZYOD4K/jet2vKA1/q9t/anVy6WmmDgXRlJLsPBp+9hNyYjZVDsJynxpG9oj 5QL7zVMsw==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fs1Os-00008g-KJ; Tue, 21 Aug 2018 07:48:26 +0000 Date: Tue, 21 Aug 2018 00:48:26 -0700 From: Christoph Hellwig To: Anup Patel Cc: Atish Patra , Mark Rutland , Damien Le Moal , "palmer@sifive.com" , "linux-kernel@vger.kernel.org List" , Christoph Hellwig , "linux-riscv@lists.infradead.org" , Thomas Gleixner Subject: Re: [RFC PATCH 3/5] RISC-V: Add cpu_operatios structure Message-ID: <20180821074826.GA28079@infradead.org> References: <1534377377-70108-1-git-send-email-atish.patra@wdc.com> <1534377377-70108-4-git-send-email-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 16, 2018 at 11:51:03AM +0530, Anup Patel wrote: > Having thought about this more, I think cpu_ops should be an pointer array > of NR_CPUS size. This means its not necessary to have have same ops for > all CPUs. The ARM64 implementation of CPU operations also allows separate > CPU operations for each CPU. > > For example, let's us assume that we have an SOC where we 2 cores > per-cluster and N clusters. All CPUs of cluster0 comes up at the same time > whereas cluster1 onwards we have to bring-up CPUs using special HW > mechanism. All this (including the patch itself) seems a little hypothetical. I'd rather only add all this infrastructure once it actually is needed.