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: 692016 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 36C00C7EE2F for ; Mon, 12 Jun 2023 15:32:23 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2BBE6836; Mon, 12 Jun 2023 17:31:31 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2BBE6836 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1686583941; bh=BMw5mqFo/oaAcKUtR5R4qgXLvoe/wsD1sakA3YsDU9g=; h=Date:From:To:Cc:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=Ig74yMoEtpT4JAvUn621OslcmafXuL322gV84ma8gu49BoZjc7zSFneW9aPp3RSdZ l5D27Q7oMC8/LejEDwUD/7tGU/NwlbfoagavIMeVGOvFzNFBWiNsCCrXEZAMk58Og0 an8W60qMy536/NicgPrFIUbcLnRzBK0VDm7X/BQ0= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1D815F80246; Mon, 12 Jun 2023 17:31:05 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 49F6CF80149; Mon, 12 Jun 2023 17:31:05 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2101BF80149; Sun, 11 Jun 2023 01:06:04 +0200 (CEST) Received: from domac.alu.hr (domac.alu.unizg.hr [IPv6:2001:b68:2:2800::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 0A6FEF800ED for ; Sun, 11 Jun 2023 01:05:53 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0A6FEF800ED Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=alu.unizg.hr header.i=@alu.unizg.hr header.a=rsa-sha256 header.s=mail header.b=YxeWwsZV; dkim=pass (2048-bit key) header.d=alu.unizg.hr header.i=@alu.unizg.hr header.a=rsa-sha256 header.s=mail header.b=ooRW3DY9 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-MailFrom: mirsad.todorovac@alu.unizg.hr X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: PALNBXTLN7OLFYHP7W3AEES2DV2M3APN X-Message-ID-Hash: PALNBXTLN7OLFYHP7W3AEES2DV2M3APN X-Mailman-Approved-At: Mon, 12 Jun 2023 15:31:01 +0000 X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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