Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2295978rwn; Fri, 9 Sep 2022 11:18:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR6wIVBPwcQKCdWg/KAgL9AtxXcbKVYFmBV1NoshZjZgLWvMnxUclnyeILMiowZqP7mZ6W6V X-Received: by 2002:a05:6a00:2287:b0:541:44e:631a with SMTP id f7-20020a056a00228700b00541044e631amr2203202pfe.79.1662747489193; Fri, 09 Sep 2022 11:18:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1662747489; cv=pass; d=google.com; s=arc-20160816; b=d11oQm5tJ9YiImBQhKOgGElHAKB0Ar6/zR+nFLlP8KYJdcKsgXFsprdKTmoJgAzjJY KujmWMBFP6qmVD9B0G0J70mhEp1scKpSIb211cs98nYfIPfKc+3tQN2ssXhmioYWfWq3 6ihi2X7w3ddhZdoGzbDnulBOXlILMbZAxovFzZXAfLNG2jDuwUzwRPvBVo5PlDQrbdO6 4AAvmEaMmjcRyg0i3WlcN0zQRMfv+RwDTFh+faB2l+TQD0dlWzZJ07N2rtpJh+/n2Qiq CxTuCyFKvZmuHSGbz+QSZ7LMARP+5n2oK62qI5xoFtfRvBJgCIh+SuaAud9SBduh0bw4 d+PQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AeG6A3HdzptA8n232xcIUrqJ7BPsPgjc5dcyC9SGKMI=; b=HZ75sY6qGt7F0Q8BT6NvTtVZziXyToRIeUAd0gWXoGjkSHJaLczmKXaFYoM7ALC/YT BOPtFHtZZGST2sVYsOWJY0n5GEObwCCYf8ug+G05Nq/PxBVeDazu0MVdklOnoQkxQ3AW mjxhXyaxCaCElFreE1ymCHhnx5lUzdCHTiYHHZip45YopHpzL6v/x5qOTGwUNkzTG8du bLOkzO3sIVt+IMEOP6k8aX9qrsYR+iIed4wjfX04s7W11MZR0Bm6HTzjsWivye0qzPPL GYb1wyME0h4tZ72Ou29YzL9IUOBgEH66nJ6KNmgAvvUrZNR0zsafadLAvMHq9b71pO19 irGw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=No9OAchl; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a12-20020a170903100c00b00172f6726d91si1012449plb.565.2022.09.09.11.17.57; Fri, 09 Sep 2022 11:18:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=No9OAchl; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230012AbiIIRLK (ORCPT + 99 others); Fri, 9 Sep 2022 13:11:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231252AbiIIRK5 (ORCPT ); Fri, 9 Sep 2022 13:10:57 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2074.outbound.protection.outlook.com [40.107.223.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D24D4B5E42; Fri, 9 Sep 2022 10:10:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U4DbwcvuzE8vSHm9ndSHCZ8674gyET0px2500AqYFwxXUU0Noogi49u5JA2V7CZ7ZUO22LZyU0RmIizJfeYf6wz190aQWVPN89EKmBQVfu6l2VP96JqZan5nk9oj9HfxFiGPL1RZaixvcW1Z5enlPDa/aTtmH+Pp+jrOMeyuA9c66YP7xkYdc2YbwNaLdjjGmBzxr52rfBJFVwZMv2xNIJjewxSJjL8KGuRP2YlUZrxnbGlnprJBxuiEdpFyKFvo4orl20MfQ7QmyBemGWwknMGPsA4hQMjxKJwDvAM6ApShXMba70r8ECRk3N3x+hWyU71KRhFDQz76K5AtgBuaHA== 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=AeG6A3HdzptA8n232xcIUrqJ7BPsPgjc5dcyC9SGKMI=; b=dgj0xlaSnJmcHhwUrZXMewCBTXSeuPR9N/HWt9DmkEAHHxU4mTOlgiZjOv2l37WJhvbqWrWe/u6Tvaj/jInJYCbXQaBQF9oRE8HeKiMbyAFcEVEkrQdMtz13QPOCAh+NIdF9cvaRE3eWfbNqiY6rgfn8sIf0XQnKkM6hxYhifFMTehF+BHELonUi3xLz5s3lVu0KvB0UJQ8RSZdDPX0xEpQuKKumqj8FnAJ0HHxPqRX/UhIFMgPZVQRMuVqLS34hj2nReuAcYqyByBhzIS6lOlccLZxVyUwapo/eSFjB47G3iY+/NRODVWz5nR9V2EXJNwsHgyM9J5nI6JAU4MS2iw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linaro.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=AeG6A3HdzptA8n232xcIUrqJ7BPsPgjc5dcyC9SGKMI=; b=No9OAchlEd1aXCJqw/tgJmHkKxMhzDs0deU0EZ4E9eRP41itCXWNywc6DtUI4x/Yuz3vXZD1IQ7+f14ArATODGIrPXm4JDGfvGdnVlqfOBIxYyGtY6KWR7sZN3JqqR+VN1owrIdG4jhUFsG/EJZNPwfAPlpi+OJgKFhVGlGNWKU= Received: from BN9PR03CA0659.namprd03.prod.outlook.com (2603:10b6:408:13b::34) by BL1PR12MB5253.namprd12.prod.outlook.com (2603:10b6:208:30b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.12; Fri, 9 Sep 2022 17:10:50 +0000 Received: from BN8NAM11FT113.eop-nam11.prod.protection.outlook.com (2603:10b6:408:13b:cafe::aa) by BN9PR03CA0659.outlook.office365.com (2603:10b6:408:13b::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.14 via Frontend Transport; Fri, 9 Sep 2022 17:10:50 +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 BN8NAM11FT113.mail.protection.outlook.com (10.13.176.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5612.13 via Frontend Transport; Fri, 9 Sep 2022 17:10:50 +0000 Received: from amd.amd.com (10.180.168.240) 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; Fri, 9 Sep 2022 12:10:45 -0500 From: Arvind Yadav To: , , , , , , , , , , , , CC: Arvind Yadav Subject: [PATCH v3 5/6] drm/sched: Use parent fence instead of finished Date: Fri, 9 Sep 2022 22:38:44 +0530 Message-ID: <20220909170845.4946-6-Arvind.Yadav@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220909170845.4946-1-Arvind.Yadav@amd.com> References: <20220909170845.4946-1-Arvind.Yadav@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT113:EE_|BL1PR12MB5253:EE_ X-MS-Office365-Filtering-Correlation-Id: 6e1835cf-fb11-49d4-2d58-08da92863ea6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6DeTFL0tGan5TYZSE5uRtRYb7JE6eo25R0RFg1nZumvHeE/eOZ90uINfCobyMoJS+LSG7a65x6nJ9fX2kYPvq7HmeZO3+wujAnPqJ884Mlc1Wh+qIzN+iuaAG2Ud27mzHwORpFdmqEGO91/4uxfPmwSf/TIJAqDFBFZDKnTKbDwI9fQlIS5GJYKqakJgEpLmQ13z3wOjVljwdcd2WOa6vYmchasxRMhzDTq0zucFzrA0kcLt60wWoAtXK9/SiJKe9W531Vnu0tfUw7OFvSqykwZeTcZnB5b48FkbWWtjIPcBfyg5BvoBMy+4l+ZdjocfIVj2H02J4ZJurRB2IANEi+0epPIP8xRzJ0mE3Xt0g8iB9TwD3OdZdgEdw2/2yiRsVdBewnpU8yFUnHrtkPd6lFE0RBcFs+pbaNL13C4Unm3ZitMMxKIyMKXI8eHGsYz0F4iw2OvrnMR10y5GWbdCZkBJuDYXqcLdO9rEC1CPFyimHXY/sSKMY7LsWd+rJED01/74orciwRRPG42i9RGcrlfvwuBHVnwvEKt1UxpdMnIDJnJuUiodAmV7h206yiwZbX6OBgE2W+5HCP+zOOzZNC0IsaH4cCe3pbjJ1NBfQFVJ7E2uckPH7grUgqpKThEXqZwu2zasQNyRejv5vIc0HARzMLNR3tI+Nwz40sWAcTfcFyjNpCIddHwn7ozPOYOVRtWRISVA/JP14UIz6OH1qsgGg5c100av6qb7qv17slwmXP/Yd5nHloNkFcOLSyIEMc6Zu9KjEMRBa4oecG297nmdmcLe3A8aPCRcSlMoUHR9HCJRFvk7AA9LacXPsk81SGO5dAIHXCndrMxfqicHc29RcQusjixbfroP2q0L5uLbpyEM4mRugWNyMaZXnmNd 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)(136003)(39860400002)(346002)(376002)(396003)(36840700001)(40470700004)(46966006)(36860700001)(26005)(82310400005)(7696005)(86362001)(110136005)(316002)(41300700001)(478600001)(82740400003)(40460700003)(426003)(81166007)(2616005)(1076003)(186003)(336012)(16526019)(921005)(356005)(47076005)(70206006)(83380400001)(2906002)(4326008)(8676002)(8936002)(70586007)(36756003)(40480700001)(5660300002)(2101003)(36900700001)(83996005);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2022 17:10:50.0072 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6e1835cf-fb11-49d4-2d58-08da92863ea6 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: BN8NAM11FT113.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5253 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Using the parent fence instead of the finished fence to get the job status. This change is to avoid GPU scheduler timeout error which can cause GPU reset. Signed-off-by: Arvind Yadav --- changes in v1,v2 - Enable signaling for finished fence in sche_main() is removed --- drivers/gpu/drm/scheduler/sched_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/scheduler/sched_main.c b/drivers/gpu/drm/scheduler/sched_main.c index e0ab14e0fb6b..2ac28ad11432 100644 --- a/drivers/gpu/drm/scheduler/sched_main.c +++ b/drivers/gpu/drm/scheduler/sched_main.c @@ -829,7 +829,7 @@ drm_sched_get_cleanup_job(struct drm_gpu_scheduler *sched) job = list_first_entry_or_null(&sched->pending_list, struct drm_sched_job, list); - if (job && dma_fence_is_signaled(&job->s_fence->finished)) { + if (job && dma_fence_is_signaled(job->s_fence->parent)) { /* remove job from pending_list */ list_del_init(&job->list); @@ -841,7 +841,7 @@ drm_sched_get_cleanup_job(struct drm_gpu_scheduler *sched) if (next) { next->s_fence->scheduled.timestamp = - job->s_fence->finished.timestamp; + job->s_fence->parent->timestamp; /* start TO timer for next job */ drm_sched_start_timeout(sched); } -- 2.25.1