From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29828C433E0 for ; Tue, 16 Jun 2020 18:14:34 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EBF1C2080D for ; Tue, 16 Jun 2020 18:14:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="n/GveDtd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EBF1C2080D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jlG63-0000wU-5N; Tue, 16 Jun 2020 18:14:07 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jlG61-0000wP-Vk for xen-devel@lists.xenproject.org; Tue, 16 Jun 2020 18:14:06 +0000 X-Inumbo-ID: 298a3dca-affd-11ea-bb8b-bc764e2007e4 Received: from mail-ej1-x641.google.com (unknown [2a00:1450:4864:20::641]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 298a3dca-affd-11ea-bb8b-bc764e2007e4; Tue, 16 Jun 2020 18:14:05 +0000 (UTC) Received: by mail-ej1-x641.google.com with SMTP id q19so22623033eja.7 for ; Tue, 16 Jun 2020 11:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BmjCZtF1kgQ7PeaIEx8/UxbYmvWysAGr4o2NegH2AmY=; b=n/GveDtdtOhjYSOp7LF79tbS7jWdCSCfEyPFmO5XLwB3GwNMeqmr4a1zdqYMfir3Ui VUylr1ts4L2rpSiBfNm52HzQ+PazA6BJAGzvT/zAHimNN1SQYdp6BdAuC8gkJpB+Zaoe sgvXQFCFz8lYZo4lEzqL80Q4HVzcxeBza32xExymMNmDsVf0P7JTLkNHjYrI1HFowb8k PN5vSz7Ik/i/iI/n1gXZgNuMucGHzMzb2oUGHrJPof30nOYVRM0XI6yiEM6nK08JRGuc k/mVFgisHys2ZZa744fDzwUi4CW5LYfpCCeOb61DEUmffrczXhIHNMzXLf1afePmbnw0 JIyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BmjCZtF1kgQ7PeaIEx8/UxbYmvWysAGr4o2NegH2AmY=; b=tr26rRjK940XXF2IQXm/0kseOfVEa2XOqp6Ftv1/vHRJPTvBMN8XdcczdKTyt/3dEP I0UttWOEUVIxBTIoTgCeeOm/rdnZTWmydZnjhfTeTXl2pOQyxNDpR73cYoXudcmMgyVg 2tjdFDNL9WebxfWlm9zHsBTlTwKtN6nu9ayrkO9kePykz6DiXNYwktBgN6rV7nZll6YB zAA7yk9Hf7F+y9pmHxMtCFiriX4m0K94ba26iWX59xxww+CkOtzQz25kp+dUR/JAx77D qzzkYZCuGXiXow83ofCE1AUKJeURstuFMe20eDql84SrAyJ8Xrb29T8jtKLdSQPQMzDd RMoQ== X-Gm-Message-State: AOAM530z/qIf4/252J63vcU3Qf3JrfJeKI2f0xHZIVukD+IHaFDVK17o 54rYp+DKre18069mBWVHcDMaMVrsubSmeQVIHLg= X-Google-Smtp-Source: ABdhPJxkOnz6lRTtovRk+ANFmtyCHd/dTqvRSqcCw2W9M4fCozGArZY86RTCbUZ8nS9dvWdDL+XbVVwp+0jYTsfbM3w= X-Received: by 2002:a17:906:5f93:: with SMTP id a19mr3877092eju.10.1592331244326; Tue, 16 Jun 2020 11:14:04 -0700 (PDT) MIME-Version: 1.0 References: <8C6A23AE-6C2B-411F-ACAD-F5574211E8ED@arm.com> <14244e49-e1ac-a29d-bbd9-bd4c202bf186@xen.org> <77006AAF-BC3B-4C6E-BDFC-577CF87DE64E@arm.com> <99E77330-049F-4471-ABF9-13F9AB4E95B5@arm.com> <363A05E0-61C6-4AE4-9C84-EEAC466989D8@arm.com> <03607739-A4FF-486A-899A-F5F36870225A@arm.com> <2ec6255c-9d28-92e7-bd0a-59edb9fc078a@xen.org> <6033f9cecbf10f50f4a713ce52105426@kernel.org> <4bab90465acfddae5868ce2311bd9889@kernel.org> In-Reply-To: <4bab90465acfddae5868ce2311bd9889@kernel.org> From: CodeWiz2280 Date: Tue, 16 Jun 2020 14:13:51 -0400 Message-ID: Subject: Re: Keystone Issue To: Marc Zyngier Content-Type: text/plain; charset="UTF-8" X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: xen-devel , nd , Bertrand Marquis , Stefano Stabellini , Julien Grall Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On Tue, Jun 16, 2020 at 4:11 AM Marc Zyngier wrote: > > On 2020-06-15 20:14, CodeWiz2280 wrote: > > [...] > > > Also, the latest linux kernel still has the X-Gene storm distributor > > address as "0x78010000" in the device tree, which is what the Xen code > > considers a match with the old firmware. What were the addresses for > > the device tree supposed to be changed to? > > We usually don't care, as the GIC address is provided by the bootloader, > whether via DT or ACPI (this is certainly what happens on Mustang). > Whatever is still in the kernel tree is just as dead as the platform it > describes. > > > Is my understanding > > correct that there is a different base address required to access the > > "non-secure" region instead of the "secure" 0x78010000 region? I'm > > trying to see if there are corresponding different addresses for the > > keystone K2E, but haven't found them yet in the manuals. > > There is no such address. Think of the NS bit as an *address space* > identifier. > > The only reason XGene presents the NS part of the GIC at a different > address is because XGene is broken enough not to have EL3, hence no > secure mode. To wire the GIC (and other standard ARM IPs) to the core, > the designers simply used the CPU NS signal as an address bit. > > On your platform, the NS bit does exist. I strongly suppose that it > isn't wired to the GIC. Please talk to your SoC vendor for whether iot > is possible to work around this. > I do have a question about this out to TI, but at least this method gives me something to work with in the meantime. I was just looking to confirm that there wouldn't be any other undesirable side effects with Dom0 or DomU when using it. Was there an actual FPGA for the X-Gene that needed to be updated which controlled the GIC access? Or by firmware do you mean the boot loader (e.g. uboot). Thanks for the support so far to all. > M. > -- > Jazz is not dead. It just smells funny...