Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2778706iog; Mon, 20 Jun 2022 04:45:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vNkjvoAqCndUzQmmFqH6hh9ZeZTC/y5mf791QzsgJEZbvossYWYTe8uZuQYWGbth8/ZSy2 X-Received: by 2002:a17:902:d488:b0:16a:158e:dd0b with SMTP id c8-20020a170902d48800b0016a158edd0bmr9773113plg.162.1655725530803; Mon, 20 Jun 2022 04:45:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655725530; cv=pass; d=google.com; s=arc-20160816; b=fltgQQ1zLVIIZZtL0/1TQvM6AOiIO5A02KVe7hvHMQkB41Aa26ZTz7Gwxzi/DlZilT 7zIbXX0MQeLH8+uOXpbFmxyWVbkqiYN6Yd7K09olgqZdD9khg4F88ydkcqSMwb1ieB5n VnO1MUjjMynIqSL/+18NqcN2qODI9EokYGebqOwc14r3DS2wVKuufdWXTxX09lWmUJIc dD73WR9T0rYcAYLRkgtUGIhpjqJRKVLeLWhzj+AbHBhIG98RN3PaREJvbUxD0vWt9brJ yq5bk76G0rA8jhZI1lLtAtmaxu9ww/1m6VNZ6j8KDFBQrd6poT+fh1FIctuMAPtxbe08 wKaQ== 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=GYzYUmCxb7wF05EzBZQ5RJ04iyUgWzBZj/1F5rbxhek=; b=wi8Bcxd7/kiOI+0E+wtzg9JPoyGZOAm+dlcTNywgJ6CZutmcBYKNWl+8jZmOcgFiZv hTDu6sf/Ec1QRhk618AF+LAVB9uxoybX8urkkmg7Zdh3rd0AVK8DSOhSkjMmNroq7W2l dExGjgkqD1i+6QqALZ1kY3SnHly8cNk3+p/9w8XgydMo3g3sKwKdJeDTz0hLaqwK2PTH hSJiPvJX3B1UfZXziDowZ+2k2Trp9KCtYO9mUR+BtLAqyKn7RoHZUe2BN+7WvOO7WtXi GSnSvuEt0/DdVdHNhkCwwe48nLFfERYoagHoeZX8m7rEOOis6ygABxXHzIajDTjzhItE oclg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=3tB3pB98; 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 bh5-20020a056a02020500b004051797ce4asi17436669pgb.654.2022.06.20.04.45.18; Mon, 20 Jun 2022 04:45: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=3tB3pB98; 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 S236880AbiFTLcS (ORCPT + 99 others); Mon, 20 Jun 2022 07:32:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232549AbiFTLcQ (ORCPT ); Mon, 20 Jun 2022 07:32:16 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2041.outbound.protection.outlook.com [40.107.244.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0432D165B4 for ; Mon, 20 Jun 2022 04:32:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UERSAt8F3MTa+tAXqaZl3y+aj5obK6Hwk66/toPEKxd0swgvvDTwH/wIEPxwqCj7pVS3ncACmmZ2Xuf+uZ24103ASjHrriJxe/TX9R4zBkHjHvnYBBoZDkNAOayVuHOtT5b9YSmv0QJ5HLKXw2SodI1V9cDVrWmyBMW9d26ebiEr6YX2Ol8IXsCRzTlAJj0BkdJrEafrWs2+pdlAu8uKvIDP7ZI7M95kzd0SjPA5c7q7R1+o7q6oqJjCKYI2duVqnnn9Bl6OXYt5muVcp+z82+f3btiJTRZyNaUYiywkZkLCRJJebcoswSTea8il4CZyR0qwo6rmLNrZ4q1bWxGyJQ== 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=GYzYUmCxb7wF05EzBZQ5RJ04iyUgWzBZj/1F5rbxhek=; b=EhwNrigPhs66m3/1jvToBEtkTMWPdH11lMSy6nx3jgf3J2pIDWv+FsKPYBMpMHl8iU27NMDLzLohWc7T/+8uWaCBAXfPRiqj+TaCE2B7a6a089B9o0Qvlho/f4GU2zV1OKxWXwFZD5TJ8Rf9J+1rKfRqe6GudMRNSzA7BC41zHMTcMtokh0QJiZUVReHaSvEVrVrwghN9gdiPJAhhxuP4UFdzGeu8Ori6SDwQETHhziciJl30ExREWoqUkLgeIAGtgIn3nVvgdNwHtVEeOCeGqo6Ns28l3oCk3vXvRpSey6WvumRJwLnjdX1EF0UVDQ2/1UZ3Yqu7aQLFBVxpXyCQg== 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=GYzYUmCxb7wF05EzBZQ5RJ04iyUgWzBZj/1F5rbxhek=; b=3tB3pB98gwCsDrL5xejPj7mtwL2Kqpr+SgDK3L/fnuQAoWGh/eeMCRpBHliHf0WefcV2FjFT0qiw/NG8j4h2eWEDch4aVO7zI9zVPDxc5Zy/i4o2e550K/KF6CnfE8NSx6M3jcsrFm2DcgTVdPzlKR/z16CchNQnP+nIv8kJLIc= 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 BN6PR12MB1922.namprd12.prod.outlook.com (2603:10b6:404:106::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Mon, 20 Jun 2022 11:32:13 +0000 Received: from BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::e0fd:45cf:c701:2731]) by BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::e0fd:45cf:c701:2731%6]) with mapi id 15.20.5353.021; Mon, 20 Jun 2022 11:32:13 +0000 Message-ID: Date: Mon, 20 Jun 2022 13:32:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: Performance drop using deinterlace_vaapi on 5.19-rcX Content-Language: en-US To: Thomas Voegtle , =?UTF-8?Q?Christian_K=c3=b6nig?= , Daniel Vetter , amd-gfx@lists.freedesktop.org References: <0249066a-2e95-c21d-d16a-fba08c633c0b@lio96.de> From: =?UTF-8?Q?Christian_K=c3=b6nig?= In-Reply-To: <0249066a-2e95-c21d-d16a-fba08c633c0b@lio96.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: AS9PR06CA0748.eurprd06.prod.outlook.com (2603:10a6:20b:487::15) To BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 10b3391c-ad19-4ca4-def7-08da52b084e4 X-MS-TrafficTypeDiagnostic: BN6PR12MB1922:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qRfi0bT3WwMNEYczfR0I8fQH79EHaII/cR0JHzYifyfZJq6p68/7K+K7L4HW17jY5Be4spD65Q6U5gsXwHLkQvrkuHoFCX9A7UTRLCNQ92HG7W7UwF4LvMR2lQO0oVgdJPUB/lVXkSx1Ftd64VVGUSv8u1qpsj2vkgKD8ADpPC4QVDIxTRhVZTarC7NjBCprotOcokWvOmdSyqUl4b3G2E9LH4QADnCq0pAtO/h1j2IGy/bjIBT02dqeTxm+S/8ZJznM8Ebut9q5/QBxhiv+YUVlQaMXteSg8LkpgRe/xmh08iA5X7nWkw/riJwvYXEMZnwHYEnf+pu+dueuXp9mmf9lMsGfuaIA/vDLiIigDxnlqrD2iiZ3hFUviGi3dPRVCyqy3MMVIuSlkHC7xmesb1Rxw8p3k9jRB/22E8Sqq3i+7beVWfZ+9uJlIndeozZHy7eMB4Iwdo+TKOCK+jQcHigg19OtqhUky4gGZBgAN39MVWhmA/zaaPSAEjPrSla/EgrNFVicRsMbVQFJklMKHhAFJACgBuSAuUdmoL0J0Lp91bbdS3q4wqdJt2MVmMt7JJflSPpmLxtprd9SroIGTlDVGpopRV0OiGW35Fbm0vQJH4yRSkwzwyYS9wm+WQp1HFADF329GHumuYMDLdV5wyS1KSsn6TUtfJVxrf9g9mT24HtsjUI6sqcdWnyqdHmyn+002GLZYkElVHjBCKmW7w1+XGzKbFQc8rZAGYaHIuw= 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:(13230016)(4636009)(366004)(186003)(66476007)(86362001)(66946007)(2616005)(83380400001)(66556008)(38100700002)(31696002)(2906002)(5660300002)(6512007)(498600001)(6506007)(8676002)(36756003)(8936002)(31686004)(6486002)(316002)(110136005)(6666004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RGp1YXVtMjRaV1FnTTEwcVprZTVJUU15L3hkdFo4RFpldTNaRTdyMnZmaERj?= =?utf-8?B?cS9GbnQxVi9abTlzekhRRVZiZTI4ZC9lVm5LdCtxTVQvalVOSWUwQ1ZtcDds?= =?utf-8?B?d3h6WlgwQzRPTGphSVRLTmhHRjZKd1JKOEY0MjRDOUt0bVp5RkdoN2JuV1NZ?= =?utf-8?B?WGlWVnNZSFNyZGZtTVB5bXlPV2NEalJQM0F0bFBacXh2S3o1TWhjcmovd1RT?= =?utf-8?B?dnpJVnhGbmFZbXpENjBpaXFQeGx2TXh5UDFrMWlxMjZLUHl4Si9vUGI5OGln?= =?utf-8?B?NXp1cThTekN6NVljOWZvaHF6bi90NVMwTWZ3Y0pRWnBLNTBBZEtaNTZiV1h3?= =?utf-8?B?THpmdElvaldSOFlSYmIySTFzT1diSmtsaHVLRklYR3hRbWw3bVBSTFlIa2hR?= =?utf-8?B?U0d3TkZBVWIxeE15bThjWGltUXdTclYrUmdpbVdseEJHc3Nqb3dMcEJXbDNJ?= =?utf-8?B?MTFHMkpmWlFkSmNZcEc2MmVWWTd3RjJwaXdVOHNLTndrdTZmV3JqOXFzNnRt?= =?utf-8?B?dnRvTVRSVTBiWTNZSEdQYTZsMk45ejZ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q?3aTfu/6g4F1Zxdf9WbHhON6qbQVuKQ3v3zTmIrXidL/16?= X-MS-Exchange-AntiSpam-MessageData-1: Galge6P68ibRbg== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 10b3391c-ad19-4ca4-def7-08da52b084e4 X-MS-Exchange-CrossTenant-AuthSource: BN8PR12MB3587.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2022 11:32:13.2253 (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: +fzEKzPuSOUrJ//zI/qzHpJz3lqs1HEghzmtrjvwt2MI0i6MVC68ogscvvzYxXB/ X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1922 X-Spam-Status: No, score=-2.1 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,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 Hi Thomas, [moving vger to bcc] mhm, sounds like something isn't running in parallel any more. We usually don't test the multimedia engines for this but we do test gfx+compute, so I'm really wondering what goes wrong here. Could you run some tests for me? Additional to that I'm going to raise that issue with our multimedia guys later today. Thanks for the info, Christian. Am 18.06.22 um 18:13 schrieb Thomas Voegtle: > > Hello, > > I noticed a performance drop encoding a mpeg file to a h264 video using > the vaapi option deinterlace_vaapi on a Haswell i5-4570 with Linux > 5.19-rc1. > > A 10 minute long video takes normally 41s to convert, now with 5.19-rc1 > it takes about 2m 36s. > > My ffmpeg line is: > ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 > -hwaccel_output_format vaapi -i test.vdr -vf 'deinterlace_vaapi' -c:v > h264_vaapi > > Removing the option deinterlace_vaapi shows no difference in > performance between 5.18 and 5.19-rcX. > > > I bisected this down to: > > commit 047a1b877ed48098bed71fcfb1d4891e1b54441d > Author: Christian König > Date:   Tue Nov 23 09:33:07 2021 +0100 > >     dma-buf & drm/amdgpu: remove dma_resv workaround > > > and wasn't able to revert this one on top of 5.19-rcX. > > I tried the predecessor commit: > > commit 73511edf8b196e6f1ccda0fdf294ff57aa2dc9db (HEAD) > Author: Christian König > Date:   Tue Nov 9 11:08:18 2021 +0100 > >     dma-buf: specify usage while adding fences to dma_resv obj v7 > > which is fine. > > Using ffmpeg 5.0.1 with libva 2.10.0 and intel vaapi driver 2.4.1 > > >  Best regards, > >     Thomas