Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp658639imm; Wed, 22 Aug 2018 10:19:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbVnDuAC5abFzJgnUIcula7mM7p2qKijotf1WVAxXQz92qilxpwPPPqKAHKoBmQMnNgsnKt X-Received: by 2002:a63:f14d:: with SMTP id o13-v6mr431927pgk.236.1534958340503; Wed, 22 Aug 2018 10:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534958340; cv=none; d=google.com; s=arc-20160816; b=vVSnLKz4QgLEZ/09c1g8BQZuwCLEx72wRRcLU+CWrKZ1k+2YTeqzxSXfudvBX1h/yp 7jPeqbfibkPgqw5yE6aD1BsC7HFM69GEN/kJDvvEuPJjbyxetcYTPvB+4laq+idI6uHw mni0Z5peLyyZkcC5GIbj1f1WadwnaveWpo/etQhV32iqorDzOXKAO6mc4nk70T/szrwf oAYIC/iu9nYIZ6VaCW06jW8FvyQmSZcAOzGBDgNSdO5hilY4SKqplcSaBOtAPQyu+wgA PNY0knUG5aJcrJeiIufbgAjQloAogpJWINHA/N68tzFEaBZyHaGrkdwQxtwR4Ue3kg13 UZPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature :arc-authentication-results; bh=IIMRiRNGcYzGJ0z2cvH801dtNiQaUXGpNk/Zy5WsLfE=; b=W/gf3Wxb3r7zB/41/dEWib8aCZtAE/YpHsupCxWcUKizDZTq5E28itGrOzO7xY0EN8 5oLHLRHtokurbcCj75LPlolSewnPYxXMos44DZigyJHYZ2hCpxzqqupwBQhOuzYeHTIC yXuWGlPdGvpAPbPLVkjPNNFayu/nxkpmxM2Tr/0/Mn85/EfJAo26O15J85HXPxDKFhBr A5acI5GdjgLfwAOpSa/0JiUI+dw6FhxiXMyjmIq+ivUoVltpXPoCJ54vWSHTLOMnxmP0 /6/tKKPQmNq22FlNTlF4gtbcbf2ZkmdqtnVhcKJaolj+mdJjevfzCzMeC9YQGFMMhs4t VALw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=GVXHK++8; 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 i7-v6si2059003pgs.174.2018.08.22.10.18.45; Wed, 22 Aug 2018 10:19:00 -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=pass header.i=@sifive.com header.s=google header.b=GVXHK++8; 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 S1727499AbeHVUmb (ORCPT + 99 others); Wed, 22 Aug 2018 16:42:31 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:41435 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726876AbeHVUmb (ORCPT ); Wed, 22 Aug 2018 16:42:31 -0400 Received: by mail-pl0-f67.google.com with SMTP id p4-v6so1142833pll.8 for ; Wed, 22 Aug 2018 10:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=IIMRiRNGcYzGJ0z2cvH801dtNiQaUXGpNk/Zy5WsLfE=; b=GVXHK++8FWACBTT3xakiZ9OHEu2KNzDJ8JWy0VdmCMNKFenXPYd9GKirZBEZGl+1np A0GLC4LKe3ZBcysDPYvtThQHtLdZOKcGD2UKbVh2763XSNbVl1HRuvJ2HMVLA4l377fA ZCvDjRp9ZJ1tKNOjJMS0PsMYDLGqoKRzHlybNqyZ2od8MTYLKRkF7j8ZDRGaaUjUPDP9 XPZ9W0qrF19CE8u21cO2gx4Gx244BQXXGZG/phiWxn52t01lUZTr2ut8cH0aNmNaGcK/ /HNZj12c2cDuLH2GspxbykVyvIKvr6jxKlgVDWqGGO6iB3B+hOE5mQb1x/uaSj/zAcZr St6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=IIMRiRNGcYzGJ0z2cvH801dtNiQaUXGpNk/Zy5WsLfE=; b=PtJIvCCmZT6fQ9Q1VvbGCRwBP5upGBbBQYpW+vsZNcRj6/ez1Z/PKv4oJ6ADJWQOZT fKIbpcL9/4jRAwJkin06YMRfBolloNjx0R4fPH9L+TsMDLMZs5UhCCSFc0ORRmSZaIb1 qOdHDm3vHYBwamxeUSXJhpAXSmQ2maTZuO/ZbjlXXT+zjW5hD/0Rey5vAdUY4q+mqCWQ YXUeKtyAcPuMvxi9BMikVjuE+JwlYsKdE0phaxp1CvRDTutc9DP9xH98cswUm7N4/lNy iy+A222mEIgvvR9YKU05Bok6UCV+jSr0XFAWFMVnSfKdmHLS6eC/7q1AFwxhavplCHs+ pxBg== X-Gm-Message-State: AOUpUlEjXhnwlpKD1kfz5dkf8ojXjL5xUcP5k4YmeFzkt5OiG76QhRDy EZfdA6KbBVbCF8aC6OHyTv4ybA== X-Received: by 2002:a17:902:b193:: with SMTP id s19-v6mr19267834plr.217.1534958207179; Wed, 22 Aug 2018 10:16:47 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id n4-v6sm2798036pgp.80.2018.08.22.10.16.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Aug 2018 10:16:46 -0700 (PDT) Date: Wed, 22 Aug 2018 10:16:46 -0700 (PDT) X-Google-Original-Date: Wed, 22 Aug 2018 10:09:59 PDT (-0700) Subject: Re: [RFC PATCH 3/5] RISC-V: Add cpu_operatios structure In-Reply-To: <20180822060353.GA27106@infradead.org> CC: anup@brainfault.org, Christoph Hellwig , mark.rutland@arm.com, Damien.LeMoal@wdc.com, linux-kernel@vger.kernel.org, atish.patra@wdc.com, linux-riscv@lists.infradead.org, tglx@linutronix.de From: Palmer Dabbelt To: Christoph Hellwig Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 21 Aug 2018 23:03:53 PDT (-0700), Christoph Hellwig wrote: > 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. Yes, the goal here is to define one good interface via the SBI. We've got a session at Plumbers this year and one of the blocks is to sit down and talk about this API, hopefully we can make some headway while there.