Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1223420rwd; Thu, 15 Jun 2023 07:52:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7pVqA106YG+aNTGeGtQKpf5rgGByrOFn3Wm05WDqNA+7N4Kss8wQ4G8BKx5s7Ptmp/5zja X-Received: by 2002:a17:907:9281:b0:95e:d3f5:3d47 with SMTP id bw1-20020a170907928100b0095ed3f53d47mr17573552ejc.48.1686840759428; Thu, 15 Jun 2023 07:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686840759; cv=none; d=google.com; s=arc-20160816; b=VA6CzkraV+NwgXvR3PKF836eyiohR5Pblbwn1Z2ggIvtqG1XhKvgnl+YevucAIKo7U rsoRhlU/qWolQbzyD0fBxbC9wASJqhfqmxxOrKFfRnayCwuq4k3G/5agB/AEYgG8XPLA XUikyRQ4Kv4wSnRJspYvHrD0qI7aBiIW8xp7yj/nmefZfKzHpBQugWi2aKZ2Y6ALTubd OhVHYyB8E3xgJOjIU90xVEc4pTasVy3UJJIussNljihXH0v5F61QHHF4mR6h2te4rMM/ qpRkdF1Nf+Qr2bSPWjtdhLjRNYm/3WRGUc/QoMuK6oEqRtPv6yrmCr0Xapo700tmyyj5 4B2w== 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=Y9bvtf286pw8tf5Ndk8qnBgZRSTn851+8LwiWYBhhiQ=; b=TUAoSeeeMesnYEOAQ6p1RmxWi7Yog75pW6D6jfCMWzO8RW7rkmpxu1mieqNZ3T3aGC K1GrUYk/H4jLZRIIIko6HEbqFqdFXBRTso0gcZfrhckbZsyDHy19B7CkT/aPtici9bWY cDoNkjJOjbiaynbxtRl5i5cQNrs8S7Tm8bxW7hpq2P9cAJsdshg/l9kf0g5iH72dErOe 4jFzbfC1DnJEVi2Btbt6Kp9aRe2KuVtvKAVDnukhvS7m/F7/aVOmoFCq7XBxb5UTCkCD /ed7vUwSkqV+O2mHGvaBxgTzFS50uDE8JPLlL7RQHQUYBrdrXX0NIpKFMX+4ijvC0fkD rGSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RLtTisZO; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l4-20020a170906644400b0094f442c8a6dsi7240273ejn.291.2023.06.15.07.52.14; Thu, 15 Jun 2023 07:52:39 -0700 (PDT) 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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RLtTisZO; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345046AbjFOOjj (ORCPT + 99 others); Thu, 15 Jun 2023 10:39:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238807AbjFOOjh (ORCPT ); Thu, 15 Jun 2023 10:39:37 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2142A199; Thu, 15 Jun 2023 07:39:35 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 35FEd9VZ030973; Thu, 15 Jun 2023 09:39:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1686839949; bh=Y9bvtf286pw8tf5Ndk8qnBgZRSTn851+8LwiWYBhhiQ=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=RLtTisZOpC0lHRYLuLBR3bqlrt6wx9RYRWag0pTbJ5VysSt/yKePtDkYWVfqAHYZx iMLuQvngBTiQIOnwzrRagFnqM/A7QZmQ9yaFcqfySp/cw+mtYbUESrR0n8ahm499hQ dTEl/UGeDdQC0EvqBrVIAOKIJC5GLhlPUc8lmMNs= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 35FEd9Eg023224 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 15 Jun 2023 09:39:09 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 15 Jun 2023 09:39:09 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE108.ent.ti.com (157.170.170.38) 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; Thu, 15 Jun 2023 09:39:09 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 35FEd9oE028627; Thu, 15 Jun 2023 09:39:09 -0500 Date: Thu, 15 Jun 2023 09:39:09 -0500 From: Nishanth Menon To: Francesco Dolcini CC: Benjamin Bara , Wolfram Sang , Lee Jones , , , , , , , , , , Benjamin Bara , Subject: Re: [PATCH v6 1/5] kernel/reboot: emergency_restart: set correct system_state Message-ID: <20230615143909.fjr25wghwrtepk6g@unwieldy> References: <20230327-tegra-pmic-reboot-v6-0-af44a4cd82e9@skidata.com> <20230327-tegra-pmic-reboot-v6-1-af44a4cd82e9@skidata.com> <20230615000650.coyphnwdai7smww7@unblended> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15:21-20230615, Francesco Dolcini wrote: > > > > > > -- > > > 2.34.1 > > > > > > > Tested-by: Nishanth Menon > > > > This in addition to a deeper bug in our driver seems to have helped > > resolve a report we had been looking at. Tested on beagleplay platform > > > > https://lore.kernel.org/all/ZGeHMjlnob2GFyHF@francesco-nb.int.toradex.com/ > > Is this patch going to fix the RCU warning I reported on that email or > it is just part of a more complex solution? From what I see, It is part of the solution. Problem happens as follows for us: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/firmware/ti_sci.c#n421 When i2c is not that frequently used, runtime pm disables the power domain on our platform. As part of reset or power-off, when i2c is invoked, it ends up calling into the firmware handler which (no surprise), attempts to do the wrong thing (and rightly flagged by RCU). We are in the middle of trying various combinations out to ensure we are'nt messing things up. -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D