Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1980680lqa; Tue, 30 Apr 2024 05:22:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrTH4jv8n0bcUw75fKCxHRqxr0yQ7aOKrpfgheLSgTxQimJnYxo2Z+p1zmX+yIl6C80Bk9quvNv25B4MdgdWmN3AlkQAhYC1hBb0gFoQ== X-Google-Smtp-Source: AGHT+IGRnmoqIkdpYfDK0OKYg8ihuIjLonv1vrgBD41m3+8bVXLplFUsiS3zb3vXNROb9j56Ea1w X-Received: by 2002:a17:906:164a:b0:a56:62ed:c33d with SMTP id n10-20020a170906164a00b00a5662edc33dmr10415318ejd.62.1714479736643; Tue, 30 Apr 2024 05:22:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714479736; cv=pass; d=google.com; s=arc-20160816; b=q61xLsNMubhRly24wa+P4bEI2si6E5UCv6cTSp3W9Of4t7L2ZTRXom7Ejf/3I7jUdd nZxA+HXDdZrTPe2BffKu7sjrtn8DWw4S/HnodmuDW42+aTIZHn4HkH4NG1t8w3fwbG3w VYGDD9JzFc3Hz6hvwqHow85b1jJP7IjNXk9ipWGORMRrLAG18fi5Yi9Q4HAIxHtMFVX/ DI4uPuoGGkpqMOvM5/jirsVelHRz022vznLOdrAN2OyOTDbonEESeBtIsI/cBqJ2IBAa dIobwKyMB4nJwWPULVQIWKe+AnNeyUsQblXo4gQDM+MjYfsVIhphFZkriSOdl9yFiIqc lzeQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding: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 :dkim-signature:dkim-signature; bh=DYzILj7G3DDHTdpeslHvGKR36PqiiumYG/XzPBAZkPk=; fh=K3lhV2WF8EuyXPPvoWAyeaWLVqc6QzVSf3DRUx8abSQ=; b=pGnjLh9thbScF3TMfWBG+JE3vFdnmvXKkN0FcUH9HdY6I4fAV0oSPkqq0lBbVnQvHC 7qYWRp2gVpi6s8NLeghLgmF7IGHfxtJMyxAz67g9Yqcwb780z3o6IkPsgXRMIwAjp1fi Q4hVMFkj4TbEpoy+zljo7k8vKYGHSZRSrM28zrx9hUlnqoINYubRxbiqI66LSPZ8wxnM o1i19uDse0YEGYvDh9w6Ukx0jwtflcXUXE25Kma4a6ad4a+CUrJnS25m+uTYrP/c4IJO 4M73ICS735a5qn2rP0rjUBY1NCxQ3mmp6qazETjolBPqG1wHeYiFZRK8WfuhrUsArs4U MVJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qwNc6rkY; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qwNc6rkY; 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 dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-163902-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163902-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 24-20020a170906319800b00a558a9e3dd8si14265408ejy.853.2024.04.30.05.22.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 05:22:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163902-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qwNc6rkY; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qwNc6rkY; 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 dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-163902-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163902-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 am.mirrors.kernel.org (Postfix) with ESMTPS id EAC421F23DF0 for ; Tue, 30 Apr 2024 12:12:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EC9813D62E; Tue, 30 Apr 2024 12:12:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="qwNc6rkY"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="ZsGFxiLM"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="qwNc6rkY"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="ZsGFxiLM" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 9855D168A9; Tue, 30 Apr 2024 12:12:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714479135; cv=none; b=Qy7FhSwvFi/qvrvnJVVGAH+VkZ7Bx13sZQRXmFMUtARIfpmQr0czCqRJI8aRh+kcVbzDoC3nGZh9FTBAWh05FT3lTQYlKfu74AiC520xLkSgCfYF8WpzygVexFLat8I52tPrTtYlO8271bxSVWHHg4ItCxyLhBC1W8PlWFAcxEc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714479135; c=relaxed/simple; bh=hJm9DDBBeDPeOGhUdgcevRiGerimoe1kP5QSDiYDWt4=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=jdLDoiirJb7WZdv1shmcvmJ8+/PImcxx/9fFEGskWbXQcOn/WNgU++9SW1/NH8CM+vXaHlEhTzZUb7HfeN4aOe/6XQXnf+iWejIjT9/kfA693MMXzpq+SIV6FlnTFsJGJtBV4k10YxbPBiNPA1mwNaD0bvM6Qzv7nCewEObvokg= 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=qwNc6rkY; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=ZsGFxiLM; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=qwNc6rkY; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=ZsGFxiLM; arc=none smtp.client-ip=195.135.223.130 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 imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [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 AE34533FC3; Tue, 30 Apr 2024 12:12:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1714479131; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DYzILj7G3DDHTdpeslHvGKR36PqiiumYG/XzPBAZkPk=; b=qwNc6rkYl95dVOBqRQzy+uG4A8MXJj7kkQZrRPRmpfGaIgMrayOUUkFdi20F1kDGv0DDwv eKIc4ZbNCiQu8p00oiX8rhS+USrxuYY62ZcIVAR4pzIkqHxexc2Pz+mJHSdpJc1l2cBF73 ObDfwNUzZ/IUxZQBti7reE9pVLYUVPI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1714479131; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DYzILj7G3DDHTdpeslHvGKR36PqiiumYG/XzPBAZkPk=; b=ZsGFxiLM81pMLOrrkbgBDdqt/aimWCGbMJWQvIF8NcneepHLCeex8Doivb6E+i1GVAnhPL o+bhytX8yIaPukDQ== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1714479131; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DYzILj7G3DDHTdpeslHvGKR36PqiiumYG/XzPBAZkPk=; b=qwNc6rkYl95dVOBqRQzy+uG4A8MXJj7kkQZrRPRmpfGaIgMrayOUUkFdi20F1kDGv0DDwv eKIc4ZbNCiQu8p00oiX8rhS+USrxuYY62ZcIVAR4pzIkqHxexc2Pz+mJHSdpJc1l2cBF73 ObDfwNUzZ/IUxZQBti7reE9pVLYUVPI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1714479131; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DYzILj7G3DDHTdpeslHvGKR36PqiiumYG/XzPBAZkPk=; b=ZsGFxiLM81pMLOrrkbgBDdqt/aimWCGbMJWQvIF8NcneepHLCeex8Doivb6E+i1GVAnhPL o+bhytX8yIaPukDQ== 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 966EC136A8; Tue, 30 Apr 2024 12:12:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id qkC4IxvgMGa+GAAAD6G6ig (envelope-from ); Tue, 30 Apr 2024 12:12:11 +0000 Date: Tue, 30 Apr 2024 14:12:23 +0200 Message-ID: <87r0enm4m0.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: <874jcl7e83.wl-tiwai@suse.de> <87v851e2di.wl-tiwai@suse.de> <87h6glt9zc.wl-tiwai@suse.de> <87pluedgx5.wl-tiwai@suse.de> <87jzkmdghh.wl-tiwai@suse.de> <87jzkfo0ty.wl-tiwai@suse.de> 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=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Level: X-Spamd-Result: default: False [-3.30 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_TO(0.00)[gmail.com]; TAGGED_RCPT(0.00)[]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FUZZY_BLOCKED(0.00)[rspamd.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email,imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns] X-Spam-Score: -3.30 X-Spam-Flag: NO On Tue, 30 Apr 2024 12:54:36 +0200, Mikhail Gavrilov wrote: > > On Tue, Apr 30, 2024 at 10:50 AM Takashi Iwai wrote: > > > > It implies that it's not about the revert that influences on the > > result. It might be rather the fact that you built the kernel by > > yourself. Try to build the kernel again with a debug print but > > without the revert of the spinlock. > > It was built without reverting the spinlock. > With revert in the kernel log appears "WARNING: possible irq lock > inversion dependency detected" Where and how...? That important piece is missing in you info... And, it's likely a false-positive detection by lockdep. When you disable lockdep, does it still show any performance down? Takashi > I suppose commit 587d67fd929a fixes just this. > About calls of snd_timer_close_locked, I again see only 3 invokes when > the system booted: > [Tue Apr 30 15:09:40 2024] igc 0000:0a:00.0 eno1: NIC Link is Up 1000 > Mbps Full Duplex, Flow Control: RX/TX > [Tue Apr 30 15:09:42 2024] input: Denon PerL Pro 772 (AVRCP) as > /devices/virtual/input/input18 > [Tue Apr 30 15:09:45 2024] rfkill: input handler disabled > [Tue Apr 30 15:09:49 2024] Bluetooth: RFCOMM TTY layer initialized > [Tue Apr 30 15:09:49 2024] Bluetooth: RFCOMM socket layer initialized > [Tue Apr 30 15:09:49 2024] Bluetooth: RFCOMM ver 1.11 > [Tue Apr 30 15:09:49 2024] DEBUG: Passed snd_timer_close_locked 410 > [Tue Apr 30 15:09:51 2024] systemd-journald[947]: > /var/log/journal/1b6a399fb0874de8b095a739fe2ff323/user-1000.journal: > Journal file uses a different sequence number ID, rotating. > [Tue Apr 30 15:09:52 2024] rfkill: input handler enabled > [Tue Apr 30 15:09:55 2024] DEBUG: Passed snd_timer_close_locked 410 > [Tue Apr 30 15:09:55 2024] rfkill: input handler disabled > [Tue Apr 30 15:09:55 2024] input: Denon PerL Pro 772 (AVRCP) as > /devices/virtual/input/input19 > [Tue Apr 30 15:09:57 2024] input: solaar-keyboard as > /devices/virtual/input/input20 > [Tue Apr 30 15:10:08 2024] DEBUG: Passed snd_timer_close_locked 410 > [Tue Apr 30 15:10:23 2024] show_signal_msg: 8 callbacks suppressed > [Tue Apr 30 15:10:23 2024] gldriverquery[4423]: segfault at 0 ip > 0000000000000000 sp 00007fff2ee18c38 error 14 in > gldriverquery[55c135c00000+14000] likely on CPU 11 (core 11, socket 0) > [Tue Apr 30 15:10:23 2024] Code: Unable to access opcode bytes at > 0xffffffffffffffd6. > [Tue Apr 30 15:10:40 2024] workqueue: gc_worker [nf_conntrack] hogged > CPU for >10000us 7 times, consider switching to WQ_UNBOUND > [Tue Apr 30 15:10:40 2024] workqueue: gc_worker [nf_conntrack] hogged > CPU for >10000us 11 times, consider switching to WQ_UNBOUND > > And no invokes during benchmark. > root@primary-ws ~# cat /sys/kernel/tracing/trace > # tracer: function > # > # entries-in-buffer/entries-written: 0/0 #P:32 > # > # _-----=> irqs-off/BH-disabled > # / _----=> need-resched > # | / _---=> hardirq/softirq > # || / _--=> preempt-depth > # ||| / _-=> migrate-disable > # |||| / delay > # TASK-PID CPU# ||||| TIMESTAMP FUNCTION > # | | | ||||| | | > > I attached here two kernel logs both with printk debug. One is clean > 6.9.0-rc6 the other 6.9.0-rc6 with revert 587d67fd929a. > I didn't see any difference between kernel logs. > I only see that without 587d67fd929a at some point a possible irq lock > inversion dependency is detected and the benchmark improves results up > to 30%. > > -- > Best Regards, > Mike Gavrilov. > >