Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4253931rwo; Tue, 25 Jul 2023 03:16:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlEBQuz4lreIj71n1QgJUgU3/0sDlkMWvydaTg7gxmxNZuCLd7y7dySQ6V/XGWu/FMDKLUGG X-Received: by 2002:a17:903:2794:b0:1b8:1fc6:c4ba with SMTP id jw20-20020a170903279400b001b81fc6c4bamr8159472plb.46.1690280187353; Tue, 25 Jul 2023 03:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690280187; cv=none; d=google.com; s=arc-20160816; b=qlw7fcIrfXagQ2/UudI/j/SFp/o3UTYNpPvbZ3Vw6lfbb6tG1hvZD8Z8g5HMpjNN1+ vxADp+SDrjSxFO1DknfvKN4YFJtthCC8quL4H/x9Y/m1Ergu4r8SFPk41WHFDMnhDZ+p isio0HIXepr4Nc8Z+jgjW/WBI03hV1XbKcrDwEYV8e353MrAZpEaQAL4BdHQg7lfULgN 9OpYdw1MaMMYpIuqNQHwB6pBTTtnzhSc069D2dWfWhzFWL4WJNesaj9A2EjysZmzSNxy YgOyw0jyaXuc7FfYw/ZuhiSn8lwa1rRLwjM4ieoaXL7c2Imo7nZBfjBLtor+9ITR2pB2 Svow== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=y7L5mcEjboyQ2eXs1Go+ML9yrYszuc4B40GM1g1vquI=; fh=T1Ia/E5Kb68ArT6rE5h1+3KW0RT+5Y+ymU5tNJOivFs=; b=VS/dGK1mAVEj9IQjiclnK0zqT5INuw4jRntbhjh33JV+WsOfbT/BgyXTkxgeNy+K5T m1aYol0yxVvlTSMK8S6X4x/tWPOROfyZfNlBGfQ+B5/xrJOAaHdBcJO6d8Gf/4aJ3/aO EoSchEoCEEVRIry0s3+KVIxzfYCDJjXxQShDak56ylPkYA6PCP0eVevC1cx1D6WuTtjh vbTN1LVO0+ixnr/SOdbKpt5D2XXi7aMXsHVJsxaAkDuu+QJvU3RZAPLJF0Edim26Q/Kp YJrobL1HMvdJwvqA2ZEJBNa+TAGqyZhG4G7OzMpN7fm0iLXfzb43aj9yvK2OtGHoosb3 UqVA== 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 a8-20020a170902ecc800b001b5395382a0si12302701plh.212.2023.07.25.03.16.15; Tue, 25 Jul 2023 03:16:27 -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 S231346AbjGYJyu (ORCPT + 99 others); Tue, 25 Jul 2023 05:54:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbjGYJyr (ORCPT ); Tue, 25 Jul 2023 05:54:47 -0400 Received: from mblankhorst.nl (lankhorst.se [141.105.120.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F0861B8 for ; Tue, 25 Jul 2023 02:54:46 -0700 (PDT) Message-ID: <932c4293-375f-685c-2cfd-0bc80fd80683@linux.intel.com> Date: Tue, 25 Jul 2023 11:54:41 +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 2/9] ALSA: hda/i915: Allow override of gpu binding. To: Pierre-Louis Bossart , =?UTF-8?Q?P=c3=a9ter_Ujfalusi?= , 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 , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Mark Brown , Daniel Baluta References: <20230719164141.228073-1-maarten.lankhorst@linux.intel.com> <20230719164141.228073-3-maarten.lankhorst@linux.intel.com> <9b285ede-eaeb-40a2-086d-30cf74185784@linux.intel.com> Content-Language: en-US From: Maarten Lankhorst In-Reply-To: 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 12:25, Pierre-Louis Bossart wrote: > > > On 7/21/23 14:19, Péter Ujfalusi wrote: >> >> >> On 19/07/2023 19:41, Maarten Lankhorst wrote: >>> 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. >>> >>> Because of this, we add an extra module parameter, >>> snd_hda_core.gpu_bind that can be used to signal users intent. >>> -1 follows nomodeset, 0 disables binding, 1 forces wait/-EPROBE_DEFER >>> on binding. >> >> Reviewed-by: Peter Ujfalusi >> >>> Signed-off-by: Maarten Lankhorst >>> --- >>> sound/hda/hdac_i915.c | 10 ++++++++++ >>> 1 file changed, 10 insertions(+) >>> >>> diff --git a/sound/hda/hdac_i915.c b/sound/hda/hdac_i915.c >>> index 161a9711cd63e..c32709fa4115f 100644 >>> --- a/sound/hda/hdac_i915.c >>> +++ b/sound/hda/hdac_i915.c >>> @@ -11,6 +11,13 @@ >>> #include >>> #include >>> >>> +#include