Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp27418imu; Fri, 14 Dec 2018 12:52:02 -0800 (PST) X-Google-Smtp-Source: AFSGD/WQ8CAjYEET0HMG+jnGMCmx9Q1RJ0lv9zjb+M3PM20mFmAvZ9QjgOVjGExzuUf+NzcgOtir X-Received: by 2002:a63:e74a:: with SMTP id j10mr3896553pgk.228.1544820722602; Fri, 14 Dec 2018 12:52:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544820722; cv=none; d=google.com; s=arc-20160816; b=UZNIGA8rauhpNr+6KXmDRznLkCt4ZhLOYt+dhuH5n5iWbcULQmMrD6sg4PyK6iH8G5 EpCRw2SDdw1yiwM50M8CZJVunyt7w5pO1UN6WhoV6fdrpSJFRPI+sSBXkAA1u+fS2l/k ErEnXxEit6E2TzixVNcsYIzjCgwG3ePH6rQvtNAgLzaoWICyZZ3XBeyTgN15ta7cq+eo BDTYZbqOTxV/8oNPHHke5oItKG4jjpxtBEIiKpvHHzdQ14UHZHvGqzdB6TA3FU6IMZvf ahtfx58MAyfn2wKElvEDp2WMRLZj+IbSL0PlM5wpm0VHceoO+/fXm1CxFQkxxCsvcynY pfmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:user-agent:references:in-reply-to:date:cc:to:from :subject; bh=g5HFFhj8f2pyHOoySU25XdeZBh5061m/9n/LF2P4zcA=; b=LRsiN3rWvpw/YWVfu2MhjUEDUEd370KoZ/ZGTmhxA2v/YokjnwFlBPFX2+g9XPkY7J XCJ7rq9aMU2pH91W54Ah6ZCfFEDj6L8ItMysnAdGp+Ofo72/eG3xWrLPdpBvS52ZVGcK lHREIeBEwgJZ52gLHPHY1r99z/okoJaFMhaio+XPPqyvoLMjSbTyqwWsF/peeglYTM2C IJC/POJ/cLckhEKutmozG+oFFlT8JQtd7aM+2R2HpT/EtcX7HTCzmCoGSfSVVxeB1BL7 2q/pR6m+rKZ3e6fGsXfT9au1hf0Cgh8uOmLQPT6lSyeqiiEvffN0wvKVQNH4SVlOtK1a 02Eg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 15si4787289pgv.351.2018.12.14.12.51.47; Fri, 14 Dec 2018 12:52:02 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731139AbeLNUue (ORCPT + 99 others); Fri, 14 Dec 2018 15:50:34 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:39830 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730906AbeLNUud (ORCPT ); Fri, 14 Dec 2018 15:50:33 -0500 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wBEKn28F149489 for ; Fri, 14 Dec 2018 15:50:32 -0500 Received: from e36.co.us.ibm.com (e36.co.us.ibm.com [32.97.110.154]) by mx0b-001b2d01.pphosted.com with ESMTP id 2pcjn7u22m-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 14 Dec 2018 15:50:32 -0500 Received: from localhost by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 14 Dec 2018 20:50:31 -0000 Received: from b03cxnp08028.gho.boulder.ibm.com (9.17.130.20) by e36.co.us.ibm.com (192.168.1.136) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 14 Dec 2018 20:50:30 -0000 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wBEKoTcb26148890 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 14 Dec 2018 20:50:29 GMT Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 48A726A058; Fri, 14 Dec 2018 20:50:29 +0000 (GMT) Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 35E3E6A054; Fri, 14 Dec 2018 20:50:26 +0000 (GMT) Received: from powerkvm6.aus.stglabs.ibm.com (unknown [9.40.192.78]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP; Fri, 14 Dec 2018 20:50:26 +0000 (GMT) Received: from powerkvm6.aus.stglabs.ibm.com (localhost [IPv6:::1]) by powerkvm6.aus.stglabs.ibm.com (Postfix) with ESMTP id 5CE8540E516A; Fri, 14 Dec 2018 14:50:26 -0600 (CST) Subject: [RFC 1/6] powerpc:/drc Define interface to acquire arch-specific drc info From: Michael Bringmann To: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: Michael Ellerman , Juliet Kim , Tyrel Datwyler , Thomas Falcon Date: Fri, 14 Dec 2018 14:50:26 -0600 In-Reply-To: <20181214204914.16435.59083.stgit@powerkvm6.aus.stglabs.ibm.com> References: <20181214204914.16435.59083.stgit@powerkvm6.aus.stglabs.ibm.com> User-Agent: StGit/0.18-105-g416a-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18121420-0020-0000-0000-00000E99F531 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010225; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000271; SDB=6.01131804; UDB=6.00588226; IPR=6.00911936; MB=3.00024694; MTD=3.00000008; XFM=3.00000015; UTC=2018-12-14 20:50:31 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18121420-0021-0000-0000-0000640E6872 Message-Id: <20181214204957.16435.29255.stgit@powerkvm6.aus.stglabs.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-14_12:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=553 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812140176 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 @@ 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