From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH v4] pci_vfio: Support 64KB kernel page_size with vfio-pci driver Date: Wed, 12 Dec 2018 11:27:50 +0000 Message-ID: <1c4528d9-7c19-c781-8d83-9e790dc81ffc@intel.com> References: <1542595044-27145-1-git-send-email-tone.zhang@arm.com> <1544613959-14349-1-git-send-email-tone.zhang@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: gavin.hu@arm.com, honnappa.nagarahalli@arm.com, Steve.Capper@arm.com, stephen@networkplumber.org, nd@arm.com To: "tone.zhang" , dev@dpdk.org Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 3A70A1B1F2 for ; Wed, 12 Dec 2018 12:27:54 +0100 (CET) In-Reply-To: <1544613959-14349-1-git-send-email-tone.zhang@arm.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 12-Dec-18 11:25 AM, tone.zhang wrote: > With a larger PAGE_SIZE it is possible for the MSI table to very > close to the end of the BAR s.t. when we align the start and end > of the MSI table to the PAGE_SIZE, the end offset of the MSI > table is out of the PCI BAR boundary. > > This patch addresses the issue by comparing both the start and the > end offset of the MSI table with the BAR size, and skip the mapping > if it is out of Bar scope. > > The patch fixes the debug log as below: > EAL: Skipping BAR0 > > Signed-off-by: tone.zhang > Reviewed-by: Gavin Hu > Reviewed-by: Honnappa Nagarahalli > Reviewed-by: Steve Capper > Reviewed-by: Anatoly Burakov > --- Acked-by: Anatoly Burakov -- Thanks, Anatoly