Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1922711ybc; Sun, 24 Nov 2019 09:06:17 -0800 (PST) X-Google-Smtp-Source: APXvYqxlYJ+hwkd9dwz6zgHtc54beVMc5B4iDOayEal3u9ebry5sTHT6IdkbzVtl1dsw6Ej9CUIp X-Received: by 2002:aa7:c3d0:: with SMTP id l16mr13560142edr.18.1574615177444; Sun, 24 Nov 2019 09:06:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574615177; cv=none; d=google.com; s=arc-20160816; b=TH8DAw93Pfuwu4zjSd1PznpaRgT/oGsVeSyX7dFJetwgLX82zChsu8ArMV5pdvOZ7M 3COaQuUCDNc85EScG8Fgy/twGjgZxBqFKc2Sda7ISB2GcsnoSj2hgNX2/ret42rAcfbL GK3VLMIx/WYH94qdf4Zs+/W8aUyLZIJBVdHzeGYK3QuAByeVj6TBZ64Mq7gWat3UkjS8 c1C8s+dQ6/pr7LTKp3PzYdi/Mx/Yk6sduE2i3/kHw87EJaikeRavx30DyTOytl7XmnUc FZSey7nTk5z4IwSVIfVtZCmjW330SoitgbBF+5G5GCnxMqSL1sJWSM2hHu2Ys1wfHFVp 7rRg== 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:dkim-signature; bh=lUDr/NOTflj3iPhYkApLRNONkkbnlacyvLcFp+t5IWM=; b=XIRxXEWcMcXA+HohrNSXGRSDhAesal2y7aRI7xRb0VH94LhW4j9jhokSlFfcuuEIoF Vq+/MW58VDICTTTV5cu2roIayniutll0f687PR3NJvvSOJRWB5IfEMUGDVbLza79d2fS NUAgcxPO3hxTsxB/p+YIoAk2M4UqRwmgs1raUPDpZ0d1Nvp6ElrpbdOCz1f7n4iyzi98 KBKZxGP3kfiMpnXblIMI7CXkr2+vQI/1VxJgoSkvXAZ2BO3CiTurQXJCUzxV9CiN4gOg Ai4M5Ys7Pz8rREFXdIftOdQu0QS9UWn2Mb3UA8aDZ0b2ar+Hvjsu04fve0TaAVp5+Wi+ JSng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QCE0iDOR; 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 c13si3120600edv.320.2019.11.24.09.05.48; Sun, 24 Nov 2019 09:06:17 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=QCE0iDOR; 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 S1726861AbfKXRCM (ORCPT + 99 others); Sun, 24 Nov 2019 12:02:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:49998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726765AbfKXRCL (ORCPT ); Sun, 24 Nov 2019 12:02:11 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 43805207DD; Sun, 24 Nov 2019 17:02:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574614930; bh=yTmvBBSki+sWQIcHxtO0uYKyI8aK9o6H9e3lZIwE6xE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QCE0iDORjQv/+lPjRQbS6uDIPTuDFpx1N5KlSCY4Vhh9g06dwcW0gVshWusxqRx4s G1ybicyh9H3ERmLK/cMWy7V4NEjeNyJXpT4jtAIV1wN2JARU1ThGhsjWZvkmiHBeW1 RYW7rs5BfL2Swo+cSCkHM+q0YcERhXh9yR/iD0Q8= Date: Sun, 24 Nov 2019 18:02:07 +0100 From: Greg KH To: Bjorn Helgaas Cc: Rajat Jain , Heiner Kallweit , Frederick Lawler , linux-pci , "Rafael J. Wysocki" , Mika Westerberg , Keith Busch , Linux Kernel Mailing List Subject: Re: [PATCH v7 4/5] PCI/ASPM: Add sysfs attributes for controlling ASPM link states Message-ID: <20191124170207.GA2267252@kroah.com> References: <20191121211017.GA854512@kroah.com> <20191121230411.GA92983@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191121230411.GA92983@google.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 21, 2019 at 05:04:11PM -0600, Bjorn Helgaas wrote: > What sort of tools would this break? There are no AER tools since the > AER stats sysfs files don't exist yet, so I assume there are some > generic sysfs tools or libraries. Any normal tool that looks at sysfs attributes, like udev and friends. They will "miss" the uevent for the subdirs and not know how to associate anything with the "parent" struct device. > Incidentally, > https://www.kernel.org/doc/html/latest/admin-guide/sysfs-rules.html > suggests that maybe we should be documenting these files with > /sys/devices paths instead of the symlinks in /sys/bus/pci/devices/, > e.g., > > diff --git a/Documentation/ABI/testing/sysfs-bus-pci b/Documentation/ABI/testing/sysfs-bus-pci > -What: /sys/bus/pci/devices/.../msi_bus > -What: /sys/bus/pci/devices/.../msi_irqs/ > -What: /sys/bus/pci/devices/.../msi_irqs/ > +What: /sys/devices/pci*/.../msi_bus > +What: /sys/devices/pci*/.../msi_irqs/ > +What: /sys/devices/pci*/.../msi_irqs/ Either is fine, but yes, the second one is nicer. thanks, greg k-h