From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2B47C001DF for ; Tue, 25 Jul 2023 09:54:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230018AbjGYJyv (ORCPT ); Tue, 25 Jul 2023 05:54:51 -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 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