From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 9F1DF20103F for ; Fri, 25 Oct 2024 11:35:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729856133; cv=none; b=LzsbFY/H2bABJC/uUgONTMYS5jklLc4tfG9IDa0YT8g6rZeIS+R7mL9uSyTU2BjYe2xKhP5dJCSWqY0uGep6yqYOL04J2zwTINQUjxtfJ4oEaRYqA43IbHLhOdGXO6b3tZhn3zQmO+RiNTBNM13BKM64695N/TqabS7dsl6AbOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729856133; c=relaxed/simple; bh=yLCItyMxf1xNU+vD7VpaQ8sE0niUu581iltGIVBU5IA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a/22uP7FsxYdbUC9BPjCP70Wh5c3MpIBEd8fyPGOahpsN1oW4MNF/YnR+bIMbjlu5PW3Ya6caRn7iDGz1OPd9iYcXBdUqpJTkYyWSbFEO4xEKcPBUYkQ7z85h/Z9rV0IhAst4UDAF1Uh9wMbni17jQpMHDKvSGh2JOgGSK1F02Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 8FE37227A88; Fri, 25 Oct 2024 13:35:20 +0200 (CEST) Date: Fri, 25 Oct 2024 13:35:20 +0200 From: Christoph Hellwig To: Konrad Dybcio Cc: Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , Bjorn Andersson , Marijn Suijten , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Konrad Dybcio Subject: Re: [PATCH] nvme-pci: Force NVME_QUIRK_SIMPLE_SUSPEND on Qualcomm hosts Message-ID: <20241025113520.GA19521@lst.de> References: <20241024-topic-nvmequirk-v1-1-51249999d409@oss.qualcomm.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=us-ascii Content-Disposition: inline In-Reply-To: <20241024-topic-nvmequirk-v1-1-51249999d409@oss.qualcomm.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, Oct 24, 2024 at 07:33:07PM +0200, Konrad Dybcio wrote: > From: Konrad Dybcio > > The Qualcomm SC8280XP SoC requires that all PCIe hosts are powered down > before the platform can reach S3-like sleep states. This is very much > similar in nature to the issue described in [1]. > > Other Qualcomm platforms we support upstream require more complex code > additions across both the PCIe RC driver and other platform-specific > ones, before the link can be sustained in suspend. Hence, they > effectively need the same treatment for now. > > Force NVME_QUIRK_SIMPLE_SUSPEND on all Qualcomm platforms (as > identified by the upstream bridge having a Qualcomm VID) to address > that. Once the aforementioned issues on non-SC8280XP platforms are > addressed, the condition will be made more specific, with a PID check > limiting it to only the platform(s) that require it due to HW design. The NVMe driver is the wrong place for this, it needs to happen in the core by making acpi_storage_d3() evaluate to true. Preferably by actually setting the right ACPI attributes because a check for PCI vendor ID absolutely will never do the right thing in the long run.