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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C387BEB64D7 for ; Wed, 21 Jun 2023 16:03:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231712AbjFUQDc (ORCPT ); Wed, 21 Jun 2023 12:03:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbjFUQDa (ORCPT ); Wed, 21 Jun 2023 12:03:30 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C86595; Wed, 21 Jun 2023 09:03:29 -0700 (PDT) Received: from notapiano (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 6FD016602B7B; Wed, 21 Jun 2023 17:03:26 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1687363408; bh=PYMTdbVF2PMr4ZhHNAxwUqn6dETM9Y5e8rTc5YEuElE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZH47d6tx1IAY9eICX09S/l0nMoX7geEWUVBWBlDjMVBWGrYo3F9BeP0EQseXgLsdS qI73pj1x+d6ohBsGebvhDWx6b0UlCIq5lvU3viVJi0WnXZkS+aXvavaWSZRlBUfzP3 z8LuuP4nfH2IeTNzucIfxq8KLFCo9Tf9TpGqVvFWLHzugNvhI6b/+n0xdncg1NETV4 J7X3rqOAMbAb6ZVQ8yHRFj+BHL9ADIEtSXKLVO7eAb7Tp2+gK2cM89D1SVHKYnNqSf q2EJUEGNf5KwgABniY9lkrieQ7bQ2n3RhY/Pb1hYl1WkqzFL90tNqxcE6qtd2Gj4j8 qUWkEed7QRPHA== Date: Wed, 21 Jun 2023 12:03:22 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Mark Brown Cc: Jaroslav Kysela , 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 Subject: Re: [PATCH 2/2] kselftest/alsa: pcm-test: Decrease stream duration from 4 to 2 seconds Message-ID: <5c2d5213-5299-44f1-9611-26002c8a5d3a@notapiano> References: <20230620220839.2215057-1-nfraprado@collabora.com> <20230620220839.2215057-3-nfraprado@collabora.com> <33bea0d3-b8dd-4936-812e-392166df4437@sirena.org.uk> <443f697b-fecf-6e8e-0b76-65257aff7da8@perex.cz> <9069ad0c-d166-4620-a3de-a36ab233cab0@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9069ad0c-d166-4620-a3de-a36ab233cab0@sirena.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 21, 2023 at 03:39:12PM +0100, Mark Brown wrote: > On Wed, Jun 21, 2023 at 04:08:47PM +0200, Jaroslav Kysela wrote: > > > 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. > > I tend to agree here, unfortunately Shuah hasn't responded to queries > from Nícolas about this which I imagine is what inspired this patch. We > also have problems with mixer-test on one of the Dialog CODECs with a > couple of 64k value controls and no cache only mode. Yes, exactly. I've tried increasing the timeout for this test to a larger fixed value previously, and later asked for more information on how to deal with the kselftest timeout. [1] Since I didn't hear back, I thought this patch would be a way to at least mitigate the issue for now, without limiting the test coverage, which was a concern with having limited scopes for the test. I've just noticed that in the mean time a way to override the timeout when running kselftest has been introduced [2], so I suppose we could use that to work around the timeout limitation in CI systems and be able to run through completion on the different hardware at the lab. But I still believe, like you do, that calculating the timeout at runtime based on the hardware would make much more sense, though if there's such a desire to keep kselftests under the 45s mark, I'm not sure if it would be acceptable. [1] https://lore.kernel.org/all/5302e70d-cb58-4e70-b44f-ff81b138a2e1@notapiano/ [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f6a01213e3f8 Thanks, Nícolas