Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp867708rdb; Fri, 1 Dec 2023 00:05:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2H3qlWVSyClIadgkJTXKQhxfeu4U5P+X+ZCAxnwn/cixmoa9W7I4cMsZXcgJH/zv8fyt3 X-Received: by 2002:a05:6870:3287:b0:1fa:f52a:ad2b with SMTP id q7-20020a056870328700b001faf52aad2bmr326342oac.8.1701417940383; Fri, 01 Dec 2023 00:05:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701417940; cv=none; d=google.com; s=arc-20160816; b=Z+pNoVHpsYcn7GllkgiKejyJApFE4Ug0JbLN+EkcUMMSqgR5Flh7aPr0GLnOCDXOy6 qZivs2l6WP9O/e93QY5H7MkrX9nd5PvMWSR1qTyBJjSwjpbOJxqEkTJJwADbGpzWXRwT A1VyJFpKsOVvNSod4Cw7NflHGgnc20Ul/ddZGisG72GUQONmEjYEe5TbmfP3YY1YKVfz iBCaTkK6jSjV5SCPr5QdDBMoWjmPtPX932nL+g8fKNhPNLSZJetFNQQyGgJZNhrzPQX+ duqweWRmbtrYRNmZHqqoQBEQka7R7ClgjNpeoQHSlNthxFRCKzTncFdJygmpS/W7AhCr kPiw== 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:dkim-signature; bh=PPlc3mvy+reBbqsxVS8a5Ol+L9ejWge2/nC9xigzSp4=; fh=z+WuCr24GfABOEMebzvY8CDfZb0rJeF+o0uWJR2B9mQ=; b=L2oFCqXR+YL43tEuLyWSWH3kLljG9oUQSldw3KadLdjaPonZYEZC1FrOBBsC2ebtuo 7o9MoOqwrJizaSx/ajP9XrqH/qGPVyBsZOtA/b1FV84WSuL280S8QtiUz/zuMriYvl1g GGxBNNxhJLAKHS2NBT4v8mJFhAgUpaU8s/oEaerfwXEPLwDR9Phfv8rTW7BD3HoWa1uo 3ZYQKadZ5zPugAhrLUzJ+RRCrWck88XT5mmigcFEXciKh5m1tQfLytX68GhSQNhNPcp/ 8nJ8q2asb2j47G4IuiG77u781Gz8cZ9u5bdRteX5YRxXtSM+dlouOVc33t6QkWMPNlGj v6GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=I7UuEFfm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id q21-20020a656855000000b005bdfd3a0d3esi2884427pgt.185.2023.12.01.00.05.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 00:05:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=I7UuEFfm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 5434A82516E0; Fri, 1 Dec 2023 00:05:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377779AbjLAIFU (ORCPT + 99 others); Fri, 1 Dec 2023 03:05:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjLAIFT (ORCPT ); Fri, 1 Dec 2023 03:05:19 -0500 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91C6810FC; Fri, 1 Dec 2023 00:05:24 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3B185FV5112095; Fri, 1 Dec 2023 02:05:15 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1701417915; bh=PPlc3mvy+reBbqsxVS8a5Ol+L9ejWge2/nC9xigzSp4=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=I7UuEFfmj2pyTPI6YhAXRzeWrlEuXdBG4fUmdBjATxTYY8bUQqvGy7SrMJRwba+tl p3DnZwnaojZ1fNoXrx8iL6scxxWhm45SJCuq3a/hsDY/QkaiuchLvBXaNko2TLT/bT 51LBrV1R7OtVigC7N8IZbHOYdbkwyZJs4ce2Suik= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3B185FpH087613 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 1 Dec 2023 02:05:15 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 1 Dec 2023 02:05:15 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 1 Dec 2023 02:05:14 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3B185FYG020015; Fri, 1 Dec 2023 02:05:15 -0600 Date: Fri, 1 Dec 2023 02:05:15 -0600 From: Nishanth Menon To: Thomas Richard CC: Tero Kristo , Santosh Shilimkar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vignesh Raghavendra , , , , , , , , , , Subject: Re: [PATCH 2/5] firmware: ti_sci: add suspend/resume support for irqs Message-ID: <20231201080515.6g4wvjvays7ik647@passport> References: <20231129-j7200-tisci-s2r-v1-0-c1d5964ed574@bootlin.com> <20231129-j7200-tisci-s2r-v1-2-c1d5964ed574@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20231129-j7200-tisci-s2r-v1-2-c1d5964ed574@bootlin.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 01 Dec 2023 00:05:37 -0800 (PST) On 16:31-20231129, Thomas Richard wrote: > On j7200, during suspend to ram, the SoC is powered-off. A53 and main domain is powered off in the case of J7200 - there are different nuanced suspend-to-ram scenarios involved which the system control firmware manages for us (Linux). > The irqs configuration is lost, so it shall be restored at resume. > The ti-sci has an internal list of irqs updated at each set/free. > All irqs in this list are restored at resume. This I don't disagree - but apply to all K3 SoCs. But what I do disagree is that this is sufficient enough to have suspend-to-ram actually functional. there are additional handshakes that are needed and the driver just has a single suspend-resume handler.. git log --oneline drivers/firmware/ti_sci.c tells us that we have already had a bunch of introduction, revert of suspend-resume handler (too much for my comfort). I wish I didn't have to say this, but I guess having seen TFA[1], U-boot[2] series (not that the kernel patch discussion is independent of TFA/U-boot discussions), and having known that the AM62x team is also working towards a suspend-resume scheme (CCying Kevin and AM62x folks) - Since we all share a single driver, I suggest we get together and draw through the arch of how this flow will look like and not create additional confusion in the public list on this till we have a settled down view (also the reason I haven't picked up am62x patches so far either). For now, I am going to punt this series until I see clarity overall and I am assured that we have a relatively final path for all users of TISCI driver/lib/infra. [1] https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/23992/7 [2] https://lore.kernel.org/u-boot/20231109140738.GF6601@bill-the-cat/ -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D