Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp803616rwn; Thu, 15 Sep 2022 06:46:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4D0QTugaZwxJb2lb+fkZk1oDyaab/rXKl0jzsX09uYwUC5SfCcWJQy6XDashPa5dcG4fAp X-Received: by 2002:a17:907:6e8a:b0:780:7379:2c76 with SMTP id sh10-20020a1709076e8a00b0078073792c76mr16954ejc.643.1663249590563; Thu, 15 Sep 2022 06:46:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663249590; cv=pass; d=google.com; s=arc-20160816; b=h0ZVLqKzT3bADNhW/h43UZxXFXJN+XcT+R0h9SXH9vQ0OJbEFv0EqYaGDOA4pi7nbM FhQ5IXCWtwZtZ7qs+inRlIH7jgIWPVzC9rXNsgunSTbW7rN3VJan5esr5k5+1/Elk2Ws 7u8vCkdDEB8fWdriRPmhPc4zbW4kjQynYGvVAv43U9uxT0n5prk1VcHALcSB3MZH1k1g TZ18Rv7Pn+INSX0teB0AXVpKordAN6187Ld4vV8eXj5hzhTxnobAmqoPiJ27X/kbfR8p JDJGNHnFKSYT0AcJfmc9XB30ZPB2GNTBPW59LukG3qGtB/GIgTK3ELXSeptnAnM6gf1J 9c2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:to:content-language:subject:user-agent :date:message-id:dkim-signature; bh=JHijfAmcMfvhMpPyczP+6RURxnG9Et4KI5/zKs6gDik=; b=zs+FyhDxR2MEUbx895EWodJ9PMJQ6HYfMMcpJVHohEnBwmwOSxYSTpi0jJZ4NVPc+P xGD4cI4NxgKaIAw3ozdLRTJ7bQQXbALYGXdongFuEWR2o6Va/6gXiEY+ODVqNpZXm6/B 73cZTWMzU47wfBoLkQcenvU9iV/nIl8eWDdj/ujy4xYuPVN6oL4tSe298b48wBC34n58 TmddtSjWgggK8djIMkyXH2+336fewjzyFVxQini+4eJTFh4mxQhjSfoYZc56vAkZrJ4D iuF+i+W9x34mLH6zxx1oTPIK9WEAOytaXhfqIuvBKbIz5jBcus+Tzn6qRrEr1HGkyoEx x7iw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=EvkjJ0yY; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=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 hz6-20020a1709072ce600b0077085fc25aesi14157162ejc.510.2022.09.15.06.46.03; Thu, 15 Sep 2022 06:46:30 -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=EvkjJ0yY; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=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 S229696AbiIONCg (ORCPT + 99 others); Thu, 15 Sep 2022 09:02:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbiIONCd (ORCPT ); Thu, 15 Sep 2022 09:02:33 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2080.outbound.protection.outlook.com [40.107.244.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9D549C2DD; Thu, 15 Sep 2022 06:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S44IO29LXChgIFRZ3+YBtxfHelFwLhPDtk0zJA6DHj9L3jzEyC/aeVSiaGAeZLxlNYbc6NLPnXzvBVnXBh/LhxSqXGx1VSmOZyblaV7hD4NOt3DwZJe+DBGzC/mSCS6vK4nMiy1e54L3fYw2H9tjNalmK6JcPVyYPGg3+1xCzilpohevnb2EpN6bLd3jxmFou9jcsDzhlA4n9fBjV3JDVkB1fmBwIpuQLaSKIGoi0+wnx0+cW7aozU4/HqE9BbidW1ln5TCljADEHMCQQosaoJvli+aaU7DgEs7vulr70KFAgRLSLjiJWJ9DVExzJK4sdozpCgdcL9poJ1o1LfvusA== 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=JHijfAmcMfvhMpPyczP+6RURxnG9Et4KI5/zKs6gDik=; b=katPyiEXeDb+lQv2Y3CtaP3xvpB/bw6WF2FjDY69AqIMyR+A3i9LfqYFuh9Rwc0lsZr3/+kc2VOgRnjOMR/HjFKhhCInyZsN08BCVBRhxPhiCHSM6GTJ99HZZPF/0aUqdUwpJBLrjWKfEbWjwpMkFxl3v/Bl52KAdSb1BR8Xey/FUHnn9a1Een0FALl9vDPGjb7oSB0Znq9y/Iq0Aivz5QUJPyrFMtNpNBywil3fIVQyWhM659z9frHQB+PI6/OpwsnxeyWUKLVZRzznq4xa1CTfSFGreZQCFxX4CbqArhvXtzm0urCEQ19Yg1bQdVS2LWsubGmmEkYVJF3V6FJgxQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; 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=JHijfAmcMfvhMpPyczP+6RURxnG9Et4KI5/zKs6gDik=; b=EvkjJ0yYx1NQhuAuXS1jNWawbNVuTEiEfPOcfPw1DvQIe5zfPKGROYuESo4T49OmB3vdAnUpW8g+gFtAIVdPsXBrBTXk4kHiOP7I4z+8gqbIQGVfDBY7re+6X7orUEynTzveciABx5Jkfi+hwqWM5r2CafoN1y/O7yLcX2tJmKg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from PH7PR12MB6000.namprd12.prod.outlook.com (2603:10b6:510:1dc::15) by CH3PR12MB7594.namprd12.prod.outlook.com (2603:10b6:610:140::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.15; Thu, 15 Sep 2022 13:02:29 +0000 Received: from PH7PR12MB6000.namprd12.prod.outlook.com ([fe80::c6b8:8664:1f55:1597]) by PH7PR12MB6000.namprd12.prod.outlook.com ([fe80::c6b8:8664:1f55:1597%7]) with mapi id 15.20.5612.022; Thu, 15 Sep 2022 13:02:29 +0000 Message-ID: <33a16b15-3d3c-7485-d021-ee2a727e5391@amd.com> Date: Thu, 15 Sep 2022 18:32:16 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH v4 0/6] dma-buf: Check status of enable-signaling bit on debug Content-Language: en-US To: =?UTF-8?Q?Christian_K=c3=b6nig?= , Arvind Yadav , andrey.grodzovsky@amd.com, shashank.sharma@amd.com, amaranath.somalapuram@amd.com, Arunpravin.PaneerSelvam@amd.com, sumit.semwal@linaro.org, gustavo@padovan.org, airlied@linux.ie, daniel@ffwll.ch, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org References: <20220914164321.2156-1-Arvind.Yadav@amd.com> From: "Yadav, Arvind" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MA1P287CA0012.INDP287.PROD.OUTLOOK.COM (2603:1096:a00:35::13) To PH7PR12MB6000.namprd12.prod.outlook.com (2603:10b6:510:1dc::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR12MB6000:EE_|CH3PR12MB7594:EE_ X-MS-Office365-Filtering-Correlation-Id: b747d3e1-6ef1-4ec0-20b3-08da971a8b8d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: V94hBqun8DlrGAFqVyQivrOviZl7GNFnonhuCE/Kk7/3qa/F4p6o1faDrw/vlT6jbeytC5qwrn3DEjaHQeGIWjBG+qat7Qn2g31iDXgOK1AZBhRbelYcmlL6W2B99EiJXFnGyrSV34KFP3daYm902fGpx56AGxVPiIHzdyzOdMOicw0rzMc2M780AzhQDalqncj/tulwt8RJFyXY9d5RWbSQ8PKqK8eh+Hj0svwKOOWDMg0GX3dq7SbKqDaCEy67psLXHkRnIjf3SFEH/jhIhgG9XqAaLH3PX6SfLwhHTwt4IHdSe4asjfhM6SGfq5U9UCSvvWwevX1x7KiUoX3jkSZqPFJjwTnnslmE+XHDI0gmZ2UNJh0lAMsDj5cUlQ1sLWDAiSlYaVGCwBYVTbTQpOGhLrKvw2XBcm3MLadZP7EDiKaQs/X8ryq1f5jJcj/TqdSAJhju3e6kEaZ182Da7PCqGjeGSYnmsifbPeIT29fGZa5m7CO2omogdQehU0a4X8qn/fvcwVaoWeHjF+p6/Bktc9MjJopGUBue42XaGtmlLYe7ofd91Xc3a2GEfwMmmqfdDVMbcngNVp8n1jBzkaiW7HLG1KCR+aJTxpW7/a2Egl+4DdYayqhlKe4ghfH3BYHx433DXoMr11k0Is3R6JodqvIDlfaecsxghr6DdJkEpGvc3GqOqGwb58myfD3GbIgRFNvaLsMHHjJc+ibquBSUXhYy3/4ivp5axyTQrV7CayG1kykRByWuumjqLOJ9uO2Kzg8wX87CLnUcaUJvLSpOa46JF7/0nsOLzfiKsKhEm/fihDROjxNbcTHUjpTu X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR12MB6000.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(136003)(346002)(396003)(376002)(366004)(39860400002)(451199015)(8676002)(2616005)(921005)(186003)(5660300002)(6486002)(83380400001)(6506007)(38100700002)(53546011)(8936002)(66556008)(6512007)(31696002)(66946007)(66476007)(41300700001)(26005)(6666004)(478600001)(36756003)(316002)(2906002)(110136005)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Wlg4dXA3dmwwL3pJWGtzYmpWT2NXRVd6U0Z5aVdhTjM3NW5wM3lDL29JUlR3?= =?utf-8?B?Y2NKN0NLSURIeTBWWVd1TERJTVFBeWtLcW93Y0NSUERzNmgvVjE3NXZSbk9l?= =?utf-8?B?bWo3aDhoUzFnMTQ3bUxFamRBV2JUVXlrWlBSUVJRMngyVDFOZHJEL2pyM3lB?= =?utf-8?B?dExoMzNBVHFaVVJLaHcxdjlhQ3BPRms3UWpHRDFQWEo3bFhDYy8rUG01bG55?= =?utf-8?B?WVFUM1hkcytjSDZoM3YzUE1kdCtBTjhDMVFHa2lsUmpBN3NaOUpjNnE5VVkx?= =?utf-8?B?SWh1dERJZlF3QlV2Yk5GU1B0cnNCTm5TVThob2k0cU1QUWhs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?Q?TUG6ypCsG18ACupC72kloYhqd?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: b747d3e1-6ef1-4ec0-20b3-08da971a8b8d X-MS-Exchange-CrossTenant-AuthSource: PH7PR12MB6000.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2022 13:02:29.6321 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ubKWzkS7GyYyBqe0Xt0AJ7g5x/EXbsALZCQzHs42AvHEmn+nD0uswTkjBinZTYkfRpZ6blAjIDBAbaNts0Cw2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB7594 X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 On 9/15/2022 5:37 PM, Christian König wrote: > Is that sufficient to allow running a desktop on amdgpu with the extra > check enabled? If yes that would be quite a milestone. > Yes, It is running on amdgpu with extra config enabled. > What's left is checking the userspace IGT tests. Especially the > sync_file and drm_syncobj tests I would expect to have problems with > this extra check. > Yes, IGT test cases are failing . ~Arvind > Thanks, > Christian. > > Am 14.09.22 um 18:43 schrieb Arvind Yadav: >> 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(-) >> >