Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2668619pxb; Tue, 19 Jan 2021 03:10:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyS0tfm1GLHlTWjdEXdaFWWwc+hTyBOQarFgVGXbqw+VJ8isCD+g4QWFgDfGrdKKYdRnU0G X-Received: by 2002:a50:a684:: with SMTP id e4mr2917113edc.148.1611054644882; Tue, 19 Jan 2021 03:10:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1611054644; cv=pass; d=google.com; s=arc-20160816; b=S0tI+nrUZzyPaug4I1w8dEr5x6/FqOoFO5i30grhYMZW2tAbD7jb2hnC6gcAJ/RbFp GuOK3iz/ryYeCh1q4gH0zsiaWfRkynjgJTwDCYScu0rNGxRmeoKacPqx9rhjy1/bRBZ8 r09gSz1YlpV9sMgMN7/WJoBChiXkdmDZfvzMlsxEdKiV0wKxJrDqnfTN/dtcrRsBkG81 Ky0Nd+wAQpZfJTWekAY4VYw3RCDhRr8h+xiqvFilZfA4aiV60Xup1cgyNHQ8CnmooNgm muGjo317V976E8b5nwsmFT7jG1yfeqyPUcIGrb4G/MM4cm8ZphEWE2ttuhnGaSCx8cv/ ggiA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-language :content-transfer-encoding:in-reply-to:user-agent:date:message-id :from:references:cc:to:subject:dkim-signature; bh=y7adigLItf66vIfP62vEeEZp/QNW0eGW4H4AaOqJIuI=; b=CP7ZndjLgPF7rFLMrH5im2cERrRf5fzO2fJFeJiG9BXwdTN7ZiBw0FR5NBI1nu8prZ +8Kq7X3AwFR5VbehZzM+tC/oJBfPjkjgENxMR2MWbQ3YIAphznP+lwn43IehvQgi/Y/p fKZtZga+UmC2HERiL+0alecFK8O/pWqf8AwStG6EgG5WEJYrouqfYL8lZfHYOm/6BWmX CIWs0GEo786ywutUmL+gI3nZqzj/hvHVJN3VLmygdzKba+lDxGqdytURdKkiD01pgZUM 7ygja+m0JzpLgcvFKFopxRZXCkeoYyiFPC9ix5KFml219vV6rWK7IcaOzq/fz0fs/z6P pLnA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=bpAeo5NS; 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 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lx2si1279939ejb.131.2021.01.19.03.10.20; Tue, 19 Jan 2021 03:10:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=bpAeo5NS; 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 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390406AbhASKVQ (ORCPT + 99 others); Tue, 19 Jan 2021 05:21:16 -0500 Received: from mail-mw2nam10on2075.outbound.protection.outlook.com ([40.107.94.75]:27873 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389665AbhASKJ4 (ORCPT ); Tue, 19 Jan 2021 05:09:56 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EuaCUDOTvZA7qBAdGkwN7pFPkBexNvOdxXiXtA9E2hG11M/nx/Sun6f9J3BpBGwtwT5DHex1640CJOf5w9a71qxd11nDFXAhZL4KP+IxkUFZYXmmwdVtB5rH2sNBvE0vaHy/bVA5lusv+uWx7qR7rLLCgr3nxyFgVX9zKXXS3hQOaupkqhyMu/lxb7NFKke508da2Dxj1bDiKtEcr+VC9wZJTJObEkGkBSg1wl7n1y9YHvmlXh+++mYHfRuWOc4I/UAJwPBi4hN3CKSmjDTE1bHLI+s88iWZ9imHxuKLo1SczwUPzObC7SegS4BZ6CAyNP+IUX/MXBP1J3iYESu9Rg== 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-SenderADCheck; bh=y7adigLItf66vIfP62vEeEZp/QNW0eGW4H4AaOqJIuI=; b=kXQGWehwO+SkT02lLSPUvPStN5O/E5azwj/57hwhby2jA9Mhl9naKdm9F+zWpszDFAQxJWFcwg8XBZhiDexC+e+qJ6BWmlWq7IKlayM7q0jPbYBZpf0esNGsZRAI0NdsdYN4R0RP1Y30N5E8t1KDNc3hPhQA3L/uSOJixOMtWr0OAwTyL09CaiQleyEkjfQHrWrkXvLnmidHHgzSr03skOcputC5KeH682NYTP0wR2VOk88wetAMo2aqVAYQ1h11f12pip/G1q8LF+s18OztNe+0/C502OTWwdSehBB4BllUeD+OxzItvHyb3E/xkcUhXybeN1GghhOZv7ZsZB0vCw== 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=y7adigLItf66vIfP62vEeEZp/QNW0eGW4H4AaOqJIuI=; b=bpAeo5NSaf7ZZFpvDrgz8KNLJ3dywFwDN0s4Ggpgmx/aWAnk4qdodwJInFGxaW0WlnyptGB13fxE/xAwFGs6RhW5FeNtmek1+uM+hcT++XR7DGpkwCrz0yf0yrPebuTxeprRTNRnt8pXzIoxbiJo/kBxitTcuEAUPWzE/cVvqAM= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=amd.com; Received: from MN2PR12MB3775.namprd12.prod.outlook.com (2603:10b6:208:159::19) by BL0PR12MB4706.namprd12.prod.outlook.com (2603:10b6:208:82::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Tue, 19 Jan 2021 10:09:00 +0000 Received: from MN2PR12MB3775.namprd12.prod.outlook.com ([fe80::44f:9f01:ece7:f0e5]) by MN2PR12MB3775.namprd12.prod.outlook.com ([fe80::44f:9f01:ece7:f0e5%3]) with mapi id 15.20.3763.014; Tue, 19 Jan 2021 10:09:00 +0000 Subject: Re: [PATCH] drm/syncobj: make lockdep complain on WAIT_FOR_SUBMIT v2 To: Peter Zijlstra Cc: daniel@ffwll.ch, mingo@redhat.com, will@kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20210118180334.43714-1-christian.koenig@amd.com> <20210118180334.43714-2-christian.koenig@amd.com> <019f2342-9d64-f6c6-d03d-0ab8ddce101d@gmail.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: Date: Tue, 19 Jan 2021 11:08:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [2a02:908:1252:fb60:be8a:bd56:1f94:86e7] X-ClientProxiedBy: AM8P190CA0017.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:219::22) To MN2PR12MB3775.namprd12.prod.outlook.com (2603:10b6:208:159::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2a02:908:1252:fb60:be8a:bd56:1f94:86e7] (2a02:908:1252:fb60:be8a:bd56:1f94:86e7) by AM8P190CA0017.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:219::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9 via Frontend Transport; Tue, 19 Jan 2021 10:08:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 56d71303-a445-477d-a467-08d8bc623ded X-MS-TrafficTypeDiagnostic: BL0PR12MB4706: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:41; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: M74RmmDa8/xTMC9V/xcEOASS5owmU1Uag2bv3PivE0sOnlKj23hkZtkUznQa4ri0oe+hPmd52xT1qwtCt1YmCcCADHgfveplAhP/D5StH5P86OVZ6XdPi4wKKUrGsL3/NZVVfw8avFIXCtbv98WfGBn8OoZSqwtQZLPl6iXllRi70Ah1Oxw6fKqIYCC7azjGyims7ZjFpusn3NzSdIGaMtndhBFWxajBHu9A7QlkwIs1FPou/CvvaIKd0JfTivbwEsxa3WWmhsUbb+ILs90QsbPzS5YcO2EPYW/2rKaxTXBuDUB4tao1lxWNdVIdGTU24SnwH97OF32dkRVWi2laJR2910y90m50iOgnjh0vFNUxTmSM45Y/2Bn7arPJ7lFk9hrV0nkF5z7yt6RbZpkukD53xN3n7Gj+BCAT+uz+TpCG/B4ZACoeUOXzrnj6zU2aHcigTPXSBPbA2I1DLiEgo93Tx/NDl37pR4SpjM1VnP9Qifw+rspSgs0l+iEdJo8qKKuUZGgeRrDn3j0QO9CUBV2u0k+YXAlE6gcG6GjxV1JBTBgd74Ag2l09ViLxQVpTQhmoFGUWdQtMP11HeyMINWx4p48my+/v+kORT6npbfE= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3775.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(396003)(376002)(346002)(366004)(136003)(8936002)(83380400001)(31696002)(6486002)(316002)(4744005)(8676002)(66556008)(186003)(66946007)(36756003)(86362001)(31686004)(6916009)(5660300002)(2616005)(16526019)(52116002)(66476007)(478600001)(6666004)(4326008)(2906002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?MyszUlJVMHJrUXZMTy9Qck5tNmNQbi95THErdUZwVWQxMUpmL3FxTXRhZHZa?= =?utf-8?B?UVhLWGlNOWphazlxdG9Zc3lUUGpWRCtaVHNKbWRSZDhsbFlZRUhXSVRlQ3VZ?= =?utf-8?B?VkttMFc2bzU2VEZwR3E4a1Q2UTF0Q2ZFTFkvL1RVOHZHSWRsbTJkcWQzM08x?= =?utf-8?B?TXFNVzJuYkNwZzFBanR0U3llYmF0RXE1R2w5d3R1YjcwQUt5ZUJZSWdWajYv?= =?utf-8?B?WU56ejM4d09BTHJLazJJM0o3TkRqSXVSZ1FaL3pqMFhZUG83UEgrdWt0VEVO?= =?utf-8?B?S1FRS3laMEZIUHl4OXNqK0txeUdXV3gwS01JSEl1eWt2QlBVT1pwZUdRdzRw?= =?utf-8?B?aWhPRUtuUlBITkg1ZVFsRDJJT2tiSVJXOENVbmtyeDZYL294WmpvbFR0UmNC?= =?utf-8?B?Q29tR3E2bWtTL3ZtN0xoK3lQcUZJVFVnU251TTBQNmRkMERMaGtzOUgvaDJT?= =?utf-8?B?Z3RURFBPcDAxMmRteU9qL0pRcjhKbkdiR2hIa3hQN0Z3cGpDY1lzdmZlaGhz?= =?utf-8?B?T1lSdzBKUXRPUXpwbTFzOUNxaDU5R3hBZ3FtU05XN2kyWjZEVmJkaUlUZmlN?= =?utf-8?B?S3cwN2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utf-8?B?V0JwRjNPWlFIV0RZTDZzWWxJb1Jab3JSZUFUNm96clFUZk80b3ZsQzdWR21w?= =?utf-8?B?K1pwZz09?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 56d71303-a445-477d-a467-08d8bc623ded X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3775.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2021 10:09:00.7634 (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: AO1iS9v29vGkuHdMyIDcrDDrLfUScuB70gBfRXb+7mucPKoJvkkUolzogpQDLo4E X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4706 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 19.01.21 um 11:05 schrieb Peter Zijlstra: > On Tue, Jan 19, 2021 at 10:46:53AM +0100, Christian König wrote: >> But I'm going to double check if drm_syncobj_fence_add_wait() isn't used >> elsewhere as well. > drm_syncobj_array_wait_timeout() > > Which is why I asked.. :-) Ok, good point as well. But this isn't driver interface and rather IOCTL implementation. So if we hold any locks there it is our own stupidity. Going to add the appropriate annotation anyway. Thanks, Christian.