Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1183433rwi; Wed, 19 Oct 2022 07:37:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM54k+i9xUtJ87nQm359WWboucuGj0iUfX+l4WeibF+QC36AxB7glKvZUUZ+tCWDzOZZy1JA X-Received: by 2002:aa7:c58a:0:b0:459:1511:6cff with SMTP id g10-20020aa7c58a000000b0045915116cffmr7900537edq.27.1666190273139; Wed, 19 Oct 2022 07:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666190273; cv=none; d=google.com; s=arc-20160816; b=DMH3bS9XitB6IT3r+etLnr0F/SySTQJiuVh/jKuXMNreUoXio380TmzpKoXb4IwX4f k0M4hHwK+MUOxGhy4xR37w3Sw/IUtVOFGwu+lA9bvVCf0qVAdS2pQB79KisyHkuPbIJv WHQTev09ub6+vdqlNd15EEMPTOPUs3Kpy37rIuA6de81STdID4OIibMPOTm2QZzbcEQl bVOZtfMWcladIhzkSC0nSo9S5U8WDviLPm0RD2pbRqRlC+erRYAY+Lh+mlItjv2BnB/r St1FYF23RmAPmkbEY7AKtTqLedB6c4QT0cJZDr3+rdxfLpsPalDlskbrjpLn7ehp2fi8 G6qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SXbsEWNBhUU1L4lVMLwLz7bLEuN+NK7ybRvE3b2kBUc=; b=CwXP1pITOyldEd25boCyPgOPIIoB1xg/IEcIeZ8GvuKwO8aODlhBkn+Ve/PONdkPD/ 7NDBtySxhRryNzY3myd8Mzi4kBjsh3yAyOJwZmh0NeoUVvcYnvgxZ0vvIJ+o+52EMgHV ljSka63RL1l1DE9kQRu/JKZvNb+oEvg8R8EiUo6mFqstR/qyTyGQrAgTrdu/hpGIA8Tz znLC8lW5ktnr27aPrnrnZS9C4awYF/GPRbbpa2PE+aMseOgKRzM2Mg9R555Bs9nlYJbU HdZoKNZvBOfXi7rwgWsWKMu+0d1cckRAyF0Tay8KTbf5Q6JEFjCAMswATGKON7SRBeWZ fDPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gaLH3ZvD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg37-20020a170907972500b00791a37e665esi3461604ejc.10.2022.10.19.07.37.26; Wed, 19 Oct 2022 07:37:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gaLH3ZvD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231950AbiJSNTq (ORCPT + 99 others); Wed, 19 Oct 2022 09:19:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233411AbiJSNTS (ORCPT ); Wed, 19 Oct 2022 09:19:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F031A11E471; Wed, 19 Oct 2022 06:05:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DB04E61889; Wed, 19 Oct 2022 13:03:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9F7EC433B5; Wed, 19 Oct 2022 13:03:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666184634; bh=1pJqOYVy1IE3XFK2kqEPNoZQxLsiC1mKsFJO7efGQnY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gaLH3ZvDOut/bfSvsAl07g5wMe09OCvgQfuVrm4YEsImGp+uwHdo8vDShr5cVYe+D x7fvKalEnV5jXy/+AteUCXd0tyXGksC7gL+UZ5z3qzaQzdMVsRrV+oEXmjR45cbdUp GmT1FMoCvO85VVUrGaqC5p9DwakYG8Ps3Aejr+hv7loqeLAKJPEYJxnSseMM89oFxB gJmXJro4lPmBsmpQ0sGNxzC34GXRWUhkFTHADR7uFdHv4CZMZ9ze7PNFs/cungC3Vt ZZL9ujGqdrMd0gPZ72ff6KuKfyxLU+I4C6bv/WhG5spg5FRnjsu7DcPCKtA6KmbQTm EP8scwNGBzhZg== Date: Wed, 19 Oct 2022 18:33:49 +0530 From: Vinod Koul To: Martin =?utf-8?Q?Povi=C5=A1er?= Cc: asahi@lists.linux.dev, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND 2/2] dmaengine: apple-admac: Allocate cache SRAM to channels Message-ID: References: <20221003081053.1826-1-povik+lin@cutebit.org> <20221003081053.1826-2-povik+lin@cutebit.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221003081053.1826-2-povik+lin@cutebit.org> X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03-10-22, 10:10, Martin PoviĊĦer wrote: > There's a previously unknown part of the controller interface: We have > to assign SRAM carveouts to channels to store their in-flight samples > in. So, obtain the size of the SRAM from a read-only register and divide > it into 2K blocks for allocation to channels. The FIFO depths we > configure will always fit into 2K. > > (This fixes audio artifacts during simultaneous playback/capture on > multiple channels -- which looking back is fully accounted for by having > had the caches in the DMA controller overlap in memory.) This fails to apply for me, please rebase and resend... While fixing, I think it would make sense to s/alloced/allocated perhpas and also fix the indent in split lines to align with preceeding brace (hint checkpatch --strict would tell you) -- ~Vinod