From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id DB0F31B78F for ; Wed, 7 Feb 2018 10:00:04 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 9182420C0D; Wed, 7 Feb 2018 04:00:04 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 07 Feb 2018 04:00:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=x9iU7fItnhOXbDSF3 9r+KBVHK+wBLwS9THUH64GGi3U=; b=ItnnNRlHV1O4jcelQRO5XX+7un37zRWml ykn0AMP9p4r+7r+34wYcIYT3R72L9AytmFUidIlN5gr38YNNkEXr0GmMgvKwGkIU OhS8VPrrH0dSGv3O6NjXiXN+AmW3oQmTSCnoOu6RpKKOvLxAX8OdBLq2JCfZcXoh WVGBnFuhNk3fk3hmNvTT7y2sMq6reT80efY0piPX9WlGcWJwPi74+DMQtG1AyhLw g8LXE54zUXG3PbBM7KSimmB1AbPWAVJ1Hnt0z8Vjo2OgVMClrZWxmjVm67SVdmtp YWdkibmVHorS3z/QDecNOin5yns5ZcmjUktOlcQuXkgplAkUof4ww== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=x9iU7fItnhOXbDSF39r+KBVHK+wBLwS9THUH64GGi3U=; b=jNbwE+4q aA8nb2Hfc7cXzk3qWpZOsT1VM6kXBLKGKd92/snjac+st9HkzO4qMxmH8iPCSeeJ XXPfd0O46rs9vlffIM7kmDPt9vZ/DuXsari4YKNbTFX338HF5T3HYCOpXZk4b/wV TRZ4dlkhr3KvV+8FKBlgHInx02TqpxR08yt6ckQEptRXXEQEj2RDEG7hTz9DgVGs AWKxJwFy7W5APsAPKWs3HFrHlm6AQ0Yhm11RtIw7xywH+PeSZG6YxUcl0vYfyGHb wbiJn8p2OUR5SPi0drbu0aglYZB8wMl4qY8tB3QSvS++9pEby4Wjur2upQ8gyUQX jpo7W2dkYnoZcQ== X-ME-Sender: Received: from localhost.localdomain (unknown [182.84.161.100]) by mail.messagingengine.com (Postfix) with ESMTPA id C0A8024736; Wed, 7 Feb 2018 04:00:00 -0500 (EST) From: Yuanhan Liu To: Pavan Nikhilesh Cc: Hemant Agrawal , dpdk stable Date: Wed, 7 Feb 2018 16:57:10 +0800 Message-Id: <1517993838-26692-16-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517993838-26692-1-git-send-email-yliu@fridaylinux.org> References: <1517993838-26692-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'bus/dpaa: fix default IOVA mode' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Feb 2018 09:00:05 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/09/18. So please shout if anyone has objections. Thanks. --yliu --- >>From d7eab3d55173964267b7f6cd824e8a989c78b855 Mon Sep 17 00:00:00 2001 From: Pavan Nikhilesh Date: Tue, 6 Feb 2018 22:52:48 +0530 Subject: [PATCH] bus/dpaa: fix default IOVA mode [ upstream commit d415e4d18c316f21b83ecf21bbc7101b5906835e ] Fix dpaa bus returning IOVA as PA even when it is not running on dpaa platform. Fixes: 1ee9569576f6 ("config: enable dpaaX drivers for generic ARMv8") Fixes: d5a4e3a00c4a ("bus/dpaa: set IOVA mode as physical") Signed-off-by: Pavan Nikhilesh Acked-by: Hemant Agrawal --- drivers/bus/dpaa/dpaa_bus.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index 1cc8c89..3a0b255 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -490,6 +490,10 @@ rte_dpaa_find_device(const struct rte_device *start, rte_dev_cmp_t cmp, static enum rte_iova_mode rte_dpaa_get_iommu_class(void) { + if ((access(DPAA_DEV_PATH1, F_OK) != 0) && + (access(DPAA_DEV_PATH2, F_OK) != 0)) { + return RTE_IOVA_DC; + } return RTE_IOVA_PA; } -- 2.7.4