Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9441744rwd; Wed, 21 Jun 2023 07:31:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5jipuMU7HLHQp1WfoZVm2ZpxYfE21Q2op0+nS2aBrjM/ZTuMQ3/e/WdxWc163eekDGO3fM X-Received: by 2002:a05:6a00:1a89:b0:668:7744:10f5 with SMTP id e9-20020a056a001a8900b00668774410f5mr8552228pfv.10.1687357871013; Wed, 21 Jun 2023 07:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687357870; cv=none; d=google.com; s=arc-20160816; b=y7Mi4y1k+HJkG41okOh4OXjdLBh/mTRZSi7GTJJiBY1eXWg9H7Soshp8DCViAGCid1 3CUY6XwQ7NqmcvF9ykbOW8m4DRHNa/mjW/ZFTogn8MYaK7uR07x5nukERLg1aj8rffku Qw8lwuvtY78Ju6NZwS5uyNNKtLEStublYe3JJ4X0ObOaGFQot2eEwa17YWnkDKL1RWdL 0tNCxR9obW/qeA3SBeNSY3I42wyUVvUhcSPjVWWFX7wA72dO5KxS1Xp4kd6m6FTUtsro MVTPvtL38P1TUpuvvMp0j05u91vDZpBEyWsglrGRkA3KZbJAD9utLvWrrufLf6/em7qP JHAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature:dkim-filter; bh=hWXdhsVQpB/+odxLGC42YI96+2wDIp0AX9bS19+Gdls=; b=YEjNBehb1aGcTIDbRc+txE5GI3ppYxxnZjzDkYhl1/eHJRmp48zzamUDd7ANIHDvnt rzrd5s3hnAZzcEI5Jm7fljD3qmVqF8WJcRxSNIB0yW57X/CKTQE3o9AyM6gBBKfM+sTM ytQhugXoJKY00BGON2BeOpjp6v3UehxbaS8L4yibLD0OjSH+muDqOVuQVE1zJ7cjUffq D+YwlD7LP3fl9lbVXQvkkgTTGN4hGQS56L31WbiA66xcLMPosFVDYtCp9FlTDTNpvQZ7 t7OE056FTexwBlz66R7Xeh6D2Jsca+5JeWZYQdHlVJCyIVD4y3Gqcn9nYQGu88xacihc RQ0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@perex.cz header.s=default header.b=hRxm4Wly; 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=perex.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b188-20020a621bc5000000b006695704e631si3151402pfb.176.2023.06.21.07.30.44; Wed, 21 Jun 2023 07:31:09 -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=@perex.cz header.s=default header.b=hRxm4Wly; 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=perex.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232579AbjFUOJW (ORCPT + 99 others); Wed, 21 Jun 2023 10:09:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232042AbjFUOJH (ORCPT ); Wed, 21 Jun 2023 10:09:07 -0400 Received: from mail1.perex.cz (mail1.perex.cz [77.48.224.245]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AC3719A9; Wed, 21 Jun 2023 07:09:01 -0700 (PDT) Received: from mail1.perex.cz (localhost [127.0.0.1]) by smtp1.perex.cz (Perex's E-mail Delivery System) with ESMTP id 762631E36; Wed, 21 Jun 2023 16:08:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.perex.cz 762631E36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=perex.cz; s=default; t=1687356537; bh=hWXdhsVQpB/+odxLGC42YI96+2wDIp0AX9bS19+Gdls=; h=Date:To:Cc:References:From:Subject:In-Reply-To:From; b=hRxm4WlyJw2csmDx+4MIHfUDNvERGecyaCSIxZONPgugcwVP2EkzFT0MtkQimGTzQ p2SQK9SuEZdc6vsQGGJLj712XnD/+bHpNaqzyPhyRDm3oa8c5e+3dIFxRb5+T1l8z0 BeqR/fZQCBqx+siJoyuTH6gKZhg9OUiLUMfi+a4s= Received: from [192.168.100.98] (unknown [192.168.100.98]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: perex) by mail1.perex.cz (Perex's E-mail Delivery System) with ESMTPSA; Wed, 21 Jun 2023 16:08:48 +0200 (CEST) Message-ID: <443f697b-fecf-6e8e-0b76-65257aff7da8@perex.cz> Date: Wed, 21 Jun 2023 16:08:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Content-Language: en-US To: Mark Brown , =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Cc: kernel@collabora.com, AngeloGioacchino Del Regno , Shuah Khan , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20230620220839.2215057-1-nfraprado@collabora.com> <20230620220839.2215057-3-nfraprado@collabora.com> <33bea0d3-b8dd-4936-812e-392166df4437@sirena.org.uk> From: Jaroslav Kysela Subject: Re: [PATCH 2/2] kselftest/alsa: pcm-test: Decrease stream duration from 4 to 2 seconds In-Reply-To: <33bea0d3-b8dd-4936-812e-392166df4437@sirena.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 21. 06. 23 15:08, Mark Brown wrote: > On Tue, Jun 20, 2023 at 06:08:26PM -0400, NĂ­colas F. R. A. Prado wrote: > >> - const int duration_s = 4, margin_ms = 100; >> + const int duration_s = 2, margin_ms = 100; > > This doesn't scale the margin with the duration which will affect the > sensitivity of the test to misclocking. It should make it less > sensitive which is *probably* safer but at least worth noting. > > We might also have issues with some of the lower sample rates, IIRC some > devices are constrained in ways that mean they want a minimum buffer > size which is harder to satisfy with very short playbacks and low sample > rates. > > I don't know why Jaroslav picked the 4s number here. You basically replied yourself. The values (time + margin) were picked to do the DMA test for a reasonable time - based on my experience. I think that the problem is somewhere else here. The overall test timeout should be calculated dynamically. All tests may be queried for the maximal expected interval based on the hardware/software capabilities. It's a bit pitfall to have a fixed time limit where the realtime tests depend on the number of devices. Jaroslav -- Jaroslav Kysela Linux Sound Maintainer; ALSA Project; Red Hat, Inc.