Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp342219lqt; Thu, 6 Jun 2024 05:31:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVtpwgqjPgL2pN/It1WWVW2U7cjQATagRdU/gQdfyKHH5Ggg92o5oyC3VbH3qPrx7FYTcbJSgcnu2b3u+EVIrZiPojp7zhOvNIvxNAFNg== X-Google-Smtp-Source: AGHT+IG0mx0yTpt2OiyfCrViGvO6SAAW1NuycPr3FnMuugo1NU78Snj4iGFWAYqJ5aVNdRwgifXJ X-Received: by 2002:a05:6512:3a8d:b0:52b:7c7c:bf4a with SMTP id 2adb3069b0e04-52bab4c9a16mr5001477e87.10.1717677111198; Thu, 06 Jun 2024 05:31:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717677111; cv=pass; d=google.com; s=arc-20160816; b=NhCWj1ZAqbFYmYDPnAVlwN9q6f60DxWnw5+k+Gs60ZICn455a7Hn6XZV+bHmXSly1y 8PbkJUagVBtwSntMsrbLQEnN4nHDQgHEVXNA6tRV5yJOV5vSId0lev8VzYpfgjBd8mPB nExWFsQt+v6n19FVNmrs+dFFacavxvQ86jQw9EZVXGaIRxvuhOIQkn33nMUQorA8MnHx bMJId81syWbIc3XF7/UzY3cCBo6bWQjtVDUmXdOH0kDJEX/vkOqIhzYdvGK/6o+XL53r VHXJeD9omTmiukJSDydi/s+pzx2wk8dRef+C3Mp6y5r2nPMfMTqG9RyZjgyQBKLZ2mr/ Ja9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BblllZw9gz8Kv1B0jHPMzvH2Iz5QVI8PphI7AmkkVUU=; fh=cc3gVjO93nKyUp5w8I2bIDZFxyPJS9GPwgS0DOFwqfY=; b=KDTE2XZ6+Q4o5y5tKuqcqFsB+REM8bpvE9IXLYNY7j4WDqT7eXxS6IFUl4risOpnL0 b/x491mV9mEMsd4DFNF+Yu8yE0mSP8c9RZNMJi8U9oBB/RCPLIlJp3qg+V2c4sMT2RLB chrf9Yq4ug7YdUNDjX9pYFoGdiyrrRQiGyjA1jWGB6PXNhsy5XMWUXGx04eeeD9sHi6J OgwzBmNxEi0N6rmAo6Tj4rz16gBOjZK45MAF6Ilgk+JMB1kxi6z3+ZlOHoP5pPW3BYXE OaEi/ZiAmv9yKobId+7FbPu4A8glVte3/viCQOnQvDvmd13ADnUQKOg5a2PD+8Pxq2li /pTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XEp9ABCY; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-204271-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204271-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c806dbfedsi64631966b.478.2024.06.06.05.31.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 05:31:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204271-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XEp9ABCY; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-204271-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204271-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id B61E01F249DA for ; Thu, 6 Jun 2024 12:31:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1EE8195983; Thu, 6 Jun 2024 12:31:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="XEp9ABCY" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E0FC190697 for ; Thu, 6 Jun 2024 12:31:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717677103; cv=none; b=lJD5yiIz4jYbnTHH2W6zRiAuhXcezBshFVrFDdladqpopVMbxLR/q7cFDQYfTm81YarTcz1L2XZFonLdifTeoDe2nvvP6CDdBrOnQBKRXTpXLt1cRkQNWJgNS2OHBpRILUNTo2PCxtY9LsD2cvRqOBzR1orWD38NjLmPSA5CoNs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717677103; c=relaxed/simple; bh=qmQ2i1HXn0VWzplIzuv5p+11bHG39A8QkFIOVxF7dZg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QjziUVBg4inCT6RsJ1+kVQqNK9tiAQ5ZFeVikVhZ3VXqu3Qn1spDdbRj8HLPEQx0OqpUWTJFmvswwglvxTodnfec3WHiYIuDku2DCq0oN/l33Fnly0fIu5AXEUtXhD9c76ENiWTtZwojgnJLfg5d/hTNvPbOgMtHmMNB+ZlKNGc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=XEp9ABCY; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717677101; x=1749213101; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=qmQ2i1HXn0VWzplIzuv5p+11bHG39A8QkFIOVxF7dZg=; b=XEp9ABCY250+qJqYG4QOf76TrSlj7TzlDbR00OQZTXWbGpc+wRbSPUZS WXN1eW+hWE3+myKuwApgw6Gs/cHeVBj6faIMwouhsPo036J9Ehm75Ai2l mcxeE/kyPDC13OA1Yb+9lfmcmdugdxC9V6NB3Ti+AxJ2sXH35iY54wMSz 2f9LmtUZmcXwMIIcSdLCn6Ai1alKp9DKUOOGkiMVs+9tD/0Ith7X6ZV25 vvtDDlnuy+stl5Z7Je3/r0HFJkS6J4fuerdwRsGO3HUApmc9+4EWgCHj2 Cz61+wAw/5S8LreJ3wEpyEhOsNKk7gmh4/7uAAV2BBCDHoQSbXbVeV8CC w==; X-CSE-ConnectionGUID: A404pseGS/aZPD1o/A9Skw== X-CSE-MsgGUID: d8oMtkAUQG+mfm58mDABKA== X-IronPort-AV: E=McAfee;i="6600,9927,11095"; a="14179497" X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="14179497" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2024 05:31:40 -0700 X-CSE-ConnectionGUID: BERFzdKoRCOuD+bVLtOUDw== X-CSE-MsgGUID: U23lwtZKQJK6r0IejF8rhA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="37960244" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by fmviesa008.fm.intel.com with SMTP; 06 Jun 2024 05:31:35 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 06 Jun 2024 15:31:34 +0300 Date: Thu, 6 Jun 2024 15:31:34 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Jani Nikula Cc: Chris Bainbridge , kernel test robot , Mario Limonciello , dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, hughsient@gmail.com Subject: Re: [PATCH v2] drm/client: Detect when ACPI lid is closed during initialization Message-ID: References: <20240528210319.1242-1-mario.limonciello@amd.com> <202406040928.Eu1gRIWv-lkp@intel.com> <87h6e6bkpo.fsf@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87h6e6bkpo.fsf@intel.com> X-Patchwork-Hint: comment On Thu, Jun 06, 2024 at 10:21:07AM +0300, Jani Nikula wrote: > On Wed, 05 Jun 2024, Chris Bainbridge wrote: > > On Tue, Jun 04, 2024 at 10:02:29AM +0800, kernel test robot wrote: > >> Hi Mario, > >> > >> kernel test robot noticed the following build errors: > >> > >> [auto build test ERROR on drm-misc/drm-misc-next] > >> [also build test ERROR on drm/drm-next drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-tip/drm-tip linus/master v6.10-rc2 next-20240603] > >> [If your patch is applied to the wrong git tree, kindly drop us a note. > >> And when submitting patch, we suggest to use '--base' as documented in > >> https://git-scm.com/docs/git-format-patch#_base_tree_information] > >> > >> url: https://github.com/intel-lab-lkp/linux/commits/Mario-Limonciello/drm-client-Detect-when-ACPI-lid-is-closed-during-initialization/20240529-050440 > >> base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next > >> patch link: https://lore.kernel.org/r/20240528210319.1242-1-mario.limonciello%40amd.com > >> patch subject: [PATCH v2] drm/client: Detect when ACPI lid is closed during initialization > >> config: i386-randconfig-053-20240604 (https://download.01.org/0day-ci/archive/20240604/202406040928.Eu1gRIWv-lkp@intel.com/config) > >> compiler: gcc-9 (Ubuntu 9.5.0-4ubuntu2) 9.5.0 > >> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240604/202406040928.Eu1gRIWv-lkp@intel.com/reproduce) > >> > >> If you fix the issue in a separate patch/commit (i.e. not just a new version of > >> the same patch/commit), kindly add following tags > >> | Reported-by: kernel test robot > >> | Closes: https://lore.kernel.org/oe-kbuild-all/202406040928.Eu1gRIWv-lkp@intel.com/ > >> > >> All errors (new ones prefixed by >>): > >> > >> ld: drivers/gpu/drm/drm_client_modeset.o: in function `drm_client_match_edp_lid': > >> >> drivers/gpu/drm/drm_client_modeset.c:281:(.text+0x221b): undefined reference to `acpi_lid_open' > >> > >> > >> vim +281 drivers/gpu/drm/drm_client_modeset.c > >> > >> 260 > >> 261 static void drm_client_match_edp_lid(struct drm_device *dev, > >> 262 struct drm_connector **connectors, > >> 263 unsigned int connector_count, > >> 264 bool *enabled) > >> 265 { > >> 266 int i; > >> 267 > >> 268 for (i = 0; i < connector_count; i++) { > >> 269 struct drm_connector *connector = connectors[i]; > >> 270 > >> 271 switch (connector->connector_type) { > >> 272 case DRM_MODE_CONNECTOR_LVDS: > >> 273 case DRM_MODE_CONNECTOR_eDP: > >> 274 if (!enabled[i]) > >> 275 continue; > >> 276 break; > >> 277 default: > >> 278 continue; > >> 279 } > >> 280 > >> > 281 if (!acpi_lid_open()) { > >> 282 drm_dbg_kms(dev, "[CONNECTOR:%d:%s] lid is closed, disabling\n", > >> 283 connector->base.id, connector->name); > >> 284 enabled[i] = false; > >> 285 } > >> 286 } > >> 287 } > >> 288 > >> > >> -- > >> 0-DAY CI Kernel Test Service > >> https://github.com/intel/lkp-tests/wiki > > > > The failed config has CONFIG_ACPI_BUTTON=m. The build failure can be > > fixed with: > > > > diff --git a/drivers/gpu/drm/drm_client_modeset.c b/drivers/gpu/drm/drm_client_modeset.c > > index b76438c31761..0271e66f44f8 100644 > > --- a/drivers/gpu/drm/drm_client_modeset.c > > +++ b/drivers/gpu/drm/drm_client_modeset.c > > @@ -271,11 +271,13 @@ static void drm_client_match_edp_lid(struct drm_device *dev, > > if (connector->connector_type != DRM_MODE_CONNECTOR_eDP || !enabled[i]) > > continue; > > > > +#if defined(CONFIG_ACPI_BUTTON) > > if (!acpi_lid_open()) { > > drm_dbg_kms(dev, "[CONNECTOR:%d:%s] lid is closed, disabling\n", > > connector->base.id, connector->name); > > enabled[i] = false; > > } > > +#endif > > } > > } > > No. This is because > > CONFIG_DRM=y > CONFIG_ACPI_BUTTON=m > > The pedantically correct fix is probably having DRM > > depends on ACPI_BUTTON || ACPI_BUTTON=n > > but seeing how i915 and xe just > > select ACPI_BUTTON if ACPI Huh. We should nuke that as we haven't used this lid stuff in ages. -- Ville Syrj?l? Intel