From patchwork Thu Mar 16 09:16:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 70690 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp382097wrt; Thu, 16 Mar 2023 02:44:31 -0700 (PDT) X-Google-Smtp-Source: AK7set+uqycWcrOMynbUDV8O3Ej7o8466mGbDNzzJcx7X3Qjw3X4k9H6DRJSAZVFD9sw+XjqDdaF X-Received: by 2002:a05:6a20:8ec2:b0:d7:3c1a:6ce5 with SMTP id m2-20020a056a208ec200b000d73c1a6ce5mr170897pzk.47.1678959871177; Thu, 16 Mar 2023 02:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678959871; cv=none; d=google.com; s=arc-20160816; b=v28E7iDbfoj1adJkxFs8SxiroR1XJ7ks8LjQi5DaoMty+X4CKU8jQ9rpzK7AXM81Bs eFsQb9fu0ljF8CBmN7T5Jd3ai/AN2IwznwtIHoF4V0dixvGRxEs0R4ZYydIzkVUI043Q BZ0gg6iX8d60NLrnyS3QSdVt6Wl4f8+7Z5Kr13MjDP6OwXEwHEGUI7bgOpCHZLDe9jiF M3xoBgSALb00gGo69HvnnXlWzLj6r5u/P3xFhDkD3PqpBYocpnTP2+wJbDfbsiGgAjNN ake+maY8Xcv1dumJzJBoXebGNGkNBfRJQVF6AZO4ldSGj8Du8PC+uQZtbBpABacv6+nW xC5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=kOy8SLuy4135d2t0z1AKrkt7fkFI2XhaZewEK8cA4iI=; b=BG5Hk1ybcKwJ2Fy2LHruz3hXv1k6omUWL+Q8YKCTkWKv3fEzzHWgYDbwRekUyHHRBS wq1bchn91/p3SYKvrU1gcDimNR8c1deF2Xij49rvlygzxDjYIKLXqOYH1AkrOcJttyl2 WH01G72j3Z+NphU2ai99x0ImtgnVepDvwC4lgTDokPw3fsgOfd4DHky9+YmNFWtSI9IG rVehCEwstMVZHjUnwj6oagen4dJEo/8BYMz3NQI9QpTpRqVVWjW2jfYEgXvEfDKYYuD6 +EHQWjY/QXjWdi+Y2Xev6GYMdaKi8/USxjiEawbIMkY5NlmeMBEmcPmWQJtAzviFmJpd pLkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hN0jOpum; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h18-20020a056a00001200b005dd4ab3a2c3si7344078pfk.182.2023.03.16.02.44.18; Thu, 16 Mar 2023 02:44:31 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=hN0jOpum; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230338AbjCPJRn (ORCPT + 99 others); Thu, 16 Mar 2023 05:17:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230313AbjCPJRl (ORCPT ); Thu, 16 Mar 2023 05:17:41 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C8D9A0F3F; Thu, 16 Mar 2023 02:17:40 -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 45CD0B81EBA; Thu, 16 Mar 2023 09:17:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD2EBC433A7; Thu, 16 Mar 2023 09:17:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678958257; bh=zyT8xkfWDFX+ZVDBAje6rf/gFx+GN8afenbi9RxVCJg=; h=From:To:Cc:Subject:Date:From; b=hN0jOpum8PpGRyHdTUdc+1+87Vx5xvVICCz7Uio/1zS3c6/q/RdCKfFV5l7N1aB7y c3FqHIjEGwclFeqqOK9wpLznfhVZ4DHBzYdKdrcHWr8AMRb9avXYJdJXhPjyoYa2hR Bizqyjojb56/LKF6fJNOS+fgQIqoDJDd1Kaj3Ah7k+v6NMDzLH5itVERB8gvXBqaoN hTt7CQDXfXmbTsOEKRc5aP3ueE3vgbuK1/TnEeVsCByc1kcOwuL4arj6kMigx/ihhU r5hltqiiT7LaX/cSKsrNWqxmXsMhQbRRWsbwWo7DZW/cM/ajqdDPg9H5K0KwQLTFTf 86+De5IY5yvRw== From: Georgi Djakov To: gregkh@linuxfoundation.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, djakov@kernel.org Subject: [GIT PULL] interconnect fixes for 6.3-rc Date: Thu, 16 Mar 2023 11:16:55 +0200 Message-Id: <20230316091655.865358-1-djakov@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760517026011064475?= X-GMAIL-MSGID: =?utf-8?q?1760517026011064475?= Hello Greg, This pull request contains fixes for the current cycle. These are fixing a race condition and other reported issues. The details are in the signed tag. All patches has been in linux-next during the last few days (but in practice even for more than a week - i dropped one patch and some hashes changed). Please pull into char-misc-linus when possible. Thanks, Georgi The following changes since commit fe15c26ee26efa11741a7b632e9f23b01aca4cc6: Linux 6.3-rc1 (2023-03-05 14:52:03 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/djakov/icc.git tags/icc-6.3-rc3 for you to fetch changes up to 9db481c909dd6312ccfbdc7e343b50e41c727483: memory: tegra30-emc: fix interconnect registration race (2023-03-13 21:13:49 +0200) ---------------------------------------------------------------- interconnect fixes for v6.3-rc This contains a bunch of fixes with the highlight being fixes for a race condition that could sometimes occur during the interconnect provider driver registration. There are also fixes for memory overallocation and a memory leak. - interconnect: qcom: osm-l3: fix icc_onecell_data allocation - interconnect: qcom: sm8450: switch to qcom_icc_rpmh_* function - interconnect: qcom: sm8550: switch to qcom_icc_rpmh_* function - interconnect: qcom: qcm2290: Fix MASTER_SNOC_BIMC_NRT - interconnect: fix mem leak when freeing nodes - interconnect: fix icc_provider_del() error handling - interconnect: fix provider registration API - interconnect: imx: fix registration race - interconnect: qcom: osm-l3: fix registration race - interconnect: qcom: rpm: fix probe child-node error handling - interconnect: qcom: rpm: fix registration race - interconnect: qcom: rpmh: fix probe child-node error handling - interconnect: qcom: rpmh: fix registration race - interconnect: qcom: msm8974: fix registration race - interconnect: exynos: fix node leak in probe PM QoS error path - interconnect: exynos: fix registration race - interconnect: exynos: drop redundant link destroy - memory: tegra: fix interconnect registration race - memory: tegra124-emc: fix interconnect registration race - memory: tegra20-emc: fix interconnect registration race - memory: tegra30-emc: fix interconnect registration race Signed-off-by: Georgi Djakov ---------------------------------------------------------------- Dmitry Baryshkov (3): interconnect: qcom: osm-l3: fix icc_onecell_data allocation interconnect: qcom: sm8450: switch to qcom_icc_rpmh_* function interconnect: qcom: sm8550: switch to qcom_icc_rpmh_* function Johan Hovold (17): interconnect: fix mem leak when freeing nodes interconnect: fix icc_provider_del() error handling interconnect: fix provider registration API interconnect: imx: fix registration race interconnect: qcom: osm-l3: fix registration race interconnect: qcom: rpm: fix probe child-node error handling interconnect: qcom: rpm: fix registration race interconnect: qcom: rpmh: fix probe child-node error handling interconnect: qcom: rpmh: fix registration race interconnect: qcom: msm8974: fix registration race interconnect: exynos: fix node leak in probe PM QoS error path interconnect: exynos: fix registration race interconnect: exynos: drop redundant link destroy memory: tegra: fix interconnect registration race memory: tegra124-emc: fix interconnect registration race memory: tegra20-emc: fix interconnect registration race memory: tegra30-emc: fix interconnect registration race Konrad Dybcio (1): interconnect: qcom: qcm2290: Fix MASTER_SNOC_BIMC_NRT drivers/interconnect/core.c | 68 +++-- drivers/interconnect/imx/imx.c | 20 +- drivers/interconnect/qcom/icc-rpm.c | 29 ++- drivers/interconnect/qcom/icc-rpmh.c | 30 ++- drivers/interconnect/qcom/msm8974.c | 20 +- drivers/interconnect/qcom/osm-l3.c | 16 +- drivers/interconnect/qcom/qcm2290.c | 4 +- drivers/interconnect/qcom/sm8450.c | 98 +------ drivers/interconnect/qcom/sm8550.c | 99 +------- drivers/interconnect/samsung/exynos.c | 30 +-- drivers/memory/tegra/mc.c | 16 +- drivers/memory/tegra/tegra124-emc.c | 12 +- drivers/memory/tegra/tegra20-emc.c | 12 +- drivers/memory/tegra/tegra30-emc.c | 12 +- include/linux/interconnect-provider.h | 12 + 15 files changed, 158 insertions(+), 320 deletions(-)