Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp361653imm; Tue, 15 May 2018 02:50:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqB22yEcSAMvQemLyIBOAgFnqwmRrC29haDPC78gXGNM28n2cQTzkruPxigObJim/RlAIPh X-Received: by 2002:a62:a6ce:: with SMTP id r75-v6mr14413884pfl.82.1526377842398; Tue, 15 May 2018 02:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526377842; cv=none; d=google.com; s=arc-20160816; b=r/UQX4IczQWyYmCOj/GsL66oEEzZkNtFE9+u8JzH3B8h5claD1p5A8yt3KiOlAAtuk An4c5GZ2+pRlNKUeHz0z/FIVSm9sFMk2iJfCYJZR1ErgNlDj2dLG2qluNnUxmUuz7Cg1 B5+OQoQ8C7DQrPNATdBy9Yk5Pu/s7bpZ0tdKJX+3xD0OvTQfvRV4+BmkxDyasyzxG9gR IyxJEb+ShU/X6nUf4QbAI/HtjYp7+e36W/5sMAN6GLlTadE+mW0Tkf3AowOpp1h1a/iI mDL33UXD2R+PfIYcM2lWK/MTFfe60lGyqq7QonwhAGPusVnQ/Oz2reHSLFqAvM+KSEsn fnsg== 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:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:subject:dkim-signature:arc-authentication-results; bh=nTc9NSidRuSqyVVV0rOLfJuh1uQ3HEv/TFRe0UHfvlQ=; b=ZjrZNSoufSTIs3HuaxKOxZ1LzpePJ8swfBzMFB8GsfgVyyVgBqoVJaMmIvXzDh82/b hfegfccDjX+KaPZeI7aCqw23MmCwlEOPqDuWw644OcI5p1yJ4AHsEC1A16/DF6//+V6f OnVX6Wx2KoFxW3TLaESdkFCXq5CxMa1kVrwV7gxHEJmX/5SHR/8jk2ZkZmNbJ4uli8wV LV4uAm5xwuWu1D3sY+f8U9bkN2uVbezQNZVm7S8T2nwGS7klj8J93qAf6XuHbENE8jlA c11rlYKvtKPoK9sSTXjRdB+19mkSMrTB8XyOnj1RSZ0jQ0lBLQIzr2J8Z/XjezA/Q6Vt msig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=TC+rZlEv; 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 l11-v6si6900948pgq.501.2018.05.15.02.50.28; Tue, 15 May 2018 02:50:42 -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=TC+rZlEv; 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 S1752684AbeEOJt7 (ORCPT + 99 others); Tue, 15 May 2018 05:49:59 -0400 Received: from mail-bn3nam01on0060.outbound.protection.outlook.com ([104.47.33.60]:7616 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752634AbeEOJt5 (ORCPT ); Tue, 15 May 2018 05:49:57 -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; bh=nTc9NSidRuSqyVVV0rOLfJuh1uQ3HEv/TFRe0UHfvlQ=; b=TC+rZlEvUq+UemXbqmfvK7CebLgEOtYaAN/d/5a42ic+wr5Kqq01jEsgRUADD+kb2FB+ArKInQWczSVXPr62ZGEuf6sIMc99dpJsoENcSWrm3f9Ka9zP8u5i0Q0UoHVg36bIVcntmgK38umkvtl5rWAGo98qULf/lRsorUfuEPY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Vijendar.Mukunda@amd.com; Received: from [10.129.12.246] (125.21.194.1) by DM2PR12MB0315.namprd12.prod.outlook.com (2a01:111:e400:50d0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Tue, 15 May 2018 09:49:49 +0000 Subject: Re: [PATCH V2 04/10] ASoC: amd: pte offset related dma driver changes Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Alex Deucher , Daniel Kurtz , Akshu Agrawal , Guenter Roeck , Greg Kroah-Hartman , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list References: <1525754888-14124-1-git-send-email-Vijendar.Mukunda@amd.com> <1525754888-14124-4-git-send-email-Vijendar.Mukunda@amd.com> From: "Mukunda,Vijendar" Message-ID: Date: Tue, 15 May 2018 15:22:46 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1525754888-14124-4-git-send-email-Vijendar.Mukunda@amd.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [125.21.194.1] X-ClientProxiedBy: MA1PR01CA0088.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00::28) To DM2PR12MB0315.namprd12.prod.outlook.com (2a01:111:e400:50d0::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7153060)(7193020);SRVR:DM2PR12MB0315; X-Microsoft-Exchange-Diagnostics: 1;DM2PR12MB0315;3:hPrssATW5fb4hOweVyQPoVcefP4QWrZIIi7d4UdZlNeogRqc0czRpiiDfOG6WyPSVWcf/CSU7s83TsWbDnCBoVF3HUslFGnYPJLcIga6kthas7EVNNtFVm+BTZhs03qFZmF+42NL1uT7G+/lb/nAOGAgbURtdoHdkzhdj+adOZbhoPPn5s+vuO5htQ07pc+XloiNTLUSstoWO1oW74c9JKB5odmbkrOU4VVj/pp1S3XclL4+OJjyNE0f4qI84DJ3;25:GSNuaHX7r2tZZ4NgKT39jdRFEg5cor71pxnW9KisfMzAZZVIjJ/pESJGly55qX38kZVInlrGo4deKnAQhxCL++K0helZhGajOFqgCIOY1AltaK+3A+iiCJurbboQYdggWxpOg2TSIyZOlL68Ml2sKfv6meFXbHU8T9IspnX6qa4FhHe7Y0+lNSay9CbkNXziOiShYX9DKkxc2flly8qyAxc75NmWumbgpcNX088fvOx8HRcySxBTbkrYWwK+Kzi94b2Aa4S5i42s2gOFFnRLa6pbJcj9dbK1XqUUzGvPzpvxefiPtUXggV/hZDum5CROya9lRSxhY4PnZ2+pOYPVRg==;31:KziUD651LmVr1qcxZlk+VWhOEG293SA/7raromxTcRPRpaKWgcep0uJYkU1MqHWmeVuVczWC6KALOO3/NcTOY1+h9bwgXZyG7fbArgEOSC1ArO0kfPWQ94PxAJXZfskdC2wUezSjQEef/7VlfizlxeHH8AN7AbsKAGBGqj+mwoVFFZstYGz1Snig+6fiZK0SAo0NWdyGaIP641r3bFwoh5kVMpCMeurM8ohxPIfcfYs= X-MS-TrafficTypeDiagnostic: DM2PR12MB0315: X-Microsoft-Exchange-Diagnostics: 1;DM2PR12MB0315;20:hhx+QsQ8EH/RIQcyeJOGL9549tspGwwlGzRugSCXalLmndNkAnkpwmUXrtbaAikRrp04Qn661j7TmJDORrqq4i+I5E8Z0dlnnTSWvzDdTmN4vcyLralUIsU2PA90IsCI2JO++gtJrXvxzjPJCLH9srOfE8qyP216F3OtheGAF74jmeeKwDc558EyHMKWcVsw+X4Id1yyZD0HqCemWvxNPQu98T+CwIxOR28j6RPoQA/VhiDWMzTyxTA+oSbA6JCSfor58UV/g07sYT1eJDDVbNpAPgeWQ7RWhBzQKDtEAdJ8si4HUN9F3oe7cH+BEdEob9pi3dMlCzvRmyHCs3U9ZYQGmEzErqGxWYhngCJIgbEvyqfxb1/2ikh39jP7Q8H7aU5AylrnaYDLuhnXjihl3AWUIuvloiga/61cDuEeiEylZnzcrm2vod64aPcuerwp4QGj8kd72vltAj3N3uQlQz7YHiIPALIm5prPkR0ra5URxL4VGLy1NL5319onEA3+;4:1l1iXkz7OL8F9/ibZoKHsMXchp4lGtW2s3iTo49swxes6+Gpg3RirD0baWWdUQgAmJdbFepadkYHaBEvP5blKgR8+ge0dZ3W7jOC79eZvCa8kMbAQWNXwcAKLzzN20QEtfyOTdi6dbe73aIS9Fm6pRH03WiEuRaOMTWhkK20U5mO6TcLyBgqaEeLFthQYQjOImpCzMJrpWGnHCV8lpH0KDvlFcCrNTGUgvPgdTeoDlWM6MvholoifMR/JMp7tfKZP1VkIR1yw+LxKRwwBUxOPYWTL4a41sldZXNMG994AQ6EFPWD0Tedaumvgk4h6OQL 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)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011);SRVR:DM2PR12MB0315;BCL:0;PCL:0;RULEID:;SRVR:DM2PR12MB0315; X-Forefront-PRVS: 0673F5BE31 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(39380400002)(39860400002)(366004)(346002)(376002)(396003)(189003)(199004)(68736007)(7736002)(476003)(31696002)(956004)(11346002)(446003)(2616005)(6666003)(16576012)(6486002)(72206003)(316002)(54906003)(230700001)(58126008)(486006)(5660300001)(31686004)(86362001)(59246006)(305945005)(478600001)(65826007)(6116002)(3846002)(229853002)(105586002)(106356001)(2906002)(39060400002)(64126003)(25786009)(76176011)(81156014)(81166006)(16526019)(1671002)(77096007)(386003)(186003)(97736004)(66066001)(52146003)(53936002)(67846002)(50466002)(6246003)(2486003)(36756003)(26005)(47776003)(8936002)(65806001)(109986005)(52116002)(65956001)(23676004)(4326008)(8676002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR12MB0315;H:[10.129.12.246];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTJQUjEyTUIwMzE1OzIzOkN4SE5NUUJBbUdUN0NhSWNPUGhCbXpwREhQ?= =?utf-8?B?OU4wQVFsamNobXlqeWlyR1lRdVhpTUE4eGIxN0MxVzhqSzRHalhlRmoydlBE?= =?utf-8?B?QlJXbTBLa2JPYm9HVFdieEs4TDBpNlFaV3diLzZ1WnAvT01jNm94Y2ozNzVN?= =?utf-8?B?K010R2MvZ1FqaFY3LzRZZEY1dTZSais4UVlwTDZUME5ESVZOUjF0VzErTjMz?= =?utf-8?B?TDB4Q1RGYWhBMVZ0NC9tWUptVU55YU4xbk1MNlJkcG4xSlNWNlEyanpqSks3?= =?utf-8?B?S2VTSlJHUkFkYVJocDE2aW84cUtxY0ZrODNuNUZ6aWplMTJCTW85cUFCSkdR?= =?utf-8?B?UE5wZk9ISnRkYjFmVmFuSEpPS2QrVXVTM0xGMVoremRURTkyUG0yMTJJR1hX?= =?utf-8?B?YWZvTUcvYUFUMVV1dTZ4dFpGVW0zbmE0aTZkYU41WS9NRnFIRUVZZTEvUzhY?= =?utf-8?B?cWZ2ZjMwM3d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fsLBB4HvRRQBXcwGoriLPGG8G1NZziS9r2sMo;20:1O/oHsRrsJGEzTlxWcj19dDWftXopJug/w3JpDBGY4tqq0e0aarTBCzD7NGMOBXPBkTi6S8s4e/RmSI/hqLwS8aSl4WEww7PVfosDAQ7Td77jUolcjPsZJkDJuT0gYP5CLMY5D2MvmOfVnHRJur9x0c+f8zMna77Ig85koIGd20Bvr/m2HNhhIPi49Sg7JCT0G1FxRGN94nSmx6Tultw3cvpq0KC4C8w/zEU3+UxOq5L1eHgGG8wDLr9vJPzwJH4 X-MS-Office365-Filtering-Correlation-Id: eda57ada-e700-40a0-f29e-08d5ba49353b X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2018 09:49:49.7855 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eda57ada-e700-40a0-f29e-08d5ba49353b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR12MB0315 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 Hi Mark, You have merged 1-3 patch series. Still patch no 4 to 10 remaining. Could you please take them. Thanks, Vijendar On Tuesday 08 May 2018 10:17 AM, Vijendar Mukunda wrote: > Added pte offset variable in audio_substream_data structure. > Added Stoney related PTE offset macros in acp header file. > Modified hw_params callback to assign the pte offset value > based on asic_type. > PTE Offset macros used to calculate no of PTE entries > need to be programmed when memory allocated for audio buffer. > Depending upon allocated audio buffer size, PTE offset values > will change. > Compared to CZ, Stoney has SRAM memory limitation i.e 48k > It is required to define separate PTE Offset macros for > Stoney. > > Signed-off-by: Vijendar Mukunda > Reviewed-by: Daniel Kurtz > --- > v1->v2: Modified commit message > sound/soc/amd/acp-pcm-dma.c | 26 +++++++++++++++++++------- > sound/soc/amd/acp.h | 5 +++++ > 2 files changed, 24 insertions(+), 7 deletions(-) > > diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/amd/acp-pcm-dma.c > index 862c1cf..39597fb 100644 > --- a/sound/soc/amd/acp-pcm-dma.c > +++ b/sound/soc/amd/acp-pcm-dma.c > @@ -320,13 +320,11 @@ static void config_acp_dma(void __iomem *acp_mmio, > struct audio_substream_data *rtd, > u32 asic_type) > { > - u32 pte_offset, sram_bank; > + u32 sram_bank; > > - if (rtd->direction == SNDRV_PCM_STREAM_PLAYBACK) { > - pte_offset = ACP_PLAYBACK_PTE_OFFSET; > + if (rtd->direction == SNDRV_PCM_STREAM_PLAYBACK) > sram_bank = ACP_SHARED_RAM_BANK_1_ADDRESS; > - } else { > - pte_offset = ACP_CAPTURE_PTE_OFFSET; > + else { > switch (asic_type) { > case CHIP_STONEY: > sram_bank = ACP_SHARED_RAM_BANK_3_ADDRESS; > @@ -336,10 +334,10 @@ static void config_acp_dma(void __iomem *acp_mmio, > } > } > acp_pte_config(acp_mmio, rtd->pg, rtd->num_of_pages, > - pte_offset); > + rtd->pte_offset); > /* Configure System memory <-> ACP SRAM DMA descriptors */ > set_acp_sysmem_dma_descriptors(acp_mmio, rtd->size, > - rtd->direction, pte_offset, > + rtd->direction, rtd->pte_offset, > rtd->ch1, sram_bank, > rtd->dma_dscr_idx_1, asic_type); > /* Configure ACP SRAM <-> I2S DMA descriptors */ > @@ -788,6 +786,13 @@ static int acp_dma_hw_params(struct snd_pcm_substream *substream, > } > > if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { > + switch (adata->asic_type) { > + case CHIP_STONEY: > + rtd->pte_offset = ACP_ST_PLAYBACK_PTE_OFFSET; > + break; > + default: > + rtd->pte_offset = ACP_PLAYBACK_PTE_OFFSET; > + } > rtd->ch1 = SYSRAM_TO_ACP_CH_NUM; > rtd->ch2 = ACP_TO_I2S_DMA_CH_NUM; > rtd->destination = TO_ACP_I2S_1; > @@ -797,6 +802,13 @@ static int acp_dma_hw_params(struct snd_pcm_substream *substream, > mmACP_I2S_TRANSMIT_BYTE_CNT_HIGH; > rtd->byte_cnt_low_reg_offset = mmACP_I2S_TRANSMIT_BYTE_CNT_LOW; > } else { > + switch (adata->asic_type) { > + case CHIP_STONEY: > + rtd->pte_offset = ACP_ST_CAPTURE_PTE_OFFSET; > + break; > + default: > + rtd->pte_offset = ACP_CAPTURE_PTE_OFFSET; > + } > rtd->ch1 = ACP_TO_SYSRAM_CH_NUM; > rtd->ch2 = I2S_TO_ACP_DMA_CH_NUM; > rtd->destination = FROM_ACP_I2S_1; > diff --git a/sound/soc/amd/acp.h b/sound/soc/amd/acp.h > index 82470bc..2f48d1d 100644 > --- a/sound/soc/amd/acp.h > +++ b/sound/soc/amd/acp.h > @@ -10,6 +10,10 @@ > #define ACP_PLAYBACK_PTE_OFFSET 10 > #define ACP_CAPTURE_PTE_OFFSET 0 > > +/* Playback and Capture Offset for Stoney */ > +#define ACP_ST_PLAYBACK_PTE_OFFSET 0x04 > +#define ACP_ST_CAPTURE_PTE_OFFSET 0x00 > + > #define ACP_GARLIC_CNTL_DEFAULT 0x00000FB4 > #define ACP_ONION_CNTL_DEFAULT 0x00000FB4 > > @@ -90,6 +94,7 @@ struct audio_substream_data { > u16 destination; > u16 dma_dscr_idx_1; > u16 dma_dscr_idx_2; > + u32 pte_offset; > u32 byte_cnt_high_reg_offset; > u32 byte_cnt_low_reg_offset; > uint64_t size; >