From patchwork Sat Jun 10 23:05:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirsad Todorovac X-Patchwork-Id: 106024 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1776454vqr; Sat, 10 Jun 2023 16:19:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/y3jWe7p4o/BP4VoCEzCrcFW8BEF72WVXWYHqSlCs9H1ufnG7xESXYRZfejpd2BhSzopN X-Received: by 2002:a17:907:3f82:b0:96a:48ed:5333 with SMTP id hr2-20020a1709073f8200b0096a48ed5333mr6179342ejc.50.1686439196812; Sat, 10 Jun 2023 16:19:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686439196; cv=none; d=google.com; s=arc-20160816; b=00+5jqc7Z33MpcBZmM8TaVzdotVH+I7I40h9yEomxWjV44nAH51HFVhJKWEWiCmwQA GGsy6ojP5UxJXQ6IRb/R7IUKXPVzf7eMUcL0D7Qe9pyBb33o+3KaIpX76abP04jfTLex yL5idfgl0mE4rf+0c/GzrJwf1zJlypmyIeefbNmD+04n4VEY0qO1i8SB4IqEVVK6kdku f6M6xalY49seSsRRRYxh4hjxa+YhKa4UCFi8Kg1j1pho013CXOZWNBNK2ISV7S+X6giK RIacJN77pC5DW8+BBxN9GgW5OHv8wqtnb47gXtcFZrxS0AcBTswk8GMaCEu/tuFyPTzO uV3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:content-language:from:user-agent :mime-version:date:message-id:dkim-signature:dkim-signature; bh=238B9HOiE6ahCx2ZwA0tAfQ3cVR3sXTx+QNgfGoLX5g=; b=kZ0WrWSEg2/b/vwKVUIinAuPpdNAeqS0Bw5K3mM3p6D/CPb4NPfTIIHoTM3XgFZ44T PF/amSPF1NHU6o9UvkrbNTIo5VR0r8d7GA/TupJQOlefcVHjL91nCUO5xT4Fcwru/g+u JWUBEakzwOGFrMmhbKjLjvWIOPswPpyhF7BxbVcQA1MWRoSl9m5hibkUQ2cECeL2jTEY /VqtlNvjDXUyTdBOal3WTMmh7p6/W7vu9DQvkLE4/pN56v1XWo/95mRA+XHtJhOG87/G 4TbxDUVt1Tz9h61V1NFMi286LQR0EFvEHWvwMSq4cHavm0CpMDqpqCZSfVA9FG1RfozB 40Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=YxeWwsZV; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=ooRW3DY9; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j24-20020a170906051800b0096f7e6c778dsi3587705eja.841.2023.06.10.16.19.27; Sat, 10 Jun 2023 16:19:56 -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=fail header.i=@alu.unizg.hr header.s=mail header.b=YxeWwsZV; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=ooRW3DY9; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232693AbjFJXGM (ORCPT + 99 others); Sat, 10 Jun 2023 19:06:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232369AbjFJXGK (ORCPT ); Sat, 10 Jun 2023 19:06:10 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [161.53.235.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9313A35B8; Sat, 10 Jun 2023 16:06:04 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 68D0C60161; Sun, 11 Jun 2023 01:05:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1686438351; bh=BMw5mqFo/oaAcKUtR5R4qgXLvoe/wsD1sakA3YsDU9g=; h=Date:From:To:Cc:Subject:From; b=YxeWwsZVMey17pYGNp76t3lsrUHjefm8eD5oh/WEBsIWGT9HEAP5eVcrrDzTBFPdn M/bwIA56X2BuWu+u2byWVjprSZnZoHIlM0WdJRFnTy84JPmtWEUaEWS6AnqNmhXcnJ CNX3/PW8lnEdL3WPGb5Bt4fuEs2d/cm3oguRm5+p2APXIwZMRqS9J3IzRWHRMOxcOC d3Z55JinApu3FcONwY95bJbBGj/MG9+ZGzF3suB4NaGlUdMLzoWzhQXs3N7eNTMrD+ DnRWJkXtuReL6Ef3zF71KzXa4U/sWsRTpRhKm8/X02h7R7k0UH8m0NTm9O10yja5TD S0Lza8XGKSsVg== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 40oQhoNSF5C9; Sun, 11 Jun 2023 01:05:48 +0200 (CEST) Received: from [192.168.1.6] (unknown [77.237.113.62]) by domac.alu.hr (Postfix) with ESMTPSA id 7AC076015F; Sun, 11 Jun 2023 01:05:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1686438348; bh=BMw5mqFo/oaAcKUtR5R4qgXLvoe/wsD1sakA3YsDU9g=; h=Date:From:To:Cc:Subject:From; b=ooRW3DY9d9plQT6mGXr+3vyMRzCdNQBIXl0OBmGDIAb2OBxHvgOzcNs5Bonn759O7 gZ2vp8QyrAYTCaVTM3PvNkQHNi6fyiT3f0d3qMjHfsDXP7su2VOi486y67Q0Fkf5rZ ksNyr9Wf2hyxr6EQPOm2iI1TR8hYE9+8DVldfI29Ig9Y890nvAr/DL0XCwThGy578D OBp8w3v4WCvHpdTCOVC9ZTi+TSNqsBJ4xM9zRPLEUwSfOIpUjR5BR6LCUgKpSByeZ7 ezm5KCkD2+DPOpVUgilZ7l8r+kA2Ch02DTu2hJ9q3kn2We8oGooS1sLnlLzUFtuQF9 FiIhTo1/Zdbgw== Message-ID: <75d7d31d-3637-090d-0061-ccb8d17388e4@alu.unizg.hr> Date: Sun, 11 Jun 2023 01:05:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 From: Mirsad Goran Todorovac Content-Language: en-US To: alsa-devel@alsa-project.org, linux-kselftest@vger.kernel.org Cc: Mark Brown , Jaroslav Kysela , Takashi Iwai , Shuah Khan , linux-kernel@vger.kernel.org Subject: [BUG] selftests: alsa: pcm-test: premature timeout severs the test X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768359667296151016?= X-GMAIL-MSGID: =?utf-8?q?1768359667296151016?= Hi, On several platforms, and for some time, I've noticed alsa: pcm-test TIMEOUT. I have tried to increase the timeout in selftests/alsa/settings: timeout=300, so I think there is no more purpose to further increase it, so something appears generally stuck. The test runs up to "default.time4.1.8 section where it hangs for more than 200 seconds, possibly indefinitely. The output of the selftest is: # # default.time3.1.8.0.PLAYBACK - 44.1kHz stereo large periods # # default.time3.1.8.0.PLAYBACK hw_params.RW_INTERLEAVED.S16_LE.44100.2.22496.202464 sw_params.202464 # ok 61 default.time3.0.3.0.PLAYBACK # # default.time4.0.3.0.PLAYBACK - 48kHz stereo small periods # # default.time4.0.3.0.PLAYBACK hw_params.RW_INTERLEAVED.S16_LE.48000.2.512.4096 sw_params.4096 # ok 62 default.time4.0.3.0.PLAYBACK # # default.time5.0.3.0.PLAYBACK - 48kHz stereo large periods # # default.time5.0.3.0.PLAYBACK hw_params.RW_INTERLEAVED.S16_LE.48000.2.24000.192000 sw_params.192000 # ok 63 default.time5.0.3.0.PLAYBACK # # default.time6.0.3.0.PLAYBACK - 48kHz 6 channel large periods # # default.time6.0.3.0.PLAYBACK hw_params.RW_INTERLEAVED.S16_LE.48000.2.48000.576000 sw_params.576000 # ok 64 default.time6.0.3.0.PLAYBACK # # default.time7.0.3.0.PLAYBACK - 96kHz stereo large periods # # default.time7.0.3.0.PLAYBACK hw_params.RW_INTERLEAVED.S16_LE.96000.2.48000.192000 sw_params.192000 # not ok 65 default.time3.1.8.0.PLAYBACK # # time mismatch: expected 4000ms got 17005 # # default.time4.1.8.# not ok 2 selftests: alsa: pcm-test # TIMEOUT 300 seconds The platform is AMD Ryzen 9 assembled box with AsRock mainboard. Config and Lshw attached. CONTINUED: Just to test further, I have increased timeout even further, to 400 seconds. Only then the test passed, but with numerous errors, and this is Ryzen 9, so I guess it can only be worse on hardware like i3 or i5. But many subtests failed, so I am submitting the entire test log (due to mailing list constraints to 100K size of attachments, it is compressed). Best regards, Mirsad -------------- diff -u /dev/null tools/testing/selftests/alsa/settings --- /dev/null 2023-06-11 00:36:30.651447094 +0200 +++ tools/testing/selftests/alsa/settings 2023-06-11 00:37:32.067504069 +0200 @@ -0,0 +1 @@ +timeout=400