Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp163745rwo; Tue, 1 Aug 2023 14:54:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlH/luhdN1Df9n7dZqzbvm3xpEvovVTlWU4w9PYdZ0L/35OGLESz8jxJpWqJuFXOt3tXp7iG X-Received: by 2002:a05:6a20:42a0:b0:13d:7f7b:1926 with SMTP id o32-20020a056a2042a000b0013d7f7b1926mr10259846pzj.11.1690926877241; Tue, 01 Aug 2023 14:54:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690926877; cv=none; d=google.com; s=arc-20160816; b=mMF+quyAMPuC9dZ4auVr7X0ew0r6jTYVFe/yAf/mSaAUiWeQaf5NAjcGFfGsLZQv/x WqClr9qTlC3NwQTEozaY8UsJp2X6w5bkE3tguefEFPmKqPCgd/fId5FJ9HotmoBRSbCD a/ahSc1yf4mmkO22V+8aisW6OM08STuxT506A42hASWJ/Lsa0zG17hmYBPtIHRbVJYGP GhFiW9CVO5QVDDzPut5e/7SLQ0a7BiYEOkpiKNasxNv4OLK5a10+F14QbascWfXm+VxM B8DTNPifK6tPxijuwS/JNgX83hb+StC+/kFs5QH7ihnVLQaGc/Ejrnta8eFHdLNYeoOs g/Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=TnAeTLKx5LCzORhIzlxu/92hab/fsaRl+lIfA48vdTY=; fh=bJ3FfuXKw9vHX00IunkRlDyCqjsxn4zRETGMahfQl9Q=; b=iDBtaenvVmbBHgvyT0n34gmjgRu5nRH8bh4ME4E8+7tNt4gs8115OgZqVtdRzeZGjp e0kWtKWGNc5oUdD58WL3a97o+JeNUmRUO5guBW4vQHeEB+yiQssitqB3EvAc9wOliUBt anRYX5zNPcc3io4z0fzDc8KBZ+KZM6ikB4+1hF4RAp2kGWhinGn1cdekO9w9jiBxcoWN ijzUdXQTqd7NbHdmUseLva+D3qaALNettoHk7y+o6qVQ6B0cf17sHnCBe6oqcoiWdztg oyN5bVG+dZr1zF2QGYmw/amCT2DuZQxsHA2FSYZSO1WeAxdyWRDVwcdi7S8QKHo3fJha g+2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EvKCyIEi; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s76-20020a63774f000000b0056419b1dc2dsi7726274pgc.880.2023.08.01.14.54.20; Tue, 01 Aug 2023 14:54:37 -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=@intel.com header.s=Intel header.b=EvKCyIEi; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231939AbjHAUNj (ORCPT + 99 others); Tue, 1 Aug 2023 16:13:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231539AbjHAUNb (ORCPT ); Tue, 1 Aug 2023 16:13:31 -0400 Received: from mgamail.intel.com (unknown [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF9292683; Tue, 1 Aug 2023 13:13:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690920810; x=1722456810; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=9ogJFFw+u0bGujZNfOGprB9BbrBgtdwyx6Y9vnk3474=; b=EvKCyIEioHeAvaozTnqbhDS4/IGAe7c5glQFNnoBcXDoLAzZR6hB5RZn jYZCnoJWevYekPksH7ovpcOorr9WZOd9z/NfLaFGexnNGhRYameWGp7fX aWk/D2Ex00L5oQn7AouWaYzltNchdeEHgIuT/VPp/nXL0f6flk61AcHlB 2q+yc1as4IEr/uoHnQv34F7USXRGHCYdi0yPAZGgf6hISNOAne01EnPx3 d5ynncUWFO0wAP3s9EgPmVIg1Obm6Wvl4twKYZiHFxUeICnyAQGRMTqGu o2aAhwzD9wxxNh9Y6qHqkquKXx5TodnBhlgz/mu/+63iF50hAOvzG8HK4 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10789"; a="369403670" X-IronPort-AV: E=Sophos;i="6.01,248,1684825200"; d="scan'208";a="369403670" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2023 13:13:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10789"; a="794320090" X-IronPort-AV: E=Sophos;i="6.01,248,1684825200"; d="scan'208";a="794320090" Received: from iweiny-mobl.amr.corp.intel.com (HELO localhost) ([10.212.100.136]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2023 13:13:29 -0700 From: Ira Weiny Date: Tue, 01 Aug 2023 13:13:29 -0700 Subject: [PATCH v2 2/2] cxl/mbox: Add handle to event processing debug MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230731-cxl-fix-clear-event-debug-print-v2-2-9bdd08d386e9@intel.com> References: <20230731-cxl-fix-clear-event-debug-print-v2-0-9bdd08d386e9@intel.com> In-Reply-To: <20230731-cxl-fix-clear-event-debug-print-v2-0-9bdd08d386e9@intel.com> To: Davidlohr Bueso , Jonathan Cameron , Dave Jiang , Alison Schofield , Vishal Verma , Dan Williams Cc: linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, Ira Weiny X-Mailer: b4 0.13-dev-c6835 X-Developer-Signature: v=1; a=ed25519-sha256; t=1690920808; l=949; i=ira.weiny@intel.com; s=20221211; h=from:subject:message-id; bh=9ogJFFw+u0bGujZNfOGprB9BbrBgtdwyx6Y9vnk3474=; b=8ppxERDqIvSOk6UFMtxM71svRp1lrx+sFqufgdT6tXtEsqFh8YvGgb6pNPjACkRt4z8Aass2o 19Ilt9royHOAxnENHp4RmlQKM5dvB/53WEpk/eIdycczv+BhfMuEh88 X-Developer-Key: i=ira.weiny@intel.com; a=ed25519; pk=noldbkG+Wp1qXRrrkfY1QJpDf7QsOEthbOT7vm0PqsE= X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Knowing which handle is being processed helped in debugging new event code. Add a dev_dbg() message with this information. Signed-off-by: Ira Weiny --- drivers/cxl/core/mbox.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/cxl/core/mbox.c b/drivers/cxl/core/mbox.c index a1c490f66bbf..f052d5f174ee 100644 --- a/drivers/cxl/core/mbox.c +++ b/drivers/cxl/core/mbox.c @@ -947,9 +947,13 @@ static void cxl_mem_get_records_log(struct cxl_memdev_state *mds, if (!nr_rec) break; - for (i = 0; i < nr_rec; i++) + for (i = 0; i < nr_rec; i++) { + dev_dbg(dev, "Event log %d: processing handle %u\n", + type, + le16_to_cpu(payload->records[i].hdr.handle)); cxl_event_trace_record(cxlmd, type, &payload->records[i]); + } if (payload->flags & CXL_GET_EVENT_FLAG_OVERFLOW) trace_cxl_overflow(cxlmd, type, payload); -- 2.41.0