From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4DBBC4363A for ; Mon, 21 Sep 2020 17:58:28 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 066CC20BED for ; Mon, 21 Sep 2020 17:58:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="H+A0vx+F" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 066CC20BED Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 7764116A9; Mon, 21 Sep 2020 19:57:35 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7764116A9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1600711105; bh=xsH1fIMCdxhSL8kbBlvgeIjLm8FJ177tvtj5TgAtlyk=; h=From:To:Subject:Date:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=H+A0vx+FIBX0CPdak1bNwTu4aQBZivASbNdVLd8scNJv78GLsRFFE9zAB6RxkatO0 L2AJrXnveyNOFSlx+3wn59SbdHEiwydICRBizvYYP4RBlxxMS3f66I1pvhcg6QaFMJ +19vHtTjG4CXlHmsSvTtklGDEl0RsDQ+AvrP0oRg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id F334DF80161; Mon, 21 Sep 2020 19:57:34 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7D89CF8010A; Mon, 21 Sep 2020 19:57:32 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (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 8B032F8010A for ; Mon, 21 Sep 2020 19:57:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8B032F8010A IronPort-SDR: JfLuZYJiZc0GgXvqaF5FNAdgDHQzb18JI3j8md1h7WiwoiV1N9fCXXlEt96BEbppcBPKr+HcB7 VV+z8vFHopag== X-IronPort-AV: E=McAfee;i="6000,8403,9751"; a="159739447" X-IronPort-AV: E=Sophos;i="5.77,287,1596524400"; d="scan'208";a="159739447" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2020 10:57:15 -0700 IronPort-SDR: chj21VFCOIgKHLLWmDXe6eg2H+c882ALXICXkwAvDnBruX/hVSVHFoRbj3z0AlXbdpLgQTNbgI QfedoeDZryjA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,287,1596524400"; d="scan'208";a="304623884" Received: from irsmsx603.ger.corp.intel.com ([163.33.146.9]) by orsmga003.jf.intel.com with ESMTP; 21 Sep 2020 10:57:13 -0700 Received: from irsmsx601.ger.corp.intel.com (163.33.146.7) by irsmsx603.ger.corp.intel.com (163.33.146.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 21 Sep 2020 18:57:12 +0100 Received: from irsmsx601.ger.corp.intel.com ([163.33.146.7]) by irsmsx601.ger.corp.intel.com ([163.33.146.7]) with mapi id 15.01.1713.004; Mon, 21 Sep 2020 18:57:12 +0100 From: "Rojewski, Cezary" To: Andy Shevchenko Subject: RE: [PATCH v7 02/14] ASoC: Intel: catpt: Implement IPC protocol Thread-Topic: [PATCH v7 02/14] ASoC: Intel: catpt: Implement IPC protocol Thread-Index: AQHWkA4mLmmw5DPHok6M6QEQPAPmJqly/YkAgABjZhA= Date: Mon, 21 Sep 2020 17:57:11 +0000 Message-ID: <21d003e6ce6f42dd9be81bd41014c463@intel.com> References: <20200921115424.4105-1-cezary.rojewski@intel.com> <20200921115424.4105-3-cezary.rojewski@intel.com> <20200921130040.GU3956970@smile.fi.intel.com> In-Reply-To: <20200921130040.GU3956970@smile.fi.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 x-originating-ip: [163.33.253.164] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "pierre-louis.bossart@linux.intel.com" , "alsa-devel@alsa-project.org" , "Kaczmarski, Filip" , "N, Harshapriya" , "gregkh@linuxfoundation.org" , "Barlik, Marcin" , "zwisler@google.com" , "lgirdwood@gmail.com" , "tiwai@suse.com" , "Proborszcz, Filip" , "broonie@kernel.org" , "amadeuszx.slawinski@linux.intel.com" , "Wasko, Michal" , "cujomalainey@chromium.org" , "Hejmowski, Krzysztof" , "Papierkowski, Piotr \(Habana\)" , "Gopal, Vamshi Krishna" X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On 2020-09-21 3:00 PM, Andy Shevchenko wrote: > On Mon, Sep 21, 2020 at 01:54:12PM +0200, Cezary Rojewski wrote: >> Implement IRQ handlers for immediate and delayed replies and >> notifications. Communication is synchronous and allows for serialization >> of maximum one message at a time. >> >> DSP may respond with ADSP_PENDING status for a request - known as >> delayed reply - and when situation occurs, framework keeps the lock and >> awaits upcoming response through IPCD channel which is handled in >> bottom-half. Immediate replies spawn no BH at all as their processing is >> very short. >> >> Signed-off-by: Cezary Rojewski ... >> diff --git a/sound/soc/intel/catpt/ipc.c b/sound/soc/intel/catpt/ipc.c >> new file mode 100644 >> index 000000000000..500d4845a7cf >> --- /dev/null >> +++ b/sound/soc/intel/catpt/ipc.c >> @@ -0,0 +1,246 @@ >> +// SPDX-License-Identifier: GPL-2.0-only >> +// >> +// Copyright(c) 2020 Intel Corporation. All rights reserved. >> +// >> +// Author: Cezary Rojewski >> +// >> + >> +#include >> +#include "core.h" >> +#include "messages.h" >> +#include "registers.h" >> + >> +#define CATPT_IPC_TIMEOUT_MSECS 300 >=20 > A nit-pick: _MS is enough. >=20 Sure, will reword this and one _MSECS that is found within loader.c Thanks!