Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4928193rdb; Tue, 12 Dec 2023 13:27:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBxK4oxnXrJWy8bH58ptp+r6qDS6YooCZvgR0nMPLW50KZZFHy+1uoWjwV45COgNM9hdq6 X-Received: by 2002:a17:90a:bf85:b0:286:6cc0:cabd with SMTP id d5-20020a17090abf8500b002866cc0cabdmr5068339pjs.52.1702416442997; Tue, 12 Dec 2023 13:27:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702416442; cv=none; d=google.com; s=arc-20160816; b=l72PMuaS35+TYGm87/QMstMU+eWLUPBFBRmhPV8CHW6vWqB7w4Ej/0lpK9MnzipPnk juHHCfVOVDBhXkg49T+MKPp3P6mgD6Ug/6nxBpuOEf8ME1l1kdZTAvD8/xT0QJw1Z2T4 BlUn/y04qJkboFbUW0Su1KkiBLXJyploJBcCR23u4tWbbQ+B0Z3YoD5hFgixVI7IyEP1 lNwfrMhbcV07PSpXo3tpgAa+MJrM8QvebiSxiKHr7sruM/9Y5mk/CUTc6zjpvYJrxMkt ie3PNMWHUEeAGc+3gF0kWaqfSxd+3qVXe6Gh89o7byO9emGqs0lxcZ31775OYp7euGyp 8icQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=WrOBlAyy1e+czxsDHqYHtrodUILgCgFUyI9qBCXPEBk=; fh=St3N6wkfBxaz6TWWsp2COzuyjncIsihqdhVK0ISnkuU=; b=RL9FqT2w/zlLEO3qmdenmW/EP7BR+8YnKUvJyR6t/VE7BF2n6tN40c8xvuuo+OVoZa /deCb3m6BIcJrXZDY14lfdbLeAqM1pWzkok0LRlN/egU4Q9B73IFQxtf6K7LFzLcBFPN Gj02YYLbuQNhNtowo6vBCocAcXLtIKDBsb3JF5yV8T46cML+ypInJaYti//7oluuEhs2 TINeZF4JdCtI06kLvG5n4mEZyHy6YcOdJCTfKHvF/V3UOxt/3/Dj8XUr8FAm24aMDsbH 4rUmK9OYsqv4koMaaORvQvtjMMMeRlmK2tmUDCqHVh14JkVZiMwxcbVdL/gaEHpWCucH QlZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r5Q7DnGG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id lb15-20020a17090b4a4f00b00288657cdf5fsi9772768pjb.101.2023.12.12.13.27.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 13:27:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r5Q7DnGG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 688A9810756C; Tue, 12 Dec 2023 13:27:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235157AbjLLV1H (ORCPT + 99 others); Tue, 12 Dec 2023 16:27:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235196AbjLLV1E (ORCPT ); Tue, 12 Dec 2023 16:27:04 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69AEFFD for ; Tue, 12 Dec 2023 13:27:10 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82447C433C7; Tue, 12 Dec 2023 21:27:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702416430; bh=dswbdDQkq9R1rqLEQPK78MDzN2SBMjw7O1v1jhL3dU4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=r5Q7DnGGEGhJChFt9UzIVBp28k4PNZQGG3QDcSIoEbRCqDHkk1/x+AZynmP5SKQy1 8sYavtfW2mETOwNUcbgsiTi7SIbNF6x5Ld7NVxdgKyyCmZN+CVgSiaXpuacBLP/D8a YJSgzrt9VlXDXRA4oiQXbfmeM9SgZzYXvffVfDRGO5QsiI7Ix2HPCiCWe7IWC03RJZ uyNrfJoL/abXRAV95IvqkTJHRlHFzsL+c2rKHGYdb+k0G1U8E3w9/zBGSyTRKPVe6y qcqiN7g7G7hry8Y3pkrVhlnRxEp8/DdQop2rAkqd3TuohbEzDwkKzjV4k8Qbk2FYbV nUEXOkCGRFvSg== Date: Tue, 12 Dec 2023 15:27:07 -0600 From: Bjorn Helgaas To: Kai-Heng Feng Cc: Johan Hovold , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Andy Gross , Bjorn Andersson , Konrad Dybcio , Manivannan Sadhasivam , Rob Herring , Nirmal Patel , Jonathan Derrick , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Michael Bottini , "David E . Box" , Manivannan Sadhasivam Subject: Re: [PATCH v2 1/6] PCI/ASPM: Add locked helper for enabling link state Message-ID: <20231212212707.GA1021099@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 12 Dec 2023 13:27:20 -0800 (PST) On Tue, Dec 12, 2023 at 11:48:27AM +0800, Kai-Heng Feng wrote: > On Fri, Dec 8, 2023 at 4:47 AM Bjorn Helgaas wrote: > ... > > I hope we can obsolete this whole idea someday. Using pci_walk_bus() > > in qcom and vmd to enable ASPM is an ugly hack to work around this > > weird idea that "the OS isn't allowed to enable more ASPM states than > > the BIOS did because the BIOS might have left ASPM disabled because it > > knows about hardware issues." More history at > > https://lore.kernel.org/linux-pci/20230615070421.1704133-1-kai.heng.feng@canonical.com/T/#u > > > > I think we need to get to a point where Linux enables all supported > > ASPM features by default. If we really think x86 BIOS assumes an > > implicit contract that the OS will never enable ASPM more > > aggressively, we might need some kind of arch quirk for that. > > The reality is that PC ODM toggles ASPM to workaround hardware > defects, assuming that OS will honor what's set by the BIOS. > If ASPM gets enabled for all devices, many devices will break. That's why I mentioned some kind of arch quirk. Maybe we're forced to do that for x86, for instance. But even that is a stop-gap. The idea that the BIOS ASPM config is some kind of handoff protocol is really unsupportable. Do we have concrete examples of where enabling ASPM for a device that advertises ASPM support will break something? Bjorn