Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7559264rwb; Tue, 15 Nov 2022 14:18:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf76nk3Lz5CXK9u7OHk8LQlUKA0DaetYOvsMwEqgc2wicuUHUVc8ktW69Wz5go5eyWe+LEku X-Received: by 2002:a05:6a00:cd0:b0:56c:f412:6e33 with SMTP id b16-20020a056a000cd000b0056cf4126e33mr20661337pfv.9.1668550730116; Tue, 15 Nov 2022 14:18:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668550730; cv=none; d=google.com; s=arc-20160816; b=vHEXq5+dvpD+wDvaey/GrsZakdnRNuBcHzOikxwN7S59nzG3/XQUMb12N1ImYaJe9Y umjd5DCDZJOyBocrFNaKb3xWyNo5N99s7IuXtMAXbvM/g+OHLjLmJvHexh+9+pQwe+Qo 002eXTzG3CyDXW70wqwp6DODxANK8S2xR92Aomc8dQaUHsw3VtA4q1lJ/Lu6uGnndAKT 25K+odl77/AnxYx8k/USMVg8fqKY2A1BsJOyngd6LHXQEX/PY9AIv0f6bJYxgbzoXRJG 6DiN78lh3u+4gg7vxqM0w/MNtLQYiPWLlMOvaJfK35JYWSleWWo6V1bkxk935+290FqR HZEA== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=VZfbthOt6ogtcfKOlyCSXiOBX7o6soM3QoFGzgF5+bA=; b=0UvMbhE2XpkkXMqM9xrPyka1fvlU7LxIfl9BD5k6M9CdKNmh+kDXqdiS6qb1dWPhWX p2VLZhOmSaLrwb0quK+onWHAgxCiRVTbeBqblQGruVjZ7rrK9Eek3kC1ByNnoWmCpEto +2adBKhnHUpAa5Iw+CfSckOIb0kNIg3KDUvomkRAxS/xpdFELl8KV7SMzQOjIRcy9I1x edvMco4JoFGZ8/ci/vhgoTDNr0gJxSNLu5EUKu4DcFy+OkcXcPLjAn4fZdGi0cSOkB8e EfE1AkGJbX79k3jI84GNJQfcPbDKF1fbTmw35xq/U5cdopRA7iyqImWn3C8ixmS83g7c gxwg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t70-20020a638149000000b00476d86564c2si1341587pgd.309.2022.11.15.14.18.15; Tue, 15 Nov 2022 14:18:50 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232102AbiKOWKa (ORCPT + 90 others); Tue, 15 Nov 2022 17:10:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230287AbiKOWK2 (ORCPT ); Tue, 15 Nov 2022 17:10:28 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DFE8E2FC37; Tue, 15 Nov 2022 14:10:26 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EE50F13D5; Tue, 15 Nov 2022 14:10:32 -0800 (PST) Received: from [10.57.6.31] (unknown [10.57.6.31]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C90D53F73B; Tue, 15 Nov 2022 14:10:24 -0800 (PST) Message-ID: <20ab3aba-0f19-a5a5-1fe6-16f579879c28@arm.com> Date: Tue, 15 Nov 2022 23:10:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH] cacheinfo: Decrement refcount in cache_setup_of_node() Content-Language: en-US To: Marek Szyprowski , Geert Uytterhoeven Cc: linux-kernel@vger.kernel.org, Rob.Herring@arm.com, sudeep.holla@arm.com, Greg Kroah-Hartman , "Rafael J. Wysocki" , Linux-Renesas References: <20221026185954.991547-1-pierre.gondois@arm.com> <254cba04-0151-f7f1-1986-a8b763e940d1@samsung.com> From: Pierre Gondois In-Reply-To: <254cba04-0151-f7f1-1986-a8b763e940d1@samsung.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 11/15/22 20:30, Marek Szyprowski wrote: > Hi Geert, > > On 15.11.2022 14:06, Geert Uytterhoeven wrote: >> On Wed, Oct 26, 2022 at 9:03 PM Pierre Gondois wrote: >>> Refcounts to DT nodes are only incremented in the function >>> and never decremented. Decrease the refcounts when necessary. >>> >>> Signed-off-by: Pierre Gondois >> Thanks for your patch, which is now commit 3da72e18371c41a6 >> ("cacheinfo: Decrement refcount in cache_setup_of_node()") in >> driver-core-next. >> >> I have bisected a refcount underflow during s2ram to this commit: > > Similar issue can be reproduced with qemu/arm64 'virt' machine during boot: > Hello Geert, Marek, Thanks for reporting the issue. The patch at: https://lore.kernel.org/all/20221115220520.2076189-1-pierre.gondois@arm.com/ should fix it, Regards, Pierre