Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3693453imm; Mon, 30 Jul 2018 01:33:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcnH+3geAyA+3lafez87q66CyZ3KJ2ZZHGbwh4JgVlp3UW+osOpPkKSTHWGgYqdkXW3gQpu X-Received: by 2002:aa7:8591:: with SMTP id w17-v6mr17058166pfn.77.1532939593832; Mon, 30 Jul 2018 01:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532939593; cv=none; d=google.com; s=arc-20160816; b=x2sRPfzhhqT7/mLTR/GJdMwHdvG2OkPR7LSAC3UsmK4/Zv5e5rNTNoQcXQIHNkcS4P cCyWPlS7UG4nm+L/mK1TKThjwtYJgdA71hSHqHc95UL/86IvvDogEWNqNnxCWDW3JJ0H UbxXFyQQEnN9tn6KYlxNgwL5Nmv8n+E5zCpSsqYJZvtny78vpZyZifmrx5DM7Stq8q3s i/rrR5nQYCNsFKL/aeMYjTLZdBZm0DHRtEIUmJcS9ZPGaNJuFq4WZol5AJvx9/Szu+/j VWZrO8O0dwnYq7wG0gVPBbVbLjh4U5ZOwJG3xCcwVGYtJXHWs++07oTOcFXIWk4k4bRy EIhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=RtfgYZzEOPBdPvMuIVwn81c0tlNJ3Z1B3Shr21xLDcw=; b=Cpx9AIqX2GR4U8SvBEWITs27lX+IoV9IZhYG0LpHFcJdh6TYmaEOwpP4vhOejFHkgU o7lsTTaiOC3ry2YXv30SPZFFHNWrRd28PPbqfmPZchMAP17EuRJxIVnnxqJhYhaAPND2 /ZHjSQa01X/beZ//NMdvbqscpgk1CMETu29RbDE4O6M386O1V6D+wQjLez2+AAKe8o8S fHnE+Grhw68vO71RgONLcM0sbQrUgun+w4mzUqaeBSrpUIg1whzbyE+LieeHa5FJXbfj cDEW54i+LxXwqkOxzHlkGzJ1r4UkJL2K9U7+apwvUkVH1gEQeRZcR2IHP9mjtO7MKUuI vNtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a20-v6si10249301pls.237.2018.07.30.01.32.58; Mon, 30 Jul 2018 01:33:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726598AbeG3KGF (ORCPT + 99 others); Mon, 30 Jul 2018 06:06:05 -0400 Received: from bmailout2.hostsharing.net ([83.223.90.240]:48531 "EHLO bmailout2.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726497AbeG3KGF (ORCPT ); Mon, 30 Jul 2018 06:06:05 -0400 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout2.hostsharing.net (Postfix) with ESMTPS id B6EB42800B1CD; Mon, 30 Jul 2018 10:32:10 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 618F22638C; Mon, 30 Jul 2018 10:32:10 +0200 (CEST) Date: Mon, 30 Jul 2018 10:32:10 +0200 From: Lukas Wunner To: Bjorn Helgaas Cc: Rajat Jain , Keith Busch , Vidya Sagar , Philippe Ombredanne , Ard Biesheuvel , Sinan Kaya , Frederick Lawler , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, mayurkumar.patel@intel.com, rajatxjain@gmail.com, Richard Hughes , Carlos Garnacho , "Rafael J. Wysocki" , Takashi Iwai Subject: Re: [PATCH v2] pci/aspm: Remove CONFIG_PCIEASPM_DEBUG Message-ID: <20180730083210.GA9641@wunner.de> References: <20180508230148.121852-1-rajatja@google.com> <20180510233912.96454-1-rajatja@google.com> <20180727202619.GD173328@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180727202619.GD173328@bhelgaas-glaptop.roam.corp.google.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 27, 2018 at 03:26:19PM -0500, Bjorn Helgaas wrote: > The question is where those sysfs files should be. Currently they are > associated with the device at the *upstream* end of the link. In the > example above, they're associated with the Root Port: > > /sys/devices/pci0000:00/0000:00:1c.2/power/link_state > > I don't know if that's the right place, or if they should be > associated with the device at the *downstream* end of the link, i.e., > 04:00.0. The downstream end might be better because: > > - It's easier to associate the downstream end with a device the user > cares about, e.g., a NIC, GPU, etc. This is mostly a user- > interface issue. > > - A link can lead to a multi-function device, and the spec allows > those functions to have different ASPM settings (see PCIe r4.0, > sec 5.4.1). With the sysfs files at the upstream end of the link, > we have no way to configure those functions individually. > > Any thoughts? Conceivably, could the downstream end not be enumerated at all? (E.g. a hotplug or rescan is necessary for it to be enumerated?) If so, the upstream end might be better because the ASPM settings can be configured in advance, before the downstream end appears. Thanks, Lukas