Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp274467rwl; Wed, 4 Jan 2023 19:13:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXvm2baYjMcizmXxfiJXJKPzklD5uxVKitrXQGiT6EJV9lfK2Ca2l7ZSxLU0OoL3XRTgMqYZ X-Received: by 2002:a05:6a21:1506:b0:a4:255b:f3b8 with SMTP id nq6-20020a056a21150600b000a4255bf3b8mr62936337pzb.45.1672888390281; Wed, 04 Jan 2023 19:13:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672888390; cv=none; d=google.com; s=arc-20160816; b=dh2buhwpUR6ozsqie+ZxysUlu80h5Dq4JDGmm3mBaeZQRxRqBljzOzkio9+gY81cdS 2q6eECmux7sZDuuMT1JAyx8VPJ1oWW/SJcxX4NE0MMEGwiHbp46Vsa4svlhyjh85Q1G6 wvXaOF+rw1A0Lge3hBliI4ZdYEJec+84tqmBKMATkjcPNrw00oXFTr0oCOpRLL/7FJP8 UebFMi9Yejaq7FjgzmiHYxeE45Gkgna13+AJQ0FikErXhp5i19+j4AgnxvH7oGdqwnRj rdGzXKLfDPb0DNg4xvQvTOt9QH3ObTK0/O/aEFXrwndIpgKnSVzwbZP72bAVzqkhf48r cOiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=wXPv40UKiN0pdjRRG3IPp8PXZI0C6Sv6kiLqHzLCQIs=; b=rx9h/l3YLShBvYIU72RMotcC2joQ27e9qHS+6vd3g7dWbpbaft3ZmEjcmbUu1h6R5D pWYpW8mSjZHbopcxM/pLsXv7myevyWCwT/ub8K05St8duPyDWcTCboMQdJf2A1ORZAor qMoHRJ8N+cETIP3eHlHrh/JArV0umiAezbXQBerVOvM1Uobz3gVmfjGBRKxvl9adkCgj gyAEuZ/iVplpnA5rnXWquK82z5EnXt/MQiyzQE/+vEh3Y4n8SkWaoja1PpRsbCjva8Ol iRKYXRoPhg9BdaZRQ/dREMFkQByov4aX6u1i8LEOpO1hZf/DRCS4bYXcYxULVoQOYe1n fGjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Tfo7xSTM; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u62-20020a638541000000b00479285e3c95si36444264pgd.270.2023.01.04.19.13.03; Wed, 04 Jan 2023 19:13:10 -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; dkim=pass header.i=@chromium.org header.s=google header.b=Tfo7xSTM; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230081AbjAEDBI (ORCPT + 55 others); Wed, 4 Jan 2023 22:01:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbjAEDAe (ORCPT ); Wed, 4 Jan 2023 22:00:34 -0500 Received: from mail-vk1-xa29.google.com (mail-vk1-xa29.google.com [IPv6:2607:f8b0:4864:20::a29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A7EE48815 for ; Wed, 4 Jan 2023 19:00:33 -0800 (PST) Received: by mail-vk1-xa29.google.com with SMTP id n205so10621116vkf.13 for ; Wed, 04 Jan 2023 19:00:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wXPv40UKiN0pdjRRG3IPp8PXZI0C6Sv6kiLqHzLCQIs=; b=Tfo7xSTMp3ZHBuKhEdl6YQmRWSu9evEhRA9jVD+XEmZAmX3OhILMv6/tagqg5JrWyJ O27AQX6qVsvvx/aztU+FHrYmR+DDWnZD4lWiXg21skl/w2F3cMa1s5PhiEFOum8ACThm bpho+D4ObOmG3/lykf3rbUDD+0e+0muT1Zxpc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wXPv40UKiN0pdjRRG3IPp8PXZI0C6Sv6kiLqHzLCQIs=; b=yUPZs5IIO1VdXrGaZOJjfMn99ja1vgPKR6CYTxsDOcmQuzWvwuEjDp6f4QX2T7RzXN kzo11OLtTkVwX8LGFcUCfacLmq375vsQxKH+ApcLYzfxJxn6OunkSKV2UtjkCaU36aeq MXd5H1CZknLANfo9GnR2Wq5S3K+iO6s2EB39IrQoGsz2KXAiPUWdBGtRQKhGe1XbJT03 +kwYewz41RuLH9tSxxuO1S6rgdscLw0YDS6MTSxQ1PzrI1UxFizqYS+VJvBox8WLJzAP x2uEM8I1mNgCU+Rx7a7b/l8NyutkM7KyR0SE2S5e38Ezv8bEjrr+e3yXh8AABUkj6j3F KUUg== X-Gm-Message-State: AFqh2krmorUM8eilIMOLl+5PAa4jONfooYFhxJqD2+ZZ6yvZvaVRbfQx pxA5MgHRbjJZ6NCeMm8vmEB8BYJEYxKBjS0BQ5sJrw== X-Received: by 2002:a1f:df84:0:b0:3d5:9e3a:538 with SMTP id w126-20020a1fdf84000000b003d59e3a0538mr2154545vkg.22.1672887632729; Wed, 04 Jan 2023 19:00:32 -0800 (PST) MIME-Version: 1.0 References: <20230104083110.736377-1-wenst@chromium.org> <20230104222213.GB2112402@p14s> In-Reply-To: <20230104222213.GB2112402@p14s> From: Chen-Yu Tsai Date: Thu, 5 Jan 2023 11:00:21 +0800 Message-ID: Subject: Re: [PATCH] remoteproc/mtk_scp: Move clk ops outside send_lock To: Mathieu Poirier Cc: Bjorn Andersson , Matthias Brugger , linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Tinghan Shen , Tzung-Bi Shih , AngeloGioacchino Del Regno , Allen-KH Cheng Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 On Thu, Jan 5, 2023 at 6:22 AM Mathieu Poirier wrote: > > On Wed, Jan 04, 2023 at 04:31:10PM +0800, Chen-Yu Tsai wrote: > > Clocks are properly reference counted and do not need to be inside the > > lock range. > > > > Right now this triggers a false-positive lockdep warning on MT8192 based > > Chromebooks, through a combination of mtk-scp that has a cros-ec-rpmsg > > sub-device, the (actual) cros-ec I2C adapter registration, I2C client > > (not on cros-ec) probe doing i2c transfers and enabling clocks. > > > > This is a false positive because the cros-ec-rpmsg under mtk-scp does > > not have an I2C adapter, and also each I2C adapter and cros-ec instance > > have their own mutex. > > > > Move the clk operations outside of the send_lock range. > > Thanks for providing such a clear explanation - it makes my job a lot easier. > > > > > Fixes: ("63c13d61eafe remoteproc/mediatek: add SCP support for mt8183") > > This is the wrong format for a "Fixes:" tag. Please see > Documentation/process/submitting-patches.rst for details. > > > Signed-off-by: Chen-Yu Tsai > > I have fixed the above and applied this patch. Thanks, and sorry about the brain fart on my end. ChenYu