Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2594564rwo; Thu, 3 Aug 2023 11:43:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlHw1tB9UHRiZpDWRh9SuVWHquaxIpFr8bY8QaxWEhgRbvt6IxHfJDy51y2gu6TDUJihAS5q X-Received: by 2002:a17:906:cc10:b0:99b:cf4f:9090 with SMTP id ml16-20020a170906cc1000b0099bcf4f9090mr8081201ejb.66.1691088192866; Thu, 03 Aug 2023 11:43:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691088192; cv=none; d=google.com; s=arc-20160816; b=X6OjhcpIAYsZndgICM4aWB9xnjft8ig/ANAvC3lq5t/YH9n9kw+yaXZBxSa9YweHwa rskBTHb42dmUD0mwWGIvl2+VwViPCywkF34+64zVzAQyiBoZVlYNverXBmeAVRKGL17K nMYVjrB84bJmf8pXWRK/oDIGjn0Gr/RvLGoTJWdTu0cemyaiTe6GB+FG8tUKqOaJ7fgC IZguVUM2ApUIIpbhVAncfyIDGIOwh0Q4HJlc6bhNXN0+xOMgAPYbuj07qtbeY+TfN5Xf p16BpBXISZEbiFa2pzovOM3tmZqGuBWmG/qDQJ17C/q68s1la99NSGOamnKcpawzaQ2P c2lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fABBVd6tv3XIswUDqodcBJVLpTMFpC0JkcLzmmDbi8M=; fh=6KhyV+tK1GiJCfE8RbqmdVcl+JMv0jYDX/5PZ3d12pI=; b=ME57qCmC6XQYfJdArGMqsLtqz1XzqgL33+XBUX/IR2TGSP4iHUGTTziGOa+GVC+DRM u6uJbpifN6/HOUqxGhuYyWkPUC5yvnHWECY2zUeuN3RVtE8v15uKUUT/IfKlGha2kG9G Nd3MDSEJPrM99PUTSP4oZC+y1Q7i3DcatLNXA6Ua/86pWjG8o0plW/W1wf+3hFcOpnKi LAkq1P5mdqWrA2uvqsSQpa8lke7JjWzSEIslN0BunpLd71raGfosqkcnuZX9mSZpQPl0 gnE0RbXEN93lpfo4RN7JAEDtXy64AJMQ3p9+YjtdxH+NyaHX3RZSPBMWzem0IHcZPWJh yFJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=h5sFZzIQ; 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 rv7-20020a17090710c700b00992f309cfe7si242925ejb.602.2023.08.03.11.42.48; Thu, 03 Aug 2023 11:43:12 -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=h5sFZzIQ; 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 S234975AbjHCR1R (ORCPT + 99 others); Thu, 3 Aug 2023 13:27:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234752AbjHCR1H (ORCPT ); Thu, 3 Aug 2023 13:27:07 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A88F23A99; Thu, 3 Aug 2023 10:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691083626; x=1722619626; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Rp7B3I/GBMKQs5p7TDEdoIsKR+4FXBctgetPo1nQNeo=; b=h5sFZzIQs4VKn6n0NGhXoUEiyX3on6aIz15ClC7D8DL0oVuc1TKxnCmw W/t+soRJkQxMINSYuFdmt5fJwSJgU/ZqwddTOU9KAggkDwU8tiGex0Ayz Sl2RAof3bRqiUNiXh2f3we4UzokSehS6zV2JdQQTJ+ln1pB6YEp55fybh tHznkELUybKMwSdimVdwc21ol7w+2l7TKk2K1OE7tLN5KhvjnyH2GPIz6 C01j18cMjmL9H5bWq5oTlbHYNToVBGoXkuRkd+lZzY+7YXfnXRpmBinan zXWenn18LymB7unF19ZHMIKXk2L5fgwxLgbuZERwN8F29Hh0jPz5aFbfU A==; X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="368846179" X-IronPort-AV: E=Sophos;i="6.01,252,1684825200"; d="scan'208";a="368846179" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2023 10:26:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="732880747" X-IronPort-AV: E=Sophos;i="6.01,252,1684825200"; d="scan'208";a="732880747" Received: from aschofie-mobl2.amr.corp.intel.com (HELO aschofie-mobl2) ([10.209.86.212]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2023 10:26:49 -0700 Date: Thu, 3 Aug 2023 10:26:48 -0700 From: Alison Schofield To: Ira Weiny Cc: Davidlohr Bueso , Jonathan Cameron , Dave Jiang , Vishal Verma , Dan Williams , linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] cxl/mbox: Add handle to event processing debug Message-ID: References: <20230731-cxl-fix-clear-event-debug-print-v2-0-9bdd08d386e9@intel.com> <20230731-cxl-fix-clear-event-debug-print-v2-2-9bdd08d386e9@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230731-cxl-fix-clear-event-debug-print-v2-2-9bdd08d386e9@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On Tue, Aug 01, 2023 at 01:13:29PM -0700, Ira Weiny wrote: > 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 Reviewed-by: Alison Schofield > --- > 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 >