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: 691561 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 B7D55C77B7A for ; Sat, 10 Jun 2023 23:06:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232387AbjFJXGM (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org 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