Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3558697ybt; Tue, 30 Jun 2020 06:04:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwi6JVAcwiJoe1Vr2jgOjnxt8WxtOLSgdZ5TLvt6H4GwLBmjAGgoFCPcMx1SgmrC4A7wT4l X-Received: by 2002:a05:6402:1bdd:: with SMTP id ch29mr11854088edb.134.1593522280596; Tue, 30 Jun 2020 06:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593522280; cv=none; d=google.com; s=arc-20160816; b=UJZYZm6gd/Djp/BqEdNcCW4bx3TfAs7wBZLHwyiUT7nAmhBAZkU2GAJmx4bcTLYH1H Osr470C7NaFGMQtvcGXv44jHn/dblikQ1VWZmwNjyFCd6MgeusJD6uvTBWbUKJN+vQn6 Q+3c/I6EdFW5t+cNxbleRqlFsowcPDKHb2dEKVZf5gf0gJHSFXHyPSo5N0PLGkgy1Th8 fLnbAtffiB3sPX1+N+bRmDEyTe3jrnlC8elm/L8eOXhCw/ciGngPlfsXKmamDHVbg5bK n4UhUCaXsog8IY0sfImoKxji0N3TYDKlV5MxnUzGnqnaU2jlTOs2DJGjjvp9z7CxyR8E Pg3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=WqwbwU46JyOBSJ4M/llFeE1rugAXIYDl6Af9czQJBYA=; b=uEalEoQ1jeTQMhw+tgIt0UEhhr9khKet9qlLlxPFKB27GgO1NFgL8WCelb/C662yM2 c+FP/XeGQdbHhQFxzlob0PJovo8Q0rXiBI9xiAwIsbn6qBWwY0e3nZpq7iqvTsb6eiOx QsgyPxvwYx8uhO/xaCc4sEuAaks8CXMVa7EMS5JBVQaWIOxkVXplVflwMfLbCpvUh8DJ BAFZSRvTwjHmXMyJfii0vCHxFP3fGBgenixkWkLCjC/wtODo4iovgkWMZHPdRmNjal51 4oO6cfTclwiYCBko6jy3jqNOIy9jfH4/DvD1vUmv2U9T/jbstZO5bklhdVy9DXor+QYw 4Xcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ar18si1655337ejc.515.2020.06.30.06.04.14; Tue, 30 Jun 2020 06:04:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388074AbgF3NAs (ORCPT + 99 others); Tue, 30 Jun 2020 09:00:48 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:35058 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387860AbgF3NAr (ORCPT ); Tue, 30 Jun 2020 09:00:47 -0400 Received: by mail-ot1-f65.google.com with SMTP id d4so18322175otk.2; Tue, 30 Jun 2020 06:00:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WqwbwU46JyOBSJ4M/llFeE1rugAXIYDl6Af9czQJBYA=; b=jDFgAAuJGqYlbU3fXLv/gMLOuQAgYysSgZSbE6LepFkZOT3HfO8Qp2g512nitXF8WU tNL8LbHaLiHWlMgAIIEiCFaAfI6TO/0L9EiHmYLaWoh6gUj1VLFDDvC/aVPiU86eNlzD NWuurDaD4xa5PQzaFP/bfg4nNL2GJTW09ssxbhRplYCxZikO+6H75j0Q9MwIUq3s7Htc 4poFgdVtWsWy2dxLNFi6TDz4/vaAgL/rDpMso6eUUDfCVbFWLEmmN4fwK2mXrNcX1GAz TmOlI6aWtq66iOgYRYYrpAN6RfUx0CbUwNnQzncJs2/WFMTdR7vaJX1ol8Fe6gG6vJfL Xl/Q== X-Gm-Message-State: AOAM530oW9yWTHcFvY2+YKQ5T4QFA6QisDf0aqqI//cEwLhdIuchj9vF uMDPD/AqqOnGSb60rDvQSvEjZVIcv4Khfs7w0b45kg== X-Received: by 2002:a9d:39f5:: with SMTP id y108mr17985171otb.262.1593522045805; Tue, 30 Jun 2020 06:00:45 -0700 (PDT) MIME-Version: 1.0 References: <20200630044943.3425049-1-rajatja@google.com> <20200630044943.3425049-6-rajatja@google.com> <20200630104948.GC856968@kuha.fi.intel.com> <20200630125216.GA1109228@kroah.com> In-Reply-To: <20200630125216.GA1109228@kroah.com> From: "Rafael J. Wysocki" Date: Tue, 30 Jun 2020 15:00:34 +0200 Message-ID: Subject: Re: [PATCH v2 5/7] driver core: Add device location to "struct device" and expose it in sysfs To: Greg Kroah-Hartman , Rajat Jain Cc: Heikki Krogerus , David Woodhouse , Lu Baolu , Joerg Roedel , Bjorn Helgaas , "Rafael J. Wysocki" , Len Brown , "open list:AMD IOMMU (AMD-VI)" , Linux Kernel Mailing List , Linux PCI , ACPI Devel Maling List , Raj Ashok , lalithambika.krishnakumar@intel.com, Mika Westerberg , Jean-Philippe Brucker , Prashant Malani , Benson Leung , Todd Broch , Alex Levin , Mattias Nissler , Rajat Jain , Bernie Keany , Aaron Durbin , Diego Rivas , Duncan Laurie , Furquan Shaikh , Jesse Barnes , Christian Kellner , Alex Williamson , "Oliver O'Halloran" , Saravana Kannan , Suzuki K Poulose , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 30, 2020 at 2:52 PM Greg Kroah-Hartman wrote: > > On Tue, Jun 30, 2020 at 01:49:48PM +0300, Heikki Krogerus wrote: > > On Mon, Jun 29, 2020 at 09:49:41PM -0700, Rajat Jain wrote: > > > Add a new (optional) field to denote the physical location of a device > > > in the system, and expose it in sysfs. This was discussed here: > > > https://lore.kernel.org/linux-acpi/20200618184621.GA446639@kroah.com/ > > > > > > (The primary choice for attribute name i.e. "location" is already > > > exposed as an ABI elsewhere, so settled for "site"). Individual buses > > > that want to support this new attribute can opt-in by setting a flag in > > > bus_type, and then populating the location of device while enumerating > > > it. > > > > So why not just call it "physical_location"? > > That's better, and will allow us to put "3rd blue plug from the left, > 4th row down" in there someday :) > > All of this is "relative" to the CPU, right? But what CPU? Again, how > are the systems with drawers of PCI and CPUs and memory that can be > added/removed at any point in time being handled here? What is > "internal" and "external" for them? > > What exactly is the physical boundry here that is attempting to be > described? Also, where is the "physical location" information going to come from? If that is the platform firmware (which I suspect is the anticipated case), there may be problems with reliability related to that.