Date: Mon, 5 Dec 2022 20:26:29 +0000 From: Souradeep Chakrabarti <schakrabarti@microsoft.com> To: Andrew Turner <andrew@fubar.geek.nz> Cc: Warner Losh <imp@bsdimp.com>, Wei Hu <weh@microsoft.com>, "freebsd-hackers@FreeBSD.org" <freebsd-hackers@freebsd.org> Subject: RE: [EXTERNAL] pcib msix allocation in arm64 Message-ID: <PSAP153MB05360EEB6B597AF03D555862CC189@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM> In-Reply-To: <877E8C1E-5CEA-44B6-ABC0-0C54D5B69A58@fubar.geek.nz> References: <PSAP153MB05363055DF2B4AE3F39C987BCC399@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM> <146F5D18-6366-4953-A8D9-61FE7EC67F71@fubar.geek.nz> <PSAP153MB05367C2284B34BD1A3456F61CC399@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM> <947DBD67-6443-480F-82DA-2BDDF44C3D03@fubar.geek.nz> <PSAP153MB0536A022F70C90A6CF0CF249CC149@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM> <877E8C1E-5CEA-44B6-ABC0-0C54D5B69A58@fubar.geek.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
DQoNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBBbmRyZXcgVHVybmVy IDxhbmRyZXdAZnViYXIuZ2Vlay5uej4NCj4gU2VudDogTW9uZGF5LCBEZWNlbWJlciA1LCAyMDIy IDg6NDQgUE0NCj4gVG86IFNvdXJhZGVlcCBDaGFrcmFiYXJ0aSA8c2NoYWtyYWJhcnRpQG1pY3Jv c29mdC5jb20+DQo+IENjOiBXYXJuZXIgTG9zaCA8aW1wQGJzZGltcC5jb20+OyBXZWkgSHUgPHdl aEBtaWNyb3NvZnQuY29tPjsgZnJlZWJzZC0NCj4gaGFja2Vyc0BGcmVlQlNELm9yZw0KPiBTdWJq ZWN0OiBSZTogW0VYVEVSTkFMXSBwY2liIG1za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tlZC4NCltTb3VyYWRlZXBdIA0KVGhhbmtzIGZvciB0aGUgaGVscC4gTG9v a3MgbGlrZSB0aGUgcHJvYmxlbSBpcyBmcm9tIHRoZSBoYXJkd2FyZSBzaWRlLCBub3QgZnJvbSBP UyBzaWRlLg0KSXQgc2VlbXMgdG8gYmUgd29ya2luZyBpbiBBenVyZS4gDQo+IA0KPiBBbmRyZXcN Cg==
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?PSAP153MB05360EEB6B597AF03D555862CC189>