Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4283344rwo; Tue, 25 Jul 2023 03:52:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlG+QfUhykSfQuTOMyI8wfk7TWLBjNKxqiVcEYinSP1iQuESWZxyqXhjDEbzN3yJzKedWIET X-Received: by 2002:a05:6a20:258c:b0:132:79ea:e344 with SMTP id k12-20020a056a20258c00b0013279eae344mr16667258pzd.12.1690282322891; Tue, 25 Jul 2023 03:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690282322; cv=none; d=google.com; s=arc-20160816; b=VrAr+UFkAGscakeQoAv4lWJcnaayP12fAstm6Kz4NKa2dJaF4wKDeI55POxpY+7MNk cf3xF8U4F047CKRQf8J2WHq31zWE27fST39MnQVFvj4iJ/YQPfkXTSaZu8MlN+WAwXAg RK9CNwTNpzMTQLPox1CfIk5ho3sZE1+GWVv0mRWJuRroZrYf3FaNuTVOp4wt5SX+5tX5 +l2x3YNh50WuwJQibxjIGQaxFyoQkfcrRm6tjssF50X4rAbsOjGI0R4p3M9vRRq9rLtr 3Ihf3Qp/+61FdJnMS+bahgdOhm2ltCtCHTgaejGV/vHsRQHFnVoK/tl6SpPyQc+lAGnh wLCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=bGkwtEmyoDVapL5QC6Ic+95RIxvcuZVRiFPPVua2+Wg=; fh=33aD9ZNqGHBv3xN3PNF1n6A2yDK5Ujbqsa4RYZVGAyc=; b=mbjKuMMvDZGY7ZJWh0JSJ7/WYwq4JFkdIwtReBKaKSlYrbrNBqO9h1mmmhrFNwyz5Z hTYM0ZtFLjQKlrseEEWXvfsQ0aiMrjeaQvZ+i8T7LFLLpbd/RXlsA4qQIPk86R6N1qsz o+Xiv4DlhGrI1Q6Ght08vz51TBKP4MH6tahO2Sxu3YODLwDf+G8b9xrNHZsyEZr1Hrxd AiuTjj8exiFI6U6lPqTf7XfR7jx4LHFlIn4MJDPQ4dvHPYXSCo0RQSZ3PsDDrFsVhe4k 6TocrWbtbBjiVwHDpKvvirhWT+D4vHd+v99WA4nvReRzGSUD6XlcXIS6mfUWhdakW0WQ RQYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l1-20020a633e01000000b00543a881db09si10548722pga.402.2023.07.25.03.51.50; Tue, 25 Jul 2023 03:52:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233692AbjGYK3f (ORCPT + 99 others); Tue, 25 Jul 2023 06:29:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233659AbjGYK32 (ORCPT ); Tue, 25 Jul 2023 06:29:28 -0400 Received: from mblankhorst.nl (lankhorst.se [141.105.120.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA3FA10F6 for ; Tue, 25 Jul 2023 03:29:10 -0700 (PDT) Message-ID: <1bb7858d-fab0-f3c2-b786-a93f3789b400@linux.intel.com> Date: Tue, 25 Jul 2023 12:29:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2 8/9] ASoC: SOF: Intel: Remove deferred probe for SOF Content-Language: en-US To: Pierre-Louis Bossart , alsa-devel@alsa-project.org Cc: sound-open-firmware@alsa-project.org, linux-kernel@vger.kernel.org, Jaroslav Kysela , Takashi Iwai , Cezary Rojewski , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Mark Brown , Daniel Baluta , Matthew Auld References: <20230719164141.228073-1-maarten.lankhorst@linux.intel.com> <20230719164141.228073-9-maarten.lankhorst@linux.intel.com> <03d5abcd-53a6-bf61-227e-d608c5fbfe70@linux.intel.com> From: Maarten Lankhorst In-Reply-To: <03d5abcd-53a6-bf61-227e-d608c5fbfe70@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey, On 2023-07-24 13:32, Pierre-Louis Bossart wrote: > > > On 7/19/23 18:41, Maarten Lankhorst wrote: >> This was only used to allow modprobing i915, by converting to the >> -EPROBE_DEFER mechanism, it can be completely removed, and is in >> fact counterproductive since -EPROBE_DEFER otherwise won't be >> handled correctly. > > I personally remember only that the request_module("i915") was the main > motivation for the use of the workqueue, but when it comes to the > HDaudio codec management we don't even know what we don't know. > > I am a bit worried that the snd-hda-intel driver keeps the workqueue for > HDaudio codec initialization, and this patch removes the workqueue > completely for SOF. That doesn't seem right. Either both drivers need a > workqueue or none need a workqueue. > > Maybe what we need is to move the i915/xe initialization out of the > workqueue, and see in a second pass if that workqueue can be safely > removed from the SOF driver? > As I mentioned in some of the other sound driver conversions. I believe it's possible to completely kill off most workqueues. However, I donĀ“t have the hardware or knowledge to test it. I saw that the SOF had the non-workqueue path already, so it felt less risky to simply convert it to always use that path. avs/skylake drivers should be easy to convert too. This is why I left the comment: "Removing the workqueue would simplify init even further, but is left as exercise for the reviewer." HDA-intel has this retry-probe logic used on AMD's, which makes me more hesitant to convert it. I wanted to tackle one problem at a time, I believe workqueue removal can be done by anyone. Cheers, ~Maarten