Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2846823pxb; Sat, 25 Sep 2021 20:30:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1+ymYrtQe1XEupCZTePwUp7qnVyhRPpwU/OcpfmZ02iPmnYDJcxfNDsFhtsYJ1YLVLur3 X-Received: by 2002:a05:6402:2da:: with SMTP id b26mr15519060edx.160.1632627042311; Sat, 25 Sep 2021 20:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632627042; cv=none; d=google.com; s=arc-20160816; b=Kksl5uOxMYFY8as7TkZ7g9zmzWXeyQPAtl+AxKIRBTiOHn+WC1ZmriGA47vcQWfwfy AagpMjIJn/N423RVJyn28sV+1idI300GhmUemapvf2917L0Swo99uPa9G+7J+IHRmCAv fo4+qPEyyJCb8zmgM1sSZEfLSq19WJV93VnXvddBFZAepjSNzfDqhGsLXP6uph/VSz+C naXvXwir5zKM2n78IrMIvtZscD8sl7kcg+6THX/j+aHaMxxSq9Bt8We/9zcRXKb+2Uvj qD540VRvbsoe0rfFzZfQrqI5uwaseHReEvngz87cqwgj9y8ZHiSDh2MdFpeZpTbXh3hg EqeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date; bh=gxu6pb6eAv7J2Bgl+CeTivXrAXv37CkRBBXple7lDNQ=; b=VM8MVewl+RbOwe5n0OU/SSgVLhruuMmQvlzws0/xJUfyK2pifXKPtZpoGV5NXwnQL8 /mtS0H/PNb1u7Z8aR6pPZrCRQUxBZjDqjLBBjvTOjXpN1FQslLF1nIW/mWKpbMe7Trt6 0ljxbM+0LKBLzmNGeUUZegT2KidhXVZvblUV92ggbvkA1pK/3CWPQI0RAKm6xzouf1n2 5s3zGQfhjzOK6Z9uqyArSZjQZDAZoSYgSOGR90mI/XKB7FO4rpRVSAOtAeLjJp4kvTp1 lgNmLhq4mc8PiU/90yZai/eAiFKxdCluXQWXpauKH98Mtt+isd0vYM8D/5Ou7629OxNO 8/jA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si15188839edm.29.2021.09.25.20.30.18; Sat, 25 Sep 2021 20:30:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230414AbhIZD2j (ORCPT + 99 others); Sat, 25 Sep 2021 23:28:39 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:40447 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230349AbhIZD2i (ORCPT ); Sat, 25 Sep 2021 23:28:38 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04357;MF=wuzongyong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0Upa9eNv_1632626820; Received: from localhost(mailfrom:wuzongyong@linux.alibaba.com fp:SMTPD_---0Upa9eNv_1632626820) by smtp.aliyun-inc.com(127.0.0.1); Sun, 26 Sep 2021 11:27:01 +0800 Date: Sun, 26 Sep 2021 11:27:01 +0800 From: Wu Zongyong To: Jason Wang Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, mst@redhat.com, wei.yang1@linux.alibaba.com Subject: Re: [PATCH v3 7/7] eni_vdpa: add vDPA driver for Alibaba ENI Message-ID: <20210926032701.GA32606@L-PF27918B-1352.localdomain> Reply-To: Wu Zongyong References: <296014fa3b765f2088a3183bf04e09863651a584.1632313398.git.wuzongyong@linux.alibaba.com> <8341d7ef-d31d-5536-864b-7d5127b7ec9f@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8341d7ef-d31d-5536-864b-7d5127b7ec9f@redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 26, 2021 at 10:26:47AM +0800, Jason Wang wrote: > > ?? 2021/9/22 ????8:46, Wu Zongyong ะด??: > > + > > +#ifdef __LITTLE_ENDIAN > > > I think disable the device via Kconfig is better than letting user to meet > errors like this. > > (Or if the device is always using little endian, we don't even need to > bother this). I prefer the second suggestion since there are no use cases that the device uses big endian > > Thanks > > > > +static int eni_vdpa_probe(struct pci_dev *pdev, const struct pci_device_id *id) > > +{ > > + struct device *dev = &pdev->dev; > > + struct eni_vdpa *eni_vdpa; > > + struct virtio_pci_legacy_device *ldev; > > + int ret, i; > > + > > + ret = pcim_enable_device(pdev); > > + if (ret) > > + return ret; > > +