From patchwork Mon Oct 9 17:00:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 115272 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp2766077qgn; Mon, 9 Oct 2017 09:54:29 -0700 (PDT) X-Received: by 10.99.94.194 with SMTP id s185mr9222519pgb.21.1507568069168; Mon, 09 Oct 2017 09:54:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507568069; cv=none; d=google.com; s=arc-20160816; b=w8lSmfg4J2LDHMARStftAfb42PHGju17JgPVgkvS8hH268pFWqkvooxHUbNRrzsBME lz7BbDJu/J9MS6TjeuGEUWbexcP9yI40CicRzLOI5EI4eT2XkzEUdZC7IsvSRnwje+5M 0qtBp/O+uqibq7c1157DV13PD4AG7lXTMdVwWrawXp4umJCL6zlEBvJbQQGhFln1FzOm yLvr+3uamhfThE+6/6p5ff63KXbk4ZvTluk+F/vrVXWfqf5+KXstZwXVs5xpwXZa/24f ree4766PTT14EMroyDLcY52KWr6uQg3etQ3t2IokpbCQlBT1DwDMaw4lFH1hXOaLO1rI zwvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=FIJG3sQ8HiIihohjOiM7wPVW8IFMdA1x6s2gOlpS/mk=; b=buYb5hevgIne+z1t61YeWcdgDxsQnActqQVMD6WePBxnvH5v1KRA4zmt9pLWx/a9vB v/k/1MTlMn6zwlY7l42ww/dkHfJjwJPzc9p1z6+1+5PvayZo8MMKz9+GieS+gme2+NKl 5ad/QpD18XQJb7VFIY9FftPAzlgT/bzCYM266Gqkb72+VUebebR1Spksw8Jq1Dq8dhuB 6r+wz+iomTrbViWZ1mgZCtoBhZKllOywV7NCUX009CeLciiRTcoGD/U0oKBP4qnzFor2 VMIsII08yHKGhfu7EXjVc6zOudOuGSYyf7IddK1Ztu0/kDtWBhzVXlGiOV+PJvbn7fjY dl6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=HqG8Nixz; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id g92si7221415plg.567.2017.10.09.09.54.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Oct 2017 09:54:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=HqG8Nixz; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 22A8A21F3C187; Mon, 9 Oct 2017 09:50:50 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: None (no SPF record) identity=mailfrom; client-ip=2a00:1450:4010:c07::230; helo=mail-lf0-x230.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-lf0-x230.google.com (mail-lf0-x230.google.com [IPv6:2a00:1450:4010:c07::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4540621EA15C5 for ; Mon, 9 Oct 2017 09:50:48 -0700 (PDT) Received: by mail-lf0-x230.google.com with SMTP id p184so27778576lfe.12 for ; Mon, 09 Oct 2017 09:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bchyVimM0NgjRhQGLEsFq/B2GfjXglDO8oazF5/2S5w=; b=HqG8Nixz7Zgm2Nqsg77ZWrvztqoTFiyKWrb2vk6jKqbZWJEBnozFTgmxig3JDiEcyG BuuaEqEm63Z8tMwBXEWBqhbHXyI+bsrAlfl4TmoVnNk3Hf0Ef/GQ8dG7q2XShyO1jqFb p8jCN56jM89TlROcG9mm4SBeU54SMQ3FCTLtQk16zz1NzAzOXUExzFR6TVE/cgPiSdMn Vxw44yuFEnL53zzVnx5kwLPkCY85KxWRjWK6PoTaC3PAOMA3FVDzqVl+8jbOX0SGr88h RLCmgpawz/U9TmcjSeVjjX5H2bQKwBQD0dJlQviaIaf+FqLsxaWdim7ySj4oHSe3Yz8c auzA== 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:in-reply-to :references; bh=bchyVimM0NgjRhQGLEsFq/B2GfjXglDO8oazF5/2S5w=; b=mIsUxszHNpJf6kSBbQ3uc8LsRjS3w7RiM1JyMQFbxmz/5HEMY/NAg+yrQVozmizv9J LB/v3kYdEyWJlz0WX7GXA9Uf9XRGu/F76D5osegQ1Jw8xbX+oKzvNPmB04H1D831PMD8 ZHShyDiXOPkGPhZOVesFvL1mWHuwuRCCeKE837F19aJYcrAZbQItbW9CkvHzVb0hl8JX ahHfWT2F3ObVf1v2jB7MDhCqJTK1+4NAEu9OnpBPq0OUrfxldz2/QZveNR2ah9HNUddv /o6FC2+KLliN7zmNIEMFhpEcZraLdTt1UAXVNmRJAnIkEeXzgsT6cFg87H/DgVOOSK0c Wf7A== X-Gm-Message-State: AMCzsaUf6EIN+6skUO48v/EUhsueeDYbIQ0xk31r9YyxxT1tvY9Ds2D+ 5PzVUsbotwy61QVDQx/kKBFecirlpno= X-Google-Smtp-Source: AOwi7QAGFdWuONFLU2RQVJpnNyeU1+ZNftGcTqYw7czRbv+NF3GmNrpEbh3WP9DyEd3eSxsL+J99Qw== X-Received: by 10.25.229.221 with SMTP id i90mr2253580lfk.71.1507568053521; Mon, 09 Oct 2017 09:54:13 -0700 (PDT) Received: from enkidu.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id z204sm1421490lff.33.2017.10.09.09.54.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Oct 2017 09:54:12 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Date: Mon, 9 Oct 2017 19:00:57 +0200 Message-Id: <1507568462-28775-9-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1507568462-28775-1-git-send-email-mw@semihalf.com> References: <1507568462-28775-1-git-send-email-mw@semihalf.com> Subject: [edk2] [platforms: PATCH 08/13] Marvell/Armada: Modify GICC alias X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jinghua@marvell.com, ard.biesheuvel@linaro.org, leif.lindholm@linaro.org, nadavh@marvell.com, neta@marvell.com, kostap@marvell.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" From: Ard Biesheuvel The GIC architecture mandates that the CPU interface, which consists of 2 consecutive 4 KB frames, can be mapped using separate mappings. Since this is problematic on 64 KB pages, the MMU-400 aliases each frame 16 times, and the two consecutive frames can be found at offset 0xf000. This patch is intended to expose correct GICC alias via MADT, once ACPI support is added. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Signed-off-by: Marcin Wojtas --- Platform/Marvell/Armada/Armada.dsc.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 1.8.3.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Platform/Marvell/Armada/Armada.dsc.inc b/Platform/Marvell/Armada/Armada.dsc.inc index 5071bd5..bd2336f 100644 --- a/Platform/Marvell/Armada/Armada.dsc.inc +++ b/Platform/Marvell/Armada/Armada.dsc.inc @@ -263,7 +263,14 @@ # ARM Generic Interrupt Controller gArmTokenSpaceGuid.PcdGicDistributorBase|0xF0210000 - gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0xF0220000 + + # + # NOTE: the GIC architecture mandates that the CPU interface, which consists + # of 2 consecutive 4 KB frames, can be mapped using separate mappings. + # Since this is problematic on 64 KB pages, the MMU-400 aliases each frame + # 16 times, and the two consecutive frames can be found at offset 0xf000 + # + gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0xF022F000 # ARM Architectural Timer Support gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|25000000