Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp952971pxp; Wed, 16 Mar 2022 22:28:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyatKfeimUIVBgUhW/fSizNU61OA4xmFNKmjbY+UgiP3uWPy7QMtJ3c4aNF1Js5MaRYK1m/ X-Received: by 2002:a63:3482:0:b0:37d:101e:a93d with SMTP id b124-20020a633482000000b0037d101ea93dmr2292157pga.425.1647494903894; Wed, 16 Mar 2022 22:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647494903; cv=none; d=google.com; s=arc-20160816; b=zERz2mC4guAg5JA64BZngZJXSxyzMDkuVPVOenfBK74vVBfw204tDWcJrkxnw9UvsO WThAxvuAZFLT0S+cvkTozgXlXi636TV9LCPEBBLFPIHL11CRBACHMby0VVMgExxdvgSl aW8W4g9SuuXy9jok7JfIxlnN3JkNLG/65ptRaNqaEwk2XDlg/CFKnZKZ0wL9N73/v63A ZW9CHkQqIC/p7XcdPxG+0ty1JYCGWVxG7/xVZolIC1cXL2YZxAj+MR2TlhWxqxCeexag kuGnsemPD3G+u2A3UGkAuu3CPnmTJ9PPXYZhj9N5MNCpBGE4X4a6VZeObOrUJuZeiZko HQcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=8pwmfFxXgu9Kha0KZaWYb5XC+8kVZfHH2ATkleQcQTY=; b=e3dnAgJyidFytZrC7WDxGFpgVTqPPZGz2P25o2q60Xrc0KB22TkAxSVrRg6GrBW8hZ 0zyvWLpair/RYu3DW2Yl59hMSpqEOw1NZpbDcgho9rsLBDBtOHKKW++9Rz+IDzn5r/zK UxGj1ZBd0bWKWH8h36Lu/MtV+N/dAy0+GKCQC3uDi+zp0d1w8xxppPFh0fRatgOs6gAt LFStIPrZ71vbG7vpUbxA6eJBJbQtTbsWzCkQfcZZlReb/P9f0DmWTQRnZGlw+nV33tk3 exZo0DLgXOBP0AVXNLB49Xp9UkDPcX0SDITd1j4DCos//nZMCzSrgY5iKRbsl3zDfAFl /Z/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kGRJ98G7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f13-20020a056a001acd00b004f7a0b47af0si3962000pfv.197.2022.03.16.22.28.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 22:28:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kGRJ98G7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 47EF6208336; Wed, 16 Mar 2022 21:29:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348083AbiCOVfs (ORCPT + 99 others); Tue, 15 Mar 2022 17:35:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237319AbiCOVfr (ORCPT ); Tue, 15 Mar 2022 17:35:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C3F7BF57; Tue, 15 Mar 2022 14:34:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 29681B810EE; Tue, 15 Mar 2022 21:34:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB6C4C340EE; Tue, 15 Mar 2022 21:34:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647380071; bh=8pwmfFxXgu9Kha0KZaWYb5XC+8kVZfHH2ATkleQcQTY=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=kGRJ98G7G3eTMa4RvJFbz/Ug9KZqoX9+/HnNFIQBHCGzm17ueens+ta8XGUWLgqKk n87XvbPMixk5WsO/cUOkjFr806yb2MWm+J2LyoJ0qpwKOyzXhZI1M8ItzScWaUCh8i TF3S3fcfRAS0uMkbnAq+VHXATqzCnrfMaoVpy5Xci3L+TMZ1MxUNN5ERE2Cy7brXBl bLtkmE3IFaz9QA/Pyuu19RHKeDzOx6k4yDJ6oYfXaiY3SFPmC+RIpPkVyqoszLwv4u JR0YIMIkoBXdoqQPIc+jfvn5ZmJKVGqwImSKINTJW4vYN9fLJY2LQElRsWl2mxCcG8 hdDJtvJtHL2Bw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20220313190419.2207-1-ansuelsmth@gmail.com> <20220313190419.2207-13-ansuelsmth@gmail.com> <169795c1-607e-ee60-7ac7-538ed888bedf@linaro.org> Subject: Re: [PATCH 12/16] clk: qcom: clk-krait: add 8064 errata workaround From: Stephen Boyd Cc: Rob Herring , Bjorn Andersson , Andy Gross , Michael Turquette , Peter De Schrijver , Prashant Gaikwad , Thierry Reding , Jonathan Hunter , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org To: Ansuel Smith , Dmitry Baryshkov Date: Tue, 15 Mar 2022 14:34:30 -0700 User-Agent: alot/0.10 Message-Id: <20220315213431.DB6C4C340EE@smtp.kernel.org> X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Ansuel Smith (2022-03-14 05:43:20) > On Mon, Mar 14, 2022 at 11:20:21AM +0300, Dmitry Baryshkov wrote: > > On 13/03/2022 22:04, Ansuel Smith wrote: > > > Add 8064 errata workaround where the sec_src clock gating needs to be > >=20 > > Could you please be more specific whether the errata applies only to the > > ipq8064 or to the apq8064 too? 8064 is not specific enough. > > >=20 > That's a good question... Problem is that we really don't know the > answer. This errata comes from qsdk on an old sourcecode. I assume this > is specific to ipq8064 and apq8064 have different mux configuration. >=20 I think it was some glitch that happened when the automatic clk gating was enabled during a switch. The automatic clk gating didn't know that software was running and switching the input so it killed the CPU and stopped the clk. That lead to hangs and super badness. I assume it was applicable to apq8064 as well because ipq8064 is basically apq8064 with the multimedia subsystem replaced by the networking subsystem. Also I wouldn't remember all these details because I worked on apq8064 but not so much on ipq8064 :)