Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1882386imm; Thu, 18 Oct 2018 05:57:33 -0700 (PDT) X-Google-Smtp-Source: ACcGV61zpTWrfF+E8GcXeVMxY8H/tWJI9vthndHXyu29s1Hrfhz4viev8yg0smmeu2YeFcZi8u6W X-Received: by 2002:a63:e749:: with SMTP id j9-v6mr28125092pgk.246.1539867453510; Thu, 18 Oct 2018 05:57:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539867453; cv=none; d=google.com; s=arc-20160816; b=elHhzqLZA0ZblVcnSUcVFo6CySRchV/Gt26hXr5YYrQNYs7y71MJpHWKZxPPFOaoKp 48ndq76jdEE0FneZHfz2f6jKtLFAyk8ayur83EJ7R6dlzylVRIadqZIgcwGG5h77Edgy o+jiX/1K1oBF6Ykzu+Bq6/rFhQ2JMtrIbrzcNTzDi+erwqYfMQkAEZ780RWNrVRCKyCj 1VT8a72oY73TYtsz6VOHy5CtIS9vprfQG4KW3bLSWb3xOAJ1+/2Sb+nC+lQmviYpiE2O Hh1lerW/R3t70D6EQyIE5L2lVwSnb+3kkrN9vz/bo2o/dMEagN/EzjHeXvgX4L5dHDiW 4kLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=gxhsLAyOv9FC+skKVebHrVVGO9iDgSSLggsrudOQCww=; b=qFFeZlz8YnXoJkg7cuIQDCko86zck7LOH4va3pY5orEoniJlLfVs57UY7w8IKOeXYL zk/4G9rX64c67FGa5UrDY2LX6zDj0JenH3FBNqmY6udza9O2awH5Aap5ub1Op5Yyxm22 HCKAdwa+DjJKeb3LMC8fxo4Qo7ChmbQNu0+NA3SR4rjehwh1yDuEtRRfAHjKK2JhH+WZ 2kJoKrLhlCpBXxEWcr+xbcSf89SPEmGpDNJ6ZBWjbGUon3EqjiF4FtspbjuOdy42RyCE owQa6hayq2jLrmLer9qcIwKaMaUWXOxal1pv2XlgelpMGMLkhYZgOg7oEizXpBKzdFGa pWzA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g16-v6si20331437pgd.354.2018.10.18.05.57.17; Thu, 18 Oct 2018 05:57:33 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727149AbeJRU4X (ORCPT + 99 others); Thu, 18 Oct 2018 16:56:23 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13673 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726695AbeJRU4W (ORCPT ); Thu, 18 Oct 2018 16:56:22 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id C20C0BEEF1DEB; Thu, 18 Oct 2018 20:54:59 +0800 (CST) Received: from [127.0.0.1] (10.177.223.23) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.399.0; Thu, 18 Oct 2018 20:54:51 +0800 Subject: Re: [PATCH 3/4] irqchip/mbigen: add support for a MBIGEN generating SPIs To: Marc Zyngier , Yang Yingliang , , CC: References: <1539681316-19300-1-git-send-email-yangyingliang@huawei.com> <1539681316-19300-4-git-send-email-yangyingliang@huawei.com> <5BC800EB.5070201@huawei.com> <15c4ab00-3bfa-0eb8-a341-fc7a2be857f7@arm.com> <223d7d7f-54b4-fd7f-1f83-95c9476136b7@arm.com> From: Hanjun Guo Message-ID: Date: Thu, 18 Oct 2018 20:54:40 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <223d7d7f-54b4-fd7f-1f83-95c9476136b7@arm.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.223.23] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/10/18 19:56, Marc Zyngier wrote: > Hi Hanjun, > > On 18/10/18 12:20, Hanjun Guo wrote: >> Hi Marc, >> >>>>>> >>>>> Now, the biggest question of them all: how does it work with ACPI? Last >>>>> time I checked, there was no DT support for platforms using the MBIGEN. >>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/hisilicon/hip07.dtsi >>>> This DT describes how platform devices using the MBIGEN. >>> >>> That's not how my own D05 boots. It is ACPI only. How is that going to >>> work on this platform? >> >> D05 is ACPI only so it has no dtb in the firmware, that's why we can >> boot D05 without acpi=on in the boot cmdline, but if you want to >> boot D05 with dtb, you could try to specify the dtb in the grub >> (seems centos based): >> >> menuentry "example" --id example{ >> linux /Image-kernel root=... rdinit=... >> initrd /example.img >> devicetree /d05.dtb >> } > > Sure. But what I'm asking here is how this change in the MBIGEN driver > can be beneficial to people who need ACPI, for better or worse? For > example, you cannot get the PCIe SMMU without ACPI. Good-bye VFIO. > > If it is DT only, I seriously doubt anyone will be able to use it. We have another ARM64 SoC for wireless base station which with the same CPU DIE but different IO DIE, they share the same mbigen controller. Since we use big-endian on wireless base station so only DT is available (EFI stub is little-endian), we need to reuse this mbigen driver on this SoC (not the one for D05) as well, not sure if this makes sense to you, please let us know. Thanks Hanjun