Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp296625lqp; Wed, 12 Jun 2024 01:39:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8l2WYH/UIEaRdjRWegyk11klNhdzzXmTtb7H4t1bzL+AUFWscDfqNe7dLV2TdUE9CRVvaujIMX03bPxBcY5zCoNRwamuJRQTp+hY7Ew== X-Google-Smtp-Source: AGHT+IG2CD845w0/ECgvHeK5u1AvmSGZU+EX4oSwiY3VH8kJxqe8Q6KRUej5dMiDyWRy0QjwGKFS X-Received: by 2002:a50:d785:0:b0:57c:6d89:eaef with SMTP id 4fb4d7f45d1cf-57caaabd385mr948657a12.18.1718181555457; Wed, 12 Jun 2024 01:39:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718181555; cv=pass; d=google.com; s=arc-20160816; b=LCG+nwhnfl4e0xKMvp7BKwvYxWLUosUTiplBren0Tyz9BCZHogKcpuYQf7gOk9JQ7e /TVmSX/+U4vg8pTnbpZB9BvYYJNqjWCHOH4jaNMeLdhxtX1WSicClmnT8SgrocoM1wt6 /0Pzbx4BIsCfZWxMeH8J2a4CdPzdZEm+Rbt9n86+rOdDFflVefOR8vgvXd1VjNyDmPzt Kjkba8bm+WioXNie37sXB8mF+cdo3evOn7gALnuUY9l0wD1dh0n0lrvj/MY9wp7/IYgw a3OMSW8O1vAJwYqDbM4JAg//2jon6kG0R07SDL56XngHR/t812hS43/65g8zR0i5h2L6 IMEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-filter; bh=5H66dcRSlGQ/cNXt0pE1QJxw6xTn3Ooqy8BWZdp8tQI=; fh=Eot8s/y45xght4Qxvs45levy48t11W8ioQPYaA3N6V8=; b=tm0Y958g9gMEMCuFuUsnH+72cXf7AxQXGmTJf+3sN+q18to4rihAlu3Z+D38Gy0vSs d4IOAnVGg689LBsS2NDxEaWx37/rrqz1IJsgcpE9HWPzrRNZYubXJsRlZAjdHAeiLMXB VxsK842tjll5OYLIs7vn7svnTyWZvW4r2ZM1EoY4T0lvlpBkqznpk05AF59NMArXMoZf ojY6GgLpv+ntWK8W04T97xxvPuPHEDWckiOPI/pD1K20kyfXvcedEJXsB3MJoOkLF5FI xsFtIYqIg4vzo/TwHzGJ5L/OVl0SfeACtQl4nh5yE1lqpdQPDMkpslfBswUBic8442SC 82+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ispras.ru header.s=default header.b=m5fbtJ2R; arc=pass (i=1 spf=pass spfdomain=ispras.ru dkim=pass dkdomain=ispras.ru dmarc=pass fromdomain=ispras.ru); spf=pass (google.com: domain of linux-kernel+bounces-211185-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ispras.ru Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c70ac42a2si4342205a12.488.2024.06.12.01.39.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 01:39:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211185-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ispras.ru header.s=default header.b=m5fbtJ2R; arc=pass (i=1 spf=pass spfdomain=ispras.ru dkim=pass dkdomain=ispras.ru dmarc=pass fromdomain=ispras.ru); spf=pass (google.com: domain of linux-kernel+bounces-211185-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ispras.ru Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 16F1C1F27CC2 for ; Wed, 12 Jun 2024 08:32:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A25E16C875; Wed, 12 Jun 2024 08:32:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ispras.ru header.i=@ispras.ru header.b="m5fbtJ2R" Received: from mail.ispras.ru (mail.ispras.ru [83.149.199.84]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D9FB45948; Wed, 12 Jun 2024 08:32:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=83.149.199.84 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718181153; cv=none; b=snvVz/cPkWpF/yciQht7Vz1Ptf8VZbr7W8CkAI/DNNZth5psEvA0Vem72uBiE+aQvyP7wOYMUwhDFMLyMiYScoErVplcKfDN0vxvIpH/UzBxuULpGakTA14r00JOxSJqq0QYGx88Z5h6/zLux4iNUA/tWoSKiKnh+6X9vmf2fPU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718181153; c=relaxed/simple; bh=hlkt8qUqaJ32mNpH119vJ7oD4xZ22Clwrh0BnKbUAq0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Buh288rkVvcpaNcCDFpWHztt8usvof/OIUF+embiSKf762RFZsGx/H7KiI9Ww1s2Kna1SiJ2Kplsap6JimZyE7mXiEKUitC+LCVlaEifysdfOwbzNQ1tXbqq2KHiPkNA1xxajt7uaKvOX/xQFv7pQtg6vG4sHJN82fXzevGjTSE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ispras.ru; spf=pass smtp.mailfrom=ispras.ru; dkim=pass (1024-bit key) header.d=ispras.ru header.i=@ispras.ru header.b=m5fbtJ2R; arc=none smtp.client-ip=83.149.199.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ispras.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ispras.ru Received: from fedor-21d0 (unknown [5.228.117.145]) by mail.ispras.ru (Postfix) with ESMTPSA id A64FC40762DE; Wed, 12 Jun 2024 08:32:21 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.ispras.ru A64FC40762DE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ispras.ru; s=default; t=1718181141; bh=5H66dcRSlGQ/cNXt0pE1QJxw6xTn3Ooqy8BWZdp8tQI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m5fbtJ2RtoLg6H+F7g1S3OXAApqdz8bJU42yri4D5CjdfHlSyceSwPHUl/E8c3Zdp vKWQqGzCDLFyacJSTbG/L3iTS6KVbgkR53M45ooLBcAPmkqGOJFOLTvbaKm/lZd2Yp i+U7mOL0IGYZkvFJsMwwPGbbYL6jJgLWilJ0wrIU= Date: Wed, 12 Jun 2024 11:32:17 +0300 From: Fedor Pchelkin To: Mathieu Poirier Cc: Aleksandr Mishin , imx@lists.linux.dev, lvc-project@linuxtesting.org, Shawn Guo , Bjorn Andersson , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Oleksij Rempel , Pengutronix Kernel Team , Fabio Estevam , Sascha Hauer , linux-arm-kernel@lists.infradead.org, Peng Fan Subject: Re: [lvc-project] [PATCH] remoteproc: imx_rproc: Adjust phandle parsing issue while remapping optional addresses in imx_rproc_addr_init() Message-ID: <20240612-d3218ce9809ada564606999e-pchelkin@ispras.ru> References: <20240606075204.12354-1-amishin@t-argos.ru> <20240610-4fb504648421659114538a50-pchelkin@ispras.ru> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Tue, 11. Jun 10:45, Mathieu Poirier wrote: > On Mon, Jun 10, 2024 at 08:36:19PM +0300, Fedor Pchelkin wrote: > > Btw, there is a "rsc-table" node->name check in the the end of the loop > > body. It was added recently with commit 5e4c1243071d ("remoteproc: > > imx_rproc: support remote cores booted before Linux Kernel"). Seems to me > > it forgot that of_node_put() is called way before that. > > > > I agree. > > > Also commit 61afafe8b938 ("remoteproc: imx_rproc: Fix refcount leak in > > imx_rproc_addr_init") was dealing with the last of_node_put() call here > > but it's still not in the right place I'd say. > > > > You mean becaue of node->name being used after the last of_node_put() or is Yes, this one. Only that node->name is used after the last of_node_put(). > there something else?