Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1705665lqs; Sun, 16 Jun 2024 00:33:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSjO62I55ZN0YISqJiZGeKjGBr2nuZtCYAcgd+Gx7x5YbG4h+ylNccDdTwEs7iEiM4yu0X4EHdrRxMY5U7a2pN2Db82yvFiMuElGKhYw== X-Google-Smtp-Source: AGHT+IEogM8l1AAk1B7809nX6Vd96so3cLQU+6eze/xJ0mSGWBffN1mRHCqEABlKTgO+KC8R9Gkc X-Received: by 2002:a05:6a00:cd4:b0:705:de1d:f7f9 with SMTP id d2e1a72fcca58-705ff8e59f8mr1030850b3a.0.1718523185902; Sun, 16 Jun 2024 00:33:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718523185; cv=pass; d=google.com; s=arc-20160816; b=JJgc6R7l8pv9ki6w/mValOxcPlelnqo2uwf3rgdfPcLy1QUugKwJsHJvO+n89PBYSG dVG4CzvVvwQOScsd5pd+1B8aMHlTuYHK1pGC/fz73JAqCpO9yxpmMBHCfvP2UdVHy6rN KNIk+Wt6fQqsBoi6GsagOdwzoseCHDV/gFk5k04bvKsV9AyzLpPjdCc/XWY3EQVNRZSc 5yN/iF+gbCHGA/rxXzHPBEusVtTZu5YGtXD/A9rWB11/hJJE++QLVkvZJqrcmnqEsie+ chc5RT2JljHnxKZWNWXqbJSUglTLpbkT87fELJS5Z1RIGALaCOhgYIf4QWni04Tl5TS9 JVFg== 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:dkim-signature:dkim-signature; bh=+5UlOdMzu7VkWukPE9vEuu2E0mkGNjfYXyW/FkFubVs=; fh=ef3yWABsn5mBOjWkVaYRERCG2ZMYaHa61x0tcG+3ogk=; b=tm+WyXmvi6MWgNBJEO+acJVNAnZnBVjMlWRCaU0jUXzrWv5T5LsHYXmBXI11VZ+n8S vhkTkEHkEnCDulbFirgy1v8LnjD6rLVnr+bLQ7MU33eEG9DAyvvYSVpUScOrflwRo0r6 J498VcJspAxjFHJRGuweuE0b45/6RxdTO6NI5f6Ab7bMXfF+ps64ZHDO5AdalCVrJYO+ ezpmjMgvzXo8wABoLNt3oMtvycPQPg0UZD+h0EEU7lruWWJsfQ/4/uCizI3bKcr3Fee+ rbeYDLIXmQqo+THBuC6iNQBMtnJ4cQ13pJl8rhzjUUB16zDVsSZrv9YHvd4DhMkIZnp0 6SUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="SxEG0O/S"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=QEXDPlNR; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="SxEG0O/S"; 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-216162-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216162-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-705ccb3c2b0si6951497b3a.206.2024.06.16.00.33.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 00:33:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216162-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="SxEG0O/S"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=QEXDPlNR; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="SxEG0O/S"; 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-216162-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216162-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 021052814C3 for ; Sun, 16 Jun 2024 07:32:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FAB1179641; Sun, 16 Jun 2024 07:32:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="SxEG0O/S"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="QEXDPlNR"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="SxEG0O/S"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="QEXDPlNR" 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 42F3F2941B; Sun, 16 Jun 2024 07:32:02 +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=1718523124; cv=none; b=ojxMu/vnQL1mzHA50ivmAgegsIMptAi9KgPKxrdYPJksb3HSOATGzbz1+HzVtU3IK3reMm5OCTd4QVZLJR2KYJviQslRXaJxa9sXnWUNHi0oqMzsEXgoctsVc+UUUmJDEz394H8FZ6FjpXw2eWJ4hOYaumH0zjLuq8B/AUJt/YU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718523124; c=relaxed/simple; bh=jW6ZH3b0hQagO4XnjOskiZetbS/zqijEdXjO4cycVR4=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=UhaL0vOZx190F6qd9wWPEva6sa9106hxWk1sSAnlpmOgFtSP8d7pHyzAUMkXQ69fncjj9RDm6XOTgOqM0vNS+xtQVkMiy6RWjRz5i/0iOrxurd4rnUC0QzfDv1VaX9JNqCqMjcKP1Lq3K1JtFOKvKyfeY1PFhsYnL3JfWM3iTTM= 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=SxEG0O/S; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=QEXDPlNR; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=SxEG0O/S; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=QEXDPlNR; 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 (unknown [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 63B2735066; Sun, 16 Jun 2024 07:32:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1718523120; 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=+5UlOdMzu7VkWukPE9vEuu2E0mkGNjfYXyW/FkFubVs=; b=SxEG0O/S3Wlvi/j831KzY3EP/jJvB0fY1PNOr09hcKyvQifr/UIWB6Myz0iXhQFGhw01Fg f9l//pG4ZCU0hN2TiRQaW61i99+KlXFx0ZLutZ3OVDUHqStvJjrF9UtO4YVH4HTDaXKMAF +XeIH3eTldngNUq4d4NOIG8lRzwswVI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1718523120; 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=+5UlOdMzu7VkWukPE9vEuu2E0mkGNjfYXyW/FkFubVs=; b=QEXDPlNRIPnHdyY8AYNRPsNGM1eNn/NjI3OC0vMgSHz28qzuPVComzHIz5v81Msk2+/eAl dnoXLMH/kfueSICw== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1718523120; 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=+5UlOdMzu7VkWukPE9vEuu2E0mkGNjfYXyW/FkFubVs=; b=SxEG0O/S3Wlvi/j831KzY3EP/jJvB0fY1PNOr09hcKyvQifr/UIWB6Myz0iXhQFGhw01Fg f9l//pG4ZCU0hN2TiRQaW61i99+KlXFx0ZLutZ3OVDUHqStvJjrF9UtO4YVH4HTDaXKMAF +XeIH3eTldngNUq4d4NOIG8lRzwswVI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1718523120; 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=+5UlOdMzu7VkWukPE9vEuu2E0mkGNjfYXyW/FkFubVs=; b=QEXDPlNRIPnHdyY8AYNRPsNGM1eNn/NjI3OC0vMgSHz28qzuPVComzHIz5v81Msk2+/eAl dnoXLMH/kfueSICw== 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 2E5F213AB9; Sun, 16 Jun 2024 07:32:00 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id MdMYCvCUbmabCgAAD6G6ig (envelope-from ); Sun, 16 Jun 2024 07:32:00 +0000 Date: Sun, 16 Jun 2024 09:32:24 +0200 Message-ID: <87bk415omv.wl-tiwai@suse.de> From: Takashi Iwai To: Mark Brown Cc: Jaroslav Kysela , Takashi Iwai , Shuah Khan , linux-sound@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kselftest/alsa: Fix validation of writes to volatile controls In-Reply-To: <20240614-alsa-selftest-volatile-v1-1-3874f02964b1@kernel.org> References: <20240614-alsa-selftest-volatile-v1-1-3874f02964b1@kernel.org> 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-Spam-Score: -3.30 X-Spam-Level: X-Spam-Flag: NO X-Spamd-Result: default: False [-3.30 / 50.00]; BAYES_HAM(-3.00)[99.99%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-0.999]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_SEVEN(0.00)[7]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo] On Fri, 14 Jun 2024 18:40:37 +0200, Mark Brown wrote: > > When validating writes to controls we check that whatever value we wrote > actually appears in the control. For volatile controls we cannot assume > that this will be the case, the value may be changed at any time > including between our write and read. Handle this by moving the check > for volatile controls that we currently do for events to a separate > block and just verifying that whatever value we read is valid for the > control. > > Signed-off-by: Mark Brown I'll pick this in v3 patch set. thanks, Takashi