From patchwork Thu Oct 12 19:18:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 13419685 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 7E521CDB46E for ; Thu, 12 Oct 2023 19:21:19 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 9D761E80; Thu, 12 Oct 2023 21:20:27 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9D761E80 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1697138477; bh=sAHB7fmSUKevt1U+ojjUC0DYZuDwCCtdZ51toos2gaY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=sJx8BteOwHz7Ucry0ILEIMO4Z0hG6JIz0T6uxpXrN7KF89idI7CvW8VEBxonaNjDe qoJ0u57erpsghlKANh52hVGQuBFYaqeWfDgK2+K1Xas64IE6JSPeBBdMqLpd41hRh1 Pyy97eKRGhm/FIgFnwl1UXUMK8QMR3u1t05appu4= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9D2C2F8057A; Thu, 12 Oct 2023 21:19:25 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 0B151F8057B; Thu, 12 Oct 2023 21:19:25 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id CB311F80310; Thu, 12 Oct 2023 21:19:18 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D9791F8027B for ; Thu, 12 Oct 2023 21:19:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D9791F8027B Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=c9pfFHSD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697138357; x=1728674357; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=sAHB7fmSUKevt1U+ojjUC0DYZuDwCCtdZ51toos2gaY=; b=c9pfFHSD3uXjiKIn4Hz+cB+gIQb1GkIL9kBTTDp+z1q1ckG1u/favRjQ icxo4q2frPO6uYK5SesXq4QcP+ya66Hau5zvXyZscz44MYgyT+SnTmmGe 4f+shYHCUPFL35pNafoIkWDcZj33sg5SYTK8B+py76HAKyopGsHuJWfu0 xWGMEhLQT0C409R3CN1oVtx3jwokFwY1VW5z4skTUaUaIfZcBRHvzolRk pzkcukBT0DBuP02WwxfzTkEVOBqJMrP9i9Mhbfo/OmDmw+s4U+qeGv+Kh fm84x9RZun3y09IjoiKW2jskfrgQWIIHsz98bxsygDo6TRS5qLFE8Itex g==; X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="383875368" X-IronPort-AV: E=Sophos;i="6.03,219,1694761200"; d="scan'208";a="383875368" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2023 12:19:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="1001628013" X-IronPort-AV: E=Sophos;i="6.03,219,1694761200"; d="scan'208";a="1001628013" Received: from gchoudha-mobl.amr.corp.intel.com (HELO pbossart-mobl3.hsd1.md.comcast.net) ([10.212.114.241]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2023 12:19:00 -0700 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Cc: tiwai@suse.de, broonie@kernel.org, Peter Ujfalusi , Seppo Ingalsuo , Ranjani Sridharan , Pierre-Louis Bossart Subject: [PATCH 3/4] ASoC: SOF: ipc4: Dump the notification payload Date: Thu, 12 Oct 2023 15:18:49 -0400 Message-Id: <20231012191850.147140-4-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231012191850.147140-1-pierre-louis.bossart@linux.intel.com> References: <20231012191850.147140-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: TIUER3USCAI3LDT7JNDFAZRZATL74QCD X-Message-ID-Hash: TIUER3USCAI3LDT7JNDFAZRZATL74QCD X-MailFrom: pierre-louis.bossart@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Peter Ujfalusi Now that we have notifications with payload (kcontrol change notifications), it is time to add the payload dump on the rx path as well. Reviewed-by: Seppo Ingalsuo Reviewed-by: Ranjani Sridharan Signed-off-by: Peter Ujfalusi Signed-off-by: Pierre-Louis Bossart --- sound/soc/sof/ipc4.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/soc/sof/ipc4.c b/sound/soc/sof/ipc4.c index 3f4d57dba972..8441f4ae4065 100644 --- a/sound/soc/sof/ipc4.c +++ b/sound/soc/sof/ipc4.c @@ -666,6 +666,10 @@ static void sof_ipc4_rx_msg(struct snd_sof_dev *sdev) sof_ipc4_log_header(sdev->dev, "ipc rx done ", ipc4_msg, true); if (data_size) { + if (sof_debug_check_flag(SOF_DBG_DUMP_IPC_MESSAGE_PAYLOAD)) + sof_ipc4_dump_payload(sdev, ipc4_msg->data_ptr, + ipc4_msg->data_size); + kfree(ipc4_msg->data_ptr); ipc4_msg->data_ptr = NULL; ipc4_msg->data_size = 0;