From patchwork Sun Apr 14 14:33:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 10899881 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 362A713B5 for ; Sun, 14 Apr 2019 14:36:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1865A288EA for ; Sun, 14 Apr 2019 14:36:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C82C288F3; Sun, 14 Apr 2019 14:36:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E7EF1288EA for ; Sun, 14 Apr 2019 14:36:15 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hFgCt-0002nJ-Ra; Sun, 14 Apr 2019 14:34:07 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hFgCs-0002nD-HG for xen-devel@lists.xenproject.org; Sun, 14 Apr 2019 14:34:06 +0000 X-Inumbo-ID: 5ad4768f-5ec2-11e9-92d7-bc764e045a96 Received: from mail-pl1-x643.google.com (unknown [2607:f8b0:4864:20::643]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 5ad4768f-5ec2-11e9-92d7-bc764e045a96; Sun, 14 Apr 2019 14:34:05 +0000 (UTC) Received: by mail-pl1-x643.google.com with SMTP id y6so7298324pll.13 for ; Sun, 14 Apr 2019 07:34:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=vsadhmPGMkvjoqUu6adWisTn4uP3qAbTzwFGmnFCz+E=; b=unqRINCyVoCvh3w2LKx0Eha9S+eyZhORDPuQoiDnfvUeXMKkIVQhfvfAvnHhvGVumr qqLQQHvUJTdcwT8l5R/K8D32HPUp0tApQAiY6W5JRYUFBWSLt4D5KBbYisjbbNtC5A0T z/eHHCX0ynzjrZK/okAK0c8xfKAjgWLMDINy6NQUVRPe+5SMN/gMmpcB4/Z7akQ8QL+O j6MuD9CzlkLTI17LG1NR/OW/ixsV2MTG+IJz+TVQeUi9yOkJnDKbztXTDp75iSMIdoY4 u/JZ7yU0eeOfcVt2P8XR1MCd+UzEMM7TTdnAp4PEMCiS3Ro1waGKbrC/PPWI6VVTeyHf Qwsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vsadhmPGMkvjoqUu6adWisTn4uP3qAbTzwFGmnFCz+E=; b=cKnxOB2cN7rGNqY6X7AlZ3O2n4Cpc9QnUIFr0MMS194fIOIlM/n8B2hSTC17Rmbqpj aGpTLPo+DptdjUPmMEPFhi90NMrVBa5Rn42t6OWatvfHkdsbe9IaXMgK0DhTWkR/Grwp fQs4taTr7VpW1ZcNcxOTqbA1QCEIx6dC64cCuVJC2DrTe/7rwwGur09u+aUGs8MUybrw Vrd6YWJBuuYszg1Ayopm4Q6O7pRmKKpC5A76UpyIf50Cw//UzV72YdHo0Dedp+2hduLj vM4v0ttmhCfVsnmoJDlfVEDj5vGKfoMOhcRaQl1bmGiDCWoctIMKtBUjGt/YKxJzkZDH 5GdA== X-Gm-Message-State: APjAAAXWz6RPrGllCcUcGh04NUMheFtVcmxEo5OeN/c4DHRt1h6qsz5+ m7GEAd53LvrpPrTxxxLYj07ALEht X-Google-Smtp-Source: APXvYqwYBD8xedG9CTqBZ4Okqf/qqa8RE70ubRYhqAz7Cj5TywGuFcfnkilAsG76upK9lF8VsaiK3g== X-Received: by 2002:a17:902:2:: with SMTP id 2mr70125682pla.61.1555252443572; Sun, 14 Apr 2019 07:34:03 -0700 (PDT) Received: from localhost.localdomain ([106.215.44.17]) by smtp.gmail.com with ESMTPSA id q80sm91486431pfa.66.2019.04.14.07.34.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 14 Apr 2019 07:34:02 -0700 (PDT) From: Amit Singh Tomar To: xen-devel@lists.xenproject.org Date: Sun, 14 Apr 2019 20:03:39 +0530 Message-Id: <1555252419-17121-1-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [Xen-devel] [PATCH] xen/arm: Blacklist PMU with "arm, cortex-a53-pmu" X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: andre.przywara@arm.com, julien.grall@arm.com, sstabellini@kernel.org, Amit Singh Tomar MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP At the moment, we hide PMU's from domain 0 and XEN boot fails on platform[1] where DTS contains "arm,cortex-a53-pmu" as compatible string for PMU node. This patch simply adds "arm,cortex-a53-pmu" to list of blacklisted PMUs. [1]: https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/freescale/imx8mq.dtsi#L124 Signed-off-by: Amit Singh Tomar --- xen/arch/arm/domain_build.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index d983677..b54592a 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -1334,6 +1334,7 @@ static int __init handle_node(struct domain *d, struct kernel_info *kinfo, DT_MATCH_COMPATIBLE("arm,cortex-a15-pmu"), DT_MATCH_COMPATIBLE("arm,cortex-a53-edac"), DT_MATCH_COMPATIBLE("arm,armv8-pmuv3"), + DT_MATCH_COMPATIBLE("arm,cortex-a53-pmu"), DT_MATCH_PATH("/cpus"), DT_MATCH_TYPE("memory"), /* The memory mapped timer is not supported by Xen. */