From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0619.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe41::619]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2B16B21AE3CAE for ; Wed, 24 May 2017 01:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.onmicrosoft.com; s=selector1-cadence-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=LzMVm9B9q0PpCZNYQZGqyO1AYRG9Az1O1wb8Y9lQ3D0=; b=R3b20AxNpnsKLkjv4B3DLZ7WOTj6jyJdUNiqc5hwJ2s4EjQUHIB7GrcmdN8DmRqNydSia/DevOd0HjipJIc5tjrfPoFqp211huJdlA+JsAI7rsnEU6oIJr59JGDaV0bSPdYHK+8eMkTm6SkTdz9hVbCnQvS9ybQ47WXNz5WVlvo= Received: from BN6PR07MB3154.namprd07.prod.outlook.com (10.172.105.136) by BN6PR07MB3156.namprd07.prod.outlook.com (10.172.105.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Wed, 24 May 2017 08:34:47 +0000 Received: from BN6PR07MB3154.namprd07.prod.outlook.com ([10.172.105.136]) by BN6PR07MB3154.namprd07.prod.outlook.com ([10.172.105.136]) with mapi id 15.01.1101.021; Wed, 24 May 2017 08:34:47 +0000 From: Scott Telford To: Ard Biesheuvel CC: "edk2-devel@lists.01.org" , "Tian, Feng" , "Zeng, Star" Thread-Topic: [edk2] [PATCH] Copy bus scanning workaround from ARM Juno PCIe driver. Thread-Index: AQHS09/nXLr4eh9yHUuOVzL481c7pqICH14AgAEEYzA= Date: Wed, 24 May 2017 08:34:46 +0000 Message-ID: References: <1495556147-6883-1-git-send-email-stelford@cadence.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcc3RlbGZvcmRcYXBwZGF0YVxyb2FtaW5nXDA5ZDg0OWI2LTMyZDMtNGE0MC04NWVlLTZiODRiYTI5ZTM1Ylxtc2dzXG1zZy1kNWRlY2U5Yy00MDViLTExZTctODcxNC01ODkxY2Y3N2FjOTRcYW1lLXRlc3RcZDVkZWNlOWQtNDA1Yi0xMWU3LTg3MTQtNTg5MWNmNzdhYzk0Ym9keS50eHQiIHN6PSIzNjc5IiB0PSIxMzE0MDA4ODQ4NDI3NTE5NDkiIGg9IlJzODJ3ckRCQXJPRzhWTDRLSTc1M0V1SEc0az0iIGlkPSIiIGJsPSIwIiBibz0iMSIvPjwvbWV0YT4= authentication-results: linaro.org; dkim=none (message not signed) header.d=none;linaro.org; dmarc=none action=none header.from=cadence.com; x-originating-ip: [213.131.238.28] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BN6PR07MB3156; 7:qAioEtTyO7uHxD6sNvmoFhfHbgX5xqdfKns1vLiZOoekt8BzJyTgEEM+F/I2ZlKLm9T1R7MDOz9XsNotxXlbfdbzu5WYI5TZJ9hCUWYDbccENuOu4zPKu4vFOkdDxRbOakat9mEc90lZppRbRZKVe8hdA4ocQVCdjF2fFT/WRy8Eq/Uk/TUXIra+R8N3vZeyeI1osYP4NSrRG+iW6wZxx1fZJRjtnq7jXXGUM0lAh7XTSXRSaxpPCWXFksYHo/oOTt78qq5wuLPMb6f1cVOlDGCAIuStjhT2LJHP8uOXZ6jk0/THNGp+R6gd8XYLmbjOEMuzi1dCRyTi0B2ThyPQHA==; 20:To6TeSx9NTFrnAEvHDHOJyt/dmzyd9E4ZqCFfiFYRpe75ay1cXbjcTt6LMlmnAUf+b2qNyptdqdeVUE/nGCphhWRZLyD1j52h59MqRZ5ojkS9zUH4eOUmQSIbYXoDrPWjmNxTY61XHUwkPvJwII0ZjaphNjwcpURE3UTJ21dOFdT1Wjzuu+HfLXedVv6oI/XW0VUfbw6kZC8II3IExzqzaXu/tkr1DWrBszUkBaiN1yEQdMvqQsIwJlSdOTiDGKC x-ms-traffictypediagnostic: BN6PR07MB3156: x-ms-office365-filtering-correlation-id: 7df6cf1e-89b0-4307-a6c5-08d4a27fbc70 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BN6PR07MB3156; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(10436049006162)(162533806227266)(72806322054110)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(6041248)(20161123562025)(20161123564025)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148); SRVR:BN6PR07MB3156; BCL:0; PCL:0; RULEID:; SRVR:BN6PR07MB3156; x-forefront-prvs: 031763BCAF x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39840400002)(39450400003)(39400400002)(39410400002)(39850400002)(24454002)(13464003)(2906002)(6306002)(53936002)(9686003)(54906002)(2900100001)(305945005)(6436002)(7736002)(99286003)(55016002)(8936002)(81166006)(33656002)(3280700002)(38730400002)(74316002)(6506006)(3660700001)(54356999)(76176999)(50986999)(77096006)(8676002)(7696004)(966005)(478600001)(189998001)(86362001)(25786009)(4326008)(6916009)(102836003)(6116002)(3846002)(53546009)(122556002)(229853002)(5660300001)(6246003)(575784001)(110136004)(2950100002)(66066001)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3156; H:BN6PR07MB3154.namprd07.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2017 08:34:47.0006 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d36035c5-6ce6-4662-a3dc-e762e61ae4c9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3156 Subject: Re: [PATCH] Copy bus scanning workaround from ARM Juno PCIe driver. 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: , X-List-Received-Date: Wed, 24 May 2017 08:34:49 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGkgQXJkLA0KDQpGaXJzdGx5LCB0aGlzIHBhdGNoIHdhcyBtZWFudCBmb3IgbXkgZWRrMi1zdGFn aW5nIGJyYW5jaCwgbm90IG1haW5saW5lIGVkazIgLSBzb3JyeSwgZm9yZ290IHRvIGVkaXQgdGhl IHN1YmplY3QgbGluZSENCg0KVGhlIGlzc3VlIGlzIHRoYXQsIHdpdGhvdXQgdGhpcyB3b3JrYXJv dW5kLCBQQ0koZSkgYnJpZGdlcyBhbmQgZGV2aWNlcyB3aWxsIGJlIGRldGVjdGVkIG11bHRpcGxl IHRpbWVzIGR1cmluZyBidXMgc2Nhbm5pbmcsIGUuZy4gYSBicmlkZ2UgYXQgYnVzIDEgZGV2aWNl IDAgd2lsbCBhbHNvIGJlIHNlZW4gYXQgYnVzIDEgZGV2aWNlIDEsIGJ1cyAxIGRldmljZSAyIGV0 YyBhbmQgaGVuY2UgYWxsIHRoZSBkZXZpY2VzIG9uIHRoZSBvdGhlciBzaWRlIG9mIHRoZSBicmlk Z2Ugd2lsbCBiZSBkdXBsaWNhdGVkIHRvby4gSSBjb3BpZWQgdGhpcyB3b3JrYXJvdW5kIGZyb20g dGhlIG9sZCBKdW5vIFBDSWUgZHJpdmVyIGFzIEkgd2FzIHNlZWluZyB0aGUgc2FtZSBwcm9ibGVt IHd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