Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9619173rwd; Wed, 21 Jun 2023 09:34:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6/6J3vMATuQ7Djnne7L3KOwEQbb/R6WyOp2R+B0RUbZWCu7L2eAoGYp9JMDWxoQTQbw5uG X-Received: by 2002:a05:6a20:7f82:b0:11a:efaa:eb43 with SMTP id d2-20020a056a207f8200b0011aefaaeb43mr16917239pzj.3.1687365266866; Wed, 21 Jun 2023 09:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687365266; cv=none; d=google.com; s=arc-20160816; b=uYdibRfgxWXSlk4hxMQpyTa2i2ddIb2745lakdfmE+o1lI0E8ZG4FZ8tCCM3/itPCu ikxOx0xNfBDSe8HtF9QVQrrUwbNszbRwoffSUGQSW+MUn8+kUGi6WqbJxOd9NhzcEHzl 2ST2k4yasxHBxdPlU5tODRtqLqza63iWciVQIHRu+GZ6zgXANTfMZmp/Wx+WyFnEniFk 22Jvaohv6q1gKO0vuyJeUBWh7XnOMd8ulMcGOBsXocY/7NmiZsQoSDiC+sUmM+CZdwvL zQieS3hRYVJAjN0XLCbuT+NQQaU/P7pANx+HW+mhhFOE8FAnclgT1MhI+bMqOH42Dxcn Wl8g== 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=KDYyIdYI36+vQH8pyZqwCzIOhgCc93aIdCoVBO7FmI8=; b=U68X36cbn9gbR0/maCRFiAqL6sXbxjwpFsTboWwfJX+XWZagPz6sSEQ3ONjMn6Q+IE xR7S09esq0GQoTOuaqukfUoB9kJOWKxDMXAzTuBkMoN8TrOQimdw96BBMzRA/DJUS8Tn zb92U+oTvRYyBOkIOHLAbDwERsMlv43fnIMk/UYiJex42CpU6ouUjIvuCvYBRsgs/p1b 3aMFGtQOTrHWDMwLrDuN/Xl0BzR/tS6QDk26N/xBK60ahp+rD7aE/RgaU9RePvkiM9Wv FdueizlQSwlt5lRK8f0hAOtobzNA8jAnRcq9iGCTvgblQXhupIgP7SvQaqipyleZ0Zza RtzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZH47d6tx; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y1-20020aa79ae1000000b006687a9c88b4si669807pfp.232.2023.06.21.09.34.14; Wed, 21 Jun 2023 09:34:26 -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=@collabora.com header.s=mail header.b=ZH47d6tx; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230199AbjFUQDc (ORCPT + 99 others); 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> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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 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