Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2015914imm; Mon, 16 Jul 2018 00:04:28 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfyRnmdL6w7Db2rQBjYd9TeKl9obPtOBUNLm23OxQIUXemiPP+LLgqNbXp3N92L1xJ3PLt/ X-Received: by 2002:a62:748:: with SMTP id b69-v6mr16844537pfd.177.1531724668827; Mon, 16 Jul 2018 00:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531724668; cv=none; d=google.com; s=arc-20160816; b=NoaqpAsVrYP8IT2pSabNLD302rDIafgZB0kptmeBfb/rbqRu5xW97L9aOs6al/bGna saR6qe+9t9AUDGMmnHYjT0ZA/S+qn11KX4x0GJQ+NmaFvHE1AACsrILs7OCIC+kXMq/8 +0Oe5FhN22tpGNmpxEO7fAKSaCYNzEnYgsi3C/KvFqlsMVoNSi+HW4N6JHO2HWNn9oO2 doObp6bfJbHbbc56Lf+H+xMqMx/mPDv6RCYGiO93gnMuJ92nZBhi2BlseopP6jGN/+sW 5O/oelvuepbf58LUWdgNg14rXqiWRt5J0LEl/4YZiuMcI4A2QDOCgp8owlbKhdYAiull m62g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:from:dkim-signature:arc-authentication-results; bh=XaKf8CmuIcKS/zEqu7yu01cClrMy6LQdNF7ASVO4FW4=; b=hag1Vd//w7g4a/ZZVMi92mFVIdO1atylPOljkllO2pX2LYW5Azmy5fEgjWIdY1E2Ov gwcPyAc8lsS3uGyx18RCXUyaQwn4VAgce4tXaefgO83u2bhR551+zdL+DfP0k5RNncrj 2YnpRV81/R1c4xt/AS4G+2AFTPu+2ys4XsdNJlm6SPOjDOlp2FUs/+/jeoZz5yVMKfaj IjetEdqswqukqHR7rB/DINv+SLR1j71UFc0I8r8IU6r1havSPqGHD+mnHaZTM+NcguhH FglbBY2c+5nu7QwWLeshpXEtTkPRlyZPIq17OWiwvmPLARQzBrJSyDQOin35D8Tg0y19 t/Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=xCQJCC5Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14-v6si32675174pfl.349.2018.07.16.00.04.14; Mon, 16 Jul 2018 00:04:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=xCQJCC5Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728787AbeGPH3b (ORCPT + 99 others); Mon, 16 Jul 2018 03:29:31 -0400 Received: from mail-eopbgr730071.outbound.protection.outlook.com ([40.107.73.71]:21776 "EHLO NAM05-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727540AbeGPH3b (ORCPT ); Mon, 16 Jul 2018 03:29:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XaKf8CmuIcKS/zEqu7yu01cClrMy6LQdNF7ASVO4FW4=; b=xCQJCC5ZmKwMC+l0xB+EOSolhAMcRuQSd8xKZBflJ8VxShnA7bpMocaBz4mIiI3dtD9ae5AswygUdkT3/LGF0vnwG4Rkw1w3wmS9/b4OA9gVvZo5sitaKCysMCKl1WswLSa/BO17ojHAIZqJ4KNG16YGIMJMxnSNriUFkd5MDjw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Akshu.Agrawal@amd.com; Received: from akshu-HP-EliteBook-745-G2.amd.com (202.56.249.162) by SN1PR12MB2365.namprd12.prod.outlook.com (2603:10b6:802:25::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.21; Mon, 16 Jul 2018 07:03:26 +0000 From: Akshu Agrawal Cc: djkurtz@chromium.org, akshu.agrawal@amd.com, Alexander.Deucher@amd.com, Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , "Mukunda, Vijendar" , Alex Deucher , Guenter Roeck , alsa-devel@alsa-project.org (moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/2] ASoC: AMD: For capture have interrupts on I2S->ACP channel Date: Mon, 16 Jul 2018 15:02:41 +0800 Message-Id: <1531724566-4019-2-git-send-email-akshu.agrawal@amd.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1531724566-4019-1-git-send-email-akshu.agrawal@amd.com> References: <1531724566-4019-1-git-send-email-akshu.agrawal@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [202.56.249.162] X-ClientProxiedBy: MA1PR0101CA0066.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:20::28) To SN1PR12MB2365.namprd12.prod.outlook.com (2603:10b6:802:25::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 22b12abe-4cc9-4be7-7f37-08d5eaea3f16 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(48565401081)(2017052603328)(7153060)(7193020);SRVR:SN1PR12MB2365; X-Microsoft-Exchange-Diagnostics: 1;SN1PR12MB2365;3:T01dx/NqhLTADBolbYzaEcvtjW4KWFoSsjsph53nwVHqMbJ/qwapTaxauOP9d0W7CPDL5x4oVLTSP8WFcOCFTdrl4JElv09DeGA90C8ybthEbCO31TQCQmdiv7yjgJ/K8ANNldyXszcC0IN7JgcSaZ8h0oucyH3bZRQ7yuoUBMK2CDzERKxnqxueZVP9Dt1jKV1+5YujelpD3fym8Q0MKPTaEy/jY2t9sgV0kJgaiCIjoBtZtgZVXN5b4dVaY/s4;25:VoeYUsydMrX6kO10IW0Sd93tta6aPeEgC5OOcTqh9HQh4GwiWN3+M9KmdFeSvNNPjHX32CKLwzPdL0kqSKuM4EnGv3QiTNjWfML1bZc7wpr4m+TUQjNE+90soSkHl6OoHPHb9C8cP+UVQj+AULLF8dL8zSgBGEC6RX+q4HRrldMHaPVt/69UofcuzWi8ZlnnKrrZtOYDEFUzsYbatenZ7qhz5OKNsEWADTyzpTm3B+p1rUulDnlApd1cy5zYFxvYfdCJSIYcg2cvaLm+VL9lFn3nanrgo+gTSDDQ2W2SqzI0IbupneiNEX3bIwwvu2QFmL24CPwfkSTASB1DSlrrqQ==;31:Rc2q/Qmtvo55dkce1q3pyYjX+WlKCbEPzC76PKjUJg5HtjCHlZ5rIjulTE7CtVjH8gVdVKQ/YWVP3s7l8zFCsXd4rVDpFzyW/tNPMvK3GdTuYIcXqEVG+vib2qdvhVEX04ReV16n1Ih+oa6th9LY4SnnmeIaxpP+LZ4kRVdRt3/BCjGz5l+YR76pkT0QAKfuIGnByfMNoLNGQEfJp1MAjj0ItAV2y80hSXzIYcsFwGs= X-MS-TrafficTypeDiagnostic: SN1PR12MB2365: X-Microsoft-Exchange-Diagnostics: 1;SN1PR12MB2365;20:jMCrthv05OKzo/0D60RQvEYt1nrHOB04/5mBCaLQHnmZ4VzCdaIkCVbwhgCQ/NXnzAimF/SGtQ501INsvQ1Ywv0RCQ66btqFjDg9mKUae67MaanZd/RdcLk+uaAO2WIY+nF9HpGUuwCOVazUdA7bfKDXUbWjP8t2iOFo8tBfexVczvSh5ugzcDprNVkv28CmbtMB/FfVtRng2OGOyurSTKmjNhY1xWnX02eOL8d49bwHEYz4JshKfemNJl1vYcjIryEv6sgtEnL78Ay1I9mhbhZZkJ3K+lHhYgbVFprYzeqxzQm0a5llUJ13PKKpp+nGGU7RTqf4M/Uy9iEcMyXowCYioOrCXA/zOQxN74dKJMJ+f6qp5N7obJYDWwAUIrHBoVvcElp6Qcb4jtq7oCPPIFp+A1w5ISzOoxwrBRY3IvsXJTQy/gazKOYrFwtGvrMGHE7LeJAvKmW2lTx3yTTanJ3CN6Vt1q3B5xavZbMiRsAojHEZXvGwXx/q1O/ueTEz;4:g1FfiTuNOO1luIIhPd813UFMn2qXPWxmzgWqvhFY0ufOjzJ3mcBbne12SWHdisCeRm74VJ2WSxI143WgEBEu+runlVijJP3oBXcHKbGERftPEM8Y7c/tXR9JIa4SIirco7CMnBjI9PVzskLL814hyU0xWELOY4ehRI0od2N8qxprtymrcjmsJIZbVrqZvnp5pabUR+5F3GCX1je1vjJAZvLYC+JCPCBWTDKFZcPOF0kZwl70MkW5cZIn+hkqdlzP9l0Y1JUSQcXjZf7P+f0QOMiXBQ203cQEBrq+qSKBvtBEnmq+N9vj++T9MPmWFljG X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231311)(944501410)(52105095)(3002001)(6055026)(149027)(150027)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:SN1PR12MB2365;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB2365; X-Forefront-PRVS: 073515755F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(396003)(136003)(39860400002)(346002)(376002)(366004)(199004)(189003)(51416003)(6116002)(16526019)(6486002)(1671002)(386003)(7696005)(186003)(48376002)(36756003)(26005)(76176011)(72206003)(52116002)(50466002)(478600001)(97736004)(3846002)(106356001)(105586002)(53416004)(316002)(8936002)(50226002)(5660300001)(2906002)(16586007)(25786009)(44832011)(54906003)(86362001)(53936002)(81166006)(81156014)(4326008)(305945005)(6666003)(8676002)(7736002)(109986005)(66066001)(11346002)(2616005)(476003)(446003)(956004)(47776003)(486006)(68736007)(39060400002)(266003);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB2365;H:akshu-HP-EliteBook-745-G2.amd.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR12MB2365;23:YQniN1hLRQLJWh0VOA345/orc8xixMAouFkYRwBof?= =?us-ascii?Q?23lB2u7qDzCkr3T2YyyKE65JxJcgo6usEV50yxblqU3LuPwK8eecy+8jOfzT?= =?us-ascii?Q?AHtxUo7C8X1KmUSLO3DdC18ePnbOOm7Ckr9IrVymXQ2fghL+e7Luo/77kBFR?= =?us-ascii?Q?x6nlUOLzD3j7xFjoIRiyNH8LAN2jM00J4qHRfU1+5wVcKdq873/K+WrkzMtj?= =?us-ascii?Q?qxGcLUMdnvz0hP4GwivduwgtdiOvE7hgEeN4Vxzw4OF8m92qSxvcyH1Ll6PP?= =?us-ascii?Q?+8kKBgH4Mw78U4n0GqE98JIIDbP2G8GPP3NWKtz+Ca6oeQbqwc/XRe+9yrl4?= =?us-ascii?Q?8LfhD+a6EqcKtqitRMVdPQoFN3UKaL6p+y+htJZVDAcRK+GLlYPe9oEYj5Xq?= =?us-ascii?Q?ss+fKM/gZ71IuOB/hqcoNZ787dXczoI0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9YyN09CQQfajt3mHXbsFq7vnA3AeXmRfoTfDWP0+kH/AGVUvQq3YbtOJQ6/YGfT+MUCwKuEsD1WqK6D1kP72tDusEpdHv4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN1PR12MB2365;7:S50PfACsqZ/UrwB2/MO7EPBNYkrwzMKiCmvmfZMTYTJvOW1BafFb1RzVlwAeEVv4K9JUUzKbsW3ArQz+PpdhAFCSPGNHjD6oceAjj1zxtVBKfgazw+RC4LVE7hAJc/ra+zGs/o+qUvTjYi4zclt2tPVpX4ORNiRTiKAd0w987Ch2/RWWCt/PrEjcf1918q2JHnLlfqW8KIgSp40tBscvyKoEvpU5BUWwPRi/glgzFxQCXStuIdGlelDpzAkx9LFh;20:+mfuw+KUptZthVb9bdUwmkDMPoXJCT/TxQsA7tYzep9f2qhVjajXwQkaxmv+FgZVckG5jEnTfisZSzbdhnhJkVlt/rR2DziJSSC8aRfjHiw/qUgbiQm6jPTCx78K7blfJ8Bfv9QSbrcfu1QdualE4tNPZf7m9lofa7ETcMua/qB2XG5gXpUvJ0qEnvVBUncbv7Azhx4nTTdrrgXwf2G79yJsEhtAudqX5WBk2428JBcy2upmk5eQG5xhgTWk1Pvz X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2018 07:03:26.2059 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 22b12abe-4cc9-4be7-7f37-08d5eaea3f16 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2365 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Having interrupts enabled for ACP<->SYSMEM DMA transfer, we are in for an interrupt storm. For both playback and capture interrupts should be enabled for I2S<->ACP DMA. Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-pcm-dma.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/amd/acp-pcm-dma.c index eeb8677..94bcf69 100644 --- a/sound/soc/amd/acp-pcm-dma.c +++ b/sound/soc/amd/acp-pcm-dma.c @@ -224,13 +224,11 @@ static void set_acp_sysmem_dma_descriptors(void __iomem *acp_mmio, switch (asic_type) { case CHIP_STONEY: dmadscr[i].xfer_val |= - BIT(22) | (ACP_DMA_ATTR_SHARED_MEM_TO_DAGB_GARLIC << 16) | (size / 2); break; default: dmadscr[i].xfer_val |= - BIT(22) | (ACP_DMA_ATTR_SHAREDMEM_TO_DAGB_ONION << 16) | (size / 2); } @@ -421,9 +419,9 @@ static void acp_dma_start(void __iomem *acp_mmio, u16 ch_num) switch (ch_num) { case ACP_TO_I2S_DMA_CH_NUM: - case ACP_TO_SYSRAM_CH_NUM: + case I2S_TO_ACP_DMA_CH_NUM: case ACP_TO_I2S_DMA_BT_INSTANCE_CH_NUM: - case ACP_TO_SYSRAM_BT_INSTANCE_CH_NUM: + case I2S_TO_ACP_DMA_BT_INSTANCE_CH_NUM: dma_ctrl |= ACP_DMA_CNTL_0__DMAChIOCEn_MASK; break; default: @@ -705,18 +703,18 @@ static irqreturn_t dma_irq_handler(int irq, void *arg) acp_mmio, mmACP_EXTERNAL_INTR_STAT); } - if ((intr_flag & BIT(ACP_TO_SYSRAM_CH_NUM)) != 0) { + if ((intr_flag & BIT(I2S_TO_ACP_DMA_CH_NUM)) != 0) { valid_irq = true; snd_pcm_period_elapsed(irq_data->capture_i2ssp_stream); - acp_reg_write((intr_flag & BIT(ACP_TO_SYSRAM_CH_NUM)) << 16, + acp_reg_write((intr_flag & BIT(I2S_TO_ACP_DMA_CH_NUM)) << 16, acp_mmio, mmACP_EXTERNAL_INTR_STAT); } - if ((intr_flag & BIT(ACP_TO_SYSRAM_BT_INSTANCE_CH_NUM)) != 0) { + if ((intr_flag & BIT(I2S_TO_ACP_DMA_BT_INSTANCE_CH_NUM)) != 0) { valid_irq = true; snd_pcm_period_elapsed(irq_data->capture_i2sbt_stream); acp_reg_write((intr_flag & - BIT(ACP_TO_SYSRAM_BT_INSTANCE_CH_NUM)) << 16, + BIT(I2S_TO_ACP_DMA_BT_INSTANCE_CH_NUM)) << 16, acp_mmio, mmACP_EXTERNAL_INTR_STAT); } -- 1.9.1