Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7769119rwp; Tue, 18 Jul 2023 23:12:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlEXUIjDq5VTT2FSZVEya9uVlkBLMHTVfIV6Obi1vmZOBN+7nEGnnZqMCmdQdcRaYdK8WNfr X-Received: by 2002:a05:6512:10d0:b0:4e0:a426:6ddc with SMTP id k16-20020a05651210d000b004e0a4266ddcmr13552681lfg.0.1689747169060; Tue, 18 Jul 2023 23:12:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689747169; cv=none; d=google.com; s=arc-20160816; b=eYrnwJE6j2PPnY3EsSCZiFJ8rOpJI7rDwSY5pU9zC59UcadIf9PhQF+jYF+13Lz62p HI9lhjps1ZxCfGsxPp/DjzzWgZqQx3HlXXQFo18mgWIzCutZcnz/fV0P2jjFTONSL/vF 2M+pkTq51tUMzJsptNmGdeRftWhtlScqPihuCDLu4YtnD7+CQFYMvvx2fx7fjrwaANPI bnMlpZRo1wLZ5HuaBWtmZePJ4xaPFYGEs0HVG2yCVU/jYw419yv2zr6Dw3pTsYU15PqL 0jWlqf8YLixKmbAUIthozvEeT+xOPL7y5hIOpkLnwh1zyr8I8XhrpjmC5zerQani+MQT CjXw== 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=dgQgxlFcepDaInfoxrsHrXxt5AXoVTbhkF6IGVf5cpg=; fh=YzQGTtA5qwvrh4UfZd3/WetpnasozMEnOuCZ7AggyOc=; b=Pwrhiid8WBUEq8kYBhpSs4TjUJ70KjJufb7GRqt/S3aBAz4FtWsPH6OmkwuaAZGDXu GE6g/7DSrAtZcIFy6qoEX+EMiO34e+Bz5pD1Y09U0vZdTwkqwyZ0TmEWrq3RHzQDJVPN 4kNPHGlJps0TIZ+hgM67+VU0PkWjhaBGr7DE9brzq/bXOwC1Su3sox10b957TallPWF0 kW7FeGHLlzP0wQnCiX2lUQ8TyxaAD+KT04SQ8h8fGukjSgG2V6GxCbf/EhTVsKkOEzRN wQwNE/f1zrJx8+MLZUU9cpfI/i7a1HAT1kyojOQHmYLCQuv4A+HJF08z+Nc708+asaEo Ld+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=h+0Ruqz2; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=OngDeZ4S; 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 w1-20020a50fa81000000b0051df1fef473si2377173edr.549.2023.07.18.23.12.24; Tue, 18 Jul 2023 23:12:49 -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=h+0Ruqz2; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=OngDeZ4S; 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 S230089AbjGSGBG (ORCPT + 99 others); Wed, 19 Jul 2023 02:01:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbjGSGBE (ORCPT ); Wed, 19 Jul 2023 02:01:04 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9F831BF5 for ; Tue, 18 Jul 2023 23:01:03 -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 0918D218FE; Wed, 19 Jul 2023 06:01:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1689746462; 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=dgQgxlFcepDaInfoxrsHrXxt5AXoVTbhkF6IGVf5cpg=; b=h+0Ruqz2CalI1XiDmKNvlyGndFSw7ERXP+PZjYhItCW7Wa8qHRlYAyS+ImQm6rKrLeis8T 7Qs1ZGhvKdfO801WdT2Wa4eWTt2q1LoAFabYJnIOz5qXgTySXpm71BOtQoxv0TQg1lDKfb 2hanErmJryg7pAGehHTL75Q4sLrVXJ8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1689746462; 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=dgQgxlFcepDaInfoxrsHrXxt5AXoVTbhkF6IGVf5cpg=; b=OngDeZ4SaqRjusrxyHy6gBD4FR6gZjmfsTpJ87Z+foKyZS0MV5RgCVILNvMK/W4hD76mOR zHOm9Lfjp21/A+DQ== 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 A311C1361C; Wed, 19 Jul 2023 06:01:01 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id eALPJh18t2TXMgAAMHmgww (envelope-from ); Wed, 19 Jul 2023 06:01:01 +0000 Date: Wed, 19 Jul 2023 08:01:00 +0200 Message-ID: <874jm0modf.wl-tiwai@suse.de> From: Takashi Iwai To: Kai Vehmanen Cc: Maarten Lankhorst , Alsa-devel , 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 , Mark Brown , Daniel Baluta , Matthew Auld Subject: Re: [PATCH 6/7] ASoC: SOF: Intel: Remove deferred probe for SOF In-Reply-To: References: <20230718084522.116952-1-maarten.lankhorst@linux.intel.com> <20230718084522.116952-7-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,URIBL_BLOCKED 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 Tue, 18 Jul 2023 19:04:41 +0200, Kai Vehmanen wrote: > > > diff --git a/sound/soc/sof/intel/hda-codec.c b/sound/soc/sof/intel/hda-codec.c > > index f1fd5b44aaac9..344b61576c0e3 100644 > > --- a/sound/soc/sof/intel/hda-codec.c > > +++ b/sound/soc/sof/intel/hda-codec.c > > @@ -415,7 +415,7 @@ int hda_codec_i915_init(struct snd_sof_dev *sdev) > > return 0; > > > > /* i915 exposes a HDA codec for HDMI audio */ > > - ret = snd_hdac_i915_init(bus, true); > > + ret = snd_hdac_i915_init(bus, false); > > if (ret < 0) > > return ret; > > My only bigger concern is corner cases where the display PCI device is on > the bus and visible to kernel, but for some reason there is no working > driver in the system or it is disabled. > > With this patch, not having a workign display driver means that there is > also no audio in the system as the SOF driver will never get probed. > > In current mainline, one will get the 60sec timeout warning and then > audio driver will proceed to probe and you'll have audio support (minus > HDMI/DP). Yeah, that was a concern in the past, too. e.g. when you pass "nomodeset" boot option, the driver will become unusable, even if the bus is used generically for both analog and HDMI codecs. > This is mostly an issue with very new hardware (e.g. hw is still > behind force_probe flag in xe/i915 driver), but we've had some odd > cases with e.g. systems with both Intel IGFX and other vendors' DGPU. > Audio drivers see the Intel VGA controller in system and will > call snd_hdac_i915_init(), but the audio component bind will never > succeed if the the Intel IGFX is not in actual use. > > Will need a bit of time to think about possible scenarios. Possibly this > is not an issue outside early development systems. In theory if IGFX is > disabled in BIOS, and not visible to OS, we are good, and if it's visible, > the i915/xe driver should be loaded, so we are good again. The 60 seconds timeout is a thing "better than complete disablement", so it's not ideal, either. Maybe we can add something like the following: - Check when the deferred probe takes too long, and warn it - Provide some runtime option to disable the component binding, so that user can work around it if needed thanks, Takashi