From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9A020C43334 for ; Fri, 17 Jun 2022 16:41:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=aK9Am0RgsTkQnnz5ZfhnvXYajgeaWfIen1DYg2vrVo8=; b=ydEzgABCv6QStm ktOz42hh7uIk8Lmut0IleGGLDBUnMjB8DC8CGy912ZFGDJQUz2FFSA0a2kKzBkJU14oVNpDyf9A+5 Wg9NriStTFHHFLuKly2y8qOAMX8PM7LUn2DohiJjQJN6ZqiyB7EpTY1kCbESs58ObhwbGl3uJx5+r WourdQie9ReNuJIcxPy2oKa6RVzybITnbPnvIPxkcP6o4ZbN9vXIaBr54vny1r4qbcQYVZAjAttc/ IFp25iZkcT/D3w/P/ZOw29pMsGHi/11+fJxkrZ+moEX0d+0bh8rV6k2cmLcwvlDg6wJBaJJ8Q+ago wYpb4XprYG0Y3xfllnVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o2F1A-008GBO-SA; Fri, 17 Jun 2022 16:40:21 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o2F17-008G89-6Z for linux-arm-kernel@lists.infradead.org; Fri, 17 Jun 2022 16:40:18 +0000 Received: by mail-wm1-x333.google.com with SMTP id i17-20020a7bc951000000b0039c4760ec3fso4818458wml.0 for ; Fri, 17 Jun 2022 09:40:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=LHg7E/iBGiqAaEmw34B9PsRPD1EaMRq8NMDo+gRB53Q=; b=hWyur7dJ0vbD723woTSIbB0wCO6C9CMBStxjNfnGuFM2VAQ0kPLUliT+6rgCZi0NoS LB4k+NdVoGS78db9ypNpMerCl4BMQRXnogTt3Jml7zUWoA/csKMmq9gBXJcIlZ33ooK/ wdv8T34GfV251liXeHPKStwQztl1NwYGMXXp34u71AIcgj6zqXtLLQBpmNls34Kre/8S KKiVsyxgh71bAqNdPHDhq1VZtWhOYY0wbwVGVFJy2w3e/y7wDcV7boaGVLruSbjEbl3Q YDlowvlu0eXtoUcf8FsC/A3Nobi9olB0Qnim0jRGFo0q95Bh4M950DuAxkGDKUvpONlL zvPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=LHg7E/iBGiqAaEmw34B9PsRPD1EaMRq8NMDo+gRB53Q=; b=Y4la3/58EG6WFDBL5sh/f9f9SmG2OGiocGhr+YPAhPGXmlVPp4M+lH00wPZyI/rkPd NFAAf0dPWwymPLz2z+jjpNKgwnKb9sn/I9c+1kACC1BTUrSTAWxfW8PDoLJmKuetyzD4 1NKabcjm+C47Je5B4uPj/pPbqIzatD4j9NfxV2W9pYzbaxLf6pScIEE0ifPyl1t8xYFl SXI3kNFVk9fbR2dqg0c06seWGwSHbvJqufuHZ0sDYmttzQdOHIlKzWSudrihumEJT0Ik WhgeLADigHQ4IyIzrL7t0wxYvM3bjEh3/4KV0fRavvLM9ZPXFym1WLHn7E8CdoZUW5DU BIxw== X-Gm-Message-State: AOAM531uYVBq1t3Y6s5/AnlnWH+9/hrmnzXBSJDT2fJ2idFRkPzlBKTA PMuHNFvR2uy7ifkiy9N3SvSl0mHSRxePhA== X-Google-Smtp-Source: ABdhPJyTk6m6RoyTcKeNoMI+2e/CnfZ0xOCUV6cC3vxCcZVIDBR0Wi9HOORystZrRhmB8JknJyM9mw== X-Received: by 2002:a05:600c:2847:b0:39c:4f07:e31f with SMTP id r7-20020a05600c284700b0039c4f07e31fmr22062930wmb.53.1655484011502; Fri, 17 Jun 2022 09:40:11 -0700 (PDT) Received: from linaro.org ([2a00:23c5:6809:2201:546d:7d59:1703:bf96]) by smtp.gmail.com with ESMTPSA id o18-20020a05600c511200b0039c55bc2c97sm9999761wms.16.2022.06.17.09.40.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 09:40:11 -0700 (PDT) From: Mike Leach To: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org Cc: mathieu.poirier@linaro.org, suzuki.poulose@arm.com, leo.yan@linaro.org, Mike Leach Subject: [PATCH v3 0/2] Fix lockdep issues seen in CoreSight configfs interface Date: Fri, 17 Jun 2022 17:40:06 +0100 Message-Id: <20220617164008.7789-1-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220617_094017_323201_AA997023 X-CRM114-Status: UNSURE ( 9.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Issues with lockdep possible deadlock scenarios have been reported when using the coresight configfs interface handling complex configuration, when unloading modules. These are due to holding the main configuration mutex during configfs register, but taking it later when accessing configfs files. The patches improve the clean up of configurations and update load and unload of configurations and initialisation of configfs to fix the locking mechanisms. Applies to coresight/next (5.19-rc2) Tested on DB410c (with patch [0] also applied to fix separate console boot issue). Fixes: eb2ec49606c2 ("coresight: syscfg: Update load API for config loadable modules") Reported-by: Suzuki Poulose Signed-off-by: Mike Leach [0] https://lkml.kernel.org/r/20220614124618.2830569-1-suzuki.poulose@arm.com Changes since v2: Added additional work to fix load and unload ops after issue recurred due to file access. Mike Leach (2): coresight: configfs: Fix unload of configurations on module exit coresight: syscfg: Update load and unload operations .../hwtracing/coresight/coresight-config.h | 2 + .../hwtracing/coresight/coresight-syscfg.c | 297 +++++++++++++++--- .../hwtracing/coresight/coresight-syscfg.h | 13 + 3 files changed, 263 insertions(+), 49 deletions(-) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel