Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13009310rwl; Wed, 4 Jan 2023 02:06:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXtpbSN9SZGPh4nwPTBPDGjW74tlOfOo7dJbmUesZcNrMj8iDhj5xfWG50I61bEk0Ox6cfUr X-Received: by 2002:a17:906:36c5:b0:829:594c:8ec8 with SMTP id b5-20020a17090636c500b00829594c8ec8mr36147961ejc.29.1672826779368; Wed, 04 Jan 2023 02:06:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672826779; cv=none; d=google.com; s=arc-20160816; b=U+2TX+NfY4XyeWm4j0NsymVDVrDuuLmhEKaYfzHAtONHrUML1ostJA7WwSkCTzWkxD uYjUmUaZBHCKbtPt5SYdgjqhrx8eGKrfIB6o8nGHWLv0F03TckukQjFYgwhixKjIqu6p yWxvKCtAjmbQWUmxIvDCfP9X0aiW+Tp+sfTbGkFrQNGL6tnT7TEGL/IdsPSIAqcdJHzE XqTdZBkAfYt4hmE2oBSTmtmH2O8yQnC3uMltwOdxje420KRPfx/5usdDfH+QZ6X8xf2v +somzuA4O/4CxQq9CPavbgS+oXpZLYFyF4Ug6lJmIq7hSVwUD1CjuBE89HlYoy13VVRN XXEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=gvdXFeSqP8Cp9xHxchVJOG2Iypjd6Db8MB18k4L6tIo=; b=ZsXwHT+q3gep+dzVaYW1tBatwUjfGscOSgU185Si5IEvfugGAkMkDk39UWDwJNlytp QxNB0JSAa2pS4ALGXBcUxpb4SCHXj2MMooO6f9SfRzFsHNMTSXuJiQX/wyWjhQqMtMuA xcXIEB6Ml6EEwzEHmt1rFuiXVI9FWX0D3/nEsSGJakninYpJIXoTHiArSXia3BDt56P5 d5A/IUEuXSEfPplPVtkDV1i/mFqQaJWcCzAaJLZoJy/uQobsnTjjx6rMHYEAUTi5hnba 0xGUrKmOf3dmUK6cI8UKRtzboDmJJdcHT+ZWMaoMZifSgaHdtYZfDDO0PgNnygxchoqE euCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=k2QGO6wH; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt30-20020a1709072d9e00b007c118b2d91dsi33165021ejc.248.2023.01.04.02.06.04; Wed, 04 Jan 2023 02:06:19 -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=@collabora.com header.s=mail header.b=k2QGO6wH; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234002AbjADJYL (ORCPT + 57 others); Wed, 4 Jan 2023 04:24:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238937AbjADJYA (ORCPT ); Wed, 4 Jan 2023 04:24:00 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF13CB61; Wed, 4 Jan 2023 01:23:44 -0800 (PST) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 99F646602D08; Wed, 4 Jan 2023 09:23:42 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1672824223; bh=KhOX2w723U9MDxXjgpSqxzBYpJpo6f2ZaBSs3BkVG0A=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=k2QGO6wH6NDcH0KYP2ItX+v1+vvNEfC7ywZlnWkRFHC9nKNt6io3pHA+pcBkrrg1d J6siWl7SqVO5m7gCO5iWCTZDfyJi52OP0R0GKYNp4Kc8aFqddl7cizD6EAyeyaP7vq jWFsnABHt7ejCo3DE+55FHcIgqV7Q1mTFGy9owS6Wwffd1K/d/l80JGK2vwmkpjZVz YR1W/zxqwLR0xQJW8Xs08DILsvT9wUW5p845el0HvwSc7Dxn5JpaklT2TKaz+YLhc7 HYEt398f8a7z1shQzg4r9/NOgX2EVsFqRq3N8h2hGjEkILBE+dj7+SeYel+/7vj+N8 oaCPoHYXooDvA== Message-ID: Date: Wed, 4 Jan 2023 10:23:39 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH] remoteproc/mtk_scp: Move clk ops outside send_lock To: Chen-Yu Tsai , Bjorn Andersson , Mathieu Poirier , Matthias Brugger Cc: 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 , Allen-KH Cheng References: <20230104083110.736377-1-wenst@chromium.org> Content-Language: en-US From: AngeloGioacchino Del Regno In-Reply-To: <20230104083110.736377-1-wenst@chromium.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 Il 04/01/23 09:31, Chen-Yu Tsai ha scritto: > 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. > > Fixes: ("63c13d61eafe remoteproc/mediatek: add SCP support for mt8183") > Signed-off-by: Chen-Yu Tsai Nice catch. Reviewed-by: AngeloGioacchino Del Regno