Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp786352rdb; Fri, 9 Feb 2024 00:37:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGodYNczPF7ZueA5OG3fktp/USmsEFRJuOEKUCEpaXIslL5+JfIQ73h2JFdDZZwBlix7rwq X-Received: by 2002:a17:902:cec3:b0:1d9:39b4:2039 with SMTP id d3-20020a170902cec300b001d939b42039mr467702plg.30.1707467831475; Fri, 09 Feb 2024 00:37:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707467831; cv=pass; d=google.com; s=arc-20160816; b=hpx3L9QpdS1QWE3lVnvhW8vaf/71GNXXjC2UGhUOzTXbQm0MZHAFrEJ1qCL1ujA8gn 73gFItll2MP7Y6H6fJDyIlY44M0YRoaxakW3Hg3++Jo9MkOZW+yC0GVS0Uph4LH4s+wz g+DjnpkeD3r2hlynDvb5Qr+9eGlqJCjQuB0xjcoQTV7sDmMx3pwFgBlCSDGXSS+3XzBj FXdUihde6arytUZGaAK5BoLTQJ0r2+ngsAWMVwd9lpruUs12cAY+RCRnnqS+TA1AtMzq mIqcQQlfjiUNJThC04VpdtydT7KdVf1KArfckFPKTQZOqoJkPeSH1ASwnxHko65uxQ70 OsGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=eI47/fx9ow1vC1sUGCcwJnyIBfBKB89h23AbwyigvjY=; fh=7kNKFSDGNF/N6Rodn7jkkm8Ydt74gmuBKT0eIsiRtz0=; b=q01PPvmDHDiw1pElfaBI37k6k1nhUi6vNVd4nrZBgj5/mIifBYxHuVk07zumVTqjdp LeM4axoH3jz+FQLRID6/wK6l1mBm9LnaDEHioNQNmctfkJUSTtck83R1cvsqoyVj8xOd o4qH5t4parN5mgiuBtabkrLOIxIGL5br14k8mXtCq35bufUDDomQMHENc7eMezyNFCke yniMWrr8LK3zN4tH8V2aCDMqipltYhXTlSJit6cHMZHC61gNTtNvDO6PP79b1BhZwuju SwxbJ771zkC39XbzAXpOz530Sm1d0QrFoClohCszMljExXXIYNaP0iOvO6+UtDhvoFA4 TNZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@endlessos.org header.s=google header.b=V8Y5ZyTG; arc=pass (i=1 spf=pass spfdomain=endlessos.org dkim=pass dkdomain=endlessos.org dmarc=pass fromdomain=endlessos.org); spf=pass (google.com: domain of linux-kernel+bounces-59114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=endlessos.org X-Forwarded-Encrypted: i=2; AJvYcCVBVyzDKxKfWfmEiNWpBmuo7rKVQanj45DShg39izeznkkuuZ+Fm3D6uqXB044uCAsWdyZ+wjMpwN60nrV7pxFL+YKZOURCnBWn7jpdBA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z5-20020a170902d54500b001d946531b5dsi1334998plf.236.2024.02.09.00.37.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 00:37:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59114-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=@endlessos.org header.s=google header.b=V8Y5ZyTG; arc=pass (i=1 spf=pass spfdomain=endlessos.org dkim=pass dkdomain=endlessos.org dmarc=pass fromdomain=endlessos.org); spf=pass (google.com: domain of linux-kernel+bounces-59114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=endlessos.org 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 2A429284904 for ; Fri, 9 Feb 2024 08:37:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 506E865BCD; Fri, 9 Feb 2024 08:37:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=endlessos.org header.i=@endlessos.org header.b="V8Y5ZyTG" Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (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 E34BC523B for ; Fri, 9 Feb 2024 08:36:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707467820; cv=none; b=ZrYAkMyj9cqrFbju98GCZQzsXQ6C0EQDQvkptvZZebkClAOEY9QgYk/H2y5s9K4gxMIalRgHnh1c4T8C7eHYYyadeVBM8CkhOTbW2BTGkb2s3NQJRc05lUGl4RUej8sDaEa4MM1d1qK+Nm40oZKn5DK1ZusJcjReB40lB0tqJSQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707467820; c=relaxed/simple; bh=YkM7XkxxQUU4wgsaFp1Ru4C8Ad/DXfHja7UGPQFATmQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=nayokqbEi1ptQfKTUg6tlaT5TEDuw9Qq2lYYhaih/Kftso/wnAyiFi1B5+YUe+Q8Al9V8MONh1Db0VKHJ5FciK2m9iaQFAswqKXQwExuIlsYGhZ2BY5DE2PtlRfoTWWaPVvBSF2huTVKdMNUVnnX1RzITnmudHfduO1jI/kf6ZY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=endlessos.org; spf=pass smtp.mailfrom=endlessos.org; dkim=pass (2048-bit key) header.d=endlessos.org header.i=@endlessos.org header.b=V8Y5ZyTG; arc=none smtp.client-ip=209.85.219.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=endlessos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=endlessos.org Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-dc6dbac5fd1so216848276.0 for ; Fri, 09 Feb 2024 00:36:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessos.org; s=google; t=1707467818; x=1708072618; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eI47/fx9ow1vC1sUGCcwJnyIBfBKB89h23AbwyigvjY=; b=V8Y5ZyTGngd55bfog0hktxEPh9oEPGQy0kp/Q5AxWUdMj0/NKugetNdm4Mlo8i81qS xFrBaYG52Q6RI4Dc3j32DbobQ0q1Nf44oMOa3sUwAUrV7aN65jA2mQpck8rtMCsWbqU9 UOGeAb7dtcXp5+n4HoxREeQV0+vUjagM57MdWS4Mrgt9Y6jGtkbqWm9B0TLYAyhNPwzP 6/2UhuQ0FN9I5rgxyudPxOQ6xejMVFKu6FBF23lFGNngO09KeZ2DqEf9K502WzFq10+T VjGgRQ27ylefUS2YyvEbPfaZA86ct++ZDqrG+kyeiHHT1N6LsluXGDvJc7L8lUUT0GdX UOEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707467818; x=1708072618; 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=eI47/fx9ow1vC1sUGCcwJnyIBfBKB89h23AbwyigvjY=; b=oZdSAltdy8tR3P/VF7YK/sFwyiS1AHY9zAvPHLG09Z4GGM6wMr52vH2Ggerg+64V6Q +fST1jqdWrjErjQpHk3yIh7xJpo88TDv/zPT5G+B2oq0O7fhemhsLkOJAeW4M7B3NnDh hYXVj0l3/Af7lCq4YgcY9y/LEyPTwwHsP1Jtpfnz+wVzJutl7X9Lu1Yor5Ok7mPEL8f1 aDJnEIJcXS+iy4k6p8NqC7lSdY3FIzkrogYFgC4q0MWYFQx6zoqUg9Q3kxvyZexr4Iml WVCJB3Gm4y48XsKmG1ueVjbXbA9yOMGAvSM9ccPX1W8MkS4yuthg7XnTT9P0DuQOcDul HD+w== X-Forwarded-Encrypted: i=1; AJvYcCWKxroL7BF3nCXcwEeNG3PpVipxdiPDGRszcUcghts2mDX8vMKb5AziFOOLfUq0f/7K2y6+MBXNZf4A4GB+v6HFq6nUaXpJRHosxU1w X-Gm-Message-State: AOJu0Ywk5TW8UpMJNsVsPxIwG1Kmox4a9ccA3KQokmp4qT+F6CH4hXY6 +0eMbIYEXR9MG3G+rFlIVGj1xgEuVGK2MCxAuE+36QD2k+TK9s7IzFn9kN6lRsvwNFpk65AywzV VQpZzfOSB/YlhayNgJKVnX0vD530C3tVC0Wi78A== X-Received: by 2002:a25:680f:0:b0:dbc:d44e:4ba5 with SMTP id d15-20020a25680f000000b00dbcd44e4ba5mr425283ybc.3.1707467817808; Fri, 09 Feb 2024 00:36:57 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240207084452.9597-1-drake@endlessos.org> <20240207200538.GA912749@bhelgaas> <9654146ac849bb00faf2fe963d3da94ad65003b8.camel@linux.intel.com> In-Reply-To: <9654146ac849bb00faf2fe963d3da94ad65003b8.camel@linux.intel.com> From: Daniel Drake Date: Fri, 9 Feb 2024 09:36:21 +0100 Message-ID: Subject: Re: [PATCH v2 1/2] PCI: Disable D3cold on Asus B1400 PCI-NVMe bridge To: david.e.box@linux.intel.com Cc: Bjorn Helgaas , tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, bhelgaas@google.com, mario.limonciello@amd.com, rafael@kernel.org, lenb@kernel.org, linux-acpi@vger.kernel.org, linux@endlessos.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Feb 8, 2024 at 5:57=E2=80=AFPM David E. Box wrote: > This does look like a firmware bug. We've had reports of D3cold support m= issing > when running in non-VMD mode on systems that were designed with VMD for W= indows. > These issues have been caught and addressed by OEMs during enabling of Li= nux > systems. Does D3cold work in VMD mode? On Windows for the VMD=3Don case, we only tested this on a BIOS with StorageD3Enable=3D0. The NVMe device and parent bridge stayed in D0 over suspend, but that's exactly what the BIOS asked for, so it doesn't really answer your question. On Linux with VMD=3Don and StorageD3Enable=3D1, the NVMe storage device and the VMD parent bridge are staying in D0 over suspend. I don't know why this is, I would have expected at least D3hot. However, given that the NVMe device has no firmware_node under the VMD=3Don setup, I believe there is no way it would enter D3cold because there's no linkage to an ACPI device, so no available _PS3 or _PR0 or whatever is the precise definition of D3cold. I also realise I may have made a bad assumption in my previous mail when looking at the Dell device: I was assuming that a parent PCI bridge cannot go into D3cold if its child devices only got as far as D3hot, but I now realise I'm not sure if that constraint actually exists. Not sure if these questions are relevant for the consideration of this patch, but I'll try to find some time to answer them next week. Daniel