Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3B4F8C433EF for ; Tue, 7 Dec 2021 10:12:55 +0000 (UTC) Received: from localhost ([::1]:55748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muXSw-0002BL-Ct for qemu-devel@archiver.kernel.org; Tue, 07 Dec 2021 05:12:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muXRc-0008RH-3Z; Tue, 07 Dec 2021 05:11:32 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:25414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muXRY-000456-HK; Tue, 07 Dec 2021 05:11:30 -0500 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1B79rT2L016834; Tue, 7 Dec 2021 10:11:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=qJyQVYyW1tMRpqebDvDUykll0MR+ZOTn+WJvENK5f14=; b=OrE6XrBIVksDSHGwPM98zXe4mI36SmjF9lm3SlAH6JjrTvjcnFYim63NOyDJ7FICezxb Psx0dDtpDLAcY1OTA4Ur2orfYIpSHTWFqD58Pd0s3h6/5Lh3IcIHMn9l/2auWuXSPvFI 36UDGTrYdadvwya05mweidsrrhnG2P09pTfGt0o6cLWFc4cIB1Xvc0FkVHRBU9cPn2sS mwMfsfJ2Xg2XnTL45HYmK7N/5QZZvVA+dHgPHYwElFU4nPff64AKRmjdjxJd13tY1Gsf MlQN7YBqhs2EmR/DoOPpe/K3X0Q03aOTkr1pEoWH9oBUH/uXpJzdqGu4OnCgmHz2gGKf wA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3ct5cngac6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Dec 2021 10:11:24 +0000 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 1B7ABNIe014441; Tue, 7 Dec 2021 10:11:23 GMT Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0a-001b2d01.pphosted.com with ESMTP id 3ct5cngabn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Dec 2021 10:11:23 +0000 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 1B7A3kqH009020; Tue, 7 Dec 2021 10:11:21 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma06fra.de.ibm.com with ESMTP id 3cqykfm3v8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Dec 2021 10:11:21 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1B7ABI6L30540242 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 7 Dec 2021 10:11:18 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A032611C054; Tue, 7 Dec 2021 10:11:18 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4A8F711C050; Tue, 7 Dec 2021 10:11:18 +0000 (GMT) Received: from [9.145.165.107] (unknown [9.145.165.107]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 7 Dec 2021 10:11:18 +0000 (GMT) Message-ID: <3aaff2ac-7451-374d-041a-c1c6415f4691@linux.ibm.com> Date: Tue, 7 Dec 2021 11:11:17 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH 12/14] ppc/pnv: Remove "system-memory" property for he PHB4 PEC model Content-Language: en-US To: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= , qemu-ppc@nongnu.org, qemu-devel@nongnu.org References: <20211202144235.1276352-1-clg@kaod.org> <20211202144235.1276352-13-clg@kaod.org> From: Frederic Barrat In-Reply-To: <20211202144235.1276352-13-clg@kaod.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 8XOc7OZiNe20kA51Y3oWsxJs6P0l0OQj X-Proofpoint-ORIG-GUID: CvcMU0KC2LKVQ-Y3NEuYjPz-aMsbSdKC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2021-12-07_03,2021-12-06_02,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 priorityscore=1501 malwarescore=0 mlxlogscore=999 suspectscore=0 clxscore=1015 spamscore=0 impostorscore=0 adultscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2112070060 Received-SPF: pass client-ip=148.163.156.1; envelope-from=fbarrat@linux.ibm.com; helo=mx0a-001b2d01.pphosted.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-2.44, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Henrique Barboza , Greg Kurz Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 02/12/2021 15:42, Cédric Le Goater wrote: > This is not useful and will be in the way for support of user created > PHB4 devices. > > Signed-off-by: Cédric Le Goater > --- I forgot to mention the typo in the commit title: "he PHB4". Fred > hw/pci-host/pnv_phb4_pec.c | 6 +----- > hw/ppc/pnv.c | 2 -- > 2 files changed, 1 insertion(+), 7 deletions(-) > > diff --git a/hw/pci-host/pnv_phb4_pec.c b/hw/pci-host/pnv_phb4_pec.c > index a7dd4173d598..dfed2af0f7df 100644 > --- a/hw/pci-host/pnv_phb4_pec.c > +++ b/hw/pci-host/pnv_phb4_pec.c > @@ -124,7 +124,7 @@ static uint64_t pnv_pec_stk_nest_xscom_read(void *opaque, hwaddr addr, > static void pnv_pec_stk_update_map(PnvPhb4PecStack *stack) > { > PnvPhb4PecState *pec = stack->pec; > - MemoryRegion *sysmem = pec->system_memory; > + MemoryRegion *sysmem = get_system_memory(); > uint64_t bar_en = stack->nest_regs[PEC_NEST_STK_BAR_EN]; > uint64_t bar, mask, size; > char name[64]; > @@ -394,8 +394,6 @@ static void pnv_pec_realize(DeviceState *dev, Error **errp) > char name[64]; > int i; > > - assert(pec->system_memory); > - > if (pec->index >= PNV_CHIP_GET_CLASS(pec->chip)->num_pecs) { > error_setg(errp, "invalid PEC index: %d", pec->index); > return; > @@ -486,8 +484,6 @@ static Property pnv_pec_properties[] = { > DEFINE_PROP_UINT32("chip-id", PnvPhb4PecState, chip_id, 0), > DEFINE_PROP_LINK("chip", PnvPhb4PecState, chip, TYPE_PNV_CHIP, > PnvChip *), > - DEFINE_PROP_LINK("system-memory", PnvPhb4PecState, system_memory, > - TYPE_MEMORY_REGION, MemoryRegion *), > DEFINE_PROP_END_OF_LIST(), > }; > > diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c > index f8b0b2a28383..3a550eed0f36 100644 > --- a/hw/ppc/pnv.c > +++ b/hw/ppc/pnv.c > @@ -1383,8 +1383,6 @@ static void pnv_chip_power9_phb_realize(PnvChip *chip, Error **errp) > &error_fatal); > object_property_set_link(OBJECT(pec), "chip", OBJECT(chip), > &error_fatal); > - object_property_set_link(OBJECT(pec), "system-memory", > - OBJECT(get_system_memory()), &error_abort); > if (!qdev_realize(DEVICE(pec), NULL, errp)) { > return; > } >