From patchwork Tue May 4 05:53:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Gibson X-Patchwork-Id: 430824 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp3516371jao; Mon, 3 May 2021 23:47:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxn7EhlXH2tFCE5bEjBphTmWbuGzKl92/JAqVE80Lz6GlWn8pTMY+DFhSUZSIvz8qcjVAgH X-Received: by 2002:a05:6e02:786:: with SMTP id q6mr13619361ils.84.1620110858500; Mon, 03 May 2021 23:47:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620110858; cv=none; d=google.com; s=arc-20160816; b=Pmssd8h39ZdJoJmqDKaUTHiTm3AXdR59v5zlcv+WKu1o59/hN2um9yXdQSyO1O2qOa UDLhJZTJXUisgyLxP2UTMYcxkQ4S0PEH6fpBWbKnVWUc9GM+2Oj/Ftew/hjhFuit0qZ7 8TLcPN4E8ggHtuSs3RNEmoFwOaEtQp4q8xC9Ok42G00O0MHe8eZAV7Ng090X5qMFXBZr BLJbiSsX7uENvoOLdpxsaf3oT66suorHdxdJSdsuio4bq9UJWJGml1CXFaYzsUnENEJ4 gCxpPZkQ7TakWv5Wt96r17m5FYiFxBm53qg0kx20AhvMd8WHfedODmqf+p3UAJBoaA9y uGEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=0ALnroDjD53TLuga2+CRQ2Z3M7UfYHnG9tTmgW9xB58=; b=qalERLFg/G3NfdbrGRU/FlJZ22Wd2YZz4OahzizloYAvH+Yq6j7uT0jbp5qCrlO2lk Ob2arNZXXJrihACAuXOEdrR+7gPlrQvFqP9q246DiWH12ZsA6hEIz3K+cXTQXx+Jqqoj 0MTaz3ucm9+LHhxapQ8AnTp1Wf/0+aqCMzTMqLh6c/f3lSSzW6uE8VUcvrHT6DoEJMCi JPJurmKCzeqkIAOvztisowj8tkRz8s0B8sIXB8k/O+mWtpVVI2fxxbkwcF9rdRWhhd8I AARefBgw1L7wE9dN2UQn/f+IVWnsBUS3RP43ae0pWaiZeLvvQhxf9J/yG0lAdyIG+lUW /T8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gibson.dropbear.id.au header.s=201602 header.b=VbVsBSo4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id g11si2219050ion.60.2021.05.03.23.47.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 May 2021 23:47:38 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@gibson.dropbear.id.au header.s=201602 header.b=VbVsBSo4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1]:43272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldoqH-0003ax-UG for patch@linaro.org; Tue, 04 May 2021 02:47:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldo1N-00076i-Hx; Tue, 04 May 2021 01:55:01 -0400 Received: from ozlabs.org ([203.11.71.1]:39687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldo1L-0005OH-Hw; Tue, 04 May 2021 01:55:01 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 4FZ8CQ5sbFz9t1r; Tue, 4 May 2021 15:53:22 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1620107602; bh=fCKZKsqp44tDGeu7z15Q40LoupLPDQzipln+K2O5gIY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VbVsBSo45rI2WhDWrQ/aMmiiPXZUrcJovC6mcbgBGR2btWBNhm/bB4TUYvfF/kXEQ +2jKTxVHFn/+nKzojZWaJ9yzgju8uXplVpUpxTrSq7TS0AlWLiGPhTpb4TiA8fExVv MkIzinG08UGtuQSHO6CaUdZYkjLw5/NgBJUc4NX4= From: David Gibson To: peter.maydell@linaro.org, groug@kaod.org Subject: [PULL 45/46] hw/ppc/spapr_vio: Reset TCE table object with device_cold_reset() Date: Tue, 4 May 2021 15:53:11 +1000 Message-Id: <20210504055312.306823-46-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210504055312.306823-1-david@gibson.dropbear.id.au> References: <20210504055312.306823-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Received-SPF: pass client-ip=203.11.71.1; envelope-from=dgibson@ozlabs.org; helo=ozlabs.org X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, David Gibson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Peter Maydell The spapr_vio_quiesce_one() function resets the TCE table object (TYPE_SPAPR_TCE_TABLE) via device_legacy_reset(). We know that objects of that type do not have a qbus of their own, so the new device_cold_reset() function (which resets both the device and its child buses) is equivalent here to device_legacy_reset() and we can just switch to the new API. Signed-off-by: Peter Maydell Message-Id: <20210503151849.8766-3-peter.maydell@linaro.org> Signed-off-by: David Gibson --- hw/ppc/spapr_vio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.31.1 diff --git a/hw/ppc/spapr_vio.c b/hw/ppc/spapr_vio.c index ef06e0362c..b59452bcd6 100644 --- a/hw/ppc/spapr_vio.c +++ b/hw/ppc/spapr_vio.c @@ -310,7 +310,7 @@ int spapr_vio_send_crq(SpaprVioDevice *dev, uint8_t *crq) static void spapr_vio_quiesce_one(SpaprVioDevice *dev) { if (dev->tcet) { - device_legacy_reset(DEVICE(dev->tcet)); + device_cold_reset(DEVICE(dev->tcet)); } free_crq(dev); }