From nobody Fri Mar 29 05:30:13 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1559498777; cv=none; d=zoho.com; s=zohoarc; b=muUNqoK/7fxlHFW+RFxLzf0WRfIKY56a2B52iL9kyMbKw1s8L8zcdbn3vCOkwOw/LZSXk4/pNv3KJcqJb6++HY0zsnOZO5OwTn2s0wEDdV62iSRq1Px75YcL1nqhwIum0n3tU0DImn0teIT5Ox/HLkyz08EAf+4H5LVwtvH9SFk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559498777; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=etiyGffhuV5SMLk/DFd7wEtDqeflgwuVZChcCfZwvEg=; b=A7W34w+LhIJqe3uPUGAMudL3dH0ITonG8hOAh+/4gOUJCTL4+B1Z+i46S2m7Mjt7ej58my8sx9uGGmJ8IAdi8loDJ2RwWmw8BBdxOUfdSTjoArUgwvQWzBzGBIEYRsMiZQHKh1tmezcqreq/SW4uK+k9/9K1uQkZ+Y09RbZ8+p4= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1559498777779636.4179168337411; Sun, 2 Jun 2019 11:06:17 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hXUqM-0005pU-Hq; Sun, 02 Jun 2019 18:04:30 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hXUqL-0005pP-OR for xen-devel@lists.xenproject.org; Sun, 02 Jun 2019 18:04:29 +0000 Received: from mail-pg1-x542.google.com (unknown [2607:f8b0:4864:20::542]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id dc6cc871-8560-11e9-8980-bc764e045a96; Sun, 02 Jun 2019 18:04:27 +0000 (UTC) Received: by mail-pg1-x542.google.com with SMTP id h17so6925709pgv.0 for ; Sun, 02 Jun 2019 11:04:27 -0700 (PDT) Received: from localhost.localdomain ([223.190.23.120]) by smtp.gmail.com with ESMTPSA id v9sm11732122pfm.34.2019.06.02.11.04.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 02 Jun 2019 11:04:25 -0700 (PDT) X-Inumbo-ID: dc6cc871-8560-11e9-8980-bc764e045a96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=/I46+FskpLfnTJYdeg5+UEVFBu8SHGtnpAGw4wkETqU=; b=rGyaENeBQfxEpoYBcuF9Gcn8xTnQVR7I6gp3i6mFe6wfyEEBpyxFLLh3IRxlLA5lMx h8mm+SgEwk3SMNM0hIMe27iJ2x92JfIknXDssDBK61RgERahdSdsOmDg4YUoNel2ZuiA 3++wZoIfbkAMO/8sZiPHq6vJfQeu650jF6kUtCae6VUX+uHc8skFxOSlLV4CQXIuy+lv wyk5Sky/MGqwOMVMhz+mPMXcTIuk1PNZbjsscauTbB3lcz1l2bbQ0Q7tTOsKhUPMJKS9 XdBd7qCoD97T3B/zp8Bjhm8lGwGbR8pYgQ+/G1AvmGIbqWNirJ3UF4nZsbPszNv72odj yC3A== 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=/I46+FskpLfnTJYdeg5+UEVFBu8SHGtnpAGw4wkETqU=; b=rFsSjKJINZhf11ysZqMryurFmzj30X3oanUfpiZDiEV0iMnV1KGkU6a9SLlNIZ0vP1 182iX1bvxFEwgTNHhiTyUNf6WB+v5nd/brTRH68xayjpJROkl+pWRJSEfb2MRzGWIJF1 ur48s4gmmp3s/QNIN1gbHyWHiOSMPXG5J3IFR3EeM47twKt69W2Lg7+5sjt3gdn/RQCF lCd7eDE3RAmIrhvDUVx3pJfwV1G1YAQTV3foE2PQZUGUC9UNlnMChW3HS7sEUYMZFHOo IzezLCQg8udof/IHhYmcrt6IqF6GkWtV2I1eYEEd6tuzwzuGv7Vu2KdYuPVlom+cKf2I Lagw== X-Gm-Message-State: APjAAAVLLNd7qy2l14GEvIzsRtQ41D7ZsmxsfJrXCPxcIAMaqHfqQKw1 iTrurebqjG7zIGhpOvns/mAfcR/6 X-Google-Smtp-Source: APXvYqz1O2IfYtdKbBRc0dvDRhxL4DXpHz+J8odVOQuU+QxYmwsVlQ8zcKBHoFfrHNb57UawBLQ/KA== X-Received: by 2002:a63:f54c:: with SMTP id e12mr23643695pgk.62.1559498666274; Sun, 02 Jun 2019 11:04:26 -0700 (PDT) From: Amit Singh Tomar To: xen-devel@lists.xenproject.org Date: Sun, 2 Jun 2019 23:34:11 +0530 Message-Id: <1559498651-25602-1-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [Xen-devel] [PATCH v2] xen/arm: Black list everything with a PPI 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) XEN should not forward PPIs to Dom0 as it only support SPIs. One of solution to this problem is to skip any device that uses PPI source completely while building domain itself. This patch goes through all the interrupt sources of device and skip it if one of interrupt source is PPI. It fixes XEN boot on i.MX8MQ by skipping PMU node. Suggested-by: Julien Grall Signed-off-by: Amit Singh Tomar --- Changes since v1: * Added comment for PPIs range. --- xen/arch/arm/domain_build.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index d983677..5035758 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -1353,7 +1353,7 @@ static int __init handle_node(struct domain *d, struc= t kernel_info *kinfo, { /* sentinel */ }, }; struct dt_device_node *child; - int res; + int res, i, nirq, irq_id; const char *name; const char *path; =20 @@ -1399,6 +1399,21 @@ static int __init handle_node(struct domain *d, stru= ct kernel_info *kinfo, return 0; } =20 + /* Skip the node, using PPI source */ + nirq =3D dt_number_of_irq(node); + + for ( i =3D 0 ; i < nirq ; i++ ) + { + irq_id =3D platform_get_irq(node, i); + + /* PPIs ranges from ID 16 to 31 */ + if ( irq_id >=3D 16 && irq_id < 32 ) + { + dt_dprintk(" Skip node with (PPI source)\n"); + return 0; + } + } + /* * Xen is using some path for its own purpose. Warn if a node * already exists with the same path. --=20 2.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel