Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1271160lqz; Mon, 1 Apr 2024 00:07:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0ivaSq62SPs8sNJFHodOTK7Mvs66LPyzrBoM4J0woHbNxaLbql7b1sI5xOQRVT7b+zfX4Sn+WLaN30MKnBe4e+ZzktvzZt44pbOEn9w== X-Google-Smtp-Source: AGHT+IFzZ7vRr0ZCzPhMNKhtrmNC1ImrpudHrsuDfKa+iZ78YIYWSdD1gK4oR0+ayT6eeMi4DuCr X-Received: by 2002:a05:620a:7e4:b0:78b:b5d4:d86e with SMTP id k4-20020a05620a07e400b0078bb5d4d86emr8105828qkk.40.1711955270706; Mon, 01 Apr 2024 00:07:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711955270; cv=pass; d=google.com; s=arc-20160816; b=gW0DJk+jT01Mo39sMLyod4bHuCE/TjW5L2kCVWOcvJYiE5PgBhqqBwZ//ZYkO4PHXg gQt3COArQEuOuDcr1oVZFUof73QUcLPt6RvDfxLjLZVBpF8HRXOkuRAXzphu8RIPzjhS /tVfsEPIeZZZivyLVlUpEYGOqlnBco/b3zCUgfQAcyJBVgPI6mZO5iA5SRcRy3F+dlE+ zsUTUNoTOfTqInSyseIHBGhsCIkXtg9zz+d6WYx1FwRj53bm+7ZSqTk7cY4l8VnEKi1u yWwlE225Wvb7VNj/t/UGzWrh5KaUh/RIfk/Bk7U7tZQD1pjtYaRp98oYNFFNusfLqGJ0 8mkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature; bh=i52Yxm/nY5hizam5kxXaT7uQYvU/I7XuHa8ZoWvq5HE=; fh=K3lhV2WF8EuyXPPvoWAyeaWLVqc6QzVSf3DRUx8abSQ=; b=I0FUoFSFtbSOMdIdE3wYvNPulFZvAwfEWTqiQZbQjtpT5K3tOnsrO02w4YWkD5mBne a0cMjzvjRkfxLtSmbQRprzijuKLcINrfVC55qvqZcxrnjEQyCeY8jSd9AZckKmMt+dL2 nR1ciV0dn9b8JiDvyeRc6LPPCyWsNu1RGpdWu9skyd53l4fZzTHl/rzfGgbKIhRw1FND 76WaLfGokfBYF55l8RUaExu0pdZxvxCiBfIdOiAA8AkEMHuduP1Y4/TCejDBmWdM5cye OgyaEyO1k31AWGOgsX6z4spH0kxTaPM7zu/b70rPagkLLCNmfRFKFMe9WnwkVeFCdPY/ hEEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=vxCmglZw; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-126488-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126488-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b25-20020a05620a119900b007886d6a333bsi9102646qkk.351.2024.04.01.00.07.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 00:07:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126488-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=vxCmglZw; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-126488-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126488-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6EA031C20D80 for ; Mon, 1 Apr 2024 07:07:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65960B671; Mon, 1 Apr 2024 07:07:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="vxCmglZw"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="9kDpKOM2" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 792639468; Mon, 1 Apr 2024 07:07:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711955265; cv=none; b=L9lnnOcTcREq047H+QYB22XJ7TZ4GfKB4Sa5EI6ATvWCSabXkijATY4KKfEdN7xWklFlNjbnBemtUvBEf3f7Jj7OuE98x3u3p0mJADQx4zcrAeFUROfUTdkwOf3+OrWhqwk1XkZ5IX3698102JA6BtSsN8o7+itKxqvbFYYhLc0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711955265; c=relaxed/simple; bh=dVDH2ru8zx7ARrYDcg9bt/4QbbK1H+rD7UOIXtsFGH0=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=pTweOTcTUQ/fH02i8AS5lKnsnxLqwB8WoGJQKqJ6KRupgC7LdTCv6noi6l6cEvUocg6mT1HpO/sIjMaoEdXQxb/aE40UFnHC1N0fBFHhwifldogTey0hM1tA1fUxSTSEZ5f10DShuJ3hDpn5ZQWFbENbb+P3dDRrIep8Y2mtRnU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=vxCmglZw; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=9kDpKOM2; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (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-out2.suse.de (Postfix) with ESMTPS id 2F7E91FF6F; Mon, 1 Apr 2024 07:07:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1711955256; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=i52Yxm/nY5hizam5kxXaT7uQYvU/I7XuHa8ZoWvq5HE=; b=vxCmglZw9kxtcTQzcB8PvtT4ilf6Dm24tZJGT0kGjF+mG+W9lYB6q7rn3ZmUp/KdLk2JNw RzJ4eHSYHPDfZRJ7ArSV+w/YQf3u4LZZpb9fBRn6ZZexuN4L4QfTk9J26goi3dT59ZpN35 Se+MIS1Ck/EVYEVATvHuXYt1eWIJZsc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1711955256; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=i52Yxm/nY5hizam5kxXaT7uQYvU/I7XuHa8ZoWvq5HE=; b=9kDpKOM2KOB6MroD7+76OnBpplDMxiuImoM552gB6Z34+nAk4i9Qy5Hrngn3zdILddZJav IARzHSEufDgCvwAQ== Authentication-Results: smtp-out2.suse.de; dkim=none Received: from imap2.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 imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 02B541348C; Mon, 1 Apr 2024 07:07:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap2.dmz-prg2.suse.org with ESMTPSA id qM5hOjddCmbkRgAAn2gu4w (envelope-from ); Mon, 01 Apr 2024 07:07:35 +0000 Date: Mon, 01 Apr 2024 09:07:40 +0200 Message-ID: <874jcl7e83.wl-tiwai@suse.de> From: Takashi Iwai To: Mikhail Gavrilov Cc: Takashi Iwai , Linux List Kernel Mailing , linux-sound@vger.kernel.org Subject: Re: regression/bisected/6.9 commit 587d67fd929ad89801bcc429675bda90d53f6592 decrease 30% of gaming performance In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spam-Flag: NO X-Rspamd-Action: no action X-Spamd-Result: default: False [0.69 / 50.00]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_SHORT(-0.20)[-0.988]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; BAYES_HAM(-0.00)[31.89%]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FREEMAIL_TO(0.00)[gmail.com]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:98:from]; R_DKIM_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TAGGED_RCPT(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap2.dmz-prg2.suse.org:rdns,imap2.dmz-prg2.suse.org:helo] X-Spam-Level: X-Spam-Score: 0.69 X-Spamd-Bar: / X-Rspamd-Queue-Id: 2F7E91FF6F On Sun, 31 Mar 2024 22:21:20 +0200, Mikhail Gavrilov wrote: > > Hi, > > I spotted that FPS was around 122 [1] in the Shadow of the Tomb Raider > benchmark at commit f6cef5f8c37f but after moving to commit > 4ae3dc83b047 it decreased to 84 [2]. > > I bisected it and the first bad commit was 587d67fd929a. > Author: Takashi Iwai > Date: Fri Mar 15 11:14:42 2024 +0100 > > ALSA: timer: Fix missing irq-disable at closing > > The conversion to guard macro dropped the irq-disablement at closing > mistakenly, which may lead to a race. Fix it. > > Fixes: beb45974dd49 ("ALSA: timer: Use guard() for locking") > Reported-by: syzbot+28c1a5a5b041a754b947@syzkaller.appspotmail.com > Closes: http://lore.kernel.org/r/0000000000000b9a510613b0145f@google.com > Message-ID: <20240315101447.18395-1-tiwai@suse.de> > Signed-off-by: Takashi Iwai > > sound/core/timer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > To make sure of this I builded kernel at commit 712e14250dd2 with > revert 587d67fd929a and the benchmarking result was returned to best > observed by me. > > [1] good results - https://postimg.cc/G4NPHMyk > [2] bad results - https://postimg.cc/1n0D7sYH > > I attached here my build .config and kernel log. > Is it possible to find a better approach than 587d67fd929a? Is it a regression against the performance on 6.8? If so, what happens when you revert both this (587d67fd929a) and beb45974dd49? That should make the timer code back to 6.8 code. Takashi