Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp498018imm; Fri, 14 Sep 2018 01:40:31 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb+5cdMshT+r+y4Q4TknjddXPrmMRc5mm6Bl2NLyJMtmCBCt3E5o3b1jC5XZi78LA0SQCaY X-Received: by 2002:a17:902:4001:: with SMTP id b1-v6mr11073691pld.312.1536914431707; Fri, 14 Sep 2018 01:40:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536914431; cv=none; d=google.com; s=arc-20160816; b=062GqVGD5rqF0zXyheTqLG3hMncpHGLatkwHEQN+YbITIJmjn4Oq+pE532I+poGYhZ 10Ruq/C6K7GSeVhHp9/YUWDhWyotQdIOTRNgNUUIDkFulknmG+T1GcLnYjW1WHcneLsY Al9IR79/5oeu7BIwED3lb3TIVfL03J2uK0rnSPJxmHDAFVqivqtKXj0IMB65REiOnMVT nhcmC9rVHKK9hL0RksTtHu9+emUj8XXBDtT0ynUTUHZz7eDyR8GE9RrfWXwR08WllTj+ VJJeguHFJXjp2u0Nv+Xs0EpgkAyS4BRliBaeJJr1mpFQ0TxxR4rS0AoxwxYkISsy+4Zy mLqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter; bh=W9kH1r4dI2qL7+BSgGCVuVls7FtkCeqULWrmPBCnICI=; b=IqR5uGk4jbytgQPxhUo7xWlgLlbXOeMcLzYF8M2fTrfXB3iAAn92G5H0Rpkb4xfwFW VCvJBglk3bVQ2dJCDz+QVRxEziLod30CzUf4IEsfvolu9xzPFBnPrMmAW0L82wz6ruog rpbasfcbQES3NAdgiH73UUnGO6rRmng/HltN4GqdMpjymuG9xILEeBEfTMNvF+kVPJ1O 0DWNB3NOL9fHdeusnXC3GG4g7jSgF6H9kpHwDLFz0zc8LlUh9u7rRXqsI2I9lzemxqbe nLAINf9z8w7zECNo8tm+yTwUBiWZjmfjTlDYLIpp0C/aV2BTsDJOA1aPjAH8FYjJ5mcm rRdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=G03ixKR0; 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 v2-v6si6874006pfv.57.2018.09.14.01.40.16; Fri, 14 Sep 2018 01:40:31 -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=@nifty.com header.s=dec2015msa header.b=G03ixKR0; 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 S1728015AbeINNwL (ORCPT + 99 others); Fri, 14 Sep 2018 09:52:11 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:33715 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726671AbeINNwK (ORCPT ); Fri, 14 Sep 2018 09:52:10 -0400 Received: from mail-vk1-f173.google.com (mail-vk1-f173.google.com [209.85.221.173]) (authenticated) by conssluserg-01.nifty.com with ESMTP id w8E8cGOt014090 for ; Fri, 14 Sep 2018 17:38:17 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com w8E8cGOt014090 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1536914297; bh=W9kH1r4dI2qL7+BSgGCVuVls7FtkCeqULWrmPBCnICI=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=G03ixKR0iQEcfkdFYbXQrTWLTEDTz6SbmiBTmykUrrBKbP0tSJ6AcRWsMn/kSkyxi 5WA3onWW+HzqwFoo+Cm0tllXLYDPR6w3dnNTtDSsVTkba05235mijO1Nulofq7CVvK KAKT5+bBTTk7FIS8F+aaQ4GXbdAy15AJP2thY+LN6kSnSDjEjE0bphrY8lw+p7TyuR 7CJPAIU5fQ9Bafd3sN+JJp6qPt3kCqjXmi7boUbDFx84Qp2IGYUEs4IztEuBgiy7vm nEFqVYSfEXd+IhCmEIeGe+ohqdZ29hDWn0V6uiZBPN/YrJOUsHMlB6XwMLBBTvF79/ I84onoy/IgSBA== X-Nifty-SrcIP: [209.85.221.173] Received: by mail-vk1-f173.google.com with SMTP id s17-v6so1378469vke.10 for ; Fri, 14 Sep 2018 01:38:17 -0700 (PDT) X-Gm-Message-State: APzg51DtPQWSLgx5UbW91uArIJ9hkwGh0xEQmTM3PM5LKMLL1aG4vXG7 zMQ+kx1UeDOc5Wv8+xWuCjxT0y1VfcCDQ6pR89Y= X-Received: by 2002:a1f:328a:: with SMTP id y132-v6mr2752080vky.84.1536914296319; Fri, 14 Sep 2018 01:38:16 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:7111:0:0:0:0:0 with HTTP; Fri, 14 Sep 2018 01:37:35 -0700 (PDT) In-Reply-To: <20180913102946.41a43d88@xhacker.debian> References: <20180913102946.41a43d88@xhacker.debian> From: Masahiro Yamada Date: Fri, 14 Sep 2018 17:37:35 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [Question] vendor-specific cpu enable-method To: Jisheng Zhang Cc: linux-arm-kernel , Olof Johansson , Rob Herring , Russell King , Arnd Bergmann , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi. 2018-09-13 11:29 GMT+09:00 Jisheng Zhang : > 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... Right. spin-table is based on pen-based implementation, and just a back-up plan in case psci is not available for some reasons. >> >> 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. OK, psci is preferred if it is available. Otherwise, ... vendor specific code. Thanks. -- Best Regards Masahiro Yamada