Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1484232rdb; Wed, 6 Dec 2023 23:33:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFrYzQTHPXe4E3afFAkU6CO/eP2kghSbsUaVYWzfAk5ysnb2IvIQzr8cET/s0mWWgOF36od X-Received: by 2002:a17:902:d4c9:b0:1d0:ad56:d879 with SMTP id o9-20020a170902d4c900b001d0ad56d879mr2357882plg.14.1701934431801; Wed, 06 Dec 2023 23:33:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701934431; cv=none; d=google.com; s=arc-20160816; b=w/r9F/wpOe0/n/jltcQJucb1+kgWScDfe8GzGdaI8QY7tHhVMoMssQf9bjhTrtVKNj Ruis8MdM/6qqJ0GWlRIDGnrh8bU0ZX/e+YtJRaajkSNT6C14XamA8WakNV/t2COWL/ch hKXlE7FE3AXCRvwKNWtouLhzeom6QDPsAYSV72DObYejiGOw5MX6qif0XPePrVRCi40R W+moKnYoRsh9FSKwG5reWJwp4lLwjgiBIcxkvLAymmSBkUDkIwEE3URc5lsqxA3+S/SL ukbdkwVPRHBTStEmEVs2rgDPwxjbzD0P8BrIoph+hofN/+KU364qVxwAvNgSs2kPwb0r /sfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=Z5BZ4vPEsqe9rl5cjj7UJBJlSHiv/TcvopXj5+BS7Nk=; fh=e/ZsPtzEweRMqYIUPUIOJAzY1n6SBCZ3g7deVzL5cxA=; b=vpaOtAH3SW3AY+MD3g9q/TVxrkOmAtReiWgAHDn0MaRnhamqJ3SJ89AEKm0c8NeHZD cG3m4oHlvBTGNS3BOHBto083lLs7xpOROu3/PW6PoBkaYP4kFOD/iKHePLzJxs70ilNg UYZdApAYDoXpAIX0AAn2mvLVGg9rZkQL+8hea2syifJDWMznbI43OrC3g0yf7kfCyexa 1cfyzp8R2XCX9Q468OztDZ3ZaYFfom0vVP+UdBjaxOA444o3c6ABYNMDJqkTpbVdLOmI G9NyK0nb85PcBeG9da97Pq/w9NApxSTVwomG0AY7TxfSvwGnqcc50MaOZZWyYqJdj5f+ NTFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id d7-20020a170902cec700b001cfdfa28b70si654594plg.469.2023.12.06.23.33.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 23:33:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 8881D80DF9BC; Wed, 6 Dec 2023 23:33:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229966AbjLGHdd (ORCPT + 99 others); Thu, 7 Dec 2023 02:33:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbjLGHdc (ORCPT ); Thu, 7 Dec 2023 02:33:32 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04853122; Wed, 6 Dec 2023 23:33:39 -0800 (PST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (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 smtp-out1.suse.de (Postfix) with ESMTPS id 9A0A022075; Thu, 7 Dec 2023 07:33:37 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (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 imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 632AE13B6A; Thu, 7 Dec 2023 07:33:37 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id u1DHFVF1cWWhHAAAD6G6ig (envelope-from ); Thu, 07 Dec 2023 07:33:37 +0000 Date: Thu, 07 Dec 2023 08:33:36 +0100 Message-ID: <87ttou1n73.wl-tiwai@suse.de> From: Takashi Iwai To: Ivan Orlov Cc: tiwai@suse.com, perex@perex.cz, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] ALSA: pcmtest: stop timer before buffer is released In-Reply-To: <20231206223211.12761-1-ivan.orlov0322@gmail.com> References: <20231206223211.12761-1-ivan.orlov0322@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 9A0A022075 X-Spam-Score: 2.43 X-Spamd-Result: default: False [2.43 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; BAYES_HAM(-0.06)[61.30%]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_SOFTFAIL(0.00)[~all:c]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[]; MID_CONTAINS_FROM(1.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[]; DMARC_POLICY_SOFTFAIL(0.10)[suse.de : No valid SPF, No valid DKIM,none] X-Spamd-Bar: ++ Authentication-Results: smtp-out1.suse.de; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=suse.de (policy=none); spf=softfail (smtp-out1.suse.de: 2a07:de40:b281:104:10:150:64:97 is neither permitted nor denied by domain of tiwai@suse.de) smtp.mailfrom=tiwai@suse.de X-Rspamd-Server: rspamd1 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 06 Dec 2023 23:33:49 -0800 (PST) On Wed, 06 Dec 2023 23:32:11 +0100, Ivan Orlov wrote: > > Stop timer in the 'trigger' and 'sync_stop' callbacks since we want > the timer to be stopped before the DMA buffer is released. Otherwise, > it could trigger a kernel panic in some circumstances, for instance > when the DMA buffer is already released but the timer callback is > still running. > > Signed-off-by: Ivan Orlov Thanks, applied now. Takashi