Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4614579rwb; Mon, 31 Jul 2023 09:25:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlFTkVR1Jn0Tj4GZ7ol2j5ZuasfaaELCCLURItBxQDQkTPnrh0QoEFR0KUjzgUgczu41M3gK X-Received: by 2002:a17:906:5354:b0:98d:cd3e:c193 with SMTP id j20-20020a170906535400b0098dcd3ec193mr222235ejo.46.1690820714059; Mon, 31 Jul 2023 09:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690820714; cv=none; d=google.com; s=arc-20160816; b=V00xehKCPg9GTOa2VlJGMZ0HHwo81jt4Ctx/nP2jUi3Hxl8LEBKnz1y2r/84/V+30k NZG1m2bZ2J8go510ZO/aoHTigETOWHZQ2eb04ap+TyS2SOwVvZIkQTGxWKUHwUp/RFOJ mc0BYIP/Sm3/eDUVQgRxDQHO+cPGhQ5TnxKDOpFd/UI1XxDTiKEGGNwLJyAjrpXga9l2 ySYfooXWiQYHklBkdYNntVSWGgK2LXUBvTIZkE5/yc6yviLcYMsU9CRU3N1uZ04gRsrk 3CkcwABue/i8K2E8FaCGWaZk7zsDfye1tqjVzIFPePyfeV3kzRpbEovTr3U4sulq55Pt z7VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=2u0dLn7hjxy/youRd5pKqbthQhRipuIEteybjBKpN4E=; fh=1/NIQCDXuSTN/p5UTl8yTdoxUe2XNha5jbtKJN986X8=; b=n9xqJa5DRiUa18FCSHrta8nBgFPQAPiYpMb96AN9KvjEmUe/LcWkMfH7bKhhUAz0Mv q0N+2sdEfZtjhIvv2UVjstuF7LBMu0EJPhV/d1PdzLESf6/DKoLGogsCjlJGyq2RT5M7 S26jewJHwMQq/YGNifA4T6nm6rNWNN+al5xd7WYM2y/NFM7g0RPgeO8BfEayUAQ+mdkD lpyDlXODuFryFZCz4BVnXf3hrp6W04icZ9CEp2TA4SX9rxA+HKKYC+0e/F7gQPLim3+B i208KVbIdBAGZnqoBqeHqQXJaHy1xeyyCA6eyIYaprKKfYxY4efnycaHrBZ83azRvyIZ XMdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=rCaCGA62; dkim=neutral (no key) header.i=@suse.de; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w17-20020a17090652d100b00992c30f5887si7741815ejn.474.2023.07.31.09.24.48; Mon, 31 Jul 2023 09:25:14 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=rCaCGA62; dkim=neutral (no key) header.i=@suse.de; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232773AbjGaPwG (ORCPT + 99 others); Mon, 31 Jul 2023 11:52:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231445AbjGaPwB (ORCPT ); Mon, 31 Jul 2023 11:52:01 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 367D010D for ; Mon, 31 Jul 2023 08:52:00 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id A68FC221BF; Mon, 31 Jul 2023 15:51:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1690818718; 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=2u0dLn7hjxy/youRd5pKqbthQhRipuIEteybjBKpN4E=; b=rCaCGA62SE/QwvolETdgLfypTGMcJovoyoslABstBWyEUmBEvGP18X+VhPVlPgrHJu4um/ zAcRBAZypKa8zzZOhSuXw5J3z0LO6d48L3GpK0De3Q5lO/k/PwwmdHeHOkyPFGBMixhD6F aZIDmE8hVbkWvS1EEbIPBu04oH9EBC8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1690818718; 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=2u0dLn7hjxy/youRd5pKqbthQhRipuIEteybjBKpN4E=; b=5TUHmTvGfr9XRNykMv51Iya5erMQ673fMYetRY8lG+u3mmaBSMW3Ur/MCvpeyP86sMUQly vZjayjD7xdF7WODA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id BEC651322C; Mon, 31 Jul 2023 15:51:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id RgGHLZ3Yx2TqAgAAMHmgww (envelope-from ); Mon, 31 Jul 2023 15:51:57 +0000 Date: Mon, 31 Jul 2023 17:51:57 +0200 Message-ID: <87r0oohyea.wl-tiwai@suse.de> From: Takashi Iwai To: Maarten Lankhorst Cc: alsa-devel@alsa-project.org, sound-open-firmware@alsa-project.org, linux-kernel@vger.kernel.org, Jaroslav Kysela , Takashi Iwai , Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Mark Brown , Daniel Baluta Subject: Re: [PATCH v2 0/9] sound: Use -EPROBE_DEFER instead of i915 module loading. In-Reply-To: <20230719164141.228073-1-maarten.lankhorst@linux.intel.com> References: <20230719164141.228073-1-maarten.lankhorst@linux.intel.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,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 On Wed, 19 Jul 2023 18:41:32 +0200, Maarten Lankhorst wrote: > > Explicitly loading i915 becomes a problem when upstreaming the new intel driver > for Tiger Lake and higher graphics (xe). By loading i915, it doesn't wait for > driver load of xe, and will fail completely before it loads. > > -EPROBE_DEFER has to be returned before any device is created in probe(), > otherwise the removal of the device will cause EPROBE_DEFER to try again > in an infinite loop. > > The conversion is done in gradual steps. First I add an argument to > snd_hdac_i915_init to allow for -EPROBE_DEFER so I can convert each driver > separately. Then I convert each driver to move snd_hdac_i915_init out of the > workqueue. Finally I drop the ability to choose modprobe behavior after the > last user is converted. > > I suspect the avs and skylake drivers used snd_hdac_i915_init purely for the > modprobe, but I don't have the hardware to test if it can be safely removed. > It can still be done easily in a followup patch to simplify probing. > > --- > New since first version: > > - snd_hda_core.gpu_bind is added as a mechanism to force gpu binding, > for testing. snd_hda_core.gpu_bind=0 forces waiting for GPU bind to > off, snd_hda_core.gpu_bind=1 forces waiting for gpu bind. Default > setting depends on whether kernel booted with nomodeset. > - Incorporated all feedback review. Maarten, are you working on v3 patch set? Or, for moving forward, should we merge v2 now and fix the rest based on that later? thanks, Takashi