From patchwork Tue Dec 6 00:34:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Cromie X-Patchwork-Id: 30048 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2553995wrr; Mon, 5 Dec 2022 16:42:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf4EtS900LrdZEiXr3FG0ctmkIvcftjyYPRRn/i1L4MeuakGham0p3NnbWw3hVaiKLsCN9+W X-Received: by 2002:a05:6402:4147:b0:461:b2b1:9702 with SMTP id x7-20020a056402414700b00461b2b19702mr15947200eda.274.1670287333666; Mon, 05 Dec 2022 16:42:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670287333; cv=none; d=google.com; s=arc-20160816; b=NpvZfLzXVZAuHXSOaTI+MyzrledRpv7wzYScyVnO85yN/ZWglNiPys8z53Lb0Q9pUk gjF/fyln/aei7c4BxTH6Q63/L8dMn8H1SPSXnTnR0792wow70amYZ5REJou6qp+h/Y17 0g69T8yr/ElKzgCeQWBox3HUUdvUHWT/yE+2ziqJdDvFjqrO7gST29S66zz82WaG9E8N EbZUJ85fPujtg8C9yCONuEWn5Hb2Od7h677ChdRFiN/NLMrYGEXMpCXjeikS/DKg2N2b vEufPjUsvsEu7DD6jTegtbZMCuhU6862OQcacehsS74Tu3BP+DDGXu5mcHA4y8UMju4s 41PA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QeSlyGC+4QjekIyFRyMcJltxNINQMnR283Y5rstfp1Y=; b=f0/MHwSnj43KVaMtPyE2hFptKOdeQTp0LKH4vIMYyy9Dt9dng4rRppx/RTw0joF9mQ 0dSczNX9m3MkMYo6Dc6n4MmEWnisZaFU6nYqtM0LlP3/xwamI2CLccrWVJejV9H60rzA YhZ5SxGJtRAbTOlS3xmzceoYHScqRdba2HpLO3SW2kkCwC7F39cGj7idfUnlggRG1VFc OdKhKuUMrzeTzlTxGLf97t499Myfbv5IE24AHHTOM1rmASSpEQeRu9USpCMbfuOMOXTh qRY5G8/v5Jr9qrdCRIDp8zfrlqRF95MFvGknAMk3Q9XrolGD6TiQZLVNtmAoJXgBhbgA 616A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=h0LKM+ko; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw8-20020a170906478800b007ad8bd5a3b2si14794056ejc.263.2022.12.05.16.41.50; Mon, 05 Dec 2022 16:42:13 -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=@gmail.com header.s=20210112 header.b=h0LKM+ko; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232748AbiLFAg3 (ORCPT + 99 others); Mon, 5 Dec 2022 19:36:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233084AbiLFAfq (ORCPT ); Mon, 5 Dec 2022 19:35:46 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2215F218B2 for ; Mon, 5 Dec 2022 16:35:17 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id e189so8776144iof.1 for ; Mon, 05 Dec 2022 16:35:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QeSlyGC+4QjekIyFRyMcJltxNINQMnR283Y5rstfp1Y=; b=h0LKM+koUxD63ixKVAQGoM915fvUhbF7qjLYPjNPraE7iyUC4PuTyXY69CvRpHBfkh MPaliefrvoVUMN2EmN0IAEK+2qd30mBjitC4tqGFecZrzEDqweA5+iVV7JJeh+el1mdO Yh7zXsaDZdT4H6MfVxtqSZrvopdzEAzDWQ+048m9rtr72OpC4xCCjNeJjOYMhwnTJmz2 2enlyFSGdg8QBLRnoTeSfC5ZefQGJ6HhJbJdI8xuGT+jExB3qq2MPyWNhtdQS3y9Cx96 6TaqVksxqER88wpsnUtXuvhDQFcypouO0c5LdTxeYDf0wO2ban1P93KJ94prI1G7Ndg5 466Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QeSlyGC+4QjekIyFRyMcJltxNINQMnR283Y5rstfp1Y=; b=XoDmU4LkRYqnjZwy8UInHHkgMIVZ6sBgdmaSolql9h2qrFb1d7FRRdma3dLP1PmWQ3 rP5rFXORa/013s4SRmW+4J42R/BdPCUwBN/ZGBeeky1aS/8MJo2Sz/6t4L9pl/8IgIdy eXqFV6tRGt2kkFs9uv+yQ/OiLKTuLNQCfqlISFq6ScxFG+xYFP6KCdtM/g/2R9c45QRS uDHqBYpTrpzMQ8mCtOyZJUKODt5Dvoo1OgJ1dG+ITbyvygvW1zJIBIa9Of6e0fZhGx8W gSL5gmJnpxS6n5WNZZpu1BI9Z2nRlILqEbGYGsUtCyV+XQClN7XZSn+VNzVWGEgQH8x6 /EyA== X-Gm-Message-State: ANoB5pkjXTkDq5KcenxxCjm4yNRgP2GiCSMj0j+G7wJRa6MeF3eLW2fQ R2c5gPVxywqjwqTAzyUfiIOLF67DWbkO3Q== X-Received: by 2002:a6b:7c09:0:b0:6bc:d42c:ce6 with SMTP id m9-20020a6b7c09000000b006bcd42c0ce6mr31063086iok.172.1670286916237; Mon, 05 Dec 2022 16:35:16 -0800 (PST) Received: from frodo.. (c-73-78-62-130.hsd1.co.comcast.net. [73.78.62.130]) by smtp.googlemail.com with ESMTPSA id x3-20020a056602160300b006bba42f7822sm6408213iow.52.2022.12.05.16.35.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Dec 2022 16:35:15 -0800 (PST) From: Jim Cromie To: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: jani.nikula@intel.com, ville.syrjala@linux.intel.com, daniel.vetter@ffwll.ch, seanpaul@chromium.org, robdclark@gmail.com, jbaron@akamai.com, gregkh@linuxfoundation.org, Jim Cromie Subject: [RFC PATCH 16/17] dyndbg: mess-w-dep-class Date: Mon, 5 Dec 2022 17:34:23 -0700 Message-Id: <20221206003424.592078-17-jim.cromie@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221206003424.592078-1-jim.cromie@gmail.com> References: <20221206003424.592078-1-jim.cromie@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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?1751423211078873436?= X-GMAIL-MSGID: =?utf-8?q?1751423211078873436?= for loadable drm, helpers, and drivers, dependent-load is failing to apply changes, needs more investigation. --- lib/dynamic_debug.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 46684aa7284d..3ef1c0a1f0cd 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -1248,14 +1248,14 @@ static void ddebug_find_kparam(struct ddebug_class_map *cm) static void ddebug_param_load_dependent_class(const struct ddebug_class_user *cli) { - unsigned long new_bits, old_bits = 0; + unsigned long *new_bits, old_bits = 0; - new_bits = *cli->map->dc_parm->bits; + new_bits = cli->map->dc_parm->bits; vpr_info("%s needs %s, 0x%lx\n", cli->user_mod_name, - cli->map->mod_name, new_bits); + cli->map->mod_name, *new_bits); - ddebug_apply_class_bitmap(cli->map->dc_parm, &new_bits, &old_bits, cli->user_mod_name); + ddebug_apply_class_bitmap(cli->map->dc_parm, new_bits, &old_bits, cli->user_mod_name); } static void ddebug_attach_module_classes(struct ddebug_table *dt, struct _ddebug_info *di)