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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79A81C54E94 for ; Thu, 26 Jan 2023 06:59:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236044AbjAZG7H (ORCPT ); Thu, 26 Jan 2023 01:59:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230233AbjAZG7E (ORCPT ); Thu, 26 Jan 2023 01:59:04 -0500 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on20609.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe5b::609]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F5B25C0EF; Wed, 25 Jan 2023 22:59:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oQM+4CGk1K1XxXL0Pe6oh7FOHkFbHKBxkPnHVqF+9en0V1JieH2UenaP9qpzmyYImdcAxvje+2lIu+Hx1SjnGYicx/xzyS3QrVLCdhsdIPtoek332kJBS9DDnuhHLghZeT2Y9VSDsw4sUpInvBpURSG/bIgHaLF9B7/EZzaskk9DJGCtg3njRN7gNnlhtH7R/fXtXTzP5ey0Cl6sUmX9/0IJFVb+Rj8gG+NmzKTPypSRK+qtg27zuQwddMXTd/DFzAJuCd+ndKZh93HsanxXlvfbOK/8NTo4pPW9deLmJ4P82ossAv/bY5eWAO+D4QT8KvlPKj4buzFJ7rDO82C2mg== 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=PNuexUBkUh+A6GNqEqHVPsbMDsnacyJLlHRvY8kEjgU=; b=FADZ9xwZyFq1WzuQFBmbLlfBjg5LgXyWl9N0u7GV8DbThs4sm8d6kdK9CpnvBguHwbfMCiLEwpVp4X5ZxtdMEtz1xaBlihc/efQGxEG21YbnD7lNPqB2SKCJnQDG6i+XOrB+oqX+ppyme6zYEQMpB+Fiqk4l04yn5dXRUV6GESdAcyFronKH1Zn4wK8jNHEkQI12/tp/6/K9hqDPXQqYLbjtGcAD+MhNeAyncY4AGg7SSjbxvAhNjbbpkNfyjFAtUyVYER3fLfYX/WJWNmnpAH76c+eiitsolmUMouPoTXwr2STEhRj7cxe1qgFoDDMsaDPDOmEgAp/9x7WRht5zvA== 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=PNuexUBkUh+A6GNqEqHVPsbMDsnacyJLlHRvY8kEjgU=; b=sC9QJq0Ldi5HsaLS45mCQIBGK5RHLSenx0BwvzuBd4NNAxaTDQqU6AFLnecE6OKKl1zP6b067hq5qVWd6H0W/8YOjfPyvNsu4Mw+HUuaFQ+IHsHnMjnQl2jPTDNytGbhuban58ti9bUme0FKVfNx4fp16VaQhIgsZxiuaLHGg5k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) by DS7PR12MB8250.namprd12.prod.outlook.com (2603:10b6:8:db::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Thu, 26 Jan 2023 06:59:00 +0000 Received: from BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::2e4f:4041:28be:ba7a]) by BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::2e4f:4041:28be:ba7a%6]) with mapi id 15.20.6043.017; Thu, 26 Jan 2023 06:59:00 +0000 Message-ID: <4b13c48e-1677-3947-42e5-5ba241bcb96a@amd.com> Date: Thu, 26 Jan 2023 07:58:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] dma-buf: actually set signaling bit for private sub fences Content-Language: en-US To: Danilo Krummrich , Arvind.Yadav@amd.com, sumit.semwal@linaro.org, gustavo@padovan.org Cc: dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230126002844.339593-1-dakr@redhat.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= In-Reply-To: <20230126002844.339593-1-dakr@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: FR2P281CA0113.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9d::8) To BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8PR12MB3587:EE_|DS7PR12MB8250:EE_ X-MS-Office365-Filtering-Correlation-Id: 33da7f99-88eb-4a1b-04a3-08daff6acd20 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bWsJb/KJw/HDtOkEKB8a3rz2d5GSJMMkWHvKJwgOBMSyigzoVuKILtIjgh8xoVNMpAjcWFJxT4EJdit6c7NJH+kMVr/Kz2W1HzR00gEnMTXicmvDWCjtXPhsB/nNTI2IwtPh2ag+85kyx+BZlzXYhCIk1+d8Qm50nASJ4Z7mKDqyRbtu1ZgWtQrJ+e+iWUexDtQK252gAyRUoow9Gg0z0JYm2z9ZRk8i9lgqNK9FO7arr6GipaEWouBzVLu4MrpE0pcF8Sg/YmyV8mlo4Niu4Sqna6BciLBHj8EDpoBqHD/knODLhhiEi2J68+6aWt1btf/lLbP6IXKbHmtZ83pMsGNdxsGmc8ZW+R1atBocdzCD4QqIgVr1JgdUQwJ9gBfZwrlxkt7k7GQxdfyyM/kOof0bCj5lSrbM6vZADfYVy44/mqQU4AGyNXytsbWS8xtUcgm6AxOBU5bjK/zDZeymUigd7XkvGyacmk68y/xvL6jOo17tPOJ9wUtustuHEJQgQqVKArvgN8rpGGB8f6TQgOHHRuHKrIc3YX4NnxXbXvR9utkZW+UooCdtNLYceE1wFXwXj+fl36nlt92jL/MXwfX1ytRmJCyK47lhzhUUBjLWXu6wkGeQJ3oG5mawHQG/w+XlJKxWxuung3zWRIonbUmObkMpW0f/VkNFgFCPVKYQjaMMgevTV9hXI9Z/bo7QcA6OMuNCFm3I6cF6L5h/swpxcwl1/h9A3m0Bs160E0A= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR12MB3587.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(396003)(39860400002)(376002)(366004)(136003)(346002)(451199018)(31696002)(36756003)(4326008)(66946007)(66476007)(86362001)(316002)(186003)(66556008)(6506007)(26005)(8676002)(6666004)(6512007)(6486002)(83380400001)(478600001)(5660300002)(31686004)(66574015)(8936002)(2906002)(2616005)(38100700002)(41300700001)(4744005)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MDdtQmRBWEVhaHoxZCtWQXVSZGNOTHNZTE9QanpPVWc4YUhwbWRaWXlWMnBI?= =?utf-8?B?TGlJOXhpWit6WDQrTXJIN2hMS3p3Z0VKWjZIVVVBajhqRmc3NVByc1NGT085?= =?ut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dlUzY3lVbWZhcWZaYVA1Z0tBdkZxVjByekR3?= =?utf-8?B?alZmSTJUbWR4bDRjb1BFTWNFUHlsY0hFejc5N09pTTZqY0JJTjFuUndJeEZv?= =?utf-8?B?eHZ6NGtSdDNVZ2pIZ1ZFY2YyMkpDaE1uL08weUJxY1YyZm1xMlROSlVEQU83?= =?utf-8?B?cHlHc2tTQzFhMXZhZndOYmFObjRPVGU0YWRaa3lxTVVGbWQ0eGs5WVQrdVcx?= =?utf-8?Q?/s+KEhE9gxcZeOEfh1Yz1BbvD?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 33da7f99-88eb-4a1b-04a3-08daff6acd20 X-MS-Exchange-CrossTenant-AuthSource: BN8PR12MB3587.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2023 06:59:00.3296 (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: L9RByopz1bg9iiL3LOgOEVg+qvJ9PrzUWhNHMNw+VDNLFf0IEDp8MSSFcwYmI1oC X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB8250 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 26.01.23 um 01:28 schrieb Danilo Krummrich: > In dma_fence_allocate_private_stub() set the signaling bit of the newly > allocated private stub fence rather than the signaling bit of the > shared dma_fence_stub. > > Fixes: c85d00d4fd8b ("dma-buf: set signaling bit for the stub fence") > Signed-off-by: Danilo Krummrich Good catch, Reviewed-by: Christian König Should I push it upstream as well or do you have commit access? > --- > drivers/dma-buf/dma-fence.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c > index 406b4e26f538..0de0482cd36e 100644 > --- a/drivers/dma-buf/dma-fence.c > +++ b/drivers/dma-buf/dma-fence.c > @@ -167,7 +167,7 @@ struct dma_fence *dma_fence_allocate_private_stub(void) > 0, 0); > > set_bit(DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT, > - &dma_fence_stub.flags); > + &fence->flags); > > dma_fence_signal(fence); >