Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1068652rdb; Mon, 19 Feb 2024 03:21:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWbAzFyuUiMOMcB1WgAw28odxTgpKnVxBKEGVdrN8pTR2NifmL/x1so+DBpd9wvs7gkjJqmIMlxlUNbhu3pWXNJUlU4bGWgPg88dKJj4g== X-Google-Smtp-Source: AGHT+IFduW3yIRYPmQWfGJZdwA+rbSRk5nUtxBdKwmWGRvpl118nNFki5zkUCG4bSwBUkq5tC9/X X-Received: by 2002:a17:902:76ca:b0:1d9:b739:a5aa with SMTP id j10-20020a17090276ca00b001d9b739a5aamr10047775plt.42.1708341666584; Mon, 19 Feb 2024 03:21:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708341666; cv=pass; d=google.com; s=arc-20160816; b=ZYF0ANlURbDY2YUobpUZ6TYX9GbcMXDAlgb6dK1m5tmWmiwFM+BV9iNSmWYx+F6RYN /MFMYs8h/h+ADFmxnXgrxWtHzxbCrVlXpq3QErU8vYhojDFwhUhFTbVCgoj8oeAYKaDr mjyLyECsJCJSkChRF9sCXHVBY3ToXYhba0IFxo/9ysI6ewTSI74zUbrjC28g0hIL68AB V8PNTgC/TNaMK632mzrVXdnYzB1sR1JnZybxQhP0G7LSwxYf2AKfB1x4XMWGvqJ9Xxu2 XXNJ3yqzWhKX2dk0A86zLG/yGMTI40BFiXMBAUhxFQz9bC9cyUC3kM75dbPBrO5yGP0o RbfA== 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=1TZFf4FqHXti3cE1EXqChNcXmHSmMIGGoN+xhN0X77Y=; fh=X3cLUCHF01GGRcCiWHu2zVd6nC34kOAJZi5W655DyH8=; b=ZSY802LUxcYjPxYXGDuh3T2QwlhDCXgfL6TJEoEemGys2nJyn13wW4/wWRRpvG0+0k ByIMe5MgV/bAqfANCkzSmLrDTPtfG5och2I2DwnpVsmbwNfrCtButR4//cN6H/GkHGLw Y1Qy0pPj2PjUNJeP1l2gAovL+jUevphVfBx87Xa1NZK+Xd1aD3WAL4tXaPvEYQAh71zE 0lLAcnvHE4PAryBwyxft3J27EoHx/x09b1GShCw5h94TG5suXHCnqQrLZ4ggLdeQKHze ppF9Ti6A6raNalrrUItg8B9VReNwqdVTkg04eWKKVTx2FGkO1XwE/OK3QoP3fNpAo1kb hCgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=LKpdmuB3; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=LKpdmuB3; 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-71183-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71183-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u3-20020a170902e5c300b001db40c1c211si1091671plf.64.2024.02.19.03.21.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 03:21:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71183-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=LKpdmuB3; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=LKpdmuB3; 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-71183-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71183-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DE384B22595 for ; Mon, 19 Feb 2024 11:20:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D88602C1A4; Mon, 19 Feb 2024 11:20:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="LKpdmuB3"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="9KN1w+Tb"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="LKpdmuB3"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="9KN1w+Tb" 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 675E02C197; Mon, 19 Feb 2024 11:19:58 +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=1708341600; cv=none; b=YAzK/0WBAO7oXVchgZenWbDgpfNWZMaEFYzNF5qjJ3WWH6hJu3fjLpkRraqIK6HXSpVSCVgcPlOVCCsPxgmzFPG67OFTvc59zePSw5/hP1RUR5z57dH3sg/uB5QLa2XYNfHg5T3MG3D9/+WvPO5C4JIN5pLaSQ5v7q7sRclwMcA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708341600; c=relaxed/simple; bh=45rnvUaUPAfCSe5CBydsQQMyQFkW2jw6N87HcpBnmQI=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=UyYrU5hYw9uEz/G5kdx+1dcjvp91BMLJp4DCFzPZH+FOPsJCer9GqBrcDJn90xJVnUX9cUv3+CDglG9E4uEic7VzqKsW/6toigq2knNO37Dr6N8TlB5AE2/PhDqZIfhAin7iTrh0Vv2ks2QGWNH/dXBVZ2TlzSjQDXMFtWF25zw= 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=LKpdmuB3; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=9KN1w+Tb; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=LKpdmuB3; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=9KN1w+Tb; 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 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-out2.suse.de (Postfix) with ESMTPS id 7A18F1F7F1; Mon, 19 Feb 2024 11:19:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1708341596; 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=1TZFf4FqHXti3cE1EXqChNcXmHSmMIGGoN+xhN0X77Y=; b=LKpdmuB3knKa0mVmFF1ps7CbckcaMwBs0vXN6GF0QogY2GkCsMjGgjb/EolHyOvAPjChvP VZcU1eUWI6MsM8Yd3OX/iwvenxa/ekR0NYMOWrcjPU98mhkBy9TJsaA4WOY53RwTQsVdHw 2yu/OOFuVvmAYig4hMxnbHMpNFyX+lo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1708341596; 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=1TZFf4FqHXti3cE1EXqChNcXmHSmMIGGoN+xhN0X77Y=; b=9KN1w+Tb2IxjJLF3V1vqBnUAzxZC0zj/TWT6nORlzyJ892D8Mo/AFEqcqkh1v8/9eluQRY DNYWtootUqCyCVBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1708341596; 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=1TZFf4FqHXti3cE1EXqChNcXmHSmMIGGoN+xhN0X77Y=; b=LKpdmuB3knKa0mVmFF1ps7CbckcaMwBs0vXN6GF0QogY2GkCsMjGgjb/EolHyOvAPjChvP VZcU1eUWI6MsM8Yd3OX/iwvenxa/ekR0NYMOWrcjPU98mhkBy9TJsaA4WOY53RwTQsVdHw 2yu/OOFuVvmAYig4hMxnbHMpNFyX+lo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1708341596; 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=1TZFf4FqHXti3cE1EXqChNcXmHSmMIGGoN+xhN0X77Y=; b=9KN1w+Tb2IxjJLF3V1vqBnUAzxZC0zj/TWT6nORlzyJ892D8Mo/AFEqcqkh1v8/9eluQRY DNYWtootUqCyCVBw== 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 2CEAA13647; Mon, 19 Feb 2024 11:19:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id 6QWWCVw502X0MQAAD6G6ig (envelope-from ); Mon, 19 Feb 2024 11:19:56 +0000 Date: Mon, 19 Feb 2024 12:19:55 +0100 Message-ID: <87le7gog4k.wl-tiwai@suse.de> From: Takashi Iwai To: Sven van Ashbrook Cc: Takashi Iwai , Kai Vehmanen , Hillf Danton , Karthikeyan Ramasubramanian , LKML , Brian Geffon , linux-sound@vger.kernel.org, "Arava, Jairaj" , Curtis Malainey Subject: Re: [PATCH v1] ALSA: memalloc: Fix indefinite hang in non-iommu case In-Reply-To: References: <20240214170720.v1.1.Ic3de2566a7fd3de8501b2f18afa9f94eadb2df0a@changeid> <20240215034528.240-1-hdanton@sina.com> <87h6iaf7di.wl-tiwai@suse.de> <875xypk6d6.wl-tiwai@suse.de> <20240216043426.1218-1-hdanton@sina.com> <87plwwiz6z.wl-tiwai@suse.de> <87frxsiueo.wl-tiwai@suse.de> <87zfw0h3lu.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 Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -0.36 X-Spamd-Result: default: False [-0.36 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[sina.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_SEVEN(0.00)[10]; MID_CONTAINS_FROM(1.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[suse.de,linux.intel.com,sina.com,chromium.org,vger.kernel.org,google.com,intel.com]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.06)[61.43%] X-Spam-Flag: NO On Fri, 16 Feb 2024 17:22:45 +0100, Sven van Ashbrook wrote: > > On Fri, Feb 16, 2024 at 9:43 AM Takashi Iwai wrote: > > > > OK, then how about the one like below? > > > > This changes: > > - Back to __GFP_NORETRY as default > > - Use __GFP_RETRY_MAYFAIL for SNDRV_DMA_TYPE_NONCONTIG with IOMMU; > > this should cover the commit a61c7d88d38c > > - Also use __GFP_RETRY_MAYFAIL for the SG-fallback allocations of the > > minimal order, just like IOMMU allocator does. > > > > This should be less destructive, while still allowing more aggressive > > allocations for SG buffers. > > This one looks like it would keep the SOF firmware allocation issue at bay, > in both iommu and non-iommu cases. > > If there is no further discussion in this thread, we'll stress test this > on iommu and non-iommu Chromebooks. The test with my latest patch would be appreciated in anyway. thanks, Takashi