Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Dec 2022 21:20:17 +0000
From:      Souradeep Chakrabarti <schakrabarti@microsoft.com>
To:        Andrew Turner <andrew@fubar.geek.nz>, Andrew Turner <andrew@freebsd.org>
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:  <PSAP153MB05362346AF46E2F8ED6F51C4CC149@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM>
In-Reply-To: <PSAP153MB0536A022F70C90A6CF0CF249CC149@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
DQpBZGRpbmcgQW5kcmV3Lg0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206
IFNvdXJhZGVlcCBDaGFrcmFiYXJ0aQ0KPiBTZW50OiBUaHVyc2RheSwgRGVjZW1iZXIgMSwgMjAy
MiA1OjI0IFBNDQo+IFRvOiBBbmRyZXcgVHVybmVyIDxhbmRyZXdAZnViYXIuZ2Vlay5uej4NCj4g
Q2M6IFdhcm5lciBMb3NoIDxpbXBAYnNkaW1wLmNvbT47IFdlaSBIdSA8d2VoQG1pY3Jvc29mdC5j
b20+OyBmcmVlYnNkLQ0KPiBoYWNrZXJzQEZyZWVCU0Qub3JnDQo+IFN1YmplY3Q6IFJFOiBbR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