Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2161505lqb; Mon, 27 May 2024 09:41:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqUTVc8RcrpoxHvH9zB9VU82BG3L+g2623T621lvmMm1nUmYtYhN20yu0NVZgTv2v3Af5mzY01nfjTFE6sYVD05LKCOBvy5D4vKudr5A== X-Google-Smtp-Source: AGHT+IEbLV4pqgB5xgrBbSGZGm75qw2nbN7QIGJDc0uVaCptmf3cCLVn+zdJFP/7zwB/NobecsAb X-Received: by 2002:a05:6e02:1c42:b0:374:593f:913e with SMTP id e9e14a558f8ab-374593f956amr36250485ab.14.1716828062802; Mon, 27 May 2024 09:41:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716828062; cv=pass; d=google.com; s=arc-20160816; b=1EX854hOHgL0HJErHC8aLpv1Q+7bCvZ5e7RAhRhbu+KXRf8pmYYyHO47MjJfjZ1zjL Vm/YCQ2QrSjOzpHcYh1r+QUv4GVTb0JNaBuqmNhJgFmb8XJPovRLn1tFsPcBg8sVOdbm dOfJqnN+DyFzRBNsUy6No1ZknMDb6+RHUntO46T8vKX/3GkI4/wOYaz7UHLvahxeXM09 COiasZoPi0w+3896PlKjMQvSjC1itgUH9VrC7OnMofmM8I+LUoKy4XVFv+KbEjaCTxr4 kwspmrYm3VeAKpc+WVAvk882BeHKJRbXrKTvWExCdT43RWda320mXO5WlUDSjjR4+vXN tDqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=TooJjYc9+ZvZldvvOeHGVx6l39vdG5OagEP3ueKAv+g=; fh=fRYQCzuIcLFpeU+hXznAVDIicrJeDzBDZlYwFOU05B0=; b=y8SC1B0bNBnNns2OpchssxWoEQKNDkvexpFFCdjCLjiPZ5ZUTrIjHS5QzCvXNc5X+s aJCjANhk/idMoYikDmxsSzxBhpB5BCx/LgTxVErh0nEhKy/A2JITpnCJFDa1bt2YNCE6 hSJDdT6zlmFD5lrkv7S2qtg//QNZTrywAueFWWMDwt/jxofWzAgqE0akBKxxHOF68NVp FhGdG63MnGjdQkRVBUj2sfiUtb5cFCTzOLwLa2h+ps2QfwW3FO/GBg4QQMnQlydd2k1X l70jvaxDDz8hMWtiR0SlUbbqjgzM5+5f/6wYeMsp6vPPXM1qHm5BBtiAC5UTLd/ITfaH hTTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mHPfZ2mb; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-191243-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191243-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822a5b9c6fsi6631039a12.733.2024.05.27.09.41.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 09:41:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191243-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mHPfZ2mb; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-191243-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191243-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D7D22282FBC for ; Mon, 27 May 2024 16:31:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 515B961FF7; Mon, 27 May 2024 16:30:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mHPfZ2mb" Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3184026AF2 for ; Mon, 27 May 2024 16:30:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716827448; cv=none; b=dGBh6jcQr8cVhcZyoZhe7FNCEG4o/MQWNvpIZMLjmAG3UQJsHkJBZTcwQBEV+UYJrYJeONn4exfLyrHe9KOLW1mrFbJgo4ZVCE19dPN5986n2R5dLwtNoHkm0VSL0WIZ7tlO/na+xcMZ8h9liuaWPk4cRqDzsz8Von/0JdA/tlo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716827448; c=relaxed/simple; bh=R2+/Bqc+r5OlJN22CbB/Ce+CH8yiRz/LGoONUjCnr70=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Or4PtKP7GFXvEN6lZkPC/lWmhH5Z93L0d+/f47hdwrlS6cgITwuhiN0+yIrjjzZybHsIp0UmD9tRUPWf5smw1xHZkrl2STQpZwyjdIrkapw8qJpNvaESZPhOESAz8ye9+3OoplovkMrsHcax+8tv5DbmsyO/UU9qqwB7Z9BhRYI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=mHPfZ2mb; arc=none smtp.client-ip=209.85.128.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-62a087bc74bso32889217b3.2 for ; Mon, 27 May 2024 09:30:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716827446; x=1717432246; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TooJjYc9+ZvZldvvOeHGVx6l39vdG5OagEP3ueKAv+g=; b=mHPfZ2mbxNqerKtTu3vdgXIJ3o4cayKRQPPVD/27C28ROWOIqrcRngD6ksa56Cyjol ciK0aQkuFIL4PtB+GEdQhn24BPj4vJhMIPqV4Q6IqTKgAPDYkcFLd7k4SRoXCsztEabP cL1Eoo5PZJNN9CDG5/mCZcg65UqNM3mqVMg4JyN5XhmQRTLO/qHoQUOYXNpWhx3DsoAW wcac+FYLhDgGBH45rPEgyXM1WGgSjVvQO+iYtj3CIvLm8uFcBvBLs9R0upnchcusDd2P Bh1MDFgCrc/dMvw3pbSW6lEBT3P+VU+bW0Pzfgi/F9HpEvGM0ak+1YdtswM4Tzuh4L0G ihww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716827446; x=1717432246; h=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=TooJjYc9+ZvZldvvOeHGVx6l39vdG5OagEP3ueKAv+g=; b=wFo5JO0hhVP21S/b17rOJtvJtswyoqQMogzA7TVQ+y+cvVtO81iSnII/x/uCNdtK9t D9jOse7PDycOHrXl1DUe2EMSTZA+nUCoF8hihgH5Ofz4PvQo+Xlpxu6cnkXKhHakXbNl 79dxE743Zm5KFipYIYbGeUf8egeMmcaTqWAR9f4kDzR9Fua+9Yv2YvY546q6uy5ARM2r mZ0+5gHqUtWBM/yg8j0SxmFV4DfXOg99dhsGwJi89RyQXsBmNqTRVUf2nLtBQSRbudzW 7KI6wun2S4WdjIr7UnBEqU6ZAjdm7UpDlvJhXCN4nuSYRwyGiNzK4MgTtD5oD/bAkrIj G9fA== X-Forwarded-Encrypted: i=1; AJvYcCUoNUTST7VsO1v7wDV8jGAcCesaTFHHyb0FUNjbWJqaJ+OkKEE6tkInAb0Xuf+YqPMdB/qvo18HGCGRJbSL5W/AMTEqvgpHyJxqZStu X-Gm-Message-State: AOJu0YwcVK21H4faHBaoUAcHnLi60zsLda7dOyHZOWrtkuTNzR41TTLw i2Kmcc175cbkW4oW0ObnO//atJnK75UGu5qdr3q98wRNTPQV2rbANuFkeC2j3SFwZXadIwjk0mR UQfWKCWaYp2OFPRNwWNHQ7qmiRPc= X-Received: by 2002:a81:4ed1:0:b0:622:ccd5:3fa1 with SMTP id 00721157ae682-62a08d8871fmr100295777b3.12.1716827446031; Mon, 27 May 2024 09:30:46 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240527142311.3053-1-mario.limonciello@amd.com> In-Reply-To: <20240527142311.3053-1-mario.limonciello@amd.com> From: Chris Bainbridge Date: Mon, 27 May 2024 17:30:34 +0100 Message-ID: Subject: Re: [PATCH] drm/client: Detect when ACPI lid is closed during initialization To: Mario Limonciello Cc: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org, Alex Deucher Content-Type: text/plain; charset="UTF-8" On Mon, 27 May 2024 at 15:23, Mario Limonciello wrote: > > If the lid on a laptop is closed when eDP connectors are populated > then it remains enabled when the initial framebuffer configuration > is built. > > When creating the initial framebuffer configuration detect the ACPI > lid status and if it's closed disable any eDP connectors. > > Suggested-by: Alex Deucher > Reported-by: Chris Bainbridge > Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3349 > Signed-off-by: Mario Limonciello > --- > drivers/gpu/drm/drm_client_modeset.c | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) Thanks. Works for me. Note that I tested against mainline commit f0cd69b8cca6 due to regression https://lore.kernel.org/all/CABXGCsN1z2gj99zSdhQWynpTXBymrqHejDfF8axxxoiZ_0g_-g@mail.gmail.com/