Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp255655rwd; Tue, 6 Jun 2023 22:39:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5FS/BJbOlTs6H6hqu03GLe+Gt74HSPWoLiEPgY9gEBb9ZUtITqk1xyp71hRvgjexcF0iYm X-Received: by 2002:a05:6870:4e4:b0:19e:9281:94e1 with SMTP id u36-20020a05687004e400b0019e928194e1mr4538258oam.43.1686116345426; Tue, 06 Jun 2023 22:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686116345; cv=none; d=google.com; s=arc-20160816; b=BOKoxXVXEJeA/diuABHLS4peLtFoyoeS5It1B423WvQEGyIR35zP/mAUXcTnIN7cNG FLZKZff3CY0nzGy4px3ytEvBdqm9Jn7hnT741lLyyRifYpqHMHtpo0tlnpTELp/4C+0r iSDUpCBpyQ3/A92itoryegucyZhLKln2F/tQnnxkDlA3hxrQS8Gszq30VXDA9CMAtPFX cCD7QkGezCW5OTEJa6jayTzB2vm3pX3U4kWjAOPm9fF64YcGVKsIe+oHvpy4TZf5ZHJe GB6QwsCGFJaRDGjECskj/kLWSWO6/fEuO5l/qpFuiGNMWmBhgcCzYyynm6A7u3kGP2zy F1tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Y3mm/I7x2vRn2j9GXKotLgetA+QT35DrsPpKt0Y+YPk=; b=vk1eEdjOTicHPA/m/bqamPnZJckTzPYToCh4lpFhUZTlXl1OUdG6L8T79C830s1GDF w03z8kdt0gAkre2f9YXkeyqa05ik6NE3p0sutfpHukj8EmnFbrQ3AndJkC4xpPVVPNp2 4oC6gc7bWFy8XQsh6yddYHxzQDFr135ZeE/seG2waZcoM6ezDJCsafeLoNJP39drnJGi oNuJ0Xe/+3HeS+ONWCw3moP1gHFfLNnJlmsQF5c6lDQK5ZmWbz7Z2T5l1SWkpehZMok7 hHbNFbEeuURIUxOt4mNGdNwvbiUvSVNBL162UBCfh6yTwrjKfhbvR5gIOvglQWcn9ppg yY1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=bqOLVVxs; 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=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b129-20020a633487000000b0053fb1fbd3f7si8295126pga.350.2023.06.06.22.38.51; Tue, 06 Jun 2023 22:39:05 -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=@canonical.com header.s=20210705 header.b=bqOLVVxs; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234290AbjFGFUB (ORCPT + 99 others); Wed, 7 Jun 2023 01:20:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232681AbjFGFT5 (ORCPT ); Wed, 7 Jun 2023 01:19:57 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A13321988 for ; Tue, 6 Jun 2023 22:19:56 -0700 (PDT) Received: from mail-yw1-f197.google.com (mail-yw1-f197.google.com [209.85.128.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 2D3AF3F15D for ; Wed, 7 Jun 2023 05:19:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1686115193; bh=Y3mm/I7x2vRn2j9GXKotLgetA+QT35DrsPpKt0Y+YPk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=bqOLVVxsaPBshvIrGgD6FBrIxW/aRlPuT1CZ/X2ijgJZLG+5bIu8ZjTl0FdQoAvvH 3xIMKeaxjxksLNs/hPh3dOA7O//r83ir0E8dgCVj29DMk42Idy2ef38scU2wKCr4VB pP3NRz+hljEVOpS8GCX1fij+CElw1FuwtLv4QPuE6nE+GU3r7Nl2YfafrWkIjwyda1 uqz2J8fC4iB+BY3S3BdM7aKObnoFZmrfvoZ23pbgBGLZ56hRyHOWQU8bkyUR09RrT0 NI7GNO8ap7HJOjxKAG/8OvpdQOl24Ag3EpuIRMQyhmLj473cVhypPKb3nzgGWB+8Iv dE+So8XaKUUtw== Received: by mail-yw1-f197.google.com with SMTP id 00721157ae682-561ceb5b584so116861387b3.3 for ; Tue, 06 Jun 2023 22:19:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686115193; x=1688707193; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Y3mm/I7x2vRn2j9GXKotLgetA+QT35DrsPpKt0Y+YPk=; b=jBSJhM0OdHMliBYhr1o4Y90TN3uKip6bT3yGqaV7asEqzUoqdHsIhmxxWlkOO/FMLf AqS66C5yyKrueYAWDSZZ+WzfR9naGTICtK2E3UImHfQdz4P7JXwZlT6IZld2Kdoyz5w3 s99ow4X6z16eI7GawXEySZznIYwr5RnLy2oOwbPmcla8utTObLp+A8V+2ry/VvO3tfWd BVe6dgKDdJITY03x96OGW28IuakALHtt98Kf+Ipm686JgMVlpmct6Y0lghurct6iQ788 2nIuQ3Om/onn9HfwVrWBCRzCMhSaRCaQ5zUlYBRPZ6na7mVpazLi3mDFtX2LtdFHOSsM +kkw== X-Gm-Message-State: AC+VfDxU6fESTvbXV01vsGt3rrHxPcgEJ3IokIu7NKNAAQ3oYHAWccqL aTdFjCt7NxPG/yr29357TkLDdXbgCGPnIqbJqZvyopX9Wuo7DpgqWafAftsnG4M1m92mn5Qqjnc nueQfmUsm72ZOeeGeqcNBwtcHg7tesSqbZ+5JQmNQ/Nq3zd1YfEeLYL2WPQ== X-Received: by 2002:a81:494f:0:b0:565:df97:4439 with SMTP id w76-20020a81494f000000b00565df974439mr4470003ywa.37.1686115192730; Tue, 06 Jun 2023 22:19:52 -0700 (PDT) X-Received: by 2002:a81:494f:0:b0:565:df97:4439 with SMTP id w76-20020a81494f000000b00565df974439mr4469990ywa.37.1686115192461; Tue, 06 Jun 2023 22:19:52 -0700 (PDT) MIME-Version: 1.0 References: <20230607034331.576623-1-acelan.kao@canonical.com> <20230607042032.GA28835@srcf.ucam.org> In-Reply-To: <20230607042032.GA28835@srcf.ucam.org> From: AceLan Kao Date: Wed, 7 Jun 2023 13:19:40 +0800 Message-ID: Subject: Re: [PATCH] platform/x86: dell-laptop: Add drm module soft dependency To: Matthew Garrett Cc: =?UTF-8?Q?Pali_Roh=C3=A1r?= , Hans de Goede , Mark Gross , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Kai-Heng Feng Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 Gfx drivers(i915/amdgpu/nvidia) depend on the drm driver, so delaying the loading of dell_laptop after drm can ease the issue the most. Right, it's still possible to encounter the issue, unfortunately, we do not have a better solution for it at the moment. Matthew Garrett =E6=96=BC 2023=E5=B9=B46=E6=9C=887=E6= =97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8B=E5=8D=8812:20=E5=AF=AB=E9=81=93=EF=BC= =9A > > On Wed, Jun 07, 2023 at 11:43:31AM +0800, AceLan Kao wrote: > > From: "Chia-Lin Kao (AceLan)" > > > > dell_laptop is somethines loaded before nvidia driver, causing it to > > create its own backlight interface before native backlight is set. > > This results in the presence of 2 backlight interfaces in sysfs and > > leads to the backlight can't be adjusted. > > It seems like this approach would still be broken if the nvidia module > isn't available at the time the dell module is loaded?