From patchwork Wed Jun 29 06:02:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Zhang, Jesse(Jie)" X-Patchwork-Id: 12899376 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8F762C43334 for ; Wed, 29 Jun 2022 06:03:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B4E5E12B789; Wed, 29 Jun 2022 06:03:27 +0000 (UTC) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2089.outbound.protection.outlook.com [40.107.237.89]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6F41112B788 for ; Wed, 29 Jun 2022 06:03:26 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ldUfPkZKCAyeU/6Dg+VS+21dh2LkrOQlgOP1GLHa041n1la8mPYLNxorhnr31niSZSq6/8T8T1GcG7aBim+/SzkGRFyqI3X2n+FhZ2R7RtNoP4vXP+SJ0ExcFuPvScT6x6SbRgYwSTt897xXOKPWkCnXpf/jLO5Tg0SE3Djkm+4YtX6E5iF4nY2p1SgMOfVDznLXxknDRtosLi5luan2irx7Mm5BAHeFIkbOV/Vtn5fJ70weW3cpLUhvj/QwWASnuazJ7cffIDHPQz3B5ALVFTU0NAXWjfbpmNlMVgmih443rFpXLlVQ2iAoXvfvFcpuX5lVcB+xKnx8cGkQZ+USGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WZ+TcqCFNllt9qXQfWvqmWXpPxrDwf0BuFxNn4y5tQw=; b=g603jFTNZl7w5H+lv/VPywe61AEx2zoM3I0+gFDXn7NvRj63EBKN8bJ0ho+o9nlghLSrJf2gG9RIneWsm6KkDLbiB93ReKwjQv71inxdUGDiC8Cd9/NQM0ai7+8oULU0d0PawiON6DK51gvbHIGbTlJSmwx4OBCLq35FmoIQUNk7wlhd5kZXQkO/hnmsFLwX9dFFNGWRVSmoOBeAWz+Gbp1KIpuvtdMYtJqGMPz5NJrYBZ1FrrHdtpuN6bXvOZMto52Qg9/9is90vrwmFoV4vspu9E5I/771ZJSdKtlLU8VFzIcMuYrSeWQjhrtFI3t6TV04pKIG/8rOhMK7ai/h+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WZ+TcqCFNllt9qXQfWvqmWXpPxrDwf0BuFxNn4y5tQw=; b=Q70vYaCghWBW2kc7R0pSvGyPJmw1fSHvW2fJSlLjymgQ4xI1AJNvjrLFnaSpFv3HRdsq3voBiQUfu1VafCU2VV5F17tKQMXAV8MiO+pjTgwtA3XIYdgyrX0prv58ia31WQ5o4myHV6uT8urqcf5En1a4SrQW/kZ3uGKT/Z4xqlk= Received: from DM6PR02CA0120.namprd02.prod.outlook.com (2603:10b6:5:1b4::22) by BN6PR12MB1459.namprd12.prod.outlook.com (2603:10b6:405:e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.16; Wed, 29 Jun 2022 06:03:22 +0000 Received: from DM6NAM11FT044.eop-nam11.prod.protection.outlook.com (2603:10b6:5:1b4:cafe::3e) by DM6PR02CA0120.outlook.office365.com (2603:10b6:5:1b4::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.16 via Frontend Transport; Wed, 29 Jun 2022 06:03:21 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT044.mail.protection.outlook.com (10.13.173.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5373.15 via Frontend Transport; Wed, 29 Jun 2022 06:02:49 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Wed, 29 Jun 2022 01:02:48 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Wed, 29 Jun 2022 01:02:41 -0500 Received: from dev-desktop.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.28 via Frontend Transport; Wed, 29 Jun 2022 01:02:37 -0500 From: jie1zhan To: , Subject: [PATCH v1] Fix: SYNCOBJ TIMELINE Test failed. Date: Wed, 29 Jun 2022 14:02:36 +0800 Message-ID: <20220629060236.3283445-1-jesse.zhang@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9f8096e2-bdd3-4ebc-fc22-08da59951234 X-MS-TrafficTypeDiagnostic: BN6PR12MB1459:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VxO6VteLK1W0be7er/A6cSemlLxgh6NjatnY574S0N7+NXZQcBTohgxgieiI9uHwiQygOYEIXpL3tv0QYjNhhuCgs8O+ZSazBtlsUU1kDnWtwx1t6pB4u7vI1j02U0bZmZJ+TQG98WSvL8DMqOqDNEi81Axe42Xn6PSO9zcJf2CACjfG+iGJ1nLabtmViP/TjjFo9MMDb6Yp47uNYl6SFlxcpI/JCKLhTh1iTnDyOFXoAJnZ8GY+g/qpZJHCrdlvZeMy1Lj7fSs7tUumFYGSC/fZfKBCHZhrLQsn7NgEBrdaytUW5EZSRP0W0hMDKT8KM7ifD7/ZLIjynI8uCWBIEJpi/ZOCEYqKOn2o2baqWE3FRU6EjOF/VhPzTyZ5gumwPRuKRGnseEi3WBpDXWOKVxb2508TITcqGazUXx8na1Hi6ItLhtZZkXQYuNgma03UhqB+6jFB8reLt7d0uWLTmLV7IKjuu37knxbMsclly+K9RJxn0jLQIUgvKJHve89QN8+L5R9Ir6wKq5Z5z+DpwF14t+REinVkUGA6BcCeaeZq9j66ym0vVoP7/7tCS0CwLmrlTFaH0We7KW9Us0ULtQrevs23yXLd+0BUzF2+3MArZQCgIYrY8nV3owDOFjrmk8QWe8ZR4qE3djM0McuqZu4qw6pthr5X8pAIkdfJnZjKk1zmkpCCL4eejXD7jNByUZxdM9lHzXVdjocnjg4AVqpdQgQwYr1FzHoFOTrlNC4Fbx/yP1M9bvsPlkdaJiOGM65i6Sdt8BWlawheoi6mJ59nUP7uXr6fA+oj0F9bPvF3hTzi9Dz42N4E1f8ifhMO3UY1m45gUfLOYdtaaNJ9pGn8hVrGaStxlxyNCwvGbFnCwVt6l9BpUif0We2fZykEA8K4awp1x6g2gWpleIyRfgvyuBI12vJDdTKxdsjC4Jo= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230016)(4636009)(396003)(39860400002)(376002)(136003)(346002)(46966006)(36840700001)(40470700004)(426003)(82310400005)(186003)(336012)(66574015)(83380400001)(36860700001)(47076005)(81166007)(82740400003)(41300700001)(8936002)(356005)(40480700001)(40460700003)(7696005)(4326008)(26005)(5660300002)(8676002)(478600001)(2906002)(70206006)(4744005)(1076003)(70586007)(2616005)(54906003)(86362001)(7416002)(110136005)(36756003)(316002)(43062005)(36900700001)(414714003)(473944003); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2022 06:02:49.7142 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9f8096e2-bdd3-4ebc-fc22-08da59951234 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT044.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1459 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sunil-kumar.Dommati@amd.com, ajitkumar.pandey@amd.com, David Airlie , Basavaraj.Hiregoudar@amd.com, jie1zhan , open list , Sumit Semwal , "moderated list:DMA BUFFER SHARING FRAMEWORK" , Nirmoy Das , "open list:DRM DRIVERS" , Thomas Zimmermann , Vijendar.Mukunda@amd.com, =?utf-8?q?Christian_K=C3=B6nig?= , "open list:DMA BUFFER SHARING FRAMEWORK" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The issue cause by the commit : 721255b527(drm/syncobj: flatten dma_fence_chains on transfer). Because it use the point of dma_fence incorrectly Correct the point of dma_fence by fence array Signed-off-by: jie1zhan Reviewed-by: Christian König Reviewed-by: Nirmoy Das --- drivers/gpu/drm/drm_syncobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c index 7e48dcd1bee4..d5db818f1c76 100644 --- a/drivers/gpu/drm/drm_syncobj.c +++ b/drivers/gpu/drm/drm_syncobj.c @@ -887,7 +887,7 @@ static int drm_syncobj_flatten_chain(struct dma_fence **f) goto free_fences; dma_fence_put(*f); - *f = &array->base; + *f = array->fences[0]; return 0; free_fences: