Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp8208149rwn; Wed, 14 Sep 2022 10:32:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR73HXOMKRkE1kblAoeaPBFHjugFAxfScgJExIKkZOePKMMT7tq+yJ0sssJnsSrd6pfYo/tl X-Received: by 2002:a63:d312:0:b0:438:5cd8:8d56 with SMTP id b18-20020a63d312000000b004385cd88d56mr27307529pgg.615.1663176760384; Wed, 14 Sep 2022 10:32:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663176760; cv=pass; d=google.com; s=arc-20160816; b=DM45FouZ6wDI5eDlsQYZcXRPwbpY3IHcqntkX+npJznDxBafWkVNjMOqaZ+o2OUiAE FFlEwHCDOtBlevKi0S4WRlgiMYaa5dFjIi+nSjQrQp5A/gbtA323Epw/Hz1Sm+XprOJT TqE7blHqxt+E6xf8hW6mLGElSEQ9PWa7qPVwXZWJzM9IfHBqeCTHLPgsmZqRgSy1PPv4 TZhssQZLnnvmp7bLzXrMAB2Pr1a4psPpF07rJMLqOEtdpXA64JPOSmklrPUpHOTxmUrU eXIZ6tORFjUWuRRcW3Vqqu2erdbxuVBzm8BjE/yQUUWbNHm8nvG/Der4mIeAgEb54ftm 72jw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=0SMLmMuoxRFSN9eYTijAz6hgC9Hn3OYF/sB4od3MYxg=; b=A8dSlABt+LsrSVIShSz4kvSeFyWdJH+yHp8hMgglRMddlzFIljkwRdT5C/dw8I4vM/ QE7avbb+9T2AvsWGOGE7xTGEjhpIfwBoTu97reHK6q8q1nZE3CDgSzv58eqp/YSYugf3 V7mOJoTnN3o2amRAv7CspIOAco2NwujK4t9T6kjQofQbviaZ9PmpIIAAFmXft8KNcaVK JsTpUJks9B/tc1RnkKeMA8AXc1AkX5wQcUFJgW5AnZzBEXMzyfgn0KHvXX2zPESPpUiL LmWLIA533AzovL+C3FJsHZezU0XhtE084EJITQ5wDlZR5QqWLYxsvmpHJIFsMOy0+Iu/ 2B2w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=ZOlkMg2c; 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 nk24-20020a17090b195800b002003931adfesi4517679pjb.60.2022.09.14.10.32.28; Wed, 14 Sep 2022 10:32:40 -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=ZOlkMg2c; 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 S229736AbiINQob (ORCPT + 99 others); Wed, 14 Sep 2022 12:44:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229568AbiINQo1 (ORCPT ); Wed, 14 Sep 2022 12:44:27 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2083.outbound.protection.outlook.com [40.107.92.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 930F35FF4C; Wed, 14 Sep 2022 09:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ovmhpcu9H5VcTGkFJhJEulhh6h6yL5Zd7AvB6YwiA1xmgg+73+hlTSh/C80AwikoARK/uSRGl8BT83GjFodg59yRgU6XxWhH7YhjN9tMbqN141QM7aE26Bb0jUPr/TBo3k3f3MIu4b8VhY31AjZeXYzv6RFBPIwlT1Sv6M9ZI0GtwcPly7Kl2xKVn9yTI5qFMKU/hocYUmUBa4Lb9DiyV9j26OEVchJ/19HTXTdHKtYvW72ivpUCk3mOvl+7tu7ZL5gCBb4LUjiC7d7+I+dqKKRWpwq/jMVatT8Rw693t2NzCQ+YTJuDC5LfxESMzsjOmAl3ccG14ZsNSrreCSIIXQ== 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=0SMLmMuoxRFSN9eYTijAz6hgC9Hn3OYF/sB4od3MYxg=; b=dlMHCUq/CuemHVbyAR+P3HUjkl6fURXjmytj0pgQfL8DBCQsT6gFAgtt6y1IBdemjt0WwfqTtdkdtViHYwVPD8bsQyo2ea4KDC3LXhWJjakHViDa3cYM2JY/QCW7LoHF3SoCzxcyxNsczJGMgN4dIE6uO8AgSgoXQ6LCmDDW0XKUHzCmPvzTOiJC71+CjMDPNEJ6WoXc7gHyXbFtgu3BHjhpTqdG4/pEGfTcAdnHntoh3HidCRzRbv6oCNBxD5YIcqGiKKWPHZVEjVrtwzX2F+ztR/A8pFOwJ43HoQjsRtG+PDt/0NvFTyv+G+M0qnhR1mwgGKcxkvUa/A2uFtpzfw== 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=0SMLmMuoxRFSN9eYTijAz6hgC9Hn3OYF/sB4od3MYxg=; b=ZOlkMg2cyFg+U3/TzPunjgXVfVf7hC+4W/5cRcf7z1YYja1y5G2nF+9Ign/NcMkumaz2DazenGQqMmQSKJI6girSTBai+aedlqVWmuq5wDuadkRTuY1wAtmEnIJb0GUO38z+sH+LlOhU4gRMWZ3N5SK/a2MA3ZliBActXMOBYOc= Received: from BN0PR04CA0093.namprd04.prod.outlook.com (2603:10b6:408:ec::8) by SA1PR12MB6680.namprd12.prod.outlook.com (2603:10b6:806:253::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.12; Wed, 14 Sep 2022 16:44:23 +0000 Received: from BN8NAM11FT108.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ec:cafe::8c) by BN0PR04CA0093.outlook.office365.com (2603:10b6:408:ec::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.14 via Frontend Transport; Wed, 14 Sep 2022 16:44:23 +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 BN8NAM11FT108.mail.protection.outlook.com (10.13.176.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5632.12 via Frontend Transport; Wed, 14 Sep 2022 16:44:22 +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; Wed, 14 Sep 2022 11:44:18 -0500 From: Arvind Yadav To: , , , , , , , , , , , , CC: Arvind Yadav Subject: [PATCH v4 0/6] dma-buf: Check status of enable-signaling bit on debug Date: Wed, 14 Sep 2022 22:13:15 +0530 Message-ID: <20220914164321.2156-1-Arvind.Yadav@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT108:EE_|SA1PR12MB6680:EE_ X-MS-Office365-Filtering-Correlation-Id: 0a1955de-c799-416d-9fae-08da967060bf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qRStMn06f0uygl2808BqkOEKdBac+fhswf4LgA8x0Q/9rBkTN16WJPh1eUuIdRMU+fGBiZZzd0rkO6jygv92r4RxerdE4REM3LIw0obopSwSTtA+FwXrcbVHukQolu8SZALDwcsGdP1IktkwTWlOgf4qGvoSLfuzTljJ7YQs3ZjjGE2Oxv6uc39f+5/vuuzVEQF7I/x1q6iGEzuRD7OjPQSsdozlDuJx9KA0kOGw8Da2eSuXFWECuYvjUvAs1x3bpLSf6TgCoTS10ZrxIDzIfphUjzMR70ZEAqVSDcYL/obNNac31bUOhC/sGBgtae+3u0S7No5x7yCXi7K4O/m0zSkeqUVXX9mfy4KthAs3zjD1dbfehljHCVgMCV2dwphK5Tj5JfUVXX8C0EVUwFiiQ2ZrXF+UDUR6VKaKUMEpe1y1fMpHSxivmH+h84WTx6aNxrq9pBpDcEuynDl7q1oo2FJ7W9qOTjjD//DKI7TCyn7bTIinpFE0CCsGiJkozzOSY9HAaCQO2wSGf7RWmh6BPaqaDDIxo9ftLbBrUj4EibuNgsr1uMLCi9+rGOKKe/tp8r8A0Pw/8mNQTCODg/uQPs4fCdIlQoWLHR/OEIIF99rl5s32C7z+Z8UDj2sYAqdOWc9aWvGX4hAzp4rz3uI/xwhgbqfEwY/0XHvcn6P1sWYxwbQTidSUoPprIRdI6XUNZCGm8nytNR4+zLamWGPg97UN7emLyycuxlLsA629YxL2tvf2d4cHo6A1YFWqd/3gPhE37gbbBDuxAbBfUlAjsJUbIyW5WU6rTUgqm4HZ7EIOTUrFE+kcMQIf9j27TCy4Oz6oRB5/ldAzMF9po6Oa4+00JEEzGAEANPj3ceV1gFA= 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:(13230022)(4636009)(396003)(346002)(376002)(39860400002)(136003)(451199015)(36840700001)(46966006)(40470700004)(36860700001)(336012)(41300700001)(186003)(47076005)(83380400001)(36756003)(8936002)(26005)(4326008)(478600001)(316002)(70586007)(110136005)(81166007)(70206006)(82310400005)(356005)(8676002)(5660300002)(426003)(6666004)(2906002)(2616005)(86362001)(1076003)(7696005)(40460700003)(40480700001)(82740400003)(921005)(16526019)(36900700001)(83996005)(2101003);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2022 16:44:22.9239 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0a1955de-c799-416d-9fae-08da967060bf 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: BN8NAM11FT108.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6680 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Fence signaling must be enabled to make sure that the dma_fence_is_signaled() function ever returns true. Since drivers and implementations sometimes mess this up, this ensures correct behaviour when DEBUG_WW_MUTEX_SLOWPATH is used during debugging. This should make any implementation bugs resulting in not signaled fences much more obvious. Arvind Yadav (6): [PATCH v4 1/6] dma-buf: Remove the signaled bit status check [PATCH v4 2/6] dma-buf: set signaling bit for the stub fence [PATCH v4 3/6] dma-buf: Enable signaling on fence for selftests [PATCH v4 4/6] dma-buf: dma_fence_wait must enable signaling [PATCH v4 5/6] drm/sched: Use parent fence instead of finished [PATCH v4 6/6] dma-buf: Check status of enable-signaling bit on debug drivers/dma-buf/Kconfig | 7 +++++++ drivers/dma-buf/dma-fence.c | 16 ++++++++++------ drivers/dma-buf/st-dma-fence-chain.c | 4 ++++ drivers/dma-buf/st-dma-fence-unwrap.c | 22 ++++++++++++++++++++++ drivers/dma-buf/st-dma-fence.c | 16 ++++++++++++++++ drivers/dma-buf/st-dma-resv.c | 10 ++++++++++ drivers/gpu/drm/scheduler/sched_main.c | 4 ++-- include/linux/dma-fence.h | 5 +++++ 8 files changed, 76 insertions(+), 8 deletions(-) -- 2.25.1