From: Jianxin Xiong <jianxin.xiong@intel.com> To: linux-rdma@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: Jianxin Xiong <jianxin.xiong@intel.com>, Doug Ledford <dledford@redhat.com>, Jason Gunthorpe <jgg@ziepe.ca>, Leon Romanovsky <leon@kernel.org>, Sumit Semwal <sumit.semwal@linaro.org>, Christian Koenig <christian.koenig@amd.com>, Daniel Vetter <daniel.vetter@intel.com>, Edward Srouji <edwards@nvidia.com>, Yishai Hadas <yishaih@nvidia.com> Subject: [PATCH rdma-core v7 6/6] tests: Bug fix for get_access_flags() Date: Mon, 25 Jan 2021 11:57:02 -0800 [thread overview] Message-ID: <1611604622-86968-7-git-send-email-jianxin.xiong@intel.com> (raw) In-Reply-To: <1611604622-86968-1-git-send-email-jianxin.xiong@intel.com> The filter definition is wrong and causes get_access_flags() always returning empty list. As the result the MR tests using this function are effectively skipped (but report success). Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com> --- tests/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/utils.py b/tests/utils.py index 8546329..c41cb3b 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -58,8 +58,8 @@ def filter_illegal_access_flags(element): :param element: A list of access flags to check :return: True if this list is legal, else False """ - if e.IBV_ACCESS_REMOTE_ATOMIC in element or e.IBV_ACCESS_REMOTE_WRITE: - if e.IBV_ACCESS_LOCAL_WRITE: + if e.IBV_ACCESS_REMOTE_ATOMIC in element or e.IBV_ACCESS_REMOTE_WRITE in element: + if not e.IBV_ACCESS_LOCAL_WRITE in element: return False return True -- 1.8.3.1
WARNING: multiple messages have this Message-ID (diff)
From: Jianxin Xiong <jianxin.xiong@intel.com> To: linux-rdma@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: Yishai Hadas <yishaih@nvidia.com>, Leon Romanovsky <leon@kernel.org>, Edward Srouji <edwards@nvidia.com>, Jason Gunthorpe <jgg@ziepe.ca>, Doug Ledford <dledford@redhat.com>, Daniel Vetter <daniel.vetter@intel.com>, Christian Koenig <christian.koenig@amd.com>, Jianxin Xiong <jianxin.xiong@intel.com> Subject: [PATCH rdma-core v7 6/6] tests: Bug fix for get_access_flags() Date: Mon, 25 Jan 2021 11:57:02 -0800 [thread overview] Message-ID: <1611604622-86968-7-git-send-email-jianxin.xiong@intel.com> (raw) In-Reply-To: <1611604622-86968-1-git-send-email-jianxin.xiong@intel.com> The filter definition is wrong and causes get_access_flags() always returning empty list. As the result the MR tests using this function are effectively skipped (but report success). Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com> --- tests/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/utils.py b/tests/utils.py index 8546329..c41cb3b 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -58,8 +58,8 @@ def filter_illegal_access_flags(element): :param element: A list of access flags to check :return: True if this list is legal, else False """ - if e.IBV_ACCESS_REMOTE_ATOMIC in element or e.IBV_ACCESS_REMOTE_WRITE: - if e.IBV_ACCESS_LOCAL_WRITE: + if e.IBV_ACCESS_REMOTE_ATOMIC in element or e.IBV_ACCESS_REMOTE_WRITE in element: + if not e.IBV_ACCESS_LOCAL_WRITE in element: return False return True -- 1.8.3.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2021-01-26 1:48 UTC|newest] Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-01-25 19:56 [PATCH rdma-core v7 0/6] Add user space dma-buf support Jianxin Xiong 2021-01-25 19:56 ` Jianxin Xiong 2021-01-25 19:56 ` [PATCH rdma-core v7 1/6] Update kernel headers Jianxin Xiong 2021-01-25 19:56 ` Jianxin Xiong 2021-01-25 19:56 ` [PATCH rdma-core v7 2/6] verbs: Support dma-buf based memory region Jianxin Xiong 2021-01-25 19:56 ` Jianxin Xiong 2021-01-25 19:56 ` [PATCH rdma-core v7 3/6] mlx5: " Jianxin Xiong 2021-01-25 19:56 ` Jianxin Xiong 2021-01-25 19:57 ` [PATCH rdma-core v7 4/6] pyverbs: Add dma-buf based MR support Jianxin Xiong 2021-01-25 19:57 ` Jianxin Xiong 2021-01-31 15:31 ` Gal Pressman 2021-01-31 15:31 ` Gal Pressman 2021-02-01 6:16 ` Leon Romanovsky 2021-02-01 6:16 ` Leon Romanovsky 2021-02-01 14:10 ` Daniel Vetter 2021-02-01 14:10 ` Daniel Vetter 2021-02-01 15:29 ` Jason Gunthorpe 2021-02-01 15:29 ` Jason Gunthorpe 2021-02-01 17:03 ` Xiong, Jianxin 2021-02-01 17:03 ` Xiong, Jianxin 2021-02-02 15:24 ` Daniel Vetter 2021-02-02 15:24 ` Daniel Vetter 2021-02-03 6:03 ` Leon Romanovsky 2021-02-03 6:03 ` Leon Romanovsky 2021-02-03 16:57 ` Xiong, Jianxin 2021-02-03 16:57 ` Xiong, Jianxin 2021-02-03 17:53 ` Daniel Vetter 2021-02-03 17:53 ` Daniel Vetter 2021-02-03 17:56 ` Jason Gunthorpe 2021-02-03 17:56 ` Jason Gunthorpe 2021-02-03 17:58 ` Xiong, Jianxin 2021-02-03 17:58 ` Xiong, Jianxin 2021-02-03 18:14 ` Emil Velikov 2021-02-03 18:14 ` Emil Velikov 2021-01-25 19:57 ` [PATCH rdma-core v7 5/6] tests: Add tests for dma-buf based memory regions Jianxin Xiong 2021-01-25 19:57 ` Jianxin Xiong 2021-01-31 8:44 ` John Hubbard 2021-01-31 8:44 ` John Hubbard 2021-02-01 17:12 ` Xiong, Jianxin 2021-02-01 17:12 ` Xiong, Jianxin 2021-01-25 19:57 ` Jianxin Xiong [this message] 2021-01-25 19:57 ` [PATCH rdma-core v7 6/6] tests: Bug fix for get_access_flags() Jianxin Xiong
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1611604622-86968-7-git-send-email-jianxin.xiong@intel.com \ --to=jianxin.xiong@intel.com \ --cc=christian.koenig@amd.com \ --cc=daniel.vetter@intel.com \ --cc=dledford@redhat.com \ --cc=dri-devel@lists.freedesktop.org \ --cc=edwards@nvidia.com \ --cc=jgg@ziepe.ca \ --cc=leon@kernel.org \ --cc=linux-rdma@vger.kernel.org \ --cc=sumit.semwal@linaro.org \ --cc=yishaih@nvidia.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.