Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8100685rwp; Wed, 19 Jul 2023 05:23:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlHG+jYNmTLKdepxl1nZYoxObXQHlG2B6geE3VZvJFOrLEELJH2PX5Vqr63e9A2Bl+yb0KN8 X-Received: by 2002:a17:906:3f54:b0:991:b834:af83 with SMTP id f20-20020a1709063f5400b00991b834af83mr1972342ejj.59.1689769410258; Wed, 19 Jul 2023 05:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689769410; cv=none; d=google.com; s=arc-20160816; b=lV/dZuDCD5EnVqvWRT4NO6B6mrK5/+eXkO768sVq+1PIcUoDYFlBnFTmmfRWlkfWqb 2lspxJ/Rnu9XKdicLXl2lKvlKpEsYHLugOn0izleAwEB9Udmy6OiDATnhoj1xQqyB8ju A5u1oF5/ew57i9DMnYUubd89TyNhA1H+2uNCL16yWS+XdUWgFuxiPURmjfg1BlwiK6CK q1lXiQ7DsmkF+aZ54QC6aPieKaSm8YMmDeZ3s5lTg0gSg2da9lcYSHpMppYWS6hBKxjb 2QUEscNbQdFzx/5VrY1ORyzUBwDExb7dsx2fRbVUIJAjL8AEoFADPPT8+CivAaBFviOa 2oXw== 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=ZvlHteVtNR145LW3DjNhhi0d5viyFg1TKgPYb/gxyD0=; fh=V+47d8AoXP3tdZ0sldb6fTNECLP2PwGE+s1k0L2AGC8=; b=A50/lkPADQn+awsQTn00IVtStWC+DAxhoIAGFh3U1C7eArvHQLFPyDypDW8oAx1Cmh n2NFzb2pKxtex7NSiPjKesxlEbXqtcuXOMIpCy2gclKj7AGaT2l+ML5RQ6wUzWMYOdtx TzuOsCRW9xKeT9jyN8J+8LmFhGVN3x7dE7wxIkOJehI99vsnFExJh5K3lZE89xDgbpI4 vAa5CkEJkq0Lh7bRGw2vopqvl/Yb/fJ8oDLKKldYQD8VmP34aSkbxKGc7NDWfENpEo8G OU8wOxdQquGsRbKMY5U2l42yXVPSBkgeLLYHA2GtQqkuDAJIciSUh2tkxP/NVQORwTTp beWw== 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 d3-20020a170906544300b00987acac4c40si2765414ejp.596.2023.07.19.05.23.06; Wed, 19 Jul 2023 05:23:30 -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 S229804AbjGSMOI (ORCPT + 99 others); Wed, 19 Jul 2023 08:14:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbjGSMOI (ORCPT ); Wed, 19 Jul 2023 08:14:08 -0400 Received: from mblankhorst.nl (lankhorst.se [141.105.120.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D1841B5 for ; Wed, 19 Jul 2023 05:14:05 -0700 (PDT) Message-ID: <2ed288d0-c8fe-1856-dbe9-74f4f7c075ba@linux.intel.com> Date: Wed, 19 Jul 2023 14:13:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: [PATCH] ASoC: SOF: Intel: Remove deferred probe for SOF Content-Language: en-US To: Takashi Iwai Cc: Kai Vehmanen , 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 References: <20230718084522.116952-1-maarten.lankhorst@linux.intel.com> <20230718084522.116952-7-maarten.lankhorst@linux.intel.com> <874jm0modf.wl-tiwai@suse.de> <66d22637-069f-5262-2249-6041ef9d4614@linux.intel.com> <875y6g5feo.wl-tiwai@suse.de> From: Maarten Lankhorst In-Reply-To: <875y6g5feo.wl-tiwai@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 On 2023-07-19 13:06, Takashi Iwai wrote: > On Wed, 19 Jul 2023 11:48:06 +0200, > Maarten Lankhorst wrote: >> >> 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 >> >> A module option to snd_hdac_i915_init would probably be the least of all evils >> here. > > Yes, probably it's the easiest option and sufficient. > > > thanks, > > Takashi Hey, Patch below, can be applied immediately iresspective of the other patches. ---->8---------- Selecting CONFIG_DRM selects CONFIG_VIDEO_NOMODESET, which exports video_firmware_drivers_only(). This can be used as a first approximation on whether i915 will be available. It's safe to use as this is only built when CONFIG_SND_HDA_I915 is selected by CONFIG_I915. It's not completely fool proof, as you can boot with "nomodeset i915.modeset=1" to make i915 load regardless, or use "i915.force_probe=!*" to never load i915, but the common case of booting with nomodeset to disable all GPU drivers this will work as intended. Signed-off-by: Maarten Lankhorst --- diff --git a/sound/hda/hdac_i915.c b/sound/hda/hdac_i915.c index 1637dc6e630a6..90bcf84f7b2ce 100644 --- a/sound/hda/hdac_i915.c +++ b/sound/hda/hdac_i915.c @@ -11,6 +11,8 @@ #include #include +#include