Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp125705imm; Wed, 12 Sep 2018 19:34:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYDHvhS+ZK+o4A3rXC0DQxrIu/t/ZSAhZBjdUmbmK8Wf7x24X161+teM7HjhNAKFLom01MG X-Received: by 2002:a65:6398:: with SMTP id h24-v6mr5008019pgv.245.1536806045733; Wed, 12 Sep 2018 19:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536806045; cv=none; d=google.com; s=arc-20160816; b=uLBgynju6np2uNbkkf0D5ZvItwUxCm6Hlbh+Q8A3fzACmL3xWX9q8onkRAbrtstDN2 obyHHRu986tP9xxTzq5qkYkIUfOQXNZpY3SEy2xbgrv6F5oxA/Yp9yVLQom15XuOO2Ug owENvIg4Ja1agnr4Ewrxr1B1YwHI6j+vayGG3YqyKtgTzPXxnxYqcS2NriNC6SAp1BIJ x/fYeXRGcoHCrFYHQE+UT6A0d64lIQV7HIROE2217OVQSbYnfQC4Oft7HX/frEDd3/KN TRAbym8oSJ7hlNwBjpC1coMk6Wu0cNVf405uSdS2o3nARytZTOT5KqebLYJaB3tyRFeH Yj9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=CtrP2aOJSIY/LAc9awN/5eQDpyr2Sq/gJRfF0LzMED0=; b=MOhntt0BkPWVQYH3vaYq471S50f+fRA9aNQVUj4dI0OzC9f2ZC927E0mPqrOOdC70Y pnrRjNC7dhN0jXLAYR3FHjLrKenj4FilZs0/2g0oCT3LDq6t341FjavcKygIHJNmsnjr QkbMH93eIzTH3InLP50aq1DYK+tTy9cJw5LqMrs5wC9ypXTQnLi5stHyyNlWGrTJzFKX V/RsAodLw2Mm7X2/iiwNsCHVR6sbUDdhQ/34UD2gN0iXrvfHqHROK6k544fYS7sQigXc BuGiAUHdE05EBEp7CZoYDD+hH1UxfI7HlLvD1KB1w5JJbNpb1ZzUKdDUq/ItnRqReOq2 3dIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=sWxWx3+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 j193-v6si2615502pge.617.2018.09.12.19.33.49; Wed, 12 Sep 2018 19:34:05 -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=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=sWxWx3+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 S1726862AbeIMHkk (ORCPT + 99 others); Thu, 13 Sep 2018 03:40:40 -0400 Received: from mail-sn1nam01on0050.outbound.protection.outlook.com ([104.47.32.50]:5632 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726204AbeIMHkj (ORCPT ); Thu, 13 Sep 2018 03:40:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector1-synaptics-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CtrP2aOJSIY/LAc9awN/5eQDpyr2Sq/gJRfF0LzMED0=; b=sWxWx3+8RHmKSTEGCUSAXUMhS9/BRwOzfRa+2MSoc1kF3h3PXCZQWZf1d4Z8Mo8Z2a/o3zHlUB0VCEHqutUVqb1DjUMtc4yBtcysn7+X0qifnVPvO1+jTeMVJORa8maEXdvPUnIFXSn6z7Fi/ZyxL5P3gSOr4LZQpQZzwp1PBzQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; Received: from xhacker.debian (124.74.246.114) by BY2PR0301MB1575.namprd03.prod.outlook.com (2a01:111:e400:526e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.16; Thu, 13 Sep 2018 02:33:12 +0000 Date: Thu, 13 Sep 2018 10:29:46 +0800 From: Jisheng Zhang To: Masahiro Yamada Cc: linux-arm-kernel , Olof Johansson , Rob Herring , Russell King , Arnd Bergmann , Linux Kernel Mailing List Subject: Re: [Question] vendor-specific cpu enable-method Message-ID: <20180913102946.41a43d88@xhacker.debian> In-Reply-To: References: X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: [124.74.246.114] X-ClientProxiedBy: KAXPR01CA0018.jpnprd01.prod.outlook.com (2603:1096:402:19::28) To BY2PR0301MB1575.namprd03.prod.outlook.com (2a01:111:e400:526e::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a0a6d37e-c811-4e0b-f205-08d619214195 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:BY2PR0301MB1575; X-Microsoft-Exchange-Diagnostics: 1;BY2PR0301MB1575;3:+lcV0WeV5VWIP/9jKVeLqfJksldLWXyfXUQNeh4dtDHA6PJ3TCy2d3XYW5S5IIiv1NzcufqgO2groBecE8OQLS811zaSwDaOx/GEPjAoNsKg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eRcMotClriqxMGhI6ibCjDXe5KwmyQlNa9Qsdhshm/7kMXr/pcZ4BmN0w9QzifpK4kMdgnqlkZO3kqrBZDQ6PrlLZTChd5liYNIT0aGs9L+g51bO1iJ4kO9CoeU6Bo4d5ZWaYsUs74jxZCAQy6Q3r6gBsNYq1L8nRg46mgOeAI2fXD5UMd/xj6fvb2+t6CdiA/xYvToVX/YWaTtpxftg4Nen34MrltaUILsrCFKOpJgH;4:kyWoM2L0hL+DB3mxJ0uePDWIz1Xh9NnDhPu/u14SqZ9ov8oejRfzcNBNnjQOEJDYBupHr4C15WFmvPia9zV7qkL5H2lYJZnJz7cs+IFTeCCy0Y2HQ7BPj7iDiJ6YHLgSs5XlPr0sGkPYdFDu+RnB5MeNg8YYAfgCwU5u/qhTF46k6L8GvM/DaeB1JM2m64fTgMJjQaLROgoq+xB/jj9uY3mQ6gn2LAmY2sYNcpYdm/XlmBQyTuKT/JGqj93wEA6Ly6LXyipvXDQmqWpXWu8SClEfuVMKs5Hg+qGrlgTFRN0TtGpyv4XYdh1iELfvWY3O X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699050);SRVR:BY2PR0301MB1575;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB1575; X-Forefront-PRVS: 07943272E1 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(376002)(39860400002)(346002)(136003)(366004)(396003)(189003)(199004)(50226002)(97736004)(33896004)(8676002)(5660300001)(478600001)(81156014)(26005)(76176011)(229853002)(8936002)(106356001)(81166006)(52116002)(7696005)(6246003)(6506007)(186003)(105586002)(16526019)(68736007)(386003)(6116002)(23726003)(47776003)(230700001)(4326008)(1076002)(53936002)(55016002)(6666003)(50466002)(9686003)(14444005)(54906003)(3846002)(6916009)(2906002)(7736002)(476003)(956004)(305945005)(86362001)(72206003)(66066001)(25786009)(316002)(486006)(11346002)(446003)(39210200001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR0301MB1575;H:xhacker.debian;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR0301MB1575;23:PnzVnqvwgnzJXD6wM2FUxK4VQUrXbY56ew6CB/7?= =?us-ascii?Q?3+44r1Fx+w5VYayJZlBVCVrRv+VzF1J0nW1oT8Zup+yPLOY34HhkCtBRAQsR?= =?us-ascii?Q?znK2s0vD0Q1gj+2kJRM2QwxboNDt4jDGsC4IQCqL29JgrqrgiDyqZdEfU8GC?= =?us-ascii?Q?7nVXCgrpJojse0XPn50J83lHZhj3+GLJYiZUX+TLeExH7RtEZLE/3bJQteHx?= =?us-ascii?Q?E2dUoetrKHIeQBIWjy28LCEQAHN/wxlS/blDGvWbm1NONpYOlrosXETyhE5N?= =?us-ascii?Q?TBxlXnsItXp+wkS5jhw0Nx0A+S/wJOK9e5tFttENAqSU+YDji/4d45XaQ+2l?= =?us-ascii?Q?OtWMXsMFbBJRFo+fFy3ognfBpUTy0Qb993C/HremJdO0AisemMlTQxXM9pef?= =?us-ascii?Q?iRPNtED/kNL9UIomD6DkCYEqPdKakvrqah/b0xdvRx/sjNr9vxzYqlfez/aP?= =?us-ascii?Q?YrRwyVmQtgBSPIUnZbeMA9QlDzFDJ9u93sK/JfUplsQR2N/DOX5akILGxcNd?= =?us-ascii?Q?bkT0rdv+R2apkhrNKQRg61LQFuyHxwDUEr9zIoMRZIQEIjE+il/cgYMeb1to?= =?us-ascii?Q?F/J3avZuUqsX6y3BmNJnn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Hsoeh+LPktYLXhP4bdgls8s2RBg0Nqh SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2018 02:33:12.7120 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a0a6d37e-c811-4e0b-f205-08d619214195 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB1575 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 13 Sep 2018 10:23:35 +0900 Masahiro Yamada wrote: > Hello. > > > Sorry if I am asking a stupid question. > > > For arm64, there are only 2 cpu methods, psci and spin-table. > > Why do we still allow vendor-specific methods upstreamed > for arm 32bit ports? > > To me, it looks like SoC vendors continue inventing > different (but similar) ways to do the same thing. > > It is a historical reason for old platforms. > > However, if I look at Documentation/devicetree/bindings/arm/cpus.txt > enable-method properties are still increasing. > > > psci is available in arch/arm/kernel/psci_smp.c, > but not all SoCs support the security extension. > Is there a simpler one like spin-table available for arm32? Per my understanding, spin-table is similar as the "pen" based solution in arm32, both can't reliably support kexec, suspend etc... > > If we force generic methods like psci or spin-table > for new platforms, we can stop proliferated smp code. > (Of course, we are just shifting the complexity > from the kernel to firmware.) psci is good but not all SoCs support secure extensions. spin-table can't support kexec, suspend. Except prefer psci for news SoCs with secure extensions, no better solutions AFAIK.