Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp39392imm; Tue, 21 Aug 2018 23:06:10 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwsFKjPBLx0xozx2saSJq8/S8wVPIwUgvHPsjC0bPOo7zqS5OKlWlwM+X6k/NNYENzdK8JN X-Received: by 2002:a17:902:82c5:: with SMTP id u5-v6mr18653288plz.83.1534917970103; Tue, 21 Aug 2018 23:06:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534917970; cv=none; d=google.com; s=arc-20160816; b=LgRDx/icsuepMeqGzwdmVI5aKYsn6Rv63eH85kr5/gZlhzeymRTCud1hdqQwGiFB9j 4g36DCUuHVBNyi93ZCvaMAmgII5Cb4w/nZP6WjLWo0HndxfnEHr7FvXgOzAoA6yytyEU LZROo/2Q7XLaGGXrysCwV08IsgXHmjVMtCcJy+25A9IbZX4OKmv6NPtu0vcwchaHXaRy UCwxMB9Zau5KZ1JmXPmLaMngUqtEDm4lQ1Gl+k3hh3iYuzzYPcSxENgDM3QbbkVSUFFh sAQ4/scDz6OXZNF2n5x70SJmv5nTfZksCUxvPrX/BqoEEOXWD07HUs+bsZX08lYJvgsO NmVQ== 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=yAmFxMvN3BD3bGlN5RcjnMnxoN1cKW/y/zvv9jkwmxE=; b=AkIY5Bm1oNU1pK+rAAsuR7UPDjAIIiAgy+PDuZrmCUfZKUBqnxIw+cFSwLXHaLdIpT 7VF8hv6/XEes7dNC1O0dvwdFb3zzeA2Q1kGNWUMBd77ieAJVhiDZCgXlbQH9gJwYvnRI 8xapv1AW8OsHx8VnXQZkygXrFuufZdAwe4Cd496poWCnqM7+xabrV2i0frWdjpq/y0XQ URvzF7B2biODLugwbAJqNox883HkYAQvhSmnyJNK7AtQHCoiKirfjBiL1GINjnT7e2ks zAIFNqAa9fMQyGYl01V/OLFPzH/a3qDP825kKbITQRbS1Uctu57dql3GnMaI3bJ7QVR6 oGLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZGXejm+V; 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 z13-v6si926566pgg.612.2018.08.21.23.05.55; Tue, 21 Aug 2018 23:06:10 -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=ZGXejm+V; 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 S1728169AbeHVJ1T (ORCPT + 99 others); Wed, 22 Aug 2018 05:27:19 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:33510 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726696AbeHVJ1T (ORCPT ); Wed, 22 Aug 2018 05:27:19 -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=yAmFxMvN3BD3bGlN5RcjnMnxoN1cKW/y/zvv9jkwmxE=; b=ZGXejm+VdZEAUiwQ7qXDhQcqK Xx5zqT4KD+wsH3w3O4y1KgZaqx9wgzJ+XYJGDCphnhf3ZYtJ7QUoFo2UukS85xlkWOhVDges0RT9A jYaKrlcTEHrtlzPvDz9CP1wFwSPhk/HPvELdGNlMOSdS174xN+uuuTePLBah4zkd+RvBIa1xstdWm fJE3rMT8tg6oxXcSt/5J9Atv/NTxlTSbDtyE/ExmTBWlyoR+LiKRExXJ66f4uhb/7W0WkjirvMnt8 vt2FJ9BCTp7zfpuxUhepjgPzcPO7/cSaMBxh0I9AVlctC53RsfKGWMn4dZ0dSKA3N3jXJE1T6pjwd 6emFGT02A==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fsMFF-0007RA-Mx; Wed, 22 Aug 2018 06:03:53 +0000 Date: Tue, 21 Aug 2018 23:03:53 -0700 From: Christoph Hellwig To: Anup Patel Cc: Christoph Hellwig , Mark Rutland , Damien Le Moal , "palmer@sifive.com" , "linux-kernel@vger.kernel.org List" , Atish Patra , "linux-riscv@lists.infradead.org" , Thomas Gleixner Subject: Re: [RFC PATCH 3/5] RISC-V: Add cpu_operatios structure Message-ID: <20180822060353.GA27106@infradead.org> References: <1534377377-70108-1-git-send-email-atish.patra@wdc.com> <1534377377-70108-4-git-send-email-atish.patra@wdc.com> <20180821074826.GA28079@infradead.org> 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 Tue, Aug 21, 2018 at 10:34:38PM +0530, Anup Patel wrote: > The cpu_operations is certainly required because SOC vendors will add > vendor-specific mechanism to selectively bringing-up CPUs/HARTs instead > of all CPUs entering Linux kernel simultaneously. In fact, we might also end-up > having CPU ON/OFF operations in SBI. Your forgot an essential part in your analysis: Right now we only have one single way to deal with cpu on/offlining, and that is the dummy WFI kind. Once other ways show up we can build proper infrastructure, but until then this is just a white elephant as we have no idea how these abstractions will look like. And my hope is that we'll just see new SBI calls, in which case we'll just need SBI and dummy version and can avoid all the indirect calls.