Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2596725imu; Thu, 24 Jan 2019 16:04:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN5SwkqV2LecYohricq5QWmqmV4BfPBgHJe8U7XRempAoa+wj5Gr/xq3G8TSqXjUN4RkIiIq X-Received: by 2002:a62:824c:: with SMTP id w73mr8574583pfd.150.1548374687874; Thu, 24 Jan 2019 16:04:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548374687; cv=none; d=google.com; s=arc-20160816; b=ZuUmxNvDxvcSGVOTcCm0iF87id5rsAXfOMxRLaGWbARw9NTGLNEe4XxKsrIonAhRS7 j5Vo8EsZZ8bYSF7HnKgcrUT1WzrFvvk8U3n9WIWX3AHEWbVHkGiBAn/2/41mgzIBB1wy RX0fUmYTq9BHMJzYHD5/tZODC32gJTUfYGFxSmIaRfa7Ll3UW+n68sWcf2SxtMPFvJMc yalj3EoEOEEex4AFAULm7pxNu46QYRibk04ykVeZszOGHhiPCoISH1Z/99O0dS4I4nZu WJ6J8dMhOBkAxLdJB0zkJcrrPzp3mcMqweZ/I0hs1/tCEi1B8pESJYM5o6w5PGW/A8ME jH+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=irrrj1aIRm1Xathl7FhqoMhu6j8f0JSUgmySPpo0TJk=; b=bHrU5LsCyjZzormh0Nq6HkBh9ZqIAZ5KY2EB9g+cvepufBkL5m5gue4SFraHcoVCJV nZeqV9SJycOxbcFr/KNtm705hYvjvFy5+UqRNgEsofl5I/nt++mq1V5wy9oBZSMLYYVr 8/bK/1lfe6iH8P02Unz6YrOEXlA4mve1uO01U2vqHfyY0C2Ycy/3wpYdILRx9UYtgNL6 Vp7WBzews59GZyBNhyrk9q07D16QyqBhaBw5n2RS88afGlyRSPnnMYaCanZMTaP0rGjm MYY3rcmQ1iPlHAstq7HUDwcOZmP4cA0zQun4Loi6jHzEZ43P2LW3cHZ0jqjuikGPHB3P /Dmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TnzBcq7B; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 37si22270954pgw.590.2019.01.24.16.04.21; Thu, 24 Jan 2019 16:04:47 -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=@gmail.com header.s=20161025 header.b=TnzBcq7B; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726861AbfAYAEP (ORCPT + 99 others); Thu, 24 Jan 2019 19:04:15 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:41154 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726015AbfAYAEP (ORCPT ); Thu, 24 Jan 2019 19:04:15 -0500 Received: by mail-qk1-f193.google.com with SMTP id 189so4454851qkj.8 for ; Thu, 24 Jan 2019 16:04:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=irrrj1aIRm1Xathl7FhqoMhu6j8f0JSUgmySPpo0TJk=; b=TnzBcq7B9dj4hDWYhAdrx715udUh48w0TME8rdoDnyJg7e/O66OZ/uqb+2A1+FYq+7 AAxxvrbaNhm6p9N7PDL8sH+IQDZDjqCIrZzbR0JxSjMAtPqp1VnDGsp+BEMFstBcm553 KuLyNdGijyGwGxTzRiibJk8FbJzllRZXNOltaoQFIb7wAPL91TjdZPlb4yrrJ+wR9e+o PVDjB1d7mKVlHY+zu38jUJlTX1uAT2uM3N5ySWTYv8FT7SrrGbti1MET9ytPZKR4sEDM c3DofTr+n2IJUQpDyBUYvF/I7Ach8Kb/S5FFaXJXxGWX1aRCfmNHjNQvorNFvPg32ByO soKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=irrrj1aIRm1Xathl7FhqoMhu6j8f0JSUgmySPpo0TJk=; b=qZ1EnheYltRapA0cj4X3gS0DbyY4jb5ZFw/P2FQy4yDktPi+YETRpUpo8NuSNXgiZ8 zZGsLrRmYuioNoRDcvR4XH38FiF5O9igbmtnmuDPy4mF24FVB8x+azue4/e0yAxk2v1d CNYKj2q0vAKBITXeOB6haZdP0I/HBUqRalRCDWx4dfo/6LdCWg8Lgt1eOCJFFXmwCjjp 31I+7RlIeSNH+VenKuQCkOYjBvExGPtDJnQUib7/RnxDeixcf47CjjbgpFmLFuy5Uc+p MQMhpyWevsT4vfQ7aPYB311XAqk/2yGsJN7Usy7A+UMVXJXgwhUhi1DbjVYarVm+ib6i ZkZw== X-Gm-Message-State: AJcUukd8gX9iazyquKoJTZbTWUuPGNOgLF9ogmr8eYrNTCsdHklkYJgG Hu+42C9JUGrx00nToLTQr+8= X-Received: by 2002:a05:620a:9:: with SMTP id j9mr7795813qki.144.1548374654125; Thu, 24 Jan 2019 16:04:14 -0800 (PST) Received: from oc6857751186.ibm.com (c-24-20-82-131.hsd1.or.comcast.net. [24.20.82.131]) by smtp.gmail.com with ESMTPSA id g25sm51998796qki.29.2019.01.24.16.04.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 16:04:13 -0800 (PST) Subject: Re: [RFC 1/6] powerpc:/drc Define interface to acquire arch-specific drc info To: Michael Bringmann , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: Juliet Kim , Thomas Falcon , Tyrel Datwyler References: <20181214204914.16435.59083.stgit@powerkvm6.aus.stglabs.ibm.com> <20181214204957.16435.29255.stgit@powerkvm6.aus.stglabs.ibm.com> From: Tyrel Datwyler Message-ID: Date: Thu, 24 Jan 2019 16:04:10 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181214204957.16435.29255.stgit@powerkvm6.aus.stglabs.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/14/2018 12:50 PM, Michael Bringmann wrote: > Define interface to acquire arch-specific drc info to match against > hotpluggable devices. The current implementation exposes several > pseries-specific dynamic memory properties in generic kernel code. > This patch set provides an interface to pull that code out of the > generic kernel. > > Signed-off-by: Michael Bringmann > --- > include/linux/topology.h | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/include/linux/topology.h b/include/linux/topology.h > index cb0775e..df97f5f 100644 > --- a/include/linux/topology.h > +++ b/include/linux/topology.h > @@ -44,6 +44,15 @@ As far as I know pseries is the only platform that uses DR connectors, and I highly doubt that any other powerpc platform or arch ever will. So, I'm not sure that this is really generic enough to belong in topology.h. If anything I would suggest putting this in an include in arch/powerpc/include/ named something like drcinfo.h or pseries-drc.h. That will make it visible to modules like rpaphp that want/need to use this functionality. -Tyrel > > int arch_update_cpu_topology(void); > > +int arch_find_drc_match(struct device_node *dn, > + bool (*usercb)(struct device_node *dn, > + u32 drc_index, char *drc_name, > + char *drc_type, u32 drc_power_domain, > + void *data), > + char *opt_drc_type, char *opt_drc_name, > + bool match_drc_index, bool ck_php_type, > + void *data); > + > /* Conform to ACPI 2.0 SLIT distance definitions */ > #define LOCAL_DISTANCE 10 > #define REMOTE_DISTANCE 20 >