Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2462943pxb; Thu, 3 Feb 2022 07:12:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpNGVpyfIWexmk/wlwiDWY1y2DICBOCv12Fpn6Huxb6jEU7PpBCZ1sTo14A+g1JUJF1m0G X-Received: by 2002:a05:6402:3554:: with SMTP id f20mr35938699edd.375.1643901173021; Thu, 03 Feb 2022 07:12:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643901173; cv=none; d=google.com; s=arc-20160816; b=xaMuLVPv1XnbhECBZh+rvCG63QVFgcNdhouQT85GZPADjTnyUPTBVZku00Gldc9zKI Pr/jJJQOSNv4bMh7M9jTueZZ3vCJJhJeItIz0bcHyS9ILTBBEOuVmtUif2RKAsgPgEk0 WkS5IPFTOMjcTVDrpvsUu4wWxAw6rkFOb9C9gsVXBXsN6rJdFLTP8kFi33OdMxSmwDNq rnaAF6ju3G+ETn3Ues1RGK0BtRYkS/v5VZ61ZicV1z5xsoVZ7KaNS4E8fYzas/OmWn5m YkeG0TdBFmtzEr6Ws/xECTfb+uy3ijb4Qi5xVKfGkZkO3NhPrIRlu9E4WoJV3kofoat9 q5bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=5fz27RuzOjCc2yCWqMgCg+GoYt0pq3Y2/S/tNrGCWPQ=; b=DaVds34qkmH7Bpefuv42Q6Gw1er4wMuEFiLQmCxjcxYkQaXeCqi//vcVgzBfD+rs0+ DSX4O2NPOBkH1uuZmJ30X99Fm1OnjTIDqBJDiVnEmH/jQYjgoRmSLENFgMMXeXmrA1Sa cEaeqRkeVq3hVx36Uye/5uRlghTUfzkanoi9FMMa4mt+493xxxMgt1csYkdd5V61ROfO vEfp8gDUQM/Q72uwdP6SM+R6VFy7Ed5x3GyrkVgUx5FVLYgU3JtRwGTYCmxLcv+tI/wK 7F0yixbcQkuKsyL8Q/eEUd0ZI4avC8R0CZnCR/8O0FWfEGFUJggm0bOR/dpF3jx6THN6 nCRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4si13093149edt.364.2022.02.03.07.12.26; Thu, 03 Feb 2022 07:12:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236716AbiBCKrX (ORCPT + 99 others); Thu, 3 Feb 2022 05:47:23 -0500 Received: from foss.arm.com ([217.140.110.172]:38186 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230516AbiBCKrW (ORCPT ); Thu, 3 Feb 2022 05:47:22 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3FD98113E; Thu, 3 Feb 2022 02:47:22 -0800 (PST) Received: from FVFF77S0Q05N (unknown [10.57.89.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 434513F774; Thu, 3 Feb 2022 02:47:21 -0800 (PST) Date: Thu, 3 Feb 2022 10:47:13 +0000 From: Mark Rutland To: Florian Fainelli Cc: linux-arm-kernel@lists.infradead.org, "maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE" , Lorenzo Pieralisi , open list Subject: Re: [PATCH 0/4] Broadcom STB PM PSCI extensions Message-ID: References: <20220122035421.4086618-1-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220122035421.4086618-1-f.fainelli@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 21, 2022 at 07:54:17PM -0800, Florian Fainelli wrote: > Hi all, Hi Florian, > This patch series contains the Broadcom STB PSCI extensions which adds > some additional functions on top of the existing standard PSCI interface > which is the reason for having the driver implement a custom > suspend_ops. I *really* don't like the idea of having non-standard PSCI extensions, because it somewhat defeats the point of PSCI being a standard, and opens the door for the zoo of mechanisms we had on 32-bit. I think this needs a fair amount more explanation and justification. > These platforms have traditionally supported a mode that is akin to > ACPI's S2 with the CPU in WFI and all of the chip being clock gated > which is entered with "echo standby > /sys/power/state". Additional a > true suspend to DRAM as defined in ACPI by S3 is implemented with "echo > mem > /sys/power/state". Why isn't a combination of CPU_SUSPEND and SYSTEM_SUSPEND sufficient here? What specifically *can't* you do with standard PSCI calls? > These platforms also may have an external Broadcom PMIC chip which can > cause the SoC to be powercycled assuming that we communicate that intent > via a vendor specific PSCI SYSTEM_RESET2. > > Since it is desirable to get any new functionality added to the kernel > to be loadable as a module as part of shipping said products in a Google > Kernel Image (GKI) environment, we need to export a couple of symbols from > drivers/firmware/psci/psci.c. I really don't want to export the guts of psci.c. Thanks, Mark. > Thanks for your feedback. > > Florian Fainelli (4): > firmware: psci: Export a couple of suspend symbols > soc: bcm: brcmstb: Make legacy PM code depend on !ARM_PSCI_FW > soc: bcm: brcmstb: Added support for PSCI system suspend operations > Documentation: ABI: Document Broadcom STB PSCI firmware files > > .../ABI/testing/sysfs-firmware-brcmstb | 16 + > drivers/firmware/psci/psci.c | 9 +- > drivers/soc/bcm/brcmstb/Kconfig | 4 +- > drivers/soc/bcm/brcmstb/pm/Makefile | 3 + > drivers/soc/bcm/brcmstb/pm/pm-psci.c | 315 ++++++++++++++++++ > include/linux/psci.h | 2 + > include/linux/soc/brcmstb/brcmstb-smccc.h | 84 +++++ > 7 files changed, 430 insertions(+), 3 deletions(-) > create mode 100644 Documentation/ABI/testing/sysfs-firmware-brcmstb > create mode 100644 drivers/soc/bcm/brcmstb/pm/pm-psci.c > create mode 100644 include/linux/soc/brcmstb/brcmstb-smccc.h > > -- > 2.25.1 >