From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.107.4.62; helo=eur03-db5-obe.outbound.protection.outlook.com; envelope-from=alexei.fedorov@arm.com; receiver=edk2-devel@lists.01.org Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40062.outbound.protection.outlook.com [40.107.4.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id F13C52219BC89 for ; Wed, 20 Dec 2017 07:12:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=BkpXhV14iDSOLSihbLVmUYF5NHxSPqowrSEPSzGtOH4=; b=m6iIrUo4xc/+wpBZO7CJQyWIMQyR82IzFJR2HFSn+eA5WLyAeQDXBcTnZbHTvDQjoiDkLdx1h6VMnyrLZC638QW2PDEKVbpTCevhMGN5iXzN7W1HXfgv++4uBHnIAFQ+paHlpjobaltw5k3Nvmzv3t8ykp/L9l/luflIW4Ll4fU= Received: from DB5PR08MB1014.eurprd08.prod.outlook.com (10.166.14.11) by DB5PR08MB0485.eurprd08.prod.outlook.com (10.161.245.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.323.15; Wed, 20 Dec 2017 15:17:36 +0000 Received: from DB5PR08MB1014.eurprd08.prod.outlook.com ([fe80::60a7:4f0b:1a3d:886b]) by DB5PR08MB1014.eurprd08.prod.outlook.com ([fe80::60a7:4f0b:1a3d:886b%13]) with mapi id 15.20.0345.013; Wed, 20 Dec 2017 15:17:35 +0000 From: Alexei Fedorov To: "ard.biesheuvel@linaro.org@arm.com" <"ard.biesheuvel@linaro.org"@arm.com>, "edk2-devel@lists.01.org" CC: Evan Lloyd , Mitch Ishihara , Matteo Carlini , Sami Mujawar , Girish Pathak , "leif.lindholm@linaro.org" , Jeremy Linton , "ryan.harkin@linaro.org" Thread-Topic: Mapping frame buffer memory as uncached Thread-Index: AQHTeaS+h/D6x5j/GEWb4EU8SC2xew== Date: Wed, 20 Dec 2017 15:17:35 +0000 Message-ID: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexei.Fedorov@arm.com; x-originating-ip: [217.140.96.140] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5PR08MB0485; 6:3JXuQS85Y77yAHZBaeGRYSH4qhmWfmHfwHdM3WRWc/CsXqywjA6WXHLj9e7PZrH5TylmeL4d8BdzhBAz7t4YAEcl8OUEMf3f/Kmukqh4DH78tyht9LybBuYT+kRgvXq1R3FUMOww/ZhI0LlOVYH/9psqjWuHLbyDl+B2+nbUk7j3snt1ClBTgF6/3ZlavH+EHW3CGis1LGVuwZZPUPYWIGRSkfwUVWkz0wGqoUcveVBQ7kApHeY/SOMngh3+jzvo9k1z3nLTsu3OzfuwRaA9Hx0N5ZzD2S06T9Qewhy+/l+eE8G+cWJ/kjPvnooHGKY6zfJ5msgImKtKGqETgFuaF+B+LEQVfTV7SAUKqC2qAEI=; 5:rirJPrv32X9ruVd2wnlACHeWKjM+w8pNvfNB49npHCXk6ID4oDm35RiA+6XHqKHrCPAjUn1H+Bz4Wj7SuEro2gz7HWdP38IupF7mEDlom8d5m0wYQoz25oNZejoJoIlVx+j4L+Wmeq1tvS7U0vS1SqyrzTh2WRNoqx9JBgJG9cA=; 24:xNwW7FjeJXWnmbnBS8c0KFyc4vQet70urh+mT1QE8kYDPyoOEDIg1Lz+bB9EW4Gzw1WFoVV5YPcgpJbW88q6XI1mXyFNfj8GEdGNDVvFKe0=; 7:drd4Zpsb6cbG33pNuthqXr0iFQ2qHgOvVfEcjcVtbIoKJIPI0JLqSMA3s9yly9KkYb+WEhmh9+5uQnAr7RBeJaxE1xGz92dUXEbI4lhVlKN6RB3r0JOd3WEtVfQ6jGGuIt8hA8O1h8bJ9wu3NCPxknHMpBe75sBPPMFl6muOvR79LTSN9wMacyydDyQyE2gNHl8ok4WBZnJWzstoprQy8i92Se/0NRvKGS/E/KbKNy5eOiQb+7AFjL4FC0q3vEPG x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 7dce072e-3c8f-4955-6733-08d547bccc97 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603307)(7153060); SRVR:DB5PR08MB0485; x-ms-traffictypediagnostic: DB5PR08MB0485: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(3231023)(10201501046)(93006095)(93001095)(6055026)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011); SRVR:DB5PR08MB0485; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DB5PR08MB0485; x-forefront-prvs: 0527DFA348 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39380400002)(39860400002)(366004)(346002)(376002)(396003)(189003)(199004)(40434004)(6606003)(3846002)(7696005)(6116002)(54906003)(2900100001)(102836003)(2501003)(6506007)(72206003)(316002)(14454004)(99286004)(59450400001)(7736002)(5660300001)(478600001)(25786009)(81166006)(9686003)(2906002)(54896002)(8936002)(33656002)(3280700002)(81156014)(74316002)(4326008)(66066001)(97736004)(86362001)(5250100002)(3660700001)(68736007)(105586002)(53936002)(5890100001)(6436002)(106356001)(55016002)(8676002)(19627405001)(2621003)(491001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR08MB0485; H:DB5PR08MB1014.eurprd08.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7dce072e-3c8f-4955-6733-08d547bccc97 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2017 15:17:35.3285 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR08MB0485 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 Subject: Mapping frame buffer memory as uncached X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Dec 2017 15:12:55 -0000 Content-Language: en-GB Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Ard, The side effect of the following commit on 6 April: ArmPlatformPkg/FVP: map motherboard VRAM as uncached memory The VRAM of the PL111 on the FVP Base/Foundation models is described as device memory rather than uncached memory, which is not an accurate description of the nature of the region (i.e., a framebuffer), and may result in problems when using accelerated string routines to access the region, since this may legally involve unaligned accesses or DC ZVA instructions, which are not allowed on device mappings. So split of the 8 MB VRAM region into a separate region, and map it using memory attributes. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-by: Jeremy Linton Tested-by: Ryan Harkin Reviewed-by: Leif Lindholm is that now frame buffer memory region has Executable attribute set, which = can be checked in DS-5 debugger Memory Map tab. Was this expected? Thanks. Alexei. IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.