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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F07B2C25B50 for ; Mon, 23 Jan 2023 19:27:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232486AbjAWT1B (ORCPT ); Mon, 23 Jan 2023 14:27:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232245AbjAWT07 (ORCPT ); Mon, 23 Jan 2023 14:26:59 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75A052684; Mon, 23 Jan 2023 11:26:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674502018; x=1706038018; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=eK0m1r7rcSY+J7AzBLR9qXrpS2jUjHhJVcTqGo7GT9Q=; b=gXonmIQbaEvrUfLqJPxOAKlOxmtONrRDdpjMX2wic5CdtGnJS+cWqlrb anWzdS5Qq5avfhoNaXEB7XDjvVEhMGNgvEgHCsaaQ5QIfAqJFkH8m2AUg Gmmgoo6dJNcN1cznp9MUMkjf/zNZEzl7/3xFOtgEXdxzyStR5ng6O/CEr P38fcUJQc/lwAOjCXPHHma0ah5F6dgJVAFl3AuuBjBR9J9Jhu1Ym/XSrU cF6dHs1mOa9pMkIc/iyxv5Y6GHa3qUG8zuhdlpm4GpjcbrI5kIuulsgF2 O7yUfTR6BYBdt1JnewhJFKo3kTR5eARncnKmSGMXBceg5kX9iYW7xq0Xb w==; X-IronPort-AV: E=McAfee;i="6500,9779,10599"; a="328215458" X-IronPort-AV: E=Sophos;i="5.97,240,1669104000"; d="scan'208";a="328215458" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jan 2023 11:26:58 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10599"; a="750549993" X-IronPort-AV: E=Sophos;i="5.97,240,1669104000"; d="scan'208";a="750549993" Received: from aschofie-mobl2.amr.corp.intel.com (HELO aschofie-mobl2) ([10.251.2.84]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jan 2023 11:26:57 -0800 Date: Mon, 23 Jan 2023 11:26:55 -0800 From: Alison Schofield To: Robert Richter Cc: Vishal Verma , Ira Weiny , Ben Widawsky , Dan Williams , Jonathan Cameron , linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cxl/mbox: Add debug messages for supported mailbox commands Message-ID: References: <20230119130450.107519-1-rrichter@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 23, 2023 at 01:32:55PM +0100, Robert Richter wrote: > Hi Alison, > > On 22.01.23 21:39:33, Alison Schofield wrote: > > On Thu, Jan 19, 2023 at 02:04:50PM +0100, Robert Richter wrote: > > > Only unsupported mailbox commands are reported in debug messages. A > > > list of supported commands is useful too. Change debug messages to > > > also report the opcodes of supported commands. > > > > Hi Robert, > > I wonder if you can get this info another way. When I try this > > loading cxl_test today, I get 99 new messages. Is this going to > > create too much noise with debug kernels? > > There are 26 commands supported by the driver, so I assume there are > at least 4 cards in your system? To me the number of messages looks ok > for a debug kernel. And, most kernels have dyndbg enabled allowing to > enable only messages of interest? Esp. if card initialization fails > there is no way to get this information from userland. The list of > unsupported commands is of less use than the one for supported. That > is the intention for the change. cxl_walk_cel() job is to create the enabled_cmds list for the device. How about we use that language in the message, like: set_bit(cmd->info.id, cxlds->enabled_cmds); - dev_dbg(cxlds->dev, "Opcode 0x%04x supported by driver\n", opcode); + dev_dbg(cxlds->dev, "Opcode 0x%04x enabled\n", opcode); Because when we say, "Opcode 0x%04x supported by driver\n", that comes with the assumption that the device supported it too. By saying 'enabled', it's clear device and driver are aligned. > > Thanks, > > -Robert